@adyen/kyc-components 4.25.2 → 4.26.0-beta.1
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/{4-people-DKuivE0m.js → 4-people-CAxQpi_3.js} +2 -2
- package/dist/{AcceptTermsOfServiceWorkflow-BKWCrZdZ.js → AcceptTermsOfServiceWorkflow-Dqbo6l6E.js} +4 -4
- package/dist/{Accordion-D_DOaWj2.js → Accordion-BAdwrgCR.js} +4 -24
- package/dist/{AccountSetupRejected-BtcxtVKO.js → AccountSetupRejected-BiFdVnlI.js} +3 -4
- package/dist/{NodeRenderer-Z10yF5MV.js → AdaptiveWorkflow-Cl6sIKYm.js} +87 -34
- package/dist/{AdaptiveWorkflowComponent-C4Q6NVtv.js → AdaptiveWorkflowComponent-DTvjszP9.js} +32 -33
- package/dist/{AddressFields-CFG2_P0x.js → AddressFields-DSJ_dDIS.js} +21 -27
- package/dist/{Avatar-k5lNd5KG.js → Avatar-C2zeqSSB.js} +10 -8
- package/dist/{BusinessFinancingDropin-BjTnxk__.js → BusinessFinancingDropin-BZsQMeo9.js} +61 -71
- package/dist/{BusinessFinancingPage-C4dAslMp.js → BusinessFinancingPage-BilT7QB1.js} +7 -7
- package/dist/{BusinessRegistrationNumberField-Dz1uGvRQ.js → BusinessRegistrationNumberField-CBEz-yoj.js} +7 -8
- package/dist/{BusinessRegistrationNumberFieldGroup-BFPrFa1_.js → BusinessRegistrationNumberFieldGroup-CkoC1zF3.js} +7 -8
- package/dist/{BusinessTypeSelectionPage-DeWD37jR.js → BusinessTypeSelectionPage-CIO175KD.js} +16 -17
- package/dist/{Button-BxdC8cVB.js → Button-Dwr6jvJZ.js} +2 -2
- package/dist/Checkbox-CpzEl3ji.js +114 -0
- package/dist/{ComponentGroup-S6c3rVoX.js → ComponentGroup-BjjCPKWY.js} +4 -4
- package/dist/{ConstitutionalDocument-CNNhKkzD.js → ConstitutionalDocument-C_ZgPp87.js} +25 -28
- package/dist/{ContactDetails-_HCOKj3-.js → ContactDetails-DHHlpdct.js} +8 -13
- package/dist/{ContextGuidance-v-d9RQuo.js → ContextGuidance-SHSxyen7.js} +3 -3
- package/dist/CountryField-DUANNyWK.js +56 -0
- package/dist/{Currency-3Z9i_AhY.js → Currency-DFgCZFeZ.js} +10 -12
- package/dist/{CustomerSupport-B0UJHtAq.js → CustomerSupport-8Gp9EPcW.js} +17 -17
- package/dist/DateField-DfkL_Acw.js +73 -0
- package/dist/{DebugModal-CR4CRxIH.js → DebugModal-DrmTRJup.js} +12 -17
- package/dist/{DecisionMakerDetails-RF9BoMYF.js → DecisionMakerDetails-DSuWWQR3.js} +21 -24
- package/dist/{DecisionMakerDetailsPage-DY0nuFUI.js → DecisionMakerDetailsPage-DvaF8JWQ.js} +43 -40
- package/dist/{DecisionMakers-qRoXooYA.js → DecisionMakers-HjFvfukQ.js} +55 -61
- package/dist/{DetailViewLayout-DNCGEd7b.js → DetailViewLayout-DJgAzdlZ.js} +8 -6
- package/dist/{Dropzone-cewfCgXt.js → Dropzone-CM9xNqdS.js} +8 -8
- package/dist/EmailField-CIMaH5h8.js +61 -0
- package/dist/{EmbeddedStatus-Keg7UojY.js → EmbeddedStatus-4YjyzkcD.js} +4 -4
- package/dist/{EndStateLayout-GHEYl82p.js → EndStateLayout-C5Pqler-.js} +3 -3
- package/dist/{EntityAssociation-BPtrqdQR.js → EntityAssociation-mOKgAoTo.js} +7 -7
- package/dist/{ErrorPanel-PefRq1M4.js → ErrorPanel-MWL7vQHx.js} +24 -19
- package/dist/{GlobalEntryModal-De-1eJCW.js → GlobalEntryModal-CLTA41r-.js} +191 -75
- package/dist/{GlobalEntryPage-D8fuYItP.js → GlobalEntryPage-CxXk05KE.js} +10 -10
- package/dist/Icon-_YUEZg1p.js +175 -0
- package/dist/{IdentityNumber-Cz6-4YcM.js → IdentityNumber-DA8DOgxH.js} +10 -12
- package/dist/{IdentityNumberFieldGroup-D2PV_4A5.js → IdentityNumberFieldGroup-D4MTWr-z.js} +16 -14
- package/dist/{IdentityScreeningWorkflow-mbcaIctn.js → IdentityScreeningWorkflow-DfI-6mXR.js} +16 -16
- package/dist/{Image-Bn_Yyuof.js → Image-CxnjHtP1.js} +1 -1
- package/dist/{IndividualDropin-Bg0cL1Rf.js → IndividualDropin-B70zK0AA.js} +266 -281
- package/dist/{IndustryCodeFieldGroup-DmOqxPIg.js → IndustryCodeFieldGroup-CHPfvz-_.js} +9 -10
- package/dist/{InputDate-B0RNGCq2.js → InputDate-BSxqqg_B.js} +6 -29
- package/dist/InputDate.utils-D4Ov0KIl.js +25 -0
- package/dist/{InputGroup-B4U3QVEp.js → InputGroup-Bv005B22.js} +7 -6
- package/dist/{InputText-CwPK55J0.js → InputText-DIesIpnW.js} +42 -4
- package/dist/{Introduction-DFW6EaLG.js → Introduction--U4NyUxq.js} +9 -9
- package/dist/{InvitedDecisionMakerComponent-B-ey6hBS.js → InvitedDecisionMakerComponent-DIBX_HRF.js} +45 -45
- package/dist/{JpAddressFields-CzGnXBMk.js → JpAddressFields-OgKOVHI0.js} +13 -13
- package/dist/{LegalCompanyNameField-CV2EgRCw.js → LegalCompanyNameField-wgWJRR84.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-BDG0ML64.js → LegalRepresentativeDetailsPage-BFtn7wzQ.js} +35 -34
- package/dist/{Link-C3dYYTm_.js → Link-D0Yqc2r0.js} +7 -6
- package/dist/{List-ywoRPg-q.js → List-qvNxW9lm.js} +3 -2
- package/dist/{ListItem-CHGVbHhB.js → ListItem-DY-qq1lS.js} +29 -4
- package/dist/{Loader-BVtlpTeo.js → Loader-BDaKGf77.js} +1 -1
- package/dist/{Modal-Dq44ZUNN.js → Modal-C-T-spfu.js} +25 -5
- package/dist/{Name-BfQr3et_.js → Name-C8NOxqDE.js} +5 -5
- package/dist/NumberField-CUGWeVc9.js +60 -0
- package/dist/{PatriotActDisclosure-BNAsJXEL.js → PatriotActDisclosure-CWcGyfuA.js} +11 -12
- package/dist/{PayoutDetailsDropin-NyizAaYy.js → PayoutDetailsDropin-CZT8xUPC.js} +163 -158
- package/dist/{PayoutDetailsPage-CoE94WE6.js → PayoutDetailsPage-C54-v6yl.js} +10 -9
- package/dist/{Review-CzgmjDcZ.js → Review-CYIwvp62.js} +25 -24
- package/dist/{RootBusinessDetailsPage-MdKN-iNS.js → RootBusinessDetailsPage-CI8iAty4.js} +9 -7
- package/dist/{RootBusinessLinesPage-Dv1uT7OS.js → RootBusinessLinesPage-ZPaIqKwi.js} +48 -53
- package/dist/{RootIndividualDetailsPage-PkcLN0El.js → RootIndividualDetailsPage-ApOJRs0B.js} +42 -39
- package/dist/{Select-prMx73V9.js → Select-DwuMMZWv.js} +330 -19
- package/dist/{SignPCIComponent-CIkdVNH2.js → SignPCIComponent-B4D4nPDO.js} +19 -23
- package/dist/{SingpassSelection-B6NONcr4.js → SingpassSelection-vy5Stz5H.js} +7 -7
- package/dist/Skeleton-7xDqhYr-.js +30 -0
- package/dist/{SoleProprietorshipPage-_aY8GRDx.js → SoleProprietorshipPage-dyEpmmk3.js} +7 -7
- package/dist/{SourceOfFundsPage-B5nZ3MjN.js → SourceOfFundsPage-DgCWI7Ac.js} +46 -58
- package/dist/{SourceOfFundsWorkflow-IkLZG9JI.js → SourceOfFundsWorkflow-CdOOLWqA.js} +4 -4
- package/dist/{StackLayout-IUdNMDgW.js → StackLayout-J1ynSX-P.js} +6 -5
- package/dist/{utils-lIizXlcC.js → StateField-BMyu6YZZ.js} +89 -3
- package/dist/{Step-BJh4XZae.js → Step-Cqaytd3J.js} +19 -13
- package/dist/SummarySection-BVPfXtuP.js +60 -0
- package/dist/{Task-yQcY16x1.js → Task-CegWZQgV.js} +8 -8
- package/dist/{TaskGroup-C9iFHpux.js → TaskGroup-BqSUUr1i.js} +5 -5
- package/dist/{TaskListItem-ChlmCIfF.js → TaskListItem-CvYgXREa.js} +11 -11
- package/dist/{TaskStepperContextProvider-I7talGDO.js → TaskStepperContextProvider-9wlnwii7.js} +1 -1
- package/dist/{TaskVerificationStatus-Bd5Eftf2.js → TaskVerificationStatus-zoxTZ2mt.js} +3 -3
- package/dist/{TaxInformationFieldGroup-Dq0J9rBU.js → TaxInformationFieldGroup-lT5OgO75.js} +19 -18
- package/dist/{TaxReportingDropin-Cq3gBWtp.js → TaxReportingDropin-C9jUzNzP.js} +22 -26
- package/dist/{TaxReportingWorkflow-flQPRAPy.js → TaxReportingWorkflow-C3qyl3rW.js} +4 -4
- package/dist/{TermsOfServiceManagement-BM5K4cpw.js → TermsOfServiceManagement-DfFV6erX.js} +21 -30
- package/dist/{TextArea-C12oXMzX.js → TextArea-CQIt_2VI.js} +5 -5
- package/dist/TextField-C8CRipRJ.js +73 -0
- package/dist/{TrustDetailsPage-z7s9FxVC.js → TrustDetailsPage-Ax5uaglT.js} +59 -67
- package/dist/{TrustMemberCompanyPage-6yLYDall.js → TrustMemberCompanyPage-DBxTZo-8.js} +8 -8
- package/dist/{TrustMemberIndividualPage-Dlt0O4MR.js → TrustMemberIndividualPage-DFhWDN3f.js} +35 -34
- package/dist/{TrustMemberRoleAndTypePage-DIwrtOWr.js → TrustMemberRoleAndTypePage-Bdoyd1ix.js} +23 -30
- package/dist/{TrustMembersOverview-CowTgfIb.js → TrustMembersOverview-BCdJRHAn.js} +18 -22
- package/dist/{UboTaskItem-CZLDzQil.js → UboTaskItem-DIIoWLbx.js} +8 -8
- package/dist/{UnincorporatedPartnershipIndividualPage-tHoVsMAA.js → UnincorporatedPartnershipIndividualPage-B20wDAzH.js} +35 -34
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-B-wcypiJ.js → UnincorporatedPartnershipMemberCompanyPage-DvcQYNzd.js} +8 -8
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-D973uyHj.js → UnincorporatedPartnershipMemberRoleAndTypePage-Dx1pRB4b.js} +14 -16
- package/dist/{UnincorporatedPartnershipMembersOverview-5w1BrDMI.js → UnincorporatedPartnershipMembersOverview-C0cRXnsL.js} +11 -14
- package/dist/VerificationErrorAlert-D0K9gep-.js +68 -0
- package/dist/WebsiteField-Bgf9bYOR.js +62 -0
- package/dist/{Workflow-CF-HUIjR.js → Workflow-DxRS9IMd.js} +9 -9
- package/dist/{accountHolderUtils-CAu4V0ed.js → accountHolderUtils-QdO9D_A_.js} +3 -3
- package/dist/adyen-business-financing.js +8 -9
- package/dist/adyen-individual-configuration.js +36 -36
- package/dist/adyen-individual-status.js +8 -9
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +61 -59
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +6 -7
- package/dist/adyen-transfer-instrument-configuration.js +7 -8
- package/dist/adyen-transfer-instrument-management.js +16 -22
- package/dist/adyen-verification-status.js +7 -9
- package/dist/{arrow-right-D2hul7WG.js → arrow-right-BwP9nNDE.js} +2 -2
- package/dist/bafinUtils-CW20t7tP.js +3548 -0
- package/dist/{bag-CRRS1aow.js → bag-Cnk9dcZg.js} +2 -2
- package/dist/{bank-BoirCLLW.js → bank-UssyP-aG.js} +2 -2
- package/dist/bg-BG-C7z9VtPy.js +7 -0
- package/dist/{bin-BOmfqfrr.js → bin--Ft4cPCj.js} +2 -2
- package/dist/{capital-DTjbiurV.js → capital-BbOFhTHY.js} +2 -2
- package/dist/{cash-stack-7KpYpBek.js → cash-stack-LTzc8hQZ.js} +2 -2
- package/dist/{certificate-BPuoJ6Ip.js → certificate-CswNcwlI.js} +2 -2
- package/dist/{checkmark-BiSLf8M1.js → checkmark-DH1abKZn.js} +2 -2
- package/dist/{checkmark-circle-Ams7bSve.js → checkmark-circle-VWM-JsI6.js} +2 -2
- package/dist/{checkmark-circle-fill-_p4ss4ac.js → checkmark-circle-fill-AuW2DQDT.js} +2 -2
- package/dist/{checkmark-small-3bw4ftPV.js → checkmark-small-B6vsnsSO.js} +2 -2
- package/dist/{chevron-down-GgZawvoy.js → chevron-down-BGAMP7CF.js} +2 -2
- package/dist/{chevron-left-TeZTTvo5.js → chevron-left-EjFIt8Cd.js} +2 -2
- package/dist/{chevron-right-Cg8XlTxx.js → chevron-right-B5zb9mkt.js} +2 -2
- package/dist/{chevron-up-COQUTli0.js → chevron-up-DZiittpJ.js} +2 -2
- package/dist/{circle-CypWzg83.js → circle-CygvxRY_.js} +2 -2
- package/dist/{circle-small-filled-DfdK2A35.js → circle-small-filled-PeElhgJU.js} +2 -2
- package/dist/{clock-DmfGJ2r9.js → clock-CQXEE5jK.js} +2 -2
- package/dist/{coins-CBvbB8_X.js → coins-C7syygUR.js} +2 -2
- package/dist/{constants-DAb_IqC6.js → constants-DR4IoRWH.js} +7 -8
- package/dist/{contract-D1_RJ_xh.js → contract-BWEAd7e-.js} +2 -2
- package/dist/{countries-BGMTpyJv.js → countries-ZMuvRtQR.js} +1 -1
- package/dist/{country-BEZkohEO.js → country-WYlusjTL.js} +2 -2
- package/dist/{cross-circle-fill-CUXdo1x-.js → cross-circle-fill-Bxj_fgQE.js} +2 -2
- package/dist/cross-circle-fill-small-DwUKcL9P.js +20 -0
- package/dist/{cross-BORHADVQ.js → cross-vK6qh9R0.js} +2 -2
- package/dist/cs-CZ-B_u3kWRS.js +7 -0
- package/dist/da-DK-s_nCUhFO.js +7 -0
- package/dist/de-DE-5lHcZmT6.js +7 -0
- package/dist/{decisionMakerRoles-JEb0ON4e.js → decisionMakerRoles-DA8MK9Dh.js} +2 -2
- package/dist/{document-1-qvV57JdS.js → document-1-BPWF8zKf.js} +2 -2
- package/dist/{document-person-DiJ7M8-D.js → document-person-DVRFNq7g.js} +2 -2
- package/dist/{documentUtils-CxjFpoJB.js → documentUtils-6K3LdjjN.js} +6 -4
- package/dist/{download-Ca4w0Yfr.js → download-DfdpoHdN.js} +2 -2
- package/dist/dropinUtils-C0hhy3A9.js +2572 -0
- package/dist/{edit-1-D8VhDchs.js → edit-1-BgVB06zI.js} +2 -2
- package/dist/el-GR-DTaQeK-A.js +7 -0
- package/dist/{entityAssociationUtil-CY0grcyH.js → entityAssociationUtil-BlfcBl3i.js} +1 -1
- package/dist/{error-DrzrPjvf.js → error-m4DJ8d3r.js} +3 -3
- package/dist/es-ES-tZMJvO6B.js +7 -0
- package/dist/es-LA-C0x1nQUQ.js +7 -0
- package/dist/et-EE-BqB-3lW_.js +7 -0
- package/dist/{external-link-Dy4le-8Q.js → external-link-BbXGAtFE.js} +2 -2
- package/dist/fi-FI-BpwWFhLW.js +7 -0
- package/dist/{form-rules-DhuNdiqF.js → form-rules-DaLzvm8o.js} +90 -5
- package/dist/{formatValidationError-z2D5oU1e.js → formatValidationError-CwtW9tMt.js} +2 -2
- package/dist/fr-FR-DMPXwPYV.js +7 -0
- package/dist/{getDefaultRegistrationNumberType-BNO2BcfK.js → getDefaultRegistrationNumberType-CVVuCd8E.js} +5 -7
- package/dist/{useAssociatedLegalEntity-BdcoiUby.js → getFormSlice-CxtXJ0-P.js} +23 -5
- package/dist/{getName-DgxRqagk.js → getName-Cii7OyRd.js} +2 -2
- package/dist/{getProblemsForEntity-BY_voJ99.js → getProblemsForEntity-mdb3Bfpj.js} +3 -3
- package/dist/{getTrustedDecisionMakers-Ta-pURcL.js → getTrustedDecisionMakers-D89oYOLp.js} +2 -2
- package/dist/getValidationError-RnMEkCKd.js +19 -0
- package/dist/{gift-Bs_mAgul.js → gift-BjS6ErNG.js} +2 -2
- package/dist/{graph-Co0JhGiY.js → graph-B8rX9eXr.js} +2 -2
- package/dist/{graph-up-DIvH9haf.js → graph-up-Dwaq7upe.js} +2 -2
- package/dist/{headquarter-BESfDGKh.js → headquarter-CXwws_UP.js} +2 -2
- package/dist/{hotel-Vne7G5M6.js → hotel-CD5Lv9P7.js} +2 -2
- package/dist/hr-HR-D5kV_w60.js +7 -0
- package/dist/{http-DsJtugN1.js → http-C8rt2BZk.js} +5 -4
- package/dist/hu-HU-Bl1dnZfO.js +7 -0
- package/dist/{image-BQM21XCk.js → image-BTE2a8ZV.js} +2 -2
- package/dist/{info-DExoPRH5.js → info-BTc0bCCM.js} +2 -2
- package/dist/{info-filled-11KMeUso.js → info-filled-DhYinieW.js} +2 -2
- package/dist/it-IT-DiuPLWbr.js +7 -0
- package/dist/ja-JP-COBWjdXk.js +7 -0
- package/dist/{legalArrangementUtils-C68JdH6I.js → legalArrangementUtils-Crgt_L7h.js} +1 -1
- package/dist/{location-zRH5zJ8c.js → location-CwE3Q0gg.js} +2 -2
- package/dist/lt-LT-D9Pum2_8.js +7 -0
- package/dist/lv-LV-DDcLP43G.js +7 -0
- package/dist/{mail-i1-zg-cv.js → mail-CIeugZTd.js} +2 -2
- package/dist/{mapAddressLocalizationToJpAddressSchema-DpOIaxj6.js → mapAddressLocalizationToJpAddressSchema-Dpsnbt5H.js} +2 -2
- package/dist/{mapExistingFile-RrS8dCpX.js → mapExistingFile-BXfeQxev.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-wwD6Rp3Q.js → mapJpAddressSchemaToAddressLocalizations-CAoOxUg9.js} +16 -15
- package/dist/{mapLegalEntityToIndividualSchema-DtT3pcZJ.js → mapLegalEntityToIndividualSchema-Bl89JIZK.js} +12 -13
- package/dist/{mapTransferInstrumentToPayoutAccount-BpXU-nP1.js → mapTransferInstrumentToPayoutAccount-6aBAKF7U.js} +4 -4
- package/dist/{minus-circle-filled-CxUdRO8J.js → minus-circle-filled-96DZCdcJ.js} +2 -2
- package/dist/nl-NL-CBRRvqAY.js +7 -0
- package/dist/no-NO-C9lYR_fQ.js +7 -0
- package/dist/{options-horizontal-D86T_xAF.js → options-horizontal-BU9r-Xx3.js} +2 -2
- package/dist/{partner-Dje0ykF6.js → partner-C1SWc0pB.js} +2 -2
- package/dist/{pay-by-link-plane-DAiddPu6.js → pay-by-link-plane-xK4Zkol0.js} +2 -2
- package/dist/{payout-DKiGv3F9.js → payout-zGf0LNbo.js} +2 -2
- package/dist/{pdf-CC8vqpTo.js → pdf-Bbs3Ji9v.js} +157 -174
- package/dist/{pdf.worker.min-CdKJICZZ.js → pdf.worker.min-DTQpK-0h.js} +67 -58
- package/dist/{person-DgALGIIz.js → person-xTKhpEGR.js} +2 -2
- package/dist/pl-PL-CZST_1gV.js +7 -0
- package/dist/{plus-DlQKP2C9.js → plus-Cm_dWRpB.js} +2 -2
- package/dist/{plus-circle-filled-BntUOVIJ.js → plus-circle-filled-Df77eidx.js} +2 -2
- package/dist/{processCapabilities-CWE5UFt8.js → processCapabilities-FL4-KAbd.js} +7 -9
- package/dist/{processValidationErrors-CFU1x_1n.js → processValidationErrors-CcgBvwPJ.js} +4 -4
- package/dist/pt-BR-C32QroLH.js +7 -0
- package/dist/pt-PT-ByfmK1XA.js +7 -0
- package/dist/{recurring-DZgT_ekJ.js → recurring-BfwVHJ2Z.js} +2 -2
- package/dist/resolveEnvironment-DwfwgVEU.js +2516 -0
- package/dist/{revenue-accelerate-aMLYFVW6.js → revenue-accelerate-ClN0cx7Z.js} +2 -2
- package/dist/ro-RO-YkglLwfY.js +7 -0
- package/dist/{save-uDNye08N.js → save-QK2A-teG.js} +2 -2
- package/dist/{search-0OS6oe8N.js → search-DVSyT7Q7.js} +2 -2
- package/dist/{uppercase-DvjwUM0n.js → sharedValidators-DODW7kuK.js} +5 -3
- package/dist/{show-BWoS9-Y1.js → show-BRWLIRSA.js} +2 -2
- package/dist/sk-SK-BYRIVzdY.js +7 -0
- package/dist/sl-SI-Cjub_bfF.js +7 -0
- package/dist/{solution-payments-BMal7uJZ.js → solution-payments-BZZceFVV.js} +2 -2
- package/dist/{store-N7ZA4FKy.js → store-DLKKLXhn.js} +2 -2
- package/dist/style.css +1418 -1157
- package/dist/styles-DYaAeu4q.js +1418 -1157
- package/dist/sv-SE-1re-9Lp8.js +7 -0
- package/dist/{terminal-1-0RlQpbUC.js → terminal-1-CpAyEdjO.js} +2 -2
- package/dist/{translation-DbATp_35.js → translation-CpH8D2NK.js} +34 -30
- package/dist/types/adaptiveWorkflow/component-registry.d.ts +19 -2
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/NodeRenderer.d.ts +7 -0
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/SimpleFieldRenderer.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/CountryField/CountryField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/CountryField/contextMap.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/DateField/DateField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/DateField/contextMap.d.ts +9 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/DateField/validators.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/EmailField/EmailField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/EmailField/contextMap.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/EmailField/validators.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/NumberField/NumberField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/NumberField/contextMap.d.ts +9 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/NumberField/validators.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/TextField/TextField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/TextField/contextMap.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/TextField/validators.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/WebsiteField/WebsiteField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/WebsiteField/contextMap.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/WebsiteField/validators.d.ts +3 -0
- package/dist/types/adaptiveWorkflow/utils/validators/getValidationError.d.ts +7 -0
- package/dist/types/adaptiveWorkflow/utils/validators/sharedValidators.d.ts +3 -0
- package/dist/types/adaptiveWorkflow/utils/validators/types.d.ts +6 -0
- package/dist/types/api/adaptive/useAdaptiveWorkflow.d.ts +1 -1
- package/dist/types/api/address/useAddressCleanse.d.ts +2 -2
- package/dist/types/api/address/useRetrieveAddress.d.ts +2 -2
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +2 -2
- package/dist/types/api/address/useSearchAddress.d.ts +2 -2
- package/dist/types/api/businessLines/useBusinessLines.d.ts +1 -1
- package/dist/types/api/companySearch/useCompanySearch.d.ts +6 -293
- package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
- package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +2 -2
- package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
- package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
- package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
- package/dist/types/api/documents/useDocument.d.ts +1 -1
- package/dist/types/api/documents/useDocuments.d.ts +2 -2
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -3
- package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +2 -2
- package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -1
- package/dist/types/api/invitations/useInvitationStatus.d.ts +1 -1
- package/dist/types/api/invitedEntity/useInvitedEntityAssociationData.d.ts +2 -2
- package/dist/types/api/invitedEntity/useInvitedEntityRootCapabilities.d.ts +2 -2
- package/dist/types/api/invitedEntity/useInvitedEntityVerificationErrors.d.ts +2 -2
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +9 -9
- package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -1
- package/dist/types/api/pci/usePciQuestionnaireList.d.ts +2 -2
- package/dist/types/api/pci/usePciStatus.d.ts +2 -2
- package/dist/types/api/pci/usePciTemplate.d.ts +2 -2
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
- package/dist/types/api/taskStatus/useTaskStatuses.d.ts +2 -2
- package/dist/types/api/taxClassification/useTaxClassification.d.ts +2 -2
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +2 -2
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +2 -2
- package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +2 -2
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +5 -245
- package/dist/types/api/toggles/useToggles.d.ts +1 -1
- package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -2
- package/dist/types/api/validation/useValidatePhoneNumber.d.ts +2 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +3 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +3 -2
- package/dist/types/components/Business/forms/rules.d.ts +3 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSummary.d.ts +3 -2
- package/dist/types/components/GlobalEntry/hooks/usePrefetchCompanySearch.d.ts +11 -0
- package/dist/types/components/GlobalEntry/rules.d.ts +1 -1
- package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +3 -1
- package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +3 -1
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +4 -2
- package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +7 -6
- package/dist/types/components/Shared/SummarySection/SummarySection.d.ts +12 -4
- package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +2 -2
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +11 -1
- package/dist/types/components/ui/atoms/Typography/Typography.types.d.ts +1 -1
- package/dist/types/context/SettingsContext/types.d.ts +8 -0
- package/dist/types/context/ToggleContext/types.d.ts +3 -13
- package/dist/types/utils/japanSupportUtils.d.ts +2 -2
- package/dist/types/utils/validatorUtils.d.ts +2 -0
- package/dist/{types-D6p5FQF-.js → types-BymnGWO9.js} +1 -1
- package/dist/{types-B9zXzag-.js → types-qahGXhtr.js} +1 -1
- package/dist/{upload-C5NC1E4N.js → upload-BI7LKlDm.js} +2 -2
- package/dist/{useAdaptiveWorkflow-DsQESk9f.js → useAdaptiveWorkflow-B35cXauP.js} +1 -1
- package/dist/{useBusinessDetailsData-BDcLKqSN.js → useBusinessDetailsData-D1DJeC90.js} +125 -149
- package/dist/{useBusinessLines-BhSN6qCH.js → useBusinessLines-0FcuDMzo.js} +1 -1
- package/dist/{useCanSeeIntroduction-BLGY7sE-.js → useCanSeeIntroduction-CvLOidr8.js} +5 -5
- package/dist/{useDataMissingRemediations-ttUrk09_.js → useDataMissingRemediations-DKjYzfe2.js} +3 -3
- package/dist/{useForm-BFeaSvlP.js → useForm-B5MdX_HU.js} +6 -6
- package/dist/{useHideTaskStepper-C_w6iUY-.js → useHideTaskStepper-BgCN--mG.js} +1 -1
- package/dist/{invalidateRootLegalEntity-B97dCa-s.js → useId-DbtfzzaE.js} +32 -4
- package/dist/{useIndustryCodes-uAj90IyS.js → useIndustryCodes-La1cU8oH.js} +1 -1
- package/dist/{useLegalEntity-QQXN6YOm.js → useLegalEntity-CxeMoCm4.js} +4 -3
- package/dist/{useNavigate-BdAQG04P.js → useNavigate-uuRpGZuZ.js} +33 -33
- package/dist/{useOnboardingStatus-CsGUjkm-.js → useOnboardingStatus-CX8IrDe_.js} +1 -1
- package/dist/{usePciQuestionnaireList-CFNJD8pS.js → usePciQuestionnaireList-CB_tjNsz.js} +1 -1
- package/dist/{useSalesChannels-huIL6Dhk.js → useSalesChannels-XZRfoa6v.js} +5 -5
- package/dist/{useScenarios-DV2TeNvN.js → useScenarios-DfE71fl7.js} +7 -6
- package/dist/{useSettingsContext-9O3Aqpfq.js → useSettingsContext-Bpf4UqRT.js} +6 -3
- package/dist/{useTaskLandedEvent-DwZHcMEQ.js → useTaskLandedEvent-DzsLZguJ.js} +2 -2
- package/dist/{useTaskStatus-CgrhdaE_.js → useTaskStatus-4nAPf_uD.js} +1 -1
- package/dist/{useTermsOfServiceStatus-DbJDklA2.js → useTermsOfServiceStatus-FDpSDjco.js} +1 -1
- package/dist/{useTrustMembers-uhgi2qfN.js → useTrustMembers-xuXOS0a8.js} +9 -8
- package/dist/{useUnincorporatedPartnershipMembers-DVEWj1is.js → useUnincorporatedPartnershipMembers-DcfQJdVZ.js} +5 -5
- package/dist/{useUpdateBusinessLines-DCKYTzxd.js → useUpdateBusinessLines-B-pF2YT-.js} +1 -1
- package/dist/utils-BD22komZ.js +214 -0
- package/dist/{utils-SKYT7xU4.js → utils-BFxg3gPM.js} +2 -2
- package/dist/{utils-D8pwjFm5.js → utils-CtCqc_ym.js} +5 -6
- package/dist/{validate-BBVJuFm5.js → validate-83HsNk18.js} +15 -17
- package/dist/{validate-t6pT7AaZ.js → validate-DNq64o-B.js} +3 -3
- package/dist/{validate-Bkpa-y5Q.js → validate-mbqt6wsS.js} +7 -7
- package/dist/{validate-Dmdw3pYn.js → validate-r2j-Yc-q.js} +2 -2
- package/dist/{validateExtractionResult-qkFkcrwl.js → validateExtractionResult-IRRMwcNi.js} +5 -7
- package/dist/{warning-circle-fill-C2lMYPJW.js → warning-circle-fill-ClFvGo5m.js} +2 -2
- package/dist/{warning-diamond-filled-CQ2DdW5g.js → warning-diamond-filled-CWyKR65i.js} +2 -2
- package/dist/{webinar-BpZWqd-g.js → webinar-DWX7Z5Wz.js} +2 -2
- package/package.json +36 -36
- package/dist/AdaptiveWorkflow-2EE8iiMD.js +0 -33
- package/dist/Alert-BqbbDRYR.js +0 -172
- package/dist/AnalyticsContext-CpimDlw4.js +0 -21
- package/dist/Checkbox-qfdF12cF.js +0 -60
- package/dist/Confirm-DjFpxSzC.js +0 -77
- package/dist/CountryField-CMOB4yz4.js +0 -38
- package/dist/DataConflictsModal-8Nnj7_UD.js +0 -238
- package/dist/Field-Df7ajJE2.js +0 -154
- package/dist/FormFlow.module-DqMxjYHl.js +0 -20
- package/dist/Header-DvifUz7-.js +0 -93
- package/dist/Icon-DFQgr7dy.js +0 -175
- package/dist/LandingLayout-BsIoIFzs.js +0 -76
- package/dist/LegalName-BYQ12uWc.js +0 -33
- package/dist/LoaderWrapper-Dc88hY-P.js +0 -34
- package/dist/MaskedInput-CkDwzLxe.js +0 -719
- package/dist/MaybeModal-Dfm1rIUG.js +0 -24
- package/dist/NewSummary-DYLlnpwx.js +0 -73
- package/dist/ProgressBar-DWFxLMUA.js +0 -38
- package/dist/RadioGroup-CY33MT83.js +0 -47
- package/dist/RadioWithLabel-BmUFWDxq.js +0 -45
- package/dist/SettingsContext-Dl-9WWCI.js +0 -9
- package/dist/StateContext-B2_Pqd_y.js +0 -9
- package/dist/StateField-BiNI3dm9.js +0 -55
- package/dist/StructuredList-BHUmeWeh.js +0 -56
- package/dist/Summary-BTDbRMfh.js +0 -235
- package/dist/TaxInformationField--Uhp0zLv.js +0 -242
- package/dist/TileGroup-BFcSgQ1l.js +0 -172
- package/dist/ToastContext-B_wd2IY2.js +0 -13
- package/dist/ToastContextProvider-BSQ1Upl_.js +0 -103
- package/dist/VerificationErrorAlert-B6HmAZ0g.js +0 -38
- package/dist/_rolldown_dynamic_import_helper-sGNwd-kR.js +0 -14
- package/dist/bafinUtils-RXELXyTR.js +0 -96
- package/dist/bg-BG-DfbtcqF4.js +0 -7
- package/dist/birthDateUtils-D6uk7zwm.js +0 -84
- package/dist/businessRegistrationNumberPatterns-pbrCVTTp.js +0 -982
- package/dist/cross-circle-fill-small-DdoPZZeo.js +0 -20
- package/dist/cs-CZ-CajuRLo4.js +0 -7
- package/dist/da-DK-BEwmSejn.js +0 -7
- package/dist/datasetUtil-BdHPWsxZ.js +0 -45
- package/dist/de-DE-PyK3jl-6.js +0 -7
- package/dist/debouncedInputEvent-Fwwp_K_-.js +0 -54
- package/dist/debugStore-Dwn1FXrh.js +0 -9
- package/dist/dropinUtils-OsMsnnYG.js +0 -496
- package/dist/el-GR-KPFghikv.js +0 -7
- package/dist/es-ES-z4jLCvkJ.js +0 -7
- package/dist/es-LA-Dx4QymCh.js +0 -7
- package/dist/et-EE-1EhDxtTe.js +0 -7
- package/dist/fi-FI-Dc2RMc_u.js +0 -7
- package/dist/fieldConfigurations-CZCFghnK.js +0 -11
- package/dist/formFieldsUtils-CnDkgahc.js +0 -7
- package/dist/formUtils-BHgG8yQZ.js +0 -52
- package/dist/formUtils-DAKrWwgL.js +0 -84
- package/dist/fr-FR-DswL4wQ1.js +0 -7
- package/dist/getFormSlice-C1ma6Xd4.js +0 -21
- package/dist/getTrustedFields-BJ88GlM-.js +0 -28
- package/dist/globalStore--_np-9ON.js +0 -418
- package/dist/hr-HR-DI2D_V50.js +0 -7
- package/dist/hu-HU-lyRcZjGI.js +0 -7
- package/dist/isEmpty-Uewyl-r6.js +0 -14
- package/dist/isEmptyEntity-3OHnhXqG.js +0 -43
- package/dist/it-IT-Bn4CEcmI.js +0 -7
- package/dist/ja-JP-CAX_xwUx.js +0 -7
- package/dist/keys-Ce8YnRP2.js +0 -20
- package/dist/listToRecord-DumSkYDz.js +0 -10
- package/dist/lt-LT-BdgYuJW7.js +0 -7
- package/dist/lv-LV-Bz5c0Psg.js +0 -7
- package/dist/mapScriptLocalization-BCfkZo1y.js +0 -46
- package/dist/nl-NL-BE2cQh0x.js +0 -7
- package/dist/no-NO-vgzpp44v.js +0 -7
- package/dist/patternValidators-DsrZkuOO.js +0 -73
- package/dist/pl-PL-DgDSRVmp.js +0 -7
- package/dist/pt-BR-BaKp-J8F.js +0 -7
- package/dist/pt-PT-Df48oeP5.js +0 -7
- package/dist/resolveEnvironment-Tnw3ytcJ.js +0 -999
- package/dist/ro-RO-CTMsv_EY.js +0 -7
- package/dist/roleMetadata-CbgaYaH8.js +0 -56
- package/dist/sk-SK-oqO5I3Aw.js +0 -7
- package/dist/sl-SI-CQhJFnpj.js +0 -7
- package/dist/summaryItem-uDWmtYtt.js +0 -16
- package/dist/sv-SE-CmevESLi.js +0 -7
- package/dist/toFullWidth-Dgy4X4i8.js +0 -52
- package/dist/trustUtil-BG17fZ56.js +0 -98
- package/dist/types/adaptiveWorkflow/components/Fields/LegalName.d.ts +0 -14
- package/dist/types-B28r2lAW.js +0 -30
- package/dist/types-CZAHRt31.js +0 -147
- package/dist/useAccountHolder-BpIX1iBG.js +0 -102
- package/dist/useAllowedCountries-qyvo-c6A.js +0 -80
- package/dist/useAnalyticsContext-gSnRnYgV.js +0 -12
- package/dist/useCreateLegalEntity-CYZd_62a.js +0 -24
- package/dist/useDataset-K19TDoyR.js +0 -98
- package/dist/useDeleteTransferInstrument-C10xzHiO.js +0 -31
- package/dist/useId-BkDhUta2.js +0 -28
- package/dist/useMultiForm-CM3lpilP.js +0 -790
- package/dist/useToastContext-B6Mqc2HY.js +0 -12
- package/dist/useToggleContext-B_YexrbT.js +0 -21
- package/dist/useUpdateLegalEntity-B7LRg8m0.js +0 -29
- package/dist/utils-BLBh0VEd.js +0 -1755
- package/dist/utils-CYUYe54m.js +0 -24
- package/dist/utils-DdHbAadK.js +0 -80
- package/dist/validationError-DUn2rT0n.js +0 -55
- package/dist/validationResult-bjYBDjbU.js +0 -29
- package/dist/validatorUtils-D2O6AAZn.js +0 -106
- /package/dist/{pt-BR-CPbFPNwq2.js → pt-BR-CPbFPNwq.js} +0 -0
|
@@ -1,104 +1,74 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8889db41-793f-4a41-ae21-7b78d97eb6f1", e._sentryDebugIdIdentifier = "sentry-dbid-8889db41-793f-4a41-ae21-7b78d97eb6f1");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { r as useTranslation } from "./translation-
|
|
5
|
+
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
+
import { E as useAllowedCountries, T as datasetUtilities, at as isISIN, it as isEmpty, k as Header, mt as useAccountHolder, st as isUndefinedOrNull, x as Alert } from "./resolveEnvironment-DwfwgVEU.js";
|
|
6
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
7
8
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
|
-
import { t as Loader } from "./Loader-
|
|
9
|
-
import { t as Button } from "./Button-
|
|
10
|
-
import { s as useApiContext } from "./http-
|
|
11
|
-
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as useSettingsContext } from "./useSettingsContext-9O3Aqpfq.js";
|
|
9
|
+
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
10
|
+
import { t as Button } from "./Button-Dwr6jvJZ.js";
|
|
11
|
+
import { s as useApiContext } from "./http-C8rt2BZk.js";
|
|
12
|
+
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CxeMoCm4.js";
|
|
13
|
+
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
14
14
|
import { a as objectsDeepEqual, n as doArraysMatch, o as entriesOf, s as keysOf } from "./genUtils-nphCwt1A.js";
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
18
|
-
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-Bd5Eftf2.js";
|
|
15
|
+
import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
|
|
16
|
+
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-zoxTZ2mt.js";
|
|
19
17
|
import { n as TASK_STATUS_POLLING_INTERVAL_MS } from "./taskStatus-BtekPA8E.js";
|
|
20
|
-
import { t as Header } from "./Header-DvifUz7-.js";
|
|
21
|
-
import { t as useAllowedCountries } from "./useAllowedCountries-qyvo-c6A.js";
|
|
22
18
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
23
|
-
import {
|
|
24
|
-
import { t as Alert } from "./Alert-BqbbDRYR.js";
|
|
25
|
-
import { _ as businessDetailsKeyMapping, f as solePropBusinessDetailsApiKeyMapping, g as businessDetailsDocumentMapping, h as businessDetailsApiKeyMapping, m as solePropBusinessDetailsKeyMapping, p as solePropBusinessDetailsDocumentMapping } from "./processCapabilities-CWE5UFt8.js";
|
|
19
|
+
import { _ as businessDetailsKeyMapping, f as solePropBusinessDetailsApiKeyMapping, g as businessDetailsDocumentMapping, h as businessDetailsApiKeyMapping, m as solePropBusinessDetailsKeyMapping, p as solePropBusinessDetailsDocumentMapping } from "./processCapabilities-FL4-KAbd.js";
|
|
26
20
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
27
|
-
import { r as filterOutUnwantedAssociationsIfRootLE, s as getOwnEntityAssociations } from "./entityAssociationUtil-
|
|
21
|
+
import { r as filterOutUnwantedAssociationsIfRootLE, s as getOwnEntityAssociations } from "./entityAssociationUtil-BlfcBl3i.js";
|
|
28
22
|
import { t as Scenarios } from "./scenarios-nibtmpSb.js";
|
|
29
|
-
import { t as
|
|
23
|
+
import { i as useToggleContext, r as useDebouncedCallback, t as Checkbox } from "./Checkbox-CpzEl3ji.js";
|
|
24
|
+
import { i as useAnalyticsContext, n as ModalContent, t as Modal } from "./Modal-C-T-spfu.js";
|
|
30
25
|
import { t as HandlerContext } from "./HandlerContext-DeMa68z0.js";
|
|
31
|
-
import {
|
|
32
|
-
import { t as
|
|
26
|
+
import { a as SettingNames, t as InputText } from "./InputText-DIesIpnW.js";
|
|
27
|
+
import { t as ListItem } from "./ListItem-DY-qq1lS.js";
|
|
28
|
+
import { t as getFormSlice } from "./getFormSlice-CxtXJ0-P.js";
|
|
29
|
+
import { t as useBusinessLines } from "./useBusinessLines-0FcuDMzo.js";
|
|
33
30
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import { n as
|
|
39
|
-
import { t as
|
|
40
|
-
import {
|
|
41
|
-
import { t as
|
|
42
|
-
import { t as
|
|
43
|
-
import {
|
|
44
|
-
import { i as
|
|
45
|
-
import { t as
|
|
46
|
-
import { t as
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import { t as
|
|
51
|
-
import {
|
|
52
|
-
import { t as
|
|
53
|
-
import {
|
|
54
|
-
import { a as
|
|
55
|
-
import { t as
|
|
56
|
-
import {
|
|
57
|
-
import { t as
|
|
58
|
-
import { t as getFormSlice } from "./getFormSlice-C1ma6Xd4.js";
|
|
59
|
-
import { a as isValidationError, r as isBusinessSelectionLegalArrangementError } from "./validationError-DUn2rT0n.js";
|
|
60
|
-
import { t as ListItem } from "./ListItem-CHGVbHhB.js";
|
|
61
|
-
import { t as TileGroup } from "./TileGroup-BFcSgQ1l.js";
|
|
62
|
-
import { n as useDebouncedCallback } from "./debouncedInputEvent-Fwwp_K_-.js";
|
|
63
|
-
import { t as Checkbox } from "./Checkbox-qfdF12cF.js";
|
|
64
|
-
import { n as CountryField, t as COUNTRY_FIELD } from "./CountryField-CMOB4yz4.js";
|
|
65
|
-
import { a as mapAddressLabelsNewSummary, c as COUNTRIES_WITH_STATES_DATASET, r as getKeyForField, t as getAddressSchemaForCountry } from "./utils-lIizXlcC.js";
|
|
66
|
-
import { n as StateField, r as stateFieldMetadata, t as STATE_FIELD } from "./StateField-BiNI3dm9.js";
|
|
67
|
-
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-CV2EgRCw.js";
|
|
68
|
-
import { t as InputText } from "./InputText-CwPK55J0.js";
|
|
69
|
-
import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
|
|
70
|
-
import { n as TaxInformationField, r as isJapanLocalizationEnabled, t as TAX_INFORMATION_FIELD } from "./TaxInformationField--Uhp0zLv.js";
|
|
71
|
-
import { t as RadioGroup } from "./RadioGroup-CY33MT83.js";
|
|
72
|
-
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-Dz1uGvRQ.js";
|
|
73
|
-
import { n as LEGAL_ARRANGEMENT_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION } from "./legalArrangementUtils-C68JdH6I.js";
|
|
74
|
-
import { t as DataConflictsModal } from "./DataConflictsModal-8Nnj7_UD.js";
|
|
75
|
-
import { r as formatObject } from "./utils-DdHbAadK.js";
|
|
76
|
-
import { t as useScenarios } from "./useScenarios-DV2TeNvN.js";
|
|
77
|
-
import { o as nestAddressSchema, r as flattenAddressSchema } from "./AddressFields-CFG2_P0x.js";
|
|
78
|
-
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-RrS8dCpX.js";
|
|
79
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DwZHcMEQ.js";
|
|
80
|
-
import { i as JP_ADDRESS_REQUIRED_FIELDS, r as mapJpAddressSummaryNewSummary, t as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-wwD6Rp3Q.js";
|
|
81
|
-
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-CFU1x_1n.js";
|
|
82
|
-
import { a as getFileExtention, i as getDocuments, l as mergeProofOfOwnershipAttachments, n as documentApiUtils, r as getDocument, t as createDocumentRequest } from "./documentUtils-CxjFpoJB.js";
|
|
83
|
-
import { i as getFieldsWithExistingData, n as MemoizedDocumentUpload, t as PatriotActDisclosure } from "./PatriotActDisclosure-BNAsJXEL.js";
|
|
84
|
-
import { i as formatAddressForCleanse, n as formatDateObj, o as useAddressCleanseImperatively, t as InputDate } from "./InputDate-B0RNGCq2.js";
|
|
85
|
-
import { t as addressValidators } from "./validate-t6pT7AaZ.js";
|
|
31
|
+
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-DbtfzzaE.js";
|
|
32
|
+
import { a as composePerScenarioFormConfigurations, o as getPropsFromConfigurations, r as resolveFieldMetadata, s as LandingLayout, t as createFormRules } from "./form-rules-DaLzvm8o.js";
|
|
33
|
+
import { p as LoaderWrapper, r as Field } from "./Select-DwuMMZWv.js";
|
|
34
|
+
import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-BD22komZ.js";
|
|
35
|
+
import { a as CountryOfGoverningLawField, c as useCompanyTypeExamples, d as companySearchQueryOptions, f as useCompanySearch, i as COUNTRY_OF_GOVERNING_LAW_FIELD, l as useCompanySelection, m as useClearCompanyData, n as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, o as useLegalCompanyNameField, p as trackPerformance, r as isNormalizedStringMatch, s as localizedLegalCompanyNameFieldConfig, t as CountryOfGoverningLawFieldValidation, u as verifyTinQueryOptions } from "./validate-83HsNk18.js";
|
|
36
|
+
import { c as mapAddressLabelsNewSummary, d as COUNTRIES_WITH_STATES_DATASET, i as getAddressSchemaForCountry, m as useCreateLegalEntity, n as StateField, o as getKeyForField, p as useUpdateLegalEntity, r as stateFieldMetadata, t as STATE_FIELD } from "./StateField-BMyu6YZZ.js";
|
|
37
|
+
import { C as validateNotEmptyOnBlur, D as alphanumericInputs, E as alphaInputs, H as Summary_module_default, I as useFormComposer, K as createFormUtils, N as useMultiForm, R as summaryStep, T as uppercase, Y as FormContextProvider, _ as FormFlow, a as MaskedInput, c as COUNTRY_FIELD, f as isBusinessSelectionLegalArrangementError, g as useFormContext, j as numericInputs, k as makeMask, l as CountryField, m as isValidationError, q as mergeFieldMetadataIntoProps, r as RadioGroup, t as addValidityToForms, w as validatePatternOnBlur } from "./dropinUtils-C0hhy3A9.js";
|
|
38
|
+
import { t as Image } from "./Image-CxnjHtP1.js";
|
|
39
|
+
import { t as ErrorPanel } from "./ErrorPanel-MWL7vQHx.js";
|
|
40
|
+
import { A as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, B as isUsingCompanySearch, C as getValidCompanyTypesForTaxIdNumberType, D as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, E as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION, F as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, H as mapLocalizationToJapaneseLegalNames, I as REGISTRATION_NUMBER_EXEMPTION_RULES, L as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, M as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS, N as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, O as COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION, P as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS, R as isRegistrationExemptionAllowed, S as getTaxIdNumberOptions, T as TileGroup, U as isEmpty$1, V as mapJapaneseLegalNamesToLocalization, _ as getTaxInformationPlaceholderText, c as DataConflictsModal, j as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, k as COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP, l as TAX_INFORMATION_FIELD, u as TaxInformationField, v as taxInformationDefaultFieldConfig, w as taxIdNumberOptions, x as isJapanLocalizationEnabled, y as taxInformationDefaultFieldMetadata, z as isRegistrationNumberAbsentStateV4Scenario } from "./bafinUtils-CW20t7tP.js";
|
|
41
|
+
import { a as getValidCompanyTypesForRegistrationNumberType, i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as getDefaultRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-CVVuCd8E.js";
|
|
42
|
+
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-wgWJRR84.js";
|
|
43
|
+
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-CBEz-yoj.js";
|
|
44
|
+
import { n as LEGAL_ARRANGEMENT_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION } from "./legalArrangementUtils-Crgt_L7h.js";
|
|
45
|
+
import { t as useScenarios } from "./useScenarios-DfE71fl7.js";
|
|
46
|
+
import { o as nestAddressSchema, r as flattenAddressSchema } from "./AddressFields-DSJ_dDIS.js";
|
|
47
|
+
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-BXfeQxev.js";
|
|
48
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DzsLZguJ.js";
|
|
49
|
+
import { i as JP_ADDRESS_REQUIRED_FIELDS, r as mapJpAddressSummaryNewSummary, t as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-CAoOxUg9.js";
|
|
50
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-CcgBvwPJ.js";
|
|
51
|
+
import { a as getFileExtention, i as getDocuments, l as mergeProofOfOwnershipAttachments, n as documentApiUtils, r as getDocument, t as createDocumentRequest } from "./documentUtils-6K3LdjjN.js";
|
|
52
|
+
import { i as getFieldsWithExistingData, n as MemoizedDocumentUpload, t as PatriotActDisclosure } from "./PatriotActDisclosure-CWcGyfuA.js";
|
|
53
|
+
import { a as useAddressCleanseImperatively, r as formatAddressForCleanse, t as InputDate } from "./InputDate-BSxqqg_B.js";
|
|
54
|
+
import { t as addressValidators } from "./validate-DNq64o-B.js";
|
|
86
55
|
import { t as capitalize } from "./getProps-DVqK7eRw.js";
|
|
87
|
-
import { t as Link } from "./Link-
|
|
88
|
-
import {
|
|
89
|
-
import { t as
|
|
90
|
-
import { t as
|
|
56
|
+
import { t as Link } from "./Link-D0Yqc2r0.js";
|
|
57
|
+
import { r as formatDateObj } from "./InputDate.utils-D4Ov0KIl.js";
|
|
58
|
+
import { t as formatValidationError } from "./formatValidationError-CwtW9tMt.js";
|
|
59
|
+
import { t as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-Dpsnbt5H.js";
|
|
60
|
+
import { t as currencyByCountry } from "./types-BymnGWO9.js";
|
|
91
61
|
import { t as Divider } from "./Divider-BENvVRnz.js";
|
|
92
|
-
import { n as
|
|
93
|
-
import { t as DetailViewLayout } from "./DetailViewLayout-
|
|
94
|
-
import { a as LegalFormField, c as legalEntityIdentifierFieldMetadata, d as isDateOlderThanAYear, f as mapAddressData, i as InputCurrency, l as mapFinancialReportsToFinancialInformation, n as Currency, o as LEGAL_ENTITY_IDENTIFIER_FIELD, r as InputNumber, s as LegalEntityIdentifierField, t as CURRENCY_FIELD, u as mapFinancialInformationToFinancialReport } from "./Currency-
|
|
95
|
-
import { t as useTaskStatus } from "./useTaskStatus-
|
|
96
|
-
import { t as useIndustryCodes } from "./useIndustryCodes-
|
|
62
|
+
import { n as NewSummary, t as SummarySection } from "./SummarySection-BVPfXtuP.js";
|
|
63
|
+
import { t as DetailViewLayout } from "./DetailViewLayout-DJgAzdlZ.js";
|
|
64
|
+
import { a as LegalFormField, c as legalEntityIdentifierFieldMetadata, d as isDateOlderThanAYear, f as mapAddressData, i as InputCurrency, l as mapFinancialReportsToFinancialInformation, n as Currency, o as LEGAL_ENTITY_IDENTIFIER_FIELD, r as InputNumber, s as LegalEntityIdentifierField, t as CURRENCY_FIELD, u as mapFinancialInformationToFinancialReport } from "./Currency-DFgCZFeZ.js";
|
|
65
|
+
import { t as useTaskStatus } from "./useTaskStatus-4nAPf_uD.js";
|
|
66
|
+
import { t as useIndustryCodes } from "./useIndustryCodes-La1cU8oH.js";
|
|
97
67
|
import { n as formatCurrency } from "./formatCurrency-BetgkQKi.js";
|
|
98
|
-
import { n as useCreateBusinessLine, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-
|
|
99
|
-
import { _ as dateOfIncorporationFieldMetadata, a as defaultFieldConfig$1, c as REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS, d as doingBusinessAsFieldMetadata, f as DBANameField, h as DateOfIncorporationField, i as getDefaultVatNumberType, l as RegistrationAndOperationalAddressFields, m as DATE_OF_INCORPORATION_FIELD, n as VAT_NUMBER_FIELD, o as defaultFieldMetadata$1, p as DBA_NAME_FIELD, r as VatNumberField, s as vatAbsenceReasonMetadata, t as MemoizedConstitutionalDocument, u as doingBusinessAsAbsentFieldMetadata } from "./ConstitutionalDocument-
|
|
100
|
-
import { f as industryCodeFieldMetadata, l as IndustryCodeField, t as INDUSTRY_CODE_FIELD } from "./constants-
|
|
101
|
-
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
68
|
+
import { n as useCreateBusinessLine, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-B-pF2YT-.js";
|
|
69
|
+
import { _ as dateOfIncorporationFieldMetadata, a as defaultFieldConfig$1, c as REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS, d as doingBusinessAsFieldMetadata, f as DBANameField, h as DateOfIncorporationField, i as getDefaultVatNumberType, l as RegistrationAndOperationalAddressFields, m as DATE_OF_INCORPORATION_FIELD, n as VAT_NUMBER_FIELD, o as defaultFieldMetadata$1, p as DBA_NAME_FIELD, r as VatNumberField, s as vatAbsenceReasonMetadata, t as MemoizedConstitutionalDocument, u as doingBusinessAsAbsentFieldMetadata } from "./ConstitutionalDocument-C_ZgPp87.js";
|
|
70
|
+
import { f as industryCodeFieldMetadata, l as IndustryCodeField, t as INDUSTRY_CODE_FIELD } from "./constants-DR4IoRWH.js";
|
|
71
|
+
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-CtCqc_ym.js";
|
|
102
72
|
import { lazy } from "preact/compat";
|
|
103
73
|
import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
104
74
|
import cx from "classnames";
|
|
@@ -975,7 +945,9 @@ function FinancialInformation({ id, country, fieldValidationErrors = EMPTY_OBJ$2
|
|
|
975
945
|
handleChangeFor,
|
|
976
946
|
t
|
|
977
947
|
]);
|
|
978
|
-
const
|
|
948
|
+
const isFinancialReportingDateVisible = formUtils.isVisibleField("financialReportingDate", false);
|
|
949
|
+
const isReportingCurrencyVisible = formUtils.isVisibleField("currency", false);
|
|
950
|
+
const isReportedValueVisible = formUtils.isVisibleField("reportedValueOption", false);
|
|
979
951
|
return /* @__PURE__ */ jsxs("form", {
|
|
980
952
|
id,
|
|
981
953
|
children: [
|
|
@@ -994,7 +966,7 @@ function FinancialInformation({ id, country, fieldValidationErrors = EMPTY_OBJ$2
|
|
|
994
966
|
readonly: formUtils.isReadOnly("numberOfEmployees"),
|
|
995
967
|
valid: formUtils.getFieldValid(valid ?? {}, NUMBER_OF_EMPLOYEES_FIELD)
|
|
996
968
|
}),
|
|
997
|
-
|
|
969
|
+
isFinancialReportingDateVisible && /* @__PURE__ */ jsx(FinancialReportingDate, {
|
|
998
970
|
data: formUtils.getFieldData(data ?? {}, FINANCIAL_REPORTING_DATE_FIELD),
|
|
999
971
|
errors: formUtils.getFieldErrors(errors ?? {}, fieldProblems, FINANCIAL_REPORTING_DATE_FIELD),
|
|
1000
972
|
handleChangeFor,
|
|
@@ -1002,7 +974,7 @@ function FinancialInformation({ id, country, fieldValidationErrors = EMPTY_OBJ$2
|
|
|
1002
974
|
readonly: formUtils.isReadOnly("financialReportingDate"),
|
|
1003
975
|
valid: formUtils.getFieldValid(valid ?? {}, FINANCIAL_REPORTING_DATE_FIELD)
|
|
1004
976
|
}),
|
|
1005
|
-
|
|
977
|
+
isReportingCurrencyVisible && /* @__PURE__ */ jsx(Currency, {
|
|
1006
978
|
country,
|
|
1007
979
|
labels: { currency: t(($) => $["reportingCurrency"]) },
|
|
1008
980
|
data: formUtils.getFieldData(data ?? {}, CURRENCY_FIELD),
|
|
@@ -1011,7 +983,7 @@ function FinancialInformation({ id, country, fieldValidationErrors = EMPTY_OBJ$2
|
|
|
1011
983
|
readonly: formUtils.isReadOnly("currency"),
|
|
1012
984
|
valid: formUtils.getFieldValid(valid ?? {}, CURRENCY_FIELD)
|
|
1013
985
|
}),
|
|
1014
|
-
|
|
986
|
+
isReportedValueVisible && /* @__PURE__ */ jsx(ReportedValueOptionField, {
|
|
1015
987
|
data: formUtils.getFieldData(data ?? {}, REPORTED_VALUE_OPTION_FIELD),
|
|
1016
988
|
valid: formUtils.getFieldValid(valid ?? {}, REPORTED_VALUE_OPTION_FIELD),
|
|
1017
989
|
errors: formUtils.getFieldErrors(errors ?? {}, fieldProblems, REPORTED_VALUE_OPTION_FIELD),
|
|
@@ -1744,14 +1716,15 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
1744
1716
|
const leType = rootLegalEntity?.type;
|
|
1745
1717
|
return isFinancialInformationRequired(isFinancialInformationFeatureEnabled, taskType, country, rootLegalEntity?.capabilities, leType);
|
|
1746
1718
|
};
|
|
1747
|
-
const
|
|
1748
|
-
if (
|
|
1749
|
-
|
|
1719
|
+
const financialReportingFieldRule = (hasData) => {
|
|
1720
|
+
if (countryRequiresFinancialInformation() !== "REQUIRED") return;
|
|
1721
|
+
if (isDateOlderThanAYear(data.additionalInformation?.dateOfIncorporation)) return "REQUIRED";
|
|
1722
|
+
return hasData ? "OPTIONAL" : void 0;
|
|
1750
1723
|
};
|
|
1751
1724
|
const addressFieldRule = (field, isOperational) => {
|
|
1752
1725
|
if (isOperational && data.additionalInformation?.operationalAddressIsSame) return void 0;
|
|
1753
1726
|
if (field === "country") return "REQUIRED";
|
|
1754
|
-
if (isJapanLocalizationEnabled(
|
|
1727
|
+
if (isJapanLocalizationEnabled(isSettingEnabled, country)) {
|
|
1755
1728
|
if (field === "street") return "OPTIONAL";
|
|
1756
1729
|
return JP_ADDRESS_REQUIRED_FIELDS.includes(field) ? "REQUIRED" : "OPTIONAL";
|
|
1757
1730
|
}
|
|
@@ -1871,18 +1844,9 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
1871
1844
|
isDateOfIncorporationRequired: () => {
|
|
1872
1845
|
return countryRequiresDateOfIncorporationForCompanies() || countryRequiresFinancialInformation();
|
|
1873
1846
|
},
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
/**
|
|
1878
|
-
* MultiForm recalculates required/optional schemas when rules change and reindexes form state
|
|
1879
|
-
* against those schemas. If these financial fields are not included, provider-applied values can
|
|
1880
|
-
* be pruned and appear to reset. Keeping them OPTIONAL by default when the feature is enabled
|
|
1881
|
-
* (instead of undefined) preserves existing values in the form while still avoiding hard validation
|
|
1882
|
-
* requirements when provider data is partial.
|
|
1883
|
-
*/
|
|
1884
|
-
if (hasFinancialInformation(verifiedBusiness?.financialInformation) || hasFinancialInformation(data.companyFinancialInformation)) return "OPTIONAL";
|
|
1885
|
-
},
|
|
1847
|
+
isFinancialReportingDateRequired: () => financialReportingFieldRule(Boolean(verifiedBusiness?.financialInformation?.financialReportingDate || data.companyFinancialInformation?.financialReportingDate)),
|
|
1848
|
+
isReportingCurrencyRequired: () => financialReportingFieldRule(Boolean(verifiedBusiness?.financialInformation?.currency || data.companyFinancialInformation?.currency)),
|
|
1849
|
+
isReportedValueRequired: () => financialReportingFieldRule(verifiedBusiness?.financialInformation?.balanceSheetTotal != null || verifiedBusiness?.financialInformation?.annualTurnover != null || Boolean(data.companyFinancialInformation?.reportedValueOption)),
|
|
1886
1850
|
isIndustryCodeRequired: () => {
|
|
1887
1851
|
return isSettingEnabled(SettingNames.AllowBusinessLines) ? "REQUIRED" : void 0;
|
|
1888
1852
|
},
|
|
@@ -1896,7 +1860,7 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
1896
1860
|
if (isFeatureEnabled("EnableResidentialAddressIndicator")) return "OPTIONAL";
|
|
1897
1861
|
},
|
|
1898
1862
|
isEInvoicingCodeEnabled: () => {
|
|
1899
|
-
if (
|
|
1863
|
+
if (isSettingEnabled("enableEInvoicingCodeField") && COUNTRIES_REQUIRING_E_INVOICING_CODE.includes(country)) return "REQUIRED";
|
|
1900
1864
|
},
|
|
1901
1865
|
isTaxDocumentRequired: () => {
|
|
1902
1866
|
if (tinMatched === false && country === CountryCodes.UnitedStates) return "REQUIRED";
|
|
@@ -1908,7 +1872,7 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
1908
1872
|
if (taskType !== TaskTypes.SOLE_PROPRIETOR_COMPANY) return "REQUIRED";
|
|
1909
1873
|
},
|
|
1910
1874
|
japaneseLegalCompanyName: () => {
|
|
1911
|
-
if (isJapanLocalizationEnabled(
|
|
1875
|
+
if (isJapanLocalizationEnabled(isSettingEnabled, country)) return "REQUIRED";
|
|
1912
1876
|
},
|
|
1913
1877
|
requireLEI: () => {
|
|
1914
1878
|
if (!isFeatureEnabled("EnableLegalEntityIdentifierField") || taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY) return;
|
|
@@ -2058,9 +2022,7 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
2058
2022
|
case "LEGAL_ARRANGEMENT":
|
|
2059
2023
|
legalArrangementModalOpen.value = true;
|
|
2060
2024
|
break;
|
|
2061
|
-
default:
|
|
2062
|
-
logger.error("Unhandled disallowed selection reason");
|
|
2063
|
-
break;
|
|
2025
|
+
default: logger.error("Unhandled disallowed selection reason");
|
|
2064
2026
|
}
|
|
2065
2027
|
return null;
|
|
2066
2028
|
}
|
|
@@ -2076,12 +2038,10 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
2076
2038
|
return null;
|
|
2077
2039
|
}
|
|
2078
2040
|
break;
|
|
2079
|
-
default:
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
}
|
|
2084
|
-
break;
|
|
2041
|
+
default: if (isVerificationFailed()) {
|
|
2042
|
+
registrationNumberMismatchModalOpen.value = true;
|
|
2043
|
+
return null;
|
|
2044
|
+
}
|
|
2085
2045
|
}
|
|
2086
2046
|
companySearchStateModel.confirmCompany(multiForm, country);
|
|
2087
2047
|
return getRequiredForms({ skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm || !!getInferredRegistrationNumberType() });
|
|
@@ -2113,7 +2073,12 @@ function usePrefetchCompanySearch({ country, multiForm, activeFormId, isUsingCom
|
|
|
2113
2073
|
const queryClient = useQueryClient();
|
|
2114
2074
|
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
2115
2075
|
const userEvents = useAnalyticsContext();
|
|
2116
|
-
|
|
2076
|
+
/**
|
|
2077
|
+
* This is quite US-specific at the moment and could do with some work to make
|
|
2078
|
+
* generic, but to avoid putting the cart before the horse, it'll intentionally
|
|
2079
|
+
* remain as-is.
|
|
2080
|
+
*/
|
|
2081
|
+
const prefetchCompanySearchResults = useCallback$1(async () => {
|
|
2117
2082
|
const root = getRootElement(), activeElementName = (root.activeElement && root.activeElement.getAttribute("name")) ?? "";
|
|
2118
2083
|
const fieldNames = getRelatedFields(country);
|
|
2119
2084
|
let allRelatedFieldsAreValid = true, noRelatedFieldsAreFocused = true;
|
|
@@ -2140,7 +2105,8 @@ function usePrefetchCompanySearch({ country, multiForm, activeFormId, isUsingCom
|
|
|
2140
2105
|
queryClient,
|
|
2141
2106
|
rootLegalEntityId,
|
|
2142
2107
|
userEvents
|
|
2143
|
-
])
|
|
2108
|
+
]);
|
|
2109
|
+
const debouncedCompanySearchPrefetch = useDebouncedCallback(prefetchCompanySearchResults, 500);
|
|
2144
2110
|
/**
|
|
2145
2111
|
* Re-fires prefetch when fields lose focus, with extra filtering within
|
|
2146
2112
|
* the handler to determine whether the search should continue after being debounced.
|
|
@@ -2634,8 +2600,10 @@ function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, a
|
|
|
2634
2600
|
}));
|
|
2635
2601
|
if (filteredData.basicInformation && !filteredData.basicInformation.taxInformation) filteredData.basicInformation.taxInformation = void 0;
|
|
2636
2602
|
const countryOfGoverningLaw = getCountryOfGoverningLaw(isFeatureEnabled("EnableCountryOfGoverningLawForUKCompanies"), filteredData.basicInformation);
|
|
2637
|
-
if (filteredData.basicInformation)
|
|
2638
|
-
|
|
2603
|
+
if (filteredData.basicInformation) {
|
|
2604
|
+
if (countryOfGoverningLaw) filteredData.basicInformation.countryOfGoverningLaw = countryOfGoverningLaw;
|
|
2605
|
+
else delete filteredData.basicInformation.countryOfGoverningLaw;
|
|
2606
|
+
}
|
|
2639
2607
|
try {
|
|
2640
2608
|
const mappedLegalEntity = {
|
|
2641
2609
|
...mapBusinessDetailsSchemaToLegalEntity(filteredData, accountHolder, isFeatureEnabled, taskType, matchingScenario, legalEntityResponse),
|
|
@@ -2917,7 +2885,8 @@ function buildRequiredForms({ config: { forms, requiredFields, optionalFields, i
|
|
|
2917
2885
|
if (requiredFields || optionalFields) return Boolean(requiredFields?.[formId]) || Boolean(optionalFields?.[formId]);
|
|
2918
2886
|
return true;
|
|
2919
2887
|
});
|
|
2920
|
-
|
|
2888
|
+
const requiredForms = options?.skipSummary ? filteredForms : [...filteredForms, summaryStep];
|
|
2889
|
+
return addValidityToForms(requiredForms, isValid, problems);
|
|
2921
2890
|
}
|
|
2922
2891
|
//#endregion
|
|
2923
2892
|
//#region src/components/Business/utils/formatDataForSummary.ts
|
|
@@ -3120,9 +3089,9 @@ var taxInformationBase = {
|
|
|
3120
3089
|
};
|
|
3121
3090
|
var financialInformationBase = {
|
|
3122
3091
|
numberOfEmployees: { rule: "countryRequiresFinancialInformation" },
|
|
3123
|
-
financialReportingDate: { rule: "
|
|
3124
|
-
currency: { rule: "
|
|
3125
|
-
reportedValueOption: { rule: "
|
|
3092
|
+
financialReportingDate: { rule: "isFinancialReportingDateRequired" },
|
|
3093
|
+
currency: { rule: "isReportingCurrencyRequired" },
|
|
3094
|
+
reportedValueOption: { rule: "isReportedValueRequired" },
|
|
3126
3095
|
annualTurnover: { rule: "annualTurnoverRequired" },
|
|
3127
3096
|
balanceSheetTotal: { rule: "balanceSheetTotalRequired" }
|
|
3128
3097
|
};
|
|
@@ -3191,7 +3160,7 @@ var BusinessDetailsGettingStarted = ({ openModal, handleCancelClick, t, data: su
|
|
|
3191
3160
|
children: summaryData?.map(({ formId, label, items }) => /* @__PURE__ */ jsx(SummarySection, {
|
|
3192
3161
|
formId,
|
|
3193
3162
|
label,
|
|
3194
|
-
items
|
|
3163
|
+
children: /* @__PURE__ */ jsx(StructuredList, { items })
|
|
3195
3164
|
}, formId))
|
|
3196
3165
|
})]
|
|
3197
3166
|
})
|
|
@@ -3386,8 +3355,9 @@ var preventPoBoxValidation = (cleanseAddress, formData) => ({ operationalAddress
|
|
|
3386
3355
|
asyncValidate: async (street) => {
|
|
3387
3356
|
const country = formData?.basicInformation?.country;
|
|
3388
3357
|
if (!street || !country) return true;
|
|
3358
|
+
const address = nestAddressSchema("operationalAddress", formData.additionalInformation);
|
|
3389
3359
|
const text = formatAddressForCleanse({
|
|
3390
|
-
...
|
|
3360
|
+
...address,
|
|
3391
3361
|
street
|
|
3392
3362
|
});
|
|
3393
3363
|
if (!text) return true;
|
|
@@ -3442,9 +3412,10 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3442
3412
|
const legalArrangementModalOpen = useSignal(false);
|
|
3443
3413
|
const registrationNumberMismatchModalOpen = useSignal(false);
|
|
3444
3414
|
const defaultForms = useMemo$1(() => getForms(country), [country]);
|
|
3415
|
+
const parseConfiguration = useCallback$1(({ scenarios }) => composePerScenarioFormConfigurations(scenarios, businessDetailsFieldsPerScenario), []);
|
|
3445
3416
|
const { fieldConfigurations } = useScenarioConfiguration({
|
|
3446
3417
|
legalEntityType,
|
|
3447
|
-
parseConfiguration
|
|
3418
|
+
parseConfiguration,
|
|
3448
3419
|
setLoadingStatus,
|
|
3449
3420
|
country
|
|
3450
3421
|
});
|
|
@@ -3678,19 +3649,20 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3678
3649
|
setLoadingStatus,
|
|
3679
3650
|
onExternalSubmit
|
|
3680
3651
|
});
|
|
3652
|
+
const submitTask = useCallback$1(async () => {
|
|
3653
|
+
try {
|
|
3654
|
+
await submit();
|
|
3655
|
+
setIsAddingBusinessDetails(false);
|
|
3656
|
+
} catch (error) {
|
|
3657
|
+
logger.error(error);
|
|
3658
|
+
} finally {
|
|
3659
|
+
setHasEnteredFormFlowBefore(true);
|
|
3660
|
+
}
|
|
3661
|
+
}, [logger, submit]);
|
|
3681
3662
|
const { handleNextClick, handleBackClick, activeForm, shouldValidate, gotoFormByFormIndex, gotoFormByFormId, steps } = useFormComposer({
|
|
3682
3663
|
problems,
|
|
3683
3664
|
forms,
|
|
3684
|
-
onSubmit:
|
|
3685
|
-
try {
|
|
3686
|
-
await submit();
|
|
3687
|
-
setIsAddingBusinessDetails(false);
|
|
3688
|
-
} catch (error) {
|
|
3689
|
-
logger.error(error);
|
|
3690
|
-
} finally {
|
|
3691
|
-
setHasEnteredFormFlowBefore(true);
|
|
3692
|
-
}
|
|
3693
|
-
}, [logger, submit]),
|
|
3665
|
+
onSubmit: submitTask,
|
|
3694
3666
|
triggerValidation: multiForm.triggerValidation
|
|
3695
3667
|
});
|
|
3696
3668
|
const tinMismatchConfirm = () => {
|
|
@@ -3851,21 +3823,24 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3851
3823
|
}), shouldRenderFormFlow && /* @__PURE__ */ jsx(FormContextProvider, {
|
|
3852
3824
|
form: multiForm,
|
|
3853
3825
|
children: /* @__PURE__ */ jsx(FormFlow, {
|
|
3854
|
-
summaryComponent: /* @__PURE__ */ jsxs(NewSummary, {
|
|
3855
|
-
|
|
3856
|
-
handleEditForm,
|
|
3857
|
-
children: [/* @__PURE__ */ jsx(ErrorPanel, {
|
|
3826
|
+
summaryComponent: /* @__PURE__ */ jsxs(NewSummary, { children: [
|
|
3827
|
+
/* @__PURE__ */ jsx(ErrorPanel, {
|
|
3858
3828
|
validationErrors: allValidationErrors,
|
|
3859
3829
|
verificationErrors: allVerificationErrors,
|
|
3860
3830
|
formUtils: createFormUtils({ labels: {} }, t),
|
|
3861
|
-
id: "ariaErrorField"
|
|
3862
|
-
|
|
3863
|
-
})
|
|
3831
|
+
id: "ariaErrorField"
|
|
3832
|
+
}),
|
|
3833
|
+
summarySections.map(({ formId, label, items, hideEditButton }) => /* @__PURE__ */ jsx(SummarySection, {
|
|
3834
|
+
formId,
|
|
3835
|
+
label,
|
|
3836
|
+
onEdit: hideEditButton ? void 0 : handleEditForm,
|
|
3837
|
+
children: /* @__PURE__ */ jsx(StructuredList, { items })
|
|
3838
|
+
}, formId)),
|
|
3839
|
+
/* @__PURE__ */ jsx("div", {
|
|
3864
3840
|
className: Summary_module_default.summaryContentLegalCaption,
|
|
3865
|
-
slot: "extraContent",
|
|
3866
3841
|
children: t(($) => $["summaryLegalCaption"])
|
|
3867
|
-
})
|
|
3868
|
-
}),
|
|
3842
|
+
})
|
|
3843
|
+
] }),
|
|
3869
3844
|
asModal: isBusinessDetailsModalEnabled,
|
|
3870
3845
|
currentStep: steps.current,
|
|
3871
3846
|
totalSteps: steps.total,
|
|
@@ -4338,10 +4313,11 @@ var useDocuments = (documentDetails, entityId, options) => {
|
|
|
4338
4313
|
baseUrl: baseUrl.value,
|
|
4339
4314
|
rootLegalEntityId: rootLegalEntityId.value
|
|
4340
4315
|
});
|
|
4316
|
+
const documentDetailsKey = documentDetails.map((details) => details.id).filter((id) => id !== void 0).sort((a, b) => a.localeCompare(b)).join(",");
|
|
4341
4317
|
return useQuery({
|
|
4342
4318
|
queryKey: [
|
|
4343
4319
|
"documents",
|
|
4344
|
-
|
|
4320
|
+
documentDetailsKey,
|
|
4345
4321
|
entityId
|
|
4346
4322
|
],
|
|
4347
4323
|
queryFn: () => documentUtils.fetchDocuments(documentDetails, entityId),
|
|
@@ -2,7 +2,7 @@ try {
|
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4b5beabe-24f8-42bb-81f9-a6b1d2574017", e._sentryDebugIdIdentifier = "sentry-dbid-4b5beabe-24f8-42bb-81f9-a6b1d2574017");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { n as httpGet, s as useApiContext } from "./http-
|
|
5
|
+
import { n as httpGet, s as useApiContext } from "./http-C8rt2BZk.js";
|
|
6
6
|
import { useQuery } from "@tanstack/preact-query";
|
|
7
7
|
//#region src/api/businessLines/useBusinessLines.ts
|
|
8
8
|
var getBusinessLines = async (legalEntityId, baseUrl) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "591648e0-6255-44e8-b699-4dbf1823bbb3", e._sentryDebugIdIdentifier = "sentry-dbid-591648e0-6255-44e8-b699-4dbf1823bbb3");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { h as isPartOfTrustFromLegalEntity } from "./resolveEnvironment-DwfwgVEU.js";
|
|
6
|
+
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
7
|
+
import { f as hasSolePropInLegalEntity } from "./entityAssociationUtil-BlfcBl3i.js";
|
|
8
|
+
import { a as SettingNames } from "./InputText-DIesIpnW.js";
|
|
9
9
|
//#region src/hooks/useLegalEntityType.ts
|
|
10
10
|
var useLegalEntityType = ({ legalEntity }) => {
|
|
11
11
|
const isTrust = isPartOfTrustFromLegalEntity(legalEntity);
|
package/dist/{useDataMissingRemediations-ttUrk09_.js → useDataMissingRemediations-DKjYzfe2.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5983c0b1-b7e7-42e5-a690-9f2133806862", e._sentryDebugIdIdentifier = "sentry-dbid-5983c0b1-b7e7-42e5-a690-9f2133806862");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { r as useTranslation } from "./translation-
|
|
6
|
-
import { w as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING } from "./processCapabilities-
|
|
5
|
+
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
+
import { w as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING } from "./processCapabilities-FL4-KAbd.js";
|
|
7
7
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
8
8
|
import { useMemo } from "preact/hooks";
|
|
9
9
|
//#region src/hooks/useDataMissingRemediations.ts
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9b6be32c-9960-4d84-8c32-79aa5d3805e0", e._sentryDebugIdIdentifier = "sentry-dbid-9b6be32c-9960-4d84-8c32-79aa5d3805e0");
|
|
4
4
|
} catch (e) {}
|
|
5
|
+
import { it as isEmpty } from "./resolveEnvironment-DwfwgVEU.js";
|
|
5
6
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
6
7
|
import { n as doArraysMatch } from "./genUtils-nphCwt1A.js";
|
|
7
|
-
import {
|
|
8
|
-
import { r as omitKeys, t as addKeys } from "./formUtils-BHgG8yQZ.js";
|
|
9
|
-
import { t as ValidationResult } from "./validationResult-bjYBDjbU.js";
|
|
8
|
+
import { l as omitKeys, o as ValidationResult, s as addKeys } from "./Select-DwuMMZWv.js";
|
|
10
9
|
import { useCallback, useEffect, useMemo, useReducer, useState } from "preact/hooks";
|
|
11
10
|
//#region src/hooks/useAsyncValidator.ts
|
|
12
11
|
var logger = createLogger();
|
|
@@ -55,7 +54,7 @@ var useStaticValidator = (rules) => {
|
|
|
55
54
|
const fieldRules = getRulesForField(key);
|
|
56
55
|
const isFieldOptional = !!context?.state.optionalFields?.includes(key);
|
|
57
56
|
const isFieldObscured = !!context?.state.obscuredFields?.includes(key);
|
|
58
|
-
|
|
57
|
+
const validationRulesResult = fieldRules.map((rule) => {
|
|
59
58
|
const shouldValidate = rule.modes.includes(mode) && !isFieldObscured;
|
|
60
59
|
const isValid = isFieldOptional && isEmpty(value) ? true : rule.validate(value, context);
|
|
61
60
|
return {
|
|
@@ -63,7 +62,8 @@ var useStaticValidator = (rules) => {
|
|
|
63
62
|
errorMessage: typeof rule.errorMessage === "function" ? rule.errorMessage(value, context) : rule.errorMessage,
|
|
64
63
|
hasError: shouldValidate && !isValid
|
|
65
64
|
};
|
|
66
|
-
})
|
|
65
|
+
});
|
|
66
|
+
return new ValidationResult(validationRulesResult);
|
|
67
67
|
}, [getRulesForField]) };
|
|
68
68
|
};
|
|
69
69
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "872bb4a2-96b6-4507-9e8a-7eac04d0ce63", e._sentryDebugIdIdentifier = "sentry-dbid-872bb4a2-96b6-4507-9e8a-7eac04d0ce63");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as useTaskStepperContext } from "./useTaskStepperContext-DCNMsKUc.js";
|
|
6
6
|
import { useRef } from "preact/hooks";
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "60aef8d3-d907-43ac-a141-1fb628abd344", e._sentryDebugIdIdentifier = "sentry-dbid-60aef8d3-d907-43ac-a141-1fb628abd344");
|
|
4
4
|
} catch (e) {}
|
|
5
|
+
import { L as ToastContext } from "./resolveEnvironment-DwfwgVEU.js";
|
|
5
6
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
6
|
-
import { s as useApiContext } from "./http-
|
|
7
|
-
import { useCallback } from "preact/hooks";
|
|
7
|
+
import { s as useApiContext } from "./http-C8rt2BZk.js";
|
|
8
|
+
import { useCallback, useContext, useState } from "preact/hooks";
|
|
8
9
|
import { useQueryClient } from "@tanstack/preact-query";
|
|
10
|
+
//#region src/context/ToastContext/useToastContext.ts
|
|
11
|
+
function useToastContext() {
|
|
12
|
+
return useContext(ToastContext);
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
9
15
|
//#region src/api/invalidateRootLegalEntity.ts
|
|
10
16
|
var logger = createLogger();
|
|
11
17
|
/**
|
|
@@ -42,4 +48,26 @@ var useInvalidateRootLegalEntity = () => {
|
|
|
42
48
|
return useCallback(() => Promise.all([queryClient.invalidateQueries({ queryKey: ["legalEntity", rootLegalEntityId.value] }), queryClient.invalidateQueries({ predicate: ({ queryKey }) => QUERIES_TO_INVALIDATE_WHEN_ROOT_LE_IS_INVALIDATED.includes(queryKey[0]) })]).catch(logger.error), [rootLegalEntityId.value, queryClient]);
|
|
43
49
|
};
|
|
44
50
|
//#endregion
|
|
45
|
-
|
|
51
|
+
//#region src/utils/uuid.ts
|
|
52
|
+
function uuidv4() {
|
|
53
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
54
|
+
let r = Math.random() * 16 | 0;
|
|
55
|
+
return (c == "x" ? r : r & 3 | 8).toString(16);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/utils/useId.ts
|
|
60
|
+
/**
|
|
61
|
+
* We can't use {@link import('preact/hooks').useId} because it doesn't guarantee uniqueness across
|
|
62
|
+
* different render trees. So multiple components mounted on the same page could have collisions.
|
|
63
|
+
*
|
|
64
|
+
* Therefore, we instead calculate a uuid and prepend a prefix.
|
|
65
|
+
*
|
|
66
|
+
* @param prefix a prefix to identify this usage
|
|
67
|
+
*/
|
|
68
|
+
var useId = (prefix) => {
|
|
69
|
+
const [uuid] = useState(uuidv4());
|
|
70
|
+
return `${prefix}_${uuid}`;
|
|
71
|
+
};
|
|
72
|
+
//#endregion
|
|
73
|
+
export { useInvalidateRootLegalEntity as n, useToastContext as r, useId as t };
|