@zeniai/web-cockpit-ui 1.14.92-qa → 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-N3NijvTk.js → ACHDetailsPage-Cmt4zlsa-CVV8HYnx.js} +1 -1
- package/dist/assets/{AIPerformancePage-BWK9fXrz-B46uJ0El.js → AIPerformancePage-Bll3cTy1-gL3wACpX.js} +1 -1
- package/dist/assets/AccountInfoPage-D2IedGAy-DpkY7tZI.js +18 -0
- package/dist/assets/{AccountInfoPageContent-nUi26Aww-N_K5j-5L.js → AccountInfoPageContent-9wbA8niq-Bqglb0N2.js} +10 -10
- package/dist/assets/{AccountLockedInfoModal-BROj4bmE-V1SEL3Qw.js → AccountLockedInfoModal-CLvVkdLW-bPK5I-r7.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-C-3FFCQZ-DZ5koKQf.js → AccountReconDetailsDrawerPage-BXa1TZA0-CJ_GlXhF.js} +1 -1
- package/dist/assets/{AccountRow-BM2kGWyR-DQ8Rvnec.js → AccountRow-Ba39SxP8-8PYcW3Va.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-CNCG5uPJ-BDG6T0ii.js → AccountsPromoCardStack-W5TW8HPU-Cm5YfN59.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-BuAtFO1w-BKpEIMZg.js → AddAddressForCardDrawer-nEnaGKnm-DN6yVFPQ.js} +1 -1
- package/dist/assets/{AddToWalletPage-DyrcWdBZ-ChwqMR_w.js → AddToWalletPage-CQYHG0Yj-CP1osDBN.js} +1 -1
- package/dist/assets/{AgingReportsPage-CmluxKG3-DNRV6c6-.js → AgingReportsPage-BWCU11pF-MZUqlZXC.js} +3 -3
- package/dist/assets/{AllUserItems-CVZZU-J3-DjzFcOA-.js → AllUserItems-DPxoQeZA-Fd0FWod6.js} +3 -3
- package/dist/assets/{ApAgingDetailPage-CoNxqskm-CIfrHyiI.js → ApAgingDetailPage-cslGsO08-CvebivaV.js} +4 -4
- package/dist/assets/{AppBasePage-CTGNzUtN-BxUgxZY1.js → AppBasePage-BZINcjPW-DJOgvT_q.js} +1 -1
- package/dist/assets/{AppDrawerContent-59dQVUxu-Bk_swqDi.js → AppDrawerContent-V7jCH_90-Ck_yeGZ4.js} +6 -6
- package/dist/assets/{ApprovalRulesSettingsPage-XEW5sdNg-BK59UBGX.js → ApprovalRulesSettingsPage-BC6CLesU-BKNNkRpO.js} +1 -1
- package/dist/assets/{ArAgingChart-D3Ym4gVE-BPogMxt4.js → ArAgingChart-C7VtW0AI-Co8wpWo7.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-BLEJSLJJ-DnXOhqdM.js → ArAgingDetailPage-Bttq4jQR-BeQILYq-.js} +5 -5
- package/dist/assets/{AttachmentView-DSP80cjm-NHnh6Mdu.js → AttachmentView-BijZrB02-BJhcTpzV.js} +1 -1
- package/dist/assets/{BankAccountSection-DRrNcA79-CMDsEq6F.js → BankAccountSection-De0m3zrf-DJo0ErGm.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-Ub-gsfhE-7pAzeIus.js → BankAccountWarningSection-DoqOr9h0-CysUjzfB.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BcTtJTbg-BNbLLF3r.js → BankConnectionsSettingsPage-BaySatUW-BFaS82zx.js} +1 -1
- package/dist/assets/{BillDetailPage-D7AQyxwr-CyadkftM.js → BillDetailPage-Bg_3myu0-BcOsOHp0.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-BQWGENO8-OOGXr03N.js → BillPayApprovalRuleDetailPage-B7z1PKq6-D3qc7XQa.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BbA1Nwqe-j1N_aljZ.js → BillPayApprovalRulesPage-Cj55NkSk-CVNQ2WUg.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DSTS_vBW-BsBV0DcZ.js → BillPayPromoPage-SUtLQemf-YRwlMQqq.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-CvlVPVCA-DsATmWij.js → BillPaySetUpPage-BbIjaE2K-BvM1AO08.js} +1 -1
- package/dist/assets/{BillingSettingsPage-nKpHtd4C-BIkuGZHo.js → BillingSettingsPage-Bmd6ET1I-D1Hos3cN.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DNHAoceL-B2Yv3rwx.js → BillsBulkReviewDrawerPage-CYSMvAbC-CCvMSRtJ.js} +1 -1
- package/dist/assets/{BoxItem-Bjv3WNXO-Bmh7HRZ0.js → BoxItem-B8HVRhgE-Bev68PFI.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Bj4D9bX2--QW88Q_P.js → BusinessVerificationPage-Cn1b1hk4-CAZR1TOe.js} +1 -1
- package/dist/assets/{CardNumberSubText-BYY-Inxd-CSceDgF3.js → CardNumberSubText-BcJnpRxI-D1zdlj5r.js} +1 -1
- package/dist/assets/{CashbackDetailPage-D9UiTqp9-DPXvQZAq.js → CashbackDetailPage-BkIotpWn-DxPDsNjO.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-C5EdiIyl-AUN78atw.js → ChargeCardDetailPage-kKKhppzB-DtYb-jra.js} +21 -21
- package/dist/assets/{ChargeCardListPage-DZwz1qoD-DQocCvnr.js → ChargeCardListPage-CP778-GK-CTP7-db-.js} +1 -1
- package/dist/assets/{ChargeCardListTable-D5B05Z1F-KVV8IBYB.js → ChargeCardListTable-DBryLHST-Ce2gmrfZ.js} +1 -1
- package/dist/assets/ChargeCardPromoPage-D_eQ_vXf-CNDMyI7K.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-CVV24gS9-Ds7fCLxo.js → ChargeCardSetupPage-m8dUXi38-BJz_Xnlk.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CmjBoi5e-Bnp4sCU-.js → ChargeCardStatementsPage-Dq5NpUXk-Bke0Yjm9.js} +6 -6
- package/dist/assets/{CheckDepositDrawerPage-CYOhT5Qz-CozIPmiJ.js → CheckDepositDrawerPage-BJQ2GSoP-CvcGnuco.js} +1 -1
- package/dist/assets/{CollapsableReportTable-hL_Ycouc-KGnZDH4R.js → CollapsableReportTable-l16Ixpgb-BS0sBPj9.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DR_6TlQa-DrGlDAaW.js → CompanyOfficerDetailsSection-mKcrRkb5-BdmL4WQb.js} +1 -1
- package/dist/assets/{CompanyPassportCard-B4chn7-Q-DGHVZCpU.js → CompanyPassportCard-DUwjb7jY-D94p2vYM.js} +4 -4
- package/dist/assets/{CompanyPassportPage-oT9HnnPQ-DNPtIA1F.js → CompanyPassportPage-mQ_Le1I1-BsfzlRNE.js} +13 -13
- package/dist/assets/{CompleteProfile-BgH4v76Z-HQhF1Tnv.js → CompleteProfile-CesiGAex-BxV2T4kD.js} +1 -1
- package/dist/assets/{ConfettiBurst-Cl6jHJ8H-BB3Ewauq.js → ConfettiBurst-CXF_94LB-B61erBlR.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CW-u7pJU-CxvgfQ3K.js → CreateOrEditVendorPage-BMVOhEEP-okcAo0FU.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-D30M7ol4-BfZHC7sf.js → CreditCardPaymentDrawerPage-Cl4vJBjO-BN2fXeeY.js} +1 -1
- package/dist/assets/{CurrencySelectField-DOCEstMc-4lvoNI5d.js → CurrencySelectField-CvnrYpdi-Bx3ura4E.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-DMPNjFL_-DkUUUgp5.js → CustomerOnboardingActivationPage-CmengYgm-DwWvQDwP.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CBiHoKP2-K1SzPxIX.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CBYo4VQn-ClJXJPQ8.js → CustomerOnboardingDetailPageSkeleton-hF2fjE7f-Bx4vnxk_.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-EBVRCYfJ-DY1xcrcE.js → CustomerOnboardingNoStepsPage-B-pbVz1_-Bu3QH6hN.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-TJK6s-LM-DGpejEDj.js → CustomerOnboardingPage-CUj-SOSh-DqZnrHrN.js} +4 -4
- package/dist/assets/{CustomerOnboardingProductSuitePage-lNIP5gSu-BpAiXbOh.js → CustomerOnboardingProductSuitePage-DLJg9lqc-B7ctGtPH.js} +1 -1
- package/dist/assets/{Dashboard-WiE9IRrh-BRbsM9pb.js → Dashboard-DUBT_4AU-BQQLhc7F.js} +1 -1
- package/dist/assets/{DashboardReportPage-BKHl_IVD-DTdIqAWm.js → DashboardReportPage-cTPn6w4q-BsaoYjkr.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-B1mJObim-BJFLo9e1.js → DashboardSidebarBackgroundAnimation--y1-phUW-DGEiib0J.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-C8tChaJS-CUI-XvYn.js → DepositAccTransactionItem-BJ6rNbQF-DcQ3w2ay.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-B6px7upV-CAKSUpuQ.js → DepositAccTransactionListPage-BXu7yVC4-BqrqxoR4.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BFQJmzYm-Cvg6PoJI.js → DomesticWireDetailsPage-D5wDMrfR-C5cM-TE-.js} +1 -1
- package/dist/assets/{DownloadOverlay-DB-qx46O-DRYhMrBp.js → DownloadOverlay-BF8Uzj65-BjVIvIOE.js} +1 -1
- package/dist/assets/{DrawerPage-Bha9ElcW-C9kSY38Y.js → DrawerPage-4QqiD5ag-BNPe32xq.js} +1 -1
- package/dist/assets/{EditPeoplePage-B6QD5Vld-CXWYhfJI.js → EditPeoplePage-BFROUzlu-DwFofRms.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-EplOf2mP-BmU_dNnN.js → EditReimbursementDetailPage-Bz32u6U5-D6GoDZH_.js} +1 -1
- package/dist/assets/EntityDetailPage-BnG_PBK5-88aNTDFS.js +18 -0
- package/dist/assets/{EntitySummarySection-D6z6-dM7-vFKpzYQr.js → EntitySummarySection-0nKZeBKn-BkqQH4-k.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-DkoxczRc-CzYr7CT4.js → ExpenseAutomationOverviewPage-Dvyn5ovf-DA904IZ7.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-Na3XKgcg-Wa84iqJd.js → ExpenseAutomationPage-DPmIOATd-E0cwlhE5.js} +40 -40
- package/dist/assets/{ExpressPayPage-DWGl_gml-CRw3YebY.js → ExpressPayPage-DGTh3qGM-CBuhnCa1.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-BgkpUPMm-CLV_zrhe.js → FeaturePreviewPage-CHUVkqak-Bv1bUX1B.js} +1 -1
- package/dist/assets/{FollowStepsSection-64oy2OLD-D5wds5zX.js → FollowStepsSection-C_pWSlPc-DWF54WG6.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-DHfTyj2C-DrMGniw6.js → GlobalReviewListPage-BjPOnObQ-CbXiHvNN.js} +1 -1
- package/dist/assets/{InformationCardStack-Dw3lhl2I-ClHKBDYE.js → InformationCardStack-DvFu-gjh-DGBl4kd-.js} +1 -1
- package/dist/assets/{InsightsCardStack-BiEswY1Z-C2XN504y.js → InsightsCardStack-CR3wSnhE-CCTCkrt4.js} +6 -6
- package/dist/assets/{InsightsSection-DvqCilqy-BqRQFw_O.js → InsightsSection-DCFjudcA-7O17fZbk.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-DzVYf5ff-BEtTe2lB.js → IntegrationsSettingsPage-DpPc99qg-BuRPrwyt.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DTHcuQsH-Uu1Wdthf.js → InternationalWireSwiftDetailsPage-xXEk6Ubv-DgeDkVIK.js} +4 -4
- package/dist/assets/{InternationalWireVerificationPage-BzyRqd-m-gNDPMl13.js → InternationalWireVerificationPage-uh0GqYQA-9ZEgxwG_.js} +5 -5
- package/dist/assets/{InviteFormPage-CaJB3ss1-Dj_gKJs9.js → InviteFormPage-5xqk5ISe-Bbb5YAD8.js} +1 -1
- package/dist/assets/{InvitePageListView-8Ltt8tHx-DYbENij5.js → InvitePageListView-CpmTnQLj-CTufHHPe.js} +1 -1
- package/dist/assets/{InvitePeoplePage-A7oKAD7M-C5bAVAcX.js → InvitePeoplePage-BeCWfFpI-DBINJPSA.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-DomquLut-CTyd6fPs.js → InvoiceUploadSection-BvaKEakI-Cgqd0lG_.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-DtIQ1Buk-BLXlwWiG.js → IssueChargeCardPage-Bomvo_PH-CiqvhZJZ.js} +1 -1
- package/dist/assets/{LabeledAddressValue-B_9lh-_a-B95nYnAc.js → LabeledAddressValue-b4zlBP-g-DPs_zAUA.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-CC7T3qZQ-LVQIjlS2.js → LabeledAddressValueField-DpcuqwLy-CTnD7CIG.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CeMM7Ci3-Clti8s6a.js → LabeledControlledCheckBoxField-BTjbeJMZ-ByFU_udW.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DKD0oEl8-rzHX0Cjw.js → LabeledCreatableSingleSelectField-D_oWjB4_-A2URoXC_.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Dy3jwAiL-CjVSpNoY.js → LabeledDocumentField-dtnakMLl-DM4CLrZI.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-DDzM3r6s-DIS19Wrm.js → LabeledDropDownFormattedTextField-DDtxGo1u-9ainO5Wl.js} +1 -1
- package/dist/assets/{LabeledText-axaAGyUS-Cc0biyMh.js → LabeledText-CUs3VIof-3boaO8Y1.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-B4usNbPq.js → LabeledUserSingleSelectWithSubtitlesField-BusH2qnZ-GKSXWTga.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-dpz7g9jK-BGB3Jdty.js → LabeledZeniRolesDropDownField-DYkmOsOP-Dg0kuJ4H.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-CJniqVcu-Dl5Jaq82.js → LinkJETransactionPage-DbP6jfzn-BtGeDf5_.js} +2 -2
- package/dist/assets/{LockCardPage-CjO8cr2a-C0ag-VRe.js → LockCardPage-CWEZyzEM-Bg4PM8JQ.js} +1 -1
- package/dist/assets/{LowBalancePopup-DVS-w3b7-C64DlvyA.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-Cb7vsYv6.js → MagicLinkSuccessPage-DU1RM5NI-Wq9yOHXi.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-FMRBLlRJ-D1rSc1wL.js → MagicLinkTitleSection-RWEjrx8m-CX8Fw-B8.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CiJ5JLA6-CVbfqxKr.js → MailingDetailsSection-BT3SGHhD-Ctkbx47B.js} +5 -5
- package/dist/assets/{Menu-wpP8R1br-CDR69j-M.js → Menu-BTZYMOTT-CKMXXApd.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-DIIFgnkE-CT2Ewuup.js → MyBankConnectionsSettingsPage-DufaL9n8-M4dyrfVV.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-Di_KYRgS-BFvuAnPu.js → MyPendingActivationChargeCardListPage-DwCUyRec-SM92wYsw.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-m6vaeGgZ-Cx8XMhhr.js → MyProfileSettingsPage-geduKqxy-CauaXJ2g.js} +1 -1
- package/dist/assets/{NavBarWithPicker-C_qO8mgD-geTPzVGH.js → NavBarWithPicker-edkm8kW--DTJVRU93.js} +1 -1
- package/dist/assets/{NavigationArrow-BXYIj6Wz-DxylPz8_.js → NavigationArrow-DAOz2wst-CzpVYMv0.js} +1 -1
- package/dist/assets/{NavigationDots-BvKSgdgh-DnL6Qcxw.js → NavigationDots-Dm8SYcdL-CXSz5QAZ.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Dc3xEoiZ-DJJCwQJu.js → NewGlobalMerchantPage-enaZFSVb-D5ALf38h.js} +1 -1
- package/dist/assets/{NoDataChart-C5ZP32zB-Do8u5LpV.js → NoDataChart-BIcLmdso-V1__FO4W.js} +1 -1
- package/dist/assets/{NoDataTable-BnBYE8p_-CJWClG-R.js → NoDataTable-C9ywvwy4-CbJRpj1w.js} +1 -1
- package/dist/assets/{NotFoundPage-CZ25GWwU-D5LCq84E.js → NotFoundPage-B0Pfc4vD-0nVsRFSV.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-DHvgj7Hu-CCcN1KXB.js → NotificationSettingsPage-Di4KhoPI-Zq8167Bo.js} +1 -1
- package/dist/assets/{NotificationsListConfig-BBLSv0sd-BGRRXCpg.js → NotificationsListConfig-CHb7phwi-CuAMA5zK.js} +1 -1
- package/dist/assets/{NotificationsPage-CGVEC-Zc-B9yt_ti_.js → NotificationsPage-B4KMZZ0V-CdnEBa77.js} +1 -1
- package/dist/assets/{OpExByVendorPage-D55JZne--B9z73Aaj.js → OpExByVendorPage-CAxLWg7x-CVAp3gyR.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-BlqK5Szj.js → OverlayContainerPage-Daz3A7cI-C0naTs3U.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-fVmttEKP-B3eSa_ac.js → PandLWithForecastPage-Dx56-ypM-CahTbCAI.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BiU8tQnm-c1f9nhzK.js → PaymentAccountSetupBillingAddressSection-C8QwChEK-DSZP0_gt.js} +1 -1
- package/dist/assets/{PeoplePage-QuuuX2AS-CP4Oiarf.js → PeoplePage-CjD6uKA--DQJyasjD.js} +1 -1
- package/dist/assets/{Preview-D_TLok3M.js → Preview-BXKaaVKN.js} +1 -1
- package/dist/assets/{ProductsCarousel-zdZkfaiY-BAVEH7n3.js → ProductsCarousel-DzOaqLVq-BtBP3iUE.js} +1 -1
- package/dist/assets/{PromoBaseCards-flFtcbIg-jrIM0QrX.js → PromoBaseCards-B1h9AEH0-CHWZv_Gb.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-DNB2C1vQ-BnuZQtJT.js → QBOConnectionDialog-Bv6unk3C-C69fuiCc.js} +1 -1
- package/dist/assets/{QBOSetupSection-B59etoGz-CvnIV44k.js → QBOSetupSection-BTjj7g98-CXsc6nTM.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-D7do3o0A-B3uF2PpS.js → ReimbursementApprovalRuleDetailPage-CHXo51lU-BT66bgjF.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BJ6GewQ2-CI_WNFN9.js → ReimbursementApprovalRulesPage-D7utb8vM-BSv0WO21.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DKAtYSOy-BYwReov9.js → ReimbursementDetailPage-DnXsG55s-DO7QVibn.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DKcSHlHp-BOhDSZIX.js → ReimbursementPromoPage-Di39wgvD-CwoSxp24.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-Y1e_hna--CnJCcZRF.js → ReimbursementSetUpPage-CT5bs4wM-CImglJgz.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-fgz8s4w9-CAzDstkl.js → ReimbursementsBulkReviewDrawerPage-BcB8hTar-D2swNEDZ.js} +1 -1
- package/dist/assets/{ReloadCard-DjtdPHq5-CgzPEC_D.js → ReloadCard-BGPtXAV7-D43T0ICm.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-C8e6IEWt-D27pdQgl.js → ReportTableViewSelector-gEKTiiSk-DFp8GlM2.js} +1 -1
- package/dist/assets/{ReportsPage-BIe0eDLC-Co8P-rdS.js → ReportsPage-Ctvnzlk1-DLJ23fuU.js} +1 -1
- package/dist/assets/{RevenueChart-Cc0XrxLL-DRL5_7kK.js → RevenueChart-D1PfVLk0-DHVFjjTE.js} +14 -14
- package/dist/assets/{ReviewDetailsPage-CU1AYWgR-IcGqiZda.js → ReviewDetailsPage-Ynw6pln--BjtdFL4i.js} +52 -52
- package/dist/assets/{ReviewOverlay-CruJ9O84-CthGk06w.js → ReviewOverlay-DQZwNpFY-DMkxDhbs.js} +1 -1
- package/dist/assets/{RoleWithToolTip-fC3byzzv-BDZeG5VC.js → RoleWithToolTip-DbQ4ezrP-Dd2VpMcB.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CE3tUYhk-DcGdGX8N.js → ScheduleDetailsFixedAssetsPage-DlqQBt-s-drLmv8lF.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-BhAqJ1Of-s9CD1J6-.js → ScheduleDetailsPage-CrVetPy7-CWE6_gjF.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-NSt1juSD-C3Jz7484.js → ScheduleSequenceTable-B7pQ00z8-CEVjTUeV.js} +1 -1
- package/dist/assets/{ScreenRoutes-DBIBtKZ6.js → ScreenRoutes-Sl9iaV1P.js} +1 -1
- package/dist/assets/{SetUpAccountSection-C1EnJv1V-ZQCPg01L.js → SetUpAccountSection-BAsI7p1f-Dy9q8TNa.js} +1 -1
- package/dist/assets/{SignIn-BhIof_Cm-C6zVZKL4.js → SignIn-CE6gxhI3-CtZacIY2.js} +1 -1
- package/dist/assets/{SignInScreen-C_Uhm3dv.js → SignInScreen-BTo7-KSm.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BEWNNX_Z-CFLCn2A9.js → SpendManagementListViewPage-CURCimXb-CsGfTOO_.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-Vs1Eoxgd-Cf5o66Fk.js → SpendManagementPerTabPage-RY3B-92H-DYTGBiT6.js} +1 -1
- package/dist/assets/{SpendManagementSection-C38Zpi1z-Dsmd6P_g.js → SpendManagementSection-rHLuZG8_-UxYLxpbV.js} +1 -1
- package/dist/assets/StatementItem-DcPGZchp-CZE_bKaq.js +31 -0
- package/dist/assets/{StatementsPage-CGQhmaXx-DwbHPW5v.js → StatementsPage-5oimgNHp-D8qK05-P.js} +1 -1
- package/dist/assets/{StatusSwitcher-7fiKLb5g-CZU0SQgq.js → StatusSwitcher-CLCkXs_4-DhXpfaBL.js} +1 -1
- package/dist/assets/{SubTabSwitcher-9AnfZiNy-D-dNVqVx.js → SubTabSwitcher-DDR7LrDO-DpWQK8Dj.js} +1 -1
- package/dist/assets/{SummaryCard-DOycYLs1-CcLAM0vu.js → SummaryCard-Cg5UVud3-DPRQua4j.js} +1 -1
- package/dist/assets/{TaskManagementPage-CehyMnY0--Bl4WZC5.js → TaskManagementPage-6_zt2ePp-BeO6Q35e.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-Dq2FEgFR-BrHVvGr5.js → TimeRangeSwitcher-BTx3d66N-DkQSngDA.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-By3xz_-m-B76KUVWR.js → TimeframeSwitcher-BkGiMDhd-Dhql0xBj.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-a3fmbzNR-D8G4gF3d.js → TimeframeSwitcherWithToggle-M554ai9V-DeR389hA.js} +2 -2
- package/dist/assets/{TopExCard-GEQpp_KY-Bz5Gd491.js → TopExCard-ym2uAvUy-DkU_w9K-.js} +10 -10
- package/dist/assets/{TopExDetailPage-hid1dQYl-C5_fcQmG.js → TopExDetailPage-DU1Qj5ea-DhOfzSmR.js} +6 -6
- package/dist/assets/{TransactionDetailPage-CX4JW9WM-DYs-BV31.js → TransactionDetailPage-BHyBhrM7-B3UILKwv.js} +1 -1
- package/dist/assets/{TransactionList-BixeXh4Y-B3OYF6Sn.js → TransactionList-CIbSavhJ-Dp71olkE.js} +1 -1
- package/dist/assets/{TransactionListBig-CGMMJQBd-CXR48MLA.js → TransactionListBig-kC4b3DAu-DjTE72OH.js} +1 -1
- package/dist/assets/{TransactionListPage-CBVUTX4y-CQdaAKjd.js → TransactionListPage-Ci98GcF7-ClRcNxWS.js} +2 -2
- package/dist/assets/{TransactionVendorDetailPage-CEbHH_0r-vT8FzjZr.js → TransactionVendorDetailPage-DI4kq_vO-D-o6bFok.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BFd7uQnF-B6ZHCjZH.js → TransferDrawerPage-B342yNDJ-CsWgYoId.js} +11 -11
- package/dist/assets/{TreasuryOverviewPage-Bd58hOy8-BeIWSrWu.js → TreasuryOverviewPage-cvOuWLTK-CefWRHUR.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-BvArufHi-kFf30IGj.js → TreasuryPromoPage-DyseS2l1-PYUqYVga.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-YLCEBbRh-Dpp3Gav5.js → TreasuryStatementsPage-rXMNPd2f-B8HSB6xE.js} +2 -2
- package/dist/assets/{TreasuryTaxLetterPage-D_6mgQqi-BRpp1Gq1.js → TreasuryTaxLetterPage-DjV36uFi-ebsJYDfS.js} +2 -2
- package/dist/assets/{TrendChart-D3dT6hUb-GtZ1tY2K.js → TrendChart--yie2Xkp-B3lZJMT5.js} +2 -2
- package/dist/assets/{TrendWithTransactions-Gj-u5KXi-D0ELOp4D.js → TrendWithTransactions-DVLdmgtU-Cv22_4bm.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-B3eRYolj-CUrl4fmj.js → UncategorizedAccountsMappingPage-CRypWMwQ-DzPLYLFI.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-DpjR9hUu-DOy-W4YU.js → UnitIntegrationPage-DU6Luklp-CVEu7KVf.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-COtszXUY-BSxnizaf.js → UploadAdditionalDocumentOverlay-jNiTn6qG-D_tolxLp.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-C85mhuSb-v2ALiduK.js → Vendor2FAPopup-BNA3GtkO-ClfV14L3.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-B9UpKcN3-BTioFEDj.js +1 -0
- package/dist/assets/{VendorDetailPage-BrbKfsL4-DkNK_QUR.js → VendorDetailPage-B6s7kOX--Cl8uI1J2.js} +1 -1
- package/dist/assets/VendorDomesticWireDetailsPage-CVJAmjuC-DlG2tDpP.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-DgBLn3fd-DKTdq1Yw.js → VendorFiling1099EditablePage-DiVBfWTv-CQg0-jaT.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-jc7-OExI-DBNwDkiX.js → VendorFirstReviewPage-CuM6lK63-QOnJj4dm.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-c6isgwH2-DbMqD1iI.js → VendorInternationalWireDetailsPage-CcTippeu-CFZ4Mir_.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-8u1L-aEg-CW6R8j3k.js +1 -0
- package/dist/assets/{VendorsAccountsSection--VfdAF3H-Dwh8lTfL.js → VendorsAccountsSection-zeM6PeT4-zwdhVM2D.js} +1 -1
- package/dist/assets/{VerifyDevice-CaifjdR8-hQw81mgW.js → VerifyDevice-iKowLq-3-BWk2f90N.js} +7 -7
- package/dist/assets/{VideoPlayer-BVR9LPmm-BPKR0CVm.js → VideoPlayer-CN28Ho6V-t5x8EBh8.js} +2 -2
- package/dist/assets/{VideoPopup-BEXc8o78-DmUVjFrn.js → VideoPopup-CfYmxIk4-BV_-FDHV.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-CboqfxzC-B_2_qTb0.js → WarningsDrawerPage-C4jqovLJ-DvCRmdFF.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-Dujj0-XC-HYkgSOiQ.js → ZeniAccountDetailPage-M045ginI-CIh86zMI.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage--SMJDGvC-Btg2muaP.js → ZeniAccountListViewPage-C-eOjorO-Dort1_5m.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-DqLJVQ5t-C4g1RQLG.js → ZeniAccountNavBarPieces-Dz9ssqU1-7L41-5ss.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-BVjJvWsA-sAZjUafk.js → ZeniAccountPromoPage-BxzNy8wF-ClpXMz8i.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-Dvxst8RT-5nGhP63I.js → ZeniAccountSetupPage-zWKttj2U-Co7Yvnyy.js} +1 -1
- package/dist/assets/{ZeniCopyright-B88k3pkr-CUJygJ3_.js → ZeniCopyright-2oeOVh0P-DJaD_9oR.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-1DS0MsTI-BwSRPkS3.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-CrbXJy3Z.js → analyticsHelper-C2XPB_2A-DuJwOZQc.js} +1 -1
- package/dist/assets/{analyticsHelper-B61dxdoT.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-KVeUuxz9.js → chartTypes-PZyiFZrr-DoI-jL6q.js} +1 -1
- package/dist/assets/{commonDimensions-BDftm0gJ-7gU1w9kj.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-BxBAHehG.js → detailCommon-PTd6DPpO-o02U7S0B.js} +1 -1
- package/dist/assets/{downloadPdf-DCQ9vVZs-C44J_DaT.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-DiLAcdW6.js → index-CK2D3iZ1.js} +559 -559
- 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-pi8H7S4r.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-BOxorP0k.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-mDvgzvAS.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-BXyqcwpJ.js → uploadAttachment-D-Lomshq-0SKv4D0e.js} +1 -1
- package/dist/assets/{uploadReceipts-CPw64UYa-6mvBw6sd.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-C6JypXdj.js +0 -18
- package/dist/assets/ChargeCardPromoPage-CDJMtGJb-CfzRbvfn.js +0 -222
- package/dist/assets/CustomerOnboardingContainerPage-SmOFmXBW-uE3RBeY3.js +0 -1
- package/dist/assets/EntityDetailPage-5Cu1qehd-BG4F09T2.js +0 -18
- package/dist/assets/MagicLinkACHDetailsPage-CUHMKmcj-CDVrvkUd.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-Dnc7OzKQ-ERup-38k.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-sBpQkYwP-BL-YDn8G.js +0 -1
- package/dist/assets/StatementItem-bHInVThd-3mxzzZ3o.js +0 -31
- package/dist/assets/VendorACHDetailsPage-DeexeWpV-BolgC0Rd.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-DBChSKlR-Dcclrfxp.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CywCx8-0-5iEWkr3D.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-CXP8ZZTG-BXCQJqNa.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-Bc1S_1ej-D9C0qen1.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-ClgcHX26-BBz0h3vn.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cwp98PMa-Dp0xx8od.js +0 -1
- package/dist/assets/toCOABalancesWithID--oEGymMJ-CPBCh8hJ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as f,cm as O,cn as M,co as q,k1 as W,aV as z,F as G}from"./index-
|
|
1
|
+
import{V as f,cm as O,cn as M,co as q,k1 as W,aV as z,F as G}from"./index-CK2D3iZ1.js";import{a as b}from"./sentry-Dm3bm_ok.js";import{G5 as K}from"./zeni-epic-state-Cgro3mH-.js";import{u as Q}from"./ReviewOverlay-DQZwNpFY-DMkxDhbs.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./mui-DCr-y2iU.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:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="c590fa1c-2a5f-4fe0-b892-6920d1985ac4",e._sentryDebugIdIdentifier="sentry-dbid-c590fa1c-2a5f-4fe0-b892-6920d1985ac4")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=G.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:g,currentSubTab:y}=e,v=!1,[x,l]=b.useState(!1),[m,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,H]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===m.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[m.length,B,h,e.fetchState,v,e,o]);const D=m.length,S=m.filter(d=>d.reviewStatus.code!=="error").length,E=()=>{const{title:d,description:C}=Y(S);A({type:"reject",title:d,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,g,y),l(!0)},F={onOkClick:d=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,g,y,K(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",d)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,g,y),u(t)},V=()=>{let d=a.footer.approve;return T?d=a.texts.close:t==="send_for_approval"&&(d=a.footer.submit),{label:d,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:E,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[x?f.jsx(O,{titleComponent:f.jsx(q,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:V(),cancelButton:N,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},Y=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:g,do_:y,does:v}=a.texts,x=o>1,l=i>1;let m="",_="";return e==="Completed"&&!u?(m=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?y:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:g)}`):(m=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{ce as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as l,V as r,aJ as a,b0 as f,F as y,aM as m,aP as h,bB as g,ag as u,o as c,b1 as w}from"./index-
|
|
1
|
+
import{d as l,V as r,aJ as a,b0 as f,F as y,aM as m,aP as h,bB as g,ag as u,o as c,b1 as w}from"./index-CK2D3iZ1.js";import{n as d}from"./mui-DCr-y2iU.js";import{a as s}from"./sentry-Dm3bm_ok.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]="1e034b64-978b-4e67-a75e-11f25cdc6871",e._sentryDebugIdIdentifier="sentry-dbid-1e034b64-978b-4e67-a75e-11f25cdc6871")}catch{}})();function b({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const x=d(h)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(w,{children:({height:n,width:i})=>r.jsx(b,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>s.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),s.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=d(h)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ee,q as de,ca as xe,a8 as ye,V as o,an as _e,cb as te,ab as we,y as D,aO as $e,o as n,F as oe,cc as ke,cd as ve,ce as Ce,cf as je,cg as Ie,al as he,ch as Se,ag as Ne,aA as X,bB as De,c as f,aS as Oe,ak as Pe,at as Fe}from"./index-
|
|
1
|
+
import{d as ee,q as de,ca as xe,a8 as ye,V as o,an as _e,cb as te,ab as we,y as D,aO as $e,o as n,F as oe,cc as ke,cd as ve,ce as Ce,cf as je,cg as Ie,al as he,ch as Se,ag as Ne,aA as X,bB as De,c as f,aS as Oe,ak as Pe,at as Fe}from"./index-CK2D3iZ1.js";import{a as u,S as ue}from"./sentry-Dm3bm_ok.js";import{n as d}from"./mui-DCr-y2iU.js";import{R as O,I as Be}from"./CollapsableReportTable-l16Ixpgb-BS0sBPj9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="0bf3e870-e809-4c60-bfac-50193e558a5d",e._sentryDebugIdIdentifier="sentry-dbid-0bf3e870-e809-4c60-bfac-50193e558a5d")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Ae=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Te=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Ae(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Te(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ee(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ve(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
|
|
2
2
|
padding: 0 ${n.sp3} 0 ${n.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o as w,aQ as we,m as ye,y as B,bM as Ce,c as S,C as A,aA as X,O as xe,aS as Oe,as as Re,bI as Ae}from"./index-DiLAcdW6.js";import{a as T,S as K}from"./sentry-C9BQzslk.js";import{n as _}from"./mui-8xKzSljO.js";import{bg as Z,EH as Be,EQ as ve,ER as E,ES as Le,ET as Te,EU as Pe,EV as Ie,EW as ke,EX as ee,EY as te}from"./zeni-epic-state-D9zDRHOK.js";import{m as z,l as q}from"./analyticsHelper-DmujELNG-CrbXJy3Z.js";import{x as Ne}from"./ReportTableViewSelector-C8e6IEWt-D27pdQgl.js";import{a as se,p as Me}from"./TimeRangeSwitcher-Dq2FEgFR-BrHVvGr5.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-a3fmbzNR-D8G4gF3d.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-DB-qx46O-DRYhMrBp.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-hL_Ycouc-KGnZDH4R.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BZSP-VcP-pi8H7S4r.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-ClgcHX26-BBz0h3vn.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-BOxorP0k.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-CXP8ZZTG-BXCQJqNa.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";import"./TimeframeSwitcher-By3xz_-m-B76KUVWR.js";import"./page-detail-CWX5S47F-DjAUkIIu.js";import"./AccountRow-BM2kGWyR-DQ8Rvnec.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]="32ce034d-0d1c-4dd4-a2a7-6420ea6d9fd5",e._sentryDebugIdIdentifier="sentry-dbid-32ce034d-0d1c-4dd4-a2a7-6420ea6d9fd5")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=M("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push($e({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const Q={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
|
|
1
|
+
import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o as w,aQ as we,m as ye,y as B,bM as Ce,c as S,C as A,aA as X,O as xe,aS as Oe,as as Re,bI as Ae}from"./index-CK2D3iZ1.js";import{a as T,S as K}from"./sentry-Dm3bm_ok.js";import{n as _}from"./mui-DCr-y2iU.js";import{bg as Z,EH as Be,EQ as ve,ER as E,ES as Le,ET as Te,EU as Pe,EV as Ie,EW as ke,EX as ee,EY as te}from"./zeni-epic-state-Cgro3mH-.js";import{m as z,l as q}from"./analyticsHelper-C2XPB_2A-DuJwOZQc.js";import{x as Ne}from"./ReportTableViewSelector-gEKTiiSk-DFp8GlM2.js";import{a as se,p as Me}from"./TimeRangeSwitcher-BTx3d66N-DkQSngDA.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-M554ai9V-DeR389hA.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-BF8Uzj65-BjVIvIOE.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-l16Ixpgb-BS0sBPj9.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-C6gW1Rqr-Dv2Q5ZLA.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BooGIyls-Ct92rF5c.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-lSB04gFW-CRpECfjU.js";import{d as ze}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"./TimeframeSwitcher-BkGiMDhd-Dhql0xBj.js";import"./page-detail-CWX5S47F-DDARVgTr.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:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="550e1006-fe82-4e87-9c54-8c2c7406a588",e._sentryDebugIdIdentifier="sentry-dbid-550e1006-fe82-4e87-9c54-8c2c7406a588")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=M("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push($e({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const Q={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${w.sp2};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as Ae,p as g,aA as Ve,y as xe,bJ as ge,ak as R,bK as V,b8 as F}from"./index-
|
|
1
|
+
import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as Ae,p as g,aA as Ve,y as xe,bJ as ge,ak as R,bK as V,b8 as F}from"./index-CK2D3iZ1.js";import{a as P,S as ee}from"./sentry-Dm3bm_ok.js";import{n as x}from"./mui-DCr-y2iU.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-PZyiFZrr-DoI-jL6q.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-CPbzhUua-B5GAWKcP.js";import{V as Z}from"./toChartData-BUhYY9IR-S8AOthKK.js";import{H as Te,I as te,X as le,Y as ne,J as se,L as pe,K as ce,M as me,N as fe}from"./recharts-CIKvFUT6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="07342ee0-bc21-4d17-a995-b3453f5751c3",e._sentryDebugIdIdentifier="sentry-dbid-07342ee0-bc21-4d17-a995-b3453f5751c3")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -29,7 +29,7 @@ import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as A
|
|
|
29
29
|
text-align: left;
|
|
30
30
|
`,Ze=x(R)`
|
|
31
31
|
text-align: right;
|
|
32
|
-
`,Qe=({active:e,payload:r})=>{const t=[];return r?.forEach(n=>{const o=n.name;if(e===!0){const l=n.payload,i=n.color,h=o!=null&&l.record[o]!=null?l.record[o].amount:void 0;t.push({barName:D.getLocalizedStrings().chartCard.cashInCashOut[N(o)],value:h,color:i})}}),t},be=e=>e.map((r,t)=>a.jsxs(Xe,{color:r.color,children:[a.jsxs(Ue,{children:[a.jsx(qe,{color:r.color}),`${r.barName}:`]}),a.jsx(Ze,{children:`${T(r.value)}`})]},r.barName+t)),Je=e=>{const r=Qe({...e});return r.length===0?null:a.jsx(Fe,{children:a.jsxs(Ye,{children:[be(r.slice(0,r.length-1)),r.length?a.jsx(He,{}):null,be(r.slice(-1))]})})},ea=ee.memo(Je),aa=(e,r,t,n,o)=>{let l=[],i=[],h=[];t!=null&&t.balances.length>0&&(l=K("cash_in","actual",t)),n!=null&&n.balances.length>0&&(i=K("cash_out","actual",n)),o!=null&&o.balances.length>0&&(h=oe("net_cash_flow","actual",o));const
|
|
32
|
+
`,Qe=({active:e,payload:r})=>{const t=[];return r?.forEach(n=>{const o=n.name;if(e===!0){const l=n.payload,i=n.color,h=o!=null&&l.record[o]!=null?l.record[o].amount:void 0;t.push({barName:D.getLocalizedStrings().chartCard.cashInCashOut[N(o)],value:h,color:i})}}),t},be=e=>e.map((r,t)=>a.jsxs(Xe,{color:r.color,children:[a.jsxs(Ue,{children:[a.jsx(qe,{color:r.color}),`${r.barName}:`]}),a.jsx(Ze,{children:`${T(r.value)}`})]},r.barName+t)),Je=e=>{const r=Qe({...e});return r.length===0?null:a.jsx(Fe,{children:a.jsxs(Ye,{children:[be(r.slice(0,r.length-1)),r.length?a.jsx(He,{}):null,be(r.slice(-1))]})})},ea=ee.memo(Je),aa=(e,r,t,n,o)=>{let l=[],i=[],h=[];t!=null&&t.balances.length>0&&(l=K("cash_in","actual",t)),n!=null&&n.balances.length>0&&(i=K("cash_out","actual",n)),o!=null&&o.balances.length>0&&(h=oe("net_cash_flow","actual",o));const c=b("cash_in","actual"),s=b("cash_out","actual"),f=b("net_cash_flow","actual"),p=l.length>0?c:i.length>0?s:void 0,d={};return d[c]=l,d[s]=i,d[f]=h,p!=null?Z(e,r,p,d):void 0},ye=[b("cash_in","actual"),b("cash_out","actual"),b("net_cash_flow","actual")],ra=x.div`
|
|
33
33
|
width: ${e=>e.width}px;
|
|
34
34
|
height: ${e=>e.height}px;
|
|
35
35
|
|
|
@@ -42,7 +42,7 @@ import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as A
|
|
|
42
42
|
`,oa=x(ge)`
|
|
43
43
|
margin-left: ${e=>X.legendLabelMarginLeft.valuePx(e.windowSize)};
|
|
44
44
|
color: ${e=>e.theme.colors.primary};
|
|
45
|
-
`;function Tr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const
|
|
45
|
+
`;function Tr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const c=A(),s=P.useRef(!1);P.useEffect(()=>{s.current=!0},[]);const f=[c.colors.graphColor33,c.colors.graphColor36,c.colors.graphColor35],p=(_,w=c.colors.graphColor08)=>_<f.length?f[_]:w,d=aa(e.firstMonthOfFY,ye,e.cashIn,e.cashOut,e.netCashFlow),y=()=>{const _=[];return ye.forEach((w,C)=>{const L=i===!0&&!s.current;_.push(a.jsx(ce,{name:w,animationDuration:L?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:$=>{const k=$.record;return(k[w]!=null&&k[w].amount!=null?k[w].amount:void 0)?.amount??0},fill:p(C)},w))}),_};return d==null?null:a.jsx(ta,{chartData:d,timeframe:r,showBarHoverBackground:l,barElements:y(),customToolTipContent:({active:_,payload:w})=>a.jsx(ea,{active:_,payload:w}),width:n,height:o,onCOABalancesRangeChanged:h,highlightedRange:t,isDetailPage:i===!0})}const ta=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=de(),p=A(),d=e.timeseries,y=ae(e),_=d.map($=>$.label),w=h!==!1,C=$=>{if(!c||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:d[j].startDate,endDate:d[j].endDate}};s?.(d[v],r,S)},L=c?(l-60)/W.cash_in_cash_out*(W.cash_in_cash_out-e.recordByTimeseries.length):20;return a.jsx(ra,{"data-testid":Ae("dashboard-cash-in-cash-out-timeframe",r),width:l,height:i,windowSize:f,children:a.jsx(Q,{children:({height:$,width:k})=>a.jsxs(Te,{data:e.recordByTimeseries,barCategoryGap:c?void 0:"12%",maxBarSize:c?I[10]:22,barGap:c?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,y)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,c?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},formatter:v=>a.jsx(oa,{windowSize:f,children:D.getLocalizedStrings().chartCard.cashInCashOut[N(v)]})}):null]})})})},la=x.div`
|
|
46
46
|
display: flex;
|
|
47
47
|
`,na=x.div`
|
|
48
48
|
flex: display;
|
|
@@ -51,16 +51,16 @@ import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as A
|
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
padding: ${m.sp3};
|
|
53
53
|
background-color: ${e=>e.theme.colors.black};
|
|
54
|
-
`,
|
|
54
|
+
`,sa=x(R)`
|
|
55
55
|
color: ${e=>e.color??g.neutralGrey2Light};
|
|
56
56
|
text-align: left;
|
|
57
57
|
display: flex;
|
|
58
58
|
align-items: center;
|
|
59
59
|
justify-content: space-between;
|
|
60
|
-
`,
|
|
60
|
+
`,ca=({active:e,payload:r})=>{const t=[];return r?.forEach(n=>{const o=n.name;if(e===!0){const l=n.payload,i=n.color,h=o!=null&&l.record[o]!=null?l.record[o].amount:void 0;t.push({barName:D.getLocalizedStrings().reportTitleById.cash_position,value:h,color:i})}}),t},ia=e=>{const r=ca(e);return r.length===0?null:a.jsx(la,{children:a.jsx(na,{children:r.map((t,n)=>a.jsx(sa,{color:t.color,children:`${t.barName}: ${T(t.value)}`},t.barName+n))})})},ua=ee.memo(ia),ha=(e,r,t)=>{let n=[];t!=null&&t.balances.length>0&&(n=G("cash_position","actual",t));const o=b("cash_position","actual"),l={};return l[o]=n,n.length>0?Z(e,r,o,l):void 0},da=x.div`
|
|
61
61
|
width: ${e=>e.width}px;
|
|
62
62
|
height: ${e=>e.height}px;
|
|
63
|
-
`,Ce=[b("cash_position","actual")];function Wr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const
|
|
63
|
+
`,Ce=[b("cash_position","actual")];function Wr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const c=A(),s=P.useRef(!1);P.useEffect(()=>{s.current=!0},[]);const f=ha(e.firstMonthOfFY,Ce,e.cashPosition),p=()=>{const d=[];return Ce.forEach(y=>{const _=i===!0&&!s.current;d.push(a.jsx(ce,{name:y,animationDuration:_?500:void 0,style:{cursor:"pointer"},dataKey:w=>{const C=w.record;return(C[y]!=null&&C[y].amount!=null?C[y].amount:void 0)?.amount??0},fill:c.colors.graphColor17},y))}),d};return f==null?null:a.jsx(ga,{chartData:f,timeframe:r,showBarHoverBackground:l,barElements:p(),customToolTipContent:({active:d,payload:y})=>a.jsx(ua,{active:d,payload:y}),width:n,height:o,onCOABalancesRangeChanged:h,highlightedRange:t,isDetailPage:i===!0})}const ga=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=A(),p=e.timeseries,d=ae(e),y=p.map(L=>L.label),_=h!==!1,w=L=>{if(!c||L?.activePayload==null||L?.activePayload.length===0)return;const $=L.activePayload[0];if($?.payload?.timeLabel?.label==null)return;const k=L.activeTooltipIndex,v=$.payload.timeLabel.label;if(o==null)return;const O=re(v,y,o.numberOfPeriods),u=O[1]===void 0?y.length-1:y.indexOf(O[1]),j={...o,thisPeriod:{startDate:p[u].startDate,endDate:p[u].endDate}};s?.(p[k],r,j)},C=c?(l-60)/W.cash_position*(W.cash_position-e.recordByTimeseries.length):20;return a.jsx(da,{width:l,height:i,children:a.jsx(Q,{children:({height:L,width:$})=>a.jsxs(Te,{width:$,height:L,data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:c?I[10]:30,margin:{top:5,right:C,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:f.colors.grey3}),a.jsx(le,{dataKey:k=>k.timeLabel.label,type:"category",axisLine:{stroke:f.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:k=>J("0,0.[00]a",k,d)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:_?{stroke:f.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:f.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t]})})})},pa=x.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
`,ma=x.div`
|
|
66
66
|
display: flex;
|
|
@@ -128,7 +128,7 @@ import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as A
|
|
|
128
128
|
`,ve=x(F)`
|
|
129
129
|
display: flex;
|
|
130
130
|
flex-direction: column;
|
|
131
|
-
`,ke=x(H)``,ka=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l=Math.floor((n.amount-o.amount)*100/100),i={...n,amount:l},h=o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:i,percent:h,forecastPercent:r.record[t].percentValue}},$a=({active:e,payload:r,mode:t})=>{const n=[],o={barName:D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn,actual:void 0,color:g.neutralGrey2Dark,forecast:void 0};let l={amount:0,currencyCode:"",currencySymbol:""},i={amount:0,currencyCode:"",currencySymbol:""};const h=b("income","actual"),
|
|
131
|
+
`,ke=x(H)``,ka=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l=Math.floor((n.amount-o.amount)*100/100),i={...n,amount:l},h=o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:i,percent:h,forecastPercent:r.record[t].percentValue}},$a=({active:e,payload:r,mode:t})=>{const n=[],o={barName:D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn,actual:void 0,color:g.neutralGrey2Dark,forecast:void 0};let l={amount:0,currencyCode:"",currencySymbol:""},i={amount:0,currencyCode:"",currencySymbol:""};const h=b("income","actual"),c=b("cogs","actual"),s=b("expenses","actual"),f=b("net_burn_or_income","actual");return r?.forEach(p=>{const d=p.name;if(e===!0){const y=p.payload,_=p.color,w=d!=null&&y.record[d]!=null?y.record[d].amount:void 0;let C;if(d.includes("forecast")!==!0)switch(t==="forecast_mode"&&(C=y.record[d]!=null?ka(d,y):void 0),d){case c:case s:w!=null&&(l.currencyCode===""?l={...w}:l.amount=l.amount+w.amount),C!=null&&(i.currencyCode===""?i={...C.value}:i.amount=i.amount+C.value.amount),n.push({barName:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(d)],actual:w,forecast:C,color:_});break;case f:{const L=w!=null&&w.amount>=0?D.getLocalizedStrings().chartCard.netBurnOrIncome.net_income:D.getLocalizedStrings().chartCard.netBurnOrIncome.net_burn;n.push({barName:L,actual:w,color:_,percent:y.record[d]?.percentValue,forecast:C});break}case h:default:n.push({barName:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(d)],actual:w,color:_,forecast:C})}}}),o.actual=l,o.forecast=i!=null&&l!=null?{value:i,change:{...l,amount:Math.floor((l.amount-i.amount)*100/100)},percent:i.amount!==0?Math.floor((l.amount-i.amount)/i.amount*100)/100:0}:void 0,e===!0&&n.splice(n.length-1,0,o),n},$e=e=>e.map((r,t)=>a.jsxs(Ne,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(Ca,{children:[a.jsx(Ie,{color:r.barName===D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":r.color}),`${r.barName}:`]}),a.jsxs(va,{children:[a.jsx(je,{children:`${T(r.actual)}`}),r.percent!=null?a.jsx(je,{children:V("0,0.0%",r.percent)}):null]})]},r.barName+t)),we=e=>e.map((r,t)=>a.jsxs(Ne,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(ja,{children:[a.jsx(Ie,{color:r.barName===D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":r.color}),`${r.barName}:`]}),a.jsx(H,{children:a.jsxs(ve,{children:[r.actual!=null?`${T(r.actual)}`:"-",a.jsx(ke,{children:r.percent!=null?V("0,0.0%",r.percent):null})]})}),a.jsx(H,{children:a.jsxs(ve,{children:[r.forecast!=null?`${T(r.forecast.value)}`:"-",a.jsx(ke,{children:r.forecast!=null&&r.forecast.forecastPercent!=null?V("0,0.0%",r.forecast.forecastPercent):null})]})}),r.forecast!=null?a.jsx(H,{isChange:!0,children:`${T(r.forecast.change)}`}):a.jsx(H,{children:"-"}),r.forecast!=null?a.jsx(H,{isChange:!0,children:V("0,0.0%",r.forecast.percent)}):a.jsx(H,{children:"-"})]},r.barName+t)),wa=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},_a=({barLabelsWithValues:e})=>a.jsxs(ma,{children:[a.jsxs(fa,{children:[a.jsx(xa,{}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(ie,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",wa(e)]}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(ya,{children:[we(e.slice(0,e.length-2)),e.length?a.jsx(We,{}):null,we(e.slice(-2))]})]}),La=({barLabelsWithValues:e})=>a.jsx(pa,{children:a.jsxs(ba,{children:[$e(e.slice(0,e.length-2)),e.length?a.jsx(We,{}):null,$e(e.slice(-2))]})}),Da=e=>{const r=$a({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(_a,{barLabelsWithValues:r}):a.jsx(La,{barLabelsWithValues:r})})},Sa=ee.memo(Da),Ba=(e,r,t,n,o,l,i)=>{let h=[],c=[],s=[],f=[];n!=null&&n.balances.length>0&&(h=K("income","actual",n)),o!=null&&o.balances.length>0&&(c=K("cogs","actual",o)),l!=null&&l.balances.length>0&&(s=G("expenses","actual",l)),i!=null&&i.balances.length>0&&(f=oe("net_burn_or_income","actual",i));const p=b("income","actual"),d=b("cogs","actual"),y=b("expenses","actual"),_=b("net_burn_or_income","actual"),w=h.length>0?p:c.length>0?d:s.length>0?y:void 0,C={};return C[p]=h,C[d]=c,C[y]=s,C[_]=f,t==="forecast_mode"&&Object.assign(C,Oa(n,o,l,i)),w!=null?Z(e,r,w,C):void 0},Oa=(e,r,t,n)=>{let o=[],l=[],i=[],h=[];e!=null&&e.balances.length>0&&(o=K("income","forecast",e)),r!=null&&r.balances.length>0&&(l=K("cogs","forecast",r)),t!=null&&t.balances.length>0&&(i=G("expenses","forecast",t)),n!=null&&n.balances.length>0&&(h=oe("net_burn_or_income","forecast",n));const c=b("income","forecast"),s=b("cogs","forecast"),f=b("expenses","forecast"),p=b("net_burn_or_income","forecast"),d={};return d[c]=o,d[s]=l,d[f]=i,d[p]=h,d},za=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual")],Pa=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual"),b("income","forecast"),b("cogs","forecast"),b("expenses","forecast"),b("net_burn_or_income","forecast")],Ra=x.div`
|
|
132
132
|
width: ${e=>e.width}px;
|
|
133
133
|
height: ${e=>e.height}px;
|
|
134
134
|
|
|
@@ -141,7 +141,7 @@ import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as A
|
|
|
141
141
|
`,Ta=x(ge)`
|
|
142
142
|
margin-left: ${e=>X.legendLabelMarginLeft.valuePx(e.windowSize)};
|
|
143
143
|
color: ${e=>e.theme.colors.primary};
|
|
144
|
-
`;function Nr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:
|
|
144
|
+
`;function Nr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:c}){const s=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[s.colors.graphColor36,s.colors.graphColor06,s.colors.graphColor31,s.colors.graphColor12],d=[s.colors.graphColor04,s.colors.graphColor10,s.colors.graphColor32,s.colors.graphColor13,s.colors.graphColor04Dark,s.colors.graphColor10Dark,s.colors.graphColor32Dark,s.colors.graphColor13Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?Pa:za,w=(u,j=s.colors.graphColor04)=>u<y.length?y[u]:j,C=(e.reportId,Ba(e.firstMonthOfFY,_,h,e.sections.income,e.sections.cogs,e.sections.expenses,e.calculatedSections.netBurnOrIncome)),L=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:4,stroke:B,strokeWidth:2,fill:z})},$=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:5,stroke:z,strokeWidth:2,fill:B})},k=(u,j)=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount},dot:a.jsx(L,{}),strokeWidth:1.5,stroke:w(j),strokeDasharray:"3 3",activeDot:a.jsx($,{})},u),v=(u,j,S)=>a.jsx(ce,{name:u,animationDuration:S?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:B=>{const z=B.record;return(z[u]!=null&&z[u].amount!=null?z[u].amount:void 0)?.amount??0},fill:w(j)},u),O=()=>{const u=[];return _.forEach((j,S)=>{const B=i===!0&&!f.current;j.endsWith("_forecast")?u.push(k(j,S)):u.push(v(j,S,B))}),u};return C==null?null:a.jsx(Wa,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:O(),customToolTipContent:({active:u,payload:j})=>a.jsx(Sa,{active:u,payload:j,mode:h}),width:n,height:o,onCOABalancesRangeChanged:c,highlightedRange:t,isDetailPage:i===!0})}const Wa=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!c||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:y[j].startDate,endDate:y[j].endDate}};s?.(y[v],r,S)},L=c?(l-60)/W.net_burn_or_income*(W.net_burn_or_income-e.recordByTimeseries.length):20;return a.jsx(Ra,{width:l,height:i,windowSize:f,children:a.jsx(Q,{children:({height:$,width:k})=>a.jsxs(fe,{data:e.recordByTimeseries,barCategoryGap:c?void 0:"12%",maxBarSize:c?I[10]:22,barGap:c?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,d)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeWidth:(k-60)/W.net_burn_or_income,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,c?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},iconSize:I[3],formatter:v=>a.jsx(Ta,{windowSize:f,children:v.endsWith("_forecast")===!0?D.getLocalizedStrings().chartCard.netBurnOrIncome[v]:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(v)]})}):null]})})})},Na=x.div`
|
|
145
145
|
display: flex;
|
|
146
146
|
`,Ia=x.div`
|
|
147
147
|
flex: display;
|
|
@@ -192,15 +192,15 @@ import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as A
|
|
|
192
192
|
`,q=x(F)`
|
|
193
193
|
text-align: right;
|
|
194
194
|
flex: 1;
|
|
195
|
-
`,Fa=({active:e,payload:r,barName:t})=>{const n=[];if(r!=null&&e===!0){const o=r.filter(
|
|
195
|
+
`,Fa=({active:e,payload:r,barName:t})=>{const n=[];if(r!=null&&e===!0){const o=r.filter(c=>c.name==t)[0],l=o.payload,i=o.color,h=t!=null&&l.record[t]!=null?l.record[t].amount:void 0;if(!t?.endsWith("_forecast")){let c;if(t.includes("forecast")!==!0){c=l.record[t]!=null?Ha(t,l):void 0;const s={amount:0,currencyCode:"",currencySymbol:""},f={amount:0,currencyCode:"",currencySymbol:""};let p;for(p in l.record){const C=l.record[p].amount;p.endsWith("_actual")?(s.amount+=l.record[p].amount?.amount??0,s.currencyCode=C!=null?C.currencyCode:s.currencyCode,s.currencySymbol=C!=null?C.currencySymbol:s.currencySymbol):p.endsWith("_forecast")&&(f.amount+=l.record[p].amount?.amount??0,f.currencyCode=C!=null?C.currencyCode:f.currencyCode,f.currencySymbol=C!=null?C.currencySymbol:f.currencySymbol)}const d=Math.floor((s?.amount-f?.amount)*100/100),y={...s,amount:d},_=f.amount!==0?Math.floor((s.amount-f.amount)/f.amount*100)/100:0,w={value:f,change:y,percent:_};n.push({barName:N(t),actual:h,forecast:c,color:i}),n.push({barName:D.getLocalizedStrings().chartCard.total,actual:s,forecast:w,color:g.neutralGrey1Light})}}}return n},Ha=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l={...n,amount:o!=null?Math.floor((n.amount-o.amount)*100/100):n.amount},i=o!=null&&o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:l,percent:i}},Le=e=>a.jsxs(Ga,{color:e.color,children:[a.jsx(Va,{children:`${e.barName}:`}),a.jsx(q,{children:e.actual!=null?`${T(e.actual)}`:"-"}),a.jsx(q,{children:e.forecast!=null?`${T(e.forecast.value)}`:"-"}),e.forecast!=null?a.jsx(q,{isChange:!0,children:`${T(e.forecast.change)}`}):a.jsx(q,{children:"-"}),e.forecast!=null?a.jsx(q,{isChange:!0,children:V("0,0.0%",e.forecast.percent)}):a.jsx(q,{children:"-"})]}),Ya=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},Xa=({barLabelsWithValues:e})=>a.jsx(Na,{children:a.jsxs(Ia,{children:[a.jsx(_e,{color:e[0].color,children:`${e[0].barName}: ${T(e[0].actual)}`}),a.jsx(Ee,{}),a.jsx(_e,{children:`${D.getLocalizedStrings().chartCard.total}: ${T(e[1].actual)}`})]})}),qa=({barLabelsWithValues:e})=>a.jsxs(Ma,{children:[a.jsxs(Ka,{children:[a.jsx(Ea,{}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(ue,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",Ya(e)]}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(Aa,{children:[Le(e[0]),a.jsx(Ee,{}),Le(e[1])]})]}),Ua=e=>{const r=Fa({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(qa,{barLabelsWithValues:r}):a.jsx(Xa,{barLabelsWithValues:r})})},Za=ee.memo(Ua),Qa=(e,r)=>{const t=[],n={};let o;return r!=null&&r.classes.length!=0&&r.classes.forEach(l=>{const i=G(l.class.className,"actual",l.childrenBalancesTotal),h=b(l.class.className,"actual");n[h]=i,t.push(h),o==null&&i.length>0&&(o=b(l.class.className,"actual"))}),o!=null?Z(e,t,o,n):void 0},De=[g.graphColor34,g.graphColor05,g.graphColor08,g.graphColor11,g.graphColor13,g.graphColor19,g.graphColor29,g.graphColor28,g.graphColor20,g.graphColor21,g.graphColor22,g.graphColor14,g.graphColor35,g.graphColor31,g.graphColor33,g.graphColor32,g.graphColor36,g.graphColor02,g.graphColor06,g.graphColor04,g.graphColor10,g.graphColor12,g.graphColor15,g.graphColor18,g.graphColor17,g.graphColor07,g.graphColor34Dark,g.graphColor05Dark,g.graphColor08Dark,g.graphColor11Dark,g.graphColor13Dark,g.graphColor19Dark,g.graphColor29Dark,g.graphColor28Dark,g.graphColor20Dark,g.graphColor21Dark,g.graphColor22Dark,g.graphColor14Dark,g.graphColor35Dark,g.graphColor31Dark,g.graphColor33Dark,g.graphColor32Dark,g.graphColor36Dark,g.graphColor02Dark,g.graphColor06Dark,g.graphColor04Dark,g.graphColor10Dark,g.graphColor12Dark,g.graphColor15Dark,g.graphColor18Dark,g.graphColor17Dark,g.graphColor07Dark];class Y{_barColors;_barColorsKeyWise;_defaultColor;constructor(){this._defaultColor=g.graphColor34,this._barColors=De.slice(),this._barColorsKeyWise=new Map}static#e=new Y;getBarColor(r){const t=Y.instance();return t._barColorsKeyWise.has(r)||(t._barColors.length===0&&(t._barColors=De.slice()),t._barColorsKeyWise.set(r,t._barColors.shift()??t._defaultColor)),t._barColorsKeyWise.get(r)}shouldUpdate(r){const t=Y.instance(),n=Array.from(t._barColorsKeyWise.keys()).sort();return!Ve(n,r)}static init(){return this.#e=new Y,this.#e}static instance(){return this.#e}}const Ja=Y.instance(),er=(e,r,t)=>{const n=[],o={};let l,i=!1;if(t!=null&&t.accountGroups.length!=0?t.accountGroups.forEach(h=>{const c=G(h.accountGroupName,"actual",h),s=b(h.accountGroupName,"actual");o[s]=c,n.push(s),l==null&&c.length>0&&(l=b(h.accountGroupName,"actual"))}):t!=null&&t.accounts.length!=0&&(i=!0,t.accounts.forEach(h=>{const c=G(h.account.accountName,"actual",h.account.balancesInTimeframe),s=b(h.account.accountName,"actual");o[s]=c,n.push(s),l==null&&c.length>0&&(l=b(h.account.accountName,"actual"))})),t!=null&&t.accountGroups.length===0&&t.accounts.length===0){const h=D.getLocalizedStrings().chartCard.total,c=G(h,"actual",t);if(c.length!==0){const s=b(h,"actual");o[s]=c,l=s,n.push(s)}}return r==="forecast_mode"&&Object.assign(o,ar(n,t)),l!=null?Z(e,n,l,o,i):void 0},ar=(e,r)=>{const t={};let n;if(r!=null&&r.accountGroups.length!=0?r.accountGroups.forEach(o=>{const l=G(o.accountGroupName,"forecast",o),i=b(o.accountGroupName,"forecast");t[i]=l,e.push(i),n==null&&l.length>0&&(n=b(o.accountGroupName,"forecast"))}):r!=null&&r.accounts.length!=0&&r.accounts.forEach(o=>{const l=G(o.account.accountName,"forecast",o.account.balancesInTimeframe),i=b(o.account.accountName,"forecast");t[i]=l,e.push(i),n==null&&l.length>0&&(n=b(o.account.accountName,"forecast"))}),r!=null&&r.accountGroups.length===0&&r.accounts.length===0){const o=D.getLocalizedStrings().chartCard.total,l=G(o,"forecast",r);if(l.length!==0){const i=b(o,"forecast");t[i]=l,n=i,e.push(i)}}return t},rr=x.div`
|
|
196
196
|
width: ${e=>e.width}px;
|
|
197
197
|
height: ${e=>e.height}px;
|
|
198
|
-
`,or=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:4,stroke:n,strokeWidth:2,fill:o})},tr=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:5,stroke:o,strokeWidth:2,fill:n})};function Ir({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:
|
|
198
|
+
`,or=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:4,stroke:n,strokeWidth:2,fill:o})},tr=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:5,stroke:o,strokeWidth:2,fill:n})};function Ir({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:c}){const s=P.useRef(!1),[f,p]=P.useState(Ja),[d,y]=P.useState(void 0),_=A(),w=P.useRef([]);P.useEffect(()=>{s.current=!0},[]),P.useEffect(()=>{f.shouldUpdate(w.current)===!0&&p(Y.init())},[]),P.useEffect(()=>{let k=[];if(e.reportId==="operating_expenses"){const v=e.sections.expenses;v.accountGroups.length===0&&v.accounts.length===0?k.push(D.getLocalizedStrings().chartCard.total):v.accountGroups.length!=0?k=v.accountGroups.map(O=>O.accountGroupName).sort():k=v.accounts.map(O=>O.account).map(O=>O.accountName).sort()}else k=e.sections.expenses.classes.map(v=>v.class.className).sort();w.current=k},[e,f]);const C=P.useMemo(()=>e.reportId==="operating_expenses"?er(e.firstMonthOfFY,h,e.sections.expenses):Qa(e.firstMonthOfFY,e.sections.expenses),[e,h]),L=P.useCallback(()=>{const k=u=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:a.jsx(or,{}),activeDot:a.jsx(tr,{}),dataKey:j=>{const S=j.record;let B,z;for(z in S)if(z.endsWith("_forecast")){const E=S[z].amount;E!=null&&(B==null?B={...E}:B.amount+=E.amount)}return B?.amount},stroke:_.colors.grey1,strokeDasharray:"3 3",strokeWidth:1.5},u),v=(u,j)=>a.jsx(ce,{name:u,animationDuration:j?500:void 0,style:{cursor:"pointer"},dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount??0},stackId:"a",fill:f.getBarColor(N(u)),onMouseEnter:()=>{d!==u&&y(u)},onMouseLeave:()=>{d!=null&&y(void 0)}},u),O=[];return C?.orderedKeys.forEach(u=>{const j=!s.current;u.endsWith("_forecast")?O.push(k(u)):O.push(v(u,j))}),O},[C]),$=({active:k,payload:v})=>v?.find(O=>O.name===d)!=null&&d!=null&&k===!0?a.jsx(Za,{active:k,payload:v,mode:h,barName:d}):null;return C==null?null:a.jsx(lr,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:L(),customToolTipContent:a.jsx($,{}),width:n,height:o,onCOABalancesRangeChanged:c,highlightedRange:t,isDetailPage:i===!0})}const lr=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=A(),p=ae(e),d=e.timeseries,y=d.map(L=>L.label),_=h!==!1,w=L=>{if(!c||L?.activePayload==null||L?.activePayload.length===0)return;const $=L.activePayload[0];if($?.payload?.timeLabel?.label==null)return;const k=L.activeTooltipIndex,v=$.payload.timeLabel.label;if(o==null)return;const O=re(v,y,o.numberOfPeriods),u=O[1]===void 0?y.length-1:y.indexOf(O[1]),j={...o,thisPeriod:{startDate:d[u].startDate,endDate:d[u].endDate}};s?.(d[k],r,j)},C=c?(l-60)/W.operating_expenses*(W.operating_expenses-e.recordByTimeseries.length):20;return a.jsx(rr,{width:l,height:i,children:a.jsx(Q,{children:({height:L,width:$})=>a.jsxs(fe,{width:$,height:L,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:c?I[10]:30,margin:{top:5,right:C,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:f.colors.grey3}),a.jsx(le,{dataKey:k=>k.timeLabel.label,type:"category",axisLine:{stroke:f.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:k=>J("0,0.[00]a",k,p)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:_?{stroke:f.colors.background,strokeWidth:($-60)/W.operating_expenses,fill:f.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t]})})})},nr=x.div`
|
|
199
199
|
display: flex;
|
|
200
|
-
`,
|
|
200
|
+
`,sr=x.div`
|
|
201
201
|
display: flex;
|
|
202
202
|
flex-direction: column;
|
|
203
|
-
`,
|
|
203
|
+
`,cr=x.div`
|
|
204
204
|
display: flex;
|
|
205
205
|
background-color: ${e=>e.theme.colors.black};
|
|
206
206
|
opacity: 0.85;
|
|
@@ -263,7 +263,7 @@ import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as A
|
|
|
263
263
|
`,Be=x(F)`
|
|
264
264
|
display: flex;
|
|
265
265
|
flex-direction: column;
|
|
266
|
-
`,Oe=x(F)``,mr=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l={...n,amount:Math.floor((n.amount-o.amount)*100/100)},i=o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:l,percent:i,forecastPercent:r.record[t].percentValue}},fr=({active:e,payload:r,mode:t})=>{const n=[];let o={amount:0,currencyCode:""},l={amount:0,currencyCode:""};const i=b("gross_margin","actual");return r?.forEach(h=>{const
|
|
266
|
+
`,Oe=x(F)``,mr=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l={...n,amount:Math.floor((n.amount-o.amount)*100/100)},i=o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:l,percent:i,forecastPercent:r.record[t].percentValue}},fr=({active:e,payload:r,mode:t})=>{const n=[];let o={amount:0,currencyCode:""},l={amount:0,currencyCode:""};const i=b("gross_margin","actual");return r?.forEach(h=>{const c=h.name;if(e===!0){const s=h.payload,f=h.color,p=c!=null&&s.record[c]!=null?s.record[c].amount:void 0;let d;if(c.includes("forecast")!==!0)switch(t==="forecast_mode"&&(d=s.record[c]!=null?mr(c,s):void 0),c){case i:p!=null&&(o.currencyCode===""?o={...p}:o.amount=o.amount+p.amount),d!=null&&(l.currencyCode===""?l={...d.value}:l.amount=l.amount+d.value.amount),n.push({barName:D.getLocalizedStrings().chartCard.revenue[N(c)],actual:p,forecast:d,percent:s.record[c]!=null?s.record[c].percentValue??0:0,color:f});break;default:n.push({barName:D.getLocalizedStrings().chartCard.revenue[N(c)],actual:p,color:f,forecast:d});break}}}),n},ze=e=>e.map((r,t)=>a.jsxs(Me,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(gr,{children:[a.jsx(Ke,{color:r.color}),`${r.barName}:`]}),a.jsxs(pr,{children:[a.jsx(Se,{children:`${T(r.actual)}`}),r.percent!=null?a.jsx(Se,{children:V("0,0.0%",r.percent)}):null]})]},r.barName+t)),Pe=e=>e.map((r,t)=>a.jsxs(Me,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(hr,{children:[a.jsx(Ke,{color:r.color}),`${r.barName}:`]}),a.jsx(U,{children:a.jsxs(Be,{children:[r.actual!=null?`${T(r.actual)}`:"-",a.jsx(Oe,{children:r.percent!=null?V("0,0.0%",r.percent):null})]})}),a.jsx(U,{children:a.jsxs(Be,{children:[r.forecast!=null?`${T(r.forecast.value)}`:"-",a.jsx(Oe,{children:r.forecast!=null&&r.forecast.forecastPercent!=null?V("0,0.0%",r.forecast.forecastPercent):null})]})}),r.forecast!=null?a.jsx(U,{isChange:!0,children:`${T(r.forecast.change)}`}):a.jsx(U,{children:"-"}),r.forecast!=null?a.jsx(U,{isChange:!0,children:V("0,0.0%",r.forecast.percent)}):a.jsx(U,{children:"-"})]},r.barName+t)),xr=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},br=({barLabelsWithValues:e})=>a.jsxs(sr,{children:[a.jsxs(cr,{children:[a.jsx(ir,{}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(he,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",xr(e)]}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(ur,{children:[Pe(e.slice(0,e.length-1)),e.length?a.jsx(Ge,{}):null,Pe(e.slice(-1))]})]}),yr=({barLabelsWithValues:e})=>a.jsx(nr,{children:a.jsxs(dr,{children:[ze(e.slice(0,e.length-1)),e.length?a.jsx(Ge,{}):null,ze(e.slice(-1))]})}),Cr=e=>{const r=fr({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(br,{barLabelsWithValues:r}):a.jsx(yr,{barLabelsWithValues:r})})},jr=ee.memo(Cr),Re=(e,r,t,n,o,l)=>{let i=[],h=[],c=[];n!=null&&n.balances.length>0&&(i=K("income","actual",n)),o!=null&&o.balances.length>0&&(h=K("cogs","actual",o)),l!=null&&l.balances.length>0&&(c=oe("gross_margin","actual",l));const s=b("income","actual"),f=b("cogs","actual"),p=b("gross_margin","actual"),d=i.length>0?s:h.length>0?f:p,y={};return y[s]=i,y[f]=h,y[p]=c,t==="forecast_mode"&&Object.assign(y,vr(n,o,l)),d!=null?Z(e,r,d,y):void 0},vr=(e,r,t)=>{let n=[],o=[],l=[];e!=null&&e.balances.length>0&&(n=K("income","forecast",e)),r!=null&&r.balances.length>0&&(o=K("cogs","forecast",r)),t!=null&&t.balances.length>0&&(l=oe("gross_margin","forecast",t));const i=b("income","forecast"),h=b("cogs","forecast"),c=b("gross_margin","forecast"),s={};return s[i]=n,s[h]=o,s[c]=l,s},kr=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual")],$r=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual"),b("income","forecast"),b("cogs","forecast"),b("gross_margin","forecast")],wr=x.div`
|
|
267
267
|
width: ${e=>e.width}px;
|
|
268
268
|
height: ${e=>e.height}px;
|
|
269
269
|
|
|
@@ -277,4 +277,4 @@ import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as A
|
|
|
277
277
|
margin-left: ${e=>X.legendLabelMarginLeft.valuePx(e.windowSize)};
|
|
278
278
|
margin-right: ${e=>X.legendLabelMarginRight.valuePx(e.windowSize)};
|
|
279
279
|
color: ${e=>e.theme.colors.primary};
|
|
280
|
-
`;function Er({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:
|
|
280
|
+
`;function Er({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:c}){const s=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[s.colors.graphColor26,s.colors.graphColor17,s.colors.graphColor12],d=[s.colors.graphColor28,s.colors.graphColor17,s.colors.graphColor10,s.colors.graphColor28Dark,s.colors.graphColor17Dark,s.colors.graphColor10Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?$r:kr,w=(u,j=s.colors.graphColor28)=>u<y.length?y[u]:j,C=e.reportId==="revenue"?Re(e.firstMonthOfFY,_,h,e.sections?.income,e.sections?.cogs,e.calculatedSections?.grossMargin):Re(e.firstMonthOfFY,_,h,e.sections.income,e.sections.cogs,e.calculatedSections.grossMargin),L=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:4,stroke:B,strokeWidth:2,fill:z})},$=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:5,stroke:z,strokeWidth:2,fill:B})},k=(u,j)=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:a.jsx(L,{}),activeDot:a.jsx($,{}),dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount},stroke:w(j),strokeDasharray:"3 3",strokeWidth:1.5},u),v=(u,j,S)=>a.jsx(ce,{name:u,animationDuration:S?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:B=>{const z=B.record;return(z[u]!=null&&z[u].amount!=null?z[u].amount:void 0)?.amount??0},fill:w(j)},u),O=()=>{const u=[];return _.forEach((j,S)=>{const B=i===!0&&!f.current;j.endsWith("_forecast")?u.push(k(j,S)):u.push(v(j,S,B))}),u};return C==null?null:a.jsx(Lr,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:O(),customToolTipContent:({active:u,payload:j})=>a.jsx(jr,{active:u,payload:j,mode:h}),width:n,height:o,onCOABalancesRangeChanged:c,highlightedRange:t,isDetailPage:i===!0})}const Lr=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!c||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:y[j].startDate,endDate:y[j].endDate}};s?.(y[v],r,S)},L=c?(l-60)/W.revenue*(W.revenue-e.recordByTimeseries.length):20;return a.jsx(wr,{width:l,height:i,windowSize:f,children:a.jsx(Q,{children:({height:$,width:k})=>a.jsxs(fe,{data:e.recordByTimeseries,barCategoryGap:c?void 0:"12%",maxBarSize:c?I[10]:22,barGap:c?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,d)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeWidth:(k-60)/W.revenue,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,c?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},iconSize:I[3],formatter:v=>a.jsx(_r,{windowSize:f,children:v.endsWith("_forecast")===!0?D.getLocalizedStrings().chartCard.revenue[v]:D.getLocalizedStrings().chartCard.revenue[N(v)]})}):null]})})})};export{Tr as G,Nr as H,Wr as P,Ir as X,Er as Y};
|