@adyen/kyc-components 3.81.0 → 3.82.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-PDXa81vb.js → AcceptTermsOfServiceComponent-BcmaOZn_.js} +36 -10
- package/dist/{AccountSetupRejected-Du83gH0_.js → AccountSetupRejected-DY2Dr6NS.js} +6 -4
- package/dist/Address-DrcGzzbw.js +1076 -0
- package/dist/Alert-QIcYF1qD.js +231 -0
- package/dist/{Avatar-Cd_8eqbA.js → Avatar-DOeLDY6M.js} +2 -2
- package/dist/BusinessDetailsDropin-BGsHimRA.js +5088 -0
- package/dist/BusinessFinancingComponent-aYQz8gE4.js +45 -0
- package/dist/{BusinessFinancingDropin-DioEfiqH.js → BusinessFinancingDropin-S1KF-NyW.js} +43 -20
- package/dist/BusinessFinancingPage-D2OV4IqT.js +40 -0
- package/dist/{BusinessTypeSelectionPage-uk6eDO5O.js → BusinessTypeSelectionPage-mJaPKHWj.js} +9 -5
- package/dist/Card-D3VCh4en.js +145 -0
- package/dist/Confirm-Dj-igSqL.js +64 -0
- package/dist/{ContractViewer-B2LwC3wV.js → ContractViewer-Byp71k2e.js} +33 -38
- package/dist/CountryField-B2dh1VXh.js +864 -0
- package/dist/CreateIndividualComponent-D6r8z9C9.js +72 -0
- package/dist/CreateTransferInstrumentComponent-Dpj7MNQS.js +67 -0
- package/dist/Currency-BAGjlBuR.js +238 -0
- package/dist/{CustomerSupport-C4n96PMt.js → CustomerSupport-CYHYkHRf.js} +10 -6
- package/dist/{DebugModal-CYO8HZDV.js → DebugModal-B_xZdbHr.js} +8 -5
- package/dist/{DecisionMakerDetailsPage-IT7x1ZRJ.js → DecisionMakerDetailsPage-DMLnRAqQ.js} +11 -4
- package/dist/{DecisionMakers-DkXmcSK4.js → DecisionMakers-CG-_wD3e.js} +224 -96
- package/dist/Dropzone-CWLgt-EE.js +218 -0
- package/dist/{EmbeddedStatus-BS-fmZSm.js → EmbeddedStatus-BIhXDQHZ.js} +4 -4
- package/dist/{EndStateLayout-qrS2Eh-G.js → EndStateLayout-C80dFrcg.js} +2 -2
- package/dist/{FormFlow-BjHYz5-l.js → FormFlow-Df3CEE-c.js} +8 -2
- package/dist/FormNavigation-UiyNK4Uw.js +162 -0
- package/dist/{IndividualOnfidoDropin-B-y2VRFi.js → IndividualOnfidoDropin-CJLptmj_.js} +2796 -64
- package/dist/InputDate-uj7AgGvk.js +43 -0
- package/dist/InputGroup-WBfGDV5F.js +32 -0
- package/dist/InputText-Ds8RrvJq.js +161 -0
- package/dist/{Introduction-CVSG_NSh.js → Introduction-BWWadECu.js} +58 -4
- package/dist/LegalRepresentativeDetailsPage-BYUoJ0JW.js +61 -0
- package/dist/Link-Dc3z0YyP.js +35 -0
- package/dist/ManageIndividualComponent-DQlUh6YC.js +47 -0
- package/dist/ManageTermsOfServiceComponent-B5WnQ4n1.js +47 -0
- package/dist/{ManageTransferInstrumentComponent-Byi222QQ.js → ManageTransferInstrumentComponent-CL8KJIXM.js} +25 -4
- package/dist/MaskedInput-CTOcOcUH.js +799 -0
- package/dist/MaybeModal-BBBahxa3.js +25 -0
- package/dist/Modal-Da5go-OS.js +136 -0
- package/dist/{OnboardingDropinComponent-CDK7PYx0.js → OnboardingDropinComponent-BYFTAjkC.js} +200 -41
- package/dist/PayoutDetailsDropin-UBEJcM6I.js +3694 -0
- package/dist/RadioGroup-DwMTx-4B.js +143 -0
- package/dist/RegistrationAddress-CcHFAuWw.js +2334 -0
- package/dist/{Review-BCxsmMlz.js → Review-B8HKLTsc.js} +8 -4
- package/dist/{RootBusinessDetailsPage-CIWtTZ1z.js → RootBusinessDetailsPage-2rHbq8sK.js} +65 -44
- package/dist/RootIndividualDetailsPage-BYEh8Vlw.js +77 -0
- package/dist/{SignPCIComponent-DzKFISwc.js → SignPCIComponent-DZcOu0WP.js} +17 -8
- package/dist/{SingpassSelection-ChRvdPZF.js → SingpassSelection-D45perGt.js} +6 -6
- package/dist/SoleProprietorshipPage-D4dn0vkS.js +50 -0
- package/dist/{SourceOfFundsPage-DuUOdcam.js → SourceOfFundsPage-By-6cY89.js} +46 -24
- package/dist/Spacer-BK3jDget.js +18 -0
- package/dist/StepProgressIndicator-Jd8MiZZp.js +78 -0
- package/dist/StoreProvider-B_tFiIdr.js +7072 -0
- package/dist/StructuredList-DaepaiVE.js +38 -0
- package/dist/{TaskItemStatus-DDwHsmh8.js → TaskItemStatus-Ccga7-2c.js} +4 -3
- package/dist/{TaskStatusIndicator-Bmm2PsCZ.js → TaskStatusIndicator-CGp1MHRK.js} +2 -2
- package/dist/TaxInformationField-qCHTQShR.js +3062 -0
- package/dist/{TaxReportingDropin-kPcT1Kxt.js → TaxReportingDropin-sxuLHfT9.js} +25 -9
- package/dist/{TileGroup-BC8PSahf.js → TileGroup-B9jBcBJV.js} +4 -2
- package/dist/{TrustDetailsPage-lnVmcLSH.js → TrustDetailsPage-pWuCF62_.js} +506 -19
- package/dist/TrustMemberCompanyPage-Blbw7uAa.js +60 -0
- package/dist/TrustMemberIndividualPage-CkqYu9NE.js +66 -0
- package/dist/UnincorporatedPartnershipIndividualPage-Dd_YBotT.js +66 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-Dna06cxg.js +64 -0
- package/dist/{ViewVerificationStatusComponent-D2V-RY2M.js → ViewVerificationStatusComponent-Dnc6ucMj.js} +4 -3
- package/dist/adyen-business-financing.js +33 -22
- package/dist/adyen-individual.js +36 -27
- package/dist/adyen-kyc-components.js +28 -15
- package/dist/adyen-manage-individual.js +25 -26
- package/dist/adyen-manage-terms-of-service.js +26 -27
- package/dist/adyen-manage-transfer-instruments.js +40 -42
- package/dist/adyen-onboarding.js +3 -3
- package/dist/adyen-terms-of-service.js +41 -38
- package/dist/adyen-transfer-instrument.js +38 -29
- package/dist/adyen-verification-status.js +44 -36
- package/dist/analytics-D2q0iFsS.js +61 -0
- package/dist/{bafinUtils-T6TnU7m4.js → bafinUtils-BmLu7dPk.js} +164 -10
- package/dist/basePatterns-BwdnMQxI.js +15 -0
- package/dist/bg-BG-CW9c658c.js +13 -0
- package/dist/bg-BG-CZ8v3rdy.js +30 -0
- package/dist/{bg-BG-Dlzl9Szn.js → bg-BG-D5192UVe.js} +1 -2
- package/dist/{bg-BG-NMIts2sa.js → bg-BG-QC5irNEG.js} +2 -4
- package/dist/commonValidators-DKV_Zthp.js +24 -0
- package/dist/{cs-CZ-BkyFDlAU.js → cs-CZ-DOqH0WeT.js} +1 -2
- package/dist/cs-CZ-Dx6momCa.js +30 -0
- package/dist/cs-CZ-dU9fnQ1g.js +13 -0
- package/dist/{cs-CZ-Csr_35T-.js → cs-CZ-t297LwYw.js} +2 -4
- package/dist/currency-BGwQyxBo.js +36 -0
- package/dist/{da-DK-B5KNtXL8.js → da-DK-B45X2VaJ.js} +1 -2
- package/dist/da-DK-BJ7aTPir.js +13 -0
- package/dist/{da-DK-Dm8o1giq.js → da-DK-BoQic3Gy.js} +2 -4
- package/dist/da-DK-D4H69PX3.js +30 -0
- package/dist/de-DE-C78RLE2G.js +13 -0
- package/dist/{de-DE-BA9tcpNQ.js → de-DE-CWvgMDqU.js} +1 -2
- package/dist/{de-DE-DMFaycio.js → de-DE-Dwagawx1.js} +2 -4
- package/dist/de-DE-wp5-H-ov.js +30 -0
- package/dist/dropinUtils-Bs4XZJuG.js +192 -0
- package/dist/el-GR-BZRKurtr.js +13 -0
- package/dist/{el-GR-DIhHT2q_.js → el-GR-C3rkK_oc.js} +1 -2
- package/dist/el-GR-CK2heqPJ.js +30 -0
- package/dist/{el-GR-CGeBAkDN.js → el-GR-CxwhV-TX.js} +2 -4
- package/dist/emitEvent-CzZf80Am.js +28 -0
- package/dist/{en-US-DX4NHkX-.js → en-US-BbAzROHT.js} +2 -4
- package/dist/{en-US-TrwIHFh-.js → en-US-CAm3meB1.js} +1 -2
- package/dist/{en-US-SbE0c1gn.js → en-US-DIdQJky-.js} +1 -2
- package/dist/en-US.instructions-Ddr7AO05.js +22 -0
- package/dist/{es-ES-pXHx3ODy.js → es-ES-Bsoco8Fj.js} +2 -4
- package/dist/es-ES-BtUSEzkE.js +13 -0
- package/dist/{es-ES-RXwbiHjS.js → es-ES-DKCCgVF8.js} +1 -2
- package/dist/es-ES-Ds3-DtqZ.js +30 -0
- package/dist/et-EE-BCnK305R.js +13 -0
- package/dist/{et-EE-ZssIqWkO.js → et-EE-Bc6ioJRG.js} +1 -2
- package/dist/et-EE-Co-8akjV.js +30 -0
- package/dist/{et-EE-QLVnr6Vl.js → et-EE-DdGlUpaQ.js} +2 -4
- package/dist/{fi-FI-DT351N-G.js → fi-FI-ClnsYt3L.js} +2 -4
- package/dist/fi-FI-Cvar63RH.js +13 -0
- package/dist/fi-FI-DPNeTsJS.js +30 -0
- package/dist/{fi-FI-DmiggQEL.js → fi-FI-Hhku9Lmc.js} +1 -2
- package/dist/fieldConfigurations-Yf8yD64w.js +458 -0
- package/dist/form-rules-DhbF2mY4.js +13 -0
- package/dist/fr-FR-B5543Fe-.js +13 -0
- package/dist/{fr-FR-N5wYE2BZ.js → fr-FR-BYuKsZIb.js} +1 -2
- package/dist/{fr-FR-BNXXNUX_.js → fr-FR-CJI0bIig.js} +2 -4
- package/dist/fr-FR-ChmNQciP.js +30 -0
- package/dist/getName-CNY8xRgy.js +41 -0
- package/dist/{hasDataChanged-e2EDb7Ni.js → hasDataChanged-BaS61ojo.js} +2 -2
- package/dist/{hr-HR-B8AZ4eHJ.js → hr-HR-C0yWizOX.js} +2 -4
- package/dist/{hr-HR-5iwKtfgh.js → hr-HR-CPO5Yw2B.js} +1 -2
- package/dist/hr-HR-DqC8Cgs6.js +30 -0
- package/dist/hr-HR-ZreFlbK9.js +13 -0
- package/dist/hu-HU-B3BihdGh.js +13 -0
- package/dist/hu-HU-BOanVlKb.js +30 -0
- package/dist/{hu-HU-Aq1LsWah.js → hu-HU-mo_0ULJG.js} +1 -2
- package/dist/{hu-HU-DRi6Dz9U.js → hu-HU-wnSie9tz.js} +2 -4
- package/dist/iframeWidget-wJ62Bpmz.js +234 -0
- package/dist/{payout-verification-instant-BIcnFP-p.js → instant-verification-Dvvkyfmp.js} +3 -3
- package/dist/isEmpty-DyzV_vaf.js +23 -0
- package/dist/{it-IT-BeYbInCQ.js → it-IT-BeC2Y1F8.js} +2 -4
- package/dist/it-IT-Dd6xGSe-.js +13 -0
- package/dist/{it-IT-8DEagvb2.js → it-IT-Nl57jui-.js} +1 -2
- package/dist/it-IT-eCrTB65E.js +30 -0
- package/dist/ja-JP-BJljbFIZ.js +30 -0
- package/dist/{ja-JP-BhS-_dIx.js → ja-JP-CbgaW99b.js} +2 -2
- package/dist/{ja-JP-BGAJQs1g.js → ja-JP-D3oQAH7z.js} +1 -2
- package/dist/{ja-JP-C1OQ16fo.js → ja-JP-YoU7mNrK.js} +2 -4
- package/dist/ja-JP-iTbqSPNL.js +13 -0
- package/dist/keys-BpNgnAsD.js +23 -0
- package/dist/{localizeDateString-VqxvPF9j.js → localizeDateString-CEnsnB3Q.js} +2 -2
- package/dist/{lt-LT-HZOWQKZT.js → lt-LT-CVasDmF3.js} +1 -2
- package/dist/lt-LT-DE-4IXNG.js +13 -0
- package/dist/{lt-LT-_MzAcXJo.js → lt-LT-DIe4cKlu.js} +2 -4
- package/dist/lt-LT-DckQGgoT.js +30 -0
- package/dist/lv-LV-CeivEZms.js +13 -0
- package/dist/lv-LV-DP9oRTFv.js +30 -0
- package/dist/{lv-LV-CRhXAjn6.js → lv-LV-DXgW5zWl.js} +2 -4
- package/dist/{lv-LV-F-Z4lDCV.js → lv-LV-Sbsv8-nD.js} +1 -2
- package/dist/{payout-verification-manual-DH9-DdlZ.js → manual-verification-BvZWqA00.js} +3 -3
- package/dist/mapExistingFile-BphSM_zL.js +231 -0
- package/dist/mapScriptLocalization-BgHu6D6K.js +72 -0
- package/dist/mapTransferInstrumentToPayoutAccount-C2sNhjfY.js +30 -0
- package/dist/{nl-NL-C-xUU2N3.js → nl-NL-BHkRnVrj.js} +1 -2
- package/dist/{nl-NL-Dbx0ZmI7.js → nl-NL-Cysslsh2.js} +2 -4
- package/dist/nl-NL-D2QKudfh.js +30 -0
- package/dist/nl-NL-DVENFpd5.js +13 -0
- package/dist/no-NO-C_snYWBc.js +30 -0
- package/dist/no-NO-Dn2UkdoI.js +13 -0
- package/dist/{no-NO-47ncaBZY.js → no-NO-kaAdT9B8.js} +1 -2
- package/dist/{no-NO-C0sfkp82.js → no-NO-zSnPtrDi.js} +2 -4
- package/dist/pl-PL-CQ6c2Qz_.js +30 -0
- package/dist/{pl-PL-CZLzkboH.js → pl-PL-DD8JN4Qf.js} +1 -2
- package/dist/pl-PL-DFAzuceF.js +13 -0
- package/dist/{pl-PL-DAPGaxWi.js → pl-PL-UB5J5JcB.js} +2 -4
- package/dist/pt-PT-C-hbNnsB.js +30 -0
- package/dist/{pt-PT-BY9rcwcF.js → pt-PT-CjsyP_OK.js} +2 -4
- package/dist/{pt-PT-CN4ws8N7.js → pt-PT-Xm-pm3mb.js} +1 -2
- package/dist/pt-PT-_o5xgnxS.js +13 -0
- package/dist/{resolveEnvironment-CDg6ksvB.js → resolveEnvironment-DWnAnjxd.js} +3 -3
- package/dist/ro-RO-BrTWk1Ui.js +30 -0
- package/dist/{ro-RO-RylOvc5g.js → ro-RO-C3m6aJVP.js} +1 -2
- package/dist/{ro-RO-DJLWmWZ4.js → ro-RO-C8yYXQc_.js} +2 -4
- package/dist/ro-RO-D7c_Rj8V.js +13 -0
- package/dist/{rules-BnJSV_NR.js → rules-V2n1q9wP.js} +5 -2
- package/dist/sk-SK-BBSuh2fA.js +13 -0
- package/dist/sk-SK-BTFtoPmI.js +30 -0
- package/dist/{sk-SK-BfJKbtGy.js → sk-SK-BVc-vNQm.js} +1 -2
- package/dist/{sk-SK-B7o3L57C.js → sk-SK-DbOE9C6n.js} +2 -4
- package/dist/sl-SI-BLTuWNf5.js +13 -0
- package/dist/sl-SI-BhVTSmhQ.js +30 -0
- package/dist/{sl-SI-C8CMAkD0.js → sl-SI-Br0UEUPL.js} +2 -4
- package/dist/{sl-SI-DklUFzaY.js → sl-SI-D_rqR0D7.js} +1 -2
- package/dist/style.css +3272 -3254
- package/dist/styles-CLV89_hH.js +3272 -3254
- package/dist/sv-SE-66rqYTxi.js +30 -0
- package/dist/{sv-SE-qduyDIzY.js → sv-SE-B3zoXMuH.js} +1 -2
- package/dist/sv-SE-BUfESAQK.js +13 -0
- package/dist/{sv-SE-Bwh0wKFk.js → sv-SE-BtXmvxx4.js} +2 -4
- package/dist/translation-CPyYrNAr.js +472 -0
- package/dist/types/api/industryCodes/industryCodes.types.d.ts +2 -0
- package/dist/types/api/industryCodes/useIndustryCodes.d.ts +6 -0
- package/dist/types/api/queryKeys.d.ts +2 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +3 -3
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +0 -9
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +0 -1
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +6 -0
- package/dist/types/components/Business/forms/rules.d.ts +1 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -2
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +1 -0
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +0 -1
- package/dist/types/components/EmbeddedDropins/AcceptTermsOfServiceComponent/AcceptTermsOfServiceComponent.d.ts +4 -3
- package/dist/types/components/Individual/forms/Individual/Individual.d.ts +4 -0
- package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +0 -5
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/Trust.d.ts +1 -0
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +1 -2
- package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +2 -1
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +2 -1
- package/dist/types/components/ui/atoms/ActionsMenu/ActionsMenu.d.ts +2 -1
- package/dist/types/components/ui/atoms/Button/Button.types.d.ts +3 -3
- package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +2 -1
- package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts +0 -14
- package/dist/types/components/ui/atoms/RadioWithLabel/RadioWithLabel.d.ts +2 -1
- package/dist/types/components/ui/atoms/SelectList/SelectList.d.ts +1 -0
- package/dist/types/components/ui/atoms/StepProgressIndicator/StepProgressIndicator.d.ts +2 -1
- package/dist/types/components/ui/atoms/StructuredList/StructuredList.d.ts +2 -1
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +0 -12
- package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +3 -2
- package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +1 -1
- package/dist/types/components/ui/layout/StackLayout/StackLayout.d.ts +2 -1
- package/dist/types/components/ui/molecules/InputCurrency/InputCurrency.d.ts +2 -1
- package/dist/types/components/ui/molecules/InputEmail/InputEmail.d.ts +2 -1
- package/dist/types/components/ui/molecules/InputGroup/InputGroup.d.ts +2 -1
- package/dist/types/components/ui/molecules/InputTelephone/InputTelephone.d.ts +2 -1
- package/dist/types/components/ui/molecules/InputText/InputText.d.ts +2 -0
- package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +0 -1
- package/dist/types/components/ui/molecules/Tabs/Tabs.d.ts +1 -1
- package/dist/types/context/StateContext/types.d.ts +1 -1
- package/dist/types/core/models/api/accountIdentification.d.ts +5 -4
- package/dist/types/core/models/api/contracts.d.ts +1 -1
- package/dist/types/core/process-field-configurations.d.ts +14 -3
- package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -1
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +1 -5
- package/dist/types/embeds/emitEvent.d.ts +14 -0
- package/dist/types/embeds/individual/adyen-individual.types.d.ts +2 -2
- package/dist/types/embeds/manage-individual/AdyenManageIndividual.d.ts +1 -1
- package/dist/types/embeds/manage-individual/adyen-manage-individual.types.d.ts +1 -1
- package/dist/types/embeds/manage-terms-of-service/AdyenManageTermsOfService.d.ts +1 -1
- package/dist/types/embeds/manage-terms-of-service/adyen-manage-terms-of-service.types.d.ts +1 -1
- package/dist/types/embeds/manage-transfer-instruments/AdyenManageTransferInstrument.d.ts +3 -4
- package/dist/types/embeds/manage-transfer-instruments/adyen-manage-transfer-instruments.types.d.ts +3 -4
- package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +4 -3
- package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +2 -2
- package/dist/types/embeds/verification-status/adyen-verification-status.types.d.ts +3 -3
- package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +2 -1
- package/dist/types/hooks/introduction/useShouldShowIntroduction.d.ts +2 -1
- package/dist/types/language/utils.d.ts +1 -1
- package/dist/types/utils/addLinkedFields.d.ts +7 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/formUtils.d.ts +1 -1
- package/dist/types/utils/getDisplayErrorMessage.d.ts +1 -1
- package/dist/types/utils/getName.d.ts +1 -1
- package/dist/types/utils/makeSelectItemForRole.d.ts +1 -1
- package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +5 -0
- package/dist/types/utils/translation.d.ts +6 -0
- package/dist/types-CAznNNSI.js +160 -0
- package/dist/types-D1xSH_ap.js +74 -0
- package/dist/types-czQuzOK4.js +64 -0
- package/dist/useAssociatedLegalEntity-zrvFkm6w.js +33 -0
- package/dist/useDataset-UxGyu2Za.js +120 -0
- package/dist/useForm-Dah8AZ3S.js +1694 -0
- package/dist/useFormContext-beqGS11A.js +23 -0
- package/dist/useGlobalData-C9KOnjRc.js +205 -0
- package/dist/{useMultiForm-Cbf_MGdG.js → useMultiForm-4axf9sa3.js} +4 -2
- package/dist/{useOnboardingStatus-bmHIDRGr.js → useOnboardingStatus-B-G3ygsd.js} +2 -2
- package/dist/useScenarios-Bs-K4CKb.js +46 -0
- package/dist/{useTermsOfServiceStatus-CMtyaC84.js → useTermsOfServiceStatus-BsBOTabo.js} +2 -2
- package/dist/useToastContext-BA6TVroR.js +51 -0
- package/dist/useUnincorporatedPartnershipMembers-DHPQPPps.js +99 -0
- package/dist/utils-7TgDVOvi.js +29 -0
- package/dist/{utils-B-s8erbM.js → utils-C_6T21UY.js} +46 -4
- package/dist/utils-DNSfZiio.js +70 -0
- package/dist/utils-DxPqN-F5.js +159 -0
- package/dist/{validate-CNlNB2Sq.js → validate-BCgpU6PK.js} +2 -2
- package/dist/validate-CD3D7QeQ.js +382 -0
- package/dist/validate-nbcWPtZJ.js +605 -0
- package/dist/validationError-CInDfoP_.js +86 -0
- package/package.json +44 -45
- package/dist/BusinessDetailsDropin-DR8YA-wz.js +0 -2136
- package/dist/BusinessFinancingComponent-saZxipq7.js +0 -38
- package/dist/BusinessFinancingPage-D7NMT1SV.js +0 -35
- package/dist/CreateIndividualComponent-B_6j8j5H.js +0 -64
- package/dist/CreateTransferInstrumentComponent-DgZq6f2m.js +0 -55
- package/dist/LegalRepresentativeDetailsPage-R9h6n8e1.js +0 -55
- package/dist/ManageIndividualComponent-D3EZWpKz.js +0 -42
- package/dist/ManageTermsOfServiceComponent-C2BMpyzo.js +0 -40
- package/dist/RootIndividualDetailsPage-DGpYhDWo.js +0 -71
- package/dist/SoleProprietorshipPage-CF_TKUfD.js +0 -44
- package/dist/StoreProvider-pdSV8sgb.js +0 -31920
- package/dist/TrustMemberCompanyPage-6_h3PnmT.js +0 -54
- package/dist/TrustMemberIndividualPage-DPlQ6OnQ.js +0 -60
- package/dist/UnincorporatedPartnershipIndividualPage-Bgcip8u6.js +0 -60
- package/dist/UnincorporatedPartnershipMemberCompanyPage-k5Cc0TWw.js +0 -57
- package/dist/VerificationErrorAlert-BEgXW4gA.js +0 -77
- package/dist/bg-BG-BvSUDgGF.js +0 -13
- package/dist/cs-CZ-y4mvq4Lv.js +0 -13
- package/dist/da-DK-qgQOVjDp.js +0 -13
- package/dist/de-DE-pSdsxBpQ.js +0 -13
- package/dist/el-GR-Bvjk5Sw8.js +0 -13
- package/dist/en-US-Bq2Twy6x.js +0 -54
- package/dist/es-ES-Dy1uR2H_.js +0 -13
- package/dist/et-EE-d9V24rcf.js +0 -13
- package/dist/fi-FI-B0fnAFV2.js +0 -13
- package/dist/fr-FR-BoKzVp2q.js +0 -13
- package/dist/getFieldsWithExistingData-BPKk0HGd.js +0 -22
- package/dist/hr-HR-CF0AHQzi.js +0 -13
- package/dist/hu-HU-CSPhOvLC.js +0 -13
- package/dist/it-IT-BH-eqIKH.js +0 -13
- package/dist/ja-JP-B3yqM_FM.js +0 -13
- package/dist/lt-LT-Lzl_Cbw-.js +0 -13
- package/dist/lv-LV-y00wN1pj.js +0 -13
- package/dist/mapFinancialReportsToFinancialInformation-iVvcsDNu.js +0 -66
- package/dist/mapScriptLocalization-H2Re3k5X.js +0 -35
- package/dist/nl-NL-DmnFXAQC.js +0 -13
- package/dist/no-NO-DbvFfP96.js +0 -13
- package/dist/pl-PL--mmxopYA.js +0 -13
- package/dist/pt-PT-BVzXBFp7.js +0 -13
- package/dist/ro-RO-Cdmevo9A.js +0 -13
- package/dist/ru-RU-FZb2upqh.js +0 -13
- package/dist/sk-SK-nfeuTcY5.js +0 -13
- package/dist/sl-SI-DUTZDqkP.js +0 -13
- package/dist/sv-SE-BTx2XKAp.js +0 -13
- package/dist/useUpdateLegalEntity-D91nO-DU.js +0 -57
- package/dist/validate-DhvbSKV4.js +0 -40
- package/dist/zh-CN-wUb4MmTZ.js +0 -13
- package/dist/zh-TW-DNTXHLKa.js +0 -13
|
@@ -2,15 +2,19 @@
|
|
|
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] = "43585b7b-ec66-4d7e-9802-0933f2d5f26a", e._sentryDebugIdIdentifier = "sentry-dbid-43585b7b-ec66-4d7e-9802-0933f2d5f26a");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useState } from "preact/hooks";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { b as useApiContext, aA as useMutation, k as httpPost, a as useTranslation } from "./StoreProvider-B_tFiIdr.js";
|
|
13
|
+
import { L as LoaderWrapper, C as Checkbox } from "./useForm-Dah8AZ3S.js";
|
|
14
|
+
import { F as FormHeader } from "./CountryField-B2dh1VXh.js";
|
|
15
|
+
import { u as useToastContext } from "./useToastContext-BA6TVroR.js";
|
|
16
|
+
import { A as ActionBar } from "./FormNavigation-UiyNK4Uw.js";
|
|
17
|
+
import { D as DropinLayout } from "./OnboardingDropinComponent-BYFTAjkC.js";
|
|
14
18
|
const confirmReview = async (legalEntityId, baseUrl) => {
|
|
15
19
|
return httpPost({
|
|
16
20
|
baseUrl,
|
|
@@ -27,7 +31,7 @@ const useConfirmReview = (options) => {
|
|
|
27
31
|
});
|
|
28
32
|
};
|
|
29
33
|
function Review({ handleHomeClick }) {
|
|
30
|
-
const { t } = useTranslation();
|
|
34
|
+
const { t } = useTranslation("common");
|
|
31
35
|
const [loadingStatus, setLoadingStatus] = useState();
|
|
32
36
|
const { showToast } = useToastContext();
|
|
33
37
|
const [hasConfirmed, setHasConfirmed] = useState(false);
|
|
@@ -2,19 +2,41 @@
|
|
|
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] = "93d4adcc-8fba-450f-b9de-bbaa60a0554d", e._sentryDebugIdIdentifier = "sentry-dbid-93d4adcc-8fba-450f-b9de-bbaa60a0554d");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
+
import { a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper } from "./translation-CPyYrNAr.js";
|
|
10
11
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
12
|
+
import { a as useTranslation, X as useExperimentsContext, x as Typography, m as useSettingsContext, u as useI18nContext, M as TaskTypes, y as LegalEntityTypes, b as useApiContext, U as useAnalyticsContext, aC as useQueryClient, bD as businessDetailsDocumentMapping, bu as businessDetailsApiKeyMapping, c as useLegalEntity, R as ROOT_LE, L as Loader, z as isPartOfTrustFromLegalEntity, J as EntityTypes, g as getLegalEntityCountry } from "./StoreProvider-B_tFiIdr.js";
|
|
13
|
+
import { r as resolveFieldMetadata, a as useAccountHolder, b as useCapabilityProblems, g as getProblemsForEntity } from "./fieldConfigurations-Yf8yD64w.js";
|
|
14
|
+
import { v as verifiedBusiness, u as useDebouncedState, l as legalFormFieldMetadata, s as stockTickerSymbolFieldMetadata, a as stockISINFieldMetadata, b as stockExchangeMICFieldMetadata, d as dateOfIncorporationFieldMetadata, e as eInvoicingCodeFieldMetadata, V as VerifiedBusinessCard, L as LEGAL_FORM_FIELDS, E as EInvoicingCodeField, c as EINVOICING_CODE_FIELD, D as DATE_OF_INCORPORATION_FIELD, f as DateOfIncorporationField, S as STOCK_EXCHANGE_MIC_FIELD, g as StockExchangeMICField, h as STOCK_ISIN_FIELD, i as StockISINField, j as STOCK_TICKER_SYMBOL_FIELD, k as StockTickerSymbolField, A as ADDITIONAL_INFORMATION_FORM_ID, m as localizedLegalCompanyNameFieldConfig, n as defaultFieldMetadata$1, o as defaultFieldConfig$1, p as useLegalCompanyNameField, C as COUNTRY_OF_GOVERNING_LAW_FIELD, q as CountryOfGoverningLawField, r as isBankAccountRequestedForOrganization, t as companyTypeOptions, w as useCompanyTypeExamples, x as companyTypeMetadata, F as FinancialInformation, P as ProofOfOwnershipDocument, y as ProofOfSignatoryDocument, z as ProofOfDirectorDocument, R as RegistrationDocument, T as TaxDocument, B as BusinessSelectionMultiform, G as CountryOfGoverningLawFieldValidation, H as CountryFieldValidation, I as getForms, J as mapApiDocumentToBusinessDetailsDocuments, K as mapLegalEntityToBusinessDetailsSchema, M as financialInfoValidationWithEmployeesRules, N as CompanyStructureValidation, O as tinMatched, Q as businessMismatchModalOpen, U as formatDataForSummary, W as submit, X as useCompanySearch, Y as useVerifyTin, Z as businessDetailsFieldsPerScenario, _ as BusinessDetailsDropin } from "./BusinessDetailsDropin-BGsHimRA.js";
|
|
13
15
|
import { useEffect, useMemo, useCallback, useState } from "preact/hooks";
|
|
14
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./
|
|
15
|
-
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-
|
|
16
|
-
import { u as
|
|
17
|
-
import { g as
|
|
16
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./RadioGroup-DwMTx-4B.js";
|
|
17
|
+
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-Df3CEE-c.js";
|
|
18
|
+
import { u as useToastContext } from "./useToastContext-BA6TVroR.js";
|
|
19
|
+
import { g as getAssociatedLeAnalyticsPayload } from "./analytics-D2q0iFsS.js";
|
|
20
|
+
import { d as documentApiUtils, e as composePerScenarioFormConfigurations, b as getPropsFromConfigurations } from "./validate-nbcWPtZJ.js";
|
|
21
|
+
import { a as addValidityToForms, t as trackNavigation, u as useFormComposer } from "./dropinUtils-Bs4XZJuG.js";
|
|
22
|
+
import { u as useMultiForm } from "./useMultiForm-4axf9sa3.js";
|
|
23
|
+
import { b as useScenarioConfiguration } from "./mapExistingFile-BphSM_zL.js";
|
|
24
|
+
import { C as Confirm } from "./Confirm-Dj-igSqL.js";
|
|
25
|
+
import { t as taxInformationDefaultFieldMetadata, b as taxInformationDefaultFieldConfig, c as TAX_INFORMATION_FIELD, T as TaxInformationField, M as MemoizedDocumentUpload, C as COUNTRIES_USING_COMPANY_SEARCH, r as rules, g as getFieldsWithExistingData } from "./TaxInformationField-qCHTQShR.js";
|
|
26
|
+
import { u as useFormContext } from "./useFormContext-beqGS11A.js";
|
|
27
|
+
import { C as CompanyTypesValues } from "./bafinUtils-BmLu7dPk.js";
|
|
28
|
+
import { v as vatAbsenceReasonMetadata, d as defaultFieldMetadata, a as defaultFieldConfig, r as registrationNumberDefaultFieldMetadata, b as registrationNumberDefaultFieldConfig, c as doingBusinessAsFieldMetadata, e as doingBusinessAsAbsentFieldMetadata, D as DBA_NAME_FIELD, f as DBANameField, B as BUSINESS_REGISTRATION_NUMBER_FIELD, g as BusinessRegistrationNumberField, V as VAT_NUMBER_FIELD, h as VatNumberField, M as MemoizedConstitutionalDocument, i as exemptFromRegistrationNumberDefaultFieldMetadata } from "./RegistrationAddress-CcHFAuWw.js";
|
|
29
|
+
import { c as useAddressCleanse, f as formatAddressForCleanse, m as mapAddressData, o as operationalAddressIsSameIds, A as Address, g as getNestedTrustedFields, S as STATE_FIELD, d as StateField } from "./Address-DrcGzzbw.js";
|
|
30
|
+
import { F as Field, C as Checkbox } from "./useForm-Dah8AZ3S.js";
|
|
31
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils, F as FormHeader, E as ErrorPanel, C as CountryField, a as COUNTRY_FIELD, d as summaryStep } from "./CountryField-B2dh1VXh.js";
|
|
32
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry } from "./utils-DxPqN-F5.js";
|
|
33
|
+
import { a as datasetUtilities } from "./useDataset-UxGyu2Za.js";
|
|
34
|
+
import { L as LegalFormField } from "./Currency-BAGjlBuR.js";
|
|
35
|
+
import { L as Link } from "./Link-Dc3z0YyP.js";
|
|
36
|
+
import { S as SettingNames, I as InputText } from "./InputText-Ds8RrvJq.js";
|
|
37
|
+
import { u as useAllowedCountries } from "./mapScriptLocalization-BgHu6D6K.js";
|
|
38
|
+
import { g as defaultFieldMetadataV4, h as defaultFieldMetadata$2, j as defaultFieldConfigV4, k as defaultFieldConfig$2, L as LEGAL_COMPANY_NAME_FIELD } from "./OnboardingDropinComponent-BYFTAjkC.js";
|
|
39
|
+
import { E as EntityTypeRadioGroupCard } from "./utils-C_6T21UY.js";
|
|
18
40
|
function AdditionalInformationMultiform({
|
|
19
41
|
id,
|
|
20
42
|
country,
|
|
@@ -25,7 +47,8 @@ function AdditionalInformationMultiform({
|
|
|
25
47
|
validationErrors = {},
|
|
26
48
|
verificationErrors = {}
|
|
27
49
|
}) {
|
|
28
|
-
const { t, i18n } = useTranslation(
|
|
50
|
+
const { t, i18n } = useTranslation("business");
|
|
51
|
+
const { t: commonT } = useTranslation("common");
|
|
29
52
|
const { form } = useFormContext();
|
|
30
53
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
31
54
|
const verifiedBusiness$1 = verifiedBusiness.value;
|
|
@@ -189,7 +212,7 @@ function AdditionalInformationMultiform({
|
|
|
189
212
|
return acc;
|
|
190
213
|
}
|
|
191
214
|
}, initialProps);
|
|
192
|
-
return createFormUtils(formUtilProps ?? initialProps,
|
|
215
|
+
return createFormUtils(formUtilProps ?? initialProps, commonT);
|
|
193
216
|
}, [
|
|
194
217
|
companyType,
|
|
195
218
|
country,
|
|
@@ -203,7 +226,7 @@ function AdditionalInformationMultiform({
|
|
|
203
226
|
form.trustedFields?.additionalInformation,
|
|
204
227
|
form.valid?.additionalInformation,
|
|
205
228
|
handleChangeFor,
|
|
206
|
-
|
|
229
|
+
commonT,
|
|
207
230
|
isExperimentEnabled,
|
|
208
231
|
validationErrors,
|
|
209
232
|
verificationErrors
|
|
@@ -224,8 +247,8 @@ function AdditionalInformationMultiform({
|
|
|
224
247
|
/* @__PURE__ */ jsx(
|
|
225
248
|
FormHeader,
|
|
226
249
|
{
|
|
227
|
-
heading:
|
|
228
|
-
description: description ?
|
|
250
|
+
heading: commonT(($) => $[heading]),
|
|
251
|
+
description: description ? commonT(($) => $[description]) : void 0
|
|
229
252
|
}
|
|
230
253
|
),
|
|
231
254
|
/* @__PURE__ */ jsx(
|
|
@@ -615,7 +638,7 @@ function AdditionalInformationMultiform({
|
|
|
615
638
|
...COUNTRY_OF_GOVERNING_LAW_FIELD
|
|
616
639
|
];
|
|
617
640
|
const FormDescription = ({ description }) => {
|
|
618
|
-
const { t } = useTranslation();
|
|
641
|
+
const { t } = useTranslation("common");
|
|
619
642
|
return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-header__description", children: [
|
|
620
643
|
t(($) => $[description]),
|
|
621
644
|
" ",
|
|
@@ -633,7 +656,7 @@ function BasicInformationMultiform({
|
|
|
633
656
|
disableCountry = false,
|
|
634
657
|
isTopLevelEntity = true
|
|
635
658
|
}) {
|
|
636
|
-
const { t } = useTranslation();
|
|
659
|
+
const { t } = useTranslation("common");
|
|
637
660
|
const { isSettingEnabled } = useSettingsContext();
|
|
638
661
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
639
662
|
const { form } = useFormContext();
|
|
@@ -965,7 +988,7 @@ function CompanyStructureMultiform({
|
|
|
965
988
|
validationErrors = {},
|
|
966
989
|
verificationErrors = {}
|
|
967
990
|
}) {
|
|
968
|
-
const { t } = useTranslation();
|
|
991
|
+
const { t } = useTranslation("common");
|
|
969
992
|
const { form } = useFormContext();
|
|
970
993
|
const { accountHolder } = useAccountHolder();
|
|
971
994
|
const { isSettingEnabled } = useSettingsContext();
|
|
@@ -1295,7 +1318,7 @@ function buildRequiredForms({
|
|
|
1295
1318
|
return false;
|
|
1296
1319
|
}
|
|
1297
1320
|
if (requiredFields || optionalFields) {
|
|
1298
|
-
return Boolean(requiredFields?.[formId]) || Boolean(optionalFields?.[formId])
|
|
1321
|
+
return Boolean(requiredFields?.[formId]) || Boolean(optionalFields?.[formId]);
|
|
1299
1322
|
}
|
|
1300
1323
|
return true;
|
|
1301
1324
|
});
|
|
@@ -1518,22 +1541,20 @@ function BusinessDetailsMultiformDropin({
|
|
|
1518
1541
|
]
|
|
1519
1542
|
);
|
|
1520
1543
|
useEffect(() => {
|
|
1521
|
-
const props = getPropsFromConfigurations(
|
|
1522
|
-
fieldConfigurations,
|
|
1523
|
-
defaultForms,
|
|
1524
|
-
problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
|
|
1525
|
-
problems?.missingData ?? [],
|
|
1526
|
-
getFieldsWithExistingData(
|
|
1544
|
+
const props = getPropsFromConfigurations({
|
|
1545
|
+
scenarioConfiguration: fieldConfigurations,
|
|
1546
|
+
forms: defaultForms,
|
|
1547
|
+
remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
|
|
1548
|
+
dataMissingErrors: problems?.missingData ?? [],
|
|
1549
|
+
fieldsWithExistingData: getFieldsWithExistingData(
|
|
1527
1550
|
legalEntityResponse,
|
|
1528
1551
|
businessDetailsApiKeyMapping,
|
|
1529
1552
|
businessDetailsDocumentMapping
|
|
1530
1553
|
),
|
|
1531
1554
|
customRules,
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
trustedFields
|
|
1536
|
-
);
|
|
1555
|
+
legalEntityType: legalEntityResponse?.type,
|
|
1556
|
+
legalEntityTrustedFields: trustedFields
|
|
1557
|
+
});
|
|
1537
1558
|
setDerivedProps(props);
|
|
1538
1559
|
}, [
|
|
1539
1560
|
customRules,
|
|
@@ -1549,6 +1570,9 @@ function BusinessDetailsMultiformDropin({
|
|
|
1549
1570
|
setCountry(multiForm.data?.basicInformation?.country);
|
|
1550
1571
|
setPrevCountry(multiForm.data.basicInformation?.country);
|
|
1551
1572
|
setTrustedFields(void 0);
|
|
1573
|
+
verifiedBusiness.value = void 0;
|
|
1574
|
+
tinMatched.value = void 0;
|
|
1575
|
+
businessMismatchModalOpen.value = false;
|
|
1552
1576
|
}
|
|
1553
1577
|
const [forms, setForms] = useState(
|
|
1554
1578
|
buildRequiredForms({
|
|
@@ -1559,14 +1583,15 @@ function BusinessDetailsMultiformDropin({
|
|
|
1559
1583
|
optionalFields: derivedProps?.optionalFields,
|
|
1560
1584
|
isValid: multiForm.isValid ?? {},
|
|
1561
1585
|
problems
|
|
1586
|
+
},
|
|
1587
|
+
options: {
|
|
1588
|
+
hasNoSearchResults: false,
|
|
1589
|
+
verifiedBusiness: verifiedBusiness.value
|
|
1562
1590
|
}
|
|
1563
1591
|
})
|
|
1564
1592
|
);
|
|
1565
1593
|
const updateForms = useCallback(
|
|
1566
|
-
({
|
|
1567
|
-
searchResults,
|
|
1568
|
-
verifiedBusiness: verifiedBusiness2
|
|
1569
|
-
}) => {
|
|
1594
|
+
({ searchResults }) => {
|
|
1570
1595
|
const updatedForms = buildRequiredForms({
|
|
1571
1596
|
config: {
|
|
1572
1597
|
country,
|
|
@@ -1578,7 +1603,7 @@ function BusinessDetailsMultiformDropin({
|
|
|
1578
1603
|
},
|
|
1579
1604
|
options: {
|
|
1580
1605
|
hasNoSearchResults: searchResults && !searchResults.length,
|
|
1581
|
-
verifiedBusiness:
|
|
1606
|
+
verifiedBusiness: verifiedBusiness.value
|
|
1582
1607
|
}
|
|
1583
1608
|
});
|
|
1584
1609
|
setForms(updatedForms);
|
|
@@ -1594,14 +1619,8 @@ function BusinessDetailsMultiformDropin({
|
|
|
1594
1619
|
]
|
|
1595
1620
|
);
|
|
1596
1621
|
const summaryData = useMemo(
|
|
1597
|
-
() => formatDataForSummary(
|
|
1598
|
-
|
|
1599
|
-
forms,
|
|
1600
|
-
derivedProps?.labels,
|
|
1601
|
-
i18n,
|
|
1602
|
-
isExperimentEnabled
|
|
1603
|
-
),
|
|
1604
|
-
[derivedProps?.labels, multiForm.data, forms, i18n, isExperimentEnabled]
|
|
1622
|
+
() => formatDataForSummary(multiForm.data, forms, i18n, isExperimentEnabled),
|
|
1623
|
+
[multiForm.data, forms, i18n, isExperimentEnabled]
|
|
1605
1624
|
);
|
|
1606
1625
|
const associatedLeTrackingParams = useMemo(
|
|
1607
1626
|
() => getAssociatedLeAnalyticsPayload({
|
|
@@ -1737,8 +1756,7 @@ function BusinessDetailsMultiformDropin({
|
|
|
1737
1756
|
}
|
|
1738
1757
|
case "businessSelection": {
|
|
1739
1758
|
const currentForms = updateForms({
|
|
1740
|
-
searchResults: companySearchResponse?.results
|
|
1741
|
-
verifiedBusiness: verifiedBusiness.value
|
|
1759
|
+
searchResults: companySearchResponse?.results
|
|
1742
1760
|
});
|
|
1743
1761
|
return handleNextClick(currentForms);
|
|
1744
1762
|
}
|
|
@@ -1748,8 +1766,7 @@ function BusinessDetailsMultiformDropin({
|
|
|
1748
1766
|
};
|
|
1749
1767
|
useEffect(() => {
|
|
1750
1768
|
updateForms({
|
|
1751
|
-
searchResults: companySearchResponse?.results
|
|
1752
|
-
verifiedBusiness: verifiedBusiness.value
|
|
1769
|
+
searchResults: companySearchResponse?.results
|
|
1753
1770
|
});
|
|
1754
1771
|
}, [updateForms, companySearchResponse?.results]);
|
|
1755
1772
|
return /* @__PURE__ */ jsx(FormContextProvider, { form: multiForm, children: /* @__PURE__ */ jsxs(
|
|
@@ -1809,10 +1826,14 @@ const RootBusinessDetailsPage = ({
|
|
|
1809
1826
|
onSubmit,
|
|
1810
1827
|
handleHomeClick
|
|
1811
1828
|
}) => {
|
|
1829
|
+
const { i18n } = useTranslation();
|
|
1812
1830
|
const { accountHolder } = useAccountHolder();
|
|
1813
1831
|
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
1814
1832
|
const capabilityProblems = useCapabilityProblems();
|
|
1815
1833
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
1834
|
+
addResourceBundles(i18n, i18n.language, [
|
|
1835
|
+
{ ns: "business", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-9uVrFuHv.js"), "../language/cs-CZ.json": () => import("./cs-CZ-Wzc382q6.js"), "../language/da-DK.json": () => import("./da-DK-CeNMXUfE.js"), "../language/de-DE.json": () => import("./de-DE-JI-7mvxy.js"), "../language/el-GR.json": () => import("./el-GR-DfNOPkLq.js"), "../language/en-US.json": () => import("./en-US-DHq7VYFs.js"), "../language/es-ES.json": () => import("./es-ES-DOVPTeyf.js"), "../language/et-EE.json": () => import("./et-EE-BJIsPOnh.js"), "../language/fi-FI.json": () => import("./fi-FI-D522KHGk.js"), "../language/fr-FR.json": () => import("./fr-FR-DInQKkTd.js"), "../language/hr-HR.json": () => import("./hr-HR-DzS44Gpv.js"), "../language/hu-HU.json": () => import("./hu-HU-xCvNM5TU.js"), "../language/it-IT.json": () => import("./it-IT-CjEYONJg.js"), "../language/ja-JP.json": () => import("./ja-JP-BUz3qN-V.js"), "../language/lt-LT.json": () => import("./lt-LT-B6CJ4ULI.js"), "../language/lv-LV.json": () => import("./lv-LV-DTtuyfHS.js"), "../language/nl-NL.json": () => import("./nl-NL-Zcq0bXd-.js"), "../language/no-NO.json": () => import("./no-NO-BxReX6oF.js"), "../language/pl-PL.json": () => import("./pl-PL-T6uD5--R.js"), "../language/pt-PT.json": () => import("./pt-PT-N0njcfLO.js"), "../language/ro-RO.json": () => import("./ro-RO-Ic1SzBgx.js"), "../language/sk-SK.json": () => import("./sk-SK-CiD0FeLN.js"), "../language/sl-SI.json": () => import("./sl-SI-MZoDApq9.js"), "../language/sv-SE.json": () => import("./sv-SE-DCFSf4Oj.js") }), `../language/${i18n.language}.json`, 3) }
|
|
1836
|
+
]);
|
|
1816
1837
|
if (!rootLe) {
|
|
1817
1838
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
1818
1839
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
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] = "54116e8e-86db-4bbe-856e-77781cde5632", e._sentryDebugIdIdentifier = "sentry-dbid-54116e8e-86db-4bbe-856e-77781cde5632");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper } from "./translation-CPyYrNAr.js";
|
|
11
|
+
import { jsx } from "preact/jsx-runtime";
|
|
12
|
+
import { c as useLegalEntity, R as ROOT_LE, X as useExperimentsContext, a as useTranslation, L as Loader, g as getLegalEntityCountry, z as isPartOfTrustFromLegalEntity, J as EntityTypes, ag as isOnfidoAutofillFlowEnabled, W as noop, M as TaskTypes } from "./StoreProvider-B_tFiIdr.js";
|
|
13
|
+
import { b as useCapabilityProblems, a as useAccountHolder, g as getProblemsForEntity } from "./fieldConfigurations-Yf8yD64w.js";
|
|
14
|
+
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-CJLptmj_.js";
|
|
15
|
+
function RootIndividualDetailsPage({
|
|
16
|
+
asModal = false,
|
|
17
|
+
hideSidebar = false,
|
|
18
|
+
isTargetLegalEntityType = false,
|
|
19
|
+
onSubmit,
|
|
20
|
+
trustedFields,
|
|
21
|
+
trustedFieldsProvider,
|
|
22
|
+
/** below from {@link DropinProps} */
|
|
23
|
+
handleBackClick,
|
|
24
|
+
handleCloseClick,
|
|
25
|
+
handleHomeClick = noop
|
|
26
|
+
}) {
|
|
27
|
+
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
28
|
+
const capabilityProblems = useCapabilityProblems();
|
|
29
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
30
|
+
const { accountHolder } = useAccountHolder();
|
|
31
|
+
const { i18n } = useTranslation();
|
|
32
|
+
addResourceBundles(i18n, i18n.language, [
|
|
33
|
+
{ ns: "individual", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-BYkC3yKf.js"), "../language/cs-CZ.json": () => import("./cs-CZ-zTkICtXj.js"), "../language/da-DK.json": () => import("./da-DK-D0N1TVVU.js"), "../language/de-DE.json": () => import("./de-DE-Dtuu-nE7.js"), "../language/el-GR.json": () => import("./el-GR-DaO38A1s.js"), "../language/en-US.json": () => import("./en-US-546hB2Wn.js"), "../language/es-ES.json": () => import("./es-ES-BsQpwaPN.js"), "../language/et-EE.json": () => import("./et-EE-DF_GqBgK.js"), "../language/fi-FI.json": () => import("./fi-FI-BJ9RzrL3.js"), "../language/fr-FR.json": () => import("./fr-FR-CNR5-s9g.js"), "../language/hr-HR.json": () => import("./hr-HR-CjA4MWAU.js"), "../language/hu-HU.json": () => import("./hu-HU-NhwFr6o-.js"), "../language/it-IT.json": () => import("./it-IT-BV9K87FK.js"), "../language/ja-JP.json": () => import("./ja-JP-DXcP0ojZ.js"), "../language/lt-LT.json": () => import("./lt-LT-tXTApHm2.js"), "../language/lv-LV.json": () => import("./lv-LV-DSaQNC67.js"), "../language/nl-NL.json": () => import("./nl-NL-DywVQ9km.js"), "../language/no-NO.json": () => import("./no-NO-B8oxqfNI.js"), "../language/pl-PL.json": () => import("./pl-PL-C89s21hn.js"), "../language/pt-PT.json": () => import("./pt-PT-BvK00TeI.js"), "../language/ro-RO.json": () => import("./ro-RO-CpGd9emB.js"), "../language/sk-SK.json": () => import("./sk-SK-DlX5KvBV.js"), "../language/sl-SI.json": () => import("./sl-SI-NI2OJAvm.js"), "../language/sv-SE.json": () => import("./sv-SE-CAZpDX9G.js") }), `../language/${i18n.language}.json`, 3) }
|
|
34
|
+
]);
|
|
35
|
+
if (!rootLe) {
|
|
36
|
+
return /* @__PURE__ */ jsx(Loader, {});
|
|
37
|
+
}
|
|
38
|
+
const country = getLegalEntityCountry(rootLe);
|
|
39
|
+
const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(rootLe);
|
|
40
|
+
const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, rootLe.id) : void 0;
|
|
41
|
+
const isOnfidoAutofillFlow = isOnfidoAutofillFlowEnabled(
|
|
42
|
+
country,
|
|
43
|
+
TaskTypes.INDIVIDUAL,
|
|
44
|
+
isExperimentEnabled
|
|
45
|
+
);
|
|
46
|
+
const props = {
|
|
47
|
+
taskType: TaskTypes.INDIVIDUAL,
|
|
48
|
+
taskName: hasTrust ? "individualTrusteeDetails" : "individualDetails",
|
|
49
|
+
legalEntityResponse: rootLe,
|
|
50
|
+
problems,
|
|
51
|
+
country,
|
|
52
|
+
asModal,
|
|
53
|
+
hideSidebar,
|
|
54
|
+
isTargetLegalEntityType,
|
|
55
|
+
onSubmit,
|
|
56
|
+
trustedFieldsProvider,
|
|
57
|
+
handleBackClick,
|
|
58
|
+
handleCloseClick,
|
|
59
|
+
handleHomeClick
|
|
60
|
+
};
|
|
61
|
+
return isOnfidoAutofillFlow ? /* @__PURE__ */ jsx(
|
|
62
|
+
IndividualOnfidoDropin,
|
|
63
|
+
{
|
|
64
|
+
...props,
|
|
65
|
+
trustedFields
|
|
66
|
+
}
|
|
67
|
+
) : /* @__PURE__ */ jsx(
|
|
68
|
+
IndividualDropin,
|
|
69
|
+
{
|
|
70
|
+
...props,
|
|
71
|
+
trustedFields
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
RootIndividualDetailsPage
|
|
77
|
+
};
|
|
@@ -2,18 +2,23 @@
|
|
|
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] = "1fb65741-fd53-47a4-b1c1-9a02aec93c84", e._sentryDebugIdIdentifier = "sentry-dbid-1fb65741-fd53-47a4-b1c1-9a02aec93c84");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
+
import { a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper } from "./translation-CPyYrNAr.js";
|
|
10
11
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import {
|
|
12
|
-
import { u as useSalesChannelsSettings, a as usePciStatus } from "./OnboardingDropinComponent-
|
|
13
|
-
import {
|
|
12
|
+
import { b as useApiContext, j as useQuery, k as httpPost, aA as useMutation, a9 as isEmpty, a as useTranslation, U as useAnalyticsContext, aR as getOwnDecisionMakers, y as LegalEntityTypes, M as TaskTypes, B as Button, c as useLegalEntity, R as ROOT_LE, L as Loader } from "./StoreProvider-B_tFiIdr.js";
|
|
13
|
+
import { u as useSalesChannelsSettings, a as usePciStatus } from "./OnboardingDropinComponent-BYFTAjkC.js";
|
|
14
|
+
import { a as useInvalidateRootLegalEntity, u as useToastContext } from "./useToastContext-BA6TVroR.js";
|
|
15
|
+
import { M as MaybeModal } from "./MaybeModal-BBBahxa3.js";
|
|
16
|
+
import { E as EndStateLayout } from "./EndStateLayout-C80dFrcg.js";
|
|
14
17
|
import { useState, useCallback, useEffect } from "preact/hooks";
|
|
18
|
+
import { a as useForm, F as Field, c as Select, C as Checkbox } from "./useForm-Dah8AZ3S.js";
|
|
15
19
|
import { D as DetailViewLayout } from "./DetailViewLayout-Z9cuUp4X.js";
|
|
16
|
-
import { C as
|
|
20
|
+
import { C as Card } from "./Card-D3VCh4en.js";
|
|
21
|
+
import { C as ContractViewer } from "./ContractViewer-Byp71k2e.js";
|
|
17
22
|
const getPciTemplate = async (legalEntityId, baseUrl, data) => {
|
|
18
23
|
return httpPost(
|
|
19
24
|
{
|
|
@@ -224,8 +229,12 @@ function SignPCIComponent({
|
|
|
224
229
|
onUnmount
|
|
225
230
|
}) {
|
|
226
231
|
const additionalSalesChannels = useSalesChannelsSettings();
|
|
227
|
-
const { t } = useTranslation(["contract", "common"]);
|
|
228
|
-
|
|
232
|
+
const { t, i18n } = useTranslation(["contract", "common"]);
|
|
233
|
+
addResourceBundles(i18n, i18n.language, [
|
|
234
|
+
{ ns: "common", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/bg-BG.json": () => import("./bg-BG-CW9c658c.js"), "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-dU9fnQ1g.js"), "../../../language/locales/da-DK.json": () => import("./da-DK-BJ7aTPir.js"), "../../../language/locales/de-DE.json": () => import("./de-DE-C78RLE2G.js"), "../../../language/locales/el-GR.json": () => import("./el-GR-BZRKurtr.js"), "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-Ddr7AO05.js"), "../../../language/locales/en-US.json": () => import("./StoreProvider-B_tFiIdr.js").then((n) => n.bN), "../../../language/locales/es-ES.json": () => import("./es-ES-BtUSEzkE.js"), "../../../language/locales/et-EE.json": () => import("./et-EE-BCnK305R.js"), "../../../language/locales/fi-FI.json": () => import("./fi-FI-Cvar63RH.js"), "../../../language/locales/fr-FR.json": () => import("./fr-FR-B5543Fe-.js"), "../../../language/locales/hr-HR.json": () => import("./hr-HR-ZreFlbK9.js"), "../../../language/locales/hu-HU.json": () => import("./hu-HU-B3BihdGh.js"), "../../../language/locales/it-IT.json": () => import("./it-IT-Dd6xGSe-.js"), "../../../language/locales/ja-JP.json": () => import("./ja-JP-iTbqSPNL.js"), "../../../language/locales/lt-LT.json": () => import("./lt-LT-DE-4IXNG.js"), "../../../language/locales/lv-LV.json": () => import("./lv-LV-CeivEZms.js"), "../../../language/locales/nl-NL.json": () => import("./nl-NL-DVENFpd5.js"), "../../../language/locales/no-NO.json": () => import("./no-NO-Dn2UkdoI.js"), "../../../language/locales/pl-PL.json": () => import("./pl-PL-DFAzuceF.js"), "../../../language/locales/pt-PT.json": () => import("./pt-PT-_o5xgnxS.js"), "../../../language/locales/ro-RO.json": () => import("./ro-RO-D7c_Rj8V.js"), "../../../language/locales/sk-SK.json": () => import("./sk-SK-BBSuh2fA.js"), "../../../language/locales/sl-SI.json": () => import("./sl-SI-BLTuWNf5.js"), "../../../language/locales/sv-SE.json": () => import("./sv-SE-BUfESAQK.js") }), `../../../language/locales/${i18n.language}.json`, 6) },
|
|
235
|
+
{ ns: "ui", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../ui/language/bg-BG.json": () => import("./bg-BG-CZ8v3rdy.js"), "../../ui/language/cs-CZ.json": () => import("./cs-CZ-Dx6momCa.js"), "../../ui/language/da-DK.json": () => import("./da-DK-D4H69PX3.js"), "../../ui/language/de-DE.json": () => import("./de-DE-wp5-H-ov.js"), "../../ui/language/el-GR.json": () => import("./el-GR-CK2heqPJ.js"), "../../ui/language/en-US.json": () => import("./en-US-CAm3meB1.js"), "../../ui/language/es-ES.json": () => import("./es-ES-Ds3-DtqZ.js"), "../../ui/language/et-EE.json": () => import("./et-EE-Co-8akjV.js"), "../../ui/language/fi-FI.json": () => import("./fi-FI-DPNeTsJS.js"), "../../ui/language/fr-FR.json": () => import("./fr-FR-ChmNQciP.js"), "../../ui/language/hr-HR.json": () => import("./hr-HR-DqC8Cgs6.js"), "../../ui/language/hu-HU.json": () => import("./hu-HU-BOanVlKb.js"), "../../ui/language/it-IT.json": () => import("./it-IT-eCrTB65E.js"), "../../ui/language/ja-JP.json": () => import("./ja-JP-BJljbFIZ.js"), "../../ui/language/lt-LT.json": () => import("./lt-LT-DckQGgoT.js"), "../../ui/language/lv-LV.json": () => import("./lv-LV-DP9oRTFv.js"), "../../ui/language/nl-NL.json": () => import("./nl-NL-D2QKudfh.js"), "../../ui/language/no-NO.json": () => import("./no-NO-C_snYWBc.js"), "../../ui/language/pl-PL.json": () => import("./pl-PL-CQ6c2Qz_.js"), "../../ui/language/pt-PT.json": () => import("./pt-PT-C-hbNnsB.js"), "../../ui/language/ro-RO.json": () => import("./ro-RO-BrTWk1Ui.js"), "../../ui/language/sk-SK.json": () => import("./sk-SK-BTFtoPmI.js"), "../../ui/language/sl-SI.json": () => import("./sl-SI-BhVTSmhQ.js"), "../../ui/language/sv-SE.json": () => import("./sv-SE-66rqYTxi.js") }), `../../ui/language/${i18n.language}.json`, 5) },
|
|
236
|
+
{ ns: "contract", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../Contract/language/bg-BG.json": () => import("./bg-BG-QC5irNEG.js"), "../../Contract/language/cs-CZ.json": () => import("./cs-CZ-t297LwYw.js"), "../../Contract/language/da-DK.json": () => import("./da-DK-BoQic3Gy.js"), "../../Contract/language/de-DE.json": () => import("./de-DE-Dwagawx1.js"), "../../Contract/language/el-GR.json": () => import("./el-GR-CxwhV-TX.js"), "../../Contract/language/en-US.json": () => import("./en-US-BbAzROHT.js"), "../../Contract/language/es-ES.json": () => import("./es-ES-Bsoco8Fj.js"), "../../Contract/language/et-EE.json": () => import("./et-EE-DdGlUpaQ.js"), "../../Contract/language/fi-FI.json": () => import("./fi-FI-ClnsYt3L.js"), "../../Contract/language/fr-FR.json": () => import("./fr-FR-CJI0bIig.js"), "../../Contract/language/hr-HR.json": () => import("./hr-HR-C0yWizOX.js"), "../../Contract/language/hu-HU.json": () => import("./hu-HU-wnSie9tz.js"), "../../Contract/language/it-IT.json": () => import("./it-IT-BeC2Y1F8.js"), "../../Contract/language/ja-JP.json": () => import("./ja-JP-YoU7mNrK.js"), "../../Contract/language/lt-LT.json": () => import("./lt-LT-DIe4cKlu.js"), "../../Contract/language/lv-LV.json": () => import("./lv-LV-DXgW5zWl.js"), "../../Contract/language/nl-NL.json": () => import("./nl-NL-Cysslsh2.js"), "../../Contract/language/no-NO.json": () => import("./no-NO-zSnPtrDi.js"), "../../Contract/language/pl-PL.json": () => import("./pl-PL-UB5J5JcB.js"), "../../Contract/language/pt-PT.json": () => import("./pt-PT-CjsyP_OK.js"), "../../Contract/language/ro-RO.json": () => import("./ro-RO-C8yYXQc_.js"), "../../Contract/language/sk-SK.json": () => import("./sk-SK-DbOE9C6n.js"), "../../Contract/language/sl-SI.json": () => import("./sl-SI-Br0UEUPL.js"), "../../Contract/language/sv-SE.json": () => import("./sv-SE-BtXmvxx4.js") }), `../../Contract/language/${i18n.language}.json`, 5) }
|
|
237
|
+
]);
|
|
229
238
|
const {
|
|
230
239
|
data: legalEntityData,
|
|
231
240
|
isError: isLegalEntityError,
|
|
@@ -233,7 +242,7 @@ function SignPCIComponent({
|
|
|
233
242
|
} = useLegalEntity(ROOT_LE);
|
|
234
243
|
const { data: pciTemplateData, isLoading: isPciTemplateDataLoading } = usePciTemplate({
|
|
235
244
|
additionalSalesChannels,
|
|
236
|
-
language: i18n.
|
|
245
|
+
language: i18n.language.substring(0, 2) ?? "en"
|
|
237
246
|
});
|
|
238
247
|
const {
|
|
239
248
|
data: pciStatusData,
|
|
@@ -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] = "c41e2902-2832-455b-807a-e6620e7d7f41", e._sentryDebugIdIdentifier = "sentry-dbid-c41e2902-2832-455b-807a-e6620e7d7f41");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { lazy } from "preact/compat";
|
|
12
12
|
import { useState } from "preact/hooks";
|
|
13
|
-
import {
|
|
13
|
+
import { a as useTranslation, x as Typography, B as Button, y as LegalEntityTypes } from "./StoreProvider-B_tFiIdr.js";
|
|
14
|
+
import { a as useForm, F as Field } from "./useForm-Dah8AZ3S.js";
|
|
15
|
+
import { R as RadioGroupCard, I as Image } from "./fieldConfigurations-Yf8yD64w.js";
|
|
14
16
|
const setupAccountMethods = ["singpass", "manual"];
|
|
15
17
|
const setupAccountMethodFields = ["setupAccountMethod"];
|
|
16
|
-
const singpassLogo = lazy(
|
|
17
|
-
() => import("./singpass-logo-BkMSwiGY.js")
|
|
18
|
-
);
|
|
18
|
+
const singpassLogo = lazy(() => import("./singpass-logo-BkMSwiGY.js"));
|
|
19
19
|
const instantVerificationImage = lazy(
|
|
20
20
|
() => import("./singpass-verification-instant-hY4eGFwl.js")
|
|
21
21
|
);
|
|
@@ -74,7 +74,7 @@ const getSetupAccountMethodMetadata = (legalEntityType) => {
|
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
const SingpassSelection = (props) => {
|
|
77
|
-
const { t } = useTranslation();
|
|
77
|
+
const { t } = useTranslation("common");
|
|
78
78
|
const { legalEntityType, handleNextClick } = props;
|
|
79
79
|
const [selectedMethod, setSelectedMethod] = useState();
|
|
80
80
|
const selectSetupAccountMethod = (method) => {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
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] = "ab597fb2-7dab-44d4-ad08-919d63c8359b", e._sentryDebugIdIdentifier = "sentry-dbid-ab597fb2-7dab-44d4-ad08-919d63c8359b");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper } from "./translation-CPyYrNAr.js";
|
|
11
|
+
import { jsx } from "preact/jsx-runtime";
|
|
12
|
+
import { a as useTranslation, c as useLegalEntity, R as ROOT_LE, q as skipToken, L as Loader, g as getLegalEntityCountry, M as TaskTypes, J as EntityTypes } from "./StoreProvider-B_tFiIdr.js";
|
|
13
|
+
import { b as useCapabilityProblems, g as getProblemsForEntity } from "./fieldConfigurations-Yf8yD64w.js";
|
|
14
|
+
import { _ as BusinessDetailsDropin } from "./BusinessDetailsDropin-BGsHimRA.js";
|
|
15
|
+
function SoleProprietorshipPage({
|
|
16
|
+
solePropId,
|
|
17
|
+
isTargetLegalEntityType = false,
|
|
18
|
+
onSubmit,
|
|
19
|
+
handleHomeClick
|
|
20
|
+
}) {
|
|
21
|
+
const { i18n } = useTranslation();
|
|
22
|
+
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
23
|
+
const { data: solePropLe } = useLegalEntity(solePropId ?? skipToken);
|
|
24
|
+
const capabilityProblems = useCapabilityProblems();
|
|
25
|
+
addResourceBundles(i18n, i18n.language, [
|
|
26
|
+
{ ns: "business", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../Business/language/bg-BG.json": () => import("./bg-BG-9uVrFuHv.js"), "../../Business/language/cs-CZ.json": () => import("./cs-CZ-Wzc382q6.js"), "../../Business/language/da-DK.json": () => import("./da-DK-CeNMXUfE.js"), "../../Business/language/de-DE.json": () => import("./de-DE-JI-7mvxy.js"), "../../Business/language/el-GR.json": () => import("./el-GR-DfNOPkLq.js"), "../../Business/language/en-US.json": () => import("./en-US-DHq7VYFs.js"), "../../Business/language/es-ES.json": () => import("./es-ES-DOVPTeyf.js"), "../../Business/language/et-EE.json": () => import("./et-EE-BJIsPOnh.js"), "../../Business/language/fi-FI.json": () => import("./fi-FI-D522KHGk.js"), "../../Business/language/fr-FR.json": () => import("./fr-FR-DInQKkTd.js"), "../../Business/language/hr-HR.json": () => import("./hr-HR-DzS44Gpv.js"), "../../Business/language/hu-HU.json": () => import("./hu-HU-xCvNM5TU.js"), "../../Business/language/it-IT.json": () => import("./it-IT-CjEYONJg.js"), "../../Business/language/ja-JP.json": () => import("./ja-JP-BUz3qN-V.js"), "../../Business/language/lt-LT.json": () => import("./lt-LT-B6CJ4ULI.js"), "../../Business/language/lv-LV.json": () => import("./lv-LV-DTtuyfHS.js"), "../../Business/language/nl-NL.json": () => import("./nl-NL-Zcq0bXd-.js"), "../../Business/language/no-NO.json": () => import("./no-NO-BxReX6oF.js"), "../../Business/language/pl-PL.json": () => import("./pl-PL-T6uD5--R.js"), "../../Business/language/pt-PT.json": () => import("./pt-PT-N0njcfLO.js"), "../../Business/language/ro-RO.json": () => import("./ro-RO-Ic1SzBgx.js"), "../../Business/language/sk-SK.json": () => import("./sk-SK-CiD0FeLN.js"), "../../Business/language/sl-SI.json": () => import("./sl-SI-MZoDApq9.js"), "../../Business/language/sv-SE.json": () => import("./sv-SE-DCFSf4Oj.js") }), `../../Business/language/${i18n.language}.json`, 5) }
|
|
27
|
+
]);
|
|
28
|
+
if (!rootLe || solePropId && !solePropLe) {
|
|
29
|
+
return /* @__PURE__ */ jsx(Loader, {});
|
|
30
|
+
}
|
|
31
|
+
const problems = capabilityProblems && solePropId ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, solePropId) : void 0;
|
|
32
|
+
const country = getLegalEntityCountry(solePropLe ?? rootLe);
|
|
33
|
+
return /* @__PURE__ */ jsx(
|
|
34
|
+
BusinessDetailsDropin,
|
|
35
|
+
{
|
|
36
|
+
taskType: TaskTypes.SOLE_PROPRIETOR_COMPANY,
|
|
37
|
+
taskName: "soleProprietorship",
|
|
38
|
+
legalEntityResponse: rootLe,
|
|
39
|
+
associatedLegalArrangement: solePropLe,
|
|
40
|
+
problems: problems ?? {},
|
|
41
|
+
country,
|
|
42
|
+
isTargetLegalEntityType,
|
|
43
|
+
onSubmit,
|
|
44
|
+
handleHomeClick
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
SoleProprietorshipPage
|
|
50
|
+
};
|