@zeniai/web-cockpit-ui 1.15.41-qa → 1.15.42-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-DF16gWgj-Hpn_gqDU.js +21 -0
- package/dist/assets/{AIPerformancePage-PNdYt7zU-CCfuxILG.js → AIPerformancePage-C4vz8N43-CRGg0PbR.js} +41 -41
- package/dist/assets/AccountInfoPage-BEfWt7FF-DKS41VFv.js +18 -0
- package/dist/assets/{AccountInfoPageContent-ByDC4GDX-Dqc4SPDG.js → AccountInfoPageContent-ChU5cJoQ-D9IyZyne.js} +20 -20
- package/dist/assets/AccountLockedInfoModal-nR2S2Zp3-D-cVlgUn.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-C3eByWLq-C6RBkRVB.js → AccountReconDetailsDrawerPage-CX_r0vhF-C1q9rEkK.js} +49 -49
- package/dist/assets/{AccountRow-H8lG1wjG-BENCFocK.js → AccountRow-sz0SNySJ-PMcRks2g.js} +20 -20
- package/dist/assets/{AccountsPromoCardStack-DACW0OlS-D7dbT3SC.js → AccountsPromoCardStack-B7XZ57f9-CVIKbG9H.js} +26 -26
- package/dist/assets/AddAddressForCardDrawer-BJ-fZGjY-BgqrlNw3.js +6 -0
- package/dist/assets/{AddToWalletPage-CXsdXmY4-DqUKB32H.js → AddToWalletPage-DGRSRVWe-CKFgsCEX.js} +22 -22
- package/dist/assets/{AgingReportsPage-G-3_Pd0O-DSzSGoMU.js → AgingReportsPage-DMExghvs-CycrXnxr.js} +4 -4
- package/dist/assets/{AllUserItems-C87o610O-C4ngO1W2.js → AllUserItems-DryGxINS-Dfji-7g8.js} +9 -9
- package/dist/assets/ApAgingDetailPage-DGx58n1N-BTsjh3-_.js +46 -0
- package/dist/assets/{AppBasePage-CVtUuOcc-D8Jp442P.js → AppBasePage-CNTgjZKQ-wPJItjxh.js} +7 -7
- package/dist/assets/{AppDrawerContent-f9CovWwx-CRmwucEK.js → AppDrawerContent-BWPrhBXi-xs-4ykwH.js} +5 -5
- package/dist/assets/{ApprovalRulesSettingsPage-MV9MWn1n-B_Gy9F2m.js → ApprovalRulesSettingsPage-d_j1Of5B-Drv5uoVo.js} +3 -3
- package/dist/assets/{ArAgingChart-Bn1ne5TY-gOLToFjY.js → ArAgingChart-OG8ATXHG-BPTtTowJ.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-LrJ7ab5--DpGQFGj1.js → ArAgingDetailPage-BPgtjmm2-3KI_6Cxg.js} +1 -1
- package/dist/assets/{AttachmentView-40S92NKz-O72HtTZp.js → AttachmentView-DTHxVIEf-OlbTumHp.js} +8 -8
- package/dist/assets/{BankAccountSection-BqHvCCIV-cPbSA8Xj.js → BankAccountSection-CJlVvGHg-BpmPk2BK.js} +3 -3
- package/dist/assets/{BankAccountWarningSection-BhYGVsUP-Bgxn65RB.js → BankAccountWarningSection-DVVX_lU2-YGd3zWAN.js} +4 -4
- package/dist/assets/{BankConnectionsSettingsPage-DXdPI9zA-DT9EhfPP.js → BankConnectionsSettingsPage-tN8-HD1P-CjUFfCmd.js} +25 -25
- package/dist/assets/BillDetailPage-Bm_TJJ2g-zy6sbh4h.js +266 -0
- package/dist/assets/{BillPayApprovalRuleDetailPage-CfqhwDf0-DCyv7vx2.js → BillPayApprovalRuleDetailPage-DtdRRgcR-CI7_XiGE.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-BYFmAM12-pZa4t15e.js → BillPayApprovalRulesPage-D7pP_-16-BPbHVQJF.js} +13 -13
- package/dist/assets/BillPayPromoPage-BEUu8_p_-CdxN39Ja.js +84 -0
- package/dist/assets/{BillPaySetUpPage-DWl8Zqs1-uZakaQ8Q.js → BillPaySetUpPage-BhUjqdEO-D4O_Ti0B.js} +4 -4
- package/dist/assets/BillingSettingsPage-BPRhivDv-C05om7fp.js +44 -0
- package/dist/assets/BillsBulkReviewDrawerPage-CKS2cRrv-BkJLG09t.js +1 -0
- package/dist/assets/{BoxItem-Ce8JhxRe-M9xWkSbH.js → BoxItem-BeIteKFb-Ib8SQzK0.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DBUiYheW-CjRSQJ04.js → BusinessVerificationPage-Djw-kSvA-C_VqSsA_.js} +6 -6
- package/dist/assets/{CardNumberSubText-1VICaGZC-D3RqCdk-.js → CardNumberSubText-D7w7pNlf-px0UUmwV.js} +1 -1
- package/dist/assets/{CashbackDetailPage-D9MFQhkK-DId8X-0z.js → CashbackDetailPage-DiEz5YX_-8CUn3oj8.js} +18 -18
- package/dist/assets/{ChargeCardDetailPage-DPLktTU0-D-hVAQ2P.js → ChargeCardDetailPage-46d4rGgi-C8VEOYGw.js} +53 -53
- package/dist/assets/{ChargeCardListPage-PJbJVy9B-C7swXn1_.js → ChargeCardListPage-DQgEFDxx-CRF2CXoG.js} +16 -16
- package/dist/assets/{ChargeCardListTable-B7Jltqnn-lu4L-KiX.js → ChargeCardListTable-CAdFvZrg-ZDs6pP1D.js} +30 -30
- package/dist/assets/{ChargeCardPaymentHistoryPage-CY9nng7V-DMOUwpBt.js → ChargeCardPaymentHistoryPage-BVFfqwea-BY1rljaa.js} +36 -36
- package/dist/assets/{ChargeCardPromoPage-CQJ-q6d9-CAZVMp3A.js → ChargeCardPromoPage-N1x7DoZ4-C2G2NFcL.js} +25 -25
- package/dist/assets/{ChargeCardSetupPage-BjYXhI41-1PD6oZTx.js → ChargeCardSetupPage-DjoSNPoV-B95V0M5O.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-BJhMyv01-C4iLvalo.js → ChargeCardStatementsPage-CKWgdycu-Bzkf2xU2.js} +5 -5
- package/dist/assets/{CheckDepositDrawerPage-BDUc5zew-CPIt8X_J.js → CheckDepositDrawerPage-C6eutpsP-BJgM-nd0.js} +8 -8
- package/dist/assets/{CollapsableReportTable-CRZijlLw-DrP1MH6t.js → CollapsableReportTable-DQitA-HH-D-ytul6z.js} +86 -86
- package/dist/assets/{CompanyOfficerDetailsSection-DBN5fsfV-BQ3P2-gb.js → CompanyOfficerDetailsSection-BusB8QML-ByGBO89M.js} +15 -15
- package/dist/assets/{CompanyPassportCard-DY-UpT4X-C4b0dPrE.js → CompanyPassportCard-Dwq6U23E-Dff0N9f5.js} +2 -2
- package/dist/assets/{CompanyPassportPage-B0lEp15Z-1i_bghIC.js → CompanyPassportPage-a7p7-Yf7-BH2Ltdk_.js} +23 -23
- package/dist/assets/{CompleteProfile-DkXUTjrQ-Db_nzBJO.js → CompleteProfile-Be83xc7S-DF09SnKJ.js} +1 -1
- package/dist/assets/ConfettiBurst-BGpaNgtO-BA4--k5u.js +1 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-CfTvgjDM.js → ConstrainedInnerElement-BeIpAPjB-B_QUqBfd.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-hAG6iJks-lkeljyMv.js → CreateOrEditVendorPage-CNOoNMGf-xbewlduj.js} +19 -19
- package/dist/assets/{CreditCardPaymentDrawerPage-CLche8ye-C_34ZvNa.js → CreditCardPaymentDrawerPage-BJFiaA8N-y9d5BoI2.js} +14 -14
- package/dist/assets/{CurrencySelectField-Cps-E4RZ-d5qF8fSQ.js → CurrencySelectField-QL-EZiuT-_bjNCxiF.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-B8EI1b3X-Dj6Y4Uh4.js → CustomerOnboardingActivationPage-ChFLc-Bh-CMWmLAhY.js} +6 -6
- package/dist/assets/CustomerOnboardingContainerPage-CiWilmvy-BSdTk0pn.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Cjdz022F-BQzlWrkT.js → CustomerOnboardingDetailPageSkeleton-ByAYHyM5-BTUKD21M.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-BM3Ty0A--DIbMLpTU.js → CustomerOnboardingNoStepsPage-CJlf2BxW-CHRKjivu.js} +4 -4
- package/dist/assets/{CustomerOnboardingPage-D4cNTYTi-C42KbQXa.js → CustomerOnboardingPage-CZpYM2Um-DmldBx57.js} +14 -14
- package/dist/assets/{CustomerOnboardingProductSuitePage-BRg-6X__-DdNSpQ-6.js → CustomerOnboardingProductSuitePage-Bua-efZZ-DTLtNPox.js} +3 -3
- package/dist/assets/{Dashboard-hAvH2Ujo-B6IP_j2j.js → Dashboard-Bo3YLWim-DCvqfujn.js} +66 -66
- package/dist/assets/{DashboardReportPage-BnsfrJs5-BPhqM0F_.js → DashboardReportPage-DxLBSScH-DzuVjp6S.js} +10 -10
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CD-912fm-Dh1jPxOd.js → DashboardSidebarBackgroundAnimation-D9jy0E3J-CnJYb7sN.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BSjRIT76-BTmXhvMG.js → DepositAccTransactionItem-BUSuSCOR-65UinRer.js} +4 -4
- package/dist/assets/{DepositAccTransactionListPage-CMHZmCaF-BFddyBE8.js → DepositAccTransactionListPage-CIDmP_Ig-B_Y_F7VT.js} +9 -9
- package/dist/assets/{DomesticWireDetailsPage-B7IcmJ5S-CtbOrFFy.js → DomesticWireDetailsPage-1JafGpxq-uSG1nT_5.js} +1 -1
- package/dist/assets/{DownloadOverlay-DLdu2VQ3-KjQqw4XR.js → DownloadOverlay-DUYftI-h-D71rp7yz.js} +11 -11
- package/dist/assets/{DrawerPage-CVKJUV0d-1VrLf85V.js → DrawerPage-Br7Spm_D-pQ8sZx88.js} +7 -7
- package/dist/assets/EditPeoplePage-CGYR3lrg-DoWF8etD.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage--Sw7PT5v-ByroxrFy.js → EditReimbursementDetailPage-DMMdfkh8-Bucax6Ut.js} +156 -156
- package/dist/assets/EntityDetailPage-DYtL_p8R-GD_XakVz.js +18 -0
- package/dist/assets/{EntitySummarySection-BwfqmMJf-Ck--pC9e.js → EntitySummarySection-BqbaP86G-DpA6l5fM.js} +30 -30
- package/dist/assets/{ExpenseAutomationOverviewPage-EuWSUhAA-S_zuNRXY.js → ExpenseAutomationOverviewPage-CrXiwOR2-YbYbnS7Q.js} +17 -17
- package/dist/assets/{ExpenseAutomationPage-CNl1S9Aa-mhJaMF4M.js → ExpenseAutomationPage-Nf_8Kyie-CTvPgCHn.js} +47 -47
- package/dist/assets/{ExpressPayPage-CbWuzpCW-DS_V3c-F.js → ExpressPayPage-UQwsM48P-D7O-_G73.js} +17 -17
- package/dist/assets/{FeaturePreviewPage-HWLnhB9a-DXJxcpnb.js → FeaturePreviewPage-BRPcuukW-BStEym9y.js} +2 -2
- package/dist/assets/{FollowStepsSection-CVX6zX9Q-0JaUuRFv.js → FollowStepsSection-zLVY0Bxj-CS04bdSf.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-HEPGnrBi-D4pu4wAE.js → GlobalReviewListPage-Dm_qc_Yw-DaZA8sHm.js} +13 -13
- package/dist/assets/{InformationCardStack-BC-wYnqn-CDHpu8rR.js → InformationCardStack-C7jQmHes-CWd2nkLz.js} +4 -4
- package/dist/assets/{InsightsCardStack-Buh7Rj7W-B-XFnTbj.js → InsightsCardStack-CBrXK6na-CLYhX1B-.js} +9 -9
- package/dist/assets/{InsightsSection-uT4QX3iw-B1Mb62vw.js → InsightsSection-D_hTz1-h-EcLzFnt2.js} +4 -4
- package/dist/assets/{IntegrationsSettingsPage-np4iMqIF-BOXlm3x-.js → IntegrationsSettingsPage-B3BcOzu1-DFtNOGVa.js} +10 -10
- package/dist/assets/{InternationalWireSwiftDetailsPage-CRFIo4Oj-CKmgCCwr.js → InternationalWireSwiftDetailsPage-CMrSLhcq-xqjqhVUP.js} +17 -17
- package/dist/assets/InternationalWireVerificationPage-D8lqdsVG-CS33qqLD.js +65 -0
- package/dist/assets/{InviteFormPage-CVVm61Xb-DTfuiXCS.js → InviteFormPage-Cb6yA36Y-j5-QPPFw.js} +30 -30
- package/dist/assets/{InvitePageListView-Bhv5fpSY-BrVz8pRa.js → InvitePageListView-CvAYZn3w-BGjtLryq.js} +52 -52
- package/dist/assets/InvitePeoplePage-B3HP9bgz-C0119Ywd.js +12 -0
- package/dist/assets/{InvoiceUploadSection-DBvyatKK-CJBMM0Za.js → InvoiceUploadSection-BV69g_45-C0jQPqw-.js} +10 -10
- package/dist/assets/{IssueChargeCardPage-DzAyBn8c-mXHywZLA.js → IssueChargeCardPage-DC8gfsh9-C09x3l5G.js} +32 -32
- package/dist/assets/{LabeledAddressValue-BHuN9hmS-xGzDkCtS.js → LabeledAddressValue-DcHYCO3r-yN6DyHDi.js} +2 -2
- package/dist/assets/LabeledAddressValueField-COLiEu2C-u-zbSv3w.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-CRR6Iscv-DujcJdM4.js → LabeledControlledCheckBoxField-B258oHta-DFq5Q_Wk.js} +2 -2
- package/dist/assets/{LabeledCountryMultiSelectField-BWfPhvMM-pDpHMyTS.js → LabeledCountryMultiSelectField-CDN3Cboj-DwWKggpi.js} +12 -12
- package/dist/assets/{LabeledCreatableSingleSelectField-CbmnDlQX-Bud0UcHP.js → LabeledCreatableSingleSelectField-5NsKlfNx-BEfEdG1_.js} +4 -4
- package/dist/assets/LabeledDocumentField-DNh366no-DrAn5iL2.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-CLHaeBmo-Dbz-uAbc.js → LabeledDropDownFormattedTextField-BEox9eFP-Cs6wSzGo.js} +7 -7
- package/dist/assets/LabeledText-BNEHh2ZI-BfrNdALD.js +42 -0
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DYAtBZjB-BW2S_3jE.js → LabeledUserSingleSelectWithSubtitlesField-BoYac4nN-CnfvrnWB.js} +18 -18
- package/dist/assets/{LabeledZeniRolesDropDownField-B7Z3Kefm-D8ICt4Pk.js → LabeledZeniRolesDropDownField-BL1wek8m-DLuVqXVU.js} +20 -20
- package/dist/assets/LinkJETransactionPage-KkB2mCGz-DD79uSY5.js +98 -0
- package/dist/assets/{LockCardPage-DG1icW3l-BrBrLoqr.js → LockCardPage-BBPoahE6-DjuGLIgr.js} +219 -219
- package/dist/assets/LowBalancePopup-BFU-BVK9-DWsdSBOg.js +34 -0
- package/dist/assets/MagicLinkACHDetailsPage-voSZCbPS-Bu01L_aV.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-evB-Fia6-Ddjk2plz.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-ChjLt6BQ-C6H3R4f0.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-DH2RMNDM-2yEu43__.js → MagicLinkSuccessPage-BL0Twa3Z-yp-cCoVI.js} +6 -6
- package/dist/assets/{MagicLinkTitleSection-B_lsWLaB-6l0Q2ZDr.js → MagicLinkTitleSection-C8EEgV19-CiX4xfZT.js} +4 -4
- package/dist/assets/MailingDetailsSection-DT2vh6CT-CCScgjq2.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-D4QR9tUf-AE5_I3cP.js → MyBankConnectionsSettingsPage-BvZhVteo-C2c-74lS.js} +12 -12
- package/dist/assets/MyPendingActivationChargeCardListPage-D2EL0Jp--BWDRXrvv.js +6 -0
- package/dist/assets/{MyProfileSettingsPage-CSaNSpuq-H-vs8ioV.js → MyProfileSettingsPage-3QGlUKp1-z7Bwqz5C.js} +7 -7
- package/dist/assets/{NavBarWithPicker-Zs67Xuo1-Bwvf2TqD.js → NavBarWithPicker-BXubFmkR-D51S0MSd.js} +3 -3
- package/dist/assets/{NavigationArrow-gJivTrEy-CJYJcp3Q.js → NavigationArrow-DvI-yhxJ-DlVsGta8.js} +1 -1
- package/dist/assets/{NavigationDots-DTQZxPoW-LNb-u25P.js → NavigationDots-CPlwYOx--BPMPlnpv.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BI5z7cVi-Drg8AloH.js → NewGlobalMerchantPage-CXC3nRf0-Bx5yZmxN.js} +12 -12
- package/dist/assets/{NoDataChart-CKYUeTCs-DvkQx1V0.js → NoDataChart-DTVuSEdu-BkUYV-TV.js} +1 -1
- package/dist/assets/{NoDataTable-CwJmhtK3-CCNoQlOZ.js → NoDataTable-Bgt6dZEF-B3972AwQ.js} +1 -1
- package/dist/assets/{NotFoundPage-Bxs-YzV4-CpCxTN11.js → NotFoundPage-B2B4aoo2-BW-s5AV5.js} +8 -8
- package/dist/assets/{NotificationSettingsPage-DMYs6gdm-BlfmU3ul.js → NotificationSettingsPage-B5kEZN6p-CIJZlZ4H.js} +33 -33
- package/dist/assets/{NotificationsListConfig-BHt9OVz6-BKDTXb1o.js → NotificationsListConfig-lOoxcslt-BhnQjQWG.js} +1 -1
- package/dist/assets/NotificationsPage-CTHg82VM-CwBM4vUS.js +685 -0
- package/dist/assets/{OpExByVendorPage-D-0--y-d-DMlLcW9P.js → OpExByVendorPage-CXmqL8sH-BK8_o8ls.js} +5 -5
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-E92SHML4.js → OverlayContainerPage-D4QU0p4o-CSiWE48U.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BgBplnz_-ChEt9BF6.js → PandLWithForecastPage-DbZpKElK-Dy4zdedl.js} +11 -11
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-C6JM3mQz-CgsGFkzx.js → PaymentAccountSetupBillingAddressSection-CJRhGAtG-D2ukn4NZ.js} +6 -6
- package/dist/assets/{PeoplePage-1Aa0j1Br-D63RAfrN.js → PeoplePage-CJri4xlX-CEfPFRxE.js} +15 -15
- package/dist/assets/{Preview-CfPlLM4U.js → Preview-0sAWcABs.js} +1 -1
- package/dist/assets/{ProductsCarousel-BR9igDN--4qcjyVm7.js → ProductsCarousel-DtmKoNz3-BSbpVJVt.js} +2 -2
- package/dist/assets/{PromoBaseCards-B-dCLfsi-omMrAFa4.js → PromoBaseCards-g6j_z80f-C2Bai70y.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-Dc2r7Qhk-9XcCUrWN.js → QBOConnectionDialog-BwKmOICb-D3Jo-Vlf.js} +4 -4
- package/dist/assets/{QBOSetupSection-Bhvg13n4-BS4MZWmI.js → QBOSetupSection-BN8o3dwu-DHQTxOlT.js} +12 -12
- package/dist/assets/ReimbursementApprovalRuleDetailPage-C5s_8IJ8-CPJIVNh1.js +32 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-BtaFR_-R-DT_IS0Mc.js → ReimbursementApprovalRulesPage-BvvOob8U-DEiVU8X7.js} +2 -2
- package/dist/assets/ReimbursementDetailPage-BVFGrEhN-B7_bgdSj.js +314 -0
- package/dist/assets/ReimbursementPromoPage-dsgbajZ6-CWCF7N7b.js +84 -0
- package/dist/assets/{ReimbursementSetUpPage-CesV38Tv-CAsx1rGC.js → ReimbursementSetUpPage-0AMBarqS-CiwiIoY4.js} +9 -9
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BuK15ipi-jsvxMTC-.js → ReimbursementsBulkReviewDrawerPage-L0YmO2qY-DQjnniUJ.js} +1 -1
- package/dist/assets/{ReloadCard-DCA58Z6d-lxJyT6Aq.js → ReloadCard-Dketoj2r-tAJXPFMi.js} +2 -2
- package/dist/assets/{ReportTableViewSelector-Bcxl71KP-GS5y6Ng3.js → ReportTableViewSelector-DmDzw4yW-D1HeX13c.js} +5 -5
- package/dist/assets/{ReportsPage-DrxIUX8S-BX-Ugn1O.js → ReportsPage-DPrhnmvb-D0g4apvT.js} +6 -6
- package/dist/assets/{RevenueChart-BIWVGs6F-HTYxOFNe.js → RevenueChart-CDrGsGOU-CIlC5CYF.js} +8 -8
- package/dist/assets/{ReviewDetailsPage-C3dqUSg--Cpk2HBlF.js → ReviewDetailsPage-DjbAwLAN-B0q2mTzL.js} +18 -18
- package/dist/assets/{ReviewOverlay-Cag-4B4Y-D1ezdBpL.js → ReviewOverlay-Ws6-5o0Z-DJX77Zrm.js} +9 -9
- package/dist/assets/RoleWithToolTip-vxNCa6FT-LxVETf1F.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-ikCFA0w0-2eZV-mSh.js → ScheduleDetailsFixedAssetsPage-B2Y0ri0_-D9zabCxc.js} +4 -4
- package/dist/assets/{ScheduleDetailsPage-DzYUkz8B-BASiQOiG.js → ScheduleDetailsPage-D4fdm16B-KuG3aRA0.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-Cg5WKyIj-CgT_tp3-.js → ScheduleSequenceTable-BuOwBQPa-idhR1Z_Q.js} +16 -16
- package/dist/assets/{ScreenRoutes-BA3Mh7pl.js → ScreenRoutes-BIVA2nRG.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CczJQz98-BSMGTELr.js → SetUpAccountSection-DJz8iGRu-BIE7oU3u.js} +9 -9
- package/dist/assets/{SignIn-IIuCvpoR-11uX7W5f.js → SignIn-BltllFmN-lRCl2w8R.js} +15 -15
- package/dist/assets/{SignInScreen-2miLFysH.js → SignInScreen-CvDooCt5.js} +1 -1
- package/dist/assets/SpendManagementListViewPage-BQwyNWPt-CFFiSy1U.js +134 -0
- package/dist/assets/{SpendManagementPerTabPage-D3DxhXvr-B6sZ7QiP.js → SpendManagementPerTabPage-CkH_5fl0-DiDtAytK.js} +39 -39
- package/dist/assets/{SpendManagementSection-DSN3bvLE-BkMacKAC.js → SpendManagementSection-BhbK0q1x-DEzibqGa.js} +15 -15
- package/dist/assets/StatementItem-D8E_FAe4-BYv882Fo.js +31 -0
- package/dist/assets/StatementsPage-Wiw8T04d-DTKPWrtc.js +58 -0
- package/dist/assets/{StatusSwitcher-C35eTt_u-VQn5S24k.js → StatusSwitcher-DPs1Vq5X-D6dENE_K.js} +2 -2
- package/dist/assets/{SubTabSwitcher-B8hXbnSB-cmYgrs9Q.js → SubTabSwitcher-BvqpLoBx-n7blk4-b.js} +2 -2
- package/dist/assets/{SummaryCard-dhNbqi0b-YwOnQ2xO.js → SummaryCard-CYZZ0q6A-Bue0ya2z.js} +1 -1
- package/dist/assets/{TaskManagementPage-QHzSJ5AM-Dhc53xoT.js → TaskManagementPage-lc9Mw2Sm-CSBSTCNw.js} +34 -34
- package/dist/assets/{TimeRangeSwitcher-By1NizbD-D56RmIGq.js → TimeRangeSwitcher-Dm0lFXOD-CN2hUUX6.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-CnIziozQ-1cQ19qL3.js → TimeframeSwitcher-CFrCNOFC-CCLnJVYT.js} +6 -6
- package/dist/assets/{TimeframeSwitcherWithToggle-BxwsH8cn-DW9lfWz3.js → TimeframeSwitcherWithToggle-Cu0mWh8Z-Dnw607ZH.js} +1 -1
- package/dist/assets/{TopExCard-BXYnSJ_3-BrLh6FBV.js → TopExCard-IMbcUkNt-D4ymrCrP.js} +6 -6
- package/dist/assets/{TopExDetailPage-C9pGvGMt-BM8au-2T.js → TopExDetailPage-IEJSc_e7-BtOs5ZNd.js} +8 -8
- package/dist/assets/TransactionActivityLogPage-CztxkZSm-8f7Qpuaa.js +195 -0
- package/dist/assets/{TransactionDetailPage-CZQnRzsm-DgcUcv00.js → TransactionDetailPage-C5khWZWO-BeDT0w8u.js} +20 -20
- package/dist/assets/{TransactionList-Bdf5Bgsu-BJckNy4D.js → TransactionList-BH11aGhG-4R_e7lBY.js} +15 -15
- package/dist/assets/{TransactionListBig-DcbkwmaY-lPbTtFsv.js → TransactionListBig-CdJV8TeD-DMYaee9L.js} +11 -11
- package/dist/assets/TransactionListPage-CjzTPYr7-BDdk1Iba.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-B-FwW8my-CWEbgotx.js → TransactionVendorDetailPage-Dv7hRa0N-BwsLBxd1.js} +4 -4
- package/dist/assets/{TransferDrawerPage-DqxZzNHb-JyC0LuW4.js → TransferDrawerPage-r48o2lxO-CN66Pp8k.js} +40 -40
- package/dist/assets/{TreasuryOverviewPage-BFDU5aeU-CkjRA3dQ.js → TreasuryOverviewPage-DKCxYrPQ-HyhZNbuE.js} +32 -32
- package/dist/assets/{TreasuryPromoPage-HD1G38a1-ZbC8VXaw.js → TreasuryPromoPage-CNpZ_SIL-DNBqegZ8.js} +21 -21
- package/dist/assets/TreasuryStatementsPage-DKRIOtY3-DpdYXRvQ.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-Bwg7y3DU-CPkWwrCH.js +58 -0
- package/dist/assets/{TrendChart-DVlTUYry-BQhZ0XSE.js → TrendChart-C1hhS0ef-CM_jfK9c.js} +3 -3
- package/dist/assets/{TrendWithTransactions-DXYNZfvE-CEOC8UFU.js → TrendWithTransactions-CbJdyyGK-8bD7HA0C.js} +4 -4
- package/dist/assets/{UncategorizedAccountsMappingPage-BgQsB5_3-COI438r2.js → UncategorizedAccountsMappingPage-BTAJNCzF-IB-Tcf9I.js} +30 -30
- package/dist/assets/{UnitIntegrationPage-Dm62VB7y-B0M_A7fc.js → UnitIntegrationPage-B7xYyx0u-Dfb-qM03.js} +10 -10
- package/dist/assets/{UploadAdditionalDocumentOverlay-DG7NwQOq-PHFjEw3H.js → UploadAdditionalDocumentOverlay-BxSUijP--B8mSbR2d.js} +1 -1
- package/dist/assets/Vendor2FAPopup-Ctn_yjc8-D0FF2AtH.js +1 -0
- package/dist/assets/VendorACHDetailsPage-Bvj35jGs-H5j6K7x_.js +1 -0
- package/dist/assets/{VendorDetailPage-B8qtHlez-CDeCcma-.js → VendorDetailPage-CTbWD0xL-DOodc43o.js} +87 -87
- package/dist/assets/VendorDomesticWireDetailsPage-YMt9zC7E-4y578jYA.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-B5GzsaIt-CrkaSKWH.js → VendorFiling1099EditablePage-CC17aZpp-CUEXtxxF.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-B1c74yx7-XWeMR4A4.js → VendorFirstReviewPage-C2Rj4ujS-D3XLk6SM.js} +30 -30
- package/dist/assets/{VendorInternationalWireDetailsPage-DPucgS6n-BUwm5cf5.js → VendorInternationalWireDetailsPage-CXgBfF0b-AFVguI8X.js} +7 -7
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CPdA16m4-BUiNKc-B.js +1 -0
- package/dist/assets/{VendorsAccountsSection-BBnG4jo9-CE1HsZr7.js → VendorsAccountsSection-CKKsK4iR-Brg3gtnO.js} +4 -4
- package/dist/assets/{VerifyDevice-CFPLWsQ9-CqtmGFWn.js → VerifyDevice-Ds1Nxr5P-Blm9OKwi.js} +1 -1
- package/dist/assets/{VideoPlayer-C0Oxc4vz-Eo76fnas.js → VideoPlayer-Ba8AW1R7-i9G7JJm5.js} +2 -2
- package/dist/assets/VideoPopup-CXIa9PAJ-BZihnaAR.js +31 -0
- package/dist/assets/{WarningsDrawerPage-D1_kAgnS-wVv9eNUW.js → WarningsDrawerPage-h7qsrtcB-CE6gyvKk.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-CvuREnNX-Daaz-pOC.js → ZeniAccountDetailPage-aNllmjZp-DFLxBj0c.js} +32 -32
- package/dist/assets/{ZeniAccountListViewPage-Cl0LGnEs-BnEYM2Fk.js → ZeniAccountListViewPage-DrKQ2DXb-CJJJ25qT.js} +8 -8
- package/dist/assets/ZeniAccountNavBarPieces-BTP0V662-nTGXbCtY.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-CfqyTao--CSmJBLGG.js → ZeniAccountPromoPage-CPL4y-FS-Bjur8xmF.js} +13 -13
- package/dist/assets/{ZeniAccountSetupPage-DjhaRuBW-C5pmnKvn.js → ZeniAccountSetupPage-DvlPktUp-B-E9YzwR.js} +2 -2
- package/dist/assets/ZeniCopyright-D37-X5FF-Ak7n7OYz.js +1 -0
- package/dist/assets/{ZeniTransferAmountSlider-DFm-2Ivu-CQbjc7rM.js → ZeniTransferAmountSlider-CeTiIm-1-DS6r50pT.js} +4 -4
- package/dist/assets/{add-to-wallet-DgdBD8_G-BuLXwUxS.js → add-to-wallet-DgdBD8_G-D62DvooK.js} +1 -1
- package/dist/assets/{analytics-EOspDoDF.js → analytics-BFqwqBQR.js} +1 -1
- package/dist/assets/{analyticsHelper-CkgaDWOW-BtJI0iQX.js → analyticsHelper-Cp5G9I3a-BIC4toJ-.js} +1 -1
- package/dist/assets/analyticsHelper-H7OiEB4T.js +1 -0
- package/dist/assets/{arrow-south-east-round-PEovUgvH-7wUMcNgq.js → arrow-south-east-round-PEovUgvH-eGvQIcmx.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-B7tSfwo7.js → auto-transfer-rule-mbafm5D3-CeHKVWmh.js} +1 -1
- package/dist/assets/{chartTypes-nF8PeaWk-DylRW2Nq.js → chartTypes-_pdOsLu--D8_z5gfz.js} +1 -1
- package/dist/assets/{commonDimensions-bWLlVfVq-DDxX-akL.js → commonDimensions-IxmmCJgv-CC5c3dON.js} +1 -1
- package/dist/assets/{commonTypes-BKD3o785-ClwG0TM4.js → commonTypes-uWTOHqLG-CINOYJ5U.js} +1 -1
- package/dist/assets/{constants-3kjNigIZ.js → constants-DMGg36fI.js} +1 -1
- package/dist/assets/{core-CslRcwFE.js → core-BFf3IFj6.js} +1 -1
- package/dist/assets/{dash.all.min-Dkp1U18T.js → dash.all.min-BxMd-9-a.js} +1 -1
- package/dist/assets/{detailCommon-l7_k1kQ_-CFeAwn6Q.js → detailCommon-1sO_byJf-CD-uyZzV.js} +4 -4
- package/dist/assets/downloadPdf-CjXuMwyY-Bk0Q_jtO.js +1 -0
- package/dist/assets/{empty-Du-vmzTn.js → empty-CTFehcxZ.js} +1 -1
- package/dist/assets/{empty-BhaTlh_E.js → empty-DQRlSI-P.js} +1 -1
- package/dist/assets/{epic-CZdj8-B-.js → epic-DvQ68MZ-.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-Dv3d3rOw.js → gift-box-Cmt9OgIZ-CjL00gTh.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-CLHrfBy6.js → graphic-no-data-l-DU4J8fDt-CeLdXVsI.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CMlLtriY.js → graphic-no-data-net-burn-l-CzmycA0m-CxW_HqWH.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-COd6iQaS.js → handshake-BPg58FML-DLoQUg7m.js} +1 -1
- package/dist/assets/{helper-qck89ZgJ-CZUGaHU3.js → helper-4lObJrt8-BUT-pULe.js} +3 -3
- package/dist/assets/{index-CwPcEaIJ.js → index-BuGq2Xwa.js} +1 -1
- package/dist/assets/{index-Dc5vYs7y.js → index-Cx7SEn1j.js} +1 -1
- package/dist/assets/{index-B7eWgQzZ.js → index-DGGt5RDJ.js} +4300 -4300
- package/dist/assets/{index-Cn_IOdHd.js → index-DdP-wJle.js} +1 -1
- package/dist/assets/{index-3P-FToEr.js → index-Dl4R1vcE.js} +1 -1
- package/dist/assets/{index-Dk4hNwSR.js → index-IoURZoOk.js} +1 -1
- package/dist/assets/{index-Dde-TLpy.js → index-NMwrUQfi.js} +1 -1
- package/dist/assets/{lexical-DEAOqFKR.js → lexical-BeXs36Y0.js} +1 -1
- package/dist/assets/{liveblocks-DyVXfa5b.js → liveblocks-Dda0tF-O.js} +1 -1
- package/dist/assets/{lottie-DR7Z1uj_.js → lottie-mwve--vc.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-hU4SXSz1-Celvdjmv.js → mapLoadingInProgressToTreeNode-CwSavpEU-Cl_FZFwU.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Mybge2KM-DnyF2DOT.js → mapSectionWithAcOnlyToTreeNode-DfN5c3SA-D4hGCNmF.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-D8gbhEl5-D4qIggfl.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DSlFj-Ph-Btw1CFJ1.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-Dj4jp8jG-B4t0Wux0.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DpTpTHX9-DdHAM1Kp.js +1 -0
- package/dist/assets/{mui-Ba0_ROTv.js → mui-BXc79n0P.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-DcKx2ySJ.js → page-detail-CWX5S47F-j_J3TTSv.js} +1 -1
- package/dist/assets/{panelSelectedMixin-Cddsb26L-Cg3Z-QbC.js → panelSelectedMixin-Cddsb26L-D4G_zfkD.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-CGqLZKGc.js → radio-default-CiSgisfh-BDH4uibz.js} +1 -1
- package/dist/assets/{react-CBKzjJ-k.js → react--w8eXOQH.js} +1 -1
- package/dist/assets/{react-Doh-xpgh.js → react-0aRrmHfg.js} +2 -2
- package/dist/assets/{react-BQMyjhDt.js → react-BkfBvvdQ.js} +1 -1
- package/dist/assets/{react-XEytoW-G.js → react-CQhG37C_.js} +1 -1
- package/dist/assets/{react-2aHb0_lL.js → react-CQvtbK9z.js} +1 -1
- package/dist/assets/{react-DqjXj4cD.js → react-CpogsNWB.js} +1 -1
- package/dist/assets/{react-DuH1J8DT.js → react-DNVJuix6.js} +1 -1
- package/dist/assets/{react-biMmKurS.js → react-x9AsEyp-.js} +1 -1
- package/dist/assets/{recharts-Dpk71F6G.js → recharts-vbuE4Jum.js} +1 -1
- package/dist/assets/{sentry-BUYEiWD8.js → sentry-C7LQiKF9.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-C7zSLUUK.js → shield-DOlUxcFf-B-RZDoQM.js} +1 -1
- package/dist/assets/toCOABalancesWithID-DuwOfE1o-DwSLIzEK.js +1 -0
- package/dist/assets/{toChartData-CMvkvks2-CeV5Sw8J.js → toChartData-Cqj00uWV-Bpiruaq9.js} +1 -1
- package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-BCgskbSS.js → upload-reimbursement-receipt-O2N8vcO7-C4eeJM6-.js} +1 -1
- package/dist/assets/{uploadAttachment-XRvvKLjd-8kORPRMD.js → uploadAttachment-CpuXaDZF-Bu3r96Oj.js} +25 -25
- package/dist/assets/{uploadReceipts-Dge0cNF1-B4zZrtGY.js → uploadReceipts-Dge0cNF1-BighYweo.js} +1 -1
- package/dist/assets/{url-4GiLad5k.js → url-CvO2wIrp.js} +1 -1
- package/dist/assets/{url-_mFxzRvZ.js → url-SWb9fmsI.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ--IIT5mp7.js → useLongPress-GCK2COYQ-BHUpmaFu.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-wx2xXzy4.js → usp-line-BBd1wKwW-BBQ-QruK.js} +1 -1
- package/dist/assets/{utils-van4hLXd.js → utils-CW6UW7VZ.js} +1 -1
- package/dist/assets/{zeni-epic-state-DsDV18R1.js → zeni-epic-state-Cvu6NpVe.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/ACHDetailsPage-C0EF1bfJ-CF4B57fP.js +0 -21
- package/dist/assets/AccountInfoPage-1bkRMUmz-Cuxh0N0w.js +0 -18
- package/dist/assets/AccountLockedInfoModal-iHHAglx1-Db8qIiY0.js +0 -59
- package/dist/assets/AddAddressForCardDrawer-DQButqpE-4KIKQO78.js +0 -6
- package/dist/assets/ApAgingDetailPage-DFMl8Pg4-C_Is_Pfz.js +0 -46
- package/dist/assets/BillDetailPage-Cv84AWBP-D-5X1cLh.js +0 -266
- package/dist/assets/BillPayPromoPage-BJNiSeAB-dddJyTrd.js +0 -84
- package/dist/assets/BillingSettingsPage-B5p8_TqZ-D-ll1i0A.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-CLUs3-Ci-DFJkbhvF.js +0 -1
- package/dist/assets/ConfettiBurst-BfLV2hbY-D9OCgSrI.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-BR0RXw9o-YOK_yGHP.js +0 -1
- package/dist/assets/EditPeoplePage-CZUXKv1r-BxGbjp33.js +0 -55
- package/dist/assets/EntityDetailPage-ZAt7wUEc-CU2oKDLU.js +0 -18
- package/dist/assets/InternationalWireVerificationPage-BLvplUfw-KKAbBfix.js +0 -65
- package/dist/assets/InvitePeoplePage-Chxh0Lmw-BWF47a5q.js +0 -12
- package/dist/assets/LabeledAddressValueField-C5tlrpM8-CZs-qPnX.js +0 -45
- package/dist/assets/LabeledDocumentField-BowgfWLJ-Dfvs4pho.js +0 -41
- package/dist/assets/LabeledText-DglukuaI-CmIe9nSK.js +0 -42
- package/dist/assets/LinkJETransactionPage-Cnu97MMF-4_5-q4C9.js +0 -98
- package/dist/assets/LowBalancePopup-Drqtx1Yk-9ef3MPri.js +0 -34
- package/dist/assets/MagicLinkACHDetailsPage-B-H4pN-W-BJk44VGL.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-DBhFe2sn-ByO14CoO.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-De3w5uAd-DWgjVULc.js +0 -1
- package/dist/assets/MailingDetailsSection-CU0Ur-9k-CV18nP7Y.js +0 -21
- package/dist/assets/MyPendingActivationChargeCardListPage-8fIM-AgM-DG0F21hf.js +0 -6
- package/dist/assets/NotificationsPage-BL6QkhxJ-Bq__lIXi.js +0 -685
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DeGZp7he-DwflEFkV.js +0 -32
- package/dist/assets/ReimbursementDetailPage-ChDG7NAL-BwV9bPZE.js +0 -314
- package/dist/assets/ReimbursementPromoPage-Dgx0IYTF-BfINKSQz.js +0 -84
- package/dist/assets/RoleWithToolTip-C8aesF3T-apurffxZ.js +0 -22
- package/dist/assets/SpendManagementListViewPage-DQ9FW-pv-8sW-YX2v.js +0 -134
- package/dist/assets/StatementItem-CfLQ3EiB-BhKoq1Lu.js +0 -31
- package/dist/assets/StatementsPage-DdVszHkC-UTOiPZ-s.js +0 -58
- package/dist/assets/TransactionActivityLogPage-C4Zf-YKV-CyrgE9Vm.js +0 -195
- package/dist/assets/TransactionListPage-CS_TY41O-BS7_HocG.js +0 -35
- package/dist/assets/TreasuryStatementsPage-DVN2bxrt-Csr4Fp1P.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-O5HN57r7-Crb8QwQ9.js +0 -58
- package/dist/assets/Vendor2FAPopup-CxJFovCF-BTqgr2_z.js +0 -1
- package/dist/assets/VendorACHDetailsPage-IvgUMfd9-Dm3RoaNk.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-BbLz5_FD--3MjmjN3.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CmeSQAri-TKMDFSzF.js +0 -1
- package/dist/assets/VideoPopup-BmdpW83j-DczpaZjD.js +0 -31
- package/dist/assets/ZeniAccountNavBarPieces-MEaXWOb7-DLC0tAjr.js +0 -14
- package/dist/assets/ZeniCopyright-nggh1t2z-BlAlTJNf.js +0 -1
- package/dist/assets/analyticsHelper-BQyqY8AC.js +0 -1
- package/dist/assets/downloadPdf-DaZCmoYn-D7YxsQSi.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-DlewsTfs-Uz_UzZbZ.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-9dkd_G4A-xyFi9Xru.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DE8rPH2X-BbYTtpG2.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BLkTfnct-DgmTQXuW.js +0 -1
- package/dist/assets/toCOABalancesWithID-BfQTo56G-BvXiHVaB.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,J as O,aG as kn,aA as Lo,dq as jn,dr as Ao,
|
|
1
|
+
import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,J as O,aG as kn,aA as Lo,dq as jn,dr as Ao,b as B,u as w,ds as Qn,dt as zt,du as Tt,cd as Vt,dv as Dt,x as V,d4 as Rt,ay as Jn,ab as ot,cp as ze,bR as K,L as Bo,y as le,aX as L,b1 as Zn,dw as Xn,ap as Me,dx as Wo,dy as ae,cc as Gt,c1 as Sn,ak as Oo,ao as be,dz as rt,dA as Ie,dB as lt,an as C,ck as ne,dC as Mo,w as Et,dD as Ue,dE as Cn,dF as vn,dG as Io,dH as No,bb as ei,aY as T,b8 as Po,cC as Ht,cB as Kt,dI as Fo,b9 as ti,cF as ni,bT as zo,dJ as To,dK as _n,dL as $n,dM as Vo,dN as Do,bV as Ro,bM as Go,dO as Eo}from"./index-DGGt5RDJ.js";import{n as a,c as F}from"./mui-BXc79n0P.js";import{a as I,P as Ho}from"./sentry-C7LQiKF9.js";import{FH as Yt,Gb as Ut,Gc as Te,Gd as qt,Ge as Qt,Gf as Jt,Gg as Zt,Gh as ii,Gi as Ko,FU as bt,FI as Ve,bm as Ln,bg as oi,Gj as ri,Gk as Yo,bo as Uo,FV as ai}from"./zeni-epic-state-Cvu6NpVe.js";import{D as ct,R as qo,A as Qo,E as ke,u as _}from"./AccountRow-sz0SNySJ-PMcRks2g.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="30fafdf1-d447-41a6-911b-3668030f21f2",e._sentryDebugIdIdentifier="sentry-dbid-30fafdf1-d447-41a6-911b-3668030f21f2")}catch{}})();function q(e,n){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function Z(e){return U("0,0",e?.forecast)}function li(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function _t(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function ce(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(n*100)/100)}else return fe("0.00%",void 0)}function se(e){if(e!=null&&e.forecast!=null){const n=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:n}))}else return U("0,0",null)}function ci(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const n=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(n*100)/100)}else return fe("0.00%",void 0)}function si(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:n}))}else return U("0,0",null)}const De=(e,n,i)=>{const{startDate:o,balanceType:r}=n,{dateFormat:{visual:l}}=B.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${bt(o,l.MMMYYYYFormat,e)}`:kt(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${B.getLocalizedStrings().reports.quarterPrefix}${bt(o,l.QYYYYformat,e)}`:kt(r,i);case"year":return r==="default"||r==="default_with_percent"?`${bt(o,l.YYYYformat,e)}`:kt(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function kt(e,n){return B.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const wp=(e,n,i)=>{const o=n.length==0?e:`${e}_${n.join("_")}`;return i!=null&&i.trim().length>0?`${o}_${i}`:`${o}_${$o(10)}`},Jo=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
width: 100%;
|
|
@@ -6,7 +6,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
6
6
|
justify-content: flex-start;
|
|
7
7
|
align-items: center;
|
|
8
8
|
padding-right: ${_.wrapperPadding}px;
|
|
9
|
-
`,
|
|
9
|
+
`,Zo=a.div`
|
|
10
10
|
cursor: default;
|
|
11
11
|
user-select: none;
|
|
12
12
|
display: flex;
|
|
@@ -60,7 +60,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
60
60
|
display: flex;
|
|
61
61
|
justify-content: center;
|
|
62
62
|
align-items: center;
|
|
63
|
-
`;function cr({height:e}){const n=O();return t.jsx(Jo,{heightValue:e,windowSize:n,children:t.jsxs(
|
|
63
|
+
`;function cr({height:e}){const n=O();return t.jsx(Jo,{heightValue:e,windowSize:n,children:t.jsxs(Zo,{children:[t.jsxs(Xo,{children:[t.jsx(ar,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:s.sp4,maxWidth:s.sp4,width:s.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(lr,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:s.sp4,width:_.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(er,{children:[t.jsx(tr,{children:t.jsx(ae,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:_.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(nr,{children:t.jsx(ae,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:_.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(or,{children:[t.jsx(ae,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:_.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(rr,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:s.sp4,width:_.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(ir,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:s.sp4,width:_.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const sr=a.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: row;
|
|
66
66
|
height: ${e=>e.heightValue}px;
|
|
@@ -221,7 +221,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
221
221
|
color: ${e=>e.textColor.hex()};
|
|
222
222
|
background-color: ${e=>e.bgColor.hex()};
|
|
223
223
|
min-width: ${_.variancePercentageWidth}px;
|
|
224
|
-
`,{expenseAutomation:{accountRecon:{reconciliation:{headers:An}}},common:{strings:{percentage:Dr,hyphen:at}}}=B.getLocalizedStrings();function
|
|
224
|
+
`,{expenseAutomation:{accountRecon:{reconciliation:{headers:An}}},common:{strings:{percentage:Dr,hyphen:at}}}=B.getLocalizedStrings();function Rr({height:e,sectionData:n}){const i=O(),o=n.totalVariance,r=n.totalVariancePercentage,l=le();return t.jsx(Lr,{"data-testid":x("total-row-root-container"),heightValue:e,windowSize:i,children:t.jsxs(Ar,{isClickable:!1,"data-testid":x("total-row-container"),children:[t.jsxs(Br,{children:[t.jsx(ke,{firstLetter:An.section[n.sectionId].subTitle.charAt(0),color:new L(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(Wr,{children:An.section[n.sectionId].subTitle})]}),t.jsxs(Or,{children:[t.jsx(Mr,{children:n.totalBankBalance!=null?U("0,0",n.totalBankBalance):at}),t.jsx(Ir,{children:n.totalClearedBalance!=null?U("0,0",n.totalClearedBalance):at}),t.jsx(Gr,{variance:o,variancePercentage:r}),t.jsx(Pr,{children:t.jsx(Fr,{heightValue:e})}),t.jsx(Nr,{})]})]})})}const Gr=({variance:e,variancePercentage:n})=>{const i=le(),o=new L(i.colors.hero),r=new L(i.colors.hero),l=new L(i.colors.background),c=e!=null&&e.amount===0?"0%":n!=null?n===0?"0%":`${n.toFixed(2)}${Dr}`:at;return t.jsxs(zr,{children:[t.jsx(Tr,{textColor:o,children:e!=null?U("0,0",e):at}),t.jsx(Vr,{textColor:r,bgColor:l,children:c})]})};function Er(){return t.jsx(dr,{height:ct("section")})}function Hr(){return t.jsx(cr,{height:ct("loading_in_progress")})}function Kr(e,n){if(e.element.kind!=="timeframe_headers")return null;const i=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,o=e.element.data,r=o.accountIDs.length===0;return t.jsx(Cr,{sectionTitle:i.section[o.sectionId].title,isLoading:r,isSticky:n,height:ct("timeframe_headers")})}const Yr=(e,n,i)=>{const o=e.element.data;return t.jsx(Rr,{isSticky:i,height:n,sectionData:o})},Ur=(e,n)=>{const i=e.element.data,o=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx($r,{height:n,title:o.section[i.sectionId].title})},qr=(e,n,i)=>{const o=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?o.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(Qo,{height:n,accountRecon:o,isLastRow:i,isSelectedRow:r,index:e.element.index,onReviewClicked:e.config.accountReconciliationConfig?.onReviewClicked,onConnectClicked:e.config.accountReconciliationConfig?.onConnectClicked,onReconnectClicked:e.config.accountReconciliationConfig?.onReconnectClicked,onOpenDrawerClicked:e.config.accountReconciliationConfig?.onOpenDrawerClicked,onStatementAddClicked:e.config.accountReconciliationConfig?.onStatementAddClicked})},k={balanceHeight:s.sp4,balanceHeightInPx:w[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:s.sp4,balanceLeftMarginInPx:w[4],titleWidth:new V(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128};function Qr(e){switch(e){case"section":return w[8];case"section_with_ac_only":return w[8];case"calculated_section":case"calculated_section_type1":return w[8];case"ac_group_report":case"ac_group_subaccount":return w[6];case"ac_subentity_total":case"ac_subaccount":case"ac_report":return w[6];case"title_string_only":case"total":return w[6];case"timeframe_headers":case"headers_loading_in_progress":return w[11];case"timeframe_headers_with_forecast":return 98;case"loading_in_progress":case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function Jr(e,n,i=0){const o=["summary"];switch(e){case"section":return!o.includes(n);case"section_with_ac_only":return!o.includes(n);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(o.includes(n)||n==="detailed"&&i>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(o.includes(n)||n==="detailed"&&i>0);case"title_string_only":return!o.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(n==="detailed"&&i>0);case"checkbox_and_name_only":return!0;default:return!1}}const ge=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!0}},me=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},di={emptyLeftContainer:new V(w[0],w[5])},Zr=a(C)`
|
|
225
225
|
margin-left: ${e=>!e.hasChildren&&e.depth!==0?s.sp3:s.sp2};
|
|
226
226
|
overflow: hidden;
|
|
227
227
|
white-space: nowrap;
|
|
@@ -249,7 +249,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
249
249
|
height: ${s.sp1};
|
|
250
250
|
`,Ne=a.div`
|
|
251
251
|
display: flex;
|
|
252
|
-
`,oa=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return t.jsxs(Ne,{children:[r.depth===0?t.jsx(vn,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ie,{},o):t.jsx(lt,{}):null,r.depth>=1?t.jsx(vn,{depth:r.depth}):null]},i+o)}):null}),ui=({ancestorMetadata:e,depth:n,name:i})=>{const o=O();return n===0?e[n].hasChildren===!1?t.jsx(hi,{windowSize:o}):t.jsxs(Ne,{children:[t.jsx(Ue,{depth:n}),t.jsx(Ie,{}),t.jsx(Ue,{depth:n+1})]}):t.jsxs(t.Fragment,{children:[[...Array(n+1).keys()].map(r=>{const l=e[r],c=r!==n?e[r+1]:void 0;return t.jsxs(Ne,{children:[l.depth===0?t.jsx(Ue,{depth:l.depth}):null,r>=2||r===1&&(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?n===1?t.jsx(Cn,{index:1}):t.jsx(Cn,{index:2}):null,(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?t.jsx(Ie,{},r):t.jsx(lt,{}),t.jsx(Ue,{depth:l.depth+1})]},i+r)}),n===1&&e[n].hasChildren!=!0?t.jsx(ia,{}):null]})},gi=({ancestorMetadata:e,depth:n,name:i})=>n===0?t.jsx(na,{}):t.jsx(t.Fragment,{children:[...Array(n).keys()].map(o=>{const r=e[o],l=o!==n?e[o+1]:void 0;return t.jsxs(Ne,{children:[r!=null&&r.depth===0?t.jsx(rt,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Ie,{},o):t.jsx(lt,{}),t.jsx(rt,{depth:r!=null?r.depth+1:0})]},i+o)})}),ra=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return r==null?null:t.jsxs(Ne,{children:[r.depth===0?t.jsx(rt,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ie,{},o):t.jsx(lt,{}):null,r.depth>=1?t.jsx(rt,{depth:r.depth}):null]},i+o)}):null}),aa=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>{let d=t.jsx(ta,{});return e===0&&r&&(d=t.jsx(To,{collapsed:l,onIconClick:c})),e>0&&(r&&!o&&n&&(d=t.jsx(_n,{collapsed:l,onIconClick:c})),i&&o&&n&&(d=t.jsx($n,{})),i&&o&&!n&&(d=t.jsx(Vo,{})),r&&o&&!n&&(d=t.jsx(Do,{collapsed:l,onIconClick:c})),r&&o&&n&&(d=t.jsx(_n,{collapsed:l,onIconClick:c})),n&&i&&(d=t.jsx($n,{}))),d},la=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>t.jsx(ea,{children:t.jsx(aa,{depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})});function pi(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const i=O();return t.jsxs(Xr,{children:[e.classDepth!=null?t.jsx(ui,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(hi,{windowSize:i}):null,t.jsx(ra,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(la,{...e}),t.jsx(
|
|
252
|
+
`,oa=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return t.jsxs(Ne,{children:[r.depth===0?t.jsx(vn,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ie,{},o):t.jsx(lt,{}):null,r.depth>=1?t.jsx(vn,{depth:r.depth}):null]},i+o)}):null}),ui=({ancestorMetadata:e,depth:n,name:i})=>{const o=O();return n===0?e[n].hasChildren===!1?t.jsx(hi,{windowSize:o}):t.jsxs(Ne,{children:[t.jsx(Ue,{depth:n}),t.jsx(Ie,{}),t.jsx(Ue,{depth:n+1})]}):t.jsxs(t.Fragment,{children:[[...Array(n+1).keys()].map(r=>{const l=e[r],c=r!==n?e[r+1]:void 0;return t.jsxs(Ne,{children:[l.depth===0?t.jsx(Ue,{depth:l.depth}):null,r>=2||r===1&&(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?n===1?t.jsx(Cn,{index:1}):t.jsx(Cn,{index:2}):null,(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?t.jsx(Ie,{},r):t.jsx(lt,{}),t.jsx(Ue,{depth:l.depth+1})]},i+r)}),n===1&&e[n].hasChildren!=!0?t.jsx(ia,{}):null]})},gi=({ancestorMetadata:e,depth:n,name:i})=>n===0?t.jsx(na,{}):t.jsx(t.Fragment,{children:[...Array(n).keys()].map(o=>{const r=e[o],l=o!==n?e[o+1]:void 0;return t.jsxs(Ne,{children:[r!=null&&r.depth===0?t.jsx(rt,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Ie,{},o):t.jsx(lt,{}),t.jsx(rt,{depth:r!=null?r.depth+1:0})]},i+o)})}),ra=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return r==null?null:t.jsxs(Ne,{children:[r.depth===0?t.jsx(rt,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ie,{},o):t.jsx(lt,{}):null,r.depth>=1?t.jsx(rt,{depth:r.depth}):null]},i+o)}):null}),aa=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>{let d=t.jsx(ta,{});return e===0&&r&&(d=t.jsx(To,{collapsed:l,onIconClick:c})),e>0&&(r&&!o&&n&&(d=t.jsx(_n,{collapsed:l,onIconClick:c})),i&&o&&n&&(d=t.jsx($n,{})),i&&o&&!n&&(d=t.jsx(Vo,{})),r&&o&&!n&&(d=t.jsx(Do,{collapsed:l,onIconClick:c})),r&&o&&n&&(d=t.jsx(_n,{collapsed:l,onIconClick:c})),n&&i&&(d=t.jsx($n,{}))),d},la=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>t.jsx(ea,{children:t.jsx(aa,{depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})});function pi(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const i=O();return t.jsxs(Xr,{children:[e.classDepth!=null?t.jsx(ui,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(hi,{windowSize:i}):null,t.jsx(ra,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(la,{...e}),t.jsx(Zr,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:i,title:n,children:n})]})}const G={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,325,405),nameLogoWidth:new V(w[4],w[4]),nameLogoHeight:new V(w[4],w[4])};function ca(e){switch(e){case"timeframe_headers":return w[10];case"aging_report_row":return w[6];case"ac_subentity_total":return w[6];case"total":return w[8];case"spacer_row":return w[8];default:return w[0]}}function sa(){return!0}const Qe=[new V(w[4],w[8]),new V(44,76),new V(69,102),new V(93,124),new V(113,143)],da=a.div`
|
|
253
253
|
display: flex;
|
|
254
254
|
flex: 1 1 auto;
|
|
255
255
|
max-height: 1px;
|
|
@@ -267,8 +267,8 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
267
267
|
flex-grow: 1;
|
|
268
268
|
align-items: center;
|
|
269
269
|
background-color: ${e=>e.theme.colors.grey4};
|
|
270
|
-
width: ${e=>
|
|
271
|
-
max-width: ${e=>
|
|
270
|
+
width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
271
|
+
max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
272
272
|
${({isSticky:e})=>e?F`
|
|
273
273
|
position: -webkit-sticky;
|
|
274
274
|
position: sticky;
|
|
@@ -276,8 +276,8 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
276
276
|
left: ${s.sp0};
|
|
277
277
|
`:null}
|
|
278
278
|
`,ga=a.div`
|
|
279
|
-
width: ${e=>e.noMarginForEntity?
|
|
280
|
-
max-width: ${e=>e.noMarginForEntity?
|
|
279
|
+
width: ${e=>e.noMarginForEntity?Qe[e.nestingLevel].value(e.windowSize)-w[5]:Qe[e.nestingLevel].value(e.windowSize)}px;
|
|
280
|
+
max-width: ${e=>e.noMarginForEntity?Qe[e.nestingLevel].value(e.windowSize)-w[5]:Qe[e.nestingLevel].value(e.windowSize)}px;
|
|
281
281
|
height: 1px;
|
|
282
282
|
`,pa=a.div`
|
|
283
283
|
display: flex;
|
|
@@ -321,10 +321,10 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
321
321
|
justify-content: flex-start;
|
|
322
322
|
`,yi=a(C)`
|
|
323
323
|
user-select: none;
|
|
324
|
-
min-width: ${
|
|
325
|
-
max-width: ${
|
|
324
|
+
min-width: ${G.balanceWidth};
|
|
325
|
+
max-width: ${G.balanceWidth};
|
|
326
326
|
text-align: right;
|
|
327
|
-
margin-left: ${
|
|
327
|
+
margin-left: ${G.balanceLeftMargin};
|
|
328
328
|
border: 1px solid transparent;
|
|
329
329
|
color: ${e=>e.theme.colors.hero};
|
|
330
330
|
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
@@ -347,8 +347,8 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
347
347
|
flex-grow: 1;
|
|
348
348
|
align-items: center;
|
|
349
349
|
height: ${e=>e.containerHeight}px;
|
|
350
|
-
width: ${e=>
|
|
351
|
-
max-width: ${e=>
|
|
350
|
+
width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
351
|
+
max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
352
352
|
background-color: ${e=>e.bgColor?.hex()};
|
|
353
353
|
${({isSticky:e})=>e?F`
|
|
354
354
|
position: sticky;
|
|
@@ -360,7 +360,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
360
360
|
&:hover {
|
|
361
361
|
color: ${e=>e.theme.colors.primary};
|
|
362
362
|
}
|
|
363
|
-
`,ki=({balance:e,isOpen:n})=>{const i=n?e?.balance:e?.totalBalance;return t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",i)})})},ji=({total:e})=>t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function ma({isSticky:e,height:n,isScrolling:i,isLastNode:o,balances:r,total:l,vendor:c,backgroundColor:d,onEntityNameClick:h}){const u=O(),p="default",g=c?.name??"";return t.jsxs(fi,{"data-testid":x("ap-aging-report-row-root-container",g),containerHeight:n,bgColor:d,windowSize:u,children:[t.jsxs(xi,{"data-testid":x("ap-aging-report-row-container",g),style:{cursor:p},isClickable:!1,containerHeight:n-1,children:[t.jsxs(bi,{onClick:()=>c?.id!=null?h?.(c.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:n-1,children:[c?.logo!=null?t.jsx(Dt,{photoUrl:c.logo.toString(),styles:{width:
|
|
363
|
+
`,ki=({balance:e,isOpen:n})=>{const i=n?e?.balance:e?.totalBalance;return t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",i)})})},ji=({total:e})=>t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function ma({isSticky:e,height:n,isScrolling:i,isLastNode:o,balances:r,total:l,vendor:c,backgroundColor:d,onEntityNameClick:h}){const u=O(),p="default",g=c?.name??"";return t.jsxs(fi,{"data-testid":x("ap-aging-report-row-root-container",g),containerHeight:n,bgColor:d,windowSize:u,children:[t.jsxs(xi,{"data-testid":x("ap-aging-report-row-container",g),style:{cursor:p},isClickable:!1,containerHeight:n-1,children:[t.jsxs(bi,{onClick:()=>c?.id!=null?h?.(c.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:n-1,children:[c?.logo!=null?t.jsx(Dt,{photoUrl:c.logo.toString(),styles:{width:G.nameLogoWidth.valuePx(u),height:G.nameLogoHeight.valuePx(u)}}):t.jsx(Rt,{name:g??"",size:s.sp4}),t.jsx(xa,{children:g})]}),t.jsxs(mi,{"data-testid":x("ap-aging-report-row-balances-container",g),children:[r.map(f=>t.jsx(ki,{balance:f,isOpen:!0},f?.period)),t.jsx(ji,{total:l})]})]}),t.jsx(Si,{isScrolling:i,isLastNode:o})]})}function wa({treeNodeId:e,isSticky:n,height:i,isScrolling:o,isLastNode:r,isOpen:l,balances:c,total:d,totalWithChildren:h,nestedCustomer:u,metadata:p,backgroundColor:g,onEntityNameClick:f,onClick:m}){const b=O(),y=p,v=u?.customer.name??"",S=u!=null?u.id.length-1:0,A=u?.hasSiblings??!1,$=u!=null?u.children.length!==0:!1,W=$,N=W?"pointer":"default",z=u!=null?u.isLeafCustomer:!1,H=()=>{m?.(e)};return t.jsxs(fi,{"data-testid":x("ar-aging-report-row-root-container",e),containerHeight:i,bgColor:g,windowSize:b,children:[t.jsxs(xi,{"data-testid":x("ar-aging-report-row-container",e),style:{cursor:N},isClickable:W,containerHeight:i-1,children:[t.jsx(bi,{"data-testid":x("ar-aging-report-row-name-container",e),isSticky:n,windowSize:b,bgColor:g,containerHeight:i-1,children:t.jsx(pi,{displayName:v,depth:S,isLastNode:r,hasChildren:$,hasSiblings:A,isLeaf:z,collapsed:!l,subAccountAnscestorMetadata:y.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:H,onNameClick:()=>u?.id[0]!=null?f?.(u.id[0]):void 0})}),t.jsxs(mi,{children:[c.map(E=>t.jsx(ki,{balance:E,isOpen:l},E?.period)),t.jsx(ji,{total:l?d:h})]})]}),t.jsx(Si,{isScrolling:o,subEntityProps:{nestingLevel:S,isSticky:n,noMarginForEntity:!0}})]})}function Si({isScrolling:e,isLastNode:n=!1,subEntityProps:i}){return n?t.jsx($t,{isScrolling:e,kind:"end_row_separator",subEntityProps:i}):t.jsx($t,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:i})}const ya=a.div`
|
|
364
364
|
user-select: none;
|
|
365
365
|
display: flex;
|
|
366
366
|
flex: 1 1 auto;
|
|
@@ -380,13 +380,13 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
380
380
|
display: flex;
|
|
381
381
|
max-height: ${s.sp8};
|
|
382
382
|
min-height: ${s.sp8};
|
|
383
|
-
min-width: ${
|
|
383
|
+
min-width: ${G.balanceWidth};
|
|
384
384
|
justify-content: center;
|
|
385
385
|
align-items: center;
|
|
386
386
|
background-color: ${e=>e.theme.colors.background};
|
|
387
387
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
388
388
|
border-radius: ${s.sp2};
|
|
389
|
-
margin-left: ${
|
|
389
|
+
margin-left: ${G.balanceLeftMargin};
|
|
390
390
|
color: ${e=>e.theme.colors.primary};
|
|
391
391
|
`,vi=a(C)`
|
|
392
392
|
display: flex;
|
|
@@ -394,8 +394,8 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
394
394
|
flex-direction: row;
|
|
395
395
|
justify-content: center;
|
|
396
396
|
align-items: center;
|
|
397
|
-
height: ${
|
|
398
|
-
max-width: ${
|
|
397
|
+
height: ${G.balanceHeight};
|
|
398
|
+
max-width: ${G.balanceWidth};
|
|
399
399
|
width: 138px;
|
|
400
400
|
text-align: center;
|
|
401
401
|
column-gap: ${s.sp1};
|
|
@@ -406,7 +406,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
406
406
|
display: flex;
|
|
407
407
|
flex-direction: row;
|
|
408
408
|
align-items: center;
|
|
409
|
-
min-width: ${e=>
|
|
409
|
+
min-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
410
410
|
color: ${e=>e.theme.colors.primary};
|
|
411
411
|
background-color: ${e=>e.bgColor?.hex()};
|
|
412
412
|
${e=>e.isSticky?F`
|
|
@@ -468,10 +468,10 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
468
468
|
justify-content: flex-start;
|
|
469
469
|
`,Oi=a(C)`
|
|
470
470
|
user-select: none;
|
|
471
|
-
min-width: ${
|
|
472
|
-
max-width: ${
|
|
471
|
+
min-width: ${G.balanceWidth};
|
|
472
|
+
max-width: ${G.balanceWidth};
|
|
473
473
|
text-align: right;
|
|
474
|
-
margin-left: ${
|
|
474
|
+
margin-left: ${G.balanceLeftMargin};
|
|
475
475
|
color: ${e=>e.theme.colors.primary};
|
|
476
476
|
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
477
477
|
`,Wa=a.div`
|
|
@@ -481,8 +481,8 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
481
481
|
flex-grow: 1;
|
|
482
482
|
align-items: center;
|
|
483
483
|
height: ${e=>e.containerHeight-1}px;
|
|
484
|
-
width: ${e=>
|
|
485
|
-
max-width: ${e=>
|
|
484
|
+
width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
485
|
+
max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
486
486
|
background-color: ${e=>e.bgColor?.hex()};
|
|
487
487
|
${({isSticky:e})=>e?F`
|
|
488
488
|
position: sticky;
|
|
@@ -499,7 +499,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
499
499
|
text-align: left;
|
|
500
500
|
margin-left: ${e=>$a[e.depth]}px;
|
|
501
501
|
color: ${e=>e.theme.colors.primary};
|
|
502
|
-
width: ${e=>
|
|
502
|
+
width: ${e=>G.titleWidth.value(e.windowSize)-e.depth*w[11]}px;
|
|
503
503
|
`,Ma=({balance:e})=>t.jsx(Wi,{children:t.jsx(Oi,{isClickable:!1,onClick:()=>null,children:U("0,0",e?.totalBalance)})}),Ia=({total:e})=>t.jsx(Wi,{children:t.jsx(Oi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function Na({backgroundColor:e,isSticky:n,height:i,noMarginForEntity:o,isScrolling:r,total:l,nestedCustomer:c,metadata:d}){const h=O(),{common:{strings:{empty:u}},reports:{sections:p}}=B.getLocalizedStrings(),g=c!=null?c.id.length-1:0,f=d,m=c?.customer.name??u;return t.jsxs(La,{"data-testid":"sub-customer-total-row-root-container",containerHeight:i,bgColor:e,children:[t.jsxs(Aa,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(Wa,{isSticky:n,windowSize:h,bgColor:e,containerHeight:i,children:[t.jsx(gi,{ancestorMetadata:f.vendorOrCustomerAncestorMetadata,depth:g,name:m}),t.jsx(Oa,{isClickable:!1,title:m,depth:g,windowSize:h,children:p.totalPrefix+" "+m})]}),t.jsxs(Ba,{children:[c?.arAgingBalances.map((b,y)=>t.jsx(Ma,{balance:b},y)),t.jsx(Ia,{total:l})]})]}),t.jsx(Pa,{isScrolling:r,nestingLevel:g,isSticky:n,noMarginForEntity:o})]})}function Pa({isScrolling:e,nestingLevel:n,isSticky:i,noMarginForEntity:o}){return t.jsx($t,{isScrolling:e,kind:"subtotal_row_separator",subEntityProps:{nestingLevel:n,isSticky:i,noMarginForEntity:o}})}const re=e=>{switch(e){case"name+balances_actual":return!0;case"name+balances_forecast":return!1;case"name_only":return!1}},Pe=e=>{switch(e){case"name+balances_forecast":return!0;case"name+balances_actual":return!1;case"name_only":return!1}},Fa=a.div`
|
|
504
504
|
display: flex;
|
|
505
505
|
flex: 1 1 auto;
|
|
@@ -527,10 +527,10 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
527
527
|
justify-content: flex-start;
|
|
528
528
|
`,Ii=a(ne)`
|
|
529
529
|
user-select: none;
|
|
530
|
-
min-width: ${
|
|
531
|
-
max-width: ${
|
|
530
|
+
min-width: ${G.balanceWidth};
|
|
531
|
+
max-width: ${G.balanceWidth};
|
|
532
532
|
text-align: right;
|
|
533
|
-
margin-left: ${
|
|
533
|
+
margin-left: ${G.balanceLeftMargin};
|
|
534
534
|
color: ${e=>e.theme.colors.primary};
|
|
535
535
|
border: 1px solid transparent;
|
|
536
536
|
`,Va=a.div`
|
|
@@ -539,8 +539,8 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
539
539
|
flex-shrink: 2;
|
|
540
540
|
flex-grow: 1;
|
|
541
541
|
align-items: center;
|
|
542
|
-
width: ${e=>
|
|
543
|
-
max-width: ${e=>
|
|
542
|
+
width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
543
|
+
max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
544
544
|
background-color: ${e=>e.bgColor?.hex()};
|
|
545
545
|
${({isSticky:e,isIndented:n})=>e&&n?F`
|
|
546
546
|
position: -webkit-sticky;
|
|
@@ -562,7 +562,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
562
562
|
text-overflow: ellipsis;
|
|
563
563
|
text-align: left;
|
|
564
564
|
color: ${e=>e.theme.colors.primary};
|
|
565
|
-
`,Ga=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ii,{children:U("0,0",n?.balance)}):null}),Ra=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ii,{children:U("0,0",n)}):null});function Ea({type:e,isSticky:n,isIndented:i,height:o,title:r,totalBalances:l,backgroundColor:c}){const d=O(),h={amount:l.reduce((u,p)=>u+(p?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Ln.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Ln.currencySymbol};return t.jsx(Fa,{"data-testid":x("total-row-root-container"),height:o,bgColor:c,windowSize:d,children:t.jsxs(za,{isClickable:!1,"data-testid":x("total-row-container"),children:[t.jsx(Va,{bgColor:c,isSticky:n,windowSize:d,isIndented:i,children:t.jsx(Da,{children:r})}),t.jsxs(Ta,{children:[l.map((u,p)=>t.jsx(Ga,{type:e,balance:u},p)),t.jsx(Ra,{type:e,balance:h})]})]})})}const Ha=(e,n,i,o,r,l,c)=>{if(e.element.kind!=="timeframe_headers")return null;const d=e.element.data;return t.jsx(_a,{reportId:e.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:d,backgroundColor:i,isSticky:o,height:n,sortKey:r,sortOrder:l,onSortOrderChanged:c})},Ka=(e,n,i,o,r,l,c,d,h,u)=>{if(n.element.kind!=="aging_report_row")return null;if(n.config.reportId==="accounts_payable_aging"){const g=n.element.data;return t.jsx(ma,{backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,height:i,balances:g.apAgingBalances,vendor:g.vendor,total:g.total,onEntityNameClick:h})}const p=n.element.data;return t.jsx(wa,{treeNodeId:e,backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,isOpen:o,height:i,metadata:n.element.metadata,balances:p.arAgingBalances,nestedCustomer:p,total:p.total,totalWithChildren:p.totalWithChildren,onEntityNameClick:h,onClick:u})},Ya=(e,n,i,o,r)=>{if(e.element.kind!=="ac_subentity_total")return null;if(e.config.reportId==="accounts_receivable_aging"){const l=e.element.data;return t.jsx(Na,{backgroundColor:r,isScrolling:o,isSticky:i,height:n,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},Ua=(e,n,i,o,r)=>{const l=n.element.data;return t.jsx(Ea,{type:e,backgroundColor:o,isSticky:r,height:i,totalBalances:l,isIndented:n.config.reportId==="accounts_receivable_aging",title:n.element.title})};function st(e,n,i,o){switch(e){case"cogs":return qa(i,o,n);case"expenses":return Za(i,o,n);case"income":return Ja(i,o,n);case"cash_position":return Qa(i,o,n);case"cash_in":return Xa(i,o,n);case"cash_out":return el(i,o,n);case"assets":return tl(i,o,n);case"equity":return nl(i,o,n);case"liabilities":return il(i,o,n);case"other_expense":return ol(i,o,n);case"other_income":return rl(i,o,n);case"operating_activities":return al(i,o,n);case"investing_activities":return ll(i,o,n);case"financing_activities":return cl(i,o,n);default:throw Error(`${e} is not yet supported!`)}}const qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCogsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},Za=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithExpensesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},Ja=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithIncomeOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},Qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashPositionInTimeframe,o.compactedAccountsSelector=()=>G([],o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},Xa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCashInOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},el=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCashOutOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},tl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithAssetsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},nl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithEquityOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},il=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithLiabilitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},ol=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherExpensesInTimeframe,o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},rl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherIncomeInTimeframe,o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},al=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithOperatingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},ll=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithInvestingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},cl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithFinancingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o};function G(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Ni(n(o)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(o=>Pi(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Fi(n(o)?.balances??[]))}}function ie(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Ni(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Pi(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Fi(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function Ni(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function Pi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function Fi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function ee(e,n="ascending_date",i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Ti([],i)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:c}}function zi(e,n="ascending_date",i=-1,o=!0){const r=i!==-1,l=ee(e,n,i,o);if(e==null||e.balances.length===0)return l;const c=[...l.balances];if(e?.totalBalance!=null)c.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=Ti([],1);c.push(...d)}return{balances:c,thisPeriodIndex:l.thisPeriodIndex}}function Ge(e,n){if(n==="ascending_date")return e;{const i=[],o=[];for(const r of e)r.type==="default"?i.push(r):o.push(r);return[...i.reverse(),...o]}}function Ti(e,n){return e.length>0?e:Zn(Array(n),null)}const sl=a.div`
|
|
565
|
+
`,Ra=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ii,{children:U("0,0",n?.balance)}):null}),Ga=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ii,{children:U("0,0",n)}):null});function Ea({type:e,isSticky:n,isIndented:i,height:o,title:r,totalBalances:l,backgroundColor:c}){const d=O(),h={amount:l.reduce((u,p)=>u+(p?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Ln.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Ln.currencySymbol};return t.jsx(Fa,{"data-testid":x("total-row-root-container"),height:o,bgColor:c,windowSize:d,children:t.jsxs(za,{isClickable:!1,"data-testid":x("total-row-container"),children:[t.jsx(Va,{bgColor:c,isSticky:n,windowSize:d,isIndented:i,children:t.jsx(Da,{children:r})}),t.jsxs(Ta,{children:[l.map((u,p)=>t.jsx(Ra,{type:e,balance:u},p)),t.jsx(Ga,{type:e,balance:h})]})]})})}const Ha=(e,n,i,o,r,l,c)=>{if(e.element.kind!=="timeframe_headers")return null;const d=e.element.data;return t.jsx(_a,{reportId:e.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:d,backgroundColor:i,isSticky:o,height:n,sortKey:r,sortOrder:l,onSortOrderChanged:c})},Ka=(e,n,i,o,r,l,c,d,h,u)=>{if(n.element.kind!=="aging_report_row")return null;if(n.config.reportId==="accounts_payable_aging"){const g=n.element.data;return t.jsx(ma,{backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,height:i,balances:g.apAgingBalances,vendor:g.vendor,total:g.total,onEntityNameClick:h})}const p=n.element.data;return t.jsx(wa,{treeNodeId:e,backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,isOpen:o,height:i,metadata:n.element.metadata,balances:p.arAgingBalances,nestedCustomer:p,total:p.total,totalWithChildren:p.totalWithChildren,onEntityNameClick:h,onClick:u})},Ya=(e,n,i,o,r)=>{if(e.element.kind!=="ac_subentity_total")return null;if(e.config.reportId==="accounts_receivable_aging"){const l=e.element.data;return t.jsx(Na,{backgroundColor:r,isScrolling:o,isSticky:i,height:n,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},Ua=(e,n,i,o,r)=>{const l=n.element.data;return t.jsx(Ea,{type:e,backgroundColor:o,isSticky:r,height:i,totalBalances:l,isIndented:n.config.reportId==="accounts_receivable_aging",title:n.element.title})};function st(e,n,i,o){switch(e){case"cogs":return qa(i,o,n);case"expenses":return Qa(i,o,n);case"income":return Ja(i,o,n);case"cash_position":return Za(i,o,n);case"cash_in":return Xa(i,o,n);case"cash_out":return el(i,o,n);case"assets":return tl(i,o,n);case"equity":return nl(i,o,n);case"liabilities":return il(i,o,n);case"other_expense":return ol(i,o,n);case"other_income":return rl(i,o,n);case"operating_activities":return al(i,o,n);case"investing_activities":return ll(i,o,n);case"financing_activities":return cl(i,o,n);default:throw Error(`${e} is not yet supported!`)}}const qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCogsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},Qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithExpensesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},Ja=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithIncomeOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},Za=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashPositionInTimeframe,o.compactedAccountsSelector=()=>R([],o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},Xa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashInOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},el=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashOutOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},tl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithAssetsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},nl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithEquityOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},il=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithLiabilitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},ol=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherExpensesInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},rl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherIncomeInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},al=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithOperatingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},ll=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithInvestingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},cl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithFinancingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o};function R(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Ni(n(o)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(o=>Pi(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Fi(n(o)?.balances??[]))}}function ie(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Ni(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Pi(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Fi(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function Ni(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function Pi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function Fi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function ee(e,n="ascending_date",i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Ti([],i)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:c}}function zi(e,n="ascending_date",i=-1,o=!0){const r=i!==-1,l=ee(e,n,i,o);if(e==null||e.balances.length===0)return l;const c=[...l.balances];if(e?.totalBalance!=null)c.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=Ti([],1);c.push(...d)}return{balances:c,thisPeriodIndex:l.thisPeriodIndex}}function Re(e,n){if(n==="ascending_date")return e;{const i=[],o=[];for(const r of e)r.type==="default"?i.push(r):o.push(r);return[...i.reverse(),...o]}}function Ti(e,n){return e.length>0?e:Qn(Array(n),null)}const sl=a.div`
|
|
566
566
|
display: flex;
|
|
567
567
|
flex: 1 1 auto;
|
|
568
568
|
max-height: 1px;
|
|
@@ -690,7 +690,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
690
690
|
text-overflow: ellipsis;
|
|
691
691
|
text-align: left;
|
|
692
692
|
background-color: ${e=>e.bgColor?.hex()};
|
|
693
|
-
`,Bl=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs($l,{"data-testid":x("heading-row-balance-element",e),children:[re(e)||i?t.jsx(Je,{"data-testid":x("heading-row-balance-actual",e),children:q(n)}):t.jsx(Je,{"data-testid":x("heading-row-balance-forecast",e),children:
|
|
693
|
+
`,Bl=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs($l,{"data-testid":x("heading-row-balance-element",e),children:[re(e)||i?t.jsx(Je,{"data-testid":x("heading-row-balance-actual",e),children:q(n)}):t.jsx(Je,{"data-testid":x("heading-row-balance-forecast",e),children:Z(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Je,{"data-testid":x("heading-row-balance-forecast",e),children:Z(n)}),t.jsx(Je,{"data-testid":x("heading-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?ce(n):se(n)})]}):null]});function Wl({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,heading:l,headingBalances:c,isActualVsForecastOn:d,compareMode:h,isLeaf:u,onClick:p}){const g=O();return t.jsx(Cl,{height:r,bgColor:n,"data-testid":x("heading-row-root-container",o),children:t.jsxs(vl,{"data-testid":x("heading-row-container",o),isClickable:!u,onClick:()=>p?.(o),children:[ge(e)===!0?t.jsx(Ll,{"data-testid":x("heading-row-heading-container",o),isSticky:i,windowSize:g,bgColor:n,children:t.jsx(Al,{children:l})}):null,me(e)===!0?t.jsx(_l,{"data-testid":x("heading-row-balances-container",o),children:c.map((f,m)=>t.jsx(Bl,{"data-testid":x("heading-row-balance-element",e),type:e,heading:l,balance:f,isActualVsForecastOn:d,compareMode:h},m))}):null]})})}const Ol=(e,n,i,o,r,l,c)=>{if(n.element.kind!="calculated_section_type1"||n.element.data==null)return null;const d=n.element.data,h=ee(d,n.config.displayOrder,n.element.numOfBalances);return t.jsx(jl,{backgroundColor:o,isSticky:r,treeNodeId:e,heading:n.element.title,totalBalances:h.balances,height:i,isScrolling:l,isLastNode:c})},on=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="title_string_only")return null;const f=ee(void 0,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Wl,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,heading:i.element.title,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,headingBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:m=>{g?.(m)}})};function Vi(e,n){return Ml(n)}const Ml=(e,n)=>{const i={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return i.acBalanceSelector=o=>o.balancesInTimeframe,i.compactedAccountsSelectorVariant=o=>Il(o,i.acBalanceSelector,e),i};function Il(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Nl(n(o)?.balances??[]));default:return e}}function Nl(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}const Ze=[new V(w[4],56),new V(44,76),new V(69,102),new V(93,124),new V(113,143)],On=[new V(w[0],w[0]),new V(14,w[4]),new V(67,67),new V(102,102),new V(136,136)],Pl=a.div`
|
|
694
694
|
display: flex;
|
|
695
695
|
flex: 1 1 auto;
|
|
696
696
|
max-height: 1px;
|
|
@@ -722,8 +722,8 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
722
722
|
left: ${s.sp0};
|
|
723
723
|
`:null}
|
|
724
724
|
`,Tl=a.div`
|
|
725
|
-
width: ${e=>e.noMarginForAccount?
|
|
726
|
-
max-width: ${e=>e.noMarginForAccount?
|
|
725
|
+
width: ${e=>e.noMarginForAccount?Ze[e.nestingLevel].value(e.windowSize)-w[5]:Ze[e.nestingLevel].value(e.windowSize)}px;
|
|
726
|
+
max-width: ${e=>e.noMarginForAccount?Ze[e.nestingLevel].value(e.windowSize)-w[5]:Ze[e.nestingLevel].value(e.windowSize)}px;
|
|
727
727
|
height: 1px;
|
|
728
728
|
`,Vl=a.div`
|
|
729
729
|
width: ${e=>On[e.classDepth].valuePx(e.windowSize)};
|
|
@@ -735,18 +735,18 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
735
735
|
max-height: 1px;
|
|
736
736
|
height: 1px;
|
|
737
737
|
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
738
|
-
`,
|
|
738
|
+
`,Rl=a.div`
|
|
739
739
|
display: flex;
|
|
740
740
|
flex: 1 1 auto;
|
|
741
741
|
max-height: 1px;
|
|
742
742
|
height: 1px;
|
|
743
743
|
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
744
|
-
`,
|
|
744
|
+
`,Gl=a.div`
|
|
745
745
|
display: flex;
|
|
746
746
|
flex: 1 1 auto;
|
|
747
747
|
max-height: 1px;
|
|
748
748
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
749
|
-
`,In=e=>{const n=O(),i=le();return t.jsxs(Fl,{children:[t.jsxs(zl,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(Vl,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(Tl,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx(Dl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(
|
|
749
|
+
`,In=e=>{const n=O(),i=le();return t.jsxs(Fl,{children:[t.jsxs(zl,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(Vl,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(Tl,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx(Dl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(Rl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function we({kind:e,isScrolling:n,subAccountProps:i}){switch(e){case"account_title_row_separator":return t.jsx(Mn,{marginLeft:w[5],isScrolling:n});case"sub_account_balance_row_separator":return t.jsx(In,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!1,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1});case"account_balance_row_separator":return t.jsx(Mn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(Pl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(Gl,{isScrolling:n});case"total_row_separator":return t.jsx(In,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1})}}function Di({height:e,backgroundColor:n,title:i,numOfBalances:o=6}){const r=O(),l=i!=null?i.split("+")[1]:"";let c=null;const d=r!=="small";switch(l){case"section-row":c=t.jsx(El,{columns:o,isSticky:d});break;case"root-class-row":c=t.jsx(Hl,{columns:o,isSticky:d});break;case"sub-class-row":c=t.jsx(Kl,{columns:o,isSticky:d});break;case"leaf-class-row":c=t.jsxs(t.Fragment,{children:[t.jsx(Yl,{columns:o,isSticky:d}),t.jsx(we,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]});break}return t.jsx(ql,{height:e,bgColor:n,children:c})}const El=({columns:e,isSticky:n})=>t.jsxs(_e,{children:[t.jsxs(ht,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(ze,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(dt,{columns:e,rectangleWidth:k.loadingBalanceWidthInPx})]}),Hl=({columns:e,isSticky:n})=>t.jsxs(_e,{children:[t.jsxs(ht,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(ze,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(dt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Kl=({columns:e,isSticky:n})=>t.jsxs(_e,{children:[t.jsx(ht,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(_e,{style:{marginLeft:"36px"},children:[t.jsx(ze,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx,style:{marginLeft:w[4]}})]})}),t.jsx(dt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Yl=({columns:e,isSticky:n})=>t.jsxs(_e,{children:[t.jsx(ht,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(_e,{style:{marginLeft:"84px"},children:t.jsx(K,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})})}),t.jsx(dt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Ul=({rectangleWidth:e})=>t.jsx(Ri,{width:k.balanceWidthInPx,children:t.jsx(K,{width:e,height:k.balanceHeightInPx})}),dt=({columns:e,rectangleWidth:n})=>t.jsx(Ql,{style:{zIndex:9,width:k.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((i,o)=>t.jsx(Ul,{rectangleWidth:n},o))}),ql=a.div`
|
|
750
750
|
display: flex;
|
|
751
751
|
flex: 1 1 auto;
|
|
752
752
|
width: fit-content;
|
|
@@ -762,12 +762,12 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
762
762
|
justify-content: flex-start;
|
|
763
763
|
align-items: center;
|
|
764
764
|
min-height: 0;
|
|
765
|
-
`,
|
|
765
|
+
`,Ql=a.div`
|
|
766
766
|
display: flex;
|
|
767
767
|
flex: 1 0 auto;
|
|
768
768
|
flex-direction: row;
|
|
769
769
|
justify-content: flex-end;
|
|
770
|
-
`,
|
|
770
|
+
`,Ri=a.div`
|
|
771
771
|
display: flex;
|
|
772
772
|
flex-direction: row;
|
|
773
773
|
align-items: center;
|
|
@@ -775,13 +775,13 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
775
775
|
margin-right: ${k.balanceLeftMargin};
|
|
776
776
|
gap: ${k.balanceLeftMargin};
|
|
777
777
|
justify-content: flex-end;
|
|
778
|
-
`,ht=a(
|
|
778
|
+
`,ht=a(Ri)`
|
|
779
779
|
position: ${e=>e.isSticky===!0?"sticky":"static"};
|
|
780
780
|
left: ${s.sp0};
|
|
781
781
|
z-index: 10;
|
|
782
782
|
background-color: ${e=>e.theme.colors.grey4};
|
|
783
783
|
justify-content: flex-start;
|
|
784
|
-
`;function
|
|
784
|
+
`;function Gi({height:e,numOfBalances:n,backgroundColor:i}){const o=O();return t.jsx(Jl,{height:e,bgColor:i,children:t.jsxs(Zl,{windowSize:o,children:[t.jsx(Xl,{windowSize:o,width:`${k.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(ec,{children:Array.from({length:n},(r,l)=>t.jsx(Ei,{windowSize:o,width:k.balanceWidth,children:t.jsx(K,{width:k.balanceWidthInPx,height:w[6]})},`timeframe-balance-${l}`))})]})})}const Jl=a.div`
|
|
785
785
|
display: flex;
|
|
786
786
|
flex: 1 1 auto;
|
|
787
787
|
width: fit-content;
|
|
@@ -790,7 +790,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
790
790
|
height: ${e=>e.height}px;
|
|
791
791
|
background-color: ${e=>e.bgColor?.hex()};
|
|
792
792
|
margin-top: 20px;
|
|
793
|
-
`,
|
|
793
|
+
`,Zl=a.div`
|
|
794
794
|
display: flex;
|
|
795
795
|
flex-direction: row;
|
|
796
796
|
width: 100%;
|
|
@@ -892,7 +892,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
892
892
|
text-overflow: ellipsis;
|
|
893
893
|
text-align: left;
|
|
894
894
|
margin-left: ${s.sp2};
|
|
895
|
-
`,uc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?sc:Lt;return t.jsxs(cc,{"data-testid":x("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":x("account-group-row-balance-actual",e),children:q(n)}),Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":x("account-group-row-balance-forecast",e),children:
|
|
895
|
+
`,uc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?sc:Lt;return t.jsxs(cc,{"data-testid":x("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":x("account-group-row-balance-actual",e),children:q(n)}),Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":x("account-group-row-balance-forecast",e),children:Z(n)}),t.jsx(Lt,{"data-testid":x("account-group-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function gc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountGroupName:l,accountGroupBalances:c,compareMode:d,isScrolling:h,isOpen:u,isLeaf:p,isLastNode:g,onClick:f}){const m=O(),b=!p,y=b?"pointer":"default",v=l.length>0?l.substr(0,1).toUpperCase():"",S=fc(c),A=le().colors.primary,[$,W]=I.useState(!1);return t.jsxs(rc,{"data-testid":x("account-group-row-root-container",e),height:r,bgColor:n,windowSize:m,children:[t.jsxs(ac,{"data-testid":x("account-group-row-container",e),style:{cursor:y},isClickable:b,onClick:()=>f?.(o),onMouseOver:()=>W(!0),onMouseLeave:()=>W(!1),children:[t.jsxs(dc,{"data-testid":x("account-group-row-name-container",e),bgColor:n,isSticky:i,windowSize:m,hasNonZeroBalance:S,children:[t.jsx(ke,{"data-testid":x("account-group-row-circle-with-letter",e),color:L(A),showCollapsedIcon:!u,showIcon:b&&$,firstLetter:v}),t.jsx(hc,{"data-testid":x("account-group-row-name",e),children:l})]}),t.jsx(lc,{"data-testid":x("account-group-row-balances-container",e),hasNonZeroBalance:S,children:c.map((N,z)=>t.jsx(uc,{"data-testid":x("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:N,compareMode:d,collapsed:!1},z))})]}),t.jsx(pc,{isScrolling:h,isLeaf:p,isLastNode:g,isOpen:u})]})}function pc({isScrolling:e,isLeaf:n,isLastNode:i,isOpen:o}){return n||!o||!i?t.jsx(rn,{isScrolling:e,kind:"ac_group_row_separator"}):null}const fc=e=>{let n=!1;if(e!=null){for(const i of e)if(i!=null&&i.balance.amount!==0){n=!0;break}}return n},xc=a.div`
|
|
896
896
|
display: flex;
|
|
897
897
|
flex: 1 1 auto;
|
|
898
898
|
width: fit-content;
|
|
@@ -955,7 +955,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
955
955
|
text-align: left;
|
|
956
956
|
margin-left: 35px;
|
|
957
957
|
color: ${e=>e.theme.colors.hero};
|
|
958
|
-
`,jc=({type:e,balance:n,account:i,onAccountBalanceClick:o,compareMode:r})=>{const l=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",c=i!=null&&n!=null&&o!=null&&l!==!0;return t.jsxs(yc,{children:[t.jsx(jt,{isClickable:c,onClick:()=>{c===!0&&i!=null&&n!=null&&o?.(i,n)},children:q(n)}),Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(jt,{isClickable:!1,children:
|
|
958
|
+
`,jc=({type:e,balance:n,account:i,onAccountBalanceClick:o,compareMode:r})=>{const l=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",c=i!=null&&n!=null&&o!=null&&l!==!0;return t.jsxs(yc,{children:[t.jsx(jt,{isClickable:c,onClick:()=>{c===!0&&i!=null&&n!=null&&o?.(i,n)},children:q(n)}),Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(jt,{isClickable:!1,children:Z(n)}),t.jsx(jt,{isClickable:!1,children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function Sc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isCompareModeOn:c,isForecastModeOn:d,isScrolling:h,isLeaf:u,isLastNode:p,compareMode:g,account:f,onAccountBalanceClick:m}){const b=O(),{common:{strings:{empty:y}}}=B.getLocalizedStrings(),v=f?.accountDescription?f.accountDescription:y,S=f?.accountName?f.accountName:v,A=Jn(),$=A.loggedInUserRole!=null&&!oi(A.loggedInUserRole),W=$===!0&&f!=null&&c!==!0&&m!=null&&d!==!0,N=W?"pointer":"default",z=(H,E)=>{W===!0&&l[l.length-1]!=null&&m?.(H,E,l[l.length-1])};return t.jsxs(xc,{height:r,bgColor:n,windowSize:b,children:[t.jsxs(mc,{style:{cursor:N},isClickable:W,onClick:()=>f!=null?z(o,f):null,children:[t.jsx(bc,{isSticky:i,windowSize:b,bgColor:n,children:t.jsx(kc,{title:S,children:S})}),t.jsx(wc,{children:l.map((H,E)=>t.jsx(jc,{type:e,balance:H,account:f,onAccountBalanceClick:$===!1||m==null?void 0:(Y,Q)=>{m(o,Y,Q)},compareMode:g},E))})]}),t.jsx(Cc,{isScrolling:h,isLeaf:u,isLastNode:p})]})}function Cc({isScrolling:e,isLeaf:n,isLastNode:i}){return n||!i?t.jsx(rn,{isScrolling:e,kind:"ac_group_row_separator"}):null}const vc=a.div`
|
|
959
959
|
display: flex;
|
|
960
960
|
flex: 1 1 auto;
|
|
961
961
|
width: fit-content;
|
|
@@ -1021,7 +1021,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1021
1021
|
text-overflow: ellipsis;
|
|
1022
1022
|
text-align: left;
|
|
1023
1023
|
margin-left: ${s.sp2};
|
|
1024
|
-
`,Wc=({type:e,balance:n,color:i,compareMode:o})=>{const r=n!=null&&n.type==="default_with_percent"&&n.percentValue!=null?n.percentValue:0,l=n!=null&&n.type==="default_with_percent"&&n.forecastPercentValue!=null?n.forecastPercentValue:0;return t.jsxs(Lc,{children:[t.jsxs(Nn,{children:[t.jsx(Ae,{style:{color:i.toString()},children:q(n)}),Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(Ae,{style:{color:i.toString()},children:
|
|
1024
|
+
`,Wc=({type:e,balance:n,color:i,compareMode:o})=>{const r=n!=null&&n.type==="default_with_percent"&&n.percentValue!=null?n.percentValue:0,l=n!=null&&n.type==="default_with_percent"&&n.forecastPercentValue!=null?n.forecastPercentValue:0;return t.jsxs(Lc,{children:[t.jsxs(Nn,{children:[t.jsx(Ae,{style:{color:i.toString()},children:q(n)}),Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(Ae,{style:{color:i.toString()},children:Z(n)}),t.jsx(Ae,{style:{color:i.toString()},children:o==="compare_mode_percent"?ce(n):se(n)})]}):null]}),t.jsxs(Nn,{children:[r!==0?t.jsx(Pn,{style:{color:i.toString()},children:fe("0,0%",r)}):null,Pe(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(Pn,{style:{color:i.toString()},children:fe("0,0%",l)}):t.jsx(Ae,{}),t.jsx(Ae,{})]}):null]})]})};function an({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:c,sectionColor:d,isScrolling:h,isOpen:u,isLeaf:p,compareMode:g,onClick:f}){const m=O(),[b,y]=I.useState(!1),v=!p,S=v?"pointer":"default",A=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(vc,{"data-testid":x("section-row-root-container",o),rootHeight:r,bgColor:n,windowSize:m,children:[t.jsxs(_c,{"data-testid":x("section-row-container",o),style:{cursor:S},onClick:()=>f?.(o),onMouseOver:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(Ac,{"data-testid":x("section-row-name-container",o),isSticky:i,windowSize:m,bgColor:n,children:[t.jsx(ke,{"data-testid":x("section-row-circle-with-letter",o),color:L(d),showCollapsedIcon:!u,showIcon:v&&b,firstLetter:A}),t.jsx(Bc,{"data-testid":x("section-row-name",o),style:{color:d.toString()},children:l})]}),t.jsx($c,{"data-testid":x("section-row-balances-container",o),children:c.map(($,W)=>t.jsx(Wc,{"data-testid":x("section-row-balance-element",e),type:e,sectionName:l,balance:$,color:d,compareMode:g},W))})]}),t.jsx(Oc,{isScrolling:h,isLeaf:p,isOpen:u})]})}function Oc({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(rn,{isScrolling:e,kind:"section_row_separator"}):null}const Mc=a.div`
|
|
1025
1025
|
display: flex;
|
|
1026
1026
|
flex: 1 1 auto;
|
|
1027
1027
|
width: fit-content;
|
|
@@ -1088,7 +1088,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1088
1088
|
text-align: right;
|
|
1089
1089
|
margin-left: ${D.balanceLeftMargin};
|
|
1090
1090
|
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1091
|
-
`,Vc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?Fc:Hi;return t.jsxs(Pc,{children:[re(e)===!0?t.jsx(r,{children:q(n)}):null,Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(St,{children:q(n)}),t.jsx(St,{children:
|
|
1091
|
+
`,Vc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?Fc:Hi;return t.jsxs(Pc,{children:[re(e)===!0?t.jsx(r,{children:q(n)}):null,Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(St,{children:q(n)}),t.jsx(St,{children:Z(n)}),t.jsx(St,{children:o==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function Dc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:c,isLeaf:d,compareMode:h,onClick:u}){const p=O(),g=!d,f=g?"pointer":"default";return t.jsx(Mc,{height:r,bgColor:n,windowSize:p,children:t.jsxs(Ic,{style:{cursor:f},isClickable:g,onClick:()=>u?.(o),children:[t.jsx(zc,{bgColor:n,isSticky:i,windowSize:p,children:t.jsx(Tc,{children:l})}),t.jsx(Nc,{children:c.map((m,b)=>t.jsx(Vc,{type:e,balance:m,collapsed:!1,compareMode:h},b))})]})})}const Ce={net_burn_or_income:{income:{color:new L(T.graphColor04),hoverColor:new L(T.graphColor04Dark)},cogs:{color:new L(T.graphColor10),hoverColor:new L(T.graphColor10Dark)},expenses:{color:new L(T.graphColor32),hoverColor:new L(T.graphColor32Dark)},"Gross Burn":{color:new L(X.neutralGrey2Dark),hoverColor:new L(X.neutralGrey2Dark)},"Net Burn":{color:new L(T.graphColor13),hoverColor:new L(T.graphColor13Dark)},"Net Income":{color:new L(T.graphColor13),hoverColor:new L(T.graphColor13Dark)}},revenue:{income:{color:new L(T.graphColor28),hoverColor:new L(T.graphColor28Dark)},cogs:{color:new L(T.graphColor17),hoverColor:new L(T.graphColor17Dark)},"Gross Margin":{color:new L(T.graphColor10),hoverColor:new L(T.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new L(T.graphColor33),hoverColor:new L(T.graphColor33Dark)},cash_out:{color:new L(T.graphColor02),hoverColor:new L(T.graphColor02Dark)},"Net Cash Flow":{color:new L(T.graphColor35),hoverColor:new L(T.graphColor35Dark)}},default:{color:new L(X.neutralGrey2Dark),hoverColor:new L(X.neutralGrey2Dark)}},ln=(e,n)=>e.startsWith("net_burn_or_income")===!0?n!=null?Ce.net_burn_or_income[n]:Ce.default:e.startsWith("revenue")===!0?n!=null?Ce.revenue[n]:Ce.default:e.startsWith("cash_in_cash_out")===!0&&n!=null?Ce.cash_in_cash_out[n]:Ce.default,Rc=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Te(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):st(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),m=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Sc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountBalances:m.balances,isCompareModeOn:i.config.mode==="this_period_vs_period_before",isForecastModeOn:i.config.mode==="actual_vs_forecast",isScrolling:c,isLeaf:d,isLastNode:h,compareMode:u,account:g,onAccountBalanceClick:p==null?void 0:(b,y,v)=>{p?.(b,y,v)}})},Gc=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,m=st(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(gc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountGroupName:f.accountGroupName,compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Ki=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=ln(i.config.reportId,i.element.sectionType),m=i.element.data,b=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(an,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionColor:f.color,sectionName:i.element.title,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Ec=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=ln(i.config.reportId,i.element.sectionType),m=i.element.data,b=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(an,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Yi=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=ln(i.config.reportId,i.element.title),m=i.element.data,b=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(an,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Ui=(e,n,i,o,r,l,c,d)=>{if((i.config.isZeniCOAInUse==null||i.config.isZeniCOAInUse===!0)&&i.config.mode!=="this_period_vs_period_before")return null;const h=i.element.data,u=ee(h,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Dc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,title:i.element.title,height:o,isLeaf:d,compareMode:c,totalBalances:u.balances})},Hc=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Kc=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Gi,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),cn=20,Yc=e=>{const n=[];return e&&Object.values(e).forEach(i=>{n.push(i)}),n.reverse()},Uc=a.div`
|
|
1092
1092
|
display: flex;
|
|
1093
1093
|
flex: 1 1 auto;
|
|
1094
1094
|
height: 1px;
|
|
@@ -1097,7 +1097,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1097
1097
|
display: flex;
|
|
1098
1098
|
height: 1px;
|
|
1099
1099
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
1100
|
-
`;function At({kind:e,isScrolling:n}){switch(e){case"account_class_row_separator":return t.jsx(Uc,{isScrolling:n});case"section_row_separator":case"vendor_separator":return t.jsx(qc,{isScrolling:n});case"heading_row_separator":return null}}const
|
|
1100
|
+
`;function At({kind:e,isScrolling:n}){switch(e){case"account_class_row_separator":return t.jsx(Uc,{isScrolling:n});case"section_row_separator":case"vendor_separator":return t.jsx(qc,{isScrolling:n});case"heading_row_separator":return null}}const Qc=a.div`
|
|
1101
1101
|
position: relative;
|
|
1102
1102
|
`,Jc=a.div`
|
|
1103
1103
|
height: ${e=>e.height}px;
|
|
@@ -1106,7 +1106,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1106
1106
|
`;a.div`
|
|
1107
1107
|
height: 39px;
|
|
1108
1108
|
width: 2px;
|
|
1109
|
-
`;const
|
|
1109
|
+
`;const Zc=a.div`
|
|
1110
1110
|
position: relative;
|
|
1111
1111
|
margin-right: ${s.sp3};
|
|
1112
1112
|
&::after {
|
|
@@ -1135,7 +1135,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1135
1135
|
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1136
1136
|
margin-bottom: ${e=>e.height}px;
|
|
1137
1137
|
width: 1px;
|
|
1138
|
-
`,qi=({height:e})=>t.jsx(
|
|
1138
|
+
`,qi=({height:e})=>t.jsx(Qc,{children:t.jsx(Jc,{height:e})}),ns=({height:e})=>t.jsx(es,{height:e,children:t.jsx(ts,{height:e})}),is=()=>t.jsx(Zc,{children:t.jsx(Xc,{})}),j={balanceHeight:s.sp4,balanceHeaderWidth:"126px",balanceWidth:"128px",balanceLeftMargin:"12px",statusLeftMargin:"12px",titleWidth:"685px",vendorContainerWidth:"628px",sectionContainerWidth:"685px",varianceHeaderContainerWidth:"182px",varianceContainerWidth:"184px",statusContainerWidth:"144px",sortIconDimension:"12px",categoryClassContainerWidth:"685px",categoryClassHeaderWidth:"250px",categoryClassValueWidth:"250px",lineComponentHeight:39,lineLComponentHeight:19.5,vendorLineComponentHeight:16,rectangularContainerWidth:128,largeRectangularContainerWidth:168,titleWidthMedium:"180px",categoryRowsSkeletonContainerWidth:"300px",varianceRowSkeletonContainerWidth:"210px",titleWidthSmall:"128px"};function Qi(e,n=!1){switch(e){case"section":return w[8];case"flux_vendor_account_class_row":return n?w[9]:w[6];case"flux_vendor_row":return w[8];case"timeframe_headers":return w[8];case"total":return w[8];case"loading_in_progress":return w[8];case"headers_loading_in_progress":return w[8];default:return 0}}function os(e){return["section","flux_vendor_account_class_row","flux_vendor_row"].includes(e)}const Fn=B.getLocalizedStrings(),rs=a.div`
|
|
1139
1139
|
display: flex;
|
|
1140
1140
|
flex-shrink: 0;
|
|
1141
1141
|
width: ${j.varianceContainerWidth};
|
|
@@ -1178,7 +1178,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1178
1178
|
`,Ji=a.div`
|
|
1179
1179
|
display: flex;
|
|
1180
1180
|
flex-direction: column;
|
|
1181
|
-
`,
|
|
1181
|
+
`,Zi=a.div`
|
|
1182
1182
|
display: flex;
|
|
1183
1183
|
height: ${s.sp4};
|
|
1184
1184
|
`,ds=a.div`
|
|
@@ -1264,7 +1264,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1264
1264
|
display: flex;
|
|
1265
1265
|
flex: 1;
|
|
1266
1266
|
justify-content: flex-end;
|
|
1267
|
-
`,js=({isBalanceRowFirstNode:e=!1,balance:n})=>{const i=n!=null;return t.jsxs(Ji,{children:[e?t.jsx(
|
|
1267
|
+
`,js=({isBalanceRowFirstNode:e=!1,balance:n})=>{const i=n!=null;return t.jsxs(Ji,{children:[e?t.jsx(Zi,{}):null,t.jsx(ds,{children:t.jsx(hs,{isClickable:i,children:q(n)})})]})};function Ss({varianceAmount:e,variancePercentage:n,currency:i,isSticky:o,balances:r,isScrolling:l,nodeMetadata:c,isLeaf:d,isLastNode:h,accountAndClass:u,isHoveredByParent:p}){const{common:{strings:{hyphen:g}}}=B.getLocalizedStrings(),f=u.accountBase?.accountDescription?u.accountBase?.accountDescription:g,m=u.accountBase?.accountName?u.accountBase?.accountName:f,b=u.classBase?.className?u.classBase?.className:g,y=c?.accountAndClassRowMetadata.isLastNode;return t.jsxs(cs,{children:[t.jsxs(ss,{style:{cursor:"default"},isHoveredByParent:p,children:[t.jsx(bs,{children:t.jsxs(us,{className:"flux-class-and-account-value-container",isSticky:o,children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(gs,{children:[t.jsx(qi,{height:j.lineComponentHeight}),t.jsx(fs,{children:zn.common.texts.category}),t.jsx(xs,{children:zn.common.texts.class})]}),t.jsxs(ps,{children:[y===!0?t.jsx(ns,{height:j.lineLComponentHeight}):t.jsx(is,{}),t.jsx(ms,{title:m,children:m}),t.jsx(ws,{title:b,children:b})]})]})}),t.jsx(ks,{children:t.jsxs(ys,{children:[r.map((v,S)=>t.jsx(js,{balance:v,isBalanceRowFirstNode:c?.accountAndClassRowMetadata.isFirstNode},S)),t.jsxs(Ji,{children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsx(Zi,{}),t.jsx(ut,{amount:e,percentage:n,currency:i})]})]})})]}),t.jsx(Cs,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:c?.isVendorLastChild??!0})]})}function Cs({isScrolling:e,isLastNode:n,isParentLastChild:i}){return n&&i?t.jsx(At,{isScrolling:e,kind:"vendor_separator"}):n?t.jsx(At,{isScrolling:e,kind:"account_class_row_separator"}):null}function vs(){return t.jsxs(_s,{children:[t.jsxs(Ls,{children:[t.jsxs(ve,{width:j.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(ze,{width:w[4],height:w[4]}),t.jsx(K,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})]}),t.jsx(ve,{width:j.categoryRowsSkeletonContainerWidth,children:t.jsx(K,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})})]}),t.jsxs($s,{children:[t.jsx(ve,{width:j.titleWidthMedium,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{width:j.titleWidthMedium,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(ve,{width:j.varianceRowSkeletonContainerWidth,children:[t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}}),t.jsx(K,{width:w[7],height:w[4],style:{display:"flex",alignItems:"flex-start",marginLeft:s.sp1}})]}),t.jsx(ve,{width:j.titleWidthMedium,children:t.jsx(K,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const _s=a.div`
|
|
1268
1268
|
display: flex;
|
|
1269
1269
|
flex-direction: row;
|
|
1270
1270
|
width: 100%;
|
|
@@ -1340,7 +1340,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1340
1340
|
text-align: left;
|
|
1341
1341
|
margin-left: ${s.sp2};
|
|
1342
1342
|
color: ${({color:e})=>e};
|
|
1343
|
-
`,Ns=a(
|
|
1343
|
+
`,Ns=a(Gt)`
|
|
1344
1344
|
color: ${e=>e.theme.colors.primary};
|
|
1345
1345
|
width: ${s.sp3};
|
|
1346
1346
|
height: ${s.sp3};
|
|
@@ -1363,7 +1363,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1363
1363
|
${j.statusContainerWidth} +
|
|
1364
1364
|
${j.statusLeftMargin}
|
|
1365
1365
|
);
|
|
1366
|
-
`,Ts=({balance:e,color:n})=>t.jsx(Ws,{children:t.jsx(Os,{color:n,children:q(e)})}),Vs=Ho.memo(function({currency:e,sectionId:n,selectedSectionsIds:i,backgroundColor:o,isSticky:r,treeNodeId:l,height:c,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:p,variancePercentage:g,sectionColor:f,isScrolling:m,isOpen:b,isLeaf:y,idsForReview:v,sectionToggled:S,onSectionCheckboxClick:A}){const $=O(),[W,N]=I.useState(v.length>0),[z,H]=I.useState(!1),E=i.includes(n),Y=!y,
|
|
1366
|
+
`,Ts=({balance:e,color:n})=>t.jsx(Ws,{children:t.jsx(Os,{color:n,children:q(e)})}),Vs=Ho.memo(function({currency:e,sectionId:n,selectedSectionsIds:i,backgroundColor:o,isSticky:r,treeNodeId:l,height:c,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:p,variancePercentage:g,sectionColor:f,isScrolling:m,isOpen:b,isLeaf:y,idsForReview:v,sectionToggled:S,onSectionCheckboxClick:A}){const $=O(),[W,N]=I.useState(v.length>0),[z,H]=I.useState(!1),E=i.includes(n),Y=!y,Q=v.length===cn&&!E,pe=d?.[0]?.toUpperCase()??"",J=I.useCallback(oe=>{A?.(n,oe.target.checked)},[n,A]),de=x("flux-analysis-section-expand-collapse",n),$e=x("flux-analysis-section-row",n),he=x("flux-analysis-section-checkbox",n);return t.jsxs(As,{heightValue:c,bgColor:o,"data-testid":$e,children:[t.jsxs(Bs,{style:{cursor:Y?"pointer":"default"},onClick:()=>S?.(l),onMouseOver:()=>{H(!0),N(!0)},onMouseLeave:()=>{H(!1),v.length===0&&N(!1)},children:[t.jsxs(Ms,{className:"flux-section-name-container",isSticky:r,windowSize:$,bgColor:o,children:[h&&W&&b?t.jsx(Ps,{children:t.jsx(Tt,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox","data-testid":he,icon:t.jsx(Vt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Ns,{}),checked:E,id:l,disabled:Q,onChange:J,onClick:oe=>oe.stopPropagation(),style:{padding:"20px",pointerEvents:Q?"none":"auto"}})}):t.jsx(Fs,{}),t.jsx(ke,{color:L(f),dataTestId:de,firstLetter:pe,showCollapsedIcon:!b,showIcon:z&&Y}),t.jsx(Is,{color:f.toString(),children:d})]}),t.jsxs(zs,{children:[u.map((oe,je)=>t.jsx(Ts,{sectionName:d,balance:oe,color:f.toString()},je)),t.jsx(ut,{amount:p,percentage:g,currency:e})]})]}),t.jsx(Ds,{isScrolling:m,isLeaf:y,isOpen:b})]})});function Ds({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(At,{isScrolling:e,kind:"section_row_separator"}):null}function Rs(){const e=O();return t.jsxs(Gs,{windowSize:e,children:[t.jsx(Be,{windowSize:e,width:j.vendorContainerWidth,marginRight:0,children:t.jsx(K,{width:w[9],height:w[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(Be,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(K,{width:128,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Be,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Be,{windowSize:e,width:j.varianceRowSkeletonContainerWidth,children:t.jsx(K,{width:184,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Be,{windowSize:e,width:j.titleWidthSmall,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})})]})}const Gs=a.div`
|
|
1367
1367
|
display: flex;
|
|
1368
1368
|
flex-direction: row;
|
|
1369
1369
|
width: 100%;
|
|
@@ -1415,7 +1415,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1415
1415
|
`,qs=a.div`
|
|
1416
1416
|
display: flex;
|
|
1417
1417
|
cursor: pointer;
|
|
1418
|
-
`,
|
|
1418
|
+
`,Qs=a.div`
|
|
1419
1419
|
display: flex;
|
|
1420
1420
|
cursor: pointer;
|
|
1421
1421
|
justify-content: center;
|
|
@@ -1433,7 +1433,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1433
1433
|
display: flex;
|
|
1434
1434
|
position: sticky;
|
|
1435
1435
|
`:null};
|
|
1436
|
-
`,
|
|
1436
|
+
`,Zs=a.div`
|
|
1437
1437
|
height: ${s.sp8};
|
|
1438
1438
|
display: flex;
|
|
1439
1439
|
flex-direction: row;
|
|
@@ -1466,7 +1466,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1466
1466
|
margin-left: ${s.sp7};
|
|
1467
1467
|
flex: 1 1 auto;
|
|
1468
1468
|
justify-content: flex-end;
|
|
1469
|
-
`,td=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(Bt,{isClickable:!1,children:t.jsx(Us,{children:De(e,n,i)})}),nd=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(td,{firstMonthOfFY:e,timeframeTick:n,timeframe:i}),id=({sortKey:e="vendor",sortOrder:n="ascending",isBulkSelected:i,onSortOrderChanged:o})=>{const r=()=>{o(n==="ascending"?"descending":"ascending","vendor")},l=e==="vendor"?n:"ascending";return t.jsx(Xs,{isBulkSelected:i,isSortedByKey:e==="vendor",children:t.jsxs(Wt,{onClick:r,"data-testid":x("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Ks.vendor,t.jsx(Ot,{isBulkSelected:i,isSortedByKey:e==="vendor",children:l==="ascending"?t.jsx(Mt,{}):t.jsx(It,{})})]})})};function od({backgroundColor:e,height:n,isBulkSelected:i,sortKey:o="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:c,timeframeTicks:d,onSortOrderChanged:h}){const u=O(),p=(g,f)=>{h?.(g,f)};return t.jsxs(Ys,{heightValue:n,bgColor:e,children:[t.jsx(Js,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(
|
|
1469
|
+
`,td=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(Bt,{isClickable:!1,children:t.jsx(Us,{children:De(e,n,i)})}),nd=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(td,{firstMonthOfFY:e,timeframeTick:n,timeframe:i}),id=({sortKey:e="vendor",sortOrder:n="ascending",isBulkSelected:i,onSortOrderChanged:o})=>{const r=()=>{o(n==="ascending"?"descending":"ascending","vendor")},l=e==="vendor"?n:"ascending";return t.jsx(Xs,{isBulkSelected:i,isSortedByKey:e==="vendor",children:t.jsxs(Wt,{onClick:r,"data-testid":x("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Ks.vendor,t.jsx(Ot,{isBulkSelected:i,isSortedByKey:e==="vendor",children:l==="ascending"?t.jsx(Mt,{}):t.jsx(It,{})})]})})};function od({backgroundColor:e,height:n,isBulkSelected:i,sortKey:o="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:c,timeframeTicks:d,onSortOrderChanged:h}){const u=O(),p=(g,f)=>{h?.(g,f)};return t.jsxs(Ys,{heightValue:n,bgColor:e,children:[t.jsx(Js,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(Zs,{windowSize:u,children:t.jsx(id,{sortKey:o,sortOrder:r,isBulkSelected:i,onSortOrderChanged:p})})}),t.jsxs(ed,{children:[d.map((g,f)=>t.jsx(nd,{firstMonthOfFY:l,timeframeTick:g,timeframe:c},f)),t.jsx(Bt,{isClickable:!1,width:j.varianceHeaderContainerWidth,children:t.jsxs(Wt,{onClick:()=>h?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":x("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(qs,{children:Hs.variance}),t.jsx(Ot,{isBulkSelected:i,isSortedByKey:o==="variance",children:(o==="variance"?r:"ascending")==="ascending"?t.jsx(Mt,{}):t.jsx(It,{})})]})}),t.jsx(Bt,{isClickable:!1,width:j.statusContainerWidth,children:t.jsxs(Wt,{onClick:()=>{h?.(r==="ascending"?"descending":"ascending","status")},"data-testid":x("flux-analysis-report-timeframe-row-status"),children:[t.jsx(Qs,{children:Es.texts.reviewStatus}),t.jsx(Ot,{isBulkSelected:i,isSortedByKey:o==="status",children:(o==="status"?r:"ascending")==="ascending"?t.jsx(Mt,{}):t.jsx(It,{})})]})})]})]})}const rd=a.div`
|
|
1470
1470
|
display: flex;
|
|
1471
1471
|
flex: 1 1 auto;
|
|
1472
1472
|
width: fit-content;
|
|
@@ -1679,7 +1679,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1679
1679
|
background-color: transparent;
|
|
1680
1680
|
}
|
|
1681
1681
|
}
|
|
1682
|
-
`,Od=a(
|
|
1682
|
+
`,Od=a(Gt)`
|
|
1683
1683
|
color: ${e=>e.theme.colors.primary};
|
|
1684
1684
|
width: ${s.sp3};
|
|
1685
1685
|
height: ${s.sp3};
|
|
@@ -1692,7 +1692,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1692
1692
|
`,Id=a(Xn)`
|
|
1693
1693
|
width: 12px;
|
|
1694
1694
|
height: 12px;
|
|
1695
|
-
`,Tn=a(
|
|
1695
|
+
`,Tn=a(Zn)`
|
|
1696
1696
|
margin-left: 2px;
|
|
1697
1697
|
width: 12px;
|
|
1698
1698
|
height: 12px;
|
|
@@ -1721,14 +1721,14 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1721
1721
|
justify-content: center;
|
|
1722
1722
|
align-items: center;
|
|
1723
1723
|
margin-left: ${s.sp1};
|
|
1724
|
-
`,{common:Vn,expenseAutomation:zd}=B.getLocalizedStrings(),Td=({balance:e})=>{const n=yd;return t.jsx(wd,{children:t.jsx(n,{children:q(e)})})};function Vd({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:i,isSticky:o,treeNodeId:r,height:l,leftChevron:c,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:p,reviewedByUser:g,status:f,vendor:m,isOpen:b,childrenCount:y,vendorRowIndex:v,setHoveredParentId:S,onClick:A,handleRedirectToVendorDetailPage:$,updateOperatingExpensesIdsForReview:W}){const[N,z]=I.useState(!1),[H,E]=I.useState(n.length>0),Y=n.includes(e),
|
|
1724
|
+
`,{common:Vn,expenseAutomation:zd}=B.getLocalizedStrings(),Td=({balance:e})=>{const n=yd;return t.jsx(wd,{children:t.jsx(n,{children:q(e)})})};function Vd({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:i,isSticky:o,treeNodeId:r,height:l,leftChevron:c,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:p,reviewedByUser:g,status:f,vendor:m,isOpen:b,childrenCount:y,vendorRowIndex:v,setHoveredParentId:S,onClick:A,handleRedirectToVendorDetailPage:$,updateOperatingExpensesIdsForReview:W}){const[N,z]=I.useState(!1),[H,E]=I.useState(n.length>0),Y=n.includes(e),Q=n.includes(e),pe=c==="collapsed",J=n.length===cn&&Y===!1,de=kd,$e=xe=>{let ue=n;xe.target.checked===!0?ue=[...ue,e]:ue=ue.filter(Le=>Le!==e),W?.(ue)},he=()=>{$?.(m)},oe=v!=null?String(v):e,je=x("flux-analysis-vendor-checkbox",oe),Ke=x("flux-analysis-vendor-detail-navigation",oe),Se=x("flux-analysis-vendor-expand-collapse",oe),Ye=x("flux-analysis-vendor-row",oe);return t.jsx(xd,{heightValue:l,bgColor:i,"data-testid":Ye,children:t.jsxs(md,{shouldHighlight:Q,isRowExpanded:b,onClick:()=>A?.(r),onMouseOver:()=>{z(!0),E(!0),S?.(m.id)},onMouseLeave:()=>{z(!1),n.length===0&&E(!1),S?.(null)},children:[t.jsxs(bd,{className:"flux-vendor-name-container",bgColor:i,isSticky:o,children:[t.jsx(Wd,{className:"flux-vendor-checkbox-container",children:H?t.jsx(Tt,{className:"flux-vendor-checkbox","data-testid":je,icon:t.jsx(Vt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Od,{}),checked:Y,name:m.name,id:e,disabled:J,onChange:$e,onClick:xe=>xe.stopPropagation(),style:{padding:"20px",pointerEvents:J?"none":"auto"}}):null}),t.jsxs(_d,{isNodeOpen:b,children:[N?t.jsx(Nd,{className:"flux-vendor-collapsable-chevron-icon","data-testid":Se,children:b===!1?t.jsx(Tn,{}):t.jsx(Id,{})}):m.logo!=null?t.jsx(Dt,{photoUrl:m.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(Rt,{name:m.name,size:s.sp4}),b?t.jsx(qi,{height:j.vendorLineComponentHeight}):null]}),t.jsxs(jd,{children:[t.jsxs(Sd,{children:[t.jsx(de,{children:m.name}),b?null:t.jsx(Fd,{className:"flux-vendor-children-count",children:t.jsx(Me,{children:y})})]}),N?t.jsx(I.Fragment,{children:t.jsx(Pd,{className:"flux-vendor-chevron-icon",onClick:he,"data-testid":Ke,children:t.jsx(Tn,{})})}):null]})]}),t.jsxs(vd,{children:[p.map((xe,ue)=>t.jsx(Td,{balance:xe,collapsed:pe},ue)),t.jsx(ut,{amount:d,percentage:h,currency:u}),t.jsx($d,{children:f==="Pending Review"?t.jsx(Ad,{children:t.jsx(Bd,{children:Vn.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(Ld,{className:"vendor-flux-analysis-review-info",children:g!=null?t.jsxs(I.Fragment,{children:[t.jsxs(Md,{children:[t.jsx(Cd,{}),zd.fluxAnalysis.reviewedBy]}),t.jsx(Me,{children:Wo(g)})]}):Vn.strings.hyphen})})})]})]})})}const Dn={generalExpense:{color:new L(T.graphColor04),hoverColor:new L(T.graphColor04Dark)},reimbursement:{color:new L(T.graphColor10),hoverColor:new L(T.graphColor10Dark)},default:{color:new L(X.neutralGrey2Dark),hoverColor:new L(X.neutralGrey2Dark)}},Dd=(e,n)=>e.startsWith("flux_analysis_operating_expense")===!0&&n!=null?Dn[n]:Dn.default,sn=(e,n)=>{const{element:i}=e;return i.kind===n&&i.data!=null},Xi=e=>Yc(e.balancesByMonth),Rd=(e,n,i,o,r,l,c,d,h)=>{if(!sn(n,"flux_vendor_account_class_row"))return null;const u=n.element.data,p=Xi(u),g=n.element.metadata.vendorId;return t.jsx(Ss,{backgroundColor:i,isSticky:o,treeNodeId:e,balances:p,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:u.currency,isScrolling:r,isLeaf:l,isLastNode:c,nodeMetadata:n.element.metadata,accountAndClass:u,onAccountAndClassBalanceClick:()=>h?.(g),isHoveredByParent:d?.hoveredParentId===g})},Gd=(e,n,i,o,r,l,c,d,h,u,p)=>{if(!sn(n,"flux_vendor_row"))return null;const g=n.element.data,f=Xi(g),m=Qi("flux_vendor_row",h),b=y=>{p?.(y),n.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(y)};return t.jsx(Vd,{backgroundColor:i,isSticky:o,treeNodeId:e,vendorRowIndex:n.element.index,fluxAnalysisEntityId:g.fluxAnalysisEntityId,height:m,leftChevron:"collapsed",idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:g.vendor,vendorBalances:f,varianceAmount:g.varianceAmount,variancePercentage:g.variancePercentage,status:g.status,currency:g.currency,isScrolling:r,isOpen:l,isLeaf:c,isLastNode:d,childrenCount:g.vendorAccountsAndClasses.length,onClick:y=>{b?.(y)},reviewedByUser:g.reviewedByUser,updateOperatingExpensesIdsForReview:n.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:n.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},Ed=(e,n,i,o,r,l,c,d,h,u)=>{if(!sn(n,"section"))return null;const p=Dd(n.config.reportId,n.element.sectionType),g=n.element.data,f=m=>{n.config.fluxAnalysisConfig?.onSectionRowClick(m),u?.(m)};return t.jsx(Vs,{backgroundColor:o,isSticky:r,treeNodeId:e,height:i,selectedSectionsIds:n.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:p.color,sectionName:n.element.title,sectionBalances:g.balances,varianceAmount:g.varianceAmount,variancePercentage:g.variancePercentage,currency:g.currency,isScrolling:l,isOpen:c,hasVendors:g.vendors.length>0,isLeaf:d,isLastNode:h,sectionToggled:m=>{f?.(m)},onSectionCheckboxClick:n.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:g.sectionId})},Hd=(e,n,i)=>{if(e.element.kind!=="timeframe_headers")return null;const o=Re(e.element.data,e.config.displayOrder),r=o.length>0?o[0].balanceTimeFrame:"month",l=o.map(d=>Ve(d)),c=(d,h)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(d,h)};return t.jsx(od,{isSticky:i,height:n,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===cn,onSortOrderChanged:c,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},Kd=(e,n)=>{if(e.element.kind!=="total")return null;const i=e.element.data;return t.jsx(fd,{type:"name+balances_actual",title:e.element.title,totalBalances:i.balances,varianceAmount:i.varianceAmount,variancePercentage:i.variancePercentage,currency:i.currency,height:n})},Yd=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(vs,{}),Ud=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Rs,{}),qd=a.div`
|
|
1725
1725
|
display: flex;
|
|
1726
1726
|
flex: 1 1 auto;
|
|
1727
1727
|
width: fit-content;
|
|
1728
1728
|
min-width: 100%;
|
|
1729
1729
|
flex-direction: column;
|
|
1730
1730
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1731
|
-
`,
|
|
1731
|
+
`,Qd=a.div`
|
|
1732
1732
|
user-select: none;
|
|
1733
1733
|
display: flex;
|
|
1734
1734
|
flex: 1 1 auto;
|
|
@@ -1746,7 +1746,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1746
1746
|
background-color: null;
|
|
1747
1747
|
}
|
|
1748
1748
|
width: 100%;
|
|
1749
|
-
`,
|
|
1749
|
+
`,Zd=a(Oo)`
|
|
1750
1750
|
width: 100%;
|
|
1751
1751
|
display: flex;
|
|
1752
1752
|
align-items: center;
|
|
@@ -1763,11 +1763,11 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1763
1763
|
border-radius: ${s.sp1};
|
|
1764
1764
|
margin: 0 ${s.sp5} 0 ${s.sp3};
|
|
1765
1765
|
min-width: ${s.sp6};
|
|
1766
|
-
`,eh=a(
|
|
1766
|
+
`,eh=a(Gt)`
|
|
1767
1767
|
color: ${e=>e.theme.colors.primary};
|
|
1768
1768
|
width: ${s.sp3};
|
|
1769
1769
|
height: ${s.sp3};
|
|
1770
|
-
`;function th({backgroundColor:e,treeNodeId:n,classId:i,isChecked:o,isDisabled:r,height:l,nestedClass:c,isLeaf:d,showClassAccountNumber:h,onClick:u,onToggleCheck:p}){const[g,f]=I.useState(!1);return t.jsx(qd,{"data-testid":x("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(
|
|
1770
|
+
`;function th({backgroundColor:e,treeNodeId:n,classId:i,isChecked:o,isDisabled:r,height:l,nestedClass:c,isLeaf:d,showClassAccountNumber:h,onClick:u,onToggleCheck:p}){const[g,f]=I.useState(!1);return t.jsx(qd,{"data-testid":x("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(Qd,{"data-testid":x("name-with-checkbox-row-container",n),height:l,isClickable:!d,onClick:()=>u?.(n),onMouseOver:()=>f(!0),onMouseLeave:()=>f(!1),level:c.classId.length,children:[t.jsx(Tt,{"data-testid":x("name-with-checkbox-row-checkbox",c.classId.toString()),icon:t.jsx(Vt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(eh,{}),checked:o,name:c.className,id:n,disabled:r,onChange:m=>{p?.(i,m.target.checked)},style:{height:s.sp6}})," ",t.jsx(Jd,{children:t.jsxs(Zd,{"data-testid":x("name-with-checkbox-row-label-container",n),checked:o,isSubclass:c.classId.length>1,children:[t.jsx("label",{"data-testid":x("name-with-checkbox-row-label",c.classId.toString()),style:{flexGrow:2,cursor:"pointer"},onClick:()=>{p?.(i,!o)},children:c.className}),g===!0&&h===!0&&c.accountingClassNumber!=null&&t.jsx(Xd,{children:c.accountingClassNumber})]})})]})})}const nh=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="checkbox_and_name_only")return null;const g=i.element.data,f=i.config.isClassToBeFilteredOut?.(g.classId)===!1;return t.jsx(th,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,classId:g.classId,isChecked:f,isDisabled:!1,height:o,isScrolling:c,nestedClass:g,isOpen:d,isLeaf:h,isLastNode:u,showClassAccountNumber:i.config.showClassAccountNumber,onToggleCheck:p})},M={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,270,270),categoryClassWidth:new V(230,230,240),nameLogoWidth:new V(w[4],w[4]),nameLogoHeight:new V(w[4],w[4])};function ih(e){switch(e){case"timeframe_headers":return w[11];case"vendor_row":return w[6];case"total":return w[8];case"loading_in_progress":return w[6];case"spacer_row":return w[8];case"title_string_only":return w[8];default:return 0}}function oh(e,n){return!1}const rh=a.div`
|
|
1771
1771
|
user-select: none;
|
|
1772
1772
|
display: flex;
|
|
1773
1773
|
flex: 1 1 auto;
|
|
@@ -1794,7 +1794,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1794
1794
|
flex: 1 0 auto;
|
|
1795
1795
|
flex-direction: row;
|
|
1796
1796
|
justify-content: flex-end;
|
|
1797
|
-
`,
|
|
1797
|
+
`,Rn=a(C)`
|
|
1798
1798
|
color: ${e=>e.theme.colors.hero};
|
|
1799
1799
|
flex-grow: 1;
|
|
1800
1800
|
-webkit-box-orient: vertical;
|
|
@@ -1804,7 +1804,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1804
1804
|
max-width: ${M.balanceWidth};
|
|
1805
1805
|
margin-left: ${e=>e.isClubbed===!0?s.sp2:M.balanceLeftMargin};
|
|
1806
1806
|
border: 1px solid transparent;
|
|
1807
|
-
`,
|
|
1807
|
+
`,Gn=a(C)`
|
|
1808
1808
|
color: ${e=>e.theme.colors.hero};
|
|
1809
1809
|
flex-grow: 1;
|
|
1810
1810
|
-webkit-box-orient: vertical;
|
|
@@ -1826,7 +1826,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1826
1826
|
left: ${s.sp0};
|
|
1827
1827
|
z-index: 20;
|
|
1828
1828
|
`:null}
|
|
1829
|
-
`;function sh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return l.length>0?t.jsxs(rh,{height:i,bgColor:e,"data-testid":x("opex-vendor-loading-in-progress-row"),children:[t.jsxs(ch,{"data-testid":x("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:c,bgColor:e,children:[t.jsx(ze,{width:w[4],height:w[4]}),t.jsx(
|
|
1829
|
+
`;function sh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return l.length>0?t.jsxs(rh,{height:i,bgColor:e,"data-testid":x("opex-vendor-loading-in-progress-row"),children:[t.jsxs(ch,{"data-testid":x("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:c,bgColor:e,children:[t.jsx(ze,{width:w[4],height:w[4]}),t.jsx(Rn,{windowSize:c,isClubbed:!0,children:t.jsx(K,{width:120,height:w[4]})})]}),t.jsxs(lh,{children:[o?t.jsx(Gn,{windowSize:c,children:t.jsx(K,{width:120,height:w[4]})}):null,r?t.jsx(Gn,{windowSize:c,children:t.jsx(K,{width:120,height:w[4]})}):null,l.map((d,h)=>t.jsx(Rn,{windowSize:c,children:t.jsx(K,{width:120,height:w[4]})},`${h}RowItem`))]})]}):t.jsx(ah,{height:i,bgColor:e,children:t.jsx(Bo,{size:"Small",start:!0})})}const dh=a.div`
|
|
1830
1830
|
user-select: none;
|
|
1831
1831
|
display: flex;
|
|
1832
1832
|
flex: 1 1 auto;
|
|
@@ -1918,13 +1918,13 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
1918
1918
|
padding: 3px 6px;
|
|
1919
1919
|
margin-left: 12px;
|
|
1920
1920
|
background: ${e=>e.tagType==="under_review"?X.alertDark:e.theme.mode==="light"?X.championLight:X.championDark};
|
|
1921
|
-
`,kh=a(
|
|
1921
|
+
`,kh=a(Go)`
|
|
1922
1922
|
color: ${e=>e.theme.colors.hero};
|
|
1923
1923
|
margin-left: 5px;
|
|
1924
1924
|
height: ${s.sp3};
|
|
1925
1925
|
width: ${s.sp3};
|
|
1926
1926
|
margin-top: ${s.sp1};
|
|
1927
|
-
`;function eo({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:o,infoContent:r,tagType:l}){return t.jsxs(xh,{children:[t.jsxs(mh,{children:[t.jsx(wh,{children:De(e,n,i)}),t.jsx(
|
|
1927
|
+
`;function eo({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:o,infoContent:r,tagType:l}){return t.jsxs(xh,{children:[t.jsxs(mh,{children:[t.jsx(wh,{children:De(e,n,i)}),t.jsx(Ro,{style:{padding:s.sp3},title:r,placement:"top",children:t.jsx(kh,{})})]}),t.jsx(yh,{children:t.jsx(bh,{tagType:l,children:o})})]})}const to=(e,n)=>{const i=B.getLocalizedStrings().reports;switch(n){case"month":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoMonth:i.bookCloseIncompleteInfoMonth:void 0;case"quarter":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoQuarter:i.bookCloseIncompleteInfoQuarter:void 0;case"year":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoYear:i.bookCloseIncompleteInfoYear:void 0;default:return}},jh=a.div`
|
|
1928
1928
|
user-select: none;
|
|
1929
1929
|
display: flex;
|
|
1930
1930
|
flex: 1 1 auto;
|
|
@@ -2083,12 +2083,12 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
2083
2083
|
margin-left: ${M.balanceLeftMargin};
|
|
2084
2084
|
color: ${e=>e.theme.colors.primary};
|
|
2085
2085
|
border: 1px solid transparent;
|
|
2086
|
-
`,
|
|
2086
|
+
`,Rh=a(co)`
|
|
2087
2087
|
color: ${e=>e.theme.colors.hero};
|
|
2088
2088
|
&:hover {
|
|
2089
2089
|
color: inherit;
|
|
2090
2090
|
}
|
|
2091
|
-
`,
|
|
2091
|
+
`,Gh=a.div`
|
|
2092
2092
|
display: flex;
|
|
2093
2093
|
flex-direction: row;
|
|
2094
2094
|
background-color: ${e=>e.bgColor?.hex()};
|
|
@@ -2120,7 +2120,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
2120
2120
|
text-overflow: ellipsis;
|
|
2121
2121
|
text-align: left;
|
|
2122
2122
|
color: ${e=>e.theme.colors.primary};
|
|
2123
|
-
`,Kh=({type:e,balance:n,collapsed:i})=>{const o=i===!0?
|
|
2123
|
+
`,Kh=({type:e,balance:n,collapsed:i})=>{const o=i===!0?Rh:co;return t.jsx(Dh,{children:re(e)===!0?t.jsx(o,{children:q(n)}):null})};function Yh({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:c,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:p}){const g=O();return t.jsxs(zh,{"data-testid":x("total-row-root-container",o),height:r,bgColor:n,windowSize:g,children:[t.jsxs(Th,{"data-testid":x("total-row-container",o),onClick:()=>u?.(o),children:[t.jsxs(Gh,{bgColor:n,windowSize:g,isSticky:i,children:[t.jsx(Eh,{bgColor:n,windowSize:g,children:t.jsx(Hh,{children:l})}),d?t.jsx(Hn,{windowSize:g}):null,h?t.jsx(Hn,{windowSize:g}):null]}),t.jsx(Vh,{children:c.map((f,m)=>t.jsx(Kh,{type:e,balance:f,collapsed:!1},m))})]}),t.jsx(Pt,{isScrolling:p,kind:"vendor_row_separator"})]})}const Uh=a.div`
|
|
2124
2124
|
display: flex;
|
|
2125
2125
|
flex: 1 1 auto;
|
|
2126
2126
|
width: fit-content;
|
|
@@ -2138,7 +2138,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
2138
2138
|
&:hover {
|
|
2139
2139
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2140
2140
|
}
|
|
2141
|
-
`,
|
|
2141
|
+
`,Qh=a.div`
|
|
2142
2142
|
display: flex;
|
|
2143
2143
|
flex: 1 0 auto;
|
|
2144
2144
|
flex-direction: row;
|
|
@@ -2147,7 +2147,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
2147
2147
|
display: flex;
|
|
2148
2148
|
flex-direction: row;
|
|
2149
2149
|
justify-content: flex-start;
|
|
2150
|
-
`,
|
|
2150
|
+
`,Zh=a(C)`
|
|
2151
2151
|
user-select: none;
|
|
2152
2152
|
min-width: ${M.balanceWidth};
|
|
2153
2153
|
max-width: ${M.balanceWidth};
|
|
@@ -2239,7 +2239,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
2239
2239
|
`,lu=a(C)`
|
|
2240
2240
|
color: ${e=>e.theme.colors.hero};
|
|
2241
2241
|
display: none;
|
|
2242
|
-
`,cu=({balance:e,vendor:n,onVendorNameAndBalanceClick:i})=>{const o=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",r=e?.type==="period_total",l=e?.type==="default_with_null_balance",c=o!==!0&&r===!1&&l===!1&&!ri(n.id);return t.jsx(Jh,{children:t.jsx(
|
|
2242
|
+
`,cu=({balance:e,vendor:n,onVendorNameAndBalanceClick:i})=>{const o=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",r=e?.type==="period_total",l=e?.type==="default_with_null_balance",c=o!==!0&&r===!1&&l===!1&&!ri(n.id);return t.jsx(Jh,{children:t.jsx(Zh,{isClickable:c,onClick:()=>{c===!0&&i(n,e??void 0)},children:q(e)})})};function su({type:e,backgroundColor:n,isSticky:i,height:o,isScrolling:r,isLastNode:l,vendor:c,balances:d,accountBase:h,classBase:u,isAccountColumnShown:p,isClassColumnShown:g,onVendorNameAndBalanceClick:f,vendorRowIndex:m}){const b=O(),y=m!=null?String(m):c.id,v=Jn(),S=v.loggedInUserRole!=null&&!oi(v.loggedInUserRole),A=ri(c.id),$=S===!0&&c!=null&&!A,W=$?"pointer":"default",N=c.name;return t.jsxs(Uh,{"data-testid":x("vendor-row-root-container",y),height:o,bgColor:n,windowSize:b,children:[t.jsxs(qh,{"data-testid":x("vendor-row-container",y),style:{cursor:W},isClickable:$,children:[t.jsx(Xh,{"data-testid":x("vendor-row-sticky-container",y),isSticky:i,windowSize:b,bgColor:n,children:t.jsxs(eu,{"data-testid":x("vendor-row-name-container",y),windowSize:b,bgColor:n,children:[t.jsxs(ot,{controller:!A,children:[c.logo!=null?t.jsx(Dt,{photoUrl:c.logo.toString(),styles:{width:M.nameLogoWidth.valuePx(b),height:M.nameLogoHeight.valuePx(b)}}):t.jsx(Rt,{name:N,size:s.sp4}),t.jsx(We,{"data-testid":x("vendor-row-name",y),style:{cursor:W},isClickable:$,onClick:()=>{$===!0&&f(c)},children:N})]}),t.jsx(ot,{controller:A,children:t.jsxs(ru,{children:[t.jsx(iu,{children:t.jsx(ou,{})}),t.jsx(au,{className:"hyphen-text",children:B.getLocalizedStrings().common.strings.hyphen}),t.jsx(lu,{className:"not-specified-text",children:N})]})})]})}),p?t.jsx(tu,{windowSize:b,bgColor:n,children:h!=null?t.jsx(We,{"data-testid":x("vendor-row-account-name",y),title:h.accountName,isClickable:!1,children:h.accountName}):t.jsx(We,{isClickable:!1,"data-testid":x("vendor-row-account-name",y),children:B.getLocalizedStrings().common.strings.hyphen})}):null,g?t.jsx(nu,{windowSize:b,bgColor:n,children:u!=null?t.jsx(We,{"data-testid":x("vendor-row-class-name",y),title:u.className,isClickable:!1,children:u.className}):t.jsx(We,{"data-testid":x("vendor-row-class-name",y),isClickable:!1,children:B.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(Qh,{children:d.map((z,H)=>t.jsx(cu,{type:e,balance:z,vendor:c,onVendorNameAndBalanceClick:f},H))})]}),t.jsx(du,{isScrolling:r,isLastNode:l})]})}function du({isScrolling:e,isLastNode:n}){return n?t.jsx(Pt,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Pt,{isScrolling:e,kind:"vendor_row_separator"})}const hu=(e,n,i,o,r,l)=>{if(e.element.kind!=="timeframe_headers")return null;const c=Re(e.element.data,e.config.displayOrder),d=c.length>0?c[0].balanceTimeFrame:"month",h=c.map(u=>Ve(u));return t.jsx(Nh,{backgroundColor:r,isSticky:i,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:e.config.mode==="this_period_vs_period_before"&&h.length>1,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:d,timeframeTicks:h,sortKey:e.config.opexByVendorConfig?.sortKey,sortOrder:e.config.opexByVendorConfig?.sortOrder,dataAvailable:e.config.dataAvailable,bookCloseDate:e.config.bookCloseDate,compareMode:o,onCompareModeChanged:l,onSortOrderChanged:e.config.opexByVendorConfig?.onSortOrderChanged})},uu=(e,n,i,o,r,l,c)=>{const d=i.element.data,h=i.config.mode==="this_period_vs_period_before",u=h?i.element.numOfBalances+2:i.element.numOfBalances+1,p=zi(d,i.config.displayOrder,u,h);return t.jsx(Yh,{type:n,backgroundColor:c,isSticky:r,treeNodeId:e,height:o,isScrolling:l,totalBalances:p.balances,title:i.element.title,isAccountColumnShown:i.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:i.config.opexByVendorConfig?.isClassColumnShown??!0})},gu=(e,n,i,o,r,l,c)=>{if(n.element.kind!="vendor_row"||n.element.data==null)return null;const d=n.element.data,h=n.config.mode==="this_period_vs_period_before",u=zi(d,n.config.displayOrder,n.element.numOfBalances,h);return t.jsx(su,{type:e,backgroundColor:o,isSticky:r,height:i,isScrolling:l,vendorRowIndex:n.element.index,vendor:d.vendor,accountBase:d.account,classBase:d.classBase,isLastNode:c,balances:u.balances,isAccountColumnShown:n.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:n.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:(p,g)=>{n.config.opexByVendorConfig?.onVendorNameAndBalanceClicked(p,g)}})},pu=(e,n,i,o)=>{if(e.element.kind!=="loading_in_progress")return null;const r=Re(e.element.data,e.config.displayOrder).map(l=>Ve(l));return t.jsx(sh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})},fu=(e,n,i,o)=>{if(e.element.kind!=="title_string_only")return null;const r=Re(e.element.data,e.config.displayOrder).map(l=>Ve(l));return t.jsx(fh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})};function gn(e,n,i){return xu(n,i,e)}const xu=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.account.balancesInTimeframe,o.compactedAccountsSelector=r=>Kn(r.accounts,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>Kn(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r,o.compactedAccountGroupsSelector=r=>mu(r,o.acGroupBalanceSelector,i,n),o};function Kn(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>wu((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[]))||so((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[])));case"filter_forecast_nil_balances":return e.filter(o=>Yn(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Yn(n(o)?.balances??[]))}}function mu(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>so(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>yu(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>bu(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function so(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function wu(e){let n=!1;if(e!=null){for(const i of e)if(i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function yu(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function bu(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function Yn(e){let n=!1;if(e!=null){for(const i of e)if(i.totalForecast!=null&&i.totalForecast.amount!==0||i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function ho(e,n,i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=ku([],i)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:c}}function ku(e,n){return e.length>0?e:Qn(Array(n),null)}const ju=a.div`
|
|
2243
2243
|
display: flex;
|
|
2244
2244
|
flex: 1 1 auto;
|
|
2245
2245
|
width: fit-content;
|
|
@@ -2308,7 +2308,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
2308
2308
|
&:hover {
|
|
2309
2309
|
color: inherit;
|
|
2310
2310
|
}
|
|
2311
|
-
`,Au=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?_u:uo;return t.jsxs(vu,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:
|
|
2311
|
+
`,Au=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?_u:uo;return t.jsxs(vu,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Z(n)}),t.jsx(l,{children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function Bu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:m,onClick:b}){const y=le(),v=O(),S=!f,A=S?"pointer":"default",$=l==="collapsed",W=l==="hidden",N=W===!0?w[6]:w[4],z=$===!0?Lu:go,H=$===!0?Zn:Xn,E=$===!0?y.colors.hero:y.colors.primary;return t.jsxs(ju,{height:r,bgColor:n,"data-testid":x("pandl-report-account-group-row-root-container",o),children:[t.jsxs(Su,{"data-testid":x("pandl-report-account-group-row-container",o),style:{cursor:A},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs($u,{bgColor:n,isSticky:i,windowSize:v,children:[W===!1?t.jsx(H,{color:E,style:{width:w[3],height:w[3]}}):null,t.jsx(z,{style:{marginLeft:N},children:c})]}):null,me(e)===!0?t.jsx(Cu,{children:d.map((Y,Q)=>t.jsx(Au,{type:e,accountGroupName:c,balance:Y,isActualVsForecastOn:h,compareMode:u,collapsed:$},Q))}):null]}),t.jsx(Wu,{isScrolling:p,type:e,isLeaf:f,isLastNode:m,isOpen:g})]})}function Wu({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(we,{isScrolling:e,kind:r})}const Ou=a.div`
|
|
2312
2312
|
display: flex;
|
|
2313
2313
|
flex: 1 1 auto;
|
|
2314
2314
|
width: fit-content;
|
|
@@ -2377,7 +2377,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
2377
2377
|
&:hover {
|
|
2378
2378
|
color: inherit;
|
|
2379
2379
|
}
|
|
2380
|
-
`,Tu=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?Pu:po;return t.jsxs(Nu,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:
|
|
2380
|
+
`,Tu=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?Pu:po;return t.jsxs(Nu,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Z(n)}),t.jsx(l,{children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function Vu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:m,onClick:b}){const y=O(),v=le(),S=!f,A=S?"pointer":"default",$=l==="collapsed",W=$===!0?zu:fo,[N,z]=I.useState(!1),H=c.length>0?c.substring(0,1).toUpperCase():"";return t.jsxs(Ou,{"data-testid":x("pandl-account-group-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Mu,{"data-testid":x("pandl-account-group-row-container",o),onMouseOver:()=>z(!0),onMouseLeave:()=>z(!1),style:{cursor:A},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs(Fu,{bgColor:n,isSticky:i,windowSize:y,children:[t.jsx(ke,{showCollapsedIcon:$,showIcon:N&&S,firstLetter:H,color:L(v.colors.primary)}),t.jsx(W,{children:c})]}):null,me(e)===!0?t.jsx(Iu,{children:d.map((E,Y)=>t.jsx(Tu,{type:e,accountGroupName:c,balance:E,isActualVsForecastOn:h,compareMode:u,collapsed:$},Y))}):null]}),t.jsx(Du,{isScrolling:p,type:e,isLeaf:f,isLastNode:m,isOpen:g})]})}function Du({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(we,{isScrolling:e,kind:r})}const Ru=a.div`
|
|
2381
2381
|
display: flex;
|
|
2382
2382
|
flex: 1 1 auto;
|
|
2383
2383
|
width: fit-content;
|
|
@@ -2385,7 +2385,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
2385
2385
|
flex-direction: column;
|
|
2386
2386
|
height: ${e=>e.height}px;
|
|
2387
2387
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2388
|
-
`,
|
|
2388
|
+
`,Gu=a.div`
|
|
2389
2389
|
user-select: none;
|
|
2390
2390
|
display: flex;
|
|
2391
2391
|
flex: 1 1 auto;
|
|
@@ -2441,7 +2441,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
2441
2441
|
&:hover {
|
|
2442
2442
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2443
2443
|
}
|
|
2444
|
-
`,Uu=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,onAccountBalanceClick:l})=>{const c=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",d=r!=null&&n!=null&&l!=null&&c!==!0;return t.jsxs(Hu,{"data-testid":x("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Xe,{"data-testid":x("account-row-balance-actual",e),isClickable:d,onClick:()=>{d===!0&&r!=null&&n!=null&&l?.(r,n)},children:q(n)}):t.jsx(Xe,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:
|
|
2444
|
+
`,Uu=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,onAccountBalanceClick:l})=>{const c=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",d=r!=null&&n!=null&&l!=null&&c!==!0;return t.jsxs(Hu,{"data-testid":x("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Xe,{"data-testid":x("account-row-balance-actual",e),isClickable:d,onClick:()=>{d===!0&&r!=null&&n!=null&&l?.(r,n)},children:q(n)}):t.jsx(Xe,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:Z(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Xe,{isClickable:!1,"data-testid":x("account-row-balance-forecast",e),children:Z(n)}),t.jsx(Xe,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function qu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isActualVsForecastOn:c,compareMode:d,isScrolling:h,isLeaf:u,isLastNode:p,account:g,onAccountBalanceClick:f}){const m=O(),{common:{strings:{hyphen:b}}}=B.getLocalizedStrings(),y=g?.accountDescription?g.accountDescription:b,v=g?.accountName?g.accountName:y;return t.jsxs(Ru,{height:r,bgColor:n,"data-testid":x("account-row-root-container",o),children:[t.jsxs(Gu,{"data-testid":x("account-row-container",o),children:[ge(e)===!0?t.jsx(Ku,{isSticky:i,windowSize:m,bgColor:n,children:t.jsx(Yu,{isClickable:!1,title:v,children:v})}):null,me(e)===!0?t.jsx(Eu,{children:l.map((S,A)=>t.jsx(Uu,{type:e,isActualVsForecastOn:c,compareMode:d,balance:S,account:g,onAccountBalanceClick:f==null?void 0:($,W)=>{f(o,$,W)}},A))}):null]}),t.jsx(Qu,{isScrolling:h,type:e,isLeaf:u,isLastNode:p})]})}function Qu({isScrolling:e,isLastNode:n,type:i}){const o=n?"ac_group_row_separator":ge(i)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(we,{isScrolling:e,kind:o})}const Ju=a.div`
|
|
2445
2445
|
display: flex;
|
|
2446
2446
|
flex: 1 1 auto;
|
|
2447
2447
|
width: fit-content;
|
|
@@ -2449,7 +2449,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
2449
2449
|
flex-direction: column;
|
|
2450
2450
|
height: ${e=>e.height}px;
|
|
2451
2451
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2452
|
-
`,
|
|
2452
|
+
`,Zu=a.div`
|
|
2453
2453
|
user-select: none;
|
|
2454
2454
|
display: flex;
|
|
2455
2455
|
flex: 1 1 auto;
|
|
@@ -2510,7 +2510,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
2510
2510
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
2511
2511
|
border-radius: ${s.sp1};
|
|
2512
2512
|
margin: 0 ${s.sp5} 0 ${s.sp3};
|
|
2513
|
-
`,rg=({metadata:e,depth:n})=>n===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(Io,{}):t.jsx(No,{}),ag=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(eg,{children:[re(e)===!0||o?t.jsx(et,{style:{color:i},children:q(n)}):t.jsx(et,{style:{color:i},children:
|
|
2513
|
+
`,rg=({metadata:e,depth:n})=>n===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(Io,{}):t.jsx(No,{}),ag=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(eg,{children:[re(e)===!0||o?t.jsx(et,{style:{color:i},children:q(n)}):t.jsx(et,{style:{color:i},children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(et,{style:{color:i},children:Z(n)}),t.jsx(et,{style:{color:i},children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]});function lg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,className:l,classCode:c,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:p,isScrolling:g,isOpen:f,isLeaf:m,metadata:b,showClassAccountNumber:y,onClick:v,depth:S}){const A=O(),$=le(),W=!m,N=W?"pointer":"default",z=$.colors.primary,H=l.length>0?l.substr(0,1).toUpperCase():"",[E,Y]=I.useState(!1),Q=b.classAncestorMetadata??[];return t.jsxs(Ju,{"data-testid":x("class-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Zu,{"data-testid":x("class-row-container",o),style:{cursor:N},onClick:()=>v?.(o),onMouseOver:()=>Y(!0),onMouseLeave:()=>Y(!1),children:[ge(e)===!0?t.jsxs(tg,{isSticky:i,windowSize:A,bgColor:n,children:[t.jsx(oa,{name:l,ancestorMetadata:Q,depth:S}),t.jsx(rg,{metadata:Q[S],depth:S}),t.jsx(ke,{color:L(z),showCollapsedIcon:!f,showIcon:E&&W,firstLetter:H,showTreeLine:p}),t.jsx(ng,{children:t.jsx(ig,{style:{color:z},children:l})}),E===!0&&y===!0&&c!==void 0&&t.jsx(og,{children:c})]}):null,me(e)===!0?t.jsx(Xu,{children:d.map((pe,J)=>t.jsx(ag,{type:e,sectionName:l,balance:pe,isActualVsForecastOn:h,compareMode:u,color:z},J))}):null]}),t.jsx(cg,{isScrolling:g,isLeaf:m,isOpen:f})]})}function cg({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(we,{isScrolling:e,kind:"section_row_separator"}):null}const sg=a.div`
|
|
2514
2514
|
display: flex;
|
|
2515
2515
|
flex: 1 1 auto;
|
|
2516
2516
|
width: fit-content;
|
|
@@ -2565,7 +2565,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
2565
2565
|
text-overflow: ellipsis;
|
|
2566
2566
|
text-align: left;
|
|
2567
2567
|
margin-left: ${s.sp2};
|
|
2568
|
-
`,fg=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(ug,{children:[re(e)===!0||o?t.jsx(tt,{style:{color:i},children:q(n)}):t.jsx(tt,{style:{color:i},children:
|
|
2568
|
+
`,fg=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(ug,{children:[re(e)===!0||o?t.jsx(tt,{style:{color:i},children:q(n)}):t.jsx(tt,{style:{color:i},children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(tt,{style:{color:i},children:Z(n)}),t.jsx(tt,{style:{color:i},children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]});function pn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:c,isActualVsForecastOn:d,compareMode:h,sectionColor:u,isScrolling:p,isOpen:g,isLeaf:f,onClick:m}){const b=O(),y=!f,v=y?"pointer":"default",S=l.length>0?l.substring(0,1).toUpperCase():"",[A,$]=I.useState(!1);return t.jsxs(sg,{"data-testid":x("section-row",o),height:r,bgColor:n,children:[t.jsxs(dg,{"data-testid":x("section-row-container",o),style:{cursor:v},onClick:()=>m?.(o),onMouseOver:()=>$(!0),onMouseLeave:()=>$(!1),children:[ge(e)===!0?t.jsxs(gg,{isSticky:i,windowSize:b,bgColor:n,children:[t.jsx(ke,{color:L(u),showCollapsedIcon:!g,showIcon:A&&y,firstLetter:S}),t.jsx(pg,{style:{color:u},children:l})," "]}):null,me(e)===!0?t.jsx(hg,{children:c.map((W,N)=>t.jsx(fg,{type:e,sectionName:l,balance:W,isActualVsForecastOn:d,compareMode:h,color:u},N))}):null]}),t.jsx(xg,{isScrolling:p,isLeaf:f,isOpen:g})]})}function xg({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(we,{isScrolling:e,kind:"section_row_separator"}):null}const mg=a.div`
|
|
2569
2569
|
display: flex;
|
|
2570
2570
|
flex: 1 1 auto;
|
|
2571
2571
|
width: fit-content;
|
|
@@ -2628,7 +2628,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
2628
2628
|
clear: both;
|
|
2629
2629
|
display: inline-block;
|
|
2630
2630
|
text-align: left;
|
|
2631
|
-
`,Sg=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,showTotal:l,onAccountBalanceClick:c})=>{const d=n!=null?Yo(n?.type):!1,h=r!=null&&n!=null&&c!=null&&d!==!0,u=l===!0?li(n):q(n),p=l===!0?_t(n):
|
|
2631
|
+
`,Sg=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,showTotal:l,onAccountBalanceClick:c})=>{const d=n!=null?Yo(n?.type):!1,h=r!=null&&n!=null&&c!=null&&d!==!0,u=l===!0?li(n):q(n),p=l===!0?_t(n):Z(n),g=l===!0?ci(n):ce(n),f=l===!0?si(n):se(n);return t.jsxs(bg,{"data-testid":x("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(nt,{"data-testid":x("account-row-balance-actual",e),isClickable:h,onClick:m=>{m.stopPropagation(),h===!0&&r!=null&&n!=null&&c?.(r,n)},children:u}):t.jsx(nt,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:p}),i?t.jsxs(t.Fragment,{children:[t.jsx(nt,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:p}),t.jsx(nt,{"data-testid":x("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?g:f})]}):null]})};function Cg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,classDepth:l,accountBalances:c,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:p,noMarginForAccount:g,isLeaf:f,isOpen:m,isLastNode:b,account:y,onAccountBalanceClick:v,onClick:S}){const A=O(),$=y!=null?y.id.length-1:0,W=y?.hasSiblings??!1,N=y!=null?y.children.length!==0:!1,z=u,{common:{strings:{empty:H}}}=B.getLocalizedStrings(),E=y?.account.accountDescription?y.account.accountDescription:H,Y=y?.account.accountName?y.account.accountName:E;return t.jsxs(mg,{"data-testid":x("sub-account-row",o),height:r,bgColor:n,children:[t.jsxs(wg,{"data-testid":x("sub-account-row-container",o),onClick:()=>S?.(o),children:[t.jsx(kg,{isClickable:N,isSticky:i,windowSize:A,bgColor:n,containerHeight:r,children:t.jsx(jg,{title:Y,children:t.jsx(pi,{displayName:Y,depth:$,classDepth:l,isLastNode:b,hasChildren:N,hasSiblings:W,isLeaf:f,collapsed:!m,subAccountAnscestorMetadata:z.subAccountAncestorMetadata,classAnscestorMetadata:z.classAncestorMetadata??[],noMarginForAccount:g})})}),me(e)===!0?t.jsx(yg,{children:c.map((Q,pe)=>t.jsx(Sg,{type:e,isActualVsForecastOn:d,compareMode:h,balance:Q,account:y?.account,showTotal:!m,onAccountBalanceClick:v==null?void 0:(J,de)=>{v(o,J,de)}},pe))}):null]}),t.jsx(vg,{isScrolling:p,isLeaf:f,isOpen:m,depth:$,isSticky:i,classDepth:l,noMarginForAccount:g})]})}function vg({isScrolling:e,depth:n,isOpen:i,isLeaf:o,isSticky:r,classDepth:l,noMarginForAccount:c}){return!i||o===!0?t.jsx(we,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:n,isSticky:r,classDepth:l,noMarginForAccount:c}}):null}const _g=[10,14,20,20,20],$g=a.div`
|
|
2632
2632
|
display: flex;
|
|
2633
2633
|
flex: 1 1 auto;
|
|
2634
2634
|
width: fit-content;
|
|
@@ -2766,7 +2766,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
2766
2766
|
justify-content: center;
|
|
2767
2767
|
align-items: center;
|
|
2768
2768
|
color: ${e=>e.theme.colors.champion};
|
|
2769
|
-
`,
|
|
2769
|
+
`,Rg=a.div``,Gg=a(C)`
|
|
2770
2770
|
display: flex;
|
|
2771
2771
|
justify-content: center;
|
|
2772
2772
|
align-items: center;
|
|
@@ -2787,7 +2787,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
2787
2787
|
`,Hg=a.div`
|
|
2788
2788
|
max-height: 54px;
|
|
2789
2789
|
min-height: 54px;
|
|
2790
|
-
`,wo=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=B.getLocalizedStrings().reports,c=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?ai(i,e,n,r,o):void 0,d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=to(c,i);return t.jsx(Hg,{children:r!=null&&o!=null&&c!=null&&d!=null&&h!=null?t.jsx(eo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:c}):t.jsx(xo,{isActualVsForecastOn:!1,children:t.jsx(mo,{children:De(e,n,i)})})})},Kg=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:c,onCompareModeChanged:d})=>{const h=B.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(Eg,{isActualVsForecastOn:o,children:[t.jsx(xo,{isActualVsForecastOn:o,children:t.jsx(mo,{children:De(e,n,i)})}),t.jsxs(Vg,{isActualVsForecastOn:o,children:[t.jsx(vt,{children:h.actual}),t.jsx(vt,{children:h.forecast}),t.jsx(vt,{children:t.jsx(dn,{title:u,titleTextStyle:Et.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:p=>{p!=="off"?d?.(p):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(wo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:c})},Yg=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:c})=>{const d=le(),h=o==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return t.jsx(Dg,{children:n.map((u,p)=>t.jsx(I.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(Rg,{children:t.jsx(dn,{title:h,titleTextStyle:Et.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:g=>{g!=="off"&&(g==="compare_mode_amount"||g==="compare_mode_percent"?c?.(g):console.warn("Invalid compare mode option"))}})}):t.jsx(Gg,{children:t.jsx(wo,{firstMonthOfFY:e,timeframeTick:u,timeframe:i,dataAvailable:r,bookCloseDate:l},p)})},p))})};function Ug({type:e,backgroundColor:n,isSticky:i,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}){const m=O();return t.jsxs(Fg,{height:o,bgColor:n,children:[ge(e)===!0?t.jsx(Tg,{isSticky:i,windowSize:m,bgColor:n,children:" . "}):null,t.jsx(zg,{children:l===!0?t.jsx(Yg,{firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}):h.map((b,y)=>t.jsx(Kg,{firstMonthOfFY:c,timeframeTick:b,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f},y))})]})}const mt=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Te(i.config.reportId)===!0||ii(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):st(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),m=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(qu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:m.balances,isScrolling:c,isLeaf:d,isLastNode:h,account:g,onAccountBalanceClick:p==null?void 0:(b,y,v)=>{p?.(b,y,v)}})},Re=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_subaccount"||i.element.data==null)return null;const f=i.element.data,m=gn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ho(m.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,v=i.config.reportId==="operating_expenses";return t.jsx(Cg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",classDepth:y,compareMode:p,accountBalances:b.balances,isScrolling:c,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:i.element.metadata,onClick:g,noMarginForAccount:v,onAccountBalanceClick:g==null?void 0:(S,A,$)=>{g?.(S,A,$)}})},wt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,m=st(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Bu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},fn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_subaccount"||i.element.data==null)return null;const f=i.element.data,m=gn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Vu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},xn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=zt(i.element.title),m=i.element.data,b=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(pn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},yt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=zt(i.element.title),m=i.element.data,b=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(pn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},mn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=zt(i.element.title),m=i.element.data,b=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(pn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Ee=(e,n,i,o,r,l,c,d,h)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,p=gn("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),g=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=ho(p.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),m=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(Ng,{type:e,backgroundColor:o,isSticky:r,height:i,accountName:u.account.accountName,account:u,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:m,isLeaf:c,isLastNode:d,metadata:n.element.metadata,classDepth:g})},He=(e,n,i,o,r,l,c,d)=>{if(i.element.kind!=="timeframe_headers"&&i.element.kind!=="timeframe_headers_with_forecast")return null;const h=Ge(i.element.data,i.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",p=h.map(g=>Ve(g));return t.jsx(Ug,{treeNodeId:e,backgroundColor:r,isSticky:l,type:n,height:o,isActualVsForecastOn:i.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:i.config.mode==="this_period_vs_period_before"&&p.length>1,firstMonthOfFY:i.config.firstMonthOfFY,timeframe:u,timeframeTicks:p,compareMode:c,dataAvailable:i.config.dataAvailable,bookCloseDate:i.config.bookCloseDate,onCompareModeChanged:d})},yo=(e,n,i,o,r,l,c,d,h,u,p,g,f)=>{if(i.element.kind!="class"||i.element.data==null)return null;const m=i.element.data,b=ee(m.childrenBalancesTotal,i.config.displayOrder,i.element.numOfBalances),y=p>1;return t.jsx(lg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,className:i.element.title,classCode:i.element.data.class.accountingClassNumber,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",depth:m.id.length-1,compareMode:g,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,hasChildren:m.children.length>0,isLastNode:u,isSubClass:y,showClassAccountNumber:i.config.showClassAccountNumber,onClick:v=>{f?.(v)},metadata:i.element.metadata})},qg=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Zg=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ri,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),Un=e=>{const{height:n,data:{reportElementData:i,id:o,treeKind:r,isLeaf:l,isLastNode:c,nestingLevel:d,isFirstNode:h},isOpen:u,style:p,setOpen:g,isScrolling:f}=e,m=(v,S,A)=>{const $=l?u:!u;!l&&A==null&&(g(!u),e.onNodeCollapseToggled?.(v,!u)),e.onNodeClick?.(v,$,S,A)},b=e.treeNodePadding?.left,y=e.treeNodePadding?.right;return t.jsx("div",{style:{...p,width:"auto",minWidth:"100%",paddingLeft:b,paddingRight:y},children:t.jsx(bo,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:i,height:n,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:c,isFirstNode:h,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick!=null||!l?m:void 0,compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},o)})},bo=e=>e.treeKind==="name_only"?t.jsx(np,{...e}):qt(e.reportElementData.config.reportId)?t.jsx(op,{...e}):Jt(e.reportElementData.config.reportId)===!0?t.jsx(ip,{...e}):ii(e.reportElementData.config.reportId)===!0?t.jsx(Jg,{...e}):Yt(e.reportElementData.config.reportId)===!0?t.jsx(Qg,{...e}):Te(e.reportElementData.config.reportId)===!0?t.jsx(Xg,{...e}):Ut(e.reportElementData.config.reportId)===!0?t.jsx(ep,{...e}):Ko(e.reportElementData.config.reportId)===!0?t.jsx(tp,{...e}):Qt(e.reportElementData.config.reportId)===!0?t.jsx(rp,{...e}):Zt(e.reportElementData.config.reportId)===!0?t.jsx(ap,{...e}):null,Jg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:m})=>{switch(i.element.kind){case"ac_report":return mt(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return wt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return xn(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return yt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return mn(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return He(e,n,i,o,r,l,g,m);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return Re(e,n,i,o,r,l,c,d,u,h,g,f);case"ac_subentity_total":return Ee(n,i,o,r,l,c,d,h,g);case"headers_loading_in_progress":return Zg(i,o,r);case"loading_in_progress":return qg(i,o,r);default:return null}},Qg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return mt(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return wt(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return Re(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return fn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return xn(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return yt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return mn(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return null;case"ac_subentity_total":return Ee(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return He(e,n,i,o,r,l,p,f);default:return null}},Xg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:m})=>{switch(i.element.kind){case"ac_report":return mt(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return wt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return yt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return on(e,n,i,o,r,l,c,u,d,h,g,f);case"ac_subentity_total":return Ee(n,i,o,r,l,c,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return He(e,n,i,o,r,l,g,m);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return Re(e,n,i,o,r,l,c,d,u,h,g,f);case"total":return Ui(e,n,i,o,r,l,g,d);case"headers_loading_in_progress":return Kc(i,o,r);case"loading_in_progress":return Hc(i,o,r);default:return null}},ep=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return Gc(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return Rc(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return Re(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return fn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return Ec(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return on(e,n,i,o,r,l,c,u,d,h,p,g);case"total":return Ui(e,n,i,o,r,l,p,d);case"ac_subentity_total":return Ee(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return He(e,n,i,o,r,l,p,f);default:return null}},tp=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return mt(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return wt(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return xn(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return yt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":return mn(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section_type1":return Ol(e,i,o,r,l,c,h);case"title_string_only":return on(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subentity_total":return Ee(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return He(e,n,i,o,r,l,p,f);case"ac_subaccount":return Re(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return fn(e,n,i,o,r,l,c,u,d,h,p,g);default:return null}},np=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:p})=>{switch(i.element.kind){case"checkbox_and_name_only":return nh(e,n,i,o,r,l,c,u,d,h,p);default:return null}},ip=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(i.element.kind){case"loading_in_progress":case"spacer_row":return pu(i,o,r,l);case"timeframe_headers":return hu(i,o,l,h,r,u);case"total":return uu(e,n,i,o,l,c,r);case"vendor_row":return gu(n,i,o,r,l,c,d);case"title_string_only":return fu(i,o,r,l);default:return null}},op=({id:e,treeKind:n,reportElementData:i,height:o,isOpen:r,isSticky:l,isScrolling:c,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:p}=i;switch(i.element.kind){case"spacer_row":return null;case"timeframe_headers":return Ha(i,o,h,l,p.agingReportConfig?.sortKey,p.agingReportConfig?.sortOrder,p.agingReportConfig?.onSortOrderChanged);case"total":return Ua(n,i,o,h,l);case"aging_report_row":return Ka(e,i,o,r,l,d,c,h,p.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Ya(i,o,l,c,h);default:return null}},rp=({id:e,reportElementData:n,height:i,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:c,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:p,nodeClickHandler:g,hoveredParentIdProps:f})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return Gd(e,n,o,r,l,c,d,f,p);case"flux_vendor_row":return Rd(e,n,o,r,l,u,c,d,h,f,g);case"section":return Ed(e,n,i,o,r,l,u,c,d,g);case"timeframe_headers":return Hd(n,i,r);case"total":return Kd(n,i);case"loading_in_progress":return Yd(n);case"headers_loading_in_progress":return Ud(n);default:return null}},ap=({reportElementData:e,height:n,isSticky:i,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return Kr(e,i);case"loading_in_progress":return Hr();case"total":return Yr(e,n,i);case"section":return Er();case"title_string_only":return Ur(e,n);case"ac_group_report":return qr(e,n,o);default:return null}};function qn(e,n,i,o){return{data:{defaultHeight:wn(e.reportElementData.config.reportId,e.reportElementData.element.kind,e.isFirstNode),id:e.id,isLeaf:e.children.length===0,isFirstNode:e.isFirstNode??!1,isLastNode:e.isLastNode,isOpenByDefault:o??lp(e.reportElementData.config.reportId,e.reportElementData.element.kind,i,e.reportElementData.config.reportFormat),nestingLevel:i,treeKind:n,reportElementData:e.reportElementData},treeKind:n,nestingLevel:i,node:e}}function wn(e,n,i){return Yt(e)===!0?Zr(n):Ut(e)===!0||Te(e)===!0?ic(n):qt(e)?ca(n):Zt(e)?ct(n):Jt(e)?ih(n):Qt(e)?Zi(n,i):ul(n)}function lp(e,n,i,o){return Yt(e)?Jr(n,o,i):Ut(e)||Te(e)===!0?oc(n,o):qt(e)?sa():Jt(e)?oh():Qt(e)?os(n):Zt(e)?qo():gl(n,o)}const cp=a.div`
|
|
2790
|
+
`,wo=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=B.getLocalizedStrings().reports,c=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?ai(i,e,n,r,o):void 0,d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=to(c,i);return t.jsx(Hg,{children:r!=null&&o!=null&&c!=null&&d!=null&&h!=null?t.jsx(eo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:c}):t.jsx(xo,{isActualVsForecastOn:!1,children:t.jsx(mo,{children:De(e,n,i)})})})},Kg=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:c,onCompareModeChanged:d})=>{const h=B.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(Eg,{isActualVsForecastOn:o,children:[t.jsx(xo,{isActualVsForecastOn:o,children:t.jsx(mo,{children:De(e,n,i)})}),t.jsxs(Vg,{isActualVsForecastOn:o,children:[t.jsx(vt,{children:h.actual}),t.jsx(vt,{children:h.forecast}),t.jsx(vt,{children:t.jsx(dn,{title:u,titleTextStyle:Et.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:p=>{p!=="off"?d?.(p):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(wo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:c})},Yg=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:c})=>{const d=le(),h=o==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return t.jsx(Dg,{children:n.map((u,p)=>t.jsx(I.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(Gg,{children:t.jsx(dn,{title:h,titleTextStyle:Et.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:g=>{g!=="off"&&(g==="compare_mode_amount"||g==="compare_mode_percent"?c?.(g):console.warn("Invalid compare mode option"))}})}):t.jsx(Rg,{children:t.jsx(wo,{firstMonthOfFY:e,timeframeTick:u,timeframe:i,dataAvailable:r,bookCloseDate:l},p)})},p))})};function Ug({type:e,backgroundColor:n,isSticky:i,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}){const m=O();return t.jsxs(Fg,{height:o,bgColor:n,children:[ge(e)===!0?t.jsx(Tg,{isSticky:i,windowSize:m,bgColor:n,children:" . "}):null,t.jsx(zg,{children:l===!0?t.jsx(Yg,{firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}):h.map((b,y)=>t.jsx(Kg,{firstMonthOfFY:c,timeframeTick:b,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f},y))})]})}const mt=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Te(i.config.reportId)===!0||ii(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):st(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),m=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(qu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:m.balances,isScrolling:c,isLeaf:d,isLastNode:h,account:g,onAccountBalanceClick:p==null?void 0:(b,y,v)=>{p?.(b,y,v)}})},Ge=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_subaccount"||i.element.data==null)return null;const f=i.element.data,m=gn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ho(m.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,v=i.config.reportId==="operating_expenses";return t.jsx(Cg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",classDepth:y,compareMode:p,accountBalances:b.balances,isScrolling:c,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:i.element.metadata,onClick:g,noMarginForAccount:v,onAccountBalanceClick:g==null?void 0:(S,A,$)=>{g?.(S,A,$)}})},wt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,m=st(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Bu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},fn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_subaccount"||i.element.data==null)return null;const f=i.element.data,m=gn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Vu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},xn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=zt(i.element.title),m=i.element.data,b=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(pn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},yt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=zt(i.element.title),m=i.element.data,b=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(pn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},mn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=zt(i.element.title),m=i.element.data,b=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(pn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Ee=(e,n,i,o,r,l,c,d,h)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,p=gn("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),g=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=ho(p.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),m=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(Ng,{type:e,backgroundColor:o,isSticky:r,height:i,accountName:u.account.accountName,account:u,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:m,isLeaf:c,isLastNode:d,metadata:n.element.metadata,classDepth:g})},He=(e,n,i,o,r,l,c,d)=>{if(i.element.kind!=="timeframe_headers"&&i.element.kind!=="timeframe_headers_with_forecast")return null;const h=Re(i.element.data,i.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",p=h.map(g=>Ve(g));return t.jsx(Ug,{treeNodeId:e,backgroundColor:r,isSticky:l,type:n,height:o,isActualVsForecastOn:i.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:i.config.mode==="this_period_vs_period_before"&&p.length>1,firstMonthOfFY:i.config.firstMonthOfFY,timeframe:u,timeframeTicks:p,compareMode:c,dataAvailable:i.config.dataAvailable,bookCloseDate:i.config.bookCloseDate,onCompareModeChanged:d})},yo=(e,n,i,o,r,l,c,d,h,u,p,g,f)=>{if(i.element.kind!="class"||i.element.data==null)return null;const m=i.element.data,b=ee(m.childrenBalancesTotal,i.config.displayOrder,i.element.numOfBalances),y=p>1;return t.jsx(lg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,className:i.element.title,classCode:i.element.data.class.accountingClassNumber,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",depth:m.id.length-1,compareMode:g,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,hasChildren:m.children.length>0,isLastNode:u,isSubClass:y,showClassAccountNumber:i.config.showClassAccountNumber,onClick:v=>{f?.(v)},metadata:i.element.metadata})},qg=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Qg=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Gi,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),Un=e=>{const{height:n,data:{reportElementData:i,id:o,treeKind:r,isLeaf:l,isLastNode:c,nestingLevel:d,isFirstNode:h},isOpen:u,style:p,setOpen:g,isScrolling:f}=e,m=(v,S,A)=>{const $=l?u:!u;!l&&A==null&&(g(!u),e.onNodeCollapseToggled?.(v,!u)),e.onNodeClick?.(v,$,S,A)},b=e.treeNodePadding?.left,y=e.treeNodePadding?.right;return t.jsx("div",{style:{...p,width:"auto",minWidth:"100%",paddingLeft:b,paddingRight:y},children:t.jsx(bo,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:i,height:n,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:c,isFirstNode:h,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick!=null||!l?m:void 0,compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},o)})},bo=e=>e.treeKind==="name_only"?t.jsx(np,{...e}):qt(e.reportElementData.config.reportId)?t.jsx(op,{...e}):Jt(e.reportElementData.config.reportId)===!0?t.jsx(ip,{...e}):ii(e.reportElementData.config.reportId)===!0?t.jsx(Jg,{...e}):Yt(e.reportElementData.config.reportId)===!0?t.jsx(Zg,{...e}):Te(e.reportElementData.config.reportId)===!0?t.jsx(Xg,{...e}):Ut(e.reportElementData.config.reportId)===!0?t.jsx(ep,{...e}):Ko(e.reportElementData.config.reportId)===!0?t.jsx(tp,{...e}):Zt(e.reportElementData.config.reportId)===!0?t.jsx(rp,{...e}):Qt(e.reportElementData.config.reportId)===!0?t.jsx(ap,{...e}):null,Jg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:m})=>{switch(i.element.kind){case"ac_report":return mt(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return wt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return xn(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return yt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return mn(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return He(e,n,i,o,r,l,g,m);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return Ge(e,n,i,o,r,l,c,d,u,h,g,f);case"ac_subentity_total":return Ee(n,i,o,r,l,c,d,h,g);case"headers_loading_in_progress":return Qg(i,o,r);case"loading_in_progress":return qg(i,o,r);default:return null}},Zg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return mt(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return wt(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return Ge(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return fn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return xn(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return yt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return mn(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return null;case"ac_subentity_total":return Ee(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return He(e,n,i,o,r,l,p,f);default:return null}},Xg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:m})=>{switch(i.element.kind){case"ac_report":return mt(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return wt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return yt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return on(e,n,i,o,r,l,c,u,d,h,g,f);case"ac_subentity_total":return Ee(n,i,o,r,l,c,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return He(e,n,i,o,r,l,g,m);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return Ge(e,n,i,o,r,l,c,d,u,h,g,f);case"total":return Ui(e,n,i,o,r,l,g,d);case"headers_loading_in_progress":return Kc(i,o,r);case"loading_in_progress":return Hc(i,o,r);default:return null}},ep=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return Rc(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return Gc(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return Ge(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return fn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return Ec(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return on(e,n,i,o,r,l,c,u,d,h,p,g);case"total":return Ui(e,n,i,o,r,l,p,d);case"ac_subentity_total":return Ee(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return He(e,n,i,o,r,l,p,f);default:return null}},tp=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return mt(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return wt(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return xn(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return yt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":return mn(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section_type1":return Ol(e,i,o,r,l,c,h);case"title_string_only":return on(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subentity_total":return Ee(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return He(e,n,i,o,r,l,p,f);case"ac_subaccount":return Ge(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return fn(e,n,i,o,r,l,c,u,d,h,p,g);default:return null}},np=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:p})=>{switch(i.element.kind){case"checkbox_and_name_only":return nh(e,n,i,o,r,l,c,u,d,h,p);default:return null}},ip=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(i.element.kind){case"loading_in_progress":case"spacer_row":return pu(i,o,r,l);case"timeframe_headers":return hu(i,o,l,h,r,u);case"total":return uu(e,n,i,o,l,c,r);case"vendor_row":return gu(n,i,o,r,l,c,d);case"title_string_only":return fu(i,o,r,l);default:return null}},op=({id:e,treeKind:n,reportElementData:i,height:o,isOpen:r,isSticky:l,isScrolling:c,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:p}=i;switch(i.element.kind){case"spacer_row":return null;case"timeframe_headers":return Ha(i,o,h,l,p.agingReportConfig?.sortKey,p.agingReportConfig?.sortOrder,p.agingReportConfig?.onSortOrderChanged);case"total":return Ua(n,i,o,h,l);case"aging_report_row":return Ka(e,i,o,r,l,d,c,h,p.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Ya(i,o,l,c,h);default:return null}},rp=({id:e,reportElementData:n,height:i,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:c,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:p,nodeClickHandler:g,hoveredParentIdProps:f})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return Rd(e,n,o,r,l,c,d,f,p);case"flux_vendor_row":return Gd(e,n,o,r,l,u,c,d,h,f,g);case"section":return Ed(e,n,i,o,r,l,u,c,d,g);case"timeframe_headers":return Hd(n,i,r);case"total":return Kd(n,i);case"loading_in_progress":return Yd(n);case"headers_loading_in_progress":return Ud(n);default:return null}},ap=({reportElementData:e,height:n,isSticky:i,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return Kr(e,i);case"loading_in_progress":return Hr();case"total":return Yr(e,n,i);case"section":return Er();case"title_string_only":return Ur(e,n);case"ac_group_report":return qr(e,n,o);default:return null}};function qn(e,n,i,o){return{data:{defaultHeight:wn(e.reportElementData.config.reportId,e.reportElementData.element.kind,e.isFirstNode),id:e.id,isLeaf:e.children.length===0,isFirstNode:e.isFirstNode??!1,isLastNode:e.isLastNode,isOpenByDefault:o??lp(e.reportElementData.config.reportId,e.reportElementData.element.kind,i,e.reportElementData.config.reportFormat),nestingLevel:i,treeKind:n,reportElementData:e.reportElementData},treeKind:n,nestingLevel:i,node:e}}function wn(e,n,i){return Yt(e)===!0?Qr(n):Ut(e)===!0||Te(e)===!0?ic(n):qt(e)?ca(n):Qt(e)?ct(n):Jt(e)?ih(n):Zt(e)?Qi(n,i):ul(n)}function lp(e,n,i,o){return Yt(e)?Jr(n,o,i):Ut(e)||Te(e)===!0?oc(n,o):qt(e)?sa():Jt(e)?oh():Zt(e)?os(n):Qt(e)?qo():gl(n,o)}const cp=a.div`
|
|
2791
2791
|
top: 0;
|
|
2792
2792
|
left: 0;
|
|
2793
2793
|
position: sticky !important;
|
|
@@ -2802,7 +2802,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
|
|
|
2802
2802
|
align-items: center;
|
|
2803
2803
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2804
2804
|
box-sizing: border-box;
|
|
2805
|
-
`;function sp({height:e,backgroundColor:n,headers:i,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:c}){return i.length===0?null:(i.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(cp,{heightValue:e,bgColor:n,"data-testid":x("sticky-header-report-tree"),children:i.map((d,h)=>t.jsx(bo,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:wn(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:n,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:i.length-1===h,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:c},d.id))}))}const dp=(e,n,i)=>function*(){for(let o=0;o<n.length;++o)yield qn(n[o],e,0,i[n[o].id]??void 0);for(;;){const o=yield;for(let r=0;r<o.node.children.length;++r)yield qn(o.node.children[r],e,o.nestingLevel+1,i[o.node.children[r].id]??void 0)}},ko=I.createContext(void 0);function hp({height:e,kind:n,rootNodes:i,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:c,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:p,infiniteLoadingProps:g,variableNodeHeightTree:f,onNodeClick:m,onCompareModeChanged:b,scrollPosition:y,onScroll:v,nodeOpenStatus:S,onNodeCollapseToggled:A,onTreeInnerElementHeightChanged:$,onToggleCheck:W,hoveredParentIdProps:N}){const z=I.useRef(null),H=I.useRef(null),E=bn(f?.prevFetchState),Y=bn(f?.prevRefreshFetchState),[
|
|
2805
|
+
`;function sp({height:e,backgroundColor:n,headers:i,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:c}){return i.length===0?null:(i.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(cp,{heightValue:e,bgColor:n,"data-testid":x("sticky-header-report-tree"),children:i.map((d,h)=>t.jsx(bo,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:wn(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:n,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:i.length-1===h,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:c},d.id))}))}const dp=(e,n,i)=>function*(){for(let o=0;o<n.length;++o)yield qn(n[o],e,0,i[n[o].id]??void 0);for(;;){const o=yield;for(let r=0;r<o.node.children.length;++r)yield qn(o.node.children[r],e,o.nestingLevel+1,i[o.node.children[r].id]??void 0)}},ko=I.createContext(void 0);function hp({height:e,kind:n,rootNodes:i,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:c,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:p,infiniteLoadingProps:g,variableNodeHeightTree:f,onNodeClick:m,onCompareModeChanged:b,scrollPosition:y,onScroll:v,nodeOpenStatus:S,onNodeCollapseToggled:A,onTreeInnerElementHeightChanged:$,onToggleCheck:W,hoveredParentIdProps:N}){const z=I.useRef(null),H=I.useRef(null),E=bn(f?.prevFetchState),Y=bn(f?.prevRefreshFetchState),[Q,pe]=I.useState(0),J=p??H,de=u??z,$e=O(),[he,oe]=I.useState(void 0),[je,Ke]=I.useState(!1),[Se,Ye]=I.useState(S),xe=(P,te)=>{Ye(Object.assign({},Se,{[P]:te})),A?.(P,te)},ue=P=>{if(i.contentNodes.length>0)if(Object.keys(P).length>0){const te={};Object.keys(P).forEach(ye=>{te[ye]={open:P[ye]}}),de?.current?.recomputeTree(te)}else{const te=i.contentNodes[0].id;de?.current?.recomputeTree({[te]:{open:!0}})}};I.useLayoutEffect(()=>{if((!kn(y,he)||he==null)&&J.current!=null){const P=y?.scrollLeft==null?$e==="small"?0:J.current.scrollWidth:y?.scrollLeft;if(y!=null){const te={scrollTop:y.scrollTop,scrollLeft:P};oe(te),P!==y?.scrollLeft&&v?.(te)}J.current.scroll({left:P,top:y?.scrollTop})}},[y]),I.useEffect(()=>{kn(S,Se)||(Ye(S),ue(S))},[S]),I.useEffect(()=>{const P=J.current,te=Lo(()=>{if(P!=null&&(he==null||P.scrollLeft!==he.scrollLeft||P.scrollTop!==he.scrollTop)){const ye={scrollLeft:P.scrollLeft,scrollTop:P.scrollTop};oe(ye),v?.(ye)}},50);return P?.addEventListener("scroll",te),()=>{P?.removeEventListener("scroll",te)}},[J,he,v]),I.useEffect(()=>{if(i.contentNodes.length>0){ue(Se);const P=i.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";P!==je&&Ke(P)}},[je,Ke,i,de,J]),I.useEffect(()=>{(f!=null&&E==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&Y==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),pe(Q+1))},[Q,f?.fetchState,f?.isSortApplied,E,Y,f]);const Le=I.useRef(),[jo,So]=I.useState(void 0),Co=()=>{const P=Le.current;P!=null&&P.clientHeight>0&&P.clientHeight!=jo&&(So(P.clientHeight),$?.(P.clientHeight))},yn=I.useCallback(dp(n,i.contentNodes,Se),[n,i]),vo={rootNodes:i,treeNodePadding:c,backgroundColor:l,kind:n,isSticky:r,compareMode:o,onCompareModeChanged:b};return t.jsx(ko.Provider,{value:vo,"data-testid":x("report-tree"),children:g==null?t.jsx(jn,{className:d,style:h,ref:de,innerRef:Le,outerRef:J,innerElementType:Ft,treeWalker:yn,onItemsRendered:Co,height:e,width:"100%",children:P=>t.jsx(Un,{...P,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:m,onNodeCollapseToggled:xe,compareMode:o,onCompareModeChanged:b,onToggleCheck:W})}):t.jsx(Ao,{isItemLoaded:g.isItemLoaded,itemCount:g.itemCount+1,loadMoreItems:g.loadMoreItems,children:({onItemsRendered:P,ref:te})=>t.jsx(jn,{className:d,style:h,ref:te,innerRef:Le,outerRef:J,innerElementType:Ft,treeWalker:yn,onItemsRendered:P,height:e,width:"100%",children:ye=>t.jsx(Un,{...ye,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:m,onNodeCollapseToggled:xe,compareMode:o,onCompareModeChanged:b,onToggleCheck:W,hoveredParentIdProps:N})},Q)})})}const Ft=I.forwardRef((e,n)=>{const{children:i,style:o,...r}=e,{rootNodes:l,treeNodePadding:c,backgroundColor:d,kind:h,isSticky:u,compareMode:p,onCompareModeChanged:g}=I.useContext(ko),f=l.headerNodes.reduce((v,S)=>v+wn(S.reportElementData.config.reportId,S.reportElementData.element.kind,S.isFirstNode),0),m=c?.left,b=c?.right,y=s.sp8;return t.jsxs("div",{ref:n,style:{...o,width:"auto",minWidth:"100%",paddingLeft:m,paddingRight:b,marginBottom:y},...r,children:[t.jsx(sp,{height:f,backgroundColor:d,headers:l.headerNodes,treeKind:h,isSticky:u.isStickyHeader,compareMode:p,onCompareModeChanged:g}),i]})});Ft.displayName="stickyInnerElementType";const up=a.div`
|
|
2806
2806
|
display: flex;
|
|
2807
2807
|
flex: 1 0 auto;
|
|
2808
2808
|
width: ${e=>e.width}px;
|