@adyen/kyc-components 4.27.0-beta.2 → 4.28.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/{4-people-CAxQpi_3.js → 4-people-C_-N5Vvz.js} +2 -2
- package/dist/{AcceptTermsOfServiceWorkflow-BUy_iFID.js → AcceptTermsOfServiceWorkflow-BHLj18cI.js} +4 -4
- package/dist/{Accordion-CTQfC17W.js → Accordion-DyU-Pxob.js} +1 -1
- package/dist/{AccountSetupRejected-CRtRxlu3.js → AccountSetupRejected-DrzCd1ET.js} +2 -2
- package/dist/{AdaptiveWorkflow-EGcy-zx1.js → AdaptiveWorkflow-DmZF4G5t.js} +117 -48
- package/dist/{AdaptiveWorkflowComponent-D5eEvYvr.js → AdaptiveWorkflowComponent-Bv5fIffv.js} +29 -29
- package/dist/{AddressFields-CUUbktqk.js → AddressFields-CF-UaSiA.js} +10 -10
- package/dist/{Avatar-yJfk9A6l.js → Avatar-BBJO6JWY.js} +1 -1
- package/dist/{BusinessFinancingDropin-C9bath6v.js → BusinessFinancingDropin-DxUscJnz.js} +34 -34
- package/dist/{BusinessFinancingPage-nBEgY06G.js → BusinessFinancingPage-aNSrpxqt.js} +54 -54
- package/dist/{BusinessRegistrationNumberField-BIWFuhfO.js → BusinessRegistrationNumberField-ByWbtuPm.js} +6 -6
- package/dist/{BusinessRegistrationNumberFieldGroup-CtaY468N.js → BusinessRegistrationNumberFieldGroup-BsaKq6cn.js} +12 -7
- package/dist/{BusinessTypeSelectionPage-B5uiuHWU.js → BusinessTypeSelectionPage-C8BtZX8K.js} +12 -12
- package/dist/{Button-BYafPrZH.js → Button-EhGM-oCO.js} +1 -1
- package/dist/{Checkbox-BOqyVTd6.js → Checkbox-Ec4wyyJQ.js} +3 -3
- package/dist/{ComponentGroup-I1N5kQko.js → ComponentGroup-DnbvXojQ.js} +10 -9
- package/dist/{ConstitutionalDocument-B3B30CNM.js → ConstitutionalDocument-B4rf4Lt3.js} +16 -15
- package/dist/{ContactDetails-vE_EtFh5.js → ContactDetails-CZgDXYqx.js} +5 -5
- package/dist/{ContextGuidance-BeIcp_Uc.js → ContextGuidance-C8FlwEPA.js} +3 -3
- package/dist/{CountryField-BlMV9gWn.js → CountryField-8KwVjSwx.js} +8 -6
- package/dist/{Currency-CNbYyco2.js → Currency-DyE49bKs.js} +8 -8
- package/dist/{CustomerSupport-aERZDDfD.js → CustomerSupport-CvTI3Snc.js} +34 -13
- package/dist/{DateField-9MSReT5O.js → DateField-l6H-nmfS.js} +13 -9
- package/dist/{DebugModal-0uLOHkJh.js → DebugModal-xkdniRzn.js} +154 -109
- package/dist/{DecisionMakerDetails-D4LhJukc.js → DecisionMakerDetails-CykBZZ9U.js} +13 -13
- package/dist/{DecisionMakerDetailsPage-CXphcrOX.js → DecisionMakerDetailsPage-BnjOq-R1.js} +7 -7
- package/dist/{DecisionMakers-DlMrsO16.js → DecisionMakers-B-4h5Vw_.js} +14 -14
- package/dist/{Dropzone-Bee9ZpVD.js → Dropzone-D7Z9PsqG.js} +7 -7
- package/dist/{EmailField-DwMrx3bx.js → EmailField-B-g3-z2A.js} +12 -9
- package/dist/{EmbeddedStatus-mdQsQfof.js → EmbeddedStatus-aQaNHawQ.js} +2 -2
- package/dist/{EndStateLayout-B-M90Rnh.js → EndStateLayout-CBzxX67s.js} +2 -2
- package/dist/{EntityAssociation-CxH1ghQz.js → EntityAssociation-CPRU3Nzl.js} +6 -6
- package/dist/{ErrorPanel-B3GO2ryr.js → ErrorPanel-DUI1R5Sq.js} +4 -4
- package/dist/{GlobalEntryModal-C52Qt9xX.js → GlobalEntryModal-Fszy2PMv.js} +312 -100
- package/dist/{GlobalEntryPage-CO4z6MjU.js → GlobalEntryPage-GMRCmYj1.js} +32 -32
- package/dist/Icon-D2IGgB2L.js +175 -0
- package/dist/{IdentityNumber-WlTRwtpA.js → IdentityNumber-M8NzdW3O.js} +5 -5
- package/dist/{IdentityNumberFieldGroup-CP41W2EQ.js → IdentityNumberFieldGroup-nOlB5kOW.js} +38 -16
- package/dist/{IdentityScreeningWorkflow-BPgyS5la.js → IdentityScreeningWorkflow-kYczDRbc.js} +14 -13
- package/dist/{IndividualDropin-bnWXY9qI.js → IndividualDropin-C9bKZu8q.js} +60 -39
- package/dist/{IndustryCodeFieldGroup-Cm80O2nC.js → IndustryCodeFieldGroup-ULwwyMfV.js} +8 -10
- package/dist/{InputDate-DfiGopWo.js → InputDate-fc3bdvdZ.js} +3 -3
- package/dist/{Introduction-C8wGSRe_.js → Introduction-BymKbaBE.js} +6 -6
- package/dist/{InvitedDecisionMakerComponent-CgBxKM-6.js → InvitedDecisionMakerComponent-CLBrLaip.js} +36 -36
- package/dist/{JpAddressFields-Di9jHnRp.js → JpAddressFields-Dhe_cQhr.js} +9 -9
- package/dist/{LegalCompanyNameField-O58Eimhw.js → LegalCompanyNameField-Ch1VrlJs.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-B91UAmEE.js → LegalRepresentativeDetailsPage-ZsBdOW-Y.js} +3 -3
- package/dist/{Link-DwPkGikd.js → Link-BtWj5mVH.js} +1 -1
- package/dist/{ListItem-n927geYb.js → ListItem-aX6AyCay.js} +3 -3
- package/dist/{Name-U_Xb9UkT.js → Name-r1ugrnWU.js} +4 -4
- package/dist/{NumberField-D_PQOFEJ.js → NumberField-DzM3ge0J.js} +12 -9
- package/dist/{PatriotActDisclosure-BBna10Vl.js → PatriotActDisclosure-O5TlzUXU.js} +10 -10
- package/dist/{PayoutDetailsDropin-CgeyZYMl.js → PayoutDetailsDropin-J0pS_4a9.js} +30 -28
- package/dist/{PayoutDetailsPage-D3OgqdSY.js → PayoutDetailsPage-COLJyIQ-.js} +4 -4
- package/dist/{InputText-Cis19tKa.js → RadioGroup-SDQSOsEf.js} +80 -5
- package/dist/{Review-CLhvLtBU.js → Review-PhQYqPF4.js} +6 -6
- package/dist/{RootBusinessDetailsPage-BBwSSLzI.js → RootBusinessDetailsPage-BI7ryRjt.js} +4 -4
- package/dist/{RootBusinessLinesPage-Dl-kisAJ.js → RootBusinessLinesPage-mvoHQZD_.js} +21 -21
- package/dist/{RootIndividualDetailsPage-B2mnvodl.js → RootIndividualDetailsPage-Cpm0vnKV.js} +4 -4
- package/dist/{Select-BdcPU6Uf.js → Select-DtO-GvLp.js} +5 -6
- package/dist/{SignPCIComponent-BFC0Bv22.js → SignPCIComponent-Dvmu4-hc.js} +38 -38
- package/dist/{SingpassSelection-Dq52BRgF.js → SingpassSelection-np9ZfMrZ.js} +5 -5
- package/dist/SingpassSelectionCTA-sVs1ou1t.js +71 -0
- package/dist/{SoleProprietorshipPage-D1Mx5CFg.js → SoleProprietorshipPage-CwKtif4U.js} +4 -4
- package/dist/{SourceOfFundsPage-C6clpXUI.js → SourceOfFundsPage-waLLSQf2.js} +22 -22
- package/dist/{SourceOfFundsWorkflow-D0DKSAGG.js → SourceOfFundsWorkflow-Cat3HvUT.js} +4 -4
- package/dist/{StateField-zy0ihxPy.js → StateField-DxKg7Ea-.js} +6 -6
- package/dist/{Step-It5mYFzR.js → Step-ZD1CeO4b.js} +15 -9
- package/dist/{Summary-CMSLjvCC.js → Summary-BJnh9lZz.js} +2 -2
- package/dist/{SummarySection-mwZ1YMMA.js → SummarySection-D91P7H2B.js} +4 -4
- package/dist/{Task-DDB0fdGe.js → Task-_WDQUdM0.js} +41 -31
- package/dist/{TaskGroup-DvcQUyJW.js → TaskGroup-C20Kri7W.js} +10 -6
- package/dist/{TaskListItem-BhkYWOFq.js → TaskListItem-BRTxzrek.js} +10 -10
- package/dist/{TaskStepperContextProvider-DiMf4UV6.js → TaskStepperContextProvider-C36jSigo.js} +1 -1
- package/dist/{TaskVerificationStatus-C1CllzL1.js → TaskVerificationStatus-Br7t30ur.js} +1 -1
- package/dist/{TaxInformationFieldGroup-DXn69gH_.js → TaxInformationFieldGroup-BiNe6-D4.js} +68 -111
- package/dist/{TaxReportingDropin-CI-dY8LR.js → TaxReportingDropin-DuZpEzKn.js} +14 -13
- package/dist/{TaxReportingWorkflow-AtQcoNT7.js → TaxReportingWorkflow-CMhxj0jx.js} +4 -4
- package/dist/{TermsOfServiceManagement-oeZ8jLZh.js → TermsOfServiceManagement-Cp6-BOaT.js} +38 -37
- package/dist/{TextArea-DhhZe-to.js → TextArea-DD-KMQbg.js} +4 -4
- package/dist/{TextField-BPfCDwGF.js → TextField-Bdu0Wm6_.js} +13 -10
- package/dist/{TrustDetailsPage-C87oIVJn.js → TrustDetailsPage-IGLuJZUE.js} +30 -23
- package/dist/{TrustMemberCompanyPage-B-oJW51-.js → TrustMemberCompanyPage-CNIDzOte.js} +5 -5
- package/dist/{TrustMemberIndividualPage-BI6Gp1wJ.js → TrustMemberIndividualPage-Q_IDqWsr.js} +3 -3
- package/dist/{TrustMemberRoleAndTypePage-DDW66I9C.js → TrustMemberRoleAndTypePage-B2EtfK6g.js} +20 -20
- package/dist/{TrustMembersOverview-DuCOQFjb.js → TrustMembersOverview-hDVqCUbB.js} +12 -12
- package/dist/{UboTaskItem-Xz4kCw-y.js → UboTaskItem-Bt45kkQu.js} +15 -12
- package/dist/{UnincorporatedPartnershipIndividualPage-Bj-TWGKT.js → UnincorporatedPartnershipIndividualPage-hkrLvEZw.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BeTio7I9.js → UnincorporatedPartnershipMemberCompanyPage-B8e9E2t2.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Dmnfyxfa.js → UnincorporatedPartnershipMemberRoleAndTypePage-Rey_F44n.js} +10 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-uwL3EDM0.js → UnincorporatedPartnershipMembersOverview-DPO8TjP4.js} +6 -6
- package/dist/{VerificationErrorAlert-DNY0MIqQ.js → VerificationErrorAlert-Lim_NsJO.js} +3 -3
- package/dist/{WebsiteField-GtenY14V.js → WebsiteField-BLgq-_me.js} +13 -10
- package/dist/{Workflow-CYxnhEbz.js → Workflow-CnkirZOn.js} +11 -8
- package/dist/{accountHolderUtils-C-_CgkNI.js → accountHolderUtils-D6wEBsLQ.js} +2 -2
- package/dist/adyen-business-financing.js +56 -57
- package/dist/adyen-individual-configuration.js +30 -31
- package/dist/adyen-individual-status.js +30 -31
- package/dist/adyen-invited-decision-maker.js +4 -5
- package/dist/adyen-onboarding.js +52 -178
- package/dist/adyen-terms-of-service-management.js +4 -5
- package/dist/adyen-terms-of-service-status.js +4 -5
- package/dist/adyen-transfer-instrument-configuration.js +30 -31
- package/dist/adyen-transfer-instrument-management.js +37 -38
- package/dist/adyen-verification-status.js +4 -5
- package/dist/{arrow-right-BwP9nNDE.js → arrow-right-3zKAXB3D.js} +2 -2
- package/dist/{bafinUtils-CS6lTiW2.js → bafinUtils-TT8a0y7q.js} +91 -34
- package/dist/{bag-Cnk9dcZg.js → bag-B8b-Jb8Y.js} +2 -2
- package/dist/{bank-UssyP-aG.js → bank-CQrF7P3r.js} +2 -2
- package/dist/bg-BG-CdDdNATP.js +7 -0
- package/dist/{bg-BG-CmuahJEZ.js → bg-BG-g1moSV5i.js} +8 -2
- package/dist/{bg-BG-ClMsmcda.js → bg-BG-s01xQ0IE.js} +16 -2
- package/dist/{bin--Ft4cPCj.js → bin-C4Fu9PHF.js} +2 -2
- package/dist/{capital-BbOFhTHY.js → capital-C1L-Fbue.js} +2 -2
- package/dist/{cash-stack-LTzc8hQZ.js → cash-stack-BpmsCe5x.js} +2 -2
- package/dist/{certificate-CswNcwlI.js → certificate-CEXTu9K7.js} +2 -2
- package/dist/{checkmark-DH1abKZn.js → checkmark-CuqH-tPn.js} +2 -2
- package/dist/{checkmark-circle-VWM-JsI6.js → checkmark-circle-LpY4tMPD.js} +2 -2
- package/dist/{checkmark-circle-fill-AuW2DQDT.js → checkmark-circle-fill-Cp6YFYCT.js} +2 -2
- package/dist/{checkmark-small-B6vsnsSO.js → checkmark-small-DFtNt2po.js} +2 -2
- package/dist/{chevron-down-BGAMP7CF.js → chevron-down-DhQJv6Ph.js} +2 -2
- package/dist/{chevron-left-EjFIt8Cd.js → chevron-left-DkLDfa2Z.js} +2 -2
- package/dist/{chevron-right-B5zb9mkt.js → chevron-right-BZFBWefp.js} +2 -2
- package/dist/{chevron-up-DZiittpJ.js → chevron-up-DRtWAeDd.js} +2 -2
- package/dist/{circle-CygvxRY_.js → circle-KULHbBX2.js} +2 -2
- package/dist/{circle-small-filled-PeElhgJU.js → circle-small-filled-CcOlAzmF.js} +2 -2
- package/dist/{clock-CQXEE5jK.js → clock-DEbxrDAd.js} +2 -2
- package/dist/{coins-C7syygUR.js → coins-C0-5yKat.js} +2 -2
- package/dist/{constants-DAL7V5JR.js → constants-DsYpJv_6.js} +6 -17
- package/dist/{contract-BWEAd7e-.js → contract-B91Vhtk_.js} +2 -2
- package/dist/{cross-vK6qh9R0.js → cross-DX3n6F6N.js} +2 -2
- package/dist/{cross-circle-fill-Bxj_fgQE.js → cross-circle-fill-CrWmQTCZ.js} +2 -2
- package/dist/{cross-circle-fill-small-DwUKcL9P.js → cross-circle-fill-small-BnYkSjuU.js} +2 -2
- package/dist/cs-CZ-CQoPRxwA.js +7 -0
- package/dist/{cs-CZ-DUNmRoYr.js → cs-CZ-CX7RYS3J.js} +8 -2
- package/dist/{cs-CZ-DyLd-erd.js → cs-CZ-DfKxKCsI.js} +16 -2
- package/dist/{da-DK-Dhr4p-qj.js → da-DK-BrKeONXP.js} +16 -2
- package/dist/da-DK-CEe5TTUa.js +7 -0
- package/dist/{da-DK-CWWLFjfT.js → da-DK-Cs_2K6Rd.js} +8 -2
- package/dist/{de-DE-QDT6VVq9.js → de-DE-CaVZKsmT.js} +16 -2
- package/dist/{de-DE-LLIuFER0.js → de-DE-oR2bSTbA.js} +8 -2
- package/dist/de-DE-ut0CGES0.js +7 -0
- package/dist/{document-1-BPWF8zKf.js → document-1-CEBgjg1t.js} +2 -2
- package/dist/{document-person-DVRFNq7g.js → document-person-DO7-omhK.js} +2 -2
- package/dist/{download-DfdpoHdN.js → download-CG9nbHZJ.js} +2 -2
- package/dist/{dropinUtils-DnDIfrpG.js → dropinUtils-CZuO0w1x.js} +13 -88
- package/dist/{edit-1-BgVB06zI.js → edit-1-CCyg-Tid.js} +2 -2
- package/dist/el-GR-BEWi0DRN.js +7 -0
- package/dist/{el-GR-V2cZ5gjl.js → el-GR-DHA0rkvc.js} +16 -2
- package/dist/{el-GR-D9MFsese.js → el-GR-_mz9wRt2.js} +8 -2
- package/dist/{en-US-BMMx67Za.js → en-US-B7V_rOZV.js} +4 -2
- package/dist/en-US-BLUu-I1a.js +7 -0
- package/dist/en-US-BWzZpVaj.js +7 -0
- package/dist/{error-Byk222_H.js → error-DBn4_qws.js} +3 -3
- package/dist/es-ES-3Z6u7_Cv.js +7 -0
- package/dist/{es-ES-N-uqwvEU.js → es-ES-B9_eURa2.js} +8 -2
- package/dist/{es-ES-SsReQJzQ.js → es-ES-DsWec_oM.js} +16 -2
- package/dist/es-LA-BgYaYfYK.js +7 -0
- package/dist/{es-LA-DcnCNM5a.js → es-LA-BlWaKaxj.js} +8 -2
- package/dist/{es-LA-DTXCg1tj.js → es-LA-D0FhHrwN.js} +16 -2
- package/dist/{et-EE-Bg3WOS9m.js → et-EE-Bp9-vCYs.js} +16 -2
- package/dist/et-EE-CxTHKlGm.js +7 -0
- package/dist/{et-EE-CkJhiCVw.js → et-EE-D5kWenqz.js} +8 -2
- package/dist/{external-link-BbXGAtFE.js → external-link-De5M4oQX.js} +2 -2
- package/dist/fi-FI-BE-RoRL5.js +7 -0
- package/dist/{fi-FI-D0ZPYGD3.js → fi-FI-DBuyocuK.js} +8 -2
- package/dist/{fi-FI-B1RyWVH2.js → fi-FI-DcwOxjVV.js} +16 -2
- package/dist/{useIndustryCodes-La1cU8oH.js → fieldConfig-Dh_qmAto.js} +13 -2
- package/dist/{formatDataForSummary-CjdQ8vcl.js → formatDataForSummary-oC9odBCW.js} +10 -10
- package/dist/{formatValidationError-BJn0_iPa.js → formatValidationError-BsRC83kl.js} +2 -2
- package/dist/{fr-FR-DXXrJUKC.js → fr-FR-CISoBKEC.js} +8 -2
- package/dist/fr-FR-Db4EY5iv.js +7 -0
- package/dist/{fr-FR-C3Zi7-JE.js → fr-FR-_ytHUJlx.js} +16 -2
- package/dist/{getDefaultRegistrationNumberType-CZerowIu.js → getDefaultRegistrationNumberType-t926T5FG.js} +5 -4
- package/dist/{getTrustedDecisionMakers-DByctgob.js → getTrustedDecisionMakers-CD9uLmHi.js} +2 -2
- package/dist/{getValidationError-Ci5fkC__.js → getValidationError-CXILdPw6.js} +2 -2
- package/dist/{gift-BjS6ErNG.js → gift-BSFlM5Ut.js} +2 -2
- package/dist/{graph-B8rX9eXr.js → graph-DsJyeMAQ.js} +2 -2
- package/dist/{graph-up-Dwaq7upe.js → graph-up-NgJWuRLx.js} +2 -2
- package/dist/{headquarter-CXwws_UP.js → headquarter-DfM7M5jR.js} +2 -2
- package/dist/{hotel-CD5Lv9P7.js → hotel-rSbiYsRy.js} +2 -2
- package/dist/{hr-HR-BeZ1eUy7.js → hr-HR-CXYzhrLe.js} +8 -2
- package/dist/{hr-HR-CH9yGEPn.js → hr-HR-Cb9wbqiH.js} +16 -2
- package/dist/hr-HR-qvMOxoRF.js +7 -0
- package/dist/hu-HU-BNk4CovT.js +7 -0
- package/dist/{hu-HU-BhliM1LD.js → hu-HU-HetRpHop.js} +8 -2
- package/dist/{hu-HU-DpUG3GwC.js → hu-HU-d15vxL_S.js} +16 -2
- package/dist/{image-BTE2a8ZV.js → image-CMNC56qX.js} +2 -2
- package/dist/{info-BTc0bCCM.js → info-B41z2nKP.js} +2 -2
- package/dist/{info-filled-DhYinieW.js → info-filled-uHSCed8u.js} +2 -2
- package/dist/{useId-BABqOnYH.js → invalidateRootLegalEntity-CnH38v8h.js} +4 -26
- package/dist/{it-IT-BEEsgu4Z.js → it-IT-DBatLxXf.js} +16 -2
- package/dist/{it-IT-BULBjWDc.js → it-IT-DUCIA7fo.js} +8 -2
- package/dist/it-IT-RatP9WIw.js +7 -0
- package/dist/ja-JP-BILx8dc7.js +7 -0
- package/dist/{ja-JP-BjMyxZiN.js → ja-JP-BNHFH7FM.js} +2 -2
- package/dist/{ja-JP-CcXk7Gcc.js → ja-JP-BRdSqCDF.js} +16 -2
- package/dist/{ja-JP-ByMh2iUh.js → ja-JP-CmiLlpqW.js} +8 -2
- package/dist/{location-CwE3Q0gg.js → location-BKdbMTik.js} +2 -2
- package/dist/lt-LT-CZ2yA_Km.js +7 -0
- package/dist/{lt-LT-CGgbFwbx.js → lt-LT-DbzhtTak.js} +16 -2
- package/dist/{lt-LT-CiKIZfk8.js → lt-LT-YfU6BGpp.js} +8 -2
- package/dist/lv-LV-AGwJD157.js +7 -0
- package/dist/{lv-LV-Ck_aQ4ML.js → lv-LV-B17wL3y6.js} +16 -2
- package/dist/{lv-LV-u-vJn6T3.js → lv-LV-C0PK4MKA.js} +8 -2
- package/dist/{mail-CIeugZTd.js → mail-BRy0YL8P.js} +2 -2
- package/dist/{mapAddressLocalizationToJpAddressSchema-BjTob1kY.js → mapAddressLocalizationToJpAddressSchema-D8qKuElS.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-CGxo-6kh.js → mapJpAddressSchemaToAddressLocalizations-myaH4YTR.js} +3 -3
- package/dist/{mapTransferInstrumentToPayoutAccount-CPIIEBT7.js → mapTransferInstrumentToPayoutAccount-Bet2QLgn.js} +2 -2
- package/dist/{minus-circle-filled-96DZCdcJ.js → minus-circle-filled-CLNsVzoi.js} +2 -2
- package/dist/{nl-NL-B8REgP66.js → nl-NL-CXeqs7dv.js} +8 -2
- package/dist/{nl-NL-_hbzuQ0h.js → nl-NL-CfQsmGB5.js} +16 -2
- package/dist/nl-NL-DNXcBpml.js +7 -0
- package/dist/{no-NO-B_ijkAtf.js → no-NO-B1dqTSiS.js} +16 -2
- package/dist/{no-NO-vasSCJdc.js → no-NO-C2sdKw0r.js} +8 -2
- package/dist/no-NO-vY4nfY9g.js +7 -0
- package/dist/{options-horizontal-BU9r-Xx3.js → options-horizontal-CRXmLqnK.js} +2 -2
- package/dist/{partner-C1SWc0pB.js → partner-cWS5lNgW.js} +2 -2
- package/dist/{pay-by-link-plane-xK4Zkol0.js → pay-by-link-plane-BAhi6LNR.js} +2 -2
- package/dist/{payout-zGf0LNbo.js → payout-3fsBXC47.js} +2 -2
- package/dist/{person-xTKhpEGR.js → person-Uffsnqkd.js} +2 -2
- package/dist/{pl-PL-wpXnySZL.js → pl-PL-BD5OF888.js} +8 -2
- package/dist/{pl-PL-u6DrL8IY.js → pl-PL-DSwjmRZS.js} +16 -2
- package/dist/pl-PL-KmUtZ6lq.js +7 -0
- package/dist/{plus-Cm_dWRpB.js → plus-CPdn1NyG.js} +2 -2
- package/dist/{plus-circle-filled-Df77eidx.js → plus-circle-filled-DN0LL-qV.js} +2 -2
- package/dist/{processValidationErrors-BMhgPoZ3.js → processValidationErrors-B-A5EFGo.js} +3 -3
- package/dist/{pt-BR-C5d5CGRt.js → pt-BR-DEBXxRwN.js} +8 -2
- package/dist/{pt-BR-CPS77pGy.js → pt-BR-_3W6lRmq.js} +16 -2
- package/dist/pt-BR-tQCWRhmf.js +7 -0
- package/dist/{pt-PT-B6OslB_S.js → pt-PT-BLpMJNOh.js} +8 -2
- package/dist/{pt-PT-DIKqQR6V.js → pt-PT-BUEnW3xZ.js} +16 -2
- package/dist/pt-PT-ZNVCYAr4.js +7 -0
- package/dist/{recurring-BfwVHJ2Z.js → recurring-CMo7EaV-.js} +2 -2
- package/dist/{resolveEnvironment-DMoIAkRb.js → registerEmbed-CZDAZwKX.js} +106 -46
- package/dist/{revenue-accelerate-ClN0cx7Z.js → revenue-accelerate-BkzY3gMh.js} +2 -2
- package/dist/{ro-RO-Cg1nG9ns.js → ro-RO-B4LyC5yt.js} +16 -2
- package/dist/{ro-RO-dG27cZbT.js → ro-RO-CHA0yVBc.js} +8 -2
- package/dist/ro-RO-DDdUFz6E.js +7 -0
- package/dist/{roleMetadata-Ddhdc071.js → roleMetadata-DR0IBuky.js} +3 -3
- package/dist/{save-QK2A-teG.js → save-B1AE8MD9.js} +2 -2
- package/dist/{search-DVSyT7Q7.js → search-7HzLTqcY.js} +2 -2
- package/dist/{show-BRWLIRSA.js → show-DWurwnTZ.js} +2 -2
- package/dist/{sk-SK-Woc9AmiO.js → sk-SK-CI_QfG7S.js} +8 -2
- package/dist/{sk-SK-CRfiVN3e.js → sk-SK-CLhssOsk.js} +16 -2
- package/dist/sk-SK-DdDdEYiT.js +7 -0
- package/dist/{sl-SI-C03fXovT.js → sl-SI-DtZuFHYG.js} +8 -2
- package/dist/{sl-SI-Dpr3StsS.js → sl-SI-QgSjXf-1.js} +16 -2
- package/dist/sl-SI-vefne3eU.js +7 -0
- package/dist/{solution-payments-BZZceFVV.js → solution-payments-DhmPJwd_.js} +2 -2
- package/dist/{store-DLKKLXhn.js → store-fpEz2G1Q.js} +2 -2
- package/dist/style.css +184 -169
- package/dist/styles-DYaAeu4q.js +184 -169
- package/dist/{sv-SE-D5eIbgkk.js → sv-SE-B5pp1e_g.js} +8 -2
- package/dist/{sv-SE-CH4wMrUZ.js → sv-SE-BJgBNvRa.js} +16 -2
- package/dist/sv-SE-DIDlUvzM.js +7 -0
- package/dist/tanstackValidation-BgAM9eKo.js +20 -0
- package/dist/{terminal-1-CpAyEdjO.js → terminal-1-6ggvAFrO.js} +2 -2
- package/dist/types/adaptiveWorkflow/component-registry.d.ts +6 -6
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Layout/ComponentGroup/ComponentGroup.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/DynamicForm/DynamicForm.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/Step/Step.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Task/Task.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/TaskGroup/TaskGroup.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/UboTaskItem/UboTaskItem.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Workflow/Workflow.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/CompoundFieldRenderer.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/LayoutRenderer.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/NodeRenderer.d.ts +11 -11
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/SimpleFieldRenderer.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/SpecializedStepRenderer.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/utils/deriveNodeState.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/utils/tanstackValidation.d.ts +14 -0
- package/dist/types/adaptiveWorkflow/utils/utils.d.ts +2 -3
- package/dist/types/api/adaptive/adaptiveWorkflow.types.d.ts +71 -12
- package/dist/types/api/draft/useCreateDraft.d.ts +3 -0
- package/dist/types/api/draft/useGetDraft.d.ts +5 -0
- package/dist/types/api/draft/useUpdateDraft.d.ts +3 -0
- package/dist/types/api/queryKeys.d.ts +2 -1
- package/dist/types/components/Business/hooks/useSubmitBusinessDetails.d.ts +1 -1
- package/dist/types/components/Business/hooks/useSubmitBusinessDetails.types.d.ts +21 -5
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +27 -27
- package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/PrimaryPartnerTypeField.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/types.d.ts +3 -1
- package/dist/types/components/GlobalEntry/fields/SingpassSelectionCTA/SingpassSelectionCTA.d.ts +6 -0
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +3 -2
- package/dist/types/components/GlobalEntry/rules.d.ts +1 -1
- package/dist/types/components/GlobalEntry/tasks/GlobalEntry.d.ts +2 -1
- package/dist/types/components/GlobalEntry/utils/utils.d.ts +9 -0
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -0
- package/dist/types/components/Shared/SaveForLater/SaveForLaterButton.d.ts +8 -0
- package/dist/types/components/Shared/SaveForLater/draftMetadata.d.ts +24 -0
- package/dist/types/components/Shared/SaveForLater/useSaveForLater.d.ts +32 -0
- package/dist/types/components/Shared/devex/DebugListener/DebugThemeEditor.d.ts +10 -0
- package/dist/types/components/Shared/devex/DebugListener/customTheme.d.ts +20 -8
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +11 -0
- package/dist/types/components/Shared/fields/TaxInformationField/utils.d.ts +18 -1
- package/dist/types/components/Shared/forms/Address/rules.d.ts +10 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +2 -2
- package/dist/types/context/ToggleContext/types.d.ts +16 -4
- package/dist/types/core/EmbedShell/themeMode.d.ts +12 -0
- package/dist/types/core/registerEmbed/registerEmbed.d.ts +12 -0
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +1 -1
- package/dist/types/utils/deepMerge.d.ts +1 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/{types-DVMWWwBT.js → types-CP3D_hFv.js} +1 -1
- package/dist/{unincorporatedPartnership-BlCV-3wE.js → unincorporatedPartnership-B5pKn0gl.js} +2 -2
- package/dist/{upload-BI7LKlDm.js → upload-DF1deAl3.js} +2 -2
- package/dist/{useBusinessDetailsData-BxZz8mCR.js → useBusinessDetailsData-CPzTltvn.js} +205 -152
- package/dist/{useCanSeeIntroduction-YrB2tt75.js → useCanSeeIntroduction-Cnuh14Cr.js} +3 -3
- package/dist/{useForm-CZom7Yxn.js → useForm-B2fQ78Se.js} +3 -3
- package/dist/{useHideTaskStepper-Betx9MGy.js → useHideTaskStepper-DvHXw3zd.js} +1 -1
- package/dist/{Modal-B97EslpV.js → useId-AzWxLa17.js} +27 -5
- package/dist/{useNavigate-B4xCEXOR.js → useNavigate-Bx6F2ghI.js} +33 -33
- package/dist/{useSalesChannels-BdElf-so.js → useSalesChannels-Db_8bYBY.js} +2 -2
- package/dist/useSaveForLater-BQio20Zg.js +200 -0
- package/dist/{useTaskLandedEvent-BgNoZ4-b.js → useTaskLandedEvent-DdeWh_nV.js} +2 -2
- package/dist/{useTrustMembers-BYQGHjLG.js → useTrustMembers-CqeR9IVN.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-BwU0ti6r.js → useUnincorporatedPartnershipMembers-WOJzF2NV.js} +2 -2
- package/dist/{utils-DXbf54mh.js → utils-8yLC-qJv.js} +2 -2
- package/dist/{utils-41qf7uNl.js → utils-AnusXLKP.js} +2 -2
- package/dist/{utils-CZSmyjZ8.js → utils-BfA0Rrku.js} +3 -4
- package/dist/{validate-B0DXyOfY.js → validate-Bcw1m17m.js} +4 -4
- package/dist/{validate-DfWuIef_.js → validate-Bf1SBTiG.js} +3 -3
- package/dist/{validate-BGVKp19L.js → validate-CxL6_omc.js} +2 -2
- package/dist/{validate-BZZPRWu-.js → validate-DSR31SH8.js} +9 -9
- package/dist/{validateExtractionResult-D3AuQo5-.js → validateExtractionResult-BD0Vu-XF.js} +2 -2
- package/dist/{warning-circle-fill-ClFvGo5m.js → warning-circle-fill-tyigXMGG.js} +2 -2
- package/dist/{warning-diamond-filled-CWyKR65i.js → warning-diamond-filled-uHVDhfcX.js} +2 -2
- package/dist/{webinar-DWX7Z5Wz.js → webinar-C70iLMbf.js} +2 -2
- package/package.json +5 -5
- package/dist/Icon-jVvV1zXc.js +0 -175
- package/dist/bg-BG-Cdrkwxmc.js +0 -7
- package/dist/cs-CZ-DpiH1UkS.js +0 -7
- package/dist/da-DK-B-BJLcqw.js +0 -7
- package/dist/de-DE-BxTGFyOs.js +0 -7
- package/dist/el-GR-IQwyd9ws.js +0 -7
- package/dist/en-US-8KLaHQaT.js +0 -7
- package/dist/en-US-DPr5RN3e.js +0 -7
- package/dist/es-ES-Cg2IadcX.js +0 -7
- package/dist/es-LA-DvMpG4FP.js +0 -7
- package/dist/et-EE-eGeytyQh.js +0 -7
- package/dist/fi-FI-C02wZfgW.js +0 -7
- package/dist/fr-FR-CE7k9H5_.js +0 -7
- package/dist/hr-HR-B12DcJ3l.js +0 -7
- package/dist/hu-HU-cosbDuos.js +0 -7
- package/dist/it-IT-CiKoOxzk.js +0 -7
- package/dist/ja-JP-D7PEVMmT.js +0 -7
- package/dist/lt-LT-C2oxTakB.js +0 -7
- package/dist/lv-LV-C_KVkpid.js +0 -7
- package/dist/nl-NL-CwNBy0Ku.js +0 -7
- package/dist/no-NO-VqkeNhzB.js +0 -7
- package/dist/pl-PL-Bp218jDD.js +0 -7
- package/dist/pt-BR-CPbFPNwq.js +0 -7
- package/dist/pt-PT-Bz39smeX.js +0 -7
- package/dist/ro-RO-jNItoBZk.js +0 -7
- package/dist/sk-SK-CsSqXqf_.js +0 -7
- package/dist/sl-SI-PRqWis0E.js +0 -7
- package/dist/sv-SE-Dv-rMOdB.js +0 -7
- package/dist/types/adaptiveWorkflow/components/types.d.ts +0 -50
|
@@ -1,14 +1,14 @@
|
|
|
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] = "1dc2003b-cc1c-4f5a-9bc4-9d4dd64cbb79", e._sentryDebugIdIdentifier = "sentry-dbid-1dc2003b-cc1c-4f5a-9bc4-9d4dd64cbb79");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
6
|
+
import { A as useAllowedCountries, N as Header, P as _rolldown_dynamic_import_helper_default, T as Alert, _ as isPartOfTrustFromLegalEntity, ct as isEmpty, vt as useAccountHolder } from "./registerEmbed-CZDAZwKX.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
9
9
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
10
|
-
import { t as Button } from "./Button-
|
|
11
|
-
import { s as useApiContext } from "./http-C8rt2BZk.js";
|
|
10
|
+
import { t as Button } from "./Button-EhGM-oCO.js";
|
|
11
|
+
import { r as httpPost, s as useApiContext } from "./http-C8rt2BZk.js";
|
|
12
12
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
13
13
|
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
14
14
|
import { s as keysOf } from "./genUtils-nphCwt1A.js";
|
|
@@ -17,30 +17,172 @@ import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
|
17
17
|
import { y as reverseMapping } from "./processCapabilities-B75YIdXZ.js";
|
|
18
18
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
19
19
|
import { f as hasSolePropInLegalEntity, s as getOwnEntityAssociations } from "./entityAssociationUtil-BlfcBl3i.js";
|
|
20
|
-
import { i as useToggleContext, r as useDebouncedCallback } from "./Checkbox-
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { t as ListItem } from "./ListItem-
|
|
20
|
+
import { i as useToggleContext, r as useDebouncedCallback } from "./Checkbox-Ec4wyyJQ.js";
|
|
21
|
+
import { a as useAnalyticsContext } from "./useId-AzWxLa17.js";
|
|
22
|
+
import { r as InputText } from "./RadioGroup-SDQSOsEf.js";
|
|
23
|
+
import { i as getTrustedFieldsProvider, t as ListItem } from "./ListItem-aX6AyCay.js";
|
|
24
24
|
import { t as getFormSlice } from "./getFormSlice-CxtXJ0-P.js";
|
|
25
25
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
26
|
-
import {
|
|
27
|
-
import { a as resolveFieldMetadata, c as getPropsFromConfigurations, r as createFormRules } from "./unincorporatedPartnership-
|
|
28
|
-
import { o as Field, p as LoaderWrapper } from "./Select-
|
|
29
|
-
import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-
|
|
30
|
-
import { a as CountryOfGoverningLawField, c as useCompanyTypeExamples, d as companySearchQueryOptions, f as useCompanySearch, h as useClearCompanyData, i as COUNTRY_OF_GOVERNING_LAW_FIELD, l as useCompanySelection, m as useStoredStateOrProvince, n as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, o as useLegalCompanyNameField, p as trackPerformance, r as isNormalizedStringMatch, t as CountryOfGoverningLawFieldValidation, u as verifyTinQueryOptions } from "./validate-
|
|
31
|
-
import { d as COUNTRIES_WITH_STATES_DATASET, h as useUpdateLegalEntity, n as StateField, p as isJapanLocalizationEnabled, r as stateFieldMetadata, t as STATE_FIELD } from "./StateField-
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { a as getValidCompanyTypesForRegistrationNumberType, l as registrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-
|
|
26
|
+
import { n as useToastContext } from "./invalidateRootLegalEntity-CnH38v8h.js";
|
|
27
|
+
import { a as resolveFieldMetadata, c as getPropsFromConfigurations, r as createFormRules } from "./unincorporatedPartnership-B5pKn0gl.js";
|
|
28
|
+
import { o as Field, p as LoaderWrapper } from "./Select-DtO-GvLp.js";
|
|
29
|
+
import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-BfA0Rrku.js";
|
|
30
|
+
import { a as CountryOfGoverningLawField, c as useCompanyTypeExamples, d as companySearchQueryOptions, f as useCompanySearch, h as useClearCompanyData, i as COUNTRY_OF_GOVERNING_LAW_FIELD, l as useCompanySelection, m as useStoredStateOrProvince, n as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, o as useLegalCompanyNameField, p as trackPerformance, r as isNormalizedStringMatch, t as CountryOfGoverningLawFieldValidation, u as verifyTinQueryOptions } from "./validate-DSR31SH8.js";
|
|
31
|
+
import { d as COUNTRIES_WITH_STATES_DATASET, h as useUpdateLegalEntity, n as StateField, p as isJapanLocalizationEnabled, r as stateFieldMetadata, t as STATE_FIELD } from "./StateField-DxKg7Ea-.js";
|
|
32
|
+
import { H as FormContextProvider, I as useMultiForm, V as summaryStep, c as CountryField, d as isBusinessSelectionLegalArrangementError, g as createFormUtils, o as List, s as COUNTRY_FIELD, t as addValidityToForms, v as useFormContext, y as FormFlow, z as useFormComposer } from "./dropinUtils-CZuO0w1x.js";
|
|
33
|
+
import { A as REGISTRATION_NUMBER_EXEMPTION_RULES, B as getValidCompanyTypesForTaxIdNumberType, C as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, D as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, F as mapJapaneseLegalNamesToLocalization, H as TileGroup, I as mapLocalizationToJapaneseLegalNames, M as isRegistrationExemptionAllowed, N as isRegistrationNumberAbsentStateV4Scenario, T as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, _ as taxInformationDefaultFieldMetadata, b as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, c as DataConflictsModal, g as taxInformationDefaultFieldConfig, h as getTaxInformationPlaceholderText, j as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, k as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, l as TAX_INFORMATION_FIELD, u as TaxInformationField, w as COUNTRIES_USING_COMPANY_SEARCH } from "./bafinUtils-TT8a0y7q.js";
|
|
34
|
+
import { a as getValidCompanyTypesForRegistrationNumberType, l as registrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-t926T5FG.js";
|
|
35
35
|
import { a as TRUST_COUNTRIES, i as SOLE_PROP_COUNTRIES, n as INDIVIDUALS_WHO_TRADE_COUNTRIES, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./legalArrangementUtils-CHlmmcB8.js";
|
|
36
|
-
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-
|
|
37
|
-
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
36
|
+
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-Ch1VrlJs.js";
|
|
37
|
+
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-ByWbtuPm.js";
|
|
38
|
+
import { Suspense, lazy } from "preact/compat";
|
|
39
|
+
import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useReducer, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
40
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
40
41
|
import { createModel, signal, useModel, useSignal } from "@preact/signals";
|
|
41
|
-
import { useQueryClient } from "@tanstack/preact-query";
|
|
42
|
-
import { createContext } from "preact";
|
|
42
|
+
import { useQuery, useQueryClient } from "@tanstack/preact-query";
|
|
43
|
+
import { createContext as createContext$1 } from "preact";
|
|
43
44
|
import { Show } from "@preact/signals/utils";
|
|
45
|
+
//#region src/api/openId/useOpenIdAuthorizationLink.ts
|
|
46
|
+
async function convertToSingpassLinkResponse(openIdInitiateResponse) {
|
|
47
|
+
return { item: {
|
|
48
|
+
authUrl: (await Promise.resolve(openIdInitiateResponse)).authUrl,
|
|
49
|
+
success: true
|
|
50
|
+
} };
|
|
51
|
+
}
|
|
52
|
+
var useOpenIdAuthorizationLink = (options) => {
|
|
53
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
54
|
+
return useQuery({
|
|
55
|
+
queryKey: ["openIdAuthorizationLink"],
|
|
56
|
+
queryFn: () => getOpenIdAuthorizationLink(rootLegalEntityId.value, baseUrl.value),
|
|
57
|
+
...options
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
var getOpenIdAuthorizationLink = async (legalEntityId, baseUrl) => {
|
|
61
|
+
return convertToSingpassLinkResponse(httpPost({
|
|
62
|
+
baseUrl,
|
|
63
|
+
path: `/legalEntities/${legalEntityId}/openid/initiate`
|
|
64
|
+
}));
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/hooks/singpass/useSingpassMyInfoLogin.ts
|
|
68
|
+
var SingpassMyInfoLoginActionTypes = {
|
|
69
|
+
LOADING: "LOADING",
|
|
70
|
+
SUCCESS: "SUCCESS",
|
|
71
|
+
FAILURE: "FAILURE",
|
|
72
|
+
RESET: "RESET"
|
|
73
|
+
};
|
|
74
|
+
var defaultSingpassState = {
|
|
75
|
+
isLoading: false,
|
|
76
|
+
isSuccess: false
|
|
77
|
+
};
|
|
78
|
+
var singpassReducer = (state, action) => {
|
|
79
|
+
switch (action.type) {
|
|
80
|
+
case SingpassMyInfoLoginActionTypes.LOADING: return {
|
|
81
|
+
...state,
|
|
82
|
+
isLoading: true
|
|
83
|
+
};
|
|
84
|
+
case SingpassMyInfoLoginActionTypes.SUCCESS: return {
|
|
85
|
+
isLoading: false,
|
|
86
|
+
isSuccess: true
|
|
87
|
+
};
|
|
88
|
+
case SingpassMyInfoLoginActionTypes.FAILURE: return {
|
|
89
|
+
isLoading: false,
|
|
90
|
+
isSuccess: false,
|
|
91
|
+
errorMessage: action.errorMessage
|
|
92
|
+
};
|
|
93
|
+
case SingpassMyInfoLoginActionTypes.RESET: return defaultSingpassState;
|
|
94
|
+
default: return state;
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
var useSingpassMyInfoLogin = ({ legalEntity, accountHolder }) => {
|
|
98
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
99
|
+
const isSingpassMyInfoEnabled = isFeatureEnabled("SingpassMyInfoEnabled");
|
|
100
|
+
const defaultState = {
|
|
101
|
+
isLoading: false,
|
|
102
|
+
isSuccess: getTrustedFieldsProvider(legalEntity) === "singpass"
|
|
103
|
+
};
|
|
104
|
+
const userEvents = useAnalyticsContext();
|
|
105
|
+
const [state, dispatch] = useReducer(singpassReducer, defaultState);
|
|
106
|
+
const { refetch: fetchOpenIdAuthorizationLink } = useOpenIdAuthorizationLink({ enabled: false });
|
|
107
|
+
const singpassTabRef = useRef$1(null);
|
|
108
|
+
const isEligibleForSingpass = useMemo$1(() => {
|
|
109
|
+
if (!legalEntity) return false;
|
|
110
|
+
if (getLegalEntityCountry(legalEntity) !== CountryCodes.Singapore) return false;
|
|
111
|
+
if (accountHolder) {
|
|
112
|
+
if (accountHolder === "myName") return isSingpassMyInfoEnabled;
|
|
113
|
+
return accountHolder === "theCompanyIWorkFor";
|
|
114
|
+
}
|
|
115
|
+
const legalEntityType = legalEntity.type;
|
|
116
|
+
const isPartOfTrust = isPartOfTrustFromLegalEntity(legalEntity);
|
|
117
|
+
const isVanillaOrganization = legalEntityType === "organization" && !isPartOfTrust;
|
|
118
|
+
const hasSoleProprietor = hasSolePropInLegalEntity(legalEntity);
|
|
119
|
+
return isVanillaOrganization || legalEntityType === "individual" && !hasSoleProprietor && isSingpassMyInfoEnabled;
|
|
120
|
+
}, [
|
|
121
|
+
legalEntity,
|
|
122
|
+
accountHolder,
|
|
123
|
+
isSingpassMyInfoEnabled
|
|
124
|
+
]);
|
|
125
|
+
const handleInitiateSingpassMyInfoLogin = async () => {
|
|
126
|
+
const singpassWindow = window.open("", "_blank");
|
|
127
|
+
if (!singpassWindow) throw new Error("Failed to open Singpass window");
|
|
128
|
+
singpassTabRef.current = singpassWindow;
|
|
129
|
+
dispatch({
|
|
130
|
+
...state,
|
|
131
|
+
type: SingpassMyInfoLoginActionTypes.LOADING
|
|
132
|
+
});
|
|
133
|
+
try {
|
|
134
|
+
const { data } = await fetchOpenIdAuthorizationLink();
|
|
135
|
+
const authUrl = data?.item.authUrl;
|
|
136
|
+
if (!authUrl) throw new Error("OpenId authentication URL was not returned");
|
|
137
|
+
singpassWindow.location.href = authUrl;
|
|
138
|
+
singpassWindow.focus();
|
|
139
|
+
userEvents.addPageEvent("Success", {
|
|
140
|
+
actionType: "navigate",
|
|
141
|
+
label: "singpassVerification"
|
|
142
|
+
});
|
|
143
|
+
} catch (error) {
|
|
144
|
+
singpassWindow.close();
|
|
145
|
+
singpassTabRef.current = null;
|
|
146
|
+
throw error;
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
const handleSingpassMyInfoLoginSuccess = () => {
|
|
150
|
+
userEvents.addPageEvent("Success", {
|
|
151
|
+
actionType: "verify",
|
|
152
|
+
label: "singpassVerification"
|
|
153
|
+
});
|
|
154
|
+
dispatch({
|
|
155
|
+
...state,
|
|
156
|
+
type: SingpassMyInfoLoginActionTypes.SUCCESS
|
|
157
|
+
});
|
|
158
|
+
};
|
|
159
|
+
const handleSingpassMyInfoLoginFailure = (errorMessage) => {
|
|
160
|
+
userEvents.addPageEvent("Encountered error", {
|
|
161
|
+
actionType: "navigate",
|
|
162
|
+
label: "singpassVerification"
|
|
163
|
+
});
|
|
164
|
+
dispatch({
|
|
165
|
+
...state,
|
|
166
|
+
errorMessage,
|
|
167
|
+
type: SingpassMyInfoLoginActionTypes.FAILURE
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
const handleSingpassMyInfoLoginReset = () => {
|
|
171
|
+
dispatch({
|
|
172
|
+
...state,
|
|
173
|
+
type: SingpassMyInfoLoginActionTypes.RESET
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
return {
|
|
177
|
+
isEligibleForSingpass,
|
|
178
|
+
state,
|
|
179
|
+
handleInitiateSingpassMyInfoLogin,
|
|
180
|
+
handleSingpassMyInfoLoginSuccess,
|
|
181
|
+
handleSingpassMyInfoLoginFailure,
|
|
182
|
+
handleSingpassMyInfoLoginReset
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
//#endregion
|
|
44
186
|
//#region src/components/GlobalEntry/globalEntryStore.ts
|
|
45
187
|
var showGlobalEntryModal = signal(false);
|
|
46
188
|
//#endregion
|
|
@@ -149,7 +291,7 @@ function confirmBusinessAnalytics(userEvents, idx) {
|
|
|
149
291
|
//#region src/components/GlobalEntry/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.tsx
|
|
150
292
|
function BusinessInformation({ fetching, selectedBusiness }) {
|
|
151
293
|
const { t } = useTranslation(["common", "business"]);
|
|
152
|
-
const cardDetails = useMemo(() => {
|
|
294
|
+
const cardDetails = useMemo$1(() => {
|
|
153
295
|
if (!selectedBusiness) return [];
|
|
154
296
|
const address = selectedBusiness.registeredAddress ?? selectedBusiness.principalPlaceOfBusinessAddress;
|
|
155
297
|
const addressDetails = address && typeof address !== "string" && "fullAddress" in address ? address.fullAddress : void 0;
|
|
@@ -228,7 +370,7 @@ function BusinessSelection({ id, country }) {
|
|
|
228
370
|
const queryClient = useQueryClient();
|
|
229
371
|
const userEvents = useAnalyticsContext();
|
|
230
372
|
const logger = createLogger();
|
|
231
|
-
const companySearchStateModel = useContext(CompanySearchStateContext);
|
|
373
|
+
const companySearchStateModel = useContext$1(CompanySearchStateContext);
|
|
232
374
|
const { data, valid, errors, requiredFields, optionalFields, trustedFields, fieldProblems, handleChange: handleChangeFor } = getFormSlice(form, "businessSelection");
|
|
233
375
|
const { data: companySearchResponse, isLoading: searching } = useCompanySearch({
|
|
234
376
|
name: companySearchStateModel.companySearchName.value ?? "",
|
|
@@ -254,7 +396,7 @@ function BusinessSelection({ id, country }) {
|
|
|
254
396
|
* could perhaps auto-select the result, without caching, we'd have another spinner & wait time for
|
|
255
397
|
* the user. Better to force a manual re-selection to work around our rough implementation details.
|
|
256
398
|
*/
|
|
257
|
-
const isInitializedRef = useRef(false);
|
|
399
|
+
const isInitializedRef = useRef$1(false);
|
|
258
400
|
if (!isInitializedRef.current) {
|
|
259
401
|
if (data?.selectedBusinessId) {
|
|
260
402
|
handleChangeFor("selectedBusinessId", "blur")("");
|
|
@@ -431,7 +573,10 @@ var determineAccountHolder = (data) => {
|
|
|
431
573
|
const filedPaperwork = getFiledPaperwork(data);
|
|
432
574
|
if (isSingleMemberLLC(data)) return "theCompanyIWorkFor";
|
|
433
575
|
if (isTrustQuestionAsked(data) && data.registrationInformation.isTrust === "yes") return "aTrust";
|
|
434
|
-
if (entitySetup === "justMe")
|
|
576
|
+
if (entitySetup === "justMe") {
|
|
577
|
+
if (data.registrationInformation?.hasDoingBusinessAs === "yes") return "mySoleProprietorName";
|
|
578
|
+
return filedPaperwork === "yes" ? "mySoleProprietorName" : "myName";
|
|
579
|
+
}
|
|
435
580
|
if (entitySetup === "partOfABusiness") {
|
|
436
581
|
if (isUnincorporatedPartnership(data)) return "anUnincorporatedPartnership";
|
|
437
582
|
if (isTrust(data)) return "aTrust";
|
|
@@ -443,6 +588,18 @@ var determineEntityAssociations = (data, accountHolder, legalEntity) => {
|
|
|
443
588
|
if (!ownAssociations || ownAssociations.length === 0) return;
|
|
444
589
|
return accountHolder !== determineAccountHolder(data) ? [] : void 0;
|
|
445
590
|
};
|
|
591
|
+
var completeWithSingpass = async ({ rootLegalEntity, updateLegalEntity, onComplete, handleInitiateSingpassMyInfoLogin }) => {
|
|
592
|
+
if (rootLegalEntity.type !== "organization") await updateLegalEntity({
|
|
593
|
+
id: rootLegalEntity.id,
|
|
594
|
+
type: "organization"
|
|
595
|
+
});
|
|
596
|
+
if (rootLegalEntity.organization?.registeredAddress?.country !== CountryCodes.Singapore) await updateLegalEntity({
|
|
597
|
+
id: rootLegalEntity.id,
|
|
598
|
+
organization: { registeredAddress: { country: CountryCodes.Singapore } }
|
|
599
|
+
});
|
|
600
|
+
onComplete("theCompanyIWorkFor");
|
|
601
|
+
await handleInitiateSingpassMyInfoLogin();
|
|
602
|
+
};
|
|
446
603
|
//#endregion
|
|
447
604
|
//#region src/components/GlobalEntry/forms/CompanyStructure/CompanyStructure.tsx
|
|
448
605
|
var COMPANY_STRUCTURE_FIELDS = ["organizationType"];
|
|
@@ -598,7 +755,7 @@ var PrimaryPartnerTypeField_module_default = {
|
|
|
598
755
|
//#endregion
|
|
599
756
|
//#region src/components/GlobalEntry/fields/PrimaryPartnerTypeField/PrimaryPartnerTypeField.tsx
|
|
600
757
|
var PRIMARY_PARTNER_TYPE_FIELD = ["primaryPartnerType"];
|
|
601
|
-
var PrimaryPartnerTypeField = ({ data, valid, errors, handleChangeFor }) => {
|
|
758
|
+
var PrimaryPartnerTypeField = ({ data, valid, errors, isTrust, handleChangeFor }) => {
|
|
602
759
|
const { t: globalEntryT } = useTranslation("globalEntry");
|
|
603
760
|
const partnerTypeOptions = [{
|
|
604
761
|
value: "individual",
|
|
@@ -609,13 +766,23 @@ var PrimaryPartnerTypeField = ({ data, valid, errors, handleChangeFor }) => {
|
|
|
609
766
|
label: globalEntryT(($) => $["aBusinessEntity"]),
|
|
610
767
|
iconName: "company"
|
|
611
768
|
}];
|
|
769
|
+
const { label, formatGuidance } = {
|
|
770
|
+
trust: {
|
|
771
|
+
label: globalEntryT(($) => $["whatTypeOfEntityIsTheFirstPrimaryTrustee"]),
|
|
772
|
+
formatGuidance: globalEntryT(($) => $["wellStartByCollectingInformationAboutOneTrustee"])
|
|
773
|
+
},
|
|
774
|
+
unincorporatedPartnership: {
|
|
775
|
+
label: globalEntryT(($) => $["whatTypeOfEntityIsTheFirstPrimaryPartner"]),
|
|
776
|
+
formatGuidance: globalEntryT(($) => $["wellStartByCollectingInformationAboutOnePartner"])
|
|
777
|
+
}
|
|
778
|
+
}[isTrust ? "trust" : "unincorporatedPartnership"];
|
|
612
779
|
return /* @__PURE__ */ jsx(Field, {
|
|
613
780
|
el: "fieldset",
|
|
614
781
|
name: "primaryPartnerType",
|
|
615
782
|
errorMessage: errors.primaryPartnerType,
|
|
616
783
|
isValid: valid?.primaryPartnerType,
|
|
617
|
-
label
|
|
618
|
-
formatGuidance
|
|
784
|
+
label,
|
|
785
|
+
formatGuidance,
|
|
619
786
|
children: () => /* @__PURE__ */ jsx(List, {
|
|
620
787
|
dividers: false,
|
|
621
788
|
padding: "large",
|
|
@@ -658,7 +825,8 @@ var PrimaryPartner = ({ id }) => {
|
|
|
658
825
|
data: { primaryPartnerType: data?.primaryPartnerType },
|
|
659
826
|
valid: { primaryPartnerType: valid?.primaryPartnerType },
|
|
660
827
|
errors: { primaryPartnerType: formUtils.getErrorMessage("primaryPartnerType", errors, fieldProblems) },
|
|
661
|
-
handleChangeFor
|
|
828
|
+
handleChangeFor,
|
|
829
|
+
isTrust: form.data.registrationInformation?.isTrust === "yes"
|
|
662
830
|
})]
|
|
663
831
|
});
|
|
664
832
|
};
|
|
@@ -688,19 +856,19 @@ function Questionnaire({ name, label, helper, selected, tiles, isValid, errorMes
|
|
|
688
856
|
}
|
|
689
857
|
//#endregion
|
|
690
858
|
//#region src/components/GlobalEntry/fields/DbaQuestionnaire/DbaQuestionnaire.tsx
|
|
691
|
-
var DBA_QUESTIONNAIRE_FIELD = ["
|
|
859
|
+
var DBA_QUESTIONNAIRE_FIELD = ["hasDoingBusinessAs"];
|
|
692
860
|
function DbaQuestionnaire({ data, valid, errors, handleChangeFor }) {
|
|
693
861
|
const { t: commonT } = useTranslation("common");
|
|
694
862
|
const { t: globalEntryT } = useTranslation("globalEntry");
|
|
695
863
|
return /* @__PURE__ */ jsx(Questionnaire, {
|
|
696
|
-
name: "
|
|
864
|
+
name: "hasDoingBusinessAs",
|
|
697
865
|
label: globalEntryT(($) => $["doYouUseABusinessNameThatsDifferentFromYourLegalName"]),
|
|
698
|
-
helper: globalEntryT(($) => $["
|
|
699
|
-
selected: data.
|
|
700
|
-
isValid: valid.
|
|
701
|
-
errorMessage: errors.
|
|
866
|
+
helper: globalEntryT(($) => $["thisIsAlsoCalledATradingNameOperatingNameOrDoingBusinessAsName"]),
|
|
867
|
+
selected: data.hasDoingBusinessAs,
|
|
868
|
+
isValid: valid.hasDoingBusinessAs,
|
|
869
|
+
errorMessage: errors.hasDoingBusinessAs,
|
|
702
870
|
isHorizontal: true,
|
|
703
|
-
onChange: handleChangeFor("
|
|
871
|
+
onChange: handleChangeFor("hasDoingBusinessAs"),
|
|
704
872
|
tiles: [{
|
|
705
873
|
label: commonT(($) => $["yes"]),
|
|
706
874
|
value: "yes"
|
|
@@ -856,7 +1024,7 @@ var UnincorporatedOrganizationTypeField = ({ data, valid, errors, handleChangeFo
|
|
|
856
1024
|
value: "unincorporatedAssociation",
|
|
857
1025
|
icon: "trust"
|
|
858
1026
|
}];
|
|
859
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Questionnaire, {
|
|
1027
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Questionnaire, {
|
|
860
1028
|
name: "unincorporatedOrganizationType",
|
|
861
1029
|
label: t(($) => $["whichBestDescribesYourOrganization"]),
|
|
862
1030
|
errorMessage: errors.unincorporatedOrganizationType,
|
|
@@ -876,6 +1044,7 @@ var UnincorporatedOrganizationTypeField = ({ data, valid, errors, handleChangeFo
|
|
|
876
1044
|
};
|
|
877
1045
|
//#endregion
|
|
878
1046
|
//#region src/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.tsx
|
|
1047
|
+
var LazySingpassSelectionCTA = lazy(async () => (await import("./SingpassSelectionCTA-sVs1ou1t.js")).SingpassSelectionCTA);
|
|
879
1048
|
var REGISTRATION_INFORMATION_FIELDS = [
|
|
880
1049
|
...PAPERWORK_QUESTIONNAIRE_FIELD,
|
|
881
1050
|
...DBA_QUESTIONNAIRE_FIELD,
|
|
@@ -890,7 +1059,7 @@ var REGISTRATION_INFORMATION_FIELDS = [
|
|
|
890
1059
|
...BUSINESS_REGISTRATION_NUMBER_FIELD,
|
|
891
1060
|
...TAX_INFORMATION_FIELD
|
|
892
1061
|
];
|
|
893
|
-
var RegistrationInformation = ({ id, shouldValidate, legalEntity, country }) => {
|
|
1062
|
+
var RegistrationInformation = ({ id, shouldValidate, legalEntity, country, onSingpassClick }) => {
|
|
894
1063
|
const { form } = useFormContext();
|
|
895
1064
|
const { t: commonT } = useTranslation("common");
|
|
896
1065
|
const { t: globalEntryT } = useTranslation("globalEntry");
|
|
@@ -914,6 +1083,7 @@ var RegistrationInformation = ({ id, shouldValidate, legalEntity, country }) =>
|
|
|
914
1083
|
t: businessT
|
|
915
1084
|
});
|
|
916
1085
|
const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
|
|
1086
|
+
const showSingpassCta = country === CountryCodes.Singapore && form.data.entityInformation.entitySetup === "partOfABusiness" && data?.filedPaperwork === "yes";
|
|
917
1087
|
/**
|
|
918
1088
|
* State is asked for in business search but may not be updated if user does not
|
|
919
1089
|
* find results or opts for manual flow.
|
|
@@ -941,9 +1111,9 @@ var RegistrationInformation = ({ id, shouldValidate, legalEntity, country }) =>
|
|
|
941
1111
|
handleChangeFor
|
|
942
1112
|
}),
|
|
943
1113
|
showField(DBA_QUESTIONNAIRE_FIELD) && /* @__PURE__ */ jsx(DbaQuestionnaire, {
|
|
944
|
-
data: {
|
|
945
|
-
valid: {
|
|
946
|
-
errors: {
|
|
1114
|
+
data: { hasDoingBusinessAs: data.hasDoingBusinessAs },
|
|
1115
|
+
valid: { hasDoingBusinessAs: valid.hasDoingBusinessAs },
|
|
1116
|
+
errors: { hasDoingBusinessAs: formUtils.getErrorMessage("hasDoingBusinessAs", errors, fieldProblems) },
|
|
947
1117
|
handleChangeFor
|
|
948
1118
|
}),
|
|
949
1119
|
showField(TRUST_QUESTIONNAIRE_FIELD) && /* @__PURE__ */ jsx(TrustQuestionnaire, {
|
|
@@ -952,6 +1122,10 @@ var RegistrationInformation = ({ id, shouldValidate, legalEntity, country }) =>
|
|
|
952
1122
|
errors: { isTrust: formUtils.getErrorMessage("isTrust", errors, fieldProblems) },
|
|
953
1123
|
handleChangeFor
|
|
954
1124
|
}),
|
|
1125
|
+
showSingpassCta && /* @__PURE__ */ jsx(Suspense, {
|
|
1126
|
+
fallback: null,
|
|
1127
|
+
children: /* @__PURE__ */ jsx(LazySingpassSelectionCTA, { onClick: onSingpassClick })
|
|
1128
|
+
}),
|
|
955
1129
|
showField(LLC_QUESTIONNAIRE_FIELD) && /* @__PURE__ */ jsx(LlcQuestionnaire, {
|
|
956
1130
|
data: { isLimitedLiabilityCorporation: data.isLimitedLiabilityCorporation },
|
|
957
1131
|
valid: { isLimitedLiabilityCorporation: valid.isLimitedLiabilityCorporation },
|
|
@@ -1239,7 +1413,7 @@ function usePrefetchCompanySearch({ country, multiForm, activeFormId, isUsingCom
|
|
|
1239
1413
|
* generic, but to avoid putting the cart before the horse, it'll intentionally
|
|
1240
1414
|
* remain as-is.
|
|
1241
1415
|
*/
|
|
1242
|
-
const prefetchCompanySearchResults = useCallback(async () => {
|
|
1416
|
+
const prefetchCompanySearchResults = useCallback$1(async () => {
|
|
1243
1417
|
const root = getRootElement(), activeElementName = (root.activeElement && root.activeElement.getAttribute("name")) ?? "";
|
|
1244
1418
|
const fieldNames = getRelatedFields(country);
|
|
1245
1419
|
let allRelatedFieldsAreValid = true, noRelatedFieldsAreFocused = true;
|
|
@@ -1273,7 +1447,7 @@ function usePrefetchCompanySearch({ country, multiForm, activeFormId, isUsingCom
|
|
|
1273
1447
|
* Re-fires prefetch when fields lose focus, with extra filtering within
|
|
1274
1448
|
* the handler to determine whether the search should continue after being debounced.
|
|
1275
1449
|
*/
|
|
1276
|
-
useEffect(() => {
|
|
1450
|
+
useEffect$1(() => {
|
|
1277
1451
|
const prefetch = () => {
|
|
1278
1452
|
if (activeFormId !== "registrationInformation" || !isUsingCompanySearch) return;
|
|
1279
1453
|
debouncedCompanySearchPrefetch();
|
|
@@ -1381,7 +1555,7 @@ function RegistrationNumberMismatchModal({ companySearchStateModel, country, reg
|
|
|
1381
1555
|
//#region src/components/GlobalEntry/modals/TinMismatchModal.tsx
|
|
1382
1556
|
function TinMismatchModal({ onCancel, onConfirm }) {
|
|
1383
1557
|
const { t } = useTranslation(["common", "business"]);
|
|
1384
|
-
const modalDescriptionKey = typeof useContext(CompanySearchStateContext).selectedCompany.value === "undefined" ? "theEinDidntMatchLegalBusinessName" : "itLooksLikeThisBusinessUsesADifferentEIN";
|
|
1558
|
+
const modalDescriptionKey = typeof useContext$1(CompanySearchStateContext).selectedCompany.value === "undefined" ? "theEinDidntMatchLegalBusinessName" : "itLooksLikeThisBusinessUsesADifferentEIN";
|
|
1385
1559
|
return /* @__PURE__ */ jsx(Confirm, {
|
|
1386
1560
|
title: t(($) => $["employerIdentificationNumberDoesntMatch"], { ns: "business" }),
|
|
1387
1561
|
description: t(($) => $[modalDescriptionKey], { ns: "business" }),
|
|
@@ -1403,8 +1577,8 @@ var globalEntryFieldRuleConfigurations = {
|
|
|
1403
1577
|
countryOfGoverningLaw: { rule: "countryOfGoverningLawRequired" },
|
|
1404
1578
|
selectedBusinessId: { rule: "businessSelectionRequired" },
|
|
1405
1579
|
filedPaperwork: { rule: "filedPaperworkRequired" },
|
|
1406
|
-
doingBusinessAs: { rule: "doingBusinessAsRequired" },
|
|
1407
1580
|
isTrust: { rule: "isTrustRequired" },
|
|
1581
|
+
hasDoingBusinessAs: { rule: "hasDoingBusinessAsRequired" },
|
|
1408
1582
|
isLimitedLiabilityCorporation: { rule: "isLimitedLiabilityCorporationRequired" },
|
|
1409
1583
|
unincorporatedOrganizationType: { rule: "unincorporatedOrganizationTypeRequired" },
|
|
1410
1584
|
legalCompanyName: { rule: "legalCompanyNameRequired" },
|
|
@@ -1443,7 +1617,7 @@ var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => fa
|
|
|
1443
1617
|
if (isFeatureEnabled("EnableCountryOfGoverningLawForUKCompanies") && COUNTRY_OF_GOVERNING_LAW_POSSIBLE.includes(country) && isOrganization && hasAnsweredPaperworkQuestion && canCollectOrganizationDetails) return "REQUIRED";
|
|
1444
1618
|
},
|
|
1445
1619
|
filedPaperworkRequired: () => isPaperworkQuestionAsked(data) ? "REQUIRED" : void 0,
|
|
1446
|
-
|
|
1620
|
+
hasDoingBusinessAsRequired: () => data.entityInformation.entitySetup === "justMe" && filedPaperwork === "no" && INDIVIDUALS_WHO_TRADE_COUNTRIES.includes(country) ? "REQUIRED" : void 0,
|
|
1447
1621
|
isTrustRequired: () => isTrustQuestionRequired ? "REQUIRED" : void 0,
|
|
1448
1622
|
requireStateOrProvinceForCompanySearch: () => {
|
|
1449
1623
|
if (isUsingCompanySearch(data) && COUNTRIES_WITH_STATES_DATASET.includes(country)) return "REQUIRED";
|
|
@@ -1703,7 +1877,7 @@ var globalEntryValidationRules = ({ data, legalEntity, isFeatureEnabled = () =>
|
|
|
1703
1877
|
modes: ["blur", "input"]
|
|
1704
1878
|
} },
|
|
1705
1879
|
registrationInformation: {
|
|
1706
|
-
|
|
1880
|
+
hasDoingBusinessAs: {
|
|
1707
1881
|
validate: (value) => !!value,
|
|
1708
1882
|
modes: ["blur", "input"]
|
|
1709
1883
|
},
|
|
@@ -1732,14 +1906,15 @@ var globalEntryValidationRules = ({ data, legalEntity, isFeatureEnabled = () =>
|
|
|
1732
1906
|
};
|
|
1733
1907
|
//#endregion
|
|
1734
1908
|
//#region src/components/GlobalEntry/tasks/GlobalEntry.tsx
|
|
1735
|
-
var GlobalEntry = ({ activeForm, legalEntity, shouldValidate, country }) => {
|
|
1909
|
+
var GlobalEntry = ({ activeForm, legalEntity, shouldValidate, country, onSingpassClick }) => {
|
|
1736
1910
|
switch (activeForm.formId) {
|
|
1737
1911
|
case globalEntryForms.entityInformation.formId: return /* @__PURE__ */ jsx(EntityInformation, { id: activeForm.formId });
|
|
1738
1912
|
case globalEntryForms.registrationInformation.formId: return /* @__PURE__ */ jsx(RegistrationInformation, {
|
|
1739
1913
|
id: activeForm.formId,
|
|
1740
1914
|
legalEntity,
|
|
1741
1915
|
shouldValidate,
|
|
1742
|
-
country
|
|
1916
|
+
country,
|
|
1917
|
+
onSingpassClick
|
|
1743
1918
|
});
|
|
1744
1919
|
case globalEntryForms.businessSelection.formId: return /* @__PURE__ */ jsx(BusinessSelection, {
|
|
1745
1920
|
id: activeForm.formId,
|
|
@@ -1756,7 +1931,7 @@ var GlobalEntry = ({ activeForm, legalEntity, shouldValidate, country }) => {
|
|
|
1756
1931
|
};
|
|
1757
1932
|
//#endregion
|
|
1758
1933
|
//#region src/components/GlobalEntry/tasks/GlobalEntryModal.tsx
|
|
1759
|
-
var CompanySearchStateContext = createContext({});
|
|
1934
|
+
var CompanySearchStateContext = createContext$1({});
|
|
1760
1935
|
var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
1761
1936
|
const { i18n, t } = useTranslation(["common", "globalEntry"]);
|
|
1762
1937
|
const { isFeatureEnabled } = useToggleContext();
|
|
@@ -1766,14 +1941,20 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
1766
1941
|
const { accountHolder: accountHolderMaybe } = useAccountHolder();
|
|
1767
1942
|
const userEvents = useAnalyticsContext();
|
|
1768
1943
|
const { mutateAsync: clearCompanyData } = useClearCompanyData();
|
|
1769
|
-
const [derivedProps, setDerivedProps] = useState();
|
|
1944
|
+
const [derivedProps, setDerivedProps] = useState$1();
|
|
1770
1945
|
const accountHolder = accountHolderMaybe ?? (rootLegalEntity.type === "individual" ? "myName" : "theCompanyIWorkFor");
|
|
1771
1946
|
const companySearchStateModel = useModel(() => new CompanySearchStateModel(userEvents));
|
|
1947
|
+
const { handleInitiateSingpassMyInfoLogin, handleSingpassMyInfoLoginFailure } = useSingpassMyInfoLogin({
|
|
1948
|
+
legalEntity: rootLegalEntity,
|
|
1949
|
+
accountHolder: "theCompanyIWorkFor"
|
|
1950
|
+
});
|
|
1772
1951
|
const tinMismatchModalOpen = useSignal(false);
|
|
1773
1952
|
const legalArrangementModalOpen = useSignal(false);
|
|
1774
1953
|
const registrationNumberMismatchModalOpen = useSignal(false);
|
|
1775
1954
|
const skipBusinessSelection = useSignal(true);
|
|
1776
|
-
const [searchStatus, setSearchStatus] = useState("success");
|
|
1955
|
+
const [searchStatus, setSearchStatus] = useState$1("success");
|
|
1956
|
+
const initialRootLegalEntity = useRef$1(rootLegalEntity).current;
|
|
1957
|
+
const initialAccountHolder = useRef$1(accountHolder).current;
|
|
1777
1958
|
/**
|
|
1778
1959
|
* Distinct from the model's `verificationMatched`, which updates the moment the API answers. This
|
|
1779
1960
|
* only records the outcome once the user navigates forward, and it is deliberately inert: unlike
|
|
@@ -1784,32 +1965,32 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
1784
1965
|
addResourceBundles(i18n, [{
|
|
1785
1966
|
ns: "globalEntry",
|
|
1786
1967
|
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* #__PURE__ */ Object.assign({
|
|
1787
|
-
"../language/bg-BG.json": () => import("./bg-BG-
|
|
1788
|
-
"../language/cs-CZ.json": () => import("./cs-CZ-
|
|
1789
|
-
"../language/da-DK.json": () => import("./da-DK-
|
|
1790
|
-
"../language/de-DE.json": () => import("./de-DE-
|
|
1791
|
-
"../language/el-GR.json": () => import("./el-GR-
|
|
1792
|
-
"../language/en-US.json": () => import("./en-US-
|
|
1793
|
-
"../language/es-ES.json": () => import("./es-ES-
|
|
1794
|
-
"../language/es-LA.json": () => import("./es-LA-
|
|
1795
|
-
"../language/et-EE.json": () => import("./et-EE-
|
|
1796
|
-
"../language/fi-FI.json": () => import("./fi-FI-
|
|
1797
|
-
"../language/fr-FR.json": () => import("./fr-FR-
|
|
1798
|
-
"../language/hr-HR.json": () => import("./hr-HR-
|
|
1799
|
-
"../language/hu-HU.json": () => import("./hu-HU-
|
|
1800
|
-
"../language/it-IT.json": () => import("./it-IT-
|
|
1801
|
-
"../language/ja-JP.json": () => import("./ja-JP-
|
|
1802
|
-
"../language/lt-LT.json": () => import("./lt-LT-
|
|
1803
|
-
"../language/lv-LV.json": () => import("./lv-LV-
|
|
1804
|
-
"../language/nl-NL.json": () => import("./nl-NL-
|
|
1805
|
-
"../language/no-NO.json": () => import("./no-NO-
|
|
1806
|
-
"../language/pl-PL.json": () => import("./pl-PL-
|
|
1807
|
-
"../language/pt-BR.json": () => import("./pt-BR-
|
|
1808
|
-
"../language/pt-PT.json": () => import("./pt-PT-
|
|
1809
|
-
"../language/ro-RO.json": () => import("./ro-RO-
|
|
1810
|
-
"../language/sk-SK.json": () => import("./sk-SK-
|
|
1811
|
-
"../language/sl-SI.json": () => import("./sl-SI-
|
|
1812
|
-
"../language/sv-SE.json": () => import("./sv-SE-
|
|
1968
|
+
"../language/bg-BG.json": () => import("./bg-BG-s01xQ0IE.js"),
|
|
1969
|
+
"../language/cs-CZ.json": () => import("./cs-CZ-DfKxKCsI.js"),
|
|
1970
|
+
"../language/da-DK.json": () => import("./da-DK-BrKeONXP.js"),
|
|
1971
|
+
"../language/de-DE.json": () => import("./de-DE-CaVZKsmT.js"),
|
|
1972
|
+
"../language/el-GR.json": () => import("./el-GR-DHA0rkvc.js"),
|
|
1973
|
+
"../language/en-US.json": () => import("./en-US-B7V_rOZV.js"),
|
|
1974
|
+
"../language/es-ES.json": () => import("./es-ES-DsWec_oM.js"),
|
|
1975
|
+
"../language/es-LA.json": () => import("./es-LA-D0FhHrwN.js"),
|
|
1976
|
+
"../language/et-EE.json": () => import("./et-EE-Bp9-vCYs.js"),
|
|
1977
|
+
"../language/fi-FI.json": () => import("./fi-FI-DcwOxjVV.js"),
|
|
1978
|
+
"../language/fr-FR.json": () => import("./fr-FR-_ytHUJlx.js"),
|
|
1979
|
+
"../language/hr-HR.json": () => import("./hr-HR-Cb9wbqiH.js"),
|
|
1980
|
+
"../language/hu-HU.json": () => import("./hu-HU-d15vxL_S.js"),
|
|
1981
|
+
"../language/it-IT.json": () => import("./it-IT-DBatLxXf.js"),
|
|
1982
|
+
"../language/ja-JP.json": () => import("./ja-JP-BRdSqCDF.js"),
|
|
1983
|
+
"../language/lt-LT.json": () => import("./lt-LT-DbzhtTak.js"),
|
|
1984
|
+
"../language/lv-LV.json": () => import("./lv-LV-B17wL3y6.js"),
|
|
1985
|
+
"../language/nl-NL.json": () => import("./nl-NL-CfQsmGB5.js"),
|
|
1986
|
+
"../language/no-NO.json": () => import("./no-NO-B1dqTSiS.js"),
|
|
1987
|
+
"../language/pl-PL.json": () => import("./pl-PL-DSwjmRZS.js"),
|
|
1988
|
+
"../language/pt-BR.json": () => import("./pt-BR-_3W6lRmq.js"),
|
|
1989
|
+
"../language/pt-PT.json": () => import("./pt-PT-BUEnW3xZ.js"),
|
|
1990
|
+
"../language/ro-RO.json": () => import("./ro-RO-B4LyC5yt.js"),
|
|
1991
|
+
"../language/sk-SK.json": () => import("./sk-SK-CLhssOsk.js"),
|
|
1992
|
+
"../language/sl-SI.json": () => import("./sl-SI-QgSjXf-1.js"),
|
|
1993
|
+
"../language/sv-SE.json": () => import("./sv-SE-BJgBNvRa.js")
|
|
1813
1994
|
}), `../language/${lang}.json`, 3)
|
|
1814
1995
|
}]);
|
|
1815
1996
|
addResourceBundles(i18n, [{
|
|
@@ -1820,7 +2001,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
1820
2001
|
"../../Business/language/da-DK.json": () => import("./da-DK-BzBfkSME.js"),
|
|
1821
2002
|
"../../Business/language/de-DE.json": () => import("./de-DE-C9cUCFOi.js"),
|
|
1822
2003
|
"../../Business/language/el-GR.json": () => import("./el-GR-aelq5Q0a.js"),
|
|
1823
|
-
"../../Business/language/en-US.json": () => import("./en-US-
|
|
2004
|
+
"../../Business/language/en-US.json": () => import("./en-US-BLUu-I1a.js"),
|
|
1824
2005
|
"../../Business/language/es-ES.json": () => import("./es-ES-DhkTbihW.js"),
|
|
1825
2006
|
"../../Business/language/es-LA.json": () => import("./es-LA-JRuDva0n.js"),
|
|
1826
2007
|
"../../Business/language/et-EE.json": () => import("./et-EE-D8TSvkoE.js"),
|
|
@@ -1846,20 +2027,20 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
1846
2027
|
const handleClose = () => {
|
|
1847
2028
|
showGlobalEntryModal.value = false;
|
|
1848
2029
|
};
|
|
1849
|
-
const buildFieldValidations = useCallback((data) => globalEntryValidationRules({
|
|
2030
|
+
const buildFieldValidations = useCallback$1((data) => globalEntryValidationRules({
|
|
1850
2031
|
data,
|
|
1851
2032
|
legalEntity: rootLegalEntity,
|
|
1852
2033
|
isFeatureEnabled
|
|
1853
2034
|
}), [isFeatureEnabled, rootLegalEntity]);
|
|
1854
2035
|
const { storedStateOrProvince } = useStoredStateOrProvince({ legalEntityId: rootLegalEntity.id });
|
|
1855
|
-
const initialStoredStateOrProvince = useRef(storedStateOrProvince).current;
|
|
1856
|
-
const defaultData = useMemo(() => {
|
|
1857
|
-
const mappedData = mapLegalEntityToGlobalEntrySchema(
|
|
2036
|
+
const initialStoredStateOrProvince = useRef$1(storedStateOrProvince).current;
|
|
2037
|
+
const defaultData = useMemo$1(() => {
|
|
2038
|
+
const mappedData = mapLegalEntityToGlobalEntrySchema(initialRootLegalEntity, initialAccountHolder);
|
|
1858
2039
|
mappedData.registrationInformation.stateOrProvince = mappedData.registrationInformation.stateOrProvince ?? initialStoredStateOrProvince;
|
|
1859
2040
|
return mappedData;
|
|
1860
2041
|
}, [
|
|
1861
|
-
|
|
1862
|
-
|
|
2042
|
+
initialRootLegalEntity,
|
|
2043
|
+
initialAccountHolder,
|
|
1863
2044
|
initialStoredStateOrProvince
|
|
1864
2045
|
]);
|
|
1865
2046
|
const multiForm = useMultiForm({
|
|
@@ -1871,7 +2052,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
1871
2052
|
});
|
|
1872
2053
|
const { isValid: formValidity, data, triggerValidation } = multiForm;
|
|
1873
2054
|
const country = data.entityInformation?.country ?? getLegalEntityCountry(rootLegalEntity);
|
|
1874
|
-
const rules = useMemo(() => globalEntryCustomRules({
|
|
2055
|
+
const rules = useMemo$1(() => globalEntryCustomRules({
|
|
1875
2056
|
data,
|
|
1876
2057
|
isFeatureEnabled,
|
|
1877
2058
|
isSettingEnabled,
|
|
@@ -1887,7 +2068,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
1887
2068
|
data,
|
|
1888
2069
|
rootLegalEntity
|
|
1889
2070
|
]);
|
|
1890
|
-
useEffect(() => {
|
|
2071
|
+
useEffect$1(() => {
|
|
1891
2072
|
const props = getPropsFromConfigurations({
|
|
1892
2073
|
scenarioConfiguration: globalEntryFieldRuleConfigurations,
|
|
1893
2074
|
forms: globalEntryForms,
|
|
@@ -1904,7 +2085,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
1904
2085
|
* The company structures that are still valid given the registration number type and tax ID
|
|
1905
2086
|
* number type currently in the form.
|
|
1906
2087
|
*/
|
|
1907
|
-
const availableCompanyStructures = useMemo(() => getAvailableCompanyStructures({
|
|
2088
|
+
const availableCompanyStructures = useMemo$1(() => getAvailableCompanyStructures({
|
|
1908
2089
|
country,
|
|
1909
2090
|
registrationNumberType: data.registrationInformation?.registrationNumberType,
|
|
1910
2091
|
registrationNumberExempt: data.registrationInformation?.exemptedFromRegistrationNumber,
|
|
@@ -1924,10 +2105,10 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
1924
2105
|
* This is used to automatically select the company structure when the user has already provided
|
|
1925
2106
|
* the necessary information to uniquely identify the company structure
|
|
1926
2107
|
*/
|
|
1927
|
-
const inferredCompanyStructure = useMemo(() => {
|
|
2108
|
+
const inferredCompanyStructure = useMemo$1(() => {
|
|
1928
2109
|
return availableCompanyStructures.length === 1 ? availableCompanyStructures[0] : void 0;
|
|
1929
2110
|
}, [availableCompanyStructures]);
|
|
1930
|
-
const getRequiredForms = useCallback((options) => buildRequiredForms({
|
|
2111
|
+
const getRequiredForms = useCallback$1((options) => buildRequiredForms({
|
|
1931
2112
|
config: {
|
|
1932
2113
|
forms: globalEntryForms,
|
|
1933
2114
|
requiredFields: derivedProps?.requiredFields,
|
|
@@ -1947,7 +2128,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
1947
2128
|
inferredCompanyStructure,
|
|
1948
2129
|
rootLegalEntity
|
|
1949
2130
|
]);
|
|
1950
|
-
const forms = useMemo(() => getRequiredForms({
|
|
2131
|
+
const forms = useMemo$1(() => getRequiredForms({
|
|
1951
2132
|
skipBusinessSelection: skipBusinessSelection.value,
|
|
1952
2133
|
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm || !!inferredCompanyStructure
|
|
1953
2134
|
}), [
|
|
@@ -1957,13 +2138,12 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
1957
2138
|
inferredCompanyStructure
|
|
1958
2139
|
]);
|
|
1959
2140
|
const { mutateAsync: updateLegalEntity, isPending: isUpdatingLegalEntity } = useUpdateLegalEntity();
|
|
1960
|
-
const isLoading = isUpdatingLegalEntity;
|
|
1961
2141
|
/**
|
|
1962
2142
|
* Form writes only reach the state on the next render so this prevents
|
|
1963
2143
|
* outdated data from being submitted. In Global Entry, we submit the form
|
|
1964
2144
|
* on navigation so the re-render hasn't happened yet.
|
|
1965
2145
|
*/
|
|
1966
|
-
const pendingSubmitData = useRef();
|
|
2146
|
+
const pendingSubmitData = useRef$1();
|
|
1967
2147
|
const confirmSelection = (options) => {
|
|
1968
2148
|
pendingSubmitData.current = companySearchStateModel.confirmCompany(multiForm, country, options);
|
|
1969
2149
|
};
|
|
@@ -2013,7 +2193,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
2013
2193
|
registrationNumberMismatchModalOpen,
|
|
2014
2194
|
confirmSelection
|
|
2015
2195
|
});
|
|
2016
|
-
const [companyStructure, setCompanyStructure] = useState(data.companyStructure?.organizationType);
|
|
2196
|
+
const [companyStructure, setCompanyStructure] = useState$1(data.companyStructure?.organizationType);
|
|
2017
2197
|
if (inferredCompanyStructure && companyStructure !== inferredCompanyStructure && !companySearchStateModel.verifiedBusiness.value?.legalForm && activeForm?.formId === globalEntryForms.registrationInformation.formId) {
|
|
2018
2198
|
setCompanyStructure(inferredCompanyStructure);
|
|
2019
2199
|
multiForm.handleChangeFor("companyStructure", "organizationType")(inferredCompanyStructure);
|
|
@@ -2021,17 +2201,48 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
2021
2201
|
/**
|
|
2022
2202
|
* Current country value must be kept in sync with what is selected in entityInformation form
|
|
2023
2203
|
*/
|
|
2024
|
-
const [prevCountry, setPrevCountry] = useState(data.entityInformation?.country);
|
|
2204
|
+
const [prevCountry, setPrevCountry] = useState$1(data.entityInformation?.country);
|
|
2025
2205
|
if (data.entityInformation?.country && prevCountry !== data.entityInformation.country) {
|
|
2026
2206
|
setPrevCountry(data.entityInformation.country);
|
|
2027
2207
|
companySearchStateModel.resetCompanySearchData();
|
|
2028
2208
|
multiForm.handleChangeFor("companyStructure", "organizationType")(void 0);
|
|
2029
2209
|
}
|
|
2210
|
+
const handleCompleteWithSingpass = async () => {
|
|
2211
|
+
try {
|
|
2212
|
+
await completeWithSingpass({
|
|
2213
|
+
rootLegalEntity,
|
|
2214
|
+
updateLegalEntity,
|
|
2215
|
+
onComplete,
|
|
2216
|
+
handleInitiateSingpassMyInfoLogin
|
|
2217
|
+
});
|
|
2218
|
+
showGlobalEntryModal.value = false;
|
|
2219
|
+
} catch (err) {
|
|
2220
|
+
logger.error(err);
|
|
2221
|
+
handleSingpassMyInfoLoginFailure("weCouldntConnectToMyinfoBusiness");
|
|
2222
|
+
showToast({
|
|
2223
|
+
label: t(($) => $["weCouldntConnectToMyinfoBusiness"], { ns: "common" }),
|
|
2224
|
+
variant: "error"
|
|
2225
|
+
});
|
|
2226
|
+
}
|
|
2227
|
+
};
|
|
2030
2228
|
const overrideNextClick = async () => {
|
|
2031
2229
|
if (!activeForm.isValid) return handleNextClick();
|
|
2032
2230
|
if (!isUsingCompanySearch(data)) return handleNextClick();
|
|
2033
2231
|
switch (activeForm.formId) {
|
|
2034
2232
|
case globalEntryForms.registrationInformation.formId: {
|
|
2233
|
+
if (rootLegalEntity.type === "individual") try {
|
|
2234
|
+
await updateLegalEntity({
|
|
2235
|
+
id: rootLegalEntity.id,
|
|
2236
|
+
type: "organization"
|
|
2237
|
+
});
|
|
2238
|
+
} catch (err) {
|
|
2239
|
+
logger.error(err);
|
|
2240
|
+
showToast({
|
|
2241
|
+
label: t(($) => $["failedToUpdateDetails"], { ns: "common" }),
|
|
2242
|
+
variant: "error"
|
|
2243
|
+
});
|
|
2244
|
+
return;
|
|
2245
|
+
}
|
|
2035
2246
|
const currentForms = await attemptBusinessSearch();
|
|
2036
2247
|
if (currentForms === null) return;
|
|
2037
2248
|
return handleNextClick(currentForms);
|
|
@@ -2120,7 +2331,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
2120
2331
|
forms,
|
|
2121
2332
|
gotoFormByFormIndex,
|
|
2122
2333
|
gotoFormByFormId,
|
|
2123
|
-
loadingStatus:
|
|
2334
|
+
loadingStatus: isUpdatingLegalEntity ? "loading" : searchStatus,
|
|
2124
2335
|
currentStep: steps.current,
|
|
2125
2336
|
totalSteps: steps.total,
|
|
2126
2337
|
isGlobalEntry: true,
|
|
@@ -2132,7 +2343,8 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
2132
2343
|
activeForm,
|
|
2133
2344
|
shouldValidate,
|
|
2134
2345
|
legalEntity: rootLegalEntity,
|
|
2135
|
-
country
|
|
2346
|
+
country,
|
|
2347
|
+
onSingpassClick: handleCompleteWithSingpass
|
|
2136
2348
|
}),
|
|
2137
2349
|
/* @__PURE__ */ jsx(Show, {
|
|
2138
2350
|
when: tinMismatchModalOpen,
|
|
@@ -2163,4 +2375,4 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
2163
2375
|
});
|
|
2164
2376
|
};
|
|
2165
2377
|
//#endregion
|
|
2166
|
-
export { showGlobalEntryModal as n, GlobalEntryModal as t };
|
|
2378
|
+
export { showGlobalEntryModal as n, useSingpassMyInfoLogin as r, GlobalEntryModal as t };
|