@zeniai/web-cockpit-ui 1.15.64-qa → 1.15.65-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-BShpKoIj-DBPKn0sX.js +21 -0
- package/dist/assets/{AIPerformancePage-Da3gFo8A-CSXeuStb.js → AIPerformancePage-CFErwUsE-BYOi4eif.js} +22 -22
- package/dist/assets/AccountInfoPage-B8upbXj9-DVCxjo1L.js +18 -0
- package/dist/assets/{AccountInfoPageContent-DqErO8FH-mViOCowa.js → AccountInfoPageContent-CKpeDot5-C4xEct6y.js} +23 -23
- package/dist/assets/{AccountLockedInfoModal-BJjCuLHa-lkS-zBaJ.js → AccountLockedInfoModal-c30P9O_3-BXRFFhii.js} +9 -9
- package/dist/assets/{AccountReconDetailsDrawerPage-CVjH1p0d-khdb66DL.js → AccountReconDetailsDrawerPage-CO9BYPWm-Det_iJaE.js} +51 -51
- package/dist/assets/AccountRow-BrW_eEjE-HoBl8v8H.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-D7xvgmOH-n7Og3oU6.js → AccountsPromoCardStack-De2yNNuZ-C74RtM0g.js} +22 -22
- package/dist/assets/AddAddressForCardDrawer-riOPLnxb-hTaoKUhW.js +6 -0
- package/dist/assets/{AddToWalletPage-zJy9QCjx-C2VBVH37.js → AddToWalletPage-CsOmzC7v-XA_Ukf0G.js} +23 -23
- package/dist/assets/{AgingReportsPage-wAvQb1d8-BVhKyC9n.js → AgingReportsPage-D9I9afnB-j70-fH52.js} +8 -8
- package/dist/assets/{AllUserItems-DEv_CXOA-Cnm0jwbR.js → AllUserItems-Dq7NcP-o-bQnq3Yy5.js} +7 -7
- package/dist/assets/ApAgingDetailPage-Z5JgfH-e-DlNnTpGB.js +46 -0
- package/dist/assets/AppBasePage-B5sDynhi-B6PJcirc.js +71 -0
- package/dist/assets/AppDrawerContent-D9Q8ir0T-BlV3y7qg.js +92 -0
- package/dist/assets/ApprovalRulesSettingsPage-DVGvJsQG-g3c3aBsx.js +47 -0
- package/dist/assets/{ArAgingChart-m-Xp3HAW-BFbIzkgu.js → ArAgingChart-Tcu0Lja_-DlvMwgJ3.js} +5 -5
- package/dist/assets/ArAgingDetailPage-B5vqkc3v-xHE7Qc0m.js +46 -0
- package/dist/assets/{AttachmentView-DB_V1qT1-DuTWI9WZ.js → AttachmentView-CiYfninr-BohG7XjP.js} +7 -7
- package/dist/assets/BalancesInsightWithToolTip-tiQUQUbX-C692_oh-.js +38 -0
- package/dist/assets/{BankAccountSection-BabhrBM7-Hm-Yu2sT.js → BankAccountSection-EZtscP2z-aKL8vcpJ.js} +7 -7
- package/dist/assets/{BankAccountWarningSection-yT2UAd12-X-VL5grc.js → BankAccountWarningSection-DCfyIUlu-DyMLU3Tg.js} +7 -7
- package/dist/assets/{BankConnectionsSettingsPage-CbxXykMM-BVq9Jf6S.js → BankConnectionsSettingsPage-CQWy9jvt-B-n6frCU.js} +32 -32
- package/dist/assets/BillDetailPage-pt1k5AQf-BM9-GtkV.js +266 -0
- package/dist/assets/{BillPayApprovalRuleDetailPage-COyDRpaF-IRQNMkGr.js → BillPayApprovalRuleDetailPage-Drh7Bhi8-CDpJ0g2R.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-9pxkgFAT-BBE0uhiX.js → BillPayApprovalRulesPage-Cmyo59xB-pg1tP0xq.js} +15 -15
- package/dist/assets/BillPayPromoPage-Dgpz2TLG-BFCcBeGF.js +84 -0
- package/dist/assets/{BillPaySetUpPage-Cs5rkWBu-B8WDufb0.js → BillPaySetUpPage-B6Pd_eBf-BC27u6lI.js} +4 -4
- package/dist/assets/{BillingSettingsPage-CQ117tT9-BAwGu5cG.js → BillingSettingsPage-CYsvBrFV-BWO0QWBs.js} +7 -7
- package/dist/assets/{BillsBulkReviewDrawerPage-DRkGQQAe-RZgdY8zQ.js → BillsBulkReviewDrawerPage-DNnAmqWz-BQr-aBSF.js} +1 -1
- package/dist/assets/{BoxItem-DRwx0M5a-5_z4KYJ3.js → BoxItem-B06DK4G--CNFqY3pV.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-1h0z3N9u-Bd2Dv1xV.js → BusinessVerificationPage-Dgk5gyMv-BdAKTgt0.js} +11 -11
- package/dist/assets/CardNumberSubText-CcH9jUoZ-BGeGZCAA.js +21 -0
- package/dist/assets/{CashbackDetailPage-ChdQcvkC-BQq0-Z8K.js → CashbackDetailPage-5eysaHGf-qWx0m6gR.js} +30 -30
- package/dist/assets/{ChargeCardDetailPage-DFOKlPNG-DdvX9ays.js → ChargeCardDetailPage-Diwf-gwZ-DmopcUlO.js} +1 -1
- package/dist/assets/{ChargeCardListPage-DhLUsUhd-CPt3fT_S.js → ChargeCardListPage-C-RTGkKK-Bb-QwUsn.js} +23 -23
- package/dist/assets/{ChargeCardListTable-DE72YU_i-UK8ppaLR.js → ChargeCardListTable-B-bNbtZQ-Bfw8s7pe.js} +60 -60
- package/dist/assets/{ChargeCardPaymentHistoryPage-CbGR18s--CGJF0r4n.js → ChargeCardPaymentHistoryPage-Cu-zT5tO-C6SEcidH.js} +36 -36
- package/dist/assets/{ChargeCardPromoPage-CPpNh89o-ur53P9tl.js → ChargeCardPromoPage-Cz3rNFwM-N71PCrPp.js} +38 -38
- package/dist/assets/{ChargeCardSetupPage-ITi25kUD-D46LZ2gE.js → ChargeCardSetupPage-BcTB9Yy5-DkE42DK5.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-CTJc1BCc-C1ya3GFy.js → ChargeCardStatementsPage-B_ERvgmB-DFHNpOVz.js} +5 -5
- package/dist/assets/{CheckDepositDrawerPage-BrzeSj-3-dYFak2DM.js → CheckDepositDrawerPage-D7_usOVn-C_GuSSOC.js} +17 -17
- package/dist/assets/CollapsableReportTable-h0vIfI8o-Bg2RfRDJ.js +2982 -0
- package/dist/assets/{CompanyOfficerDetailsSection-BaPhFsLx-CpwNpffC.js → CompanyOfficerDetailsSection-CWADX4kZ-IHJvDX6-.js} +30 -30
- package/dist/assets/{CompanyPassportCard-B9ymV6Az-DhiSwK7x.js → CompanyPassportCard-DF9LFrFD-DjueOJ3s.js} +9 -9
- package/dist/assets/{CompanyPassportPage-BQ68t7oK-25GyAr8e.js → CompanyPassportPage-BtAopyLq-DbU6xdRd.js} +30 -30
- package/dist/assets/{CompleteProfile-C5n9b8gQ-D0ag80PT.js → CompleteProfile-CsbsHQ0p-BLF2mnNn.js} +4 -4
- package/dist/assets/ConfettiBurst-duD341Gp-Bb3-s_zN.js +1 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-Cd8lINA1.js → ConstrainedInnerElement-hv51KpGg-DTOZooRA.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BIfOA5Nr-C8DeTqzS.js → CreateOrEditVendorPage-C2xU6c51-DT9rwnbq.js} +14 -14
- package/dist/assets/{CreditCardPaymentDrawerPage-CCpS-31h-BiN9aJFe.js → CreditCardPaymentDrawerPage-CeagMaCu-D6hhhd3N.js} +22 -22
- package/dist/assets/CurrencySelectField-B8EoF2aF-uavVFTum.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-6VlMI4oY-BsSHWzKa.js → CustomerOnboardingActivationPage-CIeR2XvU-B59q7JSL.js} +29 -29
- package/dist/assets/CustomerOnboardingContainerPage-DVL4s-eV-Betf7XiO.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BzbZb27J-C2NLa27a.js → CustomerOnboardingDetailPageSkeleton-kUbwh2r2-zrrFUTGk.js} +14 -14
- package/dist/assets/CustomerOnboardingNoStepsPage-Br0jy7Pu-C04-tCb6.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-DkW66A-p-q-1ALWKT.js → CustomerOnboardingPage-Dm2Si769-DsN6K-ie.js} +16 -16
- package/dist/assets/{CustomerOnboardingProductSuitePage-Ba0yotpP-IunY7NMf.js → CustomerOnboardingProductSuitePage-Cz81Q5jC-eSuGAIqK.js} +8 -8
- package/dist/assets/{Dashboard-bX3cWkmP-gpZTlRVX.js → Dashboard-DReG_aaf-C4aSoq3o.js} +33 -33
- package/dist/assets/{DashboardReportPage-DuZ4d4CE-BtgBO5CE.js → DashboardReportPage-BXSlwsR7-4jSB_qXZ.js} +38 -38
- package/dist/assets/DashboardSidebarBackgroundAnimation-B3dtVAe2-BBvO3tiT.js +12 -0
- package/dist/assets/DepositAccTransactionItem-YuSXjbLh-dhpmj79R.js +76 -0
- package/dist/assets/DepositAccTransactionListPage-C-FAvZwD-5kKsnSxM.js +66 -0
- package/dist/assets/DomesticWireDetailsPage-BaiSpc0N-BaNvy8Dj.js +21 -0
- package/dist/assets/DownloadOverlay-BpRKCn-0-GQtzMlpD.js +439 -0
- package/dist/assets/{DrawerPage-CaG-xx5d-Ch3FAk_-.js → DrawerPage-DQ3Xuekx-71bFG_xW.js} +12 -12
- package/dist/assets/EditPeoplePage-8DalSMWH-BO--FbCf.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-CC2BjMkR-BrDBl4Nx.js +865 -0
- package/dist/assets/EntityDetailPage-fmWuxHTZ-BEOMoyTE.js +18 -0
- package/dist/assets/{EntitySummarySection-LEA5m6mN-Bkfqomfq.js → EntitySummarySection-vsEMiXYh-UA5Y35sl.js} +17 -17
- package/dist/assets/{ExpenseAutomationOverviewPage-Dmhn7gfp-KHS19Js4.js → ExpenseAutomationOverviewPage-B3HPfIsK-4ZtjmO8G.js} +50 -50
- package/dist/assets/ExpenseAutomationPage-4LJefgNh-YH8canW3.js +3015 -0
- package/dist/assets/{ExpressPayPage-C-nqret2-CHVy3vEu.js → ExpressPayPage-BH7oCW_F-HW0llOdu.js} +17 -17
- package/dist/assets/{FeaturePreviewPage-BHjUZ7s6-CoLeq4Tz.js → FeaturePreviewPage-DSv61BhF-rk5VNvfQ.js} +2 -2
- package/dist/assets/{FollowStepsSection-0eFMS0c5-DAdCYPIL.js → FollowStepsSection-Bgy9MpO4-DCiZAX41.js} +7 -7
- package/dist/assets/GlobalReviewListPage-VRq_gimm-D4JxkgEf.js +291 -0
- package/dist/assets/{InformationCardStack-C7XJCUlh-BO56UWI6.js → InformationCardStack-rx0fypl3-C50dsns2.js} +4 -4
- package/dist/assets/{InsightsCardStack-fBAbQwhK-DuPgw9sX.js → InsightsCardStack-uJWMkIZL-k2gW7JtA.js} +9 -9
- package/dist/assets/InsightsSection-ByFf2oGn-BaSZhycl.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-BD5jqAv8--mAzs_NR.js → IntegrationsSettingsPage-Cj01Nub6-JLccDpyu.js} +6 -6
- package/dist/assets/{InternationalWireSwiftDetailsPage-BftrE612-De_WHxi6.js → InternationalWireSwiftDetailsPage-C2PM97sv-CXe5WYRW.js} +24 -24
- package/dist/assets/InternationalWireVerificationPage-Cr3sDrT--Bq6HNEU0.js +65 -0
- package/dist/assets/{InviteFormPage-E2igwKEh-BEncV13R.js → InviteFormPage-dsMpScvq-CF55W3d2.js} +18 -18
- package/dist/assets/{InvitePageListView-Cuq9dlgu-B0_SeEmy.js → InvitePageListView-e7vGSbFa-wcp0OLc4.js} +43 -43
- package/dist/assets/InvitePeoplePage-BT_YVCP4-yRtlk6wv.js +12 -0
- package/dist/assets/InvoiceUploadSection-Dg1-uunA-DejmnF3G.js +140 -0
- package/dist/assets/{IssueChargeCardPage-CK6fnO24-Db0v77bJ.js → IssueChargeCardPage-CyF9wrb0-DIt_LpMY.js} +31 -31
- package/dist/assets/{LabeledAddressValue-Ma1WURjK-DlrMcsdg.js → LabeledAddressValue-3l0Bv00--DmuSRVDq.js} +2 -2
- package/dist/assets/LabeledAddressValueField-F9kvUR_r-BCeaFKsb.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-BgC8y0D6-Cxk0wWCO.js +16 -0
- package/dist/assets/{LabeledCountryMultiSelectField-sj8p7Rne-BCnpPBJo.js → LabeledCountryMultiSelectField-3qI_4noU-BCLCbVPc.js} +5 -5
- package/dist/assets/{LabeledCreatableSingleSelectField-DUTQh416-DhVqlBC1.js → LabeledCreatableSingleSelectField-BV3h9bh7-BAj07yW-.js} +7 -7
- package/dist/assets/LabeledDocumentField-rriEcsdr-CkxtZhMI.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-DoVSg3nZ-Be0l5Q_z.js +59 -0
- package/dist/assets/{LabeledText-DvzVOku6-Dn53TfaN.js → LabeledText-DGZ7hxY4-IuE8fmYf.js} +6 -6
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-BqVEyHXC.js → LabeledUserSingleSelectWithSubtitlesField-DI07Eicg-DgE4V-VP.js} +18 -18
- package/dist/assets/{LabeledZeniRolesDropDownField-kWC0ShEy-CPUGdXpK.js → LabeledZeniRolesDropDownField-jIrTovp--Bw9Copum.js} +29 -29
- package/dist/assets/{LinkJETransactionPage-WufhDGDQ-azPG9MUe.js → LinkJETransactionPage-Bvbqpltz-Bc-21K8g.js} +18 -18
- package/dist/assets/{LockCardPage-BBIVLYVD-419LPSiD.js → LockCardPage-DyEQBJYx-BLiE9GBP.js} +64 -64
- package/dist/assets/{LowBalancePopup-ScEqPY9J-C060z0nB.js → LowBalancePopup-C2vHKMNF-PKO6ElPE.js} +6 -6
- package/dist/assets/MagicLinkACHDetailsPage-lAAwAtH7-SJ0jUK4M.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-cv823ASo-DimLQOFo.js +1 -0
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-fSY3JGpz-B9llfoRD.js → MagicLinkInternationalWireDetailsPage-C_SjsgC9-Bvgil6AB.js} +1 -1
- package/dist/assets/MagicLinkSuccessPage-B1LBYM2F-BYLLbXss.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-ZnbKPIvJ-BocBRFlv.js → MagicLinkTitleSection-ClAnBBt9-CxQuR-QP.js} +5 -5
- package/dist/assets/MailingDetailsSection-9_XLl4bT-BB3mmWQ9.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-aQDVaEG1-BGCx9EU3.js → MyBankConnectionsSettingsPage-CBNYcuP4-DwZ11Kbp.js} +16 -16
- package/dist/assets/MyPendingActivationChargeCardListPage-n71n40uQ-DzAksyAj.js +6 -0
- package/dist/assets/MyProfileSettingsPage-BUMIjZYc-CtFmjBIE.js +85 -0
- package/dist/assets/{NavBarWithPicker-zmvBmWS1-B7DVgWCo.js → NavBarWithPicker-CbjFNysh-BLH7wXCB.js} +5 -5
- package/dist/assets/{NavigationArrow-D26UG3p--B1OMUVaF.js → NavigationArrow-Dpc7u6y4-94AYlIy-.js} +7 -7
- package/dist/assets/{NavigationDots-Bv4tBDN3-BOJfNTon.js → NavigationDots-DCpslVnm-BIAw9fTc.js} +3 -3
- package/dist/assets/{NewGlobalMerchantPage-vOn2O6B9-BmAEPvzQ.js → NewGlobalMerchantPage-B10sY6Q_-Owh-T5As.js} +37 -37
- package/dist/assets/{NoDataChart-CgT19fV7-CW6QHLgR.js → NoDataChart-9-bhq204-jF2VPuzU.js} +2 -2
- package/dist/assets/{NoDataTable-CPjJmo4s-DSMgo6Qg.js → NoDataTable-C6Q2Anpz-DB9htpIj.js} +1 -1
- package/dist/assets/{NotFoundPage-CP2i3FTm-C5pv1EYn.js → NotFoundPage-4mPhXD5--Dq1iR5VQ.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-CT9Dnb03-BP21fQ3b.js → NotificationSettingsPage-BTxCoB_b-BHZscHCj.js} +28 -28
- package/dist/assets/NotificationsListConfig-CylnViXd-Dg2fm6St.js +1 -0
- package/dist/assets/NotificationsPage-D41h0mS6-Dzdq9z4a.js +685 -0
- package/dist/assets/OpExByVendorPage-BV_uJSCh-BHuftqJi.js +100 -0
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-DypUO3LF.js → OverlayContainerPage-CkUYOhlh-ChB_ia4V.js} +1 -1
- package/dist/assets/PandLWithForecastPage-Cj3UWjG4-Ufv6uGVt.js +123 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-JPO-rPAd-AJNZCxIB.js → PaymentAccountSetupBillingAddressSection-BWFl695q-DUUCCWV6.js} +15 -15
- package/dist/assets/PeoplePage-DcGqWtAP-CfVqJS-U.js +727 -0
- package/dist/assets/{Preview-MsotgVZx.js → Preview-DHku7oFH.js} +1 -1
- package/dist/assets/{ProductsCarousel-7R3cvGiS-B-idYuEE.js → ProductsCarousel-C9JoJQeH-7TCp-gr7.js} +8 -8
- package/dist/assets/{PromoBaseCards-DdCMZIc7-DYaNktKG.js → PromoBaseCards-mFk7SsOr-cB2eyHgD.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-Ca36jKz2-BROTAV6b.js → QBOConnectionDialog-CJsIrEZq-Djdbh1G7.js} +5 -5
- package/dist/assets/{QBOSetupSection-CzBfIVqR-CxeYM05R.js → QBOSetupSection-C_fqHza_-B8WpC_yY.js} +13 -13
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-DUVSGQJ6-C0TdrujH.js → ReimbursementApprovalRuleDetailPage-BMZnKpsk-CX5NlTL7.js} +2 -2
- package/dist/assets/{ReimbursementApprovalRulesPage-B48x1gPM-CTKI435W.js → ReimbursementApprovalRulesPage-C2zNa8dT-CGtrNpR7.js} +9 -9
- package/dist/assets/ReimbursementDetailPage-B1o8ea57-BrBovHlf.js +314 -0
- package/dist/assets/ReimbursementPromoPage-Df5QmXzC-CzrrekBH.js +84 -0
- package/dist/assets/{ReimbursementSetUpPage-B_c-ZgFT-IXOGqCsl.js → ReimbursementSetUpPage-D450RVsP-BNS45RtV.js} +10 -10
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DwgKrhlQ-BYy6jU6w.js +1 -0
- package/dist/assets/{ReloadCard-DKGn1uxF-BSvLgeuK.js → ReloadCard-D5cvzWxe-BSJWwb6T.js} +6 -6
- package/dist/assets/ReportTableViewSelector-Ig41fOPb-DyEm5Q02.js +151 -0
- package/dist/assets/ReportsPage-CRAVAUTO-D_QRWGM1.js +269 -0
- package/dist/assets/{RevenueChart-SvdhwBcE-DnuVU969.js → RevenueChart-DtQu0KAn-DJYGsojB.js} +13 -13
- package/dist/assets/{ReviewDetailsPage-tT1l4R2r-J1IzgUZg.js → ReviewDetailsPage-vui4TqeA-gjxKkEYH.js} +24 -24
- package/dist/assets/{ReviewOverlay-BoM41t8W-DMbdGoKm.js → ReviewOverlay-CUnL7H-a-BjFaE0id.js} +25 -25
- package/dist/assets/RoleWithToolTip-x2rnvWn9-BzchKu5T.js +22 -0
- package/dist/assets/ScheduleDetailsFixedAssetsPage-D_Cls2jC-CNWyfY4t.js +37 -0
- package/dist/assets/ScheduleDetailsPage-DmSLuM8g-5vyMikmE.js +37 -0
- package/dist/assets/ScheduleSequenceTable-js9_P_Lo-CeLb4ONW.js +326 -0
- package/dist/assets/{ScreenRoutes-zIYoYF9j.js → ScreenRoutes-ziq-yiHW.js} +29 -51
- package/dist/assets/{SetUpAccountSection-sfIB1h4i-Bxp4_1Ay.js → SetUpAccountSection-DYRWWXcL-D3Lz2J4N.js} +13 -13
- package/dist/assets/SignIn-CUJkZb3S-DEoVYbuM.js +491 -0
- package/dist/assets/SignInScreen-CMKiwyNN.js +1 -0
- package/dist/assets/SpendManagementListViewPage-BieufnDb-DWfo1rZv.js +134 -0
- package/dist/assets/SpendManagementPerTabPage-BmUp80QX-D3VMwaS-.js +754 -0
- package/dist/assets/{SpendManagementSection-dT-N4bSQ-C-KttH_X.js → SpendManagementSection-DKZNTYXT-mbKmW3pW.js} +25 -25
- package/dist/assets/{StatementItem-g5tfNBjV-Bi-hDsRm.js → StatementItem-Dyt5Q0eR-DHmcaJ-e.js} +4 -4
- package/dist/assets/StatementsPage-CbtnJM5y-COycJvfL.js +58 -0
- package/dist/assets/{StatusSwitcher-CaoFw0cf-GiyQU_ap.js → StatusSwitcher-BfQ9VbBH-DC0t3Flj.js} +5 -5
- package/dist/assets/SubTabSwitcher-CzGiuhk3-DLbV8WBg.js +58 -0
- package/dist/assets/{SummaryCard-B9wqNSwM-11v6O9yh.js → SummaryCard-D61xzK3a-DMSW9KNv.js} +1 -1
- package/dist/assets/TaskManagementPage-ucVAdv7x-AkXJlFwQ.js +508 -0
- package/dist/assets/TimeRangeSwitcher-C3jXm39I-tjiVSjZN.js +64 -0
- package/dist/assets/TimeframeSwitcher-CcYg-YQJ-C2j1iPoK.js +31 -0
- package/dist/assets/TimeframeSwitcherWithToggle-w4YJno-p-Bi4h2wB2.js +53 -0
- package/dist/assets/{TopExCard-BUjnGDUB-BeOEz96L.js → TopExCard-D2PRxvFc-DTkmCs_e.js} +6 -6
- package/dist/assets/{TopExDetailPage-CNDkfc3u-VyEyAB3F.js → TopExDetailPage-C0uHdU7N-CkEVyz2B.js} +16 -16
- package/dist/assets/{TransactionActivityLogPage-kSQqJVpX-D8owbjDl.js → TransactionActivityLogPage-CqYb19tY-v__opMvt.js} +17 -17
- package/dist/assets/TransactionDetailPage-D-NR_yZG-DdONq5Tf.js +921 -0
- package/dist/assets/TransactionList-f6yB-byH-Oxgdaak4.js +157 -0
- package/dist/assets/{TransactionListBig-Bx_Rm9ho-BGW14qc7.js → TransactionListBig-BrDWayQS-C0zQ3f5X.js} +18 -18
- package/dist/assets/TransactionListPage-C-Z62y2d-DnIWNXku.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-MjSH5hfq-DTvgMHfi.js → TransactionVendorDetailPage-CQQuAR6V-Dt6j0ppt.js} +6 -6
- package/dist/assets/{TransferDrawerPage-BayVa6po-BJ6bZeVh.js → TransferDrawerPage-DfFm-1-3-Dp1b_ezH.js} +36 -36
- package/dist/assets/TreasuryOverviewPage-CKSanlUG-BJ3RsJkb.js +725 -0
- package/dist/assets/{TreasuryPromoPage-BCjz1EKX-BpLLMqaI.js → TreasuryPromoPage-Dyip3H10-ClQVvPZy.js} +131 -131
- package/dist/assets/TreasuryStatementsPage-mljf2Van-DInZXjo_.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-D3cV3a-8-CcMHT6vj.js +58 -0
- package/dist/assets/{TrendChart-JTOG0a7B-BX9AXLFe.js → TrendChart-fFlHCvNx-DADa9lxz.js} +5 -5
- package/dist/assets/TrendWithTransactions-It4KDov3-BNez-K-6.js +116 -0
- package/dist/assets/{UncategorizedAccountsMappingPage-TGKYpC5A-BKFDwlEW.js → UncategorizedAccountsMappingPage-BxBz2Ce0-BSZYER7A.js} +15 -15
- package/dist/assets/{UnitIntegrationPage-mt2IjA5X-B32skQ8E.js → UnitIntegrationPage-gVgsk2ji-Dz79ORBq.js} +7 -7
- package/dist/assets/UploadAdditionalDocumentOverlay-C5m8jqup-5PpZVQjf.js +38 -0
- package/dist/assets/{Vendor2FAPopup-DAOf5cJD-DwjPPjyx.js → Vendor2FAPopup-DRwBzOwn-C-SwMKWw.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-By2Ya2bv-CjVBmCig.js +1 -0
- package/dist/assets/VendorDetailPage-jci1LqX3-QbESQx0s.js +257 -0
- package/dist/assets/VendorDomesticWireDetailsPage-uIDE-n5v-CEtT0uGT.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-CRnO7Ubw-pmmo56yS.js → VendorFiling1099EditablePage-8pYT3u-X-D-wgniGH.js} +14 -14
- package/dist/assets/VendorFirstReviewPage-CafakxA1-CDJXyRr2.js +730 -0
- package/dist/assets/{VendorInternationalWireDetailsPage-HUtNyn9Z-DG0LXpvu.js → VendorInternationalWireDetailsPage-DJeI-ZFW-DlATitk5.js} +20 -20
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-Co-5nTam-Dq9Sjb3M.js +1 -0
- package/dist/assets/{VendorsAccountsSection-D6Qa1zf9-DAvIVphi.js → VendorsAccountsSection-YX2g8ETe-D60z7JWq.js} +2 -2
- package/dist/assets/{VerifyDevice-B6B_nk3v-KukwEAKH.js → VerifyDevice-DeHW4GAi-COYWduJ8.js} +9 -9
- package/dist/assets/{VideoPlayer-BRAgZThr-DwdwG0wP.js → VideoPlayer-DxIfGrPu-_quRL0IB.js} +2 -2
- package/dist/assets/{VideoPopup-C_SkBI9U-CKyfSxdc.js → VideoPopup-CUP7ctgS-CvuTwYjE.js} +3 -3
- package/dist/assets/{WarningsDrawerPage-B3gB3wW7-U-65Uxte.js → WarningsDrawerPage--s6b380L-kLxITMYx.js} +10 -10
- package/dist/assets/ZeniAccountDetailPage-7NdkdSg3-DUqxr3Vg.js +300 -0
- package/dist/assets/ZeniAccountListViewPage-B-cs_xnc-yymuGC8c.js +443 -0
- package/dist/assets/ZeniAccountNavBarPieces-CjRip0v9-CWaUJ8t5.js +33 -0
- package/dist/assets/{ZeniAccountPromoPage-BgYCHYLO-7ZsLis8J.js → ZeniAccountPromoPage-BikXtkeH-CZNOzkma.js} +23 -23
- package/dist/assets/ZeniAccountSetupPage-BRBsijVt-4J2hs6F_.js +36 -0
- package/dist/assets/{ZeniCopyright-BlLvlGZV-De808LkJ.js → ZeniCopyright-DDGvdmLF-BbItEQ1K.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BNYgPwHs-D5MCod30.js → ZeniTransferAmountSlider-Cdg0TlHk-C5Juk6O6.js} +4 -4
- package/dist/assets/{add-to-wallet-DgdBD8_G-9o7lYnfw.js → add-to-wallet-DgdBD8_G-BPAwAHT2.js} +1 -1
- package/dist/assets/{analytics-DmFOON3n.js → analytics-B3XlZNQ8.js} +1 -1
- package/dist/assets/{analyticsHelper-DVXRlTVd.js → analyticsHelper-Bnej6boJ.js} +1 -1
- package/dist/assets/{analyticsHelper-CYr5V2MV-Bn9Jn6Ph.js → analyticsHelper-D9xdJK4b-C8beHKtm.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-DnOaYGVH.js → arrow-south-east-round-PEovUgvH-DYcTfV8-.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-iayeyD23.js → auto-transfer-rule-mbafm5D3-C0L9GopF.js} +1 -1
- package/dist/assets/chartTypes-Dq3hUz_T-D0weDXco.js +1 -0
- package/dist/assets/commonDimensions-CGHIQ2To-BXIDDuOd.js +1 -0
- package/dist/assets/{commonTypes-DsWS6Ccc-CTYDMfWt.js → commonTypes-BAJPaPYg-BqOkop1Y.js} +1 -1
- package/dist/assets/{constants-Dzfmb5Ph.js → constants-BcG8RJNm.js} +1 -1
- package/dist/assets/{core-0bnVVABN.js → core-DTlL91ob.js} +3 -53
- package/dist/assets/{dash.all.min-DHsg-lqM.js → dash.all.min-wCYxg1-F.js} +1 -1
- package/dist/assets/downloadPdf-BI2Y41h2-DmQ3wa5x.js +1 -0
- package/dist/assets/{empty-CBAa3J1a.js → empty-9h6tGMxX.js} +1 -1
- package/dist/assets/{empty-D_bRDFaE.js → empty-DTLC6acq.js} +1 -1
- package/dist/assets/epic-CSBGbcOS.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-DQBnQfK-.js → gift-box-Cmt9OgIZ-CvfvQG3y.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-DeDC5YLL.js → graphic-no-data-l-DU4J8fDt-ChqWps-8.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CmCQCnC3.js → graphic-no-data-net-burn-l-CzmycA0m-1sZH3huZ.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-DpmiuH3j.js → handshake-BPg58FML-C8qC_oIS.js} +1 -1
- package/dist/assets/{helper-BMiMbXMj-BAbwbOYZ.js → helper-z5-P4a-y-DCqj7mqg.js} +5 -5
- package/dist/assets/{index-CHSGbJVi.js → index-BRlvHWYX.js} +1 -1
- package/dist/assets/{index-iH933ICY.js → index-BTxAEBwp.js} +2 -8
- package/dist/assets/{index-CDxchNCh.js → index-CTllXPEB.js} +1 -1
- package/dist/assets/{index-mb2rrTlK.js → index-CXoFWELS.js} +1 -1
- package/dist/assets/{index-BOf3FulF.js → index-DA1Z8sqg.js} +1 -1
- package/dist/assets/{index-BN9gOVoX.js → index-DivE10Xm.js} +1 -1
- package/dist/assets/{index-B6YQjyMc.js → index-nssLOVFu.js} +5040 -5105
- package/dist/assets/{lexical-aEmQVmum.js → lexical-CoKvBbaA.js} +1 -1
- package/dist/assets/liveblocks-offUbtxr.js +54 -0
- package/dist/assets/lottie-Cqel28AC.js +2 -0
- package/dist/assets/mapLoadingInProgressToTreeNode-DrC2Zs2y-BuaBdgp1.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BkPRWtaj-sINzyEMC.js → mapSectionWithAcOnlyToTreeNode-dsBogxKz-D78gQ4Dn.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-DMDEaLzQ-ibbyX8vz.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-CW_wzI5T-he6bfb8d.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DvfKBCs5-GyIWCN5D.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-LpLxG78D.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-DlA9TyjC.js} +1 -1
- package/dist/assets/{mui-BMACe6Rq.js → mui-BVCBQYdL.js} +1 -9
- package/dist/assets/{page-detail-CWX5S47F-BHiPg_uV.js → page-detail-CWX5S47F-D1vlmLcE.js} +1 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-CSqoRxwG.js +3 -0
- package/dist/assets/{radio-default-CiSgisfh-DS1u1o7i.js → radio-default-CiSgisfh-BGMZB5pj.js} +1 -1
- package/dist/assets/{react-Bq4TJ-7l.js → react-BEal1Iuh.js} +2 -12
- package/dist/assets/{react-BM9QcOkQ.js → react-BXvNRT2q.js} +2 -12
- package/dist/assets/{react-CVtyWQMs.js → react-CLksnFSH.js} +2 -12
- package/dist/assets/{react-CtbvVn8_.js → react-CSBaF2r0.js} +2 -12
- package/dist/assets/{react-TZk5oBcm.js → react-C_JPVQ2C.js} +2 -12
- package/dist/assets/{react-DPF6cpPb.js → react-DRddHEvz.js} +2 -12
- package/dist/assets/react-QuNdLWH0.js +19 -0
- package/dist/assets/{react-gzX4tXLY.js → react-jkd7J1Kg.js} +3 -13
- package/dist/assets/{recharts-BogDwoBa.js → recharts-DAsNs3BU.js} +36 -44
- package/dist/assets/{sentry-PE_t7E3E.js → sentry-Fca4mdIl.js} +2 -17
- package/dist/assets/{shield-DOlUxcFf-DZBeAJz1.js → shield-DOlUxcFf-CRgtaaqW.js} +1 -1
- package/dist/assets/toCOABalancesWithID-P7keEtAg-DZcYuHA-.js +1 -0
- package/dist/assets/toChartData-BUf5HHim-DGDFToOH.js +1 -0
- package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-BVwF7gzx.js +1 -0
- package/dist/assets/{uploadAttachment-BlLqRIXe-BKyY67pY.js → uploadAttachment-DJA30WSD-CHN4VO1K.js} +32 -32
- package/dist/assets/uploadReceipts-CqDftTRt-Bj47leio.js +1 -0
- package/dist/assets/{url-DVzciwrr.js → url-DdD720VJ.js} +1 -1
- package/dist/assets/{url-syTA0K_c.js → url-DkjikAwv.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-BtTqIKk8.js → useLongPress-GCK2COYQ-DXicXlES.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-sua1EB0C.js → usp-line-BBd1wKwW-BQlBhf7H.js} +1 -1
- package/dist/assets/{utils-hiWEDg_f.js → utils-Cgs4R-d4.js} +4 -38
- package/dist/assets/zeni-epic-state-BZv12Eez.js +14 -0
- package/dist/index.html +1 -1
- package/package.json +6 -6
- package/dist/assets/ACHDetailsPage-fOu5grd7-Bx2C4blB.js +0 -21
- package/dist/assets/AccountInfoPage-o7hTXtgZ-B74V9GXq.js +0 -18
- package/dist/assets/AccountRow-CpftykFx-1CclEkfP.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-vecchYEf-DPMrCTyq.js +0 -6
- package/dist/assets/ApAgingDetailPage-BOV1WFVF-_lX-suFq.js +0 -46
- package/dist/assets/AppBasePage-DMlomvFS-BTCiknIH.js +0 -71
- package/dist/assets/AppDrawerContent-Dc2sHnR3-D8okbvYL.js +0 -92
- package/dist/assets/ApprovalRulesSettingsPage-BnbPSy4U-DSt1190C.js +0 -47
- package/dist/assets/ArAgingDetailPage-b_NpDpWj-DH_prAGq.js +0 -46
- package/dist/assets/BillDetailPage-7TMkWo3V-S7BIfZxn.js +0 -266
- package/dist/assets/BillPayPromoPage-AGffhbY3-BjWg1E0M.js +0 -84
- package/dist/assets/CardNumberSubText-DqtLT1w5-B46iNAOk.js +0 -21
- package/dist/assets/CollapsableReportTable-CDEe9s_E-D9cKaH7m.js +0 -2844
- package/dist/assets/ConfettiBurst-BizTW0hz-vSY8T_bA.js +0 -1
- package/dist/assets/CurrencySelectField-KvKyemY6-CJmA3Wvi.js +0 -139
- package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-DO7DyeYZ.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-CWF_00EM-CXYa-GDt.js +0 -66
- package/dist/assets/DashboardSidebarBackgroundAnimation-UV2CZToG-B6y2S4Cq.js +0 -12
- package/dist/assets/DepositAccTransactionItem-BY_OvuKg-dj2FrVtH.js +0 -76
- package/dist/assets/DepositAccTransactionListPage-a__bpCOB-BluH7tQU.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-BumMT4QM-CJrvKjn9.js +0 -21
- package/dist/assets/DownloadOverlay-DqiL3-FB-B8nIxgA_.js +0 -439
- package/dist/assets/EditPeoplePage-BcsdEp_d-DZzsTLqP.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-DNUmwdsH-B4a1wTnV.js +0 -865
- package/dist/assets/EntityDetailPage-DtX5TjBc-Cz9GurHm.js +0 -18
- package/dist/assets/ExpenseAutomationPage-B8C4BxoV-u_k6mu8a.js +0 -1703
- package/dist/assets/GlobalReviewListPage-4eiopkzw-S_0cIn_Q.js +0 -291
- package/dist/assets/InsightsSection-De9zu_me-wp-DJULP.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-CDf7equc-C1nheAmV.js +0 -65
- package/dist/assets/InvitePeoplePage-Db4P4ZEq-Bqa6PJOp.js +0 -12
- package/dist/assets/InvoiceUploadSection-DYCjz9CI-Di7iZ3rh.js +0 -140
- package/dist/assets/LabeledAddressValueField-C6-hVsPb-CtbiD4R7.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-CgZg0uOW-wOvZo1jz.js +0 -16
- package/dist/assets/LabeledDocumentField-Bp9m-OrP-6oGXwzm5.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-3-KekP79-BGZG_uLh.js +0 -59
- package/dist/assets/MagicLinkACHDetailsPage-C494txw0-CtQxqwR2.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CONBCbOQ-u4Z3GzMp.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-BDRXSAO4-1yGDs4x9.js +0 -31
- package/dist/assets/MailingDetailsSection-DZT7JPlI-BX3TaQM5.js +0 -21
- package/dist/assets/MyPendingActivationChargeCardListPage-BJrk56oA-Bz1XOWUw.js +0 -6
- package/dist/assets/MyProfileSettingsPage-L9WuP6HZ-Bt0r3vIg.js +0 -85
- package/dist/assets/NotificationsListConfig-Bn1zmx6b-Byv3SuTE.js +0 -1
- package/dist/assets/NotificationsPage-DDwdR_Jq-CH4xdkvF.js +0 -685
- package/dist/assets/OpExByVendorPage-DukFYlqO-DkROpQmO.js +0 -100
- package/dist/assets/PandLWithForecastPage-Bgflh9Om-CgCfrHLq.js +0 -107
- package/dist/assets/PeoplePage-CDvKreQl-B9V6YZRP.js +0 -675
- package/dist/assets/ReimbursementDetailPage-oIC9QEyF-Uf6XrKw7.js +0 -314
- package/dist/assets/ReimbursementPromoPage-BKgsJieE-Ba5GJbn1.js +0 -84
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-CeyGWbKR-CiYOGkop.js +0 -1
- package/dist/assets/ReportTableViewSelector-CXDvZEbR-D-19omxr.js +0 -150
- package/dist/assets/ReportsPage-BoUyXSBC-BPepWXQn.js +0 -121
- package/dist/assets/RoleWithToolTip-C8x5yXaK-CQXsYwpy.js +0 -22
- package/dist/assets/ScheduleDetailsFixedAssetsPage-Bkp0mCOn-DeRr8BY-.js +0 -37
- package/dist/assets/ScheduleDetailsPage-Dg9rYJbn-CdqlXj9r.js +0 -37
- package/dist/assets/ScheduleSequenceTable-J6Eja8XA-DQymfbIV.js +0 -324
- package/dist/assets/SignIn-Cu2nzuEC-BHDNnRC4.js +0 -491
- package/dist/assets/SignInScreen-CvmuZ_lu.js +0 -1
- package/dist/assets/SpendManagementListViewPage-9V9u1jPF-C5LGJAJr.js +0 -134
- package/dist/assets/SpendManagementPerTabPage-COvEPq7V-AOv-04sa.js +0 -754
- package/dist/assets/StatementsPage-DaFrVUeK-BtS_jxBA.js +0 -58
- package/dist/assets/SubTabSwitcher-zrkVj1aP-CypqPMQM.js +0 -58
- package/dist/assets/TaskManagementPage-dAK9tl2b-DQNorVRE.js +0 -508
- package/dist/assets/TimeRangeSwitcher-r1TNqVRb-DyxsJ7t-.js +0 -64
- package/dist/assets/TimeframeSwitcher-DHfHCTa4-pMvLfkus.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-DvBvguRl-p_rilr-D.js +0 -31
- package/dist/assets/TransactionDetailPage-f7vWtXWL-DikOynRj.js +0 -903
- package/dist/assets/TransactionList-3-mUZOsw-6t-FD8kN.js +0 -153
- package/dist/assets/TransactionListPage-q6x4_jni-BvfvZkop.js +0 -35
- package/dist/assets/TreasuryOverviewPage-CuqWmrO5-CcwdLzTa.js +0 -708
- package/dist/assets/TreasuryStatementsPage-CGr00SXF-Ddcqn0VF.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-D9_qnlK4-DQDhOxJb.js +0 -58
- package/dist/assets/TrendWithTransactions-CTJhTpAM-CBPz9x-U.js +0 -116
- package/dist/assets/UploadAdditionalDocumentOverlay-DZfpwE5J-CmJMJ8QJ.js +0 -38
- package/dist/assets/VendorACHDetailsPage-CCOupiSZ-CMh3oX0P.js +0 -1
- package/dist/assets/VendorDetailPage-DufNphGD-CHkH3Fl_.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-BayV34Rt-a9y8S9df.js +0 -1
- package/dist/assets/VendorFirstReviewPage-DA0EL4RJ-C2ni5B1z.js +0 -730
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-DRVMUeXi-BUPq8BsG.js +0 -1
- package/dist/assets/ZeniAccountDetailPage-Dp-eo-Vq-DVqZeKKS.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-S-XmAYqD-CVsdQb-e.js +0 -441
- package/dist/assets/ZeniAccountNavBarPieces-DhjBxfEr-B3kNTCpc.js +0 -14
- package/dist/assets/ZeniAccountSetupPage-CvnIMdcY-Dd6KWWuP.js +0 -36
- package/dist/assets/chartTypes-40RenddT-cfd9O-7K.js +0 -1
- package/dist/assets/commonDimensions-BMnB1-xU-Dv2z_hsS.js +0 -1
- package/dist/assets/detailCommon-CrcyqWtZ-3mnJnM3j.js +0 -38
- package/dist/assets/downloadPdf-CUUx8PWn-DWs7sODc.js +0 -1
- package/dist/assets/epic-BDsnfsiq.js +0 -2
- package/dist/assets/liveblocks-t9znRICt.js +0 -67
- package/dist/assets/lottie-CQ9eYGiF.js +0 -9
- package/dist/assets/mapLoadingInProgressToTreeNode-DGnyXKBT-CjYqP6ia.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-CvGdU9Ma-DuWN8s0E.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BCOsOvxo-DzqHbBKU.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DIqYP3NK-AJxyBrea.js +0 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-BQG398jA.js +0 -4
- package/dist/assets/react-DCKkBuNc.js +0 -37
- package/dist/assets/toCOABalancesWithID-DkMGvlEt-Bl2QmqAg.js +0 -1
- package/dist/assets/toChartData-C6s-eBzE-DllwI7S_.js +0 -1
- package/dist/assets/uploadReceipts-Dge0cNF1-BGDnYNyn.js +0 -1
- package/dist/assets/zeni-epic-state-DBzXvQ_H.js +0 -151
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{y as l,V as r,aP as a,b4 as f,O as y,ac as m,aU as h,bG as g,ak as u,o as c,b5 as b}from"./index-nssLOVFu.js";import{n as s}from"./mui-BVCBQYdL.js";import{a as d}from"./sentry-Fca4mdIl.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]="2e313a14-00a9-42c4-8b7a-dc90bb6c4e60",e._sentryDebugIdIdentifier="sentry-dbid-2e313a14-00a9-42c4-8b7a-dc90bb6c4e60")}catch{}})();function w({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=s(h)`
|
|
2
2
|
justify-content: flex-start;
|
|
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(
|
|
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(b,{children:({height:n,width:i})=>r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.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=s(h)`
|
|
4
4
|
justify-content: space-between;
|
|
5
|
-
`,k=
|
|
5
|
+
`,k=s.div`
|
|
6
6
|
height: ${c.sp10};
|
|
7
7
|
width: ${c.sp10};
|
|
8
8
|
background: ${e=>e.theme.colors.background};
|
|
@@ -19,8 +19,8 @@ import{d as l,V as r,aO as a,b4 as f,O as y,aR as m,aU as h,bG as g,aj as u,o as
|
|
|
19
19
|
color: ${e=>e.theme.colors.primary};
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
`,$=
|
|
22
|
+
`,$=s(u)`
|
|
23
23
|
color: ${e=>e.theme.colors.champion};
|
|
24
|
-
`,v=
|
|
24
|
+
`,v=s(u)`
|
|
25
25
|
color: ${e=>e.theme.colors.hero};
|
|
26
|
-
`,
|
|
26
|
+
`,E=s(j)``;function V({dimension:e,cardType:o,cardIndex:t,reportTitle:n,onReloadData:i}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>i(t,o),children:r.jsxs(C,{children:[r.jsxs($,{children:[n??f(o)," "]}),r.jsx(k,{children:r.jsx(E,{})}),r.jsx(v,{children:y.getLocalizedStrings().card.failedText})]})})}export{T as E,D as I,V as T};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import{y as oe,X as he,cl as ye,aa as _e,V as o,aq as we,cm as se,ae as $e,x as S,aT as ve,o as r,O as te,cn as ke,co as Ce,cp as je,cq as Ne,cr as Ie,ao as ue,cs as Se,ak as Pe,aG as ee,bG as Oe,u as f,aX as De,an as Fe,av as Ee}from"./index-nssLOVFu.js";import{a as u,P as pe}from"./sentry-Fca4mdIl.js";import{n as d}from"./mui-BVCBQYdL.js";import{t as P,n as Te}from"./CollapsableReportTable-h0vIfI8o-Bg2RfRDJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="b9125fcc-478c-4807-ab3d-8d464829cf86",e._sentryDebugIdIdentifier="sentry-dbid-b9125fcc-478c-4807-ab3d-8d464829cf86")}catch{}})();const R=te.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Le=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ae=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Me(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(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Le(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ae(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed,class_view_layout:e.accountViewMode==="classes"?e.classViewLayout:void 0}}async function uo(e,i,a){const t=te.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Me(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:i,fileType:a.statementFileType});if(h.ok){const y=Ce(h.headers,t.defaultFileName),_=await h.arrayBuffer();je(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Be=d.div`
|
|
2
|
+
padding: 0 ${r.sp3} 0 ${r.sp3};
|
|
3
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
|
+
background: ${e=>e.theme.colors.grey5};
|
|
5
|
+
border-radius: ${r.sp1};
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
align-items: center;
|
|
9
|
+
position: relative;
|
|
10
|
+
height: ${r.sp8};
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
`,He=d(Fe)`
|
|
13
|
+
color: ${e=>e.theme.colors.primary};
|
|
14
|
+
margin-top: -2px;
|
|
15
|
+
`,Ve=d(Ee)`
|
|
16
|
+
color: ${e=>e.theme.colors.hero};
|
|
17
|
+
width: 12px;
|
|
18
|
+
height: 12px;
|
|
19
|
+
margin: auto ${r.sp0};
|
|
20
|
+
:hover {
|
|
21
|
+
color: ${e=>e.theme.colors.primary};
|
|
22
|
+
}
|
|
23
|
+
`,We=e=>{const{value:i,onClick:a}=e,t=oe();return o.jsxs(Be,{onClick:a,children:[o.jsx(He,{style:{color:t.colors.primary},children:i}),o.jsx(Ve,{})]})},ze=pe.memo(We);function Ge({backgroundColor:e,foregroundColor:i,animated:a,width:t,height:l}){return o.jsxs(Oe,{speed:2,width:t,height:l,viewBox:`0 0 ${t} ${l}`,animate:a!=!1,backgroundColor:e,foregroundColor:i,style:{marginBottom:r.sp2},children:[o.jsx("rect",{x:"45",y:f[3],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:f[8],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:f[4]})]})}function fe({nestedClass:e,isLastNode:i,config:a,parentNodeIDs:t}){const l=P("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:l,isLastNode:i,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((y,_)=>fe({nestedClass:y,config:a,isLastNode:_===e.children.length-1,parentNodeIDs:[...t,l]})),h}function Re(e,i){const a=e.map((t,l)=>{const h=P("checkbox_and_name_only",[],t.classId[0]),y={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:i}},_=t.children.map(O=>fe({nestedClass:O,config:i,isLastNode:l===t.children.length-1,parentNodeIDs:[h]}));return y.children.push(..._),y});return{config:i,headerNodes:[],contentNodes:[...a]}}function Ye(e,i){Object.assign(e.config,i);const a=e.contentNodes;return a.forEach(t=>me(t,i)),{config:i,headerNodes:[],contentNodes:[...a]}}function me(e,i){Object.assign(e.reportElementData.config,i),e.children.forEach(a=>me(a,i))}const ae={contentPaddingLeft:new S(f[3],f[3],f[2]),contentPaddingRight:new S(f[3],f[3],f[2])},qe=d.div`
|
|
24
|
+
height: ${e=>e.height}px;
|
|
25
|
+
width: 100%;
|
|
26
|
+
`,Je=({reportId:e,firstMonthOfFY:i,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:l,showClassAccountNumber:h,scrollPosition:y,onScroll:_,nodeOpenStatus:O,onNodeCollapseToggled:X,onToggleCheck:D,maxTreeHeightPx:L})=>{const K=oe(),F=he(),[w,A]=u.useState(void 0),[x,M]=u.useState(!1),[B,m]=u.useState({}),[H,E]=u.useState(void 0),[C,V]=u.useState(l),T="none",j=c=>l==="account_group"?!0:t?.length>0?t.find(n=>n[0]===c[0])!=null:!1,$=(c,n)=>{M(!0),m(c),D?.(c,n,l==="account_group"?!0:void 0),Y(c,n)},Y=(c,n)=>{const g=W(c);for(const v of g.children)D?.(v.classId,n),Y(v.classId,n)},W=c=>{let n=a.filter(g=>g.classId[0]===c[c.length-1])[0];for(let g=c.length-2;g>=0;g--)n=n.children.filter(v=>v.classId[0]===c[g])[0];return n},Q=c=>{if(c.length>1){const n=W(c.slice(1));let g=!1;for(const v of n.children)if(t.find(z=>z[0]===v.classId[0])===void 0){g=!0;break}g===!0?D?.(n.classId,!0):D?.(n.classId,!1),m(n.classId)}};u.useEffect(()=>{x&&Q(B)}),u.useEffect(()=>{const c={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:T,firstMonthOfFY:i,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:j,showClassAccountNumber:h};if(w==null||!ee(H,a)||!ee(C,l)||x===!0){const n=Re(a,c);E(a),A(n),V(l)}else{const n=Ye(w,c);A(n),V(l)}},[a,l,t]);const[q,Z]=u.useState(5),J=c=>{const n=c+f[6];Z(n)},U=L!=null?Math.min(q,L):q;return w!=null?o.jsx(qe,{height:U,children:o.jsx(Te,{backgroundColor:l==="classes"?new De(K.colors.background):void 0,rootNodes:w,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:ae.contentPaddingLeft.value(F),right:ae.contentPaddingRight.value(F)},scrollPosition:y,onScroll:_,nodeOpenStatus:O,onNodeCollapseToggled:X,onToggleCheck:$,onReportTableHeightChanged:J})}):null},k={width:new S(350,400,400),height:new S(165,165,165),buttonWidth:new S(62,62),buttonHeight:new S(f[5],f[5]),containerWidth:new S(150,400,400)},ge=353,Ue=d.div`
|
|
27
|
+
position: relative;
|
|
28
|
+
pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
|
|
29
|
+
`,Xe=d.div`
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
width: ${e=>k.containerWidth.valuePx(e.windowSize)};
|
|
33
|
+
`,Ke=d(Ne)`
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
width: fit-content;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
color: ${e=>e.theme.colors.primary};
|
|
39
|
+
.dropdownIcon {
|
|
40
|
+
color: ${e=>e.theme.colors.hero};
|
|
41
|
+
}
|
|
42
|
+
&:hover {
|
|
43
|
+
.dropdownIcon {
|
|
44
|
+
color: ${e=>e.theme.colors.primary};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
gap: ${r.sp2};
|
|
48
|
+
margin-top: 12px;
|
|
49
|
+
align-items: center;
|
|
50
|
+
`,Qe=d(Ie)`
|
|
51
|
+
color: ${e=>e.theme.colors.hero};
|
|
52
|
+
width: ${r.sp4};
|
|
53
|
+
height: ${r.sp4};
|
|
54
|
+
&:hover {
|
|
55
|
+
color: ${e=>e.theme.colors.primary};
|
|
56
|
+
}
|
|
57
|
+
`,Ze=d.div`
|
|
58
|
+
display: flex;
|
|
59
|
+
width: ${e=>e.width}px;
|
|
60
|
+
align-items: flex-start;
|
|
61
|
+
justify-content: space-between;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
border: 1px solid ${e=>e.theme.colors.grey5};
|
|
64
|
+
border-radius: ${r.sp1};
|
|
65
|
+
box-shadow: ${e=>`${r.sp0} 2px ${r.sp2} ${e.theme.colors.dropShadowHover}`};
|
|
66
|
+
margin-top: 10px;
|
|
67
|
+
padding-top: ${r.sp1};
|
|
68
|
+
background: ${e=>e.theme.colors.grey5};
|
|
69
|
+
`,ne=d.div`
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: flex-start;
|
|
72
|
+
justify-content: space-between;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
width: 100%;
|
|
75
|
+
background-color: ${e=>e.checked===!0?e.theme.colors.background:"transparent"};
|
|
76
|
+
& input[type="radio"] {
|
|
77
|
+
-webkit-appearance: none;
|
|
78
|
+
-moz-appearance: none;
|
|
79
|
+
appearance: none;
|
|
80
|
+
display: inline-block;
|
|
81
|
+
width: ${r.sp3};
|
|
82
|
+
height: ${r.sp3};
|
|
83
|
+
padding: 2px;
|
|
84
|
+
background-clip: content-box;
|
|
85
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
86
|
+
border-radius: 50%;
|
|
87
|
+
margin: ${r.sp0} ${r.sp2} ${r.sp0} ${r.sp2};
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
input[type="radio"]:checked {
|
|
92
|
+
background-color: ${e=>e.theme.colors.primary};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
input[type="radio"]:disabled {
|
|
96
|
+
cursor: default;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:hover {
|
|
100
|
+
background: ${e=>e.theme.colors.background};
|
|
101
|
+
}
|
|
102
|
+
`,re=d(Pe)`
|
|
103
|
+
height: ${r.sp6};
|
|
104
|
+
display: flex;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
align-items: center;
|
|
107
|
+
`,eo=d.div`
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
flex-wrap: wrap;
|
|
111
|
+
justify-content: flex-start;
|
|
112
|
+
height: 100%;
|
|
113
|
+
width: inherit;
|
|
114
|
+
overflow: hidden;
|
|
115
|
+
.hide-icon {
|
|
116
|
+
display: none;
|
|
117
|
+
}
|
|
118
|
+
min-height: 165px;
|
|
119
|
+
max-height: ${ge}px;
|
|
120
|
+
overscroll-behavior: contain;
|
|
121
|
+
`,oo=d.div`
|
|
122
|
+
width: 100%;
|
|
123
|
+
height: 65px;
|
|
124
|
+
`,ie=d.label`
|
|
125
|
+
color: ${e=>e.theme.colors.primary};
|
|
126
|
+
cursor: ${e=>e.disabled===!0?"default":"pointer"};
|
|
127
|
+
`,to=d(ue)`
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
column-gap: ${r.sp2};
|
|
131
|
+
margin-left: ${r.sp5};
|
|
132
|
+
color: ${e=>e.theme.colors.hero};
|
|
133
|
+
&:hover {
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
color: ${e=>e.theme.colors.primary};
|
|
136
|
+
}
|
|
137
|
+
`,so=d.div`
|
|
138
|
+
display: flex;
|
|
139
|
+
flex: 1;
|
|
140
|
+
width: inherit;
|
|
141
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
142
|
+
min-height: 1px;
|
|
143
|
+
max-height: 1px;
|
|
144
|
+
`,ao=d(Se)`
|
|
145
|
+
width: ${r.sp3};
|
|
146
|
+
height: ${r.sp3};
|
|
147
|
+
`,no=d(ue)`
|
|
148
|
+
margin-left: ${r.sp5};
|
|
149
|
+
margin-top: -12px;
|
|
150
|
+
color: ${e=>e.theme.colors.hero};
|
|
151
|
+
`,{reportViewSelector:I,common:{footer:le}}=te.getLocalizedStrings(),ce="tableViewSelector",de=e=>`${e}_form`;function po({reportId:e,firstMonthOfFY:i,nodes:a,classesListFetchState:t,selectedView:l,classesToBeFilteredOut:h,showClassAccountNumber:y,onOpenAccountViewMode:_,onSaveClick:O,isClassViewDisabled:X,downloadPage:D,showAccountGroups:L=!0,onResyncReports:K,isPageFetchInProgress:F=!1,lastRefreshSuccessTime:w}){const A=oe(),x=he(),[M,B]=u.useState(!1),[m,H]=u.useState(l),[E,C]=u.useState({}),V=(s,p)=>(s.forEach(b=>{p.push(b.classId),p=V(b.children,p)}),p),T=V(a,[]),[j,$]=u.useState(m==="classes"?h:T),Y=t!=="Completed"||m==="classes"&&j.length===T.length,W=u.useRef(!1),[Q,q]=u.useState(!1),Z=u.useRef(s=>{s&&!W.current&&(W.current=!0,q(!0))});ye({componentName:`reports.${e}`,enabled:Q});const J=s=>s==="classes"?I.classes.label:L===!0?I.accountGroups.label:I.accounts.label,U=_e({mode:"all"}),c=U.handleSubmit(()=>{B(!1),m==="classes"?O?.("classes",j):O?.("account_group")}),n=s=>{if(H(s),s==="classes")C({}),$([]);else{$(T);let p={};a.forEach(b=>{const N=P("checkbox_and_name_only",[],b.classId[0]);p=Object.assign({},p,{[N]:!1})}),C(p)}},g=()=>{M===!0&&z(),B(!M);let s={};a.forEach(p=>{const b=P("checkbox_and_name_only",[],p.classId[0]);l==="account_group"||j.find(N=>N[0]===p.classId[0])!==void 0?s=Object.assign({},s,{[b]:!1}):s=Object.assign({},s,{[b]:!0})}),C(s)},v=(s,p,b)=>{if(b===!0&&(H("classes"),$(T)),p===!0){const N=P("checkbox_and_name_only",[],s[0]);E[N]=!0,C(E),$(G=>G.filter(be=>be[0]!==s[0]))}else{const N=P("checkbox_and_name_only",[],s[0]);E[N]=!1,j.find(G=>G[0]===s[0])===void 0&&$(G=>[...G,s])}},z=()=>{B(!1),H(l),$(h)},xe=()=>{F===!1&&K?.()};return u.useEffect(()=>{if(t==="Completed"&&m==="account_group"){let s={};a.forEach(p=>{const b=P("checkbox_and_name_only",[],p.classId[0]);s=Object.assign({},s,{[b]:!1})}),C(s)}},[t]),o.jsx(we,{onClickAway:z,children:o.jsxs(Ue,{ref:Z.current,isDisabled:X??!1,children:[D===!0?o.jsx(ze,{value:J(l),onClick:()=>{_?.(),g()}}):o.jsxs(Xe,{windowSize:x,children:[o.jsxs(Ke,{onClick:s=>{s.preventDefault(),_?.(),g()},children:[o.jsx(Qe,{className:"dropdownIcon"}),J(l)]}),l==="classes"?o.jsx(to,{onClick:xe,children:F?I.generatingReportByClass:o.jsxs(o.Fragment,{children:[w&&`${se(w)}`,o.jsx(ao,{})]})}):null]}),M?o.jsx($e,{...U,children:o.jsx("form",{id:de(ce),onSubmit:c,children:o.jsxs(Ze,{width:k.width.value(x),children:[o.jsx(ne,{checked:m==="account_group",children:o.jsxs(re,{onClick:()=>m!=="account_group"?n("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>n(s.currentTarget.value),checked:m==="account_group",disabled:t!=="Completed"}),o.jsx(ie,{disabled:t!=="Completed",children:L===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),o.jsx(so,{}),o.jsxs(ne,{checked:m==="classes",children:[o.jsxs(re,{onClick:()=>t==="Completed"?n("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?n(s.currentTarget.value):null,checked:m==="classes",disabled:t!=="Completed"}),o.jsx(ie,{disabled:t!=="Completed",children:I.classes.dropdownLabel})]}),F||t!=="Completed"?null:o.jsx(no,{children:w&&`${se(w)}`}),t==="Completed"?o.jsx(eo,{id:"sectionformcontainer",children:o.jsx(ro,{reportId:e,firstMonthOfFY:i,nestedClassHierarchy:a,classesToBeFilteredOut:j,maxTreeHeightPx:ge,selectedView:m,nodeOpenStatus:E,showClassAccountNumber:y,onToggleCheck:v})}):o.jsx(Ge,{backgroundColor:A.colors.grey3,foregroundColor:A.colors.grey4,width:k.width.value(x),height:k.height.value(x),animated:!0})]}),o.jsx(oo,{children:o.jsx(ve,{formId:de(ce),primaryBtn:{label:le.save,style:{width:k.buttonWidth.valuePx(x),height:k.buttonHeight.valuePx(x)},isLoading:!1,isDisabled:Y,size:"small"},showCancel:!0,cancelBtn:{label:le.cancel,style:{width:k.buttonWidth.valuePx(x),height:k.buttonHeight.valuePx(x)},onClick:z,size:"small",shouldResetOnCancel:!0},style:{padding:r.sp3}})})]})})}):null]})})}const ro=pe.memo(Je,ee);export{po as b,uo as x};
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import{X as le,y as ce,ay as Qe,bQ as et,bR as tt,bS as st,O as T,V as o,bT as ot,ac as F,bF as nt,bq as at,bE as it,bU as rt,o as _,aV as lt,L as ct,bV as dt,x as U,bW as pt,u as L,aq as me,I as D,bX as ge,bY as ut,ak as de,av as ht,bZ as ft,aG as Te,U as mt,aX as gt,an as Ae,au as bt,bN as _t}from"./index-nssLOVFu.js";import{a as C,P as Be}from"./sentry-Fca4mdIl.js";import{n as h}from"./mui-BVCBQYdL.js";import{a as yt}from"./liveblocks-offUbtxr.js";import{bg as be,FJ as xt,FS as wt,FT as St,FU as X,FV as Ct,FW as Rt,FX as Ot,FY as vt,FZ as Tt,F_ as pe,F$ as ue,G0 as ke}from"./zeni-epic-state-BZv12Eez.js";import{j as At,z as he}from"./mapTimeframeBalancesToTreeNode-CW_wzI5T-he6bfb8d.js";import{m as K,l as ae}from"./analyticsHelper-D9xdJK4b-C8beHKtm.js";import{b as Bt}from"./ReportTableViewSelector-Ig41fOPb-DyEm5Q02.js";import{S as Q,y as kt,M as $t,$ as Lt,v as Nt}from"./TimeRangeSwitcher-C3jXm39I-tjiVSjZN.js";import{X as jt}from"./TimeframeSwitcherWithToggle-w4YJno-p-Bi4h2wB2.js";import{DownloadOverlayButton as It}from"./DownloadOverlay-BpRKCn-0-GQtzMlpD.js";import{Z as Mt,n as Ft,t as V,j as $e}from"./CollapsableReportTable-h0vIfI8o-Bg2RfRDJ.js";import{D as Le,T as Ne,C as ee,L as Pt,g as je}from"./mapSectionWithAcOnlyToTreeNode-dsBogxKz-D78gQ4Dn.js";import{d as Vt,l as Et}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-DlA9TyjC.js";import{d as Dt}from"./mapLoadingInProgressToTreeNode-DrC2Zs2y-BuaBdgp1.js";import"./core-DTlL91ob.js";import"./lottie-Cqel28AC.js";import"./recharts-DAsNs3BU.js";import"./analytics-B3XlZNQ8.js";import"./lexical-CoKvBbaA.js";import"./utils-Cgs4R-d4.js";import"./TimeframeSwitcher-CcYg-YQJ-C2j1iPoK.js";import"./page-detail-CWX5S47F-D1vlmLcE.js";import"./AccountRow-BrW_eEjE-HoBl8v8H.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]="dfa07544-b3b9-4c77-a23e-14ece89caeb3",e._sentryDebugIdIdentifier="sentry-dbid-dfa07544-b3b9-4c77-a23e-14ece89caeb3")}catch{}})();const zt=h.div`
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
`,Ut=h.div`
|
|
5
|
+
display: flex;
|
|
6
|
+
width: 100%;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
10
|
+
min-height: ${Q}px;
|
|
11
|
+
box-sizing: content-box;
|
|
12
|
+
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
13
|
+
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
14
|
+
`,Yt=h.div`
|
|
15
|
+
position: relative;
|
|
16
|
+
width: auto;
|
|
17
|
+
max-width: 100%;
|
|
18
|
+
`,Gt=h(de)`
|
|
19
|
+
color: ${e=>e.theme.colors.primary};
|
|
20
|
+
`,Wt=h(ut)`
|
|
21
|
+
color: ${e=>e.theme.colors.primary};
|
|
22
|
+
width: ${_.sp3};
|
|
23
|
+
height: ${_.sp3};
|
|
24
|
+
flex-shrink: 0;
|
|
25
|
+
`,Ht=h(ht)`
|
|
26
|
+
width: 12px;
|
|
27
|
+
height: 12px;
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
`,Zt=h.div`
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
gap: ${_.sp2};
|
|
34
|
+
min-height: ${Q}px;
|
|
35
|
+
padding: 0 ${_.sp3};
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
/* When the calendar popup is open, highlight the chevron */
|
|
39
|
+
.reports-period-slider-chevron {
|
|
40
|
+
color: ${e=>e.$isOpen===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
41
|
+
}
|
|
42
|
+
/* Class-based hover targets: nested styled component refs need @emotion/babel-plugin in app builds */
|
|
43
|
+
&:hover .reports-period-slider-icon {
|
|
44
|
+
color: ${e=>e.theme.colors.primary};
|
|
45
|
+
}
|
|
46
|
+
&:hover .reports-period-slider-label {
|
|
47
|
+
color: ${e=>e.theme.colors.primary};
|
|
48
|
+
}
|
|
49
|
+
&:hover .reports-period-slider-chevron {
|
|
50
|
+
color: ${e=>e.theme.colors.primary};
|
|
51
|
+
}
|
|
52
|
+
`,qt=h.div`
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
height: ${_.sp5};
|
|
56
|
+
box-sizing: border-box;
|
|
57
|
+
padding: 0 ${_.sp3};
|
|
58
|
+
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
59
|
+
border-radius: ${_.sp1};
|
|
60
|
+
background: ${e=>e.theme.colors.grey5};
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
min-width: 0;
|
|
63
|
+
justify-content: space-between;
|
|
64
|
+
gap: ${_.sp2};
|
|
65
|
+
&:hover {
|
|
66
|
+
border-color: ${e=>e.theme.colors.primary};
|
|
67
|
+
}
|
|
68
|
+
`,Xt=h(de)`
|
|
69
|
+
color: ${e=>e.theme.colors.hero};
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
text-overflow: ellipsis;
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
`,Kt=h(ft)`
|
|
74
|
+
color: ${e=>e.theme.colors.hero};
|
|
75
|
+
width: 12px;
|
|
76
|
+
height: 12px;
|
|
77
|
+
flex-shrink: 0;
|
|
78
|
+
`,Ie=h.div`
|
|
79
|
+
position: absolute;
|
|
80
|
+
top: calc(100% + ${_.sp1});
|
|
81
|
+
left: 0;
|
|
82
|
+
z-index: 10;
|
|
83
|
+
background: ${e=>e.theme.colors.grey5};
|
|
84
|
+
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
85
|
+
border-radius: ${_.sp1};
|
|
86
|
+
padding: ${_.sp3};
|
|
87
|
+
min-width: 260px;
|
|
88
|
+
`,Jt=h(Ie)`
|
|
89
|
+
left: 50%;
|
|
90
|
+
transform: translateX(-50%);
|
|
91
|
+
`,Qt=h.div`
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
gap: ${_.sp3};
|
|
95
|
+
`,es=h.div`
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
gap: ${_.sp2};
|
|
99
|
+
padding-bottom: ${_.sp2};
|
|
100
|
+
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
101
|
+
`,_e=h.div`
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
flex: 1;
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
padding: ${_.sp2} ${_.sp3};
|
|
107
|
+
border-radius: ${_.sp1};
|
|
108
|
+
border: 1px solid
|
|
109
|
+
${e=>e.active?e.theme.colors.primary:e.theme.colors.grey3};
|
|
110
|
+
background: ${e=>e.active?e.theme.colors.background:"transparent"};
|
|
111
|
+
`,ye=h(de)`
|
|
112
|
+
color: ${e=>e.theme.colors.hero};
|
|
113
|
+
`,xe=h(Ae)`
|
|
114
|
+
color: ${e=>e.theme.colors.primary};
|
|
115
|
+
`,ts=h(Ae)`
|
|
116
|
+
color: ${e=>e.theme.colors.hero};
|
|
117
|
+
flex-shrink: 0;
|
|
118
|
+
`,ss=h.div`
|
|
119
|
+
display: flex;
|
|
120
|
+
flex-direction: column;
|
|
121
|
+
`,we=h.div`
|
|
122
|
+
display: flex;
|
|
123
|
+
flex-wrap: wrap;
|
|
124
|
+
`,os=h.div`
|
|
125
|
+
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
126
|
+
width: 100%;
|
|
127
|
+
margin: ${_.sp2} 0;
|
|
128
|
+
`;function J(e){const{dateFormat:{analytics:t}}=T.getLocalizedStrings();return e.startDate.format(t.YYYYFormat)}function H(e,t,s){return Mt(s,e,t)}function ns(e,t,s,n){return t==="month"?e.startDate.format(n):H(e,t,s)}const as=({allTimeframeTicks:e,bookCloseDate:t,firstMonthOfFY:s,fromIndex:n,selectedTimeframe:a,toIndex:c,onFromSelected:u,onToSelected:l})=>{const{dateFormat:{analytics:r}}=T.getLocalizedStrings(),d=T.getLocalizedStrings().reports,[f,g]=C.useState("from"),i=[...new Set(e.map(J))],[p,S]=C.useState(()=>J(e[n]??e[0])),R=w=>{g(w),S(J(e[w==="from"?n:c]))},j=w=>{f==="from"?u(w):l(w)},$=e.map((w,k)=>({tick:w,index:k})).filter(({tick:w})=>J(w)===p),b=e.length-1,y=b>=0&&St(e[b]),B=H(e[n],a,s),N=H(e[c],a,s);return o.jsxs(Qt,{children:[o.jsxs(es,{children:[o.jsxs(_e,{active:f==="from",onClick:()=>R("from"),children:[o.jsx(ye,{children:d.periodRangeFrom}),o.jsx(xe,{children:B})]}),o.jsx(ts,{children:"→"}),o.jsxs(_e,{active:f==="to",onClick:()=>R("to"),children:[o.jsx(ye,{children:d.periodRangeTo}),o.jsx(xe,{children:N})]})]}),o.jsxs(ss,{children:[o.jsx(we,{children:i.map(w=>o.jsx(ge,{id:w,text:w,checked:w===p,textVariant:"small",onClick:k=>S(k)},w))}),o.jsx(os,{}),o.jsx(we,{children:$.map(({tick:w,index:k})=>{const M=ns(w,a,s,r.MMMFormat),O=f==="from"?k===n:k===c,A=t!=null&&w.startDate.isAfter(t),m=k===b,x=A&&!(y&&m),I=A&&y&&m;return o.jsx(ge,{id:String(k),text:M,checked:O,starred:x,doubleStarred:I,textVariant:"small",onClick:P=>j(Number.parseInt(P,10))},k)})})]})]})};function is(e){const{allTimeframeTicks:t,bookCloseDate:s,firstMonthOfFY:n,onCOABalancesRangeChanged:a,onDateRangeAnalytics:c,isCompareMode:u,referrer:l,selectedCOABalancesRange:r,selectedTimeframe:d,variant:f="default"}=e,[g,i]=C.useState(!1),p=t??[];if(d==="week"||d==="free_range"||p.length===0)return null;const S=$t(p,r),R=r.numberOfPeriods??1,j=S.startIndex,$=Math.max(0,Math.min(j,p.length-1)),b=Math.min(Math.max($+S.length-1,0),p.length-1),y=H(p[$],d,n),B=H(p[b],d,n),N=(O,A)=>{const m=A-O+1,x={offsetFromEnd:p.length-1-A,length:m},I={startIndex:O,length:m},P=Lt(p,x),Y=Nt(p,I);P.thisPeriod!=null&&c!=null&&c(l,u,ae(n,d,P.thisPeriod)),a(P,Y),i(!1)},w=O=>{const A=O,m=Math.min(A+R-1,p.length-1);N(A,m)},k=O=>{const A=Math.min($,O),m=Math.max($,O);N(A,m)},M=g&&p.length>0?o.jsx(as,{allTimeframeTicks:p,bookCloseDate:s,firstMonthOfFY:n,selectedTimeframe:d,fromIndex:$,toIndex:b,onFromSelected:w,onToSelected:k}):null;return f==="timeRangeSlider"?o.jsx(Ut,{children:o.jsx(me,{onClickAway:()=>i(!1),children:o.jsxs(Yt,{"data-testid":F("reports-period-range-calendar"),children:[o.jsxs(Zt,{$isOpen:g,onClick:()=>i(O=>!O),children:[o.jsx(Wt,{className:"reports-period-slider-icon"}),o.jsxs(Gt,{className:"reports-period-slider-label",children:[y," – ",B]}),o.jsx(Ht,{className:"reports-period-slider-chevron"})]}),M!=null?o.jsx(Jt,{children:M}):null]})})}):o.jsx(me,{onClickAway:()=>i(!1),children:o.jsxs(zt,{"data-testid":F("reports-period-range-calendar"),children:[o.jsxs(qt,{onClick:()=>i(O=>!O),children:[o.jsxs(Xt,{children:[y," – ",B]}),o.jsx(Kt,{})]}),M!=null?o.jsx(Ie,{children:M}):null]})})}function Me({section:e,sectionId:t,numOfBalances:s,config:n}){return $e("no_filter",n.filterAccountsWithNilBalances,n.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(a=>rs({accountGroup:a,sectionType:t,numOfBalances:s,title:a.accountGroupName,isLastNode:!0,config:n}))}function rs({accountGroup:e,sectionType:t,numOfBalances:s,title:n,isLastNode:a,config:c}){const u=V("section",[],n+t),l={children:[],id:u,isLastNode:a,reportElementData:{element:{kind:"section",title:n,sectionType:t,data:e,numOfBalances:s},config:c}},r=$e("no_filter",c.filterAccountsWithNilBalances,c.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),d=r.map((f,g)=>je({account:f,sectionType:t,numOfBalances:s,title:f.account.accountName,config:c,isLastNode:g===r.length-1,parentNodeIDs:[u],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:r.length>1,hasChildren:f.children.length>0,isLastNode:g===r.length-1}]}}));return l.children.push(...d),l}function Fe({sectionWithAcOnly:e,sectionType:t,numOfBalances:s,config:n}){return e.accounts.map((a,c)=>je({account:a,sectionType:t,numOfBalances:s,title:a.account.accountName,config:n,isLastNode:c===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:a.children.length>0,isLastNode:c===e.accounts.length-1}]}}))}function Pe({balances:e,config:t,nodeId:s}){return{children:[],id:s??V("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 ls(e){return e.reportId==="profit_and_loss_by_classes"&&"headerBalances"in e&&Array.isArray(e.headerBalances)}function ie(e,t){for(const s of e)s.reportElementData={...s.reportElementData,config:t},ie(s.children,t)}function cs(e,t,s,n=!0){if(Object.assign(e.config,t),ls(s))return ie(e.headerNodes,t),ie(e.contentNodes,t),{config:t,headerNodes:e.headerNodes,contentNodes:e.contentNodes};const a=Ve(s),c=he({balances:a,config:t});return{config:t,headerNodes:n?[c]:[],contentNodes:[c,...e.contentNodes.slice(1)]}}const Ve=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,s=t.sections?.expenses?.balances,n=t.sections?.income?.balances,a=t.sections?.expenses?.additionalBalances??[],c=t.sections?.income?.additionalBalances??[];return(s?.length??0)>0?[...s,...a]:(n?.length??0)>0?[...n,...c]:[]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let s=[];return Object.keys(t.sections).forEach(n=>{t.sections[n].balances.length>0&&(s=[...t.sections[n].balances,...t.sections[n].additionalBalances])}),s}default:return[]}};function ds(e,t,s=!0){const n=T.getLocalizedStrings().reports.sections,a=T.getLocalizedStrings().reports.balanceSheet,c=Ve(e),u=t.mode!=null&&t.mode==="this_period_vs_period_before"&&c.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=Pe({balances:c,config:t}),r=[];return r.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(d=>{const f=V("title_string_only",[],d),g={children:[],id:f,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:n[d],data:void 0,numOfBalances:0},config:t}};r.push(g),e.rootSectionsWithSubSectionIds[d].forEach(i=>{if(Ct(i)===!0)if(e.sections[i].accountGroups.length>0)if(i==="equity"){const p=Me({sectionId:i,section:e.sections[i],numOfBalances:u,config:t});r.push(...p)}else r.push(Le({section:e.sections[i],sectionType:i,numOfBalances:u,title:a[i],isLastNode:!0,config:t}));else if(i==="equity"){const p=Fe({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:u,config:t});r.push(...p)}else{const p=e.sections[i];r.push(Ne({sectionWithAcOnly:p,sectionType:i,numOfBalances:u,title:a[i],isLastNode:!0,config:t}))}else Rt(i)===!0&&r.push(ee({calculatedSection:e.calculatedSections[i],numOfBalances:u,title:a[i],isLastNode:!0,config:t}))})}),{config:t,headerNodes:s?[l]:[],contentNodes:r}}function ps({calculatedSection:e,numOfBalances:t,title:s,isLastNode:n,config:a}){return{children:[],id:V("calculated_section_type1",[],s),isLastNode:n,reportElementData:{element:{kind:"calculated_section_type1",title:s,data:e,numOfBalances:t},config:a}}}function us(e,t,s=!0){const n=T.getLocalizedStrings().reports.sections,a=T.getLocalizedStrings().reports.cashFlow,c=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],u=t.mode!=null&&t.mode==="this_period_vs_period_before"&&c.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=Pe({balances:c,config:t}),r=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(d=>{const f=V("title_string_only",[],d),g={children:[],id:f,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:n[d],data:void 0,numOfBalances:0},config:t}};r.push(g),e.rootSectionsWithSubSectionIds[d].forEach(i=>{if(Ot(i)===!0)if(e.sections[i].accountGroups.length>0){const p=Me({sectionId:i,section:e.sections[i],numOfBalances:u,config:t});r.push(...p)}else{const p=Fe({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:u,config:t});r.push(...p)}else vt(i)===!0?r.push(ps({calculatedSection:e.calculatedSections[i],numOfBalances:u,title:a[i],isLastNode:!0,config:t})):Tt(i)===!0&&r.push(ee({calculatedSection:e.calculatedSections[i],numOfBalances:u,title:a[i],isLastNode:!0,config:t}))})}),{config:t,headerNodes:s?[l]:[],contentNodes:[l,...r]}}function hs(e,t){const s=[];let n=[];const a=e.classColumns.length+1,c={children:[],id:V("class_headers",[]),isLastNode:!1,reportElementData:{element:{kind:"class_headers",title:"",data:e.classColumns,numOfBalances:a},config:t}};return s.push(c),n=[c],e.idsInOrder.forEach(u=>{if(pe(u)){const l=e.sections[u];l!=null&&s.push(fs(l,u,a,t,e))}else if(ue(u)){const l=e.calculatedSections[u];l!=null&&s.push(ms(l,a,t,e))}}),{config:t,headerNodes:n,contentNodes:s}}function fs(e,t,s,n,a){const c=V("section",[],e.title),u=e.treeLayout,l=e.sectionHeaderBalancesSlice??ke(a.firstMonthOfFY),r={children:[],id:c,isLastNode:!0,reportElementData:{element:{kind:"section",title:e.title,sectionType:t,data:l,numOfBalances:s},config:n}};if(u==null)return r;const d=new Map;for(const[f,g]of Object.entries(u.childrenRowIndicesByParent))d.set(Number(f),g);return u.rootAccountRowIndices.forEach((f,g)=>{r.children.push(Ee(f,e.accounts,d,s,n,[c],g===u.rootAccountRowIndices.length-1))}),r}function Ee(e,t,s,n,a,c,u){const l=t[e],r=l.accountReportData,d=s.get(e)??[],f=V("ac_report",c,l.accountId);return{children:d.map((g,i)=>Ee(g,t,s,n,a,[...c,f],i===d.length-1)),id:f,isLastNode:u,reportElementData:{element:{kind:"ac_report",title:l.accountName,data:r,numOfBalances:n},config:a}}}function ms(e,t,s,n){const a=e.sectionHeaderBalancesSlice??ke(n.firstMonthOfFY);return{children:[],id:V("calculated_section",[],e.title),isLastNode:!0,reportElementData:{element:{kind:"calculated_section",title:e.title,data:a,numOfBalances:t},config:s}}}function gs(e,t,s=!0,n=!1){const a=T.getLocalizedStrings().reports,c=T.getLocalizedStrings().common;let u=[];const l=[];let r=[];if(n===!0){const d=Vt({title:c.loading,balances:[],config:t});d.reportElementData.element.numOfBalances=6,s&&(r=[d]),l.push(d),[...Array(8)].forEach((f,g)=>{const i=g%4;let p=Et[i];const S=Dt({title:`${g}+${p}`,balances:u,config:t});S.reportElementData.element.numOfBalances=6,l.push(S)})}else{const d=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]:[],f=he({balances:d,config:t}),g=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(f),s&&(r=[f]),e.idsInOrder.forEach(i=>{if(pe(i)===!0){const p=e.sections[i];p!=null&&l.push(Pt({section:p,sectionType:i,numOfBalances:g,title:a.sections[i],isLastNode:!0,config:t}))}else if(ue(i)===!0){const p=e.calculatedSections[i];p!=null&&l.push(ee({calculatedSection:p,numOfBalances:g,title:a.sections[i],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:r,contentNodes:l}}function bs(e,t,s=!0){const n=T.getLocalizedStrings().reports,a=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]:[],c=t.mode!=null&&t.mode==="this_period_vs_period_before"&&a.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,u=he({balances:a,config:t}),l=[];return l.push(u),e.idsInOrder.forEach(r=>{if(pe(r)===!0&&(e.sections[r].accountGroups.length>0?l.push(Le({section:e.sections[r],sectionType:r,numOfBalances:c,title:n.sections[r],isLastNode:!0,config:t})):l.push(Ne({sectionWithAcOnly:e.sections[r],sectionType:r,numOfBalances:c,title:n.sections[r],isLastNode:!0,config:t}))),ue(r)===!0){const d=e.calculatedSections[r];d!=null&&l.push(ee({calculatedSection:d,numOfBalances:c,title:n.sections[r],isLastNode:!0,config:t}))}}),{config:t,headerNodes:s?[u]:[],contentNodes:l}}const Se={contentPaddingLeft:new U(L[0],L[0],L[0]),contentPaddingRight:new U(L[3],L[3],L[8])},_s=h.div`
|
|
129
|
+
height: ${e=>e.height}px;
|
|
130
|
+
width: 99.9%;
|
|
131
|
+
margin-top: ${_.sp2};
|
|
132
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
133
|
+
`;function ys({report:e,displayOrder:t,reportFormat:s,analytics:n,isZeniUser:a,onAdditionalBalanceSelectionChanged:c,onAccountBalanceClick:u,onTableScroll:l,onElementCollapseStateChanged:r,isCompareModeOn:d,isPageFetchInProgress:f=!1,onTreeNodesReady:g,treeRef:i}){const p=le(),S=ce(),[R,j]=C.useState(void 0),[$,b]=C.useState(void 0),y=!(p==="small"||p==="medium-compact"),B="name+balances_actual",N=d===!0?"this_period_vs_period_before":"none",w=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const x=e;m=(x.sections.expenses.balances.length>0?x.sections.expenses:x.sections.income).additionalBalances.map(I=>X(I));break}case"profit_and_loss_by_classes":{const x=e,I=(x.sections.expenses?.balances?.length??0)>0?x.sections.expenses:null,P=(x.sections.income?.balances?.length??0)>0?x.sections.income:null,Y=I??P;Y?.additionalBalances!=null&&(m=Y.additionalBalances.map(Z=>X(Z)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(x=>X(x));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(x=>X(x));break}}return m.length>0&&m.find(x=>x.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};C.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:N,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:s,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:_t(),showClassAccountNumber:a};if(R==null||!Te($,e)||f===!0){const x=xs(e,m,y,f);b(e),j(x)}else{const x=cs(R,m,e,y);j(x)}},[d,e,f]),C.useEffect(()=>{R?.contentNodes!=null&&g?.(R.contentNodes)},[R,g]);const[k,M]=C.useState(5),O=m=>{const x=m+135;M(x)},A=m=>m?.trackPageLoaded(ws(e));return R!=null?o.jsxs(o.Fragment,{children:[o.jsx(mt,{analytics:n,onLoad:A}),o.jsx(_s,{height:k,children:o.jsx(Ft,{backgroundColor:new gt(S.colors.grey4),rootNodes:R,type:B,compareMode:w(),isSticky:{isStickyHeader:y,isStickyName:y},treeNodePadding:{left:Se.contentPaddingLeft.value(p),right:Se.contentPaddingRight.value(p)},treeRef:i,onAccountClick:u==null?void 0:(m,x,I)=>{u(m,x,I)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>c?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,x)=>r?.(e.reportId,m,x),onReportTableHeightChanged:O,onScroll:m=>l?.(e.reportId,m)})})]}):null}const xs=(e,t,s=!0,n=!1)=>{switch(e.reportId){case"profit_and_loss":return bs(e,t,s);case"profit_and_loss_by_classes":{const a=e;return a.classColumns!=null&&a.reportTitle==="Profit and Loss by Class"?hs(a,t):gs(e,t,s,n)}case"cash_flow":return us(e,t,s);case"balance_sheet":return ds(e,t,s);default:return}},ws=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return D.Event.profitAndLoss;case"cash_flow":return D.Event.cashFlow;case"balance_sheet":return D.Event.balanceSheet;default:return D.Event.reports}},Ss=h.div`
|
|
134
|
+
display: flex;
|
|
135
|
+
flex-direction: row;
|
|
136
|
+
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
137
|
+
justify-content: center;
|
|
138
|
+
width: 100%;
|
|
139
|
+
align-items: center;
|
|
140
|
+
`,Cs=h.div`
|
|
141
|
+
display: flex;
|
|
142
|
+
position: relative;
|
|
143
|
+
`,Rs=h(bt)`
|
|
144
|
+
padding: 12px;
|
|
145
|
+
color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
|
|
146
|
+
cursor: ${e=>e.isSelected?"default":"pointer"};
|
|
147
|
+
margin: ${e=>e.spaceAround?`0 ${_.sp4}`:0};
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
align-items: center;
|
|
151
|
+
&:hover {
|
|
152
|
+
color: ${e=>e.theme.colors.primary};
|
|
153
|
+
}
|
|
154
|
+
`,Os=h.div`
|
|
155
|
+
height: 2px;
|
|
156
|
+
background-color: ${e=>e.theme.colors.primary};
|
|
157
|
+
border-radius: 1px;
|
|
158
|
+
position: absolute;
|
|
159
|
+
bottom: 0;
|
|
160
|
+
left: 0;
|
|
161
|
+
transition: left 0.35s;
|
|
162
|
+
&.profit_and_loss {
|
|
163
|
+
width: 106px;
|
|
164
|
+
left: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&.profit_and_loss_by_classes {
|
|
168
|
+
width: 106px;
|
|
169
|
+
left: 0;
|
|
170
|
+
}
|
|
171
|
+
&.balance_sheet {
|
|
172
|
+
width: 114px;
|
|
173
|
+
left: 30%;
|
|
174
|
+
}
|
|
175
|
+
&.cash_flow {
|
|
176
|
+
width: 160px;
|
|
177
|
+
left: 63%;
|
|
178
|
+
}
|
|
179
|
+
`,vs=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return T.getLocalizedStrings().reportTitleById[e];default:throw new Error("Unsupported report")}};function Ts({reportId:e,isSelected:t,onClick:s}){return o.jsx(Rs,{"data-testid":F("reportSwitcher",e),onClick:()=>{t===!1&&s(e)},isSelected:t,spaceAround:e==="balance_sheet",children:vs(e)})}function As({reportIds:e,selectedReport:t,onReportSelectionChanged:s}){const n=a=>{s?.(a)};return o.jsx(Ss,{"data-testid":F("report-switcher-container"),children:o.jsx(Cs,{"data-testid":F("report-switcher-content"),children:e.map(a=>a!=="profit_and_loss_by_classes"&&o.jsxs("div",{children:[o.jsx(Ts,{reportId:a,isSelected:t===a,onClick:n}),o.jsx(Os,{className:`Slider ${t}`})]},`reportSegment-${a}`))})})}const W={contentContainerLeftRightMargin:new U(L[3],L[3],L[8]),contentRightPadding:new U(L[3],L[3],L[8]),tickSkeletonContainerWidth:new U(343,600,905,1240)},{collaboration:{threads:{placeholder:Ce,tooltip:Re,title:{comments:Bs}}}}=T.getLocalizedStrings(),ks=new U(4,4),$s=new U(4,4),Ls={selectedNumberOfPeriods:(e,t)=>e?$s.value(t):ks.value(t)},Ns=h.div`
|
|
180
|
+
display: flex;
|
|
181
|
+
flex: 1 1 auto;
|
|
182
|
+
min-height: 100%;
|
|
183
|
+
flex-direction: column;
|
|
184
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
185
|
+
`,js=h.div`
|
|
186
|
+
display: flex;
|
|
187
|
+
flex: 1 1 auto;
|
|
188
|
+
flex-direction: column;
|
|
189
|
+
height: calc(100vh - ${_.sp10});
|
|
190
|
+
margin: ${e=>`${_.sp2} ${_.sp0} ${_.sp0} ${W.contentContainerLeftRightMargin.valuePx(e.windowSize)}`};
|
|
191
|
+
`,Is=h.div`
|
|
192
|
+
display: flex;
|
|
193
|
+
width: 100%;
|
|
194
|
+
height: 100%;
|
|
195
|
+
flex-direction: row;
|
|
196
|
+
justify-content: center;
|
|
197
|
+
align-items: center;
|
|
198
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
199
|
+
`,Ms=h.div`
|
|
200
|
+
position: absolute;
|
|
201
|
+
margin-top: ${e=>e.windowSize==="small"?"230px":"195px"};
|
|
202
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
203
|
+
`,Fs=h.div`
|
|
204
|
+
display: flex;
|
|
205
|
+
width: 100%;
|
|
206
|
+
height: calc(100% - 60px);
|
|
207
|
+
flex-direction: column;
|
|
208
|
+
justify-content: center;
|
|
209
|
+
align-items: center;
|
|
210
|
+
`,Ps=h.div`
|
|
211
|
+
height: 96px;
|
|
212
|
+
width: 96px;
|
|
213
|
+
background: ${e=>e.theme.colors.background};
|
|
214
|
+
border-radius: 50%;
|
|
215
|
+
cursor: pointer;
|
|
216
|
+
& svg {
|
|
217
|
+
margin: ${_.sp5};
|
|
218
|
+
color: ${e=>e.theme.colors.grey1};
|
|
219
|
+
}
|
|
220
|
+
&:hover {
|
|
221
|
+
& svg {
|
|
222
|
+
color: ${e=>e.theme.colors.primary};
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
`,Vs=h(lt)`
|
|
226
|
+
margin-top: ${_.sp3};
|
|
227
|
+
color: ${e=>e.theme.colors.hero};
|
|
228
|
+
`,De=({style:e,isLoading:t})=>t?o.jsx(Is,{style:e,children:o.jsx(ct,{size:"ExtraLarge",start:!0})}):null,G=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},ze=e=>{if(e.selectedReport==="profit_and_loss_by_classes"&&e.profitAndLossClassesViewReport?.uiState.classViewLayout==="horizontal"){const t=e.profitAndLossByClassHorizontalReport;return t.selectedPeriod!=null?t:G(e)}return G(e)},re=({selectedReport:e,isCompareModeOn:t,windowSize:s})=>{const n=e.availableNumberOfPeriods;let a=Ls.selectedNumberOfPeriods(t,s);return n!=null&&(a=Math.min(a,n)),a};function Co(e){const t=le(),s=ce(),n=Qe(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:c,onAdditionalBalanceSelectionChanged:u,onTimeframeSelectionChanged:l,isCompareMode:r,selectedReportAndTimeframeFetchState:d,onClickMenuIcon:f,isReportsCommentingEnabled:g,initialOpenThreadRequest:i}=e,p=e.isZeniUser??!1,S=n?.currentTenant?.companyId,R=n?.currentTenant?.companyName??"",j=g===!0&&S!=null,$=`dashboard_${S}`,b=p?et:tt,{threads:y,isLoading:B,requestToOpenThread:N,setRequestToOpenThread:w,setOpenThread:k}=C.useContext(b);C.useEffect(()=>{i?.threadId!=null&&i?.companyId!=null&&i?.entityType!=null&&w(i)},[i,w]);const[M,O]=C.useState(!1),A=C.useMemo(()=>({application:"dashboard",companyId:S,tab:"standard_report",isGlobalComment:!1}),[S]),m=C.useMemo(()=>{const v=st(y,A,"both");return Array.from(v.values())},[y,A]),x=C.useMemo(()=>m.filter(v=>v.resolved===!1),[m]).length,I=C.useCallback((v,E)=>{O(!1),w({threadId:E,companyId:v.companyId,entityType:v.entityType,threadMetadata:v})},[w]),[P,Y]=C.useState(void 0),Z=C.useRef(null),Ye=C.useCallback(v=>{Y(v)},[]),Ge=C.useCallback(v=>{Z.current?.scrollToItem(v,"center")},[]);At({requestToOpenThread:N,setRequestToOpenThread:w,setOpenThread:k,allThreads:m,selectedReport:e.selectedReport,onReportSelectionChanged:e.onReportSelectionChanged,reportTreeRootNodes:P,nodeCollapseState:ze(e).uiState.nodeCollapseState,onExpandNode:e.onElementCollapseStateChanged,scrollToNode:Ge});const We=C.useMemo(()=>({companyId:S??"",companyName:R,entityType:"standard_report.details",entityId:S??"",isGlobalComment:!1,application:"dashboard",tab:"standard_report",url:window.location.href}),[S,R]),He=(v,E)=>{v!==q?.accountViewMode&&a?.(v),E&&c?.(E)};C.useEffect(()=>{const v=e.selectedReport==="profit_and_loss_by_classes"&&e.profitAndLossClassesViewReport?.uiState?.classViewLayout==="horizontal";if(e.fetchState==="Completed"&&!v){const E=G(e).filter?.additionalBalances??[];e.onUpdateHighlightedNumberOfPeriods?.(E,e.isCompareMode,re({selectedReport:G(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe??[])}},[t,e.fetchState]);const q=zs(e),Ze=T.getLocalizedStrings().reports.common,qe=n!=null&&be(n.loggedInUserRole)?"detailed":"more_detailed",te=n!=null&&be(n.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&q?.accountViewMode==="account_group"&&te.push("detailed");const[Xe,Ke]=Be.useState(te.includes("more_detailed")?"detailed":"more_detailed"),Je={selectedFormat:Xe,disabledFormatForRole:te,roleBasedClassesSelectedFormat:qe,setSelectedFormat:Ke};if(d.fetchState==="Error"||e.fetchState==="Error")return o.jsxs(Fs,{"data-testid":F("report-page-error-reload-page"),children:[o.jsx(Ps,{"data-testid":F("report-page-error-reload-icon"),onClick:e.onReloadReport,children:o.jsx(ot,{})}),o.jsx(Vs,{children:Ze.failed})]});const fe=e.fetchState;if(d.fetchState!=="Completed"&&(fe==="In-Progress"||fe==="Not-Started"))return o.jsx(De,{isLoading:!0});{const v=o.jsx(nt,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:q!=null&&e.dataAvailable!=null?o.jsx(It,{defaultOptions:q,analytics:e.analytics,referrer:z(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:Je,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:He,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(se,oe,ne)=>{u(r,se,oe,ne)},onTimeframeSelectionChanged:(se,oe,ne)=>{l?.(se,oe,ne)}}):o.jsx(o.Fragment,{})}}}),E=o.jsxs(qs,{children:[j?o.jsxs(Xs,{onClick:()=>O(!0),"data-testid":F("reports-page-comment-button"),children:[o.jsx(at,{count:B?void 0:x,isLoading:B,style:{left:"12px"}}),o.jsx(Ks,{})]}):null,v]});return o.jsxs(o.Fragment,{children:[o.jsxs(Ns,{children:[o.jsx(it,{title:T.getLocalizedStrings().reports.title,backgroundColor:s.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:f,rightSideComponent:E,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),o.jsx(Es,{...e,onTreeNodesReady:Ye,treeRef:Z})]}),j?o.jsx(yt,{id:$,children:o.jsx(rt,{isDrawerOpen:M,allowComposer:!0,drawerTitle:Bs,threads:m,filter:A,autoExpand:!0,autoFocus:!1,isLoading:B,textOverrides:{composerPlaceholder:Ce.addANewComment,replyComposerPlaceholder:Ce.replyAComment,threadResolve:Re.resolveComment,threadUnResolve:Re.unResolveComment},threadMetadata:We,onThreadClick:I,onCloseAllThreadsDrawer:()=>O(!1),drawerSectionStyle:{width:t==="small"?"100%":"400px",boxSizing:t==="small"?"border-box":"content-box"},collapsibleThreadStyle:{width:t==="small"?"100%":"360px"}})}):null]})}}function Es(e){const t=le(),s=ce(),n=C.useRef(null),{selectedReportAndTimeframeFetchState:a}=e,c=["month","quarter","year"],u=(b,y)=>{b!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(b),y&&e.onUpdateClassesToFilterOut?.(y)},l=G(e),r=n.current?.clientWidth??W.tickSkeletonContainerWidth.value(t),d=xt([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",f=a.fetchState==="In-Progress",g=e.profitAndLossClassesViewReport?.uiState,i=e.isHorizontalClassReportSwitchEnabled!==!1&&e.selectedReport==="profit_and_loss_by_classes"&&g?.accountViewMode==="classes",p=i&&g?.classViewLayout==="horizontal"&&e.onCOABalancesRangeChanged!=null&&a.fetchState==="Completed",S=i&&g?.classViewLayout==="horizontal",R=(b,y)=>{e.analytics?.trackCompareFilterChange(b==="this_period_vs_last_period_percent"?"percentage":"amount",z(e.selectedReport),K(e.selectedTimeframe),y);const B=Array.from(new Set(b==="this_period_vs_last_period_percent"?[...l.filter.additionalBalances,"this_period_vs_last_period_percent"].filter(N=>N!=="this_period_vs_last_period"):[...l.filter.additionalBalances,"this_period_vs_last_period"].filter(N=>N!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,B,re({selectedReport:l,isCompareModeOn:e.isCompareMode,windowSize:t}))},j=T.getLocalizedStrings().reports,$=e.analytics!=null?(b,y,B)=>{y===!0&&e.analytics?.trackCompareFilterTimeFrame(b,K(e.selectedTimeframe),"range filter",B),e.analytics?.trackDateRangeFilterChange(b,"range filter",y,B)}:void 0;return o.jsxs(js,{windowSize:t,"data-testid":F("reports-page-content-container"),children:[o.jsx(Gs,{windowSize:t,ref:n,children:o.jsx(jt,{timeframe:{allowedTimeframes:c,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:b=>{e.analytics?.trackTimeframeSwitch(K(b),z(e.selectedReport)),e.onTimeframeSelectionChanged?.(b,!0)}},toggle:{label:T.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,isToggleDisabled:S,onValueChanged:b=>{e.analytics?.trackCompareMode(b,z(e.selectedReport),K(e.selectedTimeframe));const y=l.filter;e.onAdditionalBalanceSelectionChanged?.(b,y.additionalBalances,y.balancesRange.numberOfPeriods)}},secondaryToggle:i?{label:j.horizontalClassLayoutSwitch,isOn:g?.classViewLayout==="horizontal",onValueChanged:b=>{e.onUpdateClassViewLayout?.(b?"horizontal":"vertical")}}:void 0,secondaryToggleDataTestId:F("reports-horizontal-class-layout-switch")})}),a.fetchState==="Not-Started"||a.fetchState==="In-Progress"?o.jsx(Ws,{windowSize:t,children:o.jsx(Hs,{children:o.jsx(pt,{width:r,height:Q-L[2],backgroundColor:s.colors.grey3,style:{borderRadius:_.sp2}})})}):p&&e.onCOABalancesRangeChanged!=null?o.jsx(ve,{windowSize:t,children:o.jsx(is,{allTimeframeTicks:e.allTimeframeTicks,bookCloseDate:l.bookCloseDate,firstMonthOfFY:l.firstMonthOfFY,onCOABalancesRangeChanged:e.onCOABalancesRangeChanged,onDateRangeAnalytics:$,isCompareMode:e.isCompareMode,referrer:z(e.selectedReport),selectedCOABalancesRange:e.selectedCOABalancesRange,selectedTimeframe:e.selectedTimeframe,variant:"timeRangeSlider"})}):o.jsx(ve,{windowSize:t,children:o.jsx(kt,{firstMonthOfFY:l.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Oe(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Oe(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(b,y)=>{e.analytics?.trackDateRangeFilterChange(z(e.selectedReport),"range filter",e.isCompareMode,ae(l.firstMonthOfFY,e.selectedTimeframe,y)),e.onThisPeriodChanged?.(y,re({selectedReport:l,isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:b=>{const y=Ds(e.allTimeframeTicks,b.fromEnd);e.analytics?.trackDateRangeFilterChange(z(e.selectedReport),"range filter",e.isCompareMode,ae(l.firstMonthOfFY,e.selectedTimeframe,y.thisPeriod)),e.onCOABalancesRangeChanged?.(y)}})}),o.jsx(Zs,{windowSize:t,children:o.jsx(As,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:b=>{e.analytics?.trackPageLoaded(Us(b)),b==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(b)}})}),a.fetchState==="Not-Started"||a.fetchState==="In-Progress"?o.jsx(De,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:f}):o.jsxs(o.Fragment,{children:[o.jsx(Ue,{report:ze(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:R,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:d,onTreeNodesReady:e.onTreeNodesReady,treeRef:e.treeRef}),wt(e.selectedReport)?o.jsx(Ms,{windowSize:t,children:o.jsx(Bt,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:u,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:d,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const Oe=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let s=e.length-1;return t.thisPeriod!=null&&(s=e.findIndex(n=>n.startDate.isSame(t.thisPeriod.startDate,"date")&&n.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(s+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},Ds=(e,t)=>{const s=e.length-1-t.offsetFromEnd;return{thisPeriod:e[s],numberOfPeriods:t.length,orderBy:"ascending_date"}};function zs(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const l=e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes"&&e.profitAndLossClassesViewReport.uiState.classViewLayout==="horizontal",r=e.profitAndLossByClassHorizontalReport.headerBalances[0];if(l===!0&&r!=null)t=r;else{const d=e.displayOrder,f=e.profitAndLossReport.sections.expenses,g=e.profitAndLossReport.sections.income,i=f?.balances?.length??0,p=f!=null&&i>0?f:g;if(p!=null&&(p.balances?.length??0)>0){const S=p.balances??[],R=d==="ascending_date"?S.length-1:0;t=S[R]}}}const s=G(e),n=s.firstMonthOfFY,a=s.bookCloseDate,c=s.dataAvailable,u=s.filter.additionalBalances;if(t!=null)return{localeId:T.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:n,bookCloseDate:a,dataAvailable:c,timeframe:e.selectedTimeframe,additionalBalances:u,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed,classViewLayout:e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes"?e.profitAndLossClassesViewReport.uiState.classViewLayout:"vertical"}}const z=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},Us=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return D.Event.profitAndLoss;case"cash_flow":return D.Event.cashFlow;case"balance_sheet":return D.Event.balanceSheet;default:return D.Event.reports}},Ue=Be.memo(ys,(e,t)=>Ys(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));Ue.displayName="Reports table";const Ys=(e,t,s)=>s.reduce((n,a)=>n===!0&&Te(e[`${a}`],t[`${a}`]),!0),Gs=h.div`
|
|
229
|
+
padding-right: ${e=>W.contentRightPadding.valuePx(e.windowSize)};
|
|
230
|
+
`,ve=h.div`
|
|
231
|
+
margin-top: ${_.sp3};
|
|
232
|
+
padding-right: ${e=>W.contentRightPadding.valuePx(e.windowSize)};
|
|
233
|
+
`,Ws=h.div`
|
|
234
|
+
margin-top: ${_.sp3};
|
|
235
|
+
padding-right: ${e=>W.contentRightPadding.valuePx(e.windowSize)};
|
|
236
|
+
`,Hs=h.div`
|
|
237
|
+
display: flex;
|
|
238
|
+
flex-direction: row;
|
|
239
|
+
justify-content: flex-start;
|
|
240
|
+
min-height: ${Q}px;
|
|
241
|
+
box-sizing: content-box;
|
|
242
|
+
width: 100%;
|
|
243
|
+
align-items: center;
|
|
244
|
+
justify-content: center;
|
|
245
|
+
`,Zs=h.div`
|
|
246
|
+
margin-top: ${_.sp4};
|
|
247
|
+
padding-right: ${e=>W.contentRightPadding.valuePx(e.windowSize)};
|
|
248
|
+
`,qs=h.div`
|
|
249
|
+
display: flex;
|
|
250
|
+
flex-direction: row;
|
|
251
|
+
align-items: center;
|
|
252
|
+
gap: ${_.sp5};
|
|
253
|
+
`,Xs=h.div`
|
|
254
|
+
display: flex;
|
|
255
|
+
align-items: center;
|
|
256
|
+
justify-content: center;
|
|
257
|
+
position: relative;
|
|
258
|
+
cursor: pointer;
|
|
259
|
+
color: ${e=>e.theme.colors.hero};
|
|
260
|
+
&:hover {
|
|
261
|
+
color: ${e=>e.theme.colors.primary};
|
|
262
|
+
}
|
|
263
|
+
`,Ks=h(dt)`
|
|
264
|
+
display: flex;
|
|
265
|
+
width: ${_.sp4};
|
|
266
|
+
height: ${_.sp4};
|
|
267
|
+
align-items: center;
|
|
268
|
+
justify-content: center;
|
|
269
|
+
`;export{Co as default};
|