@adyen/kyc-components 4.0.0-compact.2 → 4.0.0-compact.4
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-CNbcTHZy.js → AcceptTermsOfServiceComponent-BpEgUWXz.js} +15 -15
- package/dist/{Accordion-Bjer1DF8.js → Accordion-C7tT1-lq.js} +2 -2
- package/dist/{AccountSetupRejected-Cn672qPs.js → AccountSetupRejected-Bx9bf2P2.js} +4 -4
- package/dist/{ActionBar-_ItKVS6X.js → ActionBar-BYag3Mhx.js} +1 -1
- package/dist/{Address-brlyMNsL.js → Address-BG5_sFfZ.js} +8 -8
- package/dist/{Alert-BjepSgqS.js → Alert-CjdHpM1t.js} +18 -8
- package/dist/{Avatar-YKRRWtuD.js → Avatar-BbYg2DuO.js} +2 -2
- package/dist/{BusinessFinancingComponent-DaXrEiOK.js → BusinessFinancingComponent-C6IiU1SV.js} +7 -7
- package/dist/{BusinessFinancingDropin-CxvdCIOR.js → BusinessFinancingDropin-BGSfIRyw.js} +23 -22
- package/dist/{BusinessFinancingPage-DR8f57Zt.js → BusinessFinancingPage-B6B4tyGt.js} +5 -5
- package/dist/{BusinessTypeSelectionPage-5VrdC33B.js → BusinessTypeSelectionPage-0jkL0xW-.js} +8 -8
- package/dist/{Card-DTRTgvkU.js → Card-BHab7Kyt.js} +4 -4
- package/dist/{ConstitutionalDocument-LzfYJniz.js → ConstitutionalDocument--Z--xpF7.js} +3 -3
- package/dist/{CountryField-BKLmbhSX.js → CountryField-BIYJvEAW.js} +6 -6
- package/dist/{CreateIndividualComponent-BLXGgGyY.js → CreateIndividualComponent-3t1p_6gB.js} +7 -7
- package/dist/{CreateTransferInstrumentComponent-DVckBQQm.js → CreateTransferInstrumentComponent-BNvXg6_9.js} +7 -7
- package/dist/{Currency-MPPfYpO2.js → Currency-DpseKPZa.js} +5 -5
- package/dist/{CustomerSupport-By2yaM5E.js → CustomerSupport-BzpGH7XC.js} +10 -10
- package/dist/{DebugModal-DCHlUTNW.js → DebugModal-DyH69DXv.js} +7 -7
- package/dist/{DecisionMakerDetailsPage-tc-XK5oy.js → DecisionMakerDetailsPage-BiCWUl-E.js} +7 -7
- package/dist/{DecisionMakers-DU88cxZJ.js → DecisionMakers-WTQe_49J.js} +21 -21
- package/dist/{EmbeddedStatus-Dyw4tZGv.js → EmbeddedStatus-CcwyilpG.js} +11 -13
- package/dist/{EndStateLayout-Dyji8Wu9.js → EndStateLayout-DUFAp0sp.js} +2 -2
- package/dist/{EntityAssociation-Dj13mqhr.js → EntityAssociation-0B8bfpR4.js} +8 -8
- package/dist/{EntityGuidanceStatus-B-VLjG9P.js → EntityGuidanceStatus-Bpa8WnR_.js} +3 -3
- package/dist/{FormFlow-KgmudcUf.js → FormFlow-DX2A0gcf.js} +59 -39
- package/dist/{FormNavigation-CFIXqopX.js → FormNavigation-BP2ZV8AF.js} +3 -3
- package/dist/{FormWrapper-CCyMspMC.js → FormWrapper-D2abCVld.js} +10 -10
- package/dist/{IndividualOnfido-DGWs87Bu.js → IndividualOnfido-BxhmIQwc.js} +95 -64
- package/dist/{IndividualOnfidoDropin-CUY4R6Np.js → IndividualOnfidoDropin-Cy08-w8F.js} +35 -29
- package/dist/{InputText-DXkZ7fwq.js → InputText-qTMbrUXW.js} +4 -4
- package/dist/{Introduction-CjaMyLeR.js → Introduction-Ee8931m9.js} +21 -65
- package/dist/JpAddress-Br78ZY9o.js +295 -0
- package/dist/{LegalRepresentativeDetailsPage-L1HAsU01.js → LegalRepresentativeDetailsPage-kZbXv8m2.js} +5 -5
- package/dist/{ListItem-COe1T6IG.js → ListItem-DKLPtRMQ.js} +3 -3
- package/dist/{ManageIndividualComponent-ySaPJphf.js → ManageIndividualComponent-CrAC6lmI.js} +5 -5
- package/dist/ManageTermsOfServiceComponent-D188174Y.js +52 -0
- package/dist/{ManageTransferInstrumentComponent-D26m3iJX.js → ManageTransferInstrumentComponent-DDIhJrq3.js} +15 -15
- package/dist/{MaybeModal-BPq0SmbE.js → MaybeModal-QG3JQV0A.js} +3 -3
- package/dist/{Modal-qvqrnkl9.js → Modal-B8fxl0iP.js} +9 -11
- package/dist/{OnboardingDropinComponent-CAowzo5z.js → OnboardingDropinComponent-Cu2pv74K.js} +72 -66
- package/dist/{PayoutDetailsDropin-CElcAZkT.js → PayoutDetailsDropin-D_ee4PgW.js} +88 -46
- package/dist/{Review-BsSmYJ0Z.js → Review-BDXmgIlE.js} +7 -7
- package/dist/{RootBusinessDetailsPage-DfaUd-dT.js → RootBusinessDetailsPage-ChobUam3.js} +11 -8
- package/dist/{RootBusinessLinesPage-BUU93N7l.js → RootBusinessLinesPage-CbaRG8zg.js} +190 -205
- package/dist/{RootIndividualDetailsPage-pNQ9v0Cg.js → RootIndividualDetailsPage-D4hpO1W0.js} +7 -7
- package/dist/{SignPCIComponent-DA9HTJcn.js → SignPCIComponent-4qzKpijW.js} +12 -12
- package/dist/{SingpassSelection-CWJuYh4-.js → SingpassSelection-BB6R98e_.js} +4 -4
- package/dist/SoleProprietorshipPage-Z5lqmwWa.js +49 -0
- package/dist/{SourceOfFundsPage-CG0pItrl.js → SourceOfFundsPage-BA638WTW.js} +26 -26
- package/dist/{Spacer-BcPESwGJ.js → Spacer-BT5nYRXK.js} +10 -9
- package/dist/{StepProgressIndicator-BG5uNVKJ.js → StepProgressIndicator-Bs1V38Kt.js} +1 -1
- package/dist/{StoreProvider-D0o_745u.js → StoreProvider-DTMSAVgy.js} +38 -38
- package/dist/{Summary-DfChUS-N.js → Summary-BOSxxPjv.js} +4 -4
- package/dist/{TaxReportingDropin-BhFHPYrV.js → TaxReportingDropin-CQzNhf9Q.js} +18 -17
- package/dist/{TrustDetailsPage-UI7Qhogx.js → TrustDetailsPage-BLNK52Za.js} +29 -28
- package/dist/{TrustMemberCompanyPage-Cvq23-mG.js → TrustMemberCompanyPage-DwVARA6c.js} +16 -9
- package/dist/{TrustMemberIndividualPage-9eQ_yj88.js → TrustMemberIndividualPage-q2iayL78.js} +6 -6
- package/dist/{TrustMemberRoleAndTypePage-C5X4yQcZ.js → TrustMemberRoleAndTypePage-C1WVoqKI.js} +25 -24
- package/dist/{TrustMembersOverview-DS3F2gW9.js → TrustMembersOverview-5UGm_iG9.js} +13 -13
- package/dist/{UnincorporatedPartnershipIndividualPage-B9EMaXkA.js → UnincorporatedPartnershipIndividualPage-CyqUGlhC.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DqpxNM8J.js → UnincorporatedPartnershipMemberCompanyPage-D_J_JQ00.js} +15 -8
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-DuWERJIv.js → UnincorporatedPartnershipMemberRoleAndTypePage-C98KZ4pT.js} +10 -10
- package/dist/{UnincorporatedPartnershipMembersOverview-CXIrEXgp.js → UnincorporatedPartnershipMembersOverview-C5jfbcPJ.js} +10 -10
- package/dist/{VerificationErrorAlert-Cwea2nvk.js → VerificationErrorAlert-BJ9X1Bkv.js} +4 -4
- package/dist/{ViewVerificationStatusComponent-C5rBiaSa.js → ViewVerificationStatusComponent-KnTqf4d6.js} +5 -5
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +3 -3
- package/dist/adyen-kyc-components.js +21 -21
- package/dist/adyen-onboarding.js +3 -3
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +3 -3
- package/dist/adyen-transfer-instrument-management.js +3 -3
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{da-DK-DYpfNZdP.js → da-DK-CGWvmdkq.js} +2 -1
- package/dist/{da-DK-jK7c9UL0.js → da-DK-CoTdzXlA.js} +9 -1
- package/dist/da-DK-CrtuBoDC.js +118 -0
- package/dist/da-DK-uHPPFvD-.js +13 -0
- package/dist/da-DK-vcVNQJbX.js +63 -0
- package/dist/de-DE-CWEW2yqg.js +63 -0
- package/dist/{de-DE-BXt1K0Tr.js → de-DE-DHDJhahG.js} +2 -1
- package/dist/de-DE-SMf6w4NJ.js +13 -0
- package/dist/de-DE-mH3MobT9.js +13 -0
- package/dist/{de-DE-wmerDL2e.js → de-DE-z0cPgxGN.js} +9 -1
- package/dist/{debouncedInputEvent-DbzJEMPo.js → debouncedInputEvent-BdLyqQK5.js} +2 -2
- package/dist/{documentUtils-Cc83Q1S6.js → documentUtils-CmY7W1gB.js} +58 -7
- package/dist/{dropinUtils-D0iun-Wp.js → dropinUtils-BYk71qFP.js} +4 -4
- package/dist/en-US-BSQXKu6d.js +54 -0
- package/dist/{en-US-gsp7CD_E.js → en-US-BzrLvydZ.js} +9 -1
- package/dist/{en-US-Dg505Oh3.js → en-US-DoiQhi0j.js} +2 -1
- package/dist/es-ES-BqpvBqmR.js +13 -0
- package/dist/es-ES-CDgjGql5.js +63 -0
- package/dist/es-ES-CnyVffM-.js +118 -0
- package/dist/{es-ES-BhNhIf08.js → es-ES-CxnsKEh4.js} +2 -1
- package/dist/{es-ES-Qnc0Q6JH.js → es-ES-DUn82eVS.js} +9 -1
- package/dist/{fi-FI-ysUrBilO.js → fi-FI-57-xkioo.js} +2 -1
- package/dist/{fi-FI-Dn2MC8uW.js → fi-FI-C3TTCFBv.js} +9 -1
- package/dist/fi-FI-CsZlDJFb.js +63 -0
- package/dist/fi-FI-DPegZzTc.js +13 -0
- package/dist/fi-FI-kXC-0USa.js +118 -0
- package/dist/fr-FR-6YOKsDLQ.js +13 -0
- package/dist/fr-FR-BPGwsLDa.js +13 -0
- package/dist/{fr-FR-BWX14yb7.js → fr-FR-BbKadiaZ.js} +9 -1
- package/dist/{fr-FR-BSvSKazD.js → fr-FR-BxiX8Zfi.js} +2 -1
- package/dist/fr-FR-VoxPkXSc.js +63 -0
- package/dist/{getFieldsWithExistingData-2sKn11MH.js → getFieldsWithExistingData-D6K7_vTh.js} +1 -1
- package/dist/{getName-DhbqyTuj.js → getName-9MyzlDpt.js} +2 -2
- package/dist/{hasDataChanged-ZEmm9mgZ.js → hasDataChanged-6p9Ib-IH.js} +2 -2
- package/dist/{iframeWidget-DhidmNAp.js → iframeWidget-OATZoluK.js} +4 -4
- package/dist/it-IT-B1eJg9RL.js +13 -0
- package/dist/{it-IT-B0YGvVgW.js → it-IT-CGhQqmiU.js} +9 -1
- package/dist/it-IT-DZjw9LNC.js +63 -0
- package/dist/it-IT-DyCHFg-b.js +118 -0
- package/dist/{it-IT-Qfzc8jnW.js → it-IT-masgjk9F.js} +2 -1
- package/dist/ja-JP-BoxeBgOv.js +32 -0
- package/dist/ja-JP-BqluCflj.js +63 -0
- package/dist/ja-JP-C6Go-kaC.js +136 -0
- package/dist/ja-JP-CSz7fEkn.js +55 -0
- package/dist/ja-JP-CbgaW99b.js +54 -0
- package/dist/ja-JP-CvNJvxkQ.js +218 -0
- package/dist/ja-JP-CvREJ56h.js +65 -0
- package/dist/ja-JP-D1vtig2x.js +151 -0
- package/dist/ja-JP-DGNXrNMK.js +118 -0
- package/dist/ja-JP-FWHXsXlW.js +24 -0
- package/dist/ja-JP-PnqAHl14.js +13 -0
- package/dist/ja-JP-ThzG9vIo.js +68 -0
- package/dist/ja-JP-bz7ekGnF.js +27 -0
- package/dist/ja-JP-vv3-YsHU.js +38 -0
- package/dist/{localizeDateString-DYxbMJdq.js → localizeDateString-CtnAUzr_.js} +1 -1
- package/dist/{mapExistingFile-DGRyOBjp.js → mapExistingFile-Iep6Rez8.js} +3 -3
- package/dist/{mapFinancialReportsToFinancialInformation-DBdQzrBs.js → mapFinancialReportsToFinancialInformation-CeqxQKYv.js} +3 -3
- package/dist/{mapJpAddressSchemaToAddressLocalizations-uwuFlYx9.js → mapJpAddressSchemaToAddressLocalizations-C22nFO39.js} +3 -3
- package/dist/{mapLegalEntityToIndividualOnfidoSchema-C6mqHFxh.js → mapLegalEntityToIndividualOnfidoSchema-BGAZ4tOn.js} +3 -3
- package/dist/{mapTransferInstrumentToPayoutAccount-CrO59de3.js → mapTransferInstrumentToPayoutAccount-C6ha6E0S.js} +2 -2
- package/dist/{nl-NL-D7gBNWEY.js → nl-NL-D1b5RUJ0.js} +2 -1
- package/dist/nl-NL-DkbhmJAw.js +118 -0
- package/dist/{nl-NL-BMUYBqlF.js → nl-NL-OHlJx2bn.js} +9 -1
- package/dist/nl-NL-cVVIDG7s.js +13 -0
- package/dist/nl-NL-lcNM54vV.js +63 -0
- package/dist/no-NO-CTrVITNu.js +63 -0
- package/dist/no-NO-C_tmZ39d.js +13 -0
- package/dist/{no-NO-DKbWxgF-.js → no-NO-DEYydng4.js} +9 -1
- package/dist/{no-NO-D4BECLky.js → no-NO-Df5qUoTc.js} +1 -13
- package/dist/{no-NO-C-gCYc9q.js → no-NO-Dkh4SWbB.js} +2 -1
- package/dist/{process-field-configurations-IsZZTbcC.js → process-field-configurations-BBc1EBeB.js} +3 -3
- package/dist/pt-BR-BOOm5lRR.js +118 -0
- package/dist/{pt-BR-ur86nRrK.js → pt-BR-BRdIEO2O.js} +2 -1
- package/dist/pt-BR-CMiGlY3k.js +13 -0
- package/dist/pt-BR-DA44Wgbt.js +63 -0
- package/dist/{pt-BR--kaJvtE6.js → pt-BR-DWAziFjb.js} +9 -1
- package/dist/{resolveEnvironment-CM4-oCnd.js → resolveEnvironment-DV8jSeQ4.js} +3 -3
- package/dist/{rules-BFaDNVc6.js → rules-Cu3mKCzh.js} +5 -5
- package/dist/sl-SI-BZpXMHiG.js +13 -0
- package/dist/sl-SI-C3nGkfNb.js +13 -0
- package/dist/{sl-SI-DtdGMD6i.js → sl-SI-C5vfq7vv.js} +9 -1
- package/dist/sl-SI-CGvCdquD.js +118 -0
- package/dist/{sl-SI-CUCrzJQv.js → sl-SI-CvUzNn9Z.js} +2 -1
- package/dist/sl-SI-D8dDckrW.js +55 -0
- package/dist/sl-SI-DEaeEVKB.js +24 -0
- package/dist/sl-SI-DZHePXbK.js +63 -0
- package/dist/sl-SI-DqUEy_Cm.js +32 -0
- package/dist/sl-SI-tPwbFvOI.js +68 -0
- package/dist/style.css +1704 -1715
- package/dist/styles-CLV89_hH.js +1704 -1715
- package/dist/{sv-SE-BHkYspm-.js → sv-SE-BP2Oun8l.js} +1 -13
- package/dist/{sv-SE-kR514dO1.js → sv-SE-BrO9NKWs.js} +9 -1
- package/dist/{sv-SE-C6uPh9g5.js → sv-SE-BsLkPEzn.js} +2 -1
- package/dist/sv-SE-CXn28ybc.js +13 -0
- package/dist/sv-SE-Dq56vGlB.js +63 -0
- package/dist/types/api/documents/useDocuments.d.ts +4 -0
- package/dist/types/api/queryKeys.d.ts +3 -1
- package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +15 -0
- package/dist/types/components/Business/forms/rules.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +3 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/Business/utils/useBusinessDetailsData.d.ts +21 -0
- package/dist/types/components/BusinessLines/fields/Carousel/Carousel.d.ts +10 -10
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +2 -3
- package/dist/types/components/BusinessLines/tasks/validate.d.ts +2 -0
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +2 -0
- package/dist/types/components/Shared/Introduction/copy.d.ts +3 -3
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +2 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +3 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/ui/atoms/Tile/Tile.d.ts +2 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +1 -1
- package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -0
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +2 -0
- package/dist/types/utils/api/documentUtils.d.ts +6 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/{types-BXl6V78E.js → types-DtV30rT3.js} +1 -1
- package/dist/{types-DFkJwAG7.js → types-Q8QbiVOz.js} +1 -1
- package/dist/{types-CoA3qKLi.js → types-fRMvVcuU.js} +1 -1
- package/dist/{useAssociatedLegalEntity-BXXTCq2H.js → useAssociatedLegalEntity-CtNg5gYS.js} +1 -1
- package/dist/{BusinessDetailsDropin-Be43Lz8z.js → useBusinessDetailsData-kMDQy2r1.js} +151 -69
- package/dist/{useCreateLegalEntity-BNSFNiHp.js → useCreateLegalEntity-DIzVLIrw.js} +2 -2
- package/dist/{useDataset-CLPw5wNd.js → useDataset-D1R4kueP.js} +5 -5
- package/dist/{useForm-BkgSiM1i.js → useForm-BsQfbbso.js} +7 -6
- package/dist/{useGlobalData-BeYozqdQ.js → useGlobalData-CO2a2RhB.js} +3 -3
- package/dist/{useMultiForm-2sO8cnmJ.js → useMultiForm-BkNgL1zi.js} +4 -4
- package/dist/{useOnboardingStatus-DX9R5XKU.js → useOnboardingStatus-BB5IzxTg.js} +1 -1
- package/dist/{useScenarios-CVql9dlu.js → useScenarios-yIXrDacU.js} +2 -2
- package/dist/{useTermsOfServiceStatus-D1yYDEeh.js → useTermsOfServiceStatus-BRdLkis6.js} +1 -1
- package/dist/{useToastContext-CbM0O-ZH.js → useToastContext-BQYYaLd-.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-BpDu4QKJ.js → useUnincorporatedPartnershipMembers-fl3LbBcx.js} +5 -5
- package/dist/{useUpdateBusinessLines-DSH6ZmMJ.js → useUpdateBusinessLines-DWsML109.js} +2 -2
- package/dist/{useUpdateLegalEntity-DnbryhbN.js → useUpdateLegalEntity-CIZP-vhE.js} +3 -3
- package/dist/{utils-BwrYpRdV.js → utils-BtBmicYe.js} +4 -4
- package/dist/{utils-m640rX-u.js → utils-_N6wjH1k.js} +6 -6
- package/dist/{validate-B8aB6l_3.js → validate-C4R1LPcu.js} +2 -2
- package/dist/{validate-Cf-TAdac.js → validate-yIqc2enK.js} +1 -1
- package/dist/{validationError-BVdpr3ww.js → validationError-BcmQ2z0b.js} +2 -2
- package/package.json +2 -2
- package/dist/JpAddress-DSZyw5JH.js +0 -271
- package/dist/ManageTermsOfServiceComponent-ClF1MHMK.js +0 -52
- package/dist/SoleProprietorshipPage-p5JwimAo.js +0 -46
- package/dist/da-DK-BlU1EczG.js +0 -30
- package/dist/da-DK-DEdQ-QPp.js +0 -13
- package/dist/da-DK-DqkN5oIu.js +0 -13
- package/dist/de-DE-COuUdtao.js +0 -13
- package/dist/de-DE-DrSSblam.js +0 -13
- package/dist/de-DE-s0B-XZyp.js +0 -30
- package/dist/el-GR-CdgLZhuO.js +0 -13
- package/dist/es-ES-DNGEW6V_.js +0 -13
- package/dist/es-ES-ShWaSuJd.js +0 -13
- package/dist/es-ES-esfwvKwz.js +0 -30
- package/dist/fi-FI-ChApf7lf.js +0 -13
- package/dist/fi-FI-CjB6QC01.js +0 -30
- package/dist/fi-FI-CoI_94Fv.js +0 -13
- package/dist/fr-FR-Br7OeDIe.js +0 -13
- package/dist/fr-FR-C1XqLftn.js +0 -30
- package/dist/fr-FR-Q3urMjbl.js +0 -13
- package/dist/it-IT-BAvsF2TB.js +0 -13
- package/dist/it-IT-C_YDqVNT.js +0 -30
- package/dist/it-IT-vdMlF0Ha.js +0 -13
- package/dist/nl-NL-BwKrj-29.js +0 -13
- package/dist/nl-NL-C3YJkSIj.js +0 -13
- package/dist/nl-NL-DyeSX0PH.js +0 -30
- package/dist/no-NO-B6OPS2CA.js +0 -13
- package/dist/no-NO-DPRsAb_o.js +0 -30
- package/dist/pt-BR-BKQRvAfq.js +0 -13
- package/dist/pt-BR-C-C4ZJ9x.js +0 -30
- package/dist/pt-BR-gh27BC86.js +0 -13
- package/dist/pt-PT-B4F_5NWi.js +0 -55
- package/dist/pt-PT-BZ5ZZm6G.js +0 -57
- package/dist/pt-PT-Bf4IV7wp.js +0 -13
- package/dist/pt-PT-CFY1O_K0.js +0 -13
- package/dist/pt-PT-CIo3mlXL.js +0 -24
- package/dist/pt-PT-CVNEcs32.js +0 -37
- package/dist/pt-PT-D2Xe-OdG.js +0 -13
- package/dist/pt-PT-DSxxVA0f.js +0 -68
- package/dist/pt-PT-DVKtHjIY.js +0 -13
- package/dist/pt-PT-DYihdcJx.js +0 -13
- package/dist/pt-PT-Dm5DRDrd.js +0 -32
- package/dist/pt-PT-DpDxAynk.js +0 -13
- package/dist/pt-PT-JVqqgvPs.js +0 -54
- package/dist/pt-PT-LbneTcRx.js +0 -30
- package/dist/pt-PT-TKg5FLat.js +0 -27
- package/dist/sl-SI-8SzKx7XD.js +0 -30
- package/dist/sl-SI-DdjgSySI.js +0 -13
- package/dist/sv-SE-B7cpKp1l.js +0 -30
- package/dist/sv-SE-zTiw1bUU.js +0 -13
|
@@ -2,42 +2,42 @@
|
|
|
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] = "0a845048-7bdd-49b8-81c7-eed544674d16", e._sentryDebugIdIdentifier = "sentry-dbid-0a845048-7bdd-49b8-81c7-eed544674d16");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import { u as useTranslation, B as Button, G as Typography, C as CountryCodes, O as TaskTypes, r as LegalEntityTypes, W as isEmpty,
|
|
11
|
+
import { u as useTranslation, B as Button, G as Typography, C as CountryCodes, O as TaskTypes, r as LegalEntityTypes, W as isEmpty, a1 as entriesOf, bC as businessDetailsComponentsKeyMapping, bD as solePropBusinessDetailsKeyMapping, ak as objectsDeepEqual, aq as keysOf, i as isUndefinedOrNull, bE as solePropBusinessDetailsApiKeyMapping, bp as businessDetailsApiKeyMapping, P as createLogger, b8 as filterOutUnwantedAssociationsIfRootLE, b6 as drop, ag as getOwnEntityAssociations, aV as doArraysMatch, b as useApiContext, a3 as useAnalyticsContext, a2 as useQueryClient, X as useExperimentsContext, $ as useVersionConfiguration, o as useSettingsContext, K as useAccountHolder, bF as solePropBusinessDetailsDocumentMapping, bG as businessDetailsDocumentMapping, j as useQuery, c as useLegalEntity, R as ROOT_LE } from "./StoreProvider-DTMSAVgy.js";
|
|
12
12
|
import { useState, useEffect, useMemo, useCallback } from "preact/hooks";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
16
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
17
|
-
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-
|
|
18
|
-
import { a as useToastContext } from "./useToastContext-
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { u as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { a as
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { u as useFormContext, i as isDateOlderThanAYear, o as mapAddressLabels, p as getKeyForField } from "./Address-
|
|
28
|
-
import {
|
|
29
|
-
import { M as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
13
|
+
import { u as useCreateBusinessLine, a as useUpdateBusinessLine } from "./useUpdateBusinessLines-DWsML109.js";
|
|
14
|
+
import { F as FinancialInformation, A as AdditionalInformation, C as CompanyStructure, B as BusinessSelection, h as BasicInformation, i as getDefaultRegistrationNumberType, j as getDefaultVatNumberType, o as operationalAddressIsSameIds, k as FIELDS_NEEDED_FOR_COMPANY_SEARCH, v as verifiedBusiness, l as isVerifiedSingleCompanySearchResult, m as companyTypeMetadata, p as documentFormsIds, r as registrationNumberDefaultFieldMetadata, q as inferCompanyRegistrationNumberType, s as registrationNumberDefaultFieldConfig, t as stockTickerSymbolFieldMetadata, w as stockISINFieldMetadata, x as stockExchangeMICFieldMetadata, y as dateOfIncorporationFieldMetadata, z as industryCodeFieldMetadata, D as eInvoicingCodeFieldMetadata, G as vatAbsenceReasonMetadata, H as exemptFromRegistrationNumberDefaultFieldMetadata, I as doingBusinessAsFieldMetadata, J as doingBusinessAsAbsentFieldMetadata, K as defaultFieldMetadata, L as defaultFieldConfig, M as defaultFieldMetadata$1, N as defaultFieldConfig$1, P as defaultFieldMetadataV4, Q as defaultFieldMetadata$2, R as defaultFieldConfigV4, S as defaultFieldConfig$2, g as getForms, T as financialInfoValidationWithEmployeesRules, U as tinMatched, V as businessMismatchModalOpen, W as useCompanySearch, X as useVerifyTin, Y as handleCompanySelection, Z as applyVerifiedBusinessData, _ as useBusinessLines } from "./OnboardingDropinComponent-Cu2pv74K.js";
|
|
15
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-DIzVLIrw.js";
|
|
16
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-CIZP-vhE.js";
|
|
17
|
+
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-DX2A0gcf.js";
|
|
18
|
+
import { a as useToastContext } from "./useToastContext-BQYYaLd-.js";
|
|
19
|
+
import { _ as MemoizedDocumentUpload, C as CompanyTypesValues, m as COUNTRIES_USING_COMPANY_SEARCH, $ as isRegistrationNumberAbsentStateV4Scenario, D as isEmpty$1, a0 as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, r as requestingBanking, e as requestingIssuing, a as getCompanyRegistrationNumberOptions, t as taxInformationDefaultFieldMetadata, a1 as countryToTaxInfoTypeMap, f as taxInformationDefaultFieldConfig, a2 as rules } from "./IndividualOnfido-BxhmIQwc.js";
|
|
20
|
+
import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-BBc1EBeB.js";
|
|
21
|
+
import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-BYk71qFP.js";
|
|
22
|
+
import { u as useMultiForm } from "./useMultiForm-BkNgL1zi.js";
|
|
23
|
+
import { m as mapExistingFile, g as getPageName, u as useScenarioConfiguration } from "./mapExistingFile-Iep6Rez8.js";
|
|
24
|
+
import { a as datasetUtilities, C as Confirm } from "./useDataset-D1R4kueP.js";
|
|
25
|
+
import { a as getDocument, e as getDocuments, c as createDocumentRequest, h as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./documentUtils-CmY7W1gB.js";
|
|
26
|
+
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-D6K7_vTh.js";
|
|
27
|
+
import { u as useFormContext, i as isDateOlderThanAYear, o as mapAddressLabels, p as getKeyForField } from "./Address-BG5_sFfZ.js";
|
|
28
|
+
import { M as MemoizedConstitutionalDocument } from "./ConstitutionalDocument--Z--xpF7.js";
|
|
29
|
+
import { M as Modal, a as ModalContent } from "./Modal-B8fxl0iP.js";
|
|
30
|
+
import { S as SettingNames } from "./InputText-qTMbrUXW.js";
|
|
31
|
+
import { m as mapJpAddressSchemaToAddressLocalizations, a as mapJpAddressSummary } from "./mapJpAddressSchemaToAddressLocalizations-C22nFO39.js";
|
|
32
|
+
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-_N6wjH1k.js";
|
|
33
|
+
import { f as formatCurrency, A as ALLOWED_SOF_SERVICES } from "./utils-BtBmicYe.js";
|
|
34
|
+
import { s as summaryItem } from "./CountryField-BIYJvEAW.js";
|
|
35
|
+
import { s as summaryStep } from "./Summary-BOSxxPjv.js";
|
|
36
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-BcmQ2z0b.js";
|
|
37
|
+
import { r as resolveFieldMetadata } from "./Spacer-BT5nYRXK.js";
|
|
38
|
+
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-CeqxQKYv.js";
|
|
33
39
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
34
|
-
import {
|
|
35
|
-
import { m as mapJpAddressSchemaToAddressLocalizations, a as mapJpAddressSummary } from "./mapJpAddressSchemaToAddressLocalizations-uwuFlYx9.js";
|
|
36
|
-
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-m640rX-u.js";
|
|
37
|
-
import { s as summaryItem } from "./CountryField-BKLmbhSX.js";
|
|
38
|
-
import { s as summaryStep } from "./Summary-DfChUS-N.js";
|
|
39
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-BVdpr3ww.js";
|
|
40
|
-
import { r as resolveFieldMetadata } from "./Spacer-BcPESwGJ.js";
|
|
40
|
+
import { b as mapAddressLocalizationToJpAddressSchema, a as mapApiScriptLocalizationToSchemaFields, m as mapSchemaFieldsToApiScriptLocalization } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
41
41
|
const stripWhitespace = (str) => str.replace(/\s/g, "");
|
|
42
42
|
const toNormalizedString = (s) => stripWhitespace(s.toLowerCase());
|
|
43
43
|
const isNormalizedStringMatch = (s1, s2) => toNormalizedString(s1) === toNormalizedString(s2);
|
|
@@ -550,7 +550,7 @@ function BusinessDetailsMultiform({
|
|
|
550
550
|
requiredFields: form.requiredFields?.companyTaxDocument,
|
|
551
551
|
optionalFields: form.optionalFields?.companyTaxDocument,
|
|
552
552
|
trustedFields: form.trustedFields?.companyTaxDocument,
|
|
553
|
-
handleFieldChange: () => handleChange("companyTaxDocument",
|
|
553
|
+
handleFieldChange: (fieldName) => handleChange("companyTaxDocument", fieldName),
|
|
554
554
|
documentField: "taxDocument",
|
|
555
555
|
documentType: "vatDocument",
|
|
556
556
|
hidePageCount: true,
|
|
@@ -581,7 +581,7 @@ function BusinessDetailsMultiform({
|
|
|
581
581
|
requiredFields: form.requiredFields?.companyRegistrationDocument,
|
|
582
582
|
optionalFields: form.optionalFields?.companyRegistrationDocument,
|
|
583
583
|
trustedFields: form.trustedFields?.companyRegistrationDocument,
|
|
584
|
-
handleFieldChange: () => handleChange("companyRegistrationDocument",
|
|
584
|
+
handleFieldChange: (fieldName) => handleChange("companyRegistrationDocument", fieldName),
|
|
585
585
|
shouldValidate,
|
|
586
586
|
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
587
587
|
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
@@ -600,7 +600,7 @@ function BusinessDetailsMultiform({
|
|
|
600
600
|
requiredFields: form.requiredFields?.companyProofOfDirectorDocument,
|
|
601
601
|
optionalFields: form.optionalFields?.companyProofOfDirectorDocument,
|
|
602
602
|
trustedFields: form.trustedFields?.companyProofOfDirectorDocument,
|
|
603
|
-
handleFieldChange: () => handleChange("companyProofOfDirectorDocument",
|
|
603
|
+
handleFieldChange: (fieldName) => handleChange("companyProofOfDirectorDocument", fieldName),
|
|
604
604
|
shouldValidate,
|
|
605
605
|
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
606
606
|
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
@@ -619,7 +619,7 @@ function BusinessDetailsMultiform({
|
|
|
619
619
|
requiredFields: form.requiredFields?.companyProofOfSignatoryDocument,
|
|
620
620
|
optionalFields: form.optionalFields?.companyProofOfSignatoryDocument,
|
|
621
621
|
trustedFields: form.trustedFields?.companyProofOfSignatoryDocument,
|
|
622
|
-
handleFieldChange: () => handleChange("companyProofOfSignatoryDocument",
|
|
622
|
+
handleFieldChange: (fieldName) => handleChange("companyProofOfSignatoryDocument", fieldName),
|
|
623
623
|
shouldValidate,
|
|
624
624
|
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
625
625
|
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
@@ -638,7 +638,7 @@ function BusinessDetailsMultiform({
|
|
|
638
638
|
requiredFields: form.requiredFields?.companyProofOfOwnershipDocument,
|
|
639
639
|
optionalFields: form.optionalFields?.companyProofOfOwnershipDocument,
|
|
640
640
|
trustedFields: form.trustedFields?.companyProofOfOwnershipDocument,
|
|
641
|
-
handleFieldChange: () => handleChange("companyProofOfOwnershipDocument",
|
|
641
|
+
handleFieldChange: (fieldName) => handleChange("companyProofOfOwnershipDocument", fieldName),
|
|
642
642
|
shouldValidate,
|
|
643
643
|
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
644
644
|
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
@@ -658,7 +658,7 @@ function BusinessDetailsMultiform({
|
|
|
658
658
|
requiredFields: form.requiredFields?.companyConstitutionalDocument,
|
|
659
659
|
optionalFields: form.optionalFields?.companyConstitutionalDocument,
|
|
660
660
|
trustedFields: form.trustedFields?.companyConstitutionalDocument,
|
|
661
|
-
handleFieldChange: () => handleChange("companyConstitutionalDocument",
|
|
661
|
+
handleFieldChange: (fieldName) => handleChange("companyConstitutionalDocument", fieldName),
|
|
662
662
|
shouldValidate,
|
|
663
663
|
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
664
664
|
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
@@ -697,14 +697,19 @@ const mapApiDocumentToBusinessDetailsDocuments = (entityId) => {
|
|
|
697
697
|
const taxDocument = getDocument(entityId, "vatDocument") ?? getDocument(entityId, "proofOfOrganizationTaxInfo") ?? null;
|
|
698
698
|
const proofOfDirector = getDocument(entityId, "proofOfDirector") ?? null;
|
|
699
699
|
const proofOfSignatory = getDocument(entityId, "proofOfSignatory") ?? null;
|
|
700
|
-
const proofOfOwnership =
|
|
700
|
+
const proofOfOwnership = getDocuments(entityId, "proofOfOwnership") ?? null;
|
|
701
701
|
const constitutionalDocument = getDocument(entityId, "constitutionalDocument") ?? null;
|
|
702
|
+
const mergedProofOfOwnershipAttachments = proofOfOwnership?.flatMap((doc) => doc.attachments ?? []) ?? [];
|
|
702
703
|
return {
|
|
703
704
|
companyRegistrationDocument: registrationDocument ? { registrationDocument: [mapExistingFile(getPageName(registrationDocument))] } : void 0,
|
|
704
705
|
companyTaxDocument: taxDocument ? { taxDocument: [mapExistingFile(getPageName(taxDocument))] } : void 0,
|
|
705
706
|
companyProofOfDirectorDocument: proofOfDirector ? { proofOfDirector: [mapExistingFile(getPageName(proofOfDirector))] } : void 0,
|
|
706
707
|
companyProofOfSignatoryDocument: proofOfSignatory ? { proofOfSignatory: [mapExistingFile(getPageName(proofOfSignatory))] } : void 0,
|
|
707
|
-
companyProofOfOwnershipDocument:
|
|
708
|
+
companyProofOfOwnershipDocument: mergedProofOfOwnershipAttachments.length > 0 ? {
|
|
709
|
+
proofOfOwnership: mergedProofOfOwnershipAttachments.map(
|
|
710
|
+
(attachment) => mapExistingFile(attachment.pageName ?? "")
|
|
711
|
+
)
|
|
712
|
+
} : void 0,
|
|
708
713
|
companyConstitutionalDocument: constitutionalDocument ? {
|
|
709
714
|
constitutionalDocument: [mapExistingFile(getPageName(constitutionalDocument))]
|
|
710
715
|
} : void 0
|
|
@@ -1083,36 +1088,42 @@ const mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
|
|
|
1083
1088
|
entityId,
|
|
1084
1089
|
entityType: "legalEntity",
|
|
1085
1090
|
documentType: "registrationDocument",
|
|
1091
|
+
description: companyRegistrationDocument?.description,
|
|
1086
1092
|
page1: companyRegistrationDocument?.registrationDocument?.[0]
|
|
1087
1093
|
}),
|
|
1088
1094
|
createDocumentRequest({
|
|
1089
1095
|
entityId,
|
|
1090
1096
|
entityType: "legalEntity",
|
|
1091
1097
|
documentType: taxDocumentType,
|
|
1098
|
+
description: companyTaxDocument?.description,
|
|
1092
1099
|
page1: companyTaxDocument?.taxDocument?.[0]
|
|
1093
1100
|
}),
|
|
1094
1101
|
createDocumentRequest({
|
|
1095
1102
|
entityId,
|
|
1096
1103
|
entityType: "legalEntity",
|
|
1097
1104
|
documentType: "proofOfDirector",
|
|
1105
|
+
description: companyProofOfDirectorDocument?.description,
|
|
1098
1106
|
page1: companyProofOfDirectorDocument?.proofOfDirector?.[0]
|
|
1099
1107
|
}),
|
|
1100
1108
|
createDocumentRequest({
|
|
1101
1109
|
entityId,
|
|
1102
1110
|
entityType: "legalEntity",
|
|
1103
1111
|
documentType: "constitutionalDocument",
|
|
1112
|
+
description: companyConstitutionalDocument?.description,
|
|
1104
1113
|
page1: companyConstitutionalDocument?.constitutionalDocument?.[0]
|
|
1105
1114
|
}),
|
|
1106
1115
|
createDocumentRequest({
|
|
1107
1116
|
entityId,
|
|
1108
1117
|
entityType: "legalEntity",
|
|
1109
1118
|
documentType: "proofOfSignatory",
|
|
1119
|
+
description: companyProofOfSignatoryDocument?.description,
|
|
1110
1120
|
page1: companyProofOfSignatoryDocument?.proofOfSignatory?.[0]
|
|
1111
1121
|
}),
|
|
1112
1122
|
createDocumentRequest({
|
|
1113
1123
|
entityId,
|
|
1114
1124
|
entityType: "legalEntity",
|
|
1115
1125
|
documentType: "proofOfOwnership",
|
|
1126
|
+
description: companyProofOfOwnershipDocument?.description,
|
|
1116
1127
|
page1: companyProofOfOwnershipDocument?.proofOfOwnership?.[0],
|
|
1117
1128
|
page2: companyProofOfOwnershipDocument?.proofOfOwnership?.[1]
|
|
1118
1129
|
})
|
|
@@ -1305,7 +1316,7 @@ const formatAdditionalInformation = (data, country, companyType, t) => {
|
|
|
1305
1316
|
["eInvoicingCode"]: data.eInvoicingCode
|
|
1306
1317
|
};
|
|
1307
1318
|
};
|
|
1308
|
-
const formatDataForSummary = (data, forms, t, language, isExperimentEnabled) => {
|
|
1319
|
+
const formatDataForSummary = (data, forms, t, language, isExperimentEnabled, version) => {
|
|
1309
1320
|
const datasetUtils = datasetUtilities(language);
|
|
1310
1321
|
return entriesOf(data).reduce((summaryData, [form]) => {
|
|
1311
1322
|
if (!form || !data[form]) return summaryData;
|
|
@@ -1346,8 +1357,8 @@ const formatDataForSummary = (data, forms, t, language, isExperimentEnabled) =>
|
|
|
1346
1357
|
data.companyStructure?.entityType,
|
|
1347
1358
|
t
|
|
1348
1359
|
),
|
|
1349
|
-
registrationAddress: data.basicInformation?.country === CountryCodes.Japan ? mapJpAddressSummary(data[form].registrationAddress, datasetUtils) : mapAddressLabels(data[form].registrationAddress, datasetUtils),
|
|
1350
|
-
operationalAddress: data[form].operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME ? data.basicInformation?.country === CountryCodes.Japan ? mapJpAddressSummary(data[form].operationalAddress, datasetUtils) : mapAddressLabels(data[form].operationalAddress, datasetUtils) : void 0
|
|
1360
|
+
registrationAddress: data.basicInformation?.country === CountryCodes.Japan && version === 4 ? mapJpAddressSummary(data[form].registrationAddress, datasetUtils) : mapAddressLabels(data[form].registrationAddress, datasetUtils),
|
|
1361
|
+
operationalAddress: data[form].operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME ? data.basicInformation?.country === CountryCodes.Japan && version === 4 ? mapJpAddressSummary(data[form].operationalAddress, datasetUtils) : mapAddressLabels(data[form].operationalAddress, datasetUtils) : void 0
|
|
1351
1362
|
}
|
|
1352
1363
|
};
|
|
1353
1364
|
case "companyRegistrationDocument":
|
|
@@ -1356,7 +1367,8 @@ const formatDataForSummary = (data, forms, t, language, isExperimentEnabled) =>
|
|
|
1356
1367
|
...summaryData,
|
|
1357
1368
|
[form]: {
|
|
1358
1369
|
companyRegistrationDocument: {
|
|
1359
|
-
fileName: data[form].registrationDocument?.[0]?.name
|
|
1370
|
+
fileName: data[form].registrationDocument?.[0]?.name,
|
|
1371
|
+
description: data[form]?.description
|
|
1360
1372
|
}
|
|
1361
1373
|
}
|
|
1362
1374
|
};
|
|
@@ -1366,7 +1378,8 @@ const formatDataForSummary = (data, forms, t, language, isExperimentEnabled) =>
|
|
|
1366
1378
|
...summaryData,
|
|
1367
1379
|
[form]: {
|
|
1368
1380
|
companyTaxDocument: {
|
|
1369
|
-
fileName: data[form].taxDocument?.[0]?.name
|
|
1381
|
+
fileName: data[form].taxDocument?.[0]?.name,
|
|
1382
|
+
description: data[form]?.description
|
|
1370
1383
|
}
|
|
1371
1384
|
}
|
|
1372
1385
|
};
|
|
@@ -1376,7 +1389,8 @@ const formatDataForSummary = (data, forms, t, language, isExperimentEnabled) =>
|
|
|
1376
1389
|
...summaryData,
|
|
1377
1390
|
[form]: {
|
|
1378
1391
|
companyProofOfDirectorDocument: {
|
|
1379
|
-
fileName: data[form].proofOfDirector?.[0]?.name
|
|
1392
|
+
fileName: data[form].proofOfDirector?.[0]?.name,
|
|
1393
|
+
description: data[form]?.description
|
|
1380
1394
|
}
|
|
1381
1395
|
}
|
|
1382
1396
|
};
|
|
@@ -1386,7 +1400,8 @@ const formatDataForSummary = (data, forms, t, language, isExperimentEnabled) =>
|
|
|
1386
1400
|
...summaryData,
|
|
1387
1401
|
[form]: {
|
|
1388
1402
|
companyProofOfSignatoryDocument: {
|
|
1389
|
-
fileName: data[form].proofOfSignatory?.[0]?.name
|
|
1403
|
+
fileName: data[form].proofOfSignatory?.[0]?.name,
|
|
1404
|
+
description: data[form]?.description
|
|
1390
1405
|
}
|
|
1391
1406
|
}
|
|
1392
1407
|
};
|
|
@@ -1396,7 +1411,8 @@ const formatDataForSummary = (data, forms, t, language, isExperimentEnabled) =>
|
|
|
1396
1411
|
...summaryData,
|
|
1397
1412
|
[form]: {
|
|
1398
1413
|
companyProofOfOwnershipDocument: {
|
|
1399
|
-
fileName: data[form].proofOfOwnership?.map((doc) => doc.name).join("\n")
|
|
1414
|
+
fileName: data[form].proofOfOwnership?.map((doc) => doc.name).join("\n"),
|
|
1415
|
+
description: data[form]?.description
|
|
1400
1416
|
}
|
|
1401
1417
|
}
|
|
1402
1418
|
};
|
|
@@ -1429,6 +1445,15 @@ async function submitDocuments({
|
|
|
1429
1445
|
if (!isDocumentsRequired(forms)) return;
|
|
1430
1446
|
const logger = createLogger();
|
|
1431
1447
|
const formattedDocument = await mapBusinessDetailsDocumentToApiDocument(data, legalEntity.id);
|
|
1448
|
+
formattedDocument.forEach((doc) => {
|
|
1449
|
+
const existingDoc = getDocument(legalEntity.id, doc.type);
|
|
1450
|
+
if (doc.type === "proofOfOwnership" && existingDoc && doc.attachments?.length) {
|
|
1451
|
+
doc.attachments = mergeProofOfOwnershipAttachments(
|
|
1452
|
+
existingDoc.attachments ?? [],
|
|
1453
|
+
doc.attachments
|
|
1454
|
+
).filter((attachment) => attachment.pageName);
|
|
1455
|
+
}
|
|
1456
|
+
});
|
|
1432
1457
|
try {
|
|
1433
1458
|
if (formattedDocument) {
|
|
1434
1459
|
await documentUtils.uploadDocuments(formattedDocument, legalEntity.id);
|
|
@@ -1848,10 +1873,12 @@ function additionalInformationValidators({
|
|
|
1848
1873
|
};
|
|
1849
1874
|
}
|
|
1850
1875
|
function BusinessDetailsDropin({
|
|
1851
|
-
taskType
|
|
1876
|
+
taskType,
|
|
1852
1877
|
country: propCountry,
|
|
1853
1878
|
problems: propProblems,
|
|
1854
1879
|
legalEntityResponse,
|
|
1880
|
+
efpBusinessLines,
|
|
1881
|
+
documents,
|
|
1855
1882
|
associatedLegalArrangement,
|
|
1856
1883
|
// initially undefined when creating entity
|
|
1857
1884
|
nestedLegalEntity,
|
|
@@ -1868,17 +1895,17 @@ function BusinessDetailsDropin({
|
|
|
1868
1895
|
const { showToast } = useToastContext();
|
|
1869
1896
|
const queryClient = useQueryClient();
|
|
1870
1897
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
1898
|
+
const { data: versionData } = useVersionConfiguration();
|
|
1871
1899
|
const { isSettingEnabled } = useSettingsContext();
|
|
1872
1900
|
const { accountHolder, setAccountHolder } = useAccountHolder();
|
|
1873
1901
|
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
1874
1902
|
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
1875
1903
|
const logger = createLogger();
|
|
1876
1904
|
const isSoleProp = accountHolder === "mySoleProprietorName";
|
|
1877
|
-
const isAssociationTaskType =
|
|
1905
|
+
const isAssociationTaskType = taskType !== TaskTypes.BUSINESS_DETAILS;
|
|
1878
1906
|
const legalEntityType = !isSoleProp ? LegalEntityTypes.ORGANIZATION : LegalEntityTypes.SOLE_PROPRIETORSHIP;
|
|
1879
1907
|
const subjectEntity = !isAssociationTaskType ? legalEntityResponse : isSoleProp ? associatedLegalArrangement : nestedLegalEntity;
|
|
1880
1908
|
const [country, setCountry] = useState(propCountry);
|
|
1881
|
-
const [documents, setDocuments] = useState();
|
|
1882
1909
|
const [problems, setProblems] = useState(propProblems ?? {});
|
|
1883
1910
|
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
1884
1911
|
const [derivedProps, setDerivedProps] = useState();
|
|
@@ -1888,17 +1915,6 @@ function BusinessDetailsDropin({
|
|
|
1888
1915
|
baseUrl: baseUrl.value,
|
|
1889
1916
|
rootLegalEntityId: rootLegalEntityId.value
|
|
1890
1917
|
});
|
|
1891
|
-
useEffect(() => {
|
|
1892
|
-
if (!subjectEntity?.documentDetails?.length) return;
|
|
1893
|
-
documentUtils.fetchDocuments(subjectEntity.documentDetails, subjectEntity?.id).then(() => {
|
|
1894
|
-
setDocuments(mapApiDocumentToBusinessDetailsDocuments(subjectEntity?.id));
|
|
1895
|
-
}).catch(() => {
|
|
1896
|
-
showToast({
|
|
1897
|
-
label: t(($) => $["failedToFetchRelevantDocuments"], { ns: "common" }),
|
|
1898
|
-
variant: "error"
|
|
1899
|
-
});
|
|
1900
|
-
});
|
|
1901
|
-
}, [subjectEntity?.documentDetails, subjectEntity?.id]);
|
|
1902
1918
|
useEffect(() => {
|
|
1903
1919
|
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
1904
1920
|
userEvents.addTaskEvent("Landed on page", {
|
|
@@ -1915,9 +1931,6 @@ function BusinessDetailsDropin({
|
|
|
1915
1931
|
setLoadingStatus,
|
|
1916
1932
|
country
|
|
1917
1933
|
});
|
|
1918
|
-
const { data: efpBusinessLines } = useBusinessLines(ALLOWED_SOF_SERVICES, {
|
|
1919
|
-
enabled: isSettingEnabled("allowBusinessLines")
|
|
1920
|
-
});
|
|
1921
1934
|
const defaultData = useMemo(() => {
|
|
1922
1935
|
const mapped = mapLegalEntityToBusinessDetailsSchema(
|
|
1923
1936
|
!isAssociationTaskType ? legalEntityResponse : isSoleProp ? associatedLegalArrangement ?? legalEntityResponse : nestedLegalEntity,
|
|
@@ -1954,11 +1967,12 @@ function BusinessDetailsDropin({
|
|
|
1954
1967
|
const taxInfo = data?.basicInformation?.taxInformation ?? data?.additionalInformation?.taxInformation;
|
|
1955
1968
|
const taxIdType = taxInfo?.length ? taxInfo.find((taxId) => taxId.country === country)?.type : void 0;
|
|
1956
1969
|
const regNumberType = data?.basicInformation?.registrationNumberType ?? data?.additionalInformation?.registrationNumberType;
|
|
1970
|
+
const companyType = taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY ? CompanyTypesValues.SOLE_PROPRIETORSHIP : data?.companyStructure?.entityType;
|
|
1957
1971
|
return {
|
|
1958
1972
|
basicInformation: basicInformationValidators({
|
|
1959
1973
|
country,
|
|
1960
1974
|
state: data?.basicInformation?.stateOrProvince,
|
|
1961
|
-
companyType
|
|
1975
|
+
companyType,
|
|
1962
1976
|
taxIdNumberType: taxIdType,
|
|
1963
1977
|
registrationNumberType: regNumberType,
|
|
1964
1978
|
isExperimentEnabled
|
|
@@ -1968,7 +1982,7 @@ function BusinessDetailsDropin({
|
|
|
1968
1982
|
additionalInformation: additionalInformationValidators({
|
|
1969
1983
|
country,
|
|
1970
1984
|
taxIdNumberType: taxIdType,
|
|
1971
|
-
companyType
|
|
1985
|
+
companyType,
|
|
1972
1986
|
registrationNumberType: regNumberType,
|
|
1973
1987
|
vatNumberType: data?.additionalInformation?.vatNumberType,
|
|
1974
1988
|
isExperimentEnabled
|
|
@@ -1976,7 +1990,7 @@ function BusinessDetailsDropin({
|
|
|
1976
1990
|
financialInformation: financialInfoValidationWithEmployeesRules
|
|
1977
1991
|
};
|
|
1978
1992
|
},
|
|
1979
|
-
[country, isExperimentEnabled]
|
|
1993
|
+
[country, isExperimentEnabled, taskType]
|
|
1980
1994
|
);
|
|
1981
1995
|
const multiForm = useMultiForm({
|
|
1982
1996
|
defaultData,
|
|
@@ -1997,7 +2011,8 @@ function BusinessDetailsDropin({
|
|
|
1997
2011
|
isSettingEnabled,
|
|
1998
2012
|
accountHolder,
|
|
1999
2013
|
tinMatched: isTinMatched,
|
|
2000
|
-
rootLegalEntity: legalEntityResponse
|
|
2014
|
+
rootLegalEntity: legalEntityResponse,
|
|
2015
|
+
version: versionData?.version
|
|
2001
2016
|
}),
|
|
2002
2017
|
[
|
|
2003
2018
|
multiForm.data,
|
|
@@ -2007,7 +2022,8 @@ function BusinessDetailsDropin({
|
|
|
2007
2022
|
isSettingEnabled,
|
|
2008
2023
|
accountHolder,
|
|
2009
2024
|
isTinMatched,
|
|
2010
|
-
legalEntityResponse
|
|
2025
|
+
legalEntityResponse,
|
|
2026
|
+
versionData?.version
|
|
2011
2027
|
]
|
|
2012
2028
|
);
|
|
2013
2029
|
useEffect(() => {
|
|
@@ -2111,7 +2127,7 @@ function BusinessDetailsDropin({
|
|
|
2111
2127
|
nestedLegalEntity,
|
|
2112
2128
|
nestedLegalEntityDetails,
|
|
2113
2129
|
problems,
|
|
2114
|
-
taskType
|
|
2130
|
+
taskType,
|
|
2115
2131
|
accountHolder: accountHolder ?? "theCompanyIWorkFor",
|
|
2116
2132
|
forms,
|
|
2117
2133
|
documentUtils,
|
|
@@ -2307,6 +2323,7 @@ function BusinessDetailsDropin({
|
|
|
2307
2323
|
currentStep: steps.current,
|
|
2308
2324
|
totalSteps: steps.total,
|
|
2309
2325
|
forms,
|
|
2326
|
+
activeForm,
|
|
2310
2327
|
disableNextButton: activeForm.formId === "businessSelection",
|
|
2311
2328
|
gotoFormByFormIndex,
|
|
2312
2329
|
handleNextClick: overrideNextClick,
|
|
@@ -2354,6 +2371,71 @@ function BusinessDetailsDropin({
|
|
|
2354
2371
|
}
|
|
2355
2372
|
) });
|
|
2356
2373
|
}
|
|
2374
|
+
const useDocuments = (documentDetails, entityId, options) => {
|
|
2375
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
2376
|
+
const documentUtils = documentApiUtils({
|
|
2377
|
+
baseUrl: baseUrl.value,
|
|
2378
|
+
rootLegalEntityId: rootLegalEntityId.value
|
|
2379
|
+
});
|
|
2380
|
+
const documentDetailsKey = (documentDetails || []).map((details) => details.id).sort((a, b) => a.localeCompare(b)).join(",");
|
|
2381
|
+
return useQuery({
|
|
2382
|
+
queryKey: ["documents", documentDetailsKey, entityId + ""],
|
|
2383
|
+
queryFn: () => documentUtils.fetchDocuments(documentDetails, entityId),
|
|
2384
|
+
retry: 0,
|
|
2385
|
+
...options
|
|
2386
|
+
});
|
|
2387
|
+
};
|
|
2388
|
+
function useBusinessDetailsData(taskType, associatedLegalArrangement, nestedLegalEntity) {
|
|
2389
|
+
const { t } = useTranslation(["common"]);
|
|
2390
|
+
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
2391
|
+
const { accountHolder } = useAccountHolder();
|
|
2392
|
+
const { showToast } = useToastContext();
|
|
2393
|
+
const { isSettingEnabled } = useSettingsContext();
|
|
2394
|
+
const { data: efpBusinessLines, isLoading: fetchingEfpBusinessLines } = useBusinessLines(
|
|
2395
|
+
ALLOWED_SOF_SERVICES,
|
|
2396
|
+
{
|
|
2397
|
+
enabled: isSettingEnabled("allowBusinessLines")
|
|
2398
|
+
}
|
|
2399
|
+
);
|
|
2400
|
+
const isSoleProp = accountHolder === "mySoleProprietorName";
|
|
2401
|
+
const isAssociationTaskType = taskType !== TaskTypes.BUSINESS_DETAILS;
|
|
2402
|
+
const subjectEntity = !isAssociationTaskType ? rootLe : isSoleProp ? associatedLegalArrangement : nestedLegalEntity;
|
|
2403
|
+
const { isLoading: fetchingDocuments, isError } = useDocuments(
|
|
2404
|
+
subjectEntity?.documentDetails || [],
|
|
2405
|
+
subjectEntity?.id || "",
|
|
2406
|
+
{
|
|
2407
|
+
enabled: subjectEntity?.documentDetails && subjectEntity?.documentDetails.length > 0
|
|
2408
|
+
}
|
|
2409
|
+
);
|
|
2410
|
+
useEffect(() => {
|
|
2411
|
+
if (isError) {
|
|
2412
|
+
showToast({
|
|
2413
|
+
label: t(($) => $["failedToFetchRelevantDocuments"], { ns: "common" }),
|
|
2414
|
+
variant: "error"
|
|
2415
|
+
});
|
|
2416
|
+
}
|
|
2417
|
+
}, [isError, showToast, t]);
|
|
2418
|
+
let mappedDocs;
|
|
2419
|
+
if (subjectEntity?.id) {
|
|
2420
|
+
mappedDocs = mapApiDocumentToBusinessDetailsDocuments(subjectEntity.id);
|
|
2421
|
+
}
|
|
2422
|
+
return rootLe && !fetchingEfpBusinessLines && !fetchingDocuments ? {
|
|
2423
|
+
data: {
|
|
2424
|
+
rootLe,
|
|
2425
|
+
efpBusinessLines,
|
|
2426
|
+
documents: mappedDocs
|
|
2427
|
+
},
|
|
2428
|
+
isLoading: false
|
|
2429
|
+
} : {
|
|
2430
|
+
data: {
|
|
2431
|
+
rootLe,
|
|
2432
|
+
efpBusinessLines,
|
|
2433
|
+
documents: mappedDocs
|
|
2434
|
+
},
|
|
2435
|
+
isLoading: true
|
|
2436
|
+
};
|
|
2437
|
+
}
|
|
2357
2438
|
export {
|
|
2358
|
-
BusinessDetailsDropin as B
|
|
2439
|
+
BusinessDetailsDropin as B,
|
|
2440
|
+
useBusinessDetailsData as u
|
|
2359
2441
|
};
|
|
@@ -2,12 +2,12 @@
|
|
|
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] = "87e686e8-fed5-4996-b218-3dec9210cc71", e._sentryDebugIdIdentifier = "sentry-dbid-87e686e8-fed5-4996-b218-3dec9210cc71");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext,
|
|
10
|
+
import { b as useApiContext, a0 as useMutation, k as httpPost } from "./StoreProvider-DTMSAVgy.js";
|
|
11
11
|
const createLegalEntity = async (legalEntityId, baseUrl, data) => {
|
|
12
12
|
return httpPost(
|
|
13
13
|
{
|
|
@@ -2,17 +2,17 @@
|
|
|
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] = "5e5cb85b-28af-4c2a-9c72-7813daa2e3c1", e._sentryDebugIdIdentifier = "sentry-dbid-5e5cb85b-28af-4c2a-9c72-7813daa2e3c1");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
|
-
import { b as useId } from "./useToastContext-
|
|
12
|
+
import { b as useId } from "./useToastContext-BQYYaLd-.js";
|
|
13
13
|
import { useState, useEffect } from "preact/hooks";
|
|
14
|
-
import { u as useTranslation,
|
|
15
|
-
import { M as Modal } from "./Modal-
|
|
14
|
+
import { u as useTranslation, a3 as useAnalyticsContext, G as Typography, B as Button, P as createLogger, V as useI18nContext } from "./StoreProvider-DTMSAVgy.js";
|
|
15
|
+
import { M as Modal } from "./Modal-B8fxl0iP.js";
|
|
16
16
|
const structuredList = "adyen-kyc-structured-list";
|
|
17
17
|
const structuredListSectionField = "adyen-kyc-structured-list-section-field";
|
|
18
18
|
const structuredListSectionLabel = "adyen-kyc-structured-list-section-label";
|
|
@@ -153,7 +153,7 @@ function datasetUtilities(locale) {
|
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
155
|
const logger$1 = createLogger();
|
|
156
|
-
const countriesImports = /* @__PURE__ */ Object.assign({ "../countries/de-DE.json": () => import("./de-DE-B3nctkG8.js"), "../countries/
|
|
156
|
+
const countriesImports = /* @__PURE__ */ Object.assign({ "../countries/de-DE.json": () => import("./de-DE-B3nctkG8.js"), "../countries/en-US.json": () => import("./en-US-DSoLr6rp.js"), "../countries/es-ES.json": () => import("./es-ES-BRfK6tX7.js"), "../countries/fr-FR.json": () => import("./fr-FR-Dk6Lw2On.js"), "../countries/it-IT.json": () => import("./it-IT-D7G4BaP7.js"), "../countries/ja-JP.json": () => import("./ja-JP-DTW_hY1L.js"), "../countries/nl-NL.json": () => import("./nl-NL-CFzm75Jw.js"), "../countries/sv-SE.json": () => import("./sv-SE-rckxD-43.js") });
|
|
157
157
|
const loadCountriesDataset = async (locale) => {
|
|
158
158
|
const importForLocale = countriesImports[`../countries/${locale}.json`];
|
|
159
159
|
if (!importForLocale) {
|
|
@@ -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] = "23abc7fb-6532-4e16-90ae-886da1a5d9cc", e._sentryDebugIdIdentifier = "sentry-dbid-23abc7fb-6532-4e16-90ae-886da1a5d9cc");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
12
|
import { useEffect, useState, useRef, useMemo, useCallback, useReducer } from "preact/hooks";
|
|
13
|
-
import { u as useTranslation,
|
|
14
|
-
import { b as useId } from "./useToastContext-
|
|
13
|
+
import { u as useTranslation, a3 as useAnalyticsContext, a4 as Icon, z as translateStringOrObject, L as Loader, a5 as noop, G as Typography, P as createLogger, W as isEmpty, a1 as entriesOf, aV as doArraysMatch } from "./StoreProvider-DTMSAVgy.js";
|
|
14
|
+
import { b as useId } from "./useToastContext-BQYYaLd-.js";
|
|
15
15
|
import { computed, signal, useSignal, useSignalEffect } from "@preact/signals";
|
|
16
|
-
import { K as KEYBOARD_KEYS } from "./Modal-
|
|
17
|
-
import { C as Checkbox, a as debouncedInputEvent } from "./debouncedInputEvent-
|
|
16
|
+
import { K as KEYBOARD_KEYS } from "./Modal-B8fxl0iP.js";
|
|
17
|
+
import { C as Checkbox, a as debouncedInputEvent } from "./debouncedInputEvent-BdLyqQK5.js";
|
|
18
18
|
const ARIA_ERROR_SUFFIX = "-ariaError";
|
|
19
19
|
const MaybeFieldset = ({
|
|
20
20
|
children,
|
|
@@ -181,11 +181,12 @@ const createSelectFocus = ({
|
|
|
181
181
|
const focusedItemIndex = computed(() => {
|
|
182
182
|
const currFocus = focused.value;
|
|
183
183
|
const toFind = focusedIsItem(currFocus) ? currFocus : getDefaultFocusedItem();
|
|
184
|
+
const itemsValue = items.value;
|
|
184
185
|
if (!toFind) {
|
|
185
186
|
console.warn("[Select] No existing focused item, and none of the filtered items are enabled");
|
|
186
187
|
return 0;
|
|
187
188
|
}
|
|
188
|
-
return
|
|
189
|
+
return itemsValue.findIndex((i) => i.id === toFind.id);
|
|
189
190
|
});
|
|
190
191
|
const findPotentialIndex = (currentIndex, direction) => {
|
|
191
192
|
const potentialIndex = direction === "down" ? currentIndex + 1 : currentIndex - 1;
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "eb88aaf0-2dc7-493e-a098-a311deb1cdf3", e._sentryDebugIdIdentifier = "sentry-dbid-eb88aaf0-2dc7-493e-a098-a311deb1cdf3");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useContext, useCallback, useMemo } from "preact/hooks";
|
|
11
|
-
import { d as debounce } from "./debouncedInputEvent-
|
|
12
|
-
import { az as StateContext } from "./StoreProvider-
|
|
11
|
+
import { d as debounce } from "./debouncedInputEvent-BdLyqQK5.js";
|
|
12
|
+
import { az as StateContext } from "./StoreProvider-DTMSAVgy.js";
|
|
13
13
|
function useStateContext() {
|
|
14
14
|
const context = useContext(StateContext);
|
|
15
15
|
return context;
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5695be64-60af-4207-a31b-614f1647d9c6", e._sentryDebugIdIdentifier = "sentry-dbid-5695be64-60af-4207-a31b-614f1647d9c6");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
|
|
11
|
-
import {
|
|
12
|
-
import { V as ValidationResult } from "./useForm-
|
|
13
|
-
import { e as isNotEmptyValidator } from "./CountryField-
|
|
11
|
+
import { ak as objectsDeepEqual, P as createLogger, W as isEmpty } from "./StoreProvider-DTMSAVgy.js";
|
|
12
|
+
import { V as ValidationResult } from "./useForm-BsQfbbso.js";
|
|
13
|
+
import { e as isNotEmptyValidator } from "./CountryField-BIYJvEAW.js";
|
|
14
14
|
const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
|
|
15
15
|
a[c] = obj[c];
|
|
16
16
|
return a;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext, j as useQuery, m as httpGet } from "./StoreProvider-
|
|
10
|
+
import { b as useApiContext, j as useQuery, m as httpGet } from "./StoreProvider-DTMSAVgy.js";
|
|
11
11
|
const getOnboardingStatus = async (legalEntityId, baseUrl) => {
|
|
12
12
|
return httpGet({
|
|
13
13
|
baseUrl,
|