@zeniai/web-cockpit-ui 1.13.91-qa → 1.13.92-dev
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/assets/{ACHDetailsPage---jqahtW-3ChA06hG.js → ACHDetailsPage-DSxVnTLA-DXaPhpBb.js} +1 -1
- package/dist/assets/{AIPerformancePage-CqtdCyg8-RpmSDjyt.js → AIPerformancePage-DpJmdFIS-DdYjoAnf.js} +36 -36
- package/dist/assets/{AccountInfoPage-Bj1CYa-r-Bf6OcXSe.js → AccountInfoPage-UxE6vaxM-CTCDVeHj.js} +2 -2
- package/dist/assets/AccountInfoPageContent-B8luWP8D-BvO-xoVa.js +149 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-B4UwcNN9-BdC_DNXN.js → AccountReconDetailsDrawerPage-CRuSLa04-C6RSAAh5.js} +18 -18
- package/dist/assets/AccountRow-DVnBiB7_-BUb357r1.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-DJRAw09x-jCY6ZTFZ.js → AccountsPromoCardStack-oPvi6hmo-Cb1NCYmc.js} +26 -26
- package/dist/assets/{AddAddressForCardDrawer-C16ksTIf-DroppcyJ.js → AddAddressForCardDrawer-Bl8FShie-B0Exe6lR.js} +1 -1
- package/dist/assets/{AddToWalletPage-CDP1oPrv-DF_xHuRT.js → AddToWalletPage-BykgUTfa-Cb4sl07y.js} +22 -22
- package/dist/assets/{AgingReportsPage-BE4plS7V-KR8f9X9w.js → AgingReportsPage-CtpuS77Y-CRkQ2tHo.js} +7 -7
- package/dist/assets/{AllUserItems-hoI2_gnV-BRUaQKD-.js → AllUserItems-zqRosy03-ampV7sMY.js} +8 -8
- package/dist/assets/{ApAgingDetailPage-Lxprtz8c-C3QhiLas.js → ApAgingDetailPage-B4dHhJE1-DX7CQmyB.js} +2 -2
- package/dist/assets/{AppBasePage-DNOkJf4q-GkfK51Rp.js → AppBasePage-ntAldChd-Da_5AGnO.js} +1 -1
- package/dist/assets/{AppDrawerContent-DG2Jr298-D_tKdJ-G.js → AppDrawerContent-LRG0OW3a-BgVe2pK0.js} +11 -11
- package/dist/assets/{ApprovalRulesSettingsPage-DnKXln0A-BsRvHEn-.js → ApprovalRulesSettingsPage-CFCbNOcB-CE0uOkBi.js} +1 -1
- package/dist/assets/ArAgingChart-BmfMCB8_-Bg3m3QlY.js +24 -0
- package/dist/assets/{ArAgingDetailPage-Djsocm6M-B3yMvCJ-.js → ArAgingDetailPage-C2lhYsGV-BhHfiwwM.js} +3 -3
- package/dist/assets/{AttachmentView-C3AzH7cN-ChG7fA-Q.js → AttachmentView-CQlsMYN3-DG4dPEyp.js} +8 -8
- package/dist/assets/{BankAccountSection-6zosSfPV-CXSmri0o.js → BankAccountSection-D1tQzNSO-piXQT6-V.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-CWeN3me0-D_hO0nk_.js → BankAccountWarningSection-Dj_S6brX-2DYBSMY8.js} +8 -8
- package/dist/assets/{BankConnectionsSettingsPage-C6e0pgD4-BnnprEFS.js → BankConnectionsSettingsPage-UQAJXShM-C8thl88u.js} +22 -22
- package/dist/assets/{BillDetailPage-DyIokQbf-Bquph9Bo.js → BillDetailPage-BOy1MkMT-CTieBS_0.js} +8 -8
- package/dist/assets/{BillPayApprovalRuleDetailPage-BOhQfwEj-ChYSixEI.js → BillPayApprovalRuleDetailPage-C7c04fyW-D_3vBsw2.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-CSua3b4v-Bkyuhwb2.js → BillPayApprovalRulesPage-D7vn36vA-CcaFc_r3.js} +7 -7
- package/dist/assets/{BillPayPromoPage-CtenNypw-C_9psZOE.js → BillPayPromoPage-VCQ0v0Ko-_chCPS2P.js} +2 -2
- package/dist/assets/{BillPaySetUpPage-CAnvQ_-Q-ZA-_YZf8.js → BillPaySetUpPage-MD1PbTMB-DAVLcuLh.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CjSAhEFl-Rl0hR0Ca.js → BillingSettingsPage-B0U9RKLC-CSDiDt5p.js} +4 -4
- package/dist/assets/{BillsBulkReviewDrawerPage-B62rj2kN-FqD3XoAg.js → BillsBulkReviewDrawerPage-CStmvhgL-CRjbCjmC.js} +1 -1
- package/dist/assets/{BoxItem-Cqmd_7h4-CfyEKAO2.js → BoxItem-D3v5T6bP-DCh7smhZ.js} +1 -1
- package/dist/assets/BusinessVerificationPage-BIba2-zs-BbKHm-00.js +140 -0
- package/dist/assets/{CardNumberSubText-DszoXtgg-DKJDSfnY.js → CardNumberSubText-DoWj5vAy-CUdY7eYA.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DAwARNZD-CV9kThkz.js → CashbackDetailPage-CPz0J2HA-mlCo9BqT.js} +9 -9
- package/dist/assets/{ChargeCardDetailPage-BzbR-Z63-C7jHWQlr.js → ChargeCardDetailPage-DxE5h1S5-_Ar3evhS.js} +29 -29
- package/dist/assets/{ChargeCardListPage-DSOp7sFg-B8XxYsoa.js → ChargeCardListPage-fXayrykw-DfSXe2y4.js} +10 -10
- package/dist/assets/{ChargeCardListTable-BE4it4le-DwwBt-Xo.js → ChargeCardListTable-C-WxFg6W-ZTAQI24j.js} +103 -103
- package/dist/assets/ChargeCardPromoPage-CiwWzvym-CQS1Kn9Z.js +175 -0
- package/dist/assets/{ChargeCardSetupPage-Dm_N5oDM-6aNXYRf_.js → ChargeCardSetupPage-ByLkUH5I-CAqoYnxa.js} +2 -2
- package/dist/assets/{ChargeCardStatementsPage-Dhqs5CF4-cL5q3hW_.js → ChargeCardStatementsPage-Dsv5AXrZ-DLsXp3ds.js} +2 -2
- package/dist/assets/{ChargeCardUtils-oF0M6Gmc-Ct7KyDRh.js → ChargeCardUtils-CVC43_6w-DTPKdzGf.js} +1 -1
- package/dist/assets/{ChaseOverlay-DPgGIuyV-ByssAih3.js → ChaseOverlay-CHWBgNa9-BGn2Q_2a.js} +7 -7
- package/dist/assets/CheckDepositDrawerPage-DySu5_BH-zAFSAP0i.js +206 -0
- package/dist/assets/{CollapsableReportTable-DMr2UDgH-DvDLHOqv.js → CollapsableReportTable-ZObwzBbY-BfOvomCm.js} +29 -29
- package/dist/assets/{CompanyOfficerDetailsSection-B_cIues7-BSlTpP3h.js → CompanyOfficerDetailsSection-DVG0lvX--Dfy9v0Wy.js} +19 -19
- package/dist/assets/{CompanyPassportCard-CHF83hfN-CNSf7SFP.js → CompanyPassportCard-DBZRV0g0-BA5CzU7Q.js} +2 -2
- package/dist/assets/{CompanyPassportPage-C5W3KcDY-DnIzBLtQ.js → CompanyPassportPage-BoaNol0L-DnxxOJfB.js} +17 -17
- package/dist/assets/CompleteProfile-nkRKLJTF-D06O2tPg.js +36 -0
- package/dist/assets/{ConfettiBurst-DVT9EpwF-DYg9k9jR.js → ConfettiBurst-BYoGZ66F-DY-7GLNq.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DVbYQaWM-BaA_UFlu.js → CreateOrEditVendorPage-C1Yx8t4M-BzNtZfYl.js} +10 -10
- package/dist/assets/{CreditCardPaymentDrawerPage-D2qT7vsE-Y_YoHZps.js → CreditCardPaymentDrawerPage-DlnR16jr-Cp09nlhb.js} +10 -10
- package/dist/assets/{CreditCardPaymentPlgSection-7cmMRTQm-CU7sMyU4.js → CreditCardPaymentPlgSection-CZ2vyMiF-CAkrDs6q.js} +9 -9
- package/dist/assets/{CurrencySelectField-ClhIJFVw-CLhsAy_e.js → CurrencySelectField-vH1oB0K8-B5AHvAUJ.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-D-Ihd-H0-B396iW9k.js → CustomerOnboardingActivationPage-rpZmgNZo-CwICpwxp.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DEDQrgtq-a_kK-7zZ.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CUxNOK4z-CwH5vMj5.js → CustomerOnboardingDetailPageSkeleton-CFIeHxxw-SHM_Ui8B.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-B9ts3Tla-BXpcGaV-.js → CustomerOnboardingNoStepsPage-BueMiyFl-46-BK9fl.js} +7 -7
- package/dist/assets/CustomerOnboardingPage-CmHXtB9v-BJU0moTi.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-iSJtAhvu-Cw-odrmh.js → CustomerOnboardingProductSuitePage-I9pftf_j-DOK-Bf5L.js} +5 -5
- package/dist/assets/{Dashboard-SKeHZ5QY-B2GVjrgN.js → Dashboard-DcfkiicK-D3UJUCYb.js} +38 -38
- package/dist/assets/DashboardReportPage-B7J8yZR6-B09J8zzA.js +349 -0
- package/dist/assets/{DepositAccTransactionItem-DJNio75H-CDFyveYc.js → DepositAccTransactionItem-CP_2AL3M-BdaPu6PV.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-DTIjlF2l-BZTuE-wM.js → DepositAccTransactionListPage-C4o1y1mJ-KyIyoawm.js} +4 -4
- package/dist/assets/{DocumentSecurityBanner-CVNWDvAg-CiXmlvlx.js → DocumentSecurityBanner-C5w0d_S8-DMiwYsyK.js} +1 -1
- package/dist/assets/DomesticWireDetailsPage-t0Ebo518-CZtrAoDV.js +21 -0
- package/dist/assets/{DownloadOverlay-BLj0xso_-DXtmQxsj.js → DownloadOverlay-CPW9ebxu-B84vZ8Vf.js} +1 -1
- package/dist/assets/{DrawerPage-CEetzMMx-CcNtwUX_.js → DrawerPage-Xc2rQipJ-CbzWMzby.js} +1 -1
- package/dist/assets/{EditPeoplePage-DDUuO0Nh-9VJbE7yG.js → EditPeoplePage-CF5UleI0-DHfURipS.js} +8 -8
- package/dist/assets/{EditReimbursementDetailPage-CT8mqYr5-B_Jf7KJi.js → EditReimbursementDetailPage-DGCkOykv-BxliJYVA.js} +24 -24
- package/dist/assets/{EntityDetailPage-DMh6o0bo-Tf00xv72.js → EntityDetailPage-BykQZo8S-TLciQOdt.js} +1 -1
- package/dist/assets/{EntitySummarySection-tK_X4uAf-BVPVgLOE.js → EntitySummarySection-Dw4PBcg_-D8XPKjkN.js} +5 -5
- package/dist/assets/{ExpenseAutomationOverviewPage-CLUiYjKg-CU0IEYOH.js → ExpenseAutomationOverviewPage-BwAaZVq3-DULdspcH.js} +17 -17
- package/dist/assets/{ExpenseAutomationPage-C9biTgak-D_ShaLsh.js → ExpenseAutomationPage-Cqiyk-AY-Cbn2hM3p.js} +82 -82
- package/dist/assets/{ExpressPayPage-DpAixmcQ-cSQN8DUb.js → ExpressPayPage-D0lCczvw-DeekuCPU.js} +8 -8
- package/dist/assets/{FeaturePreviewPage-BohUqOFz-GZLm2aVP.js → FeaturePreviewPage-CxZIUB8l-xGc8umN-.js} +1 -1
- package/dist/assets/{FollowStepsSection-BAUXUzTr-Cl4ucwG7.js → FollowStepsSection-CILr1_vc-DOHzLCEi.js} +10 -10
- package/dist/assets/{GlobalReviewListPage-BxYHNkut-Dw88vaJy.js → GlobalReviewListPage-DL6H7PZG-CcFAQ4Jd.js} +8 -8
- package/dist/assets/{HelpButton-8AQIbLQM-Bs9xtUX-.js → HelpButton-CkSfhBfN-BCuT-w0J.js} +2 -2
- package/dist/assets/{InformationCardStack-76GlZ-Bq-Dj5kHoKj.js → InformationCardStack-i76c5dym-B_ZpROXq.js} +2 -2
- package/dist/assets/{InsightsCardStack-CvOFi2Uu-GoCB56W7.js → InsightsCardStack-wcWhovKK-DSw729j8.js} +9 -9
- package/dist/assets/{InsightsSection-DyF8JZIR-B8z3WtkK.js → InsightsSection-CCzgI0uK-wk2msd_s.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-mys0-i40-mThzqlxs.js → IntegrationsSettingsPage-B2CDE2Xd-D7F50RmA.js} +4 -4
- package/dist/assets/{InternationalWireSwiftDetailsPage-km4qEcXH-DzXUyrBc.js → InternationalWireSwiftDetailsPage-DNT75nXv-Ugsofr3W.js} +7 -7
- package/dist/assets/{InternationalWireVerificationPage-DauhGM3c-PML0mcEK.js → InternationalWireVerificationPage-BDxujQK--CFeRgIkU.js} +5 -5
- package/dist/assets/{InviteFormPage-FSL8fEXT-XOAQmZ0f.js → InviteFormPage-BnLBPR7X-QQpB8eQo.js} +16 -16
- package/dist/assets/{InvitePageListView-zaQ1xEHJ-DXp4zJVf.js → InvitePageListView-7mhz_Fyy-D6doua_f.js} +32 -32
- package/dist/assets/{InvitePeoplePage-BNB36i8Y-9uiKACEE.js → InvitePeoplePage-B8gb9N_8-DX1GZlvh.js} +2 -2
- package/dist/assets/{InvoiceUploadSection-FXrB92T6-BRuwVoDg.js → InvoiceUploadSection-Bes1nCJn-Be4DogKt.js} +6 -6
- package/dist/assets/{IssueChargeCardPage-D3cUp2DE-C_i671Vx.js → IssueChargeCardPage-DC3yIsQd-D0BAohGU.js} +21 -21
- package/dist/assets/{LabeledAddressValue-BF6r800B-CkTOFry_.js → LabeledAddressValue-Dtw8vM0g-D81z6ltq.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DYelJL4d-BdG9VHrT.js → LabeledAddressValueField-D72yUpQl-C0ZR7mu4.js} +3 -3
- package/dist/assets/{LabeledControlledCheckBoxField-B2ATKJBH-_otf63xJ.js → LabeledControlledCheckBoxField-BFaru2xf-AfZiR_o0.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-B9zUAA6L-D3nwZduF.js → LabeledCreatableSingleSelectField-CCXfjgxP-BI63rs1t.js} +6 -6
- package/dist/assets/LabeledDocumentField-aYYBY16j-D9fngETw.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-Co7u6hHL-Cpugeu34.js +59 -0
- package/dist/assets/{LabeledText-C34I_iEo-BsDSAdqR.js → LabeledText-BrOLGzO5-CQVuQAJd.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B6aVL-fb-D9g8GE2z.js → LabeledUserSingleSelectWithSubtitlesField-D-Huhkbq-B8_Gy80w.js} +5 -5
- package/dist/assets/{LabeledZeniRolesDropDownField-Caj0_1zM-DwR_QE_h.js → LabeledZeniRolesDropDownField-WXH8xLJq-Bz0_UVs1.js} +12 -12
- package/dist/assets/{LinkJETransactionPage-DLmZGscZ-DZDMtlRu.js → LinkJETransactionPage-NFV4Vo3i-Dh75sd9Q.js} +12 -12
- package/dist/assets/{LowBalancePopup-ll1SesgY-D5DfcA4S.js → LowBalancePopup-Bxkd2pBR-DnLeMaGm.js} +7 -7
- package/dist/assets/{MagicLinkACHDetailsPage-DXzjYrdU-CMRlhl3b.js → MagicLinkACHDetailsPage-BJFlUq7i-CR2iAlWE.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CUwp46Wf-B5l_TN4a.js → MagicLinkDomesticWireDetailsPage-CTuaNol6-CwHBeiVQ.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-B_h0EHoZ-B0W1vrwK.js → MagicLinkInternationalWireDetailsPage-L2dPsfWM-jS2Sj2EL.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BX4E-l5M-yzYkClOj.js → MagicLinkSuccessPage-DutanrSJ-BcHGJ4_T.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-DHe9TfVe-BQMUL_lY.js → MagicLinkTitleSection-5B8jYoBn-ChnkNHHY.js} +2 -2
- package/dist/assets/MailingDetailsSection-DwWeiSC0-CYpVyPYc.js +21 -0
- package/dist/assets/{MeetingCalenderPopup-D4tz-H5i-BwkhIyJ3.js → MeetingCalenderPopup-rC3PQdjG-DZoBtMzd.js} +3 -3
- package/dist/assets/{Menu-C9u3eDJk-yLJSeW2r.js → Menu-CrSQ1yNo-Cx3bEBb1.js} +2 -2
- package/dist/assets/{MyBankConnectionsSettingsPage-DVp3h4c0-DQZFL0jq.js → MyBankConnectionsSettingsPage-CJjW9ymP-BqJ36Kdj.js} +8 -8
- package/dist/assets/{MyPendingActivationChargeCardListPage-BTk8mY7B-Bve-Rskd.js → MyPendingActivationChargeCardListPage-CvxqOjc7-DSUp87U3.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BdcDAwKZ-C12kcuIJ.js → MyProfileSettingsPage-BX5dXulH-rLCsz38p.js} +9 -9
- package/dist/assets/{NavBarWithPicker-DbSWvh0o-NuI9g1n_.js → NavBarWithPicker-CuVAj7o5-QRyCYrfU.js} +4 -4
- package/dist/assets/{NavigationArrow-BP8cU19I-ycJIkMac.js → NavigationArrow-BPQ9vRqR-CA2ua3KM.js} +1 -1
- package/dist/assets/{NavigationDots-nvOimTil-G0PfP6Yi.js → NavigationDots-Toh5TKEv-D4TuvGNx.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-D-imjD0M-DzspWfsO.js → NewGlobalMerchantPage-B4r1haCm-V82_isUI.js} +6 -6
- package/dist/assets/NoDataChart-CVM-QPHf-C-oyhVAy.js +26 -0
- package/dist/assets/{NoDataTable-d0_62BR0-6d_cpGKF.js → NoDataTable-CM-tApqo-CD71WwmK.js} +1 -1
- package/dist/assets/{NotFoundPage-BydQGX11-9vbareo0.js → NotFoundPage-I-EBmx2b-H5l_OBUP.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-BIzaZFzy-DhKXX3i_.js → NotificationSettingsPage-CtZ7hdMN-D-_tIuJn.js} +6 -6
- package/dist/assets/NotificationsListConfig-BAKipCDG-DNDbmhPU.js +1 -0
- package/dist/assets/{NotificationsPage-BdI4E6uL-DFMKLOUo.js → NotificationsPage-xyLmK3l7-D0WoPK5r.js} +21 -21
- package/dist/assets/{OpExByVendorPage-Dm90CRYi-B68ZMMjY.js → OpExByVendorPage-B63DEuJM-BARCJc78.js} +5 -5
- package/dist/assets/{OverlayContainerPage-nhe7xtoR-BOZ7SsR9.js → OverlayContainerPage-C0rUb6-5-BDWmQRwQ.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-DhbFHH25-D0XOsg4W.js → PandLWithForecastPage-uY-ajYp4-Lez30LQU.js} +6 -6
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-Debi_lWf-CETxD32S.js → PaymentAccountSetupBillingAddressSection-DM9NYbmX-C_WC5GD-.js} +6 -6
- package/dist/assets/{PeoplePage-BACu55RO-BFQQAI9y.js → PeoplePage-DPZj6XeQ-87NclcP_.js} +24 -24
- package/dist/assets/{PortfolioAllocationFormPage-Cjz_E3BK-B5eupbQJ.js → PortfolioAllocationFormPage-De56plDa-D_5OdoiP.js} +3 -3
- package/dist/assets/{PortfolioDetails-CS2st-Mx-CPXNb_Sr.js → PortfolioDetails-DiITguNZ-C9ff3dxU.js} +9 -9
- package/dist/assets/{ProductsCarousel-TB4uKZbg-OXb4ZerZ.js → ProductsCarousel-BojgZxY7-C7ixhh1B.js} +9 -9
- package/dist/assets/{PromoBaseCards-BMPp9RNQ-C3lOWNQ-.js → PromoBaseCards-DPAkjdDp-BSbN47iG.js} +5 -5
- package/dist/assets/{QBOConnectionDialog-B1b1wGeq-B4g-RMHZ.js → QBOConnectionDialog-CzuH4c1o-CmxBeQPY.js} +9 -9
- package/dist/assets/{QBOSetupSection-Bj_y0Lo2-BwyEXg6_.js → QBOSetupSection-DJBfLeXn-CaDVg5Hs.js} +9 -9
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cz4RtqYb-CP2Ebcdr.js → ReimbursementApprovalRuleDetailPage-CAcLCt68-CHZOZjbd.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DJlNT4Ov-DI0wrt_m.js → ReimbursementApprovalRulesPage-edz_6MDX-C6mJ2DuI.js} +43 -43
- package/dist/assets/ReimbursementDetailPage-DD_GbfiV-DO_TXxDc.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-ppaPJby5-z4lw_k8N.js → ReimbursementPromoPage-B_HZWdXi-ujWpRxU3.js} +6 -6
- package/dist/assets/{ReimbursementSetUpPage-B6mZrzQB-BUejN3hX.js → ReimbursementSetUpPage-C0SNbg5D-CMixW-_k.js} +5 -5
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DS55QesG-k-3pCZr8.js → ReimbursementsBulkReviewDrawerPage-NOK5jPjr-DI2xKDYj.js} +1 -1
- package/dist/assets/{ReloadCard-DDDYlCsI-DD3JbZID.js → ReloadCard-CqyGWGqs-B2pPTz9i.js} +3 -3
- package/dist/assets/ReportTableViewSelector-B8ZW0kxU-_1sW9OpN.js +150 -0
- package/dist/assets/ReportsPage-DdqQgvJt-pEgVGJHX.js +120 -0
- package/dist/assets/{RevenueChart-DPkxzWaE-DFty4EIw.js → RevenueChart-QoBLII7z-Brgj42T7.js} +15 -15
- package/dist/assets/{ReviewDetailsPage-CyF2YP3t-McxyEgxk.js → ReviewDetailsPage-BVoI7xF7--oTVBYBc.js} +14 -14
- package/dist/assets/{ReviewOverlay-AoSgYufX-DMqIEz4n.js → ReviewOverlay-CbpylyCx-CRT_fGNL.js} +10 -10
- package/dist/assets/{RoleWithToolTip-aoWU03so-BRxPOl9b.js → RoleWithToolTip-TxLTa63q-S46u0htc.js} +4 -4
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Bfj3vclV-Z49xaidT.js → ScheduleDetailsFixedAssetsPage-CuwxZJjj-CbljEJHF.js} +4 -4
- package/dist/assets/{ScheduleDetailsPage-B30aUjKr-CSfTpjBV.js → ScheduleDetailsPage-u0VNz7hA-DBA6XeYX.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-CStdRSyQ-Bomw4D-y.js → ScheduleSequenceTable-usJjTfAn-CsILXb5x.js} +19 -19
- package/dist/assets/{ScreenRoutes-DQcIhmGF.js → ScreenRoutes-DfucM-A_.js} +1 -1
- package/dist/assets/{SetUpAccountSection-nul4pyeP-G_79pEQX.js → SetUpAccountSection-DDe06VBR--XDyyAq7.js} +103 -103
- package/dist/assets/{SetUpDefaultSection-ByW3h9zl-DnxR2In6.js → SetUpDefaultSection-B6pcOXMO-DgPwbXlv.js} +8 -8
- package/dist/assets/{SignIn-R1Rsh38G-YZGk51BO.js → SignIn-BdhV8PbY-BEcS89H3.js} +16 -16
- package/dist/assets/{SignInScreen-G2hlzZlg.js → SignInScreen-CQe6jUnb.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BqOQ7NY_-CkJIT9m9.js → SpendManagementListViewPage-DNgC__pX-CtNBT1Yc.js} +4 -4
- package/dist/assets/{SpendManagementPerTabPage--2EC1Oz4-D99_X1lJ.js → SpendManagementPerTabPage-BkiWOMch-DNxdfM54.js} +36 -36
- package/dist/assets/{SpendManagementSection-COMVry1E-D4cDssze.js → SpendManagementSection-DuR3sx7V-wtusVJD4.js} +9 -9
- package/dist/assets/{SpendMgmtSetupAccountSection-fV4qxxEy-HhTe0Pjv.js → SpendMgmtSetupAccountSection-DoUKX4Sf-BWt9unUe.js} +8 -8
- package/dist/assets/{StatementItem-BksIBztP-BBpKIB--.js → StatementItem-VYK0Vtgt-CDJF9Bdy.js} +8 -8
- package/dist/assets/{StatementsPage-DnAoeqze-CZH9X3mG.js → StatementsPage-CLxned7l-kbRne1uO.js} +1 -1
- package/dist/assets/{StatusSwitcher-b1A9RnRP-fNT0MOEy.js → StatusSwitcher-Jqpvk1VX-KiHu5pz2.js} +2 -2
- package/dist/assets/{SubTabSwitcher-CgJW4ZXd-BZ8cVekD.js → SubTabSwitcher-C7_JB54g-TfIjK1e4.js} +1 -1
- package/dist/assets/{SummaryCard-sEKhcIH5-BeL-P1SQ.js → SummaryCard-oqK_zyxl-DP8NWbIJ.js} +1 -1
- package/dist/assets/TaskManagementPage-BDOhB7Ny-0hkaxI_I.js +508 -0
- package/dist/assets/{TimeRangeSwitcher-DQ-u6pKk-Cm9xtxxu.js → TimeRangeSwitcher-AWKZ7PNb-CoqhGH2B.js} +5 -5
- package/dist/assets/{TimeframeSwitcher-B0yxn0SJ-CAbPR_S6.js → TimeframeSwitcher-BlL5woGb-Cmk__EzQ.js} +1 -1
- package/dist/assets/TimeframeSwitcherWithToggle-CRnWI6xW-CcO9Smot.js +31 -0
- package/dist/assets/{TopExCard-CTjfWfCk-Cuukn5tt.js → TopExCard-B4T3kqhZ-Boo9L6AS.js} +4 -4
- package/dist/assets/{TopExDetailPage-CdpvcVME-BND4tloE.js → TopExDetailPage-Cx9T3i9O-Dego-R-_.js} +11 -11
- package/dist/assets/{TransactionDetailPage-DdF9FS4b-COOtrH4t.js → TransactionDetailPage-CAGxHcQ9-D2MX0HZx.js} +46 -46
- package/dist/assets/{TransactionList-CHq3WONc-EficICZZ.js → TransactionList-CVrK_-YB-DNCdrvzR.js} +5 -5
- package/dist/assets/{TransactionListBig-D-Gxd5n0-puwWq3m4.js → TransactionListBig-BnI6EofP-_rQrLZ8Q.js} +12 -12
- package/dist/assets/{TransactionListPage-DK9-YK_1-CSQJMF7y.js → TransactionListPage-vK6DdhrP-BFxBj0Xu.js} +5 -5
- package/dist/assets/{TransactionVendorDetailPage-Cc9pTpTw-D_hIEj2V.js → TransactionVendorDetailPage-IyAfkyMv-DMgJng31.js} +6 -6
- package/dist/assets/{TransferDrawerPage-DoDTECI8-GuFK3KE9.js → TransferDrawerPage-Bp0TG8fm-BrYG-dvh.js} +28 -28
- package/dist/assets/{TreasuryOverviewPage-wlfReqPJ-Dxtb_d6C.js → TreasuryOverviewPage-Cr1liTpc-DUvbI9m6.js} +12 -12
- package/dist/assets/{TreasuryPromoPage-C9WNRb2_-DDmPU80g.js → TreasuryPromoPage-Da7l7gv8-BI2e-RBa.js} +7 -7
- package/dist/assets/{TreasurySetupPage-CjV0cOq9-duFmGtlv.js → TreasurySetupPage-DLNsPnS8-CsV7YDNa.js} +2 -2
- package/dist/assets/TreasuryStatementsPage-CNXxykvB-Xo9bsOcj.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-BWGHcQ-i-Dw9jA2ZK.js → TreasuryTaxLetterPage-DUbt8ItG-Bx6VQjMk.js} +2 -2
- package/dist/assets/{TreasuryTransferOrReviewPage-CgL8K7N9-50BacHbJ.js → TreasuryTransferOrReviewPage-qxabbCrK-Cn6E59-e.js} +19 -19
- package/dist/assets/TrendChart-SOAxSpv2-C2I66UL7.js +16 -0
- package/dist/assets/{TrendWithTransactions-B_fJTS4m-D__ieuPf.js → TrendWithTransactions-BSQ2TJvu-CXRyOB__.js} +2 -2
- package/dist/assets/{UncategorizedAccountsMappingPage-DpY1kK_K-BtWn0eYq.js → UncategorizedAccountsMappingPage-Caf242zp-C8p8QWva.js} +13 -13
- package/dist/assets/{UnitIntegrationPage-BTJI7fx3-BlvX7_TV.js → UnitIntegrationPage-Bvc4wx_r-CxpS2DzG.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BH3bRKoG-C8iHVUy3.js → UploadAdditionalDocumentOverlay-BTEhwmVL-Bv1cJYiQ.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-4-XtZDNS-syEs46rR.js → Vendor2FAPopup-DimcegQ_-DbqY7M5C.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-B2knDl4H-mYkCnpAU.js → VendorACHDetailsPage-BOIRRgCy-3ls1AaMO.js} +1 -1
- package/dist/assets/{VendorDetailPage-w-tghGpI-BMFF0Ll6.js → VendorDetailPage-CWcqMMpT-CUN694wM.js} +17 -17
- package/dist/assets/{VendorDomesticWireDetailsPage-BXCCdTjh-B1_Bs5Sj.js → VendorDomesticWireDetailsPage-9C2CIkhB-CIWMgQrd.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-DGQO9Qqj-Kjzr1ZpC.js → VendorFiling1099EditablePage-Crz_WLRG-C1B5bpoY.js} +7 -7
- package/dist/assets/{VendorFirstReviewPage-Lblb6X1V-CJ-eOwE0.js → VendorFirstReviewPage-hQ0U61KD-DXRFO6yh.js} +44 -44
- package/dist/assets/{VendorInternationalWireDetailsPage-Bi5RBKxI-1jqnP2-c.js → VendorInternationalWireDetailsPage-mm1qIXTf-CIqQKpow.js} +7 -7
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CBZmsXnL-DuBE4Jr3.js → VendorInternationalWireSwiftDetailsPage-BaOsJGNO-DJWhQcKK.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-JI0e3gKo--9DY7Bce.js → VendorsAccountsSection-CGbDIAMd-CpNcTh0l.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-BQzUQ5-l-CoMEqU3O.js → WarningsDrawerPage-7DzlUfv7-BkCPq2fE.js} +5 -5
- package/dist/assets/{ZeniAccountDetailPage-DPJ4mWoO-D8mOvxpk.js → ZeniAccountDetailPage-B_U4d2iv-CeotXzaF.js} +32 -32
- package/dist/assets/{ZeniAccountListViewPage-iHMJ7FU7-BphNG4f4.js → ZeniAccountListViewPage-C2Yej3tG-5nEB_ziW.js} +23 -23
- package/dist/assets/ZeniAccountNavBarPieces-DsWyZL7N-DfzfZF8w.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-OxQ03DtJ-0GWIMuQQ.js → ZeniAccountPromoPage-D6S3o6xA-Bi4N8dmb.js} +11 -11
- package/dist/assets/{ZeniAccountSetupPage-BahzDcmm-eIP17ZcJ.js → ZeniAccountSetupPage-YpW9LEB1-BJ2MLgxE.js} +1 -1
- package/dist/assets/{ZeniCopyright-Dpqdxu7f-DCRSWt9K.js → ZeniCopyright-Buv4_0jF-CqCj0NE5.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DwC6pXnb-KNf6khCP.js → ZeniTransferAmountSlider-CvuOgkEg-CuXG6PC2.js} +1 -1
- package/dist/assets/analytics-DThoELaW.js +7 -0
- package/dist/assets/{analyticsHelper-CZ8c8du5-B_iOa665.js → analyticsHelper-B3QVnfWf-Ii66sXHH.js} +1 -1
- package/dist/assets/{analyticsHelper-BN9o1RUu.js → analyticsHelper-ej1xHeXQ.js} +1 -1
- package/dist/assets/{chartTypes-CWLOazD0-MzxL2DAm.js → chartTypes-DYAHlgKd-DnqAO3Rp.js} +1 -1
- package/dist/assets/{commonDimensions-Cg7EWgSP-B_3asR-F.js → commonDimensions-Pkc8qIrn-B-bjjlb8.js} +1 -1
- package/dist/assets/{detailCommon-Cp4eknjq-DEs531l9.js → detailCommon-CsukAL3T-lIItUxyr.js} +7 -7
- package/dist/assets/{downloadPdf-f3F0OqWf-Bi6rDwAD.js → downloadPdf-DlKRXI5W-DoYYMEWD.js} +1 -1
- package/dist/assets/{index-BRPl2wF0.js → index-DEtloYMb.js} +3142 -3141
- package/dist/assets/{liveblocks-BUGn2yQ6.js → liveblocks-sSQ9JElv.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DCLD3rcY-CxA3ULNd.js → mapLoadingInProgressToTreeNode-KYsp1YPe-CdYtsyMK.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C-VOXE5I-lNBPXLSA.js → mapSectionWithAcOnlyToTreeNode-t5fK12Uc-CbMkSgtE.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DlDwFA_F-9wnoX6Mp.js → mapSpacerToTreeNode-1YBqnFwa-K_d13sRq.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-EEyJwCnX-CUiCA57A.js → mapTimeframeBalancesToTreeNode-DD1v-gTG-9n0fkm_w.js} +1 -1
- package/dist/assets/mui-C5LQ0bMa.js +25 -0
- package/dist/assets/{play-icon-CFa9Uibr-CGZfRDja.js → play-icon-19dLaWkG-CvLTbZAK.js} +3 -3
- package/dist/assets/{redux-DmDqXYej.js → redux-ByjIRbhZ.js} +1 -1
- package/dist/assets/{routing-BNz5gZgX.js → routing-Cpaypegg.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DT8-C5u1-BADUIIp0.js → toCOABalancesWithID-B8NxsLlK-741DYvDg.js} +1 -1
- package/dist/assets/{toChartData-63e3B91H-Dq_DEVZ5.js → toChartData-CxZEcdj_-B9fAXWHm.js} +1 -1
- package/dist/assets/{treasuryColorHelper-BGGfolJy-DUmksYn-.js → treasuryColorHelper-BqwCUN2u-C54KKUXs.js} +1 -1
- package/dist/assets/{uploadAttachment-YcPIDoZ--DR8XRMXB.js → uploadAttachment-CHFo3qZI-fjIbqTID.js} +21 -21
- package/dist/assets/{uploadReceipts-BH9fi3Vt-DLlk-piQ.js → uploadReceipts-Buvz7DfG-BUbqoJXB.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +5 -5
- package/dist/assets/AccountInfoPageContent-qqbfRfuR-D8M6BkXR.js +0 -149
- package/dist/assets/AccountRow-CPX-627p-BrATMEsz.js +0 -298
- package/dist/assets/ArAgingChart-BRcy3--o-BcsJheHd.js +0 -24
- package/dist/assets/BusinessVerificationPage-DT24fycp-DtCstN1y.js +0 -140
- package/dist/assets/ChargeCardPromoPage-DOibcN9n--NMnqRjc.js +0 -175
- package/dist/assets/CheckDepositDrawerPage-DaaWfNin-CEwL3HYg.js +0 -206
- package/dist/assets/CompleteProfile-MP9AF8Iu-BgJbmmeH.js +0 -36
- package/dist/assets/CustomerOnboardingContainerPage-C9jXmYuH-C1WNy7my.js +0 -1
- package/dist/assets/CustomerOnboardingPage-DJbFeXms-DptIXAkb.js +0 -107
- package/dist/assets/DashboardReportPage-3X6wpJL2-DsT-6ILj.js +0 -349
- package/dist/assets/DomesticWireDetailsPage-D-qwPVDs-Cfr0Z28W.js +0 -21
- package/dist/assets/LabeledDocumentField-DORRl3DI-DVaAArO2.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-FpRJ9tiX--fjxS8NM.js +0 -59
- package/dist/assets/MailingDetailsSection-D8CZart4-Ddt0BRQX.js +0 -21
- package/dist/assets/NoDataChart-VE4W-RUu-nzQap9EA.js +0 -26
- package/dist/assets/NotificationsListConfig-DVBOQJZq-v-fw7jBu.js +0 -1
- package/dist/assets/ReimbursementDetailPage-BQiu7Gts-BoA7LScg.js +0 -314
- package/dist/assets/ReportTableViewSelector-Bss4AtF1-CCsisQXu.js +0 -133
- package/dist/assets/ReportsPage-C-g9588h-BV7tfG6L.js +0 -120
- package/dist/assets/TaskManagementPage-z5uvcy81-BWPZt4KY.js +0 -508
- package/dist/assets/TimeframeSwitcherWithToggle-BlbY3qcY-DyDTd8B-.js +0 -31
- package/dist/assets/TreasuryStatementsPage-DqOWNGB_-DsiDcoF9.js +0 -58
- package/dist/assets/TrendChart-76tuu9Dr-C_LjcFnl.js +0 -16
- package/dist/assets/ZeniAccountNavBarPieces-D1g1REsS-Dc0OuIhw.js +0 -14
- package/dist/assets/analytics-BSSiLa6f.js +0 -7
- package/dist/assets/mui-BgvZYSo0.js +0 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as ze,u as Re,cg as yl,M as ue,C as
|
|
1
|
+
import{X as ze,u as Re,cg as yl,M as ue,C as P,a5 as gl,j as l,bt as Be,e$ as qe,bP as De,fv as Pe,o as a,fE as bl,cf as We,c6 as ee,c8 as ce,cc as Me,l as Le,cy as xl,cw as wl,ca as Ue,c9 as Fe,fF as Te,fG as jl,fd as vl,fc as ke,cd as ge,ce as Il,g as Ce,f0 as He,Q as Ge,b5 as Qe,e_ as Xe,t as Ne,fu as Ye,r as ye,p as $l,b1 as Sl,q as ae,dh as Ol,fH as Ll,m as Fl,fI as _l,b2 as be,v as Dl,cq as Pl,b0 as Cl,a$ as Nl}from"./index-DEtloYMb.js";import{b as M,n as t}from"./vendor-CnQcJ2Lu.js";import{C as _e}from"./LabeledAddressValueField-D72yUpQl-C0ZR7mu4.js";import{I as El}from"./LabeledCreatableSingleSelectField-CCXfjgxP-BI63rs1t.js";import{Y as $e}from"./LabeledDocumentField-aYYBY16j-D9fngETw.js";import{P as Je}from"./DocumentSecurityBanner-C5w0d_S8-DMiwYsyK.js";const Ke=({text:e})=>l.jsx(Tl,{children:l.jsx(Vl,{children:e})}),Vl=t(_l)`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -8,7 +8,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
|
|
|
8
8
|
align-items: flex-end;
|
|
9
9
|
margin-left: ${a.sp2};
|
|
10
10
|
margin-top: ${a.sp1};
|
|
11
|
-
`,le={labelWidth:new N(115,145,155),mediumLabelWidth:new N(140,160,170),largeLabelWidth:new N(150,210,244),largeLabelDocumentWidth:new N(150,210,252),paddingBottom:new N(ae[3],ae[2]),containerRowGap:new N(12,ae[3])},kl={title:new Ge("standardMedium","largeMedium")},Al=ue.getLocalizedStrings(),{dateFormat:{visual:zl},commonSetUp:Rl,companyPassport:ql,common:{documents:Se,optional:Bl}}=Al,o=Rl.businessVerification,Wl=o.sourceOfFundOptions,Ml=M.forwardRef(({fileProps:e,productType:p,allIndustries:u,companyDetails:m,connectedAccountProvider:P,businessVerificationProps:g,isDisabled:n,style:U,sectionId:h,showInfoTooltip:oe=!0,isCompleted:te=!1,showCompletedIcon:ie=!1,showTreasuryFields:H=!1,sectionHeader:G,optionalFields:s=[],onCompanyAddressClick:Q,onRegisteredAddressClick:V},re)=>{const f=ze(),F=le.labelWidth.value(f),_=le.mediumLabelWidth.value(f),b=le.largeLabelWidth.value(f),z=le.largeLabelDocumentWidth.value(f),y=o.productType[p],X=m?.companyFiles.find(d=>d.documentType==="certificate_of_incorporation"),Y=m?.companyFiles.find(d=>d.documentType==="tax_ein"),c=m?.companyFiles.find(d=>d.documentType==="company_formation_document"),j=m?.companyDescription,R=m?.companyLegalName,se=m?.website,B=m?.typeOfIncorporation,J=m?.incDate,L=m?.companyIndustry,me=m?.phone,K=m?.taxIdOrEIN,Z=m?.primaryContactLocalData,q=m?.deleteFileStatusById??{},ne=m?.updateFileStatusById??{},xe=m?.addressStatus?.addressToCreate,W=m?.registeredAddressStatus?.addressToCreate,[C,x]=M.useState(!1),[S,T]=M.useState(!1),D=d=>u.find(je=>je.code===d)?.name??d,we=d=>Wl[d]??d;return l.jsxs(Ul,{style:U,ref:re,windowSize:f,children:[l.jsx(Hl,{children:l.jsxs(ea,{children:[l.jsxs(Ql,{children:[ie===!0?l.jsx(Xl,{children:te?l.jsx(Yl,{}):l.jsx(Jl,{})}):null,l.jsx(Gl,{windowSize:f,children:G??o.confirmCompanyDetails})]}),oe?l.jsx(Kl,{children:l.jsx(qe,{variant:"small-description",display:"flex",maxWidth:"280px",data:o.confirmCompanyDetailsTooltip,placement:f==="small"||p==="onboarding"?"bottom":"right",children:l.jsx(Zl,{})})}):null,p==="onboarding"&&G!=null?l.jsx(Ke,{text:Bl}):null,g?.companyVerificationStatus!=null?l.jsx(aa,{tagTitle:g.companyVerificationStatus.name,textColor:Be(g.companyVerificationStatus.code),showLoader:g?.isRefreshingViewInBackground}):null]})}),l.jsxs(la,{children:[l.jsx(Je,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyLegalNameLabel,width:b},text:{type:"text",name:v(h,"companyLegalName"),placeholder:o.companyLegalNamePlaceholder,defaultValue:R,options:{required:n==null&&s.includes("companyLegalName")===!1}},additionalInfoLabel:o.companyLegalNameError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyDescriptionLabel,width:_},text:{type:"text",name:v(h,"companyDescription"),placeholder:o.addProductPlaceholder,defaultValue:j,options:{required:n==null&&s.includes("companyDescription")===!1}},additionalInfoLabel:o.companyDescriptionError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(_e,{isDisabled:n,label:{label:o.companyAddressLabel,width:_},addressValueField:{name:v(h,"companyAddress"),placeholder:o.companyAddressPlaceholder,defaultValue:xe,registerOptions:{validate:d=>s.includes("companyAddress")===!1?!(n==null&&d==null):!0},onClick:()=>{Q?.("company_address")}},additionalInfoLabel:o.companyAddressError.replace("_product_type_",y),showAdditionalInfoLabel:!1}),l.jsx(I,{}),l.jsx(_e,{isDisabled:n,label:{label:o.registeredAddressLabel,width:_},addressValueField:{name:v(h,"registeredAddress"),placeholder:o.registeredAddressPlaceholder,defaultValue:W,registerOptions:{validate:d=>s.includes("registeredAddress")===!1?!(n==null&&d==null):!0},onClick:()=>{V?.("company_registered_address")}},additionalInfoLabel:o.registeredAddressError.replace("_product_type_",y),showAdditionalInfoLabel:!1}),l.jsx(I,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyWebsiteLabel,width:F},text:{type:"url",name:v(h,"companyWebsite"),placeholder:o.companyWebsitePlaceholder,defaultValue:se?.toString()??"",options:{required:n==null&&s.includes("companyWebsite")===!1}},additionalInfoLabel:o.companyWebsiteError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(Fe,{label:{label:o.companyIndustryLabel,width:F},singleSelectField:{singleSelect:{name:v(h,"companyIndustry"),placeholder:o.companyIndustryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:D,isDisabled:n,showTickMark:!1},defaultValue:{selectedOption:L,allOptions:u?.map(d=>d.code)??[]},registerOptions:{required:n==null&&s.includes("companyIndustry")===!1,validate:d=>s.includes("companyIndustry")===!1?!(n==null&&!d?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:o.companyIndustryError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(El,{label:{label:o.companyTypeOfIncorporationLabel,width:b},isDisabled:n,creatableSingleSelectField:{name:v(h,"typeOfIncorporation"),placeholder:o.companyTypeOfIncorporationPlaceholder,defaultValue:{selectedOption:B,allOptions:ql.companyIncInfo.allTypesOfIncorporation},registerOptions:{required:n==null&&s.includes("typeOfIncorporation")===!1&&P==="unit",validate:d=>s.includes("typeOfIncorporation")===!1?!(n==null&&!d?.selectedOption):!0}},errorInfoLabel:o.companyTypeOfIncorporationError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(Me,{isDisabled:n,label:{label:o.companyIncDateLabel,width:b},style:{paddingBottom:le.paddingBottom.valuePx(f)},dateField:{name:v(h,"incDate"),placeholder:o.companyIncDatePlaceholder,defaultValue:J,dateFormat:zl.defaultInput,maxDate:Le.dateNow(),minDate:Le.zeniDate("01 Jan 1900"),autoComplete:"off",registerOptions:{required:n==null&&s.includes("incDate")===!1}},additionalInfoLabel:o.companyIncDateError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(Ue,{isDisabled:n,label:{label:o.companyPhoneLabel,width:F},text:{name:v(h,"companyPhone"),placeholder:ce(o.companyPhoneLabel),defaultValue:me,autoComplete:"new-password",options:{required:n==null&&s.includes("companyPhone")===!1}},errorInfoLabel:o.companyPhoneError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(We,{isDisabled:n,label:{label:o.companyPrimaryContactNameLabel,width:b},nameField:{name:v(h,"primaryContactName"),placeHolder:{firstName:o.firstNamePlaceholder,lastName:o.lastNamePlaceholder,name:o.namePlaceholder},defaultValue:{firstName:Z?.firstName??"",lastName:Z?.lastName??""},registerOptions:{required:n==null&&s.includes("primaryContactName")===!1,validate:d=>!!d||n!=null||s.includes("primaryContactName")},showFullNameError:!0},errorInfoLabel:o.companyPrimaryContactNameError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyPrimaryContactEmailLabel,width:b},text:{type:"email",name:v(h,"primaryContactEmail"),placeholder:o.companyPrimaryContactEmailPlaceholder,defaultValue:Z?.email,options:{required:n==null&&s.includes("primaryContactEmail")===!1}},additionalInfoLabel:o.companyPrimaryContactEmailError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyTaxIdLabel,width:F},text:{type:"text",name:v(h,"companyTaxId"),placeholder:o.companyTaxIdPlaceholder,defaultValue:K,options:{required:n==null&&s.includes("companyTaxId")===!1,pattern:Il},autoComplete:"new-password"},additionalInfoLabel:o.companyTaxIdError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx($e,{name:v(h,"certificateOfIncorporation"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:q,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.certificateOfIncorporation,width:z},filemetadataPayload:{documentType:"certificate_of_incorporation",purposeId:"business_verification",documentSide:"front"},file:X,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("certificateOfIncorporation")===!1&&P==="unit"},additionalInfoLabel:o.certOfIncopDocumentError.replace("_product_type_",y),hasError:C,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>x(d)}),C||!(n!=null||X!=null)?l.jsx(Oe,{windowSize:f,isError:C,children:Se.formatDocumentText10MB}):null,l.jsx(I,{}),l.jsx($e,{name:v(h,"ein"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:q,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.einDocument,width:z},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:Y,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("ein")===!1},additionalInfoLabel:o.einDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>T(d)}),S||!(n!=null||Y!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null,l.jsx(I,{}),H===!0?l.jsxs(l.Fragment,{children:[l.jsx(Fe,{label:{label:o.sourceOfFundsLabel,width:F},singleSelectField:{singleSelect:{name:v(h,"sourceOfFunds"),placeholder:o.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:we,isDisabled:n,showTickMark:!1,menuPlacement:"top",sortOptions:!1},defaultValue:{selectedOption:m?.sourceOfFunds,allOptions:Object.keys(o.sourceOfFundOptions)},registerOptions:{required:n==null&&s.includes("sourceOfFunds")===!1,validate:d=>s.includes("sourceOfFunds")===!1?!(n==null&&!d?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:o.sourceOfFundsError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx($e,{name:v(h,"formationDocument"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:q,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.formationDocumentLabel,width:z},filemetadataPayload:{documentType:"company_formation_document",purposeId:"business_verification",documentSide:"front"},file:c,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("formationDocument")===!1},additionalInfoLabel:o.formationDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>T(d)}),S||!(n!=null||c!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null]}):null]})]})});Ml.displayName="Company Details Section";const v=(e,p)=>`${e}.${p}`,Ul=t.div`
|
|
11
|
+
`,le={labelWidth:new P(115,145,155),mediumLabelWidth:new P(140,160,170),largeLabelWidth:new P(150,210,244),largeLabelDocumentWidth:new P(150,210,252),paddingBottom:new P(ae[3],ae[2]),containerRowGap:new P(12,ae[3])},kl={title:new Ge("standardMedium","largeMedium")},Al=ue.getLocalizedStrings(),{dateFormat:{visual:zl},commonSetUp:Rl,companyPassport:Bl,common:{documents:Se,optional:ql}}=Al,o=Rl.businessVerification,Wl=o.sourceOfFundOptions,Ml=M.forwardRef(({fileProps:e,productType:p,allIndustries:u,companyDetails:m,connectedAccountProvider:C,businessVerificationProps:g,isDisabled:n,style:U,sectionId:h,showInfoTooltip:oe=!0,isCompleted:te=!1,showCompletedIcon:ie=!1,showTreasuryFields:H=!1,sectionHeader:G,optionalFields:s=[],onCompanyAddressClick:Q,onRegisteredAddressClick:V},re)=>{const f=ze(),F=le.labelWidth.value(f),_=le.mediumLabelWidth.value(f),b=le.largeLabelWidth.value(f),z=le.largeLabelDocumentWidth.value(f),y=o.productType[p],X=m?.companyFiles.find(d=>d.documentType==="certificate_of_incorporation"),Y=m?.companyFiles.find(d=>d.documentType==="tax_ein"),c=m?.companyFiles.find(d=>d.documentType==="company_formation_document"),j=m?.companyDescription,R=m?.companyLegalName,se=m?.website,q=m?.typeOfIncorporation,J=m?.incDate,L=m?.companyIndustry,me=m?.phone,K=m?.taxIdOrEIN,Z=m?.primaryContactLocalData,B=m?.deleteFileStatusById??{},ne=m?.updateFileStatusById??{},xe=m?.addressStatus?.addressToCreate,W=m?.registeredAddressStatus?.addressToCreate,[N,x]=M.useState(!1),[S,T]=M.useState(!1),D=d=>u.find(je=>je.code===d)?.name??d,we=d=>Wl[d]??d;return l.jsxs(Ul,{style:U,ref:re,windowSize:f,children:[l.jsx(Hl,{children:l.jsxs(ea,{children:[l.jsxs(Ql,{children:[ie===!0?l.jsx(Xl,{children:te?l.jsx(Yl,{}):l.jsx(Jl,{})}):null,l.jsx(Gl,{windowSize:f,children:G??o.confirmCompanyDetails})]}),oe?l.jsx(Kl,{children:l.jsx(Be,{variant:"small-description",display:"flex",maxWidth:"280px",data:o.confirmCompanyDetailsTooltip,placement:f==="small"||p==="onboarding"?"bottom":"right",children:l.jsx(Zl,{})})}):null,p==="onboarding"&&G!=null?l.jsx(Ke,{text:ql}):null,g?.companyVerificationStatus!=null?l.jsx(aa,{tagTitle:g.companyVerificationStatus.name,textColor:qe(g.companyVerificationStatus.code),showLoader:g?.isRefreshingViewInBackground}):null]})}),l.jsxs(la,{children:[l.jsx(Je,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyLegalNameLabel,width:b},text:{type:"text",name:v(h,"companyLegalName"),placeholder:o.companyLegalNamePlaceholder,defaultValue:R,options:{required:n==null&&s.includes("companyLegalName")===!1}},additionalInfoLabel:o.companyLegalNameError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyDescriptionLabel,width:_},text:{type:"text",name:v(h,"companyDescription"),placeholder:o.addProductPlaceholder,defaultValue:j,options:{required:n==null&&s.includes("companyDescription")===!1}},additionalInfoLabel:o.companyDescriptionError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(_e,{isDisabled:n,label:{label:o.companyAddressLabel,width:_},addressValueField:{name:v(h,"companyAddress"),placeholder:o.companyAddressPlaceholder,defaultValue:xe,registerOptions:{validate:d=>s.includes("companyAddress")===!1?!(n==null&&d==null):!0},onClick:()=>{Q?.("company_address")}},additionalInfoLabel:o.companyAddressError.replace("_product_type_",y),showAdditionalInfoLabel:!1}),l.jsx(I,{}),l.jsx(_e,{isDisabled:n,label:{label:o.registeredAddressLabel,width:_},addressValueField:{name:v(h,"registeredAddress"),placeholder:o.registeredAddressPlaceholder,defaultValue:W,registerOptions:{validate:d=>s.includes("registeredAddress")===!1?!(n==null&&d==null):!0},onClick:()=>{V?.("company_registered_address")}},additionalInfoLabel:o.registeredAddressError.replace("_product_type_",y),showAdditionalInfoLabel:!1}),l.jsx(I,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyWebsiteLabel,width:F},text:{type:"url",name:v(h,"companyWebsite"),placeholder:o.companyWebsitePlaceholder,defaultValue:se?.toString()??"",options:{required:n==null&&s.includes("companyWebsite")===!1}},additionalInfoLabel:o.companyWebsiteError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(Fe,{label:{label:o.companyIndustryLabel,width:F},singleSelectField:{singleSelect:{name:v(h,"companyIndustry"),placeholder:o.companyIndustryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:D,isDisabled:n,showTickMark:!1},defaultValue:{selectedOption:L,allOptions:u?.map(d=>d.code)??[]},registerOptions:{required:n==null&&s.includes("companyIndustry")===!1,validate:d=>s.includes("companyIndustry")===!1?!(n==null&&!d?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:o.companyIndustryError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(El,{label:{label:o.companyTypeOfIncorporationLabel,width:b},isDisabled:n,creatableSingleSelectField:{name:v(h,"typeOfIncorporation"),placeholder:o.companyTypeOfIncorporationPlaceholder,defaultValue:{selectedOption:q,allOptions:Bl.companyIncInfo.allTypesOfIncorporation},registerOptions:{required:n==null&&s.includes("typeOfIncorporation")===!1&&C==="unit",validate:d=>s.includes("typeOfIncorporation")===!1?!(n==null&&!d?.selectedOption):!0}},errorInfoLabel:o.companyTypeOfIncorporationError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(Me,{isDisabled:n,label:{label:o.companyIncDateLabel,width:b},style:{paddingBottom:le.paddingBottom.valuePx(f)},dateField:{name:v(h,"incDate"),placeholder:o.companyIncDatePlaceholder,defaultValue:J,dateFormat:zl.defaultInput,maxDate:Le.dateNow(),minDate:Le.zeniDate("01 Jan 1900"),autoComplete:"off",registerOptions:{required:n==null&&s.includes("incDate")===!1}},additionalInfoLabel:o.companyIncDateError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(Ue,{isDisabled:n,label:{label:o.companyPhoneLabel,width:F},text:{name:v(h,"companyPhone"),placeholder:ce(o.companyPhoneLabel),defaultValue:me,autoComplete:"new-password",options:{required:n==null&&s.includes("companyPhone")===!1}},errorInfoLabel:o.companyPhoneError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(We,{isDisabled:n,label:{label:o.companyPrimaryContactNameLabel,width:b},nameField:{name:v(h,"primaryContactName"),placeHolder:{firstName:o.firstNamePlaceholder,lastName:o.lastNamePlaceholder,name:o.namePlaceholder},defaultValue:{firstName:Z?.firstName??"",lastName:Z?.lastName??""},registerOptions:{required:n==null&&s.includes("primaryContactName")===!1,validate:d=>!!d||n!=null||s.includes("primaryContactName")},showFullNameError:!0},errorInfoLabel:o.companyPrimaryContactNameError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyPrimaryContactEmailLabel,width:b},text:{type:"email",name:v(h,"primaryContactEmail"),placeholder:o.companyPrimaryContactEmailPlaceholder,defaultValue:Z?.email,options:{required:n==null&&s.includes("primaryContactEmail")===!1}},additionalInfoLabel:o.companyPrimaryContactEmailError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyTaxIdLabel,width:F},text:{type:"text",name:v(h,"companyTaxId"),placeholder:o.companyTaxIdPlaceholder,defaultValue:K,options:{required:n==null&&s.includes("companyTaxId")===!1,pattern:Il},autoComplete:"new-password"},additionalInfoLabel:o.companyTaxIdError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx($e,{name:v(h,"certificateOfIncorporation"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:B,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.certificateOfIncorporation,width:z},filemetadataPayload:{documentType:"certificate_of_incorporation",purposeId:"business_verification",documentSide:"front"},file:X,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("certificateOfIncorporation")===!1&&C==="unit"},additionalInfoLabel:o.certOfIncopDocumentError.replace("_product_type_",y),hasError:N,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>x(d)}),N||!(n!=null||X!=null)?l.jsx(Oe,{windowSize:f,isError:N,children:Se.formatDocumentText10MB}):null,l.jsx(I,{}),l.jsx($e,{name:v(h,"ein"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:B,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.einDocument,width:z},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:Y,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("ein")===!1},additionalInfoLabel:o.einDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>T(d)}),S||!(n!=null||Y!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null,l.jsx(I,{}),H===!0?l.jsxs(l.Fragment,{children:[l.jsx(Fe,{label:{label:o.sourceOfFundsLabel,width:F},singleSelectField:{singleSelect:{name:v(h,"sourceOfFunds"),placeholder:o.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:we,isDisabled:n,showTickMark:!1,menuPlacement:"top",sortOptions:!1},defaultValue:{selectedOption:m?.sourceOfFunds,allOptions:Object.keys(o.sourceOfFundOptions)},registerOptions:{required:n==null&&s.includes("sourceOfFunds")===!1,validate:d=>s.includes("sourceOfFunds")===!1?!(n==null&&!d?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:o.sourceOfFundsError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx($e,{name:v(h,"formationDocument"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:B,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.formationDocumentLabel,width:z},filemetadataPayload:{documentType:"company_formation_document",purposeId:"business_verification",documentSide:"front"},file:c,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("formationDocument")===!1},additionalInfoLabel:o.formationDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>T(d)}),S||!(n!=null||c!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null]}):null]})]})});Ml.displayName="Company Details Section";const v=(e,p)=>`${e}.${p}`,Ul=t.div`
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: column;
|
|
14
14
|
row-gap: ${e=>le.containerRowGap.valuePx(e.windowSize)};
|
|
@@ -20,7 +20,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
|
|
|
20
20
|
background: ${e=>e.theme.colors.grey4};
|
|
21
21
|
border-radius: ${a.sp0} ${a.sp0} ${a.sp2} ${a.sp2};
|
|
22
22
|
text-align: ${e=>e.windowSize==="small"?"initial":"right"};
|
|
23
|
-
color: ${e=>e.isError?
|
|
23
|
+
color: ${e=>e.isError?Ce.important:e.theme.colors.grey1};
|
|
24
24
|
`,Gl=t.div`
|
|
25
25
|
${e=>`${kl.title.style(e.windowSize)}`};
|
|
26
26
|
display: flex;
|
|
@@ -35,7 +35,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
|
|
|
35
35
|
`,Yl=t(He)`
|
|
36
36
|
width: ${a.sp3};
|
|
37
37
|
height: ${a.sp3};
|
|
38
|
-
color: ${
|
|
38
|
+
color: ${Ce.success};
|
|
39
39
|
`,Jl=t.div`
|
|
40
40
|
height: 14px;
|
|
41
41
|
width: 14px;
|
|
@@ -74,7 +74,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
|
|
|
74
74
|
display: flex;
|
|
75
75
|
align-items: center;
|
|
76
76
|
justify-content: flex-end;
|
|
77
|
-
`,ta=(e,p)=>e.map(u=>({...u,value:u.userId,label:u.firstName!=""||u.lastName!=""?`${u.firstName} ${u.lastName}`:u.email})),ia=(e,p)=>({...e,value:e.userId,label:e.firstName!=""||e.lastName!=""?`${e.firstName} ${e.lastName}`:e.email});function ra({allUsers:e,onSelectedUserChanged:p,selectedUser:u,disable:m=!1,pickerStyles:{optionBackgroundColor:
|
|
77
|
+
`,ta=(e,p)=>e.map(u=>({...u,value:u.userId,label:u.firstName!=""||u.lastName!=""?`${u.firstName} ${u.lastName}`:u.email})),ia=(e,p)=>({...e,value:e.userId,label:e.firstName!=""||e.lastName!=""?`${e.firstName} ${e.lastName}`:e.email});function ra({allUsers:e,onSelectedUserChanged:p,selectedUser:u,disable:m=!1,pickerStyles:{optionBackgroundColor:C,selectedOptionBackgroundColor:g,optionTextStyle:n,titleTextStyle:U,backgroundColor:h,titleTextAlignment:oe,selectedOptionColor:te,customStyleConfig:ie}={},customization:{placeholderLabel:H}={},showAddUser:G=!0}){const s=Re(),[Q,V]=M.useState(!1),re=ta(e).sort((c,j)=>c.label.localeCompare(j.label)),f=u!=null?ia(u):void 0,F=C??s.colors.grey5,_=h??s.colors.grey5,b=g??s.colors.grey3,z=n??ye.smallRegular.cssObject,y=U??z,X={control:(c,j)=>({...c,border:0,height:"100%",backgroundColor:_,fill:j.selectProps.menuIsOpen===!0?s.colors.primary:s.colors.grey1,boxShadow:_,">div:last-child":{color:Q?s.colors.primary:s.colors.grey1},":active":{backgroundColor:_},":hover":{fill:s.colors.primary,">div:last-child":{color:s.colors.primary}},minHeight:"auto",cursor:"pointer",flexDirection:"column",">div>div>svg":{color:s.colors.grey1,">path":{color:s.colors.grey5,fill:"currentcolor"}}}),container:c=>({...c,backgroundColor:_,height:"100%"}),singleValue:c=>({...c,margin:0,minWidth:void 0,backgroundColor:void 0,">div":{borderRadius:0,padding:a.sp0,borderLeftStyle:"none",borderWidth:1,borderColor:s.colors.grey1,color:"unset"},">div>div>div>div:last-child":{display:"block",...ye.standardRegular.cssObject}}),valueContainer:c=>({...c,maxWidth:"100%",cursor:"pointer",height:"100%",...y,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:oe??"flex-start",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",">div":{width:"inherit"}}),menu:(c,j)=>({...c,backgroundColor:F,borderRadius:ae[1],boxShadow:`${a.sp0} 2px ${a.sp2} ${s.colors.dropShadowHover}`,whiteSpace:"nowrap",minWidth:"fit-content",zIndex:3,width:236,margin:`6px ${a.sp0}`,right:"-11%",">div":{flexDirection:"column",maxHeight:200,overflowY:"auto",borderRadius:a.sp1,padding:`${a.sp1} ${a.sp0}`,">div":{width:"-webkit-fill-available"}},...ie?.menu?.(c,j)}),menuList:c=>({...c,borderRadius:ae[1]}),placeholder:(c,j)=>({...c,margin:0,width:"100%",color:j.isFocused?s.colors.primary:"currentColor",paddingRight:a.sp2,...ye.standardRegular.cssObject,">div>div>svg>circle":{fill:s.colors.grey1}}),noOptionsMessage:c=>({...c,...ye.smallRegular.cssObject,padding:`10px ${a.sp3} 9px ${a.sp3}`,color:s.colors.hero}),option:(c,{isDisabled:j,isSelected:R,isFocused:se})=>({...c,...z,color:R?te??s.colors.champion:s.colors.hero,backgroundColor:R?b:se?s.colors.background:F,cursor:j?"not-allowed":R?"default":"pointer","svg:nth-of-type(2)":{display:"none"},":hover":{backgroundColor:s.colors.background,color:s.colors.primary},"& label":{paddingRight:"10px",cursor:j?"not-allowed":R?"inherit":"pointer"},">div>div>div:first-of-type":{display:"flex"}}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({}),indicatorsContainer:()=>({height:"100%",display:"flex",alignItems:"center"})},Y=({children:c,...j})=>l.jsxs(be.ValueContainer,{...j,children:[c,G===!0?l.jsxs(va,{hasSelectedUser:!!u,onClick:()=>{p(void 0),V(!1)},children:[l.jsx(ua,{}),l.jsx("div",{children:H??"Add User"})]}):null]});return l.jsx($l,{onClickAway:()=>{V(!1)},children:l.jsx(oa,{children:l.jsx(Sl,{isMulti:!1,menuPlacement:"auto",minMenuHeight:200,maxMenuHeight:200,menuIsOpen:Q,menuShouldScrollIntoView:!1,defaultValue:f,value:f,noOptionsMessage:()=>ue.getLocalizedStrings().cockpit.management.noPerson,onInputChange:c=>{c!==""&&V(!0)},onMenuOpen:()=>{V(!0)},placeholder:l.jsx(na,{children:l.jsx("div",{children:H??"Select..."})}),components:{Option:ya,DropdownIndicator:Ia,IndicatorSeparator:$a,SingleValue:wa,ValueContainer:ja,MenuList:Y},hideSelectedOptions:!1,closeMenuOnSelect:!1,styles:X,options:re,isDisabled:m,onChange:c=>{p(c),V(!1)},isClearable:!1,isSearchable:!1},Ol())})})}const sa=t.div``,na=t.div`
|
|
78
78
|
display: flex;
|
|
79
79
|
align-items: center;
|
|
80
80
|
color: ${e=>e.theme.colors.grey1};
|
|
@@ -92,16 +92,16 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
|
|
|
92
92
|
flex-direction: row;
|
|
93
93
|
align-items: center;
|
|
94
94
|
justify-content: space-between;
|
|
95
|
-
`,ua=t(
|
|
95
|
+
`,ua=t(Pl)`
|
|
96
96
|
height: ${a.sp4};
|
|
97
97
|
width: ${a.sp4};
|
|
98
98
|
margin-right: ${a.sp2};
|
|
99
99
|
color: inherit;
|
|
100
|
-
`,ma=t(
|
|
100
|
+
`,ma=t(Cl)`
|
|
101
101
|
height: 12px;
|
|
102
102
|
width: 12px;
|
|
103
103
|
color: ${e=>e.theme.colors.hero};
|
|
104
|
-
`,fa=t.div``,ha=t(
|
|
104
|
+
`,fa=t.div``,ha=t(Nl)`
|
|
105
105
|
width: 12px;
|
|
106
106
|
height: 12px;
|
|
107
107
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -110,7 +110,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
|
|
|
110
110
|
width: ${a.sp4};
|
|
111
111
|
border-radius: 50%;
|
|
112
112
|
justify-content: center;
|
|
113
|
-
`,ya=e=>{const{data:p,options:u,isSelected:m}=e,
|
|
113
|
+
`,ya=e=>{const{data:p,options:u,isSelected:m}=e,C=u.findIndex(g=>g.value===p.value);return l.jsx(sa,{children:l.jsx(be.Option,{...e,children:l.jsxs(pa,{children:[l.jsxs(ga,{children:[l.jsx(ba,{children:p?.photo!==void 0?l.jsx(Ze,{src:p?.photo.href,alt:ue.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=De},loading:"lazy"}):l.jsx(Pe,{firstName:p?.firstName??"",lastName:p?.lastName??"",size:`${a.sp4}`,index:C})}),l.jsx("label",{children:e.label})]}),!!m&&l.jsx(fa,{children:l.jsx(ha,{})})]})})})},ga=t.div`
|
|
114
114
|
width: 100%;
|
|
115
115
|
display: flex;
|
|
116
116
|
align-items: center;
|
|
@@ -118,12 +118,12 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
|
|
|
118
118
|
display: flex;
|
|
119
119
|
align-items: center;
|
|
120
120
|
margin-right: ${a.sp2};
|
|
121
|
-
`,xa=t(
|
|
121
|
+
`,xa=t(Ne)`
|
|
122
122
|
padding: ${a.sp0} ${a.sp2};
|
|
123
123
|
white-space: nowrap;
|
|
124
124
|
overflow: hidden;
|
|
125
125
|
text-overflow: ellipsis;
|
|
126
|
-
`,wa=({children:e,data:p,...u})=>{const{options:m}=u.selectProps,
|
|
126
|
+
`,wa=({children:e,data:p,...u})=>{const{options:m}=u.selectProps,C=m.findIndex(g=>g.value===p.value);return l.jsx(be.MultiValueLabel,{...u,children:l.jsxs(Sa,{children:[p?.photo!==void 0?l.jsx(Ze,{src:p?.photo.href,alt:ue.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=De},loading:"lazy"}):l.jsx(Pe,{firstName:p?.firstName??"",lastName:p?.lastName??"",size:`${a.sp4}`,index:C}),l.jsx(xa,{children:e})]})})},ja=({children:e,...p})=>l.jsxs(be.ValueContainer,{...p,children:[p.selectProps.value==null?l.jsx(da,{children:l.jsx(ca,{})}):null,e]}),va=t(Dl)`
|
|
127
127
|
color: ${e=>e.hasSelectedUser?e.theme.colors.hero:e.theme.colors.primary};
|
|
128
128
|
display: flex;
|
|
129
129
|
padding: ${a.sp2} 12px;
|
|
@@ -138,7 +138,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
|
|
|
138
138
|
display: flex;
|
|
139
139
|
flex-direction: row;
|
|
140
140
|
cursor: pointer;
|
|
141
|
-
`,pe={width:new
|
|
141
|
+
`,pe={width:new P(343,580,726),labelWidth:new P(115,145,155),largeLabelWidth:new P(160,240,240),veryLargeLabelWidth:new P(150,240,245),containerRowGap:new P(12,ae[3])},Oa={title:new Ge("standardMedium","largeMedium")};function Ja({companyOfficerData:e,isDisabled:p,allOfficers:u,allNationalityCountries:m,isRefreshingViewInBackground:C,connectedAccountProvider:g,style:n,isPopupOpen:U,sectionId:h,filesEndPoint:oe,authParams:te,showInfoTooltip:ie=!0,isCompleted:H=!1,showCompletedIcon:G=!1,showOfficerSelect:s=!0,showVerificationTag:Q=!0,isForTreasury:V=!1,isOverlay:re=!1,productType:f,companyTitles:F,sectionHeader:_,optionalFields:b=[],onOfficerAddressClick:z,onDeleteFile:y,onEditFileName:X,updateFilesEntity:Y,openPopup:c,onGetOtp:j,onVerifyOtp:R,onResendOtp:se,verifiedPhoneNumber:q,onPhoneVerified:J}){const L=ze(),me=Re(),{getValues:K,setValue:Z}=yl(),B=u.length>0,[ne,xe]=M.useState(!1),W=B?Object.values(e).findIndex(i=>i?.isSelectedForVerification===!0):0,N=`Officer_${W<0?1:W+1}`;M.useEffect(()=>{J!=null&&e[N]?.phone!=null&&e[N].isPhoneVerified===!0&&J(e[N]?.phone??"")},[]);const x=`${h}.${W}`,S=e[N],T=V?S?.treasuryUserVerificationStatus:S?.userVerificationStatus,D=u.find(i=>i.userId===S?.userId),we=u.sort((i,O)=>(i.firstName||i.lastName?`${i.firstName} ${i.lastName}`:i.email).localeCompare(O.firstName||O.lastName?`${O.firstName} ${O.lastName}`:O.email)),d=B?we.findIndex(i=>i.userId===S?.userId):0,je=e[N]?.deleteFileStatusById??{},el=e[N]?.updateFileStatusById??{},Ee=K(`${x}.selectDocument.selectDocumentType`),{common:{optional:ll},commonSetUp:{businessVerification:r},dateFormat:{visual:al},cockpit:ol}=ue.getLocalizedStrings(),k=f==="onboarding"?r.productType.business_verification:r.productType[f],de=pe.labelWidth.value(L),tl=pe.veryLargeLabelWidth.value(L),fe=pe.largeLabelWidth.value(L),il=L==="small"?r.companyRolePlaceholderSmall:r.companyRolePlaceholder,rl=L==="small"?r.protectedSsnTextSmall:r.protectedSsnText,$=T?.code==="pending_review"||T?.code==="verified"?"readonly":p,sl=$!=null||!B||T?.code==="require_info",nl=D?.firstName||D?.lastName?`${D?.firstName} ${D?.lastName}`:r.addOfficer,dl=S?.userId!=null?r.confirmIdentityDetails:r.confirmIdentityDetailsNewOfficer,cl={menu:()=>({right:"initial",left:0})},pl=i=>F.find(O=>O.code===i)?.name??i,ve=S?.otpverificationStatus?.fetchState,Ve=gl(ve);M.useEffect(()=>{J!=null&&Ve==="In-Progress"&&ve==="Completed"&&J(K(`${x}.phone`))},[Ve,ve]);const ul=(i,O)=>{R(i,O)},ml=()=>q==null||q===""?!1:K(`${x}.phone`)===q,fl=()=>{const i=K(`${x}.phone`);return i!=null&&!Ll(i)?r.phoneErrorForOnboarding:r.phoneError.replace("_product_type_",k)};return l.jsxs(La,{style:n,windowSize:L,children:[l.jsxs(Fa,{windowSize:L,isOverlay:re,children:[l.jsxs(Aa,{children:[l.jsxs(Da,{children:[G===!0?l.jsx(Pa,{children:H?l.jsx(Ca,{}):l.jsx(Na,{})}):null,l.jsx(_a,{windowSize:L,children:_??dl})]}),ie?l.jsx(Ea,{children:l.jsx(Be,{variant:"small-description",maxWidth:"275px",data:r.confirmIdentityDetailsTooltip,display:"flex",placement:L==="small"||f==="onboarding"?"bottom":"right",children:l.jsx(Va,{})})}):null,f==="onboarding"&&_!=null?l.jsx(Ke,{text:ll}):null,T!=null&&Q?l.jsx(Ba,{tagTitle:T?.name,textColor:qe(T.code),showLoader:C}):null]}),s?sl?B?l.jsxs(Ra,{children:[D?.photo!==void 0?l.jsx(Ta,{src:D?.photo.href,alt:ol.userProfileAltText,onError:({currentTarget:i})=>{i.onerror=null,i.src=De},loading:"lazy"}):l.jsx(Pe,{firstName:D?.firstName??"",lastName:D?.lastName??"",size:`${a.sp4}`,index:d}),l.jsx(Ae,{children:`${nl}`})]}):l.jsxs(qa,{children:[l.jsx(Wa,{children:l.jsx(Ma,{})}),l.jsx(Ae,{children:`${r.addOfficer}`})]}):l.jsx(ka,{children:l.jsx(ra,{selectedUser:D,allUsers:u,onSelectedUserChanged:i=>{const O=Object.values(e).findIndex(he=>he?.userId===i?.userId);Z(`${x}.isSelectedForVerification`,!1),Z(`${h}.${O}.isSelectedForVerification`,!0)},customization:{placeholderLabel:r.addOfficer},showAddUser:u.length<=9,pickerStyles:{backgroundColor:me.colors.grey5,selectedOptionBackgroundColor:me.colors.background,customStyleConfig:L==="small"?cl:void 0}})}):null]}),Object.values(e).map((i,O)=>{if(W!==O)return null;const he=bl(i?.documentTypeSelectedForVerification),Ie=i?.userFiles??[],hl=()=>q!=""&&f==="onboarding"?ml():i?.isPhoneVerified??!1;return l.jsxs(za,{children:[l.jsx(Je,{}),l.jsx(We,{isDisabled:$,label:{label:r.name,width:de},nameField:{name:E(x,"name"),placeHolder:{firstName:r.firstNamePlaceholder,lastName:r.lastNamePlaceholder,name:r.namePlaceholder},defaultValue:{firstName:i?.firstName??"",lastName:i?.lastName??""},registerOptions:{required:b.includes("name")===!1,validate:w=>b.includes("name")===!1?!!w:!0},showFullNameError:!0},errorInfoLabel:r.nameError.replace("_product_type_",k)}),l.jsx(A,{}),i?.userId==null?l.jsxs(l.Fragment,{children:[l.jsx(ee,{isDisabled:$,showAdditionalInfoLabel:!1,label:{label:r.email,width:de},text:{type:"email",name:E(x,"email"),placeholder:ce(r.email),defaultValue:i?.email,options:{required:b.includes("email")===!1}},additionalInfoLabel:r.emailDescription.replace("_product_type_",k)}),l.jsx(A,{})]}):null,l.jsx(Me,{isDisabled:$,label:{label:r.dobLabel,width:fe},dateField:{name:E(x,"dob"),type:"text",defaultValue:i?.birthday,placeholder:ce(r.dobLabel),dateFormat:al.defaultInput,maxDate:Le.dateNow().subtract(g==="unit"?18:13,"years"),registerOptions:{required:b.includes("dob")===!1},autoComplete:"off"},additionalInfoLabel:r.dobDescription.replace("_product_type_",k),isMasked:!0}),l.jsx(A,{}),l.jsx(xl,{isDisabled:$,label:{label:r.nationalityLabel,width:de},showAdditionalInfoLabel:f!=="onboarding",additionalInfoLabel:r.nationalityDescription.replace("_product_type_",k),countrySelectField:{name:E(x,"nationalityCountryCode"),placeholder:r.nationalityPlaceholder,defaultValue:wl(i?.nationalityCountryCode,m.map(w=>w.countryCode)),registerOptions:{validate:w=>!!(w!=null&&w.selectedOption)}}}),l.jsx(A,{}),l.jsx(_e,{isDisabled:$,label:{label:r.address,width:de},addressValueField:{name:E(x,"officerAddress"),placeholder:ce(r.address),defaultValue:i?.addressStatus?.addressToCreate,registerOptions:{validate:w=>b.includes("officerAddress")===!1?!($==null&&w==null):!0},onClick:()=>{z(i?.officerType.toLocaleLowerCase().concat("_address"))}},additionalInfoLabel:f==="onboarding"?r.addressAdditionInfo:r.addressError.replace("_product_type_",k),showAdditionalInfoLabel:!0}),l.jsx(A,{}),l.jsx(Ue,{isDisabled:$,label:{label:r.phone,width:de},text:{name:E(x,"phone"),placeholder:ce(r.phone),defaultValue:i?.phone,autoComplete:"new-password",options:{required:b.includes("phone")===!1}},errorInfoLabel:fl(),verificationErrorInfoLabel:r.phoneValidationError,isPopupOpen:U,phoneVerifyButtonProps:{otpChallenge:i?.otpChallenge,showOtpButton:g==="unit",onGetOtp:j,onVerifyOtp:ul,onResendOtp:se,isPhoneVerified:hl(),phoneVerificationStatus:i?.otpverificationStatus,getOtpStatus:i?.sendOtpStatus,openPopup:c,verifiedPhoneNumber:q,focusNotRequired:!0}}),l.jsx(A,{}),l.jsx(Fe,{label:{label:r.companyRoleLabel,width:fe},singleSelectField:{singleSelect:{name:E(x,"role"),placeholder:il,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:pl,isDisabled:$,showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:i?.titleAtCompany,allOptions:F?.map(w=>w.code)??[]},registerOptions:{required:b.includes("role")===!1,validate:w=>b.includes("role")===!1?!($==null&&!w?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:r.companyRoleDescription.replace("_product_type_",k)}),l.jsx(A,{}),l.jsx(Te,{isDisabled:$,showAdditionalInfoLabel:!1,label:{label:r.companyOwnershipLabel,width:fe},formattedTextField:{type:"number",name:E(x,"ownership"),defaultValue:i?.ownershipInCompany,placeholder:r.companyOwnershipPlaceholder,returnValueType:"floatValue",suffix:"%",allowNegative:!1,isNumericString:!1,registerOptions:{required:b.includes("ownership")===!1,validate:w=>w!=null?w>0&&w<=100:!0,max:100},autoComplete:"new-password"},additionalInfoLabel:f==="onboarding"?r.companyOwnershipDescriptionForOnboarding:r.companyOwnershipDescription}),l.jsx(A,{}),l.jsx(Te,{isDisabled:$,showAdditionalInfoLabel:!1,label:{label:r.ssnLabel,width:fe},formattedTextField:{type:"text",name:E(x,"ssn"),placeholder:r.addSSNPlaceholder,defaultValue:i?.ssn,format:"###-##-####",registerOptions:{required:b.includes("ssn")===!1,pattern:jl},autoComplete:"new-password",maxLength:9,allowLeadingZeros:!0},protectedInfoText:$!=null&&i?.ssn?rl:void 0,additionalInfoLabel:r.ssnDescription.replace("_product_type_",k),isMasked:!0}),l.jsx(A,{}),l.jsx(vl,{name:E(x,"selectDocument"),officerIndex:W,sizeLimit:ge,filesEndPoint:oe,authParams:te,onEditFileName:X,acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],label:{width:tl},allFiles:Ie,updateFilesEntity:Y,deleteFileStatusById:je,updateFileStatusById:el,onDeleteFile:y,isDisabled:$,menuPlacement:f==="onboarding"&&he==null?"top":"auto",defaultValue:{defaultSelectDocumentType:he,allSelectDocumentType:["driverLicense","passport","ssnCard"],files:{front:ke(!0,Ie,Ee),back:ke(!1,Ie,Ee)}},registerOptions:{required:b.includes("selectDocument")===!1},hasError:ne,additionalInfoLabel:r.companyIdDescription.replace("_product_type_",k),onFileSizeError:w=>xe(w),isPopupOpen:U,openPopup:c,companyOfficerName:{firstName:i?.firstName??"",lastName:i?.lastName??""}})]},x)})]})}const E=(e,p)=>`${e}.${p}`,La=t.div`
|
|
142
142
|
display: flex;
|
|
143
143
|
flex-direction: column;
|
|
144
144
|
row-gap: ${e=>pe.containerRowGap.valuePx(e.windowSize)};
|
|
@@ -158,13 +158,13 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
|
|
|
158
158
|
`,Da=t.div`
|
|
159
159
|
display: flex;
|
|
160
160
|
align-items: center;
|
|
161
|
-
`,
|
|
161
|
+
`,Pa=t.div`
|
|
162
162
|
margin-right: ${a.sp2};
|
|
163
|
-
`,
|
|
163
|
+
`,Ca=t(He)`
|
|
164
164
|
width: ${a.sp3};
|
|
165
165
|
height: ${a.sp3};
|
|
166
|
-
color: ${
|
|
167
|
-
`,
|
|
166
|
+
color: ${Ce.success};
|
|
167
|
+
`,Na=t.div`
|
|
168
168
|
height: 14px;
|
|
169
169
|
width: 14px;
|
|
170
170
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
@@ -202,7 +202,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
|
|
|
202
202
|
background-color: ${e=>e.theme.colors.grey3};
|
|
203
203
|
min-height: 1px;
|
|
204
204
|
max-height: 1px;
|
|
205
|
-
`,Ra=t(
|
|
205
|
+
`,Ra=t(Ne)`
|
|
206
206
|
display: flex;
|
|
207
207
|
flex-direction: row;
|
|
208
208
|
justify-content: flex-end;
|
|
@@ -213,10 +213,10 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
|
|
|
213
213
|
white-space: nowrap;
|
|
214
214
|
overflow: hidden;
|
|
215
215
|
text-overflow: ellipsis;
|
|
216
|
-
`,
|
|
216
|
+
`,Ba=t(Xe)`
|
|
217
217
|
width: max-content;
|
|
218
218
|
margin-left: ${a.sp3};
|
|
219
|
-
`,
|
|
219
|
+
`,qa=t(Ne)`
|
|
220
220
|
display: flex;
|
|
221
221
|
flex-direction: row;
|
|
222
222
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r,
|
|
1
|
+
import{j as r,U as x,V as M,Y as f,M as p,o as s,a8 as w,v as g,a9 as j}from"./index-DEtloYMb.js";import{b as t,n as o}from"./vendor-CnQcJ2Lu.js";import{c as H}from"./SummaryCard-oqK_zyxl-DP8NWbIJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./ReloadCard-CqyGWGqs-B2pPTz9i.js";const v=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M25.8382 19.5283C25.8382 19.5283 31.0943 15.1988 31.0943 12.6045C31.0943 11.998 30.7236 11.9138 30.2856 11.9138H20.0263V6.72512C20.0263 6.27027 19.6556 5.9165 19.2176 5.9165H2.74197C2.28712 5.9165 1.93335 6.28712 1.93335 6.72512V20.3706C1.93335 20.8255 2.30397 21.1792 2.74197 21.1792H11.182V27.1765H30.3025C30.7573 27.1765 31.1111 26.8733 31.1111 26.4858C31.0943 24.5822 27.4892 20.9434 25.8382 19.5283Z",fill:"#95C1B7"}),t.createElement("path",{d:"M18.9987 20.1516H1.69754C1.24269 20.1516 0.888916 19.781 0.888916 19.343V5.69754C0.888916 5.24269 1.25953 4.88892 1.69754 4.88892H18.19C18.6449 4.88892 18.9987 5.25953 18.9987 5.69754V20.1516Z",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10,strokeLinejoin:"round"}),t.createElement("path",{d:"M18.9987 10.8862H29.2581C29.7129 10.8862 30.0667 10.9705 30.0667 11.5769C30.0667 14.1713 24.8107 18.5007 24.8107 18.5007C26.4616 19.9158 30.0667 23.5546 30.0667 25.4583C30.0667 25.8457 29.6961 26.149 29.2581 26.149H10.1376V20.1517",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M18.9987 20.1516L10.1376 26.1489",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M14.8545 16.3949H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 12.5203H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 8.62878H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),B=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M29.1471 12.9199H19.384V2.69038C19.384 2.2561 19.0302 1.91833 18.612 1.91833H4.13618C3.7019 1.91833 3.36414 2.27219 3.36414 2.69038V30.3391C3.36414 30.7734 3.71799 31.1112 4.13618 31.1112H17.5665H18.612H29.1471C29.5814 31.1112 29.9192 30.7573 29.9192 30.3391V13.692C29.9192 13.2738 29.5653 12.9199 29.1471 12.9199Z",fill:"#97C3B9"}),t.createElement("path",{d:"M26.2595 15.4934H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 25H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 20H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 15H5.53552",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 25H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 20H21",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 10H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 5.36316H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M18.242 30.0978V1.66096C18.242 1.22668 17.8882 0.888916 17.47 0.888916H2.99421C2.55994 0.888916 2.22217 1.24277 2.22217 1.66096V29.3097C2.22217 29.744 2.57602 30.0818 2.99421 30.0818H17.47",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M16.4246 30.0978H28.0052C28.4395 30.0978 28.7772 29.744 28.7772 29.3258V12.6625C28.7772 12.2283 28.4234 11.8905 28.0052 11.8905H18.1617",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10})),L=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M16.3966 31.1111C24.5135 31.1111 31.0936 24.5311 31.0936 16.4141C31.0936 8.29723 24.5135 1.71716 16.3966 1.71716C8.27965 1.71716 1.69958 8.29723 1.69958 16.4141C1.69958 24.5311 8.27965 31.1111 16.3966 31.1111Z",fill:"#97C3B9"}),t.createElement("path",{d:"M15.5859 30.2829C23.7028 30.2829 30.2829 23.7028 30.2829 15.5859C30.2829 7.46898 23.7028 0.888916 15.5859 0.888916C7.46898 0.888916 0.888916 7.46898 0.888916 15.5859C0.888916 23.7028 7.46898 30.2829 15.5859 30.2829Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M3.76135 15.9559C3.76135 20.1148 6.01701 23.745 9.36524 25.6834",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M8.81897 19.9034C8.81897 17.3658 11.85 15.304 15.5859 15.304C19.3219 15.304 22.3529 17.3658 22.3529 19.9034C22.3529 24.8729 8.81897 24.9257 8.81897 19.9034Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M15.5859 13.2245C17.1626 13.2245 18.4407 11.9464 18.4407 10.3697C18.4407 8.79304 17.1626 7.51489 15.5859 7.51489C14.0092 7.51489 12.7311 8.79304 12.7311 10.3697C12.7311 11.9464 14.0092 13.2245 15.5859 13.2245Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M27.0404 15.6035C27.0404 11.4446 24.7848 7.81443 21.4365 5.87598",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),y=[{key:"company_legal_name",title:p.getLocalizedStrings().companyPassportCard.legalName,Icon:B},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon:L},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon:v}],D=o(w)`
|
|
2
2
|
margin: ${s.sp5};
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
`,W=o.div`
|
|
@@ -39,4 +39,4 @@ import{j as r,V as x,W as M,Y as f,M as p,o as s,a8 as w,v as g,a9 as j}from"./i
|
|
|
39
39
|
width: 100%;
|
|
40
40
|
height: 1px;
|
|
41
41
|
background-color: ${e=>e.theme.colors.grey3};
|
|
42
|
-
`;function
|
|
42
|
+
`;function F({card:e,actions:l,data:c,dndProps:n}){return r.jsx(x,{isDragging:n?.draggedCardType!=null,isDragOver:n?.dragOverCard===e.cardType,draggable:!0,onDragStart:i=>n?.onDragStart(e.cardType,i),onDragOver:i=>n?.onDragOver(i,e.cardType),onDragLeave:i=>n?.onDragLeave(i),onDrop:i=>n?.onDrop(i,e.cardType),dimension:e.dimension,children:r.jsx(H,{card:e,actions:l,children:r.jsx(M,{dimension:e.dimension,style:{cursor:"pointer"},onClick:()=>l.onCardClick(e.cardIndex,e.cardType),"data-testid":f("dashboard",e.cardType),children:r.jsxs(D,{children:[r.jsx(W,{children:r.jsx(V,{children:p.getLocalizedStrings().companyPassportCard.title})}),y.map((i,d)=>{const{title:m,key:a,Icon:h}=i;return r.jsxs(I,{children:[r.jsxs(b,{children:[r.jsx($,{children:r.jsx(h,{height:s.sp5,width:s.sp5})}),r.jsxs(N,{children:[r.jsx(A,{children:m}),r.jsx(S,{data:c?.companyView,itemKey:a})]})]}),d!==y.length-1?r.jsx(O,{}):null]},i.key)})]})})})},e.cardIndex)}const S=({itemKey:e,data:l})=>{const c=l?.companyOfficers,n=l?.company,i=n?.company.companyInfo,d=n?.company.incInfo,m=()=>r.jsx(T,{children:"—"});switch(e){case"company_legal_name":return i?.companyLegalName==null||i.companyLegalName===""?r.jsx(m,{}):r.jsx(k,{children:i?.companyLegalName});case"company_officer":{if(c==null||c?.length===0)return r.jsx(m,{});const a=c.slice(0,10).sort((u,E)=>u.user.createTime?.isAfter(E.user.createTime)===!0?1:-1),h=[a[0].user.firstName,a[0].user.lastName].join("").trim();return r.jsxs(k,{children:[a[0].user.firstName!=null&&a[0].user.firstName!==""?r.jsxs(C,{children:[a[0].user.firstName," "]}):null,r.jsx(C,{children:a[0].user.lastName}),a[0].user.email!=null?r.jsx(C,{children:`${h.length>0?", ":""}${a[0].user.email}`}):null]})}case"company_inc":return d?.companyIncType==null||d.companyIncType===""?r.jsx(m,{}):r.jsx(k,{children:d?.companyIncType});default:return null}};export{F as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as P,u as Ae,a5 as ca,a as da,c3 as pa,M as k,j as a,aW as ma,F as ua,c4 as ha,l as V,a7 as fa,C as m,c5 as xa,a6 as Ce,o as t,
|
|
1
|
+
import{X as P,u as Ae,a5 as ca,a as da,c3 as pa,M as k,j as a,aW as ma,F as ua,c4 as ha,l as V,a7 as fa,C as m,c5 as xa,a6 as Ce,o as t,t as ae,c6 as z,c7 as ze,c8 as L,c9 as ya,ca as qe,cb as ga,cc as ba,cd as Ue,y as $a,ce as wa,cf as He,cg as Ge,ch as Ia,ci as ja,cj as va,g as N,ck as Sa,cl as Da,aM as Oa,a9 as Ca,as as U,cm as Fe,q as p,v as Ze,K as Me,cn as Fa,H as ka,co as Ta,cp as Na,b1 as Pa,cq as La,ah as za,cr as Ma,m as Ea,b2 as R,cs as Va,r as de,a$ as Ba}from"./index-DEtloYMb.js";import{b as _,n as s,f as Wa,k as _a}from"./vendor-CnQcJ2Lu.js";import{I as Ke}from"./LabeledCreatableSingleSelectField-CCXfjgxP-BI63rs1t.js";import{Y as Xe}from"./LabeledDocumentField-aYYBY16j-D9fngETw.js";import{$ as Je}from"./LabeledAddressValue-Dtw8vM0g-D81z6ltq.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Qe={maxWidth:new m(280,340),contentMaxWidth:new m(200,255)},Ra=_a`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateX(100%)
|
|
4
4
|
}
|
|
@@ -37,9 +37,9 @@ import{X as P,u as Ae,a5 as ca,a as da,c3 as pa,M as k,j as a,aW as ma,F as ua,c
|
|
|
37
37
|
`,Ga=s.div`
|
|
38
38
|
max-width: ${e=>Qe.contentMaxWidth.valuePx(e.windowSize)};
|
|
39
39
|
margin: ${t.sp0} ${t.sp3};
|
|
40
|
-
`,
|
|
40
|
+
`,Za=s(Oa)`
|
|
41
41
|
color: ${e=>e.isSuccess?N.success:N.important};
|
|
42
|
-
`,
|
|
42
|
+
`,Ka=s.div`
|
|
43
43
|
width: ${t.sp3};
|
|
44
44
|
height: ${t.sp3};
|
|
45
45
|
cursor: pointer;
|
|
@@ -47,7 +47,7 @@ import{X as P,u as Ae,a5 as ca,a as da,c3 as pa,M as k,j as a,aW as ma,F as ua,c
|
|
|
47
47
|
&:hover {
|
|
48
48
|
color: ${N.primaryDark};
|
|
49
49
|
}
|
|
50
|
-
`,
|
|
50
|
+
`,Xa=e=>{const o=k.getLocalizedStrings().companyPassport.snackBar;return e==="Error"?o.failedText:o.successText};function Ja(e){const o=P(),{fetchState:l,onRemoveSnackbar:i}=e;_.useEffect(()=>{setTimeout(i,5e3)});const n=k.getLocalizedStrings().companyPassport.snackBar,c=l==="Completed";return a.jsxs(Ya,{windowSize:o,children:[c?a.jsx(Aa,{}):a.jsx(qa,{}),a.jsxs(Ga,{windowSize:o,children:[a.jsx(Za,{isSuccess:c,children:c?n.success:n.error}),a.jsx(Ua,{children:a.jsx(Ha,{children:Xa(l)})})]}),a.jsx(Ka,{onClick:i,children:a.jsx(Ce,{})})]})}const ne={labelWidth:new m(110,145,180),largeLabelWidth:new m(150,215,215),largeLabelDocumentWidth:new m(150,210,252),paddingBottom:new m(p[3],p[2])};function Qa(e){const o=P(),[l,i]=_.useState(!1),{companyPassport:n,commonSetUp:{businessVerification:c},common:{documents:f}}=k.getLocalizedStrings(),{fileProps:d,companyFiles:r,deleteFileStatusById:u,updateFileStatusById:y,sectionId:b,isDisabled:h,companyIncInfo:$,style:I}=e,D=ne.labelWidth.value(o),j=ne.largeLabelWidth.value(o),g=ne.largeLabelDocumentWidth.value(o),{dateFormat:{visual:O},companyPassport:S}=k.getLocalizedStrings(),x=r.find(X=>X.documentType==="certificate_of_incorporation"),B=o==="small"?n.companyIncInfo.stateOfIncPlaceholderSmall:n.companyIncInfo.stateOfIncPlaceholder,me=o==="small"?n.companyIncInfo.typeOfIncPlaceholderSmall:n.companyIncInfo.typeOfIncPlaceholder;return a.jsxs(et,{style:I,children:[a.jsx(tt,{children:n.companyIncInfo.title}),a.jsxs(at,{children:[a.jsx(Ke,{label:{label:S.companyIncInfo.typeOfInc,width:j},isDisabled:h,creatableSingleSelectField:{name:re(b,"typeOfInc"),placeholder:me,defaultValue:{selectedOption:$?.typeOfInc,allOptions:n.companyIncInfo.allTypesOfIncorporation}}}),a.jsx(he,{}),a.jsx(ga,{label:{label:S.companyIncInfo.stateOfInc,width:j},isDisabled:h,singleSelectField:{name:re(b,"stateOfInc"),placeholder:B,defaultValue:{selectedOption:$?.stateOfInc,allOptions:n.companyIncInfo.allStatesOfIncorporation}}}),a.jsx(he,{}),a.jsx(ba,{isDisabled:h,label:{label:n.companyIncInfo.incDate,width:D},style:{paddingBottom:ne.paddingBottom.valuePx(o)},dateField:{name:re(b,"incDate"),placeholder:L(n.companyIncInfo.incDate),defaultValue:$?.incDate,dateFormat:O.defaultInput,maxDate:V.dateNow(),minDate:V.zeniDate("01 Jan 1900"),autoComplete:"off"}}),a.jsx(he,{}),a.jsx(Xe,{name:re(b,"certificateOfIncorporation"),isDisabled:h,sizeLimit:Ue,deleteFileStatusById:u,updateFileStatusById:y,filesEndPoint:d.filesEndPoint,authParams:d.authParams,label:{label:c.certificateOfIncorporation,width:g},filemetadataPayload:{documentType:"certificate_of_incorporation",purposeId:"business_verification",documentSide:"front"},file:x,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:l,updateFilesEntity:d.updateFilesEntity,onEditFileName:d.onEditFileName,onDeleteFile:d.onDeleteFile,onFileSizeError:X=>i(X)}),a.jsx(ot,{windowSize:o,isError:l,children:f.formatDocumentText10MB})]})]})}const re=(e,o)=>`${e}.${o}`,et=s.div`
|
|
51
51
|
display: flex;
|
|
52
52
|
flex-direction: column;
|
|
53
53
|
padding-top: ${t.sp3};
|
|
@@ -68,7 +68,7 @@ import{X as P,u as Ae,a5 as ca,a as da,c3 as pa,M as k,j as a,aW as ma,F as ua,c
|
|
|
68
68
|
background-color: ${e=>e.theme.colors.grey3};
|
|
69
69
|
min-height: 1px;
|
|
70
70
|
max-height: 1px;
|
|
71
|
-
`,ot=s(
|
|
71
|
+
`,ot=s(Ze)`
|
|
72
72
|
padding: ${t.sp1} ${t.sp4};
|
|
73
73
|
background: ${e=>e.theme.colors.grey4};
|
|
74
74
|
border-radius: ${t.sp0} ${t.sp0} ${t.sp2} ${t.sp2};
|
|
@@ -91,17 +91,17 @@ import{X as P,u as Ae,a5 as ca,a as da,c3 as pa,M as k,j as a,aW as ma,F as ua,c
|
|
|
91
91
|
width: fit-content;
|
|
92
92
|
margin-left: auto;
|
|
93
93
|
margin-bottom: ${t.sp2};
|
|
94
|
-
`,nt=e=>{const{labels:o,style:l,listStyleType:i="disc"}=e;return a.jsx(lt,{style:{...l,listStyleType:i},children:o.filter(n=>n!=null&&n.text!="").map((n,c)=>a.jsxs(it,{isCancelled:n.status==="cancelled",children:[n.text,n.subText!=null?a.jsxs(st,{children:["Started: ",n.subText]}):null]},`${n.text}_${c}`))})},
|
|
94
|
+
`,nt=e=>{const{labels:o,style:l,listStyleType:i="disc"}=e;return a.jsx(lt,{style:{...l,listStyleType:i},children:o.filter(n=>n!=null&&n.text!="").map((n,c)=>a.jsxs(it,{isCancelled:n.status==="cancelled",children:[n.text,n.subText!=null?a.jsxs(st,{children:["Started: ",n.subText]}):null]},`${n.text}_${c}`))})},K={width:new m(343,580,726),paddingTopBottom:new m(p[3],p[3]),marginRight:new m(p[2],p[2]),labelMarginLeft:new m(p[3],p[4]),labelMarginRight:new m(p[3],p[4])};function pe({isDisabled:e,label:o,bullettedLabels:l,style:i}){const n=P();return l.labels.length>0?a.jsxs(rt,{size:n,style:i,children:[a.jsx(Fe,{isDisabled:e,label:o.label,style:{marginLeft:K.labelMarginLeft.value(n),marginRight:K.labelMarginRight.value(n),width:o.width??"auto"}}),a.jsx(nt,{...l,style:{maxWidth:o.width!=null?`calc(100% - ${o.width}px)`:"auto"}})]}):null}const rt=s.div`
|
|
95
95
|
display: flex;
|
|
96
96
|
flex-direction: row;
|
|
97
97
|
align-items: flex-start;
|
|
98
98
|
justify-content: space-between;
|
|
99
99
|
background-color: ${e=>e.theme.colors.grey5};
|
|
100
|
-
width: ${e=>
|
|
100
|
+
width: ${e=>K.width.valuePx(e.size)};
|
|
101
101
|
height: auto;
|
|
102
|
-
padding-right: ${e=>
|
|
103
|
-
padding-top: ${e=>
|
|
104
|
-
padding-bottom: ${e=>
|
|
102
|
+
padding-right: ${e=>K.marginRight.valuePx(e.size)};
|
|
103
|
+
padding-top: ${e=>K.paddingTopBottom.valuePx(e.size)};
|
|
104
|
+
padding-bottom: ${e=>K.paddingTopBottom.valuePx(e.size)};
|
|
105
105
|
|
|
106
106
|
:first-of-type {
|
|
107
107
|
border-top-left-radius: inherit;
|
|
@@ -112,7 +112,7 @@ import{X as P,u as Ae,a5 as ca,a as da,c3 as pa,M as k,j as a,aW as ma,F as ua,c
|
|
|
112
112
|
border-bottom-left-radius: inherit;
|
|
113
113
|
border-bottom-right-radius: inherit;
|
|
114
114
|
}
|
|
115
|
-
`,fe={labelWidth:new m(110,110,140),mediumLabelWidth:new m(140,140,160),largeLabelWidth:new m(170,170,180)},{companyPassport:v,dateFormat:{analytics:Ee}}=k.getLocalizedStrings();function ct({companyViewData:e,allIndustries:o,companyInfo:l,companyAddress:i,sectionId:n,isDisabled:c,onCompanyAddressClick:f,style:d}){const r=P(),u=e.company.company.companyInfo,y=fe.labelWidth.value(r),b=fe.mediumLabelWidth.value(r),h=fe.largeLabelWidth.value(r),$=r==="small"?v.companyInfo.businessModelPlaceholderSmall:v.companyInfo.businessModelPlaceholder,I=D=>o.find(j=>j.code===D)?.name??D;return a.jsxs(pt,{style:d,children:[a.jsx(ut,{children:v.companyInfo.title}),a.jsxs(mt,{children:[a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.companyName,width:h},text:{type:"text",name:G(n,"companyName"),placeholder:L(v.companyInfo.companyName),defaultValue:l?.companyName,autoComplete:"new-password",options:{required:!!u.name,pattern:ze}}}),a.jsx(q,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.legalName,width:b},text:{type:"text",name:G(n,"legalName"),placeholder:L(v.companyInfo.legalName),defaultValue:l?.legalName,autoComplete:"new-password",options:{required:!!u.companyLegalName,pattern:ze}}}),a.jsx(q,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.website,width:y},text:{type:"url",name:G(n,"website"),placeholder:L(v.companyInfo.website),defaultValue:l?.website?.toString()??"",autoComplete:"new-password"}}),a.jsx(q,{}),a.jsx(ya,{label:{label:v.companyInfo.industry,width:y},singleSelectField:{singleSelect:{name:G(n,"industry"),placeholder:v.companyInfo.industryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:I,isDisabled:c,showTickMark:!1},defaultValue:{selectedOption:l?.industry,allOptions:o?.map(D=>D.code)??[]}},isFunctional:!0}),a.jsx(q,{}),a.jsx(
|
|
115
|
+
`,fe={labelWidth:new m(110,110,140),mediumLabelWidth:new m(140,140,160),largeLabelWidth:new m(170,170,180)},{companyPassport:v,dateFormat:{analytics:Ee}}=k.getLocalizedStrings();function ct({companyViewData:e,allIndustries:o,companyInfo:l,companyAddress:i,sectionId:n,isDisabled:c,onCompanyAddressClick:f,style:d}){const r=P(),u=e.company.company.companyInfo,y=fe.labelWidth.value(r),b=fe.mediumLabelWidth.value(r),h=fe.largeLabelWidth.value(r),$=r==="small"?v.companyInfo.businessModelPlaceholderSmall:v.companyInfo.businessModelPlaceholder,I=D=>o.find(j=>j.code===D)?.name??D;return a.jsxs(pt,{style:d,children:[a.jsx(ut,{children:v.companyInfo.title}),a.jsxs(mt,{children:[a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.companyName,width:h},text:{type:"text",name:G(n,"companyName"),placeholder:L(v.companyInfo.companyName),defaultValue:l?.companyName,autoComplete:"new-password",options:{required:!!u.name,pattern:ze}}}),a.jsx(q,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.legalName,width:b},text:{type:"text",name:G(n,"legalName"),placeholder:L(v.companyInfo.legalName),defaultValue:l?.legalName,autoComplete:"new-password",options:{required:!!u.companyLegalName,pattern:ze}}}),a.jsx(q,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.website,width:y},text:{type:"url",name:G(n,"website"),placeholder:L(v.companyInfo.website),defaultValue:l?.website?.toString()??"",autoComplete:"new-password"}}),a.jsx(q,{}),a.jsx(ya,{label:{label:v.companyInfo.industry,width:y},singleSelectField:{singleSelect:{name:G(n,"industry"),placeholder:v.companyInfo.industryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:I,isDisabled:c,showTickMark:!1},defaultValue:{selectedOption:l?.industry,allOptions:o?.map(D=>D.code)??[]}},isFunctional:!0}),a.jsx(q,{}),a.jsx(Ke,{isDisabled:c,label:{label:v.companyInfo.businessModel,width:h},creatableSingleSelectField:{name:G(n,"businessModel"),placeholder:$,defaultValue:{selectedOption:l?.businessModel,allOptions:v.companyInfo.allBusinessModels}}}),a.jsx(q,{}),a.jsx(Je,{isDisabled:c,label:{label:v.companyInfo.address,width:y},addressValue:{placeholder:L(v.companyInfo.address),address:i?.addressToCreate,onClick:()=>f("company_address")}}),a.jsx(q,{}),a.jsx(qe,{isDisabled:c,label:{label:v.companyInfo.phone,width:y},text:{name:G(n,"phone"),placeholder:L(v.companyInfo.phone),defaultValue:l?.phone,autoComplete:"new-password"}}),a.jsx(q,{}),a.jsx(pe,{label:{label:v.companyInfo.fiscalYear,width:y},bullettedLabels:{labels:[{text:dt(l?.firstMonthOfFY??1)}],listStyleType:"none"}})]})]})}const dt=e=>{const{fiscalYearMonths:o}=V.getFYMonths(e);return`${V.dateNow().month(o[0]-1).format(Ee.MMMFormat)} to ${V.dateNow().month(o[11]-1).format(Ee.MMMFormat)}`},G=(e,o)=>`${e}.${o}`,pt=s.div`
|
|
116
116
|
display: flex;
|
|
117
117
|
flex-direction: column;
|
|
118
118
|
padding-top: ${t.sp3};
|
|
@@ -133,7 +133,7 @@ import{X as P,u as Ae,a5 as ca,a as da,c3 as pa,M as k,j as a,aW as ma,F as ua,c
|
|
|
133
133
|
background-color: ${e=>e.theme.colors.grey3};
|
|
134
134
|
min-height: 1px;
|
|
135
135
|
max-height: 1px;
|
|
136
|
-
`,be={labelWidth:new m(110,110,140),buttonWidth:new m(70,70)};function ht({sectionId:e,isDisabled:o,style:l,officer:i,officerAddress:n,isEmptyCompanyOfficerSection:c,onOfficerAddressClick:f}){const d=P(),r=k.getLocalizedStrings().companyPassport,u=be.labelWidth.value(d),y=c&&(i==null||!i.firstName&&!i.lastName&&!i.phone&&!i.email&&!n),b=i?.userId==null||i?.userId==="";return a.jsxs(bt,{style:l,children:[a.jsx(He,{isDisabled:o,label:{label:r.companyOfficer.name,width:u},nameField:{name:xe(e,"name"),placeHolder:{firstName:r.companyOfficer.firstNamePlaceholder,lastName:r.companyOfficer.lastNamePlaceholder,name:r.companyOfficer.namePlaceholder},defaultValue:{firstName:i?.firstName??"",lastName:i?.lastName??""},autoComplete:"new-password",registerOptions:{required:y!==!0},showFullNameError:!0}}),a.jsx(ye,{}),a.jsx(z,{isDisabled:b?o:"readonly",label:{label:r.companyOfficer.email,width:u},text:{type:"email",name:xe(e,"email"),placeholder:L(r.companyOfficer.email),options:{required:y===!0?!1:b},defaultValue:i?.email,autoComplete:"new-password"}}),a.jsx(ye,{}),a.jsx(
|
|
136
|
+
`,be={labelWidth:new m(110,110,140),buttonWidth:new m(70,70)};function ht({sectionId:e,isDisabled:o,style:l,officer:i,officerAddress:n,isEmptyCompanyOfficerSection:c,onOfficerAddressClick:f}){const d=P(),r=k.getLocalizedStrings().companyPassport,u=be.labelWidth.value(d),y=c&&(i==null||!i.firstName&&!i.lastName&&!i.phone&&!i.email&&!n),b=i?.userId==null||i?.userId==="";return a.jsxs(bt,{style:l,children:[a.jsx(He,{isDisabled:o,label:{label:r.companyOfficer.name,width:u},nameField:{name:xe(e,"name"),placeHolder:{firstName:r.companyOfficer.firstNamePlaceholder,lastName:r.companyOfficer.lastNamePlaceholder,name:r.companyOfficer.namePlaceholder},defaultValue:{firstName:i?.firstName??"",lastName:i?.lastName??""},autoComplete:"new-password",registerOptions:{required:y!==!0},showFullNameError:!0}}),a.jsx(ye,{}),a.jsx(z,{isDisabled:b?o:"readonly",label:{label:r.companyOfficer.email,width:u},text:{type:"email",name:xe(e,"email"),placeholder:L(r.companyOfficer.email),options:{required:y===!0?!1:b},defaultValue:i?.email,autoComplete:"new-password"}}),a.jsx(ye,{}),a.jsx(Je,{isDisabled:o,label:{label:r.companyInfo.address,width:u},addressValue:{placeholder:L(r.companyOfficer.address),address:n?.addressToCreate,onClick:()=>{f(i?.officerType.toLocaleLowerCase().concat("_address"))}}}),a.jsx(ye,{}),a.jsx(qe,{isDisabled:o,label:{label:r.companyOfficer.phone,width:u},text:{name:xe(e,"phone"),placeholder:L(r.companyOfficer.phone),defaultValue:i?.phone,autoComplete:"new-password"}})]})}function ft({companyOfficers:e,sectionId:o,style:l,isDisabled:i,onOfficerAddressClick:n}){const{setValue:c,getValues:f}=Ge(),[d,r]=_.useState(-1),u=k.getLocalizedStrings().companyPassport,y=e.length,b=e.length===1&&e[0].localData?.userId==null,h=f(o),$=()=>{const g={userId:void 0,officerType:`Officer_${y+1}`,name:{firstName:"",lastName:""},email:"",phone:""};c(o,[...h,g])},I=g=>{if(e[g].localData==null||!e[g].localData?.firstName&&!e[g].localData?.lastName&&!e[g].localData?.phone&&!e[g].localData?.email&&!e[g].addressStatus?.addressToCreate){const O=h.filter((S,x)=>x!==d);c(o,O),r(-1)}else r(g)},D=()=>{r(-1)},j=()=>{const g=h.filter((O,S)=>S!==d);c(o,g),r(-1)};return a.jsxs(gt,{style:l,children:[a.jsx($t,{children:u.companyOfficer.title}),e.map((g,O)=>{const S=g.localData,x=g.addressStatus,B=S?.userId==null||S?.userId==="";return a.jsxs(wt,{children:[(y>1||B)&&!b?a.jsx(xt,{curIndex:O,isNewUser:B,numberOfOfficers:y,deleteConfirmationIndex:d,isDisabled:i,onDeleteClick:I,onCancelClick:D,onRemoveOfficerSection:j}):null,a.jsx(ht,{sectionId:`${o}.${O}`,officer:S,officerAddress:x,isDisabled:i,isEmptyCompanyOfficerSection:b,onOfficerAddressClick:n})]},S?.officerType)}),y<=9&&!b?a.jsx(yt,{isSectionDisabled:i,onAddOfficerSection:$}):a.jsx($e,{})]})}const xt=({curIndex:e,isNewUser:o,numberOfOfficers:l,deleteConfirmationIndex:i,isDisabled:n,onDeleteClick:c,onCancelClick:f,onRemoveOfficerSection:d})=>{const r=P(),u=k.getLocalizedStrings().companyPassport;return a.jsxs(It,{children:[a.jsx(jt,{children:l>1?`${u.companyOfficer.officer} ${e+1}`:""}),o&&n==null?i===e?a.jsx(Ct,{children:a.jsxs(Ft,{children:[u.companyOfficer.deleteConfirmation,a.jsx(Me,{label:u.cancel,onClick:f,style:{width:be.buttonWidth.value(r),marginLeft:t.sp4,marginRight:t.sp3},size:"small",variant:"secondary"}),a.jsx(Me,{label:u.remove,onClick:d,style:{width:be.buttonWidth.value(r)},size:"small",variant:"danger"})]})}):a.jsx(Ot,{className:"delete-icon-wrapper",onClick:()=>c(e),children:a.jsx(Fa,{width:p[3],height:p[3],color:N.important})}):null]})},yt=({isSectionDisabled:e,onAddOfficerSection:o})=>{const l=k.getLocalizedStrings().companyPassport;return e!=null?a.jsx($e,{}):a.jsxs(a.Fragment,{children:[a.jsxs(vt,{onClick:o,children:[a.jsx(St,{}),a.jsx(Dt,{children:l.companyOfficer.addOfficer})]}),a.jsx($e,{})]})},xe=(e,o)=>`${e}.${o}`,gt=s.div`
|
|
137
137
|
display: flex;
|
|
138
138
|
flex-direction: column;
|
|
139
139
|
padding-top: ${t.sp3};
|
|
@@ -209,7 +209,7 @@ import{X as P,u as Ae,a5 as ca,a as da,c3 as pa,M as k,j as a,aW as ma,F as ua,c
|
|
|
209
209
|
background-color: ${e=>e.theme.colors.grey3};
|
|
210
210
|
min-height: 1px;
|
|
211
211
|
max-height: 1px;
|
|
212
|
-
`,kt=({name:e,registerOptions:o,defaultValue:l,isDisabled:i,style:n,placeholder:c})=>{const{control:f,formState:{errors:d}}=Ge(),r=Ae(),u=Ta(d,e??""),y={container:h=>({...h,width:"100%",...n}),menu:h=>({...h,backgroundColor:r.colors.grey5,borderRadius:t.sp1,boxShadow:`${t.sp0} 2px ${t.sp2} ${r.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:0}),menuList:h=>({...h,borderRadius:0})},b={hasError:u};return a.jsx(Na,{name:e,control:f,defaultValue:l,rules:o,render:({field:{onChange:h,onBlur:$,value:I,ref:D}})=>a.jsx(Pa,{...b,ref:D,isMulti:!0,isSearchable:!0,isClearable:!0,controlShouldRenderValue:!0,placeholder:c,value:Ve(I.selectedOptions),options:Ve(I.allOptions),onChange:j=>{h({selectedOptions:j.map(g=>g.value),allOptions:I.allOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"multi-select-field",onBlur:$,menuPlacement:"auto",maxMenuHeight:288,menuShouldScrollIntoView:!1,closeMenuOnSelect:!1,components:{Control:Tt,Option:Bt,Input:Pt,MultiValue:Lt,MultiValueLabel:zt,MultiValueRemove:Mt,ValueContainer:Nt,DropdownIndicator:Gt,IndicatorSeparator:
|
|
212
|
+
`,kt=({name:e,registerOptions:o,defaultValue:l,isDisabled:i,style:n,placeholder:c})=>{const{control:f,formState:{errors:d}}=Ge(),r=Ae(),u=Ta(d,e??""),y={container:h=>({...h,width:"100%",...n}),menu:h=>({...h,backgroundColor:r.colors.grey5,borderRadius:t.sp1,boxShadow:`${t.sp0} 2px ${t.sp2} ${r.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:0}),menuList:h=>({...h,borderRadius:0})},b={hasError:u};return a.jsx(Na,{name:e,control:f,defaultValue:l,rules:o,render:({field:{onChange:h,onBlur:$,value:I,ref:D}})=>a.jsx(Pa,{...b,ref:D,isMulti:!0,isSearchable:!0,isClearable:!0,controlShouldRenderValue:!0,placeholder:c,value:Ve(I.selectedOptions),options:Ve(I.allOptions),onChange:j=>{h({selectedOptions:j.map(g=>g.value),allOptions:I.allOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"multi-select-field",onBlur:$,menuPlacement:"auto",maxMenuHeight:288,menuShouldScrollIntoView:!1,closeMenuOnSelect:!1,components:{Control:Tt,Option:Bt,Input:Pt,MultiValue:Lt,MultiValueLabel:zt,MultiValueRemove:Mt,ValueContainer:Nt,DropdownIndicator:Gt,IndicatorSeparator:Zt,Placeholder:Vt,ClearIndicator:Et},hideSelectedOptions:!1,styles:y,isDisabled:i!=null})})},Tt=e=>{const{menuIsOpen:o,isFocused:l,isDisabled:i,selectProps:n}=e,{value:c,hasError:f}=n;return a.jsx(Wt,{menuIsOpen:o,isFocused:l,isDisabled:i,optionsLen:c.length,hasError:f,children:a.jsx(R.Control,{...e,className:"select-control",children:e.children})})},Nt=e=>{const{selectProps:o}=e,{value:l}=o;return a.jsxs(R.ValueContainer,{...e,className:"select-value-container",children:[e.children,a.jsx(_t,{className:"selected-options",children:l.map(i=>i.value).join(", ")})]})},Pt=e=>{const{selectProps:o}=e,{placeholder:l,value:i}=o;return a.jsx(R.Input,{...e,autoComplete:"new-password",placeholder:i.length===0?l:void 0,children:e.children})},Lt=e=>a.jsx(R.MultiValue,{...e,children:e.children}),zt=e=>{const{data:o}=e;return a.jsx(R.MultiValueLabel,{...e,children:o.value})},Mt=e=>a.jsx(R.MultiValueRemove,{...e,children:a.jsx(ea,{style:{marginTop:"2px"}})}),Et=e=>a.jsx(R.ClearIndicator,{...e,children:a.jsx(ea,{})}),Vt=()=>null,Bt=e=>{const{isSelected:o,isDisabled:l,isFocused:i}=e;return a.jsx(Rt,{isFocused:i,isSelected:o,isDisabled:l,children:a.jsx(R.Option,{...e,className:"select-option",children:a.jsxs(Yt,{children:[a.jsx(qt,{children:a.jsx(At,{isSelected:o,isDisabled:l,children:e.label})}),o?a.jsxs(Ut,{children:[a.jsx(Ht,{className:"right-tick-icon"}),a.jsx(Ce,{className:"close-tick-icon"})]}):null]})})})},Wt=s.div`
|
|
213
213
|
width: 100%;
|
|
214
214
|
background-color: ${e=>e.theme.colors.grey5};
|
|
215
215
|
cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
|
|
@@ -390,7 +390,7 @@ import{X as P,u as Ae,a5 as ca,a as da,c3 as pa,M as k,j as a,aW as ma,F as ua,c
|
|
|
390
390
|
width: ${t.sp3};
|
|
391
391
|
height: ${t.sp3};
|
|
392
392
|
color: ${e=>e.theme.colors.primary};
|
|
393
|
-
`,Gt=()=>null,
|
|
393
|
+
`,Gt=()=>null,Zt=()=>null,Ve=e=>e.map(o=>Kt(o)),Kt=e=>({value:e,label:e}),M={width:new m(343,580,726),height:new m(p[6],p[6]),controlHeight:new m(p[6],p[6]),paddingTopBottom:new m(p[2],p[2]),marginRight:new m(p[2],p[2]),labelMarginLeft:new m(p[3],p[4]),labelMarginRight:new m(p[3],p[4]),labelMarginTop:new m(p[2],p[2])};function Xt({isDisabled:e,label:o,multiSelectField:l,style:i}){const n=P();return a.jsxs(Jt,{size:n,style:i,isDisabled:e!=null,children:[a.jsx(Fe,{isDisabled:e,label:o.label,htmlFor:l.name,style:{marginLeft:M.labelMarginLeft.value(n),marginRight:M.labelMarginRight.value(n),marginTop:M.labelMarginTop.value(n),width:o.width??"auto"}}),a.jsx(kt,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,maxWidth:o.width!=null?`calc(100% - ${o.width}px)`:"auto",minHeight:M.controlHeight.value(n)}})]})}const Jt=s.div`
|
|
394
394
|
display: flex;
|
|
395
395
|
flex-direction: row;
|
|
396
396
|
align-items: flex-start;
|
|
@@ -436,7 +436,7 @@ import{X as P,u as Ae,a5 as ca,a as da,c3 as pa,M as k,j as a,aW as ma,F as ua,c
|
|
|
436
436
|
background-color: ${e=>e.isDisabled?e.theme.colors.grey5:e.theme.colors.background};
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
`,Be={labelWidth:new m(160,160,160),largeLabelWidth:new m(150,215,215)};function Qt(e){const o=P(),l=$a(),[i,n]=_.useState(!1),{companyPassport:c,commonSetUp:{businessVerification:f},common:{documents:d}}=k.getLocalizedStrings(),{fileProps:r,companyFiles:u,deleteFileStatusById:y,updateFileStatusById:b,sectionId:h,isDisabled:$,companyTaxInfo:I,style:D}=e,j=Be.labelWidth.value(o),g=Be.largeLabelWidth.value(o),O=!V.hasAdminLevelAccess(l.loggedInUserRole??[]),S=u.find(x=>x.documentType==="tax_ein");return a.jsxs(eo,{style:D,children:[a.jsx(to,{children:c.companyTaxInfo.title}),a.jsxs(ao,{children:[a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.taxIdOrEIN,width:j},text:{type:"text",name:
|
|
439
|
+
`,Be={labelWidth:new m(160,160,160),largeLabelWidth:new m(150,215,215)};function Qt(e){const o=P(),l=$a(),[i,n]=_.useState(!1),{companyPassport:c,commonSetUp:{businessVerification:f},common:{documents:d}}=k.getLocalizedStrings(),{fileProps:r,companyFiles:u,deleteFileStatusById:y,updateFileStatusById:b,sectionId:h,isDisabled:$,companyTaxInfo:I,style:D}=e,j=Be.labelWidth.value(o),g=Be.largeLabelWidth.value(o),O=!V.hasAdminLevelAccess(l.loggedInUserRole??[]),S=u.find(x=>x.documentType==="tax_ein");return a.jsxs(eo,{style:D,children:[a.jsx(to,{children:c.companyTaxInfo.title}),a.jsxs(ao,{children:[a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.taxIdOrEIN,width:j},text:{type:"text",name:Z(h,"taxIdOrEIN"),placeholder:c.companyTaxInfo.taxIdOrEINPlaceholder,defaultValue:O===!0?c.protectedContent:I?.taxIdOrEIN,options:{pattern:wa},autoComplete:"new-password"},protectedInfoText:O===!0?c.companyTaxInfo.adminPrivilegeRequired:void 0}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.dunsNumber,width:j},text:{type:"text",name:Z(h,"dunsNumber"),placeholder:c.companyTaxInfo.dunsNumberPlaceholder,defaultValue:I?.dunsNumber,options:{pattern:/^\d{9}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.naicsCode,width:j},text:{type:"text",name:Z(h,"naicsCode"),placeholder:c.companyTaxInfo.naicsCodePlaceholder,defaultValue:I?.naicsCode,options:{pattern:/^([2-9]{1}[0-9]{1}|[1-9]{1}[1-9]{1})\d{0,4}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.sicCode,width:j},text:{type:"text",name:Z(h,"sicCode"),placeholder:c.companyTaxInfo.sicCodePlaceholder,defaultValue:I?.sicCode,options:{pattern:/^\d{2,4}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(Xt,{isDisabled:$,label:{label:c.companyTaxInfo.taxesFiledYears,width:j},multiSelectField:{name:Z(h,"taxesFiledYears"),placeholder:c.companyTaxInfo.taxesFiledYearsPlaceholder,defaultValue:{selectedOptions:I?.taxesFiledYears.map(x=>x.toString())??[],allOptions:V.getYearsList().map(x=>x.toString())}}}),a.jsx(ee,{}),a.jsx(Xe,{name:Z(h,"einDocument"),isDisabled:$,sizeLimit:Ue,deleteFileStatusById:y,updateFileStatusById:b,filesEndPoint:r.filesEndPoint,authParams:r.authParams,label:{label:f.einDocument,width:g},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:S,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:i,updateFilesEntity:r.updateFilesEntity,onEditFileName:r.onEditFileName,onDeleteFile:r.onDeleteFile,onFileSizeError:x=>n(x)}),a.jsx(oo,{windowSize:o,isError:i,children:d.formatDocumentText10MB})]})]})}const Z=(e,o)=>`${e}.${o}`,eo=s.div`
|
|
440
440
|
display: flex;
|
|
441
441
|
flex-direction: column;
|
|
442
442
|
padding-top: ${t.sp3};
|
|
@@ -457,7 +457,7 @@ import{X as P,u as Ae,a5 as ca,a as da,c3 as pa,M as k,j as a,aW as ma,F as ua,c
|
|
|
457
457
|
background-color: ${e=>e.theme.colors.grey3};
|
|
458
458
|
min-height: 1px;
|
|
459
459
|
max-height: 1px;
|
|
460
|
-
`,oo=s(
|
|
460
|
+
`,oo=s(Ze)`
|
|
461
461
|
padding: ${t.sp1} ${t.sp4};
|
|
462
462
|
background: ${e=>e.theme.colors.grey4};
|
|
463
463
|
border-radius: ${t.sp0} ${t.sp0} ${t.sp2} ${t.sp2};
|
|
@@ -550,7 +550,7 @@ import{X as P,u as Ae,a5 as ca,a as da,c3 as pa,M as k,j as a,aW as ma,F as ua,c
|
|
|
550
550
|
background-color: ${e=>e.theme.colors.grey3};
|
|
551
551
|
min-height: 1px;
|
|
552
552
|
max-height: 1px;
|
|
553
|
-
`,we={width:new m(343,580,726),buttonWidth:new m(85,85)},_e="companyPassportPage",Ie="companyInfo",je="companyIncInfo",ve="companyTaxInfo",Se="primaryContact",De="companyOfficer",Oe="zeniFinanceTeam";function Wo(e){const o=P(),l=Ae(),{companyPassportView:i,isZeniUser:n,filesEndPoint:c,authParams:f,allIndustries:d,isDisabled:r,isSettings:u=!1,onCompanyDetailsChanged:y,onCompanyOfficerUpdated:b,onNewCompanyOfficerAdded:h,onPrimaryContactDetailsUpdated:$,onNewCompanyOfficerRemoved:I,onSaveAll:D,onAddressClick:j,onScheduleClick:g,onBackClick:O,onResetClick:S,onEditFileName:x,updateFilesEntity:B,onDeleteFile:me,onClickMenuIcon:
|
|
553
|
+
`,we={width:new m(343,580,726),buttonWidth:new m(85,85)},_e="companyPassportPage",Ie="companyInfo",je="companyIncInfo",ve="companyTaxInfo",Se="primaryContact",De="companyOfficer",Oe="zeniFinanceTeam";function Wo(e){const o=P(),l=Ae(),{companyPassportView:i,isZeniUser:n,filesEndPoint:c,authParams:f,allIndustries:d,isDisabled:r,isSettings:u=!1,onCompanyDetailsChanged:y,onCompanyOfficerUpdated:b,onNewCompanyOfficerAdded:h,onPrimaryContactDetailsUpdated:$,onNewCompanyOfficerRemoved:I,onSaveAll:D,onAddressClick:j,onScheduleClick:g,onBackClick:O,onResetClick:S,onEditFileName:x,updateFilesEntity:B,onDeleteFile:me,onClickMenuIcon:X}=e,{companyView:J,localData:H,deleteFileStatusById:ke,updateFileStatusById:Te}=i,{companyFiles:te}=H,Ne={authParams:f,filesEndPoint:c,onEditFileName:x,onDeleteFile:me,updateFilesEntity:B},[Q,oe]=_.useState(void 0),{companyDetails:aa,primaryContact:ta,companyOfficerUpdateStatus:oa,updateStatus:Y}=H,{localData:le,addressStatus:la}=aa,Pe=ca(Y.fetchState),ie=Object.values(oa).filter(T=>T.localData!=null),W=da({mode:"all",defaultValues:Ye(H,d)});_.useEffect(()=>()=>{oe(void 0)},[]),_.useEffect(()=>{Pe==="In-Progress"&&(Y.fetchState==="Completed"||Y.fetchState==="Error")&&(W.reset(Ye(H,d)),Q!==Y.fetchState&&oe(Y.fetchState))},[Q,W,Pe,Y,H,J,d,te]);const ia=async(T,w)=>{if(T.includes(Ie)||T.includes(je)||T.includes(ve)||T.includes(Oe)){const{companyInfo:C,companyIncInfo:F,companyTaxInfo:A,zeniFinanceTeam:ue}=w;y({companyInfo:C,incInfo:F,taxDetails:A,zeniFinanceTeam:ue})}else if(T.includes(Se)){$(w.primaryContact);const C=w.companyOfficer.map(F=>F.userId);if(w.primaryContact.userId!=null&&C.includes(w.primaryContact.userId)){const F=C.findIndex(A=>A===w.primaryContact.userId);F>=0&&b({...w.companyOfficer[F],name:w.primaryContact.name,officerType:`Officer_${F+1}`})}}else if(T.includes(De)){const C=parseInt(T.split(".")[1]);if(C>=0)b({...w.companyOfficer[C],officerType:`Officer_${C+1}`}),w.companyOfficer[C].userId!=null&&w.companyOfficer[C].userId===w.primaryContact.userId&&$({...w.primaryContact,name:w.companyOfficer[C].name});else if(w.companyOfficer.length>ie.length){const F=w.companyOfficer[w.companyOfficer.length-1];h(F)}else{const F=w.companyOfficer.filter(A=>A.officerType!=null);if(F.length<ie.length){const A=F.map((ue,ra)=>{const Le={...ue,officerType:`Officer_${ra+1}`};return b(Le),Le});F.length<ie.length&&(I(`Officer_${F.length+1}`),W.reset({companyOfficer:A}))}}}};_.useEffect(()=>{const T=W.watch((w,{name:C})=>{C!=null&&w!=null&&pa(()=>ia(C,w))});return()=>{T.unsubscribe()}});const sa=W.handleSubmit(T=>{Q!=null&&oe(void 0),D()}),{companyPassport:se,common:{settings:na}}=k.getLocalizedStrings();if(J==null)throw new Error("Company View is null");return a.jsxs(So,{children:[a.jsx(ma,{title:se.title,backgroundColor:l.colors.grey4,style:{zIndex:3},onBackClick:O,showBackButton:!u,showMenuIcon:u?o==="medium-compact"||o==="small":!1,source:"CompanyPassportPage",onClickMenuIcon:X}),Q!=null?a.jsx(Ja,{fetchState:Q,onRemoveSnackbar:()=>oe(void 0)}):null,a.jsxs(Do,{children:[a.jsx(Oo,{windowSize:o,children:u?na.infoText.companyDetails:se.quickAccessInfo}),a.jsx(ua,{...W,children:a.jsxs("form",{id:Re(_e),onSubmit:sa,children:[a.jsx(ct,{sectionId:Ie,companyInfo:le?.companyInfo,companyViewData:J,companyAddress:la,isDisabled:r,onCompanyAddressClick:j,allIndustries:d}),a.jsx(Qa,{sectionId:je,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:te,companyIncInfo:le?.incInfo,fileProps:Ne,isDisabled:r}),a.jsx(Qt,{sectionId:ve,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:te,companyTaxInfo:le?.taxDetails,fileProps:Ne,isDisabled:r}),a.jsx(io,{sectionId:Se,primaryContact:ta.localData,isDisabled:r}),a.jsx(ft,{companyOfficers:ie,sectionId:De,isDisabled:r,onOfficerAddressClick:j}),a.jsx($o,{data:J,companyInfo:le?.companyInfo,isDisabled:r,isZeniUser:n,sectionId:Oe,onScheduleClick:g})]})})]}),ha(W.formState.dirtyFields)||V.isCompanyPassportDataToBeSaved(H,J,te)?a.jsx(fa,{formId:Re(_e),primaryBtn:{label:se.save,isLoading:Y.fetchState==="In-Progress",style:{width:we.buttonWidth.value(o)},isDisabled:e.isDisabled!=null},cancelBtn:{label:se.cancel,style:{width:we.buttonWidth.value(o)},onClick:()=>{W.reset(),S()}}}):null]})}const Re=e=>`${e}_form`,Ye=(e,o)=>{const{companyDetails:l,primaryContact:i,companyOfficerUpdateStatus:n}=e,c=k.getLocalizedStrings().companyPassport,f=l.localData?.incInfo.fileId!=null?[l.localData?.incInfo.fileId]:[],d=l.localData?.taxDetails.fileId!=null?[l.localData?.taxDetails.fileId]:[];return{[Ie]:{...xa(l.localData?.companyInfo,["meetingLink"]),businessModel:{selectedOption:l.localData?.companyInfo?.businessModel,allOptions:c.companyInfo.allBusinessModels},website:l.localData?.companyInfo.website?.toString()??"",industry:{selectedOption:l.localData?.companyInfo.industry,allOptions:o?.map(r=>r.code)},firstMonthOfFY:l.localData?.companyInfo.firstMonthOfFY},[ve]:{...l.localData?.taxDetails,taxesFiledYears:{selectedOptions:l.localData?.taxDetails.taxesFiledYears.map(r=>r.toString())??[],allOptions:V.getYearsList().map(r=>r.toString())},einDocument:e.companyFiles.find(r=>r.documentType==="tax_ein"),fileIds:d},[je]:{typeOfInc:{selectedOption:l.localData?.incInfo?.typeOfInc,allOptions:c.companyIncInfo.allTypesOfIncorporation},stateOfInc:{selectedOption:l.localData?.incInfo?.stateOfInc,allOptions:c.companyIncInfo.allStatesOfIncorporation},incDate:l.localData?.incInfo.incDate?.toDate(),certificateOfIncorporation:e.companyFiles.find(r=>r.documentType==="certificate_of_incorporation"),fileIds:f},[Se]:{userId:i.localData?.userId,name:{firstName:i.localData?.firstName,lastName:i.localData?.lastName},email:i.localData?.email},[De]:Object.values(n).filter(r=>r.localData!=null).map(r=>{const u=r.localData;return{userId:u.userId,officerType:u.officerType,name:{firstName:u.firstName,lastName:u.lastName},email:u.email,phone:u.phone}}),[Oe]:{meetingLink:l.localData?.companyInfo.meetingLink?.toString()??""}}},So=s.div`
|
|
554
554
|
display: flex;
|
|
555
555
|
min-height: 100%;
|
|
556
556
|
flex-direction: column;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import{a as R,gg as M,M as $,j as e,F as q,T as f,c6 as z,cf as G,cc as K,l as T,o as a,ca as _,gh as H,a7 as W,c0 as X,bp as Y,gi as J}from"./index-DEtloYMb.js";import{b as g,f as b,n}from"./vendor-CnQcJ2Lu.js";import{$ as Q}from"./LabeledAddressValue-Dtw8vM0g-D81z6ltq.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const t=$.getLocalizedStrings(),x="completeProfilePage",r="basicDetailsSection",y="addressSection",d=(o,m)=>`${o}.${m}`,he=({userEmail:o,googleAPIKey:m,otpChallenge:j,sendOtpStatus:w,verifyOtpStatus:h,saveStatus:v,onSave:u,onGetOtp:P,onVerifyOtp:S,onResendOtp:O})=>{const[s,c]=g.useState(!1),[V,C]=g.useState(!1),i=R({mode:"onChange",reValidateMode:"onChange",defaultValues:{basicDetailsSection:{name:{firstName:"",lastName:""},email:o,dateOfBirth:void 0,phone:"",address:void 0}}}),F=M({control:i.control,name:`${r}.address`}),{dateFormat:I}=$.getLocalizedStrings(),N=i.handleSubmit(l=>{u&&u(l)}),L=()=>{const l=i.getValues(`${r}.phone`);l!=null&&l.trim().length>0&&P(l)},k=(l,p)=>{S(l,p)},D=l=>{l!=null&&l.trim().length>0&&O(l)},B=()=>{c(!0)},E=()=>{c(!1)},A=()=>{const l=i.getValues(`${y}`);if(l!=null){const p=J(l);i.setValue(`${r}.address`,p)}c(!1)};return e.jsxs(U,{children:[e.jsxs(Z,{children:[e.jsxs(ee,{children:[s&&e.jsx(oe,{onClick:E}),t.completeProfile.title]}),e.jsx(te,{children:e.jsx(q,{...i,children:e.jsxs("form",{id:`${x}_form`,onSubmit:N,children:[e.jsx(f,{controller:s===!1,children:e.jsxs(b.Fragment,{children:[e.jsx(z,{isDisabled:"disabled",showAdditionalInfoLabel:!1,label:{label:t.common.labels.email,width:168},style:{width:"100%"},text:{type:"text",name:d(r,"email")}}),e.jsx(G,{isDisabled:void 0,label:{label:t.common.labels.name,width:168},style:{width:"100%"},nameField:{name:d(r,"name"),placeHolder:{firstName:t.common.placeholder.firstNamePlaceholder,lastName:t.common.placeholder.lastNamePlaceholder,name:t.common.placeholder.namePlaceholder},showFullNameError:!0,registerOptions:{required:!0}},errorInfoLabel:""}),e.jsx(K,{isOptional:!0,label:{label:t.common.labels.dob,width:168},style:{width:"100%"},isDisabled:void 0,dateField:{name:d(r,"dateOfBirth"),placeholder:t.common.placeholder.dobPlaceholder,dateFormat:I.visual.defaultInput,autoComplete:"off",maxDate:T.dateNow().subtract(18,"year")}}),e.jsx(Q,{isOptional:!0,label:{label:t.common.labels.address,width:168},addressValue:{placeholder:t.common.placeholder.addressPlaceholder,address:F,onClick:B},style:{width:"100%",padding:`${a.sp2} ${a.sp2} ${a.sp2} ${a.sp0}`}}),e.jsx(_,{isOptional:!0,label:{label:t.common.labels.phone,width:168},style:{width:"100%"},text:{name:d(r,"phone"),placeholder:t.common.placeholder.phonePlaceholder,defaultValue:"",autoComplete:"new-password"},errorInfoLabel:"",verificationErrorInfoLabel:t.common.errorMessage.invalidPhoneNumber,isPopupOpen:V,phoneVerifyButtonProps:{otpChallenge:j,showOtpButton:!0,onGetOtp:L,onVerifyOtp:k,onResendOtp:D,isPhoneVerified:h.fetchState==="Completed",phoneVerificationStatus:h,getOtpStatus:w,openPopup:()=>{C(!0)},focusNotRequired:!0}})]})}),e.jsx(f,{controller:s===!0,children:e.jsx(b.Fragment,{children:e.jsx(H,{sectionId:y,googleAPIKey:m,isSubPage:!0})})})]})})})]}),e.jsx(W,{formId:s?void 0:`${x}_form`,primaryBtn:{label:s?t.companyPassport.address.saveAddress:t.common.footer.save,type:s?"button":"submit",onClick:s?A:void 0,isLoading:v.fetchState==="In-Progress"},showCancel:!1})]})},U=n.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
min-height: 100vh;
|
|
5
|
+
`,Z=n.div`
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
align-items: flex-start;
|
|
9
|
+
padding: ${a.sp5};
|
|
10
|
+
row-gap: ${a.sp3};
|
|
11
|
+
flex: 1;
|
|
12
|
+
`,ee=n(X)`
|
|
13
|
+
color: ${o=>o.theme.colors.primary};
|
|
14
|
+
text-align: left;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: flex-start;
|
|
18
|
+
gap: ${a.sp2};
|
|
19
|
+
`,oe=n(Y)`
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
width: ${a.sp4};
|
|
22
|
+
height: ${a.sp4};
|
|
23
|
+
color: ${o=>o.theme.colors.hero};
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
&:hover {
|
|
28
|
+
color: ${o=>o.theme.colors.primary};
|
|
29
|
+
}
|
|
30
|
+
`,te=n.div`
|
|
31
|
+
background-color: ${o=>o.theme.colors.grey5};
|
|
32
|
+
border-radius: ${a.sp2};
|
|
33
|
+
width: 100%;
|
|
34
|
+
box-shadow: ${o=>o.theme.colors.elevation1};
|
|
35
|
+
border-color: ${o=>o.theme.colors.grey3};
|
|
36
|
+
`;export{he as default};
|
package/dist/assets/{ConfettiBurst-DVT9EpwF-DYg9k9jR.js → ConfettiBurst-BYoGZ66F-DY-7GLNq.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d2 as m,at as l,j as a,au as f,o as n}from"./index-
|
|
1
|
+
import{d2 as m,at as l,j as a,au as f,o as n}from"./index-DEtloYMb.js";import{b as i}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const u="https://storage.googleapis.com/zeni-apis.appspot.com/data/confetti_sfx.mp3",C=({showConfetti:t})=>{const[e,p]=i.useState(t),[o,s]=m(u),[r]=l("ConfettiSuccess");return i.useEffect(()=>{t&&p(!0)},[t]),i.useEffect(()=>{e&&o===!1&&s(!0)},[e,o,s]),a.jsx(a.Fragment,{children:e&&o&&r!=null?a.jsx(f,{style:{position:"absolute",width:"100%",height:"100vh",top:n.sp0,left:n.sp0,zIndex:5},onComplete:()=>{s(!1),p(!1)},animationData:r,loop:0,play:!0,goTo:0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null})};export{C as default};
|