@zeniai/web-cockpit-ui 1.14.92-dev → 1.14.93-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-B6sY0jN6-BewHWiw_.js → ACHDetailsPage-Cmt4zlsa-CVV8HYnx.js} +1 -1
- package/dist/assets/{AIPerformancePage-BWK9fXrz-XnvE7-6d.js → AIPerformancePage-Bll3cTy1-gL3wACpX.js} +1 -1
- package/dist/assets/AccountInfoPage-D2IedGAy-DpkY7tZI.js +18 -0
- package/dist/assets/{AccountInfoPageContent-nUi26Aww-Bwa-HIUO.js → AccountInfoPageContent-9wbA8niq-Bqglb0N2.js} +10 -10
- package/dist/assets/{AccountLockedInfoModal-BROj4bmE-DDKXU8OA.js → AccountLockedInfoModal-CLvVkdLW-bPK5I-r7.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-C-3FFCQZ-D-TpqzuY.js → AccountReconDetailsDrawerPage-BXa1TZA0-CJ_GlXhF.js} +1 -1
- package/dist/assets/{AccountRow-BM2kGWyR-CEX7zEFS.js → AccountRow-Ba39SxP8-8PYcW3Va.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-CNCG5uPJ-Y2aCPflf.js → AccountsPromoCardStack-W5TW8HPU-Cm5YfN59.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-BuAtFO1w-e0LZrU5l.js → AddAddressForCardDrawer-nEnaGKnm-DN6yVFPQ.js} +1 -1
- package/dist/assets/{AddToWalletPage-DyrcWdBZ-CkK2fnuE.js → AddToWalletPage-CQYHG0Yj-CP1osDBN.js} +1 -1
- package/dist/assets/{AgingReportsPage-CmluxKG3-B2hpJNM3.js → AgingReportsPage-BWCU11pF-MZUqlZXC.js} +3 -3
- package/dist/assets/{AllUserItems-CVZZU-J3-Ce2827d_.js → AllUserItems-DPxoQeZA-Fd0FWod6.js} +3 -3
- package/dist/assets/{ApAgingDetailPage-CoNxqskm-Bna_-NVA.js → ApAgingDetailPage-cslGsO08-CvebivaV.js} +4 -4
- package/dist/assets/{AppBasePage-CTGNzUtN--WSyuM8w.js → AppBasePage-BZINcjPW-DJOgvT_q.js} +1 -1
- package/dist/assets/{AppDrawerContent-59dQVUxu-Bv7_BAFF.js → AppDrawerContent-V7jCH_90-Ck_yeGZ4.js} +6 -6
- package/dist/assets/{ApprovalRulesSettingsPage-XEW5sdNg-DmNI-bwP.js → ApprovalRulesSettingsPage-BC6CLesU-BKNNkRpO.js} +1 -1
- package/dist/assets/{ArAgingChart-D3Ym4gVE-DmsLk005.js → ArAgingChart-C7VtW0AI-Co8wpWo7.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-BLEJSLJJ-C4CejQvS.js → ArAgingDetailPage-Bttq4jQR-BeQILYq-.js} +5 -5
- package/dist/assets/{AttachmentView-DSP80cjm-BrHb-fdX.js → AttachmentView-BijZrB02-BJhcTpzV.js} +1 -1
- package/dist/assets/{BankAccountSection-DRrNcA79-DN0L_Nus.js → BankAccountSection-De0m3zrf-DJo0ErGm.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-Ub-gsfhE-CWRw85Ya.js → BankAccountWarningSection-DoqOr9h0-CysUjzfB.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BcTtJTbg-Cq7UhfIX.js → BankConnectionsSettingsPage-BaySatUW-BFaS82zx.js} +1 -1
- package/dist/assets/{BillDetailPage-D7AQyxwr-C4hQ51aV.js → BillDetailPage-Bg_3myu0-BcOsOHp0.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-BQWGENO8-UqNryn1Y.js → BillPayApprovalRuleDetailPage-B7z1PKq6-D3qc7XQa.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BbA1Nwqe-8oC6drGE.js → BillPayApprovalRulesPage-Cj55NkSk-CVNQ2WUg.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DSTS_vBW-D4bhyD9i.js → BillPayPromoPage-SUtLQemf-YRwlMQqq.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-CvlVPVCA-CckOfR6h.js → BillPaySetUpPage-BbIjaE2K-BvM1AO08.js} +1 -1
- package/dist/assets/{BillingSettingsPage-nKpHtd4C-BrQxt-Or.js → BillingSettingsPage-Bmd6ET1I-D1Hos3cN.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DNHAoceL-CcLmGKWP.js → BillsBulkReviewDrawerPage-CYSMvAbC-CCvMSRtJ.js} +1 -1
- package/dist/assets/{BoxItem-Bjv3WNXO-CbkK_BvO.js → BoxItem-B8HVRhgE-Bev68PFI.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Bj4D9bX2-CSqpS47f.js → BusinessVerificationPage-Cn1b1hk4-CAZR1TOe.js} +1 -1
- package/dist/assets/{CardNumberSubText-BYY-Inxd-B5eDSuWq.js → CardNumberSubText-BcJnpRxI-D1zdlj5r.js} +1 -1
- package/dist/assets/{CashbackDetailPage-D9UiTqp9-CYWVGaEH.js → CashbackDetailPage-BkIotpWn-DxPDsNjO.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-C5EdiIyl-BRwuM_9a.js → ChargeCardDetailPage-kKKhppzB-DtYb-jra.js} +21 -21
- package/dist/assets/{ChargeCardListPage-DZwz1qoD-CqjW0D5U.js → ChargeCardListPage-CP778-GK-CTP7-db-.js} +1 -1
- package/dist/assets/{ChargeCardListTable-D5B05Z1F-D4hpaga1.js → ChargeCardListTable-DBryLHST-Ce2gmrfZ.js} +1 -1
- package/dist/assets/ChargeCardPromoPage-D_eQ_vXf-CNDMyI7K.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-CVV24gS9-BAOQ2Xly.js → ChargeCardSetupPage-m8dUXi38-BJz_Xnlk.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CmjBoi5e-DLlPm7j6.js → ChargeCardStatementsPage-Dq5NpUXk-Bke0Yjm9.js} +6 -6
- package/dist/assets/{CheckDepositDrawerPage-CYOhT5Qz-NvWlDiXp.js → CheckDepositDrawerPage-BJQ2GSoP-CvcGnuco.js} +1 -1
- package/dist/assets/{CollapsableReportTable-hL_Ycouc-uf2_k_Pr.js → CollapsableReportTable-l16Ixpgb-BS0sBPj9.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DR_6TlQa-SwPBTgrA.js → CompanyOfficerDetailsSection-mKcrRkb5-BdmL4WQb.js} +1 -1
- package/dist/assets/{CompanyPassportCard-B4chn7-Q-Bv_vr7JG.js → CompanyPassportCard-DUwjb7jY-D94p2vYM.js} +4 -4
- package/dist/assets/{CompanyPassportPage-oT9HnnPQ-BroxBLc-.js → CompanyPassportPage-mQ_Le1I1-BsfzlRNE.js} +13 -13
- package/dist/assets/{CompleteProfile-BgH4v76Z-CN661m7_.js → CompleteProfile-CesiGAex-BxV2T4kD.js} +1 -1
- package/dist/assets/{ConfettiBurst-Cl6jHJ8H-gdYynPR6.js → ConfettiBurst-CXF_94LB-B61erBlR.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CW-u7pJU-D_V5jy6j.js → CreateOrEditVendorPage-BMVOhEEP-okcAo0FU.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-D30M7ol4-Cmy98i97.js → CreditCardPaymentDrawerPage-Cl4vJBjO-BN2fXeeY.js} +1 -1
- package/dist/assets/{CurrencySelectField-DOCEstMc-DLDifnD2.js → CurrencySelectField-CvnrYpdi-Bx3ura4E.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-DMPNjFL_-DXtNUrdA.js → CustomerOnboardingActivationPage-CmengYgm-DwWvQDwP.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CBiHoKP2-K1SzPxIX.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CBYo4VQn-lNg5MP87.js → CustomerOnboardingDetailPageSkeleton-hF2fjE7f-Bx4vnxk_.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-EBVRCYfJ-D9C_SyFY.js → CustomerOnboardingNoStepsPage-B-pbVz1_-Bu3QH6hN.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-TJK6s-LM-CoIVtMVm.js → CustomerOnboardingPage-CUj-SOSh-DqZnrHrN.js} +4 -4
- package/dist/assets/{CustomerOnboardingProductSuitePage-lNIP5gSu-Bg8Yb8JM.js → CustomerOnboardingProductSuitePage-DLJg9lqc-B7ctGtPH.js} +1 -1
- package/dist/assets/{Dashboard-WiE9IRrh-DvtSkHmk.js → Dashboard-DUBT_4AU-BQQLhc7F.js} +1 -1
- package/dist/assets/{DashboardReportPage-BKHl_IVD-CtxBGv_B.js → DashboardReportPage-cTPn6w4q-BsaoYjkr.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-B1mJObim-DOqCN-CI.js → DashboardSidebarBackgroundAnimation--y1-phUW-DGEiib0J.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-C8tChaJS-BcNs6Wmj.js → DepositAccTransactionItem-BJ6rNbQF-DcQ3w2ay.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-B6px7upV-C_h4mZC3.js → DepositAccTransactionListPage-BXu7yVC4-BqrqxoR4.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BFQJmzYm-Cigs9AsB.js → DomesticWireDetailsPage-D5wDMrfR-C5cM-TE-.js} +1 -1
- package/dist/assets/{DownloadOverlay-DB-qx46O-Di0XX-7b.js → DownloadOverlay-BF8Uzj65-BjVIvIOE.js} +1 -1
- package/dist/assets/{DrawerPage-Bha9ElcW-tQCg2vNB.js → DrawerPage-4QqiD5ag-BNPe32xq.js} +1 -1
- package/dist/assets/{EditPeoplePage-B6QD5Vld-H7oW4yPE.js → EditPeoplePage-BFROUzlu-DwFofRms.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-EplOf2mP-DR3ob0bq.js → EditReimbursementDetailPage-Bz32u6U5-D6GoDZH_.js} +1 -1
- package/dist/assets/EntityDetailPage-BnG_PBK5-88aNTDFS.js +18 -0
- package/dist/assets/{EntitySummarySection-D6z6-dM7-iY3GcshB.js → EntitySummarySection-0nKZeBKn-BkqQH4-k.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-DkoxczRc-Dj3WEFmv.js → ExpenseAutomationOverviewPage-Dvyn5ovf-DA904IZ7.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-Na3XKgcg-DopOn429.js → ExpenseAutomationPage-DPmIOATd-E0cwlhE5.js} +40 -40
- package/dist/assets/{ExpressPayPage-DWGl_gml-hFOTsy6y.js → ExpressPayPage-DGTh3qGM-CBuhnCa1.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-BgkpUPMm-BgRBmXUD.js → FeaturePreviewPage-CHUVkqak-Bv1bUX1B.js} +1 -1
- package/dist/assets/{FollowStepsSection-64oy2OLD-BEGrGMi_.js → FollowStepsSection-C_pWSlPc-DWF54WG6.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-DHfTyj2C-C3EEWPiO.js → GlobalReviewListPage-BjPOnObQ-CbXiHvNN.js} +1 -1
- package/dist/assets/{InformationCardStack-Dw3lhl2I-Bs6_LbeZ.js → InformationCardStack-DvFu-gjh-DGBl4kd-.js} +1 -1
- package/dist/assets/{InsightsCardStack-BiEswY1Z-Db6FFDpQ.js → InsightsCardStack-CR3wSnhE-CCTCkrt4.js} +6 -6
- package/dist/assets/{InsightsSection-DvqCilqy-BQT_s43S.js → InsightsSection-DCFjudcA-7O17fZbk.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-DzVYf5ff-DvdqA5Qq.js → IntegrationsSettingsPage-DpPc99qg-BuRPrwyt.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DTHcuQsH-B-a9NSLn.js → InternationalWireSwiftDetailsPage-xXEk6Ubv-DgeDkVIK.js} +4 -4
- package/dist/assets/{InternationalWireVerificationPage-BzyRqd-m-slndLY5A.js → InternationalWireVerificationPage-uh0GqYQA-9ZEgxwG_.js} +5 -5
- package/dist/assets/{InviteFormPage-CaJB3ss1-HHZxjRMu.js → InviteFormPage-5xqk5ISe-Bbb5YAD8.js} +1 -1
- package/dist/assets/{InvitePageListView-8Ltt8tHx-BPR7jVHX.js → InvitePageListView-CpmTnQLj-CTufHHPe.js} +1 -1
- package/dist/assets/{InvitePeoplePage-A7oKAD7M-DkNn-Tux.js → InvitePeoplePage-BeCWfFpI-DBINJPSA.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-DomquLut-CutCF8wG.js → InvoiceUploadSection-BvaKEakI-Cgqd0lG_.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-DtIQ1Buk-QOM0ijcK.js → IssueChargeCardPage-Bomvo_PH-CiqvhZJZ.js} +1 -1
- package/dist/assets/{LabeledAddressValue-B_9lh-_a-B22yf0PW.js → LabeledAddressValue-b4zlBP-g-DPs_zAUA.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-CC7T3qZQ-5fkS_FuY.js → LabeledAddressValueField-DpcuqwLy-CTnD7CIG.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CeMM7Ci3-RHUW6sf_.js → LabeledControlledCheckBoxField-BTjbeJMZ-ByFU_udW.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DKD0oEl8-Bqf3gDxT.js → LabeledCreatableSingleSelectField-D_oWjB4_-A2URoXC_.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Dy3jwAiL-FmwpCOt6.js → LabeledDocumentField-dtnakMLl-DM4CLrZI.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-DDzM3r6s-CPxa5iPj.js → LabeledDropDownFormattedTextField-DDtxGo1u-9ainO5Wl.js} +1 -1
- package/dist/assets/{LabeledText-axaAGyUS-B-Q4astZ.js → LabeledText-CUs3VIof-3boaO8Y1.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-DlTnDPsW.js → LabeledUserSingleSelectWithSubtitlesField-BusH2qnZ-GKSXWTga.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-dpz7g9jK-BDxh4AaM.js → LabeledZeniRolesDropDownField-DYkmOsOP-Dg0kuJ4H.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-CJniqVcu-C9nn50Ye.js → LinkJETransactionPage-DbP6jfzn-BtGeDf5_.js} +2 -2
- package/dist/assets/{LockCardPage-CjO8cr2a-C3aOpkLz.js → LockCardPage-CWEZyzEM-Bg4PM8JQ.js} +1 -1
- package/dist/assets/{LowBalancePopup-DVS-w3b7-DZeFvNAP.js → LowBalancePopup-BQ9JPBTS-DRn4mn9-.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-CKoTuvNz-BHd5xcLb.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-Di5hHI_D-C4fzv92i.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-B2izwKNk-B8pTw_O-.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-DAAoq3iT-s_k-As2A.js → MagicLinkSuccessPage-DU1RM5NI-Wq9yOHXi.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-FMRBLlRJ-Dq0HXyeM.js → MagicLinkTitleSection-RWEjrx8m-CX8Fw-B8.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CiJ5JLA6-ClA0Rhay.js → MailingDetailsSection-BT3SGHhD-Ctkbx47B.js} +5 -5
- package/dist/assets/{Menu-wpP8R1br-BkJyq7Tb.js → Menu-BTZYMOTT-CKMXXApd.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-DIIFgnkE-BpGRsOdm.js → MyBankConnectionsSettingsPage-DufaL9n8-M4dyrfVV.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-Di_KYRgS-1GEJ-RE_.js → MyPendingActivationChargeCardListPage-DwCUyRec-SM92wYsw.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-m6vaeGgZ-CBRk31EZ.js → MyProfileSettingsPage-geduKqxy-CauaXJ2g.js} +1 -1
- package/dist/assets/{NavBarWithPicker-C_qO8mgD-DeDCa5cM.js → NavBarWithPicker-edkm8kW--DTJVRU93.js} +1 -1
- package/dist/assets/{NavigationArrow-BXYIj6Wz-CANss6wI.js → NavigationArrow-DAOz2wst-CzpVYMv0.js} +1 -1
- package/dist/assets/{NavigationDots-BvKSgdgh-ChF9WLMp.js → NavigationDots-Dm8SYcdL-CXSz5QAZ.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Dc3xEoiZ-BeCQwEx7.js → NewGlobalMerchantPage-enaZFSVb-D5ALf38h.js} +1 -1
- package/dist/assets/{NoDataChart-C5ZP32zB-BxSJ1j_J.js → NoDataChart-BIcLmdso-V1__FO4W.js} +1 -1
- package/dist/assets/{NoDataTable-BnBYE8p_-CFZLFfEo.js → NoDataTable-C9ywvwy4-CbJRpj1w.js} +1 -1
- package/dist/assets/{NotFoundPage-CZ25GWwU-BICqInbF.js → NotFoundPage-B0Pfc4vD-0nVsRFSV.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-DHvgj7Hu-BDiE5wjx.js → NotificationSettingsPage-Di4KhoPI-Zq8167Bo.js} +1 -1
- package/dist/assets/{NotificationsListConfig-BBLSv0sd-CBsOo8lP.js → NotificationsListConfig-CHb7phwi-CuAMA5zK.js} +1 -1
- package/dist/assets/{NotificationsPage-CGVEC-Zc-CICQW2D8.js → NotificationsPage-B4KMZZ0V-CdnEBa77.js} +1 -1
- package/dist/assets/{OpExByVendorPage-D55JZne--Cr5n73UL.js → OpExByVendorPage-CAxLWg7x-CVAp3gyR.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-DLdPkPwc.js → OverlayContainerPage-Daz3A7cI-C0naTs3U.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-fVmttEKP-aWCR7ttl.js → PandLWithForecastPage-Dx56-ypM-CahTbCAI.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BiU8tQnm-CY8MBOF0.js → PaymentAccountSetupBillingAddressSection-C8QwChEK-DSZP0_gt.js} +1 -1
- package/dist/assets/{PeoplePage-QuuuX2AS-CDxGSCUE.js → PeoplePage-CjD6uKA--DQJyasjD.js} +1 -1
- package/dist/assets/{Preview-D_TLok3M.js → Preview-BXKaaVKN.js} +1 -1
- package/dist/assets/{ProductsCarousel-zdZkfaiY-D8MGFtGX.js → ProductsCarousel-DzOaqLVq-BtBP3iUE.js} +1 -1
- package/dist/assets/{PromoBaseCards-flFtcbIg-C0jZRRzU.js → PromoBaseCards-B1h9AEH0-CHWZv_Gb.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-DNB2C1vQ-DPJHlPHX.js → QBOConnectionDialog-Bv6unk3C-C69fuiCc.js} +1 -1
- package/dist/assets/{QBOSetupSection-B59etoGz-DxrgQvvQ.js → QBOSetupSection-BTjj7g98-CXsc6nTM.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-D7do3o0A-DiBw1aK-.js → ReimbursementApprovalRuleDetailPage-CHXo51lU-BT66bgjF.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BJ6GewQ2-CMxGgRQ3.js → ReimbursementApprovalRulesPage-D7utb8vM-BSv0WO21.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DKAtYSOy-C1CMn4bM.js → ReimbursementDetailPage-DnXsG55s-DO7QVibn.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DKcSHlHp-gi8b3D2U.js → ReimbursementPromoPage-Di39wgvD-CwoSxp24.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-Y1e_hna--L4dNaOo2.js → ReimbursementSetUpPage-CT5bs4wM-CImglJgz.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-fgz8s4w9-TK1XJV4S.js → ReimbursementsBulkReviewDrawerPage-BcB8hTar-D2swNEDZ.js} +1 -1
- package/dist/assets/{ReloadCard-DjtdPHq5-D_RTB189.js → ReloadCard-BGPtXAV7-D43T0ICm.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-C8e6IEWt-B1X6y91F.js → ReportTableViewSelector-gEKTiiSk-DFp8GlM2.js} +1 -1
- package/dist/assets/{ReportsPage-BIe0eDLC-DJAgrzKt.js → ReportsPage-Ctvnzlk1-DLJ23fuU.js} +1 -1
- package/dist/assets/{RevenueChart-Cc0XrxLL-BSXP5Fpe.js → RevenueChart-D1PfVLk0-DHVFjjTE.js} +14 -14
- package/dist/assets/{ReviewDetailsPage-CU1AYWgR-Aa7a5LiH.js → ReviewDetailsPage-Ynw6pln--BjtdFL4i.js} +52 -52
- package/dist/assets/{ReviewOverlay-CruJ9O84-C1Nn7-W1.js → ReviewOverlay-DQZwNpFY-DMkxDhbs.js} +1 -1
- package/dist/assets/{RoleWithToolTip-fC3byzzv-DvgcIN_v.js → RoleWithToolTip-DbQ4ezrP-Dd2VpMcB.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CE3tUYhk-COrIX6jB.js → ScheduleDetailsFixedAssetsPage-DlqQBt-s-drLmv8lF.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-BhAqJ1Of-aIc3huKD.js → ScheduleDetailsPage-CrVetPy7-CWE6_gjF.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-NSt1juSD-DIpN7xpp.js → ScheduleSequenceTable-B7pQ00z8-CEVjTUeV.js} +1 -1
- package/dist/assets/{ScreenRoutes-jO5HDDDI.js → ScreenRoutes-Sl9iaV1P.js} +1 -1
- package/dist/assets/{SetUpAccountSection-C1EnJv1V-BqOATLaf.js → SetUpAccountSection-BAsI7p1f-Dy9q8TNa.js} +1 -1
- package/dist/assets/{SignIn-BhIof_Cm-BVhCYPyL.js → SignIn-CE6gxhI3-CtZacIY2.js} +1 -1
- package/dist/assets/{SignInScreen-DYrtrzQo.js → SignInScreen-BTo7-KSm.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BEWNNX_Z-DYJVhy13.js → SpendManagementListViewPage-CURCimXb-CsGfTOO_.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-Vs1Eoxgd-BJBD6w0V.js → SpendManagementPerTabPage-RY3B-92H-DYTGBiT6.js} +1 -1
- package/dist/assets/{SpendManagementSection-C38Zpi1z-zTQSB9zV.js → SpendManagementSection-rHLuZG8_-UxYLxpbV.js} +1 -1
- package/dist/assets/StatementItem-DcPGZchp-CZE_bKaq.js +31 -0
- package/dist/assets/{StatementsPage-CGQhmaXx-BIuU-4wu.js → StatementsPage-5oimgNHp-D8qK05-P.js} +1 -1
- package/dist/assets/{StatusSwitcher-7fiKLb5g-IubUY6EX.js → StatusSwitcher-CLCkXs_4-DhXpfaBL.js} +1 -1
- package/dist/assets/{SubTabSwitcher-9AnfZiNy-DBEVnhtX.js → SubTabSwitcher-DDR7LrDO-DpWQK8Dj.js} +1 -1
- package/dist/assets/{SummaryCard-DOycYLs1-C5OfLiIW.js → SummaryCard-Cg5UVud3-DPRQua4j.js} +1 -1
- package/dist/assets/{TaskManagementPage-CehyMnY0-LzT8-CCR.js → TaskManagementPage-6_zt2ePp-BeO6Q35e.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-Dq2FEgFR-CxbtXrjR.js → TimeRangeSwitcher-BTx3d66N-DkQSngDA.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-By3xz_-m-4vvkqeCS.js → TimeframeSwitcher-BkGiMDhd-Dhql0xBj.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-a3fmbzNR-DF955u5N.js → TimeframeSwitcherWithToggle-M554ai9V-DeR389hA.js} +2 -2
- package/dist/assets/{TopExCard-GEQpp_KY-BsC8DQsa.js → TopExCard-ym2uAvUy-DkU_w9K-.js} +10 -10
- package/dist/assets/{TopExDetailPage-hid1dQYl-o5BnuopY.js → TopExDetailPage-DU1Qj5ea-DhOfzSmR.js} +6 -6
- package/dist/assets/{TransactionDetailPage-CX4JW9WM-gkT488m-.js → TransactionDetailPage-BHyBhrM7-B3UILKwv.js} +1 -1
- package/dist/assets/{TransactionList-BixeXh4Y-CBLpnxhT.js → TransactionList-CIbSavhJ-Dp71olkE.js} +1 -1
- package/dist/assets/{TransactionListBig-CGMMJQBd-Bi6fPPO-.js → TransactionListBig-kC4b3DAu-DjTE72OH.js} +1 -1
- package/dist/assets/{TransactionListPage-CBVUTX4y-DvUQlgTG.js → TransactionListPage-Ci98GcF7-ClRcNxWS.js} +2 -2
- package/dist/assets/{TransactionVendorDetailPage-CEbHH_0r-vhA6GFtl.js → TransactionVendorDetailPage-DI4kq_vO-D-o6bFok.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BFd7uQnF-CdQTDGt-.js → TransferDrawerPage-B342yNDJ-CsWgYoId.js} +11 -11
- package/dist/assets/{TreasuryOverviewPage-Bd58hOy8-DrtmZ_fp.js → TreasuryOverviewPage-cvOuWLTK-CefWRHUR.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-BvArufHi-zGiWS1XQ.js → TreasuryPromoPage-DyseS2l1-PYUqYVga.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-YLCEBbRh-rIAdAl8t.js → TreasuryStatementsPage-rXMNPd2f-B8HSB6xE.js} +2 -2
- package/dist/assets/{TreasuryTaxLetterPage-D_6mgQqi-DYRPEoC2.js → TreasuryTaxLetterPage-DjV36uFi-ebsJYDfS.js} +2 -2
- package/dist/assets/{TrendChart-D3dT6hUb-DkxaRhLn.js → TrendChart--yie2Xkp-B3lZJMT5.js} +2 -2
- package/dist/assets/{TrendWithTransactions-Gj-u5KXi-BXQxjthK.js → TrendWithTransactions-DVLdmgtU-Cv22_4bm.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-B3eRYolj-CDmprZps.js → UncategorizedAccountsMappingPage-CRypWMwQ-DzPLYLFI.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-DpjR9hUu-B-HccwC1.js → UnitIntegrationPage-DU6Luklp-CVEu7KVf.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-COtszXUY-BbmaGPRn.js → UploadAdditionalDocumentOverlay-jNiTn6qG-D_tolxLp.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-C85mhuSb-CEUsiGHn.js → Vendor2FAPopup-BNA3GtkO-ClfV14L3.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-B9UpKcN3-BTioFEDj.js +1 -0
- package/dist/assets/{VendorDetailPage-BrbKfsL4-Cj99XIhO.js → VendorDetailPage-B6s7kOX--Cl8uI1J2.js} +1 -1
- package/dist/assets/VendorDomesticWireDetailsPage-CVJAmjuC-DlG2tDpP.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-DgBLn3fd-BC-C_gXr.js → VendorFiling1099EditablePage-DiVBfWTv-CQg0-jaT.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-jc7-OExI-B_u4wn_i.js → VendorFirstReviewPage-CuM6lK63-QOnJj4dm.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-c6isgwH2-G6KTzCh7.js → VendorInternationalWireDetailsPage-CcTippeu-CFZ4Mir_.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-8u1L-aEg-CW6R8j3k.js +1 -0
- package/dist/assets/{VendorsAccountsSection--VfdAF3H-CNAOxlvC.js → VendorsAccountsSection-zeM6PeT4-zwdhVM2D.js} +1 -1
- package/dist/assets/{VerifyDevice-CaifjdR8-B6dVM-BL.js → VerifyDevice-iKowLq-3-BWk2f90N.js} +7 -7
- package/dist/assets/{VideoPlayer-BVR9LPmm-B4UxpKEs.js → VideoPlayer-CN28Ho6V-t5x8EBh8.js} +2 -2
- package/dist/assets/{VideoPopup-BEXc8o78-DJiZW-Cs.js → VideoPopup-CfYmxIk4-BV_-FDHV.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-CboqfxzC-gF7sCXHr.js → WarningsDrawerPage-C4jqovLJ-DvCRmdFF.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-Dujj0-XC-V9rgFIsn.js → ZeniAccountDetailPage-M045ginI-CIh86zMI.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage--SMJDGvC-CZS6XXwc.js → ZeniAccountListViewPage-C-eOjorO-Dort1_5m.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-DqLJVQ5t-CkX8FMny.js → ZeniAccountNavBarPieces-Dz9ssqU1-7L41-5ss.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-BVjJvWsA-B4Bz7FjR.js → ZeniAccountPromoPage-BxzNy8wF-ClpXMz8i.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-Dvxst8RT-Dv9aj6me.js → ZeniAccountSetupPage-zWKttj2U-Co7Yvnyy.js} +1 -1
- package/dist/assets/{ZeniCopyright-B88k3pkr-BvEC_X2s.js → ZeniCopyright-2oeOVh0P-DJaD_9oR.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-1DS0MsTI-DXZHqv18.js → ZeniTransferAmountSlider-BADEO33A-DpMPk5Vb.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-D178ysGy.js → add-to-wallet-DgdBD8_G-eMWALCp1.js} +1 -1
- package/dist/assets/{analytics-D090O6Wm.js → analytics-DCCTWnnc.js} +1 -1
- package/dist/assets/{analyticsHelper-DmujELNG-CdoVsqKC.js → analyticsHelper-C2XPB_2A-DuJwOZQc.js} +1 -1
- package/dist/assets/{analyticsHelper-CW9XC1-j.js → analyticsHelper-DnU5BAvo.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-Ccxih1KW.js → arrow-south-east-round-PEovUgvH-9nM57KjQ.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CaIDNTCx.js → auto-transfer-rule-mbafm5D3-DeA5cpdU.js} +1 -1
- package/dist/assets/{chartTypes-DRiSljvE-DHGd6p3G.js → chartTypes-PZyiFZrr-DoI-jL6q.js} +1 -1
- package/dist/assets/{commonDimensions-BDftm0gJ-CtNxdt96.js → commonDimensions-C_y3LIE8-X_N9ThEv.js} +1 -1
- package/dist/assets/{constants-B1WOPvRN.js → constants-COrMNehl.js} +1 -1
- package/dist/assets/{core-BCGhSsNP.js → core-D2k9JfRf.js} +1 -1
- package/dist/assets/{dash.all.min-DQU9jzwW.js → dash.all.min-wMAz1qMX.js} +1 -1
- package/dist/assets/{detailCommon-BGgE4mE3-BIZKCRTc.js → detailCommon-PTd6DPpO-o02U7S0B.js} +1 -1
- package/dist/assets/{downloadPdf-DCQ9vVZs-BAK1KQub.js → downloadPdf-BdoS2D6l-B5cqxKI-.js} +1 -1
- package/dist/assets/{empty-Db_Oj0CQ.js → empty-D-w6ZnHI.js} +1 -1
- package/dist/assets/{empty-BFpyIT14.js → empty-D0VEAoJw.js} +1 -1
- package/dist/assets/{epic-BhAddVo8.js → epic-ClwVDlVx.js} +2 -2
- package/dist/assets/{gift-box-Cmt9OgIZ-BVmGGIyo.js → gift-box-Cmt9OgIZ-D29dLASa.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-BUSuwQOu.js → graphic-no-data-l-DU4J8fDt-C5a4mTsI.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-9rVTKZNa.js → graphic-no-data-net-burn-l-CzmycA0m-DMABn47o.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-DBfm_e1t.js → handshake-BPg58FML-CY1iZII1.js} +1 -1
- package/dist/assets/{index-DOvOS8E_.js → index-BDimSyBu.js} +1 -1
- package/dist/assets/{index-CrL4860P.js → index-BNglrSQW.js} +1 -1
- package/dist/assets/{index-BpEXgtW2.js → index-BeaEqEWK.js} +1 -1
- package/dist/assets/{index-DT-oXxhz.js → index-Byk1BTgy.js} +1 -1
- package/dist/assets/{index-RjyLdqZN.js → index-CCUQyVRy.js} +1 -1
- package/dist/assets/{index-BGhFLU7w.js → index-CK2D3iZ1.js} +6 -6
- package/dist/assets/{index-DuKH4leN.js → index-n5uJZ9k2.js} +1 -1
- package/dist/assets/{lexical-CtZYfzDm.js → lexical-BEs89iUy.js} +1 -1
- package/dist/assets/{liveblocks-DjrSQGDL.js → liveblocks-CofSwFWW.js} +1 -1
- package/dist/assets/{lottie-QlMyEFez.js → lottie-BO8FHl2Q.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-CUy8c_Sm-CvM45xH7.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BZSP-VcP-woXs_v4t.js → mapSectionWithAcOnlyToTreeNode-C6gW1Rqr-Dv2Q5ZLA.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-DqR98mLo-CGAj6TpO.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-BIGZRHHI-DtvbK4iE.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-BooGIyls-Ct92rF5c.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-ExH9IzF0.js → mapTimeframeHeaderLoadingInProgressToTreeNode-lSB04gFW-CRpECfjU.js} +1 -1
- package/dist/assets/{mui-8xKzSljO.js → mui-DCr-y2iU.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-DjAUkIIu.js → page-detail-CWX5S47F-DDARVgTr.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-DioVIMbJ.js → radio-default-CiSgisfh-DO_kFVBk.js} +1 -1
- package/dist/assets/{react-euUD_2CS.js → react-BGUULhAS.js} +1 -1
- package/dist/assets/{react-CQVfZdRf.js → react-BgpCchG_.js} +1 -1
- package/dist/assets/{react-DEufTa0Y.js → react-CEdfmx42.js} +1 -1
- package/dist/assets/{react-C26MaKuf.js → react-CFfs9kVE.js} +1 -1
- package/dist/assets/{react-1fNkcXJk.js → react-DFeqXhsB.js} +1 -1
- package/dist/assets/{react-BpMq70Jz.js → react-DgBRIATV.js} +1 -1
- package/dist/assets/{react-CvSzLYZW.js → react-UyoSCzBu.js} +1 -1
- package/dist/assets/{react-5bc96E7k.js → react-j6fq6Sto.js} +2 -2
- package/dist/assets/{recharts-BnXj3KRI.js → recharts-CIKvFUT6.js} +1 -1
- package/dist/assets/{sentry-C9BQzslk.js → sentry-Dm3bm_ok.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DfgTXsyM.js → shield-DOlUxcFf-BEm6OgBB.js} +1 -1
- package/dist/assets/toCOABalancesWithID-CPbzhUua-B5GAWKcP.js +1 -0
- package/dist/assets/{toChartData-CavJzP6f-MNPPYJmI.js → toChartData-BUhYY9IR-S8AOthKK.js} +1 -1
- package/dist/assets/{transaction-placeholder-CpOwZAMG-DvtWJS0D.js → transaction-placeholder-CpOwZAMG-gpUqGjUj.js} +1 -1
- package/dist/assets/{uploadAttachment-BuVCsq0Q-S-SyFEfz.js → uploadAttachment-D-Lomshq-0SKv4D0e.js} +1 -1
- package/dist/assets/{uploadReceipts-CPw64UYa-BH5K-sl5.js → uploadReceipts-CPw64UYa-BEcpM53g.js} +1 -1
- package/dist/assets/{url-MazUlenF.js → url-BXpa7lO3.js} +1 -1
- package/dist/assets/{url-WfClTpIP.js → url-D9ndU82p.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-DGIP6WpU.js → useLongPress-GCK2COYQ-DzUxHAZU.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-CVrOUZlu.js → usp-line-BBd1wKwW-Cow5FZNy.js} +1 -1
- package/dist/assets/{utils-zYB6z_it.js → utils-CVsOBiWJ.js} +1 -1
- package/dist/assets/{zeni-epic-state-D9zDRHOK.js → zeni-epic-state-Cgro3mH-.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AccountInfoPage-DfT5DDiZ-DND7ENQF.js +0 -18
- package/dist/assets/ChargeCardPromoPage-CDJMtGJb-hssoPQjs.js +0 -222
- package/dist/assets/CustomerOnboardingContainerPage-SmOFmXBW-DTN0ucTw.js +0 -1
- package/dist/assets/EntityDetailPage-5Cu1qehd-BdCQHbCi.js +0 -18
- package/dist/assets/MagicLinkACHDetailsPage-CUHMKmcj-BWS1eLIz.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-Dnc7OzKQ-BkvhGPqZ.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-sBpQkYwP-DYCM1cCk.js +0 -1
- package/dist/assets/StatementItem-bHInVThd-Bfw9F8uL.js +0 -31
- package/dist/assets/VendorACHDetailsPage-DeexeWpV-CWx4yTGx.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-DBChSKlR-CPIfYbL9.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CywCx8-0-BuJYqFug.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-CXP8ZZTG-DEpSFHGZ.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-Bc1S_1ej-D8Xyxewi.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-ClgcHX26-CH6aCNop.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cwp98PMa-D47kQKR9.js +0 -1
- package/dist/assets/toCOABalancesWithID--oEGymMJ-DkNt3ShR.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{V as
|
|
1
|
+
import{V as l,fs as tn,q as We,d as nn,a8 as an,cB as me,aN as He,C as ft,aA as Ke,bz as on,o as re,ab as sn,c as Q,aO as rn,hF as ln,g6 as cn,ft as yt,eU as Ot,F as Ye,eV as gt,y as fe,g9 as ye,cO as dn,ak as pn,hG as ht,ac as St,cM as un,g8 as mn}from"./index-CK2D3iZ1.js";import{a as m}from"./sentry-Dm3bm_ok.js";import{n as P,k as wt}from"./mui-DCr-y2iU.js";import{bi as j}from"./zeni-epic-state-Cgro3mH-.js";import{s as Ct,o as fn}from"./PaymentAccountSetupBillingAddressSection-C8QwChEK-DSZP0_gt.js";import{b as bt,f as yn,a as It}from"./CustomerOnboardingDetailPageSkeleton-hF2fjE7f-Bx4vnxk_.js";import{s as gn,S as hn}from"./CompanyOfficerDetailsSection-mKcrRkb5-BdmL4WQb.js";import{t as Sn}from"./QBOSetupSection-BTjj7g98-CXsc6nTM.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";import"./SetUpAccountSection-BAsI7p1f-Dy9q8TNa.js";import"./LabeledAddressValueField-DpcuqwLy-CTnD7CIG.js";import"./LabeledCreatableSingleSelectField-D_oWjB4_-A2URoXC_.js";import"./LabeledDocumentField-dtnakMLl-DM4CLrZI.js";import"./QBOConnectionDialog-Bv6unk3C-C69fuiCc.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new n.Error().stack;C&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[C]="9d861626-c53e-4b72-9690-e2f092454a59",n._sentryDebugIdIdentifier="sentry-dbid-9d861626-c53e-4b72-9690-e2f092454a59")}catch{}})();const Cn=({companyView:n,companyOfficerLocalData:C,allNationalityCountries:r,isVerificationPopupOpen:g,setIsVerificationPopupOpen:v,verifiedPhoneNumber:O,onPhoneVerified:h,...w})=>{const y=We(),V=n?.companyOfficers.slice(0,10).sort((I,ee)=>I.user.createTime?.isAfter(ee.user.createTime)===!0?1:-1)?.map(I=>I.user),{company_officer:c}=Ye.getLocalizedStrings().customerOnboardingPage.sections,{title:_}=c,$=n?.company.company.featuresActivationInfo.connectedAccountProvider;return l.jsx(bn,{children:l.jsx(hn,{companyOfficerData:C,allOfficers:V??[],allNationalityCountries:r,sectionHeader:_,isPopupOpen:g,productType:"onboarding",connectedAccountProvider:$,showInfoTooltip:y!=="small",showCompletedIcon:y==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:O,onPhoneVerified:h,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:v,...w})})},bn=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: center;
|
|
5
|
-
`,In=({fileProps:n,companyDetails:C,companyIndustries:r,sectionId:g,isCompleted:v,isDisabled:O,style:h,onCompanyAddressClick:w,onRegisteredAddressClick:y})=>{const V=We(),{company_details:
|
|
5
|
+
`,In=({fileProps:n,companyDetails:C,companyIndustries:r,sectionId:g,isCompleted:v,isDisabled:O,style:h,onCompanyAddressClick:w,onRegisteredAddressClick:y})=>{const V=We(),{company_details:c}=Ye.getLocalizedStrings().customerOnboardingPage.sections,{title:_}=c;return l.jsx(Pn,{children:l.jsx(gn,{fileProps:n,companyDetails:C,sectionId:g,isDisabled:O,style:h,sectionHeader:_,productType:"onboarding",showInfoTooltip:V!=="small",showCompletedIcon:V==="small",isCompleted:v,allIndustries:r,optionalFields:["companyLegalName","companyDescription","companyAddress","companyIndustry","typeOfIncorporation","incDate","certificateOfIncorporation","ein","companyPhone","primaryContactName"],onCompanyAddressClick:w,onRegisteredAddressClick:y})})},Pn=P.div`
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
justify-content: center;
|
|
@@ -10,7 +10,7 @@ import{V as c,fs as tn,q as We,d as nn,a8 as an,cB as me,aN as He,C as ft,aA as
|
|
|
10
10
|
display: flex;
|
|
11
11
|
`,wn=P.input`
|
|
12
12
|
display: none;
|
|
13
|
-
`,xn=({isValid:n,sectionId:C="onboardingQboConnection",...r})=>{const{register:g}=dn();return c.jsxs(On,{children:[c.jsx(wn,{type:"hidden",...g(`${C}.connected`,{validate:v=>v==="true"}),value:n?"true":"false"}),c.jsx(Sn,{isValid:n,...r})]})},B="companyDetails",b="companyOfficer",J="onboardingPaymentAccountSetupSection",Pt="customerOnboardingDetailPage",f="onboardingSubscriptionBillingAddress",ge="onboardingQboConnection",he={titleWidth:new fe(343,580,726,826),topNavBarHeight:new fe(52,52,63),topNavBarLeftRightSpace:new fe(Q[5],Q[9],112),subTitlePaddingTop:new fe(Q[3],Q[3]),subTitlePaddingBottom:new fe(Q[3],Q[3])},kn=n=>`${n}_form`,ce=Ye.getLocalizedStrings(),vn=({fileProps:n,isRefreshingViewInBackground:C,isAdmin:r,onboardingCustomerView:g,companyTitles:v,connectedAccountProvider:O,analytics:h,cardPaymentView:w,stripeKey:y,googleAPIKey:V,handleCreateCardSetupIntent:l,handleConfirmCardSetupIntent:_,updateCardPaymentModalState:$,handleAddCardPaymentSource:I,resetCardPaymentViewState:ee,handleResetCardPaymentErrorStatuses:ve,redirectToProductSuitePage:Se,onFormErrorsChange:D,...Ne})=>{const R=We(),Ve=m.useRef(null),_e=m.useRef(null),W=m.useRef(null),Ae=m.useRef(null),[Ce,z]=m.useState(!1),[U,q]=m.useState("next"),[F,be]=m.useState(!1),[le,Ie]=m.useState(!1),[te,Y]=m.useState(null),{onAddressClick:ne,onCompanyDetailsChanged:Pe,onCompanyOfficerUpdated:A,onFetchLinkTokenClick:Oe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:oe,onDeleteFile:N,onEditFileName:Ge,updateFilesEntity:Ze,onGetOtp:xt,onSkipSetupClick:De,onUpdateCustomerView:Te,updateStepHandler:M,onVerifyOtp:kt,onResendOtp:vt,handleOnConnectClick:Nt,updateQBOPopupState:Vt,onUpdateStep:$e,onAddressEditHandler:_t}=Ne,At=nn(),s=an({mode:"onSubmit",reValidateMode:"onChange",defaultValues:Qe(g,g.allNationalityCountries),values:Qe(g,g.allNationalityCountries),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),H=m.useCallback(()=>{const e=[];return(s.getFieldState(J).error!=null||s.getFieldState(f).error!=null)&&e.push("link_payment_account"),s.getFieldState(ge).error!=null&&e.push("qbo_connection"),e},[s]);m.useEffect(()=>{const e=H();D?.(e)},[H,D]),m.useEffect(()=>{const e=s.watch((t,{name:a,type:i})=>{a!=null&&(i==="change"||i==="blur")&&me(()=>{const u=H();D?.(u)})});return()=>e.unsubscribe()},[s,H,D]);const Xe=e=>{tt(e)},{companyView:se,companyDetailsLocalData:d,companyOfficerLocalData:E,currentStep:o,completedSteps:Je,saveStatus:x,allSteps:S,allRequiredStepsCompleted:Fe,paymentAccount:K,paymentAccountStatus:et,externalConnections:Ee,plaidConnectionDetails:Le,uiState:je,allNationalityCountries:Be,pendingSaveDetails:{companyDetails:Dt,officer:Tt},subscriptionBillingAddress:G}=g,we=m.useRef(""),$t=e=>{we.current=e;const t=Object.values(g.companyOfficerLocalData).findIndex(i=>i?.isSelectedForVerification===!0)??0,a=t<0?0:t;s.clearErrors(`${b}.${a}.phone`)},tt=e=>{e!=null&&!ye(e)?s.trigger(`${b}.${Z}.phone`):xt(e)},Z=Object.values(E).findIndex(e=>e?.isSelectedForVerification===!0)??0,T=`Officer_${Z<0?1:Z+1}`,Ft=se?.companyOfficers.slice(0,10).sort((e,t)=>e.user.createTime?.isAfter(t.user.createTime)===!0?1:-1),Re=E[T]?.userId!=null?Ft?.find(e=>e.user.userId===E[T]?.userId)?.address:null,nt=E[T]?.addressStatus?.addressToCreate,xe=se?.companyAddress,at=d?.addressStatus?.addressToCreate,ze=se?.registeredAddress,ot=d?.registeredAddressStatus?.addressToCreate,{customerOnboardingPage:Et,common:p}=ce,{footer:Lt,steps:jt}=Et,{buttons:st}=Lt,it=jt[o],Ue=S.length,ie=He(x.fetchState),L=He(o);function Bt(){return Ee?.accounting[0]?.isValid??!1}const ue=()=>{const e=Object.values(Le).some(u=>u.fetchStatus.fetchState==="Completed"),t=K?.providerVerificationStatus?.code?.includes("verified")??!1,a=w.cardsList.length>0,i=w.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return e&&t||!t&&!K&&a||!a&&!K&&i};function rt(){if(s.getFieldState(f).error)return!1;const e=s.getValues(f),t=G?.street.join("").trim(),a=G?.city,i=G?.state,u=G?.country,k=G?.postalCode!=null&&G.postalCode||e.postalCode||p.strings.empty;return!!t&&!!a&&!!i&&!!u&&!!k}const ct=He(K?.providerVerificationStatus?.code),Rt=()=>{const e=d,t=[];return e?.companyLegalName!=null&&t.push("legal_name"),e?.companyDescription!=null&&e?.companyDescription!==p.strings.empty&&t.push("company_description"),e?.addressStatus?.addressToCreate!=null&&t.push("company_address"),e?.registeredAddressStatus?.addressToCreate!=null&&t.push("registered_address"),e?.website!=null&&t.push("website"),e?.companyIndustry!=null&&e?.companyIndustry!==p.strings.empty&&t.push("industry"),e?.typeOfIncorporation!=null&&e?.typeOfIncorporation!==p.strings.empty&&t.push("type_of_incorporation"),e?.incDate!=null&&t.push("inc_date"),e?.phone!=null&&t.push("phone"),e?.primaryContactLocalData?.firstName!=null&&e?.primaryContactLocalData?.lastName!=null&&t.push("primary_contact_name"),e?.primaryContactLocalData?.email!=null&&t.push("primary_contact_email"),e?.taxIdOrEIN!=null&&t.push("tax_id_or_ein"),e?.companyFiles.find(a=>a.documentType==="certificate_of_incorporation")!=null&&t.push("certificate_of_incorporation"),e?.companyFiles.find(a=>a.documentType==="tax_ein")!=null&&t.push("ein"),{completedFields:t,status:t.length===14?"complete":t.length>0?"partially_complete":"incomplete"}},zt=()=>{const e=E[T],t=[];return e?.firstName!=null&&e.firstName!==p.strings.empty&&t.push("first_name"),e?.lastName!=null&&e.lastName!==p.strings.empty&&t.push("last_name"),e?.birthday!=null&&t.push("dob"),e?.nationalityCountryCode!=null&&t.push("nationality"),e?.addressStatus?.addressToCreate!=null&&t.push("address"),e?.phone!=null&&e.phone!==p.strings.empty&&e.isPhoneVerified===!0&&t.push("phone"),e?.titleAtCompany!=null&&e.titleAtCompany!==p.strings.empty&&t.push("company_role"),e?.ownershipInCompany!=null&&t.push("ownership"),e?.ssn!=null&&e.ssn!==p.strings.empty&&t.push("ssn"),e?.documentTypeSelectedForVerification!=null&&t.push("document_type"),e?.fileIds!=null&&e.fileIds.length>0&&t.push("document_uploaded"),{completedFields:t,status:t.length===11?"complete":t.length>0?"partially_complete":"incomplete"}};m.useEffect(()=>{ct==="pending_manual_verification"&&K?.providerVerificationStatus?.code==="manually_verified"&&h.trackOnboardingBankAccountVerified("manual")},[h,K?.providerVerificationStatus?.code,ct]);const Ut=async(e,t)=>{if(e.includes(B))Pe?.(t[B]);else if(e.includes(b))A?.(t[b]);else if(e.includes(f)&&t[f]!=null){const a=s.getValues(`${f}`).country;let i=t[f];if(e.includes(`${f}.street`)&&t[f].street!=null){const{addressValue:u}=t[f].street,k=Ot(u?.country);i={street:t[f].street??p.strings.empty,city:u?.locality??p.strings.empty,state:u?.administrativeAreaLevel1??p.strings.empty,country:k,countryCode:u?.countryCode??p.strings.empty,postalCode:u?.postalCode??p.strings.empty,secondaryInfo:t[f].secondaryInfo,suite:t[f].suite},a.selectedOption!==k.selectedOption&&(i={...i,country:k})}else e===`${f}.country`&&a.selectedOption!=null?i={...i,countryCode:gt(a.selectedOption)}:a.selectedOption!=null&&e.includes(`${f}.street`)===!1&&(i={...i,countryCode:gt(a.selectedOption)});_t(i)}};m.useEffect(()=>{const e=s.watch((t,{name:a})=>{a!=null&&t!=null&&me(()=>Ut(a,t))});return()=>{e.unsubscribe()}}),m.useEffect(()=>{ie==="In-Progress"&&x.fetchState==="Completed"&&(s.reset(Qe(g,Be),{keepDirtyValues:!1}),L==="company_details"&&o==="link_payment_account"&&!S.includes("qbo_connection")&&!g.qboConnected&&Se())},[s,g,ie,x.fetchState,Be,L,o,S,Se]),m.useEffect(()=>{Ce&&ie==="In-Progress"&&x.fetchState==="Completed"&&(De(),h.track(ft.Event.onboardingSkipAndSave))},[ie,Ce,x.fetchState,De]),m.useEffect(()=>{te?.shouldNavigate===!0&&ie==="In-Progress"&&x.fetchState==="Completed"&&(Y(null),M(te.fromStep,te.stepDirection,!0))},[te,ie,x.fetchState,M]),m.useLayoutEffect(()=>{L!=null&&L!==o&&(S.indexOf(L)===S.indexOf(o)-1||S.indexOf(L)===Ue-1&&S.indexOf(o)===0?U!=="next"&&q("next"):(S.indexOf(L)-1===S.indexOf(o)||S.indexOf(L)===0&&S.indexOf(o)===Ue-1)&&U!=="previous"&&q("previous"))},[S,o,L,U,Ue]);const lt=()=>{const e=E[T];return!!e?.firstName||!!e?.lastName||!!e?.email||!!e?.nationalityCountryCode||!!e?.birthday||!!e?.ownershipInCompany||!!e?.phone||!!e?.ssn||!!e?.titleAtCompany||!!e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0},qt=!Ke(nt!=null?j(nt):null,Re!=null?j(Re):null),Mt=!Ke(at!=null?j(at):null,xe!=null?j(xe):null),Ht=!Ke(ot!=null?j(ot):null,ze!=null?j(ze):null),Kt=s.getFieldState(B).isDirty||Mt||Ht||Dt,qe=s.getFieldState(b).isDirty&<()||qt||Tt,dt=s.getFieldState(`${f}`).isDirty,ke=d?.primaryContactLocalData,Qt=()=>{M(o,"previous",!0)},Wt=()=>{const e=s.getValues(f),t={street:e.street.addressString,suite:e.suite,city:e.city,state:e.state,postalCode:e.postalCode,country:e.country.selectedOption??p.strings.empty,secondaryInfo:e.secondaryInfo};h.trackOnboardingBillingAddressSave(t)},Yt=()=>{switch(Ie(!1),o){case"link_payment_account":dt?setTimeout(()=>{const e=H();D?.(e),rt()&&dt?(Wt(),Te(T,!1,!0),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"})):M(o,"next",!0)},200):M(o,"next",!0);break;case"qbo_connection":M(o,"next",!0);break;case"company_officer":if(qe){const e=pt();if(me(()=>{const t=H();D?.(t)}),e.needsOtp&&e.phoneNumber&&ye(e.phoneNumber)){const t=s.formState.errors[b]?.[Z<0?0:Z],a=t?.phone,i=t!=null&&Object.keys(t).some(u=>u!=="phone"&&t[u]!=null);if(a!=null&&!i){Xe(e.phoneNumber);return}}e.isValid&&(Te(T,!1,!1),h.trackOnboardingCompanyOfficerSave(ut(),{legalName:d?.companyLegalName},zt()),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"}))}else M(o,"next",!0);break;case"company_details":Ie(!0);{const e=!(rt()&&ue()),t=!Bt()&&S.includes("qbo_connection");if(e||t){e&&(s.trigger(`${J}`),s.trigger(`${f}`)),t&&s.trigger(ge),me(()=>{const a=H();D?.(a)}),e?$e("link_payment_account"):t&&$e("qbo_connection");return}}if(Kt||qe||!ke?.email){const e=Zt(),t=qe?pt():{isValid:!0};me(()=>{const a=H();D?.(a)}),e&&t.isValid?(Fe&&(z(!0),Xt()),Te(T,!Fe,!1),h.trackOnboardingCompanyDetailsSave({companyDescription:d?.companyDescription,legalName:d?.companyLegalName,industry:d?.companyIndustry??p.strings.empty,incDate:d?.incDate?.toString(),phone:d?.phone,website:d?.website?.toString(),formattedAddress:d?.addressStatus?.addressToCreate!=null?j(d?.addressStatus?.addressToCreate):void 0},Rt(),{firstName:ke?.firstName,lastName:ke?.lastName,email:ke?.email}),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"})):t.isValid||$e("company_officer")}else Fe?Gt():M(o,"next",!0);break}},Gt=()=>{x.fetchState!=="In-Progress"&&(De(),h.track(ft.Event.onboardingSkipAndSave))},pt=()=>{const e=E[T],t=e?.email??p.strings.empty,a=e?.phone??p.strings.empty,i=e?.ssn??p.strings.empty,u=e?.ownershipInCompany,k=Z<0?0:Z,en=!!e?.firstName&&!!e?.lastName;let X=!0,mt=!1;return t&&!en&&(s.trigger([`${b}.${k}.name.firstName`,`${b}.${k}.name.lastName`],{shouldFocus:o==="company_officer"}),X=!1),(!t&<()||St.test(t)===!1)&&(s.trigger(`${b}.${k}.email`,{shouldFocus:o==="company_officer"}),X=!1),a&&ye(a)===!1&&(s.trigger(`${b}.${k}.phone`,{shouldFocus:o==="company_officer"}),X=!1),a&&ye(a)===!0&&O==="unit"&&(we.current!==""&&a===we.current||(mt=!0,s.setError(`${b}.${k}.phone`,{type:"custom",message:ce.commonSetUp.businessVerification.phoneValidationError},{shouldFocus:o==="company_officer"}),X=!1)),u!=null&&u>100&&(s.trigger(`${b}.${k}.ownership`,{shouldFocus:o==="company_officer"}),X=!1),i&&mn.test(i)===!1&&(s.trigger(`${b}.${k}.ssn`,{shouldFocus:o==="company_officer"}),X=!1),{isValid:X,needsOtp:mt,phoneNumber:a}},Zt=()=>{const e=d?.website?.toString()??p.strings.empty,t=d?.phone??p.strings.empty,a=d?.taxIdOrEIN??p.strings.empty,i=d?.primaryContactLocalData?.email??p.strings.empty;let u=!0;return e&&ht.test(e)===!1&&(s.trigger(`${B}.companyWebsite`,{shouldFocus:o==="company_details"}),u=!1),ht.lastIndex=0,t&&ye(t)===!1&&(s.trigger(`${B}.companyPhone`,{shouldFocus:o==="company_details"}),u=!1),(!i||St.test(i)===!1)&&(s.trigger(`${B}.primaryContactEmail`,{shouldFocus:o==="company_details"}),u=!1),a&&un.test(a)===!1&&(s.trigger(`${B}.companyTaxId`,{shouldFocus:o==="company_details"}),u=!1),u},ut=()=>{const e=E[T];return{email:e?.email??p.strings.empty,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?j(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification}},Xt=()=>{const e=d?.primaryContactLocalData;h.trackBusinessVerificationSave(ut(),{companyDescription:d?.companyDescription,legalName:d?.companyLegalName,phone:d?.phone,website:d?.website?.toString(),industry:d?.companyIndustry??p.strings.empty,formattedAddress:d?.addressStatus?.addressToCreate!=null?j(d?.addressStatus?.addressToCreate):void 0},{firstName:e?.firstName,lastName:e?.lastName,email:e?.email},"onboarding")},[Me,Jt]=m.useState(!1);return c.jsxs(_n,{children:[c.jsxs(An,{windowSize:R,children:[S.indexOf(o)>=0?c.jsx(on,{title:it.sectionTitle,showBackButton:!1,backgroundColor:At.colors.grey4,style:{zIndex:4},showLeftSection:R!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:re.sp0,paddingBottom:re.sp0},source:"CustomerOnboardingDetailPage"}):c.jsx(Dn,{windowSize:R,children:c.jsx($n,{windowSize:R,children:c.jsx(Tn,{})})}),c.jsx(sn,{...s,children:c.jsx(En,{id:kn(Pt),children:S.map(e=>{let t;t=c.jsx(Ct,{connectedAccountProvider:O,paymentAccount:K,accountStatus:et,plaidConnectionDetails:Le,sectionId:J,hasError:s.getFieldState(J).error!=null||le&&!ue(),isValid:ue(),analytics:h,onFetchLinkTokenClick:Oe,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,cardPaymentView:w,resetCardPaymentViewState:ee,updateCardPaymentModalState:$,cardSetupInProgress:Me,subscriptionBillingAddressSectionId:f});let a=Ve;switch(e){case"link_payment_account":t=c.jsx(Ct,{connectedAccountProvider:O,paymentAccount:K,accountStatus:et,plaidConnectionDetails:Le,subscriptionBillingAddressSectionId:f,sectionId:J,hasError:s.getFieldState(J).error!=null||le&&!ue(),isValid:ue(),analytics:h,onFetchLinkTokenClick:Oe,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,updateCardPaymentModalState:$,cardPaymentView:w,resetCardPaymentViewState:ee,cardSetupInProgress:Me,googleAPIKey:V,subscriptionBillingAddress:G});break;case"qbo_connection":t=c.jsx(xn,{sectionId:ge,hasError:s.getFieldState(ge).error!=null,isAdmin:r,isValid:Ee?.accounting[0]?.isValid??!1,companyName:se?.company.company.companyInfo.companyLegalName,saveConnectionState:Ee?.saveConnectionState,isQBOPopupOpen:je.isQBOPopupOpen,handleOnConnectClick:Nt,updateQBOPopupState:Vt}),a=_e;break;case"company_officer":t=c.jsx(Cn,{companyOfficerLocalData:E,allNationalityCountries:Be,isCompleted:Je.includes("company_officer"),companyView:se,sectionId:b,filesEndPoint:n.filesEndPoint,authParams:n.authParams,isRefreshingViewInBackground:C,companyTitles:v,isVerificationPopupOpen:F,setIsVerificationPopupOpen:be,onGetOtp:Xe,onVerifyOtp:kt,onResendOtp:vt,onOfficerAddressClick:i=>ne(i,Re?.addressId),updateFilesEntity:Ze,onEditFileName:Ge,onDeleteFile:N,verifiedPhoneNumber:we.current,onPhoneVerified:$t,isDisabled:x.fetchState==="In-Progress"?"readonly":void 0,triggerError:tt}),a=Ae;break;case"company_details":t=c.jsx(In,{fileProps:{...n,onEditFileName:Ge,onDeleteFile:N,updateFilesEntity:Ze},sectionId:B,companyIndustries:g.companyIndustries,companyDetails:d,isDisabled:x.fetchState==="In-Progress"?"readonly":void 0,isCompleted:Je.includes("company_details"),onCompanyAddressClick:i=>{const u=se?.company.company.companyOnboardingInfo.subscriptionBillingAddressId;xe?.addressId==null&&u!=null?ne(i,u):ne(i,xe?.addressId)},onRegisteredAddressClick:i=>ne(i,ze?.addressId)}),a=W;break}return c.jsxs(Fn,{ref:a,isVisible:o===e,includeAnimation:o==="link_payment_account"||o==="qbo_connection"?!je.isQBOPopupOpen:o==="company_officer"?!F:!0,paddingBottom:e==="company_details"||e==="company_officer"?Q[6]:Q[0],stepAnimationDirection:U,children:[S.indexOf(o)>=0?c.jsx(Ln,{windowSize:R,children:it.sectionSubTitle}):null,t]},e)})})}),c.jsx(rn,{formId:`${Pt}`,style:{width:R==="small"?"auto":"100%",paddingTop:re.sp2,paddingBottom:re.sp2},primaryBtn:{onClick:Yt,label:o==="company_details"?p.footer.submit:st.next,isLoading:x.fetchState==="In-Progress",isDisabled:x.fetchState==="In-Progress"},cancelBtn:{onClick:Qt,label:st.back,isDisabled:x.fetchState==="In-Progress"||S.indexOf(o)===0},containerStyle:{width:"auto",justifyContent:"center"},showCancel:!0})]}),c.jsx(fn,{handleConfirmCardSetupIntent:_,updateCardPaymentModalState:$,handleCreateCardSetupIntent:l,handleAddCardPaymentSource:I,cardPaymentView:w,stripeKey:y,isCardPaymentOpen:je.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ve,cardSetupInProgress:Me,setCardSetupInProgress:Jt})]})},Nn=wt`
|
|
13
|
+
`,xn=({isValid:n,sectionId:C="onboardingQboConnection",...r})=>{const{register:g}=dn();return l.jsxs(On,{children:[l.jsx(wn,{type:"hidden",...g(`${C}.connected`,{validate:v=>v==="true"}),value:n?"true":"false"}),l.jsx(Sn,{isValid:n,...r})]})},B="companyDetails",b="companyOfficer",J="onboardingPaymentAccountSetupSection",Pt="customerOnboardingDetailPage",f="onboardingSubscriptionBillingAddress",ge="onboardingQboConnection",he={titleWidth:new fe(343,580,726,826),topNavBarHeight:new fe(52,52,63),topNavBarLeftRightSpace:new fe(Q[5],Q[9],112),subTitlePaddingTop:new fe(Q[3],Q[3]),subTitlePaddingBottom:new fe(Q[3],Q[3])},kn=n=>`${n}_form`,le=Ye.getLocalizedStrings(),vn=({fileProps:n,isRefreshingViewInBackground:C,isAdmin:r,onboardingCustomerView:g,companyTitles:v,connectedAccountProvider:O,analytics:h,cardPaymentView:w,stripeKey:y,googleAPIKey:V,handleCreateCardSetupIntent:c,handleConfirmCardSetupIntent:_,updateCardPaymentModalState:$,handleAddCardPaymentSource:I,resetCardPaymentViewState:ee,handleResetCardPaymentErrorStatuses:ve,redirectToProductSuitePage:Se,onFormErrorsChange:D,...Ne})=>{const R=We(),Ve=m.useRef(null),_e=m.useRef(null),W=m.useRef(null),Ae=m.useRef(null),[Ce,z]=m.useState(!1),[U,q]=m.useState("next"),[F,be]=m.useState(!1),[ce,Ie]=m.useState(!1),[te,Y]=m.useState(null),{onAddressClick:ne,onCompanyDetailsChanged:Pe,onCompanyOfficerUpdated:A,onFetchLinkTokenClick:Oe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:oe,onDeleteFile:N,onEditFileName:Ge,updateFilesEntity:Ze,onGetOtp:xt,onSkipSetupClick:De,onUpdateCustomerView:Te,updateStepHandler:M,onVerifyOtp:kt,onResendOtp:vt,handleOnConnectClick:Nt,updateQBOPopupState:Vt,onUpdateStep:$e,onAddressEditHandler:_t}=Ne,At=nn(),s=an({mode:"onSubmit",reValidateMode:"onChange",defaultValues:Qe(g,g.allNationalityCountries),values:Qe(g,g.allNationalityCountries),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),H=m.useCallback(()=>{const e=[];return(s.getFieldState(J).error!=null||s.getFieldState(f).error!=null)&&e.push("link_payment_account"),s.getFieldState(ge).error!=null&&e.push("qbo_connection"),e},[s]);m.useEffect(()=>{const e=H();D?.(e)},[H,D]),m.useEffect(()=>{const e=s.watch((t,{name:a,type:i})=>{a!=null&&(i==="change"||i==="blur")&&me(()=>{const u=H();D?.(u)})});return()=>e.unsubscribe()},[s,H,D]);const Xe=e=>{tt(e)},{companyView:se,companyDetailsLocalData:d,companyOfficerLocalData:E,currentStep:o,completedSteps:Je,saveStatus:x,allSteps:S,allRequiredStepsCompleted:Fe,paymentAccount:K,paymentAccountStatus:et,externalConnections:Ee,plaidConnectionDetails:Le,uiState:je,allNationalityCountries:Be,pendingSaveDetails:{companyDetails:Dt,officer:Tt},subscriptionBillingAddress:G}=g,we=m.useRef(""),$t=e=>{we.current=e;const t=Object.values(g.companyOfficerLocalData).findIndex(i=>i?.isSelectedForVerification===!0)??0,a=t<0?0:t;s.clearErrors(`${b}.${a}.phone`)},tt=e=>{e!=null&&!ye(e)?s.trigger(`${b}.${Z}.phone`):xt(e)},Z=Object.values(E).findIndex(e=>e?.isSelectedForVerification===!0)??0,T=`Officer_${Z<0?1:Z+1}`,Ft=se?.companyOfficers.slice(0,10).sort((e,t)=>e.user.createTime?.isAfter(t.user.createTime)===!0?1:-1),Re=E[T]?.userId!=null?Ft?.find(e=>e.user.userId===E[T]?.userId)?.address:null,nt=E[T]?.addressStatus?.addressToCreate,xe=se?.companyAddress,at=d?.addressStatus?.addressToCreate,ze=se?.registeredAddress,ot=d?.registeredAddressStatus?.addressToCreate,{customerOnboardingPage:Et,common:p}=le,{footer:Lt,steps:jt}=Et,{buttons:st}=Lt,it=jt[o],Ue=S.length,ie=He(x.fetchState),L=He(o);function Bt(){return Ee?.accounting[0]?.isValid??!1}const ue=()=>{const e=Object.values(Le).some(u=>u.fetchStatus.fetchState==="Completed"),t=K?.providerVerificationStatus?.code?.includes("verified")??!1,a=w.cardsList.length>0,i=w.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return e&&t||!t&&!K&&a||!a&&!K&&i};function rt(){if(s.getFieldState(f).error)return!1;const e=s.getValues(f),t=G?.street.join("").trim(),a=G?.city,i=G?.state,u=G?.country,k=G?.postalCode!=null&&G.postalCode||e.postalCode||p.strings.empty;return!!t&&!!a&&!!i&&!!u&&!!k}const lt=He(K?.providerVerificationStatus?.code),Rt=()=>{const e=d,t=[];return e?.companyLegalName!=null&&t.push("legal_name"),e?.companyDescription!=null&&e?.companyDescription!==p.strings.empty&&t.push("company_description"),e?.addressStatus?.addressToCreate!=null&&t.push("company_address"),e?.registeredAddressStatus?.addressToCreate!=null&&t.push("registered_address"),e?.website!=null&&t.push("website"),e?.companyIndustry!=null&&e?.companyIndustry!==p.strings.empty&&t.push("industry"),e?.typeOfIncorporation!=null&&e?.typeOfIncorporation!==p.strings.empty&&t.push("type_of_incorporation"),e?.incDate!=null&&t.push("inc_date"),e?.phone!=null&&t.push("phone"),e?.primaryContactLocalData?.firstName!=null&&e?.primaryContactLocalData?.lastName!=null&&t.push("primary_contact_name"),e?.primaryContactLocalData?.email!=null&&t.push("primary_contact_email"),e?.taxIdOrEIN!=null&&t.push("tax_id_or_ein"),e?.companyFiles.find(a=>a.documentType==="certificate_of_incorporation")!=null&&t.push("certificate_of_incorporation"),e?.companyFiles.find(a=>a.documentType==="tax_ein")!=null&&t.push("ein"),{completedFields:t,status:t.length===14?"complete":t.length>0?"partially_complete":"incomplete"}},zt=()=>{const e=E[T],t=[];return e?.firstName!=null&&e.firstName!==p.strings.empty&&t.push("first_name"),e?.lastName!=null&&e.lastName!==p.strings.empty&&t.push("last_name"),e?.birthday!=null&&t.push("dob"),e?.nationalityCountryCode!=null&&t.push("nationality"),e?.addressStatus?.addressToCreate!=null&&t.push("address"),e?.phone!=null&&e.phone!==p.strings.empty&&e.isPhoneVerified===!0&&t.push("phone"),e?.titleAtCompany!=null&&e.titleAtCompany!==p.strings.empty&&t.push("company_role"),e?.ownershipInCompany!=null&&t.push("ownership"),e?.ssn!=null&&e.ssn!==p.strings.empty&&t.push("ssn"),e?.documentTypeSelectedForVerification!=null&&t.push("document_type"),e?.fileIds!=null&&e.fileIds.length>0&&t.push("document_uploaded"),{completedFields:t,status:t.length===11?"complete":t.length>0?"partially_complete":"incomplete"}};m.useEffect(()=>{lt==="pending_manual_verification"&&K?.providerVerificationStatus?.code==="manually_verified"&&h.trackOnboardingBankAccountVerified("manual")},[h,K?.providerVerificationStatus?.code,lt]);const Ut=async(e,t)=>{if(e.includes(B))Pe?.(t[B]);else if(e.includes(b))A?.(t[b]);else if(e.includes(f)&&t[f]!=null){const a=s.getValues(`${f}`).country;let i=t[f];if(e.includes(`${f}.street`)&&t[f].street!=null){const{addressValue:u}=t[f].street,k=Ot(u?.country);i={street:t[f].street??p.strings.empty,city:u?.locality??p.strings.empty,state:u?.administrativeAreaLevel1??p.strings.empty,country:k,countryCode:u?.countryCode??p.strings.empty,postalCode:u?.postalCode??p.strings.empty,secondaryInfo:t[f].secondaryInfo,suite:t[f].suite},a.selectedOption!==k.selectedOption&&(i={...i,country:k})}else e===`${f}.country`&&a.selectedOption!=null?i={...i,countryCode:gt(a.selectedOption)}:a.selectedOption!=null&&e.includes(`${f}.street`)===!1&&(i={...i,countryCode:gt(a.selectedOption)});_t(i)}};m.useEffect(()=>{const e=s.watch((t,{name:a})=>{a!=null&&t!=null&&me(()=>Ut(a,t))});return()=>{e.unsubscribe()}}),m.useEffect(()=>{ie==="In-Progress"&&x.fetchState==="Completed"&&(s.reset(Qe(g,Be),{keepDirtyValues:!1}),L==="company_details"&&o==="link_payment_account"&&!S.includes("qbo_connection")&&!g.qboConnected&&Se())},[s,g,ie,x.fetchState,Be,L,o,S,Se]),m.useEffect(()=>{Ce&&ie==="In-Progress"&&x.fetchState==="Completed"&&(De(),h.track(ft.Event.onboardingSkipAndSave))},[ie,Ce,x.fetchState,De]),m.useEffect(()=>{te?.shouldNavigate===!0&&ie==="In-Progress"&&x.fetchState==="Completed"&&(Y(null),M(te.fromStep,te.stepDirection,!0))},[te,ie,x.fetchState,M]),m.useLayoutEffect(()=>{L!=null&&L!==o&&(S.indexOf(L)===S.indexOf(o)-1||S.indexOf(L)===Ue-1&&S.indexOf(o)===0?U!=="next"&&q("next"):(S.indexOf(L)-1===S.indexOf(o)||S.indexOf(L)===0&&S.indexOf(o)===Ue-1)&&U!=="previous"&&q("previous"))},[S,o,L,U,Ue]);const ct=()=>{const e=E[T];return!!e?.firstName||!!e?.lastName||!!e?.email||!!e?.nationalityCountryCode||!!e?.birthday||!!e?.ownershipInCompany||!!e?.phone||!!e?.ssn||!!e?.titleAtCompany||!!e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0},qt=!Ke(nt!=null?j(nt):null,Re!=null?j(Re):null),Mt=!Ke(at!=null?j(at):null,xe!=null?j(xe):null),Ht=!Ke(ot!=null?j(ot):null,ze!=null?j(ze):null),Kt=s.getFieldState(B).isDirty||Mt||Ht||Dt,qe=s.getFieldState(b).isDirty&&ct()||qt||Tt,dt=s.getFieldState(`${f}`).isDirty,ke=d?.primaryContactLocalData,Qt=()=>{M(o,"previous",!0)},Wt=()=>{const e=s.getValues(f),t={street:e.street.addressString,suite:e.suite,city:e.city,state:e.state,postalCode:e.postalCode,country:e.country.selectedOption??p.strings.empty,secondaryInfo:e.secondaryInfo};h.trackOnboardingBillingAddressSave(t)},Yt=()=>{switch(Ie(!1),o){case"link_payment_account":dt?setTimeout(()=>{const e=H();D?.(e),rt()&&dt?(Wt(),Te(T,!1,!0),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"})):M(o,"next",!0)},200):M(o,"next",!0);break;case"qbo_connection":M(o,"next",!0);break;case"company_officer":if(qe){const e=pt();if(me(()=>{const t=H();D?.(t)}),e.needsOtp&&e.phoneNumber&&ye(e.phoneNumber)){const t=s.formState.errors[b]?.[Z<0?0:Z],a=t?.phone,i=t!=null&&Object.keys(t).some(u=>u!=="phone"&&t[u]!=null);if(a!=null&&!i){Xe(e.phoneNumber);return}}e.isValid&&(Te(T,!1,!1),h.trackOnboardingCompanyOfficerSave(ut(),{legalName:d?.companyLegalName},zt()),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"}))}else M(o,"next",!0);break;case"company_details":Ie(!0);{const e=!(rt()&&ue()),t=!Bt()&&S.includes("qbo_connection");if(e||t){e&&(s.trigger(`${J}`),s.trigger(`${f}`)),t&&s.trigger(ge),me(()=>{const a=H();D?.(a)}),e?$e("link_payment_account"):t&&$e("qbo_connection");return}}if(Kt||qe||!ke?.email){const e=Zt(),t=qe?pt():{isValid:!0};me(()=>{const a=H();D?.(a)}),e&&t.isValid?(Fe&&(z(!0),Xt()),Te(T,!Fe,!1),h.trackOnboardingCompanyDetailsSave({companyDescription:d?.companyDescription,legalName:d?.companyLegalName,industry:d?.companyIndustry??p.strings.empty,incDate:d?.incDate?.toString(),phone:d?.phone,website:d?.website?.toString(),formattedAddress:d?.addressStatus?.addressToCreate!=null?j(d?.addressStatus?.addressToCreate):void 0},Rt(),{firstName:ke?.firstName,lastName:ke?.lastName,email:ke?.email}),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"})):t.isValid||$e("company_officer")}else Fe?Gt():M(o,"next",!0);break}},Gt=()=>{x.fetchState!=="In-Progress"&&(De(),h.track(ft.Event.onboardingSkipAndSave))},pt=()=>{const e=E[T],t=e?.email??p.strings.empty,a=e?.phone??p.strings.empty,i=e?.ssn??p.strings.empty,u=e?.ownershipInCompany,k=Z<0?0:Z,en=!!e?.firstName&&!!e?.lastName;let X=!0,mt=!1;return t&&!en&&(s.trigger([`${b}.${k}.name.firstName`,`${b}.${k}.name.lastName`],{shouldFocus:o==="company_officer"}),X=!1),(!t&&ct()||St.test(t)===!1)&&(s.trigger(`${b}.${k}.email`,{shouldFocus:o==="company_officer"}),X=!1),a&&ye(a)===!1&&(s.trigger(`${b}.${k}.phone`,{shouldFocus:o==="company_officer"}),X=!1),a&&ye(a)===!0&&O==="unit"&&(we.current!==""&&a===we.current||(mt=!0,s.setError(`${b}.${k}.phone`,{type:"custom",message:le.commonSetUp.businessVerification.phoneValidationError},{shouldFocus:o==="company_officer"}),X=!1)),u!=null&&u>100&&(s.trigger(`${b}.${k}.ownership`,{shouldFocus:o==="company_officer"}),X=!1),i&&mn.test(i)===!1&&(s.trigger(`${b}.${k}.ssn`,{shouldFocus:o==="company_officer"}),X=!1),{isValid:X,needsOtp:mt,phoneNumber:a}},Zt=()=>{const e=d?.website?.toString()??p.strings.empty,t=d?.phone??p.strings.empty,a=d?.taxIdOrEIN??p.strings.empty,i=d?.primaryContactLocalData?.email??p.strings.empty;let u=!0;return e&&ht.test(e)===!1&&(s.trigger(`${B}.companyWebsite`,{shouldFocus:o==="company_details"}),u=!1),ht.lastIndex=0,t&&ye(t)===!1&&(s.trigger(`${B}.companyPhone`,{shouldFocus:o==="company_details"}),u=!1),(!i||St.test(i)===!1)&&(s.trigger(`${B}.primaryContactEmail`,{shouldFocus:o==="company_details"}),u=!1),a&&un.test(a)===!1&&(s.trigger(`${B}.companyTaxId`,{shouldFocus:o==="company_details"}),u=!1),u},ut=()=>{const e=E[T];return{email:e?.email??p.strings.empty,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?j(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification}},Xt=()=>{const e=d?.primaryContactLocalData;h.trackBusinessVerificationSave(ut(),{companyDescription:d?.companyDescription,legalName:d?.companyLegalName,phone:d?.phone,website:d?.website?.toString(),industry:d?.companyIndustry??p.strings.empty,formattedAddress:d?.addressStatus?.addressToCreate!=null?j(d?.addressStatus?.addressToCreate):void 0},{firstName:e?.firstName,lastName:e?.lastName,email:e?.email},"onboarding")},[Me,Jt]=m.useState(!1);return l.jsxs(_n,{children:[l.jsxs(An,{windowSize:R,children:[S.indexOf(o)>=0?l.jsx(on,{title:it.sectionTitle,showBackButton:!1,backgroundColor:At.colors.grey4,style:{zIndex:4},showLeftSection:R!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:re.sp0,paddingBottom:re.sp0},source:"CustomerOnboardingDetailPage"}):l.jsx(Dn,{windowSize:R,children:l.jsx($n,{windowSize:R,children:l.jsx(Tn,{})})}),l.jsx(sn,{...s,children:l.jsx(En,{id:kn(Pt),children:S.map(e=>{let t;t=l.jsx(Ct,{connectedAccountProvider:O,paymentAccount:K,accountStatus:et,plaidConnectionDetails:Le,sectionId:J,hasError:s.getFieldState(J).error!=null||ce&&!ue(),isValid:ue(),analytics:h,onFetchLinkTokenClick:Oe,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,cardPaymentView:w,resetCardPaymentViewState:ee,updateCardPaymentModalState:$,cardSetupInProgress:Me,subscriptionBillingAddressSectionId:f});let a=Ve;switch(e){case"link_payment_account":t=l.jsx(Ct,{connectedAccountProvider:O,paymentAccount:K,accountStatus:et,plaidConnectionDetails:Le,subscriptionBillingAddressSectionId:f,sectionId:J,hasError:s.getFieldState(J).error!=null||ce&&!ue(),isValid:ue(),analytics:h,onFetchLinkTokenClick:Oe,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,updateCardPaymentModalState:$,cardPaymentView:w,resetCardPaymentViewState:ee,cardSetupInProgress:Me,googleAPIKey:V,subscriptionBillingAddress:G});break;case"qbo_connection":t=l.jsx(xn,{sectionId:ge,hasError:s.getFieldState(ge).error!=null,isAdmin:r,isValid:Ee?.accounting[0]?.isValid??!1,companyName:se?.company.company.companyInfo.companyLegalName,saveConnectionState:Ee?.saveConnectionState,isQBOPopupOpen:je.isQBOPopupOpen,handleOnConnectClick:Nt,updateQBOPopupState:Vt}),a=_e;break;case"company_officer":t=l.jsx(Cn,{companyOfficerLocalData:E,allNationalityCountries:Be,isCompleted:Je.includes("company_officer"),companyView:se,sectionId:b,filesEndPoint:n.filesEndPoint,authParams:n.authParams,isRefreshingViewInBackground:C,companyTitles:v,isVerificationPopupOpen:F,setIsVerificationPopupOpen:be,onGetOtp:Xe,onVerifyOtp:kt,onResendOtp:vt,onOfficerAddressClick:i=>ne(i,Re?.addressId),updateFilesEntity:Ze,onEditFileName:Ge,onDeleteFile:N,verifiedPhoneNumber:we.current,onPhoneVerified:$t,isDisabled:x.fetchState==="In-Progress"?"readonly":void 0,triggerError:tt}),a=Ae;break;case"company_details":t=l.jsx(In,{fileProps:{...n,onEditFileName:Ge,onDeleteFile:N,updateFilesEntity:Ze},sectionId:B,companyIndustries:g.companyIndustries,companyDetails:d,isDisabled:x.fetchState==="In-Progress"?"readonly":void 0,isCompleted:Je.includes("company_details"),onCompanyAddressClick:i=>{const u=se?.company.company.companyOnboardingInfo.subscriptionBillingAddressId;xe?.addressId==null&&u!=null?ne(i,u):ne(i,xe?.addressId)},onRegisteredAddressClick:i=>ne(i,ze?.addressId)}),a=W;break}return l.jsxs(Fn,{ref:a,isVisible:o===e,includeAnimation:o==="link_payment_account"||o==="qbo_connection"?!je.isQBOPopupOpen:o==="company_officer"?!F:!0,paddingBottom:e==="company_details"||e==="company_officer"?Q[6]:Q[0],stepAnimationDirection:U,children:[S.indexOf(o)>=0?l.jsx(Ln,{windowSize:R,children:it.sectionSubTitle}):null,t]},e)})})}),l.jsx(rn,{formId:`${Pt}`,style:{width:R==="small"?"auto":"100%",paddingTop:re.sp2,paddingBottom:re.sp2},primaryBtn:{onClick:Yt,label:o==="company_details"?p.footer.submit:st.next,isLoading:x.fetchState==="In-Progress",isDisabled:x.fetchState==="In-Progress"},cancelBtn:{onClick:Qt,label:st.back,isDisabled:x.fetchState==="In-Progress"||S.indexOf(o)===0},containerStyle:{width:"auto",justifyContent:"center"},showCancel:!0})]}),l.jsx(fn,{handleConfirmCardSetupIntent:_,updateCardPaymentModalState:$,handleCreateCardSetupIntent:c,handleAddCardPaymentSource:I,cardPaymentView:w,stripeKey:y,isCardPaymentOpen:je.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ve,cardSetupInProgress:Me,setCardSetupInProgress:Jt})]})},Nn=wt`
|
|
14
14
|
from {
|
|
15
15
|
transform: translateY(100%);
|
|
16
16
|
opacity: 0;
|
|
@@ -94,7 +94,7 @@ import{V as c,fs as tn,q as We,d as nn,a8 as an,cB as me,aN as He,C as ft,aA as
|
|
|
94
94
|
text-align: ${n=>n.windowSize==="small"?"initial":"center"};
|
|
95
95
|
width: 100%;
|
|
96
96
|
white-space: pre-line;
|
|
97
|
-
`,Qe=(n,C)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:g,companyView:v}=n,O=
|
|
97
|
+
`,Qe=(n,C)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:g,companyView:v}=n,O=le.commonSetUp.businessVerification,h=le.companyPassport,w=v?.companyOfficers!=null&&v?.companyOfficers.length>0;return{[B]:{companyDescription:r?.companyDescription??le.common.strings.empty,ein:r?.companyFiles.find(y=>y.documentType==="tax_ein"),companyId:r?.companyId,syncToken:r?.syncToken,companyLegalName:r?.companyLegalName,companyWebsite:r?.website?.toString()??le.common.strings.empty,companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:n.companyIndustries.map(y=>y.code)},companyPhone:r?.phone,companyTaxId:r?.taxIdOrEIN,primaryContactName:{firstName:r?.primaryContactLocalData?.firstName,lastName:r?.primaryContactLocalData?.lastName},primaryContactEmail:r?.primaryContactLocalData?.email,primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(y=>y.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(y=>y.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:h.companyIncInfo.allTypesOfIncorporation}},[b]:Object.values(g).map((y,V)=>{const c=y,_=cn(c?.documentTypeSelectedForVerification);return{userId:c?.userId,officerType:c?.officerType??`Officer_${V+1}`,name:{firstName:c?.firstName,lastName:c?.lastName},email:c?.email,fileIds:c?.fileIds??[],dob:c?.birthday?.toDate(),nationalityCountryCode:Ot(c?.nationalityCountryCode,C.map($=>$.countryCode)),ssn:c?.ssn,role:{selectedOption:c?.titleAtCompany,allOptions:O.allTypesOfRoles},phone:c?.phone,ownership:c?.ownershipInCompany,officerAddress:c?.addressStatus?.addressToCreate,selectDocument:{front:yt(!0,c?.userFiles??[],_),back:yt(!1,c?.userFiles??[],_),selectDocumentType:_},isSelectedForVerification:!w&&V===0?!0:c?.isSelectedForVerification??!1,userVerificationStatus:c?.userVerificationStatus,syncToken:c?.syncToken,isPhoneVerified:c?.isPhoneVerified,otpChallenge:c?.otpChallenge}}),[J]:{account:{allOptions:[],selectedOption:void 0}},[f]:ln(f,n?.subscriptionBillingAddress)[f],[ge]:{connected:n.externalConnections?.accounting[0]?.isValid??!1}}},ia=n=>{const{onboardingCustomerView:C,cardPaymentView:r,signedInUser:g,currentTenant:v,isOnAddressPage:O,stripeKey:h,googleAPIKey:w,onUpdateStep:y,onZeniLogoClick:V,handleLogOutClick:c,handleCockpitClick:_,meetingUrl:$,analytics:I,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:ve,handleFetchPaymentSources:Se,updateCardPaymentModalState:D,resetCardPaymentViewState:Ne,handleResetCardPaymentErrorStatuses:R,redirectToProductSuitePage:Ve,..._e}=n,{allSteps:W,completedSteps:Ae,halfCompletedSteps:Ce,currentStep:z,fetchStatus:U}=C,q=m.useRef(z),F=m.useRef(W),[be,ce]=m.useState(!1),[Ie,te]=m.useState([]),Y={allSteps:W,isOnAddressPage:O,completedSteps:Ae,halfCompletedSteps:Ce,errorSteps:Ie,currentStep:z,fetchStatus:U,signedInUser:g,currentTenant:v,onUpdateStep:A=>{y(A)},onZeniLogoClick:V,handleLogOutClick:c,handleCockpitClick:_,setIsStepClicked:ce};m.useEffect(()=>{if(q.current!==z){const A=q.current;be===!0&&(I?.trackOnboardingCurrentStep(z,A),ce(!1)),q.current=z}},[z,be,I]),m.useEffect(()=>{W.length!==F.current.length&&(F.current=W)},[W]);const ne=(A,Oe,de)=>{const ae=F.current.length,pe=F.current.indexOf(A);switch(Oe){case"next":{const oe=(pe+1)%ae,N=F.current[oe];q.current=N,y(N),de===!0?I.trackOnboardingNext(A,N):I.trackOnboardingCurrentStep(N,A);break}case"previous":{const oe=(pe+ae-1)%ae,N=F.current[oe];q.current=N,y(N),de===!0?I.trackOnboardingBack(A,N):I.trackOnboardingCurrentStep(N,A);break}}},Pe=U.fetchState==="In-Progress"||U.fetchState==="Not-Started";return l.jsx(jn,{isOnAddressPage:O,children:O?l.jsx(bt,{...Y}):l.jsxs(Bn,{children:[l.jsx(bt,{...Y}),Pe?l.jsx(yn,{isNoStepsPage:!1}):l.jsx(vn,{onboardingCustomerView:C,analytics:I,updateStepHandler:ne,onUpdateStep:y,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:ve,updateCardPaymentModalState:D,handleFetchPaymentSources:Se,cardPaymentView:r,resetCardPaymentViewState:Ne,stripeKey:h,googleAPIKey:w,handleResetCardPaymentErrorStatuses:R,redirectToProductSuitePage:Ve,onFormErrorsChange:te,..._e}),Pe?null:l.jsx(tn,{isFooterRendered:!0,meetingUrl:$,analytics:I,productType:"onboarding"})]})})},jn=P.div`
|
|
98
98
|
display: flex;
|
|
99
99
|
flex-direction: column;
|
|
100
100
|
width: ${n=>n.isOnAddressPage?"fit-content":"100%"};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as M,a7 as B,av as I,d as _,V as e,bz as U,o as t,aM as b,bl as W,fs as V,F as A,ak as H,ae as N,p as l,b as k,ah as R,l as Z,D as J,ap as q,aZ as G}from"./index-
|
|
1
|
+
import{q as M,a7 as B,av as I,d as _,V as e,bz as U,o as t,aM as b,bl as W,fs as V,F as A,ak as H,ae as N,p as l,b as k,ah as R,l as Z,D as J,ap as q,aZ as G}from"./index-CK2D3iZ1.js";import{a as n}from"./sentry-Dm3bm_ok.js";import{n as o}from"./mui-DCr-y2iU.js";import{FM as K}from"./zeni-epic-state-Cgro3mH-.js";import Q from"./ConfettiBurst-CXF_94LB-B61erBlR.js";import{T as X}from"./ProductsCarousel-DzOaqLVq-BtBP3iUE.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new i.Error().stack;p&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[p]="8a130c29-750a-4afb-903b-834f270ab7b2",i._sentryDebugIdIdentifier="sentry-dbid-8a130c29-750a-4afb-903b-834f270ab7b2")}catch{}})();const Y=i=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},n.createElement("path",{d:"M9.88423 20.4894C8.54548 20.3068 6.19267 19.6022 4.33971 17.8674C2.48676 16.1326 1.39881 13.7328 1.31521 11.1959C1.23161 8.65899 2.15921 6.19276 3.89394 4.33977C5.62866 2.48678 8.02843 1.39882 10.5653 1.31522C13.1022 1.23161 15.5684 2.15923 17.4213 3.89399C19.2743 5.62875 20.1176 7.48634 20.4166 9.67794",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M12.5596 7.50903H10.7439C10.39 7.50916 10.0465 7.62876 9.76901 7.84845C9.49152 8.06815 9.29632 8.37508 9.21501 8.71955C9.1337 9.06401 9.17105 9.42584 9.321 9.74644C9.47096 10.067 9.72474 10.3276 10.0412 10.486L11.6941 11.3133C12.0107 11.4717 12.2644 11.7323 12.4144 12.0529C12.5643 12.3735 12.6017 12.7353 12.5204 13.0798C12.4391 13.4242 12.2439 13.7312 11.9664 13.9509C11.6889 14.1706 11.3454 14.2902 10.9915 14.2903H9.16902",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.4437 14.2906V15.5621",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M11.2918 6.23773V7.50922",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M15.5285 21.8743L12 22.8825L13.0081 19.3539L20.2143 12.1476C20.3088 12.0531 20.437 12 20.5707 12C20.7044 12 20.8325 12.0531 20.9271 12.1476L22.7347 13.9542C22.7816 14.001 22.8189 14.0567 22.8443 14.1179C22.8697 14.1791 22.8828 14.2448 22.8828 14.3111C22.8828 14.3774 22.8697 14.4431 22.8443 14.5043C22.8189 14.5655 22.7816 14.6212 22.7347 14.668L15.5285 21.8743Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M18.5536 13.8079L21.074 16.3283",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.6133 18.7533L16.1337 21.2737",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ee=A.getLocalizedStrings(),Ie=({hasVerifiedBankAccount:i,meetingUrl:p,showUpdatePaymentDetailButton:f=!1,isVisitingFirstTime:$=!1,handleUpdatePaymentAddressDetailClick:v,...S})=>{const d=M(),x=B().analytics,w=I(),L=w.loggedInUser,a=w.currentTenant,[y,P]=n.useState(!1),{handleLogOutClick:z,onZeniLogoClick:T,handleCockpitClick:E}=S,O=_(),{customerOnboardingPage:c}=ee,h=s=>{const r=c.productSuite.messageBox;if(!s)return[r.withTaxAndPayroll,r.withCFO];const{productSettings:F}=s,{isPayrollEnabled:g,isCfoEnabled:u,isTaxEnabled:m}=F;return g&&u&&m?[r.withTaxAndPayroll,r.withCFO]:g&&u?[r.withPayroll,r.withCFO]:g&&m?[r.taxAndPayroll]:u&&m?[r.withTax,r.withCFO]:g?[r.onlyPayroll]:u?[r.onlyCFO]:m?[r.onlyTax]:[r.default]},D=s=>{if(v(),!s)return;let r="";i?r="bank_account":r="credit_card",x.trackOnboardingClickUpdatePaymentDetails(r,K(s.productSettings))};return e.jsxs(e.Fragment,{children:[e.jsx(te,{children:e.jsxs(ie,{windowSize:d,children:[e.jsx(oe,{windowSize:d,children:e.jsx(U,{title:c.productSuite.navTitle,showBackButton:!1,backgroundColor:O.colors.grey4,style:{zIndex:5},source:"CustomerOnboardingProductSuitePage",showLeftSection:d!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:t.sp0,paddingBottom:t.sp0},leftSideComponent:e.jsx(we,{children:e.jsx(ye,{"data-testid":b("zeni-logo-customer-onboarding-product-suite"),onClick:T})}),rightSideComponent:f?e.jsxs(ke,{"data-testid":b("update-to-payment-address-details"),onClick:()=>D(a),children:[e.jsx(be,{}),e.jsx(Ce,{className:"btnText",children:c.productSuite.updatePaymentDetails})]}):e.jsx(je,{})})}),e.jsxs(re,{windowSize:d,children:[e.jsx(ne,{style:{gap:h(a).length>1?t.sp2:t.sp1,padding:h(a).length>1?`12px ${t.sp4} 12px ${t.sp4}`:`12px ${t.sp3} 12px ${t.sp3}`},children:e.jsxs(se,{children:[e.jsxs(C,{children:[e.jsx(ae,{children:e.jsx(le,{})}),e.jsx(j,{children:h(a)[0]})]}),e.jsx(C,{children:h(a).slice(1).map(s=>e.jsx(j,{children:s},s))})]})}),e.jsx(de,{children:e.jsx(ce,{children:c.productSuite.sectionTitle})}),e.jsx(pe,{children:e.jsx(X,{scale:1,showUpdatePaymentDetailButton:f,stopCarousel:y})}),e.jsxs(he,{href:"https://www.zeni.ai",target:"_blank",rel:"noopener noreferrer",children:[e.jsx(ge,{className:"discover-class",children:c.productSuite.sectionFooter}),e.jsx(ue,{className:"discover-class"})]})]}),e.jsx(me,{children:e.jsxs(fe,{children:[e.jsx(xe,{windowSize:d,children:e.jsx(W,{signedInUser:L,currentTenant:a,onLogOutClick:z,onCockpitClick:E})}),e.jsx(V,{isFooterRendered:!1,meetingUrl:p,analytics:x,productType:"onboarding_interim",showPopup:y,setShowPopup:P})]})})]})}),e.jsx(Q,{showConfetti:$})]})},te=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{av as ge,V as e,aw as Pt,ax as Ut,ay as Ot,o as a,az as Tt,C as MA,aA as Ht,aB as se,aC as Yt,aD as Kt,aE as Nt,aF as Gt,aG as zt,aH as Wt,aI as P,F as I,q as $,aJ as Y,aK as H,aL as q,aM as y,a8 as qt,aN as Te,L as He,ab as Xt,aO as Vt,y as Z,aP as K,aQ as _,al as AA,aR as Ye,aS as J,aT as U,aU as HA,p as f,an as Zt,d as iA,aV as $t,aW as YA,aX as _t,aY as Ar,aZ as er,ag as F,a_ as SA,c as S,ap as KA,ak as RA,a$ as Ke,b0 as Ne,b1 as Ge,b2 as tr,b3 as NA,a as rr,B as or,b4 as ar,b5 as ze,b6 as ir,b7 as gr,b8 as GA,b9 as nr,ba as Cr,bb as sr,bc as Er,m as We,b as dr,bd as Br,u as lr,be as qe,bf as Xe,am as Qr,bg as Ir,ah as cr,as as Ve}from"./index-
|
|
1
|
+
import{av as ge,V as e,aw as Pt,ax as Ut,ay as Ot,o as a,az as Tt,C as MA,aA as Ht,aB as se,aC as Yt,aD as Kt,aE as Nt,aF as Gt,aG as zt,aH as Wt,aI as P,F as I,q as $,aJ as Y,aK as H,aL as q,aM as y,a8 as qt,aN as Te,L as He,ab as Xt,aO as Vt,y as Z,aP as K,aQ as _,al as AA,aR as Ye,aS as J,aT as U,aU as HA,p as f,an as Zt,d as iA,aV as $t,aW as YA,aX as _t,aY as Ar,aZ as er,ag as F,a_ as SA,c as S,ap as KA,ak as RA,a$ as Ke,b0 as Ne,b1 as Ge,b2 as tr,b3 as NA,a as rr,B as or,b4 as ar,b5 as ze,b6 as ir,b7 as gr,b8 as GA,b9 as nr,ba as Cr,bb as sr,bc as Er,m as We,b as dr,bd as Br,u as lr,be as qe,bf as Xe,am as Qr,bg as Ir,ah as cr,as as Ve}from"./index-CK2D3iZ1.js";import{a as t,S as k}from"./sentry-Dm3bm_ok.js";import{n as g,a as hr,c as pA,k as R}from"./mui-DCr-y2iU.js";import{bg as pr,bh as Ze,EF as $e}from"./zeni-epic-state-Cgro3mH-.js";import{v as mr}from"./DashboardSidebarBackgroundAnimation--y1-phUW-DGEiib0J.js";import{L as ur,k as xr}from"./ArAgingChart-C7VtW0AI-Co8wpWo7.js";import{E as fr,T as ne,I as _e}from"./ReloadCard-BGPtXAV7-D43T0ICm.js";import{L as wr,O as LA,c as dA}from"./TopExCard-ym2uAvUy-DkU_w9K-.js";import{X as kr,Y as Dr,H as yr,P as jr,G as vr}from"./RevenueChart-D1PfVLk0-DHVFjjTE.js";import br from"./InsightsCardStack-CR3wSnhE-CCTCkrt4.js";import{a as Mr}from"./AccountsPromoCardStack-W5TW8HPU-Cm5YfN59.js";import{c as X}from"./SummaryCard-Cg5UVud3-DPRQua4j.js";import{t as Sr,o as Rr}from"./arrow-south-east-round-PEovUgvH-9nM57KjQ.js";import{N as aA}from"./NavigationArrow-DAOz2wst-CzpVYMv0.js";import{k as zA}from"./NavigationDots-Dm8SYcdL-CXSz5QAZ.js";import Lr from"./CompanyPassportCard-DUwjb7jY-D94p2vYM.js";import{C as Fr}from"./gift-box-Cmt9OgIZ-D29dLASa.js";import Jr from"./InformationCardStack-DvFu-gjh-DGBl4kd-.js";import{p as At}from"./chartTypes-PZyiFZrr-DoI-jL6q.js";import{h as Pr}from"./toCOABalancesWithID-CPbzhUua-B5GAWKcP.js";import{V as Ur}from"./toChartData-BUhYY9IR-S8AOthKK.js";import{r as Or,i as Tr}from"./graphic-no-data-net-burn-l-CzmycA0m-DMABn47o.js";import{N as Hr,J as Yr}from"./PromoBaseCards-B1h9AEH0-CHWZv_Gb.js";import{r as Kr}from"./core-D2k9JfRf.js";import{N as Nr,I as Gr}from"./VideoPlayer-CN28Ho6V-t5x8EBh8.js";import zr from"./ConfettiBurst-CXF_94LB-B61erBlR.js";import{F as Wr,G as qr,Y as Xr,X as Vr,R as Zr}from"./recharts-CIKvFUT6.js";import"./liveblocks-CofSwFWW.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";import"./graphic-no-data-l-DU4J8fDt-C5a4mTsI.js";(function(){try{var A=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new A.Error().stack;o&&(A._sentryDebugIds=A._sentryDebugIds||{},A._sentryDebugIds[o]="5e2d9edb-b70d-4c39-aa9c-eb125c1be25d",A._sentryDebugIdIdentifier="sentry-dbid-5e2d9edb-b70d-4c39-aa9c-eb125c1be25d")}catch{}})();const $r=g(_)`
|
|
2
2
|
color: ${A=>A.theme.colors.champion};
|
|
3
3
|
`,Ee=g.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as B,d as Z,F as _,av as ke,V as s,bz as qe,m as Je,C as Qe,bA as Xe,o as d,y as L,aA as X,bB as Ke,bC as et,ag as oe,c as $,b1 as tt,aS as st,L as Oe,n as Be,p as D,ap as Pe,aR as ot,b8 as at,am as nt,bD as it,at as rt,bE as ct,bF as ne,bG as lt,as as dt,al as pt,bH as ut,bI as gt}from"./index-
|
|
1
|
+
import{q as B,d as Z,F as _,av as ke,V as s,bz as qe,m as Je,C as Qe,bA as Xe,o as d,y as L,aA as X,bB as Ke,bC as et,ag as oe,c as $,b1 as tt,aS as st,L as Oe,n as Be,p as D,ap as Pe,aR as ot,b8 as at,am as nt,bD as it,at as rt,bE as ct,bF as ne,bG as lt,as as dt,al as pt,bH as ut,bI as gt}from"./index-CK2D3iZ1.js";import{a as y,S as K}from"./sentry-Dm3bm_ok.js";import{n as u,k as Ie}from"./mui-DCr-y2iU.js";import{bg as mt,EH as ht,E1 as ft,EI as bt,EJ as xt,EK as _t,EL as wt,EM as St,EN as yt,EO as vt,EP as Ct}from"./zeni-epic-state-Cgro3mH-.js";import{m as G,l as se}from"./analyticsHelper-C2XPB_2A-DuJwOZQc.js";import{g as jt,x as $t}from"./ReportTableViewSelector-gEKTiiSk-DFp8GlM2.js";import{q as kt}from"./InsightsSection-DCFjudcA-7O17fZbk.js";import{q as Ot,G as Bt,k as xe,H as ee,N as pe}from"./detailCommon-PTd6DPpO-o02U7S0B.js";import{G as Pt,P as It,X as _e,Y as we,H as Se}from"./RevenueChart-D1PfVLk0-DHVFjjTE.js";import{C as Lt}from"./NoDataChart-BIcLmdso-V1__FO4W.js";import{n as R}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{p as Nt}from"./TimeRangeSwitcher-BTx3d66N-DkQSngDA.js";import{b as Le}from"./TimeframeSwitcher-BkGiMDhd-Dhql0xBj.js";import{I as Rt,R as F,x as Dt,l as ue,D as Tt}from"./CollapsableReportTable-l16Ixpgb-BS0sBPj9.js";import{S as zt,M as At,g as Mt,C as te,L as Ne,D as Re,T as De}from"./mapSectionWithAcOnlyToTreeNode-C6gW1Rqr-Dv2Q5ZLA.js";import{d as Et}from"./NoDataTable-C9ywvwy4-CbJRpj1w.js";import{d as ge,l as me}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-lSB04gFW-CRpECfjU.js";import{d as he}from"./mapLoadingInProgressToTreeNode-CUy8c_Sm-CvM45xH7.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";import"./NavigationDots-Dm8SYcdL-CXSz5QAZ.js";import"./chartTypes-PZyiFZrr-DoI-jL6q.js";import"./toCOABalancesWithID-CPbzhUua-B5GAWKcP.js";import"./toChartData-BUhYY9IR-S8AOthKK.js";import"./AccountRow-Ba39SxP8-8PYcW3Va.js";import"./graphic-no-data-l-DU4J8fDt-C5a4mTsI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="805934c6-ca50-4dcb-9ef1-6a68bfdce637",e._sentryDebugIdIdentifier="sentry-dbid-805934c6-ca50-4dcb-9ef1-6a68bfdce637")}catch{}})();const Ft=e=>y.createElement("svg",{viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{opacity:.2,d:"M105.021 115.208C105.021 116.479 104.516 117.698 103.617 118.596C102.718 119.495 101.5 120 100.229 120H28.3539C27.083 120 25.8643 119.495 24.9656 118.596C24.067 117.698 23.5622 116.479 23.5622 115.208V14.5832C23.5622 13.3123 24.067 12.0936 24.9656 11.195C25.8643 10.2963 27.083 9.7915 28.3539 9.7915H71.4789L105.021 43.3332V115.208Z",fill:"#97C3B9"}),y.createElement("path",{opacity:.2,d:"M71.4785 9.7915V38.5415C71.4785 39.8123 71.9834 41.0311 72.882 41.9297C73.7806 42.8283 74.9994 43.3332 76.2702 43.3332H105.02",fill:"#97C3B9"}),y.createElement("path",{d:"M33.6636 70.0449H37.2636",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 81.2539H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 92.4626H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 103.671H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 70.0449L80.6987 70.0449",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 81.2539L80.6987 81.2539",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 92.4626L80.6987 92.4626",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.6084 103.671L81.2084 103.671",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M100.729 110.313C100.729 111.583 100.224 112.802 99.3258 113.701C98.4272 114.6 97.2084 115.104 95.9375 115.104H24.0625C22.7917 115.104 21.5729 114.6 20.6743 113.701C19.7757 112.802 19.2709 111.583 19.2709 110.313V9.68766C19.2709 8.41683 19.7757 7.19805 20.6743 6.29944C21.5729 5.40083 22.7917 4.896 24.0625 4.896H67.1875L100.729 38.4377V110.313Z",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M67.1872 4.896V33.646C67.1872 34.9168 67.692 36.1356 68.5906 37.0342C69.4893 37.9328 70.708 38.4377 71.9789 38.4377H100.729",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M43.4564 21.9438V17.5398",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),y.createElement("path",{d:"M43.4564 54.3497V50.1257",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),y.createElement("path",{d:"M33.6635 40.7779C33.6635 42.8599 34.1555 45.0139 35.3975 46.7239C36.7415 48.5719 38.8595 49.5619 41.0735 49.9339C43.1375 50.2819 45.2855 50.1499 47.3135 49.6759C51.5135 48.6979 54.5675 44.3959 52.6955 40.1179C51.5795 37.5619 48.8855 36.4219 46.2635 36.1699C44.3675 35.9899 42.4294 35.9779 40.5334 35.7079C38.9374 35.4799 37.3475 34.9459 36.1895 33.7819C35.0315 32.6179 34.3895 30.8599 34.4495 29.1619C34.5335 26.6359 35.9915 24.4999 38.2415 23.3959C40.5995 22.2379 43.4675 22.1839 46.0115 22.6219C47.6855 22.9099 49.3294 23.6119 50.4994 24.8419C51.9694 26.3899 52.4555 28.5019 52.5275 30.5719",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"})),Vt=u.div`
|
|
2
2
|
justify-content: center;
|
|
3
3
|
align-items: center;
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aW as f,V as o,b3 as u,o as p}from"./index-
|
|
1
|
+
import{aW as f,V as o,b3 as u,o as p}from"./index-CK2D3iZ1.js";import{a as s}from"./sentry-Dm3bm_ok.js";import{a as h,n as m}from"./mui-DCr-y2iU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cf6d9dbe-fbdd-4e83-babb-65c30678c404",e._sentryDebugIdIdentifier="sentry-dbid-cf6d9dbe-fbdd-4e83-babb-65c30678c404")}catch{}})();const D=s.memo(function({christmasAnimationEnabled:e=!1,newYearAnimationEnabled:n=!1}){const i=h(),d=e||n,r=n?"DashboardNewYearShow":"DashboardChristmasSnow",[a,l]=f(r,d),[t,b]=s.useState(null);a!=null&&t==null&&!l&&b(a);const c=e&&i.mode==="light"?.7:.2;return(e||n)&&t!=null?o.jsx(y,{contextWiseOpacity:c,newYearAnimationEnabled:n,children:o.jsx(u,{style:{width:"inherit",height:"inherit",display:"block"},animationData:t,play:!0,loop:n?5:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),y=m.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aK as u,hu as y,q as $,V as l,o as i,ak as c,al as w}from"./index-
|
|
1
|
+
import{aK as u,hu as y,q as $,V as l,o as i,ak as c,al as w}from"./index-CK2D3iZ1.js";import{n as t}from"./mui-DCr-y2iU.js";import{g as k}from"./BoxItem-B8HVRhgE-Bev68PFI.js";import{o as v}from"./commonDimensions-C_y3LIE8-X_N9ThEv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e601d38c-4591-4d63-a05e-258d652ba04b",e._sentryDebugIdIdentifier="sentry-dbid-e601d38c-4591-4d63-a05e-258d652ba04b")}catch{}})();function H({data:e,boxType:n}){const{counterParty:r,typeName:d,amount:p,logo:x,summary:b,direction:f,status:m}=e,g=r.length>0?r:b,a=u("0,0.00",p),s=y(m),o=$(),h=l.jsxs(D,{children:[l.jsx(T,{src:x?.toString(),loading:"lazy"}),l.jsx(I,{children:l.jsxs(_,{windowSize:o,children:[l.jsx(N,{children:g}),s!=null?l.jsxs(q,{windowSize:o,children:[l.jsx(E,{windowSize:o}),l.jsx(C,{color:s?.color,children:s?.value})]}):null]})}),l.jsxs(j,{windowSize:o,children:[d!=null?l.jsx(z,{children:l.jsx(S,{className:"tag",children:d})}):null,l.jsx(P,{windowSize:o,children:f==="debit"?`-${a}`:a})]})]});return l.jsx(k,{content:h,boxType:n,isDisabled:!1,isNotClickable:!0})}const j=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${e=>e.windowSize==="small"?"column-reverse":"row"};
|
|
4
4
|
align-items: ${e=>e.windowSize==="small"?"flex-end":"center"};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as M,q as S,V as t,bz as I,b1 as z,hD as F,o as r,F as Y,p as u,cq as C,dc as E,dd as L,d7 as _,de as T,y as q,ag as B,ak as R,c as g}from"./index-
|
|
1
|
+
import{d as M,q as S,V as t,bz as I,b1 as z,hD as F,o as r,F as Y,p as u,cq as C,dc as E,dd as L,d7 as _,de as T,y as q,ag as B,ak as R,c as g}from"./index-CK2D3iZ1.js";import{a as x}from"./sentry-Dm3bm_ok.js";import{n as a}from"./mui-DCr-y2iU.js";import{bh as V}from"./zeni-epic-state-Cgro3mH-.js";import{$ as A}from"./BoxItem-B8HVRhgE-Bev68PFI.js";import{o as N}from"./commonDimensions-C_y3LIE8-X_N9ThEv.js";import{H as P}from"./DepositAccTransactionItem-BJ6rNbQF-DcQ3w2ay.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="9c169c17-8859-4db3-bd37-73e91ced3900",e._sentryDebugIdIdentifier="sentry-dbid-9c169c17-8859-4db3-bd37-73e91ced3900")}catch{}})();const l=Y.getLocalizedStrings(),H={listItemMargin:new q(g[3],g[8])};function X(e){const i=E(e,o=>o.transactionDate.format(l.dateFormat.visual.MMMDCommaYYYYformat)),d=L(i,o=>o.length>0);return _(d,o=>({date:o[0].transactionDate,transactions:T(o,m=>m.transactionDate,"desc")}))}const G=F(X),pe=({transactionListView:e,onBackClick:i})=>{const d=M(),o=S(),m=x.createRef(),p=x.useRef(null),c=G(e.transactions),k=e.depositAccountName,b=c.length===0,j=n=>b===!1?c[n].transactions.length*N.transactionItemHeightResponsive.value(o)+45:24,v=({index:n,style:h})=>{if(b===!1){const s=c[n];return t.jsx(w,{style:{...h},children:t.jsx(y,{windowSize:o,children:t.jsxs($,{children:[t.jsx(Q,{children:V().year()===s.date.year()?s.date.format(l.dateFormat.visual.MMMDFormat):s.date.format(l.dateFormat.visual.MMMDCommaYYYYformat)}),t.jsx(U,{children:s.transactions.map((D,f)=>t.jsx(P,{data:D,boxType:A(f,s.transactions.length)},f))})]})})})}else return t.jsx(w,{style:{...h},children:t.jsx(J,{children:t.jsx(y,{windowSize:o,children:t.jsx(O,{children:l.transactionList.noTransactionsFoundForPrefix})})})})};return t.jsxs(K,{children:[t.jsx(I,{title:`${k} ${l.spendManagement.zeniAccounts.transactionList.title}`,backgroundColor:d.colors.grey4,style:{zIndex:3},onBackClick:i,scrollableContent:p.current!=null?p:void 0,source:"DepositAccTransactionListPage"}),t.jsx($,{children:t.jsx(z,{children:({height:n,width:h})=>t.jsx(Z,{ref:m,height:n,width:h,outerRef:p,itemKey:s=>s,itemCount:c.length,itemSize:j,initialScrollOffset:0,children:v})})})]})},w=a.div``,y=a.div`
|
|
2
2
|
margin: ${e=>`${r.sp0} ${H.listItemMargin.valuePx(e.windowSize)}`};
|
|
3
3
|
`,J=a.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as O,a8 as U,F as S,cB as q,aA as H,V as n,cm as Q,cn as X,co as Z,ab as G,aO as J,y as b,eR as K,o as Y,b7 as ee,c as o}from"./index-
|
|
1
|
+
import{q as O,a8 as U,F as S,cB as q,aA as H,V as n,cm as Q,cn as X,co as Z,ab as G,aO as J,y as b,eR as K,o as Y,b7 as ee,c as o}from"./index-CK2D3iZ1.js";import{a as C}from"./sentry-Dm3bm_ok.js";import{n as h}from"./mui-DCr-y2iU.js";import{bi as T}from"./zeni-epic-state-Cgro3mH-.js";import{e as ne}from"./BankAccountSection-De0m3zrf-DJo0ErGm.js";import{M as te}from"./MagicLinkTitleSection-RWEjrx8m-CX8Fw-B8.js";import{W as ae,A as oe}from"./BankAccountWarningSection-DoqOr9h0-CysUjzfB.js";import{T as ie}from"./MailingDetailsSection-BT3SGHhD-Ctkbx47B.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d6d67a4d-adde-4e9e-860b-1fca4d0e55c1",e._sentryDebugIdIdentifier="sentry-dbid-d6d67a4d-adde-4e9e-860b-1fca4d0e55c1")}catch{}})();const i={paddingTopBottom:new b(o[3],o[3]),paddingRight:new b(o[3],o[8]),paddingLeft:new b(o[3],o[6]),buttonWidth:new b(140,140),marginLeft:new b(o[4],o[6])},B="domesticWireDetailsPage",k="bankAccountSection",$="mailingAddressSection",D=e=>`${e}_form`,xe=e=>{const{bankAccountCreationState:t,fetchBankNameByRoutingStatus:l,addressType:y,bankAccountToCreate:s,addressToEdit:r,mailingAddress:x,isDisabled:A,companyName:j,isMagicLink:g,currencySymbol:v,amount:R,onSaveHandler:z,onWireDetailsUpdated:I,onFetchBankName:P,onAddressClick:L,onBackClick:w}=e,u=O(),c=U({mode:"onBlur",reValidateMode:"onChange",defaultValues:C.useMemo(()=>se(s,r),[s,r])}),[E,f]=C.useState(!1),a=S.getLocalizedStrings().spendManagement.billPay.vendorCreation,W=S.getLocalizedStrings().common.footer,M=a.wireDetails.domestic,F={onOkClick:()=>{f(!1),c.reset(),w?.()},onCancelClick:()=>{f(!1)}},_=async(p,m)=>{const d=m[k].bankRoutingNumber;I(m),p===`${k}.bankRoutingNumber`&&d?.length===9&&K.test(d)===!0&&P?.(d)};C.useEffect(()=>{const p=c.watch((m,{name:d})=>{d!=null&&m!=null&&q(()=>_(d,m))});return()=>{p.unsubscribe()}});const V=c.handleSubmit(p=>{l.fetchState!=="In-Progress"&&z("wire")}),N=!H(x!=null?T(x):x,r!=null?T(r):r)||re(s)||c.formState.isDirty;return n.jsxs(ue,{children:[n.jsxs(le,{size:u,children:[E===!0?n.jsx(Q,{titleComponent:n.jsx(Z,{children:a.discardTitle}),descriptionComponent:n.jsx(X,{children:a.discardDescription}),primaryButtonText:a.discard,secondaryButtonText:a.cancel,action:F}):null,n.jsx(ae,{header:g?n.jsx(te,{companyName:j??"",currencySymbol:v??"",amount:R??0}):M.addWireDetails,isMagicLink:g,isDirty:N,onBackClick:w,setShowConfirmationPopup:f}),t?.fetchState==="Error"&&t.error?.code===409?n.jsx(oe,{warningText:a.bankAccountCommon.accountExistWarning}):null,n.jsx(de,{size:u,children:a.bankAccountCommon.accountDetailsTitle}),n.jsx(G,{...c,children:n.jsxs("form",{id:D(B),onSubmit:V,children:[n.jsx(ce,{size:u,children:n.jsx(ne,{bankAccountToCreate:s,fetchBankNameByRoutingStatus:l,sectionId:k,isDisabled:A})}),n.jsx(ie,{sectionId:$,isDisabled:A,addressType:y,addressToEdit:r,onAddressClick:L})]})})]}),n.jsx(J,{formId:D(B),primaryBtn:{label:g?a.bankAccountCommon.submitDetails:a.bankAccountCommon.saveAccount,isLoading:t.fetchState==="In-Progress",style:{width:i.buttonWidth.value(u)},isDisabled:A!=null},showCancel:!g,cancelBtn:{label:W.cancel,style:{width:i.buttonWidth.value(u)},shouldResetOnCancel:!1,onClick:()=>{N?f(!0):(c.reset(),w?.())}}})]})},se=(e,t)=>({[k]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,bankAccountType:e?.bankAccountType,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName},[$]:{mailingAddress:t}}),re=e=>{if(e==null)return!1;const{bankAccountName:t,bankAccountNumber:l,bankName:y,bankRoutingNumber:s}=e;return!!t||!!l||!!y||!!s},ce=h.div`
|
|
2
2
|
padding-left: ${e=>i.paddingLeft.valuePx(e.size)};
|
|
3
3
|
padding-right: ${e=>i.paddingRight.valuePx(e.size)};
|
|
4
4
|
padding-top: ${e=>i.paddingTopBottom.valuePx(e.size)};
|
package/dist/assets/{DownloadOverlay-DB-qx46O-Di0XX-7b.js → DownloadOverlay-BF8Uzj65-BjVIvIOE.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as t,c0 as it,o as s,q as he,c1 as nt,am as He,p as ue,y as W,L as lt,F,c2 as dt,bL as Ue,c as B,b7 as qe,ak as L,bO as _e,b as te,al as be,n as ae,d as We,bQ as ct,c3 as xe,c4 as ge,m as Ge,c5 as Ze,bJ as pt,b8 as mt,an as ye,c6 as Z,c7 as ft,c8 as ht,bH as ut,bP as bt,ap as xt,c9 as gt,bY as yt,at as $t}from"./index-
|
|
1
|
+
import{V as t,c0 as it,o as s,q as he,c1 as nt,am as He,p as ue,y as W,L as lt,F,c2 as dt,bL as Ue,c as B,b7 as qe,ak as L,bO as _e,b as te,al as be,n as ae,d as We,bQ as ct,c3 as xe,c4 as ge,m as Ge,c5 as Ze,bJ as pt,b8 as mt,an as ye,c6 as Z,c7 as ft,c8 as ht,bH as ut,bP as bt,ap as xt,c9 as gt,bY as yt,at as $t}from"./index-CK2D3iZ1.js";import{a as h,S as $e}from"./sentry-Dm3bm_ok.js";import{n,k as Je}from"./mui-DCr-y2iU.js";import{E_ as me,E$ as C,F0 as J,bL as P,F1 as K,F2 as we,F3 as U,bh as wt,F4 as _,F5 as Ft,F6 as jt,F7 as vt,F8 as Ot,F9 as Yt}from"./zeni-epic-state-Cgro3mH-.js";import{m as Dt}from"./analyticsHelper-C2XPB_2A-DuJwOZQc.js";import{g as kt,x as _t}from"./ReportTableViewSelector-gEKTiiSk-DFp8GlM2.js";import{t as Ct}from"./page-detail-CWX5S47F-DDARVgTr.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";import"./CollapsableReportTable-l16Ixpgb-BS0sBPj9.js";import"./AccountRow-Ba39SxP8-8PYcW3Va.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="b19bc0dd-d462-4b37-bbac-a3a4a7592f36",e._sentryDebugIdIdentifier="sentry-dbid-b19bc0dd-d462-4b37-bbac-a3a4a7592f36")}catch{}})();const Pt=["profit_and_loss","profit_and_loss_by_classes","balance_sheet","cash_flow","cover_page","operating_expenses","revenue","net_burn_or_income","cash_position","cash_in_cash_out"];function ie(e,o,r,a){let i=0;if(!(e!==1&&(o==="quarter"||o==="year")))i=r.endDate.endOf(o).diff(r.startDate.startOf(o),o)+1;else switch(o){case"quarter":{const{startOfTimeframeFY:l}=C(r.startDate,e,"quarter"),{endOfTimeframeFY:p}=C(r.endDate,e,"quarter");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/3);break}case"year":{const{startOfTimeframeFY:l}=C(r.startDate,e,"year"),{endOfTimeframeFY:p}=C(r.endDate,e,"year");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/12);break}}return a!=null?Math.min(i,a):i}function oe(e,o,r,a=1){if(a>1){const i=J(r,e,a-1,o),{startOfTimeframeFY:l}=C(i,e,o);return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:l,endDate:r}}}else return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:r,endDate:r}}}class Ce{_firstMonthOfFY;_timeframe;_dataAvailable;_endDate;_numberOfPeriods;_maxNumberOfPeriods;constructor(o,r,a,i,l,p=a.endDate){if(a.endDate.isBefore(a.startDate))throw Error(`Invalid data available period ${JSON.stringify(a)}`);this._firstMonthOfFY=o,this._timeframe=r,this._dataAvailable=a,this._numberOfPeriods=i,this._maxNumberOfPeriods=l,this._endDate=p}get value(){return oe(this.firstMonthOfFY,this.timeframe,this.endDate,this.numberOfPeriods)}get dataAvailable(){return this._dataAvailable}get firstMonthOfFY(){return this._firstMonthOfFY}get timeframe(){return this._timeframe}set timeframe(o){this._timeframe=o}get numberOfPeriods(){return this._numberOfPeriods}get maxNumberOfPeriods(){return this._maxNumberOfPeriods}set maxNumberOfPeriods(o){if(o<=0)throw Error(`Invalid maxNumberOfPeriods ${this.maxNumberOfPeriods}`);this._maxNumberOfPeriods=o}get startDate(){return this.value.dateRange.startDate}get endDate(){return this._endDate}getValidCalendarPeriod(){const o=me(this.startDate,this.firstMonthOfFY,this.maxNumberOfPeriods-1,this.timeframe);let{endOfTimeframeFY:r}=C(o,this.firstMonthOfFY,this.timeframe);return r.isAfter(this.dataAvailable.endDate)&&(r=this.dataAvailable.endDate),{startDate:this.startDate,endDate:r}}canUpdateToPeriod(o,r){if(this.firstMonthOfFY===1||this.timeframe==="month")return o.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]")&&r.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]");{const{startOfTimeframeFY:a}=C(this.dataAvailable.startDate,this.firstMonthOfFY,this.timeframe),{endOfTimeframeFY:i}=C(this.dataAvailable.endDate,this.firstMonthOfFY,this.timeframe);return o.isBetween(a,i,null,"[]")&&r.isBetween(a,i,null,"[]")}}updatePeriod(o,r){if(!this.canUpdateToPeriod(o,r))return!1;let a=ie(this.firstMonthOfFY,this.timeframe,{startDate:o,endDate:r});if(a>this.maxNumberOfPeriods){a=this._numberOfPeriods;const{endOfTimeframeFY:i}=C(me(o,this.firstMonthOfFY,this._numberOfPeriods-1,this.timeframe),this.firstMonthOfFY,this.timeframe);this._endDate=i}else if(o.isAfter(r)){a=1;const{endOfTimeframeFY:i}=C(o,this.firstMonthOfFY,this.timeframe);this._endDate=i}else this._endDate=r;return this._endDate.isAfter(this.dataAvailable.endDate)&&(this._endDate=this.dataAvailable.endDate),this._numberOfPeriods=a,!0}updateStartDate(o){return this.updatePeriod(o,this.endDate)}updateEndDate(o){return this.updatePeriod(this.startDate,o)}}const le=["1","2","3","4"],de=wt().localeData().monthsShort(),A={pdf:12,excel:100,csv:100},E=(e,o,r)=>{const a=F.getLocalizedStrings().dateFormat.analytics.YYYYFormat,i=[];if(e===1||o==="month"){const{startDate:l,endDate:p}=r;let m=l;for(;m.isSameOrBefore(p,"year");)i.push(m.format(a)),m=me(m,e,1,"year")}else{const{startOfTimeframeFY:l}=C(r.startDate,e,"year"),{endOfTimeframeFY:p}=C(r.endDate,e,"year");let{fyYear:m}=_(l,e);const{fyYear:u}=_(p,e);for(;m<=u;)i.push(`${m}`),m++}return i},St=n.div`
|
|
2
2
|
padding: ${s.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.borderColor.default};
|
|
4
4
|
border-radius: ${s.sp1};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as a,V as i,bQ as y,o as r,y as s,F as h,b$ as P,a as c,B as g,L as b,c as t,aK as L,jT as k,jU as D,jV as C}from"./index-
|
|
1
|
+
import{q as a,V as i,bQ as y,o as r,y as s,F as h,b$ as P,a as c,B as g,L as b,c as t,aK as L,jT as k,jU as D,jV as C}from"./index-CK2D3iZ1.js";import{n as o}from"./mui-DCr-y2iU.js";import"./sentry-Dm3bm_ok.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./zeni-epic-state-Cgro3mH-.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ba5f1078-dc3f-413b-8fef-66ef3c7b989a",e._sentryDebugIdIdentifier="sentry-dbid-ba5f1078-dc3f-413b-8fef-66ef3c7b989a")}catch{}})();const l={drawerItemPadding:new s(t[3],t[3],t[4]),styledDivMarginLeft:new s(t[6],t[7]),verticalLineLeftMargin:new s(32,42),iconWidth:new s(t[5],t[6]),iconHeight:new s(t[5],t[6]),iconSize:new s(20,t[4])},j={title:new c("standardRegular","largeRegular"),content:new c("smallRegular","standardRegular")},p=h.getLocalizedStrings().rewardsPage.drawerPage,_=({rewardsPlan:e})=>{const n=[I(),R(),B({rewardsPlan:e})],d=a();return i.jsx(q,{children:n.map((v,S)=>i.jsxs(V,{children:[i.jsx(E,{children:v}),S<n.length-1?i.jsx(A,{windowSize:d}):null]},`step_${S}`))})},I=()=>{const e=a(),n=p.item1;return i.jsxs(x,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(u,{windowSize:e,icon:"link",children:i.jsx(M,{windowSize:e})}),i.jsx(f,{windowSize:e,children:n.title})]}),i.jsx($,{windowSize:e,children:i.jsx(z,{windowSize:e,children:n.content})})]})},R=()=>{const e=a(),n=p.item2;return i.jsxs(x,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(u,{windowSize:e,icon:"user",children:i.jsx(N,{windowSize:e})}),i.jsx(f,{windowSize:e,children:n.title})]}),i.jsx($,{windowSize:e,children:i.jsx(z,{windowSize:e,children:n.content})})]})},B=({rewardsPlan:e})=>{const n=a(),d=p.item3;return i.jsxs(x,{windowSize:n,children:[i.jsxs(m,{children:[i.jsx(u,{windowSize:n,icon:"money",children:i.jsx(T,{windowSize:n})}),i.jsx(f,{windowSize:n,children:d.title[e.planName]})]}),i.jsx($,{windowSize:n,children:i.jsx(z,{windowSize:n,children:d.content[e.planName].replace("__reward-amount__",L("0,0",e.referrerAmount))})})]})},x=o.div`
|
|
2
2
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
3
3
|
border-radius: ${r.sp2};
|
|
4
4
|
box-shadow: ${e=>`${r.sp0} 1px 2px ${r.sp0} ${e.theme.colors.dropShadowNormal}`};
|
package/dist/assets/{EditPeoplePage-B6QD5Vld-H7oW4yPE.js → EditPeoplePage-BFROUzlu-DwFofRms.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as ie,fO as ae,d as de,a8 as pe,aN as ce,V as t,cm as ue,ao as me,cn as
|
|
1
|
+
import{q as ie,fO as ae,d as de,a8 as pe,aN as ce,V as t,cm as ue,ao as me,cn as ge,co as fe,gJ as he,cs as ye,o as n,bQ as be,aM as U,ab as ve,aO as xe,y as k,F as $e,cx as we,fR as Re,fS as Ce,fT as Ie,b7 as Oe,p as M,cV as je,c as u}from"./index-CK2D3iZ1.js";import{a as w}from"./sentry-Dm3bm_ok.js";import{n as l}from"./mui-DCr-y2iU.js";import{Fv as _e,bg as Te}from"./zeni-epic-state-Cgro3mH-.js";import{f as ke}from"./AllUserItems-DPxoQeZA-Fd0FWod6.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";import"./LabeledUserSingleSelectWithSubtitlesField-BusH2qnZ-GKSXWTga.js";import"./RoleWithToolTip-DbQ4ezrP-Dd2VpMcB.js";import"./LabeledZeniRolesDropDownField-DYkmOsOP-Dg0kuJ4H.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="d2bbbc07-98a7-4e2e-9e9d-3d61286ba73a",e._sentryDebugIdIdentifier="sentry-dbid-d2bbbc07-98a7-4e2e-9e9d-3d61286ba73a")}catch{}})();const I={containerPaddingTop:new k(u[3],u[3]),containerPaddingLeft:new k(u[3],u[6],u[6]),containerPaddingRight:new k(u[3],u[6],u[8]),buttonWidth:new k(85,85)},Q="editPeoplePage",R="userItems",d=$e.getLocalizedStrings().peoplePage,st=({peopleDetails:e,managersList:o,classList:y,controllersList:O,mode:p,isZeniTenant:P,onCloseClick:j,onResetClick:_,onSaveClick:m,onDeleteUser:J,onPeopleLocalDataUpdated:X,analytics:z,isReimbursementDisabled:B,isZeniAccountsDisabled:N,isChargeCardDisabled:Z,isTreasuryDisabled:q,isBankingOnlyTenant:b,isCardsOnlyTenant:v,isLiteRoleDisabled:V})=>{const C=ie(),[Y,S]=w.useState(!1),[K,H]=w.useState(-1),ee=p==="zeni_only"?d.invitePage.editZeniTitle:d.invitePage.editTitle,te=w.useRef(null),D=w.useMemo(()=>ae(B,N,Z,b,v,V,q),[B,N,Z,b,v,V,q]),A=de(),i=pe({mode:"onBlur",reValidateMode:"onChange",defaultValues:W(e.people,o,y,p,D,b,v),values:W(e.people,o,y,p,D,b,v)}),se=i.handleSubmit(()=>{G()&&m()},()=>{G(),console.warn("Edit Profile form error")}),G=()=>{const g=i.getValues();let r=!0;return g.userItems.forEach((f,x)=>{const{role:E,department:a,nonZeniRole:h,manager:c}=f;if(p==="zeni_only"){const s=E.selectedOptions;(!s?.length||s?.length===1&&s?.includes("company_officer"))&&(i.setError(`${R}.${x}.role`,{type:"required"}),r=!1)}else{const s=h?.userRole.selectedRole;(s!=null&&h!=null?h.productsByUserRole[s].map($=>$.selectedOption).filter($=>$!=null):[]).length<1&&(i.setError(`${R}.${x}.nonZeniRole.userRole.selectedRole`,{type:"required"}),r=!1),s!=="investor_or_banker"&&a?.selectedOption==null&&(b||v||(i.setError(`${R}.${x}.department`,{type:"required"}),r=!1)),c?.selectedUser==null&&s!=="investor_or_banker"&&(i.setError(`${R}.${x}.manager`,{type:"required"}),r=!1)}}),r},ne=async(g,r)=>{const f=[],{userItems:x}=r,E=e.person?.userRole?.userRoleId;x.forEach(a=>{let h={};if(E!=null){if(p==="zeni_only")h={email:a.email,role:a.role.selectedOptions};else{const c=a.nonZeniRole?.userRole.selectedRole;let s=[];c==="admin"||c==="investor_or_banker"?s.push(c):s=c!=null?(a.nonZeniRole?.productsByUserRole[c]??[]).map(L=>_e(L.selectedOption?.value)).filter(L=>L!=null):[],c==="employee"&&s.length===0&&s.push("reimbursements_user");const $=Te(s);h={email:a.email,role:s,departmentId:$?void 0:a.department?.selectedOption?.value,managerId:$?void 0:a.manager?.selectedUser}}f.push(h)}}),X(f)};w.useEffect(()=>{const g=i.watch((r,{name:f})=>{f!=null&&r!=null&&ne(f,r)});return()=>{g.unsubscribe()}});const oe=()=>{S(!0)},re={onOkClick:()=>{const g=e.person;z?.trackRemoveUserAccess(g.userRole.userRoles,g.userRole.userEmail),J?.(e.person)},onCancelClick:()=>{S(!1)}},F=ce(e.person?.update),T=e.person?.update,le=d.deleteOverlay.description.replace("‘_user-name_’",`"${e.person?.user?.firstName} ${e.person?.user?.lastName}"`);return w.useEffect(()=>{T==null&&F==="removeUsers"&&(S(!1),_?.())},[T,F]),t.jsxs(t.Fragment,{children:[Y===!0?t.jsx(ue,{titleComponent:t.jsx(fe,{children:d.deleteOverlay.title}),descriptionComponent:t.jsx(ge,{children:le}),primaryButtonText:d.deleteOverlay.remove,secondaryButtonText:d.deleteOverlay.cancel,action:re,proceedButtonVariant:"danger",isLoading:T==="removeUsers",isDisabled:T==="removeUsers",style:{background:A.colors.overlayColor},children:e.person?.user!=null?t.jsxs(t.Fragment,{children:[t.jsx(Be,{}),t.jsx(Ue,{children:t.jsx(ze,{src:e.person?.user.photo?.toString()??me,alt:e.person?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(he,{title:ee,backgroundColor:A.colors.grey4,style:{zIndex:4},onCloseClick:j,isTitleAlignLeft:C==="small"}),t.jsxs(Pe,{"data-testid":U("edit-people-page-container"),windowSize:C,ref:te,children:[t.jsxs(Le,{children:[t.jsx(ye,{personBasic:e.person?.user,styles:{height:n.sp6,width:n.sp6}}),t.jsxs(Se,{children:[t.jsx(De,{children:e.person?.user?.firstName?t.jsxs(Ee,{children:[e.person?.user?.firstName??""," ",e.person?.user?.lastName??""]}):null}),t.jsx(Ze,{className:"delete-icon-wrapper","data-testid":U("edit-people-page-delete-icon-wrapper"),onClick:oe,children:t.jsx(be,{style:{padding:"2px 5px"},enterDelay:600,title:d.deleteOverlay.title,placement:"top",children:t.jsx(Ne,{windowsize:C})})})]})]}),t.jsx(ve,{...i,children:t.jsx("form",{id:`${Q}_form`,onSubmit:se,children:t.jsx(ke,{control:i.control,sectionId:R,deleteConfirmationIndex:K,updateDeleteConfirmationIndex:H,mode:p,isZeniTenant:P,classList:y,managersList:o,controllersList:O,customerRoleOptions:D,isBankingOnlyTenant:b,isCardsOnlyTenant:v,isEdit:!0,person:e.person,analytics:z})})})]}),t.jsx(xe,{formId:`${Q}_form`,"data-testid":U("edit-people-page-footer"),primaryBtn:{label:d.invitePage.update,style:{width:I.buttonWidth.value(C)},isLoading:e.updatePersonState.fetchState==="In-Progress",isDisabled:e.updatePersonState.fetchState==="In-Progress"},showCancel:!0,cancelBtn:{label:d.invitePage.cancel,style:{width:I.buttonWidth.value(C)},shouldResetOnCancel:!1,onClick:j},separatorStyle:{marginRight:n.sp4}})]})},W=(e,o,y,O,p,P,j)=>{const _=y.map(m=>({label:m.fullyQualifiedAccountingClassName??"",value:m.classId,hoverText:m.accountingClassNumber}));return{[R]:[{userIndex:0,email:e[0].email,role:O==="zeni_only"?{allOptions:we.roles,selectedOptions:e[0]?.role}:void 0,nonZeniRole:O!=="zeni_only"?{userRole:{selectedRole:Ie(e[0]?.role),allRootRole:Ce(P,j)},productsByUserRole:Re(e[0]?.role,p)}:void 0,manager:{allUsers:o,selectedUser:e[0]?.managerId?e[0]?.managerId:"no_manager"},department:{allOptions:_,selectedOption:_.find(m=>m.value===e[0]?.departmentId)}}]}},nt=(e,o)=>`${e}.${o}`,Pe=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,aA as rn,q as Ae,gc as oo,ge as ao,gf as ro,V as t,gz as lo,ab as ln,cm as si,cn as sn,co as dn,aM as K,o as i,y as d,bz as Di,bm as so,dr as co,gg as uo,gr as cn,gm as Ti,aO as un,an as mn,gn as mo,gA as _e,ew as qe,e_ as di,gB as zt,F as we,m as xt,gC as po,p as j,L as pn,ap as ci,c as a,bv as ho,gp as go,cC as yo,eD as ui,gD as Bt,fd as Se,cE as mi,fg as $e,cO as ot,eh as bo,fc as hn,b as Rt,cH as gn,cG as it,cW as Te,ag as pi,gE as fo,fv as wo,cB as xo,aS as ji,fp as So,bu as $o,b8 as yn,u as vo,eg as Co,b5 as Mt,gh as ko,bS as bn,a as hi,B as fn,cY as wn,cf as Ft,eR as Io,b7 as Do,d0 as To,fj as jo,ak as gi,n as Oi,bQ as xn,a$ as Pi,cV as Oo,al as Po,cK as Sn,aK as Ro,gF as $n,gG as li,g7 as Ri,gH as Lt,cU as Lo,gb as Ao,bH as zo,cT as Bo}from"./index-
|
|
1
|
+
import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,aA as rn,q as Ae,gc as oo,ge as ao,gf as ro,V as t,gz as lo,ab as ln,cm as si,cn as sn,co as dn,aM as K,o as i,y as d,bz as Di,bm as so,dr as co,gg as uo,gr as cn,gm as Ti,aO as un,an as mn,gn as mo,gA as _e,ew as qe,e_ as di,gB as zt,F as we,m as xt,gC as po,p as j,L as pn,ap as ci,c as a,bv as ho,gp as go,cC as yo,eD as ui,gD as Bt,fd as Se,cE as mi,fg as $e,cO as ot,eh as bo,fc as hn,b as Rt,cH as gn,cG as it,cW as Te,ag as pi,gE as fo,fv as wo,cB as xo,aS as ji,fp as So,bu as $o,b8 as yn,u as vo,eg as Co,b5 as Mt,gh as ko,bS as bn,a as hi,B as fn,cY as wn,cf as Ft,eR as Io,b7 as Do,d0 as To,fj as jo,ak as gi,n as Oi,bQ as xn,a$ as Pi,cV as Oo,al as Po,cK as Sn,aK as Ro,gF as $n,gG as li,g7 as Ri,gH as Lt,cU as Lo,gb as Ao,bH as zo,cT as Bo}from"./index-CK2D3iZ1.js";import{a as $,S as Ct}from"./sentry-Dm3bm_ok.js";import{n}from"./mui-DCr-y2iU.js";import{a as Mo}from"./liveblocks-CofSwFWW.js";import{FC as Fo,bL as nt,bP as vn,bo as Cn,bm as Li,FD as Ai,bh as yi}from"./zeni-epic-state-Cgro3mH-.js";import kn from"./InvoiceUploadSection-BvaKEakI-Cgqd0lG_.js";import{r as Eo,f as At,d as bt,p as bi,u as zi,h as Ie}from"./types-DyvtCprH-NFPm5TaG.js";import{I as No}from"./LabeledCreatableSingleSelectField-D_oWjB4_-A2URoXC_.js";import{S as Wo}from"./CurrencySelectField-CvnrYpdi-Bx3ura4E.js";import{e as Uo}from"./BankAccountSection-De0m3zrf-DJo0ErGm.js";import{W as _o,A as Vo}from"./BankAccountWarningSection-DoqOr9h0-CysUjzfB.js";import{o as Ho}from"./radio-default-CiSgisfh-DO_kFVBk.js";import"./core-D2k9JfRf.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./recharts-CIKvFUT6.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";import"./AttachmentView-BijZrB02-BJhcTpzV.js";import"./uploadReceipts-CPw64UYa-BEcpM53g.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="a7c86ec1-c953-42fe-9dde-845bc510569a",e._sentryDebugIdIdentifier="sentry-dbid-a7c86ec1-c953-42fe-9dde-845bc510569a")}catch{}})();const Me=(e,o)=>`${e}.${o}`,Bi={largeLabelWidth:new d(120,120,160),paddingBottom:new d(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:ke}},dateFormat:Ko,common:qo}=we.getLocalizedStrings(),Go=({lineIndex:e,mileage:o,classList:r,defaultCurrency:c,sectionId:p,isReimbursementCommentingEnabled:C,isDisabled:m,isAddReimbursementDisabled:v,companyMileageConfigInfo:f,reimbursementId:l,classHierarchyList:k})=>{const w=Ae(),s=wt(),y=Bt(),S=`dashboard_${s.currentTenant?.companyId}`,O=ft(),{formState:{errors:I},getValues:P,trigger:q}=ot(),R=qo.strings.empty,D=P(Me(p,"distanceInMiles")),z=Bi.largeLabelWidth.value(w),ee=P(Me(p,"class")),ie=r.find(A=>A.classId===ee?.selectedOption),ne=Me(p,"class"),Z=Te(I,ne);$.useEffect(()=>{ee?.selectedOption!=null&&(ie?.isDeleted===!0||Z)&&q(ne)},[ee?.selectedOption,ie?.isDeleted,r,ne,q]);const G={application:"dashboard",companyId:s.currentTenant?.companyId,tab:"reimbursement",entityId:l},F=A=>r.filter(oe=>oe.classId===A)[0]?.accountingClassNumber,Y=r.find(A=>A.classId===o.class),H={valueContainer:A=>({...A,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.transactionDate`}),roomId:S,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("transactionDate",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Sn,{isDisabled:m,label:{label:ke.transactionDate,width:z},style:{paddingBottom:Bi.paddingBottom.valuePx(w),width:"auto"},dateField:{name:Me(p,"transactionDate"),placeholder:ke.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Ko.visual.defaultInput,autoComplete:"off",maxDate:yi(),registerOptions:{required:!0,validate:A=>!!A}}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:S,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:v?"disabled":void 0,style:{width:"auto"},label:{label:ke.distanceInMiles,width:z},formattedTextField:{type:"number",name:Me(p,"distanceInMiles"),placeholder:ke.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.amount`}),roomId:S,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("amount",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:"disabled",label:{label:ke.amount,width:z},formattedTextField:{type:"number",name:Me(`${p}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:it(ke.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:D!=null&&f?.mileageUnitAmount!=null?`${c.currencySymbol}${f?.mileageUnitAmount} per mile x ${D}`:void 0})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.memo`}),roomId:S,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("memo",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(mi,{isDisabled:m,label:{label:ke.memo,width:z},style:{width:"auto"},text:{type:"text",name:Me(p,"memo"),placeholder:it(ke.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.class`}),roomId:S,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("class",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(li,{isLoading:!1,label:{label:ke.department,width:z},additionalLabelInfo:ie?.isDeleted===!0&&Te(I,Me(p,"class"))?ke.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Me(p,"class"),placeholder:it(ke.department),valueToId:A=>F(A),defaultValue:{selectedOption:Y?.classId,allOptions:qe(k,[])},style:{width:"100%"},customStyleConfig:H,registerOptions:{required:!0,validate:A=>A?.selectedOption==null?!1:r.find(oe=>oe.classId===A?.selectedOption)?.isDeleted===!0?ke.deletedClassError:!0}},style:{borderBottom:`1px solid ${O.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Me(p,"class"))})]})},kt=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey3};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{d as h,F as T,aS as x,V as i,aw as C,o,C as p}from"./index-CK2D3iZ1.js";import{n as a}from"./mui-DCr-y2iU.js";import{R as v}from"./TrendWithTransactions-DVLdmgtU-Cv22_4bm.js";import"./sentry-Dm3bm_ok.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./zeni-epic-state-Cgro3mH-.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";import"./TrendChart--yie2Xkp-B3lZJMT5.js";import"./chartTypes-PZyiFZrr-DoI-jL6q.js";import"./toCOABalancesWithID-CPbzhUua-B5GAWKcP.js";import"./toChartData-BUhYY9IR-S8AOthKK.js";import"./NoDataChart-BIcLmdso-V1__FO4W.js";import"./InsightsSection-DCFjudcA-7O17fZbk.js";import"./NavigationDots-Dm8SYcdL-CXSz5QAZ.js";import"./TransactionList-CIbSavhJ-Dp71olkE.js";import"./BoxItem-B8HVRhgE-Bev68PFI.js";import"./commonDimensions-C_y3LIE8-X_N9ThEv.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="3c4622b9-8255-4cb2-b12f-f2beb786531f",t._sentryDebugIdIdentifier="sentry-dbid-3c4622b9-8255-4cb2-b12f-f2beb786531f")}catch{}})();const w=a.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
margin: ${o.sp0} ${o.sp0} ${o.sp0} ${o.sp0};
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
background-color: ${t=>t.theme.colors.grey5};
|
|
8
|
+
`,k=a.div`
|
|
9
|
+
padding-left: ${o.sp0};
|
|
10
|
+
position: fixed;
|
|
11
|
+
width: 100%;
|
|
12
|
+
z-index: 20;
|
|
13
|
+
position: -webkit-sticky;
|
|
14
|
+
position: sticky;
|
|
15
|
+
top: ${o.sp0};
|
|
16
|
+
`,D=a.div`
|
|
17
|
+
flex: 1 1 auto;
|
|
18
|
+
`;function J({firstMonthOfFY:t,selectedEntity:e,trendWithTransactionsReport:r,autoCompleteData:l,autoCompleteActions:c,analytics:s,onTransactionItemClick:m,onTrendSelectedPeriodChange:f}){const u=h(),{dateFormat:{analytics:y}}=T.getLocalizedStrings(),b=new x(u.colors.graphColor12),g=(d,n)=>{d==="Chart"&&n!=null&&s?.trackSpendIncomeTrend(e.type==="vendor"?p.Event.spendTrend:p.Event.incomeTrend,"Search",e.type,e.name,n?.addTimePeriod.startDate.format(y.MMMYYFormat)),d==="TransactionListLoadMore"&&s?.trackTransactionList(void 0,void 0,"Search",void 0,void 0,!0),f?.(n)};return i.jsxs(w,{children:[i.jsx(k,{children:i.jsx(C,{viewType:"entity_search",searchAutoComplete:{autoCompleteData:l,autoCompleteActions:c},source:"EntityDetailPage"})}),e!=null&&r!=null&&i.jsx(D,{children:i.jsx(v,{firstMonthOfFY:t,trendWithTransactionsReport:r,isDetailPage:!1,graphColor:b,page:"EntityDetailPage",onTransactionItemClick:m,onTimePeriodChange:g})})]})}export{J as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as z,F as k,V as i,dn as H,y as l,c_ as O,o as d,a9 as j,aK as S,b1 as A,cq as E,c as r,D as R,al as B,ak as L,b7 as F,ag as N,cv as U,p as W,cy as q}from"./index-
|
|
1
|
+
import{q as z,F as k,V as i,dn as H,y as l,c_ as O,o as d,a9 as j,aK as S,b1 as A,cq as E,c as r,D as R,al as B,ak as L,b7 as F,ag as N,cv as U,p as W,cy as q}from"./index-CK2D3iZ1.js";import{a as f}from"./sentry-Dm3bm_ok.js";import{n}from"./mui-DCr-y2iU.js";import{l as G}from"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="9084a4f2-1b8b-46ef-ba65-636fa7ff6cda",e._sentryDebugIdIdentifier="sentry-dbid-9084a4f2-1b8b-46ef-ba65-636fa7ff6cda")}catch{}})();const m=k.getLocalizedStrings().reports.aging.agingDetail.header,w=[{key:"date",value:m.date,sortOrder:"ascending",width:new l(212,212)},{key:"invoiceNumber",value:m.invoiceNumber,sortOrder:"ascending",width:new l(188,188)},{key:"dueDate",value:m.dueDate,sortOrder:"ascending",width:new l(188,188)},{key:"daysPastDue",value:m.daysPastDue,sortOrder:"ascending",width:new l(188,188)},{key:"amount",value:m.amount,sortOrder:"ascending",width:new l(188,188)},{key:"balance",value:m.balance,sortOrder:"ascending",width:new l(120,120)}],M={headerHeight:new l(45,58)},X=n.div`
|
|
2
2
|
top: ${d.sp0};
|
|
3
3
|
left: ${d.sp0};
|
|
4
4
|
min-height: ${e=>M.headerHeight.valuePx(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as K,q as le,ca as de,V as t,g1 as Q,aM as v,bL as ce,p as a,bQ as F,o as r,bz as he,k2 as pe,b as d,hI as _,hH as R,n as me,bu as ue,ah as ge,k3 as Ce,F as k,ch as ke,D as xe,bH as fe,ag as h,au as U,ak as je,l as ye,b5 as ve,aZ as $e,b7 as ee}from"./index-
|
|
1
|
+
import{d as K,q as le,ca as de,V as t,g1 as Q,aM as v,bL as ce,p as a,bQ as F,o as r,bz as he,k2 as pe,b as d,hI as _,hH as R,n as me,bu as ue,ah as ge,k3 as Ce,F as k,ch as ke,D as xe,bH as fe,ag as h,au as U,ak as je,l as ye,b5 as ve,aZ as $e,b7 as ee}from"./index-CK2D3iZ1.js";import{a as n}from"./sentry-Dm3bm_ok.js";import{n as o,c as te,k as be}from"./mui-DCr-y2iU.js";import{bh as re,bL as Le}from"./zeni-epic-state-Cgro3mH-.js";import{o as we}from"./transaction-placeholder-CpOwZAMG-gpUqGjUj.js";import{U as Me,F as Ee,X as We,Y as Se,J as De,G as He}from"./recharts-CIKvFUT6.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="6c97d1a0-7de5-4db7-a79d-69074484c45b",e._sentryDebugIdIdentifier="sentry-dbid-6c97d1a0-7de5-4db7-a79d-69074484c45b")}catch{}})();const Ve=k.getLocalizedStrings().expenseAutomation,Pe=k.getLocalizedStrings().dateFormat.visual,{common:{strings:{percentage:ze},texts:{score:Fe}}}=k.getLocalizedStrings(),_e=({active:e,payload:i})=>{if(e===!1||e===void 0||!i||i.length===0)return null;const c=i[0]?.value;return c==null?null:t.jsxs(Ze,{children:[t.jsx(Ie,{children:Fe}),t.jsxs(Ne,{children:[c,ze]})]})};function Re({data:e,height:i}){const c=K(),L=e.map(x=>({month:Le(`${x.period.year}-${String(x.period.month).padStart(2,"0")}-01`).format(Pe.MMMYYFormat),count:Math.round(x.auditScore)}));return t.jsxs(Ye,{children:[t.jsx(Te,{children:Ve.overview.monthEndCloseTrend}),t.jsx(Me,{height:i,width:"100%",children:t.jsxs(Ee,{data:L,children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"scoreGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"0%",stopColor:a.brandColorJade,stopOpacity:.8}),t.jsx("stop",{offset:"100%",stopColor:a.brandColorJade,stopOpacity:.1})]})}),t.jsx(We,{dataKey:"month",axisLine:{stroke:c.colors.grey3},tickLine:!1,interval:"preserveStartEnd",label:{color:c.colors.hero,fontSize:d.smallRegular.fontSize,fontWeight:d.smallRegular.fontWeight,fontFamily:d.smallRegular.fontFamily}}),t.jsx(Se,{hide:!0}),t.jsx(De,{content:_e,cursor:{stroke:c.colors.primary,strokeDasharray:"3 3",strokeWidth:1},allowEscapeViewBox:{x:!1,y:!0}}),t.jsx(He,{type:"monotone",dataKey:"count",stroke:a.brandColorJade,strokeWidth:2,fill:"url(#scoreGradient)",dot:!1,activeDot:{r:5,fill:a.neutralGrey4Light,stroke:a.brandColorJade,strokeWidth:2}})]})})]})}const Te=o(h)`
|
|
2
2
|
color: ${e=>e.theme.colors.champion};
|
|
3
3
|
`,Ye=o.div`
|
|
4
4
|
display: flex;
|