@zeniai/web-cockpit-ui 1.15.55-dev → 1.15.56-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-C98HijMx-DIRaMQaw.js → ACHDetailsPage-CfGEDzSb-BGyn6Hh2.js} +1 -1
- package/dist/assets/{AIPerformancePage-DvIqqfUW-B5ddcrLl.js → AIPerformancePage-BWhcStZE-CeYODf8q.js} +29 -29
- package/dist/assets/AccountInfoPage-D6sv-ieC-B4PaH9ex.js +18 -0
- package/dist/assets/{AccountInfoPageContent-Bjoy7kSM-kNnrLnJI.js → AccountInfoPageContent-XBo-oJV1-DWd-5Z8N.js} +15 -15
- package/dist/assets/{AccountLockedInfoModal-DisEYsUS-zfxK1-20.js → AccountLockedInfoModal-DTEWzR6U-CswnB2Ho.js} +10 -10
- package/dist/assets/{AccountReconDetailsDrawerPage-3lMeeEsP-CBHWuQnb.js → AccountReconDetailsDrawerPage-DwzrCq7I-D9C1tnWs.js} +20 -20
- package/dist/assets/AccountRow-BsjoBGWz-XKpYWJFn.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-94l6cw3--BqluiECW.js → AccountsPromoCardStack-D-iNswM8-BCWgVD2M.js} +18 -18
- package/dist/assets/AddAddressForCardDrawer-D7IEsbzd-9AcgaTTK.js +6 -0
- package/dist/assets/{AddToWalletPage-BFRK3Cz9--H2684Y8.js → AddToWalletPage-DX8xInYJ-DCTNQyem.js} +12 -12
- package/dist/assets/{AgingReportsPage-B4XD0NxM-C9hPpgrJ.js → AgingReportsPage-CXj1Tifk-Cx88sSbv.js} +16 -16
- package/dist/assets/{AllUserItems-fjv8Ov4s-D0Yn7Cw3.js → AllUserItems-DU78kWqE-BO6rFyuD.js} +13 -13
- package/dist/assets/{ApAgingDetailPage-D5ATi6Rg-c01emJHv.js → ApAgingDetailPage-BV5m2F3a-BSgBSoy0.js} +3 -3
- package/dist/assets/AppBasePage-1U1M1WD9-CXysaPqS.js +71 -0
- package/dist/assets/AppDrawerContent-ilzYI49f-BI7w7tno.js +92 -0
- package/dist/assets/ApprovalRulesSettingsPage-CJ4xz_hQ-D5sZOOO8.js +47 -0
- package/dist/assets/{ArAgingChart-CW-BCqsC-D14dt6qa.js → ArAgingChart-B0wn2vDP-ClJ7YwbK.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-C4wzs4jI-BEFfnJg4.js → ArAgingDetailPage-C-agUa8y-C_TJ2L21.js} +2 -2
- package/dist/assets/{AttachmentView-NLynK_4B-BnApX40v.js → AttachmentView-9Vrv319r-czchKUV5.js} +9 -9
- package/dist/assets/{BankAccountSection-BvIYx2co-BamiC5Ie.js → BankAccountSection-Bv9Iogxn-gY4dwkU_.js} +13 -13
- package/dist/assets/{BankAccountWarningSection-CqyeSTWe-C-YFtMtw.js → BankAccountWarningSection-DAxaKIg3-SHVqFPrV.js} +7 -7
- package/dist/assets/{BankConnectionsSettingsPage-C8lTCBWz-C-LvS4NN.js → BankConnectionsSettingsPage-ZUWw604G-5JFfnAUm.js} +29 -29
- package/dist/assets/BillDetailPage-Cf4PYoYQ-DJR4Ml4e.js +266 -0
- package/dist/assets/{BillPayApprovalRuleDetailPage-CKtwE5ro-CvaoHMcE.js → BillPayApprovalRuleDetailPage-BfJ2F03Y-BSqfEElp.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CAVAguR4-C8XO5DYA.js → BillPayApprovalRulesPage-DQ0MRCLa-C_GPmDyJ.js} +13 -13
- package/dist/assets/{BillPayPromoPage-BhXeOZWk-DQanpXhA.js → BillPayPromoPage-DdxRC1p4-C6FSHUuV.js} +7 -7
- package/dist/assets/{BillPaySetUpPage-DBeeMB1d-CPdIKBLb.js → BillPaySetUpPage-DBFcp1Yq-B1CZUTYe.js} +2 -2
- package/dist/assets/{BillingSettingsPage-C34kg2JK-d6AbOc60.js → BillingSettingsPage-DsMjw0qG-Cq1aHxZN.js} +8 -8
- package/dist/assets/BillsBulkReviewDrawerPage-HXDlOpw3-BmcSBj3u.js +1 -0
- package/dist/assets/{BoxItem-F9HlKmjN-xqfWS_hX.js → BoxItem-DaxLyqVe-BDS_i-Ew.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-YOt_PXhl-CeYXkkiq.js → BusinessVerificationPage-BG1rOYOk-DZAei-pQ.js} +13 -13
- package/dist/assets/{CardNumberSubText-BYBZ7ZM1-CYschYSJ.js → CardNumberSubText-bkAPzhoK-D68hvJdl.js} +3 -3
- package/dist/assets/{CashbackDetailPage-BvWf2TDN-CJvt8fwC.js → CashbackDetailPage-CpVmCjts-C2xLm-90.js} +24 -24
- package/dist/assets/{ChargeCardDetailPage-Bx09SgSk-Mc5U0L1M.js → ChargeCardDetailPage-u6hMCosx-DzEhI6yb.js} +1 -1
- package/dist/assets/{ChargeCardListPage-BM0D7PCI-2RCeRUIi.js → ChargeCardListPage-D_7gwi3K-Bgz8fKhJ.js} +28 -28
- package/dist/assets/{ChargeCardListTable-xoYHcNTF-CDUEEXq9.js → ChargeCardListTable-DJmStpnO-DehJbT-m.js} +58 -58
- package/dist/assets/{ChargeCardPaymentHistoryPage-CLA5UpG2-BjxNitum.js → ChargeCardPaymentHistoryPage-BRGJ-5y3-gSyJhC6K.js} +35 -35
- package/dist/assets/ChargeCardPromoPage-Dx4Lni50-C133Kvxd.js +222 -0
- package/dist/assets/ChargeCardSetupPage-CRDfRFf1-DUoEu2We.js +36 -0
- package/dist/assets/ChargeCardStatementsPage-l4X9T8zd-DdxKgTDl.js +60 -0
- package/dist/assets/{CheckDepositDrawerPage-BTCZ6Ihv-Bwg08fJC.js → CheckDepositDrawerPage-DR6LIuPw-BXSM12h-.js} +16 -16
- package/dist/assets/CollapsableReportTable-4bJMcvHV-DJSNBbx8.js +2844 -0
- package/dist/assets/{CompanyOfficerDetailsSection-7wea0Ige-DaIiZvTQ.js → CompanyOfficerDetailsSection-DoGF7khv-CBglpYSM.js} +27 -27
- package/dist/assets/{CompanyPassportCard-BiW2qW0Q-DbzQ0mZs.js → CompanyPassportCard-BHFj9sK6-DN_eKmT3.js} +8 -8
- package/dist/assets/{CompanyPassportPage-cUf8LJjO-BtNthnMy.js → CompanyPassportPage-CH-dqy03-CkFzpRAr.js} +16 -16
- package/dist/assets/{CompleteProfile-zUf6xhpN-Djjy4qMc.js → CompleteProfile-Ck4Baf4z-Bb8vk_It.js} +2 -2
- package/dist/assets/ConfettiBurst-CVLXMknu-C5dtBbFy.js +1 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-D303BiU-.js → ConstrainedInnerElement-BeIpAPjB-C1ngGNQp.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-ByvOufGv-BnP_tF_w.js → CreateOrEditVendorPage-D-0WG9pO-B3wRKHPt.js} +22 -22
- package/dist/assets/{CreditCardPaymentDrawerPage-bvQF_Dnd-DNvTFSk3.js → CreditCardPaymentDrawerPage-B7voVDUs-D92b0pbw.js} +21 -21
- package/dist/assets/CurrencySelectField-DrL1sFLq-CxbEbHLA.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-Bnqb4OwN-BkOYiVjl.js → CustomerOnboardingActivationPage-D42sb2F9-DOoQENIp.js} +29 -29
- package/dist/assets/CustomerOnboardingContainerPage-ecKRiXO1-B2Rv0uXK.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DzZq9ydV-rcF8sUPi.js → CustomerOnboardingDetailPageSkeleton-n6GMQZP5-VclSN0ci.js} +16 -16
- package/dist/assets/CustomerOnboardingNoStepsPage--O7lSduT-kzaO9ZVJ.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-Gs1nLE_K-C1loGeIV.js → CustomerOnboardingPage-BPX2w8Fg-Co3rO7kz.js} +7 -7
- package/dist/assets/{CustomerOnboardingProductSuitePage-BzXjhPEn-CGUMAsr4.js → CustomerOnboardingProductSuitePage-CZXqXXFj-B9tCLCph.js} +10 -10
- package/dist/assets/{Dashboard-CB4FHIWL-DH8-1h66.js → Dashboard-Q5gt63wS-D-NM1jxJ.js} +1 -1
- package/dist/assets/{DashboardReportPage-CJzzOcFM-CXGGECPa.js → DashboardReportPage-DJsc3Nx7-CPNsUz_i.js} +40 -40
- package/dist/assets/DashboardSidebarBackgroundAnimation-8LKlc-IA-DppqzS9d.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-DI2iFIOE-D78pehet.js → DepositAccTransactionItem-DB7Oz4GA-Bl1jaHEd.js} +6 -6
- package/dist/assets/DepositAccTransactionListPage-BU1b2OIP-Bg5Lhhh_.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-6Ja_raS1-BtmRTZLv.js → DomesticWireDetailsPage-Dptv-ebx-Dh9S4ky1.js} +1 -1
- package/dist/assets/DownloadOverlay-B61S0t5X-D_O4PIgS.js +439 -0
- package/dist/assets/{DrawerPage-CTtzGlId-R2r7ok8_.js → DrawerPage-DtJQE-UA-o7PPfoO7.js} +9 -9
- package/dist/assets/EditPeoplePage-Dd1g1r37-D5NUne-F.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-B_u1W6bf-DF3LKIJu.js +865 -0
- package/dist/assets/EntityDetailPage-q_kzXlBV-CelG1soQ.js +18 -0
- package/dist/assets/{EntitySummarySection-CgIfSDBl-bARhT4wA.js → EntitySummarySection-BiIPehv4-DbMdDRCI.js} +19 -19
- package/dist/assets/{ExpenseAutomationOverviewPage-BOMURB5R-BK4Piycw.js → ExpenseAutomationOverviewPage-Bo5Eu3Ju-BJhkARvq.js} +48 -48
- package/dist/assets/ExpenseAutomationPage-CBGrrVMb-DCPvuANk.js +1703 -0
- package/dist/assets/{ExpressPayPage-Bq7VwGIy-CuN_JG1U.js → ExpressPayPage-D18sY5VJ-B6oTblqu.js} +19 -19
- package/dist/assets/{FeaturePreviewPage-DzmWWp4h-DNDXggJB.js → FeaturePreviewPage-De2_m2xD-DVzcgjum.js} +2 -2
- package/dist/assets/{FollowStepsSection-DF7igv9E-BXwQRKtK.js → FollowStepsSection-D5ln-mii-C0ucHGsw.js} +24 -24
- package/dist/assets/GlobalReviewListPage-Ch51_Flw-D-uO5wy3.js +291 -0
- package/dist/assets/{InformationCardStack-DNqDhetv-CczzYoVw.js → InformationCardStack-B4z6RgwP-DRH43WQx.js} +5 -5
- package/dist/assets/{InsightsCardStack-cCxIT64L-CUFk6OxI.js → InsightsCardStack-CwBBEkZ7-DJcXHozK.js} +12 -12
- package/dist/assets/InsightsSection-CQD6KXLg-Dl2NV9MP.js +27 -0
- package/dist/assets/IntegrationsSettingsPage-DBiomD_q-DtZiPPV1.js +57 -0
- package/dist/assets/{InternationalWireSwiftDetailsPage-53hMX6yJ-BesU5wqw.js → InternationalWireSwiftDetailsPage-h4bchKo3-DHLm8H4k.js} +25 -25
- package/dist/assets/InternationalWireVerificationPage-DAQrAsW5-Do-KUK3J.js +65 -0
- package/dist/assets/{InviteFormPage-CGxv4wps-5AP-y1Ow.js → InviteFormPage-Dgb-LZKf-ilCutOVc.js} +21 -21
- package/dist/assets/{InvitePageListView-NbYGP_zc-CH2LQelV.js → InvitePageListView-DC-Dp4Zc-D5DpcvE2.js} +47 -47
- package/dist/assets/InvitePeoplePage-CjJOyA8E-7gXroqh1.js +12 -0
- package/dist/assets/InvoiceUploadSection-BJ_Sbytw-C6MkqA6t.js +140 -0
- package/dist/assets/{IssueChargeCardPage-BRRHAcZh-D4kemR48.js → IssueChargeCardPage-DiUKL-rT-CiI_gBye.js} +37 -37
- package/dist/assets/{LabeledAddressValue-BqBWtO4T-C7fJuTnk.js → LabeledAddressValue-DYTDoPER-BLmB8hnw.js} +1 -1
- package/dist/assets/LabeledAddressValueField-DVNSaKBc-CR8m9IVs.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-CZlavM3Q-CNMSOa5n.js +16 -0
- package/dist/assets/{LabeledCountryMultiSelectField-C0QF9TCM-CB5E5Naj.js → LabeledCountryMultiSelectField-BM1jU3hl-_1uQcelw.js} +12 -12
- package/dist/assets/{LabeledCreatableSingleSelectField-CdMkAJap-1V7j-DDR.js → LabeledCreatableSingleSelectField-BkI0vyax-Dhqs7qd2.js} +6 -6
- package/dist/assets/LabeledDocumentField-B7TETIva-DaOKO-m5.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-Dj0SVwKK-B9iE6D9J.js +59 -0
- package/dist/assets/{LabeledText-DTF15PO8-z7lFVMYz.js → LabeledText-BaYp8lyd-CYkwAQsC.js} +6 -6
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-D9bbIz04-BT9veYVH.js → LabeledUserSingleSelectWithSubtitlesField-nlyagP_L-V-ruydL6.js} +19 -19
- package/dist/assets/{LabeledZeniRolesDropDownField-DPNR8el--C4H8qzAo.js → LabeledZeniRolesDropDownField-Bgf26ek0-BDX-8gLb.js} +30 -30
- package/dist/assets/LinkJETransactionPage-ByQktBdK-C5XqLvWq.js +98 -0
- package/dist/assets/{LockCardPage-VSlPzmAF-CYZTWdC-.js → LockCardPage-M7Pcx6mB-BwvNlh-G.js} +14 -14
- package/dist/assets/{LowBalancePopup-DCwoGS48-hmCGAo7a.js → LowBalancePopup-DTwIs75G-MssgctsT.js} +6 -6
- package/dist/assets/MagicLinkACHDetailsPage-Cateo39t-T6xIrHkU.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BMkPYONG-Cj3VBYpA.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-BVn2JAEL-DeQZ6JNw.js +1 -0
- package/dist/assets/MagicLinkSuccessPage-6e22dOVy-Gwai5BfM.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-D1tjQ-VI-B06aRvZu.js → MagicLinkTitleSection-B985JuE8-Dn-qMxNJ.js} +5 -5
- package/dist/assets/MailingDetailsSection-detuRa7l-BJwGs4Yy.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-CtYcGNjJ-BqSq6z3Z.js → MyBankConnectionsSettingsPage-2x0kDozt-ClPVN4BG.js} +12 -12
- package/dist/assets/MyPendingActivationChargeCardListPage-CfsTMsnG-BVxobwmr.js +6 -0
- package/dist/assets/MyProfileSettingsPage-BQx9m8r--De3mUOMd.js +85 -0
- package/dist/assets/NavBarWithPicker-BXsxMlBP-DTPzeQwG.js +30 -0
- package/dist/assets/{NavigationArrow-DJQDYzJE-BC_4c0HP.js → NavigationArrow-BpKepWMa-Bn4FAyCA.js} +7 -7
- package/dist/assets/NavigationDots-CxV99fd--CAgGp2GQ.js +15 -0
- package/dist/assets/{NewGlobalMerchantPage-B18toasi-BU1JGIOb.js → NewGlobalMerchantPage-rAYrEwup-HzusEOWs.js} +36 -36
- package/dist/assets/{NoDataChart-BO4tisNf-D8owAUYk.js → NoDataChart-SlgxXIjJ-Bi3c4Olw.js} +3 -3
- package/dist/assets/{NoDataTable-BEVgI9LO-CYWfmTuA.js → NoDataTable-CePwfuWH-BOYJp_LB.js} +1 -1
- package/dist/assets/NotFoundPage-CdmLYWbu-BBjH4PMR.js +46 -0
- package/dist/assets/NotificationSettingsPage-KThnHYOw-D0iY_voD.js +163 -0
- package/dist/assets/NotificationsListConfig-6ay7Y8AS-8Qyako_J.js +1 -0
- package/dist/assets/NotificationsPage-BmNwL81h-yaYUcRR5.js +685 -0
- package/dist/assets/OpExByVendorPage-DQPUJmPx-m9-ozd1L.js +100 -0
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-b_Vxf1PH.js → OverlayContainerPage-D4QU0p4o-BPZC_JkQ.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-Bu9ojuKa-CT86cSNx.js → PandLWithForecastPage-C6FwSybq-CjLuy8We.js} +14 -14
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-vFIhGJqT-5psa-_DW.js → PaymentAccountSetupBillingAddressSection-DFCQGlZ--D6Xxd3zY.js} +16 -16
- package/dist/assets/PeoplePage-Df6QdrX5-CNBpk9Ed.js +675 -0
- package/dist/assets/{Preview-CJ42XXYk.js → Preview-Wpvi69S8.js} +1 -1
- package/dist/assets/{ProductsCarousel-Bp3BA6jn-Dq3g70sD.js → ProductsCarousel-Bq0uDCW7-BchAY2K0.js} +9 -9
- package/dist/assets/{PromoBaseCards-BJngCLC1-D1D3BuDF.js → PromoBaseCards-Bs1TPBeA-C7sFMDVT.js} +4 -4
- package/dist/assets/{QBOConnectionDialog-DkBwI8ar-CHNOORcZ.js → QBOConnectionDialog-CGH6M1BO-BTEhQpDo.js} +5 -5
- package/dist/assets/QBOSetupSection-BsFbgysY-CxagA6VQ.js +79 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Q5ynG2vJ-D1YIG_oC.js → ReimbursementApprovalRuleDetailPage-CUf8BGfB-21mnbTVV.js} +2 -2
- package/dist/assets/{ReimbursementApprovalRulesPage-bXsxoJ-h--lf8D9ac.js → ReimbursementApprovalRulesPage-SKRjcth4-C1ni0caN.js} +17 -17
- package/dist/assets/ReimbursementDetailPage-BzqZlk2B-BW3Uw4EQ.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-Db-_ODCp-CvQz3EGd.js → ReimbursementPromoPage-X1o2D5fz-DfVtcv-q.js} +32 -32
- package/dist/assets/{ReimbursementSetUpPage-Hs-W_q-P-BdYd6UC3.js → ReimbursementSetUpPage-DfAhrvlw-x_fpcuRs.js} +3 -3
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-D0tGia3M-CiWkjF6g.js +1 -0
- package/dist/assets/{ReloadCard-CqhIfBOB-BY0vX67l.js → ReloadCard-DvIzOHkJ-SNPzaiS7.js} +6 -6
- package/dist/assets/ReportTableViewSelector-DikZuwk8-JNUnKB0r.js +150 -0
- package/dist/assets/ReportsPage-CgwJh87H-BukY4LEY.js +121 -0
- package/dist/assets/{RevenueChart-SOIqJqC1-C9wQDXwd.js → RevenueChart-VvZ0y1TP-qC_rkSgA.js} +19 -19
- package/dist/assets/{ReviewDetailsPage-DJtR6MAV-YpQ78vWd.js → ReviewDetailsPage-DC5Pr6t5-DriGh_oI.js} +20 -20
- package/dist/assets/{ReviewOverlay-BAkkDswR-CSwNTB3g.js → ReviewOverlay-BidXwnVw-CvEYNCbr.js} +23 -23
- package/dist/assets/{RoleWithToolTip-LhCV3AOg-BfEF5V_b.js → RoleWithToolTip-CUpngYu7-DADn2aws.js} +4 -4
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BSEAGNCA-CWkK2E_X.js → ScheduleDetailsFixedAssetsPage-P4en048K-D2xUyeCX.js} +13 -13
- package/dist/assets/{ScheduleDetailsPage-DuQdRk-6-YLy7Z141.js → ScheduleDetailsPage-Bm8IOCpE-BZajG7cQ.js} +3 -3
- package/dist/assets/ScheduleSequenceTable-Cz46lcuv-DwCS-vmM.js +324 -0
- package/dist/assets/{ScreenRoutes-D4V6kIC9.js → ScreenRoutes-Cdqgwe4G.js} +31 -31
- package/dist/assets/{SetUpAccountSection-Bx30O5Ml-WH4usOA9.js → SetUpAccountSection-DBuoMbxP-u5yk_3Is.js} +17 -17
- package/dist/assets/SignIn-ogxsR98p-BbKEcQBe.js +491 -0
- package/dist/assets/SignInScreen-DP-m_Sk_.js +1 -0
- package/dist/assets/SpendManagementListViewPage-DP6uWx2T-BVgklVNc.js +134 -0
- package/dist/assets/{SpendManagementPerTabPage-Caux80RI-BTh48LKq.js → SpendManagementPerTabPage-DSXg_agw-BBbTIsSz.js} +108 -108
- package/dist/assets/{SpendManagementSection-Z9MFiKoI-CQFuO0wV.js → SpendManagementSection-C-EIQv7m-QyOD3ve3.js} +25 -25
- package/dist/assets/StatementItem-BSVnuQ3e-Bes_h96W.js +31 -0
- package/dist/assets/StatementsPage-CgOC5W_I-Df-cPgLx.js +58 -0
- package/dist/assets/{StatusSwitcher-C3WR2o9U-C0FM9NGp.js → StatusSwitcher-BnSFSpJ0-DnH48_9z.js} +5 -5
- package/dist/assets/SubTabSwitcher-VHMqXmGa-DxiEBs88.js +58 -0
- package/dist/assets/SummaryCard-BTnU1LYd-5Er4BGPP.js +1 -0
- package/dist/assets/TaskManagementPage-CeQkRFbn-JSqoMa4T.js +508 -0
- package/dist/assets/TimeRangeSwitcher-BifUYnpe-C0S2hPAm.js +64 -0
- package/dist/assets/TimeframeSwitcher-9X-6amWo-BHsPnDZX.js +31 -0
- package/dist/assets/TimeframeSwitcherWithToggle-C0fPwGaA-BBTlDoLy.js +31 -0
- package/dist/assets/{TopExCard-CcmlvV2E-DQ9im9Ri.js → TopExCard-Bc812PB9-Cgf0i8AY.js} +6 -6
- package/dist/assets/{TopExDetailPage-oCk5X1ga-b7oteKxs.js → TopExDetailPage-19FwjeX_-Udhi2GOz.js} +16 -16
- package/dist/assets/{TransactionActivityLogPage-nNEnRuxA-DgSPVh85.js → TransactionActivityLogPage-7Lfwq_IY-CFdWRG9m.js} +20 -20
- package/dist/assets/TransactionDetailPage-C7Tv82YB-m9WgdlMS.js +903 -0
- package/dist/assets/TransactionList-CSZxHqad-CHJszH5C.js +153 -0
- package/dist/assets/{TransactionListBig-C_K_kh-Q-CF_jEt3p.js → TransactionListBig-gSPdjYSs-Dr__rrF5.js} +19 -19
- package/dist/assets/TransactionListPage-9ezEzYvU-Cm8yXVfl.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-B1BhBjXd-B68h1iEJ.js → TransactionVendorDetailPage-rcOVwgxy-Ow41gTpA.js} +4 -4
- package/dist/assets/{TransferDrawerPage-DlH8zdQ6-4JQLTKYp.js → TransferDrawerPage-IeuD-8y4-BBbQ4FZg.js} +27 -27
- package/dist/assets/TreasuryOverviewPage-bmv1c3nO-m6l1VttQ.js +708 -0
- package/dist/assets/{TreasuryPromoPage-vnYtT9wt-BT7vg2wI.js → TreasuryPromoPage-KuuzWIYO-BDjVQ4WN.js} +131 -131
- package/dist/assets/{TreasuryStatementsPage-DF66dQfj-YdehmP5K.js → TreasuryStatementsPage-BAfN8DAx-CZoNN9-F.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-DyHfEHRJ-Dk_i3mPQ.js → TreasuryTaxLetterPage-BRDygaXn-BgocidOv.js} +1 -1
- package/dist/assets/{TrendChart-DWFAkD1M-rLrsd-Rc.js → TrendChart-BJqnjEu6-BacSdVAX.js} +4 -4
- package/dist/assets/TrendWithTransactions-2pBj6qUR-T4OcbS5_.js +116 -0
- package/dist/assets/{UncategorizedAccountsMappingPage-Cpz9ytBO-BvYunpjj.js → UncategorizedAccountsMappingPage-DlxWCGZg-CdSrYHNM.js} +23 -23
- package/dist/assets/{UnitIntegrationPage-DUt0EgH9-CrhKA0X8.js → UnitIntegrationPage-U85XCs_D-Bx8aLPRf.js} +11 -11
- package/dist/assets/UploadAdditionalDocumentOverlay-5-avyqy0-fJ0d5z1N.js +38 -0
- package/dist/assets/{Vendor2FAPopup-31AZ3ofQ-ByfeqFMV.js → Vendor2FAPopup-DLU7H22p-DEGIw5UY.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-B-Zle7l9-BVROIXeh.js +1 -0
- package/dist/assets/VendorDetailPage-prrUwTR_-BD-GdLo7.js +257 -0
- package/dist/assets/VendorDomesticWireDetailsPage-Cm6an-ZT-DTJS7RDE.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-DEm4nD4L-C8GKsU9A.js → VendorFiling1099EditablePage-DIvLStyg-CYbK6ev_.js} +17 -17
- package/dist/assets/VendorFirstReviewPage-BJKFcgOq-CSmnGqyp.js +730 -0
- package/dist/assets/{VendorInternationalWireDetailsPage-B3-s03c8-D6bHR05f.js → VendorInternationalWireDetailsPage-Ctwg_CTY-CK5moP88.js} +15 -15
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-D11DRwWL-NLsA0vGl.js +1 -0
- package/dist/assets/{VendorsAccountsSection-2RQUw482-DQWkHxTh.js → VendorsAccountsSection-Bj840XXA-zylNCv6a.js} +2 -2
- package/dist/assets/{VerifyDevice-DrHOxZ08-DicK7t3o.js → VerifyDevice-D5ce0rEk-ByWH1Q6_.js} +2 -2
- package/dist/assets/{VideoPlayer-D7qtpMP6-DY2DpB0L.js → VideoPlayer-XhlPd-AK-BJf7SfgL.js} +2 -2
- package/dist/assets/{VideoPopup-mcH3S96f-CSNVNU5W.js → VideoPopup-8ebccUQt-CoWKaT2k.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-BuSNnbS0-BmlAm--l.js → WarningsDrawerPage-CXHMQPmw-V3zdlF1l.js} +9 -9
- package/dist/assets/{ZeniAccountDetailPage-DeS7bxGu-B2MkmZWf.js → ZeniAccountDetailPage-BCEccrGo-CidPyi4i.js} +40 -40
- package/dist/assets/{ZeniAccountListViewPage-CE9vKT6d-C_0wjRBB.js → ZeniAccountListViewPage-f_9PSaYv-D_Ll-dy-.js} +20 -20
- package/dist/assets/ZeniAccountNavBarPieces-oinah8Mu-H8pK0EkG.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-CS4DCdI2-B9MH4_YO.js → ZeniAccountPromoPage-DGttDJGp-F0XlSRMz.js} +29 -29
- package/dist/assets/{ZeniAccountSetupPage-B_TE40pq-Dxf2Uc2C.js → ZeniAccountSetupPage-5hc6Dfls-Csndezul.js} +6 -6
- package/dist/assets/ZeniCopyright-Ct2Gx1TW-CQmnzv8u.js +1 -0
- package/dist/assets/{ZeniTransferAmountSlider-DpxLl7Ue-DPRxI6VI.js → ZeniTransferAmountSlider-CtSVUxFX-BrJYB_Am.js} +7 -7
- package/dist/assets/{add-to-wallet-DgdBD8_G-C6LAT582.js → add-to-wallet-DgdBD8_G-vslLOG9x.js} +1 -1
- package/dist/assets/{analytics-BBPxpXjb.js → analytics-DRVsD-is.js} +1 -1
- package/dist/assets/{analyticsHelper-huzmVdCu-BJHBr6dz.js → analyticsHelper-BZApS5V7-B7rpJkUm.js} +1 -1
- package/dist/assets/{analyticsHelper-Bp3QyGtE.js → analyticsHelper-BZQExm6b.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-CRAkJ5eu.js → arrow-south-east-round-PEovUgvH-CRc8KuMa.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-BkJsqyVy.js → auto-transfer-rule-mbafm5D3-D9R5lS7d.js} +1 -1
- package/dist/assets/chartTypes-DcNGo46a-CqMbbGUL.js +1 -0
- package/dist/assets/commonDimensions-C5V1GwCs-CraAZnb_.js +1 -0
- package/dist/assets/{commonTypes-BqXyygFE-CnF1i8TV.js → commonTypes-CGdrM7wg-Dv-NGJZV.js} +1 -1
- package/dist/assets/{constants-CPFJyknY.js → constants-DTOPkqCr.js} +1 -1
- package/dist/assets/{core-CddRDKK5.js → core-D2KcXy_y.js} +2 -2
- package/dist/assets/{dash.all.min-BPpCNIar.js → dash.all.min-BAllcYm-.js} +1 -1
- package/dist/assets/detailCommon-DEXTnYE7-CjqtKJhq.js +38 -0
- package/dist/assets/downloadPdf-Cd1RR1sH-Cvu_thw4.js +1 -0
- package/dist/assets/{empty-OXNqopUa.js → empty-BTyrR5qF.js} +1 -1
- package/dist/assets/{empty-DnP56ICM.js → empty-wMN4Rfol.js} +1 -1
- package/dist/assets/epic-CLSKdGkp.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-DgonOPJx.js → gift-box-Cmt9OgIZ-DP-cJLna.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-CyoR0rrV.js → graphic-no-data-l-DU4J8fDt-D-Fo2zgX.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-D4pGKQmg.js → graphic-no-data-net-burn-l-CzmycA0m-D8edm3HW.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-Bi2WM_Eh.js → handshake-BPg58FML-DJLp3b1-.js} +1 -1
- package/dist/assets/{helper-C6wE3mOs-ygxajmnJ.js → helper-kGYJRbxq-D4mxVura.js} +3 -3
- package/dist/assets/{index-DeqxpWOe.js → index-BHqxLcjt.js} +1 -1
- package/dist/assets/{index-Dw6Tuhsa.js → index-CBio2FUy.js} +1 -1
- package/dist/assets/{index-hMgEheel.js → index-Cpk1UVH8.js} +1 -1
- package/dist/assets/{index-D2KmAsTj.js → index-DH51hTsJ.js} +1 -1
- package/dist/assets/{index-DNn6xiN7.js → index-DJK9rXmh.js} +1 -1
- package/dist/assets/{index-GvAktRSv.js → index-aDDisho3.js} +1 -1
- package/dist/assets/{index-DceSoL0X.js → index-sotzB3Mx.js} +4796 -4800
- package/dist/assets/{lexical-CRAxrDKi.js → lexical-Dj2KAtCD.js} +1 -1
- package/dist/assets/{liveblocks-C3olwiFW.js → liveblocks-DezulwOD.js} +1 -1
- package/dist/assets/{lottie-DHSNlrty.js → lottie-D7_uSTtS.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-QGHkauXd-qPE55nra.js → mapLoadingInProgressToTreeNode-BXVk4dIp-BuiNw2vq.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-IAuTtuif-w6n_R73J.js → mapSectionWithAcOnlyToTreeNode-oqbfssc7-BaqyGbt-.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-BA1RwyQy-BaPbOaZb.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-B8pIGqbO-BJk8DWTQ.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-D-yDCyLa-BApfBpwP.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BGId2YAo-D_Czi_I6.js +1 -0
- package/dist/assets/{mui-B9ZZxqGv.js → mui-CWqpJBOf.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-BAeGzYhC.js → page-detail-CWX5S47F-B2tDMGkf.js} +1 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-HFnGkMgT.js +4 -0
- package/dist/assets/{radio-default-CiSgisfh-BTgddVFO.js → radio-default-CiSgisfh-0Atq9vXH.js} +1 -1
- package/dist/assets/{react-C-YPBd7x.js → react-4PtfPhor.js} +3 -3
- package/dist/assets/{react-dF0Ep-lR.js → react-Bhq0KCUo.js} +1 -1
- package/dist/assets/{react-ClcmWYZP.js → react-BxwoRjBq.js} +1 -1
- package/dist/assets/{react-BmFTzqBR.js → react-By_pdhPa.js} +1 -1
- package/dist/assets/{react-UG1Schov.js → react-CPTbErTv.js} +1 -1
- package/dist/assets/{react-BNxsrY_J.js → react-CSZP1bUd.js} +1 -1
- package/dist/assets/{react-B6URfXSC.js → react-CjLH0WcG.js} +1 -1
- package/dist/assets/{react-DPaJOqrg.js → react-k1MNcgFc.js} +2 -2
- package/dist/assets/{recharts-Df6P8LTk.js → recharts-H7gIkfSf.js} +20 -20
- package/dist/assets/{sentry-DSwgNZrO.js → sentry-2bqpslFP.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DfJyH00V.js → shield-DOlUxcFf-BxoXXGpt.js} +1 -1
- package/dist/assets/toCOABalancesWithID-Ckyq_c20-DzmyGaV3.js +1 -0
- package/dist/assets/toChartData-N0pkfSXY-BNdgZ-va.js +1 -0
- package/dist/assets/{uploadAttachment-4DeHQ4oS-Bw7xJmib.js → uploadAttachment-CPTMCWWz-BHUe9KYn.js} +33 -33
- package/dist/assets/uploadReceipts-Dge0cNF1-CAzr24hn.js +1 -0
- package/dist/assets/{url-CnM3nym8.js → url-BnPWfZoh.js} +1 -1
- package/dist/assets/{url-BRZkzhoD.js → url-FABckJBr.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-BgMcVZoL.js → useLongPress-GCK2COYQ-isRXDDp5.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-DuwzCwM7.js → usp-line-BBd1wKwW-C5jzPmNs.js} +1 -1
- package/dist/assets/{utils-bhjg_GlW.js → utils-Bfvb8rvn.js} +1 -1
- package/dist/assets/zeni-epic-state-DM-Ak8Gv.js +151 -0
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AccountInfoPage-DiLfCEmp-DO4D-Akp.js +0 -18
- package/dist/assets/AccountRow-DHebunB5-DIYXQfGx.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-DsW1gOAp-MwS07L6u.js +0 -6
- package/dist/assets/AppBasePage-DEEwGCyl-CJQRcs0Q.js +0 -71
- package/dist/assets/AppDrawerContent-BV68KVaK-DsuGSV0L.js +0 -92
- package/dist/assets/ApprovalRulesSettingsPage-rYk3cmVs-Bk4KgAtZ.js +0 -47
- package/dist/assets/BalancesInsightWithToolTip-e99DEARd-B-O4Ljlc.js +0 -38
- package/dist/assets/BillDetailPage-BHMeLrkf-DfOpYdLq.js +0 -266
- package/dist/assets/BillsBulkReviewDrawerPage-mrZng-LH-CgLPtPGy.js +0 -1
- package/dist/assets/ChargeCardPromoPage-DOLaaGqu-DsV8VR1J.js +0 -222
- package/dist/assets/ChargeCardSetupPage-BU9RvMXY-Dj9m6ZmP.js +0 -36
- package/dist/assets/ChargeCardStatementsPage-DlrKo_GJ-BRM2z9cD.js +0 -60
- package/dist/assets/CollapsableReportTable-B7wBJa-J-CFRGpr0Y.js +0 -2941
- package/dist/assets/ConfettiBurst-JdjFQWmA-B1zUAlBC.js +0 -1
- package/dist/assets/CurrencySelectField-C9U52o8Z-DH90cYim.js +0 -139
- package/dist/assets/CustomerOnboardingContainerPage-BVEjcOzz-Tgi7ne-F.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-BxvN2Q7E-B4zOAzF_.js +0 -66
- package/dist/assets/DashboardSidebarBackgroundAnimation-uX3QCu5p-mHJahdDI.js +0 -12
- package/dist/assets/DepositAccTransactionListPage-BJ8sXbmG-CMXvXJC1.js +0 -66
- package/dist/assets/DownloadOverlay-uRpW9ezf-jNXoSS7J.js +0 -439
- package/dist/assets/EditPeoplePage-BBrsqLJc-DyJHgyzZ.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-D-HncluE-CUs0afyw.js +0 -865
- package/dist/assets/EntityDetailPage-X5BG-4An-7aKQ5Pgw.js +0 -18
- package/dist/assets/ExpenseAutomationPage-BWBWJraB-BcLoThsR.js +0 -3001
- package/dist/assets/GlobalReviewListPage-BXhEk4c0-BVTm7Ky3.js +0 -291
- package/dist/assets/InsightsSection-CbrrmEg4-D4vQ_6my.js +0 -27
- package/dist/assets/IntegrationsSettingsPage-Bw4BviF3-DBDc8BdY.js +0 -57
- package/dist/assets/InternationalWireVerificationPage-CmibXgZP-Dk0__zsA.js +0 -65
- package/dist/assets/InvitePeoplePage-CUIx67tI-BuLgC01P.js +0 -12
- package/dist/assets/InvoiceUploadSection-SDbpMsYc-Dm64G91F.js +0 -140
- package/dist/assets/LabeledAddressValueField-BJl_17nw-BoellP6H.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-CTjsNnfG-C03py6Ms.js +0 -16
- package/dist/assets/LabeledDocumentField-De9s68TP-Cri5KHGX.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-Dy4sKbHt-B82hYqdR.js +0 -59
- package/dist/assets/LinkJETransactionPage-CflqbXq0-DXYSk1UI.js +0 -98
- package/dist/assets/MagicLinkACHDetailsPage-BT5yNVLG-ChUzosgW.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BurEs9tm-DDw6dGa9.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-CvvBuPtn-Br57d6dJ.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-Bu2WgYDU-C_NzscTh.js +0 -31
- package/dist/assets/MailingDetailsSection-CnGInDUg-DZA0H6jP.js +0 -21
- package/dist/assets/MyPendingActivationChargeCardListPage-CmSDPRHT-DaaZsLCw.js +0 -6
- package/dist/assets/MyProfileSettingsPage-1FPtn1ea-C9umNstC.js +0 -85
- package/dist/assets/NavBarWithPicker-B04p6hvh-BcKmzJ24.js +0 -30
- package/dist/assets/NavigationDots-C2ylmmp9-BUZFmr7S.js +0 -15
- package/dist/assets/NotFoundPage-zeHT1nzY-c1pIrXd2.js +0 -46
- package/dist/assets/NotificationSettingsPage-ClXPKcgz-Cua8aSKu.js +0 -163
- package/dist/assets/NotificationsListConfig-BQqh5bzx-CFdZZXGY.js +0 -1
- package/dist/assets/NotificationsPage-DsWTVVJb-CubnyrBq.js +0 -685
- package/dist/assets/OpExByVendorPage-BjNi44e6-DOiReLBc.js +0 -100
- package/dist/assets/PeoplePage-B6QMmZoF-D2QgJp28.js +0 -727
- package/dist/assets/QBOSetupSection-CzvyO3jT-MFHCmvJY.js +0 -79
- package/dist/assets/ReimbursementDetailPage-DgzoYr-9-CVLHufeF.js +0 -314
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DH5fjpfk-Cr_SYXyq.js +0 -1
- package/dist/assets/ReportTableViewSelector-Cot8YlVL-BAZ1GdJN.js +0 -151
- package/dist/assets/ReportsPage-C_7EbeMB-O7cnUjzc.js +0 -237
- package/dist/assets/ScheduleSequenceTable-CpShO1ua-Dsb6r5kr.js +0 -324
- package/dist/assets/SignIn-BQ4q4gDh-CzzmiuXu.js +0 -491
- package/dist/assets/SignInScreen-DZyTlhxL.js +0 -1
- package/dist/assets/SpendManagementListViewPage-B_sb3Dfh-dqWZldlf.js +0 -134
- package/dist/assets/StatementItem-uBlcLNGa-C68iqcbF.js +0 -31
- package/dist/assets/StatementsPage-wmfWDQrp-DZo3jcor.js +0 -58
- package/dist/assets/SubTabSwitcher-JZ9r8Gvy-CmdEzTPr.js +0 -58
- package/dist/assets/SummaryCard-CzpKllZ9-BcAcs1DO.js +0 -1
- package/dist/assets/TaskManagementPage-DhdfjPpg-Bz7Od6O0.js +0 -508
- package/dist/assets/TimeRangeSwitcher-ejYmSzzU-BGF2Hlek.js +0 -64
- package/dist/assets/TimeframeSwitcher-B1rtSeeP-s5XP-zq2.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-BIe0KGCe-CezpaCXC.js +0 -53
- package/dist/assets/TransactionDetailPage-BXQ5ksBH-YOlZ51Uf.js +0 -903
- package/dist/assets/TransactionList-BWV8LDN--T7E1cgUU.js +0 -153
- package/dist/assets/TransactionListPage-Duf7rjbN-xYqf2OTU.js +0 -35
- package/dist/assets/TreasuryOverviewPage-CwoPszbZ-2TJ6YJVy.js +0 -725
- package/dist/assets/TrendWithTransactions-CmQO_iYM-CWBGfczA.js +0 -116
- package/dist/assets/UploadAdditionalDocumentOverlay-CF3ZYMeP-BxK_8i6B.js +0 -38
- package/dist/assets/VendorACHDetailsPage-C4ZWGPWZ-DEvx49Vu.js +0 -1
- package/dist/assets/VendorDetailPage-BaCVjTbp-CB0Ap7RS.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-D7BmBMH9-CzIkSVsO.js +0 -1
- package/dist/assets/VendorFirstReviewPage-EuDBTkMb-5uGJMDW8.js +0 -730
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BlAFp-w1-Ch6YFnOD.js +0 -1
- package/dist/assets/ZeniAccountNavBarPieces-DpCkEpt8-DL9r0gov.js +0 -14
- package/dist/assets/ZeniCopyright-CHJRCEOe-C6byioU4.js +0 -1
- package/dist/assets/chartTypes-Bka0fHvt-LIfMG0zS.js +0 -1
- package/dist/assets/commonDimensions-CL818jc5-C1bPf58V.js +0 -1
- package/dist/assets/downloadPdf-DAxy7KUU-_uW3L53O.js +0 -1
- package/dist/assets/epic-B0RIAA2R.js +0 -2
- package/dist/assets/mapSpacerToTreeNode-CsVNH3Xd-QYfiumtX.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CCLjlNlu-MJgc9UaW.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DliXXFXC-BfnSqJsP.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CqDxaCav-BL7jrrEI.js +0 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-BJi_hKr3.js +0 -3
- package/dist/assets/toCOABalancesWithID-D45JW5mT-zLfAfLgo.js +0 -1
- package/dist/assets/toChartData-C9xZuC9A-cKZFGcPF.js +0 -1
- package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-ByyuyA7j.js +0 -1
- package/dist/assets/uploadReceipts-Dge0cNF1-COkmL3Gy.js +0 -1
- package/dist/assets/zeni-epic-state-BKQAT3eK.js +0 -151
|
@@ -1,2941 +0,0 @@
|
|
|
1
|
-
import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,Q as I,aG as Sn,aA as Wo,dr as $n,ds as Io,b as W,u as w,dt as ei,du as Vt,dv as Dt,ce as Gt,dw as Rt,x as D,d5 as Et,ay as ti,ab as rt,cq as Te,bR as K,L as Mo,y as le,aX as A,b1 as ni,bT as ii,ap as Me,dx as Oo,dy as ae,cd as Ht,c3 as vn,ak as No,ao as ke,dz as at,dA as Oe,dB as st,an as S,cl as ne,dC as Po,w as Kt,dD as Ze,dE as _n,dF as Ln,dG as zo,dH as Fo,dI as To,bb as oi,aY as V,b8 as Vo,cD as Yt,cC as Ut,dJ as Do,b9 as ri,cG as ai,bV as Go,dK as Ro,dL as An,dM as Bn,dN as Eo,dO as Ho,bX as Ko,bM as Yo,dP as Uo}from"./index-DceSoL0X.js";import{n as a,c as O}from"./mui-B9ZZxqGv.js";import{a as z,P as Zo}from"./sentry-DSwgNZrO.js";import{FZ as jt,FL as Zt,Gf as qt,Gg as Ve,Gh as Xt,Gi as Jt,Gj as Qt,Gk as en,Gl as li,Gm as qo,FN as De,bm as Wn,bg as si,Gn as ci,Go as Xo,bo as Jo,F_ as di}from"./zeni-epic-state-BKQAT3eK.js";import{N as ct,D as Qo,R as er,B as je,u as v}from"./AccountRow-DHebunB5-DIYXQfGx.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]="5493fa1f-c3ca-48cf-84e6-1f33f0abd893",e._sentryDebugIdIdentifier="sentry-dbid-5493fa1f-c3ca-48cf-84e6-1f33f0abd893")}catch{}})();function Z(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 J(e){return U("0,0",e?.forecast)}function hi(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 Lt(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 de(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 ui(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 pi(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 Ge=(e,n,i)=>{const{startDate:o,balanceType:r}=n,{dateFormat:{visual:l}}=W.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${jt(o,l.MMMYYYYFormat,e)}`:Ct(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${W.getLocalizedStrings().reports.quarterPrefix}${jt(o,l.QYYYYformat,e)}`:Ct(r,i);case"year":return r==="default"||r==="default_with_percent"?`${jt(o,l.YYYYformat,e)}`:Ct(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function Ct(e,n){return W.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const Ng=(e,n,i)=>{const o=n.length==0?e:`${e}_${n.join("_")}`;return i!=null&&i.trim().length>0?`${o}_${i}`:`${o}_${Bo(10)}`},tr=a.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex: 1 1 auto;
|
|
4
|
-
width: 100%;
|
|
5
|
-
height: ${e=>e.heightValue}px;
|
|
6
|
-
justify-content: flex-start;
|
|
7
|
-
align-items: center;
|
|
8
|
-
padding-right: ${v.wrapperPadding}px;
|
|
9
|
-
`,nr=a.div`
|
|
10
|
-
cursor: default;
|
|
11
|
-
user-select: none;
|
|
12
|
-
display: flex;
|
|
13
|
-
flex: 1 1 auto;
|
|
14
|
-
flex-flow: row;
|
|
15
|
-
justify-content: flex-start;
|
|
16
|
-
align-items: center;
|
|
17
|
-
`,ir=a.div`
|
|
18
|
-
display: flex;
|
|
19
|
-
justify-content: flex-start;
|
|
20
|
-
align-items: center;
|
|
21
|
-
gap: ${c.sp2};
|
|
22
|
-
width: ${v.leftHeadingWidth}px;
|
|
23
|
-
`,or=a.div`
|
|
24
|
-
display: flex;
|
|
25
|
-
flex: 1 1 auto;
|
|
26
|
-
justify-content: flex-end;
|
|
27
|
-
align-items: center;
|
|
28
|
-
gap: ${c.sp4};
|
|
29
|
-
`,rr=a(ne)`
|
|
30
|
-
width: ${v.bankBalanceWidth}px;
|
|
31
|
-
min-width: ${v.bankBalanceWidth}px;
|
|
32
|
-
text-align: right;
|
|
33
|
-
`,ar=a(ne)`
|
|
34
|
-
width: ${v.clearedBalanceWidth}px;
|
|
35
|
-
min-width: ${v.clearedBalanceWidth}px;
|
|
36
|
-
text-align: right;
|
|
37
|
-
`,lr=a(ne)`
|
|
38
|
-
width: ${v.statusWidth}px;
|
|
39
|
-
min-width: ${v.statusWidth}px;
|
|
40
|
-
`,sr=a.div`
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-shrink: 0;
|
|
43
|
-
gap: ${c.sp3};
|
|
44
|
-
width: ${v.varianceWidth}px;
|
|
45
|
-
min-width: ${v.varianceWidth}px;
|
|
46
|
-
flex-direction: row;
|
|
47
|
-
justify-content: flex-end;
|
|
48
|
-
align-items: center;
|
|
49
|
-
text-align: center;
|
|
50
|
-
`,cr=a.div`
|
|
51
|
-
width: ${v.variancePercentageWidth}px;
|
|
52
|
-
min-width: ${v.variancePercentageWidth}px;
|
|
53
|
-
text-align: right;
|
|
54
|
-
margin-right: ${c.sp2};
|
|
55
|
-
`,dr=a.div`
|
|
56
|
-
display: flex;
|
|
57
|
-
justify-content: center;
|
|
58
|
-
align-items: center;
|
|
59
|
-
`,hr=a.div`
|
|
60
|
-
display: flex;
|
|
61
|
-
justify-content: center;
|
|
62
|
-
align-items: center;
|
|
63
|
-
`;function ur({height:e}){const n=I();return t.jsx(tr,{heightValue:e,windowSize:n,children:t.jsxs(nr,{children:[t.jsxs(ir,{children:[t.jsx(dr,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:c.sp4,maxWidth:c.sp4,width:c.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(hr,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:c.sp4,width:v.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(or,{children:[t.jsx(rr,{children:t.jsx(ae,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:v.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(ar,{children:t.jsx(ae,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:v.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(sr,{children:[t.jsx(ae,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:v.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(cr,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:c.sp4,width:v.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(lr,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:c.sp4,width:v.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const pr=a.div`
|
|
64
|
-
display: flex;
|
|
65
|
-
flex-direction: row;
|
|
66
|
-
height: ${e=>e.heightValue}px;
|
|
67
|
-
padding-right: ${v.wrapperPadding}px;
|
|
68
|
-
`;function gr({height:e}){return t.jsx(pr,{heightValue:e})}const fr=a.div`
|
|
69
|
-
user-select: none;
|
|
70
|
-
display: flex;
|
|
71
|
-
width: 100%;
|
|
72
|
-
height: ${e=>e.height}px;
|
|
73
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
74
|
-
flex-direction: column;
|
|
75
|
-
padding-right: ${v.wrapperPadding}px;
|
|
76
|
-
`,xr=a.div`
|
|
77
|
-
flex: 1 1 auto;
|
|
78
|
-
display: flex;
|
|
79
|
-
align-items: center;
|
|
80
|
-
height: ${c.sp8};
|
|
81
|
-
justify-content: flex-start;
|
|
82
|
-
align-items: center;
|
|
83
|
-
`,mr=a.div`
|
|
84
|
-
display: flex;
|
|
85
|
-
flex-direction: row;
|
|
86
|
-
justify-content: flex-end;
|
|
87
|
-
width: ${v.leftHeadingWidth}px;
|
|
88
|
-
`,wr=a.div`
|
|
89
|
-
display: flex;
|
|
90
|
-
flex: 1 1 auto;
|
|
91
|
-
flex-direction: row;
|
|
92
|
-
justify-content: flex-end;
|
|
93
|
-
`,yr=a(ri)`
|
|
94
|
-
user-select: none;
|
|
95
|
-
color: ${e=>e.theme.colors.primary};
|
|
96
|
-
width: ${v.leftTimeframeWidth}px;
|
|
97
|
-
min-width: ${v.leftTimeframeWidth}px;
|
|
98
|
-
flex: 1 1 auto;
|
|
99
|
-
`,br=a(S)`
|
|
100
|
-
user-select: none;
|
|
101
|
-
`,kr=a.div`
|
|
102
|
-
max-height: ${c.sp8};
|
|
103
|
-
min-height: ${c.sp8};
|
|
104
|
-
min-width: ${e=>e.widthValue}px;
|
|
105
|
-
max-width: ${e=>e.widthValue}px;
|
|
106
|
-
display: flex;
|
|
107
|
-
justify-content: center;
|
|
108
|
-
align-items: center;
|
|
109
|
-
background-color: ${e=>e.theme.colors.background};
|
|
110
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
111
|
-
border-radius: ${c.sp2};
|
|
112
|
-
color: ${e=>e.theme.colors.primary};
|
|
113
|
-
margin-right: ${e=>e.marginRight===!0?c.sp2:c.sp0};
|
|
114
|
-
`,jr=a.div`
|
|
115
|
-
width: ${v.bankBalanceWidth}px;
|
|
116
|
-
`,Cr=a.div`
|
|
117
|
-
width: ${v.bankBalanceRightTimeframeWidth}px;
|
|
118
|
-
`,Sr=a.div`
|
|
119
|
-
width: ${v.clearedBalanceWidth}px;
|
|
120
|
-
margin-right: ${v.tickLeftMargin}px;
|
|
121
|
-
`,$r=a.div`
|
|
122
|
-
width: ${v.varianceTimeframeWidth}px;
|
|
123
|
-
align-self: flex-end;
|
|
124
|
-
`,vr=a.div`
|
|
125
|
-
width: ${v.spacerLineWidth}px;
|
|
126
|
-
`,_r=a.div`
|
|
127
|
-
width: ${v.statusWidth}px;
|
|
128
|
-
`,qe=({title:e,type:n})=>t.jsx(kr,{widthValue:v[n],children:t.jsx(br,{children:e})});function Lr({sectionTitle:e,height:n,isLoading:i}){const o=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(fr,{height:n,children:t.jsxs(xr,{children:[t.jsx(mr,{children:t.jsx(ae,{isLoading:i,customStyle:{height:c.sp4,width:v.leftLabelWidth},children:t.jsx(yr,{"data-testid":x("account-recon-section-title",e),children:e})})}),t.jsxs(wr,{children:[t.jsx(jr,{children:t.jsx(ae,{isLoading:i,customStyle:{height:c.sp7,width:v.bankBalanceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(qe,{title:o.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(Cr,{}),t.jsx(Sr,{children:t.jsx(ae,{isLoading:i,customStyle:{height:c.sp7,width:v.clearedBalanceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(qe,{title:o.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx($r,{children:t.jsx(ae,{isLoading:i,customStyle:{height:c.sp7,width:v.varianceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(qe,{title:o.variance,type:"varianceTimeframeWidth"})})}),t.jsx(vr,{}),t.jsx(_r,{children:t.jsx(ae,{isLoading:i,customStyle:{height:c.sp7,width:v.statusTimeframeWidth,borderRadius:c.sp2},children:t.jsx(qe,{title:o.status,type:"statusTimeframeWidth"})})})]})]})})}const Ar=a.div`
|
|
129
|
-
display: flex;
|
|
130
|
-
flex-direction: row;
|
|
131
|
-
height: ${e=>e.heightValue}px;
|
|
132
|
-
align-items: center;
|
|
133
|
-
padding-right: ${v.wrapperPadding}px;
|
|
134
|
-
`,Br=a(ri)`
|
|
135
|
-
user-select: none;
|
|
136
|
-
color: ${e=>e.theme.colors.primary};
|
|
137
|
-
`;function Wr({height:e,title:n}){return t.jsx(Ar,{heightValue:e,children:t.jsx(Br,{"data-testid":x("account-recon-section-title",n),children:n})})}const Ir=a.div`
|
|
138
|
-
display: flex;
|
|
139
|
-
flex: 1 1 auto;
|
|
140
|
-
width: 100%;
|
|
141
|
-
height: ${e=>e.heightValue}px;
|
|
142
|
-
justify-content: flex-start;
|
|
143
|
-
align-items: center;
|
|
144
|
-
padding-right: ${v.wrapperPadding}px;
|
|
145
|
-
`,Mr=a.div`
|
|
146
|
-
cursor: default;
|
|
147
|
-
user-select: none;
|
|
148
|
-
display: flex;
|
|
149
|
-
flex: 1 1 auto;
|
|
150
|
-
flex-flow: row;
|
|
151
|
-
justify-content: flex-start;
|
|
152
|
-
align-items: center;
|
|
153
|
-
color: ${e=>e.theme.colors.primary};
|
|
154
|
-
`,Or=a.div`
|
|
155
|
-
display: flex;
|
|
156
|
-
flex: 1 1 auto;
|
|
157
|
-
justify-content: flex-start;
|
|
158
|
-
align-items: center;
|
|
159
|
-
gap: ${c.sp2};
|
|
160
|
-
`,Nr=a(ne)`
|
|
161
|
-
user-select: none;
|
|
162
|
-
clear: both;
|
|
163
|
-
display: inline-block;
|
|
164
|
-
overflow: hidden;
|
|
165
|
-
white-space: nowrap;
|
|
166
|
-
text-overflow: ellipsis;
|
|
167
|
-
text-align: left;
|
|
168
|
-
color: ${e=>e.theme.colors.primary};
|
|
169
|
-
width: ${v.leftLabelWidth}px;
|
|
170
|
-
min-width: ${v.leftLabelWidth}px;
|
|
171
|
-
`,Pr=a.div`
|
|
172
|
-
display: flex;
|
|
173
|
-
flex: 1 1 auto;
|
|
174
|
-
justify-content: flex-end;
|
|
175
|
-
align-items: center;
|
|
176
|
-
`,zr=a(ne)`
|
|
177
|
-
width: ${v.bankBalanceWidth}px;
|
|
178
|
-
min-width: ${v.bankBalanceWidth}px;
|
|
179
|
-
text-align: right;
|
|
180
|
-
`,Fr=a(ne)`
|
|
181
|
-
width: ${v.clearedBalanceWidth}px;
|
|
182
|
-
min-width: ${v.clearedBalanceWidth}px;
|
|
183
|
-
text-align: right;
|
|
184
|
-
margin-left: ${v.tickLeftMargin}px;
|
|
185
|
-
`,Tr=a(ne)`
|
|
186
|
-
width: ${v.statusWidth}px;
|
|
187
|
-
min-width: ${v.statusWidth}px;
|
|
188
|
-
height: 1px;
|
|
189
|
-
`,Vr=a.div`
|
|
190
|
-
display: flex;
|
|
191
|
-
flex-direction: row;
|
|
192
|
-
min-width: ${v.spacerLineWidth}px;
|
|
193
|
-
width: ${v.spacerLineWidth}px;
|
|
194
|
-
align-items: center;
|
|
195
|
-
`,Dr=a.div`
|
|
196
|
-
width: 1px;
|
|
197
|
-
margin-left: ${c.sp3};
|
|
198
|
-
height: ${e=>e.heightValue}px;
|
|
199
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
200
|
-
`,Gr=a.div`
|
|
201
|
-
display: flex;
|
|
202
|
-
flex-shrink: 0;
|
|
203
|
-
width: ${v.varianceTimeframeWidth}px;
|
|
204
|
-
min-width: ${v.varianceTimeframeWidth}px;
|
|
205
|
-
flex-direction: row;
|
|
206
|
-
justify-content: flex-end;
|
|
207
|
-
align-items: center;
|
|
208
|
-
text-align: center;
|
|
209
|
-
margin-left: ${v.tickLeftMargin}px;
|
|
210
|
-
`,Rr=a(ne)`
|
|
211
|
-
border-radius: ${c.sp1};
|
|
212
|
-
color: ${e=>e.textColor.hex()};
|
|
213
|
-
min-width: ${v.varianceNumberWidth}px;
|
|
214
|
-
text-align: right;
|
|
215
|
-
margin-right: ${c.sp2};
|
|
216
|
-
`,Er=a(ne)`
|
|
217
|
-
border-radius: ${c.sp1};
|
|
218
|
-
padding: ${c.sp0} ${c.sp1};
|
|
219
|
-
justify-content: center;
|
|
220
|
-
text-align: center;
|
|
221
|
-
color: ${e=>e.textColor.hex()};
|
|
222
|
-
background-color: ${e=>e.bgColor.hex()};
|
|
223
|
-
min-width: ${v.variancePercentageWidth}px;
|
|
224
|
-
`,{expenseAutomation:{accountRecon:{reconciliation:{headers:In}}},common:{strings:{percentage:Hr,hyphen:lt}}}=W.getLocalizedStrings();function Kr({height:e,sectionData:n}){const i=I(),o=n.totalVariance,r=n.totalVariancePercentage,l=le();return t.jsx(Ir,{"data-testid":x("total-row-root-container"),heightValue:e,windowSize:i,children:t.jsxs(Mr,{isClickable:!1,"data-testid":x("total-row-container"),children:[t.jsxs(Or,{children:[t.jsx(je,{firstLetter:In.section[n.sectionId].subTitle.charAt(0),color:new A(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(Nr,{children:In.section[n.sectionId].subTitle})]}),t.jsxs(Pr,{children:[t.jsx(zr,{children:n.totalBankBalance!=null?U("0,0",n.totalBankBalance):lt}),t.jsx(Fr,{children:n.totalClearedBalance!=null?U("0,0",n.totalClearedBalance):lt}),t.jsx(Yr,{variance:o,variancePercentage:r}),t.jsx(Vr,{children:t.jsx(Dr,{heightValue:e})}),t.jsx(Tr,{})]})]})})}const Yr=({variance:e,variancePercentage:n})=>{const i=le(),o=new A(i.colors.hero),r=new A(i.colors.hero),l=new A(i.colors.background),s=e!=null&&e.amount===0?"0%":n!=null?n===0?"0%":`${n.toFixed(2)}${Hr}`:lt;return t.jsxs(Gr,{children:[t.jsx(Rr,{textColor:o,children:e!=null?U("0,0",e):lt}),t.jsx(Er,{textColor:r,bgColor:l,children:s})]})};function Ur(){return t.jsx(gr,{height:ct("section")})}function Zr(){return t.jsx(ur,{height:ct("loading_in_progress")})}function qr(e,n){if(e.element.kind!=="timeframe_headers")return null;const i=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,o=e.element.data,r=o.accountIDs.length===0;return t.jsx(Lr,{sectionTitle:i.section[o.sectionId].title,isLoading:r,isSticky:n,height:ct("timeframe_headers")})}const Xr=(e,n,i)=>{const o=e.element.data;return t.jsx(Kr,{isSticky:i,height:n,sectionData:o})},Jr=(e,n)=>{const i=e.element.data,o=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(Wr,{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(er,{height:n,accountRecon:o,isLastRow:i,isSelectedRow:r,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:c.sp4,balanceHeightInPx:w[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:c.sp4,balanceLeftMarginInPx:w[4],titleWidth:new D(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128};function ea(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"class_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 ta(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":case"class_headers":return!1;case"class":return!(n==="detailed"&&i>0);case"checkbox_and_name_only":return!0;default:return!1}}const he=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}},gi={emptyLeftContainer:new D(w[0],w[5])},na=a(S)`
|
|
225
|
-
margin-left: ${e=>!e.hasChildren&&e.depth!==0?c.sp3:c.sp2};
|
|
226
|
-
overflow: hidden;
|
|
227
|
-
white-space: nowrap;
|
|
228
|
-
text-overflow: ellipsis;
|
|
229
|
-
width: ${e=>k.titleWidth.value(e.windowSize)-(e.depth+1)*45}px;
|
|
230
|
-
`,ia=a.div`
|
|
231
|
-
display: flex;
|
|
232
|
-
height: ${c.sp6};
|
|
233
|
-
align-items: center;
|
|
234
|
-
`,oa=a.div`
|
|
235
|
-
display: flex;
|
|
236
|
-
height: ${c.sp6};
|
|
237
|
-
align-items: center;
|
|
238
|
-
`,ra=a.div`
|
|
239
|
-
height: ${c.sp6};
|
|
240
|
-
width: ${c.sp3};
|
|
241
|
-
`,aa=a.div`
|
|
242
|
-
width: 14px;
|
|
243
|
-
height: ${c.sp1};
|
|
244
|
-
`,la=a.div`
|
|
245
|
-
width: ${c.sp2};
|
|
246
|
-
height: ${c.sp1};
|
|
247
|
-
`,fi=a.div`
|
|
248
|
-
width: ${e=>gi.emptyLeftContainer.valuePx(e.windowSize)};
|
|
249
|
-
height: ${c.sp1};
|
|
250
|
-
`,Ne=a.div`
|
|
251
|
-
display: flex;
|
|
252
|
-
`,sa=({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(Ln,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Oe,{},o):t.jsx(st,{}):null,r.depth>=1?t.jsx(Ln,{depth:r.depth}):null]},i+o)}):null}),xi=({ancestorMetadata:e,depth:n,name:i})=>{const o=I();return n===0?e[n].hasChildren===!1?t.jsx(fi,{windowSize:o}):t.jsxs(Ne,{children:[t.jsx(Ze,{depth:n}),t.jsx(Oe,{}),t.jsx(Ze,{depth:n+1})]}):t.jsxs(t.Fragment,{children:[[...Array(n+1).keys()].map(r=>{const l=e[r],s=r!==n?e[r+1]:void 0;return t.jsxs(Ne,{children:[l.depth===0?t.jsx(Ze,{depth:l.depth}):null,r>=2||r===1&&(n===r?l.hasChildren===!0:s!=null&&!s.isLastNode)?n===1?t.jsx(_n,{index:1}):t.jsx(_n,{index:2}):null,(n===r?l.hasChildren===!0:s!=null&&!s.isLastNode)?t.jsx(Oe,{},r):t.jsx(st,{}),t.jsx(Ze,{depth:l.depth+1})]},i+r)}),n===1&&e[n].hasChildren!=!0?t.jsx(la,{}):null]})},mi=({ancestorMetadata:e,depth:n,name:i})=>n===0?t.jsx(aa,{}):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(at,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Oe,{},o):t.jsx(st,{}),t.jsx(at,{depth:r!=null?r.depth+1:0})]},i+o)})}),ca=({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(at,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Oe,{},o):t.jsx(st,{}):null,r.depth>=1?t.jsx(at,{depth:r.depth}):null]},i+o)}):null}),da=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})=>{let d=t.jsx(ra,{});return e===0&&r&&(d=t.jsx(Ro,{collapsed:l,onIconClick:s})),e>0&&(r&&!o&&n&&(d=t.jsx(An,{collapsed:l,onIconClick:s})),i&&o&&n&&(d=t.jsx(Bn,{})),i&&o&&!n&&(d=t.jsx(Eo,{})),r&&o&&!n&&(d=t.jsx(Ho,{collapsed:l,onIconClick:s})),r&&o&&n&&(d=t.jsx(An,{collapsed:l,onIconClick:s})),n&&i&&(d=t.jsx(Bn,{}))),d},ha=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})=>t.jsx(oa,{children:t.jsx(da,{depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})});function tn(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const i=I();return t.jsxs(ia,{children:[e.classDepth!=null?t.jsx(xi,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(fi,{windowSize:i}):null,t.jsx(ca,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(ha,{...e}),t.jsx(na,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:i,title:n,children:n})]})}const E={balanceHeight:c.sp4,balanceWidth:"166px",balanceLeftMargin:c.sp4,titleWidth:new D(200,325,405),nameLogoWidth:new D(w[4],w[4]),nameLogoHeight:new D(w[4],w[4])};function ua(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 pa(){return!0}const Xe=[new D(w[4],w[8]),new D(44,76),new D(69,102),new D(93,124),new D(113,143)],ga=a.div`
|
|
253
|
-
display: flex;
|
|
254
|
-
flex: 1 1 auto;
|
|
255
|
-
max-height: 1px;
|
|
256
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
257
|
-
`,fa=a.div`
|
|
258
|
-
display: flex;
|
|
259
|
-
flex: 1 1 auto;
|
|
260
|
-
flex-flow: row;
|
|
261
|
-
justify-content: flex-start;
|
|
262
|
-
align-items: center;
|
|
263
|
-
`,xa=a.div`
|
|
264
|
-
display: flex;
|
|
265
|
-
flex-direction: row;
|
|
266
|
-
flex-shrink: 2;
|
|
267
|
-
flex-grow: 1;
|
|
268
|
-
align-items: center;
|
|
269
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
270
|
-
width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
271
|
-
max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
272
|
-
${({isSticky:e})=>e?O`
|
|
273
|
-
position: -webkit-sticky;
|
|
274
|
-
position: sticky;
|
|
275
|
-
top: ${c.sp0};
|
|
276
|
-
left: ${c.sp0};
|
|
277
|
-
`:null}
|
|
278
|
-
`,ma=a.div`
|
|
279
|
-
width: ${e=>e.noMarginForEntity?Xe[e.nestingLevel].value(e.windowSize)-w[5]:Xe[e.nestingLevel].value(e.windowSize)}px;
|
|
280
|
-
max-width: ${e=>e.noMarginForEntity?Xe[e.nestingLevel].value(e.windowSize)-w[5]:Xe[e.nestingLevel].value(e.windowSize)}px;
|
|
281
|
-
height: 1px;
|
|
282
|
-
`,wa=a.div`
|
|
283
|
-
display: flex;
|
|
284
|
-
flex: 1 1 auto;
|
|
285
|
-
max-height: 1px;
|
|
286
|
-
height: 1px;
|
|
287
|
-
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
288
|
-
`,ya=a.div`
|
|
289
|
-
display: flex;
|
|
290
|
-
flex: 1 1 auto;
|
|
291
|
-
max-height: 1px;
|
|
292
|
-
height: 1px;
|
|
293
|
-
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
294
|
-
`,Mn=e=>{const n=I(),i=le();return t.jsxs(fa,{"data-testid":x("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(xa,{windowSize:n,isSticky:e.isSticky,"data-testid":x("sub-entity-name-container","vendor_row_separator"),children:[t.jsx(ma,{"data-testid":x("sub-entity-empty-container","vendor_row_separator"),nestingLevel:e.nestingLevel,noMarginForEntity:e.noMarginForEntity,windowSize:n}),t.jsx(wa,{"data-testid":x("sub-entity-name-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(ya,{"data-testid":x("sub-entity-remaining-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function At({kind:e,isScrolling:n,subEntityProps:i}){switch(e){case"vendor_row_separator":return t.jsx(Mn,{nestingLevel:i?.nestingLevel??0,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!1,noMarginForEntity:i?.noMarginForEntity??!0});case"end_row_separator":return t.jsx(ga,{"data-testid":x("end-row-separator",e),isScrolling:n});case"subtotal_row_separator":return t.jsx(Mn,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,noMarginForEntity:i?.noMarginForEntity??!1})}}const wi=a.div`
|
|
295
|
-
display: flex;
|
|
296
|
-
flex: 1 1 auto;
|
|
297
|
-
width: fit-content;
|
|
298
|
-
min-width: 100%;
|
|
299
|
-
flex-direction: column;
|
|
300
|
-
height: ${e=>e.containerHeight}px;
|
|
301
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
302
|
-
`,yi=a.div`
|
|
303
|
-
user-select: none;
|
|
304
|
-
display: flex;
|
|
305
|
-
flex: 1 1 auto;
|
|
306
|
-
flex-flow: row;
|
|
307
|
-
justify-content: flex-start;
|
|
308
|
-
align-items: center;
|
|
309
|
-
height: ${e=>e.containerHeight}px;
|
|
310
|
-
&:hover {
|
|
311
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
312
|
-
}
|
|
313
|
-
`,bi=a.div`
|
|
314
|
-
display: flex;
|
|
315
|
-
flex: 1 0 auto;
|
|
316
|
-
flex-direction: row;
|
|
317
|
-
justify-content: flex-end;
|
|
318
|
-
`,ki=a.div`
|
|
319
|
-
display: flex;
|
|
320
|
-
flex-direction: row;
|
|
321
|
-
justify-content: flex-start;
|
|
322
|
-
`,ji=a(S)`
|
|
323
|
-
user-select: none;
|
|
324
|
-
min-width: ${E.balanceWidth};
|
|
325
|
-
max-width: ${E.balanceWidth};
|
|
326
|
-
text-align: right;
|
|
327
|
-
margin-left: ${E.balanceLeftMargin};
|
|
328
|
-
border: 1px solid transparent;
|
|
329
|
-
color: ${e=>e.theme.colors.hero};
|
|
330
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
331
|
-
&:hover {
|
|
332
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
333
|
-
}
|
|
334
|
-
`,ba=a(S)`
|
|
335
|
-
user-select: none;
|
|
336
|
-
clear: both;
|
|
337
|
-
display: inline-block;
|
|
338
|
-
overflow: hidden;
|
|
339
|
-
white-space: nowrap;
|
|
340
|
-
text-overflow: ellipsis;
|
|
341
|
-
text-align: left;
|
|
342
|
-
margin-left: ${c.sp2};
|
|
343
|
-
`,Ci=a.div`
|
|
344
|
-
display: flex;
|
|
345
|
-
flex-direction: row;
|
|
346
|
-
flex-shrink: 2;
|
|
347
|
-
flex-grow: 1;
|
|
348
|
-
align-items: center;
|
|
349
|
-
height: ${e=>e.containerHeight}px;
|
|
350
|
-
width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
351
|
-
max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
352
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
353
|
-
${({isSticky:e})=>e?O`
|
|
354
|
-
position: sticky;
|
|
355
|
-
top: ${c.sp0};
|
|
356
|
-
left: ${c.sp0};
|
|
357
|
-
`:null}
|
|
358
|
-
cursor: pointer;
|
|
359
|
-
color: ${e=>e.theme.colors.hero};
|
|
360
|
-
&:hover {
|
|
361
|
-
color: ${e=>e.theme.colors.primary};
|
|
362
|
-
}
|
|
363
|
-
`,Si=({balance:e,isOpen:n})=>{const i=n?e?.balance:e?.totalBalance;return t.jsx(ki,{children:t.jsx(ji,{isClickable:!1,onClick:()=>null,children:U("0,0",i)})})},$i=({total:e})=>t.jsx(ki,{children:t.jsx(ji,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function ka({isSticky:e,height:n,isScrolling:i,isLastNode:o,balances:r,total:l,vendor:s,backgroundColor:d,onEntityNameClick:h}){const u=I(),g="default",p=s?.name??"";return t.jsxs(wi,{"data-testid":x("ap-aging-report-row-root-container",p),containerHeight:n,bgColor:d,windowSize:u,children:[t.jsxs(yi,{"data-testid":x("ap-aging-report-row-container",p),style:{cursor:g},isClickable:!1,containerHeight:n-1,children:[t.jsxs(Ci,{onClick:()=>s?.id!=null?h?.(s.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:n-1,children:[s?.logo!=null?t.jsx(Rt,{photoUrl:s.logo.toString(),styles:{width:E.nameLogoWidth.valuePx(u),height:E.nameLogoHeight.valuePx(u)}}):t.jsx(Et,{name:p??"",size:c.sp4}),t.jsx(ba,{children:p})]}),t.jsxs(bi,{"data-testid":x("ap-aging-report-row-balances-container",p),children:[r.map(f=>t.jsx(Si,{balance:f,isOpen:!0},f?.period)),t.jsx($i,{total:l})]})]}),t.jsx(vi,{isScrolling:i,isLastNode:o})]})}function ja({treeNodeId:e,isSticky:n,height:i,isScrolling:o,isLastNode:r,isOpen:l,balances:s,total:d,totalWithChildren:h,nestedCustomer:u,metadata:g,backgroundColor:p,onEntityNameClick:f,onClick:m}){const y=I(),b=g,$=u?.customer.name??"",C=u!=null?u.id.length-1:0,B=u?.hasSiblings??!1,_=u!=null?u.children.length!==0:!1,L=_,N=L?"pointer":"default",P=u!=null?u.isLeafCustomer:!1,H=()=>{m?.(e)};return t.jsxs(wi,{"data-testid":x("ar-aging-report-row-root-container",e),containerHeight:i,bgColor:p,windowSize:y,children:[t.jsxs(yi,{"data-testid":x("ar-aging-report-row-container",e),style:{cursor:N},isClickable:L,containerHeight:i-1,children:[t.jsx(Ci,{"data-testid":x("ar-aging-report-row-name-container",e),isSticky:n,windowSize:y,bgColor:p,containerHeight:i-1,children:t.jsx(tn,{displayName:$,depth:C,isLastNode:r,hasChildren:_,hasSiblings:B,isLeaf:P,collapsed:!l,subAccountAnscestorMetadata:b.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:H,onNameClick:()=>u?.id[0]!=null?f?.(u.id[0]):void 0})}),t.jsxs(bi,{children:[s.map(T=>t.jsx(Si,{balance:T,isOpen:l},T?.period)),t.jsx($i,{total:l?d:h})]})]}),t.jsx(vi,{isScrolling:o,subEntityProps:{nestingLevel:C,isSticky:n,noMarginForEntity:!0}})]})}function vi({isScrolling:e,isLastNode:n=!1,subEntityProps:i}){return n?t.jsx(At,{isScrolling:e,kind:"end_row_separator",subEntityProps:i}):t.jsx(At,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:i})}const Ca=a.div`
|
|
364
|
-
user-select: none;
|
|
365
|
-
display: flex;
|
|
366
|
-
flex: 1 1 auto;
|
|
367
|
-
width: fit-content;
|
|
368
|
-
min-width: 100%;
|
|
369
|
-
height: ${e=>e.height}px;
|
|
370
|
-
flex-flow: row;
|
|
371
|
-
justify-content: flex-start;
|
|
372
|
-
align-items: center;
|
|
373
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
374
|
-
`,Sa=a.div`
|
|
375
|
-
display: flex;
|
|
376
|
-
flex: 1 0 auto;
|
|
377
|
-
flex-direction: row;
|
|
378
|
-
justify-content: flex-end;
|
|
379
|
-
`,_i=a.div`
|
|
380
|
-
display: flex;
|
|
381
|
-
max-height: ${c.sp8};
|
|
382
|
-
min-height: ${c.sp8};
|
|
383
|
-
min-width: ${E.balanceWidth};
|
|
384
|
-
justify-content: center;
|
|
385
|
-
align-items: center;
|
|
386
|
-
background-color: ${e=>e.theme.colors.background};
|
|
387
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
388
|
-
border-radius: ${c.sp2};
|
|
389
|
-
margin-left: ${E.balanceLeftMargin};
|
|
390
|
-
color: ${e=>e.theme.colors.primary};
|
|
391
|
-
`,Li=a(S)`
|
|
392
|
-
display: flex;
|
|
393
|
-
user-select: none;
|
|
394
|
-
flex-direction: row;
|
|
395
|
-
justify-content: center;
|
|
396
|
-
align-items: center;
|
|
397
|
-
height: ${E.balanceHeight};
|
|
398
|
-
max-width: ${E.balanceWidth};
|
|
399
|
-
width: 138px;
|
|
400
|
-
text-align: center;
|
|
401
|
-
column-gap: ${c.sp1};
|
|
402
|
-
color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
|
|
403
|
-
`,$a=a.div`
|
|
404
|
-
max-height: ${c.sp8};
|
|
405
|
-
min-height: ${c.sp8};
|
|
406
|
-
display: flex;
|
|
407
|
-
flex-direction: row;
|
|
408
|
-
align-items: center;
|
|
409
|
-
min-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
410
|
-
color: ${e=>e.theme.colors.primary};
|
|
411
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
412
|
-
${e=>e.isSticky?O`
|
|
413
|
-
position: -webkit-sticky;
|
|
414
|
-
position: sticky;
|
|
415
|
-
top: ${c.sp0};
|
|
416
|
-
left: ${c.sp0};
|
|
417
|
-
`:""}
|
|
418
|
-
`,va=a(S)`
|
|
419
|
-
display: flex;
|
|
420
|
-
align-items: center;
|
|
421
|
-
cursor: pointer;
|
|
422
|
-
column-gap: ${c.sp1};
|
|
423
|
-
color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
|
|
424
|
-
`,Ai=a.div`
|
|
425
|
-
max-height: ${c.sp8};
|
|
426
|
-
min-height: ${c.sp8};
|
|
427
|
-
cursor: pointer;
|
|
428
|
-
`,nn=a.div`
|
|
429
|
-
display: flex;
|
|
430
|
-
column-gap: ${c.sp1};
|
|
431
|
-
cursor: pointer;
|
|
432
|
-
align-items: center;
|
|
433
|
-
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
|
|
434
|
-
`,Bi=a.div``,Wi=a(ai)`
|
|
435
|
-
width: 12px;
|
|
436
|
-
height: 12px;
|
|
437
|
-
cursor: pointer;
|
|
438
|
-
color: ${e=>e.theme.colors.hero};
|
|
439
|
-
`,on=a(Ut)`
|
|
440
|
-
width: 12px;
|
|
441
|
-
height: 12px;
|
|
442
|
-
`,rn=a(Yt)`
|
|
443
|
-
width: 12px;
|
|
444
|
-
height: 12px;
|
|
445
|
-
`,_a=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=()=>{o?.(an(i),r)},s=n===r?i:"ascending";return t.jsxs(va,{active:n===r,"data-testid":x("duration-row-vendor-title",e),children:[r==="vendor"?W.getLocalizedStrings().reports.aging.apAging.vendor:W.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(nn,{selectedForSort:n===r,children:t.jsx(Bi,{"data-testid":x("duration-row-vendor-sort-icon",e),onClick:l,children:s==="ascending"?t.jsx(rn,{}):t.jsx(on,{})})}),t.jsx(rt,{controller:n===r,children:t.jsx(Wi,{"data-testid":x("duration-row-vendor-sort-cancel-icon",e),onClick:()=>Ii({onSortOrderChanged:o})})})]})},Ii=({onSortOrderChanged:e})=>{e?.("descending","total")},La=({agingPeriod:e,sortKey:n="vendor",sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n===e?i:"ascending",l=()=>{o?.(an(i),e)};return t.jsx(Ai,{"data-testid":x("duration-row-tick-container",e),children:t.jsx(_i,{"data-testid":x("duration-row-tick-element-container",e),children:t.jsxs(Li,{active:n===e,"data-testid":x("duration-row-timeframe-tick",e),children:[W.getLocalizedStrings().reports.aging.duration[e],t.jsxs(nn,{selectedForSort:n===e,"data-testid":x("duration-row-sort-container",e),children:[t.jsx(Bi,{"data-testid":x("duration-row-sort-icon",e),onClick:l,children:r==="ascending"?t.jsx(rn,{}):t.jsx(on,{})}),t.jsx(rt,{controller:n===e,children:t.jsx(Wi,{"data-testid":x("duration-row-sort-cancel-icon",e),onClick:()=>Ii({onSortOrderChanged:o})})})]})]})})})},Mi=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n==="total"?i:"ascending",l=()=>{o?.(an(i),"total")};return t.jsx(Ai,{"data-testid":x("duration-row-entity-total-tick-container",e),onClick:l,children:t.jsx(_i,{"data-testid":x("duration-row-entity-total-tick-element-container",e),children:t.jsxs(Li,{active:n==="total","data-testid":x("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?W.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:W.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(nn,{selectedForSort:n==="total","data-testid":x("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(rn,{}):t.jsx(on,{})})]})})})},Aa=({reportId:e,agingPeriod:n,sortKey:i="vendor",sortOrder:o="ascending",onSortOrderChanged:r})=>n!=null?t.jsx(La,{sortKey:i,sortOrder:o,onSortOrderChanged:r,agingPeriod:n}):t.jsx(Mi,{reportId:e,sortKey:i,sortOrder:o,onSortOrderChanged:r});function Ba({reportId:e,isSticky:n,height:i,agingPeriods:o,sortKey:r,sortOrder:l,backgroundColor:s,onSortOrderChanged:d}){const h=I();return t.jsxs(Ca,{height:i,bgColor:s,"data-testid":x("duration-row-root-container",e),children:[t.jsx($a,{"data-testid":x("duration-row-placeholder-name",e),isSticky:n,windowSize:h,bgColor:s,children:t.jsx(_a,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})}),t.jsxs(Sa,{children:[o.map(u=>t.jsx(Aa,{reportId:e,agingPeriod:u,sortKey:r,sortOrder:l,onSortOrderChanged:d},u)),t.jsx(Mi,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})]})]})}const an=e=>e==="ascending"?"descending":"ascending",Wa=[10,14,20,20,20],Ia=a.div`
|
|
446
|
-
display: flex;
|
|
447
|
-
flex: 1 1 auto;
|
|
448
|
-
width: fit-content;
|
|
449
|
-
min-width: 100%;
|
|
450
|
-
flex-direction: column;
|
|
451
|
-
height: ${e=>e.containerHeight}px;
|
|
452
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
453
|
-
`,Ma=a.div`
|
|
454
|
-
user-select: none;
|
|
455
|
-
display: flex;
|
|
456
|
-
flex: 1 1 auto;
|
|
457
|
-
flex-flow: row;
|
|
458
|
-
justify-content: flex-start;
|
|
459
|
-
align-items: center;
|
|
460
|
-
`,Oa=a.div`
|
|
461
|
-
display: flex;
|
|
462
|
-
flex: 1 0 auto;
|
|
463
|
-
flex-direction: row;
|
|
464
|
-
justify-content: flex-end;
|
|
465
|
-
`,Oi=a.div`
|
|
466
|
-
display: flex;
|
|
467
|
-
flex-direction: row;
|
|
468
|
-
justify-content: flex-start;
|
|
469
|
-
`,Ni=a(S)`
|
|
470
|
-
user-select: none;
|
|
471
|
-
min-width: ${E.balanceWidth};
|
|
472
|
-
max-width: ${E.balanceWidth};
|
|
473
|
-
text-align: right;
|
|
474
|
-
margin-left: ${E.balanceLeftMargin};
|
|
475
|
-
color: ${e=>e.theme.colors.primary};
|
|
476
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
477
|
-
`,Na=a.div`
|
|
478
|
-
display: flex;
|
|
479
|
-
flex-direction: row;
|
|
480
|
-
flex-shrink: 2;
|
|
481
|
-
flex-grow: 1;
|
|
482
|
-
align-items: center;
|
|
483
|
-
height: ${e=>e.containerHeight-1}px;
|
|
484
|
-
width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
485
|
-
max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
486
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
487
|
-
${({isSticky:e})=>e?O`
|
|
488
|
-
position: sticky;
|
|
489
|
-
top: ${c.sp0};
|
|
490
|
-
left: ${c.sp0};
|
|
491
|
-
`:null}
|
|
492
|
-
`,Pa=a(S)`
|
|
493
|
-
user-select: none;
|
|
494
|
-
clear: both;
|
|
495
|
-
display: inline-block;
|
|
496
|
-
overflow: hidden;
|
|
497
|
-
white-space: nowrap;
|
|
498
|
-
text-overflow: ellipsis;
|
|
499
|
-
text-align: left;
|
|
500
|
-
margin-left: ${e=>Wa[e.depth]}px;
|
|
501
|
-
color: ${e=>e.theme.colors.primary};
|
|
502
|
-
width: ${e=>E.titleWidth.value(e.windowSize)-e.depth*w[11]}px;
|
|
503
|
-
`,za=({balance:e})=>t.jsx(Oi,{children:t.jsx(Ni,{isClickable:!1,onClick:()=>null,children:U("0,0",e?.totalBalance)})}),Fa=({total:e})=>t.jsx(Oi,{children:t.jsx(Ni,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function Ta({backgroundColor:e,isSticky:n,height:i,noMarginForEntity:o,isScrolling:r,total:l,nestedCustomer:s,metadata:d}){const h=I(),{common:{strings:{empty:u}},reports:{sections:g}}=W.getLocalizedStrings(),p=s!=null?s.id.length-1:0,f=d,m=s?.customer.name??u;return t.jsxs(Ia,{"data-testid":"sub-customer-total-row-root-container",containerHeight:i,bgColor:e,children:[t.jsxs(Ma,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(Na,{isSticky:n,windowSize:h,bgColor:e,containerHeight:i,children:[t.jsx(mi,{ancestorMetadata:f.vendorOrCustomerAncestorMetadata,depth:p,name:m}),t.jsx(Pa,{isClickable:!1,title:m,depth:p,windowSize:h,children:g.totalPrefix+" "+m})]}),t.jsxs(Oa,{children:[s?.arAgingBalances.map((y,b)=>t.jsx(za,{balance:y},b)),t.jsx(Fa,{total:l})]})]}),t.jsx(Va,{isScrolling:r,nestingLevel:p,isSticky:n,noMarginForEntity:o})]})}function Va({isScrolling:e,nestingLevel:n,isSticky:i,noMarginForEntity:o}){return t.jsx(At,{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}},Da=a.div`
|
|
504
|
-
display: flex;
|
|
505
|
-
flex: 1 1 auto;
|
|
506
|
-
width: fit-content;
|
|
507
|
-
min-width: 100%;
|
|
508
|
-
flex-direction: column;
|
|
509
|
-
height: ${e=>e.height}px;
|
|
510
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
511
|
-
`,Ga=a.div`
|
|
512
|
-
cursor: default;
|
|
513
|
-
user-select: none;
|
|
514
|
-
display: flex;
|
|
515
|
-
flex: 1 1 auto;
|
|
516
|
-
flex-flow: row;
|
|
517
|
-
justify-content: flex-start;
|
|
518
|
-
align-items: center;
|
|
519
|
-
`,Ra=a.div`
|
|
520
|
-
display: flex;
|
|
521
|
-
flex: 1 0 auto;
|
|
522
|
-
flex-direction: row;
|
|
523
|
-
justify-content: flex-end;
|
|
524
|
-
`,Pi=a.div`
|
|
525
|
-
display: flex;
|
|
526
|
-
flex-direction: row;
|
|
527
|
-
justify-content: flex-start;
|
|
528
|
-
`,zi=a(ne)`
|
|
529
|
-
user-select: none;
|
|
530
|
-
min-width: ${E.balanceWidth};
|
|
531
|
-
max-width: ${E.balanceWidth};
|
|
532
|
-
text-align: right;
|
|
533
|
-
margin-left: ${E.balanceLeftMargin};
|
|
534
|
-
color: ${e=>e.theme.colors.primary};
|
|
535
|
-
border: 1px solid transparent;
|
|
536
|
-
`,Ea=a.div`
|
|
537
|
-
display: flex;
|
|
538
|
-
flex-direction: row;
|
|
539
|
-
flex-shrink: 2;
|
|
540
|
-
flex-grow: 1;
|
|
541
|
-
align-items: center;
|
|
542
|
-
width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
543
|
-
max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
544
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
545
|
-
${({isSticky:e,isIndented:n})=>e&&n?O`
|
|
546
|
-
position: -webkit-sticky;
|
|
547
|
-
position: sticky;
|
|
548
|
-
top: ${c.sp0};
|
|
549
|
-
left: ${c.sp4};
|
|
550
|
-
`:e&&!n?O`
|
|
551
|
-
position: -webkit-sticky;
|
|
552
|
-
position: sticky;
|
|
553
|
-
top: ${c.sp0};
|
|
554
|
-
left: ${c.sp0};
|
|
555
|
-
`:null}
|
|
556
|
-
`,Ha=a(ne)`
|
|
557
|
-
user-select: none;
|
|
558
|
-
clear: both;
|
|
559
|
-
display: inline-block;
|
|
560
|
-
overflow: hidden;
|
|
561
|
-
white-space: nowrap;
|
|
562
|
-
text-overflow: ellipsis;
|
|
563
|
-
text-align: left;
|
|
564
|
-
color: ${e=>e.theme.colors.primary};
|
|
565
|
-
`,Ka=({type:e,balance:n})=>t.jsx(Pi,{children:re(e)===!0?t.jsx(zi,{children:U("0,0",n?.balance)}):null}),Ya=({type:e,balance:n})=>t.jsx(Pi,{children:re(e)===!0?t.jsx(zi,{children:U("0,0",n)}):null});function Ua({type:e,isSticky:n,isIndented:i,height:o,title:r,totalBalances:l,backgroundColor:s}){const d=I(),h={amount:l.reduce((u,g)=>u+(g?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Wn.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Wn.currencySymbol};return t.jsx(Da,{"data-testid":x("total-row-root-container"),height:o,bgColor:s,windowSize:d,children:t.jsxs(Ga,{isClickable:!1,"data-testid":x("total-row-container"),children:[t.jsx(Ea,{bgColor:s,isSticky:n,windowSize:d,isIndented:i,children:t.jsx(Ha,{children:r})}),t.jsxs(Ra,{children:[l.map((u,g)=>t.jsx(Ka,{type:e,balance:u},g)),t.jsx(Ya,{type:e,balance:h})]})]})})}const Za=(e,n,i,o,r,l,s)=>{if(e.element.kind!=="timeframe_headers")return null;const d=e.element.data;return t.jsx(Ba,{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:s})},qa=(e,n,i,o,r,l,s,d,h,u)=>{if(n.element.kind!=="aging_report_row")return null;if(n.config.reportId==="accounts_payable_aging"){const p=n.element.data;return t.jsx(ka,{backgroundColor:d,isLastNode:l,isScrolling:s,isSticky:r,height:i,balances:p.apAgingBalances,vendor:p.vendor,total:p.total,onEntityNameClick:h})}const g=n.element.data;return t.jsx(ja,{treeNodeId:e,backgroundColor:d,isLastNode:l,isScrolling:s,isSticky:r,isOpen:o,height:i,metadata:n.element.metadata,balances:g.arAgingBalances,nestedCustomer:g,total:g.total,totalWithChildren:g.totalWithChildren,onEntityNameClick:h,onClick:u})},Xa=(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(Ta,{backgroundColor:r,isScrolling:o,isSticky:i,height:n,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},Ja=(e,n,i,o,r)=>{const l=n.element.data;return t.jsx(Ua,{type:e,backgroundColor:o,isSticky:r,height:i,totalBalances:l,isIndented:n.config.reportId==="accounts_receivable_aging",title:n.element.title})};function dt(e,n,i,o){switch(e){case"cogs":return Qa(i,o,n);case"expenses":return el(i,o,n);case"income":return tl(i,o,n);case"cash_position":return nl(i,o,n);case"cash_in":return il(i,o,n);case"cash_out":return ol(i,o,n);case"assets":return rl(i,o,n);case"equity":return al(i,o,n);case"liabilities":return ll(i,o,n);case"other_expense":return sl(i,o,n);case"other_income":return cl(i,o,n);case"operating_activities":return dl(i,o,n);case"investing_activities":return hl(i,o,n);case"financing_activities":return ul(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},el=(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},tl=(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},nl=(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},il=(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},ol=(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},rl=(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},al=(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},ll=(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},sl=(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},cl=(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},dl=(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},hl=(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},ul=(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=>Fi(n(o)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(o=>Ti(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Vi(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=>Fi(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Ti(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Vi(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function Fi(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function Ti(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 Vi(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=[],s=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Gi([],i)),{balances:l,thisPeriodIndex:s};let d=e.balances;return n==="ascending_date"?s=e.balances.length-1:(s=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:s}}function Di(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 s=[...l.balances];if(e?.totalBalance!=null)s.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=Gi([],1);s.push(...d)}return{balances:s,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 Gi(e,n){return e.length>0?e:ei(Array(n),null)}const pl=a.div`
|
|
566
|
-
display: flex;
|
|
567
|
-
flex: 1 1 auto;
|
|
568
|
-
max-height: 1px;
|
|
569
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
570
|
-
`,On=a.div`
|
|
571
|
-
display: flex;
|
|
572
|
-
flex: 1 1 auto;
|
|
573
|
-
max-height: 1px;
|
|
574
|
-
margin-left: ${e=>e.marginLeft}px;
|
|
575
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
576
|
-
`,gl=a.div`
|
|
577
|
-
display: flex;
|
|
578
|
-
flex: 1 1 auto;
|
|
579
|
-
max-height: 1px;
|
|
580
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
581
|
-
`;function fl({kind:e,isScrolling:n}){switch(e){case"account_title_row_separator":return t.jsx(On,{marginLeft:w[5],isScrolling:n});case"account_balance_row_separator":return t.jsx(On,{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})}}const Ie={balanceHeight:c.sp4,balanceWidth:"166px",balanceLeftMargin:c.sp4,titleWidth:new D(200,350,405)};function xl(e){switch(e){case"section":return w[8];case"section_with_ac_only":return w[8];case"calculated_section":return w[8];case"calculated_section_type1":return w[6];case"ac_group_report":case"ac_group_subaccount":return w[8];case"ac_report":case"ac_subaccount":case"ac_subentity_total":return w[6];case"title_string_only":return 67;case"total":return w[6];case"timeframe_headers":return w[11];case"timeframe_headers_with_forecast":return w[0];case"class":case"checkbox_and_name_only":return w[0];default:return w[0]}}function ml(e,n){const i=["summary","detailed"];switch(e){case"section":return!i.includes(n);case"section_with_ac_only":return!i.includes(n);case"calculated_section":case"calculated_section_type1":return!i.includes(n);case"ac_group_report":case"ac_group_subaccount":return!i.includes(n);case"ac_report":case"ac_subaccount":case"ac_subentity_total":return!i.includes(n);case"title_string_only":return!i.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":case"checkbox_and_name_only":return!1;default:return!1}}const wl=a.div`
|
|
582
|
-
display: flex;
|
|
583
|
-
flex: 1 1 auto;
|
|
584
|
-
width: fit-content;
|
|
585
|
-
min-width: 100%;
|
|
586
|
-
flex-direction: column;
|
|
587
|
-
height: ${e=>e.height}px;
|
|
588
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
589
|
-
`,yl=a.div`
|
|
590
|
-
user-select: none;
|
|
591
|
-
display: flex;
|
|
592
|
-
flex: 1 1 auto;
|
|
593
|
-
flex-flow: row;
|
|
594
|
-
justify-content: flex-start;
|
|
595
|
-
align-items: center;
|
|
596
|
-
`,bl=a.div`
|
|
597
|
-
display: flex;
|
|
598
|
-
flex: 1 0 auto;
|
|
599
|
-
flex-direction: row;
|
|
600
|
-
justify-content: flex-end;
|
|
601
|
-
`,kl=a.div`
|
|
602
|
-
display: flex;
|
|
603
|
-
flex-direction: row;
|
|
604
|
-
justify-content: flex-start;
|
|
605
|
-
`,jl=a(S)`
|
|
606
|
-
user-select: none;
|
|
607
|
-
color: ${e=>e.theme.colors.hero};
|
|
608
|
-
min-width: ${Ie.balanceWidth};
|
|
609
|
-
max-width: ${Ie.balanceWidth};
|
|
610
|
-
text-align: right;
|
|
611
|
-
margin-left: ${Ie.balanceLeftMargin};
|
|
612
|
-
`,Cl=a.div`
|
|
613
|
-
display: flex;
|
|
614
|
-
flex-direction: row;
|
|
615
|
-
flex-shrink: 2;
|
|
616
|
-
flex-grow: 1;
|
|
617
|
-
align-items: center;
|
|
618
|
-
width: ${e=>Ie.titleWidth.valuePx(e.windowSize)};
|
|
619
|
-
color: ${e=>e.theme.colors.hero};
|
|
620
|
-
max-width: ${e=>Ie.titleWidth.valuePx(e.windowSize)};
|
|
621
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
622
|
-
${({isSticky:e})=>e?O`
|
|
623
|
-
position: -webkit-sticky;
|
|
624
|
-
position: sticky;
|
|
625
|
-
top: ${c.sp0};
|
|
626
|
-
left: ${c.sp0};
|
|
627
|
-
`:null}
|
|
628
|
-
`,Sl=a(S)`
|
|
629
|
-
user-select: none;
|
|
630
|
-
clear: both;
|
|
631
|
-
display: inline-block;
|
|
632
|
-
overflow: hidden;
|
|
633
|
-
white-space: nowrap;
|
|
634
|
-
text-overflow: ellipsis;
|
|
635
|
-
text-align: left;
|
|
636
|
-
margin-left: ${c.sp6};
|
|
637
|
-
`,$l=({balance:e})=>t.jsx(kl,{children:t.jsx(jl,{children:Z(e)})});function vl({heading:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,totalBalances:l,isScrolling:s,isLastNode:d,onClick:h}){const u=I();return t.jsxs(wl,{"data-testid":x("calculated-section-type-1-root-container-row",o),height:r,bgColor:n,windowSize:u,children:[t.jsxs(yl,{"data-testid":x("calculated-section-type-1-container-row",o),onClick:()=>h?.(o),children:[t.jsx(Cl,{"data-testid":x("calculated-section-type-1-total-container-row",o),bgColor:n,isSticky:i,windowSize:u,children:t.jsx(Sl,{children:e})}),t.jsx(bl,{children:l.map((g,p)=>t.jsx($l,{balance:g},p))})]}),t.jsx(_l,{isScrolling:s,isLastNode:d})]})}function _l({isScrolling:e,isLastNode:n}){return n===!0?t.jsx(fl,{isScrolling:e,kind:"heading_row_separator"}):null}const Ll=a.div`
|
|
638
|
-
display: flex;
|
|
639
|
-
flex: 1 1 auto;
|
|
640
|
-
width: fit-content;
|
|
641
|
-
min-width: 100%;
|
|
642
|
-
flex-direction: column;
|
|
643
|
-
height: ${e=>e.height}px;
|
|
644
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
645
|
-
`,Al=a.div`
|
|
646
|
-
user-select: none;
|
|
647
|
-
display: flex;
|
|
648
|
-
flex: 1 1 auto;
|
|
649
|
-
flex-flow: row;
|
|
650
|
-
justify-content: flex-start;
|
|
651
|
-
align-items: center;
|
|
652
|
-
`,Bl=a.div`
|
|
653
|
-
display: flex;
|
|
654
|
-
flex: 1 0 auto;
|
|
655
|
-
flex-direction: row;
|
|
656
|
-
justify-content: flex-end;
|
|
657
|
-
`,Wl=a.div`
|
|
658
|
-
display: flex;
|
|
659
|
-
flex-direction: row;
|
|
660
|
-
justify-content: flex-start;
|
|
661
|
-
`,Je=a(oi)`
|
|
662
|
-
color: ${e=>e.theme.colors.champion};
|
|
663
|
-
user-select: none;
|
|
664
|
-
max-width: ${k.balanceWidth};
|
|
665
|
-
min-width: ${k.balanceWidth};
|
|
666
|
-
text-align: right;
|
|
667
|
-
margin-left: ${k.balanceLeftMargin};
|
|
668
|
-
`,Il=a.div`
|
|
669
|
-
display: flex;
|
|
670
|
-
flex-direction: row;
|
|
671
|
-
flex-shrink: 2;
|
|
672
|
-
flex-grow: 1;
|
|
673
|
-
align-items: center;
|
|
674
|
-
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
675
|
-
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
676
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
677
|
-
${({isSticky:e})=>e?O`
|
|
678
|
-
position: -webkit-sticky;
|
|
679
|
-
position: sticky;
|
|
680
|
-
top: ${c.sp0};
|
|
681
|
-
left: ${c.sp0};
|
|
682
|
-
`:null}
|
|
683
|
-
`,Ml=a(oi)`
|
|
684
|
-
color: ${e=>e.theme.colors.champion};
|
|
685
|
-
user-select: none;
|
|
686
|
-
clear: both;
|
|
687
|
-
display: inline-block;
|
|
688
|
-
overflow: hidden;
|
|
689
|
-
white-space: nowrap;
|
|
690
|
-
text-overflow: ellipsis;
|
|
691
|
-
text-align: left;
|
|
692
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
693
|
-
`,Ol=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs(Wl,{"data-testid":x("heading-row-balance-element",e),children:[re(e)||i?t.jsx(Je,{"data-testid":x("heading-row-balance-actual",e),children:Z(n)}):t.jsx(Je,{"data-testid":x("heading-row-balance-forecast",e),children:J(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Je,{"data-testid":x("heading-row-balance-forecast",e),children:J(n)}),t.jsx(Je,{"data-testid":x("heading-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?ce(n):de(n)})]}):null]});function Nl({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,heading:l,headingBalances:s,isActualVsForecastOn:d,compareMode:h,isLeaf:u,onClick:g}){const p=I();return t.jsx(Ll,{height:r,bgColor:n,"data-testid":x("heading-row-root-container",o),children:t.jsxs(Al,{"data-testid":x("heading-row-container",o),isClickable:!u,onClick:()=>g?.(o),children:[he(e)===!0?t.jsx(Il,{"data-testid":x("heading-row-heading-container",o),isSticky:i,windowSize:p,bgColor:n,children:t.jsx(Ml,{children:l})}):null,me(e)===!0?t.jsx(Bl,{"data-testid":x("heading-row-balances-container",o),children:s.map((f,m)=>t.jsx(Ol,{"data-testid":x("heading-row-balance-element",e),type:e,heading:l,balance:f,isActualVsForecastOn:d,compareMode:h},m))}):null]})})}const Pl=(e,n,i,o,r,l,s)=>{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(vl,{backgroundColor:o,isSticky:r,treeNodeId:e,heading:n.element.title,totalBalances:h.balances,height:i,isScrolling:l,isLastNode:s})},ln=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="title_string_only")return null;const f=ee(void 0,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Nl,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,heading:i.element.title,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,headingBalances:f.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:m=>{p?.(m)}})};function Ri(e,n){return zl(n)}const zl=(e,n)=>{const i={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return i.acBalanceSelector=o=>o.balancesInTimeframe,i.compactedAccountsSelectorVariant=o=>Fl(o,i.acBalanceSelector,e),i};function Fl(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Tl(n(o)?.balances??[]));default:return e}}function Tl(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}const Qe=[new D(w[4],56),new D(44,76),new D(69,102),new D(93,124),new D(113,143)],Nn=[new D(w[0],w[0]),new D(14,w[4]),new D(67,67),new D(102,102),new D(136,136)],Vl=a.div`
|
|
694
|
-
display: flex;
|
|
695
|
-
flex: 1 1 auto;
|
|
696
|
-
max-height: 1px;
|
|
697
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
698
|
-
`,Pn=a.div`
|
|
699
|
-
display: flex;
|
|
700
|
-
flex: 1 1 auto;
|
|
701
|
-
max-height: 1px;
|
|
702
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey4};
|
|
703
|
-
`,Dl=a.div`
|
|
704
|
-
display: flex;
|
|
705
|
-
flex: 1 1 auto;
|
|
706
|
-
flex-flow: row;
|
|
707
|
-
justify-content: flex-start;
|
|
708
|
-
align-items: center;
|
|
709
|
-
`,Gl=a.div`
|
|
710
|
-
display: flex;
|
|
711
|
-
flex-direction: row;
|
|
712
|
-
flex-shrink: 2;
|
|
713
|
-
flex-grow: 1;
|
|
714
|
-
align-items: center;
|
|
715
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
716
|
-
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
717
|
-
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
718
|
-
${({isSticky:e})=>e?O`
|
|
719
|
-
position: -webkit-sticky;
|
|
720
|
-
position: sticky;
|
|
721
|
-
top: ${c.sp0};
|
|
722
|
-
left: ${c.sp0};
|
|
723
|
-
`:null}
|
|
724
|
-
`,Rl=a.div`
|
|
725
|
-
width: ${e=>e.noMarginForAccount?Qe[e.nestingLevel].value(e.windowSize)-w[5]:Qe[e.nestingLevel].value(e.windowSize)}px;
|
|
726
|
-
max-width: ${e=>e.noMarginForAccount?Qe[e.nestingLevel].value(e.windowSize)-w[5]:Qe[e.nestingLevel].value(e.windowSize)}px;
|
|
727
|
-
height: 1px;
|
|
728
|
-
`,El=a.div`
|
|
729
|
-
width: ${e=>Nn[e.classDepth].valuePx(e.windowSize)};
|
|
730
|
-
max-width: ${e=>Nn[e.classDepth].valuePx(e.windowSize)};
|
|
731
|
-
height: 1px;
|
|
732
|
-
`,Hl=a.div`
|
|
733
|
-
display: flex;
|
|
734
|
-
flex: 1 1 auto;
|
|
735
|
-
max-height: 1px;
|
|
736
|
-
height: 1px;
|
|
737
|
-
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
738
|
-
`,Kl=a.div`
|
|
739
|
-
display: flex;
|
|
740
|
-
flex: 1 1 auto;
|
|
741
|
-
max-height: 1px;
|
|
742
|
-
height: 1px;
|
|
743
|
-
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
744
|
-
`,Yl=a.div`
|
|
745
|
-
display: flex;
|
|
746
|
-
flex: 1 1 auto;
|
|
747
|
-
max-height: 1px;
|
|
748
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
749
|
-
`,zn=e=>{const n=I(),i=le();return t.jsxs(Dl,{children:[t.jsxs(Gl,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(El,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(Rl,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx(Hl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(Kl,{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(Pn,{marginLeft:w[5],isScrolling:n});case"sub_account_balance_row_separator":return t.jsx(zn,{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(Pn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(Vl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(Yl,{isScrolling:n});case"total_row_separator":return t.jsx(zn,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1})}}function Ei({height:e,backgroundColor:n,title:i,numOfBalances:o=6}){const r=I(),l=i!=null?i.split("+")[1]:"";let s=null;const d=r!=="small";switch(l){case"section-row":s=t.jsx(Ul,{columns:o,isSticky:d});break;case"root-class-row":s=t.jsx(Zl,{columns:o,isSticky:d});break;case"sub-class-row":s=t.jsx(ql,{columns:o,isSticky:d});break;case"leaf-class-row":s=t.jsxs(t.Fragment,{children:[t.jsx(Xl,{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:s})}const Ul=({columns:e,isSticky:n})=>t.jsxs(_e,{children:[t.jsxs(ut,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Te,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(ht,{columns:e,rectangleWidth:k.loadingBalanceWidthInPx})]}),Zl=({columns:e,isSticky:n})=>t.jsxs(_e,{children:[t.jsxs(ut,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Te,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(ht,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),ql=({columns:e,isSticky:n})=>t.jsxs(_e,{children:[t.jsx(ut,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(_e,{style:{marginLeft:"36px"},children:[t.jsx(Te,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx,style:{marginLeft:w[4]}})]})}),t.jsx(ht,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Xl=({columns:e,isSticky:n})=>t.jsxs(_e,{children:[t.jsx(ut,{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(ht,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Jl=({rectangleWidth:e})=>t.jsx(Hi,{width:k.balanceWidthInPx,children:t.jsx(K,{width:e,height:k.balanceHeightInPx})}),ht=({columns:e,rectangleWidth:n})=>t.jsx(es,{style:{zIndex:9,width:k.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((i,o)=>t.jsx(Jl,{rectangleWidth:n},o))}),Ql=a.div`
|
|
750
|
-
display: flex;
|
|
751
|
-
flex: 1 1 auto;
|
|
752
|
-
width: fit-content;
|
|
753
|
-
min-width: 100%;
|
|
754
|
-
flex-direction: column;
|
|
755
|
-
height: ${e=>e.height}px;
|
|
756
|
-
background-color: ${e=>e.bgColor?.hex()??e.theme.colors.grey4};
|
|
757
|
-
`,_e=a.div`
|
|
758
|
-
user-select: none;
|
|
759
|
-
display: flex;
|
|
760
|
-
flex: 1 1 auto;
|
|
761
|
-
flex-flow: row;
|
|
762
|
-
justify-content: flex-start;
|
|
763
|
-
align-items: center;
|
|
764
|
-
min-height: 0;
|
|
765
|
-
`,es=a.div`
|
|
766
|
-
display: flex;
|
|
767
|
-
flex: 1 0 auto;
|
|
768
|
-
flex-direction: row;
|
|
769
|
-
justify-content: flex-end;
|
|
770
|
-
`,Hi=a.div`
|
|
771
|
-
display: flex;
|
|
772
|
-
flex-direction: row;
|
|
773
|
-
align-items: center;
|
|
774
|
-
min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
|
|
775
|
-
margin-right: ${k.balanceLeftMargin};
|
|
776
|
-
gap: ${k.balanceLeftMargin};
|
|
777
|
-
justify-content: flex-end;
|
|
778
|
-
`,ut=a(Hi)`
|
|
779
|
-
position: ${e=>e.isSticky===!0?"sticky":"static"};
|
|
780
|
-
left: ${c.sp0};
|
|
781
|
-
z-index: 10;
|
|
782
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
783
|
-
justify-content: flex-start;
|
|
784
|
-
`;function Ki({height:e,numOfBalances:n,backgroundColor:i}){const o=I();return t.jsx(ts,{height:e,bgColor:i,children:t.jsxs(ns,{windowSize:o,children:[t.jsx(is,{windowSize:o,width:`${k.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(os,{children:Array.from({length:n},(r,l)=>t.jsx(Yi,{windowSize:o,width:k.balanceWidth,children:t.jsx(K,{width:k.balanceWidthInPx,height:w[6]})},`timeframe-balance-${l}`))})]})})}const ts=a.div`
|
|
785
|
-
display: flex;
|
|
786
|
-
flex: 1 1 auto;
|
|
787
|
-
width: fit-content;
|
|
788
|
-
min-width: 100%;
|
|
789
|
-
flex-direction: column;
|
|
790
|
-
height: ${e=>e.height}px;
|
|
791
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
792
|
-
margin-top: 20px;
|
|
793
|
-
`,ns=a.div`
|
|
794
|
-
display: flex;
|
|
795
|
-
flex-direction: row;
|
|
796
|
-
width: 100%;
|
|
797
|
-
`,Yi=a.div`
|
|
798
|
-
display: flex;
|
|
799
|
-
flex-direction: row;
|
|
800
|
-
align-items: center;
|
|
801
|
-
margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:c.sp4};
|
|
802
|
-
min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
|
|
803
|
-
color: ${e=>e.theme.colors.primary};
|
|
804
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
805
|
-
justify-content: flex-end;
|
|
806
|
-
:first-of-type {
|
|
807
|
-
justify-content: flex-start;
|
|
808
|
-
}
|
|
809
|
-
margin-right: ${k.balanceLeftMargin};
|
|
810
|
-
`,is=a(Yi)`
|
|
811
|
-
position: sticky;
|
|
812
|
-
left: ${c.sp0};
|
|
813
|
-
z-index: 10;
|
|
814
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
815
|
-
`,os=a.div`
|
|
816
|
-
display: flex;
|
|
817
|
-
flex-direction: row;
|
|
818
|
-
width: calc(100% - ${k.loadingInProgressStickySectionWidth}px);
|
|
819
|
-
justify-content: flex-end;
|
|
820
|
-
flex: 1 0 auto;
|
|
821
|
-
`,rs=a.div`
|
|
822
|
-
display: flex;
|
|
823
|
-
flex: 1 1 auto;
|
|
824
|
-
max-height: 1px;
|
|
825
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
826
|
-
`,as=a.div`
|
|
827
|
-
display: flex;
|
|
828
|
-
flex: 1 1 auto;
|
|
829
|
-
max-height: 1px;
|
|
830
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
831
|
-
`;function sn({kind:e,isScrolling:n}){switch(e){case"ac_group_row_separator":return t.jsx(rs,{"data-testid":x("ac-group-row-separator",e),isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(as,{"data-testid":x("section-row-separator",e),isScrolling:n})}}const G={balanceHeight:c.sp4,balanceWidth:"166px",balanceLeftMargin:c.sp4,titleWidth:new D(200,350,405)};function ls(e){switch(e){case"section":return w[8];case"ac_group_report":case"ac_group_subaccount":return w[8];case"ac_subentity_total":case"ac_subaccount":case"ac_report":return w[6];case"calculated_section":case"calculated_section_type1":return w[8];case"section_with_ac_only":return w[8];case"timeframe_headers":case"headers_loading_in_progress":return w[11];case"timeframe_headers_with_forecast":return 98;case"loading_in_progress":return w[6];case"title_string_only":return w[8];case"total":return w[8];case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function ss(e,n){const i=["summary","detailed"];switch(e){case"section":return!i.includes(n);case"section_with_ac_only":return!i.includes(n);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":case"ac_group_subaccount":return!i.includes(n);case"ac_subentity_total":case"ac_subaccount":case"ac_report":return!i.includes(n);case"title_string_only":return!i.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":case"checkbox_and_name_only":return!0;default:return!1}}const cs=a.div`
|
|
832
|
-
display: flex;
|
|
833
|
-
flex: 1 1 auto;
|
|
834
|
-
width: fit-content;
|
|
835
|
-
min-width: 100%;
|
|
836
|
-
flex-direction: column;
|
|
837
|
-
height: ${e=>e.height}px;
|
|
838
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
839
|
-
`,ds=a.div`
|
|
840
|
-
user-select: none;
|
|
841
|
-
display: flex;
|
|
842
|
-
flex: 1 1 auto;
|
|
843
|
-
flex-flow: row;
|
|
844
|
-
justify-content: flex-start;
|
|
845
|
-
align-items: center;
|
|
846
|
-
&:hover {
|
|
847
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
848
|
-
}
|
|
849
|
-
`,hs=a.div`
|
|
850
|
-
display: flex;
|
|
851
|
-
flex: 1 0 auto;
|
|
852
|
-
flex-direction: row;
|
|
853
|
-
justify-content: flex-end;
|
|
854
|
-
color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
855
|
-
`,us=a.div`
|
|
856
|
-
display: flex;
|
|
857
|
-
flex-direction: row;
|
|
858
|
-
justify-content: flex-start;
|
|
859
|
-
`,Bt=a(S)`
|
|
860
|
-
user-select: none;
|
|
861
|
-
min-width: ${G.balanceWidth};
|
|
862
|
-
max-width: ${G.balanceWidth};
|
|
863
|
-
text-align: right;
|
|
864
|
-
margin-left: ${G.balanceLeftMargin};
|
|
865
|
-
`,ps=a(Bt)`
|
|
866
|
-
color: ${e=>e.theme.colors.hero};
|
|
867
|
-
&:hover {
|
|
868
|
-
color: inherit;
|
|
869
|
-
}
|
|
870
|
-
`,gs=a.div`
|
|
871
|
-
display: flex;
|
|
872
|
-
flex-direction: row;
|
|
873
|
-
flex-shrink: 2;
|
|
874
|
-
flex-grow: 1;
|
|
875
|
-
align-items: center;
|
|
876
|
-
width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
877
|
-
max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
878
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
879
|
-
color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
880
|
-
${({isSticky:e})=>e?O`
|
|
881
|
-
position: -webkit-sticky;
|
|
882
|
-
position: sticky;
|
|
883
|
-
top: ${c.sp0};
|
|
884
|
-
left: ${c.sp0};
|
|
885
|
-
`:null}
|
|
886
|
-
`,fs=a(S)`
|
|
887
|
-
user-select: none;
|
|
888
|
-
clear: both;
|
|
889
|
-
display: inline-block;
|
|
890
|
-
overflow: hidden;
|
|
891
|
-
white-space: nowrap;
|
|
892
|
-
text-overflow: ellipsis;
|
|
893
|
-
text-align: left;
|
|
894
|
-
margin-left: ${c.sp2};
|
|
895
|
-
`,xs=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?ps:Bt;return t.jsxs(us,{"data-testid":x("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":x("account-group-row-balance-actual",e),children:Z(n)}),Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":x("account-group-row-balance-forecast",e),children:J(n)}),t.jsx(Bt,{"data-testid":x("account-group-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?ce(n):de(n)})]}):null]})};function ms({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountGroupName:l,accountGroupBalances:s,compareMode:d,isScrolling:h,isOpen:u,isLeaf:g,isLastNode:p,onClick:f}){const m=I(),y=!g,b=y?"pointer":"default",$=l.length>0?l.substr(0,1).toUpperCase():"",C=ys(s),B=le().colors.primary,[_,L]=z.useState(!1);return t.jsxs(cs,{"data-testid":x("account-group-row-root-container",e),height:r,bgColor:n,windowSize:m,children:[t.jsxs(ds,{"data-testid":x("account-group-row-container",e),style:{cursor:b},isClickable:y,onClick:()=>f?.(o),onMouseOver:()=>L(!0),onMouseLeave:()=>L(!1),children:[t.jsxs(gs,{"data-testid":x("account-group-row-name-container",e),bgColor:n,isSticky:i,windowSize:m,hasNonZeroBalance:C,children:[t.jsx(je,{"data-testid":x("account-group-row-circle-with-letter",e),color:A(B),showCollapsedIcon:!u,showIcon:y&&_,firstLetter:$}),t.jsx(fs,{"data-testid":x("account-group-row-name",e),children:l})]}),t.jsx(hs,{"data-testid":x("account-group-row-balances-container",e),hasNonZeroBalance:C,children:s.map((N,P)=>t.jsx(xs,{"data-testid":x("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:N,compareMode:d,collapsed:!1},P))})]}),t.jsx(ws,{isScrolling:h,isLeaf:g,isLastNode:p,isOpen:u})]})}function ws({isScrolling:e,isLeaf:n,isLastNode:i,isOpen:o}){return n||!o||!i?t.jsx(sn,{isScrolling:e,kind:"ac_group_row_separator"}):null}const ys=e=>{let n=!1;if(e!=null){for(const i of e)if(i!=null&&i.balance.amount!==0){n=!0;break}}return n},bs="__horizontal_total__";function ze(e){return typeof e=="object"&&e!==null&&"depth"in e&&typeof e.depth=="number"&&!("filter"in e)}function pt(e,n){if(!(e==null||n==null||ze(e)!==!0)){if(n.id===bs)return{isHorizontalClassTotalColumn:!0};if(n.id!=null)return{isHorizontalClassColumn:!0}}}const ks=a.div`
|
|
896
|
-
display: flex;
|
|
897
|
-
flex: 1 1 auto;
|
|
898
|
-
width: fit-content;
|
|
899
|
-
min-width: 100%;
|
|
900
|
-
flex-direction: column;
|
|
901
|
-
height: ${e=>e.height}px;
|
|
902
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
903
|
-
`,js=a.div`
|
|
904
|
-
user-select: none;
|
|
905
|
-
display: flex;
|
|
906
|
-
flex: 1 1 auto;
|
|
907
|
-
flex-flow: row;
|
|
908
|
-
justify-content: flex-start;
|
|
909
|
-
align-items: center;
|
|
910
|
-
&:hover {
|
|
911
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
912
|
-
}
|
|
913
|
-
`,Cs=a.div`
|
|
914
|
-
display: flex;
|
|
915
|
-
flex: 1 0 auto;
|
|
916
|
-
flex-direction: row;
|
|
917
|
-
justify-content: flex-end;
|
|
918
|
-
`,Ss=a.div`
|
|
919
|
-
display: flex;
|
|
920
|
-
flex-direction: row;
|
|
921
|
-
justify-content: flex-start;
|
|
922
|
-
`,St=a(S)`
|
|
923
|
-
user-select: none;
|
|
924
|
-
min-width: ${G.balanceWidth};
|
|
925
|
-
max-width: ${G.balanceWidth};
|
|
926
|
-
text-align: right;
|
|
927
|
-
margin-left: ${G.balanceLeftMargin};
|
|
928
|
-
color: ${e=>e.theme.colors.hero};
|
|
929
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
930
|
-
&:hover {
|
|
931
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
932
|
-
}
|
|
933
|
-
`,$s=a.div`
|
|
934
|
-
display: flex;
|
|
935
|
-
flex-direction: row;
|
|
936
|
-
flex-shrink: 2;
|
|
937
|
-
flex-grow: 1;
|
|
938
|
-
align-items: center;
|
|
939
|
-
width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
940
|
-
max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
941
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
942
|
-
${({isSticky:e})=>e?O`
|
|
943
|
-
position: -webkit-sticky;
|
|
944
|
-
position: sticky;
|
|
945
|
-
top: ${c.sp0};
|
|
946
|
-
left: ${c.sp0};
|
|
947
|
-
`:null}
|
|
948
|
-
`,vs=a(S)`
|
|
949
|
-
user-select: none;
|
|
950
|
-
clear: both;
|
|
951
|
-
display: inline-block;
|
|
952
|
-
overflow: hidden;
|
|
953
|
-
white-space: nowrap;
|
|
954
|
-
text-overflow: ellipsis;
|
|
955
|
-
text-align: left;
|
|
956
|
-
margin-left: 35px;
|
|
957
|
-
color: ${e=>e.theme.colors.hero};
|
|
958
|
-
`,_s=({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",s=i!=null&&n!=null&&o!=null&&l!==!0;return t.jsxs(Ss,{children:[t.jsx(St,{isClickable:s,onClick:()=>{s===!0&&i!=null&&n!=null&&o?.(i,n,pt(i,n))},children:Z(n)}),Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(St,{isClickable:!1,children:J(n)}),t.jsx(St,{isClickable:!1,children:r==="compare_mode_percent"?ce(n):de(n)})]}):null]})};function Ls({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isCompareModeOn:s,isForecastModeOn:d,isScrolling:h,isLeaf:u,isLastNode:g,compareMode:p,account:f,onAccountBalanceClick:m}){const y=I(),{common:{strings:{empty:b}}}=W.getLocalizedStrings(),$=f?.accountDescription?f.accountDescription:b,C=f?.accountName?f.accountName:$,B=ti(),_=B.loggedInUserRole!=null&&!si(B.loggedInUserRole),L=_===!0&&f!=null&&s!==!0&&m!=null&&d!==!0,N=L?"pointer":"default",P=(H,T)=>{L===!0&&l[l.length-1]!=null&&m?.(H,T,l[l.length-1],pt(T,l[l.length-1]??null))};return t.jsxs(ks,{height:r,bgColor:n,windowSize:y,children:[t.jsxs(js,{style:{cursor:N},isClickable:L,onClick:()=>f!=null?P(o,f):null,children:[t.jsx($s,{isSticky:i,windowSize:y,bgColor:n,children:t.jsx(vs,{title:C,children:C})}),t.jsx(Cs,{children:l.map((H,T)=>t.jsx(_s,{type:e,balance:H,account:f,onAccountBalanceClick:_===!1||m==null?void 0:(Y,q,se)=>{m(o,Y,q,se)},compareMode:p},T))})]}),t.jsx(As,{isScrolling:h,isLeaf:u,isLastNode:g})]})}function As({isScrolling:e,isLeaf:n,isLastNode:i}){return n||!i?t.jsx(sn,{isScrolling:e,kind:"ac_group_row_separator"}):null}const Bs=a.div`
|
|
959
|
-
display: flex;
|
|
960
|
-
flex: 1 1 auto;
|
|
961
|
-
width: fit-content;
|
|
962
|
-
min-width: 100%;
|
|
963
|
-
flex-direction: column;
|
|
964
|
-
height: ${e=>e.rootHeight-1}px;
|
|
965
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
966
|
-
`,Ws=a.div`
|
|
967
|
-
user-select: none;
|
|
968
|
-
display: flex;
|
|
969
|
-
flex: 1 1 auto;
|
|
970
|
-
flex-flow: row;
|
|
971
|
-
justify-content: flex-start;
|
|
972
|
-
align-items: center;
|
|
973
|
-
`,Is=a.div`
|
|
974
|
-
display: flex;
|
|
975
|
-
flex: 1 0 auto;
|
|
976
|
-
flex-direction: row;
|
|
977
|
-
justify-content: flex-end;
|
|
978
|
-
`,Fn=a.div`
|
|
979
|
-
display: flex;
|
|
980
|
-
flex-direction: row;
|
|
981
|
-
justify-content: flex-start;
|
|
982
|
-
`,Ae=a(S)`
|
|
983
|
-
user-select: none;
|
|
984
|
-
max-width: ${G.balanceWidth};
|
|
985
|
-
min-width: ${G.balanceWidth};
|
|
986
|
-
text-align: right;
|
|
987
|
-
margin-left: ${G.balanceLeftMargin};
|
|
988
|
-
`,Tn=a(S)`
|
|
989
|
-
user-select: none;
|
|
990
|
-
max-width: ${G.balanceWidth};
|
|
991
|
-
min-width: ${G.balanceWidth};
|
|
992
|
-
text-align: right;
|
|
993
|
-
margin-left: ${G.balanceLeftMargin};
|
|
994
|
-
`,Ms=a.div`
|
|
995
|
-
display: flex;
|
|
996
|
-
flex-direction: column;
|
|
997
|
-
align-items: flex-end;
|
|
998
|
-
`,Os=a.div`
|
|
999
|
-
display: flex;
|
|
1000
|
-
flex-direction: row;
|
|
1001
|
-
flex-shrink: 2;
|
|
1002
|
-
flex-grow: 1;
|
|
1003
|
-
align-items: center;
|
|
1004
|
-
height: ${c.sp7};
|
|
1005
|
-
width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
1006
|
-
max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
1007
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1008
|
-
${({isSticky:e})=>e?O`
|
|
1009
|
-
position: -webkit-sticky;
|
|
1010
|
-
position: sticky;
|
|
1011
|
-
top: ${c.sp0};
|
|
1012
|
-
left: ${c.sp0};
|
|
1013
|
-
`:null}
|
|
1014
|
-
`,Ns=a(S)`
|
|
1015
|
-
user-select: none;
|
|
1016
|
-
user-select: none;
|
|
1017
|
-
clear: both;
|
|
1018
|
-
display: inline-block;
|
|
1019
|
-
overflow: hidden;
|
|
1020
|
-
white-space: nowrap;
|
|
1021
|
-
text-overflow: ellipsis;
|
|
1022
|
-
text-align: left;
|
|
1023
|
-
margin-left: ${c.sp2};
|
|
1024
|
-
`,Ps=({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(Ms,{children:[t.jsxs(Fn,{children:[t.jsx(Ae,{style:{color:i.toString()},children:Z(n)}),Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(Ae,{style:{color:i.toString()},children:J(n)}),t.jsx(Ae,{style:{color:i.toString()},children:o==="compare_mode_percent"?ce(n):de(n)})]}):null]}),t.jsxs(Fn,{children:[r!==0?t.jsx(Tn,{style:{color:i.toString()},children:fe("0,0%",r)}):null,Pe(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(Tn,{style:{color:i.toString()},children:fe("0,0%",l)}):t.jsx(Ae,{}),t.jsx(Ae,{})]}):null]})]})};function cn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:s,sectionColor:d,isScrolling:h,isOpen:u,isLeaf:g,compareMode:p,onClick:f}){const m=I(),[y,b]=z.useState(!1),$=!g,C=$?"pointer":"default",B=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(Bs,{"data-testid":x("section-row-root-container",o),rootHeight:r,bgColor:n,windowSize:m,children:[t.jsxs(Ws,{"data-testid":x("section-row-container",o),style:{cursor:C},onClick:()=>f?.(o),onMouseOver:()=>b(!0),onMouseLeave:()=>b(!1),children:[t.jsxs(Os,{"data-testid":x("section-row-name-container",o),isSticky:i,windowSize:m,bgColor:n,children:[t.jsx(je,{"data-testid":x("section-row-circle-with-letter",o),color:A(d),showCollapsedIcon:!u,showIcon:$&&y,firstLetter:B}),t.jsx(Ns,{"data-testid":x("section-row-name",o),style:{color:d.toString()},children:l})]}),t.jsx(Is,{"data-testid":x("section-row-balances-container",o),children:s.map((_,L)=>t.jsx(Ps,{"data-testid":x("section-row-balance-element",e),type:e,sectionName:l,balance:_,color:d,compareMode:p},L))})]}),t.jsx(zs,{isScrolling:h,isLeaf:g,isOpen:u})]})}function zs({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(sn,{isScrolling:e,kind:"section_row_separator"}):null}const Fs=a.div`
|
|
1025
|
-
display: flex;
|
|
1026
|
-
flex: 1 1 auto;
|
|
1027
|
-
width: fit-content;
|
|
1028
|
-
min-width: 100%;
|
|
1029
|
-
flex-direction: column;
|
|
1030
|
-
height: ${e=>e.height}px;
|
|
1031
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1032
|
-
`,Ts=a.div`
|
|
1033
|
-
user-select: none;
|
|
1034
|
-
display: flex;
|
|
1035
|
-
flex: 1 1 auto;
|
|
1036
|
-
flex-flow: row;
|
|
1037
|
-
justify-content: flex-start;
|
|
1038
|
-
align-items: center;
|
|
1039
|
-
`,Vs=a.div`
|
|
1040
|
-
display: flex;
|
|
1041
|
-
flex: 1 0 auto;
|
|
1042
|
-
flex-direction: row;
|
|
1043
|
-
justify-content: flex-end;
|
|
1044
|
-
`,Ds=a.div`
|
|
1045
|
-
display: flex;
|
|
1046
|
-
flex-direction: row;
|
|
1047
|
-
justify-content: flex-start;
|
|
1048
|
-
`,Ui=a(S)`
|
|
1049
|
-
user-select: none;
|
|
1050
|
-
min-width: ${G.balanceWidth};
|
|
1051
|
-
max-width: ${G.balanceWidth};
|
|
1052
|
-
text-align: right;
|
|
1053
|
-
margin-left: ${G.balanceLeftMargin};
|
|
1054
|
-
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1055
|
-
`,Gs=a(Ui)`
|
|
1056
|
-
color: ${e=>e.theme.colors.hero};
|
|
1057
|
-
&:hover {
|
|
1058
|
-
color: inherit;
|
|
1059
|
-
}
|
|
1060
|
-
`,Rs=a.div`
|
|
1061
|
-
display: flex;
|
|
1062
|
-
flex-direction: row;
|
|
1063
|
-
flex-shrink: 2;
|
|
1064
|
-
flex-grow: 1;
|
|
1065
|
-
align-items: center;
|
|
1066
|
-
width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
1067
|
-
max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
1068
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1069
|
-
${({isSticky:e})=>e?O`
|
|
1070
|
-
position: -webkit-sticky;
|
|
1071
|
-
position: sticky;
|
|
1072
|
-
top: ${c.sp0};
|
|
1073
|
-
left: ${c.sp0};
|
|
1074
|
-
`:null}
|
|
1075
|
-
`,Es=a(S)`
|
|
1076
|
-
user-select: none;
|
|
1077
|
-
clear: both;
|
|
1078
|
-
display: inline-block;
|
|
1079
|
-
overflow: hidden;
|
|
1080
|
-
white-space: nowrap;
|
|
1081
|
-
text-overflow: ellipsis;
|
|
1082
|
-
text-align: left;
|
|
1083
|
-
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1084
|
-
`,$t=a(S)`
|
|
1085
|
-
user-select: none;
|
|
1086
|
-
min-width: ${G.balanceWidth};
|
|
1087
|
-
max-width: ${G.balanceWidth};
|
|
1088
|
-
text-align: right;
|
|
1089
|
-
margin-left: ${G.balanceLeftMargin};
|
|
1090
|
-
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1091
|
-
`,Hs=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?Gs:Ui;return t.jsxs(Ds,{children:[re(e)===!0?t.jsx(r,{children:Z(n)}):null,Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx($t,{children:Z(n)}),t.jsx($t,{children:J(n)}),t.jsx($t,{children:o==="compare_mode_percent"?ce(n):de(n)})]}):null]})};function Ks({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:s,isLeaf:d,compareMode:h,onClick:u}){const g=I(),p=!d,f=p?"pointer":"default";return t.jsx(Fs,{height:r,bgColor:n,windowSize:g,children:t.jsxs(Ts,{style:{cursor:f},isClickable:p,onClick:()=>u?.(o),children:[t.jsx(Rs,{bgColor:n,isSticky:i,windowSize:g,children:t.jsx(Es,{children:l})}),t.jsx(Vs,{children:s.map((m,y)=>t.jsx(Hs,{type:e,balance:m,collapsed:!1,compareMode:h},y))})]})})}const $e={net_burn_or_income:{income:{color:new A(V.graphColor04),hoverColor:new A(V.graphColor04Dark)},cogs:{color:new A(V.graphColor10),hoverColor:new A(V.graphColor10Dark)},expenses:{color:new A(V.graphColor32),hoverColor:new A(V.graphColor32Dark)},"Gross Burn":{color:new A(Q.neutralGrey2Dark),hoverColor:new A(Q.neutralGrey2Dark)},"Net Burn":{color:new A(V.graphColor13),hoverColor:new A(V.graphColor13Dark)},"Net Income":{color:new A(V.graphColor13),hoverColor:new A(V.graphColor13Dark)}},revenue:{income:{color:new A(V.graphColor28),hoverColor:new A(V.graphColor28Dark)},cogs:{color:new A(V.graphColor17),hoverColor:new A(V.graphColor17Dark)},"Gross Margin":{color:new A(V.graphColor10),hoverColor:new A(V.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new A(V.graphColor33),hoverColor:new A(V.graphColor33Dark)},cash_out:{color:new A(V.graphColor02),hoverColor:new A(V.graphColor02Dark)},"Net Cash Flow":{color:new A(V.graphColor35),hoverColor:new A(V.graphColor35Dark)}},default:{color:new A(Q.neutralGrey2Dark),hoverColor:new A(Q.neutralGrey2Dark)}},dn=(e,n)=>e.startsWith("net_burn_or_income")===!0?n!=null?$e.net_burn_or_income[n]:$e.default:e.startsWith("revenue")===!0?n!=null?$e.revenue[n]:$e.default:e.startsWith("cash_in_cash_out")===!0&&n!=null?$e.cash_in_cash_out[n]:$e.default,Ys=(e,n,i,o,r,l,s,d,h,u,g)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const p=i.element.data,f=Ve(i.config.reportId)===!0?Ri("no_filter",i.config.filterAccountsWithNilBalances):dt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),m=ee(f.acBalanceSelector(p),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Ls,{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:s,isLeaf:d,isLastNode:h,compareMode:u,account:p,onAccountBalanceClick:g==null?void 0:(y,b,$,C)=>{g?.(y,b,$,C)}})},Us=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,m=dt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),y=ee(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(ms,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountGroupName:f.accountGroupName,compareMode:g,accountGroupBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},Zi=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=dn(i.config.reportId,i.element.sectionType),m=i.element.data,y=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(cn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionColor:f.color,sectionName:i.element.title,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:b=>{p?.(b)}})},Zs=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=dn(i.config.reportId,i.element.sectionType),m=i.element.data,y=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(cn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:b=>{p?.(b)}})},qi=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=dn(i.config.reportId,i.element.title),m=i.element.data,y=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(cn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:b=>{p?.(b)}})},Xi=(e,n,i,o,r,l,s,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(Ks,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,title:i.element.title,height:o,isLeaf:d,compareMode:s,totalBalances:u.balances})},qs=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ei,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Xs=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ki,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),hn=20,Js=e=>{const n=[];return e&&Object.values(e).forEach(i=>{n.push(i)}),n.reverse()},Qs=a.div`
|
|
1092
|
-
display: flex;
|
|
1093
|
-
flex: 1 1 auto;
|
|
1094
|
-
height: 1px;
|
|
1095
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
1096
|
-
`,ec=a.div`
|
|
1097
|
-
display: flex;
|
|
1098
|
-
height: 1px;
|
|
1099
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
1100
|
-
`;function Wt({kind:e,isScrolling:n}){switch(e){case"account_class_row_separator":return t.jsx(Qs,{isScrolling:n});case"section_row_separator":case"vendor_separator":return t.jsx(ec,{isScrolling:n});case"heading_row_separator":return null}}const tc=a.div`
|
|
1101
|
-
position: relative;
|
|
1102
|
-
`,nc=a.div`
|
|
1103
|
-
height: ${e=>e.height}px;
|
|
1104
|
-
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1105
|
-
width: 1px;
|
|
1106
|
-
`;a.div`
|
|
1107
|
-
height: 39px;
|
|
1108
|
-
width: 2px;
|
|
1109
|
-
`;const ic=a.div`
|
|
1110
|
-
position: relative;
|
|
1111
|
-
margin-right: ${c.sp3};
|
|
1112
|
-
&::after {
|
|
1113
|
-
content: "";
|
|
1114
|
-
position: absolute;
|
|
1115
|
-
top: 20px;
|
|
1116
|
-
border-top: 1px solid ${e=>e.theme.colors.grey1};
|
|
1117
|
-
width: 18px;
|
|
1118
|
-
}
|
|
1119
|
-
`,oc=a.div`
|
|
1120
|
-
height: ${c.sp6};
|
|
1121
|
-
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1122
|
-
width: 1px;
|
|
1123
|
-
`,rc=a.div`
|
|
1124
|
-
position: relative;
|
|
1125
|
-
margin-right: ${c.sp3};
|
|
1126
|
-
&::after {
|
|
1127
|
-
content: "";
|
|
1128
|
-
position: absolute;
|
|
1129
|
-
top: ${e=>e.height}px;
|
|
1130
|
-
border-top: 1px solid ${e=>e.theme.colors.grey1};
|
|
1131
|
-
width: 18px;
|
|
1132
|
-
}
|
|
1133
|
-
`,ac=a.div`
|
|
1134
|
-
height: ${e=>e.height}px;
|
|
1135
|
-
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1136
|
-
margin-bottom: ${e=>e.height}px;
|
|
1137
|
-
width: 1px;
|
|
1138
|
-
`,Ji=({height:e})=>t.jsx(tc,{children:t.jsx(nc,{height:e})}),lc=({height:e})=>t.jsx(rc,{height:e,children:t.jsx(ac,{height:e})}),sc=()=>t.jsx(ic,{children:t.jsx(oc,{})}),j={balanceHeight:c.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 cc(e){return["section","flux_vendor_account_class_row","flux_vendor_row"].includes(e)}const Vn=W.getLocalizedStrings(),dc=a.div`
|
|
1139
|
-
display: flex;
|
|
1140
|
-
flex-shrink: 0;
|
|
1141
|
-
width: ${j.varianceContainerWidth};
|
|
1142
|
-
min-width: ${j.varianceContainerWidth};
|
|
1143
|
-
margin-left: 12px;
|
|
1144
|
-
gap: ${c.sp1};
|
|
1145
|
-
flex-direction: row;
|
|
1146
|
-
justify-content: flex-end;
|
|
1147
|
-
text-align: center;
|
|
1148
|
-
`,hc=a.div`
|
|
1149
|
-
height: ${c.sp4};
|
|
1150
|
-
border-radius: ${c.sp1};
|
|
1151
|
-
padding: 2px ${c.sp1};
|
|
1152
|
-
color: ${e=>e.textColor.hex()};
|
|
1153
|
-
`,uc=a.div`
|
|
1154
|
-
border-radius: ${c.sp1};
|
|
1155
|
-
padding: 2px ${c.sp1};
|
|
1156
|
-
height: ${c.sp4};
|
|
1157
|
-
justify-content: center;
|
|
1158
|
-
text-align: center;
|
|
1159
|
-
color: ${e=>e.textColor.hex()};
|
|
1160
|
-
background-color: ${e=>e.bgColor.hex()};
|
|
1161
|
-
`,gt=({amount:e,percentage:n,currency:i})=>{const o=le();return t.jsxs(dc,{children:[t.jsx(hc,{textColor:e>0?new A(o.colors.brandColorGoldDark):new A(o.colors.success),children:U("0,0",Jo(Math.abs(e),i.currencyCode,i.currencySymbol))}),t.jsx(uc,{textColor:e>0?new A(o.colors.brandColorGoldDark):new A(o.colors.success),bgColor:e>0?new A(Q.brandColorGoldLight):new A(Q.successLight),children:`${Vo(Math.abs(n)).format(Vn.common.numberFormat.roundedOff)}${Vn.common.strings.percentage}`})]})},Dn=W.getLocalizedStrings(),pc=a.div`
|
|
1162
|
-
display: flex;
|
|
1163
|
-
flex: 1 1 auto;
|
|
1164
|
-
width: fit-content;
|
|
1165
|
-
min-width: 100%;
|
|
1166
|
-
flex-direction: column;
|
|
1167
|
-
`,gc=a.div`
|
|
1168
|
-
display: flex;
|
|
1169
|
-
flex: 1 1 auto;
|
|
1170
|
-
flex-flow: row;
|
|
1171
|
-
justify-content: flex-start;
|
|
1172
|
-
align-items: center;
|
|
1173
|
-
width: 100%;
|
|
1174
|
-
color: ${e=>e.isHoveredByParent?e.theme.colors.primary:e.theme.colors.hero};
|
|
1175
|
-
&:hover {
|
|
1176
|
-
color: ${e=>e.theme.colors.primary};
|
|
1177
|
-
}
|
|
1178
|
-
`,eo=a.div`
|
|
1179
|
-
display: flex;
|
|
1180
|
-
flex-direction: column;
|
|
1181
|
-
`,to=a.div`
|
|
1182
|
-
display: flex;
|
|
1183
|
-
height: ${c.sp4};
|
|
1184
|
-
`,fc=a.div`
|
|
1185
|
-
display: flex;
|
|
1186
|
-
flex-direction: row;
|
|
1187
|
-
justify-content: flex-start;
|
|
1188
|
-
`,xc=a(S)`
|
|
1189
|
-
min-width: ${j.balanceWidth};
|
|
1190
|
-
max-width: ${j.balanceWidth};
|
|
1191
|
-
text-align: right;
|
|
1192
|
-
margin-left: 12px;
|
|
1193
|
-
`,mc=a.div`
|
|
1194
|
-
display: flex;
|
|
1195
|
-
flex-direction: column;
|
|
1196
|
-
flex-shrink: 2;
|
|
1197
|
-
flex-grow: 1;
|
|
1198
|
-
align-items: center;
|
|
1199
|
-
width: ${j.categoryClassContainerWidth};
|
|
1200
|
-
max-width: ${j.categoryClassContainerWidth};
|
|
1201
|
-
padding-left: 67.5px;
|
|
1202
|
-
${({isSticky:e})=>e?O`
|
|
1203
|
-
position: sticky;
|
|
1204
|
-
top: ${c.sp0};
|
|
1205
|
-
left: ${c.sp0};
|
|
1206
|
-
display: flex;
|
|
1207
|
-
`:null}
|
|
1208
|
-
`,wc=a.div`
|
|
1209
|
-
display: flex;
|
|
1210
|
-
height: ${c.sp4};
|
|
1211
|
-
width: 100%;
|
|
1212
|
-
`,yc=a.div`
|
|
1213
|
-
display: flex;
|
|
1214
|
-
flex-direction: row;
|
|
1215
|
-
flex-shrink: 2;
|
|
1216
|
-
flex-grow: 1;
|
|
1217
|
-
align-items: center;
|
|
1218
|
-
width: 100%;
|
|
1219
|
-
`,bc=a(ke)`
|
|
1220
|
-
display: flex;
|
|
1221
|
-
width: ${j.categoryClassHeaderWidth};
|
|
1222
|
-
margin-left: ${c.sp3};
|
|
1223
|
-
color: ${e=>e.theme.colors.hero};
|
|
1224
|
-
`,kc=a(ke)`
|
|
1225
|
-
display: flex;
|
|
1226
|
-
width: ${j.categoryClassHeaderWidth};
|
|
1227
|
-
margin-left: ${c.sp4};
|
|
1228
|
-
color: ${e=>e.theme.colors.hero};
|
|
1229
|
-
`,jc=a(S)`
|
|
1230
|
-
clear: both;
|
|
1231
|
-
display: flex;
|
|
1232
|
-
overflow: hidden;
|
|
1233
|
-
white-space: nowrap;
|
|
1234
|
-
text-overflow: ellipsis;
|
|
1235
|
-
text-align: left;
|
|
1236
|
-
margin-left: 2px;
|
|
1237
|
-
width: ${j.categoryClassValueWidth};
|
|
1238
|
-
max-width: ${j.categoryClassValueWidth};
|
|
1239
|
-
`,Cc=a(S)`
|
|
1240
|
-
display: flex;
|
|
1241
|
-
align-items: center;
|
|
1242
|
-
overflow: hidden;
|
|
1243
|
-
white-space: nowrap;
|
|
1244
|
-
text-overflow: ellipsis;
|
|
1245
|
-
text-align: left;
|
|
1246
|
-
margin-left: ${c.sp4};
|
|
1247
|
-
margin-right: ${c.sp3};
|
|
1248
|
-
width: ${j.categoryClassValueWidth};
|
|
1249
|
-
max-width: ${j.categoryClassValueWidth};
|
|
1250
|
-
`,Sc=a.div`
|
|
1251
|
-
display: flex;
|
|
1252
|
-
margin-left: ${c.sp7};
|
|
1253
|
-
margin-right: calc(
|
|
1254
|
-
${j.statusContainerWidth} +
|
|
1255
|
-
${j.statusLeftMargin}
|
|
1256
|
-
);
|
|
1257
|
-
`,$c=a.div`
|
|
1258
|
-
position: sticky;
|
|
1259
|
-
left: 0;
|
|
1260
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1261
|
-
display: flex;
|
|
1262
|
-
`,vc=a.div`
|
|
1263
|
-
overflow-x: auto;
|
|
1264
|
-
display: flex;
|
|
1265
|
-
flex: 1;
|
|
1266
|
-
justify-content: flex-end;
|
|
1267
|
-
`,_c=({isBalanceRowFirstNode:e=!1,balance:n})=>{const i=n!=null;return t.jsxs(eo,{children:[e?t.jsx(to,{}):null,t.jsx(fc,{children:t.jsx(xc,{isClickable:i,children:Z(n)})})]})};function Lc({varianceAmount:e,variancePercentage:n,currency:i,isSticky:o,balances:r,isScrolling:l,nodeMetadata:s,isLeaf:d,isLastNode:h,accountAndClass:u,isHoveredByParent:g}){const{common:{strings:{hyphen:p}}}=W.getLocalizedStrings(),f=u.accountBase?.accountDescription?u.accountBase?.accountDescription:p,m=u.accountBase?.accountName?u.accountBase?.accountName:f,y=u.classBase?.className?u.classBase?.className:p,b=s?.accountAndClassRowMetadata.isLastNode;return t.jsxs(pc,{children:[t.jsxs(gc,{style:{cursor:"default"},isHoveredByParent:g,children:[t.jsx($c,{children:t.jsxs(mc,{className:"flux-class-and-account-value-container",isSticky:o,children:[!!s?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(wc,{children:[t.jsx(Ji,{height:j.lineComponentHeight}),t.jsx(bc,{children:Dn.common.texts.category}),t.jsx(kc,{children:Dn.common.texts.class})]}),t.jsxs(yc,{children:[b===!0?t.jsx(lc,{height:j.lineLComponentHeight}):t.jsx(sc,{}),t.jsx(jc,{title:m,children:m}),t.jsx(Cc,{title:y,children:y})]})]})}),t.jsx(vc,{children:t.jsxs(Sc,{children:[r.map(($,C)=>t.jsx(_c,{balance:$,isBalanceRowFirstNode:s?.accountAndClassRowMetadata.isFirstNode},C)),t.jsxs(eo,{children:[!!s?.accountAndClassRowMetadata.isFirstNode&&t.jsx(to,{}),t.jsx(gt,{amount:e,percentage:n,currency:i})]})]})})]}),t.jsx(Ac,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:s?.isVendorLastChild??!0})]})}function Ac({isScrolling:e,isLastNode:n,isParentLastChild:i}){return n&&i?t.jsx(Wt,{isScrolling:e,kind:"vendor_separator"}):n?t.jsx(Wt,{isScrolling:e,kind:"account_class_row_separator"}):null}function Bc(){return t.jsxs(Wc,{children:[t.jsxs(Mc,{children:[t.jsxs(ve,{width:j.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(Te,{width:w[4],height:w[4]}),t.jsx(K,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:c.sp2}})]}),t.jsx(ve,{width:j.categoryRowsSkeletonContainerWidth,children:t.jsx(K,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:c.sp2}})})]}),t.jsxs(Ic,{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:c.sp1}})]}),t.jsx(ve,{width:j.titleWidthMedium,children:t.jsx(K,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const Wc=a.div`
|
|
1268
|
-
display: flex;
|
|
1269
|
-
flex-direction: row;
|
|
1270
|
-
width: 100%;
|
|
1271
|
-
margin-left: ${c.sp8};
|
|
1272
|
-
.vendor-title {
|
|
1273
|
-
justify-content: flex-start;
|
|
1274
|
-
}
|
|
1275
|
-
`,ve=a.div`
|
|
1276
|
-
display: flex;
|
|
1277
|
-
flex-direction: row;
|
|
1278
|
-
align-items: center;
|
|
1279
|
-
min-width: ${e=>e.width};
|
|
1280
|
-
color: ${e=>e.theme.colors.primary};
|
|
1281
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1282
|
-
justify-content: flex-end;
|
|
1283
|
-
|
|
1284
|
-
:last-of-type {
|
|
1285
|
-
justify-content: center;
|
|
1286
|
-
}
|
|
1287
|
-
`,Ic=a.div`
|
|
1288
|
-
display: flex;
|
|
1289
|
-
`,Mc=a.div`
|
|
1290
|
-
display: flex;
|
|
1291
|
-
width: ${j.vendorContainerWidth};
|
|
1292
|
-
position: sticky;
|
|
1293
|
-
left: ${c.sp8};
|
|
1294
|
-
top: 0;
|
|
1295
|
-
z-index: 10;
|
|
1296
|
-
`,Oc=a.div`
|
|
1297
|
-
display: flex;
|
|
1298
|
-
flex: 1 1 auto;
|
|
1299
|
-
width: fit-content;
|
|
1300
|
-
min-width: 100%;
|
|
1301
|
-
flex-direction: column;
|
|
1302
|
-
height: ${e=>e.heightValue}px;
|
|
1303
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1304
|
-
`,Nc=a.div`
|
|
1305
|
-
display: flex;
|
|
1306
|
-
flex: 1 1 auto;
|
|
1307
|
-
flex-flow: row;
|
|
1308
|
-
justify-content: flex-start;
|
|
1309
|
-
align-items: center;
|
|
1310
|
-
`,Pc=a.div`
|
|
1311
|
-
display: flex;
|
|
1312
|
-
flex-direction: row;
|
|
1313
|
-
justify-content: flex-start;
|
|
1314
|
-
`,zc=a(S)`
|
|
1315
|
-
max-width: ${j.balanceWidth};
|
|
1316
|
-
min-width: ${j.balanceWidth};
|
|
1317
|
-
text-align: right;
|
|
1318
|
-
margin-left: ${j.balanceLeftMargin};
|
|
1319
|
-
color: ${({color:e})=>e};
|
|
1320
|
-
`,Fc=a.div`
|
|
1321
|
-
display: flex;
|
|
1322
|
-
flex-direction: row;
|
|
1323
|
-
flex-shrink: 2;
|
|
1324
|
-
align-items: center;
|
|
1325
|
-
height: 100%;
|
|
1326
|
-
width: ${j.sectionContainerWidth};
|
|
1327
|
-
min-width: ${j.sectionContainerWidth};
|
|
1328
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1329
|
-
${({isSticky:e})=>e&&O`
|
|
1330
|
-
position: sticky;
|
|
1331
|
-
top: ${c.sp0};
|
|
1332
|
-
left: ${c.sp0};
|
|
1333
|
-
`}
|
|
1334
|
-
`,Tc=a(S)`
|
|
1335
|
-
clear: both;
|
|
1336
|
-
display: inline-block;
|
|
1337
|
-
overflow: hidden;
|
|
1338
|
-
white-space: nowrap;
|
|
1339
|
-
text-overflow: ellipsis;
|
|
1340
|
-
text-align: left;
|
|
1341
|
-
margin-left: ${c.sp2};
|
|
1342
|
-
color: ${({color:e})=>e};
|
|
1343
|
-
`,Vc=a(Ht)`
|
|
1344
|
-
color: ${e=>e.theme.colors.primary};
|
|
1345
|
-
width: ${c.sp3};
|
|
1346
|
-
height: ${c.sp3};
|
|
1347
|
-
`,Dc=a.div`
|
|
1348
|
-
display: flex;
|
|
1349
|
-
&:hover {
|
|
1350
|
-
.flux-section-checkbox {
|
|
1351
|
-
background-color: transparent;
|
|
1352
|
-
}
|
|
1353
|
-
}
|
|
1354
|
-
`,Gc=a.div`
|
|
1355
|
-
display: flex;
|
|
1356
|
-
width: ${c.sp8};
|
|
1357
|
-
`,Rc=a.div`
|
|
1358
|
-
display: flex;
|
|
1359
|
-
margin-left: ${c.sp7};
|
|
1360
|
-
flex: 1 1 auto;
|
|
1361
|
-
justify-content: flex-end;
|
|
1362
|
-
margin-right: calc(
|
|
1363
|
-
${j.statusContainerWidth} +
|
|
1364
|
-
${j.statusLeftMargin}
|
|
1365
|
-
);
|
|
1366
|
-
`,Ec=({balance:e,color:n})=>t.jsx(Pc,{children:t.jsx(zc,{color:n,children:Z(e)})}),Hc=Zo.memo(function({currency:e,sectionId:n,selectedSectionsIds:i,backgroundColor:o,isSticky:r,treeNodeId:l,height:s,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:g,variancePercentage:p,sectionColor:f,isScrolling:m,isOpen:y,isLeaf:b,idsForReview:$,sectionToggled:C,onSectionCheckboxClick:B}){const _=I(),[L,N]=z.useState($.length>0),[P,H]=z.useState(!1),T=i.includes(n),Y=!b,q=$.length===hn&&!T,se=d?.[0]?.toUpperCase()??"",X=z.useCallback(oe=>{B?.(n,oe.target.checked)},[n,B]),ue=x("flux-analysis-section-expand-collapse",n),ye=x("flux-analysis-section-row",n),pe=x("flux-analysis-section-checkbox",n);return t.jsxs(Oc,{heightValue:s,bgColor:o,"data-testid":ye,children:[t.jsxs(Nc,{style:{cursor:Y?"pointer":"default"},onClick:()=>C?.(l),onMouseOver:()=>{H(!0),N(!0)},onMouseLeave:()=>{H(!1),$.length===0&&N(!1)},children:[t.jsxs(Fc,{className:"flux-section-name-container",isSticky:r,windowSize:_,bgColor:o,children:[h&&L&&y?t.jsx(Dc,{children:t.jsx(Dt,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox","data-testid":pe,icon:t.jsx(Gt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(Vc,{}),checked:T,id:l,disabled:q,onChange:X,onClick:oe=>oe.stopPropagation(),style:{padding:"20px",pointerEvents:q?"none":"auto"}})}):t.jsx(Gc,{}),t.jsx(je,{color:A(f),dataTestId:ue,firstLetter:se,showCollapsedIcon:!y,showIcon:P&&Y}),t.jsx(Tc,{color:f.toString(),children:d})]}),t.jsxs(Rc,{children:[u.map((oe,Ce)=>t.jsx(Ec,{sectionName:d,balance:oe,color:f.toString()},Ce)),t.jsx(gt,{amount:g,percentage:p,currency:e})]})]}),t.jsx(Kc,{isScrolling:m,isLeaf:b,isOpen:y})]})});function Kc({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(Wt,{isScrolling:e,kind:"section_row_separator"}):null}function Yc(){const e=I();return t.jsxs(Uc,{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 Uc=a.div`
|
|
1367
|
-
display: flex;
|
|
1368
|
-
flex-direction: row;
|
|
1369
|
-
width: 100%;
|
|
1370
|
-
margin-left: ${c.sp8};
|
|
1371
|
-
`,Be=a.div`
|
|
1372
|
-
display: flex;
|
|
1373
|
-
flex-direction: row;
|
|
1374
|
-
align-items: center;
|
|
1375
|
-
margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:c.sp4};
|
|
1376
|
-
min-width: ${e=>e.width};
|
|
1377
|
-
color: ${e=>e.theme.colors.primary};
|
|
1378
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1379
|
-
justify-content: flex-end;
|
|
1380
|
-
:first-of-type {
|
|
1381
|
-
justify-content: flex-start;
|
|
1382
|
-
}
|
|
1383
|
-
`,{common:Zc,expenseAutomation:{fluxAnalysis:qc},vendors:{opExByVendor:Xc}}=W.getLocalizedStrings(),Jc=a.div`
|
|
1384
|
-
display: flex;
|
|
1385
|
-
flex: 1 1 auto;
|
|
1386
|
-
width: fit-content;
|
|
1387
|
-
min-width: 100%;
|
|
1388
|
-
height: ${e=>`${e.heightValue}px`};
|
|
1389
|
-
flex-flow: row;
|
|
1390
|
-
justify-content: flex-start;
|
|
1391
|
-
align-items: center;
|
|
1392
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1393
|
-
`,It=a.div`
|
|
1394
|
-
display: flex;
|
|
1395
|
-
max-height: ${c.sp8};
|
|
1396
|
-
min-height: ${c.sp8};
|
|
1397
|
-
min-width: ${e=>e.width!=null?e.width:j.balanceHeaderWidth};
|
|
1398
|
-
justify-content: center;
|
|
1399
|
-
align-items: center;
|
|
1400
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1401
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1402
|
-
border-radius: ${c.sp2};
|
|
1403
|
-
margin-left: ${j.balanceLeftMargin};
|
|
1404
|
-
color: ${e=>e.theme.colors.primary};
|
|
1405
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
1406
|
-
`,Qc=a(S)`
|
|
1407
|
-
display: flex;
|
|
1408
|
-
flex-direction: row;
|
|
1409
|
-
justify-content: center;
|
|
1410
|
-
align-items: center;
|
|
1411
|
-
height: ${j.balanceHeight};
|
|
1412
|
-
max-width: ${j.balanceHeaderWidth};
|
|
1413
|
-
width: 138px;
|
|
1414
|
-
text-align: center;
|
|
1415
|
-
`,ed=a.div`
|
|
1416
|
-
display: flex;
|
|
1417
|
-
cursor: pointer;
|
|
1418
|
-
`,td=a.div`
|
|
1419
|
-
display: flex;
|
|
1420
|
-
cursor: pointer;
|
|
1421
|
-
justify-content: center;
|
|
1422
|
-
align-items: center;
|
|
1423
|
-
color: ${e=>e.theme.colors.primary};
|
|
1424
|
-
`,nd=a.div`
|
|
1425
|
-
display: flex;
|
|
1426
|
-
flex-direction: row;
|
|
1427
|
-
z-index: 1;
|
|
1428
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1429
|
-
padding-left: ${c.sp8};
|
|
1430
|
-
${({isSticky:e})=>e?O`
|
|
1431
|
-
top: ${c.sp0};
|
|
1432
|
-
left: ${c.sp0};
|
|
1433
|
-
display: flex;
|
|
1434
|
-
position: sticky;
|
|
1435
|
-
`:null};
|
|
1436
|
-
`,id=a.div`
|
|
1437
|
-
height: ${c.sp8};
|
|
1438
|
-
display: flex;
|
|
1439
|
-
flex-direction: row;
|
|
1440
|
-
align-items: center;
|
|
1441
|
-
min-width: ${j.vendorContainerWidth};
|
|
1442
|
-
color: ${e=>e.theme.colors.primary};
|
|
1443
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1444
|
-
`,od=a(S)`
|
|
1445
|
-
display: flex;
|
|
1446
|
-
gap: 6px;
|
|
1447
|
-
align-items: baseline;
|
|
1448
|
-
color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
|
|
1449
|
-
`,Mt=a.div`
|
|
1450
|
-
display: flex;
|
|
1451
|
-
cursor: pointer;
|
|
1452
|
-
`,Ot=a.div`
|
|
1453
|
-
color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
|
|
1454
|
-
`,Nt=a(Yt)`
|
|
1455
|
-
width: ${j.sortIconDimension};
|
|
1456
|
-
height: ${j.sortIconDimension};
|
|
1457
|
-
margin-left: ${c.sp2};
|
|
1458
|
-
margin-top: ${c.sp1};
|
|
1459
|
-
`,Pt=a(Ut)`
|
|
1460
|
-
width: ${j.sortIconDimension};
|
|
1461
|
-
height: ${j.sortIconDimension};
|
|
1462
|
-
margin-left: ${c.sp2};
|
|
1463
|
-
margin-top: ${c.sp1};
|
|
1464
|
-
`,rd=a.div`
|
|
1465
|
-
display: flex;
|
|
1466
|
-
margin-left: ${c.sp7};
|
|
1467
|
-
flex: 1 1 auto;
|
|
1468
|
-
justify-content: flex-end;
|
|
1469
|
-
`,ad=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(It,{isClickable:!1,children:t.jsx(Qc,{children:Ge(e,n,i)})}),ld=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(ad,{firstMonthOfFY:e,timeframeTick:n,timeframe:i}),sd=({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(od,{isBulkSelected:i,isSortedByKey:e==="vendor",children:t.jsxs(Mt,{onClick:r,"data-testid":x("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Xc.vendor,t.jsx(Ot,{isBulkSelected:i,isSortedByKey:e==="vendor",children:l==="ascending"?t.jsx(Nt,{}):t.jsx(Pt,{})})]})})};function cd({backgroundColor:e,height:n,isBulkSelected:i,sortKey:o="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:s,timeframeTicks:d,onSortOrderChanged:h}){const u=I(),g=(p,f)=>{h?.(p,f)};return t.jsxs(Jc,{heightValue:n,bgColor:e,children:[t.jsx(nd,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(id,{windowSize:u,children:t.jsx(sd,{sortKey:o,sortOrder:r,isBulkSelected:i,onSortOrderChanged:g})})}),t.jsxs(rd,{children:[d.map((p,f)=>t.jsx(ld,{firstMonthOfFY:l,timeframeTick:p,timeframe:s},f)),t.jsx(It,{isClickable:!1,width:j.varianceHeaderContainerWidth,children:t.jsxs(Mt,{onClick:()=>h?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":x("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(ed,{children:qc.variance}),t.jsx(Ot,{isBulkSelected:i,isSortedByKey:o==="variance",children:(o==="variance"?r:"ascending")==="ascending"?t.jsx(Nt,{}):t.jsx(Pt,{})})]})}),t.jsx(It,{isClickable:!1,width:j.statusContainerWidth,children:t.jsxs(Mt,{onClick:()=>{h?.(r==="ascending"?"descending":"ascending","status")},"data-testid":x("flux-analysis-report-timeframe-row-status"),children:[t.jsx(td,{children:Zc.texts.reviewStatus}),t.jsx(Ot,{isBulkSelected:i,isSortedByKey:o==="status",children:(o==="status"?r:"ascending")==="ascending"?t.jsx(Nt,{}):t.jsx(Pt,{})})]})})]})]})}const dd=a.div`
|
|
1470
|
-
display: flex;
|
|
1471
|
-
flex: 1 1 auto;
|
|
1472
|
-
width: fit-content;
|
|
1473
|
-
min-width: 100%;
|
|
1474
|
-
|
|
1475
|
-
flex-direction: column;
|
|
1476
|
-
height: ${e=>`${e.heightValue}px`};
|
|
1477
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1478
|
-
`,hd=a.div`
|
|
1479
|
-
cursor: default;
|
|
1480
|
-
user-select: none;
|
|
1481
|
-
display: flex;
|
|
1482
|
-
flex: 1 1 auto;
|
|
1483
|
-
flex-flow: row;
|
|
1484
|
-
justify-content: flex-start;
|
|
1485
|
-
align-items: center;
|
|
1486
|
-
`,ud=a.div`
|
|
1487
|
-
display: flex;
|
|
1488
|
-
flex-direction: row;
|
|
1489
|
-
`,pd=a.div`
|
|
1490
|
-
display: flex;
|
|
1491
|
-
flex-direction: row;
|
|
1492
|
-
justify-content: flex-start;
|
|
1493
|
-
align-items: center;
|
|
1494
|
-
margin-left: ${j.balanceLeftMargin};
|
|
1495
|
-
`,gd=a(ne)`
|
|
1496
|
-
user-select: none;
|
|
1497
|
-
min-width: ${j.balanceWidth};
|
|
1498
|
-
max-width: ${j.balanceWidth};
|
|
1499
|
-
text-align: right;
|
|
1500
|
-
color: ${e=>e.theme.colors.hero};
|
|
1501
|
-
border: 1px solid transparent;
|
|
1502
|
-
`,fd=a.div`
|
|
1503
|
-
display: flex;
|
|
1504
|
-
flex-direction: row;
|
|
1505
|
-
align-items: center;
|
|
1506
|
-
flex-shrink: 2;
|
|
1507
|
-
flex-grow: 1;
|
|
1508
|
-
width: ${j.titleWidth};
|
|
1509
|
-
max-width: ${j.titleWidth};
|
|
1510
|
-
height: 100%;
|
|
1511
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1512
|
-
position: sticky;
|
|
1513
|
-
left: ${c.sp8};
|
|
1514
|
-
top: 0;
|
|
1515
|
-
z-index: 10;
|
|
1516
|
-
`,xd=a(ne)`
|
|
1517
|
-
user-select: none;
|
|
1518
|
-
clear: both;
|
|
1519
|
-
display: inline-block;
|
|
1520
|
-
overflow: hidden;
|
|
1521
|
-
white-space: nowrap;
|
|
1522
|
-
text-overflow: ellipsis;
|
|
1523
|
-
text-align: left;
|
|
1524
|
-
color: ${e=>e.theme.colors.primary};
|
|
1525
|
-
`,md=a.div`
|
|
1526
|
-
display: flex;
|
|
1527
|
-
width: ${j.statusContainerWidth};
|
|
1528
|
-
min-width: ${j.statusContainerWidth};
|
|
1529
|
-
justify-content: center;
|
|
1530
|
-
flex-direction: row;
|
|
1531
|
-
margin-left: ${j.statusLeftMargin};
|
|
1532
|
-
`,wd=a.div`
|
|
1533
|
-
display: flex;
|
|
1534
|
-
margin-left: ${c.sp7};
|
|
1535
|
-
flex: 1 1 auto;
|
|
1536
|
-
justify-content: flex-end;
|
|
1537
|
-
`,yd=({balance:e})=>t.jsx(pd,{children:t.jsx(gd,{children:U("0,0",e?.balance)})});function bd({type:e,height:n,title:i,totalBalances:o,varianceAmount:r,variancePercentage:l,currency:s,backgroundColor:d}){return t.jsx(dd,{"data-testid":x("total-row-root-container"),heightValue:n,bgColor:d,children:t.jsxs(hd,{"data-testid":x("total-row-container"),children:[t.jsx(fd,{className:"flux-total-row",children:t.jsx(xd,{children:i})}),t.jsxs(wd,{children:[t.jsx(ud,{children:re(e)&&o.map((h,u)=>t.jsx(yd,{balance:h},u))}),t.jsx(gt,{amount:r,percentage:l,currency:s}),t.jsx(md,{})]})]})})}const kd=a.div`
|
|
1538
|
-
display: flex;
|
|
1539
|
-
flex: 1 1 auto;
|
|
1540
|
-
width: fit-content;
|
|
1541
|
-
min-width: 100%;
|
|
1542
|
-
flex-direction: column;
|
|
1543
|
-
height: ${e=>`${e.heightValue}px`};
|
|
1544
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1545
|
-
`,jd=a.div`
|
|
1546
|
-
user-select: none;
|
|
1547
|
-
display: flex;
|
|
1548
|
-
flex: 1 1 auto;
|
|
1549
|
-
flex-flow: row;
|
|
1550
|
-
justify-content: flex-start;
|
|
1551
|
-
align-items: center;
|
|
1552
|
-
cursor: pointer;
|
|
1553
|
-
color: ${e=>e.isRowExpanded?e.theme.colors.primary:e.theme.colors.hero};
|
|
1554
|
-
&:hover {
|
|
1555
|
-
color: ${e=>e.theme.colors.primary};
|
|
1556
|
-
.flux-vendor-chevron-icon,
|
|
1557
|
-
.flux-vendor-collapsable-chevron-icon,
|
|
1558
|
-
.flux-vendor-children-count {
|
|
1559
|
-
border: 1px solid ${e=>e.theme.colors.primary};
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
.flux-vendor-chevron-icon,
|
|
1563
|
-
.flux-vendor-collapsable-chevron-icon,
|
|
1564
|
-
.flux-vendor-children-count {
|
|
1565
|
-
border: 1px solid
|
|
1566
|
-
${e=>e.shouldHighlight?e.theme.colors.primary:e.theme.colors.hero};
|
|
1567
|
-
}
|
|
1568
|
-
`,Cd=a.div`
|
|
1569
|
-
display: flex;
|
|
1570
|
-
flex-direction: row;
|
|
1571
|
-
justify-content: flex-start;
|
|
1572
|
-
align-items: center;
|
|
1573
|
-
margin-left: ${j.balanceLeftMargin};
|
|
1574
|
-
`,Sd=a(S)`
|
|
1575
|
-
user-select: none;
|
|
1576
|
-
min-width: ${j.balanceWidth};
|
|
1577
|
-
max-width: ${j.balanceWidth};
|
|
1578
|
-
text-align: right;
|
|
1579
|
-
`,$d=a.div`
|
|
1580
|
-
display: flex;
|
|
1581
|
-
flex-direction: row;
|
|
1582
|
-
align-items: center;
|
|
1583
|
-
flex-shrink: 2;
|
|
1584
|
-
flex-grow: 1;
|
|
1585
|
-
width: ${j.titleWidth};
|
|
1586
|
-
max-width: ${j.titleWidth};
|
|
1587
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1588
|
-
${({isSticky:e})=>e?O`
|
|
1589
|
-
position: -webkit-sticky;
|
|
1590
|
-
position: sticky;
|
|
1591
|
-
top: ${c.sp0};
|
|
1592
|
-
left: ${c.sp0};
|
|
1593
|
-
`:null}
|
|
1594
|
-
`,vd=a(S)`
|
|
1595
|
-
user-select: none;
|
|
1596
|
-
clear: both;
|
|
1597
|
-
display: inline-block;
|
|
1598
|
-
overflow: hidden;
|
|
1599
|
-
white-space: nowrap;
|
|
1600
|
-
text-overflow: ellipsis;
|
|
1601
|
-
text-align: left;
|
|
1602
|
-
`,_d=a.div`
|
|
1603
|
-
display: flex;
|
|
1604
|
-
justify-content: space-between;
|
|
1605
|
-
flex-grow: 1;
|
|
1606
|
-
`,Ld=a.div`
|
|
1607
|
-
display: flex;
|
|
1608
|
-
align-items: center;
|
|
1609
|
-
margin-left: 10px;
|
|
1610
|
-
`;a.div`
|
|
1611
|
-
display: flex;
|
|
1612
|
-
flex-shrink: 0;
|
|
1613
|
-
width: ${j.varianceContainerWidth};
|
|
1614
|
-
min-width: ${j.varianceContainerWidth};
|
|
1615
|
-
margin-left: 12px;
|
|
1616
|
-
gap: ${c.sp1};
|
|
1617
|
-
flex-direction: row;
|
|
1618
|
-
justify-content: flex-end;
|
|
1619
|
-
text-align: center;
|
|
1620
|
-
align-items: center;
|
|
1621
|
-
`;const Ad=a(Do)`
|
|
1622
|
-
width: 12px;
|
|
1623
|
-
height: 12px;
|
|
1624
|
-
`;a.div`
|
|
1625
|
-
height: ${c.sp4};
|
|
1626
|
-
border-radius: ${c.sp1};
|
|
1627
|
-
padding: 2px ${c.sp1};
|
|
1628
|
-
`;a.div`
|
|
1629
|
-
border-radius: ${c.sp1};
|
|
1630
|
-
padding: 2px ${c.sp1};
|
|
1631
|
-
height: ${c.sp4};
|
|
1632
|
-
justify-content: center;
|
|
1633
|
-
text-align: center;
|
|
1634
|
-
background-color: ${e=>e.bgColor.hex()};
|
|
1635
|
-
`;const Bd=a.div`
|
|
1636
|
-
display: flex;
|
|
1637
|
-
margin-left: ${c.sp7};
|
|
1638
|
-
flex: 1 1 auto;
|
|
1639
|
-
justify-content: flex-end;
|
|
1640
|
-
`,Wd=a.div`
|
|
1641
|
-
display: flex;
|
|
1642
|
-
flex-direction: column;
|
|
1643
|
-
align-items: center;
|
|
1644
|
-
padding-top: ${e=>e.isNodeOpen?c.sp3:c.sp0};
|
|
1645
|
-
`,Id=a.div`
|
|
1646
|
-
display: flex;
|
|
1647
|
-
width: ${j.statusContainerWidth};
|
|
1648
|
-
min-width: ${j.statusContainerWidth};
|
|
1649
|
-
justify-content: center;
|
|
1650
|
-
flex-direction: row;
|
|
1651
|
-
margin-left: ${j.statusLeftMargin};
|
|
1652
|
-
`,Md=a(ke)`
|
|
1653
|
-
width: ${j.balanceWidth};
|
|
1654
|
-
max-width: ${j.balanceWidth};
|
|
1655
|
-
color: ${e=>e.theme.colors.primary};
|
|
1656
|
-
display: flex;
|
|
1657
|
-
flex: 1 0 auto;
|
|
1658
|
-
flex-direction: column;
|
|
1659
|
-
cursor: pointer;
|
|
1660
|
-
align-items: center;
|
|
1661
|
-
`,Od=a.div`
|
|
1662
|
-
color: ${e=>e.theme.colors.grey1};
|
|
1663
|
-
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
1664
|
-
padding: ${c.sp0} 6px;
|
|
1665
|
-
border-radius: ${c.sp1};
|
|
1666
|
-
width: fit-content;
|
|
1667
|
-
display: flex;
|
|
1668
|
-
align-items: center;
|
|
1669
|
-
margin-right: ${c.sp2};
|
|
1670
|
-
`,Nd=a(ke)`
|
|
1671
|
-
overflow: hidden;
|
|
1672
|
-
text-overflow: ellipsis;
|
|
1673
|
-
`,Pd=a.div`
|
|
1674
|
-
display: flex;
|
|
1675
|
-
width: ${c.sp8};
|
|
1676
|
-
height: ${c.sp8};
|
|
1677
|
-
&:hover {
|
|
1678
|
-
.flux-vendor-checkbox {
|
|
1679
|
-
background-color: transparent;
|
|
1680
|
-
}
|
|
1681
|
-
}
|
|
1682
|
-
`,zd=a(Ht)`
|
|
1683
|
-
color: ${e=>e.theme.colors.primary};
|
|
1684
|
-
width: ${c.sp3};
|
|
1685
|
-
height: ${c.sp3};
|
|
1686
|
-
`,Fd=a(ke)`
|
|
1687
|
-
display: flex;
|
|
1688
|
-
flex-direction: row;
|
|
1689
|
-
align-items: center;
|
|
1690
|
-
gap: 2px;
|
|
1691
|
-
color: ${e=>e.theme.colors.success};
|
|
1692
|
-
`,Td=a(ii)`
|
|
1693
|
-
width: 12px;
|
|
1694
|
-
height: 12px;
|
|
1695
|
-
`,Gn=a(ni)`
|
|
1696
|
-
margin-left: 2px;
|
|
1697
|
-
width: 12px;
|
|
1698
|
-
height: 12px;
|
|
1699
|
-
`,Vd=a(Me)`
|
|
1700
|
-
display: flex;
|
|
1701
|
-
border-radius: 50%;
|
|
1702
|
-
width: ${c.sp4};
|
|
1703
|
-
height: ${c.sp4};
|
|
1704
|
-
text-align: center;
|
|
1705
|
-
align-items: center;
|
|
1706
|
-
justify-content: center;
|
|
1707
|
-
`,Dd=a(Me)`
|
|
1708
|
-
display: flex;
|
|
1709
|
-
border-radius: ${c.sp1};
|
|
1710
|
-
width: ${c.sp4};
|
|
1711
|
-
height: ${c.sp4};
|
|
1712
|
-
text-align: center;
|
|
1713
|
-
align-items: center;
|
|
1714
|
-
justify-content: center;
|
|
1715
|
-
margin-right: ${c.sp4};
|
|
1716
|
-
`,Gd=a(Me)`
|
|
1717
|
-
display: flex;
|
|
1718
|
-
border-radius: 100px;
|
|
1719
|
-
width: 18px;
|
|
1720
|
-
height: 18px;
|
|
1721
|
-
justify-content: center;
|
|
1722
|
-
align-items: center;
|
|
1723
|
-
margin-left: ${c.sp1};
|
|
1724
|
-
`,{common:Rn,expenseAutomation:Rd}=W.getLocalizedStrings(),Ed=({balance:e})=>{const n=Sd;return t.jsx(Cd,{children:t.jsx(n,{children:Z(e)})})};function Hd({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:i,isSticky:o,treeNodeId:r,height:l,leftChevron:s,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:g,reviewedByUser:p,status:f,vendor:m,isOpen:y,childrenCount:b,vendorRowIndex:$,setHoveredParentId:C,onClick:B,handleRedirectToVendorDetailPage:_,updateOperatingExpensesIdsForReview:L}){const[N,P]=z.useState(!1),[H,T]=z.useState(n.length>0),Y=n.includes(e),q=n.includes(e),se=s==="collapsed",X=n.length===hn&&Y===!1,ue=vd,ye=xe=>{let ge=n;xe.target.checked===!0?ge=[...ge,e]:ge=ge.filter(Le=>Le!==e),L?.(ge)},pe=()=>{_?.(m)},oe=$!=null?String($):e,Ce=x("flux-analysis-vendor-checkbox",oe),Ye=x("flux-analysis-vendor-detail-navigation",oe),Se=x("flux-analysis-vendor-expand-collapse",oe),Ue=x("flux-analysis-vendor-row",oe);return t.jsx(kd,{heightValue:l,bgColor:i,"data-testid":Ue,children:t.jsxs(jd,{shouldHighlight:q,isRowExpanded:y,onClick:()=>B?.(r),onMouseOver:()=>{P(!0),T(!0),C?.(m.id)},onMouseLeave:()=>{P(!1),n.length===0&&T(!1),C?.(null)},children:[t.jsxs($d,{className:"flux-vendor-name-container",bgColor:i,isSticky:o,children:[t.jsx(Pd,{className:"flux-vendor-checkbox-container",children:H?t.jsx(Dt,{className:"flux-vendor-checkbox","data-testid":Ce,icon:t.jsx(Gt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(zd,{}),checked:Y,name:m.name,id:e,disabled:X,onChange:ye,onClick:xe=>xe.stopPropagation(),style:{padding:"20px",pointerEvents:X?"none":"auto"}}):null}),t.jsxs(Wd,{isNodeOpen:y,children:[N?t.jsx(Vd,{className:"flux-vendor-collapsable-chevron-icon","data-testid":Se,children:y===!1?t.jsx(Gn,{}):t.jsx(Td,{})}):m.logo!=null?t.jsx(Rt,{photoUrl:m.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(Et,{name:m.name,size:c.sp4}),y?t.jsx(Ji,{height:j.vendorLineComponentHeight}):null]}),t.jsxs(_d,{children:[t.jsxs(Ld,{children:[t.jsx(ue,{children:m.name}),y?null:t.jsx(Gd,{className:"flux-vendor-children-count",children:t.jsx(Me,{children:b})})]}),N?t.jsx(z.Fragment,{children:t.jsx(Dd,{className:"flux-vendor-chevron-icon",onClick:pe,"data-testid":Ye,children:t.jsx(Gn,{})})}):null]})]}),t.jsxs(Bd,{children:[g.map((xe,ge)=>t.jsx(Ed,{balance:xe,collapsed:se},ge)),t.jsx(gt,{amount:d,percentage:h,currency:u}),t.jsx(Id,{children:f==="Pending Review"?t.jsx(Od,{children:t.jsx(Nd,{children:Rn.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(Md,{className:"vendor-flux-analysis-review-info",children:p!=null?t.jsxs(z.Fragment,{children:[t.jsxs(Fd,{children:[t.jsx(Ad,{}),Rd.fluxAnalysis.reviewedBy]}),t.jsx(Me,{children:Oo(p)})]}):Rn.strings.hyphen})})})]})]})})}const En={generalExpense:{color:new A(V.graphColor04),hoverColor:new A(V.graphColor04Dark)},reimbursement:{color:new A(V.graphColor10),hoverColor:new A(V.graphColor10Dark)},default:{color:new A(Q.neutralGrey2Dark),hoverColor:new A(Q.neutralGrey2Dark)}},Kd=(e,n)=>e.startsWith("flux_analysis_operating_expense")===!0&&n!=null?En[n]:En.default,un=(e,n)=>{const{element:i}=e;return i.kind===n&&i.data!=null},no=e=>Js(e.balancesByMonth),Yd=(e,n,i,o,r,l,s,d,h)=>{if(!un(n,"flux_vendor_account_class_row"))return null;const u=n.element.data,g=no(u),p=n.element.metadata.vendorId;return t.jsx(Lc,{backgroundColor:i,isSticky:o,treeNodeId:e,balances:g,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:u.currency,isScrolling:r,isLeaf:l,isLastNode:s,nodeMetadata:n.element.metadata,accountAndClass:u,onAccountAndClassBalanceClick:()=>h?.(p),isHoveredByParent:d?.hoveredParentId===p})},Ud=(e,n,i,o,r,l,s,d,h,u,g)=>{if(!un(n,"flux_vendor_row"))return null;const p=n.element.data,f=no(p),m=Qi("flux_vendor_row",h),y=b=>{g?.(b),n.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(b)};return t.jsx(Hd,{backgroundColor:i,isSticky:o,treeNodeId:e,vendorRowIndex:n.element.index,fluxAnalysisEntityId:p.fluxAnalysisEntityId,height:m,leftChevron:"collapsed",idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:p.vendor,vendorBalances:f,varianceAmount:p.varianceAmount,variancePercentage:p.variancePercentage,status:p.status,currency:p.currency,isScrolling:r,isOpen:l,isLeaf:s,isLastNode:d,childrenCount:p.vendorAccountsAndClasses.length,onClick:b=>{y?.(b)},reviewedByUser:p.reviewedByUser,updateOperatingExpensesIdsForReview:n.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:n.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},Zd=(e,n,i,o,r,l,s,d,h,u)=>{if(!un(n,"section"))return null;const g=Kd(n.config.reportId,n.element.sectionType),p=n.element.data,f=m=>{n.config.fluxAnalysisConfig?.onSectionRowClick(m),u?.(m)};return t.jsx(Hc,{backgroundColor:o,isSticky:r,treeNodeId:e,height:i,selectedSectionsIds:n.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:g.color,sectionName:n.element.title,sectionBalances:p.balances,varianceAmount:p.varianceAmount,variancePercentage:p.variancePercentage,currency:p.currency,isScrolling:l,isOpen:s,hasVendors:p.vendors.length>0,isLeaf:d,isLastNode:h,sectionToggled:m=>{f?.(m)},onSectionCheckboxClick:n.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:p.sectionId})},qd=(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=>De(d)),s=(d,h)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(d,h)};return t.jsx(cd,{isSticky:i,height:n,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===hn,onSortOrderChanged:s,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},Xd=(e,n)=>{if(e.element.kind!=="total")return null;const i=e.element.data;return t.jsx(bd,{type:"name+balances_actual",title:e.element.title,totalBalances:i.balances,varianceAmount:i.varianceAmount,variancePercentage:i.variancePercentage,currency:i.currency,height:n})},Jd=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(Bc,{}),Qd=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Yc,{}),eh=a.div`
|
|
1725
|
-
display: flex;
|
|
1726
|
-
flex: 1 1 auto;
|
|
1727
|
-
width: fit-content;
|
|
1728
|
-
min-width: 100%;
|
|
1729
|
-
flex-direction: column;
|
|
1730
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1731
|
-
`,th=a.div`
|
|
1732
|
-
user-select: none;
|
|
1733
|
-
display: flex;
|
|
1734
|
-
flex: 1 1 auto;
|
|
1735
|
-
flex-flow: row;
|
|
1736
|
-
justify-content: flex-start;
|
|
1737
|
-
align-items: center;
|
|
1738
|
-
height: ${e=>e.height}px;
|
|
1739
|
-
margin-left: ${e=>e.level*20}px;
|
|
1740
|
-
`,nh=a.div`
|
|
1741
|
-
display: flex;
|
|
1742
|
-
flex-direction: row;
|
|
1743
|
-
align-items: center;
|
|
1744
|
-
justify-content: space-between;
|
|
1745
|
-
&:hover {
|
|
1746
|
-
background-color: null;
|
|
1747
|
-
}
|
|
1748
|
-
width: 100%;
|
|
1749
|
-
`,ih=a(No)`
|
|
1750
|
-
width: 100%;
|
|
1751
|
-
display: flex;
|
|
1752
|
-
align-items: center;
|
|
1753
|
-
font-weight: ${e=>e.isSubclass?vn.regular:vn.medium};
|
|
1754
|
-
color: ${e=>e.checked?e.theme.colors.primary:e.theme.colors.hero};
|
|
1755
|
-
`,oh=a(ke)`
|
|
1756
|
-
display: flex;
|
|
1757
|
-
color: ${e=>e.theme.colors.primary};
|
|
1758
|
-
align-items: center;
|
|
1759
|
-
flex-direction: row;
|
|
1760
|
-
justify-content: center;
|
|
1761
|
-
height: 18px;
|
|
1762
|
-
border: 1px solid ${e=>e.theme.colors.primary};
|
|
1763
|
-
border-radius: ${c.sp1};
|
|
1764
|
-
margin: 0 ${c.sp5} 0 ${c.sp3};
|
|
1765
|
-
min-width: ${c.sp6};
|
|
1766
|
-
`,rh=a(Ht)`
|
|
1767
|
-
color: ${e=>e.theme.colors.primary};
|
|
1768
|
-
width: ${c.sp3};
|
|
1769
|
-
height: ${c.sp3};
|
|
1770
|
-
`;function ah({backgroundColor:e,treeNodeId:n,classId:i,isChecked:o,isDisabled:r,height:l,nestedClass:s,isLeaf:d,showClassAccountNumber:h,onClick:u,onToggleCheck:g}){const[p,f]=z.useState(!1);return t.jsx(eh,{"data-testid":x("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(th,{"data-testid":x("name-with-checkbox-row-container",n),height:l,isClickable:!d,onClick:()=>u?.(n),onMouseOver:()=>f(!0),onMouseLeave:()=>f(!1),level:s.classId.length,children:[t.jsx(Dt,{"data-testid":x("name-with-checkbox-row-checkbox",s.classId.toString()),icon:t.jsx(Gt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(rh,{}),checked:o,name:s.className,id:n,disabled:r,onChange:m=>{g?.(i,m.target.checked)},style:{height:c.sp6}})," ",t.jsx(nh,{children:t.jsxs(ih,{"data-testid":x("name-with-checkbox-row-label-container",n),checked:o,isSubclass:s.classId.length>1,children:[t.jsx("label",{"data-testid":x("name-with-checkbox-row-label",s.classId.toString()),style:{flexGrow:2,cursor:"pointer"},onClick:()=>{g?.(i,!o)},children:s.className}),p===!0&&h===!0&&s.accountingClassNumber!=null&&t.jsx(oh,{children:s.accountingClassNumber})]})})]})})}const lh=(e,n,i,o,r,l,s,d,h,u,g)=>{if(i.element.kind!="checkbox_and_name_only")return null;const p=i.element.data,f=i.config.isClassToBeFilteredOut?.(p.classId)===!1;return t.jsx(ah,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,classId:p.classId,isChecked:f,isDisabled:!1,height:o,isScrolling:s,nestedClass:p,isOpen:d,isLeaf:h,isLastNode:u,showClassAccountNumber:i.config.showClassAccountNumber,onToggleCheck:g})},M={balanceHeight:c.sp4,balanceWidth:"166px",balanceLeftMargin:c.sp4,titleWidth:new D(200,270,270),categoryClassWidth:new D(230,230,240),nameLogoWidth:new D(w[4],w[4]),nameLogoHeight:new D(w[4],w[4])};function sh(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 ch(e,n){return!1}const dh=a.div`
|
|
1771
|
-
user-select: none;
|
|
1772
|
-
display: flex;
|
|
1773
|
-
flex: 1 1 auto;
|
|
1774
|
-
width: fit-content;
|
|
1775
|
-
min-width: 100%;
|
|
1776
|
-
height: ${e=>e.height}px;
|
|
1777
|
-
flex-flow: row;
|
|
1778
|
-
justify-content: flex-start;
|
|
1779
|
-
align-items: center;
|
|
1780
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1781
|
-
`,hh=a.div`
|
|
1782
|
-
user-select: none;
|
|
1783
|
-
display: flex;
|
|
1784
|
-
flex: 1 1 auto;
|
|
1785
|
-
width: 100vw;
|
|
1786
|
-
min-width: 100%;
|
|
1787
|
-
height: ${e=>e.height}px;
|
|
1788
|
-
flex-flow: row;
|
|
1789
|
-
align-items: center;
|
|
1790
|
-
justify-content: center;
|
|
1791
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1792
|
-
`,uh=a.div`
|
|
1793
|
-
display: flex;
|
|
1794
|
-
flex: 1 0 auto;
|
|
1795
|
-
flex-direction: row;
|
|
1796
|
-
justify-content: flex-end;
|
|
1797
|
-
`,Hn=a(S)`
|
|
1798
|
-
color: ${e=>e.theme.colors.hero};
|
|
1799
|
-
flex-grow: 1;
|
|
1800
|
-
-webkit-box-orient: vertical;
|
|
1801
|
-
justify-content: ${e=>e.isClubbed===!0?"unset":"flex-end"};
|
|
1802
|
-
display: flex;
|
|
1803
|
-
min-width: ${M.balanceWidth};
|
|
1804
|
-
max-width: ${M.balanceWidth};
|
|
1805
|
-
margin-left: ${e=>e.isClubbed===!0?c.sp2:M.balanceLeftMargin};
|
|
1806
|
-
border: 1px solid transparent;
|
|
1807
|
-
`,Kn=a(S)`
|
|
1808
|
-
color: ${e=>e.theme.colors.hero};
|
|
1809
|
-
flex-grow: 1;
|
|
1810
|
-
-webkit-box-orient: vertical;
|
|
1811
|
-
justify-content: "unset";
|
|
1812
|
-
display: flex;
|
|
1813
|
-
min-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
1814
|
-
`,ph=a.div`
|
|
1815
|
-
height: 100%;
|
|
1816
|
-
display: flex;
|
|
1817
|
-
flex-direction: row;
|
|
1818
|
-
align-items: center;
|
|
1819
|
-
min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
1820
|
-
color: ${e=>e.theme.colors.primary};
|
|
1821
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1822
|
-
${({isSticky:e})=>e?O`
|
|
1823
|
-
position: -webkit-sticky;
|
|
1824
|
-
position: sticky;
|
|
1825
|
-
top: ${c.sp0};
|
|
1826
|
-
left: ${c.sp0};
|
|
1827
|
-
z-index: 20;
|
|
1828
|
-
`:null}
|
|
1829
|
-
`;function gh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const s=I();return l.length>0?t.jsxs(dh,{height:i,bgColor:e,"data-testid":x("opex-vendor-loading-in-progress-row"),children:[t.jsxs(ph,{"data-testid":x("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:s,bgColor:e,children:[t.jsx(Te,{width:w[4],height:w[4]}),t.jsx(Hn,{windowSize:s,isClubbed:!0,children:t.jsx(K,{width:120,height:w[4]})})]}),t.jsxs(uh,{children:[o?t.jsx(Kn,{windowSize:s,children:t.jsx(K,{width:120,height:w[4]})}):null,r?t.jsx(Kn,{windowSize:s,children:t.jsx(K,{width:120,height:w[4]})}):null,l.map((d,h)=>t.jsx(Hn,{windowSize:s,children:t.jsx(K,{width:120,height:w[4]})},`${h}RowItem`))]})]}):t.jsx(hh,{height:i,bgColor:e,children:t.jsx(Mo,{size:"Small",start:!0})})}const fh=a.div`
|
|
1830
|
-
user-select: none;
|
|
1831
|
-
display: flex;
|
|
1832
|
-
flex: 1 1 auto;
|
|
1833
|
-
width: fit-content;
|
|
1834
|
-
min-width: 100%;
|
|
1835
|
-
height: ${e=>e.height}px;
|
|
1836
|
-
flex-flow: row;
|
|
1837
|
-
justify-content: flex-start;
|
|
1838
|
-
align-items: center;
|
|
1839
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1840
|
-
`,vt=a.div``,xh=a.div`
|
|
1841
|
-
display: flex;
|
|
1842
|
-
flex: 1 0 auto;
|
|
1843
|
-
flex-direction: row;
|
|
1844
|
-
justify-content: flex-end;
|
|
1845
|
-
`,mh=a(S)`
|
|
1846
|
-
user-select: none;
|
|
1847
|
-
clear: both;
|
|
1848
|
-
display: inline-block;
|
|
1849
|
-
overflow: hidden;
|
|
1850
|
-
white-space: nowrap;
|
|
1851
|
-
text-overflow: ellipsis;
|
|
1852
|
-
text-align: left;
|
|
1853
|
-
margin-left: ${c.sp2};
|
|
1854
|
-
color: ${e=>e.theme.colors.hero};
|
|
1855
|
-
`,wh=a(S)`
|
|
1856
|
-
color: ${e=>e.theme.colors.hero};
|
|
1857
|
-
flex-grow: 1;
|
|
1858
|
-
-webkit-box-orient: vertical;
|
|
1859
|
-
display: flex;
|
|
1860
|
-
min-width: ${M.balanceWidth};
|
|
1861
|
-
max-width: ${M.balanceWidth};
|
|
1862
|
-
border: 1px solid transparent;
|
|
1863
|
-
`,Yn=a(S)`
|
|
1864
|
-
color: ${e=>e.theme.colors.hero};
|
|
1865
|
-
flex-grow: 1;
|
|
1866
|
-
-webkit-box-orient: vertical;
|
|
1867
|
-
justify-content: "unset";
|
|
1868
|
-
display: flex;
|
|
1869
|
-
min-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
1870
|
-
`,yh=a.div`
|
|
1871
|
-
height: 100%;
|
|
1872
|
-
display: flex;
|
|
1873
|
-
flex-direction: row;
|
|
1874
|
-
align-items: center;
|
|
1875
|
-
min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
1876
|
-
color: ${e=>e.theme.colors.primary};
|
|
1877
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1878
|
-
${({isSticky:e})=>e?O`
|
|
1879
|
-
position: -webkit-sticky;
|
|
1880
|
-
position: sticky;
|
|
1881
|
-
top: ${c.sp0};
|
|
1882
|
-
left: ${c.sp0};
|
|
1883
|
-
z-index: 20;
|
|
1884
|
-
`:null}
|
|
1885
|
-
`;function bh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const s=I();return t.jsxs(fh,{height:i,bgColor:e,"data-testid":x("no-results-found-title-row"),children:[t.jsx(yh,{isSticky:n,windowSize:s,bgColor:e,children:t.jsx(mh,{children:W.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(xh,{children:[o?t.jsx(Yn,{windowSize:s,children:t.jsx(vt,{})}):null,r?t.jsx(Yn,{windowSize:s,children:t.jsx(vt,{})}):null,l.map((d,h)=>t.jsx(wh,{windowSize:s,children:t.jsx(vt,{children:" "})},`${h}RowItem`))]})]})}function pn({title:e,selectedMode:n,onCompareModeChanged:i,backgroundColor:o,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:s,titleTextStyle:d,titleTextAlignment:h,titleColor:u,menuPosition:g}){const p=["compare_mode_percent","compare_mode_amount"],f=m=>W.getLocalizedStrings().compareMode[m];return t.jsx(Go,{title:e,pickerValues:p,valueToLabel:f,selectedValue:n,onPickerSelectionChanged:m=>i(m),optionTextStyle:s,titleTextStyle:d,titleTextAlignment:h,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:o??"inherit",menuPosition:g})}const zt={balanceHeight:c.sp4,balanceWidthInPx:170,balanceLeftMargin:c.sp4},kh=a.div`
|
|
1886
|
-
margin-left: ${c.sp4};
|
|
1887
|
-
`,jh=a.div`
|
|
1888
|
-
display: flex;
|
|
1889
|
-
max-height: 54px;
|
|
1890
|
-
min-height: 54px;
|
|
1891
|
-
align-items: center;
|
|
1892
|
-
justify-content: center;
|
|
1893
|
-
max-width: ${zt.balanceWidthInPx-2}px;
|
|
1894
|
-
min-width: ${zt.balanceWidthInPx-2}px;
|
|
1895
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1896
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1897
|
-
border-radius: ${c.sp2};
|
|
1898
|
-
color: ${e=>e.theme.colors.primary};
|
|
1899
|
-
`,Ch=a(S)`
|
|
1900
|
-
display: flex;
|
|
1901
|
-
user-select: none;
|
|
1902
|
-
flex-direction: row;
|
|
1903
|
-
justify-content: center;
|
|
1904
|
-
align-items: center;
|
|
1905
|
-
height: ${zt.balanceHeight};
|
|
1906
|
-
`,Sh=a.div`
|
|
1907
|
-
display: flex;
|
|
1908
|
-
flex-direction: row;
|
|
1909
|
-
justify-content: center;
|
|
1910
|
-
align-items: center;
|
|
1911
|
-
padding: 3px 6px;
|
|
1912
|
-
margin-right: ${c.sp2};
|
|
1913
|
-
position: relative;
|
|
1914
|
-
top: -12px;
|
|
1915
|
-
`,$h=a(Uo)`
|
|
1916
|
-
color: ${e=>e.tagType==="under_review"?Q.neutralGrey5Light:e.theme.mode==="light"?Q.primaryDark:Q.primaryLight};
|
|
1917
|
-
border-radius: ${c.sp2};
|
|
1918
|
-
padding: 3px 6px;
|
|
1919
|
-
margin-left: 12px;
|
|
1920
|
-
background: ${e=>e.tagType==="under_review"?Q.alertDark:e.theme.mode==="light"?Q.championLight:Q.championDark};
|
|
1921
|
-
`,vh=a(Yo)`
|
|
1922
|
-
color: ${e=>e.theme.colors.hero};
|
|
1923
|
-
margin-left: 5px;
|
|
1924
|
-
height: ${c.sp3};
|
|
1925
|
-
width: ${c.sp3};
|
|
1926
|
-
margin-top: ${c.sp1};
|
|
1927
|
-
`;function _h(e){if(e==="under_review")return x("report-tree-timeframe-tag","under-review");if(e==="incomplete")return x("report-tree-timeframe-tag","in-progress")}function io({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:o,infoContent:r,tagType:l}){return t.jsxs(kh,{children:[t.jsxs(jh,{children:[t.jsx(Ch,{children:Ge(e,n,i)}),t.jsx(Ko,{style:{padding:c.sp3},title:r,placement:"top",children:t.jsx(vh,{})})]}),t.jsx(Sh,{"data-testid":_h(l),children:t.jsx($h,{tagType:l,children:o})})]})}const oo=(e,n)=>{const i=W.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}},Lh=a.div`
|
|
1928
|
-
user-select: none;
|
|
1929
|
-
display: flex;
|
|
1930
|
-
flex: 1 1 auto;
|
|
1931
|
-
width: fit-content;
|
|
1932
|
-
min-width: 100%;
|
|
1933
|
-
height: ${e=>e.height}px;
|
|
1934
|
-
flex-flow: row;
|
|
1935
|
-
justify-content: flex-start;
|
|
1936
|
-
align-items: center;
|
|
1937
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1938
|
-
`,Ah=a.div`
|
|
1939
|
-
display: flex;
|
|
1940
|
-
flex: 1 0 auto;
|
|
1941
|
-
flex-direction: row;
|
|
1942
|
-
justify-content: flex-end;
|
|
1943
|
-
`,ro=a.div`
|
|
1944
|
-
display: flex;
|
|
1945
|
-
max-height: ${c.sp8};
|
|
1946
|
-
min-height: ${c.sp8};
|
|
1947
|
-
min-width: ${M.balanceWidth};
|
|
1948
|
-
justify-content: center;
|
|
1949
|
-
align-items: center;
|
|
1950
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1951
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1952
|
-
border-radius: ${c.sp2};
|
|
1953
|
-
margin-left: ${M.balanceLeftMargin};
|
|
1954
|
-
color: ${e=>e.theme.colors.primary};
|
|
1955
|
-
cursor: ${e=>e.isClickable===!0?"pointer":"default"};
|
|
1956
|
-
`,ao=a(S)`
|
|
1957
|
-
display: flex;
|
|
1958
|
-
user-select: none;
|
|
1959
|
-
flex-direction: row;
|
|
1960
|
-
justify-content: center;
|
|
1961
|
-
align-items: center;
|
|
1962
|
-
height: ${M.balanceHeight};
|
|
1963
|
-
max-width: ${M.balanceWidth};
|
|
1964
|
-
width: 138px;
|
|
1965
|
-
text-align: center;
|
|
1966
|
-
`,Bh=a.div`
|
|
1967
|
-
display: flex;
|
|
1968
|
-
flex-direction: row;
|
|
1969
|
-
z-index: 1;
|
|
1970
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1971
|
-
${({isSticky:e})=>e?O`
|
|
1972
|
-
position: -webkit-sticky;
|
|
1973
|
-
position: sticky;
|
|
1974
|
-
top: ${c.sp0};
|
|
1975
|
-
left: ${c.sp0};
|
|
1976
|
-
z-index: 1;
|
|
1977
|
-
`:null}
|
|
1978
|
-
`,Wh=a.div`
|
|
1979
|
-
max-height: ${e=>e.plHeight}px;
|
|
1980
|
-
min-height: ${e=>e.plHeight}px;
|
|
1981
|
-
display: flex;
|
|
1982
|
-
flex-direction: row;
|
|
1983
|
-
align-items: center;
|
|
1984
|
-
min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
1985
|
-
color: ${e=>e.theme.colors.primary};
|
|
1986
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1987
|
-
`,Ih=a(S)`
|
|
1988
|
-
display: flex;
|
|
1989
|
-
gap: 6px;
|
|
1990
|
-
align-items: baseline;
|
|
1991
|
-
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
|
|
1992
|
-
`,lo=a(S)`
|
|
1993
|
-
height: 100%;
|
|
1994
|
-
align-self: center;
|
|
1995
|
-
align-items: baseline;
|
|
1996
|
-
min-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
1997
|
-
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
|
|
1998
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1999
|
-
display: flex;
|
|
2000
|
-
gap: 6px;
|
|
2001
|
-
align-items: center;
|
|
2002
|
-
`,gn=a.div`
|
|
2003
|
-
display: flex;
|
|
2004
|
-
cursor: pointer;
|
|
2005
|
-
`,Mh=a.div`
|
|
2006
|
-
display: flex;
|
|
2007
|
-
justify-content: center;
|
|
2008
|
-
align-items: center;
|
|
2009
|
-
color: ${e=>e.theme.colors.champion};
|
|
2010
|
-
`,Oh=a.div``,Nh=a(S)`
|
|
2011
|
-
display: flex;
|
|
2012
|
-
justify-content: center;
|
|
2013
|
-
align-items: center;
|
|
2014
|
-
max-height: ${c.sp8};
|
|
2015
|
-
min-height: ${c.sp8};
|
|
2016
|
-
background-color: ${e=>e.theme.colors.background};
|
|
2017
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2018
|
-
border-radius: ${c.sp2};
|
|
2019
|
-
margin-left: ${M.balanceLeftMargin};
|
|
2020
|
-
color: ${e=>e.theme.colors.primary};
|
|
2021
|
-
width: ${M.balanceWidth};
|
|
2022
|
-
min-width: ${M.balanceWidth};
|
|
2023
|
-
`,so=a.div`
|
|
2024
|
-
max-height: ${c.sp8};
|
|
2025
|
-
min-height: ${c.sp8};
|
|
2026
|
-
`,ft=a.div`
|
|
2027
|
-
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
|
|
2028
|
-
`,xt=a(Ut)`
|
|
2029
|
-
width: 12px;
|
|
2030
|
-
height: 12px;
|
|
2031
|
-
margin-left: ${c.sp2};
|
|
2032
|
-
margin-top: ${c.sp1};
|
|
2033
|
-
`,mt=a(Yt)`
|
|
2034
|
-
width: 12px;
|
|
2035
|
-
height: 12px;
|
|
2036
|
-
margin-left: ${c.sp2};
|
|
2037
|
-
margin-top: ${c.sp1};
|
|
2038
|
-
`,fn=a(ai)`
|
|
2039
|
-
width: 12px;
|
|
2040
|
-
height: 12px;
|
|
2041
|
-
cursor: pointer;
|
|
2042
|
-
color: ${e=>e.theme.colors.hero};
|
|
2043
|
-
`,co=({sortOrder:e,sortKey:n,onSortOrderChanged:i})=>{const o=()=>{i(wt("totals",e,n),"totals")},r=n==="totals"?e:"ascending";return t.jsx(so,{"data-testid":x("period-total-tick"),children:t.jsx(ro,{"data-testid":x("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(ao,{children:[W.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(ft,{selectedForSort:n==="totals","data-testid":x("report-tree-column-header-sort-icon","period-total"),children:r==="ascending"?t.jsx(mt,{}):t.jsx(xt,{})})]})})})},Ph=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(wt("vendor",n,e),"vendor")},l=e==="vendor"?n:"ascending";return t.jsxs(Ih,{selectedForSort:e==="vendor","data-testid":x("report-tree-column-header","vendor"),children:[t.jsxs(gn,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(ft,{selectedForSort:e==="vendor","data-testid":x("report-tree-column-header-sort-icon","vendor"),children:l==="ascending"?t.jsx(mt,{}):t.jsx(xt,{})})]}),e==="vendor"?t.jsx(fn,{"data-testid":x("report-tree-column-header-sort-cancel","vendor"),onClick:o}):null]})},zh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(wt("account",n,e),"account")},l=e==="account"?n:"ascending",s=I();return t.jsxs(lo,{selectedForSort:e==="account",windowSize:s,"data-testid":x("report-tree-column-header","account"),children:[t.jsxs(gn,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(ft,{selectedForSort:e==="account","data-testid":x("report-tree-column-header-sort-icon","account"),children:l==="ascending"?t.jsx(mt,{}):t.jsx(xt,{})})]}),e==="account"?t.jsx(fn,{"data-testid":x("report-tree-column-header-sort-cancel","account"),onClick:o}):null]})},Fh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(wt("class",n,e),"class")},l=e==="class"?n:"ascending",s=I();return t.jsxs(lo,{selectedForSort:e==="class",windowSize:s,"data-testid":x("report-tree-column-header","class"),children:[t.jsxs(gn,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(ft,{selectedForSort:e==="class","data-testid":x("report-tree-column-header-sort-icon","class"),children:l==="ascending"?t.jsx(mt,{}):t.jsx(xt,{})})]}),e==="class"?t.jsx(fn,{"data-testid":x("report-tree-column-header-sort-cancel","class"),onClick:o}):null]})},ho=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tickColumnIndex:o,bookCloseDate:r,dataAvailable:l})=>{const s=W.getLocalizedStrings().reports,d=r!=null&&l!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?di(i,e,n,r,l):void 0,h=d!=null?d==="under_review"?s.bookCloseTagUnderReview:s.bookCloseTagInProgress:void 0,u=oo(d,i),g=x("report-tree-column-header-timeframe",String(o));return t.jsx(so,{"data-testid":g,children:r!=null&&l!=null&&d!=null&&h!=null&&u!=null?t.jsx(io,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:h,infoContent:u,tagType:d}):t.jsx(ro,{isClickable:!1,children:t.jsx(ao,{children:Ge(e,n,i)})})})},Th=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tickColumnIndex:o,onSortOrderChanged:r,bookCloseDate:l,dataAvailable:s,sortKey:d="totals",sortOrder:h="ascending"})=>n.balanceType==="period_total"?t.jsx(co,{sortKey:d,sortOrder:h,onSortOrderChanged:r}):t.jsx(ho,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tickColumnIndex:o,dataAvailable:s,bookCloseDate:l}),Vh=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:s,bookCloseDate:d,onCompareModeChanged:h,onSortOrderChanged:u})=>{const g=le(),p=o==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return t.jsx(Mh,{children:n.map((f,m)=>t.jsxs(z.Fragment,{children:[f.balanceType==="this_period_vs_last_period"||f.balanceType==="this_period_vs_last_period_percent"?t.jsx(Nh,{"data-testid":x("report-tree-column-header-compare-mode",String(m)),children:t.jsx(pn,{title:p,titleTextStyle:Kt.standardRegular,titleTextAlignment:"flex-end",titleColor:g.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:y=>{y!=="off"&&(y==="compare_mode_amount"||y==="compare_mode_percent"?h?.(y):console.warn("Invalid compare mode option"))}})}):null,f.balanceType==="period_total"?t.jsx(co,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,f.balanceType==="default"?t.jsx(Oh,{children:t.jsx(ho,{firstMonthOfFY:e,timeframeTick:f,timeframe:i,tickColumnIndex:m,dataAvailable:s,bookCloseDate:d},m)}):null]},m))})};function Dh({backgroundColor:e,isSticky:n,height:i,isCompareModeOn:o,isAccountColumnShown:r,isClassColumnShown:l,sortKey:s,sortOrder:d,firstMonthOfFY:h,timeframe:u,timeframeTicks:g,compareMode:p,dataAvailable:f,bookCloseDate:m,onCompareModeChanged:y,onSortOrderChanged:b}){const $=I(),C=(_,L)=>{b?.(_,L)},B=()=>{b?.("descending","totals")};return t.jsxs(Lh,{height:i,bgColor:e,children:[t.jsx(Bh,{bgColor:e,windowSize:$,isSticky:n,children:t.jsx(Wh,{plHeight:i,windowSize:$,bgColor:e,children:t.jsx(Ph,{sortKey:s,sortOrder:d,onSortOrderChanged:C,onSortCancel:B})})}),r?t.jsx(zh,{sortKey:s,sortOrder:d,onSortOrderChanged:C,onSortCancel:B}):null,l?t.jsx(Fh,{sortKey:s,sortOrder:d,onSortOrderChanged:C,onSortCancel:B}):null,t.jsx(Ah,{children:o===!0?t.jsx(Vh,{firstMonthOfFY:h,timeframe:u,sortKey:s,sortOrder:d,timeframeTicks:g,compareMode:p,dataAvailable:f,bookCloseDate:m,onCompareModeChanged:y,onSortOrderChanged:C}):g.map((_,L)=>t.jsx(Th,{firstMonthOfFY:h,timeframeTick:_,timeframe:u,tickColumnIndex:L,onSortOrderChanged:C,bookCloseDate:m,dataAvailable:f,sortKey:s,sortOrder:d},L))})]})}const wt=(e,n,i)=>e===i?n==="ascending"?"descending":"ascending":"descending",Gh=a.div`
|
|
2044
|
-
display: flex;
|
|
2045
|
-
flex: 1 1 auto;
|
|
2046
|
-
max-height: 1px;
|
|
2047
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
2048
|
-
`,Rh=a.div`
|
|
2049
|
-
display: flex;
|
|
2050
|
-
flex: 1 1 auto;
|
|
2051
|
-
max-height: 1px;
|
|
2052
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
2053
|
-
`;function Ft({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(Gh,{isScrolling:n});case"end_row_separator":return t.jsx(Rh,{isScrolling:n})}}const Eh=a.div`
|
|
2054
|
-
display: flex;
|
|
2055
|
-
flex: 1 1 auto;
|
|
2056
|
-
width: fit-content;
|
|
2057
|
-
min-width: 100%;
|
|
2058
|
-
flex-direction: column;
|
|
2059
|
-
height: ${e=>e.height}px;
|
|
2060
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2061
|
-
`,Hh=a.div`
|
|
2062
|
-
user-select: none;
|
|
2063
|
-
display: flex;
|
|
2064
|
-
flex: 1 1 auto;
|
|
2065
|
-
flex-flow: row;
|
|
2066
|
-
justify-content: flex-start;
|
|
2067
|
-
align-items: center;
|
|
2068
|
-
cursor: default;
|
|
2069
|
-
`,Kh=a.div`
|
|
2070
|
-
display: flex;
|
|
2071
|
-
flex: 1 0 auto;
|
|
2072
|
-
flex-direction: row;
|
|
2073
|
-
justify-content: flex-end;
|
|
2074
|
-
`,Yh=a.div`
|
|
2075
|
-
display: flex;
|
|
2076
|
-
flex-direction: row;
|
|
2077
|
-
justify-content: flex-start;
|
|
2078
|
-
`,uo=a(ne)`
|
|
2079
|
-
user-select: none;
|
|
2080
|
-
min-width: ${M.balanceWidth};
|
|
2081
|
-
max-width: ${M.balanceWidth};
|
|
2082
|
-
text-align: right;
|
|
2083
|
-
margin-left: ${M.balanceLeftMargin};
|
|
2084
|
-
color: ${e=>e.theme.colors.primary};
|
|
2085
|
-
border: 1px solid transparent;
|
|
2086
|
-
`,Uh=a(uo)`
|
|
2087
|
-
color: ${e=>e.theme.colors.hero};
|
|
2088
|
-
&:hover {
|
|
2089
|
-
color: inherit;
|
|
2090
|
-
}
|
|
2091
|
-
`,Zh=a.div`
|
|
2092
|
-
display: flex;
|
|
2093
|
-
flex-direction: row;
|
|
2094
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2095
|
-
${({isSticky:e})=>e?O`
|
|
2096
|
-
position: -webkit-sticky;
|
|
2097
|
-
position: sticky;
|
|
2098
|
-
top: ${c.sp0};
|
|
2099
|
-
left: ${c.sp0};
|
|
2100
|
-
`:null}
|
|
2101
|
-
`,qh=a.div`
|
|
2102
|
-
display: flex;
|
|
2103
|
-
flex-direction: row;
|
|
2104
|
-
flex-shrink: 2;
|
|
2105
|
-
flex-grow: 1;
|
|
2106
|
-
align-items: center;
|
|
2107
|
-
width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
2108
|
-
max-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
2109
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2110
|
-
`,Un=a.div`
|
|
2111
|
-
width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2112
|
-
max-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2113
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2114
|
-
`,Xh=a(ne)`
|
|
2115
|
-
user-select: none;
|
|
2116
|
-
clear: both;
|
|
2117
|
-
display: inline-block;
|
|
2118
|
-
overflow: hidden;
|
|
2119
|
-
white-space: nowrap;
|
|
2120
|
-
text-overflow: ellipsis;
|
|
2121
|
-
text-align: left;
|
|
2122
|
-
color: ${e=>e.theme.colors.primary};
|
|
2123
|
-
`,Jh=({balance:e,collapsed:n,timeframeColumnIndex:i,treeNodeId:o,type:r})=>{const l=n===!0?Uh:uo;return t.jsx(Yh,{"data-testid":x("report-tree-total-row-amount",`${o}-${String(i)}`),children:re(r)===!0?t.jsx(l,{children:Z(e)}):null})};function Qh({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:s,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:g}){const p=I();return t.jsxs(Eh,{"data-testid":x("total-row-root-container",o),height:r,bgColor:n,windowSize:p,children:[t.jsxs(Hh,{"data-testid":x("total-row-container",o),onClick:()=>u?.(o),children:[t.jsxs(Zh,{bgColor:n,windowSize:p,isSticky:i,children:[t.jsx(qh,{bgColor:n,windowSize:p,children:t.jsx(Xh,{children:l})}),d?t.jsx(Un,{windowSize:p}):null,h?t.jsx(Un,{windowSize:p}):null]}),t.jsx(Kh,{children:s.map((f,m)=>t.jsx(Jh,{balance:f,collapsed:!1,timeframeColumnIndex:m,treeNodeId:o,type:e},m))})]}),t.jsx(Ft,{isScrolling:g,kind:"vendor_row_separator"})]})}const eu=a.div`
|
|
2124
|
-
display: flex;
|
|
2125
|
-
flex: 1 1 auto;
|
|
2126
|
-
width: fit-content;
|
|
2127
|
-
min-width: 100%;
|
|
2128
|
-
flex-direction: column;
|
|
2129
|
-
height: ${e=>e.height}px;
|
|
2130
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2131
|
-
`,tu=a.div`
|
|
2132
|
-
user-select: none;
|
|
2133
|
-
display: flex;
|
|
2134
|
-
flex: 1 1 auto;
|
|
2135
|
-
flex-flow: row;
|
|
2136
|
-
justify-content: flex-start;
|
|
2137
|
-
align-items: center;
|
|
2138
|
-
&:hover {
|
|
2139
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2140
|
-
}
|
|
2141
|
-
`,nu=a.div`
|
|
2142
|
-
display: flex;
|
|
2143
|
-
flex: 1 0 auto;
|
|
2144
|
-
flex-direction: row;
|
|
2145
|
-
justify-content: flex-end;
|
|
2146
|
-
`,iu=a.div`
|
|
2147
|
-
display: flex;
|
|
2148
|
-
flex-direction: row;
|
|
2149
|
-
justify-content: flex-start;
|
|
2150
|
-
`,ou=a(S)`
|
|
2151
|
-
user-select: none;
|
|
2152
|
-
min-width: ${M.balanceWidth};
|
|
2153
|
-
max-width: ${M.balanceWidth};
|
|
2154
|
-
text-align: right;
|
|
2155
|
-
margin-left: ${M.balanceLeftMargin};
|
|
2156
|
-
border: 1px solid transparent;
|
|
2157
|
-
color: ${e=>e.theme.colors.hero};
|
|
2158
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2159
|
-
&:hover {
|
|
2160
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2161
|
-
}
|
|
2162
|
-
`,ru=a.div`
|
|
2163
|
-
display: flex;
|
|
2164
|
-
flex-direction: row;
|
|
2165
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2166
|
-
${({isSticky:e})=>e?O`
|
|
2167
|
-
position: -webkit-sticky;
|
|
2168
|
-
position: sticky;
|
|
2169
|
-
top: ${c.sp0};
|
|
2170
|
-
left: ${c.sp0};
|
|
2171
|
-
`:null}
|
|
2172
|
-
`,au=a.div`
|
|
2173
|
-
display: flex;
|
|
2174
|
-
flex-direction: row;
|
|
2175
|
-
flex-shrink: 2;
|
|
2176
|
-
flex-grow: 1;
|
|
2177
|
-
align-items: center;
|
|
2178
|
-
gap: ${c.sp2};
|
|
2179
|
-
width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
2180
|
-
max-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
2181
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2182
|
-
`,We=a(S)`
|
|
2183
|
-
user-select: none;
|
|
2184
|
-
clear: both;
|
|
2185
|
-
display: inline-block;
|
|
2186
|
-
overflow: hidden;
|
|
2187
|
-
white-space: nowrap;
|
|
2188
|
-
text-overflow: ellipsis;
|
|
2189
|
-
text-align: left;
|
|
2190
|
-
color: ${e=>e.theme.colors.hero};
|
|
2191
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2192
|
-
&:hover {
|
|
2193
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2194
|
-
}
|
|
2195
|
-
`,lu=a.div`
|
|
2196
|
-
display: flex;
|
|
2197
|
-
flex-direction: row;
|
|
2198
|
-
flex-shrink: 2;
|
|
2199
|
-
flex-grow: 1;
|
|
2200
|
-
align-items: center;
|
|
2201
|
-
width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2202
|
-
max-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2203
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2204
|
-
`,su=a.div`
|
|
2205
|
-
display: flex;
|
|
2206
|
-
flex-direction: row;
|
|
2207
|
-
flex-shrink: 2;
|
|
2208
|
-
flex-grow: 1;
|
|
2209
|
-
align-items: center;
|
|
2210
|
-
width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2211
|
-
max-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2212
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2213
|
-
`,cu=a.div``,du=a.div`
|
|
2214
|
-
width: ${c.sp4};
|
|
2215
|
-
height: ${c.sp4};
|
|
2216
|
-
border-radius: 50%;
|
|
2217
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
2218
|
-
display: flex;
|
|
2219
|
-
justify-content: center;
|
|
2220
|
-
align-items: center;
|
|
2221
|
-
color: ${e=>e.theme.colors.hero};
|
|
2222
|
-
`,hu=a(Po)`
|
|
2223
|
-
width: ${c.sp3};
|
|
2224
|
-
height: ${c.sp3};
|
|
2225
|
-
`,uu=a.div`
|
|
2226
|
-
display: flex;
|
|
2227
|
-
column-gap: ${c.sp2};
|
|
2228
|
-
width: 100%;
|
|
2229
|
-
&:hover {
|
|
2230
|
-
.hyphen-text {
|
|
2231
|
-
display: none;
|
|
2232
|
-
}
|
|
2233
|
-
.not-specified-text {
|
|
2234
|
-
display: block;
|
|
2235
|
-
}
|
|
2236
|
-
}
|
|
2237
|
-
`,pu=a(S)`
|
|
2238
|
-
color: ${e=>e.theme.colors.hero};
|
|
2239
|
-
`,gu=a(S)`
|
|
2240
|
-
color: ${e=>e.theme.colors.hero};
|
|
2241
|
-
display: none;
|
|
2242
|
-
`,fu=({balance:e,timeframeColumnIndex:n,vendor:i,vendorRowKey:o,onVendorNameAndBalanceClick:r})=>{const l=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",s=e?.type==="period_total",d=e?.type==="default_with_null_balance",h=l!==!0&&s===!1&&d===!1&&!ci(i.id);return t.jsx(iu,{"data-testid":x("report-tree-vendor-row-amount",`${o}-${String(n)}`),children:t.jsx(ou,{isClickable:h,onClick:()=>{h===!0&&r(i,e??void 0)},children:Z(e)})})};function xu({backgroundColor:e,isSticky:n,height:i,isScrolling:o,isLastNode:r,vendor:l,balances:s,accountBase:d,classBase:h,isAccountColumnShown:u,isClassColumnShown:g,onVendorNameAndBalanceClick:p,vendorRowIndex:f}){const m=I(),y=f!=null?String(f):l.id,b=ti(),$=b.loggedInUserRole!=null&&!si(b.loggedInUserRole),C=ci(l.id),B=$===!0&&l!=null&&!C,_=B?"pointer":"default",L=l.name;return t.jsxs(eu,{"data-testid":x("vendor-row-root-container",y),height:i,bgColor:e,windowSize:m,children:[t.jsxs(tu,{"data-testid":x("vendor-row-container",y),style:{cursor:_},isClickable:B,children:[t.jsx(ru,{"data-testid":x("vendor-row-sticky-container",y),isSticky:n,windowSize:m,bgColor:e,children:t.jsxs(au,{"data-testid":x("vendor-row-name-container",y),windowSize:m,bgColor:e,children:[t.jsxs(rt,{controller:!C,children:[t.jsx(cu,{"data-testid":x("report-tree-vendor-row-avatar",y),children:l.logo!=null?t.jsx(Rt,{photoUrl:l.logo.toString(),styles:{width:M.nameLogoWidth.valuePx(m),height:M.nameLogoHeight.valuePx(m)}}):t.jsx(Et,{name:L,size:c.sp4})}),t.jsx(We,{"data-testid":x("vendor-row-name",y),style:{cursor:_},isClickable:B,onClick:()=>{B===!0&&p(l)},children:L})]}),t.jsx(rt,{controller:C,children:t.jsxs(uu,{children:[t.jsx(du,{"data-testid":x("report-tree-vendor-row-avatar",y),children:t.jsx(hu,{})}),t.jsx(pu,{className:"hyphen-text",children:W.getLocalizedStrings().common.strings.hyphen}),t.jsx(gu,{className:"not-specified-text",children:L})]})})]})}),u?t.jsx(lu,{windowSize:m,bgColor:e,children:d!=null?t.jsx(We,{"data-testid":x("vendor-row-account-name",y),title:d.accountName,isClickable:!1,children:d.accountName}):t.jsx(We,{isClickable:!1,"data-testid":x("vendor-row-account-name",y),children:W.getLocalizedStrings().common.strings.hyphen})}):null,g?t.jsx(su,{windowSize:m,bgColor:e,children:h!=null?t.jsx(We,{"data-testid":x("vendor-row-class-name",y),title:h.className,isClickable:!1,children:h.className}):t.jsx(We,{"data-testid":x("vendor-row-class-name",y),isClickable:!1,children:W.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(nu,{children:s.map((N,P)=>t.jsx(fu,{balance:N,timeframeColumnIndex:P,vendor:l,vendorRowKey:y,onVendorNameAndBalanceClick:p},P))})]}),t.jsx(mu,{isScrolling:o,isLastNode:r})]})}function mu({isScrolling:e,isLastNode:n}){return n?t.jsx(Ft,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Ft,{isScrolling:e,kind:"vendor_row_separator"})}const wu=(e,n,i,o,r,l)=>{if(e.element.kind!=="timeframe_headers")return null;const s=Re(e.element.data,e.config.displayOrder),d=s.length>0?s[0].balanceTimeFrame:"month",h=s.map(u=>De(u));return t.jsx(Dh,{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})},yu=(e,n,i,o,r,l,s)=>{const d=i.element.data,h=i.config.mode==="this_period_vs_period_before",u=h?i.element.numOfBalances+2:i.element.numOfBalances+1,g=Di(d,i.config.displayOrder,u,h);return t.jsx(Qh,{type:n,backgroundColor:s,isSticky:r,treeNodeId:e,height:o,isScrolling:l,totalBalances:g.balances,title:i.element.title,isAccountColumnShown:i.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:i.config.opexByVendorConfig?.isClassColumnShown??!0})},bu=(e,n,i,o,r,l,s)=>{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=Di(d,n.config.displayOrder,n.element.numOfBalances,h);return t.jsx(xu,{backgroundColor:o,isSticky:r,height:i,isScrolling:l,vendorRowIndex:n.element.index,vendor:d.vendor,accountBase:d.account,classBase:d.classBase,isLastNode:s,balances:u.balances,isAccountColumnShown:n.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:n.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:(g,p)=>{n.config.opexByVendorConfig?.onVendorNameAndBalanceClicked(g,p)}})},ku=(e,n,i,o)=>{if(e.element.kind!=="loading_in_progress")return null;const r=Re(e.element.data,e.config.displayOrder).map(l=>De(l));return t.jsx(gh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})},ju=(e,n,i,o)=>{if(e.element.kind!=="title_string_only")return null;const r=Re(e.element.data,e.config.displayOrder).map(l=>De(l));return t.jsx(bh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})};function xn(e,n,i){return Cu(n,i,e)}const Cu=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.account.balancesInTimeframe,o.compactedAccountsSelector=r=>Zn(r.accounts,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>Zn(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r,o.compactedAccountGroupsSelector=r=>Su(r,o.acGroupBalanceSelector,i,n),o};function Zn(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>$u((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[]))||po((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[])));case"filter_forecast_nil_balances":return e.filter(o=>qn(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>qn(n(o)?.balances??[]))}}function Su(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>po(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>vu(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>_u(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function po(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function $u(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 vu(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 _u(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 qn(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 go(e,n,i=-1,o=!0){const r=i!==-1;let l=[],s=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Lu([],i)),{balances:l,thisPeriodIndex:s};let d=e.balances;return n==="ascending_date"?s=e.balances.length-1:(s=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:s}}function Lu(e,n){return e.length>0?e:ei(Array(n),null)}const Au=a.div`
|
|
2243
|
-
display: flex;
|
|
2244
|
-
flex: 1 1 auto;
|
|
2245
|
-
width: fit-content;
|
|
2246
|
-
min-width: 100%;
|
|
2247
|
-
flex-direction: column;
|
|
2248
|
-
height: ${e=>e.height}px;
|
|
2249
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2250
|
-
`,Bu=a.div`
|
|
2251
|
-
user-select: none;
|
|
2252
|
-
display: flex;
|
|
2253
|
-
flex: 1 1 auto;
|
|
2254
|
-
flex-flow: row;
|
|
2255
|
-
justify-content: flex-start;
|
|
2256
|
-
align-items: center;
|
|
2257
|
-
&:hover {
|
|
2258
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2259
|
-
}
|
|
2260
|
-
`,Wu=a.div`
|
|
2261
|
-
display: flex;
|
|
2262
|
-
flex: 1 0 auto;
|
|
2263
|
-
flex-direction: row;
|
|
2264
|
-
justify-content: flex-end;
|
|
2265
|
-
`,Iu=a.div`
|
|
2266
|
-
display: flex;
|
|
2267
|
-
flex-direction: row;
|
|
2268
|
-
justify-content: flex-start;
|
|
2269
|
-
`,fo=a(S)`
|
|
2270
|
-
user-select: none;
|
|
2271
|
-
min-width: ${k.balanceWidth};
|
|
2272
|
-
max-width: ${k.balanceWidth};
|
|
2273
|
-
text-align: right;
|
|
2274
|
-
margin-left: ${k.balanceLeftMargin};
|
|
2275
|
-
color: ${e=>e.theme.colors.primary};
|
|
2276
|
-
`,Mu=a(fo)`
|
|
2277
|
-
color: ${e=>e.theme.colors.hero};
|
|
2278
|
-
&:hover {
|
|
2279
|
-
color: inherit;
|
|
2280
|
-
}
|
|
2281
|
-
`,Ou=a.div`
|
|
2282
|
-
display: flex;
|
|
2283
|
-
flex-direction: row;
|
|
2284
|
-
flex-shrink: 2;
|
|
2285
|
-
flex-grow: 1;
|
|
2286
|
-
align-items: center;
|
|
2287
|
-
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2288
|
-
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2289
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2290
|
-
${({isSticky:e})=>e?O`
|
|
2291
|
-
position: -webkit-sticky;
|
|
2292
|
-
position: sticky;
|
|
2293
|
-
top: ${c.sp0};
|
|
2294
|
-
left: ${c.sp0};
|
|
2295
|
-
`:null}
|
|
2296
|
-
`,xo=a(S)`
|
|
2297
|
-
user-select: none;
|
|
2298
|
-
clear: both;
|
|
2299
|
-
display: inline-block;
|
|
2300
|
-
overflow: hidden;
|
|
2301
|
-
white-space: nowrap;
|
|
2302
|
-
text-overflow: ellipsis;
|
|
2303
|
-
text-align: left;
|
|
2304
|
-
margin-left: ${c.sp4};
|
|
2305
|
-
color: ${e=>e.theme.colors.primary};
|
|
2306
|
-
`,Nu=a(xo)`
|
|
2307
|
-
color: ${e=>e.theme.colors.hero};
|
|
2308
|
-
&:hover {
|
|
2309
|
-
color: inherit;
|
|
2310
|
-
}
|
|
2311
|
-
`,Pu=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?Mu:fo;return t.jsxs(Iu,{children:[re(e)===!0||o?t.jsx(l,{children:Z(n)}):t.jsx(l,{children:J(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(n)}),t.jsx(l,{children:r==="compare_mode_percent"?ce(n):de(n)})]}):null]})};function zu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:s,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:g,isOpen:p,isLeaf:f,isLastNode:m,onClick:y}){const b=le(),$=I(),C=!f,B=C?"pointer":"default",_=l==="collapsed",L=l==="hidden",N=L===!0?w[6]:w[4],P=_===!0?Nu:xo,H=_===!0?ni:ii,T=_===!0?b.colors.hero:b.colors.primary;return t.jsxs(Au,{height:r,bgColor:n,"data-testid":x("pandl-report-account-group-row-root-container",o),children:[t.jsxs(Bu,{"data-testid":x("pandl-report-account-group-row-container",o),style:{cursor:B},isClickable:C,onClick:()=>y?.(o),children:[he(e)===!0?t.jsxs(Ou,{bgColor:n,isSticky:i,windowSize:$,children:[L===!1?t.jsx(H,{color:T,style:{width:w[3],height:w[3]}}):null,t.jsx(P,{style:{marginLeft:N},children:s})]}):null,me(e)===!0?t.jsx(Wu,{children:d.map((Y,q)=>t.jsx(Pu,{type:e,accountGroupName:s,balance:Y,isActualVsForecastOn:h,compareMode:u,collapsed:_},q))}):null]}),t.jsx(Fu,{isScrolling:g,type:e,isLeaf:f,isLastNode:m,isOpen:p})]})}function Fu({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=he(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(we,{isScrolling:e,kind:r})}const Tu=a.div`
|
|
2312
|
-
display: flex;
|
|
2313
|
-
flex: 1 1 auto;
|
|
2314
|
-
width: fit-content;
|
|
2315
|
-
min-width: 100%;
|
|
2316
|
-
flex-direction: column;
|
|
2317
|
-
height: ${e=>e.height}px;
|
|
2318
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2319
|
-
`,Vu=a.div`
|
|
2320
|
-
user-select: none;
|
|
2321
|
-
display: flex;
|
|
2322
|
-
flex: 1 1 auto;
|
|
2323
|
-
flex-flow: row;
|
|
2324
|
-
justify-content: flex-start;
|
|
2325
|
-
align-items: center;
|
|
2326
|
-
&:hover {
|
|
2327
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2328
|
-
}
|
|
2329
|
-
`,Du=a.div`
|
|
2330
|
-
display: flex;
|
|
2331
|
-
flex: 1 0 auto;
|
|
2332
|
-
flex-direction: row;
|
|
2333
|
-
justify-content: flex-end;
|
|
2334
|
-
`,Gu=a.div`
|
|
2335
|
-
display: flex;
|
|
2336
|
-
flex-direction: row;
|
|
2337
|
-
justify-content: flex-start;
|
|
2338
|
-
`,mo=a(S)`
|
|
2339
|
-
user-select: none;
|
|
2340
|
-
min-width: ${k.balanceWidth};
|
|
2341
|
-
max-width: ${k.balanceWidth};
|
|
2342
|
-
text-align: right;
|
|
2343
|
-
margin-left: ${k.balanceLeftMargin};
|
|
2344
|
-
color: ${e=>e.theme.colors.primary};
|
|
2345
|
-
`,Ru=a(mo)`
|
|
2346
|
-
color: ${e=>e.theme.colors.hero};
|
|
2347
|
-
&:hover {
|
|
2348
|
-
color: inherit;
|
|
2349
|
-
}
|
|
2350
|
-
`,Eu=a.div`
|
|
2351
|
-
display: flex;
|
|
2352
|
-
flex-direction: row;
|
|
2353
|
-
flex-shrink: 2;
|
|
2354
|
-
flex-grow: 1;
|
|
2355
|
-
align-items: center;
|
|
2356
|
-
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2357
|
-
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2358
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2359
|
-
${({isSticky:e})=>e?O`
|
|
2360
|
-
position: -webkit-sticky;
|
|
2361
|
-
position: sticky;
|
|
2362
|
-
top: ${c.sp0};
|
|
2363
|
-
left: ${c.sp0};
|
|
2364
|
-
`:null}
|
|
2365
|
-
`,wo=a(S)`
|
|
2366
|
-
user-select: none;
|
|
2367
|
-
clear: both;
|
|
2368
|
-
display: inline-block;
|
|
2369
|
-
overflow: hidden;
|
|
2370
|
-
white-space: nowrap;
|
|
2371
|
-
text-overflow: ellipsis;
|
|
2372
|
-
text-align: left;
|
|
2373
|
-
margin-left: ${c.sp2};
|
|
2374
|
-
color: ${e=>e.theme.colors.primary};
|
|
2375
|
-
`,Hu=a(wo)`
|
|
2376
|
-
color: ${e=>e.theme.colors.hero};
|
|
2377
|
-
&:hover {
|
|
2378
|
-
color: inherit;
|
|
2379
|
-
}
|
|
2380
|
-
`,Ku=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?Ru:mo;return t.jsxs(Gu,{children:[re(e)===!0||o?t.jsx(l,{children:Z(n)}):t.jsx(l,{children:J(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(n)}),t.jsx(l,{children:r==="compare_mode_percent"?ce(n):de(n)})]}):null]})};function Yu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:s,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:g,isOpen:p,isLeaf:f,isLastNode:m,onClick:y}){const b=I(),$=le(),C=!f,B=C?"pointer":"default",_=l==="collapsed",L=_===!0?Hu:wo,[N,P]=z.useState(!1),H=s.length>0?s.substring(0,1).toUpperCase():"";return t.jsxs(Tu,{"data-testid":x("pandl-account-group-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Vu,{"data-testid":x("pandl-account-group-row-container",o),onMouseOver:()=>P(!0),onMouseLeave:()=>P(!1),style:{cursor:B},isClickable:C,onClick:()=>y?.(o),children:[he(e)===!0?t.jsxs(Eu,{bgColor:n,isSticky:i,windowSize:b,children:[t.jsx(je,{showCollapsedIcon:_,showIcon:N&&C,firstLetter:H,color:A($.colors.primary)}),t.jsx(L,{children:s})]}):null,me(e)===!0?t.jsx(Du,{children:d.map((T,Y)=>t.jsx(Ku,{type:e,accountGroupName:s,balance:T,isActualVsForecastOn:h,compareMode:u,collapsed:_},Y))}):null]}),t.jsx(Uu,{isScrolling:g,type:e,isLeaf:f,isLastNode:m,isOpen:p})]})}function Uu({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=he(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(we,{isScrolling:e,kind:r})}const Zu=a.div`
|
|
2381
|
-
display: flex;
|
|
2382
|
-
flex: 1 1 auto;
|
|
2383
|
-
width: fit-content;
|
|
2384
|
-
min-width: 100%;
|
|
2385
|
-
flex-direction: column;
|
|
2386
|
-
height: ${e=>e.height}px;
|
|
2387
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2388
|
-
`,qu=a.div`
|
|
2389
|
-
user-select: none;
|
|
2390
|
-
display: flex;
|
|
2391
|
-
flex: 1 1 auto;
|
|
2392
|
-
flex-flow: row;
|
|
2393
|
-
justify-content: flex-start;
|
|
2394
|
-
align-items: center;
|
|
2395
|
-
`,Xu=a.div`
|
|
2396
|
-
display: flex;
|
|
2397
|
-
flex: 1 0 auto;
|
|
2398
|
-
flex-direction: row;
|
|
2399
|
-
justify-content: flex-end;
|
|
2400
|
-
`,Ju=a.div`
|
|
2401
|
-
display: flex;
|
|
2402
|
-
flex-direction: row;
|
|
2403
|
-
justify-content: flex-start;
|
|
2404
|
-
`,et=a(S)`
|
|
2405
|
-
user-select: none;
|
|
2406
|
-
min-width: ${k.balanceWidth};
|
|
2407
|
-
max-width: ${k.balanceWidth};
|
|
2408
|
-
text-align: right;
|
|
2409
|
-
margin-left: ${k.balanceLeftMargin};
|
|
2410
|
-
color: ${e=>e.theme.colors.hero};
|
|
2411
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2412
|
-
&:hover {
|
|
2413
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2414
|
-
}
|
|
2415
|
-
`,Qu=a.div`
|
|
2416
|
-
display: flex;
|
|
2417
|
-
flex-direction: row;
|
|
2418
|
-
flex-shrink: 2;
|
|
2419
|
-
flex-grow: 1;
|
|
2420
|
-
align-items: center;
|
|
2421
|
-
${({containerHeight:e})=>e!=null?O`
|
|
2422
|
-
height: ${e-1}px;
|
|
2423
|
-
`:null}
|
|
2424
|
-
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2425
|
-
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2426
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2427
|
-
color: ${e=>e.isSubAccountLeaf?e.theme.colors.grey1:e.theme.colors.hero};
|
|
2428
|
-
cursor: ${e=>e.isRowClickable?"pointer":"default"};
|
|
2429
|
-
&:hover {
|
|
2430
|
-
color: ${e=>e.isRowClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2431
|
-
}
|
|
2432
|
-
${({isSticky:e})=>e?O`
|
|
2433
|
-
position: -webkit-sticky;
|
|
2434
|
-
position: sticky;
|
|
2435
|
-
top: ${c.sp0};
|
|
2436
|
-
left: ${c.sp0};
|
|
2437
|
-
`:null}
|
|
2438
|
-
`,ep=a.div`
|
|
2439
|
-
display: flex;
|
|
2440
|
-
flex-direction: row;
|
|
2441
|
-
flex-shrink: 2;
|
|
2442
|
-
flex-grow: 1;
|
|
2443
|
-
align-items: center;
|
|
2444
|
-
${({containerHeight:e})=>e!=null?O`
|
|
2445
|
-
height: ${e-1}px;
|
|
2446
|
-
`:null}
|
|
2447
|
-
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2448
|
-
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2449
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2450
|
-
${({isSticky:e})=>e?O`
|
|
2451
|
-
position: -webkit-sticky;
|
|
2452
|
-
position: sticky;
|
|
2453
|
-
top: ${c.sp0};
|
|
2454
|
-
left: ${c.sp0};
|
|
2455
|
-
`:null}
|
|
2456
|
-
`,tp=a(S)`
|
|
2457
|
-
user-select: none;
|
|
2458
|
-
clear: both;
|
|
2459
|
-
display: inline-block;
|
|
2460
|
-
text-align: left;
|
|
2461
|
-
`,np=a(S)`
|
|
2462
|
-
user-select: none;
|
|
2463
|
-
clear: both;
|
|
2464
|
-
display: inline-block;
|
|
2465
|
-
overflow: hidden;
|
|
2466
|
-
white-space: nowrap;
|
|
2467
|
-
text-overflow: ellipsis;
|
|
2468
|
-
text-align: left;
|
|
2469
|
-
margin-left: ${({titleIndentExtraPx:e})=>e!=null&&e>0?`calc(${c.sp6} + ${e}px)`:c.sp6};
|
|
2470
|
-
color: ${e=>e.theme.colors.hero};
|
|
2471
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2472
|
-
&:hover {
|
|
2473
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2474
|
-
}
|
|
2475
|
-
`,ip=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,onAccountBalanceClick:l,stopRowClickPropagation:s})=>{const d=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",h=r!=null&&n!=null&&l!=null&&d!==!0;return t.jsxs(Ju,{"data-testid":x("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(et,{"data-testid":x("account-row-balance-actual",e),isClickable:h,onClick:u=>{s===!0&&u.stopPropagation(),h===!0&&r!=null&&n!=null&&l?.(r,n,pt(r,n))},children:Z(n)}):t.jsx(et,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:J(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(et,{isClickable:!1,"data-testid":x("account-row-balance-forecast",e),children:J(n)}),t.jsx(et,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?ce(n):de(n)})]}):null]})};function op({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isActualVsForecastOn:s,compareMode:d,isScrolling:h,isLeaf:u,isLastNode:g,account:p,titleIndentExtraPx:f,horizontalTreeView:m,horizontalCollapse:y,onAccountBalanceClick:b}){const $=I(),{common:{strings:{hyphen:C}}}=W.getLocalizedStrings(),B=p?.accountDescription?p.accountDescription:C,_=p!=null&&ze(p)===!0||p?.accountName?p.accountName:B;return t.jsxs(Zu,{height:r,bgColor:n,"data-testid":x("account-row-root-container",o),children:[t.jsxs(qu,{"data-testid":x("account-row-container",o),onClick:y!=null?()=>y.onRowClick():void 0,children:[he(e)===!0?m!=null?t.jsx(Qu,{isSticky:i,windowSize:$,bgColor:n,containerHeight:r,isRowClickable:y!=null,isSubAccountLeaf:m.isLeaf,children:t.jsx(tp,{title:_,children:t.jsx(tn,{classAnscestorMetadata:[],collapsed:y!=null?!y.isOpen:!1,depth:m.treeDepth,displayName:_,hasChildren:m.hasChildren,hasSiblings:m.hasSiblings,isLastNode:m.isLastNode,isLeaf:m.isLeaf,noMarginForAccount:!0,subAccountAnscestorMetadata:m.subAccountAncestorMetadata})})}):t.jsx(ep,{isSticky:i,windowSize:$,bgColor:n,children:t.jsx(np,{isClickable:!1,title:_,titleIndentExtraPx:f,children:_})}):null,me(e)===!0?t.jsx(Xu,{children:l.map((L,N)=>t.jsx(ip,{type:e,isActualVsForecastOn:s,compareMode:d,balance:L,account:p,stopRowClickPropagation:y!=null,onAccountBalanceClick:b==null?void 0:(P,H,T)=>{b(o,P,H,T)}},N))}):null]}),t.jsx(rp,{isScrolling:h,type:e,isLeaf:u,isLastNode:g})]})}function rp({isScrolling:e,isLastNode:n,type:i}){const o=n?"ac_group_row_separator":he(i)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(we,{isScrolling:e,kind:o})}const ap=a.div`
|
|
2476
|
-
user-select: none;
|
|
2477
|
-
display: flex;
|
|
2478
|
-
flex: 1 1 auto;
|
|
2479
|
-
width: fit-content;
|
|
2480
|
-
min-width: 100%;
|
|
2481
|
-
height: ${e=>e.height}px;
|
|
2482
|
-
flex-flow: row;
|
|
2483
|
-
justify-content: flex-start;
|
|
2484
|
-
align-items: center;
|
|
2485
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2486
|
-
`,lp=a.div`
|
|
2487
|
-
display: flex;
|
|
2488
|
-
flex: 1 0 auto;
|
|
2489
|
-
flex-direction: row;
|
|
2490
|
-
justify-content: flex-end;
|
|
2491
|
-
`,Xn=a.div`
|
|
2492
|
-
display: flex;
|
|
2493
|
-
max-height: 54px;
|
|
2494
|
-
min-height: 54px;
|
|
2495
|
-
min-width: ${k.balanceWidthInPx}px;
|
|
2496
|
-
justify-content: center;
|
|
2497
|
-
align-items: center;
|
|
2498
|
-
background-color: ${e=>e.theme.colors.background};
|
|
2499
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2500
|
-
border-radius: ${c.sp2};
|
|
2501
|
-
margin-left: ${k.balanceLeftMarginInPx}px;
|
|
2502
|
-
color: ${e=>e.theme.colors.primary};
|
|
2503
|
-
`,sp=a.div`
|
|
2504
|
-
display: flex;
|
|
2505
|
-
flex-direction: row;
|
|
2506
|
-
align-items: center;
|
|
2507
|
-
justify-content: center;
|
|
2508
|
-
height: ${k.balanceHeight};
|
|
2509
|
-
max-width: ${k.balanceWidthInPx-2}px;
|
|
2510
|
-
width: ${k.balanceWidthInPx-2}px;
|
|
2511
|
-
min-width: 0;
|
|
2512
|
-
`,cp=a(S)`
|
|
2513
|
-
display: flex;
|
|
2514
|
-
user-select: none;
|
|
2515
|
-
flex-direction: row;
|
|
2516
|
-
justify-content: center;
|
|
2517
|
-
align-items: center;
|
|
2518
|
-
height: ${k.balanceHeight};
|
|
2519
|
-
max-width: ${k.balanceWidthInPx-2}px;
|
|
2520
|
-
width: ${k.balanceWidthInPx-2}px;
|
|
2521
|
-
text-align: center;
|
|
2522
|
-
overflow: hidden;
|
|
2523
|
-
text-overflow: ellipsis;
|
|
2524
|
-
white-space: nowrap;
|
|
2525
|
-
`,dp=a.div`
|
|
2526
|
-
height: 100%;
|
|
2527
|
-
display: inline-block;
|
|
2528
|
-
flex-direction: row;
|
|
2529
|
-
align-items: center;
|
|
2530
|
-
min-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2531
|
-
color: ${e=>e.theme.colors.grey5};
|
|
2532
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2533
|
-
border: 1px solid ${e=>e.bgColor?.hex()};
|
|
2534
|
-
${({isSticky:e})=>e?O`
|
|
2535
|
-
position: -webkit-sticky;
|
|
2536
|
-
position: sticky;
|
|
2537
|
-
top: ${c.sp0};
|
|
2538
|
-
left: ${c.sp0};
|
|
2539
|
-
z-index: 20;
|
|
2540
|
-
`:null}
|
|
2541
|
-
`;function hp({text:e}){const n=le();return t.jsx(sp,{children:t.jsx(To,{text:e,style:{width:"100%",minWidth:0},itemTextStyle:{color:n.colors.primary,textAlign:"center"}})})}function up({type:e,backgroundColor:n,isSticky:i,height:o,classColumns:r}){const l=I();return t.jsxs(ap,{height:o,bgColor:n,children:[he(e)===!0?t.jsx(dp,{"aria-hidden":!0,isSticky:i,windowSize:l,bgColor:n}):null,t.jsxs(lp,{children:[r.map((s,d)=>t.jsx(Xn,{children:t.jsx(hp,{text:s.className})},s.classId??d)),t.jsx(Xn,{children:t.jsx(cp,{children:"Total"})},"total")]})]})}const pp=a.div`
|
|
2542
|
-
display: flex;
|
|
2543
|
-
flex: 1 1 auto;
|
|
2544
|
-
width: fit-content;
|
|
2545
|
-
min-width: 100%;
|
|
2546
|
-
flex-direction: column;
|
|
2547
|
-
height: ${e=>e.height}px;
|
|
2548
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2549
|
-
`,gp=a.div`
|
|
2550
|
-
user-select: none;
|
|
2551
|
-
display: flex;
|
|
2552
|
-
flex: 1 1 auto;
|
|
2553
|
-
flex-flow: row;
|
|
2554
|
-
justify-content: flex-start;
|
|
2555
|
-
align-items: center;
|
|
2556
|
-
`,fp=a.div`
|
|
2557
|
-
display: flex;
|
|
2558
|
-
flex: 1 0 auto;
|
|
2559
|
-
flex-direction: row;
|
|
2560
|
-
justify-content: flex-end;
|
|
2561
|
-
`,xp=a.div`
|
|
2562
|
-
display: flex;
|
|
2563
|
-
flex-direction: row;
|
|
2564
|
-
justify-content: flex-start;
|
|
2565
|
-
`,tt=a(S)`
|
|
2566
|
-
user-select: none;
|
|
2567
|
-
max-width: ${k.balanceWidth};
|
|
2568
|
-
min-width: ${k.balanceWidth};
|
|
2569
|
-
text-align: right;
|
|
2570
|
-
margin-left: ${k.balanceLeftMargin};
|
|
2571
|
-
`,mp=a.div`
|
|
2572
|
-
display: flex;
|
|
2573
|
-
flex-direction: row;
|
|
2574
|
-
flex-shrink: 2;
|
|
2575
|
-
flex-grow: 1;
|
|
2576
|
-
align-items: center;
|
|
2577
|
-
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2578
|
-
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2579
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2580
|
-
${({isSticky:e})=>e?O`
|
|
2581
|
-
position: -webkit-sticky;
|
|
2582
|
-
position: sticky;
|
|
2583
|
-
top: ${c.sp0};
|
|
2584
|
-
left: ${c.sp0};
|
|
2585
|
-
`:null}
|
|
2586
|
-
`,wp=a.div`
|
|
2587
|
-
display: flex;
|
|
2588
|
-
flex-grow: 8;
|
|
2589
|
-
`,yp=a(S)`
|
|
2590
|
-
user-select: none;
|
|
2591
|
-
user-select: none;
|
|
2592
|
-
clear: both;
|
|
2593
|
-
display: inline-block;
|
|
2594
|
-
overflow: hidden;
|
|
2595
|
-
white-space: nowrap;
|
|
2596
|
-
text-overflow: ellipsis;
|
|
2597
|
-
text-align: left;
|
|
2598
|
-
margin-left: ${c.sp2};
|
|
2599
|
-
`,bp=a(ke)`
|
|
2600
|
-
display: flex;
|
|
2601
|
-
color: ${e=>e.theme.colors.primary};
|
|
2602
|
-
align-items: center;
|
|
2603
|
-
flex-direction: row;
|
|
2604
|
-
justify-content: flex-end;
|
|
2605
|
-
padding: 1px 6px;
|
|
2606
|
-
height: 20px;
|
|
2607
|
-
border: 1px solid ${e=>e.theme.colors.primary};
|
|
2608
|
-
border-radius: ${c.sp1};
|
|
2609
|
-
margin: 0 ${c.sp5} 0 ${c.sp3};
|
|
2610
|
-
`,kp=({metadata:e,depth:n})=>n===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(zo,{}):t.jsx(Fo,{}),jp=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(xp,{children:[re(e)===!0||o?t.jsx(tt,{style:{color:i},children:Z(n)}):t.jsx(tt,{style:{color:i},children:J(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(tt,{style:{color:i},children:J(n)}),t.jsx(tt,{style:{color:i},children:r==="compare_mode_percent"?ce(n):de(n)})]}):null]});function Cp({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,className:l,classCode:s,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:g,isScrolling:p,isOpen:f,isLeaf:m,metadata:y,showClassAccountNumber:b,onClick:$,depth:C}){const B=I(),_=le(),L=!m,N=L?"pointer":"default",P=_.colors.primary,H=l.length>0?l.substr(0,1).toUpperCase():"",[T,Y]=z.useState(!1),q=y.classAncestorMetadata??[];return t.jsxs(pp,{"data-testid":x("class-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(gp,{"data-testid":x("class-row-container",o),style:{cursor:N},onClick:()=>$?.(o),onMouseOver:()=>Y(!0),onMouseLeave:()=>Y(!1),children:[he(e)===!0?t.jsxs(mp,{isSticky:i,windowSize:B,bgColor:n,children:[t.jsx(sa,{name:l,ancestorMetadata:q,depth:C}),t.jsx(kp,{metadata:q[C],depth:C}),t.jsx(je,{color:A(P),showCollapsedIcon:!f,showIcon:T&&L,firstLetter:H,showTreeLine:g}),t.jsx(wp,{children:t.jsx(yp,{style:{color:P},children:l})}),T===!0&&b===!0&&s!==void 0&&t.jsx(bp,{children:s})]}):null,me(e)===!0?t.jsx(fp,{children:d.map((se,X)=>t.jsx(jp,{type:e,sectionName:l,balance:se,isActualVsForecastOn:h,compareMode:u,color:P},X))}):null]}),t.jsx(Sp,{isScrolling:p,isLeaf:m,isOpen:f})]})}function Sp({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(we,{isScrolling:e,kind:"section_row_separator"}):null}const $p=a.div`
|
|
2611
|
-
display: flex;
|
|
2612
|
-
flex: 1 1 auto;
|
|
2613
|
-
width: fit-content;
|
|
2614
|
-
min-width: 100%;
|
|
2615
|
-
flex-direction: column;
|
|
2616
|
-
height: ${e=>e.height}px;
|
|
2617
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2618
|
-
`,vp=a.div`
|
|
2619
|
-
user-select: none;
|
|
2620
|
-
display: flex;
|
|
2621
|
-
flex: 1 1 auto;
|
|
2622
|
-
flex-flow: row;
|
|
2623
|
-
justify-content: flex-start;
|
|
2624
|
-
align-items: center;
|
|
2625
|
-
`,_p=a.div`
|
|
2626
|
-
display: flex;
|
|
2627
|
-
flex: 1 0 auto;
|
|
2628
|
-
flex-direction: row;
|
|
2629
|
-
justify-content: flex-end;
|
|
2630
|
-
`,Lp=a.div`
|
|
2631
|
-
display: flex;
|
|
2632
|
-
flex-direction: row;
|
|
2633
|
-
justify-content: flex-start;
|
|
2634
|
-
`,nt=a(S)`
|
|
2635
|
-
user-select: none;
|
|
2636
|
-
max-width: ${k.balanceWidth};
|
|
2637
|
-
min-width: ${k.balanceWidth};
|
|
2638
|
-
text-align: right;
|
|
2639
|
-
margin-left: ${k.balanceLeftMargin};
|
|
2640
|
-
`,Ap=a.div`
|
|
2641
|
-
display: flex;
|
|
2642
|
-
flex-direction: row;
|
|
2643
|
-
flex-shrink: 2;
|
|
2644
|
-
flex-grow: 1;
|
|
2645
|
-
align-items: center;
|
|
2646
|
-
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2647
|
-
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2648
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2649
|
-
${({isSticky:e})=>e?O`
|
|
2650
|
-
position: -webkit-sticky;
|
|
2651
|
-
position: sticky;
|
|
2652
|
-
top: ${c.sp0};
|
|
2653
|
-
left: ${c.sp0};
|
|
2654
|
-
`:null}
|
|
2655
|
-
`,Bp=a(S)`
|
|
2656
|
-
user-select: none;
|
|
2657
|
-
user-select: none;
|
|
2658
|
-
clear: both;
|
|
2659
|
-
display: inline-block;
|
|
2660
|
-
overflow: hidden;
|
|
2661
|
-
white-space: nowrap;
|
|
2662
|
-
text-overflow: ellipsis;
|
|
2663
|
-
text-align: left;
|
|
2664
|
-
margin-left: ${c.sp2};
|
|
2665
|
-
`,Wp=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(Lp,{children:[re(e)===!0||o?t.jsx(nt,{style:{color:i},children:Z(n)}):t.jsx(nt,{style:{color:i},children:J(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(nt,{style:{color:i},children:J(n)}),t.jsx(nt,{style:{color:i},children:r==="compare_mode_percent"?ce(n):de(n)})]}):null]});function mn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:s,isActualVsForecastOn:d,compareMode:h,sectionColor:u,isScrolling:g,isOpen:p,isLeaf:f,onClick:m}){const y=I(),b=!f,$=b?"pointer":"default",C=l.length>0?l.substring(0,1).toUpperCase():"",[B,_]=z.useState(!1);return t.jsxs($p,{"data-testid":x("section-row",o),height:r,bgColor:n,children:[t.jsxs(vp,{"data-testid":x("section-row-container",o),style:{cursor:$},onClick:()=>m?.(o),onMouseOver:()=>_(!0),onMouseLeave:()=>_(!1),children:[he(e)===!0?t.jsxs(Ap,{isSticky:i,windowSize:y,bgColor:n,children:[t.jsx(je,{color:A(u),showCollapsedIcon:!p,showIcon:B&&b,firstLetter:C}),t.jsx(Bp,{style:{color:u},children:l})," "]}):null,me(e)===!0?t.jsx(_p,{children:s.map((L,N)=>t.jsx(Wp,{type:e,sectionName:l,balance:L,isActualVsForecastOn:d,compareMode:h,color:u},N))}):null]}),t.jsx(Ip,{isScrolling:g,isLeaf:f,isOpen:p})]})}function Ip({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(we,{isScrolling:e,kind:"section_row_separator"}):null}const Mp=a.div`
|
|
2666
|
-
display: flex;
|
|
2667
|
-
flex: 1 1 auto;
|
|
2668
|
-
width: fit-content;
|
|
2669
|
-
min-width: 100%;
|
|
2670
|
-
flex-direction: column;
|
|
2671
|
-
height: ${e=>e.height-1}px;
|
|
2672
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2673
|
-
`,Op=a.div`
|
|
2674
|
-
user-select: none;
|
|
2675
|
-
display: flex;
|
|
2676
|
-
flex: 1 1 auto;
|
|
2677
|
-
flex-flow: row;
|
|
2678
|
-
justify-content: flex-start;
|
|
2679
|
-
align-items: center;
|
|
2680
|
-
`,Np=a.div`
|
|
2681
|
-
display: flex;
|
|
2682
|
-
flex: 1 0 auto;
|
|
2683
|
-
flex-direction: row;
|
|
2684
|
-
justify-content: flex-end;
|
|
2685
|
-
`,Pp=a.div`
|
|
2686
|
-
display: flex;
|
|
2687
|
-
flex-direction: row;
|
|
2688
|
-
justify-content: flex-start;
|
|
2689
|
-
`,it=a(S)`
|
|
2690
|
-
user-select: none;
|
|
2691
|
-
min-width: ${k.balanceWidth};
|
|
2692
|
-
max-width: ${k.balanceWidth};
|
|
2693
|
-
text-align: right;
|
|
2694
|
-
margin-left: ${k.balanceLeftMargin};
|
|
2695
|
-
color: ${e=>e.theme.colors.hero};
|
|
2696
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2697
|
-
&:hover {
|
|
2698
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2699
|
-
}
|
|
2700
|
-
`,zp=a.div`
|
|
2701
|
-
display: flex;
|
|
2702
|
-
flex-direction: row;
|
|
2703
|
-
flex-shrink: 2;
|
|
2704
|
-
flex-grow: 1;
|
|
2705
|
-
align-items: center;
|
|
2706
|
-
height: ${e=>e.containerHeight-1}px; // Else bottom line doesnt show up
|
|
2707
|
-
// because the height of the svg is much larger
|
|
2708
|
-
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2709
|
-
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2710
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2711
|
-
color: ${e=>e.theme.colors.hero};
|
|
2712
|
-
|
|
2713
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2714
|
-
&:hover {
|
|
2715
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2716
|
-
}
|
|
2717
|
-
${({isSticky:e})=>e?O`
|
|
2718
|
-
position: -webkit-sticky;
|
|
2719
|
-
position: sticky;
|
|
2720
|
-
top: ${c.sp0};
|
|
2721
|
-
left: ${c.sp0};
|
|
2722
|
-
`:null}
|
|
2723
|
-
`,Fp=a(S)`
|
|
2724
|
-
user-select: none;
|
|
2725
|
-
clear: both;
|
|
2726
|
-
display: inline-block;
|
|
2727
|
-
text-align: left;
|
|
2728
|
-
`,Tp=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,showTotal:l,onAccountBalanceClick:s})=>{const d=n!=null?Xo(n?.type):!1,h=r!=null&&n!=null&&s!=null&&d!==!0,u=l===!0?hi(n):Z(n),g=l===!0?Lt(n):J(n),p=l===!0?ui(n):ce(n),f=l===!0?pi(n):de(n);return t.jsxs(Pp,{"data-testid":x("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(it,{"data-testid":x("account-row-balance-actual",e),isClickable:h,onClick:m=>{m.stopPropagation(),h===!0&&r!=null&&n!=null&&s?.(r,n,pt(r,n))},children:u}):t.jsx(it,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:g}),i?t.jsxs(t.Fragment,{children:[t.jsx(it,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:g}),t.jsx(it,{"data-testid":x("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?p:f})]}):null]})};function Vp({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,classDepth:l,accountBalances:s,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:g,noMarginForAccount:p,isLeaf:f,isOpen:m,isLastNode:y,account:b,onAccountBalanceClick:$,onClick:C}){const B=I(),_=b!=null?b.id.length-1:0,L=b?.hasSiblings??!1,N=b!=null?b.children.length!==0:!1,P=u,{common:{strings:{empty:H}}}=W.getLocalizedStrings(),T=b?.account.accountDescription?b.account.accountDescription:H,Y=b?.account.accountName?b.account.accountName:T;return t.jsxs(Mp,{"data-testid":x("sub-account-row",o),height:r,bgColor:n,children:[t.jsxs(Op,{"data-testid":x("sub-account-row-container",o),onClick:()=>C?.(o),children:[t.jsx(zp,{isClickable:N,isSticky:i,windowSize:B,bgColor:n,containerHeight:r,children:t.jsx(Fp,{title:Y,children:t.jsx(tn,{displayName:Y,depth:_,classDepth:l,isLastNode:y,hasChildren:N,hasSiblings:L,isLeaf:f,collapsed:!m,subAccountAnscestorMetadata:P.subAccountAncestorMetadata,classAnscestorMetadata:P.classAncestorMetadata??[],noMarginForAccount:p})})}),me(e)===!0?t.jsx(Np,{children:s.map((q,se)=>t.jsx(Tp,{type:e,isActualVsForecastOn:d,compareMode:h,balance:q,account:b?.account,showTotal:!m,onAccountBalanceClick:$==null?void 0:(X,ue,ye)=>{$(o,X,ue,ye)}},se))}):null]}),t.jsx(Dp,{isScrolling:g,isLeaf:f,isOpen:m,depth:_,isSticky:i,classDepth:l,noMarginForAccount:p})]})}function Dp({isScrolling:e,depth:n,isOpen:i,isLeaf:o,isSticky:r,classDepth:l,noMarginForAccount:s}){return!i||o===!0?t.jsx(we,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:n,isSticky:r,classDepth:l,noMarginForAccount:s}}):null}const Gp=[10,14,20,20,20],Rp=a.div`
|
|
2729
|
-
display: flex;
|
|
2730
|
-
flex: 1 1 auto;
|
|
2731
|
-
width: fit-content;
|
|
2732
|
-
min-width: 100%;
|
|
2733
|
-
flex-direction: column;
|
|
2734
|
-
height: ${e=>e.height-1}px;
|
|
2735
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2736
|
-
`,Ep=a.div`
|
|
2737
|
-
user-select: none;
|
|
2738
|
-
display: flex;
|
|
2739
|
-
flex: 1 1 auto;
|
|
2740
|
-
flex-flow: row;
|
|
2741
|
-
justify-content: flex-start;
|
|
2742
|
-
align-items: center;
|
|
2743
|
-
`,Hp=a.div`
|
|
2744
|
-
width: ${e=>gi.emptyLeftContainer.valuePx(e.windowSize)};
|
|
2745
|
-
height: ${c.sp1};
|
|
2746
|
-
`,Kp=a.div`
|
|
2747
|
-
display: flex;
|
|
2748
|
-
flex: 1 0 auto;
|
|
2749
|
-
flex-direction: row;
|
|
2750
|
-
justify-content: flex-end;
|
|
2751
|
-
`,Yp=a.div`
|
|
2752
|
-
display: flex;
|
|
2753
|
-
flex-direction: row;
|
|
2754
|
-
justify-content: flex-start;
|
|
2755
|
-
`,ot=a(S)`
|
|
2756
|
-
user-select: none;
|
|
2757
|
-
min-width: ${k.balanceWidth};
|
|
2758
|
-
max-width: ${k.balanceWidth};
|
|
2759
|
-
text-align: right;
|
|
2760
|
-
margin-left: ${k.balanceLeftMargin};
|
|
2761
|
-
color: ${e=>e.theme.colors.primary};
|
|
2762
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2763
|
-
`,Up=a.div`
|
|
2764
|
-
display: flex;
|
|
2765
|
-
flex-direction: row;
|
|
2766
|
-
flex-shrink: 2;
|
|
2767
|
-
flex-grow: 1;
|
|
2768
|
-
align-items: center;
|
|
2769
|
-
height: ${e=>e.containerHeight-1}px;
|
|
2770
|
-
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2771
|
-
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2772
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2773
|
-
${({isSticky:e})=>e?O`
|
|
2774
|
-
position: -webkit-sticky;
|
|
2775
|
-
position: sticky;
|
|
2776
|
-
top: ${c.sp0};
|
|
2777
|
-
left: ${c.sp0};
|
|
2778
|
-
`:null}
|
|
2779
|
-
`,Zp=a(S)`
|
|
2780
|
-
user-select: none;
|
|
2781
|
-
clear: both;
|
|
2782
|
-
display: inline-block;
|
|
2783
|
-
overflow: hidden;
|
|
2784
|
-
white-space: nowrap;
|
|
2785
|
-
text-overflow: ellipsis;
|
|
2786
|
-
text-align: left;
|
|
2787
|
-
margin-left: ${e=>Gp[e.depth]}px;
|
|
2788
|
-
color: ${e=>e.theme.colors.primary};
|
|
2789
|
-
width: ${e=>k.titleWidth.value(e.windowSize)-e.depth*80}px;
|
|
2790
|
-
`,qp=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs(Yp,{"data-testid":x("sub-account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(ot,{"data-testid":x("sub-account-row-balance-element-actual",e),isClickable:!1,children:hi(n)}):t.jsx(ot,{"data-testid":x("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Lt(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(ot,{"data-testid":x("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Lt(n)}),t.jsx(ot,{"data-testid":x("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?ui(n):pi(n)})]}):null]});function Xp({type:e,backgroundColor:n,isSticky:i,height:o,classDepth:r,accountName:l,accountBalances:s,account:d,noMarginForAccount:h,isActualVsForecastOn:u,compareMode:g,isScrolling:p,metadata:f}){const m=I(),y=W.getLocalizedStrings().reports.sections,b=d!=null?d.id.length-1:0,$=f;return t.jsxs(Rp,{height:o,bgColor:n,children:[t.jsxs(Ep,{children:[t.jsxs(Up,{isSticky:i,windowSize:m,bgColor:n,containerHeight:o,children:[r!=null?t.jsx(xi,{ancestorMetadata:$.classAncestorMetadata??[],depth:r,name:l}):h===!1?t.jsx(Hp,{windowSize:m}):null,t.jsx(mi,{ancestorMetadata:$.subAccountAncestorMetadata,depth:b,name:l}),t.jsx(Zp,{"data-testid":x("sub-account-row-name",e),isClickable:!1,title:l,depth:b,windowSize:m,children:y.totalPrefix+" "+l})]}),me(e)===!0?t.jsx(Kp,{children:s.map((C,B)=>t.jsx(qp,{type:e,isActualVsForecastOn:u,compareMode:g,balance:C},B))}):null]}),t.jsx(Jp,{isScrolling:p,nestingLevel:b,isSticky:i,classDepth:r,noMarginForAccount:h})]})}function Jp({isScrolling:e,nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}){return t.jsx(we,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}})}const Qp=a.div`
|
|
2791
|
-
user-select: none;
|
|
2792
|
-
display: flex;
|
|
2793
|
-
flex: 1 1 auto;
|
|
2794
|
-
width: fit-content;
|
|
2795
|
-
min-width: 100%;
|
|
2796
|
-
height: ${e=>e.height}px;
|
|
2797
|
-
flex-flow: row;
|
|
2798
|
-
justify-content: flex-start;
|
|
2799
|
-
align-items: center;
|
|
2800
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2801
|
-
`,eg=a.div`
|
|
2802
|
-
display: flex;
|
|
2803
|
-
flex: 1 0 auto;
|
|
2804
|
-
flex-direction: row;
|
|
2805
|
-
justify-content: flex-end;
|
|
2806
|
-
`,Fe=k.balanceWidthInPx+k.balanceLeftMarginInPx,yo=a.div`
|
|
2807
|
-
display: flex;
|
|
2808
|
-
max-height: 54px;
|
|
2809
|
-
min-height: 54px;
|
|
2810
|
-
min-width: ${e=>e.isActualVsForecastOn?3*(Fe-2)-k.balanceLeftMarginInPx:k.balanceWidthInPx}px;
|
|
2811
|
-
justify-content: center;
|
|
2812
|
-
align-items: center;
|
|
2813
|
-
background-color: ${e=>e.theme.colors.background};
|
|
2814
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2815
|
-
border-radius: ${c.sp2};
|
|
2816
|
-
margin-left: ${e=>e.isActualVsForecastOn?w[0]:k.balanceLeftMarginInPx}px;
|
|
2817
|
-
color: ${e=>e.theme.colors.primary};
|
|
2818
|
-
`,bo=a(S)`
|
|
2819
|
-
display: flex;
|
|
2820
|
-
user-select: none;
|
|
2821
|
-
flex-direction: row;
|
|
2822
|
-
justify-content: center;
|
|
2823
|
-
align-items: center;
|
|
2824
|
-
height: ${k.balanceHeight};
|
|
2825
|
-
max-width: ${k.balanceWidthInPx-2}px;
|
|
2826
|
-
width: 138px;
|
|
2827
|
-
text-align: center;
|
|
2828
|
-
`,tg=a.div`
|
|
2829
|
-
height: 100%;
|
|
2830
|
-
display: inline-block;
|
|
2831
|
-
flex-direction: row;
|
|
2832
|
-
align-items: center;
|
|
2833
|
-
min-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2834
|
-
color: ${e=>e.theme.colors.grey5};
|
|
2835
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2836
|
-
border: 1px solid ${e=>e.bgColor?.hex()};
|
|
2837
|
-
${({isSticky:e})=>e?O`
|
|
2838
|
-
position: -webkit-sticky;
|
|
2839
|
-
position: sticky;
|
|
2840
|
-
top: ${c.sp0};
|
|
2841
|
-
left: ${c.sp0};
|
|
2842
|
-
z-index: 20;
|
|
2843
|
-
`:null}
|
|
2844
|
-
`,ng=a.div`
|
|
2845
|
-
display: flex;
|
|
2846
|
-
width: ${e=>e.isActualVsForecastOn?3*Fe:Fe}px;
|
|
2847
|
-
flex-direction: row;
|
|
2848
|
-
justify-content: flex-start;
|
|
2849
|
-
color: ${e=>e.theme.colors.champion};
|
|
2850
|
-
`,_t=a(S)`
|
|
2851
|
-
display: flex;
|
|
2852
|
-
justify-content: flex-end;
|
|
2853
|
-
align-items: center;
|
|
2854
|
-
height: ${k.balanceHeight};
|
|
2855
|
-
width: ${k.balanceWidth};
|
|
2856
|
-
min-width: ${k.balanceWidth};
|
|
2857
|
-
margin-left: ${k.balanceLeftMargin};
|
|
2858
|
-
margin-top: ${c.sp3};
|
|
2859
|
-
`,ig=a.div`
|
|
2860
|
-
display: flex;
|
|
2861
|
-
max-height: 54px;
|
|
2862
|
-
min-height: 54px;
|
|
2863
|
-
justify-content: center;
|
|
2864
|
-
align-items: center;
|
|
2865
|
-
color: ${e=>e.theme.colors.champion};
|
|
2866
|
-
`,og=a.div``,rg=a(S)`
|
|
2867
|
-
display: flex;
|
|
2868
|
-
justify-content: center;
|
|
2869
|
-
align-items: center;
|
|
2870
|
-
max-height: 54px;
|
|
2871
|
-
min-height: 54px;
|
|
2872
|
-
background-color: ${e=>e.theme.colors.background};
|
|
2873
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2874
|
-
border-radius: ${c.sp2};
|
|
2875
|
-
margin-left: ${k.balanceLeftMarginInPx}px;
|
|
2876
|
-
color: ${e=>e.theme.colors.primary};
|
|
2877
|
-
width: ${k.balanceWidth};
|
|
2878
|
-
min-width: ${k.balanceWidth};
|
|
2879
|
-
`,ag=a.div`
|
|
2880
|
-
display: flex;
|
|
2881
|
-
width: ${e=>e.isActualVsForecastOn?3*Fe:Fe}px;
|
|
2882
|
-
flex-direction: column;
|
|
2883
|
-
align-items: flex-end;
|
|
2884
|
-
`,lg=a.div`
|
|
2885
|
-
max-height: 54px;
|
|
2886
|
-
min-height: 54px;
|
|
2887
|
-
`,ko=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=W.getLocalizedStrings().reports,s=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?di(i,e,n,r,o):void 0,d=s!=null?s==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=oo(s,i);return t.jsx(lg,{children:r!=null&&o!=null&&s!=null&&d!=null&&h!=null?t.jsx(io,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:s}):t.jsx(yo,{isActualVsForecastOn:!1,children:t.jsx(bo,{children:Ge(e,n,i)})})})},sg=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:s,onCompareModeChanged:d})=>{const h=W.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(ag,{isActualVsForecastOn:o,children:[t.jsx(yo,{isActualVsForecastOn:o,children:t.jsx(bo,{children:Ge(e,n,i)})}),t.jsxs(ng,{isActualVsForecastOn:o,children:[t.jsx(_t,{children:h.actual}),t.jsx(_t,{children:h.forecast}),t.jsx(_t,{children:t.jsx(pn,{title:u,titleTextStyle:Kt.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:g=>{g!=="off"?d?.(g):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(ko,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:s})},cg=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:s})=>{const d=le(),h=o==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return t.jsx(ig,{children:n.map((u,g)=>t.jsx(z.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(rg,{children:t.jsx(pn,{title:h,titleTextStyle:Kt.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:p=>{p!=="off"&&(p==="compare_mode_amount"||p==="compare_mode_percent"?s?.(p):console.warn("Invalid compare mode option"))}})}):t.jsx(og,{children:t.jsx(ko,{firstMonthOfFY:e,timeframeTick:u,timeframe:i,dataAvailable:r,bookCloseDate:l},g)})},g))})};function dg({type:e,backgroundColor:n,isSticky:i,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}){const m=I();return t.jsxs(Qp,{height:o,bgColor:n,children:[he(e)===!0?t.jsx(tg,{isSticky:i,windowSize:m,bgColor:n,children:" . "}):null,t.jsx(eg,{children:l===!0?t.jsx(cg,{firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}):h.map((y,b)=>t.jsx(sg,{firstMonthOfFY:s,timeframeTick:y,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f},b))})]})}const yt=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const f=i.element.data,m=ze(f)===!0?f.horizontalTreeView:void 0,y=ze(f)===!0&&m==null?Math.max(0,f.depth-2)*16:void 0,b=Ve(i.config.reportId)===!0||li(i.config.reportId)===!0?Ri("no_filter",i.config.filterAccountsWithNilBalances):dt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),$=ee(b.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),C=m!=null&&m.hasChildren&&p!=null?{isOpen:u,onRowClick:()=>p(e)}:void 0;return t.jsx(op,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,accountBalances:$.balances,isScrolling:s,isLeaf:d,isLastNode:h,account:f,titleIndentExtraPx:y,horizontalTreeView:m,horizontalCollapse:C,onAccountBalanceClick:p==null?void 0:(B,_,L,N)=>{p?.(B,_,L,N)}})},Ee=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_subaccount"||i.element.data==null)return null;const f=i.element.data,m=xn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),y=go(m.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),b=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,$=i.config.reportId==="operating_expenses";return t.jsx(Vp,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",classDepth:b,compareMode:g,accountBalances:y.balances,isScrolling:s,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:i.element.metadata,onClick:p,noMarginForAccount:$,onAccountBalanceClick:p==null?void 0:(C,B,_,L)=>{p?.(C,B,_,L)}})},bt=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,m=dt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),y=ee(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(zu,{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:g,accountGroupBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},wn=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_group_subaccount"||i.element.data==null)return null;const f=i.element.data,m=xn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),y=ee(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Yu,{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:g,accountGroupBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},yn=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=Vt(i.element.title),m=i.element.data,y=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(mn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},kt=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=Vt(i.element.title),m=i.element.data,y=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(mn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},bn=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=Vt(i.element.title),m=i.element.data,y=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(mn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},He=(e,n,i,o,r,l,s,d,h)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,g=xn("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),p=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=go(g.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),m=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(Xp,{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:s,isLastNode:d,metadata:n.element.metadata,classDepth:p})},Ke=(e,n,i,o,r,l,s,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",g=h.map(p=>De(p));return t.jsx(dg,{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"&&g.length>1,firstMonthOfFY:i.config.firstMonthOfFY,timeframe:u,timeframeTicks:g,compareMode:s,dataAvailable:i.config.dataAvailable,bookCloseDate:i.config.bookCloseDate,onCompareModeChanged:d})},hg=(e,n,i,o,r,l)=>{if(i.element.kind!=="class_headers")return null;const s=i.element.data;return t.jsx(up,{isSticky:l,type:n,height:o,backgroundColor:r,classColumns:s})},jo=(e,n,i,o,r,l,s,d,h,u,g,p,f)=>{if(i.element.kind!="class"||i.element.data==null)return null;const m=i.element.data,y=ee(m.childrenBalancesTotal,i.config.displayOrder,i.element.numOfBalances),b=g>1;return t.jsx(Cp,{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:p,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,hasChildren:m.children.length>0,isLastNode:u,isSubClass:b,showClassAccountNumber:i.config.showClassAccountNumber,onClick:$=>{f?.($)},metadata:i.element.metadata})},ug=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ei,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),pg=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ki,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),Jn=e=>{const{height:n,data:{reportElementData:i,id:o,treeKind:r,isLeaf:l,isLastNode:s,nestingLevel:d,isFirstNode:h},isOpen:u,style:g,setOpen:p,isScrolling:f}=e,m=($,C,B,_)=>{const L=l?u:!u;!l&&B==null&&(p(!u),e.onNodeCollapseToggled?.($,!u)),e.onNodeClick?.($,L,C,B,_)},y=e.treeNodePadding?.left,b=e.treeNodePadding?.right;return t.jsx("div",{style:{...g,width:"auto",minWidth:"100%",paddingLeft:y,paddingRight:b},children:t.jsx(Co,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:i,height:n,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:s,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)})},Co=e=>e.treeKind==="name_only"?t.jsx(yg,{...e}):Xt(e.reportElementData.config.reportId)?t.jsx(kg,{...e}):Qt(e.reportElementData.config.reportId)===!0?t.jsx(bg,{...e}):li(e.reportElementData.config.reportId)===!0?t.jsx(gg,{...e}):Zt(e.reportElementData.config.reportId)===!0?t.jsx(fg,{...e}):Ve(e.reportElementData.config.reportId)===!0?t.jsx(xg,{...e}):qt(e.reportElementData.config.reportId)===!0?t.jsx(mg,{...e}):qo(e.reportElementData.config.reportId)===!0?t.jsx(wg,{...e}):en(e.reportElementData.config.reportId)===!0?t.jsx(jg,{...e}):Jt(e.reportElementData.config.reportId)===!0?t.jsx(Cg,{...e}):null,gg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:m})=>{switch(i.element.kind){case"ac_report":return yt(e,n,i,o,r,l,s,d,h,u,p,f);case"ac_group_report":return bt(e,n,i,o,r,l,s,u,d,h,p,f);case"section":return yn(e,n,i,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return kt(e,n,i,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return bn(e,n,i,o,r,l,s,u,d,h,p,f);case"title_string_only":return null;case"class_headers":return hg(e,n,i,o,r,l);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ke(e,n,i,o,r,l,p,m);case"class":return jo(e,n,i,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return Ee(e,n,i,o,r,l,s,d,u,h,p,f);case"ac_subentity_total":return He(n,i,o,r,l,s,d,h,p);case"headers_loading_in_progress":return pg(i,o,r);case"loading_in_progress":return ug(i,o,r);default:return null}},fg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return yt(e,n,i,o,r,l,s,d,h,u,g,p);case"ac_group_report":return bt(e,n,i,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return Ee(e,n,i,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return wn(e,n,i,o,r,l,s,u,d,h,g,p);case"section":return yn(e,n,i,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return kt(e,n,i,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return bn(e,n,i,o,r,l,s,u,d,h,g,p);case"title_string_only":return null;case"ac_subentity_total":return He(n,i,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ke(e,n,i,o,r,l,g,f);default:return null}},xg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:m})=>{switch(i.element.kind){case"ac_report":return yt(e,n,i,o,r,l,s,d,h,u,p,f);case"ac_group_report":return bt(e,n,i,o,r,l,s,u,d,h,p,f);case"section":return Zi(e,n,i,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return kt(e,n,i,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return qi(e,n,i,o,r,l,s,u,d,h,p,f);case"title_string_only":return ln(e,n,i,o,r,l,s,u,d,h,p,f);case"ac_subentity_total":return He(n,i,o,r,l,s,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ke(e,n,i,o,r,l,p,m);case"class":return jo(e,n,i,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return Ee(e,n,i,o,r,l,s,d,u,h,p,f);case"total":return Xi(e,n,i,o,r,l,p,d);case"headers_loading_in_progress":return Xs(i,o,r);case"loading_in_progress":return qs(i,o,r);default:return null}},mg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return Ys(e,n,i,o,r,l,s,d,h,g,p);case"ac_group_report":return Us(e,n,i,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return Ee(e,n,i,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return wn(e,n,i,o,r,l,s,u,d,h,g,p);case"section":return Zi(e,n,i,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return Zs(e,n,i,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return qi(e,n,i,o,r,l,s,u,d,h,g,p);case"title_string_only":return ln(e,n,i,o,r,l,s,u,d,h,g,p);case"total":return Xi(e,n,i,o,r,l,g,d);case"ac_subentity_total":return He(n,i,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ke(e,n,i,o,r,l,g,f);default:return null}},wg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return yt(e,n,i,o,r,l,s,d,h,u,g,p);case"ac_group_report":return bt(e,n,i,o,r,l,s,u,d,h,g,p);case"section":return yn(e,n,i,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return kt(e,n,i,o,r,l,s,u,d,h,g,p);case"calculated_section":return bn(e,n,i,o,r,l,s,u,d,h,g,p);case"calculated_section_type1":return Pl(e,i,o,r,l,s,h);case"title_string_only":return ln(e,n,i,o,r,l,s,u,d,h,g,p);case"ac_subentity_total":return He(n,i,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ke(e,n,i,o,r,l,g,f);case"ac_subaccount":return Ee(e,n,i,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return wn(e,n,i,o,r,l,s,u,d,h,g,p);default:return null}},yg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:g})=>{switch(i.element.kind){case"checkbox_and_name_only":return lh(e,n,i,o,r,l,s,u,d,h,g);default:return null}},bg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(i.element.kind){case"loading_in_progress":case"spacer_row":return ku(i,o,r,l);case"timeframe_headers":return wu(i,o,l,h,r,u);case"total":return yu(e,n,i,o,l,s,r);case"vendor_row":return bu(n,i,o,r,l,s,d);case"title_string_only":return ju(i,o,r,l);default:return null}},kg=({id:e,treeKind:n,reportElementData:i,height:o,isOpen:r,isSticky:l,isScrolling:s,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:g}=i;switch(i.element.kind){case"spacer_row":return null;case"timeframe_headers":return Za(i,o,h,l,g.agingReportConfig?.sortKey,g.agingReportConfig?.sortOrder,g.agingReportConfig?.onSortOrderChanged);case"total":return Ja(n,i,o,h,l);case"aging_report_row":return qa(e,i,o,r,l,d,s,h,g.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Xa(i,o,l,s,h);default:return null}},jg=({id:e,reportElementData:n,height:i,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:s,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:g,nodeClickHandler:p,hoveredParentIdProps:f})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return Yd(e,n,o,r,l,s,d,f,g);case"flux_vendor_row":return Ud(e,n,o,r,l,u,s,d,h,f,p);case"section":return Zd(e,n,i,o,r,l,u,s,d,p);case"timeframe_headers":return qd(n,i,r);case"total":return Xd(n,i);case"loading_in_progress":return Jd(n);case"headers_loading_in_progress":return Qd(n);default:return null}},Cg=({reportElementData:e,height:n,isSticky:i,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return qr(e,i);case"loading_in_progress":return Zr();case"total":return Xr(e,n,i);case"section":return Ur();case"title_string_only":return Jr(e,n);case"ac_group_report":return Qr(e,n,o);default:return null}};function Qn(e,n,i,o){const r=e.reportElementData.element.data,l=e.reportElementData.config.reportId==="profit_and_loss_by_classes"&&e.reportElementData.element.kind==="ac_report"&&e.children.length>0&&ze(r)===!0?!0:void 0;return{data:{defaultHeight:kn(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??l??Sg(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 kn(e,n,i){return Zt(e)===!0?ea(n):qt(e)===!0||Ve(e)===!0?ls(n):Xt(e)?ua(n):Jt(e)?ct(n):Qt(e)?sh(n):en(e)?Qi(n,i):xl(n)}function Sg(e,n,i,o){return Zt(e)?ta(n,o,i):qt(e)||Ve(e)===!0?ss(n,o):Xt(e)?pa():Qt(e)?ch():en(e)?cc(n):Jt(e)?Qo():ml(n,o)}const $g=a.div`
|
|
2888
|
-
top: 0;
|
|
2889
|
-
left: 0;
|
|
2890
|
-
position: sticky !important;
|
|
2891
|
-
position: -webkit-sticky !important;
|
|
2892
|
-
min-height: ${e=>e.heightValue}px;
|
|
2893
|
-
max-height: ${e=>e.heightValue}px;
|
|
2894
|
-
width: fit-content;
|
|
2895
|
-
min-width: 100%;
|
|
2896
|
-
z-index: 2;
|
|
2897
|
-
display: flex;
|
|
2898
|
-
flex-direction: column;
|
|
2899
|
-
align-items: center;
|
|
2900
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2901
|
-
box-sizing: border-box;
|
|
2902
|
-
`;function vg({height:e,backgroundColor:n,headers:i,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:s}){return i.length===0?null:(i.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx($g,{heightValue:e,bgColor:n,"data-testid":x("sticky-header-report-tree"),children:i.map((d,h)=>t.jsx(Co,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:kn(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:s},d.id))}))}const _g=(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)}},So=z.createContext(void 0);function Lg({height:e,kind:n,rootNodes:i,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:s,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:g,infiniteLoadingProps:p,variableNodeHeightTree:f,onNodeClick:m,onCompareModeChanged:y,scrollPosition:b,onScroll:$,nodeOpenStatus:C,onNodeCollapseToggled:B,onTreeInnerElementHeightChanged:_,onToggleCheck:L,hoveredParentIdProps:N}){const P=z.useRef(null),H=z.useRef(null),T=Cn(f?.prevFetchState),Y=Cn(f?.prevRefreshFetchState),[q,se]=z.useState(0),X=g??H,ue=u??P,ye=I(),[pe,oe]=z.useState(void 0),[Ce,Ye]=z.useState(!1),[Se,Ue]=z.useState(C),xe=(F,te)=>{Ue(Object.assign({},Se,{[F]:te})),B?.(F,te)},ge=F=>{if(i.contentNodes.length>0)if(Object.keys(F).length>0){const te={};Object.keys(F).forEach(be=>{te[be]={open:F[be]}}),ue?.current?.recomputeTree(te)}else{const te=i.contentNodes[0].id;ue?.current?.recomputeTree({[te]:{open:!0}})}};z.useLayoutEffect(()=>{if((!Sn(b,pe)||pe==null)&&X.current!=null){const F=b?.scrollLeft==null?ye==="small"?0:X.current.scrollWidth:b?.scrollLeft;if(b!=null){const te={scrollTop:b.scrollTop,scrollLeft:F};oe(te),F!==b?.scrollLeft&&$?.(te)}X.current.scroll({left:F,top:b?.scrollTop})}},[b]),z.useEffect(()=>{Sn(C,Se)||(Ue(C),ge(C))},[C]),z.useEffect(()=>{const F=X.current,te=Wo(()=>{if(F!=null&&(pe==null||F.scrollLeft!==pe.scrollLeft||F.scrollTop!==pe.scrollTop)){const be={scrollLeft:F.scrollLeft,scrollTop:F.scrollTop};oe(be),$?.(be)}},50);return F?.addEventListener("scroll",te),()=>{F?.removeEventListener("scroll",te)}},[X,pe,$]),z.useEffect(()=>{if(i.contentNodes.length>0){ge(Se);const F=i.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";F!==Ce&&Ye(F)}},[Ce,Ye,i,ue,X]),z.useEffect(()=>{(f!=null&&T==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&Y==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),se(q+1))},[q,f?.fetchState,f?.isSortApplied,T,Y,f]);const Le=z.useRef(),[$o,vo]=z.useState(void 0),_o=()=>{const F=Le.current;F!=null&&F.clientHeight>0&&F.clientHeight!=$o&&(vo(F.clientHeight),_?.(F.clientHeight))},jn=z.useCallback(_g(n,i.contentNodes,Se),[n,i]),Lo={rootNodes:i,treeNodePadding:s,backgroundColor:l,kind:n,isSticky:r,compareMode:o,onCompareModeChanged:y};return t.jsx(So.Provider,{value:Lo,"data-testid":x("report-tree"),children:p==null?t.jsx($n,{className:d,style:h,ref:ue,innerRef:Le,outerRef:X,innerElementType:Tt,treeWalker:jn,onItemsRendered:_o,height:e,width:"100%",children:F=>t.jsx(Jn,{...F,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:s,onNodeClick:m,onNodeCollapseToggled:xe,compareMode:o,onCompareModeChanged:y,onToggleCheck:L})}):t.jsx(Io,{isItemLoaded:p.isItemLoaded,itemCount:p.itemCount+1,loadMoreItems:p.loadMoreItems,children:({onItemsRendered:F,ref:te})=>t.jsx($n,{className:d,style:h,ref:te,innerRef:Le,outerRef:X,innerElementType:Tt,treeWalker:jn,onItemsRendered:F,height:e,width:"100%",children:be=>t.jsx(Jn,{...be,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:s,onNodeClick:m,onNodeCollapseToggled:xe,compareMode:o,onCompareModeChanged:y,onToggleCheck:L,hoveredParentIdProps:N})},q)})})}const Tt=z.forwardRef((e,n)=>{const{children:i,style:o,...r}=e,{rootNodes:l,treeNodePadding:s,backgroundColor:d,kind:h,isSticky:u,compareMode:g,onCompareModeChanged:p}=z.useContext(So),f=l.headerNodes.reduce(($,C)=>$+kn(C.reportElementData.config.reportId,C.reportElementData.element.kind,C.isFirstNode),0),m=s?.left,y=s?.right,b=c.sp8;return t.jsxs("div",{ref:n,style:{...o,width:"auto",minWidth:"100%",paddingLeft:m,paddingRight:y,marginBottom:b},...r,children:[t.jsx(vg,{height:f,backgroundColor:d,headers:l.headerNodes,treeKind:h,isSticky:u.isStickyHeader,compareMode:g,onCompareModeChanged:p}),i]})});Tt.displayName="stickyInnerElementType";const Ag=a.div`
|
|
2903
|
-
display: flex;
|
|
2904
|
-
flex: 1 0 auto;
|
|
2905
|
-
width: ${e=>e.width}px;
|
|
2906
|
-
height: ${e=>e.height}px;
|
|
2907
|
-
padding-left: ${e=>e.paddingLeft}px;
|
|
2908
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2909
|
-
|
|
2910
|
-
& .content-scroll {
|
|
2911
|
-
overflow: auto;
|
|
2912
|
-
scrollbar-width: thin;
|
|
2913
|
-
scrollbar-color: transparent transparent;
|
|
2914
|
-
&::-webkit-scrollbar {
|
|
2915
|
-
width: ${c.sp2};
|
|
2916
|
-
height: ${c.sp2};
|
|
2917
|
-
background-color: transparent;
|
|
2918
|
-
}
|
|
2919
|
-
&::-webkit-scrollbar-thumb {
|
|
2920
|
-
background-color: transparent;
|
|
2921
|
-
}
|
|
2922
|
-
|
|
2923
|
-
&:hover {
|
|
2924
|
-
scrollbar-color: ${e=>e.theme.colors.grey1} transparent;
|
|
2925
|
-
&::-webkit-scrollbar {
|
|
2926
|
-
width: ${c.sp2};
|
|
2927
|
-
height: ${c.sp2};
|
|
2928
|
-
background-color: transparent;
|
|
2929
|
-
}
|
|
2930
|
-
&::-webkit-scrollbar-track {
|
|
2931
|
-
box-shadow: inset 0 0 2px ${Q.scrollbarBoxShadow};
|
|
2932
|
-
-webkit-box-shadow: inset 0 0 2px ${Q.scrollbarBoxShadow};
|
|
2933
|
-
background-color: transparent;
|
|
2934
|
-
}
|
|
2935
|
-
&::-webkit-scrollbar-thumb {
|
|
2936
|
-
background-color: ${e=>e.theme.colors.grey1};
|
|
2937
|
-
border-radius: 2px;
|
|
2938
|
-
}
|
|
2939
|
-
}
|
|
2940
|
-
}
|
|
2941
|
-
`;function Pg({rootNodes:e,type:n,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l,onAccountClick:s,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onCompareModeChanged:g,scrollPosition:p,onScroll:f,nodeOpenStatus:m,onNodeCollapseToggled:y,onReportTableHeightChanged:b,onToggleCheck:$}){return t.jsx(Ao,{children:({height:C,width:B})=>t.jsx(Ag,{"data-testid":x("report-tree-container"),height:C,width:B,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(Lg,{"data-testid":x("report-tree"),treeClassName:"content-scroll",height:C,kind:n,rootNodes:e,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onNodeClick:s==null?void 0:(_,L,N,P,H)=>{N!=null&&P!=null&&s(N,P,H)},onCompareModeChanged:g,scrollPosition:p,onScroll:f,nodeOpenStatus:m,onNodeCollapseToggled:y,onTreeInnerElementHeightChanged:b,onToggleCheck:$})})})}export{ee as D,Ge as F,Ng as J,Pg as X,Z as a,hn as g,dt as h,Js as s,xn as y,Pe as z};
|