@adyen/kyc-components 3.85.0 → 3.86.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-DWt6MA7A.js → AcceptTermsOfServiceComponent-DzMlzUjz.js} +16 -17
- package/dist/{Accordion-DQSd9JrF.js → Accordion-ZHPTn2Gl.js} +2 -2
- package/dist/{AccountSetupRejected-Y2jV7DOd.js → AccountSetupRejected-DON-7H74.js} +4 -4
- package/dist/{Address-CN31gTRW.js → Address-ChPj2pfR.js} +337 -22
- package/dist/{Alert-B2qwr9au.js → Alert-CeZqoFeT.js} +3 -3
- package/dist/{Avatar-CrL6cVDB.js → Avatar-zXT7v3KF.js} +2 -2
- package/dist/{BusinessDetailsMultiformDropin-BB1mTi0Z.js → BusinessDetailsMultiformDropin-DKiYg8gJ.js} +89 -3112
- package/dist/{BusinessFinancingComponent-BevBrUTE.js → BusinessFinancingComponent-BRziB5i-.js} +6 -6
- package/dist/{BusinessFinancingDropin-BgU5hfv0.js → BusinessFinancingDropin-CUmKL5bO.js} +21 -38
- package/dist/{BusinessFinancingPage-u2Xu42u-.js → BusinessFinancingPage-DhhnCxFQ.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-BNxEzkjO.js → BusinessTypeSelectionPage-B_dVM7cC.js} +9 -8
- package/dist/Card-Bz2B4J0v.js +82 -0
- package/dist/ConstitutionalDocument-Dt9O9bVo.js +143 -0
- package/dist/{CountryField-CFppUh42.js → CountryField-Bv9P8dRJ.js} +110 -78
- package/dist/CreateIndividualComponent-Mw4AiW_M.js +71 -0
- package/dist/CreateTransferInstrumentComponent-usUQlcH_.js +66 -0
- package/dist/{Currency-Zz8j3LFf.js → Currency-SzvigNNo.js} +8 -63
- package/dist/{CustomerSupport-CkqG00fn.js → CustomerSupport-C_KLB51k.js} +21 -9
- package/dist/{DebugModal-Cxp_Lbjk.js → DebugModal-DYolUZQS.js} +9 -9
- package/dist/{DecisionMakerDetailsPage-kpoxsSYP.js → DecisionMakerDetailsPage-C2BzKLSi.js} +7 -7
- package/dist/{DecisionMakers-DMboYynJ.js → DecisionMakers-DTYzQWdY.js} +18 -20
- package/dist/{EmbeddedStatus-DdZv9Kwp.js → EmbeddedStatus-jepajhAF.js} +3 -3
- package/dist/{EndStateLayout-Cswr0wiZ.js → EndStateLayout-DQm7Xrqx.js} +2 -2
- package/dist/{useFormContext-DrrsFJH7.js → FormFlow-A9b0QEcM.js} +10 -16
- package/dist/{FormNavigation-DrejHtXO.js → FormNavigation-DEdNWaAc.js} +5 -5
- package/dist/{useGlobalData-rR_jnTzW.js → FormWrapper-DjWyqVD2.js} +12 -79
- package/dist/{IndividualOnfidoDropin-CydUe7_6.js → IndividualOnfido-BMIkKHvJ.js} +8187 -6328
- package/dist/IndividualOnfidoDropin-DBQF0Onh.js +2502 -0
- package/dist/{InputText-EX5kyD9L.js → InputText-BG-TiSNN.js} +4 -4
- package/dist/{Introduction-DncY2r7T.js → Introduction-BgoEJd8o.js} +4 -4
- package/dist/{JpAddress-BTfvrykR.js → JpAddress-Jxj9u4D5.js} +8 -8
- package/dist/{LegalRepresentativeDetailsPage-DxqaU2W7.js → LegalRepresentativeDetailsPage-BH5AnQhk.js} +5 -5
- package/dist/{ListItem-pn0XFAz_.js → ListItem-DIDj0vuO.js} +3 -3
- package/dist/{ManageIndividualComponent-CKRuUS0t.js → ManageIndividualComponent-CJKXW8rK.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-DDgriC3w.js → ManageTermsOfServiceComponent-DNf00D1s.js} +5 -5
- package/dist/{ManageTransferInstrumentComponent-BoQn6JaV.js → ManageTransferInstrumentComponent-gVWN389q.js} +14 -13
- package/dist/{MaybeModal-B1X7K4z1.js → MaybeModal-D51ALTH6.js} +3 -3
- package/dist/{Modal-ConNvgj4.js → Modal-C9aImxis.js} +2 -2
- package/dist/OnboardingDropinComponent-D-tQ12Sy.js +9791 -0
- package/dist/{PayoutDetailsDropin-CHOa81Ot.js → PayoutDetailsDropin-CxWPXV7j.js} +288 -158
- package/dist/{Review-BAuL4AQ-.js → Review-CRhM6n_P.js} +8 -8
- package/dist/RootBusinessDetailsPage-DZrT_e0g.js +61 -0
- package/dist/{RootBusinessLinesPage-D-YRRyIW.js → RootBusinessLinesPage-CJUpoVy5.js} +267 -144
- package/dist/RootIndividualDetailsPage-pqVuzOoJ.js +80 -0
- package/dist/{SignPCIComponent-B6FQiV5E.js → SignPCIComponent-BNbx3OzX.js} +11 -11
- package/dist/{SingpassSelection-DxGUYazk.js → SingpassSelection-BAa3S705.js} +4 -5
- package/dist/SoleProprietorshipPage-Bhw3GBKP.js +60 -0
- package/dist/{SourceOfFundsPage-Ce-Mim_H.js → SourceOfFundsPage-CJXpHSgo.js} +24 -29
- package/dist/{StepProgressIndicator-BymtNCPV.js → StepProgressIndicator-Dncrs7ra.js} +2 -2
- package/dist/{StoreProvider-BYjTSjnX.js → StoreProvider-CWnZNw9D.js} +427 -305
- package/dist/{TaskItemStatus-BholBQ7C.js → TaskItemStatus-D3ri_-L2.js} +3 -3
- package/dist/{TaxReportingDropin-CSa5vto5.js → TaxReportingDropin-Du7KU--L.js} +15 -17
- package/dist/{TrustDetailsPage-CYMeuEyr.js → TrustDetailsPage-SGmHwgzj.js} +24 -32
- package/dist/{TrustMemberCompanyPage-DICY9KDR.js → TrustMemberCompanyPage-BkQ9q4_T.js} +6 -6
- package/dist/{TrustMemberIndividualPage-DUGmI852.js → TrustMemberIndividualPage-CIr73hS-.js} +5 -5
- package/dist/UnincorporatedPartnershipIndividualPage-DQxHTyUp.js +65 -0
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CuvkBZ2N.js → UnincorporatedPartnershipMemberCompanyPage-DOWqNUHn.js} +6 -6
- package/dist/VerificationErrorAlert-DDsMxj76.js +79 -0
- package/dist/{ViewVerificationStatusComponent-zXuO8CY1.js → ViewVerificationStatusComponent-Hqp0gnec.js} +4 -4
- 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 +20 -20
- package/dist/adyen-onboarding.js +2 -2
- 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/{bg-BG-fr-xfUBV.js → bg-BG-B1GR6lKu.js} +3 -1
- package/dist/{bg-BG-BIOMFPaW.js → bg-BG-BC1dwNN2.js} +2 -5
- package/dist/bg-BG-BJo9yIYj.js +13 -0
- package/dist/bg-BG-D8qq7TQJ.js +94 -0
- package/dist/bg-BG-a6CQ0hKw.js +13 -0
- package/dist/{bg-BG-Cs_1PU3v.js → bg-BG-e6Rs6yz_.js} +4 -1
- package/dist/{cs-CZ-DNWTRefA.js → cs-CZ-2foXfkBk.js} +2 -5
- package/dist/cs-CZ-BAr1-JAS.js +13 -0
- package/dist/cs-CZ-ChGeQ9s0.js +94 -0
- package/dist/{cs-CZ-C0sNB1Fm.js → cs-CZ-DBQXByj7.js} +3 -1
- package/dist/cs-CZ-LGBI1w0Z.js +13 -0
- package/dist/{cs-CZ-B2WAqmaW.js → cs-CZ-Q6NVYK-k.js} +4 -1
- package/dist/da-DK-914Viqia.js +13 -0
- package/dist/{da-DK-8dk9Q_Wk.js → da-DK-CjjWmhN6.js} +3 -1
- package/dist/da-DK-CyHH8kX3.js +94 -0
- package/dist/{da-DK-D-eeokQn.js → da-DK-DSYEF7Q1.js} +4 -1
- package/dist/{da-DK-D-PlwKvZ.js → da-DK-DU3_xdWg.js} +2 -5
- package/dist/da-DK-DoHb4ssx.js +13 -0
- package/dist/{de-DE-Dcs3W1fT.js → de-DE-B9-ILIdw.js} +4 -1
- package/dist/{de-DE-4GAd_srm.js → de-DE-BODG29hR.js} +2 -5
- package/dist/de-DE-BXKZNAA1.js +13 -0
- package/dist/de-DE-DL6SrIBE.js +94 -0
- package/dist/{de-DE-CCyKie8B.js → de-DE-DoQHxDRp.js} +3 -1
- package/dist/de-DE-R6YgDOo5.js +13 -0
- package/dist/{analytics-DkXXx2b6.js → debouncedInputEvent-B3Lwtvx_.js} +7 -21
- package/dist/{validate-DzaSMOa2.js → documentUtils-C2iCagu9.js} +3 -167
- package/dist/{dropinUtils-CCEDaAJW.js → dropinUtils-L9qJuAw0.js} +4 -20
- package/dist/el-GR-BnMw4HQ7.js +13 -0
- package/dist/{el-GR-D7zMcBtK.js → el-GR-CnoZeZlX.js} +3 -1
- package/dist/{el-GR-DBum-QDu.js → el-GR-DYjcbiSc.js} +4 -1
- package/dist/{el-GR-Ddnh0NhQ.js → el-GR-DcIdm3iK.js} +2 -5
- package/dist/el-GR-DgaUGjyJ.js +13 -0
- package/dist/el-GR-l0JeDNPy.js +94 -0
- package/dist/{en-US-DjF6iC7G.js → en-US-BxEW5N6f.js} +44 -5
- package/dist/{en-US-BwDZ0WHW.js → en-US-C5WyUweF.js} +3 -1
- package/dist/en-US-CTZwL084.js +13 -0
- package/dist/{en-US-BCFNoF5y.js → en-US-DYo4OF-P.js} +8 -7
- package/dist/{en-US-DdeSoN_2.js → en-US-gsp7CD_E.js} +5 -1
- package/dist/{es-ES-JvAvmB2A.js → es-ES-BMrse1nQ.js} +3 -1
- package/dist/es-ES-BWAlCq7R.js +13 -0
- package/dist/{es-ES-C7XjLOHi.js → es-ES-C-tTuMLH.js} +4 -1
- package/dist/es-ES-C1ClJ2XE.js +94 -0
- package/dist/{es-ES-C4lENXHH.js → es-ES-CMQqgMEJ.js} +2 -5
- package/dist/es-ES-dMSfTLXF.js +13 -0
- package/dist/{et-EE-SJf3_Ega.js → et-EE-BE8bHZns.js} +3 -1
- package/dist/et-EE-BG_Y29oV.js +94 -0
- package/dist/{et-EE-BUG05EDz.js → et-EE-BzLAp08F.js} +4 -1
- package/dist/et-EE-D9SV0taO.js +13 -0
- package/dist/{et-EE-3EQr-1cj.js → et-EE-DcpuYQwB.js} +2 -5
- package/dist/et-EE-l977xCZ_.js +13 -0
- package/dist/fi-FI-0ScajGUB.js +13 -0
- package/dist/{fi-FI-Byvvcxxq.js → fi-FI-4GTHkwOL.js} +2 -5
- package/dist/{fi-FI-Cy2hAl0B.js → fi-FI-Bmu7sndb.js} +3 -1
- package/dist/fi-FI-C7GrKbXx.js +13 -0
- package/dist/fi-FI-bIhXiQPL.js +94 -0
- package/dist/{fi-FI-CEzjKgiz.js → fi-FI-pyHLbmel.js} +4 -1
- package/dist/{MaskedInput-DB6EYmfa.js → fieldConfigurations-DVV23oeM.js} +616 -14
- package/dist/{fr-FR-E_UubsZ-.js → fr-FR-Ba-HRBQ7.js} +2 -5
- package/dist/fr-FR-Bj275MRb.js +94 -0
- package/dist/fr-FR-CqCcxkgA.js +13 -0
- package/dist/{fr-FR-DNJiLv9b.js → fr-FR-DG3tEkdN.js} +4 -1
- package/dist/fr-FR-o45TzYMp.js +13 -0
- package/dist/{fr-FR-BmW46mYd.js → fr-FR-ufKVxWpT.js} +3 -1
- package/dist/getFieldsWithExistingData-C6JBh3D6.js +22 -0
- package/dist/{getName-Dc03c4n_.js → getName-k5oRc0oZ.js} +9 -2
- package/dist/{hasDataChanged-CUdKM92N.js → hasDataChanged-CogwJI1I.js} +2 -2
- package/dist/{hr-HR-TVOgDkBf.js → hr-HR-BFx1T11G.js} +2 -5
- package/dist/{hr-HR-WMnlxMEY.js → hr-HR-BRFErTkv.js} +4 -1
- package/dist/{hr-HR-c1Si_0s4.js → hr-HR-BYXLJcPZ.js} +3 -1
- package/dist/hr-HR-CL0q_D2U.js +94 -0
- package/dist/hr-HR-CoCrArfg.js +13 -0
- package/dist/hr-HR-YG9hvMMj.js +13 -0
- package/dist/hu-HU-BrxUJuJh.js +13 -0
- package/dist/{hu-HU-B2nrl0pw.js → hu-HU-CJA8w351.js} +4 -1
- package/dist/hu-HU-DIurnBC3.js +13 -0
- package/dist/{hu-HU-DRONW_47.js → hu-HU-GXvzHwu9.js} +2 -5
- package/dist/{hu-HU-CibGC8KY.js → hu-HU-J4qBifyy.js} +3 -1
- package/dist/hu-HU-cLqGFTTR.js +94 -0
- package/dist/{iframeWidget-BWwxgbNs.js → iframeWidget-D2CKFlJk.js} +4 -4
- package/dist/{it-IT-BMjuva_2.js → it-IT-B_5GkLBx.js} +3 -1
- package/dist/{it-IT-DuBLJIdz.js → it-IT-Bw3VIHJB.js} +2 -5
- package/dist/it-IT-C0Qk47kh.js +94 -0
- package/dist/it-IT-CNS4NmYX.js +13 -0
- package/dist/it-IT-Cztl5jRY.js +13 -0
- package/dist/{it-IT-BRmX2jEi.js → it-IT-mhNjrQZn.js} +4 -1
- package/dist/{ja-JP-Cr_qjpZ2.js → ja-JP-BUrknIDB.js} +3 -1
- package/dist/{ja-JP-CCnzjx-u.js → ja-JP-BxEWI56P.js} +9 -1
- package/dist/{ja-JP-gRRH8Eph.js → ja-JP-CfrHlRGC.js} +4 -1
- package/dist/{ja-JP-CJ_j_HAA.js → ja-JP-DI7lRfpI.js} +2 -5
- package/dist/ja-JP-DSdZj-it.js +94 -0
- package/dist/ja-JP-DXkV1ta4.js +13 -0
- package/dist/{localizeDateString-rfEOu5f7.js → localizeDateString-ZCoTLjs1.js} +2 -2
- package/dist/lt-LT-BJTBEa5D.js +13 -0
- package/dist/lt-LT-C-dKiExL.js +94 -0
- package/dist/{lt-LT-BJQDUanx.js → lt-LT-C0Acftnm.js} +4 -1
- package/dist/lt-LT-D1viSP-v.js +13 -0
- package/dist/{lt-LT-DjNjg3Pl.js → lt-LT-L0wG5Pd2.js} +3 -1
- package/dist/{lt-LT-CBBDNCnp.js → lt-LT-ewVNPhQN.js} +2 -5
- package/dist/lv-LV-AkiOewnL.js +13 -0
- package/dist/{lv-LV-h3nTokkM.js → lv-LV-Bnq61WAt.js} +4 -1
- package/dist/{lv-LV-BpRfRfMz.js → lv-LV-DFvpmmGg.js} +3 -1
- package/dist/lv-LV-GI-ZDM0K.js +13 -0
- package/dist/{lv-LV-CtIe38WU.js → lv-LV-JqXvRt4T.js} +2 -5
- package/dist/lv-LV-UkEOuqFz.js +94 -0
- package/dist/{mapExistingFile-D_HVWRXe.js → mapExistingFile-txzqej6F.js} +5 -80
- package/dist/mapFinancialReportsToFinancialInformation-DoTIj0Q-.js +67 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-pPCQCgRx.js +63 -0
- package/dist/{mapLegalEntityToIndividualOnfidoSchema-DsQrqqP5.js → mapLegalEntityToIndividualOnfidoSchema-B8NxtO2j.js} +3 -63
- package/dist/{mapTransferInstrumentToPayoutAccount-MugvfqfK.js → mapTransferInstrumentToPayoutAccount-D9lyD7nx.js} +2 -2
- package/dist/nl-NL-B6B4Z_tr.js +13 -0
- package/dist/nl-NL-Cfr5hMtI.js +94 -0
- package/dist/{nl-NL-CE4l8R5l.js → nl-NL-DR1wVqQC.js} +2 -5
- package/dist/{nl-NL-oaBDOlm6.js → nl-NL-UhpFianh.js} +3 -1
- package/dist/nl-NL-VneIcgWO.js +13 -0
- package/dist/{nl-NL-YzDSCWLL.js → nl-NL-donw5yvS.js} +4 -1
- package/dist/no-NO-ASO8Je2l.js +94 -0
- package/dist/{no-NO-B1_YJlMP.js → no-NO-BZmigu6-.js} +2 -5
- package/dist/{no-NO-BTrfxWS7.js → no-NO-DRF-gOWI.js} +3 -1
- package/dist/{no-NO-Big2B13b.js → no-NO-Dev7r3VA.js} +4 -1
- package/dist/no-NO-Dn1LUbDp.js +13 -0
- package/dist/no-NO-Dqp598Ox.js +13 -0
- package/dist/payout-verification-instant-5u-wvFKv.js +41 -0
- package/dist/payout-verification-manual-BJsf7QPE.js +90 -0
- package/dist/{pl-PL-DGYFY42P.js → pl-PL-BKxhMICw.js} +2 -5
- package/dist/pl-PL-C1cP4Qpn.js +13 -0
- package/dist/pl-PL-CG4rvgUo.js +94 -0
- package/dist/{pl-PL-C72GTDxW.js → pl-PL-CHyLS1B7.js} +3 -1
- package/dist/{pl-PL-CL483jMb.js → pl-PL-DU_Xulyu.js} +4 -1
- package/dist/pl-PL-Zdh_Xu43.js +13 -0
- package/dist/{process-field-configurations-CiECrUSj.js → process-field-configurations-D2EUZow3.js} +3 -3
- package/dist/{pt-BR-CtFCi7U4.js → pt-BR-CFZE5Nop.js} +3 -1
- package/dist/{pt-BR-DJOzf0y2.js → pt-BR-DeXo4rsi.js} +4 -1
- package/dist/pt-BR-DkzLiK7Y.js +13 -0
- package/dist/pt-BR-DqLaaG4L.js +13 -0
- package/dist/pt-BR-IWTcYKu9.js +94 -0
- package/dist/{pt-BR-Co8OqKh-.js → pt-BR-wAIdhUru.js} +2 -5
- package/dist/{pt-PT-XAn7WGle.js → pt-PT-Bc9JI4eu.js} +3 -1
- package/dist/{pt-PT-pKLoM66X.js → pt-PT-C1qHVe7L.js} +2 -5
- package/dist/pt-PT-CoTUf3zo.js +13 -0
- package/dist/{pt-PT-B3qoJ3Fr.js → pt-PT-DkJdR6SS.js} +4 -1
- package/dist/pt-PT-LZZYQKaC.js +94 -0
- package/dist/pt-PT-uiREjC_e.js +13 -0
- package/dist/{resolveEnvironment-DTYC79J1.js → resolveEnvironment-CU4TOfg6.js} +3 -3
- package/dist/{ro-RO-Ct_BJvsc.js → ro-RO-BDjHimxe.js} +4 -1
- package/dist/{ro-RO-qX8X1Q1m.js → ro-RO-BFzooIri.js} +3 -1
- package/dist/ro-RO-C835aMET.js +13 -0
- package/dist/ro-RO-_HSYnLLu.js +13 -0
- package/dist/{ro-RO-D3rQ93wa.js → ro-RO-juw6hKRk.js} +2 -5
- package/dist/ro-RO-nVSeNtIQ.js +94 -0
- package/dist/{rules-BfrH23mO.js → rules-LaFMJfnA.js} +4 -5
- package/dist/{sk-SK-CmH1I1tp.js → sk-SK-BM57awWi.js} +2 -5
- package/dist/sk-SK-BX0wsQH4.js +94 -0
- package/dist/sk-SK-D6KtBU3q.js +13 -0
- package/dist/{sk-SK-CjdK4BKW.js → sk-SK-DRuiKuEp.js} +3 -1
- package/dist/sk-SK-K03EHmJF.js +13 -0
- package/dist/{sk-SK-FGK1FMMO.js → sk-SK-atqQJid1.js} +4 -1
- package/dist/{sl-SI-lPxRRPsh.js → sl-SI-CmYmQ6nG.js} +3 -1
- package/dist/{sl-SI-Cz28AFTz.js → sl-SI-CwKpXVCh.js} +4 -1
- package/dist/sl-SI-Dt7rovIT.js +94 -0
- package/dist/{sl-SI-hnlbW1OT.js → sl-SI-g2WSP0Tj.js} +2 -5
- package/dist/sl-SI-gM40Ay3W.js +13 -0
- package/dist/sl-SI-wYYQibM-.js +13 -0
- package/dist/style.css +931 -892
- package/dist/styles-CLV89_hH.js +931 -892
- package/dist/sv-SE-Bnhsdw8c.js +13 -0
- package/dist/{sv-SE-DLl7OGxl.js → sv-SE-CGCP_6VE.js} +4 -1
- package/dist/{sv-SE-BPpQ-05i.js → sv-SE-CHomf31L.js} +3 -1
- package/dist/{sv-SE-7Cbo1oic.js → sv-SE-Cfs0NHgG.js} +2 -5
- package/dist/sv-SE-DqzH809e.js +94 -0
- package/dist/sv-SE-uisfAT9L.js +13 -0
- package/dist/{useForm-CNi1k1NR.js → trackNavigation-gyYoCNvj.js} +25 -8
- package/dist/types/api/businessLines/businessLines.types.d.ts +7 -2
- package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +5 -0
- package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +7 -0
- package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +0 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PayoutVerificationMethod.d.ts +1 -2
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +51 -51
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +3 -3
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +2 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +2 -4
- package/dist/types/components/BusinessLines/forms/rules.d.ts +5 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesStore.d.ts +2 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/ExistingBusinessLines/BusinessLineModal.d.ts +3 -2
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +11 -2
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +124 -124
- package/dist/types/components/Shared/FormNavigation/FormNavigation.d.ts +1 -1
- package/dist/types/components/Shared/FormNavigation/types.d.ts +0 -2
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +1 -3
- package/dist/types/components/Shared/Summary/Summary.d.ts +1 -1
- package/dist/types/components/Shared/Summary/types.d.ts +0 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/tasks/CustomerSupport/mapping/customerSupportKeyMapping.d.ts +4 -0
- package/dist/types/context/ExperimentContext/types.d.ts +12 -0
- package/dist/types/core/errorMapping.d.ts +4 -1
- package/dist/types/core/user-events.d.ts +7 -9
- package/dist/types/hooks/{useAnalytics.d.ts → useAnalytics/useAnalytics.d.ts} +1 -7
- package/dist/types/utils/analytics/convertToEmbeddedEvent.d.ts +9 -0
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +19 -0
- package/dist/types/utils/analytics/getAnalyticsAssociatedEntityDetails.d.ts +13 -0
- package/dist/types/utils/{trackNavigation.d.ts → analytics/trackNavigation.d.ts} +1 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/filterProblemsByTaskForms.d.ts +12 -0
- package/dist/types/utils/getName.d.ts +1 -1
- package/dist/{types-DNH7oNbA.js → types-C1FJZQd1.js} +2 -2
- package/dist/{types-SBNit_kK.js → types-D0aacEF5.js} +27 -3
- package/dist/{types-DHmyPbAn.js → types-DQVZ5BSQ.js} +14 -2
- package/dist/{useAssociatedLegalEntity-CmhNWabq.js → useAssociatedLegalEntity-CuTN8T5x.js} +2 -2
- package/dist/{useDataset-C0A9qR_N.js → useDataset-C4vcroxo.js} +3 -3
- package/dist/{useMultiForm-CU58VvHX.js → useMultiForm-GpoMvhwU.js} +4 -4
- package/dist/{useOnboardingStatus-DuIJSnGH.js → useOnboardingStatus-Cifcsbcr.js} +1 -1
- package/dist/{useScenarios-T0NF0gUi.js → useScenarios-AyvycExm.js} +2 -2
- package/dist/{useTermsOfServiceStatus-1oGd6y18.js → useTermsOfServiceStatus-yhwwFpfh.js} +1 -1
- package/dist/{useToastContext-DHgUoF6x.js → useToastContext-CCxuinr_.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-57G1Bu4k.js → useUnincorporatedPartnershipMembers-D_N_aPNq.js} +62 -7
- package/dist/{utils-DZz9bCID.js → utils-U0nEMoML.js} +6 -46
- package/dist/validate-BRRbVwma.js +41 -0
- package/dist/{validate-Bz6-McmI.js → validate-Bqbj3vVS.js} +2 -2
- package/dist/{validationError-Ci4nlmhZ.js → validationError-DhRqgFgA.js} +2 -2
- package/package.json +1 -1
- package/dist/Card-N9psV2kP.js +0 -147
- package/dist/CreateIndividualComponent-BL3dK960.js +0 -71
- package/dist/CreateTransferInstrumentComponent-kxMU_XVD.js +0 -66
- package/dist/Divider-DiS12D_i.js +0 -239
- package/dist/Dropzone-DSyKXnbD.js +0 -218
- package/dist/Image-BhBefhke.js +0 -22
- package/dist/InputDate-C2j7qA_b.js +0 -43
- package/dist/InputGroup-WBfGDV5F.js +0 -32
- package/dist/LandingLayout-Ca68Z9DA.js +0 -60
- package/dist/Link-BS6Zpegg.js +0 -35
- package/dist/OnboardingDropinComponent-IKzrTT3r.js +0 -4274
- package/dist/RadioGroup-DhwjhH0X.js +0 -144
- package/dist/RegistrationAddress-BnyrwF-X.js +0 -2337
- package/dist/RootBusinessDetailsPage-BFR4Sxfp.js +0 -61
- package/dist/RootIndividualDetailsPage-D6lLtamt.js +0 -76
- package/dist/SoleProprietorshipPage-BKlAFmwp.js +0 -60
- package/dist/Spacer-BK3jDget.js +0 -18
- package/dist/TaxInformationField-DCjcBMwQ.js +0 -3094
- package/dist/TileGroup-BkTpSpVX.js +0 -174
- package/dist/UnincorporatedPartnershipIndividualPage-DZZc7sEn.js +0 -65
- package/dist/bafinUtils-DkP3ZoN4.js +0 -366
- package/dist/bg-BG-BLe6BCNz.js +0 -13
- package/dist/bg-BG-BPsOhDfg.js +0 -13
- package/dist/bg-BG-z3gZQvGq.js +0 -42
- package/dist/commonValidators-BLvtzPWZ.js +0 -24
- package/dist/cs-CZ-C5lyVYlZ.js +0 -42
- package/dist/cs-CZ-CHzJM-ii.js +0 -13
- package/dist/cs-CZ-xoLsda7i.js +0 -13
- package/dist/currency-BGwQyxBo.js +0 -36
- package/dist/da-DK-CYl2jko-.js +0 -42
- package/dist/da-DK-D-TJghBi.js +0 -13
- package/dist/da-DK-XNMYSp7w.js +0 -13
- package/dist/de-DE-BI7AAdOv.js +0 -13
- package/dist/de-DE-CCmlaL2F.js +0 -13
- package/dist/de-DE-DlUEkik0.js +0 -42
- package/dist/el-GR-DZ8GheJK.js +0 -42
- package/dist/el-GR-DoCIcce-.js +0 -13
- package/dist/el-GR-kYiInIQ9.js +0 -13
- package/dist/en-US-DYpvuCLO.js +0 -13
- package/dist/es-ES-CJMsyMAc.js +0 -13
- package/dist/es-ES-CnNU6AJv.js +0 -13
- package/dist/es-ES-D0c0MoqK.js +0 -42
- package/dist/et-EE-BR4OXRfV.js +0 -13
- package/dist/et-EE-C4Fwyr7-.js +0 -42
- package/dist/et-EE-sB7wkSA3.js +0 -13
- package/dist/fi-FI-BbqwYcLI.js +0 -13
- package/dist/fi-FI-bRXb-Q_i.js +0 -42
- package/dist/fi-FI-u5GxMZsq.js +0 -13
- package/dist/fieldConfigurations-BsOQ678Q.js +0 -448
- package/dist/form-rules-DhbF2mY4.js +0 -13
- package/dist/fr-FR-CMjrAkKl.js +0 -13
- package/dist/fr-FR-Cr-Y1vIy.js +0 -13
- package/dist/fr-FR-JLPKgufm.js +0 -42
- package/dist/hr-HR-Bhsop3CT.js +0 -13
- package/dist/hr-HR-D26Gz-HL.js +0 -42
- package/dist/hr-HR-D8cBxUFa.js +0 -13
- package/dist/hu-HU-BVfkOdJe.js +0 -13
- package/dist/hu-HU-BZCFneWx.js +0 -42
- package/dist/hu-HU-D2j1ISVk.js +0 -13
- package/dist/isEmpty-B0GMAw4K.js +0 -23
- package/dist/it-IT-C7Sg1k4p.js +0 -13
- package/dist/it-IT-CwA8megO.js +0 -13
- package/dist/it-IT-mScKLwBR.js +0 -42
- package/dist/ja-JP-DyELKS9Q.js +0 -42
- package/dist/ja-JP-GSbqID7o.js +0 -13
- package/dist/jpAddressSchema-ULGNNt5U.js +0 -27
- package/dist/lt-LT-C5nNCk4_.js +0 -13
- package/dist/lt-LT-CLPQVRpJ.js +0 -42
- package/dist/lt-LT-DSiutpRl.js +0 -13
- package/dist/lv-LV-C62XiDE5.js +0 -13
- package/dist/lv-LV-CEK8Re4d.js +0 -13
- package/dist/lv-LV-Cu-MJMVO.js +0 -42
- package/dist/mapJpAddressSchemaToAddressLocalizations-D7YGYa9S.js +0 -147
- package/dist/nl-NL-BOJ6zuBr.js +0 -13
- package/dist/nl-NL-DOQPxTX-.js +0 -13
- package/dist/nl-NL-pVdpCCOx.js +0 -42
- package/dist/no-NO-CRULNwNn.js +0 -42
- package/dist/no-NO-Cp3-tDMw.js +0 -13
- package/dist/no-NO-CuwTDFSf.js +0 -13
- package/dist/pl-PL-1-MrLPXu.js +0 -13
- package/dist/pl-PL-CtDHmbhp.js +0 -13
- package/dist/pl-PL-CxCiWdAF.js +0 -42
- package/dist/pt-BR-Br_cHzGx.js +0 -13
- package/dist/pt-BR-DnKEuslh.js +0 -13
- package/dist/pt-BR-apPtB2cK.js +0 -42
- package/dist/pt-PT-CLwCij2I.js +0 -13
- package/dist/pt-PT-Coa6J7SM.js +0 -42
- package/dist/pt-PT-cjbtYBUX.js +0 -13
- package/dist/ro-RO-BTqq5BPM.js +0 -42
- package/dist/ro-RO-CGhIjlpU.js +0 -13
- package/dist/ro-RO-Cmk-sVDr.js +0 -13
- package/dist/sk-SK-Bo5nvxWQ.js +0 -13
- package/dist/sk-SK-Do6CKNU4.js +0 -13
- package/dist/sk-SK-welR06By.js +0 -42
- package/dist/sl-SI-B9N6vA08.js +0 -42
- package/dist/sl-SI-CrTRlNnN.js +0 -13
- package/dist/sl-SI-cY-L2ma-.js +0 -13
- package/dist/sv-SE-BtwPrLEA.js +0 -13
- package/dist/sv-SE-D6al0j6W.js +0 -42
- package/dist/sv-SE-WPziDPQa.js +0 -13
- package/dist/types/utils/analytics.d.ts +0 -31
- package/dist/utils-AieP90ex.js +0 -29
- package/dist/utils-Bd79Y_6k.js +0 -165
- package/dist/validate-WO7yAOk4.js +0 -382
|
@@ -2,37 +2,35 @@
|
|
|
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] = "42335460-467d-4ad0-a095-73de6e5aed47", e._sentryDebugIdIdentifier = "sentry-dbid-42335460-467d-4ad0-a095-73de6e5aed47");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext,
|
|
10
|
+
import { b as useApiContext, a2 as useMutation, k as httpPost, u as useTranslation, y as Typography, a0 as entriesOf, P as createLogger, B as Button, aS as httpDelete, $ as useExperimentsContext, L as Loader, U as TaskStatuses, M as EntityTypes, c as useLegalEntity, R as ROOT_LE, a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-CWnZNw9D.js";
|
|
11
11
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
12
12
|
import { useRef, useState, useCallback, useMemo, useEffect } from "preact/hooks";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { u as useToastContext } from "./useToastContext-
|
|
16
|
-
import { g as getPropsFromConfigurations } from "./process-field-configurations-
|
|
17
|
-
import { g as getRequiredForms, a as addValidityToForms,
|
|
18
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { I as INDUSTRY_CODE_FIELD, i as industryCodeFieldMetadata, a as IndustryCodeField, D as Divider } from "./Divider-DiS12D_i.js";
|
|
22
|
-
import { A as Avatar } from "./Avatar-CrL6cVDB.js";
|
|
13
|
+
import { a4 as INDUSTRY_CODE_FIELD, P as industryCodeFieldMetadata, a5 as IndustryCodeField, aE as useBusinessLines, aF as Divider, aG as selectedBusinessLine, aH as useIndustryCodes } from "./OnboardingDropinComponent-D-tQ12Sy.js";
|
|
14
|
+
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-A9b0QEcM.js";
|
|
15
|
+
import { u as useToastContext } from "./useToastContext-CCxuinr_.js";
|
|
16
|
+
import { g as getPropsFromConfigurations } from "./process-field-configurations-D2EUZow3.js";
|
|
17
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-L9qJuAw0.js";
|
|
18
|
+
import { u as useMultiForm } from "./useMultiForm-GpoMvhwU.js";
|
|
19
|
+
import { x as createFormRules, I as Image, i as useCapabilityProblems, k as getProblemsForEntity } from "./fieldConfigurations-DVV23oeM.js";
|
|
20
|
+
import { A as Avatar } from "./Avatar-zXT7v3KF.js";
|
|
23
21
|
import cx from "classnames";
|
|
24
|
-
import { K as KEYBOARD_KEYS, M as Modal } from "./Modal-
|
|
25
|
-
import { F as Field } from "./
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
22
|
+
import { K as KEYBOARD_KEYS, M as Modal } from "./Modal-C9aImxis.js";
|
|
23
|
+
import { F as Field } from "./trackNavigation-gyYoCNvj.js";
|
|
24
|
+
import { C as Checkbox } from "./debouncedInputEvent-B3Lwtvx_.js";
|
|
25
|
+
import { I as InputText } from "./InputText-BG-TiSNN.js";
|
|
26
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils, H as Header, a as Link, S as StackLayout, L as List } from "./CountryField-Bv9P8dRJ.js";
|
|
27
|
+
import { i as useFormContext } from "./Address-ChPj2pfR.js";
|
|
28
28
|
import { lazy } from "preact/compat";
|
|
29
|
-
import {
|
|
30
|
-
import { L as
|
|
31
|
-
import {
|
|
32
|
-
import { L as Link } from "./Link-BS6Zpegg.js";
|
|
33
|
-
import { S as StructuredList } from "./useDataset-C0A9qR_N.js";
|
|
29
|
+
import { R as LandingLayout } from "./IndividualOnfido-BMIkKHvJ.js";
|
|
30
|
+
import { L as ListItem } from "./ListItem-DIDj0vuO.js";
|
|
31
|
+
import { S as StructuredList, C as Confirm } from "./useDataset-C4vcroxo.js";
|
|
34
32
|
import { D as DetailViewLayout } from "./DetailViewLayout-Z9cuUp4X.js";
|
|
35
|
-
import { C as Card } from "./Card-
|
|
33
|
+
import { C as Card } from "./Card-Bz2B4J0v.js";
|
|
36
34
|
const createBusinessLine = async (legalEntityId, baseUrl, data) => {
|
|
37
35
|
return httpPost(
|
|
38
36
|
{
|
|
@@ -49,6 +47,31 @@ const useCreateBusinessLine = (options) => {
|
|
|
49
47
|
...options
|
|
50
48
|
});
|
|
51
49
|
};
|
|
50
|
+
const updateBusinessLine = async (legalEntityId, baseUrl, data) => {
|
|
51
|
+
return httpPost(
|
|
52
|
+
{
|
|
53
|
+
baseUrl,
|
|
54
|
+
path: `legalEntities/${legalEntityId}/businessLines/${data.id}`
|
|
55
|
+
},
|
|
56
|
+
data
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
const useUpdateBusinessLine = (options) => {
|
|
60
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
61
|
+
return useMutation({
|
|
62
|
+
mutationFn: (data) => updateBusinessLine(rootLegalEntityId.value, baseUrl.value, data),
|
|
63
|
+
...options
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
const rules = ({ data }) => {
|
|
67
|
+
return createFormRules({
|
|
68
|
+
webAddressRequired: () => {
|
|
69
|
+
if ((data.salesChannelsForm.salesChannels?.includes("eCommerce") || data.salesChannelsForm.salesChannels?.includes("ecomMoto")) && !data.salesChannelsForm.webExempt) {
|
|
70
|
+
return "REQUIRED";
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
};
|
|
52
75
|
const window = "adyen-kyc-window";
|
|
53
76
|
const item = "adyen-kyc-item";
|
|
54
77
|
const selectedItem = "adyen-kyc-selectedItem";
|
|
@@ -237,7 +260,8 @@ function SalesChannels({
|
|
|
237
260
|
setSelectedCards(selectedIds);
|
|
238
261
|
handleChangeFor("salesChannels", "blur")(selectedIds);
|
|
239
262
|
if (!salesChannelsWithWebData.some((channel) => selectedIds.includes(channel))) {
|
|
240
|
-
handleChangeFor("
|
|
263
|
+
handleChangeFor("webAddress")(void 0);
|
|
264
|
+
handleChangeFor("webExempt")(void 0);
|
|
241
265
|
}
|
|
242
266
|
};
|
|
243
267
|
return /* @__PURE__ */ jsx(
|
|
@@ -291,7 +315,7 @@ function SalesChannelCard({ channel, selected }) {
|
|
|
291
315
|
] })
|
|
292
316
|
] });
|
|
293
317
|
}
|
|
294
|
-
const WEB_DATA_FIELD = ["
|
|
318
|
+
const WEB_DATA_FIELD = ["webAddress", "webExempt"];
|
|
295
319
|
function WebDataField({ data, valid, errors, labels, handleChangeFor }) {
|
|
296
320
|
const { t } = useTranslation("common");
|
|
297
321
|
const handleKeyDown = (e) => {
|
|
@@ -300,37 +324,40 @@ function WebDataField({ data, valid, errors, labels, handleChangeFor }) {
|
|
|
300
324
|
}
|
|
301
325
|
};
|
|
302
326
|
const handleWebDataChange = (e, mode) => {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
handleChangeFor("webData", mode)(webAddress);
|
|
327
|
+
handleChangeFor(
|
|
328
|
+
"webAddress",
|
|
329
|
+
mode
|
|
330
|
+
)(typeof e === "string" ? e : e.target?.value);
|
|
308
331
|
};
|
|
309
332
|
const handleWebDataExemptChange = () => {
|
|
310
|
-
if (data.
|
|
311
|
-
handleChangeFor("
|
|
312
|
-
|
|
333
|
+
if (data.webExempt === true) {
|
|
334
|
+
handleChangeFor("webAddress")(void 0);
|
|
335
|
+
handleChangeFor("webExempt")(false);
|
|
336
|
+
} else {
|
|
337
|
+
handleChangeFor("webAddress")(void 0);
|
|
338
|
+
handleChangeFor("webExempt")(true);
|
|
339
|
+
}
|
|
313
340
|
};
|
|
314
341
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
315
342
|
/* @__PURE__ */ jsx(
|
|
316
343
|
Field,
|
|
317
344
|
{
|
|
318
345
|
name: "webAddress",
|
|
319
|
-
label: labels?.
|
|
320
|
-
errorMessage: errors.
|
|
321
|
-
isValid: valid.
|
|
346
|
+
label: labels?.webAddress ?? t(($) => $["businessUrl"]),
|
|
347
|
+
errorMessage: errors.webAddress,
|
|
348
|
+
isValid: valid.webAddress,
|
|
322
349
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
323
350
|
InputText,
|
|
324
351
|
{
|
|
325
352
|
...childProps,
|
|
326
353
|
name: "webAddress",
|
|
327
|
-
value: data.
|
|
328
|
-
disabled:
|
|
354
|
+
value: data.webAddress,
|
|
355
|
+
disabled: data.webExempt === true,
|
|
329
356
|
onInput: (e) => handleWebDataChange(e, "input"),
|
|
330
357
|
onBlur: (e) => handleWebDataChange(e, "blur"),
|
|
331
358
|
onKeyDown: handleKeyDown,
|
|
332
|
-
isValid: valid.
|
|
333
|
-
placeholder: data.
|
|
359
|
+
isValid: valid.webAddress,
|
|
360
|
+
placeholder: data.webExempt ? void 0 : "https://"
|
|
334
361
|
}
|
|
335
362
|
)
|
|
336
363
|
}
|
|
@@ -341,7 +368,7 @@ function WebDataField({ data, valid, errors, labels, handleChangeFor }) {
|
|
|
341
368
|
...childProps,
|
|
342
369
|
name: "webDataExempt",
|
|
343
370
|
label: t(($) => $["iDontHaveAWebsite"]),
|
|
344
|
-
checked: data.
|
|
371
|
+
checked: data.webExempt ?? false,
|
|
345
372
|
onChange: handleWebDataExemptChange
|
|
346
373
|
}
|
|
347
374
|
) })
|
|
@@ -367,7 +394,7 @@ const formatBusinessLinesDataForSummary = (data, labels, t) => {
|
|
|
367
394
|
...salesChannelsWithWebData.some(
|
|
368
395
|
(channel) => data.salesChannelsForm.salesChannels?.includes(channel)
|
|
369
396
|
) && {
|
|
370
|
-
[labels.salesChannelsForm.
|
|
397
|
+
[labels.salesChannelsForm.webAddress ?? "businessUrl"]: data.salesChannelsForm.webAddress ? data.salesChannelsForm.webAddress : t(($) => $["iDontHaveAWebsite"])
|
|
371
398
|
}
|
|
372
399
|
}
|
|
373
400
|
};
|
|
@@ -380,7 +407,8 @@ const salesChannelsWithWebData = ["eCommerce", "ecomMoto"];
|
|
|
380
407
|
const businessLinesConfigurations = {
|
|
381
408
|
industryCodes: { rule: "REQUIRED" },
|
|
382
409
|
salesChannels: { rule: "REQUIRED" },
|
|
383
|
-
|
|
410
|
+
webAddress: { rule: "webAddressRequired" },
|
|
411
|
+
webExempt: { rule: "OPTIONAL" }
|
|
384
412
|
};
|
|
385
413
|
const businessLinesForms = {
|
|
386
414
|
industryCodesForm: {
|
|
@@ -394,50 +422,91 @@ const businessLinesForms = {
|
|
|
394
422
|
fields: [...SALES_CHANNELS_FIELD, ...WEB_DATA_FIELD]
|
|
395
423
|
}
|
|
396
424
|
};
|
|
425
|
+
const mapBusinessLineToBusinessLineSchema = (selectedBusinessLine2) => {
|
|
426
|
+
return {
|
|
427
|
+
industryCodesForm: {
|
|
428
|
+
industryCodes: selectedBusinessLine2.value ? [
|
|
429
|
+
{
|
|
430
|
+
id: selectedBusinessLine2.value.industryCode,
|
|
431
|
+
name: `${selectedBusinessLine2.value.industryCode} - ${selectedBusinessLine2.value.industryCodeDescription}`
|
|
432
|
+
}
|
|
433
|
+
] : void 0
|
|
434
|
+
},
|
|
435
|
+
salesChannelsForm: {
|
|
436
|
+
salesChannels: selectedBusinessLine2.value?.salesChannels ?? [],
|
|
437
|
+
webAddress: selectedBusinessLine2.value?.webData?.[0].webAddress,
|
|
438
|
+
// only 1 web address currently possible
|
|
439
|
+
webExempt: selectedBusinessLine2.value?.webDataExemption?.reason ? true : void 0
|
|
440
|
+
}
|
|
441
|
+
};
|
|
442
|
+
};
|
|
397
443
|
const submitBusinessLines = async ({
|
|
444
|
+
selectedBusinessLine: selectedBusinessLine2,
|
|
398
445
|
legalEntityId,
|
|
399
446
|
data,
|
|
400
447
|
createBusinessLine: createBusinessLine2,
|
|
401
448
|
fetchBusinessLines,
|
|
449
|
+
updateBusinessLine: updateBusinessLine2,
|
|
402
450
|
showToast,
|
|
403
451
|
t
|
|
404
452
|
}) => {
|
|
405
453
|
const requiresWebData = salesChannelsWithWebData.some(
|
|
406
454
|
(channel) => data.salesChannelsForm.salesChannels?.includes(channel)
|
|
407
455
|
);
|
|
456
|
+
const commonPayload = {
|
|
457
|
+
legalEntityId,
|
|
458
|
+
service: "paymentProcessing",
|
|
459
|
+
salesChannels: data.salesChannelsForm.salesChannels ?? [],
|
|
460
|
+
webData: requiresWebData && data.salesChannelsForm.webAddress ? [{ webAddress: data.salesChannelsForm.webAddress }] : void 0,
|
|
461
|
+
webDataExemption: requiresWebData && data.salesChannelsForm.webExempt ? { reason: "noOnlinePresence" } : void 0
|
|
462
|
+
};
|
|
408
463
|
try {
|
|
409
|
-
|
|
410
|
-
(i) => ({
|
|
464
|
+
if (!selectedBusinessLine2?.value) {
|
|
465
|
+
const payloads = (data.industryCodesForm.industryCodes ?? []).map((i) => ({
|
|
411
466
|
industryCode: i.id,
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
failureCount++;
|
|
426
|
-
logger.error(
|
|
427
|
-
`Failed to create business line with associated industry code: ${payloads[index].industryCode}`
|
|
428
|
-
);
|
|
429
|
-
}
|
|
430
|
-
});
|
|
431
|
-
if (failureCount > 0) {
|
|
432
|
-
showToast({
|
|
433
|
-
label: t(($) => $[`businessLinesFailure`], { failuresLength: failureCount }),
|
|
434
|
-
variant: "error"
|
|
467
|
+
...commonPayload
|
|
468
|
+
}));
|
|
469
|
+
const results = await Promise.allSettled(
|
|
470
|
+
payloads.map((payload) => createBusinessLine2(payload))
|
|
471
|
+
);
|
|
472
|
+
let failureCount = 0;
|
|
473
|
+
results.forEach((result, index) => {
|
|
474
|
+
if (result.status === "rejected") {
|
|
475
|
+
failureCount++;
|
|
476
|
+
logger.error(
|
|
477
|
+
`Failed to create business line with associated industry code: ${payloads[index].industryCode}`
|
|
478
|
+
);
|
|
479
|
+
}
|
|
435
480
|
});
|
|
481
|
+
if (failureCount > 0) {
|
|
482
|
+
showToast({
|
|
483
|
+
label: t(($) => $[`businessLinesCreationFailure`], { failuresLength: failureCount }),
|
|
484
|
+
variant: "error"
|
|
485
|
+
});
|
|
486
|
+
} else {
|
|
487
|
+
showToast({
|
|
488
|
+
label: t(($) => $[`businessLinesCreationSuccess`]),
|
|
489
|
+
variant: "success"
|
|
490
|
+
});
|
|
491
|
+
}
|
|
436
492
|
} else {
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
493
|
+
const updatePayload = {
|
|
494
|
+
id: selectedBusinessLine2.value.id,
|
|
495
|
+
industryCode: data.industryCodesForm.industryCodes[0].id,
|
|
496
|
+
...commonPayload
|
|
497
|
+
};
|
|
498
|
+
try {
|
|
499
|
+
await updateBusinessLine2(updatePayload);
|
|
500
|
+
showToast({
|
|
501
|
+
label: t(($) => $[`businessLineUpdateSuccess`]),
|
|
502
|
+
variant: "success"
|
|
503
|
+
});
|
|
504
|
+
} catch {
|
|
505
|
+
showToast({
|
|
506
|
+
label: t(($) => $[`businessLineUpdateFailure`]),
|
|
507
|
+
variant: "error"
|
|
508
|
+
});
|
|
509
|
+
}
|
|
441
510
|
}
|
|
442
511
|
} finally {
|
|
443
512
|
await fetchBusinessLines();
|
|
@@ -458,13 +527,13 @@ const businessLinesValidators = {
|
|
|
458
527
|
},
|
|
459
528
|
errorMessage: "fieldIsRequired"
|
|
460
529
|
},
|
|
461
|
-
|
|
530
|
+
webAddress: {
|
|
462
531
|
modes: ["blur"],
|
|
463
532
|
validate: (val) => {
|
|
464
|
-
if (val
|
|
465
|
-
return
|
|
533
|
+
if (!val) return false;
|
|
534
|
+
return new RegExp(
|
|
466
535
|
/^(https?:\/\/)([\da-z.-]+)\.([a-z.]{2,6})([:\d]*)([/\w .-]*)*\/?(\?[\w %&=.]*)?#?([\w]*)?$/i
|
|
467
|
-
).test(val
|
|
536
|
+
).test(val);
|
|
468
537
|
},
|
|
469
538
|
errorMessage: "validationPleaseEnterAValidUrl"
|
|
470
539
|
}
|
|
@@ -601,8 +670,8 @@ function SalesChannelsForm({
|
|
|
601
670
|
validationErrors,
|
|
602
671
|
WEB_DATA_FIELD
|
|
603
672
|
),
|
|
604
|
-
labels: formUtils.getFieldLabels(WEB_DATA_FIELD, {
|
|
605
|
-
readonly: formUtils.isReadOnly("
|
|
673
|
+
labels: formUtils.getFieldLabels(WEB_DATA_FIELD, { webAddress: "businessUrl" }),
|
|
674
|
+
readonly: formUtils.isReadOnly("webAddress"),
|
|
606
675
|
handleChangeFor
|
|
607
676
|
}
|
|
608
677
|
)
|
|
@@ -658,49 +727,92 @@ const BusinessLinesGettingStarted = ({
|
|
|
658
727
|
}
|
|
659
728
|
);
|
|
660
729
|
};
|
|
661
|
-
const
|
|
662
|
-
|
|
730
|
+
const deleteBusinessLine = async (legalEntityId, baseUrl, businessLineId) => {
|
|
731
|
+
return httpDelete({
|
|
732
|
+
baseUrl,
|
|
733
|
+
path: `legalEntities/${legalEntityId}/businessLines/${businessLineId}`
|
|
734
|
+
});
|
|
735
|
+
};
|
|
736
|
+
const useDeleteBusinessLine = (options) => {
|
|
737
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
738
|
+
return useMutation({
|
|
739
|
+
mutationFn: (businessLineId) => deleteBusinessLine(rootLegalEntityId.value, baseUrl.value, businessLineId),
|
|
740
|
+
...options
|
|
741
|
+
});
|
|
742
|
+
};
|
|
743
|
+
const businessLineModalContent = "adyen-kyc-business-line__modal-content";
|
|
744
|
+
const businessLineCard = "adyen-kyc-business-line__card";
|
|
745
|
+
const businessLineActions = "adyen-kyc-business-line__actions";
|
|
663
746
|
const styles$1 = {
|
|
664
747
|
businessLineModalContent,
|
|
665
|
-
businessLineCard
|
|
748
|
+
businessLineCard,
|
|
749
|
+
businessLineActions
|
|
666
750
|
};
|
|
667
751
|
const BusinessLineModal = ({
|
|
668
|
-
|
|
669
|
-
setShowBusinessLineInfo
|
|
752
|
+
businessLine,
|
|
753
|
+
setShowBusinessLineInfo,
|
|
754
|
+
setAddingBusinessLines
|
|
670
755
|
}) => {
|
|
671
756
|
const { t } = useTranslation(["common", "businessLines"]);
|
|
757
|
+
const { showToast } = useToastContext();
|
|
758
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
759
|
+
const { mutateAsync: deleteBusinessLine2, status: deleteStatus } = useDeleteBusinessLine();
|
|
760
|
+
const { refetch: fetchBusinessLines, status: fetchingStatus } = useBusinessLines();
|
|
761
|
+
const showLoader = deleteStatus === "pending" || fetchingStatus === "pending";
|
|
762
|
+
const [openDeleteModal, setOpenDeleteModal] = useState(false);
|
|
672
763
|
const blInfoItems = [
|
|
673
764
|
{
|
|
674
765
|
term: t(($) => $["salesChannelsParentheticalPlural"]),
|
|
675
|
-
details:
|
|
766
|
+
details: businessLine?.salesChannels?.map((i) => t(($) => $[i])).join(", ") ?? ""
|
|
676
767
|
},
|
|
677
|
-
...
|
|
768
|
+
...businessLine?.webData?.length ? [
|
|
678
769
|
{
|
|
679
770
|
term: t(($) => $["businessUrl"]),
|
|
680
|
-
details:
|
|
771
|
+
details: businessLine.webData.map((i) => {
|
|
681
772
|
if (!i.webAddress) return;
|
|
682
773
|
return /* @__PURE__ */ jsx(Link, { href: i.webAddress, external: true, inline: true, children: i.webAddress }, i.webAddress);
|
|
683
774
|
})
|
|
684
775
|
}
|
|
685
776
|
] : [],
|
|
686
|
-
...
|
|
777
|
+
...businessLine?.webDataExemption?.reason ? [
|
|
687
778
|
{
|
|
688
779
|
term: t(($) => $["businessUrl"]),
|
|
689
780
|
details: t(($) => $["iDontHaveAWebsite"])
|
|
690
781
|
}
|
|
691
782
|
] : []
|
|
692
783
|
];
|
|
784
|
+
const editBusinessLine = (businessLine2) => {
|
|
785
|
+
selectedBusinessLine.value = businessLine2;
|
|
786
|
+
setAddingBusinessLines(true);
|
|
787
|
+
};
|
|
788
|
+
const confirmDeleteBusinessLine = async (businessLineId) => {
|
|
789
|
+
try {
|
|
790
|
+
await deleteBusinessLine2(businessLineId);
|
|
791
|
+
} catch {
|
|
792
|
+
showToast({
|
|
793
|
+
label: t(($) => $[`businessLineDeleteFailure`], { ns: "businessLines" }),
|
|
794
|
+
variant: "error"
|
|
795
|
+
});
|
|
796
|
+
} finally {
|
|
797
|
+
showToast({
|
|
798
|
+
label: t(($) => $[`businessLineDeleteSuccess`], { ns: "businessLines" }),
|
|
799
|
+
variant: "success"
|
|
800
|
+
});
|
|
801
|
+
await fetchBusinessLines();
|
|
802
|
+
setShowBusinessLineInfo(false);
|
|
803
|
+
}
|
|
804
|
+
};
|
|
693
805
|
return /* @__PURE__ */ jsx(
|
|
694
806
|
Modal,
|
|
695
807
|
{
|
|
696
808
|
ariaLabel: t(($) => $["businessLine"], { ns: "businessLines" }),
|
|
697
809
|
onClose: () => setShowBusinessLineInfo(false),
|
|
698
|
-
children: /* @__PURE__ */ jsx("div", { className: styles$1.businessLineModalContent, children: /* @__PURE__ */ jsxs(DetailViewLayout, { title: t(($) => $["businessLine"], { ns: "businessLines" }), compact: true, children: [
|
|
810
|
+
children: /* @__PURE__ */ jsx("div", { className: styles$1.businessLineModalContent, children: showLoader ? /* @__PURE__ */ jsx(Loader, { size: "large" }) : /* @__PURE__ */ jsxs(DetailViewLayout, { title: t(($) => $["businessLine"], { ns: "businessLines" }), compact: true, children: [
|
|
699
811
|
/* @__PURE__ */ jsx(
|
|
700
812
|
ListItem,
|
|
701
813
|
{
|
|
702
|
-
title: `${
|
|
703
|
-
description: `${
|
|
814
|
+
title: `${businessLine?.industryCode} - ${businessLine?.industryCodeDescription}`,
|
|
815
|
+
description: `${businessLine?.salesChannels?.map((i) => t(($) => $[i])).join(", ")}`,
|
|
704
816
|
avatar: { iconName: "bag", circle: true }
|
|
705
817
|
}
|
|
706
818
|
),
|
|
@@ -715,7 +827,24 @@ const BusinessLineModal = ({
|
|
|
715
827
|
/* @__PURE__ */ jsx(StructuredList, { items: blInfoItems })
|
|
716
828
|
] })
|
|
717
829
|
}
|
|
718
|
-
)
|
|
830
|
+
),
|
|
831
|
+
/* @__PURE__ */ jsxs("div", { className: styles$1.businessLineActions, children: [
|
|
832
|
+
isExperimentEnabled("EnableModifyBusinessLines") && /* @__PURE__ */ jsx(Button, { onClick: () => editBusinessLine(businessLine), children: t(($) => $["edit"], { ns: "common" }) }),
|
|
833
|
+
isExperimentEnabled("EnableDeleteBusinessLines") && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
834
|
+
/* @__PURE__ */ jsx(Button, { onClick: () => setOpenDeleteModal(true), variant: "secondary", children: t(($) => $["delete"], { ns: "common" }) }),
|
|
835
|
+
openDeleteModal && /* @__PURE__ */ jsx(
|
|
836
|
+
Confirm,
|
|
837
|
+
{
|
|
838
|
+
title: t(($) => $["deleteThisBusinessLine"], { ns: "businessLines" }),
|
|
839
|
+
confirmText: t(($) => $["delete"]),
|
|
840
|
+
onConfirm: () => confirmDeleteBusinessLine(businessLine.id),
|
|
841
|
+
onCancel: () => setOpenDeleteModal(false),
|
|
842
|
+
description: t(($) => $["thisActionCantBeUndone"]),
|
|
843
|
+
critical: true
|
|
844
|
+
}
|
|
845
|
+
)
|
|
846
|
+
] })
|
|
847
|
+
] })
|
|
719
848
|
] }) })
|
|
720
849
|
}
|
|
721
850
|
);
|
|
@@ -733,7 +862,7 @@ const ExistingBusinessLines = ({
|
|
|
733
862
|
}) => {
|
|
734
863
|
const { t } = useTranslation(["businessLines", "common"]);
|
|
735
864
|
const [showBusinessLineInfo, setShowBusinessLineInfo] = useState(false);
|
|
736
|
-
const [
|
|
865
|
+
const [businessLine, setBusinessLine] = useState();
|
|
737
866
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
738
867
|
/* @__PURE__ */ jsxs(StackLayout, { align: "center", gap: "none", children: [
|
|
739
868
|
/* @__PURE__ */ jsx(
|
|
@@ -749,39 +878,45 @@ const ExistingBusinessLines = ({
|
|
|
749
878
|
BusinessLinesList,
|
|
750
879
|
{
|
|
751
880
|
businessLines: businessLines2,
|
|
752
|
-
|
|
881
|
+
setBusinessLine,
|
|
753
882
|
setShowBusinessLineInfo,
|
|
754
883
|
setAddingBusinessLines
|
|
755
884
|
}
|
|
756
885
|
),
|
|
757
886
|
/* @__PURE__ */ jsx("div", { className: styles.goBackButtonContainer, children: /* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: handleCancelClick, fullWidth: true, children: t(($) => $["goBackToTaskList"], { ns: "common" }) }) })
|
|
758
887
|
] }),
|
|
759
|
-
showBusinessLineInfo && /* @__PURE__ */ jsx(
|
|
888
|
+
showBusinessLineInfo && businessLine && /* @__PURE__ */ jsx(
|
|
760
889
|
BusinessLineModal,
|
|
761
890
|
{
|
|
762
|
-
|
|
763
|
-
setShowBusinessLineInfo
|
|
891
|
+
businessLine,
|
|
892
|
+
setShowBusinessLineInfo,
|
|
893
|
+
setAddingBusinessLines
|
|
764
894
|
}
|
|
765
895
|
)
|
|
766
896
|
] });
|
|
767
897
|
};
|
|
768
898
|
const BusinessLinesList = ({
|
|
769
899
|
businessLines: businessLines2,
|
|
770
|
-
|
|
900
|
+
setBusinessLine,
|
|
771
901
|
setShowBusinessLineInfo,
|
|
772
902
|
setAddingBusinessLines
|
|
773
903
|
}) => {
|
|
774
904
|
const { t } = useTranslation(["common", "businessLines"]);
|
|
905
|
+
const { data: industryCodes } = useIndustryCodes(["acquiring"]);
|
|
906
|
+
const { data: existingBusinessLines } = useBusinessLines();
|
|
907
|
+
const existingCodes = existingBusinessLines?.map((b) => b.industryCode) || [];
|
|
908
|
+
const allCodes = industryCodes?.map((i) => i.code) || [];
|
|
909
|
+
const hasSelectableIndustryCodes = allCodes.some((code) => !existingCodes.includes(code));
|
|
775
910
|
return /* @__PURE__ */ jsx("div", { className: styles.businessLinesListContainer, children: /* @__PURE__ */ jsxs(StackLayout, { children: [
|
|
776
911
|
/* @__PURE__ */ jsx(List, { dividers: false, variant: "grouped-primary", padding: "small", children: businessLines2.map((bl, index) => {
|
|
777
912
|
const handleBusinessLineSelection = (bl2) => {
|
|
778
|
-
|
|
913
|
+
setBusinessLine(bl2);
|
|
779
914
|
setShowBusinessLineInfo(true);
|
|
780
915
|
};
|
|
781
916
|
return /* @__PURE__ */ jsx(
|
|
782
917
|
ListItem,
|
|
783
918
|
{
|
|
784
|
-
title: `${bl.industryCode} -
|
|
919
|
+
title: `${bl.industryCode} - ${bl.industryCodeDescription}`,
|
|
785
920
|
description: `${bl.salesChannels?.map((i) => t(($) => $[i])).join(", ")}`,
|
|
786
921
|
avatar: { iconName: "bag", circle: true },
|
|
787
922
|
action: {
|
|
@@ -799,7 +934,7 @@ const BusinessLinesList = ({
|
|
|
799
934
|
avatar: { iconName: "plus", circle: true, variant: "tertiary" },
|
|
800
935
|
action: {
|
|
801
936
|
onClick: () => setAddingBusinessLines(true),
|
|
802
|
-
disabled: businessLines2.length >= 200
|
|
937
|
+
disabled: businessLines2.length >= 200 || !!industryCodes && !hasSelectableIndustryCodes
|
|
803
938
|
// Users can have max of 200 BL
|
|
804
939
|
}
|
|
805
940
|
}
|
|
@@ -813,12 +948,13 @@ function BusinessLinesDropin({
|
|
|
813
948
|
const capabilityProblems = useCapabilityProblems();
|
|
814
949
|
const { showToast } = useToastContext();
|
|
815
950
|
const { mutateAsync: createBusinessLine2, status: createBusinessLineStatus } = useCreateBusinessLine();
|
|
951
|
+
const { mutateAsync: updateBusinessLine2, status: updateBusinessLineStatus } = useUpdateBusinessLine();
|
|
816
952
|
const {
|
|
817
953
|
data: businessLines2,
|
|
818
954
|
refetch: fetchBusinessLines,
|
|
819
955
|
isFetching: isFetchingBusinessLines
|
|
820
956
|
} = useBusinessLines();
|
|
821
|
-
const showLoader = createBusinessLineStatus === "pending" || isFetchingBusinessLines;
|
|
957
|
+
const showLoader = createBusinessLineStatus === "pending" || updateBusinessLineStatus === "pending" || isFetchingBusinessLines;
|
|
822
958
|
const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, rootLegalEntity.id) : void 0;
|
|
823
959
|
const [addingBusinessLines, setAddingBusinessLines] = useState(false);
|
|
824
960
|
const [derivedProps, setDerivedProps] = useState();
|
|
@@ -827,25 +963,17 @@ function BusinessLinesDropin({
|
|
|
827
963
|
const paymentProcessingBusinessLines = businessLines2?.filter((b) => b.service === "paymentProcessing") ?? [];
|
|
828
964
|
const hasExistingBusinessLines = paymentProcessingBusinessLines?.length > 0;
|
|
829
965
|
const multiForm = useMultiForm({
|
|
830
|
-
defaultData:
|
|
831
|
-
industryCodesForm: {
|
|
832
|
-
industryCodes: []
|
|
833
|
-
},
|
|
834
|
-
salesChannelsForm: {
|
|
835
|
-
salesChannels: [],
|
|
836
|
-
webData: {
|
|
837
|
-
webAddress: void 0,
|
|
838
|
-
exempt: void 0
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
},
|
|
842
|
-
// TODO: MAP EXISTING DATA TO SCHEMA
|
|
966
|
+
defaultData: mapBusinessLineToBusinessLineSchema(selectedBusinessLine),
|
|
843
967
|
requiredFields: derivedProps?.requiredFields,
|
|
844
968
|
optionalFields: derivedProps?.optionalFields,
|
|
845
969
|
allFields: derivedProps?.allFields,
|
|
846
970
|
rules: businessLinesValidators
|
|
847
971
|
});
|
|
848
972
|
const { isValid: formValidity, triggerValidation, data, setFormData } = multiForm;
|
|
973
|
+
const customRules = useMemo(
|
|
974
|
+
() => rules({ data }),
|
|
975
|
+
[data]
|
|
976
|
+
);
|
|
849
977
|
useEffect(() => {
|
|
850
978
|
const props = getPropsFromConfigurations({
|
|
851
979
|
scenarioConfiguration: businessLinesConfigurations,
|
|
@@ -853,11 +981,11 @@ function BusinessLinesDropin({
|
|
|
853
981
|
remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
|
|
854
982
|
dataMissingErrors: problems?.missingData ?? [],
|
|
855
983
|
fieldsWithExistingData: [],
|
|
856
|
-
customRules
|
|
984
|
+
customRules,
|
|
857
985
|
legalEntityType: rootLegalEntity?.type
|
|
858
986
|
});
|
|
859
987
|
setDerivedProps(props);
|
|
860
|
-
}, [problems, rootLegalEntity?.type]);
|
|
988
|
+
}, [customRules, problems, rootLegalEntity?.type]);
|
|
861
989
|
const forms = useMemo(() => {
|
|
862
990
|
const requiredForms = getRequiredForms(
|
|
863
991
|
businessLinesForms,
|
|
@@ -881,51 +1009,47 @@ function BusinessLinesDropin({
|
|
|
881
1009
|
),
|
|
882
1010
|
[data, t]
|
|
883
1011
|
);
|
|
884
|
-
const
|
|
885
|
-
(
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
(
|
|
892
|
-
|
|
893
|
-
...props,
|
|
894
|
-
additionalTrackingParams: associatedLeTrackingParams
|
|
895
|
-
});
|
|
896
|
-
},
|
|
897
|
-
[associatedLeTrackingParams]
|
|
898
|
-
);
|
|
1012
|
+
const clearBusinessLines = () => {
|
|
1013
|
+
setFormData("industryCodesForm", { industryCodes: [] });
|
|
1014
|
+
setFormData("salesChannelsForm", {
|
|
1015
|
+
salesChannels: [],
|
|
1016
|
+
webAddress: void 0,
|
|
1017
|
+
webExempt: void 0
|
|
1018
|
+
});
|
|
1019
|
+
gotoFormByFormIndex(0);
|
|
1020
|
+
};
|
|
899
1021
|
const handleSubmit = async () => {
|
|
900
1022
|
try {
|
|
901
1023
|
await submitBusinessLines({
|
|
1024
|
+
selectedBusinessLine,
|
|
902
1025
|
data,
|
|
903
1026
|
createBusinessLine: createBusinessLine2,
|
|
904
|
-
legalEntityId: rootLegalEntity.id,
|
|
905
1027
|
fetchBusinessLines,
|
|
1028
|
+
updateBusinessLine: updateBusinessLine2,
|
|
1029
|
+
legalEntityId: rootLegalEntity.id,
|
|
906
1030
|
showToast,
|
|
907
1031
|
t: businessLinesT
|
|
908
1032
|
});
|
|
909
1033
|
} finally {
|
|
910
1034
|
setAddingBusinessLines(false);
|
|
911
|
-
|
|
912
|
-
setFormData("salesChannelsForm", {
|
|
913
|
-
salesChannels: [],
|
|
914
|
-
webData: {
|
|
915
|
-
webAddress: void 0,
|
|
916
|
-
exempt: void 0
|
|
917
|
-
}
|
|
918
|
-
});
|
|
919
|
-
gotoFormByFormIndex(0);
|
|
1035
|
+
clearBusinessLines();
|
|
920
1036
|
}
|
|
921
1037
|
};
|
|
922
1038
|
const { handleNextClick, handleBackClick, activeForm, gotoFormByFormIndex, steps } = useFormComposer({
|
|
923
1039
|
problems,
|
|
924
|
-
navigationTrackingParams: associatedLeTrackingParams,
|
|
925
1040
|
forms,
|
|
926
1041
|
onSubmit: handleSubmit,
|
|
927
1042
|
triggerValidation
|
|
928
1043
|
});
|
|
1044
|
+
const handleCancelClick = () => {
|
|
1045
|
+
if (hasExistingBusinessLines) {
|
|
1046
|
+
setAddingBusinessLines(false);
|
|
1047
|
+
} else {
|
|
1048
|
+
handleHomeClick?.();
|
|
1049
|
+
}
|
|
1050
|
+
selectedBusinessLine.value = void 0;
|
|
1051
|
+
clearBusinessLines();
|
|
1052
|
+
};
|
|
929
1053
|
const renderContent = () => {
|
|
930
1054
|
if (!addingBusinessLines && isFetchingBusinessLines) return /* @__PURE__ */ jsx(Loader, { size: "large" });
|
|
931
1055
|
if (addingBusinessLines) {
|
|
@@ -935,7 +1059,6 @@ function BusinessLinesDropin({
|
|
|
935
1059
|
summary: {
|
|
936
1060
|
data: summaryData,
|
|
937
1061
|
problems,
|
|
938
|
-
trackNavigation: handleTrackNavigation,
|
|
939
1062
|
useStructuredList: true
|
|
940
1063
|
},
|
|
941
1064
|
asModal: true,
|
|
@@ -946,7 +1069,7 @@ function BusinessLinesDropin({
|
|
|
946
1069
|
gotoFormByFormIndex,
|
|
947
1070
|
handleNextClick,
|
|
948
1071
|
handleBackClick,
|
|
949
|
-
handleCancelClick
|
|
1072
|
+
handleCancelClick,
|
|
950
1073
|
loadingStatus: showLoader ? "loading" : "success",
|
|
951
1074
|
children: /* @__PURE__ */ jsx(BusinessLines, { activeForm, problems })
|
|
952
1075
|
}
|
|
@@ -976,7 +1099,7 @@ const RootBusinessLinesPage = ({ handleHomeClick }) => {
|
|
|
976
1099
|
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
977
1100
|
const { i18n } = useTranslation();
|
|
978
1101
|
addResourceBundles(i18n, i18n.language, [
|
|
979
|
-
{ ns: "businessLines", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-
|
|
1102
|
+
{ ns: "businessLines", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-BC1dwNN2.js"), "../language/cs-CZ.json": () => import("./cs-CZ-2foXfkBk.js"), "../language/da-DK.json": () => import("./da-DK-DU3_xdWg.js"), "../language/de-DE.json": () => import("./de-DE-BODG29hR.js"), "../language/el-GR.json": () => import("./el-GR-DcIdm3iK.js"), "../language/en-US.json": () => import("./en-US-DYo4OF-P.js"), "../language/es-ES.json": () => import("./es-ES-CMQqgMEJ.js"), "../language/et-EE.json": () => import("./et-EE-DcpuYQwB.js"), "../language/fi-FI.json": () => import("./fi-FI-4GTHkwOL.js"), "../language/fr-FR.json": () => import("./fr-FR-Ba-HRBQ7.js"), "../language/hr-HR.json": () => import("./hr-HR-BFx1T11G.js"), "../language/hu-HU.json": () => import("./hu-HU-GXvzHwu9.js"), "../language/it-IT.json": () => import("./it-IT-Bw3VIHJB.js"), "../language/ja-JP.json": () => import("./ja-JP-DI7lRfpI.js"), "../language/lt-LT.json": () => import("./lt-LT-ewVNPhQN.js"), "../language/lv-LV.json": () => import("./lv-LV-JqXvRt4T.js"), "../language/nl-NL.json": () => import("./nl-NL-DR1wVqQC.js"), "../language/no-NO.json": () => import("./no-NO-BZmigu6-.js"), "../language/pl-PL.json": () => import("./pl-PL-BKxhMICw.js"), "../language/pt-BR.json": () => import("./pt-BR-wAIdhUru.js"), "../language/pt-PT.json": () => import("./pt-PT-C1qHVe7L.js"), "../language/ro-RO.json": () => import("./ro-RO-juw6hKRk.js"), "../language/sk-SK.json": () => import("./sk-SK-BM57awWi.js"), "../language/sl-SI.json": () => import("./sl-SI-g2WSP0Tj.js"), "../language/sv-SE.json": () => import("./sv-SE-Cfs0NHgG.js") }), `../language/${i18n.language}.json`, 3) }
|
|
980
1103
|
]);
|
|
981
1104
|
if (!rootLe) {
|
|
982
1105
|
return /* @__PURE__ */ jsx(Loader, {});
|