@zeniai/web-cockpit-ui 1.14.72-dev-betaSK01 → 1.14.73-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-BZFkcCOG-WfBPHoUX.js → ACHDetailsPage-FHBR2PCA-DLva-SPh.js} +2 -2
- package/dist/assets/{AIPerformancePage-DtNLjoUW-CinUSJg2.js → AIPerformancePage-CiYLvD6Z-bHSk8bLC.js} +124 -124
- package/dist/assets/AccountInfoPage-B0uMPZhx-BIQF2gH2.js +18 -0
- package/dist/assets/{AccountInfoPageContent-B8GKrtCm-10kK72ec.js → AccountInfoPageContent-CdgOtpop-AHRejHe6.js} +13 -13
- package/dist/assets/AccountLockedInfoModal-DnQEp6tD-BW8Fp--s.js +59 -0
- package/dist/assets/AccountReconDetailsDrawerPage-BxjUNX_b-C4CXpIA8.js +239 -0
- package/dist/assets/AccountRow-C6z4Ft3r-BFimoTCg.js +298 -0
- package/dist/assets/AccountsPromoCardStack-BS-HxQ5z-BoaDvf04.js +207 -0
- package/dist/assets/{AddAddressForCardDrawer-Lm7cn4kq-DzFp-OyN.js → AddAddressForCardDrawer-qa7RqzlX-DAOW06gk.js} +2 -2
- package/dist/assets/{AddToWalletPage-nSq-9dQy-D56Hf4hb.js → AddToWalletPage-DNjsPMFK-r8gZ63eR.js} +22 -22
- package/dist/assets/AgingReportsPage-Dmgvzu2b-DiSOGn-n.js +79 -0
- package/dist/assets/AllUserItems-BBC-qn-o-D2MAzw4F.js +192 -0
- package/dist/assets/ApAgingDetailPage-YWdtNxkt-5BxHOM_M.js +46 -0
- package/dist/assets/{AppBasePage-Br0WbQRY-BAK8zLlg.js → AppBasePage-BnA8ceAD-BvanHCQt.js} +5 -5
- package/dist/assets/AppDrawerContent-DKHWPZQW-CEAxNC9t.js +91 -0
- package/dist/assets/ApprovalRulesSettingsPage-D4Vz_gLv-DJSQNR5P.js +47 -0
- package/dist/assets/ArAgingChart-CuHk_U2p-D7juYPVe.js +24 -0
- package/dist/assets/{ArAgingDetailPage-BlV3iJeW-D0lCDh_0.js → ArAgingDetailPage-H77B2AWo-DYwzxBIW.js} +3 -3
- package/dist/assets/{AttachmentView-DhluaeAV-DsM43aN0.js → AttachmentView-D1SPuem6-CmH4xHN2.js} +9 -9
- package/dist/assets/{BankAccountSection-GDEQdiGL-CmBLlIS1.js → BankAccountSection-ByfDYmEM-WCmaTn1f.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-Di_BsiJC-_Ul1tNJQ.js → BankAccountWarningSection-BTCdQgZV-Bb72qOHU.js} +9 -9
- package/dist/assets/BankConnectionsSettingsPage-L62aMW_s-Ce_PfdvA.js +425 -0
- package/dist/assets/BillDetailPage-BBQJpRTI-D0MlJ03G.js +266 -0
- package/dist/assets/{BillPayApprovalRuleDetailPage-BzyTn4mC-DxDRXjZW.js → BillPayApprovalRuleDetailPage-ByLLupWf-BGMDsIwH.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DDJ-LxQz-B-4hhNoy.js → BillPayApprovalRulesPage-D4d-6Jnf-CF6fIJls.js} +7 -7
- package/dist/assets/BillPayPromoPage-CPGYF3vl-DVnbNH0W.js +84 -0
- package/dist/assets/BillPaySetUpPage-CeciDq-c-NzaXshML.js +42 -0
- package/dist/assets/BillingSettingsPage-DknUlTgB-CcR7ugmH.js +44 -0
- package/dist/assets/BillsBulkReviewDrawerPage-BIjlRcX--CZ4DepwQ.js +1 -0
- package/dist/assets/{BoxItem-COIjjFrn-CYZK_lth.js → BoxItem-D4K0YgBP-Bm_px4kT.js} +4 -4
- package/dist/assets/BusinessVerificationPage-CWioKmMC--fpYbOGK.js +138 -0
- package/dist/assets/{CardNumberSubText-CmhH95Ff-D70_vfvB.js → CardNumberSubText-C_03r_B--CXrhgc3z.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BPLjvuA3-D2AlurqK.js → CashbackDetailPage-BaImXBc2-BqUQeIYw.js} +56 -56
- package/dist/assets/{ChargeCardDetailPage-qOu4cPGd-CMQ9x73T.js → ChargeCardDetailPage-Ba7cRz0p-DYtlHHMF.js} +214 -214
- package/dist/assets/ChargeCardListPage-BTH_OAht-CJvC6mTi.js +406 -0
- package/dist/assets/{ChargeCardListTable-BGWV4zJl-CcT6S7FA.js → ChargeCardListTable-DpRWVPmZ-CcrBBELQ.js} +54 -54
- package/dist/assets/ChargeCardPromoPage-B3bc_Qcj-DVNboRNz.js +222 -0
- package/dist/assets/ChargeCardSetupPage-3-7oaikG-BYx_BUtm.js +36 -0
- package/dist/assets/{ChargeCardStatementsPage-CJgUrcLz-BY-SWhAj.js → ChargeCardStatementsPage-3HMKClyw-mCs_-TXo.js} +4 -4
- package/dist/assets/ChargeCardUtils-Cx6ntaue-CziTslau.js +1 -0
- package/dist/assets/{ChaseOverlay-BC_4vwtb-BQqHx8M-.js → ChaseOverlay-1PyDzocW-DV1roPs3.js} +8 -8
- package/dist/assets/{CheckDepositDrawerPage-CDo5E13X-CKNKZDF1.js → CheckDepositDrawerPage-DTADpJQC-sqk-xG07.js} +20 -20
- package/dist/assets/CollapsableReportTable-rEGCWPrN-DiziLVLU.js +2932 -0
- package/dist/assets/CompanyOfficerDetailsSection-Dpe50aqM-B1Sor9Us.js +260 -0
- package/dist/assets/{CompanyPassportCard-D3F01eJL-BhEJq4YF.js → CompanyPassportCard-l9sgkbw_-BXrIXjOn.js} +3 -3
- package/dist/assets/CompanyPassportPage-DQPGAnFq-DsQ6naIu.js +574 -0
- package/dist/assets/CompleteProfile-DJBScNev-5kVXmwEh.js +52 -0
- package/dist/assets/{ConfettiBurst--HIHB7Os-S4QyIwiq.js → ConfettiBurst-DukumtTx-CSzALiwF.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D9jmSrKr-DpdjBsSE.js → CreateOrEditVendorPage-C39AEROO-Df_MDMmD.js} +11 -11
- package/dist/assets/CreditCardPaymentDrawerPage-D8VUjeG2-Nczpa7J9.js +224 -0
- package/dist/assets/{CreditCardPaymentPlgSection-8ZShMO31-COciJwfu.js → CreditCardPaymentPlgSection-L8WvXQsE-Dx-X3Ggn.js} +10 -10
- package/dist/assets/{CurrencySelectField-nhg_dhDw-nZHVWMo0.js → CurrencySelectField-yIymL1et-BBkhU934.js} +6 -6
- package/dist/assets/{CustomerOnboardingActivationPage-CoGvz7Kd-1Tt5lNh3.js → CustomerOnboardingActivationPage-BKBFtr-o-B3t33ZLt.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-BwRlnH01-Di0CtCSz.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DUGRKWtN-ClKlbRH6.js → CustomerOnboardingDetailPageSkeleton-BsnPvucg-BEvywTxp.js} +13 -13
- package/dist/assets/{CustomerOnboardingNoStepsPage-Cc5frP29-Pt9D5fwX.js → CustomerOnboardingNoStepsPage-Db1DFgQR-DfT9hNRl.js} +2 -2
- package/dist/assets/CustomerOnboardingPage-BoF4bXiW-CKAc0RQX.js +107 -0
- package/dist/assets/CustomerOnboardingProductSuitePage-BdGFZtH3-DLLnRFgg.js +202 -0
- package/dist/assets/{Dashboard-D6Ba5oj0-C5iZr7Dc.js → Dashboard-hADP7IBB-Bk1vjezx.js} +262 -262
- package/dist/assets/DashboardReportPage-BwTchCvy-O2bBIky3.js +371 -0
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Locz2zHR-Bhgpjfq-.js → DashboardSidebarBackgroundAnimation-B-w4cVMW-BWggpu2o.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-B0BGwVqF-Cwta5ei3.js → DepositAccTransactionItem-BMkCcz-U-g-iJ8Z3m.js} +4 -4
- package/dist/assets/DepositAccTransactionListPage-D6h0mu0p-Cba8Z-zG.js +66 -0
- package/dist/assets/DomesticWireDetailsPage-DQG9O9kV-DkLiQ_AK.js +21 -0
- package/dist/assets/DownloadOverlay-mXe-oklf-DPD6fOSt.js +439 -0
- package/dist/assets/{DrawerPage-BRD6cE6J-1UMYAHb7.js → DrawerPage-DSbF_bCc-BOfcYWDU.js} +13 -13
- package/dist/assets/EditPeoplePage-DnE5ud-m-STxMbpu_.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-CtHzBFwx-CcMSn1Z9.js +865 -0
- package/dist/assets/EntityDetailPage-CSR_wxIn-C3ytfDma.js +18 -0
- package/dist/assets/{EntitySummarySection-BRt1kPDf-DQbEIQFx.js → EntitySummarySection-BP9sqkp_-C8j67E3x.js} +28 -28
- package/dist/assets/{ExpenseAutomationOverviewPage-vUkGameq-CHnaqssF.js → ExpenseAutomationOverviewPage-C-ZrFIVW-LPRP5OZt.js} +50 -50
- package/dist/assets/ExpenseAutomationPage-BEhjUkgs-DU0Mp3Bk.js +1650 -0
- package/dist/assets/ExpressPayPage-C9rqylRE-fd6R9yCg.js +168 -0
- package/dist/assets/{FeaturePreviewPage-CQN2xThT-DJXN60Ac.js → FeaturePreviewPage-BcRRbP7e-DlhiW3MZ.js} +3 -3
- package/dist/assets/{FollowStepsSection-DdwEVWhG-yjJ5FRCa.js → FollowStepsSection-B3Kyt5j4-CgmrU6eD.js} +7 -7
- package/dist/assets/GlobalReviewListPage-Bz-YyIK8-B-UTCvpv.js +291 -0
- package/dist/assets/HelpButton-38HaKgFL-BugYIsvp.js +28 -0
- package/dist/assets/{InformationCardStack-Cw7c9Pnd-BX2LTL8l.js → InformationCardStack-BY26HFGi-BLGIbInA.js} +4 -4
- package/dist/assets/InsightsCardStack-BI7iTuQ_-DQl2fOce.js +79 -0
- package/dist/assets/{InsightsSection-JIKb9lz3-Hi0aN8hq.js → InsightsSection-AQ5yTmGG-DS0VgX7W.js} +3 -3
- package/dist/assets/{IntegrationsSettingsPage-h4pel2yK-CxqwarZy.js → IntegrationsSettingsPage-BEAFHjYf-d2P0RMG5.js} +8 -8
- package/dist/assets/{InternationalWireSwiftDetailsPage-C2SnHEV1-CzlIxaS1.js → InternationalWireSwiftDetailsPage-DNvv8jLc-dT-poZdm.js} +16 -16
- package/dist/assets/{InternationalWireVerificationPage-Dk11ztF7-BCCRbUea.js → InternationalWireVerificationPage-BdUXxMgU-DhF9zfHu.js} +27 -27
- package/dist/assets/{InviteFormPage-CrtH0cSG-eVIYbN0r.js → InviteFormPage-CY-8DzRS-Bfynw6ME.js} +16 -16
- package/dist/assets/{InvitePageListView-DUoopPip-D5qrm4ww.js → InvitePageListView-DXjKBR4k-Np2jy73K.js} +164 -164
- package/dist/assets/InvitePeoplePage-CIafIgkR-BdmOchmq.js +12 -0
- package/dist/assets/InvoiceUploadSection-cXNOY5jR-DGuQgS61.js +140 -0
- package/dist/assets/{IssueChargeCardPage-D6DCohbK-BMG4Ljit.js → IssueChargeCardPage-DN1zD_YI-i_-kvzIl.js} +1 -1
- package/dist/assets/{LabeledAddressValue-C3R0DSjj-CpxXKm9c.js → LabeledAddressValue-Bk3vXfZU-CU4YMzA1.js} +1 -1
- package/dist/assets/LabeledAddressValueField-6MpVMde--DXTq8JS8.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-zwoLFM1n-B44wDW2V.js → LabeledControlledCheckBoxField-BjYGaRbt-BGdAOJoA.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BhaeopJt-tsmH64cn.js → LabeledCreatableSingleSelectField-9q4Lqszf-Csk7xXRk.js} +7 -7
- package/dist/assets/LabeledDocumentField-CAWaftIF-CSQ4X3Cr.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-brzU_fnp-hUkbh0bF.js → LabeledDropDownFormattedTextField-WbohTHp8-Bsf-e-tx.js} +5 -5
- package/dist/assets/{LabeledText-BESSkt5Z-CPDVK04g.js → LabeledText-B3JYr4tU-laTDcIhJ.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-DaWgPr9f.js → LabeledUserSingleSelectWithSubtitlesField-DHOsMX6S-5w6248s9.js} +18 -18
- package/dist/assets/{LabeledZeniRolesDropDownField-BXTCN4j2-CLEMt0Ht.js → LabeledZeniRolesDropDownField-DcUdbKa4-fYq87dcd.js} +34 -34
- package/dist/assets/LinkJETransactionPage-B1XJOlhU-DdWugwxQ.js +98 -0
- package/dist/assets/{LockCardPage-DYfgK11k-BFAZ4k7o.js → LockCardPage-B-EvOmPO-B73f-ypE.js} +66 -66
- package/dist/assets/LowBalancePopup-BoFHsW5A-B3QtlbXZ.js +34 -0
- package/dist/assets/{MagicLinkACHDetailsPage-CLXcRbZ--B-X6oebP.js → MagicLinkACHDetailsPage-D5-czDfb-D9jHfcHK.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CZlZr96w-DllJxuHV.js → MagicLinkDomesticWireDetailsPage-DxtWixFB-79ayjypJ.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DhPjvv0o-BIaiGIsd.js → MagicLinkInternationalWireDetailsPage-kmj9pdzN-DnNURYN2.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-Bh2nlLPN-6rfZopUb.js → MagicLinkSuccessPage-BPzk03R8-SXgLVDgR.js} +3 -3
- package/dist/assets/MagicLinkTitleSection-CgS4ZMfb-BI5Lq2SW.js +17 -0
- package/dist/assets/{MailingDetailsSection-9RwlQxVG-_UrE81Sw.js → MailingDetailsSection-BktKZ2Nr-DyWKpOiG.js} +2 -2
- package/dist/assets/{MeetingCalenderPopup-BxV_UIXP-BXGtVHle.js → MeetingCalenderPopup-2tPtQeqB-QatkmFKh.js} +4 -4
- package/dist/assets/{Menu-B6iTf2H7-Cu2Vb11u.js → Menu-CV1BBSGW-DKOqAYYS.js} +2 -2
- package/dist/assets/MyBankConnectionsSettingsPage-CMyrZ4nS-BheEjXSF.js +110 -0
- package/dist/assets/MyPendingActivationChargeCardListPage-DuOoKlPP-thKNb-ry.js +6 -0
- package/dist/assets/MyProfileSettingsPage-CA-5gU5k-BFEIvdNu.js +85 -0
- package/dist/assets/{NavBarWithPicker-CKh_HMfV-i4ObGPrS.js → NavBarWithPicker-DuazRsm7-BXAVo-zX.js} +4 -4
- package/dist/assets/{NavigationArrow-XZmJpDrE-DolsLofY.js → NavigationArrow-DnZuPnXh-BOLYjEri.js} +2 -2
- package/dist/assets/{NavigationDots-BxPgEW_p-Cjr25BX_.js → NavigationDots-DarWlthl-CEtLiSj-.js} +3 -3
- package/dist/assets/{NewGlobalMerchantPage-CQzrDe0S-K2NUXsKS.js → NewGlobalMerchantPage-C5zI88lM-DBDRlSHQ.js} +35 -35
- package/dist/assets/{NoDataChart-5E72SElf-3CnLxisw.js → NoDataChart-Dwrv5FXT-BktYGhJl.js} +4 -4
- package/dist/assets/{NoDataTable-BwHbkm3l-VTHrTfOq.js → NoDataTable-BT9VQUID-B1zJzLW9.js} +2 -2
- package/dist/assets/{NotFoundPage-6udaksBZ-DUgTbMe0.js → NotFoundPage-BpVYjIy9-CAwSGm4b.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DkYmxMgg-BVRECpS0.js → NotificationSettingsPage-Br1VS7sj-D72VzMEy.js} +32 -32
- package/dist/assets/{NotificationsListConfig-FGxLgO1o-C0kfEx8A.js → NotificationsListConfig-COCJ7xUp-B665e_3O.js} +1 -1
- package/dist/assets/NotificationsPage-CtIcIo4T-DuWbZv_Q.js +685 -0
- package/dist/assets/{OpExByVendorPage-CM0RluUk-PZB-G7xm.js → OpExByVendorPage-CTdChrGD-CvW5Vepn.js} +6 -6
- package/dist/assets/{OverlayContainerPage-BKHs_4eI-CSsJiY_P.js → OverlayContainerPage-CU1AAMcq-ai6w2Y-V.js} +2 -2
- package/dist/assets/PandLWithForecastPage-DVhAvUAV-CoqLEkYS.js +107 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DQ82eP9Q-Cwm2aoR2.js → PaymentAccountSetupBillingAddressSection-Cqk9_T2U-B2k-ZLJe.js} +9 -9
- package/dist/assets/{PeoplePage-CB3T3u_F-BR69e4ui.js → PeoplePage-BR4qd-jm-CBOJNYwE.js} +95 -95
- package/dist/assets/{PortfolioAllocationFormPage-CZkJD6tu-1mutznS7.js → PortfolioAllocationFormPage-T83_xyer-BkoO9beS.js} +13 -13
- package/dist/assets/{PortfolioDetails-D4yT8r35-BZAutCbg.js → PortfolioDetails-6ElQWU58-ByHc7XYH.js} +35 -35
- package/dist/assets/{ProductsCarousel-CR7_rk0K-CKMGS-I4.js → ProductsCarousel-CijsxgpU-C19z6U57.js} +10 -10
- package/dist/assets/{PromoBaseCards-BAPolzxE-DjUVr5kX.js → PromoBaseCards-BWsv2pTB-B6b592gJ.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-D3eazhj7-DCdAj667.js → QBOConnectionDialog-ChKHWoK7-CSeEHm2_.js} +7 -7
- package/dist/assets/{QBOSetupSection-Cjjhm_Ee-CX61tnWs.js → QBOSetupSection-C4gt0qc8-DTKMvJ4_.js} +12 -12
- package/dist/assets/ReimbursementApprovalRuleDetailPage-BwgWdSTd-NVamJEor.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-GSzJGSuy-DOLnlfRe.js → ReimbursementApprovalRulesPage-C2asBtuf-DT1aAQsK.js} +12 -12
- package/dist/assets/ReimbursementDetailPage-DS1ewUKC-CVEFgQmR.js +314 -0
- package/dist/assets/ReimbursementPromoPage-5OaQjA8F-DErLTtUx.js +84 -0
- package/dist/assets/ReimbursementSetUpPage-Bl8jzyRg-3jDcWgfT.js +140 -0
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DIesC2GA-CmjN--dc.js +1 -0
- package/dist/assets/{ReloadCard-Dpoxd9nE-_RGkkZLm.js → ReloadCard-0q5pQ13T-CKzHIqK2.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-Ci-WKrCO-D0sA8766.js → ReportTableViewSelector-C0SiD_xG-BLDdaXUR.js} +29 -29
- package/dist/assets/ReportsPage-GTIPR29D-BtSUMj6k.js +121 -0
- package/dist/assets/{RevenueChart-CXMBT3cr-BigDcfmP.js → RevenueChart-C099OBIz-BCjETeYD.js} +29 -29
- package/dist/assets/ReviewDetailsPage-Dj29qJWr-znzq99Zm.js +290 -0
- package/dist/assets/{ReviewOverlay-C6Kx7Hfm-Aab2M4el.js → ReviewOverlay-OPfHsiEH-DYnwxQBa.js} +13 -13
- package/dist/assets/{RoleWithToolTip-BqI6M0x_-3Pz3ZAbU.js → RoleWithToolTip-CnJMJF5X-DPQwf2SV.js} +2 -2
- package/dist/assets/ScheduleDetailsFixedAssetsPage-BojehSaf-CqIP5z2b.js +37 -0
- package/dist/assets/ScheduleDetailsPage-aZbK93Nq-BFB854u3.js +37 -0
- package/dist/assets/ScheduleSequenceTable-By6Dky2k-cVt4Itnj.js +324 -0
- package/dist/assets/ScreenRoutes-m-9CX7nW.js +206 -0
- package/dist/assets/SetUpAccountSection-B_VtQMHv-v5HWkW-2.js +378 -0
- package/dist/assets/{SetUpDefaultSection-Bm1eZSgT-9DFPAVat.js → SetUpDefaultSection-CR4EJd0L-DR8b1nlJ.js} +15 -15
- package/dist/assets/{SignIn-BlISBvt5-BSeULTEW.js → SignIn-DlL4Ve5C-CS2k0j8x.js} +28 -28
- package/dist/assets/SignInScreen-82F821nF.js +1 -0
- package/dist/assets/SpendManagementListViewPage-hcbJnpe0-Dx5Mkywb.js +123 -0
- package/dist/assets/SpendManagementPerTabPage-CZMtZLLG-BwL9QJKu.js +754 -0
- package/dist/assets/SpendManagementSection-v3VQ4WLv-BgJcZL_k.js +230 -0
- package/dist/assets/SpendMgmtSetupAccountSection-BstM92cv-D_s447NX.js +206 -0
- package/dist/assets/{StatementItem-BVIVLdDn-DWQxeT2X.js → StatementItem-DHN42swg-QQn_8xP5.js} +2 -2
- package/dist/assets/StatementsPage-BuWUMrMJ-ClESyfR5.js +58 -0
- package/dist/assets/{StatusSwitcher-aAizq1mr-c-jcIGD9.js → StatusSwitcher-BQIZqQby-CwGTf6Yt.js} +2 -2
- package/dist/assets/{SubTabSwitcher-COrYJ6CW-BIZF-iNv.js → SubTabSwitcher-BwULcWpV-KD7oZVm0.js} +1 -1
- package/dist/assets/{SummaryCard-Dv0dWKBw-CGu-GHYa.js → SummaryCard-sp4k0Xek-DgWj-oz4.js} +1 -1
- package/dist/assets/TaskManagementPage-N2Egdy4r-qGkYEZ7q.js +508 -0
- package/dist/assets/{TimeRangeSwitcher-ifkHfqEg-VY1vzvIS.js → TimeRangeSwitcher-BbGr7Bdf-CGee3poJ.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-BP-PxO5g-DxTIS9PI.js → TimeframeSwitcher-CqP9hXqB-r5frPdgi.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DH-PfsTQ-D7U0L-cV.js → TimeframeSwitcherWithToggle-C-Nxe_F8-C62_HCuz.js} +1 -1
- package/dist/assets/{TopExCard-Bam-Q4MV-BsP_HKjG.js → TopExCard-CLw0PDAU-BbYnCf3a.js} +5 -5
- package/dist/assets/{TopExDetailPage-P0Twt5zZ-CoHp8hDQ.js → TopExDetailPage-GLquKOoy-kMqzF42L.js} +12 -12
- package/dist/assets/TransactionDetailPage-cTLfJiHb-1yZP6Zin.js +912 -0
- package/dist/assets/TransactionList-SkjGKFn_-BwaaUL7x.js +147 -0
- package/dist/assets/TransactionListBig-B4CiUxir-C15l10qy.js +284 -0
- package/dist/assets/{TransactionListPage-D4GJ6i3l-yaso0Nlb.js → TransactionListPage-eiEKrfCB-CXZ0iEN3.js} +3 -3
- package/dist/assets/{TransactionVendorDetailPage-CuFHbm8c-kFca8x3E.js → TransactionVendorDetailPage-CySokm3L-BpHJwA9m.js} +5 -5
- package/dist/assets/{TransferDrawerPage-GD2I8ptj-CANT8JC_.js → TransferDrawerPage-BSv0D4Zs-BT9NFCI4.js} +27 -27
- package/dist/assets/TreasuryOverviewPage-C5hIMuk--DxAuBNvx.js +708 -0
- package/dist/assets/{TreasuryPromoPage-DW1f8_q1-CkWefV3r.js → TreasuryPromoPage-DSJHOwhj-BeQhN-a8.js} +6 -6
- package/dist/assets/{TreasurySetupPage-53k6ARHC-DuoYqIOy.js → TreasurySetupPage-B_EmY_UY-DAaCNRGd.js} +5 -5
- package/dist/assets/{TreasuryStatementsPage-pIshKNaR--8vN-IgR.js → TreasuryStatementsPage-BrZVJwAL-Bs1LrL-1.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-B3PkB1al-CkqZdxpj.js → TreasuryTaxLetterPage-DsmLrBId-CRVnttNh.js} +5 -5
- package/dist/assets/TreasuryTransferOrReviewPage-WB0pVkO6-BWBLW8Tp.js +576 -0
- package/dist/assets/TrendChart-CWR5JV7S-Bu3AQa_8.js +16 -0
- package/dist/assets/{TrendWithTransactions-mI_El5D1-DUVZm_U-.js → TrendWithTransactions-D9x71aZs-CM8kaEfz.js} +4 -4
- package/dist/assets/{UncategorizedAccountsMappingPage-LQeq8Gdv-BNgZRg4x.js → UncategorizedAccountsMappingPage-Tx1NEXyX-DoWK8o5r.js} +47 -47
- package/dist/assets/{UnitIntegrationPage-XOWqGHla-BIoTpmZ_.js → UnitIntegrationPage-aTpJwSQj-BYrPkyiL.js} +11 -11
- package/dist/assets/UploadAdditionalDocumentOverlay-BVMdCZ9e-BITtYlPW.js +38 -0
- package/dist/assets/Vendor2FAPopup-BtVySDI--nsMiWnZu.js +1 -0
- package/dist/assets/{VendorACHDetailsPage-CswCvAFH-DqnJleBx.js → VendorACHDetailsPage-Cx9VUYTN-CUP3Cq5s.js} +1 -1
- package/dist/assets/VendorDetailPage-BTBlddyH-Bc_YJfHo.js +257 -0
- package/dist/assets/{VendorDomesticWireDetailsPage-DxrSjlTR-GbXdyYXP.js → VendorDomesticWireDetailsPage-DIQg-f5b-Bwf6L3re.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-q1gQ8keD-GKQT7vTw.js → VendorFiling1099EditablePage-CZzpO5dU-BLT7WxiF.js} +32 -32
- package/dist/assets/VendorFirstReviewPage-_Bf2O8Hk-B9tTYmRJ.js +730 -0
- package/dist/assets/VendorInternationalWireDetailsPage-DmM691ao-Dzdr5mG2.js +152 -0
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-W0s1zQNC-eVlfJ9f_.js → VendorInternationalWireSwiftDetailsPage-CmfDU583-Dk7aONaM.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C13Z2HN9-DvGRJwYY.js → VendorsAccountsSection-VX_qjrvm-R24t7Q7V.js} +4 -4
- package/dist/assets/VerifyDevice-pndtId1R-C8OsQHlo.js +112 -0
- package/dist/assets/{VideoPlayer-ByyqUuhG-CcmvFcG0.js → VideoPlayer-Cv2VluI6-D2yBmBgw.js} +1 -1
- package/dist/assets/{VideoPopup-DJrQQTPq-BZRShVLd.js → VideoPopup-DwltINTO-0GPyihNZ.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-B3Ht3VnM-C_aFzWZK.js → WarningsDrawerPage-I6fXTo8V-B0kNeHBS.js} +5 -5
- package/dist/assets/ZeniAccountDetailPage-BhqYqyk--DeI4__gE.js +300 -0
- package/dist/assets/{ZeniAccountListViewPage-q_v2FogF-wW_PUJNB.js → ZeniAccountListViewPage-M7S_ZBj4-94TU34gP.js} +12 -12
- package/dist/assets/ZeniAccountNavBarPieces-Crjx7iNX-DK8JxCJS.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-CzncR6vK-CoCFGvia.js → ZeniAccountPromoPage-rK7P_Dpk-DmoLuwn8.js} +21 -21
- package/dist/assets/{ZeniAccountSetupPage-TcdzEL_V-CPTq7KjK.js → ZeniAccountSetupPage-B8yrjDVW-gPUnEzAZ.js} +1 -1
- package/dist/assets/{ZeniCopyright-B7Q6IUGC-DjtbTVnp.js → ZeniCopyright-BDsnkVlH-C00Fssys.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Dmf5xxv4-D-BoRJmd.js → ZeniTransferAmountSlider-BCVTdEWO-p69HMFsD.js} +3 -3
- package/dist/assets/{analyticsHelper-L-FpsGLH.js → analyticsHelper-CS2u9ax9.js} +1 -1
- package/dist/assets/analyticsHelper-D8CGsPLU-DJI9oEaD.js +1 -0
- package/dist/assets/{chartTypes-DCvOVjlS-CF3jsUNb.js → chartTypes-DLnePN0T-B_54UqyM.js} +1 -1
- package/dist/assets/{commonDimensions-C32v1F7H-C9uaBJ8J.js → commonDimensions-CWOH4KIa-zIW9i9kk.js} +1 -1
- package/dist/assets/{detailCommon-CRAGrqoO-5xMc7u9M.js → detailCommon-COLWOJB--3sJPi-qA.js} +8 -8
- package/dist/assets/downloadPdf-DmVZhHLH-D1xNlFUJ.js +1 -0
- package/dist/assets/{index-kF4u7Flm.js → index-MAXVX6UR.js} +2202 -2025
- package/dist/assets/{lodash-B66NTFTY.js → lodash-D52QloPU.js} +6 -6
- package/dist/assets/{mapLoadingInProgressToTreeNode-CRwG2DSD-CLLcsBiK.js → mapLoadingInProgressToTreeNode-DzagCSPK-Df3QAuQq.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C9O-C2dp-4sjxXlit.js → mapSectionWithAcOnlyToTreeNode-gKc2xWyG-DTjSgiEj.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-5aJk-sLn-CeZutbYy.js → mapSpacerToTreeNode-toSXbVwB-B0PNlKW1.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CnviLujI-rcfKFEh1.js → mapTimeframeBalancesToTreeNode-D0Bib2dl-Cgs41-OD.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv4d4PqE-BmreU2CJ.js → mapTimeframeBalancesToTreeNode-D63QAMZm-BDtNdJWW.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-CkRgUU-m.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BuAL-Z9U-Ceeq3tsz.js} +1 -1
- package/dist/assets/redux-CEhZD0hA.js +12 -0
- package/dist/assets/{toCOABalancesWithID-B3yVGPrV-Dj01dEre.js → toCOABalancesWithID-D-AHYPZY-Bomk_rrT.js} +1 -1
- package/dist/assets/toChartData-BIN4xqGz-BcU_F8Ix.js +1 -0
- package/dist/assets/{treasuryColorHelper-13LJ_xhk-5-aGYtqD.js → treasuryColorHelper--7Rf6Fm8-BdEMhZbj.js} +1 -1
- package/dist/assets/{uploadAttachment-DVy2pZeJ-DL6B1oGY.js → uploadAttachment-DwI0nG8D-VCODDzfq.js} +23 -23
- package/dist/assets/{uploadReceipts-Dp1dvCjf-BQPyxtgi.js → uploadReceipts-9DTOr0BG-pwNYcimh.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +6 -9
- package/dist/assets/AccountInfoPage-D-E_-WpE-DJyb7x4k.js +0 -18
- package/dist/assets/AccountLockedInfoModal-BD7Nb81U-ZCs8qzoa.js +0 -59
- package/dist/assets/AccountReconDetailsDrawerPage-D-_ME0pV-BuvZZBZ-.js +0 -239
- package/dist/assets/AccountRow-Be3LIHO--BjLJB43L.js +0 -298
- package/dist/assets/AccountsPromoCardStack-CdBwPVgI-CkQ7kJh8.js +0 -207
- package/dist/assets/AgingReportsPage-L0zQxwCf-D3sUJmot.js +0 -79
- package/dist/assets/AllUserItems-CvwaOEhu-DISgj-9d.js +0 -192
- package/dist/assets/ApAgingDetailPage-B_78aSEv-DLL7XkHo.js +0 -46
- package/dist/assets/AppDrawerContent-BZODvVvi-DQ-V9QL0.js +0 -91
- package/dist/assets/ApprovalRulesSettingsPage-Dxd7A3hZ-CRTSWRxG.js +0 -47
- package/dist/assets/ArAgingChart-BezVy1Sm-ClcQ64wd.js +0 -24
- package/dist/assets/BankConnectionsSettingsPage-D5hI4xtm-ik9FJnty.js +0 -425
- package/dist/assets/BillDetailPage-CDAh8Jtl-wk3WJY1W.js +0 -266
- package/dist/assets/BillPayPromoPage-B2YcxWc9-ChjVVUdj.js +0 -84
- package/dist/assets/BillPaySetUpPage-oJvoWpFu-ZQ44J65y.js +0 -42
- package/dist/assets/BillingSettingsPage-BRsKYzT5-C1YZEc97.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-B7tORIok-09a60H-u.js +0 -1
- package/dist/assets/BusinessVerificationPage-Nw_fedst-Ce7UF4J6.js +0 -138
- package/dist/assets/ChargeCardListPage-v5hH98Wi-BhiUhdgm.js +0 -406
- package/dist/assets/ChargeCardPromoPage-CPEaGOL3-CiA1pNTj.js +0 -222
- package/dist/assets/ChargeCardSetupPage-G5Rn0o6y-Bqw8Kqbv.js +0 -36
- package/dist/assets/ChargeCardUtils-BRgkrCTs-Bo37IpfS.js +0 -1
- package/dist/assets/CollapsableReportTable-7iAngywY-BhPujiYA.js +0 -2932
- package/dist/assets/CompanyOfficerDetailsSection-CJKyxEnf-B2MTqDnr.js +0 -260
- package/dist/assets/CompanyPassportPage-BQoEcPJr-CLTXsXdq.js +0 -574
- package/dist/assets/CompleteProfile-D5e9TQgy-B3NCfzYL.js +0 -52
- package/dist/assets/CreditCardPaymentDrawerPage-DXeq4z9l-C-tETdxW.js +0 -224
- package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-CdqN8qku.js +0 -1
- package/dist/assets/CustomerOnboardingPage-zBqp9QN6-BMM-roBm.js +0 -107
- package/dist/assets/CustomerOnboardingProductSuitePage-BbJ4oiCI-DgRG1l8f.js +0 -202
- package/dist/assets/DashboardReportPage-DTMbYOWH-B0H-UpGg.js +0 -371
- package/dist/assets/DepositAccTransactionListPage-CcO673ZL-D1h5XemH.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-D5hbPNCt-Bhq4tM9b.js +0 -21
- package/dist/assets/DownloadOverlay-DRcasKoB-BTfb8tZj.js +0 -439
- package/dist/assets/EditPeoplePage-Zzo62if7-Clw_H_tG.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-D59OJdZ1-DgdwTZwz.js +0 -865
- package/dist/assets/EntityDetailPage-CzlzOW8n-CjIrlTQm.js +0 -18
- package/dist/assets/ExpenseAutomationPage-Cm_IiRlb-DxIRsn8B.js +0 -1650
- package/dist/assets/ExpressPayPage-DdQiFzDu-CXe6diRB.js +0 -168
- package/dist/assets/GlobalReviewListPage-DHn2Uk8R-Dz5cpAt1.js +0 -291
- package/dist/assets/HelpButton-BNMy-6ce-CVlMGZqS.js +0 -28
- package/dist/assets/InsightsCardStack-CaMZiCnn-DLt2ZmbV.js +0 -79
- package/dist/assets/InvitePeoplePage-C3ecL8XJ-olYxQVFB.js +0 -12
- package/dist/assets/InvoiceUploadSection-DoR834b4-CjFOCIIZ.js +0 -140
- package/dist/assets/LabeledAddressValueField-YP7bXlgZ-D9-PqJNp.js +0 -45
- package/dist/assets/LabeledDocumentField-ED03S2kQ-BGespvxP.js +0 -41
- package/dist/assets/LinkJETransactionPage-_ROjxBMO-C6IEO3Ec.js +0 -98
- package/dist/assets/LowBalancePopup-CZDcHxyW-BSR036zV.js +0 -34
- package/dist/assets/MagicLinkTitleSection-Cn1v72Rs-Dx0fyRw5.js +0 -17
- package/dist/assets/MyBankConnectionsSettingsPage-IPPiH6jv-uU5Nku5W.js +0 -110
- package/dist/assets/MyPendingActivationChargeCardListPage-BTGb1yIE-yyVAdXqO.js +0 -6
- package/dist/assets/MyProfileSettingsPage-BRK5nWg2-BCkp79gR.js +0 -85
- package/dist/assets/NotificationsPage-C7lSAnUb-CEUwTZM_.js +0 -685
- package/dist/assets/PandLWithForecastPage-W4jlNjml-8wxKAhbo.js +0 -107
- package/dist/assets/ReimbursementApprovalRuleDetailPage-eidNY097-DDLdjGbX.js +0 -26
- package/dist/assets/ReimbursementDetailPage-AvqEBxbz-ByJDRCe5.js +0 -314
- package/dist/assets/ReimbursementPromoPage-PshodHUZ-CEBQKb7P.js +0 -84
- package/dist/assets/ReimbursementSetUpPage-6P4FT-UC-BMbaH1eU.js +0 -140
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-Cas6GzVp-CEJlVV08.js +0 -1
- package/dist/assets/ReportsPage-C7zirS74-oNrbhh6a.js +0 -121
- package/dist/assets/ReviewDetailsPage-ClsyL5-w-rKSUEvaS.js +0 -290
- package/dist/assets/ScheduleDetailsFixedAssetsPage-zFyJPVpN-Dm8QVj-0.js +0 -37
- package/dist/assets/ScheduleDetailsPage-BftjSvA7-D97uCI5t.js +0 -37
- package/dist/assets/ScheduleSequenceTable-lTN7r0p4-BmAjQVGV.js +0 -324
- package/dist/assets/ScreenRoutes-Du6t5Ig_.js +0 -206
- package/dist/assets/SetUpAccountSection-Bnbi8X23-7-Jadv9H.js +0 -378
- package/dist/assets/SignInScreen-BN2xWnU-.js +0 -1
- package/dist/assets/SpendManagementListViewPage-ChNp8dgm-ByNxcaX6.js +0 -123
- package/dist/assets/SpendManagementPerTabPage-D-bOr2-6-C5z49u7s.js +0 -754
- package/dist/assets/SpendManagementSection-kucZgC-H-Cqflt6S1.js +0 -230
- package/dist/assets/SpendMgmtSetupAccountSection-de7hEmtE-9bAK-YlL.js +0 -206
- package/dist/assets/StatementsPage-KnLUSJbm-DVR36Ge4.js +0 -58
- package/dist/assets/TaskManagementPage-CPLyyK1Y-BZe-OFxL.js +0 -508
- package/dist/assets/TransactionDetailPage-D1Z1f-DD-BPMl_wDr.js +0 -912
- package/dist/assets/TransactionList-BzJEbOV9-0ST5sY1-.js +0 -147
- package/dist/assets/TransactionListBig-u4SJBZTE-BlGBIBoN.js +0 -284
- package/dist/assets/TreasuryOverviewPage-DySunaqy-Du5jK6WV.js +0 -708
- package/dist/assets/TreasuryTransferOrReviewPage-Dzq-FxSM-DKViGoiZ.js +0 -576
- package/dist/assets/TrendChart-B_5D-Zud-Cw_zgD-R.js +0 -16
- package/dist/assets/UploadAdditionalDocumentOverlay-DhXRLBEg-BNMbNbJQ.js +0 -38
- package/dist/assets/Vendor2FAPopup-BfqIHZBb-DUpQFrOM.js +0 -1
- package/dist/assets/VendorDetailPage-CEX7xMIN-D29fVYfj.js +0 -257
- package/dist/assets/VendorFirstReviewPage-D9ogNmAK-DwoL9x7s.js +0 -730
- package/dist/assets/VendorInternationalWireDetailsPage-Ct689KuY-N7HCxAFy.js +0 -152
- package/dist/assets/VerifyDevice-C27gEWkZ-BrEq9dHz.js +0 -112
- package/dist/assets/ZeniAccountDetailPage-egmysAfI-CX7srLCt.js +0 -300
- package/dist/assets/ZeniAccountNavBarPieces-HNIht0FM-azEwN9c2.js +0 -14
- package/dist/assets/addSubtractPeriod-CFvkmqm8.js +0 -1
- package/dist/assets/analyticsHelper-or1KkBWk-CU2Z2CeD.js +0 -1
- package/dist/assets/downloadPdf-D7p3yKmg-DrJJdcEl.js +0 -1
- package/dist/assets/redux-D-TY61DZ.js +0 -12
- package/dist/assets/toChartData-DEW0iT7T-DaQT4Adc.js +0 -1
|
@@ -0,0 +1,2932 @@
|
|
|
1
|
+
import{j as t,b3 as po,aM as m,bY as fe,aN as q,dE as go,o as c,h as ee,aP as hi,q as M,aC as ui,az as fo,dF as pi,dG as xo,l as A,O as W,u as w,dH as Vi,dI as Ot,aU as _,dJ as Mt,cp as Nt,dK as It,y as D,df as Pt,ax as Di,ab as Je,dL as Ne,b_ as K,P as mo,c as ce,a$ as Ri,dM as Gi,aV as V,ao as Ae,dN as wo,dO as se,co as zt,cd as gi,ai as yo,an as ye,dP as Xe,dQ as Be,dR as tt,am as C,cw as ne,dS as bo,C as Ft,dT as Re,dU as fi,dV as xi,dW as ko,dX as jo,b8 as Ei,b5 as So,cM as Tt,cL as Vt,dY as Co,b6 as Hi,cP as Ki,c3 as $o,dZ as vo,d_ as mi,d$ as wi,e0 as _o,e1 as Lo,c5 as Ao,bP as Bo,e2 as Wo}from"./index-MAXVX6UR.js";import{n as a,b as I,w as Oo,i as P}from"./vendor-Bs1fkIUX.js";import{N as it,D as Mo,R as No,B as be,u as v}from"./AccountRow-C6z4Ft3r-BFimoTCg.js";function Z(e,i){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 q("0,0",e?.balance)}function J(e){return q("0,0",e?.forecast)}function Yi(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 q("0,0",e?.totalBalance)}function bt(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 q("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const i=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const i=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return q("0,0",Object.assign({},e.forecast,{amount:i}))}else return q("0,0",null)}function Ui(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const i=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function qi(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const i=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return q("0,0",Object.assign({},e.totalForecast,{amount:i}))}else return q("0,0",null)}const Ie=(e,i,n)=>{const{startDate:o,balanceType:r}=i,{dateFormat:{visual:l}}=W.getLocalizedStrings();switch(n){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.MMMYYYYFormat,e)}`:ft(r,n);case"quarter":return r==="default"||r==="default_with_percent"?`${W.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(o,l.QYYYYformat,e)}`:ft(r,n);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.YYYYformat,e)}`:ft(r,n);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ft(e,i){return W.getLocalizedStrings().downloadReport.additionalColumns.labels[i][e]}const eg=(e,i,n)=>{const o=i.length==0?e:`${e}_${i.join("_")}`;return n!=null&&n.trim().length>0?`${o}_${n}`:`${o}_${go(10)}`},Io=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
|
+
`,Po=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
|
+
`,zo=a.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: flex-start;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: ${c.sp2};
|
|
22
|
+
width: ${v.leftHeadingWidth}px;
|
|
23
|
+
`,Fo=a.div`
|
|
24
|
+
display: flex;
|
|
25
|
+
flex: 1 1 auto;
|
|
26
|
+
justify-content: flex-end;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: ${c.sp4};
|
|
29
|
+
`,To=a(ne)`
|
|
30
|
+
width: ${v.bankBalanceWidth}px;
|
|
31
|
+
min-width: ${v.bankBalanceWidth}px;
|
|
32
|
+
text-align: right;
|
|
33
|
+
`,Vo=a(ne)`
|
|
34
|
+
width: ${v.clearedBalanceWidth}px;
|
|
35
|
+
min-width: ${v.clearedBalanceWidth}px;
|
|
36
|
+
text-align: right;
|
|
37
|
+
`,Do=a(ne)`
|
|
38
|
+
width: ${v.statusWidth}px;
|
|
39
|
+
min-width: ${v.statusWidth}px;
|
|
40
|
+
`,Ro=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
|
+
`,Go=a.div`
|
|
51
|
+
width: ${v.variancePercentageWidth}px;
|
|
52
|
+
min-width: ${v.variancePercentageWidth}px;
|
|
53
|
+
text-align: right;
|
|
54
|
+
margin-right: ${c.sp2};
|
|
55
|
+
`,Eo=a.div`
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
align-items: center;
|
|
59
|
+
`,Ho=a.div`
|
|
60
|
+
display: flex;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
align-items: center;
|
|
63
|
+
`;function Ko({height:e}){const i=M();return t.jsx(Io,{heightValue:e,windowSize:i,children:t.jsxs(Po,{children:[t.jsxs(zo,{children:[t.jsx(Eo,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,maxWidth:c.sp4,width:c.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(Ho,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,width:v.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(Fo,{children:[t.jsx(To,{children:t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:v.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(Vo,{children:t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:v.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(Ro,{children:[t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:v.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(Go,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,width:v.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(Do,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,width:v.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const Yo=a.div`
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: row;
|
|
66
|
+
height: ${e=>e.heightValue}px;
|
|
67
|
+
padding-right: ${v.wrapperPadding}px;
|
|
68
|
+
`;function Uo({height:e}){return t.jsx(Yo,{heightValue:e})}const qo=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
|
+
`,Zo=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
|
+
`,Qo=a.div`
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: row;
|
|
86
|
+
justify-content: flex-end;
|
|
87
|
+
width: ${v.leftHeadingWidth}px;
|
|
88
|
+
`,Jo=a.div`
|
|
89
|
+
display: flex;
|
|
90
|
+
flex: 1 1 auto;
|
|
91
|
+
flex-direction: row;
|
|
92
|
+
justify-content: flex-end;
|
|
93
|
+
`,Xo=a(Hi)`
|
|
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
|
+
`,er=a(C)`
|
|
100
|
+
user-select: none;
|
|
101
|
+
`,tr=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
|
+
`,ir=a.div`
|
|
115
|
+
width: ${v.bankBalanceWidth}px;
|
|
116
|
+
`,nr=a.div`
|
|
117
|
+
width: ${v.bankBalanceRightTimeframeWidth}px;
|
|
118
|
+
`,or=a.div`
|
|
119
|
+
width: ${v.clearedBalanceWidth}px;
|
|
120
|
+
margin-right: ${v.tickLeftMargin}px;
|
|
121
|
+
`,rr=a.div`
|
|
122
|
+
width: ${v.varianceTimeframeWidth}px;
|
|
123
|
+
align-self: flex-end;
|
|
124
|
+
`,ar=a.div`
|
|
125
|
+
width: ${v.spacerLineWidth}px;
|
|
126
|
+
`,lr=a.div`
|
|
127
|
+
width: ${v.statusWidth}px;
|
|
128
|
+
`,Ge=({title:e,type:i})=>t.jsx(tr,{widthValue:v[i],children:t.jsx(er,{children:e})});function sr({sectionTitle:e,height:i,isLoading:n}){const o=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(qo,{height:i,children:t.jsxs(Zo,{children:[t.jsx(Qo,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp4,width:v.leftLabelWidth},children:t.jsx(Xo,{children:e})})}),t.jsxs(Jo,{children:[t.jsx(ir,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp7,width:v.bankBalanceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Ge,{title:o.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(nr,{}),t.jsx(or,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp7,width:v.clearedBalanceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Ge,{title:o.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(rr,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp7,width:v.varianceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Ge,{title:o.variance,type:"varianceTimeframeWidth"})})}),t.jsx(ar,{}),t.jsx(lr,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp7,width:v.statusTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Ge,{title:o.status,type:"statusTimeframeWidth"})})})]})]})})}const cr=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
|
+
`,dr=a(Hi)`
|
|
135
|
+
user-select: none;
|
|
136
|
+
color: ${e=>e.theme.colors.primary};
|
|
137
|
+
`;function hr({height:e,title:i}){return t.jsx(cr,{heightValue:e,children:t.jsx(dr,{children:i})})}const ur=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
|
+
`,pr=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
|
+
`,gr=a.div`
|
|
155
|
+
display: flex;
|
|
156
|
+
flex: 1 1 auto;
|
|
157
|
+
justify-content: flex-start;
|
|
158
|
+
align-items: center;
|
|
159
|
+
gap: ${c.sp2};
|
|
160
|
+
`,fr=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
|
+
`,xr=a.div`
|
|
172
|
+
display: flex;
|
|
173
|
+
flex: 1 1 auto;
|
|
174
|
+
justify-content: flex-end;
|
|
175
|
+
align-items: center;
|
|
176
|
+
`,mr=a(ne)`
|
|
177
|
+
width: ${v.bankBalanceWidth}px;
|
|
178
|
+
min-width: ${v.bankBalanceWidth}px;
|
|
179
|
+
text-align: right;
|
|
180
|
+
`,wr=a(ne)`
|
|
181
|
+
width: ${v.clearedBalanceWidth}px;
|
|
182
|
+
min-width: ${v.clearedBalanceWidth}px;
|
|
183
|
+
text-align: right;
|
|
184
|
+
margin-left: ${v.tickLeftMargin}px;
|
|
185
|
+
`,yr=a(ne)`
|
|
186
|
+
width: ${v.statusWidth}px;
|
|
187
|
+
min-width: ${v.statusWidth}px;
|
|
188
|
+
height: 1px;
|
|
189
|
+
`,br=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
|
+
`,kr=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
|
+
`,jr=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
|
+
`,Sr=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
|
+
`,Cr=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:yi}}},common:{strings:{percentage:$r,hyphen:et}}}=W.getLocalizedStrings();function vr({height:e,sectionData:i}){const n=M(),o=i.totalVariance,r=i.totalVariancePercentage,l=ce();return t.jsx(ur,{"data-testid":m("total-row-root-container"),heightValue:e,windowSize:n,children:t.jsxs(pr,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsxs(gr,{children:[t.jsx(be,{firstLetter:yi.section[i.sectionId].subTitle.charAt(0),color:new _(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(fr,{children:yi.section[i.sectionId].subTitle})]}),t.jsxs(xr,{children:[t.jsx(mr,{children:i.totalBankBalance!=null?q("0,0",i.totalBankBalance):et}),t.jsx(wr,{children:i.totalClearedBalance!=null?q("0,0",i.totalClearedBalance):et}),t.jsx(_r,{variance:o,variancePercentage:r}),t.jsx(br,{children:t.jsx(kr,{heightValue:e})}),t.jsx(yr,{})]})]})})}const _r=({variance:e,variancePercentage:i})=>{const n=ce(),o=new _(n.colors.hero),r=new _(n.colors.hero),l=new _(n.colors.background),s=e!=null&&e.amount===0?"0%":i!=null?i===0?"0%":`${i.toFixed(2)}${$r}`:et;return t.jsxs(jr,{children:[t.jsx(Sr,{textColor:o,children:e!=null?q("0,0",e):et}),t.jsx(Cr,{textColor:r,bgColor:l,children:s})]})};function Lr(){return t.jsx(Uo,{height:it("section")})}function Ar(){return t.jsx(Ko,{height:it("loading_in_progress")})}function Br(e,i){if(e.element.kind!=="timeframe_headers")return null;const n=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,o=e.element.data,r=o.accountIDs.length===0;return t.jsx(sr,{sectionTitle:n.section[o.sectionId].title,isLoading:r,isSticky:i,height:it("timeframe_headers")})}const Wr=(e,i,n)=>{const o=e.element.data;return t.jsx(vr,{isSticky:n,height:i,sectionData:o})},Or=(e,i)=>{const n=e.element.data,o=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(hr,{height:i,title:o.section[n.sectionId].title})},Mr=(e,i,n)=>{const o=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?o.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(No,{height:i,accountRecon:o,isLastRow:n,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 Nr(e){switch(e){case"section":return w[8];case"section_with_ac_only":return w[8];case"calculated_section":case"calculated_section_type1":return w[8];case"ac_group_report":case"ac_group_subaccount":return w[6];case"ac_subentity_total":case"ac_subaccount":case"ac_report":return w[6];case"title_string_only":case"total":return w[6];case"timeframe_headers":case"headers_loading_in_progress":return w[11];case"timeframe_headers_with_forecast":return 98;case"loading_in_progress":case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function Ir(e,i,n=0){const o=["summary"];switch(e){case"section":return!o.includes(i);case"section_with_ac_only":return!o.includes(i);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(o.includes(i)||i==="detailed"&&n>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(o.includes(i)||i==="detailed"&&n>0);case"title_string_only":return!o.includes(i);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(i==="detailed"&&n>0);case"checkbox_and_name_only":return!0;default:return!1}}const ge=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!0}},xe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},Zi={emptyLeftContainer:new D(w[0],w[5])},Pr=a(C)`
|
|
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
|
+
`,zr=a.div`
|
|
231
|
+
display: flex;
|
|
232
|
+
height: ${c.sp6};
|
|
233
|
+
align-items: center;
|
|
234
|
+
`,Fr=a.div`
|
|
235
|
+
display: flex;
|
|
236
|
+
height: ${c.sp6};
|
|
237
|
+
align-items: center;
|
|
238
|
+
`,Tr=a.div`
|
|
239
|
+
height: ${c.sp6};
|
|
240
|
+
width: ${c.sp3};
|
|
241
|
+
`,Vr=a.div`
|
|
242
|
+
width: 14px;
|
|
243
|
+
height: ${c.sp1};
|
|
244
|
+
`,Dr=a.div`
|
|
245
|
+
width: ${c.sp2};
|
|
246
|
+
height: ${c.sp1};
|
|
247
|
+
`,Qi=a.div`
|
|
248
|
+
width: ${e=>Zi.emptyLeftContainer.valuePx(e.windowSize)};
|
|
249
|
+
height: ${c.sp1};
|
|
250
|
+
`,We=a.div`
|
|
251
|
+
display: flex;
|
|
252
|
+
`,Rr=({ancestorMetadata:e,depth:i,name:n})=>t.jsx(t.Fragment,{children:i>0?[...Array(i).keys()].map(o=>{const r=e[o];return t.jsxs(We,{children:[r.depth===0?t.jsx(xi,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Be,{},o):t.jsx(tt,{}):null,r.depth>=1?t.jsx(xi,{depth:r.depth}):null]},n+o)}):null}),Ji=({ancestorMetadata:e,depth:i,name:n})=>{const o=M();return i===0?e[i].hasChildren===!1?t.jsx(Qi,{windowSize:o}):t.jsxs(We,{children:[t.jsx(Re,{depth:i}),t.jsx(Be,{}),t.jsx(Re,{depth:i+1})]}):t.jsxs(t.Fragment,{children:[[...Array(i+1).keys()].map(r=>{const l=e[r],s=r!==i?e[r+1]:void 0;return t.jsxs(We,{children:[l.depth===0?t.jsx(Re,{depth:l.depth}):null,r>=2||r===1&&(i===r?l.hasChildren===!0:s!=null&&!s.isLastNode)?i===1?t.jsx(fi,{index:1}):t.jsx(fi,{index:2}):null,(i===r?l.hasChildren===!0:s!=null&&!s.isLastNode)?t.jsx(Be,{},r):t.jsx(tt,{}),t.jsx(Re,{depth:l.depth+1})]},n+r)}),i===1&&e[i].hasChildren!=!0?t.jsx(Dr,{}):null]})},Xi=({ancestorMetadata:e,depth:i,name:n})=>i===0?t.jsx(Vr,{}):t.jsx(t.Fragment,{children:[...Array(i).keys()].map(o=>{const r=e[o],l=o!==i?e[o+1]:void 0;return t.jsxs(We,{children:[r!=null&&r.depth===0?t.jsx(Xe,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Be,{},o):t.jsx(tt,{}),t.jsx(Xe,{depth:r!=null?r.depth+1:0})]},n+o)})}),Gr=({ancestorMetadata:e,depth:i,name:n})=>t.jsx(t.Fragment,{children:i>0?[...Array(i).keys()].map(o=>{const r=e[o];return r==null?null:t.jsxs(We,{children:[r.depth===0?t.jsx(Xe,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Be,{},o):t.jsx(tt,{}):null,r.depth>=1?t.jsx(Xe,{depth:r.depth}):null]},n+o)}):null}),Er=({depth:e,isLastNode:i,isLeaf:n,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})=>{let d=t.jsx(Tr,{});return e===0&&r&&(d=t.jsx(vo,{collapsed:l,onIconClick:s})),e>0&&(r&&!o&&i&&(d=t.jsx(mi,{collapsed:l,onIconClick:s})),n&&o&&i&&(d=t.jsx(wi,{})),n&&o&&!i&&(d=t.jsx(_o,{})),r&&o&&!i&&(d=t.jsx(Lo,{collapsed:l,onIconClick:s})),r&&o&&i&&(d=t.jsx(mi,{collapsed:l,onIconClick:s})),i&&n&&(d=t.jsx(wi,{}))),d},Hr=({depth:e,isLastNode:i,isLeaf:n,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})=>t.jsx(Fr,{children:t.jsx(Er,{depth:e,isLastNode:i,isLeaf:n,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})});function en(e){const{displayName:i}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const n=M();return t.jsxs(zr,{children:[e.classDepth!=null?t.jsx(Ji,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(Qi,{windowSize:n}):null,t.jsx(Gr,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(Hr,{...e}),t.jsx(Pr,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:n,title:i,children:i})]})}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 Kr(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 Yr(){return!0}const Ee=[new D(w[4],w[8]),new D(44,76),new D(69,102),new D(93,124),new D(113,143)],Ur=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
|
+
`,qr=a.div`
|
|
258
|
+
display: flex;
|
|
259
|
+
flex: 1 1 auto;
|
|
260
|
+
flex-flow: row;
|
|
261
|
+
justify-content: flex-start;
|
|
262
|
+
align-items: center;
|
|
263
|
+
`,Zr=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?P`
|
|
273
|
+
position: -webkit-sticky;
|
|
274
|
+
position: sticky;
|
|
275
|
+
top: ${c.sp0};
|
|
276
|
+
left: ${c.sp0};
|
|
277
|
+
`:null}
|
|
278
|
+
`,Qr=a.div`
|
|
279
|
+
width: ${e=>e.noMarginForEntity?Ee[e.nestingLevel].value(e.windowSize)-w[5]:Ee[e.nestingLevel].value(e.windowSize)}px;
|
|
280
|
+
max-width: ${e=>e.noMarginForEntity?Ee[e.nestingLevel].value(e.windowSize)-w[5]:Ee[e.nestingLevel].value(e.windowSize)}px;
|
|
281
|
+
height: 1px;
|
|
282
|
+
`,Jr=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
|
+
`,Xr=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
|
+
`,bi=e=>{const i=M(),n=ce();return t.jsxs(qr,{"data-testid":m("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(Zr,{windowSize:i,isSticky:e.isSticky,"data-testid":m("sub-entity-name-container","vendor_row_separator"),children:[t.jsx(Qr,{"data-testid":m("sub-entity-empty-container","vendor_row_separator"),nestingLevel:e.nestingLevel,noMarginForEntity:e.noMarginForEntity,windowSize:i}),t.jsx(Jr,{"data-testid":m("sub-entity-name-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?n.colors.grey1:n.colors.grey3})]}),t.jsx(Xr,{"data-testid":m("sub-entity-remaining-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?n.colors.grey1:n.colors.grey3})]})};function kt({kind:e,isScrolling:i,subEntityProps:n}){switch(e){case"vendor_row_separator":return t.jsx(bi,{nestingLevel:n?.nestingLevel??0,isScrolling:i,isSticky:n?.isSticky??!1,isTotal:!1,noMarginForEntity:n?.noMarginForEntity??!0});case"end_row_separator":return t.jsx(Ur,{"data-testid":m("end-row-separator",e),isScrolling:i});case"subtotal_row_separator":return t.jsx(bi,{nestingLevel:n?.nestingLevel??1,isScrolling:i,isSticky:n?.isSticky??!1,isTotal:!0,noMarginForEntity:n?.noMarginForEntity??!1})}}const tn=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
|
+
`,nn=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
|
+
`,on=a.div`
|
|
314
|
+
display: flex;
|
|
315
|
+
flex: 1 0 auto;
|
|
316
|
+
flex-direction: row;
|
|
317
|
+
justify-content: flex-end;
|
|
318
|
+
`,rn=a.div`
|
|
319
|
+
display: flex;
|
|
320
|
+
flex-direction: row;
|
|
321
|
+
justify-content: flex-start;
|
|
322
|
+
`,an=a(C)`
|
|
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
|
+
`,ea=a(C)`
|
|
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
|
+
`,ln=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?P`
|
|
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
|
+
`,sn=({balance:e,isOpen:i})=>{const n=i?e?.balance:e?.totalBalance;return t.jsx(rn,{children:t.jsx(an,{isClickable:!1,onClick:()=>null,children:q("0,0",n)})})},cn=({total:e})=>t.jsx(rn,{children:t.jsx(an,{isClickable:!1,onClick:()=>null,children:q("0,0",e)})});function ta({isSticky:e,height:i,isScrolling:n,isLastNode:o,balances:r,total:l,vendor:s,backgroundColor:d,onEntityNameClick:h}){const u=M(),g="default",p=s?.name??"";return t.jsxs(tn,{"data-testid":m("ap-aging-report-row-root-container",p),containerHeight:i,bgColor:d,windowSize:u,children:[t.jsxs(nn,{"data-testid":m("ap-aging-report-row-container",p),style:{cursor:g},isClickable:!1,containerHeight:i-1,children:[t.jsxs(ln,{onClick:()=>s?.id!=null?h?.(s.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:i-1,children:[s?.logo!=null?t.jsx(It,{photoUrl:s.logo.toString(),styles:{width:E.nameLogoWidth.valuePx(u),height:E.nameLogoHeight.valuePx(u)}}):t.jsx(Pt,{name:p??"",size:c.sp4}),t.jsx(ea,{children:p})]}),t.jsxs(on,{"data-testid":m("ap-aging-report-row-balances-container",p),children:[r.map(f=>t.jsx(sn,{balance:f,isOpen:!0},f?.period)),t.jsx(cn,{total:l})]})]}),t.jsx(dn,{isScrolling:n,isLastNode:o})]})}function ia({treeNodeId:e,isSticky:i,height:n,isScrolling:o,isLastNode:r,isOpen:l,balances:s,total:d,totalWithChildren:h,nestedCustomer:u,metadata:g,backgroundColor:p,onEntityNameClick:f,onClick:x}){const b=M(),y=g,$=u?.customer.name??"",S=u!=null?u.id.length-1:0,B=u?.hasSiblings??!1,L=u!=null?u.children.length!==0:!1,O=L,F=O?"pointer":"default",T=u!=null?u.isLeafCustomer:!1,Y=()=>{x?.(e)};return t.jsxs(tn,{"data-testid":m("ar-aging-report-row-root-container",e),containerHeight:n,bgColor:p,windowSize:b,children:[t.jsxs(nn,{"data-testid":m("ar-aging-report-row-container",e),style:{cursor:F},isClickable:O,containerHeight:n-1,children:[t.jsx(ln,{"data-testid":m("ar-aging-report-row-name-container",e),isSticky:i,windowSize:b,bgColor:p,containerHeight:n-1,children:t.jsx(en,{displayName:$,depth:S,isLastNode:r,hasChildren:L,hasSiblings:B,isLeaf:T,collapsed:!l,subAccountAnscestorMetadata:y.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:Y,onNameClick:()=>u?.id[0]!=null?f?.(u.id[0]):void 0})}),t.jsxs(on,{children:[s.map(H=>t.jsx(sn,{balance:H,isOpen:l},H?.period)),t.jsx(cn,{total:l?d:h})]})]}),t.jsx(dn,{isScrolling:o,subEntityProps:{nestingLevel:S,isSticky:i,noMarginForEntity:!0}})]})}function dn({isScrolling:e,isLastNode:i=!1,subEntityProps:n}){return i?t.jsx(kt,{isScrolling:e,kind:"end_row_separator",subEntityProps:n}):t.jsx(kt,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:n})}const na=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
|
+
`,oa=a.div`
|
|
375
|
+
display: flex;
|
|
376
|
+
flex: 1 0 auto;
|
|
377
|
+
flex-direction: row;
|
|
378
|
+
justify-content: flex-end;
|
|
379
|
+
`,hn=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
|
+
`,un=a(C)`
|
|
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
|
+
`,ra=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?P`
|
|
413
|
+
position: -webkit-sticky;
|
|
414
|
+
position: sticky;
|
|
415
|
+
top: ${c.sp0};
|
|
416
|
+
left: ${c.sp0};
|
|
417
|
+
`:""}
|
|
418
|
+
`,aa=a(C)`
|
|
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
|
+
`,pn=a.div`
|
|
425
|
+
max-height: ${c.sp8};
|
|
426
|
+
min-height: ${c.sp8};
|
|
427
|
+
cursor: pointer;
|
|
428
|
+
`,Dt=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
|
+
`,gn=a.div``,fn=a(Ki)`
|
|
435
|
+
width: 12px;
|
|
436
|
+
height: 12px;
|
|
437
|
+
cursor: pointer;
|
|
438
|
+
color: ${e=>e.theme.colors.hero};
|
|
439
|
+
`,Rt=a(Vt)`
|
|
440
|
+
width: 12px;
|
|
441
|
+
height: 12px;
|
|
442
|
+
`,Gt=a(Tt)`
|
|
443
|
+
width: 12px;
|
|
444
|
+
height: 12px;
|
|
445
|
+
`,la=({reportId:e,sortKey:i,sortOrder:n="ascending",onSortOrderChanged:o})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=()=>{o?.(Et(n),r)},s=i===r?n:"ascending";return t.jsxs(aa,{active:i===r,"data-testid":m("duration-row-vendor-title",e),children:[r==="vendor"?W.getLocalizedStrings().reports.aging.apAging.vendor:W.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(Dt,{selectedForSort:i===r,children:t.jsx(gn,{"data-testid":m("duration-row-vendor-sort-icon",e),onClick:l,children:s==="ascending"?t.jsx(Gt,{}):t.jsx(Rt,{})})}),t.jsx(Je,{controller:i===r,children:t.jsx(fn,{"data-testid":m("duration-row-vendor-sort-cancel-icon",e),onClick:()=>xn({onSortOrderChanged:o})})})]})},xn=({onSortOrderChanged:e})=>{e?.("descending","total")},sa=({agingPeriod:e,sortKey:i="vendor",sortOrder:n="ascending",onSortOrderChanged:o})=>{const r=i===e?n:"ascending",l=()=>{o?.(Et(n),e)};return t.jsx(pn,{"data-testid":m("duration-row-tick-container",e),children:t.jsx(hn,{"data-testid":m("duration-row-tick-element-container",e),children:t.jsxs(un,{active:i===e,"data-testid":m("duration-row-timeframe-tick",e),children:[W.getLocalizedStrings().reports.aging.duration[e],t.jsxs(Dt,{selectedForSort:i===e,"data-testid":m("duration-row-sort-container",e),children:[t.jsx(gn,{"data-testid":m("duration-row-sort-icon",e),onClick:l,children:r==="ascending"?t.jsx(Gt,{}):t.jsx(Rt,{})}),t.jsx(Je,{controller:i===e,children:t.jsx(fn,{"data-testid":m("duration-row-sort-cancel-icon",e),onClick:()=>xn({onSortOrderChanged:o})})})]})]})})})},mn=({reportId:e,sortKey:i,sortOrder:n="ascending",onSortOrderChanged:o})=>{const r=i==="total"?n:"ascending",l=()=>{o?.(Et(n),"total")};return t.jsx(pn,{"data-testid":m("duration-row-entity-total-tick-container",e),onClick:l,children:t.jsx(hn,{"data-testid":m("duration-row-entity-total-tick-element-container",e),children:t.jsxs(un,{active:i==="total","data-testid":m("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(Dt,{selectedForSort:i==="total","data-testid":m("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(Gt,{}):t.jsx(Rt,{})})]})})})},ca=({reportId:e,agingPeriod:i,sortKey:n="vendor",sortOrder:o="ascending",onSortOrderChanged:r})=>i!=null?t.jsx(sa,{sortKey:n,sortOrder:o,onSortOrderChanged:r,agingPeriod:i}):t.jsx(mn,{reportId:e,sortKey:n,sortOrder:o,onSortOrderChanged:r});function da({reportId:e,isSticky:i,height:n,agingPeriods:o,sortKey:r,sortOrder:l,backgroundColor:s,onSortOrderChanged:d}){const h=M();return t.jsxs(na,{height:n,bgColor:s,"data-testid":m("duration-row-root-container",e),children:[t.jsx(ra,{"data-testid":m("duration-row-placeholder-name",e),isSticky:i,windowSize:h,bgColor:s,children:t.jsx(la,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})}),t.jsxs(oa,{children:[o.map(u=>t.jsx(ca,{reportId:e,agingPeriod:u,sortKey:r,sortOrder:l,onSortOrderChanged:d},u)),t.jsx(mn,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})]})]})}const Et=e=>e==="ascending"?"descending":"ascending",ha=[10,14,20,20,20],ua=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
|
+
`,pa=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
|
+
`,ga=a.div`
|
|
461
|
+
display: flex;
|
|
462
|
+
flex: 1 0 auto;
|
|
463
|
+
flex-direction: row;
|
|
464
|
+
justify-content: flex-end;
|
|
465
|
+
`,wn=a.div`
|
|
466
|
+
display: flex;
|
|
467
|
+
flex-direction: row;
|
|
468
|
+
justify-content: flex-start;
|
|
469
|
+
`,yn=a(C)`
|
|
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
|
+
`,fa=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?P`
|
|
488
|
+
position: sticky;
|
|
489
|
+
top: ${c.sp0};
|
|
490
|
+
left: ${c.sp0};
|
|
491
|
+
`:null}
|
|
492
|
+
`,xa=a(C)`
|
|
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=>ha[e.depth]}px;
|
|
501
|
+
color: ${e=>e.theme.colors.primary};
|
|
502
|
+
width: ${e=>E.titleWidth.value(e.windowSize)-e.depth*w[11]}px;
|
|
503
|
+
`,ma=({balance:e})=>t.jsx(wn,{children:t.jsx(yn,{isClickable:!1,onClick:()=>null,children:q("0,0",e?.totalBalance)})}),wa=({total:e})=>t.jsx(wn,{children:t.jsx(yn,{isClickable:!1,onClick:()=>null,children:q("0,0",e)})});function ya({backgroundColor:e,isSticky:i,height:n,noMarginForEntity:o,isScrolling:r,total:l,nestedCustomer:s,metadata:d}){const h=M(),{common:{strings:{empty:u}},reports:{sections:g}}=W.getLocalizedStrings(),p=s!=null?s.id.length-1:0,f=d,x=s?.customer.name??u;return t.jsxs(ua,{"data-testid":"sub-customer-total-row-root-container",containerHeight:n,bgColor:e,children:[t.jsxs(pa,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(fa,{isSticky:i,windowSize:h,bgColor:e,containerHeight:n,children:[t.jsx(Xi,{ancestorMetadata:f.vendorOrCustomerAncestorMetadata,depth:p,name:x}),t.jsx(xa,{isClickable:!1,title:x,depth:p,windowSize:h,children:g.totalPrefix+" "+x})]}),t.jsxs(ga,{children:[s?.arAgingBalances.map((b,y)=>t.jsx(ma,{balance:b},y)),t.jsx(wa,{total:l})]})]}),t.jsx(ba,{isScrolling:r,nestingLevel:p,isSticky:i,noMarginForEntity:o})]})}function ba({isScrolling:e,nestingLevel:i,isSticky:n,noMarginForEntity:o}){return t.jsx(kt,{isScrolling:e,kind:"subtotal_row_separator",subEntityProps:{nestingLevel:i,isSticky:n,noMarginForEntity:o}})}const ae=e=>{switch(e){case"name+balances_actual":return!0;case"name+balances_forecast":return!1;case"name_only":return!1}},Oe=e=>{switch(e){case"name+balances_forecast":return!0;case"name+balances_actual":return!1;case"name_only":return!1}},ka=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
|
+
`,ja=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
|
+
`,Sa=a.div`
|
|
520
|
+
display: flex;
|
|
521
|
+
flex: 1 0 auto;
|
|
522
|
+
flex-direction: row;
|
|
523
|
+
justify-content: flex-end;
|
|
524
|
+
`,bn=a.div`
|
|
525
|
+
display: flex;
|
|
526
|
+
flex-direction: row;
|
|
527
|
+
justify-content: flex-start;
|
|
528
|
+
`,kn=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
|
+
`,Ca=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:i})=>e&&i?P`
|
|
546
|
+
position: -webkit-sticky;
|
|
547
|
+
position: sticky;
|
|
548
|
+
top: ${c.sp0};
|
|
549
|
+
left: ${c.sp4};
|
|
550
|
+
`:e&&!i?P`
|
|
551
|
+
position: -webkit-sticky;
|
|
552
|
+
position: sticky;
|
|
553
|
+
top: ${c.sp0};
|
|
554
|
+
left: ${c.sp0};
|
|
555
|
+
`:null}
|
|
556
|
+
`,$a=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
|
+
`,va=({type:e,balance:i})=>t.jsx(bn,{children:ae(e)===!0?t.jsx(kn,{children:q("0,0",i?.balance)}):null}),_a=({type:e,balance:i})=>t.jsx(bn,{children:ae(e)===!0?t.jsx(kn,{children:q("0,0",i)}):null});function La({type:e,isSticky:i,isIndented:n,height:o,title:r,totalBalances:l,backgroundColor:s}){const d=M(),h={amount:l.reduce((u,g)=>u+(g?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??A.defaultVendorCurrency.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??A.defaultVendorCurrency.currencySymbol};return t.jsx(ka,{"data-testid":m("total-row-root-container"),height:o,bgColor:s,windowSize:d,children:t.jsxs(ja,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsx(Ca,{bgColor:s,isSticky:i,windowSize:d,isIndented:n,children:t.jsx($a,{children:r})}),t.jsxs(Sa,{children:[l.map((u,g)=>t.jsx(va,{type:e,balance:u},g)),t.jsx(_a,{type:e,balance:h})]})]})})}const Aa=(e,i,n,o,r,l,s)=>{if(e.element.kind!=="timeframe_headers")return null;const d=e.element.data;return t.jsx(da,{reportId:e.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:d,backgroundColor:n,isSticky:o,height:i,sortKey:r,sortOrder:l,onSortOrderChanged:s})},Ba=(e,i,n,o,r,l,s,d,h,u)=>{if(i.element.kind!=="aging_report_row")return null;if(i.config.reportId==="accounts_payable_aging"){const p=i.element.data;return t.jsx(ta,{backgroundColor:d,isLastNode:l,isScrolling:s,isSticky:r,height:n,balances:p.apAgingBalances,vendor:p.vendor,total:p.total,onEntityNameClick:h})}const g=i.element.data;return t.jsx(ia,{treeNodeId:e,backgroundColor:d,isLastNode:l,isScrolling:s,isSticky:r,isOpen:o,height:n,metadata:i.element.metadata,balances:g.arAgingBalances,nestedCustomer:g,total:g.total,totalWithChildren:g.totalWithChildren,onEntityNameClick:h,onClick:u})},Wa=(e,i,n,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(ya,{backgroundColor:r,isScrolling:o,isSticky:n,height:i,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},Oa=(e,i,n,o,r)=>{const l=i.element.data;return t.jsx(La,{type:e,backgroundColor:o,isSticky:r,height:n,totalBalances:l,isIndented:i.config.reportId==="accounts_receivable_aging",title:i.element.title})};function nt(e,i,n,o){switch(e){case"cogs":return Ma(n,o,i);case"expenses":return Na(n,o,i);case"income":return Ia(n,o,i);case"cash_position":return Pa(n,o,i);case"cash_in":return za(n,o,i);case"cash_out":return Fa(n,o,i);case"assets":return Ta(n,o,i);case"equity":return Va(n,o,i);case"liabilities":return Da(n,o,i);case"other_expense":return Ra(n,o,i);case"other_income":return Ga(n,o,i);case"operating_activities":return Ea(n,o,i);case"investing_activities":return Ha(n,o,i);case"financing_activities":return Ka(n,o,i);default:throw Error(`${e} is not yet supported!`)}}const Ma=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCogsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Na=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithExpensesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ia=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithIncomeOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Pa=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashPositionInTimeframe,o.compactedAccountsSelector=()=>G([],o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},za=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCashInOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Fa=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCashOutOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ta=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithAssetsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Va=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithEquityOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Da=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithLiabilitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ra=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherExpensesInTimeframe,o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ga=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherIncomeInTimeframe,o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ea=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithOperatingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ha=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithInvestingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ka=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithFinancingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o};function G(e,i,n){switch(n){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>jn(i(o)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(o=>Sn(i(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Cn(i(o)?.balances??[]))}}function re(e,i,n,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>jn(i(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Sn(i(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Cn(i(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(i(r)?.balances??[]).length>0)}}function jn(e){let i=!1;if(e!=null){for(const n of e)if(n.balance.amount!==0){i=!0;break}}return i}function Sn(e){let i=!1;if(e!=null){for(const n of e)if(n.forecast!=null&&n.forecast.amount!==0){i=!0;break}}return i}function Cn(e){let i=!1;if(e!=null){for(const n of e)if(n.forecast!=null&&n.forecast.amount!==0||n.balance!=null&&n.balance.amount!==0){i=!0;break}}return i}function te(e,i="ascending_date",n=-1,o=!0){const r=n!==-1;let l=[],s=-1;if(e==null||e.balances.length===0)return r===!0&&(l=vn([],n)),{balances:l,thisPeriodIndex:s};let d=e.balances;return i==="ascending_date"?s=e.balances.length-1:(s=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:s}}function $n(e,i="ascending_date",n=-1,o=!0){const r=n!==-1,l=te(e,i,n,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=vn([],1);s.push(...d)}return{balances:s,thisPeriodIndex:l.thisPeriodIndex}}function Pe(e,i){if(i==="ascending_date")return e;{const n=[],o=[];for(const r of e)r.type==="default"?n.push(r):o.push(r);return[...n.reverse(),...o]}}function vn(e,i){return e.length>0?e:Vi(Array(i),null)}const Ya=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
|
+
`,ki=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
|
+
`,Ua=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 qa({kind:e,isScrolling:i}){switch(e){case"account_title_row_separator":return t.jsx(ki,{marginLeft:w[5],isScrolling:i});case"account_balance_row_separator":return t.jsx(ki,{marginLeft:0,isScrolling:i});case"ac_group_row_separator":return t.jsx(Ya,{isScrolling:i});case"section_row_separator":case"heading_row_separator":return t.jsx(Ua,{isScrolling:i})}}const Le={balanceHeight:c.sp4,balanceWidth:"166px",balanceLeftMargin:c.sp4,titleWidth:new D(200,350,405)};function Za(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 Qa(e,i){const n=["summary","detailed"];switch(e){case"section":return!n.includes(i);case"section_with_ac_only":return!n.includes(i);case"calculated_section":case"calculated_section_type1":return!n.includes(i);case"ac_group_report":case"ac_group_subaccount":return!n.includes(i);case"ac_report":case"ac_subaccount":case"ac_subentity_total":return!n.includes(i);case"title_string_only":return!n.includes(i);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 Ja=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
|
+
`,Xa=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
|
+
`,el=a.div`
|
|
597
|
+
display: flex;
|
|
598
|
+
flex: 1 0 auto;
|
|
599
|
+
flex-direction: row;
|
|
600
|
+
justify-content: flex-end;
|
|
601
|
+
`,tl=a.div`
|
|
602
|
+
display: flex;
|
|
603
|
+
flex-direction: row;
|
|
604
|
+
justify-content: flex-start;
|
|
605
|
+
`,il=a(C)`
|
|
606
|
+
user-select: none;
|
|
607
|
+
color: ${e=>e.theme.colors.hero};
|
|
608
|
+
min-width: ${Le.balanceWidth};
|
|
609
|
+
max-width: ${Le.balanceWidth};
|
|
610
|
+
text-align: right;
|
|
611
|
+
margin-left: ${Le.balanceLeftMargin};
|
|
612
|
+
`,nl=a.div`
|
|
613
|
+
display: flex;
|
|
614
|
+
flex-direction: row;
|
|
615
|
+
flex-shrink: 2;
|
|
616
|
+
flex-grow: 1;
|
|
617
|
+
align-items: center;
|
|
618
|
+
width: ${e=>Le.titleWidth.valuePx(e.windowSize)};
|
|
619
|
+
color: ${e=>e.theme.colors.hero};
|
|
620
|
+
max-width: ${e=>Le.titleWidth.valuePx(e.windowSize)};
|
|
621
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
622
|
+
${({isSticky:e})=>e?P`
|
|
623
|
+
position: -webkit-sticky;
|
|
624
|
+
position: sticky;
|
|
625
|
+
top: ${c.sp0};
|
|
626
|
+
left: ${c.sp0};
|
|
627
|
+
`:null}
|
|
628
|
+
`,ol=a(C)`
|
|
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
|
+
`,rl=({balance:e})=>t.jsx(tl,{children:t.jsx(il,{children:Z(e)})});function al({heading:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,totalBalances:l,isScrolling:s,isLastNode:d,onClick:h}){const u=M();return t.jsxs(Ja,{"data-testid":m("calculated-section-type-1-root-container-row",o),height:r,bgColor:i,windowSize:u,children:[t.jsxs(Xa,{"data-testid":m("calculated-section-type-1-container-row",o),onClick:()=>h?.(o),children:[t.jsx(nl,{"data-testid":m("calculated-section-type-1-total-container-row",o),bgColor:i,isSticky:n,windowSize:u,children:t.jsx(ol,{children:e})}),t.jsx(el,{children:l.map((g,p)=>t.jsx(rl,{balance:g},p))})]}),t.jsx(ll,{isScrolling:s,isLastNode:d})]})}function ll({isScrolling:e,isLastNode:i}){return i===!0?t.jsx(qa,{isScrolling:e,kind:"heading_row_separator"}):null}const sl=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
|
+
`,cl=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
|
+
`,dl=a.div`
|
|
653
|
+
display: flex;
|
|
654
|
+
flex: 1 0 auto;
|
|
655
|
+
flex-direction: row;
|
|
656
|
+
justify-content: flex-end;
|
|
657
|
+
`,hl=a.div`
|
|
658
|
+
display: flex;
|
|
659
|
+
flex-direction: row;
|
|
660
|
+
justify-content: flex-start;
|
|
661
|
+
`,He=a(Ei)`
|
|
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
|
+
`,ul=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?P`
|
|
678
|
+
position: -webkit-sticky;
|
|
679
|
+
position: sticky;
|
|
680
|
+
top: ${c.sp0};
|
|
681
|
+
left: ${c.sp0};
|
|
682
|
+
`:null}
|
|
683
|
+
`,pl=a(Ei)`
|
|
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
|
+
`,gl=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o})=>t.jsxs(hl,{"data-testid":m("heading-row-balance-element",e),children:[ae(e)||n?t.jsx(He,{"data-testid":m("heading-row-balance-actual",e),children:Z(i)}):t.jsx(He,{"data-testid":m("heading-row-balance-forecast",e),children:J(i)}),n?t.jsxs(t.Fragment,{children:[t.jsx(He,{"data-testid":m("heading-row-balance-forecast",e),children:J(i)}),t.jsx(He,{"data-testid":m("heading-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?de(i):he(i)})]}):null]});function fl({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,heading:l,headingBalances:s,isActualVsForecastOn:d,compareMode:h,isLeaf:u,onClick:g}){const p=M();return t.jsx(sl,{height:r,bgColor:i,"data-testid":m("heading-row-root-container",o),children:t.jsxs(cl,{"data-testid":m("heading-row-container",o),isClickable:!u,onClick:()=>g?.(o),children:[ge(e)===!0?t.jsx(ul,{"data-testid":m("heading-row-heading-container",o),isSticky:n,windowSize:p,bgColor:i,children:t.jsx(pl,{children:l})}):null,xe(e)===!0?t.jsx(dl,{"data-testid":m("heading-row-balances-container",o),children:s.map((f,x)=>t.jsx(gl,{"data-testid":m("heading-row-balance-element",e),type:e,heading:l,balance:f,isActualVsForecastOn:d,compareMode:h},x))}):null]})})}const xl=(e,i,n,o,r,l,s)=>{if(i.element.kind!="calculated_section_type1"||i.element.data==null)return null;const d=i.element.data,h=te(d,i.config.displayOrder,i.element.numOfBalances);return t.jsx(al,{backgroundColor:o,isSticky:r,treeNodeId:e,heading:i.element.title,totalBalances:h.balances,height:n,isScrolling:l,isLastNode:s})},Ht=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="title_string_only")return null;const f=te(void 0,n.config.displayOrder,n.element.numOfBalances);return t.jsx(fl,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,heading:n.element.title,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,headingBalances:f.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:x=>{p?.(x)}})};function _n(e,i){return ml(i)}const ml=(e,i)=>{const n={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return n.acBalanceSelector=o=>o.balancesInTimeframe,n.compactedAccountsSelectorVariant=o=>wl(o,n.acBalanceSelector,e),n};function wl(e,i,n){switch(n){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>yl(i(o)?.balances??[]));default:return e}}function yl(e){let i=!1;if(e!=null){for(const n of e)if(n.balance.amount!==0){i=!0;break}}return i}const Ke=[new D(w[4],56),new D(44,76),new D(69,102),new D(93,124),new D(113,143)],ji=[new D(w[0],w[0]),new D(14,w[4]),new D(67,67),new D(102,102),new D(136,136)],bl=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
|
+
`,Si=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
|
+
`,kl=a.div`
|
|
704
|
+
display: flex;
|
|
705
|
+
flex: 1 1 auto;
|
|
706
|
+
flex-flow: row;
|
|
707
|
+
justify-content: flex-start;
|
|
708
|
+
align-items: center;
|
|
709
|
+
`,jl=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?P`
|
|
719
|
+
position: -webkit-sticky;
|
|
720
|
+
position: sticky;
|
|
721
|
+
top: ${c.sp0};
|
|
722
|
+
left: ${c.sp0};
|
|
723
|
+
`:null}
|
|
724
|
+
`,Sl=a.div`
|
|
725
|
+
width: ${e=>e.noMarginForAccount?Ke[e.nestingLevel].value(e.windowSize)-w[5]:Ke[e.nestingLevel].value(e.windowSize)}px;
|
|
726
|
+
max-width: ${e=>e.noMarginForAccount?Ke[e.nestingLevel].value(e.windowSize)-w[5]:Ke[e.nestingLevel].value(e.windowSize)}px;
|
|
727
|
+
height: 1px;
|
|
728
|
+
`,Cl=a.div`
|
|
729
|
+
width: ${e=>ji[e.classDepth].valuePx(e.windowSize)};
|
|
730
|
+
max-width: ${e=>ji[e.classDepth].valuePx(e.windowSize)};
|
|
731
|
+
height: 1px;
|
|
732
|
+
`,$l=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
|
+
`,vl=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
|
+
`,_l=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
|
+
`,Ci=e=>{const i=M(),n=ce();return t.jsxs(kl,{children:[t.jsxs(jl,{windowSize:i,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(Cl,{classDepth:e.classDepth,windowSize:i}):null,t.jsx(Sl,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:i}),t.jsx($l,{isScrolling:e.isScrolling,colour:e.isTotal?n.colors.grey1:n.colors.grey3})]}),t.jsx(vl,{isScrolling:e.isScrolling,colour:e.isTotal?n.colors.grey1:n.colors.grey3})]})};function me({kind:e,isScrolling:i,subAccountProps:n}){switch(e){case"account_title_row_separator":return t.jsx(Si,{marginLeft:w[5],isScrolling:i});case"sub_account_balance_row_separator":return t.jsx(Ci,{nestingLevel:n?.nestingLevel??1,isScrolling:i,isSticky:n?.isSticky??!1,isTotal:!1,classDepth:n?.classDepth,noMarginForAccount:n?.noMarginForAccount??!1});case"account_balance_row_separator":return t.jsx(Si,{marginLeft:0,isScrolling:i});case"ac_group_row_separator":return t.jsx(bl,{isScrolling:i});case"section_row_separator":case"heading_row_separator":return t.jsx(_l,{isScrolling:i});case"total_row_separator":return t.jsx(Ci,{nestingLevel:n?.nestingLevel??1,isScrolling:i,isSticky:n?.isSticky??!1,isTotal:!0,classDepth:n?.classDepth,noMarginForAccount:n?.noMarginForAccount??!1})}}function Ln({height:e,backgroundColor:i,title:n,numOfBalances:o=6}){const r=M(),l=n!=null?n.split("+")[1]:"";let s=null;const d=r!=="small";switch(l){case"section-row":s=t.jsx(Ll,{columns:o,isSticky:d});break;case"root-class-row":s=t.jsx(Al,{columns:o,isSticky:d});break;case"sub-class-row":s=t.jsx(Bl,{columns:o,isSticky:d});break;case"leaf-class-row":s=t.jsxs(t.Fragment,{children:[t.jsx(Wl,{columns:o,isSticky:d}),t.jsx(me,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]});break}return t.jsx(Ml,{height:e,bgColor:i,children:s})}const Ll=({columns:e,isSticky:i})=>t.jsxs(Se,{children:[t.jsxs(rt,{isSticky:i,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Ne,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(ot,{columns:e,rectangleWidth:k.loadingBalanceWidthInPx})]}),Al=({columns:e,isSticky:i})=>t.jsxs(Se,{children:[t.jsxs(rt,{isSticky:i,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Ne,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(ot,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Bl=({columns:e,isSticky:i})=>t.jsxs(Se,{children:[t.jsx(rt,{isSticky:i,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(Se,{style:{marginLeft:"36px"},children:[t.jsx(Ne,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx,style:{marginLeft:w[4]}})]})}),t.jsx(ot,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Wl=({columns:e,isSticky:i})=>t.jsxs(Se,{children:[t.jsx(rt,{isSticky:i,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(Se,{style:{marginLeft:"84px"},children:t.jsx(K,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})})}),t.jsx(ot,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Ol=({rectangleWidth:e})=>t.jsx(An,{width:k.balanceWidthInPx,children:t.jsx(K,{width:e,height:k.balanceHeightInPx})}),ot=({columns:e,rectangleWidth:i})=>t.jsx(Nl,{style:{zIndex:9,width:k.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((n,o)=>t.jsx(Ol,{rectangleWidth:i},o))}),Ml=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
|
+
`,Se=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
|
+
`,Nl=a.div`
|
|
766
|
+
display: flex;
|
|
767
|
+
flex: 1 0 auto;
|
|
768
|
+
flex-direction: row;
|
|
769
|
+
justify-content: flex-end;
|
|
770
|
+
`,An=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
|
+
`,rt=a(An)`
|
|
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 Bn({height:e,numOfBalances:i,backgroundColor:n}){const o=M();return t.jsx(Il,{height:e,bgColor:n,children:t.jsxs(Pl,{windowSize:o,children:[t.jsx(zl,{windowSize:o,width:`${k.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(Fl,{children:Array.from({length:i},(r,l)=>t.jsx(Wn,{windowSize:o,width:k.balanceWidth,children:t.jsx(K,{width:k.balanceWidthInPx,height:w[6]})},`timeframe-balance-${l}`))})]})})}const Il=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
|
+
`,Pl=a.div`
|
|
794
|
+
display: flex;
|
|
795
|
+
flex-direction: row;
|
|
796
|
+
width: 100%;
|
|
797
|
+
`,Wn=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
|
+
`,zl=a(Wn)`
|
|
811
|
+
position: sticky;
|
|
812
|
+
left: ${c.sp0};
|
|
813
|
+
z-index: 10;
|
|
814
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
815
|
+
`,Fl=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
|
+
`,Tl=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
|
+
`,Vl=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 Kt({kind:e,isScrolling:i}){switch(e){case"ac_group_row_separator":return t.jsx(Tl,{"data-testid":m("ac-group-row-separator",e),isScrolling:i});case"section_row_separator":case"heading_row_separator":return t.jsx(Vl,{"data-testid":m("section-row-separator",e),isScrolling:i})}}const R={balanceHeight:c.sp4,balanceWidth:"166px",balanceLeftMargin:c.sp4,titleWidth:new D(200,350,405)};function Dl(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 Rl(e,i){const n=["summary","detailed"];switch(e){case"section":return!n.includes(i);case"section_with_ac_only":return!n.includes(i);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":case"ac_group_subaccount":return!n.includes(i);case"ac_subentity_total":case"ac_subaccount":case"ac_report":return!n.includes(i);case"title_string_only":return!n.includes(i);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 Gl=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
|
+
`,El=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
|
+
`,Hl=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
|
+
`,Kl=a.div`
|
|
856
|
+
display: flex;
|
|
857
|
+
flex-direction: row;
|
|
858
|
+
justify-content: flex-start;
|
|
859
|
+
`,jt=a(C)`
|
|
860
|
+
user-select: none;
|
|
861
|
+
min-width: ${R.balanceWidth};
|
|
862
|
+
max-width: ${R.balanceWidth};
|
|
863
|
+
text-align: right;
|
|
864
|
+
margin-left: ${R.balanceLeftMargin};
|
|
865
|
+
`,Yl=a(jt)`
|
|
866
|
+
color: ${e=>e.theme.colors.hero};
|
|
867
|
+
&:hover {
|
|
868
|
+
color: inherit;
|
|
869
|
+
}
|
|
870
|
+
`,Ul=a.div`
|
|
871
|
+
display: flex;
|
|
872
|
+
flex-direction: row;
|
|
873
|
+
flex-shrink: 2;
|
|
874
|
+
flex-grow: 1;
|
|
875
|
+
align-items: center;
|
|
876
|
+
width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
877
|
+
max-width: ${e=>R.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?P`
|
|
881
|
+
position: -webkit-sticky;
|
|
882
|
+
position: sticky;
|
|
883
|
+
top: ${c.sp0};
|
|
884
|
+
left: ${c.sp0};
|
|
885
|
+
`:null}
|
|
886
|
+
`,ql=a(C)`
|
|
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
|
+
`,Zl=({type:e,balance:i,collapsed:n,compareMode:o})=>{const r=n===!0?Yl:jt;return t.jsxs(Kl,{"data-testid":m("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":m("account-group-row-balance-actual",e),children:Z(i)}),Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":m("account-group-row-balance-forecast",e),children:J(i)}),t.jsx(jt,{"data-testid":m("account-group-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?de(i):he(i)})]}):null]})};function Ql({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,accountGroupName:l,accountGroupBalances:s,compareMode:d,isScrolling:h,isOpen:u,isLeaf:g,isLastNode:p,onClick:f}){const x=M(),b=!g,y=b?"pointer":"default",$=l.length>0?l.substr(0,1).toUpperCase():"",S=Xl(s),B=ce().colors.primary,[L,O]=I.useState(!1);return t.jsxs(Gl,{"data-testid":m("account-group-row-root-container",e),height:r,bgColor:i,windowSize:x,children:[t.jsxs(El,{"data-testid":m("account-group-row-container",e),style:{cursor:y},isClickable:b,onClick:()=>f?.(o),onMouseOver:()=>O(!0),onMouseLeave:()=>O(!1),children:[t.jsxs(Ul,{"data-testid":m("account-group-row-name-container",e),bgColor:i,isSticky:n,windowSize:x,hasNonZeroBalance:S,children:[t.jsx(be,{"data-testid":m("account-group-row-circle-with-letter",e),color:_(B),showCollapsedIcon:!u,showIcon:b&&L,firstLetter:$}),t.jsx(ql,{"data-testid":m("account-group-row-name",e),children:l})]}),t.jsx(Hl,{"data-testid":m("account-group-row-balances-container",e),hasNonZeroBalance:S,children:s.map((F,T)=>t.jsx(Zl,{"data-testid":m("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:F,compareMode:d,collapsed:!1},T))})]}),t.jsx(Jl,{isScrolling:h,isLeaf:g,isLastNode:p,isOpen:u})]})}function Jl({isScrolling:e,isLeaf:i,isLastNode:n,isOpen:o}){return i||!o||!n?t.jsx(Kt,{isScrolling:e,kind:"ac_group_row_separator"}):null}const Xl=e=>{let i=!1;if(e!=null){for(const n of e)if(n!=null&&n.balance.amount!==0){i=!0;break}}return i},es=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
|
+
`,ts=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
|
+
`,is=a.div`
|
|
914
|
+
display: flex;
|
|
915
|
+
flex: 1 0 auto;
|
|
916
|
+
flex-direction: row;
|
|
917
|
+
justify-content: flex-end;
|
|
918
|
+
`,ns=a.div`
|
|
919
|
+
display: flex;
|
|
920
|
+
flex-direction: row;
|
|
921
|
+
justify-content: flex-start;
|
|
922
|
+
`,xt=a(C)`
|
|
923
|
+
user-select: none;
|
|
924
|
+
min-width: ${R.balanceWidth};
|
|
925
|
+
max-width: ${R.balanceWidth};
|
|
926
|
+
text-align: right;
|
|
927
|
+
margin-left: ${R.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
|
+
`,os=a.div`
|
|
934
|
+
display: flex;
|
|
935
|
+
flex-direction: row;
|
|
936
|
+
flex-shrink: 2;
|
|
937
|
+
flex-grow: 1;
|
|
938
|
+
align-items: center;
|
|
939
|
+
width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
940
|
+
max-width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
941
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
942
|
+
${({isSticky:e})=>e?P`
|
|
943
|
+
position: -webkit-sticky;
|
|
944
|
+
position: sticky;
|
|
945
|
+
top: ${c.sp0};
|
|
946
|
+
left: ${c.sp0};
|
|
947
|
+
`:null}
|
|
948
|
+
`,rs=a(C)`
|
|
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
|
+
`,as=({type:e,balance:i,account:n,onAccountBalanceClick:o,compareMode:r})=>{const l=i?.type==="this_period_vs_last_period"||i?.type==="this_period_vs_last_period_percent",s=n!=null&&i!=null&&o!=null&&l!==!0;return t.jsxs(ns,{children:[t.jsx(xt,{isClickable:s,onClick:()=>{s===!0&&n!=null&&i!=null&&o?.(n,i)},children:Z(i)}),Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx(xt,{isClickable:!1,children:J(i)}),t.jsx(xt,{isClickable:!1,children:r==="compare_mode_percent"?de(i):he(i)})]}):null]})};function ls({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,accountBalances:l,isCompareModeOn:s,isForecastModeOn:d,isScrolling:h,isLeaf:u,isLastNode:g,compareMode:p,account:f,onAccountBalanceClick:x}){const b=M(),{common:{strings:{empty:y}}}=W.getLocalizedStrings(),$=f?.accountDescription?f.accountDescription:y,S=f?.accountName?f.accountName:$,B=Di(),L=B.loggedInUserRole!=null&&!A.hasInvestorBankerLevelAccess(B.loggedInUserRole),O=L===!0&&f!=null&&s!==!0&&x!=null&&d!==!0,F=O?"pointer":"default",T=(Y,H)=>{O===!0&&l[l.length-1]!=null&&x?.(Y,H,l[l.length-1])};return t.jsxs(es,{height:r,bgColor:i,windowSize:b,children:[t.jsxs(ts,{style:{cursor:F},isClickable:O,onClick:()=>f!=null?T(o,f):null,children:[t.jsx(os,{isSticky:n,windowSize:b,bgColor:i,children:t.jsx(rs,{title:S,children:S})}),t.jsx(is,{children:l.map((Y,H)=>t.jsx(as,{type:e,balance:Y,account:f,onAccountBalanceClick:L===!1||x==null?void 0:(U,Q)=>{x(o,U,Q)},compareMode:p},H))})]}),t.jsx(ss,{isScrolling:h,isLeaf:u,isLastNode:g})]})}function ss({isScrolling:e,isLeaf:i,isLastNode:n}){return i||!n?t.jsx(Kt,{isScrolling:e,kind:"ac_group_row_separator"}):null}const cs=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
|
+
`,ds=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
|
+
`,hs=a.div`
|
|
974
|
+
display: flex;
|
|
975
|
+
flex: 1 0 auto;
|
|
976
|
+
flex-direction: row;
|
|
977
|
+
justify-content: flex-end;
|
|
978
|
+
`,$i=a.div`
|
|
979
|
+
display: flex;
|
|
980
|
+
flex-direction: row;
|
|
981
|
+
justify-content: flex-start;
|
|
982
|
+
`,$e=a(C)`
|
|
983
|
+
user-select: none;
|
|
984
|
+
max-width: ${R.balanceWidth};
|
|
985
|
+
min-width: ${R.balanceWidth};
|
|
986
|
+
text-align: right;
|
|
987
|
+
margin-left: ${R.balanceLeftMargin};
|
|
988
|
+
`,vi=a(C)`
|
|
989
|
+
user-select: none;
|
|
990
|
+
max-width: ${R.balanceWidth};
|
|
991
|
+
min-width: ${R.balanceWidth};
|
|
992
|
+
text-align: right;
|
|
993
|
+
margin-left: ${R.balanceLeftMargin};
|
|
994
|
+
`,us=a.div`
|
|
995
|
+
display: flex;
|
|
996
|
+
flex-direction: column;
|
|
997
|
+
align-items: flex-end;
|
|
998
|
+
`,ps=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=>R.titleWidth.valuePx(e.windowSize)};
|
|
1006
|
+
max-width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
1007
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1008
|
+
${({isSticky:e})=>e?P`
|
|
1009
|
+
position: -webkit-sticky;
|
|
1010
|
+
position: sticky;
|
|
1011
|
+
top: ${c.sp0};
|
|
1012
|
+
left: ${c.sp0};
|
|
1013
|
+
`:null}
|
|
1014
|
+
`,gs=a(C)`
|
|
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
|
+
`,fs=({type:e,balance:i,color:n,compareMode:o})=>{const r=i!=null&&i.type==="default_with_percent"&&i.percentValue!=null?i.percentValue:0,l=i!=null&&i.type==="default_with_percent"&&i.forecastPercentValue!=null?i.forecastPercentValue:0;return t.jsxs(us,{children:[t.jsxs($i,{children:[t.jsx($e,{style:{color:n.toString()},children:Z(i)}),Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx($e,{style:{color:n.toString()},children:J(i)}),t.jsx($e,{style:{color:n.toString()},children:o==="compare_mode_percent"?de(i):he(i)})]}):null]}),t.jsxs($i,{children:[r!==0?t.jsx(vi,{style:{color:n.toString()},children:fe("0,0%",r)}):null,Oe(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(vi,{style:{color:n.toString()},children:fe("0,0%",l)}):t.jsx($e,{}),t.jsx($e,{})]}):null]})]})};function Yt({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,sectionName:l,sectionBalances:s,sectionColor:d,isScrolling:h,isOpen:u,isLeaf:g,compareMode:p,onClick:f}){const x=M(),[b,y]=I.useState(!1),$=!g,S=$?"pointer":"default",B=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(cs,{"data-testid":m("section-row-root-container",o),rootHeight:r,bgColor:i,windowSize:x,children:[t.jsxs(ds,{"data-testid":m("section-row-container",o),style:{cursor:S},onClick:()=>f?.(o),onMouseOver:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(ps,{"data-testid":m("section-row-name-container",o),isSticky:n,windowSize:x,bgColor:i,children:[t.jsx(be,{"data-testid":m("section-row-circle-with-letter",o),color:_(d),showCollapsedIcon:!u,showIcon:$&&b,firstLetter:B}),t.jsx(gs,{"data-testid":m("section-row-name",o),style:{color:d.toString()},children:l})]}),t.jsx(hs,{"data-testid":m("section-row-balances-container",o),children:s.map((L,O)=>t.jsx(fs,{"data-testid":m("section-row-balance-element",e),type:e,sectionName:l,balance:L,color:d,compareMode:p},O))})]}),t.jsx(xs,{isScrolling:h,isLeaf:g,isOpen:u})]})}function xs({isScrolling:e,isLeaf:i,isOpen:n}){return i||!n?t.jsx(Kt,{isScrolling:e,kind:"section_row_separator"}):null}const ms=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
|
+
`,ws=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
|
+
`,ys=a.div`
|
|
1040
|
+
display: flex;
|
|
1041
|
+
flex: 1 0 auto;
|
|
1042
|
+
flex-direction: row;
|
|
1043
|
+
justify-content: flex-end;
|
|
1044
|
+
`,bs=a.div`
|
|
1045
|
+
display: flex;
|
|
1046
|
+
flex-direction: row;
|
|
1047
|
+
justify-content: flex-start;
|
|
1048
|
+
`,On=a(C)`
|
|
1049
|
+
user-select: none;
|
|
1050
|
+
min-width: ${R.balanceWidth};
|
|
1051
|
+
max-width: ${R.balanceWidth};
|
|
1052
|
+
text-align: right;
|
|
1053
|
+
margin-left: ${R.balanceLeftMargin};
|
|
1054
|
+
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1055
|
+
`,ks=a(On)`
|
|
1056
|
+
color: ${e=>e.theme.colors.hero};
|
|
1057
|
+
&:hover {
|
|
1058
|
+
color: inherit;
|
|
1059
|
+
}
|
|
1060
|
+
`,js=a.div`
|
|
1061
|
+
display: flex;
|
|
1062
|
+
flex-direction: row;
|
|
1063
|
+
flex-shrink: 2;
|
|
1064
|
+
flex-grow: 1;
|
|
1065
|
+
align-items: center;
|
|
1066
|
+
width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
1067
|
+
max-width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
1068
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1069
|
+
${({isSticky:e})=>e?P`
|
|
1070
|
+
position: -webkit-sticky;
|
|
1071
|
+
position: sticky;
|
|
1072
|
+
top: ${c.sp0};
|
|
1073
|
+
left: ${c.sp0};
|
|
1074
|
+
`:null}
|
|
1075
|
+
`,Ss=a(C)`
|
|
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
|
+
`,mt=a(C)`
|
|
1085
|
+
user-select: none;
|
|
1086
|
+
min-width: ${R.balanceWidth};
|
|
1087
|
+
max-width: ${R.balanceWidth};
|
|
1088
|
+
text-align: right;
|
|
1089
|
+
margin-left: ${R.balanceLeftMargin};
|
|
1090
|
+
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1091
|
+
`,Cs=({type:e,balance:i,collapsed:n,compareMode:o})=>{const r=n===!0?ks:On;return t.jsxs(bs,{children:[ae(e)===!0?t.jsx(r,{children:Z(i)}):null,Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx(mt,{children:Z(i)}),t.jsx(mt,{children:J(i)}),t.jsx(mt,{children:o==="compare_mode_percent"?de(i):he(i)})]}):null]})};function $s({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,title:l,totalBalances:s,isLeaf:d,compareMode:h,onClick:u}){const g=M(),p=!d,f=p?"pointer":"default";return t.jsx(ms,{height:r,bgColor:i,windowSize:g,children:t.jsxs(ws,{style:{cursor:f},isClickable:p,onClick:()=>u?.(o),children:[t.jsx(js,{bgColor:i,isSticky:n,windowSize:g,children:t.jsx(Ss,{children:l})}),t.jsx(ys,{children:s.map((x,b)=>t.jsx(Cs,{type:e,balance:x,collapsed:!1,compareMode:h},b))})]})})}const ke={net_burn_or_income:{income:{color:new _(V.graphColor04),hoverColor:new _(V.graphColor04Dark)},cogs:{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)},expenses:{color:new _(V.graphColor32),hoverColor:new _(V.graphColor32Dark)},"Gross Burn":{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)},"Net Burn":{color:new _(V.graphColor13),hoverColor:new _(V.graphColor13Dark)},"Net Income":{color:new _(V.graphColor13),hoverColor:new _(V.graphColor13Dark)}},revenue:{income:{color:new _(V.graphColor28),hoverColor:new _(V.graphColor28Dark)},cogs:{color:new _(V.graphColor17),hoverColor:new _(V.graphColor17Dark)},"Gross Margin":{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new _(V.graphColor33),hoverColor:new _(V.graphColor33Dark)},cash_out:{color:new _(V.graphColor02),hoverColor:new _(V.graphColor02Dark)},"Net Cash Flow":{color:new _(V.graphColor35),hoverColor:new _(V.graphColor35Dark)}},default:{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)}},Ut=(e,i)=>e.startsWith("net_burn_or_income")===!0?i!=null?ke.net_burn_or_income[i]:ke.default:e.startsWith("revenue")===!0?i!=null?ke.revenue[i]:ke.default:e.startsWith("cash_in_cash_out")===!0&&i!=null?ke.cash_in_cash_out[i]:ke.default,vs=(e,i,n,o,r,l,s,d,h,u,g)=>{if(n.element.kind!="ac_report"||n.element.data==null)return null;const p=n.element.data,f=A.isDashboardClassesViewReport(n.config.reportId)===!0?_n("no_filter",n.config.filterAccountsWithNilBalances):nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),x=te(f.acBalanceSelector(p),n.config.displayOrder,n.element.numOfBalances);return t.jsx(ls,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountBalances:x.balances,isCompareModeOn:n.config.mode==="this_period_vs_period_before",isForecastModeOn:n.config.mode==="actual_vs_forecast",isScrolling:s,isLeaf:d,isLastNode:h,compareMode:u,account:p,onAccountBalanceClick:g==null?void 0:(b,y,$)=>{g?.(b,y,$)}})},_s=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_group_report"||n.element.data==null)return null;const f=n.element.data,x=nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances);return t.jsx(Ql,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountGroupName:f.accountGroupName,compareMode:g,accountGroupBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},Mn=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section"||n.element.data==null)return null;const f=Ut(n.config.reportId,n.element.sectionType),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(Yt,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionColor:f.color,sectionName:n.element.title,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},Ls=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section_with_ac_only"||n.element.data==null)return null;const f=Ut(n.config.reportId,n.element.sectionType),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(Yt,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},Nn=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="calculated_section"||n.element.data==null)return null;const f=Ut(n.config.reportId,n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(Yt,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},In=(e,i,n,o,r,l,s,d)=>{if((n.config.isZeniCOAInUse==null||n.config.isZeniCOAInUse===!0)&&n.config.mode!=="this_period_vs_period_before")return null;const h=n.element.data,u=te(h,n.config.displayOrder,n.element.numOfBalances);return t.jsx($s,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,title:n.element.title,height:o,isLeaf:d,compareMode:s,totalBalances:u.balances})},As=(e,i,n)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ln,{height:i,backgroundColor:n,title:e.element.title,numOfBalances:e.element.numOfBalances}),Bs=(e,i,n)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Bn,{height:i,backgroundColor:n,numOfBalances:e.element.numOfBalances}),qt=20,Ws=e=>{const i=[];return e&&Object.values(e).forEach(n=>{i.push(n)}),i.reverse()},Os=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
|
+
`,Ms=a.div`
|
|
1097
|
+
display: flex;
|
|
1098
|
+
height: 1px;
|
|
1099
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
1100
|
+
`;function St({kind:e,isScrolling:i}){switch(e){case"account_class_row_separator":return t.jsx(Os,{isScrolling:i});case"section_row_separator":case"vendor_separator":return t.jsx(Ms,{isScrolling:i});case"heading_row_separator":return null}}const Ns=a.div`
|
|
1101
|
+
position: relative;
|
|
1102
|
+
`,Is=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 Ps=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
|
+
`,zs=a.div`
|
|
1120
|
+
height: ${c.sp6};
|
|
1121
|
+
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1122
|
+
width: 1px;
|
|
1123
|
+
`,Fs=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
|
+
`,Ts=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
|
+
`,Pn=({height:e})=>t.jsx(Ns,{children:t.jsx(Is,{height:e})}),Vs=({height:e})=>t.jsx(Fs,{height:e,children:t.jsx(Ts,{height:e})}),Ds=()=>t.jsx(Ps,{children:t.jsx(zs,{})}),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 zn(e,i=!1){switch(e){case"section":return w[8];case"flux_vendor_account_class_row":return i?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 Rs(e){return["section","flux_vendor_account_class_row","flux_vendor_row"].includes(e)}const _i=W.getLocalizedStrings(),Gs=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
|
+
`,Es=a.div`
|
|
1149
|
+
height: ${c.sp4};
|
|
1150
|
+
border-radius: ${c.sp1};
|
|
1151
|
+
padding: 2px ${c.sp1};
|
|
1152
|
+
color: ${e=>e.textColor.hex()};
|
|
1153
|
+
`,Hs=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
|
+
`,at=({amount:e,percentage:i,currency:n})=>{const o=ce();return t.jsxs(Gs,{children:[t.jsx(Es,{textColor:e>0?new _(o.colors.brandColorGoldDark):new _(o.colors.success),children:q("0,0",A.toAmount(Math.abs(e),n.currencyCode,n.currencySymbol))}),t.jsx(Hs,{textColor:e>0?new _(o.colors.brandColorGoldDark):new _(o.colors.success),bgColor:e>0?new _(ee.brandColorGoldLight):new _(ee.successLight),children:`${So(Math.abs(i)).format(_i.common.numberFormat.roundedOff)}${_i.common.strings.percentage}`})]})},Li=W.getLocalizedStrings(),Ks=a.div`
|
|
1162
|
+
display: flex;
|
|
1163
|
+
flex: 1 1 auto;
|
|
1164
|
+
width: fit-content;
|
|
1165
|
+
min-width: 100%;
|
|
1166
|
+
flex-direction: column;
|
|
1167
|
+
`,Ys=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
|
+
`,Fn=a.div`
|
|
1179
|
+
display: flex;
|
|
1180
|
+
flex-direction: column;
|
|
1181
|
+
`,Tn=a.div`
|
|
1182
|
+
display: flex;
|
|
1183
|
+
height: ${c.sp4};
|
|
1184
|
+
`,Us=a.div`
|
|
1185
|
+
display: flex;
|
|
1186
|
+
flex-direction: row;
|
|
1187
|
+
justify-content: flex-start;
|
|
1188
|
+
`,qs=a(C)`
|
|
1189
|
+
min-width: ${j.balanceWidth};
|
|
1190
|
+
max-width: ${j.balanceWidth};
|
|
1191
|
+
text-align: right;
|
|
1192
|
+
margin-left: 12px;
|
|
1193
|
+
`,Zs=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?P`
|
|
1203
|
+
position: sticky;
|
|
1204
|
+
top: ${c.sp0};
|
|
1205
|
+
left: ${c.sp0};
|
|
1206
|
+
display: flex;
|
|
1207
|
+
`:null}
|
|
1208
|
+
`,Qs=a.div`
|
|
1209
|
+
display: flex;
|
|
1210
|
+
height: ${c.sp4};
|
|
1211
|
+
width: 100%;
|
|
1212
|
+
`,Js=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
|
+
`,Xs=a(ye)`
|
|
1220
|
+
display: flex;
|
|
1221
|
+
width: ${j.categoryClassHeaderWidth};
|
|
1222
|
+
margin-left: ${c.sp3};
|
|
1223
|
+
color: ${e=>e.theme.colors.hero};
|
|
1224
|
+
`,ec=a(ye)`
|
|
1225
|
+
display: flex;
|
|
1226
|
+
width: ${j.categoryClassHeaderWidth};
|
|
1227
|
+
margin-left: ${c.sp4};
|
|
1228
|
+
color: ${e=>e.theme.colors.hero};
|
|
1229
|
+
`,tc=a(C)`
|
|
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
|
+
`,ic=a(C)`
|
|
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
|
+
`,nc=a.div`
|
|
1251
|
+
display: flex;
|
|
1252
|
+
margin-left: ${c.sp7};
|
|
1253
|
+
margin-right: calc(
|
|
1254
|
+
${j.statusContainerWidth} +
|
|
1255
|
+
${j.statusLeftMargin}
|
|
1256
|
+
);
|
|
1257
|
+
`,oc=a.div`
|
|
1258
|
+
position: sticky;
|
|
1259
|
+
left: 0;
|
|
1260
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1261
|
+
display: flex;
|
|
1262
|
+
`,rc=a.div`
|
|
1263
|
+
overflow-x: auto;
|
|
1264
|
+
display: flex;
|
|
1265
|
+
flex: 1;
|
|
1266
|
+
justify-content: flex-end;
|
|
1267
|
+
`,ac=({isBalanceRowFirstNode:e=!1,balance:i})=>{const n=i!=null;return t.jsxs(Fn,{children:[e?t.jsx(Tn,{}):null,t.jsx(Us,{children:t.jsx(qs,{isClickable:n,children:Z(i)})})]})};function lc({varianceAmount:e,variancePercentage:i,currency:n,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,x=u.accountBase?.accountName?u.accountBase?.accountName:f,b=u.classBase?.className?u.classBase?.className:p,y=s?.accountAndClassRowMetadata.isLastNode;return t.jsxs(Ks,{children:[t.jsxs(Ys,{style:{cursor:"default"},isHoveredByParent:g,children:[t.jsx(oc,{children:t.jsxs(Zs,{className:"flux-class-and-account-value-container",isSticky:o,children:[!!s?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(Qs,{children:[t.jsx(Pn,{height:j.lineComponentHeight}),t.jsx(Xs,{children:Li.common.texts.category}),t.jsx(ec,{children:Li.common.texts.class})]}),t.jsxs(Js,{children:[y===!0?t.jsx(Vs,{height:j.lineLComponentHeight}):t.jsx(Ds,{}),t.jsx(tc,{title:x,children:x}),t.jsx(ic,{title:b,children:b})]})]})}),t.jsx(rc,{children:t.jsxs(nc,{children:[r.map(($,S)=>t.jsx(ac,{balance:$,isBalanceRowFirstNode:s?.accountAndClassRowMetadata.isFirstNode},S)),t.jsxs(Fn,{children:[!!s?.accountAndClassRowMetadata.isFirstNode&&t.jsx(Tn,{}),t.jsx(at,{amount:e,percentage:i,currency:n})]})]})})]}),t.jsx(sc,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:s?.isVendorLastChild??!0})]})}function sc({isScrolling:e,isLastNode:i,isParentLastChild:n}){return i&&n?t.jsx(St,{isScrolling:e,kind:"vendor_separator"}):i?t.jsx(St,{isScrolling:e,kind:"account_class_row_separator"}):null}function cc(){return t.jsxs(dc,{children:[t.jsxs(uc,{children:[t.jsxs(je,{width:j.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(Ne,{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(je,{width:j.categoryRowsSkeletonContainerWidth,children:t.jsx(K,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:c.sp2}})})]}),t.jsxs(hc,{children:[t.jsx(je,{width:j.titleWidthMedium,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(je,{width:j.titleWidthMedium,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(je,{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(je,{width:j.titleWidthMedium,children:t.jsx(K,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const dc=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
|
+
`,je=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
|
+
`,hc=a.div`
|
|
1288
|
+
display: flex;
|
|
1289
|
+
`,uc=a.div`
|
|
1290
|
+
display: flex;
|
|
1291
|
+
width: ${j.vendorContainerWidth};
|
|
1292
|
+
position: sticky;
|
|
1293
|
+
left: ${c.sp8};
|
|
1294
|
+
top: 0;
|
|
1295
|
+
z-index: 10;
|
|
1296
|
+
`,pc=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
|
+
`,gc=a.div`
|
|
1305
|
+
display: flex;
|
|
1306
|
+
flex: 1 1 auto;
|
|
1307
|
+
flex-flow: row;
|
|
1308
|
+
justify-content: flex-start;
|
|
1309
|
+
align-items: center;
|
|
1310
|
+
`,fc=a.div`
|
|
1311
|
+
display: flex;
|
|
1312
|
+
flex-direction: row;
|
|
1313
|
+
justify-content: flex-start;
|
|
1314
|
+
`,xc=a(C)`
|
|
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
|
+
`,mc=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&&P`
|
|
1330
|
+
position: sticky;
|
|
1331
|
+
top: ${c.sp0};
|
|
1332
|
+
left: ${c.sp0};
|
|
1333
|
+
`}
|
|
1334
|
+
`,wc=a(C)`
|
|
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
|
+
`,yc=a(zt)`
|
|
1344
|
+
color: ${e=>e.theme.colors.primary};
|
|
1345
|
+
width: ${c.sp3};
|
|
1346
|
+
height: ${c.sp3};
|
|
1347
|
+
`,bc=a.div`
|
|
1348
|
+
display: flex;
|
|
1349
|
+
&:hover {
|
|
1350
|
+
.flux-section-checkbox {
|
|
1351
|
+
background-color: transparent;
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
`,kc=a.div`
|
|
1355
|
+
display: flex;
|
|
1356
|
+
width: ${c.sp8};
|
|
1357
|
+
`,jc=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
|
+
`,Sc=({balance:e,color:i})=>t.jsx(fc,{children:t.jsx(xc,{color:i,children:Z(e)})}),Cc=Oo.memo(function({currency:e,sectionId:i,selectedSectionsIds:n,backgroundColor:o,isSticky:r,treeNodeId:l,height:s,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:g,variancePercentage:p,sectionColor:f,isScrolling:x,isOpen:b,isLeaf:y,idsForReview:$,sectionToggled:S,onSectionCheckboxClick:B}){const L=M(),[O,F]=I.useState($.length>0),[T,Y]=I.useState(!1),H=n.includes(i),U=!y,Q=$.length===qt&&!H,ue=d?.[0]?.toUpperCase()??"",X=I.useCallback(oe=>{B?.(i,oe.target.checked)},[i,B]);return t.jsxs(pc,{heightValue:s,bgColor:o,children:[t.jsxs(gc,{style:{cursor:U?"pointer":"default"},onClick:()=>S?.(l),onMouseOver:()=>{Y(!0),F(!0)},onMouseLeave:()=>{Y(!1),$.length===0&&F(!1)},children:[t.jsxs(mc,{className:"flux-section-name-container",isSticky:r,windowSize:L,bgColor:o,children:[h&&O&&b?t.jsx(bc,{children:t.jsx(Mt,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox",icon:t.jsx(Nt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(yc,{}),checked:H,id:l,disabled:Q,onChange:X,onClick:oe=>oe.stopPropagation(),style:{padding:"20px",pointerEvents:Q?"none":"auto"}})}):t.jsx(kc,{}),t.jsx(be,{color:_(f),showCollapsedIcon:!b,showIcon:T&&U,firstLetter:ue}),t.jsx(wc,{color:f.toString(),children:d})]}),t.jsxs(jc,{children:[u.map((oe,Ce)=>t.jsx(Sc,{sectionName:d,balance:oe,color:f.toString()},Ce)),t.jsx(at,{amount:g,percentage:p,currency:e})]})]}),t.jsx($c,{isScrolling:x,isLeaf:y,isOpen:b})]})});function $c({isScrolling:e,isLeaf:i,isOpen:n}){return i||!n?t.jsx(St,{isScrolling:e,kind:"section_row_separator"}):null}function vc(){const e=M();return t.jsxs(_c,{windowSize:e,children:[t.jsx(ve,{windowSize:e,width:j.vendorContainerWidth,marginRight:0,children:t.jsx(K,{width:w[9],height:w[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(ve,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(K,{width:128,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:j.varianceRowSkeletonContainerWidth,children:t.jsx(K,{width:184,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:j.titleWidthSmall,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})})]})}const _c=a.div`
|
|
1367
|
+
display: flex;
|
|
1368
|
+
flex-direction: row;
|
|
1369
|
+
width: 100%;
|
|
1370
|
+
margin-left: ${c.sp8};
|
|
1371
|
+
`,ve=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:Lc,expenseAutomation:{fluxAnalysis:Ac},vendors:{opExByVendor:Bc}}=W.getLocalizedStrings(),Wc=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
|
+
`,Ct=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
|
+
`,Oc=a(C)`
|
|
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
|
+
`,Mc=a.div`
|
|
1416
|
+
display: flex;
|
|
1417
|
+
cursor: pointer;
|
|
1418
|
+
`,Nc=a.div`
|
|
1419
|
+
display: flex;
|
|
1420
|
+
cursor: pointer;
|
|
1421
|
+
justify-content: center;
|
|
1422
|
+
align-items: center;
|
|
1423
|
+
color: ${e=>e.theme.colors.primary};
|
|
1424
|
+
`,Ic=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?P`
|
|
1431
|
+
top: ${c.sp0};
|
|
1432
|
+
left: ${c.sp0};
|
|
1433
|
+
display: flex;
|
|
1434
|
+
position: sticky;
|
|
1435
|
+
`:null};
|
|
1436
|
+
`,Pc=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
|
+
`,zc=a(C)`
|
|
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
|
+
`,$t=a.div`
|
|
1450
|
+
display: flex;
|
|
1451
|
+
cursor: pointer;
|
|
1452
|
+
`,vt=a.div`
|
|
1453
|
+
color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
|
|
1454
|
+
`,_t=a(Tt)`
|
|
1455
|
+
width: ${j.sortIconDimension};
|
|
1456
|
+
height: ${j.sortIconDimension};
|
|
1457
|
+
margin-left: ${c.sp2};
|
|
1458
|
+
margin-top: ${c.sp1};
|
|
1459
|
+
`,Lt=a(Vt)`
|
|
1460
|
+
width: ${j.sortIconDimension};
|
|
1461
|
+
height: ${j.sortIconDimension};
|
|
1462
|
+
margin-left: ${c.sp2};
|
|
1463
|
+
margin-top: ${c.sp1};
|
|
1464
|
+
`,Fc=a.div`
|
|
1465
|
+
display: flex;
|
|
1466
|
+
margin-left: ${c.sp7};
|
|
1467
|
+
flex: 1 1 auto;
|
|
1468
|
+
justify-content: flex-end;
|
|
1469
|
+
`,Tc=({firstMonthOfFY:e,timeframeTick:i,timeframe:n})=>t.jsx(Ct,{isClickable:!1,children:t.jsx(Oc,{children:Ie(e,i,n)})}),Vc=({firstMonthOfFY:e,timeframeTick:i,timeframe:n})=>t.jsx(Tc,{firstMonthOfFY:e,timeframeTick:i,timeframe:n}),Dc=({sortKey:e="vendor",sortOrder:i="ascending",isBulkSelected:n,onSortOrderChanged:o})=>{const r=()=>{o(i==="ascending"?"descending":"ascending","vendor")},l=e==="vendor"?i:"ascending";return t.jsx(zc,{isBulkSelected:n,isSortedByKey:e==="vendor",children:t.jsxs($t,{onClick:r,"data-testid":m("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Bc.vendor,t.jsx(vt,{isBulkSelected:n,isSortedByKey:e==="vendor",children:l==="ascending"?t.jsx(_t,{}):t.jsx(Lt,{})})]})})};function Rc({backgroundColor:e,height:i,isBulkSelected:n,sortKey:o="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:s,timeframeTicks:d,onSortOrderChanged:h}){const u=M(),g=(p,f)=>{h?.(p,f)};return t.jsxs(Wc,{heightValue:i,bgColor:e,children:[t.jsx(Ic,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(Pc,{windowSize:u,children:t.jsx(Dc,{sortKey:o,sortOrder:r,isBulkSelected:n,onSortOrderChanged:g})})}),t.jsxs(Fc,{children:[d.map((p,f)=>t.jsx(Vc,{firstMonthOfFY:l,timeframeTick:p,timeframe:s},f)),t.jsx(Ct,{isClickable:!1,width:j.varianceHeaderContainerWidth,children:t.jsxs($t,{onClick:()=>h?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":m("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(Mc,{children:Ac.variance}),t.jsx(vt,{isBulkSelected:n,isSortedByKey:o==="variance",children:(o==="variance"?r:"ascending")==="ascending"?t.jsx(_t,{}):t.jsx(Lt,{})})]})}),t.jsx(Ct,{isClickable:!1,width:j.statusContainerWidth,children:t.jsxs($t,{onClick:()=>{h?.(r==="ascending"?"descending":"ascending","status")},"data-testid":m("flux-analysis-report-timeframe-row-status"),children:[t.jsx(Nc,{children:Lc.texts.reviewStatus}),t.jsx(vt,{isBulkSelected:n,isSortedByKey:o==="status",children:(o==="status"?r:"ascending")==="ascending"?t.jsx(_t,{}):t.jsx(Lt,{})})]})})]})]})}const Gc=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
|
+
`,Ec=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
|
+
`,Hc=a.div`
|
|
1487
|
+
display: flex;
|
|
1488
|
+
flex-direction: row;
|
|
1489
|
+
`,Kc=a.div`
|
|
1490
|
+
display: flex;
|
|
1491
|
+
flex-direction: row;
|
|
1492
|
+
justify-content: flex-start;
|
|
1493
|
+
align-items: center;
|
|
1494
|
+
margin-left: ${j.balanceLeftMargin};
|
|
1495
|
+
`,Yc=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
|
+
`,Uc=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
|
+
`,qc=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
|
+
`,Zc=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
|
+
`,Qc=a.div`
|
|
1533
|
+
display: flex;
|
|
1534
|
+
margin-left: ${c.sp7};
|
|
1535
|
+
flex: 1 1 auto;
|
|
1536
|
+
justify-content: flex-end;
|
|
1537
|
+
`,Jc=({balance:e})=>t.jsx(Kc,{children:t.jsx(Yc,{children:q("0,0",e?.balance)})});function Xc({type:e,height:i,title:n,totalBalances:o,varianceAmount:r,variancePercentage:l,currency:s,backgroundColor:d}){return t.jsx(Gc,{"data-testid":m("total-row-root-container"),heightValue:i,bgColor:d,children:t.jsxs(Ec,{"data-testid":m("total-row-container"),children:[t.jsx(Uc,{className:"flux-total-row",children:t.jsx(qc,{children:n})}),t.jsxs(Qc,{children:[t.jsx(Hc,{children:ae(e)&&o.map((h,u)=>t.jsx(Jc,{balance:h},u))}),t.jsx(at,{amount:r,percentage:l,currency:s}),t.jsx(Zc,{})]})]})})}const ed=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
|
+
`,td=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
|
+
`,id=a.div`
|
|
1569
|
+
display: flex;
|
|
1570
|
+
flex-direction: row;
|
|
1571
|
+
justify-content: flex-start;
|
|
1572
|
+
align-items: center;
|
|
1573
|
+
margin-left: ${j.balanceLeftMargin};
|
|
1574
|
+
`,nd=a(C)`
|
|
1575
|
+
user-select: none;
|
|
1576
|
+
min-width: ${j.balanceWidth};
|
|
1577
|
+
max-width: ${j.balanceWidth};
|
|
1578
|
+
text-align: right;
|
|
1579
|
+
`,od=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?P`
|
|
1589
|
+
position: -webkit-sticky;
|
|
1590
|
+
position: sticky;
|
|
1591
|
+
top: ${c.sp0};
|
|
1592
|
+
left: ${c.sp0};
|
|
1593
|
+
`:null}
|
|
1594
|
+
`,rd=a(C)`
|
|
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
|
+
`,ad=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 sd=a(Co)`
|
|
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 cd=a.div`
|
|
1636
|
+
display: flex;
|
|
1637
|
+
margin-left: ${c.sp7};
|
|
1638
|
+
flex: 1 1 auto;
|
|
1639
|
+
justify-content: flex-end;
|
|
1640
|
+
`,dd=a.div`
|
|
1641
|
+
display: flex;
|
|
1642
|
+
flex-direction: column;
|
|
1643
|
+
align-items: center;
|
|
1644
|
+
padding-top: ${e=>e.isNodeOpen?c.sp3:c.sp0};
|
|
1645
|
+
`,hd=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
|
+
`,ud=a(ye)`
|
|
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
|
+
`,pd=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
|
+
`,gd=a(ye)`
|
|
1671
|
+
overflow: hidden;
|
|
1672
|
+
text-overflow: ellipsis;
|
|
1673
|
+
`,fd=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
|
+
`,xd=a(zt)`
|
|
1683
|
+
color: ${e=>e.theme.colors.primary};
|
|
1684
|
+
width: ${c.sp3};
|
|
1685
|
+
height: ${c.sp3};
|
|
1686
|
+
`,md=a(ye)`
|
|
1687
|
+
display: flex;
|
|
1688
|
+
flex-direction: row;
|
|
1689
|
+
align-items: center;
|
|
1690
|
+
gap: 2px;
|
|
1691
|
+
color: ${e=>e.theme.colors.success};
|
|
1692
|
+
`,wd=a(Gi)`
|
|
1693
|
+
width: 12px;
|
|
1694
|
+
height: 12px;
|
|
1695
|
+
`,Ai=a(Ri)`
|
|
1696
|
+
margin-left: 2px;
|
|
1697
|
+
width: 12px;
|
|
1698
|
+
height: 12px;
|
|
1699
|
+
`,yd=a(Ae)`
|
|
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
|
+
`,bd=a(Ae)`
|
|
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
|
+
`,kd=a(Ae)`
|
|
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:Bi,expenseAutomation:jd}=W.getLocalizedStrings(),Sd=({balance:e})=>{const i=nd;return t.jsx(id,{children:t.jsx(i,{children:Z(e)})})};function Cd({fluxAnalysisEntityId:e,idsForReview:i,backgroundColor:n,isSticky:o,treeNodeId:r,height:l,leftChevron:s,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:g,reviewedByUser:p,status:f,vendor:x,isOpen:b,childrenCount:y,setHoveredParentId:$,onClick:S,handleRedirectToVendorDetailPage:B,updateOperatingExpensesIdsForReview:L}){const[O,F]=I.useState(!1),[T,Y]=I.useState(i.length>0),H=i.includes(e),U=i.includes(e),Q=s==="collapsed",ue=i.length===qt&&H===!1,X=rd,oe=le=>{let pe=i;le.target.checked===!0?pe=[...pe,e]:pe=pe.filter(Ve=>Ve!==e),L?.(pe)},Ce=()=>{B?.(x)};return t.jsx(ed,{heightValue:l,bgColor:n,children:t.jsxs(td,{shouldHighlight:U,isRowExpanded:b,onClick:()=>S?.(r),onMouseOver:()=>{F(!0),Y(!0),$?.(x.id)},onMouseLeave:()=>{F(!1),i.length===0&&Y(!1),$?.(null)},children:[t.jsxs(od,{className:"flux-vendor-name-container",bgColor:n,isSticky:o,children:[t.jsx(fd,{className:"flux-vendor-checkbox-container",children:T?t.jsx(Mt,{className:"flux-vendor-checkbox",icon:t.jsx(Nt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(xd,{}),checked:H,name:x.name,id:e,disabled:ue,onChange:oe,onClick:le=>le.stopPropagation(),style:{padding:"20px",pointerEvents:ue?"none":"auto"}}):null}),t.jsxs(dd,{isNodeOpen:b,children:[O?t.jsx(yd,{className:"flux-vendor-collapsable-chevron-icon",children:b===!1?t.jsx(Ai,{}):t.jsx(wd,{})}):x.logo!=null?t.jsx(It,{photoUrl:x.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(Pt,{name:x.name,size:c.sp4}),b?t.jsx(Pn,{height:j.vendorLineComponentHeight}):null]}),t.jsxs(ad,{children:[t.jsxs(ld,{children:[t.jsx(X,{children:x.name}),b?null:t.jsx(kd,{className:"flux-vendor-children-count",children:t.jsx(Ae,{children:y})})]}),O?t.jsx(I.Fragment,{children:t.jsx(bd,{className:"flux-vendor-chevron-icon",onClick:Ce,"data-testid":m("flux-analysis-report-vendorElement-row"),children:t.jsx(Ai,{})})}):null]})]}),t.jsxs(cd,{children:[g.map((le,pe)=>t.jsx(Sd,{balance:le,collapsed:Q},pe)),t.jsx(at,{amount:d,percentage:h,currency:u}),t.jsx(hd,{children:f==="Pending Review"?t.jsx(pd,{children:t.jsx(gd,{children:Bi.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(ud,{className:"vendor-flux-analysis-review-info",children:p!=null?t.jsxs(I.Fragment,{children:[t.jsxs(md,{children:[t.jsx(sd,{}),jd.fluxAnalysis.reviewedBy]}),t.jsx(Ae,{children:wo(p)})]}):Bi.strings.hyphen})})})]})]})})}const Wi={generalExpense:{color:new _(V.graphColor04),hoverColor:new _(V.graphColor04Dark)},reimbursement:{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)},default:{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)}},$d=(e,i)=>e.startsWith("flux_analysis_operating_expense")===!0&&i!=null?Wi[i]:Wi.default,Zt=(e,i)=>{const{element:n}=e;return n.kind===i&&n.data!=null},Vn=e=>Ws(e.balancesByMonth),vd=(e,i,n,o,r,l,s,d,h)=>{if(!Zt(i,"flux_vendor_account_class_row"))return null;const u=i.element.data,g=Vn(u),p=i.element.metadata.vendorId;return t.jsx(lc,{backgroundColor:n,isSticky:o,treeNodeId:e,balances:g,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:u.currency,isScrolling:r,isLeaf:l,isLastNode:s,nodeMetadata:i.element.metadata,accountAndClass:u,onAccountAndClassBalanceClick:()=>h?.(p),isHoveredByParent:d?.hoveredParentId===p})},_d=(e,i,n,o,r,l,s,d,h,u,g)=>{if(!Zt(i,"flux_vendor_row"))return null;const p=i.element.data,f=Vn(p),x=zn("flux_vendor_row",h),b=y=>{g?.(y),i.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(y)};return t.jsx(Cd,{backgroundColor:n,isSticky:o,treeNodeId:e,fluxAnalysisEntityId:p.fluxAnalysisEntityId,height:x,leftChevron:"collapsed",idsForReview:i.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:y=>{b?.(y)},reviewedByUser:p.reviewedByUser,updateOperatingExpensesIdsForReview:i.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:i.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},Ld=(e,i,n,o,r,l,s,d,h,u)=>{if(!Zt(i,"section"))return null;const g=$d(i.config.reportId,i.element.sectionType),p=i.element.data,f=x=>{i.config.fluxAnalysisConfig?.onSectionRowClick(x),u?.(x)};return t.jsx(Cc,{backgroundColor:o,isSticky:r,treeNodeId:e,height:n,selectedSectionsIds:i.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:i.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:g.color,sectionName:i.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:x=>{f?.(x)},onSectionCheckboxClick:i.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:p.sectionId})},Ad=(e,i,n)=>{if(e.element.kind!=="timeframe_headers")return null;const o=Pe(e.element.data,e.config.displayOrder),r=o.length>0?o[0].balanceTimeFrame:"month",l=o.map(d=>A.toTimeframeTick(d)),s=(d,h)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(d,h)};return t.jsx(Rc,{isSticky:n,height:i,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===qt,onSortOrderChanged:s,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},Bd=(e,i)=>{if(e.element.kind!=="total")return null;const n=e.element.data;return t.jsx(Xc,{type:"name+balances_actual",title:e.element.title,totalBalances:n.balances,varianceAmount:n.varianceAmount,variancePercentage:n.variancePercentage,currency:n.currency,height:i})},Wd=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(cc,{}),Od=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(vc,{}),Md=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
|
+
`,Nd=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
|
+
`,Id=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
|
+
`,Pd=a(yo)`
|
|
1750
|
+
width: 100%;
|
|
1751
|
+
display: flex;
|
|
1752
|
+
align-items: center;
|
|
1753
|
+
font-weight: ${e=>e.isSubclass?gi.regular:gi.medium};
|
|
1754
|
+
color: ${e=>e.checked?e.theme.colors.primary:e.theme.colors.hero};
|
|
1755
|
+
`,zd=a(ye)`
|
|
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
|
+
`,Fd=a(zt)`
|
|
1767
|
+
color: ${e=>e.theme.colors.primary};
|
|
1768
|
+
width: ${c.sp3};
|
|
1769
|
+
height: ${c.sp3};
|
|
1770
|
+
`;function Td({backgroundColor:e,treeNodeId:i,classId:n,isChecked:o,isDisabled:r,height:l,nestedClass:s,isLeaf:d,showClassAccountNumber:h,onClick:u,onToggleCheck:g}){const[p,f]=I.useState(!1);return t.jsx(Md,{"data-testid":m("name-with-checkbox-row-root-container",i),bgColor:e,children:t.jsxs(Nd,{"data-testid":m("name-with-checkbox-row-container",i),height:l,isClickable:!d,onClick:()=>u?.(i),onMouseOver:()=>f(!0),onMouseLeave:()=>f(!1),level:s.classId.length,children:[t.jsx(Mt,{"data-testid":m("name-with-checkbox-row-checkbox",s.classId.toString()),icon:t.jsx(Nt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(Fd,{}),checked:o,name:s.className,id:i,disabled:r,onChange:x=>{g?.(n,x.target.checked)},style:{height:c.sp6}})," ",t.jsx(Id,{children:t.jsxs(Pd,{"data-testid":m("name-with-checkbox-row-label-container",i),checked:o,isSubclass:s.classId.length>1,children:[t.jsx("label",{"data-testid":m("name-with-checkbox-row-label",s.classId.toString()),style:{flexGrow:2,cursor:"pointer"},onClick:()=>{g?.(n,!o)},children:s.className}),p===!0&&h===!0&&s.accountingClassNumber!=null&&t.jsx(zd,{children:s.accountingClassNumber})]})})]})})}const Vd=(e,i,n,o,r,l,s,d,h,u,g)=>{if(n.element.kind!="checkbox_and_name_only")return null;const p=n.element.data,f=n.config.isClassToBeFilteredOut?.(p.classId)===!1;return t.jsx(Td,{type:i,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:n.config.showClassAccountNumber,onToggleCheck:g})},N={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 Dd(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 Rd(e,i){return!1}const Gd=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
|
+
`,Ed=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
|
+
`,Hd=a.div`
|
|
1793
|
+
display: flex;
|
|
1794
|
+
flex: 1 0 auto;
|
|
1795
|
+
flex-direction: row;
|
|
1796
|
+
justify-content: flex-end;
|
|
1797
|
+
`,Oi=a(C)`
|
|
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: ${N.balanceWidth};
|
|
1804
|
+
max-width: ${N.balanceWidth};
|
|
1805
|
+
margin-left: ${e=>e.isClubbed===!0?c.sp2:N.balanceLeftMargin};
|
|
1806
|
+
border: 1px solid transparent;
|
|
1807
|
+
`,Mi=a(C)`
|
|
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=>N.categoryClassWidth.valuePx(e.windowSize)};
|
|
1814
|
+
`,Kd=a.div`
|
|
1815
|
+
height: 100%;
|
|
1816
|
+
display: flex;
|
|
1817
|
+
flex-direction: row;
|
|
1818
|
+
align-items: center;
|
|
1819
|
+
min-width: ${e=>N.titleWidth.valuePx(e.windowSize)};
|
|
1820
|
+
color: ${e=>e.theme.colors.primary};
|
|
1821
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1822
|
+
${({isSticky:e})=>e?P`
|
|
1823
|
+
position: -webkit-sticky;
|
|
1824
|
+
position: sticky;
|
|
1825
|
+
top: ${c.sp0};
|
|
1826
|
+
left: ${c.sp0};
|
|
1827
|
+
z-index: 20;
|
|
1828
|
+
`:null}
|
|
1829
|
+
`;function Yd({backgroundColor:e,isSticky:i,height:n,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const s=M();return l.length>0?t.jsxs(Gd,{height:n,bgColor:e,"data-testid":m("opex-vendor-loading-in-progress-row"),children:[t.jsxs(Kd,{"data-testid":m("opex-vendor-loading-in-progress-row-name"),isSticky:i,windowSize:s,bgColor:e,children:[t.jsx(Ne,{width:w[4],height:w[4]}),t.jsx(Oi,{windowSize:s,isClubbed:!0,children:t.jsx(K,{width:120,height:w[4]})})]}),t.jsxs(Hd,{children:[o?t.jsx(Mi,{windowSize:s,children:t.jsx(K,{width:120,height:w[4]})}):null,r?t.jsx(Mi,{windowSize:s,children:t.jsx(K,{width:120,height:w[4]})}):null,l.map((d,h)=>t.jsx(Oi,{windowSize:s,children:t.jsx(K,{width:120,height:w[4]})},`${h}RowItem`))]})]}):t.jsx(Ed,{height:n,bgColor:e,children:t.jsx(mo,{size:"Small",start:!0})})}const Ud=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
|
+
`,wt=a.div``,qd=a.div`
|
|
1841
|
+
display: flex;
|
|
1842
|
+
flex: 1 0 auto;
|
|
1843
|
+
flex-direction: row;
|
|
1844
|
+
justify-content: flex-end;
|
|
1845
|
+
`,Zd=a(C)`
|
|
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
|
+
`,Qd=a(C)`
|
|
1856
|
+
color: ${e=>e.theme.colors.hero};
|
|
1857
|
+
flex-grow: 1;
|
|
1858
|
+
-webkit-box-orient: vertical;
|
|
1859
|
+
display: flex;
|
|
1860
|
+
min-width: ${N.balanceWidth};
|
|
1861
|
+
max-width: ${N.balanceWidth};
|
|
1862
|
+
border: 1px solid transparent;
|
|
1863
|
+
`,Ni=a(C)`
|
|
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=>N.categoryClassWidth.valuePx(e.windowSize)};
|
|
1870
|
+
`,Jd=a.div`
|
|
1871
|
+
height: 100%;
|
|
1872
|
+
display: flex;
|
|
1873
|
+
flex-direction: row;
|
|
1874
|
+
align-items: center;
|
|
1875
|
+
min-width: ${e=>N.titleWidth.valuePx(e.windowSize)};
|
|
1876
|
+
color: ${e=>e.theme.colors.primary};
|
|
1877
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1878
|
+
${({isSticky:e})=>e?P`
|
|
1879
|
+
position: -webkit-sticky;
|
|
1880
|
+
position: sticky;
|
|
1881
|
+
top: ${c.sp0};
|
|
1882
|
+
left: ${c.sp0};
|
|
1883
|
+
z-index: 20;
|
|
1884
|
+
`:null}
|
|
1885
|
+
`;function Xd({backgroundColor:e,isSticky:i,height:n,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const s=M();return t.jsxs(Ud,{height:n,bgColor:e,"data-testid":m("no-results-found-title-row"),children:[t.jsx(Jd,{isSticky:i,windowSize:s,bgColor:e,children:t.jsx(Zd,{children:W.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(qd,{children:[o?t.jsx(Ni,{windowSize:s,children:t.jsx(wt,{})}):null,r?t.jsx(Ni,{windowSize:s,children:t.jsx(wt,{})}):null,l.map((d,h)=>t.jsx(Qd,{windowSize:s,children:t.jsx(wt,{children:" "})},`${h}RowItem`))]})]})}a.div`
|
|
1886
|
+
user-select: none;
|
|
1887
|
+
display: flex;
|
|
1888
|
+
flex: 1 1 auto;
|
|
1889
|
+
width: fit-content;
|
|
1890
|
+
min-width: 100%;
|
|
1891
|
+
height: ${e=>e.heightValue}px;
|
|
1892
|
+
flex-flow: row;
|
|
1893
|
+
justify-content: flex-start;
|
|
1894
|
+
align-items: center;
|
|
1895
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1896
|
+
`;a.div`
|
|
1897
|
+
display: flex;
|
|
1898
|
+
flex: 1 0 auto;
|
|
1899
|
+
flex-direction: row;
|
|
1900
|
+
justify-content: flex-end;
|
|
1901
|
+
`;a.div`
|
|
1902
|
+
height: 100%;
|
|
1903
|
+
display: flex;
|
|
1904
|
+
flex-direction: row;
|
|
1905
|
+
align-items: center;
|
|
1906
|
+
min-width: ${e=>N.titleWidth.valuePx(e.windowSize)};
|
|
1907
|
+
color: ${e=>e.theme.colors.primary};
|
|
1908
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1909
|
+
${({isSticky:e})=>e?P`
|
|
1910
|
+
position: -webkit-sticky;
|
|
1911
|
+
position: sticky;
|
|
1912
|
+
top: ${c.sp0};
|
|
1913
|
+
left: ${c.sp0};
|
|
1914
|
+
z-index: 20;
|
|
1915
|
+
`:null}
|
|
1916
|
+
`;function Qt({title:e,selectedMode:i,onCompareModeChanged:n,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=x=>W.getLocalizedStrings().compareMode[x];return t.jsx($o,{title:e,pickerValues:p,valueToLabel:f,selectedValue:i,onPickerSelectionChanged:x=>n(x),optionTextStyle:s,titleTextStyle:d,titleTextAlignment:h,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:o??"inherit",menuPosition:g})}const At={balanceHeight:c.sp4,balanceWidthInPx:170,balanceLeftMargin:c.sp4},eh=a.div`
|
|
1917
|
+
margin-left: ${c.sp4};
|
|
1918
|
+
`,th=a.div`
|
|
1919
|
+
display: flex;
|
|
1920
|
+
max-height: 54px;
|
|
1921
|
+
min-height: 54px;
|
|
1922
|
+
align-items: center;
|
|
1923
|
+
justify-content: center;
|
|
1924
|
+
max-width: ${At.balanceWidthInPx-2}px;
|
|
1925
|
+
min-width: ${At.balanceWidthInPx-2}px;
|
|
1926
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1927
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1928
|
+
border-radius: ${c.sp2};
|
|
1929
|
+
color: ${e=>e.theme.colors.primary};
|
|
1930
|
+
`,ih=a(C)`
|
|
1931
|
+
display: flex;
|
|
1932
|
+
user-select: none;
|
|
1933
|
+
flex-direction: row;
|
|
1934
|
+
justify-content: center;
|
|
1935
|
+
align-items: center;
|
|
1936
|
+
height: ${At.balanceHeight};
|
|
1937
|
+
`,nh=a.div`
|
|
1938
|
+
display: flex;
|
|
1939
|
+
flex-direction: row;
|
|
1940
|
+
justify-content: center;
|
|
1941
|
+
align-items: center;
|
|
1942
|
+
padding: 3px 6px;
|
|
1943
|
+
margin-right: ${c.sp2};
|
|
1944
|
+
position: relative;
|
|
1945
|
+
top: -12px;
|
|
1946
|
+
`,oh=a(Wo)`
|
|
1947
|
+
color: ${e=>e.tagType==="under_review"?ee.neutralGrey5Light:e.theme.mode==="light"?ee.primaryDark:ee.primaryLight};
|
|
1948
|
+
border-radius: ${c.sp2};
|
|
1949
|
+
padding: 3px 6px;
|
|
1950
|
+
margin-left: 12px;
|
|
1951
|
+
background: ${e=>e.tagType==="under_review"?ee.alertDark:e.theme.mode==="light"?ee.championLight:ee.championDark};
|
|
1952
|
+
`,rh=a(Bo)`
|
|
1953
|
+
color: ${e=>e.theme.colors.hero};
|
|
1954
|
+
margin-left: 5px;
|
|
1955
|
+
height: ${c.sp3};
|
|
1956
|
+
width: ${c.sp3};
|
|
1957
|
+
margin-top: ${c.sp1};
|
|
1958
|
+
`;function Dn({firstMonthOfFY:e,timeframeTick:i,timeframe:n,tagName:o,infoContent:r,tagType:l}){return t.jsxs(eh,{children:[t.jsxs(th,{children:[t.jsx(ih,{children:Ie(e,i,n)}),t.jsx(Ao,{style:{padding:c.sp3},title:r,placement:"top",children:t.jsx(rh,{})})]}),t.jsx(nh,{children:t.jsx(oh,{tagType:l,children:o})})]})}const Rn=(e,i)=>{const n=W.getLocalizedStrings().reports;switch(i){case"month":return e!=null?e==="under_review"?n.bookCloseUnderReviewInfoMonth:n.bookCloseIncompleteInfoMonth:void 0;case"quarter":return e!=null?e==="under_review"?n.bookCloseUnderReviewInfoQuarter:n.bookCloseIncompleteInfoQuarter:void 0;case"year":return e!=null?e==="under_review"?n.bookCloseUnderReviewInfoYear:n.bookCloseIncompleteInfoYear:void 0;default:return}},ah=a.div`
|
|
1959
|
+
user-select: none;
|
|
1960
|
+
display: flex;
|
|
1961
|
+
flex: 1 1 auto;
|
|
1962
|
+
width: fit-content;
|
|
1963
|
+
min-width: 100%;
|
|
1964
|
+
height: ${e=>e.height}px;
|
|
1965
|
+
flex-flow: row;
|
|
1966
|
+
justify-content: flex-start;
|
|
1967
|
+
align-items: center;
|
|
1968
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1969
|
+
`,lh=a.div`
|
|
1970
|
+
display: flex;
|
|
1971
|
+
flex: 1 0 auto;
|
|
1972
|
+
flex-direction: row;
|
|
1973
|
+
justify-content: flex-end;
|
|
1974
|
+
`,Gn=a.div`
|
|
1975
|
+
display: flex;
|
|
1976
|
+
max-height: ${c.sp8};
|
|
1977
|
+
min-height: ${c.sp8};
|
|
1978
|
+
min-width: ${N.balanceWidth};
|
|
1979
|
+
justify-content: center;
|
|
1980
|
+
align-items: center;
|
|
1981
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1982
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1983
|
+
border-radius: ${c.sp2};
|
|
1984
|
+
margin-left: ${N.balanceLeftMargin};
|
|
1985
|
+
color: ${e=>e.theme.colors.primary};
|
|
1986
|
+
cursor: ${e=>e.isClickable===!0?"pointer":"default"};
|
|
1987
|
+
`,En=a(C)`
|
|
1988
|
+
display: flex;
|
|
1989
|
+
user-select: none;
|
|
1990
|
+
flex-direction: row;
|
|
1991
|
+
justify-content: center;
|
|
1992
|
+
align-items: center;
|
|
1993
|
+
height: ${N.balanceHeight};
|
|
1994
|
+
max-width: ${N.balanceWidth};
|
|
1995
|
+
width: 138px;
|
|
1996
|
+
text-align: center;
|
|
1997
|
+
`,sh=a.div`
|
|
1998
|
+
display: flex;
|
|
1999
|
+
flex-direction: row;
|
|
2000
|
+
z-index: 1;
|
|
2001
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2002
|
+
${({isSticky:e})=>e?P`
|
|
2003
|
+
position: -webkit-sticky;
|
|
2004
|
+
position: sticky;
|
|
2005
|
+
top: ${c.sp0};
|
|
2006
|
+
left: ${c.sp0};
|
|
2007
|
+
z-index: 1;
|
|
2008
|
+
`:null}
|
|
2009
|
+
`,ch=a.div`
|
|
2010
|
+
max-height: ${e=>e.plHeight}px;
|
|
2011
|
+
min-height: ${e=>e.plHeight}px;
|
|
2012
|
+
display: flex;
|
|
2013
|
+
flex-direction: row;
|
|
2014
|
+
align-items: center;
|
|
2015
|
+
min-width: ${e=>N.titleWidth.valuePx(e.windowSize)};
|
|
2016
|
+
color: ${e=>e.theme.colors.primary};
|
|
2017
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2018
|
+
`,dh=a(C)`
|
|
2019
|
+
display: flex;
|
|
2020
|
+
gap: 6px;
|
|
2021
|
+
align-items: baseline;
|
|
2022
|
+
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
|
|
2023
|
+
`,Hn=a(C)`
|
|
2024
|
+
height: 100%;
|
|
2025
|
+
align-self: center;
|
|
2026
|
+
align-items: baseline;
|
|
2027
|
+
min-width: ${e=>N.categoryClassWidth.valuePx(e.windowSize)};
|
|
2028
|
+
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
|
|
2029
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2030
|
+
display: flex;
|
|
2031
|
+
gap: 6px;
|
|
2032
|
+
align-items: center;
|
|
2033
|
+
`,Jt=a.div`
|
|
2034
|
+
display: flex;
|
|
2035
|
+
cursor: pointer;
|
|
2036
|
+
`,hh=a.div`
|
|
2037
|
+
display: flex;
|
|
2038
|
+
justify-content: center;
|
|
2039
|
+
align-items: center;
|
|
2040
|
+
color: ${e=>e.theme.colors.champion};
|
|
2041
|
+
`,uh=a.div``,ph=a(C)`
|
|
2042
|
+
display: flex;
|
|
2043
|
+
justify-content: center;
|
|
2044
|
+
align-items: center;
|
|
2045
|
+
max-height: ${c.sp8};
|
|
2046
|
+
min-height: ${c.sp8};
|
|
2047
|
+
background-color: ${e=>e.theme.colors.background};
|
|
2048
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2049
|
+
border-radius: ${c.sp2};
|
|
2050
|
+
margin-left: ${N.balanceLeftMargin};
|
|
2051
|
+
color: ${e=>e.theme.colors.primary};
|
|
2052
|
+
width: ${N.balanceWidth};
|
|
2053
|
+
min-width: ${N.balanceWidth};
|
|
2054
|
+
`,Kn=a.div`
|
|
2055
|
+
max-height: ${c.sp8};
|
|
2056
|
+
min-height: ${c.sp8};
|
|
2057
|
+
`,lt=a.div`
|
|
2058
|
+
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
|
|
2059
|
+
`,st=a(Vt)`
|
|
2060
|
+
width: 12px;
|
|
2061
|
+
height: 12px;
|
|
2062
|
+
margin-left: ${c.sp2};
|
|
2063
|
+
margin-top: ${c.sp1};
|
|
2064
|
+
`,ct=a(Tt)`
|
|
2065
|
+
width: 12px;
|
|
2066
|
+
height: 12px;
|
|
2067
|
+
margin-left: ${c.sp2};
|
|
2068
|
+
margin-top: ${c.sp1};
|
|
2069
|
+
`,Xt=a(Ki)`
|
|
2070
|
+
width: 12px;
|
|
2071
|
+
height: 12px;
|
|
2072
|
+
cursor: pointer;
|
|
2073
|
+
color: ${e=>e.theme.colors.hero};
|
|
2074
|
+
`,Yn=({sortOrder:e,sortKey:i,onSortOrderChanged:n})=>{const o=()=>{n(dt("totals",e,i),"totals")},r=i==="totals"?e:"ascending";return t.jsx(Kn,{"data-testid":m("period-total-tick"),children:t.jsx(Gn,{"data-testid":m("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(En,{children:[W.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(lt,{selectedForSort:i==="totals",children:r==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]})})})},gh=({sortKey:e="totals",sortOrder:i="ascending",onSortOrderChanged:n,onSortCancel:o})=>{const r=()=>{n(dt("vendor",i,e),"vendor")},l=e==="vendor"?i:"ascending";return t.jsxs(dh,{selectedForSort:e==="vendor",children:[t.jsxs(Jt,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(lt,{selectedForSort:e==="vendor",children:l==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]}),e==="vendor"?t.jsx(Xt,{onClick:o}):null]})},fh=({sortKey:e="totals",sortOrder:i="ascending",onSortOrderChanged:n,onSortCancel:o})=>{const r=()=>{n(dt("account",i,e),"account")},l=e==="account"?i:"ascending",s=M();return t.jsxs(Hn,{selectedForSort:e==="account",windowSize:s,children:[t.jsxs(Jt,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(lt,{selectedForSort:e==="account",children:l==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]}),e==="account"?t.jsx(Xt,{onClick:o}):null]})},xh=({sortKey:e="totals",sortOrder:i="ascending",onSortOrderChanged:n,onSortCancel:o})=>{const r=()=>{n(dt("class",i,e),"class")},l=e==="class"?i:"ascending",s=M();return t.jsxs(Hn,{selectedForSort:e==="class",windowSize:s,children:[t.jsxs(Jt,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(lt,{selectedForSort:e==="class",children:l==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]}),e==="class"?t.jsx(Xt,{onClick:o}):null]})},Un=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:o,bookCloseDate:r})=>{const l=W.getLocalizedStrings().reports,s=r!=null&&o!=null&&(i.balanceType==="default"||i.balanceType==="default_with_percent")?A.getTimeframeTickTag(n,e,i,r,o):void 0,d=s!=null?s==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=Rn(s,n);return t.jsx(Kn,{children:r!=null&&o!=null&&s!=null&&d!=null&&h!=null?t.jsx(Dn,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,tagName:d,infoContent:h,tagType:s}):t.jsx(Gn,{isClickable:!1,children:t.jsx(En,{children:Ie(e,i,n)})})})},mh=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,sortKey:o="totals",sortOrder:r="ascending",dataAvailable:l,bookCloseDate:s,onSortOrderChanged:d})=>i.balanceType==="period_total"?t.jsx(Yn,{sortKey:o,sortOrder:r,onSortOrderChanged:d}):t.jsx(Un,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:l,bookCloseDate:s}),wh=({firstMonthOfFY:e,timeframeTicks:i,timeframe:n,compareMode:o,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:s,bookCloseDate:d,onCompareModeChanged:h,onSortOrderChanged:u})=>{const g=ce(),p=o==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${i[0].currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return t.jsx(hh,{children:i.map((f,x)=>t.jsxs(I.Fragment,{children:[f.balanceType==="this_period_vs_last_period"||f.balanceType==="this_period_vs_last_period_percent"?t.jsx(ph,{children:t.jsx(Qt,{title:p,titleTextStyle:Ft.standardRegular,titleTextAlignment:"flex-end",titleColor:g.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:b=>{b!=="off"&&(b==="compare_mode_amount"||b==="compare_mode_percent"?h?.(b):console.warn("Invalid compare mode option"))}})}):null,f.balanceType==="period_total"?t.jsx(Yn,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,f.balanceType==="default"?t.jsx(uh,{children:t.jsx(Un,{firstMonthOfFY:e,timeframeTick:f,timeframe:n,dataAvailable:s,bookCloseDate:d},x)}):null]},x))})};function yh({backgroundColor:e,isSticky:i,height:n,isCompareModeOn:o,isAccountColumnShown:r,isClassColumnShown:l,sortKey:s,sortOrder:d,firstMonthOfFY:h,timeframe:u,timeframeTicks:g,compareMode:p,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:y}){const $=M(),S=(L,O)=>{y?.(L,O)},B=()=>{y?.("descending","totals")};return t.jsxs(ah,{height:n,bgColor:e,children:[t.jsx(sh,{bgColor:e,windowSize:$,isSticky:i,children:t.jsx(ch,{plHeight:n,windowSize:$,bgColor:e,children:t.jsx(gh,{sortKey:s,sortOrder:d,onSortOrderChanged:S,onSortCancel:B})})}),r?t.jsx(fh,{sortKey:s,sortOrder:d,onSortOrderChanged:S,onSortCancel:B}):null,l?t.jsx(xh,{sortKey:s,sortOrder:d,onSortOrderChanged:S,onSortCancel:B}):null,t.jsx(lh,{children:o===!0?t.jsx(wh,{firstMonthOfFY:h,timeframe:u,sortKey:s,sortOrder:d,timeframeTicks:g,compareMode:p,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:S}):g.map((L,O)=>t.jsx(mh,{firstMonthOfFY:h,timeframeTick:L,timeframe:u,sortKey:s,sortOrder:d,dataAvailable:f,bookCloseDate:x,onSortOrderChanged:S},O))})]})}const dt=(e,i,n)=>e===n?i==="ascending"?"descending":"ascending":"descending",bh=a.div`
|
|
2075
|
+
display: flex;
|
|
2076
|
+
flex: 1 1 auto;
|
|
2077
|
+
max-height: 1px;
|
|
2078
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
2079
|
+
`,kh=a.div`
|
|
2080
|
+
display: flex;
|
|
2081
|
+
flex: 1 1 auto;
|
|
2082
|
+
max-height: 1px;
|
|
2083
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
2084
|
+
`;function Bt({kind:e,isScrolling:i}){switch(e){case"vendor_row_separator":return t.jsx(bh,{isScrolling:i});case"end_row_separator":return t.jsx(kh,{isScrolling:i})}}const jh=a.div`
|
|
2085
|
+
display: flex;
|
|
2086
|
+
flex: 1 1 auto;
|
|
2087
|
+
width: fit-content;
|
|
2088
|
+
min-width: 100%;
|
|
2089
|
+
flex-direction: column;
|
|
2090
|
+
height: ${e=>e.height}px;
|
|
2091
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2092
|
+
`,Sh=a.div`
|
|
2093
|
+
user-select: none;
|
|
2094
|
+
display: flex;
|
|
2095
|
+
flex: 1 1 auto;
|
|
2096
|
+
flex-flow: row;
|
|
2097
|
+
justify-content: flex-start;
|
|
2098
|
+
align-items: center;
|
|
2099
|
+
cursor: default;
|
|
2100
|
+
`,Ch=a.div`
|
|
2101
|
+
display: flex;
|
|
2102
|
+
flex: 1 0 auto;
|
|
2103
|
+
flex-direction: row;
|
|
2104
|
+
justify-content: flex-end;
|
|
2105
|
+
`,$h=a.div`
|
|
2106
|
+
display: flex;
|
|
2107
|
+
flex-direction: row;
|
|
2108
|
+
justify-content: flex-start;
|
|
2109
|
+
`,qn=a(ne)`
|
|
2110
|
+
user-select: none;
|
|
2111
|
+
min-width: ${N.balanceWidth};
|
|
2112
|
+
max-width: ${N.balanceWidth};
|
|
2113
|
+
text-align: right;
|
|
2114
|
+
margin-left: ${N.balanceLeftMargin};
|
|
2115
|
+
color: ${e=>e.theme.colors.primary};
|
|
2116
|
+
border: 1px solid transparent;
|
|
2117
|
+
`,vh=a(qn)`
|
|
2118
|
+
color: ${e=>e.theme.colors.hero};
|
|
2119
|
+
&:hover {
|
|
2120
|
+
color: inherit;
|
|
2121
|
+
}
|
|
2122
|
+
`,_h=a.div`
|
|
2123
|
+
display: flex;
|
|
2124
|
+
flex-direction: row;
|
|
2125
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2126
|
+
${({isSticky:e})=>e?P`
|
|
2127
|
+
position: -webkit-sticky;
|
|
2128
|
+
position: sticky;
|
|
2129
|
+
top: ${c.sp0};
|
|
2130
|
+
left: ${c.sp0};
|
|
2131
|
+
`:null}
|
|
2132
|
+
`,Lh=a.div`
|
|
2133
|
+
display: flex;
|
|
2134
|
+
flex-direction: row;
|
|
2135
|
+
flex-shrink: 2;
|
|
2136
|
+
flex-grow: 1;
|
|
2137
|
+
align-items: center;
|
|
2138
|
+
width: ${e=>N.titleWidth.valuePx(e.windowSize)};
|
|
2139
|
+
max-width: ${e=>N.titleWidth.valuePx(e.windowSize)};
|
|
2140
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2141
|
+
`,Ii=a.div`
|
|
2142
|
+
width: ${e=>N.categoryClassWidth.valuePx(e.windowSize)};
|
|
2143
|
+
max-width: ${e=>N.categoryClassWidth.valuePx(e.windowSize)};
|
|
2144
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2145
|
+
`,Ah=a(ne)`
|
|
2146
|
+
user-select: none;
|
|
2147
|
+
clear: both;
|
|
2148
|
+
display: inline-block;
|
|
2149
|
+
overflow: hidden;
|
|
2150
|
+
white-space: nowrap;
|
|
2151
|
+
text-overflow: ellipsis;
|
|
2152
|
+
text-align: left;
|
|
2153
|
+
color: ${e=>e.theme.colors.primary};
|
|
2154
|
+
`,Bh=({type:e,balance:i,collapsed:n})=>{const o=n===!0?vh:qn;return t.jsx($h,{children:ae(e)===!0?t.jsx(o,{children:Z(i)}):null})};function Wh({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,title:l,totalBalances:s,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:g}){const p=M();return t.jsxs(jh,{"data-testid":m("total-row-root-container",o),height:r,bgColor:i,windowSize:p,children:[t.jsxs(Sh,{"data-testid":m("total-row-container",o),onClick:()=>u?.(o),children:[t.jsxs(_h,{bgColor:i,windowSize:p,isSticky:n,children:[t.jsx(Lh,{bgColor:i,windowSize:p,children:t.jsx(Ah,{children:l})}),d?t.jsx(Ii,{windowSize:p}):null,h?t.jsx(Ii,{windowSize:p}):null]}),t.jsx(Ch,{children:s.map((f,x)=>t.jsx(Bh,{type:e,balance:f,collapsed:!1},x))})]}),t.jsx(Bt,{isScrolling:g,kind:"vendor_row_separator"})]})}const Oh=a.div`
|
|
2155
|
+
display: flex;
|
|
2156
|
+
flex: 1 1 auto;
|
|
2157
|
+
width: fit-content;
|
|
2158
|
+
min-width: 100%;
|
|
2159
|
+
flex-direction: column;
|
|
2160
|
+
height: ${e=>e.height}px;
|
|
2161
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2162
|
+
`,Mh=a.div`
|
|
2163
|
+
user-select: none;
|
|
2164
|
+
display: flex;
|
|
2165
|
+
flex: 1 1 auto;
|
|
2166
|
+
flex-flow: row;
|
|
2167
|
+
justify-content: flex-start;
|
|
2168
|
+
align-items: center;
|
|
2169
|
+
&:hover {
|
|
2170
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2171
|
+
}
|
|
2172
|
+
`,Nh=a.div`
|
|
2173
|
+
display: flex;
|
|
2174
|
+
flex: 1 0 auto;
|
|
2175
|
+
flex-direction: row;
|
|
2176
|
+
justify-content: flex-end;
|
|
2177
|
+
`,Ih=a.div`
|
|
2178
|
+
display: flex;
|
|
2179
|
+
flex-direction: row;
|
|
2180
|
+
justify-content: flex-start;
|
|
2181
|
+
`,Ph=a(C)`
|
|
2182
|
+
user-select: none;
|
|
2183
|
+
min-width: ${N.balanceWidth};
|
|
2184
|
+
max-width: ${N.balanceWidth};
|
|
2185
|
+
text-align: right;
|
|
2186
|
+
margin-left: ${N.balanceLeftMargin};
|
|
2187
|
+
border: 1px solid transparent;
|
|
2188
|
+
color: ${e=>e.theme.colors.hero};
|
|
2189
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2190
|
+
&:hover {
|
|
2191
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2192
|
+
}
|
|
2193
|
+
`,zh=a.div`
|
|
2194
|
+
display: flex;
|
|
2195
|
+
flex-direction: row;
|
|
2196
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2197
|
+
${({isSticky:e})=>e?P`
|
|
2198
|
+
position: -webkit-sticky;
|
|
2199
|
+
position: sticky;
|
|
2200
|
+
top: ${c.sp0};
|
|
2201
|
+
left: ${c.sp0};
|
|
2202
|
+
`:null}
|
|
2203
|
+
`,Fh=a.div`
|
|
2204
|
+
display: flex;
|
|
2205
|
+
flex-direction: row;
|
|
2206
|
+
flex-shrink: 2;
|
|
2207
|
+
flex-grow: 1;
|
|
2208
|
+
align-items: center;
|
|
2209
|
+
gap: ${c.sp2};
|
|
2210
|
+
width: ${e=>N.titleWidth.valuePx(e.windowSize)};
|
|
2211
|
+
max-width: ${e=>N.titleWidth.valuePx(e.windowSize)};
|
|
2212
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2213
|
+
`,_e=a(C)`
|
|
2214
|
+
user-select: none;
|
|
2215
|
+
clear: both;
|
|
2216
|
+
display: inline-block;
|
|
2217
|
+
overflow: hidden;
|
|
2218
|
+
white-space: nowrap;
|
|
2219
|
+
text-overflow: ellipsis;
|
|
2220
|
+
text-align: left;
|
|
2221
|
+
color: ${e=>e.theme.colors.hero};
|
|
2222
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2223
|
+
&:hover {
|
|
2224
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2225
|
+
}
|
|
2226
|
+
`,Th=a.div`
|
|
2227
|
+
display: flex;
|
|
2228
|
+
flex-direction: row;
|
|
2229
|
+
flex-shrink: 2;
|
|
2230
|
+
flex-grow: 1;
|
|
2231
|
+
align-items: center;
|
|
2232
|
+
width: ${e=>N.categoryClassWidth.valuePx(e.windowSize)};
|
|
2233
|
+
max-width: ${e=>N.categoryClassWidth.valuePx(e.windowSize)};
|
|
2234
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2235
|
+
`,Vh=a.div`
|
|
2236
|
+
display: flex;
|
|
2237
|
+
flex-direction: row;
|
|
2238
|
+
flex-shrink: 2;
|
|
2239
|
+
flex-grow: 1;
|
|
2240
|
+
align-items: center;
|
|
2241
|
+
width: ${e=>N.categoryClassWidth.valuePx(e.windowSize)};
|
|
2242
|
+
max-width: ${e=>N.categoryClassWidth.valuePx(e.windowSize)};
|
|
2243
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2244
|
+
`,Dh=a.div`
|
|
2245
|
+
width: ${c.sp4};
|
|
2246
|
+
height: ${c.sp4};
|
|
2247
|
+
border-radius: 50%;
|
|
2248
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
2249
|
+
display: flex;
|
|
2250
|
+
justify-content: center;
|
|
2251
|
+
align-items: center;
|
|
2252
|
+
color: ${e=>e.theme.colors.hero};
|
|
2253
|
+
`,Rh=a(bo)`
|
|
2254
|
+
width: ${c.sp3};
|
|
2255
|
+
height: ${c.sp3};
|
|
2256
|
+
`,Gh=a.div`
|
|
2257
|
+
display: flex;
|
|
2258
|
+
column-gap: ${c.sp2};
|
|
2259
|
+
width: 100%;
|
|
2260
|
+
&:hover {
|
|
2261
|
+
.hyphen-text {
|
|
2262
|
+
display: none;
|
|
2263
|
+
}
|
|
2264
|
+
.not-specified-text {
|
|
2265
|
+
display: block;
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
`,Eh=a(C)`
|
|
2269
|
+
color: ${e=>e.theme.colors.hero};
|
|
2270
|
+
`,Hh=a(C)`
|
|
2271
|
+
color: ${e=>e.theme.colors.hero};
|
|
2272
|
+
display: none;
|
|
2273
|
+
`,Kh=({balance:e,vendor:i,onVendorNameAndBalanceClick:n})=>{const o=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",r=e?.type==="period_total",l=e?.type==="default_with_null_balance",s=o!==!0&&r===!1&&l===!1&&!A.isOpexByVendorIDNotSpecifiedVendor(i.id);return t.jsx(Ih,{children:t.jsx(Ph,{isClickable:s,onClick:()=>{s===!0&&n(i,e??void 0)},children:Z(e)})})};function Yh({type:e,backgroundColor:i,isSticky:n,height:o,isScrolling:r,isLastNode:l,vendor:s,balances:d,accountBase:h,classBase:u,isAccountColumnShown:g,isClassColumnShown:p,onVendorNameAndBalanceClick:f}){const x=M(),b=Di(),y=b.loggedInUserRole!=null&&!A.hasInvestorBankerLevelAccess(b.loggedInUserRole),$=A.isOpexByVendorIDNotSpecifiedVendor(s.id),S=y===!0&&s!=null&&!$,B=S?"pointer":"default",L=s.name;return t.jsxs(Oh,{"data-testid":m("vendor-row-root-container",s.id),height:o,bgColor:i,windowSize:x,children:[t.jsxs(Mh,{"data-testid":m("vendor-row-container",s.id),style:{cursor:B},isClickable:S,children:[t.jsx(zh,{"data-testid":m("vendor-row-sticky-container",s.id),isSticky:n,windowSize:x,bgColor:i,children:t.jsxs(Fh,{"data-testid":m("vendor-row-name-container",s.id),windowSize:x,bgColor:i,children:[t.jsxs(Je,{controller:!$,children:[s.logo!=null?t.jsx(It,{photoUrl:s.logo.toString(),styles:{width:N.nameLogoWidth.valuePx(x),height:N.nameLogoHeight.valuePx(x)}}):t.jsx(Pt,{name:L,size:c.sp4}),t.jsx(_e,{"data-testid":m("vendor-row-name",s.id),style:{cursor:B},isClickable:S,onClick:()=>{S===!0&&f(s)},children:L})]}),t.jsx(Je,{controller:$,children:t.jsxs(Gh,{children:[t.jsx(Dh,{children:t.jsx(Rh,{})}),t.jsx(Eh,{className:"hyphen-text",children:W.getLocalizedStrings().common.strings.hyphen}),t.jsx(Hh,{className:"not-specified-text",children:L})]})})]})}),g?t.jsx(Th,{windowSize:x,bgColor:i,children:h!=null?t.jsx(_e,{"data-testid":m("vendor-row-account-name",s.id),title:h.accountName,isClickable:!1,children:h.accountName}):t.jsx(_e,{isClickable:!1,"data-testid":m("vendor-row-account-name",s.id),children:W.getLocalizedStrings().common.strings.hyphen})}):null,p?t.jsx(Vh,{windowSize:x,bgColor:i,children:u!=null?t.jsx(_e,{"data-testid":m("vendor-row-class-name",s.id),title:u.className,isClickable:!1,children:u.className}):t.jsx(_e,{"data-testid":m("vendor-row-class-name",s.id),isClickable:!1,children:W.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(Nh,{children:d.map((O,F)=>t.jsx(Kh,{type:e,balance:O,vendor:s,onVendorNameAndBalanceClick:f},F))})]}),t.jsx(Uh,{isScrolling:r,isLastNode:l})]})}function Uh({isScrolling:e,isLastNode:i}){return i?t.jsx(Bt,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Bt,{isScrolling:e,kind:"vendor_row_separator"})}const qh=(e,i,n,o,r,l)=>{if(e.element.kind!=="timeframe_headers")return null;const s=Pe(e.element.data,e.config.displayOrder),d=s.length>0?s[0].balanceTimeFrame:"month",h=s.map(u=>A.toTimeframeTick(u));return t.jsx(yh,{backgroundColor:r,isSticky:n,height:i,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})},Zh=(e,i,n,o,r,l,s)=>{const d=n.element.data,h=n.config.mode==="this_period_vs_period_before",u=h?n.element.numOfBalances+2:n.element.numOfBalances+1,g=$n(d,n.config.displayOrder,u,h);return t.jsx(Wh,{type:i,backgroundColor:s,isSticky:r,treeNodeId:e,height:o,isScrolling:l,totalBalances:g.balances,title:n.element.title,isAccountColumnShown:n.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:n.config.opexByVendorConfig?.isClassColumnShown??!0})},Qh=(e,i,n,o,r,l,s)=>{if(i.element.kind!="vendor_row"||i.element.data==null)return null;const d=i.element.data,h=i.config.mode==="this_period_vs_period_before",u=$n(d,i.config.displayOrder,i.element.numOfBalances,h);return t.jsx(Yh,{type:e,backgroundColor:o,isSticky:r,height:n,isScrolling:l,vendor:d.vendor,accountBase:d.account,classBase:d.classBase,isLastNode:s,balances:u.balances,isAccountColumnShown:i.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:i.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:(g,p)=>{i.config.opexByVendorConfig?.onVendorNameAndBalanceClicked(g,p)}})},Jh=(e,i,n,o)=>{if(e.element.kind!=="loading_in_progress")return null;const r=Pe(e.element.data,e.config.displayOrder).map(l=>A.toTimeframeTick(l));return t.jsx(Yd,{backgroundColor:n,isSticky:o,height:i,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})},Xh=(e,i,n,o)=>{if(e.element.kind!=="title_string_only")return null;const r=Pe(e.element.data,e.config.displayOrder).map(l=>A.toTimeframeTick(l));return t.jsx(Xd,{backgroundColor:n,isSticky:o,height:i,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})};function ei(e,i,n){return eu(i,n,e)}const eu=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.account.balancesInTimeframe,o.compactedAccountsSelector=r=>Pi(r.accounts,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>Pi(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r,o.compactedAccountGroupsSelector=r=>tu(r,o.acGroupBalanceSelector,n,i),o};function Pi(e,i,n){switch(n){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>iu((i(o)?.balances??[]).concat(i(o)?.additionalBalances??[]))||Zn((i(o)?.balances??[]).concat(i(o)?.additionalBalances??[])));case"filter_forecast_nil_balances":return e.filter(o=>zi(i(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>zi(i(o)?.balances??[]))}}function tu(e,i,n,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Zn(i(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>nu(i(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>ou(i(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(i(r)?.balances??[]).length>0)}}function Zn(e){let i=!1;if(e!=null){for(const n of e)if(n.balance.amount!==0){i=!0;break}}return i}function iu(e){let i=!1;if(e!=null){for(const n of e)if(n.totalBalance!=null&&n.totalBalance.amount!==0){i=!0;break}}return i}function nu(e){let i=!1;if(e!=null){for(const n of e)if(n.forecast!=null&&n.forecast.amount!==0){i=!0;break}}return i}function ou(e){let i=!1;if(e!=null){for(const n of e)if(n.forecast!=null&&n.forecast.amount!==0||n.balance!=null&&n.balance.amount!==0){i=!0;break}}return i}function zi(e){let i=!1;if(e!=null){for(const n of e)if(n.totalForecast!=null&&n.totalForecast.amount!==0||n.totalBalance!=null&&n.totalBalance.amount!==0){i=!0;break}}return i}function Qn(e,i,n=-1,o=!0){const r=n!==-1;let l=[],s=-1;if(e==null||e.balances.length===0)return r===!0&&(l=ru([],n)),{balances:l,thisPeriodIndex:s};let d=e.balances;return i==="ascending_date"?s=e.balances.length-1:(s=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:s}}function ru(e,i){return e.length>0?e:Vi(Array(i),null)}const au=a.div`
|
|
2274
|
+
display: flex;
|
|
2275
|
+
flex: 1 1 auto;
|
|
2276
|
+
width: fit-content;
|
|
2277
|
+
min-width: 100%;
|
|
2278
|
+
flex-direction: column;
|
|
2279
|
+
height: ${e=>e.height}px;
|
|
2280
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2281
|
+
`,lu=a.div`
|
|
2282
|
+
user-select: none;
|
|
2283
|
+
display: flex;
|
|
2284
|
+
flex: 1 1 auto;
|
|
2285
|
+
flex-flow: row;
|
|
2286
|
+
justify-content: flex-start;
|
|
2287
|
+
align-items: center;
|
|
2288
|
+
&:hover {
|
|
2289
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2290
|
+
}
|
|
2291
|
+
`,su=a.div`
|
|
2292
|
+
display: flex;
|
|
2293
|
+
flex: 1 0 auto;
|
|
2294
|
+
flex-direction: row;
|
|
2295
|
+
justify-content: flex-end;
|
|
2296
|
+
`,cu=a.div`
|
|
2297
|
+
display: flex;
|
|
2298
|
+
flex-direction: row;
|
|
2299
|
+
justify-content: flex-start;
|
|
2300
|
+
`,Jn=a(C)`
|
|
2301
|
+
user-select: none;
|
|
2302
|
+
min-width: ${k.balanceWidth};
|
|
2303
|
+
max-width: ${k.balanceWidth};
|
|
2304
|
+
text-align: right;
|
|
2305
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2306
|
+
color: ${e=>e.theme.colors.primary};
|
|
2307
|
+
`,du=a(Jn)`
|
|
2308
|
+
color: ${e=>e.theme.colors.hero};
|
|
2309
|
+
&:hover {
|
|
2310
|
+
color: inherit;
|
|
2311
|
+
}
|
|
2312
|
+
`,hu=a.div`
|
|
2313
|
+
display: flex;
|
|
2314
|
+
flex-direction: row;
|
|
2315
|
+
flex-shrink: 2;
|
|
2316
|
+
flex-grow: 1;
|
|
2317
|
+
align-items: center;
|
|
2318
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2319
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2320
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2321
|
+
${({isSticky:e})=>e?P`
|
|
2322
|
+
position: -webkit-sticky;
|
|
2323
|
+
position: sticky;
|
|
2324
|
+
top: ${c.sp0};
|
|
2325
|
+
left: ${c.sp0};
|
|
2326
|
+
`:null}
|
|
2327
|
+
`,Xn=a(C)`
|
|
2328
|
+
user-select: none;
|
|
2329
|
+
clear: both;
|
|
2330
|
+
display: inline-block;
|
|
2331
|
+
overflow: hidden;
|
|
2332
|
+
white-space: nowrap;
|
|
2333
|
+
text-overflow: ellipsis;
|
|
2334
|
+
text-align: left;
|
|
2335
|
+
margin-left: ${c.sp4};
|
|
2336
|
+
color: ${e=>e.theme.colors.primary};
|
|
2337
|
+
`,uu=a(Xn)`
|
|
2338
|
+
color: ${e=>e.theme.colors.hero};
|
|
2339
|
+
&:hover {
|
|
2340
|
+
color: inherit;
|
|
2341
|
+
}
|
|
2342
|
+
`,pu=({type:e,balance:i,collapsed:n,isActualVsForecastOn:o,compareMode:r})=>{const l=n===!0?du:Jn;return t.jsxs(cu,{children:[ae(e)===!0||o?t.jsx(l,{children:Z(i)}):t.jsx(l,{children:J(i)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(i)}),t.jsx(l,{children:r==="compare_mode_percent"?de(i):he(i)})]}):null]})};function gu({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,leftChevron:l,accountGroupName:s,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:g,isOpen:p,isLeaf:f,isLastNode:x,onClick:b}){const y=ce(),$=M(),S=!f,B=S?"pointer":"default",L=l==="collapsed",O=l==="hidden",F=O===!0?w[6]:w[4],T=L===!0?uu:Xn,Y=L===!0?Ri:Gi,H=L===!0?y.colors.hero:y.colors.primary;return t.jsxs(au,{height:r,bgColor:i,"data-testid":m("pandl-report-account-group-row-root-container",o),children:[t.jsxs(lu,{"data-testid":m("pandl-report-account-group-row-container",o),style:{cursor:B},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs(hu,{bgColor:i,isSticky:n,windowSize:$,children:[O===!1?t.jsx(Y,{color:H,style:{width:w[3],height:w[3]}}):null,t.jsx(T,{style:{marginLeft:F},children:s})]}):null,xe(e)===!0?t.jsx(su,{children:d.map((U,Q)=>t.jsx(pu,{type:e,accountGroupName:s,balance:U,isActualVsForecastOn:h,compareMode:u,collapsed:L},Q))}):null]}),t.jsx(fu,{isScrolling:g,type:e,isLeaf:f,isLastNode:x,isOpen:p})]})}function fu({isScrolling:e,type:i,isLastNode:n,isOpen:o}){let r="ac_group_row_separator";return n&&!o?r="section_row_separator":o&&(r=ge(i)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(me,{isScrolling:e,kind:r})}const xu=a.div`
|
|
2343
|
+
display: flex;
|
|
2344
|
+
flex: 1 1 auto;
|
|
2345
|
+
width: fit-content;
|
|
2346
|
+
min-width: 100%;
|
|
2347
|
+
flex-direction: column;
|
|
2348
|
+
height: ${e=>e.height}px;
|
|
2349
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2350
|
+
`,mu=a.div`
|
|
2351
|
+
user-select: none;
|
|
2352
|
+
display: flex;
|
|
2353
|
+
flex: 1 1 auto;
|
|
2354
|
+
flex-flow: row;
|
|
2355
|
+
justify-content: flex-start;
|
|
2356
|
+
align-items: center;
|
|
2357
|
+
&:hover {
|
|
2358
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2359
|
+
}
|
|
2360
|
+
`,wu=a.div`
|
|
2361
|
+
display: flex;
|
|
2362
|
+
flex: 1 0 auto;
|
|
2363
|
+
flex-direction: row;
|
|
2364
|
+
justify-content: flex-end;
|
|
2365
|
+
`,yu=a.div`
|
|
2366
|
+
display: flex;
|
|
2367
|
+
flex-direction: row;
|
|
2368
|
+
justify-content: flex-start;
|
|
2369
|
+
`,eo=a(C)`
|
|
2370
|
+
user-select: none;
|
|
2371
|
+
min-width: ${k.balanceWidth};
|
|
2372
|
+
max-width: ${k.balanceWidth};
|
|
2373
|
+
text-align: right;
|
|
2374
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2375
|
+
color: ${e=>e.theme.colors.primary};
|
|
2376
|
+
`,bu=a(eo)`
|
|
2377
|
+
color: ${e=>e.theme.colors.hero};
|
|
2378
|
+
&:hover {
|
|
2379
|
+
color: inherit;
|
|
2380
|
+
}
|
|
2381
|
+
`,ku=a.div`
|
|
2382
|
+
display: flex;
|
|
2383
|
+
flex-direction: row;
|
|
2384
|
+
flex-shrink: 2;
|
|
2385
|
+
flex-grow: 1;
|
|
2386
|
+
align-items: center;
|
|
2387
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2388
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2389
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2390
|
+
${({isSticky:e})=>e?P`
|
|
2391
|
+
position: -webkit-sticky;
|
|
2392
|
+
position: sticky;
|
|
2393
|
+
top: ${c.sp0};
|
|
2394
|
+
left: ${c.sp0};
|
|
2395
|
+
`:null}
|
|
2396
|
+
`,to=a(C)`
|
|
2397
|
+
user-select: none;
|
|
2398
|
+
clear: both;
|
|
2399
|
+
display: inline-block;
|
|
2400
|
+
overflow: hidden;
|
|
2401
|
+
white-space: nowrap;
|
|
2402
|
+
text-overflow: ellipsis;
|
|
2403
|
+
text-align: left;
|
|
2404
|
+
margin-left: ${c.sp2};
|
|
2405
|
+
color: ${e=>e.theme.colors.primary};
|
|
2406
|
+
`,ju=a(to)`
|
|
2407
|
+
color: ${e=>e.theme.colors.hero};
|
|
2408
|
+
&:hover {
|
|
2409
|
+
color: inherit;
|
|
2410
|
+
}
|
|
2411
|
+
`,Su=({type:e,balance:i,collapsed:n,isActualVsForecastOn:o,compareMode:r})=>{const l=n===!0?bu:eo;return t.jsxs(yu,{children:[ae(e)===!0||o?t.jsx(l,{children:Z(i)}):t.jsx(l,{children:J(i)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(i)}),t.jsx(l,{children:r==="compare_mode_percent"?de(i):he(i)})]}):null]})};function Cu({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,leftChevron:l,accountGroupName:s,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:g,isOpen:p,isLeaf:f,isLastNode:x,onClick:b}){const y=M(),$=ce(),S=!f,B=S?"pointer":"default",L=l==="collapsed",O=L===!0?ju:to,[F,T]=I.useState(!1),Y=s.length>0?s.substring(0,1).toUpperCase():"";return t.jsxs(xu,{"data-testid":m("pandl-account-group-row-root-container",o),height:r,bgColor:i,children:[t.jsxs(mu,{"data-testid":m("pandl-account-group-row-container",o),onMouseOver:()=>T(!0),onMouseLeave:()=>T(!1),style:{cursor:B},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs(ku,{bgColor:i,isSticky:n,windowSize:y,children:[t.jsx(be,{showCollapsedIcon:L,showIcon:F&&S,firstLetter:Y,color:_($.colors.primary)}),t.jsx(O,{children:s})]}):null,xe(e)===!0?t.jsx(wu,{children:d.map((H,U)=>t.jsx(Su,{type:e,accountGroupName:s,balance:H,isActualVsForecastOn:h,compareMode:u,collapsed:L},U))}):null]}),t.jsx($u,{isScrolling:g,type:e,isLeaf:f,isLastNode:x,isOpen:p})]})}function $u({isScrolling:e,type:i,isLastNode:n,isOpen:o}){let r="ac_group_row_separator";return n&&!o?r="section_row_separator":o&&(r=ge(i)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(me,{isScrolling:e,kind:r})}const vu=a.div`
|
|
2412
|
+
display: flex;
|
|
2413
|
+
flex: 1 1 auto;
|
|
2414
|
+
width: fit-content;
|
|
2415
|
+
min-width: 100%;
|
|
2416
|
+
flex-direction: column;
|
|
2417
|
+
height: ${e=>e.height}px;
|
|
2418
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2419
|
+
`,_u=a.div`
|
|
2420
|
+
user-select: none;
|
|
2421
|
+
display: flex;
|
|
2422
|
+
flex: 1 1 auto;
|
|
2423
|
+
flex-flow: row;
|
|
2424
|
+
justify-content: flex-start;
|
|
2425
|
+
align-items: center;
|
|
2426
|
+
`,Lu=a.div`
|
|
2427
|
+
display: flex;
|
|
2428
|
+
flex: 1 0 auto;
|
|
2429
|
+
flex-direction: row;
|
|
2430
|
+
justify-content: flex-end;
|
|
2431
|
+
`,Au=a.div`
|
|
2432
|
+
display: flex;
|
|
2433
|
+
flex-direction: row;
|
|
2434
|
+
justify-content: flex-start;
|
|
2435
|
+
`,Ye=a(C)`
|
|
2436
|
+
user-select: none;
|
|
2437
|
+
min-width: ${k.balanceWidth};
|
|
2438
|
+
max-width: ${k.balanceWidth};
|
|
2439
|
+
text-align: right;
|
|
2440
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2441
|
+
color: ${e=>e.theme.colors.hero};
|
|
2442
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2443
|
+
&:hover {
|
|
2444
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2445
|
+
}
|
|
2446
|
+
`,Bu=a.div`
|
|
2447
|
+
display: flex;
|
|
2448
|
+
flex-direction: row;
|
|
2449
|
+
flex-shrink: 2;
|
|
2450
|
+
flex-grow: 1;
|
|
2451
|
+
align-items: center;
|
|
2452
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2453
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2454
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2455
|
+
${({isSticky:e})=>e?P`
|
|
2456
|
+
position: -webkit-sticky;
|
|
2457
|
+
position: sticky;
|
|
2458
|
+
top: ${c.sp0};
|
|
2459
|
+
left: ${c.sp0};
|
|
2460
|
+
`:null}
|
|
2461
|
+
`,Wu=a(C)`
|
|
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: ${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
|
+
`,Ou=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o,account:r,onAccountBalanceClick:l})=>{const s=i?.type==="this_period_vs_last_period"||i?.type==="this_period_vs_last_period_percent",d=r!=null&&i!=null&&l!=null&&s!==!0;return t.jsxs(Au,{"data-testid":m("account-row-balance-element",e),children:[ae(e)===!0||n?t.jsx(Ye,{"data-testid":m("account-row-balance-actual",e),isClickable:d,onClick:()=>{d===!0&&r!=null&&i!=null&&l?.(r,i)},children:Z(i)}):t.jsx(Ye,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:J(i)}),n?t.jsxs(t.Fragment,{children:[t.jsx(Ye,{isClickable:!1,"data-testid":m("account-row-balance-forecast",e),children:J(i)}),t.jsx(Ye,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?de(i):he(i)})]}):null]})};function Mu({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,accountBalances:l,isActualVsForecastOn:s,compareMode:d,isScrolling:h,isLeaf:u,isLastNode:g,account:p,onAccountBalanceClick:f}){const x=M(),{common:{strings:{hyphen:b}}}=W.getLocalizedStrings(),y=p?.accountDescription?p.accountDescription:b,$=p?.accountName?p.accountName:y;return t.jsxs(vu,{height:r,bgColor:i,"data-testid":m("account-row-root-container",o),children:[t.jsxs(_u,{"data-testid":m("account-row-container",o),children:[ge(e)===!0?t.jsx(Bu,{isSticky:n,windowSize:x,bgColor:i,children:t.jsx(Wu,{isClickable:!1,title:$,children:$})}):null,xe(e)===!0?t.jsx(Lu,{children:l.map((S,B)=>t.jsx(Ou,{type:e,isActualVsForecastOn:s,compareMode:d,balance:S,account:p,onAccountBalanceClick:f==null?void 0:(L,O)=>{f(o,L,O)}},B))}):null]}),t.jsx(Nu,{isScrolling:h,type:e,isLeaf:u,isLastNode:g})]})}function Nu({isScrolling:e,isLastNode:i,type:n}){const o=i?"ac_group_row_separator":ge(n)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(me,{isScrolling:e,kind:o})}const Iu=a.div`
|
|
2476
|
+
display: flex;
|
|
2477
|
+
flex: 1 1 auto;
|
|
2478
|
+
width: fit-content;
|
|
2479
|
+
min-width: 100%;
|
|
2480
|
+
flex-direction: column;
|
|
2481
|
+
height: ${e=>e.height}px;
|
|
2482
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2483
|
+
`,Pu=a.div`
|
|
2484
|
+
user-select: none;
|
|
2485
|
+
display: flex;
|
|
2486
|
+
flex: 1 1 auto;
|
|
2487
|
+
flex-flow: row;
|
|
2488
|
+
justify-content: flex-start;
|
|
2489
|
+
align-items: center;
|
|
2490
|
+
`,zu=a.div`
|
|
2491
|
+
display: flex;
|
|
2492
|
+
flex: 1 0 auto;
|
|
2493
|
+
flex-direction: row;
|
|
2494
|
+
justify-content: flex-end;
|
|
2495
|
+
`,Fu=a.div`
|
|
2496
|
+
display: flex;
|
|
2497
|
+
flex-direction: row;
|
|
2498
|
+
justify-content: flex-start;
|
|
2499
|
+
`,Ue=a(C)`
|
|
2500
|
+
user-select: none;
|
|
2501
|
+
max-width: ${k.balanceWidth};
|
|
2502
|
+
min-width: ${k.balanceWidth};
|
|
2503
|
+
text-align: right;
|
|
2504
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2505
|
+
`,Tu=a.div`
|
|
2506
|
+
display: flex;
|
|
2507
|
+
flex-direction: row;
|
|
2508
|
+
flex-shrink: 2;
|
|
2509
|
+
flex-grow: 1;
|
|
2510
|
+
align-items: center;
|
|
2511
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2512
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2513
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2514
|
+
${({isSticky:e})=>e?P`
|
|
2515
|
+
position: -webkit-sticky;
|
|
2516
|
+
position: sticky;
|
|
2517
|
+
top: ${c.sp0};
|
|
2518
|
+
left: ${c.sp0};
|
|
2519
|
+
`:null}
|
|
2520
|
+
`,Vu=a.div`
|
|
2521
|
+
display: flex;
|
|
2522
|
+
flex-grow: 8;
|
|
2523
|
+
`,Du=a(C)`
|
|
2524
|
+
user-select: none;
|
|
2525
|
+
user-select: none;
|
|
2526
|
+
clear: both;
|
|
2527
|
+
display: inline-block;
|
|
2528
|
+
overflow: hidden;
|
|
2529
|
+
white-space: nowrap;
|
|
2530
|
+
text-overflow: ellipsis;
|
|
2531
|
+
text-align: left;
|
|
2532
|
+
margin-left: ${c.sp2};
|
|
2533
|
+
`,Ru=a(ye)`
|
|
2534
|
+
display: flex;
|
|
2535
|
+
color: ${e=>e.theme.colors.primary};
|
|
2536
|
+
align-items: center;
|
|
2537
|
+
flex-direction: row;
|
|
2538
|
+
justify-content: flex-end;
|
|
2539
|
+
padding: 1px 6px;
|
|
2540
|
+
height: 20px;
|
|
2541
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
2542
|
+
border-radius: ${c.sp1};
|
|
2543
|
+
margin: 0 ${c.sp5} 0 ${c.sp3};
|
|
2544
|
+
`,Gu=({metadata:e,depth:i})=>i===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(ko,{}):t.jsx(jo,{}),Eu=({type:e,balance:i,color:n,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(Fu,{children:[ae(e)===!0||o?t.jsx(Ue,{style:{color:n},children:Z(i)}):t.jsx(Ue,{style:{color:n},children:J(i)}),o?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{style:{color:n},children:J(i)}),t.jsx(Ue,{style:{color:n},children:r==="compare_mode_percent"?de(i):he(i)})]}):null]});function Hu({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,className:l,classCode:s,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:g,isScrolling:p,isOpen:f,isLeaf:x,metadata:b,showClassAccountNumber:y,onClick:$,depth:S}){const B=M(),L=ce(),O=!x,F=O?"pointer":"default",T=L.colors.primary,Y=l.length>0?l.substr(0,1).toUpperCase():"",[H,U]=I.useState(!1),Q=b.classAncestorMetadata??[];return t.jsxs(Iu,{"data-testid":m("class-row-root-container",o),height:r,bgColor:i,children:[t.jsxs(Pu,{"data-testid":m("class-row-container",o),style:{cursor:F},onClick:()=>$?.(o),onMouseOver:()=>U(!0),onMouseLeave:()=>U(!1),children:[ge(e)===!0?t.jsxs(Tu,{isSticky:n,windowSize:B,bgColor:i,children:[t.jsx(Rr,{name:l,ancestorMetadata:Q,depth:S}),t.jsx(Gu,{metadata:Q[S],depth:S}),t.jsx(be,{color:_(T),showCollapsedIcon:!f,showIcon:H&&O,firstLetter:Y,showTreeLine:g}),t.jsx(Vu,{children:t.jsx(Du,{style:{color:T},children:l})}),H===!0&&y===!0&&s!==void 0&&t.jsx(Ru,{children:s})]}):null,xe(e)===!0?t.jsx(zu,{children:d.map((ue,X)=>t.jsx(Eu,{type:e,sectionName:l,balance:ue,isActualVsForecastOn:h,compareMode:u,color:T},X))}):null]}),t.jsx(Ku,{isScrolling:p,isLeaf:x,isOpen:f})]})}function Ku({isScrolling:e,isLeaf:i,isOpen:n}){return i||!n?t.jsx(me,{isScrolling:e,kind:"section_row_separator"}):null}a.div`
|
|
2545
|
+
display: flex;
|
|
2546
|
+
flex: 1 1 auto;
|
|
2547
|
+
width: fit-content;
|
|
2548
|
+
min-width: 100%;
|
|
2549
|
+
flex-direction: column;
|
|
2550
|
+
height: ${e=>e.height}px;
|
|
2551
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2552
|
+
`;a.div`
|
|
2553
|
+
user-select: none;
|
|
2554
|
+
display: flex;
|
|
2555
|
+
flex: 1 1 auto;
|
|
2556
|
+
flex-flow: row;
|
|
2557
|
+
justify-content: flex-start;
|
|
2558
|
+
align-items: center;
|
|
2559
|
+
`;a.div`
|
|
2560
|
+
display: flex;
|
|
2561
|
+
flex: 1 0 auto;
|
|
2562
|
+
flex-direction: row;
|
|
2563
|
+
justify-content: flex-end;
|
|
2564
|
+
`;a.div`
|
|
2565
|
+
display: flex;
|
|
2566
|
+
flex-direction: row;
|
|
2567
|
+
justify-content: flex-start;
|
|
2568
|
+
`;a(C)`
|
|
2569
|
+
user-select: none;
|
|
2570
|
+
max-width: ${k.balanceWidth};
|
|
2571
|
+
min-width: ${k.balanceWidth};
|
|
2572
|
+
text-align: right;
|
|
2573
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2574
|
+
`;a.div`
|
|
2575
|
+
display: flex;
|
|
2576
|
+
flex-direction: row;
|
|
2577
|
+
flex-shrink: 2;
|
|
2578
|
+
flex-grow: 1;
|
|
2579
|
+
align-items: center;
|
|
2580
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2581
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2582
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2583
|
+
${({isSticky:e})=>e?P`
|
|
2584
|
+
position: -webkit-sticky;
|
|
2585
|
+
position: sticky;
|
|
2586
|
+
top: ${c.sp0};
|
|
2587
|
+
left: ${c.sp0};
|
|
2588
|
+
`:null}
|
|
2589
|
+
`;a.div`
|
|
2590
|
+
display: flex;
|
|
2591
|
+
`;a(C)`
|
|
2592
|
+
user-select: none;
|
|
2593
|
+
user-select: none;
|
|
2594
|
+
clear: both;
|
|
2595
|
+
display: inline-block;
|
|
2596
|
+
overflow: hidden;
|
|
2597
|
+
white-space: nowrap;
|
|
2598
|
+
text-overflow: ellipsis;
|
|
2599
|
+
text-align: left;
|
|
2600
|
+
margin-left: ${c.sp2};
|
|
2601
|
+
`;const Yu=a.div`
|
|
2602
|
+
display: flex;
|
|
2603
|
+
flex: 1 1 auto;
|
|
2604
|
+
width: fit-content;
|
|
2605
|
+
min-width: 100%;
|
|
2606
|
+
flex-direction: column;
|
|
2607
|
+
height: ${e=>e.height}px;
|
|
2608
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2609
|
+
`,Uu=a.div`
|
|
2610
|
+
user-select: none;
|
|
2611
|
+
display: flex;
|
|
2612
|
+
flex: 1 1 auto;
|
|
2613
|
+
flex-flow: row;
|
|
2614
|
+
justify-content: flex-start;
|
|
2615
|
+
align-items: center;
|
|
2616
|
+
`,qu=a.div`
|
|
2617
|
+
display: flex;
|
|
2618
|
+
flex: 1 0 auto;
|
|
2619
|
+
flex-direction: row;
|
|
2620
|
+
justify-content: flex-end;
|
|
2621
|
+
`,Zu=a.div`
|
|
2622
|
+
display: flex;
|
|
2623
|
+
flex-direction: row;
|
|
2624
|
+
justify-content: flex-start;
|
|
2625
|
+
`,qe=a(C)`
|
|
2626
|
+
user-select: none;
|
|
2627
|
+
max-width: ${k.balanceWidth};
|
|
2628
|
+
min-width: ${k.balanceWidth};
|
|
2629
|
+
text-align: right;
|
|
2630
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2631
|
+
`,Qu=a.div`
|
|
2632
|
+
display: flex;
|
|
2633
|
+
flex-direction: row;
|
|
2634
|
+
flex-shrink: 2;
|
|
2635
|
+
flex-grow: 1;
|
|
2636
|
+
align-items: center;
|
|
2637
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2638
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2639
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2640
|
+
${({isSticky:e})=>e?P`
|
|
2641
|
+
position: -webkit-sticky;
|
|
2642
|
+
position: sticky;
|
|
2643
|
+
top: ${c.sp0};
|
|
2644
|
+
left: ${c.sp0};
|
|
2645
|
+
`:null}
|
|
2646
|
+
`,Ju=a(C)`
|
|
2647
|
+
user-select: none;
|
|
2648
|
+
user-select: none;
|
|
2649
|
+
clear: both;
|
|
2650
|
+
display: inline-block;
|
|
2651
|
+
overflow: hidden;
|
|
2652
|
+
white-space: nowrap;
|
|
2653
|
+
text-overflow: ellipsis;
|
|
2654
|
+
text-align: left;
|
|
2655
|
+
margin-left: ${c.sp2};
|
|
2656
|
+
`,Xu=({type:e,balance:i,color:n,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(Zu,{children:[ae(e)===!0||o?t.jsx(qe,{style:{color:n},children:Z(i)}):t.jsx(qe,{style:{color:n},children:J(i)}),o?t.jsxs(t.Fragment,{children:[t.jsx(qe,{style:{color:n},children:J(i)}),t.jsx(qe,{style:{color:n},children:r==="compare_mode_percent"?de(i):he(i)})]}):null]});function ti({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,sectionName:l,sectionBalances:s,isActualVsForecastOn:d,compareMode:h,sectionColor:u,isScrolling:g,isOpen:p,isLeaf:f,onClick:x}){const b=M(),y=!f,$=y?"pointer":"default",S=l.length>0?l.substring(0,1).toUpperCase():"",[B,L]=I.useState(!1);return t.jsxs(Yu,{"data-testid":m("section-row",o),height:r,bgColor:i,children:[t.jsxs(Uu,{"data-testid":m("section-row-container",o),style:{cursor:$},onClick:()=>x?.(o),onMouseOver:()=>L(!0),onMouseLeave:()=>L(!1),children:[ge(e)===!0?t.jsxs(Qu,{isSticky:n,windowSize:b,bgColor:i,children:[t.jsx(be,{color:_(u),showCollapsedIcon:!p,showIcon:B&&y,firstLetter:S}),t.jsx(Ju,{style:{color:u},children:l})," "]}):null,xe(e)===!0?t.jsx(qu,{children:s.map((O,F)=>t.jsx(Xu,{type:e,sectionName:l,balance:O,isActualVsForecastOn:d,compareMode:h,color:u},F))}):null]}),t.jsx(ep,{isScrolling:g,isLeaf:f,isOpen:p})]})}function ep({isScrolling:e,isLeaf:i,isOpen:n}){return i||!n?t.jsx(me,{isScrolling:e,kind:"section_row_separator"}):null}const tp=a.div`
|
|
2657
|
+
display: flex;
|
|
2658
|
+
flex: 1 1 auto;
|
|
2659
|
+
width: fit-content;
|
|
2660
|
+
min-width: 100%;
|
|
2661
|
+
flex-direction: column;
|
|
2662
|
+
height: ${e=>e.height-1}px;
|
|
2663
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2664
|
+
`,ip=a.div`
|
|
2665
|
+
user-select: none;
|
|
2666
|
+
display: flex;
|
|
2667
|
+
flex: 1 1 auto;
|
|
2668
|
+
flex-flow: row;
|
|
2669
|
+
justify-content: flex-start;
|
|
2670
|
+
align-items: center;
|
|
2671
|
+
`,np=a.div`
|
|
2672
|
+
display: flex;
|
|
2673
|
+
flex: 1 0 auto;
|
|
2674
|
+
flex-direction: row;
|
|
2675
|
+
justify-content: flex-end;
|
|
2676
|
+
`,op=a.div`
|
|
2677
|
+
display: flex;
|
|
2678
|
+
flex-direction: row;
|
|
2679
|
+
justify-content: flex-start;
|
|
2680
|
+
`,Ze=a(C)`
|
|
2681
|
+
user-select: none;
|
|
2682
|
+
min-width: ${k.balanceWidth};
|
|
2683
|
+
max-width: ${k.balanceWidth};
|
|
2684
|
+
text-align: right;
|
|
2685
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2686
|
+
color: ${e=>e.theme.colors.hero};
|
|
2687
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2688
|
+
&:hover {
|
|
2689
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2690
|
+
}
|
|
2691
|
+
`,rp=a.div`
|
|
2692
|
+
display: flex;
|
|
2693
|
+
flex-direction: row;
|
|
2694
|
+
flex-shrink: 2;
|
|
2695
|
+
flex-grow: 1;
|
|
2696
|
+
align-items: center;
|
|
2697
|
+
height: ${e=>e.containerHeight-1}px; // Else bottom line doesnt show up
|
|
2698
|
+
// because the height of the svg is much larger
|
|
2699
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2700
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2701
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2702
|
+
color: ${e=>e.theme.colors.hero};
|
|
2703
|
+
|
|
2704
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2705
|
+
&:hover {
|
|
2706
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2707
|
+
}
|
|
2708
|
+
${({isSticky:e})=>e?P`
|
|
2709
|
+
position: -webkit-sticky;
|
|
2710
|
+
position: sticky;
|
|
2711
|
+
top: ${c.sp0};
|
|
2712
|
+
left: ${c.sp0};
|
|
2713
|
+
`:null}
|
|
2714
|
+
`,ap=a(C)`
|
|
2715
|
+
user-select: none;
|
|
2716
|
+
clear: both;
|
|
2717
|
+
display: inline-block;
|
|
2718
|
+
text-align: left;
|
|
2719
|
+
`,lp=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o,account:r,showTotal:l,onAccountBalanceClick:s})=>{const d=i!=null?A.isCalculatedBalanceType(i?.type):!1,h=r!=null&&i!=null&&s!=null&&d!==!0,u=l===!0?Yi(i):Z(i),g=l===!0?bt(i):J(i),p=l===!0?Ui(i):de(i),f=l===!0?qi(i):he(i);return t.jsxs(op,{"data-testid":m("account-row-balance-element",e),children:[ae(e)===!0||n?t.jsx(Ze,{"data-testid":m("account-row-balance-actual",e),isClickable:h,onClick:x=>{x.stopPropagation(),h===!0&&r!=null&&i!=null&&s?.(r,i)},children:u}):t.jsx(Ze,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:g}),n?t.jsxs(t.Fragment,{children:[t.jsx(Ze,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:g}),t.jsx(Ze,{"data-testid":m("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?p:f})]}):null]})};function sp({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,classDepth:l,accountBalances:s,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:g,noMarginForAccount:p,isLeaf:f,isOpen:x,isLastNode:b,account:y,onAccountBalanceClick:$,onClick:S}){const B=M(),L=y!=null?y.id.length-1:0,O=y?.hasSiblings??!1,F=y!=null?y.children.length!==0:!1,T=u,{common:{strings:{empty:Y}}}=W.getLocalizedStrings(),H=y?.account.accountDescription?y.account.accountDescription:Y,U=y?.account.accountName?y.account.accountName:H;return t.jsxs(tp,{"data-testid":m("sub-account-row",o),height:r,bgColor:i,children:[t.jsxs(ip,{"data-testid":m("sub-account-row-container",o),onClick:()=>S?.(o),children:[t.jsx(rp,{isClickable:F,isSticky:n,windowSize:B,bgColor:i,containerHeight:r,children:t.jsx(ap,{title:U,children:t.jsx(en,{displayName:U,depth:L,classDepth:l,isLastNode:b,hasChildren:F,hasSiblings:O,isLeaf:f,collapsed:!x,subAccountAnscestorMetadata:T.subAccountAncestorMetadata,classAnscestorMetadata:T.classAncestorMetadata??[],noMarginForAccount:p})})}),xe(e)===!0?t.jsx(np,{children:s.map((Q,ue)=>t.jsx(lp,{type:e,isActualVsForecastOn:d,compareMode:h,balance:Q,account:y?.account,showTotal:!x,onAccountBalanceClick:$==null?void 0:(X,oe)=>{$(o,X,oe)}},ue))}):null]}),t.jsx(cp,{isScrolling:g,isLeaf:f,isOpen:x,depth:L,isSticky:n,classDepth:l,noMarginForAccount:p})]})}function cp({isScrolling:e,depth:i,isOpen:n,isLeaf:o,isSticky:r,classDepth:l,noMarginForAccount:s}){return!n||o===!0?t.jsx(me,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:i,isSticky:r,classDepth:l,noMarginForAccount:s}}):null}const dp=[10,14,20,20,20],hp=a.div`
|
|
2720
|
+
display: flex;
|
|
2721
|
+
flex: 1 1 auto;
|
|
2722
|
+
width: fit-content;
|
|
2723
|
+
min-width: 100%;
|
|
2724
|
+
flex-direction: column;
|
|
2725
|
+
height: ${e=>e.height-1}px;
|
|
2726
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2727
|
+
`,up=a.div`
|
|
2728
|
+
user-select: none;
|
|
2729
|
+
display: flex;
|
|
2730
|
+
flex: 1 1 auto;
|
|
2731
|
+
flex-flow: row;
|
|
2732
|
+
justify-content: flex-start;
|
|
2733
|
+
align-items: center;
|
|
2734
|
+
`,pp=a.div`
|
|
2735
|
+
width: ${e=>Zi.emptyLeftContainer.valuePx(e.windowSize)};
|
|
2736
|
+
height: ${c.sp1};
|
|
2737
|
+
`,gp=a.div`
|
|
2738
|
+
display: flex;
|
|
2739
|
+
flex: 1 0 auto;
|
|
2740
|
+
flex-direction: row;
|
|
2741
|
+
justify-content: flex-end;
|
|
2742
|
+
`,fp=a.div`
|
|
2743
|
+
display: flex;
|
|
2744
|
+
flex-direction: row;
|
|
2745
|
+
justify-content: flex-start;
|
|
2746
|
+
`,Qe=a(C)`
|
|
2747
|
+
user-select: none;
|
|
2748
|
+
min-width: ${k.balanceWidth};
|
|
2749
|
+
max-width: ${k.balanceWidth};
|
|
2750
|
+
text-align: right;
|
|
2751
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2752
|
+
color: ${e=>e.theme.colors.primary};
|
|
2753
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2754
|
+
`,xp=a.div`
|
|
2755
|
+
display: flex;
|
|
2756
|
+
flex-direction: row;
|
|
2757
|
+
flex-shrink: 2;
|
|
2758
|
+
flex-grow: 1;
|
|
2759
|
+
align-items: center;
|
|
2760
|
+
height: ${e=>e.containerHeight-1}px;
|
|
2761
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2762
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2763
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2764
|
+
${({isSticky:e})=>e?P`
|
|
2765
|
+
position: -webkit-sticky;
|
|
2766
|
+
position: sticky;
|
|
2767
|
+
top: ${c.sp0};
|
|
2768
|
+
left: ${c.sp0};
|
|
2769
|
+
`:null}
|
|
2770
|
+
`,mp=a(C)`
|
|
2771
|
+
user-select: none;
|
|
2772
|
+
clear: both;
|
|
2773
|
+
display: inline-block;
|
|
2774
|
+
overflow: hidden;
|
|
2775
|
+
white-space: nowrap;
|
|
2776
|
+
text-overflow: ellipsis;
|
|
2777
|
+
text-align: left;
|
|
2778
|
+
margin-left: ${e=>dp[e.depth]}px;
|
|
2779
|
+
color: ${e=>e.theme.colors.primary};
|
|
2780
|
+
width: ${e=>k.titleWidth.value(e.windowSize)-e.depth*80}px;
|
|
2781
|
+
`,wp=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o})=>t.jsxs(fp,{"data-testid":m("sub-account-row-balance-element",e),children:[ae(e)===!0||n?t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-actual",e),isClickable:!1,children:Yi(i)}):t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:bt(i)}),n?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:bt(i)}),t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?Ui(i):qi(i)})]}):null]});function yp({type:e,backgroundColor:i,isSticky:n,height:o,classDepth:r,accountName:l,accountBalances:s,account:d,noMarginForAccount:h,isActualVsForecastOn:u,compareMode:g,isScrolling:p,metadata:f}){const x=M(),b=W.getLocalizedStrings().reports.sections,y=d!=null?d.id.length-1:0,$=f;return t.jsxs(hp,{height:o,bgColor:i,children:[t.jsxs(up,{children:[t.jsxs(xp,{isSticky:n,windowSize:x,bgColor:i,containerHeight:o,children:[r!=null?t.jsx(Ji,{ancestorMetadata:$.classAncestorMetadata??[],depth:r,name:l}):h===!1?t.jsx(pp,{windowSize:x}):null,t.jsx(Xi,{ancestorMetadata:$.subAccountAncestorMetadata,depth:y,name:l}),t.jsx(mp,{"data-testid":m("sub-account-row-name",e),isClickable:!1,title:l,depth:y,windowSize:x,children:b.totalPrefix+" "+l})]}),xe(e)===!0?t.jsx(gp,{children:s.map((S,B)=>t.jsx(wp,{type:e,isActualVsForecastOn:u,compareMode:g,balance:S},B))}):null]}),t.jsx(bp,{isScrolling:p,nestingLevel:y,isSticky:n,classDepth:r,noMarginForAccount:h})]})}function bp({isScrolling:e,nestingLevel:i,isSticky:n,classDepth:o,noMarginForAccount:r}){return t.jsx(me,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:i,isSticky:n,classDepth:o,noMarginForAccount:r}})}const kp=a.div`
|
|
2782
|
+
user-select: none;
|
|
2783
|
+
display: flex;
|
|
2784
|
+
flex: 1 1 auto;
|
|
2785
|
+
width: fit-content;
|
|
2786
|
+
min-width: 100%;
|
|
2787
|
+
height: ${e=>e.height}px;
|
|
2788
|
+
flex-flow: row;
|
|
2789
|
+
justify-content: flex-start;
|
|
2790
|
+
align-items: center;
|
|
2791
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2792
|
+
`,jp=a.div`
|
|
2793
|
+
display: flex;
|
|
2794
|
+
flex: 1 0 auto;
|
|
2795
|
+
flex-direction: row;
|
|
2796
|
+
justify-content: flex-end;
|
|
2797
|
+
`,Me=k.balanceWidthInPx+k.balanceLeftMarginInPx,io=a.div`
|
|
2798
|
+
display: flex;
|
|
2799
|
+
max-height: 54px;
|
|
2800
|
+
min-height: 54px;
|
|
2801
|
+
min-width: ${e=>e.isActualVsForecastOn?3*(Me-2)-k.balanceLeftMarginInPx:k.balanceWidthInPx}px;
|
|
2802
|
+
justify-content: center;
|
|
2803
|
+
align-items: center;
|
|
2804
|
+
background-color: ${e=>e.theme.colors.background};
|
|
2805
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2806
|
+
border-radius: ${c.sp2};
|
|
2807
|
+
margin-left: ${e=>e.isActualVsForecastOn?w[0]:k.balanceLeftMarginInPx}px;
|
|
2808
|
+
color: ${e=>e.theme.colors.primary};
|
|
2809
|
+
`,no=a(C)`
|
|
2810
|
+
display: flex;
|
|
2811
|
+
user-select: none;
|
|
2812
|
+
flex-direction: row;
|
|
2813
|
+
justify-content: center;
|
|
2814
|
+
align-items: center;
|
|
2815
|
+
height: ${k.balanceHeight};
|
|
2816
|
+
max-width: ${k.balanceWidthInPx-2}px;
|
|
2817
|
+
width: 138px;
|
|
2818
|
+
text-align: center;
|
|
2819
|
+
`,Sp=a.div`
|
|
2820
|
+
height: 100%;
|
|
2821
|
+
display: inline-block;
|
|
2822
|
+
flex-direction: row;
|
|
2823
|
+
align-items: center;
|
|
2824
|
+
min-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2825
|
+
color: ${e=>e.theme.colors.grey5};
|
|
2826
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2827
|
+
border: 1px solid ${e=>e.bgColor?.hex()};
|
|
2828
|
+
${({isSticky:e})=>e?P`
|
|
2829
|
+
position: -webkit-sticky;
|
|
2830
|
+
position: sticky;
|
|
2831
|
+
top: ${c.sp0};
|
|
2832
|
+
left: ${c.sp0};
|
|
2833
|
+
z-index: 20;
|
|
2834
|
+
`:null}
|
|
2835
|
+
`,Cp=a.div`
|
|
2836
|
+
display: flex;
|
|
2837
|
+
width: ${e=>e.isActualVsForecastOn?3*Me:Me}px;
|
|
2838
|
+
flex-direction: row;
|
|
2839
|
+
justify-content: flex-start;
|
|
2840
|
+
color: ${e=>e.theme.colors.champion};
|
|
2841
|
+
`,yt=a(C)`
|
|
2842
|
+
display: flex;
|
|
2843
|
+
justify-content: flex-end;
|
|
2844
|
+
align-items: center;
|
|
2845
|
+
height: ${k.balanceHeight};
|
|
2846
|
+
width: ${k.balanceWidth};
|
|
2847
|
+
min-width: ${k.balanceWidth};
|
|
2848
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2849
|
+
margin-top: ${c.sp3};
|
|
2850
|
+
`,$p=a.div`
|
|
2851
|
+
display: flex;
|
|
2852
|
+
max-height: 54px;
|
|
2853
|
+
min-height: 54px;
|
|
2854
|
+
justify-content: center;
|
|
2855
|
+
align-items: center;
|
|
2856
|
+
color: ${e=>e.theme.colors.champion};
|
|
2857
|
+
`,vp=a.div``,_p=a(C)`
|
|
2858
|
+
display: flex;
|
|
2859
|
+
justify-content: center;
|
|
2860
|
+
align-items: center;
|
|
2861
|
+
max-height: 54px;
|
|
2862
|
+
min-height: 54px;
|
|
2863
|
+
background-color: ${e=>e.theme.colors.background};
|
|
2864
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2865
|
+
border-radius: ${c.sp2};
|
|
2866
|
+
margin-left: ${k.balanceLeftMarginInPx}px;
|
|
2867
|
+
color: ${e=>e.theme.colors.primary};
|
|
2868
|
+
width: ${k.balanceWidth};
|
|
2869
|
+
min-width: ${k.balanceWidth};
|
|
2870
|
+
`,Lp=a.div`
|
|
2871
|
+
display: flex;
|
|
2872
|
+
width: ${e=>e.isActualVsForecastOn?3*Me:Me}px;
|
|
2873
|
+
flex-direction: column;
|
|
2874
|
+
align-items: flex-end;
|
|
2875
|
+
`,Ap=a.div`
|
|
2876
|
+
max-height: 54px;
|
|
2877
|
+
min-height: 54px;
|
|
2878
|
+
`,oo=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:o,bookCloseDate:r})=>{const l=W.getLocalizedStrings().reports,s=r!=null&&o!=null&&(i.balanceType==="default"||i.balanceType==="default_with_percent")?A.getTimeframeTickTag(n,e,i,r,o):void 0,d=s!=null?s==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=Rn(s,n);return t.jsx(Ap,{children:r!=null&&o!=null&&s!=null&&d!=null&&h!=null?t.jsx(Dn,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,tagName:d,infoContent:h,tagType:s}):t.jsx(io,{isActualVsForecastOn:!1,children:t.jsx(no,{children:Ie(e,i,n)})})})},Bp=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,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} ${i.currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(Lp,{isActualVsForecastOn:o,children:[t.jsx(io,{isActualVsForecastOn:o,children:t.jsx(no,{children:Ie(e,i,n)})}),t.jsxs(Cp,{isActualVsForecastOn:o,children:[t.jsx(yt,{children:h.actual}),t.jsx(yt,{children:h.forecast}),t.jsx(yt,{children:t.jsx(Qt,{title:u,titleTextStyle:Ft.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:g=>{g!=="off"?d?.(g):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(oo,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:l,bookCloseDate:s})},Wp=({firstMonthOfFY:e,timeframeTicks:i,timeframe:n,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:s})=>{const d=ce(),h=o==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${i[0].currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return t.jsx($p,{children:i.map((u,g)=>t.jsx(I.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(_p,{children:t.jsx(Qt,{title:h,titleTextStyle:Ft.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(vp,{children:t.jsx(oo,{firstMonthOfFY:e,timeframeTick:u,timeframe:n,dataAvailable:r,bookCloseDate:l},g)})},g))})};function Op({type:e,backgroundColor:i,isSticky:n,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}){const x=M();return t.jsxs(kp,{height:o,bgColor:i,children:[ge(e)===!0?t.jsx(Sp,{isSticky:n,windowSize:x,bgColor:i,children:" . "}):null,t.jsx(jp,{children:l===!0?t.jsx(Wp,{firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}):h.map((b,y)=>t.jsx(Bp,{firstMonthOfFY:s,timeframeTick:b,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f},y))})]})}const ht=(e,i,n,o,r,l,s,d,h,u,g)=>{if(n.element.kind!="ac_report"||n.element.data==null)return null;const p=n.element.data,f=A.isDashboardClassesViewReport(n.config.reportId)===!0||A.isPAndLClassesViewReport(n.config.reportId)===!0?_n("no_filter",n.config.filterAccountsWithNilBalances):nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),x=te(f.acBalanceSelector(p),n.config.displayOrder,n.element.numOfBalances);return t.jsx(Mu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:x.balances,isScrolling:s,isLeaf:d,isLastNode:h,account:p,onAccountBalanceClick:g==null?void 0:(b,y,$)=>{g?.(b,y,$)}})},ze=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_subaccount"||n.element.data==null)return null;const f=n.element.data,x=ei("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=Qn(x.acBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,$=n.config.reportId==="operating_expenses";return t.jsx(sp,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",classDepth:y,compareMode:g,accountBalances:b.balances,isScrolling:s,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:n.element.metadata,onClick:p,noMarginForAccount:$,onAccountBalanceClick:p==null?void 0:(S,B,L)=>{p?.(S,B,L)}})},ut=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_group_report"||n.element.data==null)return null;const f=n.element.data,x=nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances);return t.jsx(gu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},ii=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_group_subaccount"||n.element.data==null)return null;const f=n.element.data,x=ei("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances);return t.jsx(Cu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},ni=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section"||n.element.data==null)return null;const f=Ot(n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(ti,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},pt=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section_with_ac_only"||n.element.data==null)return null;const f=Ot(n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(ti,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},oi=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="calculated_section"||n.element.data==null)return null;const f=Ot(n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(ti,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},Fe=(e,i,n,o,r,l,s,d,h)=>{if(i.element.kind!="ac_subentity_total")return null;const u=i.element.data,g=ei("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),p=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=Qn(g.acBalanceSelector(u),i.config.displayOrder,i.element.numOfBalances),x=i.config.reportId==="operating_expenses"||i.config.reportId==="operating_expenses_by_classes";return t.jsx(yp,{type:e,backgroundColor:o,isSticky:r,height:n,accountName:u.account.accountName,account:u,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:x,isLeaf:s,isLastNode:d,metadata:i.element.metadata,classDepth:p})},Te=(e,i,n,o,r,l,s,d)=>{if(n.element.kind!=="timeframe_headers"&&n.element.kind!=="timeframe_headers_with_forecast")return null;const h=Pe(n.element.data,n.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",g=h.map(p=>A.toTimeframeTick(p));return t.jsx(Op,{treeNodeId:e,backgroundColor:r,isSticky:l,type:i,height:o,isActualVsForecastOn:n.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:n.config.mode==="this_period_vs_period_before"&&g.length>1,firstMonthOfFY:n.config.firstMonthOfFY,timeframe:u,timeframeTicks:g,compareMode:s,dataAvailable:n.config.dataAvailable,bookCloseDate:n.config.bookCloseDate,onCompareModeChanged:d})},ro=(e,i,n,o,r,l,s,d,h,u,g,p,f)=>{if(n.element.kind!="class"||n.element.data==null)return null;const x=n.element.data,b=te(x.childrenBalancesTotal,n.config.displayOrder,n.element.numOfBalances),y=g>1;return t.jsx(Hu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,className:n.element.title,classCode:n.element.data.class.accountingClassNumber,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",depth:x.id.length-1,compareMode:p,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,hasChildren:x.children.length>0,isLastNode:u,isSubClass:y,showClassAccountNumber:n.config.showClassAccountNumber,onClick:$=>{f?.($)},metadata:n.element.metadata})},Mp=(e,i,n)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ln,{height:i,backgroundColor:n,title:e.element.title,numOfBalances:e.element.numOfBalances}),Np=(e,i,n)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Bn,{height:i,backgroundColor:n,numOfBalances:e.element.numOfBalances}),Fi=e=>{const{height:i,data:{reportElementData:n,id:o,treeKind:r,isLeaf:l,isLastNode:s,nestingLevel:d,isFirstNode:h},isOpen:u,style:g,setOpen:p,isScrolling:f}=e,x=($,S,B)=>{const L=l?u:!u;!l&&B==null&&(p(!u),e.onNodeCollapseToggled?.($,!u)),e.onNodeClick?.($,L,S,B)},b=e.treeNodePadding?.left,y=e.treeNodePadding?.right;return t.jsx("div",{style:{...g,width:"auto",minWidth:"100%",paddingLeft:b,paddingRight:y},children:t.jsx(ao,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:n,height:i,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:s,isFirstNode:h,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick!=null||!l?x:void 0,compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},o)})},ao=e=>e.treeKind==="name_only"?t.jsx(Vp,{...e}):A.isAgingReport(e.reportElementData.config.reportId)?t.jsx(Rp,{...e}):A.isOpExByVendorReport(e.reportElementData.config.reportId)===!0?t.jsx(Dp,{...e}):A.isPAndLClassesViewReport(e.reportElementData.config.reportId)===!0?t.jsx(Ip,{...e}):A.isPAndLReport(e.reportElementData.config.reportId)===!0?t.jsx(Pp,{...e}):A.isDashboardClassesViewReport(e.reportElementData.config.reportId)===!0?t.jsx(zp,{...e}):A.isDashboardReport(e.reportElementData.config.reportId)===!0?t.jsx(Fp,{...e}):A.isCashFlowOrBalanceSheetReport(e.reportElementData.config.reportId)===!0?t.jsx(Tp,{...e}):A.isFluxAnalysisOpExReport(e.reportElementData.config.reportId)===!0?t.jsx(Gp,{...e}):A.isAccountReconReport(e.reportElementData.config.reportId)===!0?t.jsx(Ep,{...e}):null,Ip=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,p,f);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,p,f);case"section":return ni(e,i,n,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return oi(e,i,n,o,r,l,s,u,d,h,p,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,p,x);case"class":return ro(e,i,n,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,p,f);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,p);case"headers_loading_in_progress":return Np(n,o,r);case"loading_in_progress":return Mp(n,o,r);default:return null}},Pp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,g,p);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return ii(e,i,n,o,r,l,s,u,d,h,g,p);case"section":return ni(e,i,n,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return oi(e,i,n,o,r,l,s,u,d,h,g,p);case"title_string_only":return null;case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,g,f);default:return null}},zp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,p,f);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,p,f);case"section":return Mn(e,i,n,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return Nn(e,i,n,o,r,l,s,u,d,h,p,f);case"title_string_only":return Ht(e,i,n,o,r,l,s,u,d,h,p,f);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,p,x);case"class":return ro(e,i,n,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,p,f);case"total":return In(e,i,n,o,r,l,p,d);case"headers_loading_in_progress":return Bs(n,o,r);case"loading_in_progress":return As(n,o,r);default:return null}},Fp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(n.element.kind){case"ac_report":return vs(e,i,n,o,r,l,s,d,h,g,p);case"ac_group_report":return _s(e,i,n,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return ii(e,i,n,o,r,l,s,u,d,h,g,p);case"section":return Mn(e,i,n,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return Ls(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return Nn(e,i,n,o,r,l,s,u,d,h,g,p);case"title_string_only":return Ht(e,i,n,o,r,l,s,u,d,h,g,p);case"total":return In(e,i,n,o,r,l,g,d);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,g,f);default:return null}},Tp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,g,p);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,g,p);case"section":return ni(e,i,n,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section":return oi(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section_type1":return xl(e,n,o,r,l,s,h);case"title_string_only":return Ht(e,i,n,o,r,l,s,u,d,h,g,p);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,g,f);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return ii(e,i,n,o,r,l,s,u,d,h,g,p);default:return null}},Vp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:g})=>{switch(n.element.kind){case"checkbox_and_name_only":return Vd(e,i,n,o,r,l,s,u,d,h,g);default:return null}},Dp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(n.element.kind){case"loading_in_progress":case"spacer_row":return Jh(n,o,r,l);case"timeframe_headers":return qh(n,o,l,h,r,u);case"total":return Zh(e,i,n,o,l,s,r);case"vendor_row":return Qh(i,n,o,r,l,s,d);case"title_string_only":return Xh(n,o,r,l);default:return null}},Rp=({id:e,treeKind:i,reportElementData:n,height:o,isOpen:r,isSticky:l,isScrolling:s,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:g}=n;switch(n.element.kind){case"spacer_row":return null;case"timeframe_headers":return Aa(n,o,h,l,g.agingReportConfig?.sortKey,g.agingReportConfig?.sortOrder,g.agingReportConfig?.onSortOrderChanged);case"total":return Oa(i,n,o,h,l);case"aging_report_row":return Ba(e,n,o,r,l,d,s,h,g.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Wa(n,o,l,s,h);default:return null}},Gp=({id:e,reportElementData:i,height:n,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:s,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:g,nodeClickHandler:p,hoveredParentIdProps:f})=>{switch(i.element.kind){case"flux_vendor_account_class_row":return vd(e,i,o,r,l,s,d,f,g);case"flux_vendor_row":return _d(e,i,o,r,l,u,s,d,h,f,p);case"section":return Ld(e,i,n,o,r,l,u,s,d,p);case"timeframe_headers":return Ad(i,n,r);case"total":return Bd(i,n);case"loading_in_progress":return Wd(i);case"headers_loading_in_progress":return Od(i);default:return null}},Ep=({reportElementData:e,height:i,isSticky:n,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return Br(e,n);case"loading_in_progress":return Ar();case"total":return Wr(e,i,n);case"section":return Lr();case"title_string_only":return Or(e,i);case"ac_group_report":return Mr(e,i,o);default:return null}};function Ti(e,i,n,o){return{data:{defaultHeight:ri(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??Hp(e.reportElementData.config.reportId,e.reportElementData.element.kind,n,e.reportElementData.config.reportFormat),nestingLevel:n,treeKind:i,reportElementData:e.reportElementData},treeKind:i,nestingLevel:n,node:e}}function ri(e,i,n){return A.isPAndLReport(e)===!0?Nr(i):A.isDashboardReport(e)===!0||A.isDashboardClassesViewReport(e)===!0?Dl(i):A.isAgingReport(e)?Kr(i):A.isAccountReconReport(e)?it(i):A.isOpExByVendorReport(e)?Dd(i):A.isFluxAnalysisOpExReport(e)?zn(i,n):Za(i)}function Hp(e,i,n,o){return A.isPAndLReport(e)?Ir(i,o,n):A.isDashboardReport(e)||A.isDashboardClassesViewReport(e)===!0?Rl(i,o):A.isAgingReport(e)?Yr():A.isOpExByVendorReport(e)?Rd():A.isFluxAnalysisOpExReport(e)?Rs(i):A.isAccountReconReport(e)?Mo():Qa(i,o)}const Kp=a.div`
|
|
2879
|
+
top: 0;
|
|
2880
|
+
left: 0;
|
|
2881
|
+
position: sticky !important;
|
|
2882
|
+
position: -webkit-sticky !important;
|
|
2883
|
+
min-height: ${e=>e.heightValue}px;
|
|
2884
|
+
max-height: ${e=>e.heightValue}px;
|
|
2885
|
+
width: fit-content;
|
|
2886
|
+
min-width: 100%;
|
|
2887
|
+
z-index: 2;
|
|
2888
|
+
display: flex;
|
|
2889
|
+
flex-direction: column;
|
|
2890
|
+
align-items: center;
|
|
2891
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2892
|
+
box-sizing: border-box;
|
|
2893
|
+
`;function Yp({height:e,backgroundColor:i,headers:n,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:s}){return n.length===0?null:(n.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(Kp,{heightValue:e,bgColor:i,"data-testid":m("sticky-header-report-tree"),children:n.map((d,h)=>t.jsx(ao,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:ri(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:i,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:n.length-1===h,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:s},d.id))}))}const Up=(e,i,n)=>function*(){for(let o=0;o<i.length;++o)yield Ti(i[o],e,0,n[i[o].id]??void 0);for(;;){const o=yield;for(let r=0;r<o.node.children.length;++r)yield Ti(o.node.children[r],e,o.nestingLevel+1,n[o.node.children[r].id]??void 0)}},lo=I.createContext(void 0);function qp({height:e,kind:i,rootNodes:n,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:s,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:g,infiniteLoadingProps:p,variableNodeHeightTree:f,onNodeClick:x,onCompareModeChanged:b,scrollPosition:y,onScroll:$,nodeOpenStatus:S,onNodeCollapseToggled:B,onTreeInnerElementHeightChanged:L,onToggleCheck:O,hoveredParentIdProps:F}){const T=I.useRef(null),Y=I.useRef(null),H=hi(f?.prevFetchState),U=hi(f?.prevRefreshFetchState),[Q,ue]=I.useState(0),X=g??Y,oe=u??T,Ce=M(),[le,pe]=I.useState(void 0),[Ve,ai]=I.useState(!1),[De,li]=I.useState(S),si=(z,ie)=>{li(Object.assign({},De,{[z]:ie})),B?.(z,ie)},ci=z=>{if(n.contentNodes.length>0)if(Object.keys(z).length>0){const ie={};Object.keys(z).forEach(we=>{ie[we]={open:z[we]}}),oe?.current?.recomputeTree(ie)}else{const ie=n.contentNodes[0].id;oe?.current?.recomputeTree({[ie]:{open:!0}})}};I.useLayoutEffect(()=>{if((!ui(y,le)||le==null)&&X.current!=null){const z=y?.scrollLeft==null?Ce==="small"?0:X.current.scrollWidth:y?.scrollLeft;if(y!=null){const ie={scrollTop:y.scrollTop,scrollLeft:z};pe(ie),z!==y?.scrollLeft&&$?.(ie)}X.current.scroll({left:z,top:y?.scrollTop})}},[y]),I.useEffect(()=>{ui(S,De)||(li(S),ci(S))},[S]),I.useEffect(()=>{const z=X.current,ie=fo(()=>{if(z!=null&&(le==null||z.scrollLeft!==le.scrollLeft||z.scrollTop!==le.scrollTop)){const we={scrollLeft:z.scrollLeft,scrollTop:z.scrollTop};pe(we),$?.(we)}},50);return z?.addEventListener("scroll",ie),()=>{z?.removeEventListener("scroll",ie)}},[X,le,$]),I.useEffect(()=>{if(n.contentNodes.length>0){ci(De);const z=n.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";z!==Ve&&ai(z)}},[Ve,ai,n,oe,X]),I.useEffect(()=>{(f!=null&&H==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&U==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),ue(Q+1))},[Q,f?.fetchState,f?.isSortApplied,H,U,f]);const gt=I.useRef(),[so,co]=I.useState(void 0),ho=()=>{const z=gt.current;z!=null&&z.clientHeight>0&&z.clientHeight!=so&&(co(z.clientHeight),L?.(z.clientHeight))},di=I.useCallback(Up(i,n.contentNodes,De),[i,n]),uo={rootNodes:n,treeNodePadding:s,backgroundColor:l,kind:i,isSticky:r,compareMode:o,onCompareModeChanged:b};return t.jsx(lo.Provider,{value:uo,"data-testid":m("report-tree"),children:p==null?t.jsx(pi,{className:d,style:h,ref:oe,innerRef:gt,outerRef:X,innerElementType:Wt,treeWalker:di,onItemsRendered:ho,height:e,width:"100%",children:z=>t.jsx(Fi,{...z,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:s,onNodeClick:x,onNodeCollapseToggled:si,compareMode:o,onCompareModeChanged:b,onToggleCheck:O})}):t.jsx(xo,{isItemLoaded:p.isItemLoaded,itemCount:p.itemCount+1,loadMoreItems:p.loadMoreItems,children:({onItemsRendered:z,ref:ie})=>t.jsx(pi,{className:d,style:h,ref:ie,innerRef:gt,outerRef:X,innerElementType:Wt,treeWalker:di,onItemsRendered:z,height:e,width:"100%",children:we=>t.jsx(Fi,{...we,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:s,onNodeClick:x,onNodeCollapseToggled:si,compareMode:o,onCompareModeChanged:b,onToggleCheck:O,hoveredParentIdProps:F})},Q)})})}const Wt=I.forwardRef((e,i)=>{const{children:n,style:o,...r}=e,{rootNodes:l,treeNodePadding:s,backgroundColor:d,kind:h,isSticky:u,compareMode:g,onCompareModeChanged:p}=I.useContext(lo),f=l.headerNodes.reduce(($,S)=>$+ri(S.reportElementData.config.reportId,S.reportElementData.element.kind,S.isFirstNode),0),x=s?.left,b=s?.right,y=c.sp8;return t.jsxs("div",{ref:i,style:{...o,width:"auto",minWidth:"100%",paddingLeft:x,paddingRight:b,marginBottom:y},...r,children:[t.jsx(Yp,{height:f,backgroundColor:d,headers:l.headerNodes,treeKind:h,isSticky:u.isStickyHeader,compareMode:g,onCompareModeChanged:p}),n]})});Wt.displayName="stickyInnerElementType";const Zp=a.div`
|
|
2894
|
+
display: flex;
|
|
2895
|
+
flex: 1 0 auto;
|
|
2896
|
+
width: ${e=>e.width}px;
|
|
2897
|
+
height: ${e=>e.height}px;
|
|
2898
|
+
padding-left: ${e=>e.paddingLeft}px;
|
|
2899
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2900
|
+
|
|
2901
|
+
& .content-scroll {
|
|
2902
|
+
overflow: auto;
|
|
2903
|
+
scrollbar-width: thin;
|
|
2904
|
+
scrollbar-color: transparent transparent;
|
|
2905
|
+
&::-webkit-scrollbar {
|
|
2906
|
+
width: ${c.sp2};
|
|
2907
|
+
height: ${c.sp2};
|
|
2908
|
+
background-color: transparent;
|
|
2909
|
+
}
|
|
2910
|
+
&::-webkit-scrollbar-thumb {
|
|
2911
|
+
background-color: transparent;
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
&:hover {
|
|
2915
|
+
scrollbar-color: ${e=>e.theme.colors.grey1} transparent;
|
|
2916
|
+
&::-webkit-scrollbar {
|
|
2917
|
+
width: ${c.sp2};
|
|
2918
|
+
height: ${c.sp2};
|
|
2919
|
+
background-color: transparent;
|
|
2920
|
+
}
|
|
2921
|
+
&::-webkit-scrollbar-track {
|
|
2922
|
+
box-shadow: inset 0 0 2px ${ee.scrollbarBoxShadow};
|
|
2923
|
+
-webkit-box-shadow: inset 0 0 2px ${ee.scrollbarBoxShadow};
|
|
2924
|
+
background-color: transparent;
|
|
2925
|
+
}
|
|
2926
|
+
&::-webkit-scrollbar-thumb {
|
|
2927
|
+
background-color: ${e=>e.theme.colors.grey1};
|
|
2928
|
+
border-radius: 2px;
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2932
|
+
`;function tg({rootNodes:e,type:i,compareMode:n,isSticky:o,backgroundColor:r,treeNodePadding:l,onAccountClick:s,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onCompareModeChanged:g,scrollPosition:p,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onReportTableHeightChanged:y,onToggleCheck:$}){return t.jsx(po,{children:({height:S,width:B})=>t.jsx(Zp,{"data-testid":m("report-tree-container"),height:S,width:B,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(qp,{"data-testid":m("report-tree"),treeClassName:"content-scroll",height:S,kind:i,rootNodes:e,compareMode:n,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,O,F,T)=>{F!=null&&T!=null&&s(F,T)},onCompareModeChanged:g,scrollPosition:p,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onTreeInnerElementHeightChanged:y,onToggleCheck:$})})})}export{te as D,tg as I,Z as J,eg as R,Ie as V,Oe as a,nt as l,Ws as n,qt as r,ei as x};
|