@zeniai/web-cockpit-ui 1.15.58-qa → 1.15.59-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-CfvX6zSV-BnYXr7da.js → ACHDetailsPage-CFhoboVe-NhNiWQoq.js} +1 -1
- package/dist/assets/{AIPerformancePage-BTVbAUHG-BoVD62zB.js → AIPerformancePage-DB-fTWME-C20PCC17.js} +31 -31
- package/dist/assets/AccountInfoPage-pEEhPqOb-CuwSCEbu.js +18 -0
- package/dist/assets/{AccountInfoPageContent-Bk0YQ-4C-BFfUei9K.js → AccountInfoPageContent-eYEsv7ac-CxPwO1am.js} +17 -17
- package/dist/assets/{AccountLockedInfoModal-DM2zVI24-BKusNt5D.js → AccountLockedInfoModal-jYWr_8TD-BpvSTyB8.js} +8 -8
- package/dist/assets/{AccountReconDetailsDrawerPage-B6mhnC_D-UmCS2ljL.js → AccountReconDetailsDrawerPage-3Q0EPYhL-DhctK78k.js} +44 -44
- package/dist/assets/{AccountRow-2vAGu-jm-Ban2UP27.js → AccountRow-CdgvnPG8-BbJV8Q8M.js} +22 -22
- package/dist/assets/{AccountsPromoCardStack-z9STg_F3-DQIMAcch.js → AccountsPromoCardStack-DHo59LLN-G_DVA-Yj.js} +22 -22
- package/dist/assets/AddAddressForCardDrawer-BzO1FXUa-kqMHH9Vt.js +6 -0
- package/dist/assets/{AddToWalletPage-BMPHVMEY-uJdVtbyv.js → AddToWalletPage-BfXFbHjk-QRigQSHV.js} +28 -28
- package/dist/assets/{AgingReportsPage-Bngg8YpI-C_fcRo8j.js → AgingReportsPage-C1hFq4KH-COTxuu-2.js} +7 -7
- package/dist/assets/{AllUserItems-DzHTUgrn-wXFIirZl.js → AllUserItems-B6pnKByY-BUdz_J3g.js} +10 -10
- package/dist/assets/ApAgingDetailPage-CxLVGnpY-OkmLiLaF.js +46 -0
- package/dist/assets/{AppBasePage-DUoMiO7X-DW6VTkB1.js → AppBasePage-DiVxF606-C03aQg1o.js} +7 -7
- package/dist/assets/AppDrawerContent-B_EWsf8O-16pnrlUd.js +92 -0
- package/dist/assets/{ApprovalRulesSettingsPage-BfXvTQyU-Dh6b5zsc.js → ApprovalRulesSettingsPage-HHjDp_NQ-CDZaolru.js} +6 -6
- package/dist/assets/{ArAgingChart-BwVPNYHv-3oBDpKQx.js → ArAgingChart-Ba4A-i2N-Cm3Zb2-A.js} +1 -1
- package/dist/assets/ArAgingDetailPage-prgcvsS4-CC5CLIGP.js +46 -0
- package/dist/assets/{AttachmentView-DQKnQgQK-Bu5XLE-W.js → AttachmentView-SsWJw4A8-BGK1ntZP.js} +8 -8
- package/dist/assets/BalancesInsightWithToolTip-DE6gDjGA-D3lvmUPJ.js +38 -0
- package/dist/assets/{BankAccountSection-DxW0EB-K-BfA6R4ym.js → BankAccountSection-B4jmT0lb-DzAFSATj.js} +11 -11
- package/dist/assets/{BankAccountWarningSection-BQlPiqev-DQgUD-fz.js → BankAccountWarningSection-Bz2itMx0-BwlD2-aX.js} +9 -9
- package/dist/assets/{BankConnectionsSettingsPage-CFk2aMnM-Mskj_CdN.js → BankConnectionsSettingsPage-BcVk7bTt-CT4jBj4R.js} +26 -26
- package/dist/assets/{BillDetailPage-44pWv8Nq-DZ4TiXFR.js → BillDetailPage-Dkqmi4H1-BrWo4uGz.js} +4 -4
- package/dist/assets/{BillPayApprovalRuleDetailPage-D_Q7_oVR-Dl3E9h_h.js → BillPayApprovalRuleDetailPage-Blxlv3pa-CZSNHT3K.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-iTvysPLf-B5MNc-_v.js → BillPayApprovalRulesPage-B_QwggJS-LtyCS7v3.js} +14 -14
- package/dist/assets/{BillPayPromoPage-B5AGf-Xt-024pxlZZ.js → BillPayPromoPage-Bx2AXpWe-Du89a98b.js} +5 -5
- package/dist/assets/{BillPaySetUpPage-bNDxI3Kh-6_VU18cC.js → BillPaySetUpPage-CM7_DkHC-CclJKf3M.js} +3 -3
- package/dist/assets/{BillingSettingsPage-4WGlC_Ok-DUDn5i-o.js → BillingSettingsPage-DM0OIfxa-BuoiB9BU.js} +9 -9
- package/dist/assets/{BillsBulkReviewDrawerPage-8E35ktf3-Cw9-crTl.js → BillsBulkReviewDrawerPage-C3xmQ7wz-Bwj3c210.js} +1 -1
- package/dist/assets/{BoxItem-Yk1jfFWZ-DzXp7dNR.js → BoxItem-CvCo0wr6-DKAIvhWo.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CYzudAIt-BBXKWut1.js → BusinessVerificationPage-BAZmkR4a-AnwjdvL9.js} +10 -10
- package/dist/assets/{CardNumberSubText-DjHY0FvO-CjPeFW5K.js → CardNumberSubText-DHtSIcZZ-DL8DMs-k.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BBnND02O-DWBUQ_Fx.js → CashbackDetailPage-CNS1FA6b-JWXE3hsL.js} +21 -21
- package/dist/assets/{ChargeCardDetailPage-BIR8jdTw-Czwwolcz.js → ChargeCardDetailPage-C4NeG7IM-CPxS6cRg.js} +35 -35
- package/dist/assets/{ChargeCardListPage-DIaPTqHg-CsAQvjuT.js → ChargeCardListPage-DNYiWaEf-DJhH9poc.js} +24 -24
- package/dist/assets/{ChargeCardListTable-Daaen5Xe-DifYJ3Zj.js → ChargeCardListTable-DdnyzdFf-BmYCmkcc.js} +49 -49
- package/dist/assets/{ChargeCardPaymentHistoryPage-BdQWV5hd-BxCbxBo_.js → ChargeCardPaymentHistoryPage-CXlqzaUt-BEtGgsbY.js} +36 -36
- package/dist/assets/{ChargeCardPromoPage-DAk2fYcE--OhP0cnw.js → ChargeCardPromoPage-D4canPX9-DuNs-QpK.js} +23 -23
- package/dist/assets/{ChargeCardSetupPage-64bBN1fe-BqFWzRA1.js → ChargeCardSetupPage-BtikPFOq-_QFEhM40.js} +3 -3
- package/dist/assets/ChargeCardStatementsPage-RepWBbvJ-fE-f9dTt.js +60 -0
- package/dist/assets/{CheckDepositDrawerPage-DlJJaad8-CLbfXmNK.js → CheckDepositDrawerPage-BCqg3irO-BNQC0cqt.js} +21 -21
- package/dist/assets/{CollapsableReportTable-CcyH-50D-D4qh_Iwq.js → CollapsableReportTable-gy7Ue_fk-D4P0G-Lp.js} +528 -496
- package/dist/assets/{CompanyOfficerDetailsSection-m-m1nELP-S26KFwxz.js → CompanyOfficerDetailsSection-BsCx7q-g-vYNOEpVO.js} +15 -15
- package/dist/assets/{CompanyPassportCard-ZBDBE8eV-CMQWkwBr.js → CompanyPassportCard-BbUWOs1U-BLVqocbL.js} +4 -4
- package/dist/assets/{CompanyPassportPage-B6zI52Pp-B__XqIFB.js → CompanyPassportPage-BnP2oA1U-zWSSW3Bs.js} +29 -29
- package/dist/assets/{CompleteProfile-BLWNz2VA-tYLyFWWU.js → CompleteProfile-TiRsm2Fm-CIjFxaAm.js} +3 -3
- package/dist/assets/ConfettiBurst-D7J36hZf-BKlSjT6j.js +1 -0
- package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-BJt0x_QL.js → ConstrainedInnerElement-CgdnMeoA-Bv_SCMJB.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D_fPbFsR-ChtzoVO1.js → CreateOrEditVendorPage-Dihzr1D5-D9cB4SAg.js} +19 -19
- package/dist/assets/{CreditCardPaymentDrawerPage-Bl82rSY1-DDoITNb_.js → CreditCardPaymentDrawerPage-CZGzDuxC-p3RWbIDE.js} +14 -14
- package/dist/assets/{CurrencySelectField-CwNGSmb2-BfwCMrZd.js → CurrencySelectField-BTAmIqPa-BqQ2_ci5.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-L6GfGsJ9-BbZGV_dK.js → CustomerOnboardingActivationPage-MVI7kqIh-wst5cRj4.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-DV3z4pR--Dxqq0QJL.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-MP-lAuJG-UK3eLYnf.js → CustomerOnboardingDetailPageSkeleton-CaI_0pCb-CxQ8bQdr.js} +14 -14
- package/dist/assets/{CustomerOnboardingNoStepsPage-DF6CbSZs-7ZmdawXZ.js → CustomerOnboardingNoStepsPage-CO_c2COV-pLp1hFCt.js} +6 -6
- package/dist/assets/{CustomerOnboardingPage-Cl4wtP6t-Ex1UzqXa.js → CustomerOnboardingPage-BF0vuYaJ-JMRuse4Z.js} +14 -14
- package/dist/assets/{CustomerOnboardingProductSuitePage-vkblu46s-h4faigoV.js → CustomerOnboardingProductSuitePage-BGFdLX1i-DySt6BQg.js} +6 -6
- package/dist/assets/{Dashboard-C1Fn0zHa-CkDT70CD.js → Dashboard-Qjedd4r--DHZmjgJN.js} +1 -1
- package/dist/assets/{DashboardReportPage-3lvWkrXH-CKAZqKLe.js → DashboardReportPage-Deith_ON-ChcA84Vk.js} +24 -24
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Cn_5tbit-DB1raPJt.js → DashboardSidebarBackgroundAnimation-C7DfUDio-DPyKxS1U.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-DnL2eweO-BVp_XIJO.js → DepositAccTransactionItem-7kYotKov-BnPXoaAG.js} +6 -6
- package/dist/assets/{DepositAccTransactionListPage-HAUhc4OH-w6xPsKCN.js → DepositAccTransactionListPage-Bop4Uj5w-ZOaAmZOC.js} +3 -3
- package/dist/assets/DomesticWireDetailsPage-_TyXsqEx-cl5Mv1ja.js +21 -0
- package/dist/assets/{DownloadOverlay-GFsPIkgY-CIatX2-l.js → DownloadOverlay-Cmd727bN-BHplNe_3.js} +23 -23
- package/dist/assets/{DrawerPage-DudtPicH-DR7eAOPs.js → DrawerPage-DmGwfnGp-B5EgKZxZ.js} +14 -14
- package/dist/assets/EditPeoplePage-YyluIC6R-CQIl30sj.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-D8RHkMHR-DhpHj6Tk.js → EditReimbursementDetailPage-DeMid2Ko-BTURFjuA.js} +84 -84
- package/dist/assets/EntityDetailPage-DPTSSZdS-B-VW2ygZ.js +18 -0
- package/dist/assets/{EntitySummarySection-Po9-k_zM-CKOvXyjt.js → EntitySummarySection-5NbutA8l-Z4HQfo2N.js} +15 -15
- package/dist/assets/{ExpenseAutomationOverviewPage-CbLRqpw3-CE6o3IC8.js → ExpenseAutomationOverviewPage-CQ_3WluW-sBkDi2LJ.js} +10 -10
- package/dist/assets/{ExpenseAutomationPage-DD33LDin-CmmvW3gw.js → ExpenseAutomationPage-VuU4acYd-DRu_62Rz.js} +239 -239
- package/dist/assets/{ExpressPayPage-BbHx9h8j-Jtoo_XSn.js → ExpressPayPage-DhoNmyC2-Ixqn7FeR.js} +15 -15
- package/dist/assets/{FeaturePreviewPage-72x3P-pq-fDKDe74V.js → FeaturePreviewPage-GSwhPxgP-C20k6nV5.js} +2 -2
- package/dist/assets/{FollowStepsSection-BT_WjsEy-6nsqXk2v.js → FollowStepsSection-DaueHRo4-DdiQ4lOn.js} +11 -11
- package/dist/assets/{GlobalReviewListPage-C5h9rvVb-BrdUyPnT.js → GlobalReviewListPage-DG7_1HOT-mLv5NHYa.js} +8 -8
- package/dist/assets/{InformationCardStack-CjpOEuJF-DF2z_fcp.js → InformationCardStack-zc-BxR7F-B2cR2Vrc.js} +4 -4
- package/dist/assets/{InsightsCardStack-CkxN0Fd6-D3ds4snJ.js → InsightsCardStack-DxCA5sFh-CBXIO7T2.js} +14 -14
- package/dist/assets/InsightsSection-BdFG3j3R-DpGjm8qb.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-CN3x9o-8-n2lkrWPc.js → IntegrationsSettingsPage-CaiL3kqS-yWfc1-ip.js} +4 -4
- package/dist/assets/{InternationalWireSwiftDetailsPage-C1WTGANK-CX6ZkpbL.js → InternationalWireSwiftDetailsPage-BrQVSzeS-DauYa5_z.js} +19 -19
- package/dist/assets/InternationalWireVerificationPage-NaLnhW9C-D3Wh10D9.js +65 -0
- package/dist/assets/InviteFormPage-fjqv2l7h-CoWToBnJ.js +312 -0
- package/dist/assets/{InvitePageListView-BbQyUnv0-DMumTMJP.js → InvitePageListView-CQecQhxr-BNu8hXMY.js} +48 -48
- package/dist/assets/InvitePeoplePage-DAEBuOnk-jK8Ueocl.js +12 -0
- package/dist/assets/InvoiceUploadSection-58l6ePuH-BuOyGSAC.js +140 -0
- package/dist/assets/{IssueChargeCardPage-BT9h01l_-siq7xJ-s.js → IssueChargeCardPage-Bkxqsgax-BMc-YwRY.js} +30 -30
- package/dist/assets/{LabeledAddressValue-DF623NAW-D4a6OVhw.js → LabeledAddressValue-CZfFV97h-DWDhZW5u.js} +2 -2
- package/dist/assets/LabeledAddressValueField-D66XOhMx-Di6mjf7B.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-DNFUkVLh-CuadpuTO.js → LabeledControlledCheckBoxField-BtnsqE4D-CLMK-CUC.js} +2 -2
- package/dist/assets/{LabeledCountryMultiSelectField-B5vytqi_-BXGWCwpL.js → LabeledCountryMultiSelectField-kopByxLB-CVecMMvH.js} +3 -3
- package/dist/assets/{LabeledCreatableSingleSelectField-DN5wCaeU-bysGqgYr.js → LabeledCreatableSingleSelectField-B6An-cwq-DxTaWad8.js} +3 -3
- package/dist/assets/LabeledDocumentField-D_ZD8JTn-BbI3Z3Te.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-BvdkjSR_-0cU3E71g.js → LabeledDropDownFormattedTextField-CJ7ncCzH-CmOBBbLT.js} +8 -8
- package/dist/assets/{LabeledText-BDkcgGG4-YJ-8g03K.js → LabeledText-A1h_ionS-YHsepFfP.js} +4 -4
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BnDEbwhn-BjMBeUGB.js → LabeledUserSingleSelectWithSubtitlesField-IYaUvqgY-BQ0ZCt10.js} +17 -17
- package/dist/assets/{LabeledZeniRolesDropDownField-CY2feiXB-HP_5dGNT.js → LabeledZeniRolesDropDownField-DmynBXbJ-BkBy6SHA.js} +16 -16
- package/dist/assets/{LinkJETransactionPage-Bc3h7Bsx-Wiea8FhX.js → LinkJETransactionPage-D6-fL4a6-DPNZmHzv.js} +5 -5
- package/dist/assets/LockCardPage-BDlnh_zf-coxMaBNB.js +623 -0
- package/dist/assets/{LowBalancePopup-CKSy3iEi-DCgRxDtE.js → LowBalancePopup-CBPl_udd-D2XBBf4O.js} +6 -6
- package/dist/assets/MagicLinkACHDetailsPage-eq8wlXQr-DtgQBKXr.js +1 -0
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-zLqzW0ZA-DNf2ZFPO.js → MagicLinkDomesticWireDetailsPage-BcNOhJgL-C8mUkiDX.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-OpEbz58h-DNNhjP9x.js → MagicLinkInternationalWireDetailsPage-Df8XYlkg-BRWnjp0l.js} +1 -1
- package/dist/assets/MagicLinkSuccessPage-Cl461HWp-CO6oeX5F.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-D38JxxrQ-CU50p6sN.js → MagicLinkTitleSection-DoIMYrRv-BlE9zH37.js} +4 -4
- package/dist/assets/MailingDetailsSection-NdwWGQ88-D7MwCKtI.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-TSaL2Z3R-7urnLeL-.js → MyBankConnectionsSettingsPage-BU6TBzI1-DN5Npe5i.js} +10 -10
- package/dist/assets/{MyPendingActivationChargeCardListPage-BvcQUu1g-BAib1puz.js → MyPendingActivationChargeCardListPage-DcunCDU6-gyBwBEb_.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-AqrcruM6-CFhzI6VI.js → MyProfileSettingsPage-DF7ahyXE-B1LJnYuu.js} +7 -7
- package/dist/assets/{NavBarWithPicker-BpjOj0Mh-B0IyZ-5p.js → NavBarWithPicker-D2v1fhLS-C3H8GgqL.js} +5 -5
- package/dist/assets/{NavigationArrow-wyRPTk_w-CBPTcVzh.js → NavigationArrow-CWUL-6kN-BrqMd9Lj.js} +2 -2
- package/dist/assets/{NavigationDots-D4jbU1WN-2Zgm3tFB.js → NavigationDots-c-XSrFzE-Dxzsqafk.js} +4 -4
- package/dist/assets/{NewGlobalMerchantPage-B-aRURcQ-DM9ZiThQ.js → NewGlobalMerchantPage-FGEO68I8-B7wryl8V.js} +9 -9
- package/dist/assets/{NoDataChart-tpjEi1Wb-CneSdGWB.js → NoDataChart-DJhSgtLu-B7rWK9ww.js} +4 -4
- package/dist/assets/NoDataTable-BZiwo2qK-1fFq9QL7.js +8 -0
- package/dist/assets/{NotFoundPage-aEkhvzEG-5jUiDOLs.js → NotFoundPage-BN5unYX8-RIPoUtcm.js} +5 -5
- package/dist/assets/{NotificationSettingsPage-CMNyI8E6-BB9rHV42.js → NotificationSettingsPage-d8kHDj0M-BR4XfDGy.js} +31 -31
- package/dist/assets/{NotificationsListConfig-CqxCGQSM-CNk3ZSrm.js → NotificationsListConfig-ThKLok_w-DiwvAaDh.js} +1 -1
- package/dist/assets/{NotificationsPage-xmWyvsYE-DgxInQel.js → NotificationsPage-Uvu6XESA-C7IDz_PV.js} +28 -28
- package/dist/assets/{OpExByVendorPage-BwWSNQjj-ArHXz_mI.js → OpExByVendorPage-QyqRkD2_-BZtZlU0k.js} +8 -8
- package/dist/assets/{OverlayContainerPage-BG9y5C0t-C04r--J3.js → OverlayContainerPage-BG9y5C0t-B5Ccc20I.js} +1 -1
- package/dist/assets/PandLWithForecastPage-DJ2v5qbE-D34Zu7P_.js +123 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-Cg-iwsq9-yL-9Kg03.js → PaymentAccountSetupBillingAddressSection-q5z8XZFC-BXoCztnc.js} +12 -12
- package/dist/assets/{PeoplePage-CgLumn7f-DpLXgwxu.js → PeoplePage-C5ZdpVyR-D5gb3H9N.js} +34 -34
- package/dist/assets/{Preview-BoQzKWlV.js → Preview-M7TzJD6j.js} +1 -1
- package/dist/assets/{ProductsCarousel-LGZZZ4bc-BrX6HY26.js → ProductsCarousel-CXjLTOLy-qhgO5u3T.js} +4 -4
- package/dist/assets/{PromoBaseCards-DMnQ-nBZ-DDlepqsM.js → PromoBaseCards-CN9uZfG4-4ZG6rDcT.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-ufRcAeE8-jq-VIkh3.js → QBOConnectionDialog-CXSi1Pd9-BlV5xAad.js} +3 -3
- package/dist/assets/{QBOSetupSection-BaxLXdyW-Bw8JqvSl.js → QBOSetupSection-BrtLMvEP-CWf9qAKV.js} +19 -19
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CE0CxjTY-s7g4Epqs.js → ReimbursementApprovalRuleDetailPage-CS1BQ7pL-gwQi2ubd.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DDNhjbbG-e47fcCBo.js → ReimbursementApprovalRulesPage-aLRkhkZB-CtUN1jCI.js} +7 -7
- package/dist/assets/{ReimbursementDetailPage-BOW1JodW-Br3QbgaE.js → ReimbursementDetailPage-Dr5BTvEq-BkIwEWVX.js} +17 -17
- package/dist/assets/{ReimbursementPromoPage-lD4FRDbt-BTRv0wOn.js → ReimbursementPromoPage-C5Z0mVhQ-sIeJk3bD.js} +8 -8
- package/dist/assets/{ReimbursementSetUpPage-vZd1l3-L-BJb01JMz.js → ReimbursementSetUpPage-CXhOBErm-DH5oFO_k.js} +7 -7
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BV1eoHFe-Ct7RQx5a.js → ReimbursementsBulkReviewDrawerPage-CA0n0mau-YPT0uXmT.js} +1 -1
- package/dist/assets/{ReloadCard-DZJ1-x96-12T5DybX.js → ReloadCard-Bjp8ygC2-QCThgpLx.js} +6 -6
- package/dist/assets/{ReportTableViewSelector-NmHJk-6O-Bo6jFRe0.js → ReportTableViewSelector-DTk1dNWC-B6Y4EDN-.js} +9 -9
- package/dist/assets/ReportsPage-DrjOGopt-DJaJ6UxU.js +258 -0
- package/dist/assets/{RevenueChart-CKjVL6iT-Bl6arWa6.js → RevenueChart-CqGvXDr4-ls1jVoKH.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-Dm5-QehL-C1ebQa3V.js → ReviewDetailsPage-CWBP7FBN-BDBxmvOT.js} +19 -19
- package/dist/assets/{ReviewOverlay-DyTC2zKj-Cqqa9ybn.js → ReviewOverlay-Cxkp85Kw-C7d3vwBi.js} +6 -6
- package/dist/assets/RoleWithToolTip-CqLxmtj6-BNUOWMRG.js +22 -0
- package/dist/assets/ScheduleDetailsFixedAssetsPage-CYvlB3Nf-BjdxIH5b.js +37 -0
- package/dist/assets/ScheduleDetailsPage-CZXJ15tN-CjrCADWR.js +37 -0
- package/dist/assets/ScheduleSequenceTable-DNPID_7F-j2fgEjwp.js +326 -0
- package/dist/assets/{ScreenRoutes-CCqT3xt1.js → ScreenRoutes-DJ_rUo9A.js} +1 -1
- package/dist/assets/{SetUpAccountSection-BkGBS9x_-R8tgE_Z9.js → SetUpAccountSection-_WPR-q2V-DrJlA8IQ.js} +16 -16
- package/dist/assets/{SignIn-DybDQnmR-ByUOpVOm.js → SignIn-CDEsZw_T-0YUs2QmP.js} +33 -33
- package/dist/assets/SignInScreen-CUXsEOc0.js +1 -0
- package/dist/assets/{SpendManagementListViewPage-DkEZTojy-CA6_5Fky.js → SpendManagementListViewPage-MOCWuROI-DKR38Veg.js} +11 -11
- package/dist/assets/{SpendManagementPerTabPage-CR9CphX3-BEr99KbG.js → SpendManagementPerTabPage-BeK0SCeE-D8khDgh_.js} +43 -43
- package/dist/assets/{SpendManagementSection-DqDra2TJ-DXPdzdx4.js → SpendManagementSection-DZFPfKNi-BUQ2S0Kz.js} +17 -17
- package/dist/assets/{StatementItem-DSuaMb54-ChcIWFK-.js → StatementItem-DjvU5wiI-DHTNeSpB.js} +2 -2
- package/dist/assets/StatementsPage-DYLp_e7W-C5hw_hkQ.js +58 -0
- package/dist/assets/{StatusSwitcher-Z7jo_R2B-D-RVNmDS.js → StatusSwitcher-jxaonB4S-Dw8Z5KsP.js} +2 -2
- package/dist/assets/{SubTabSwitcher-DJvtpJh2-CqJlCEZ1.js → SubTabSwitcher-CudjNlsi-Dk2m1EXt.js} +3 -3
- package/dist/assets/{SummaryCard-D4k-35Mt-CKKk3xUZ.js → SummaryCard-DPOhBmkr-Cj1Lt-Mp.js} +1 -1
- package/dist/assets/{TaskManagementPage-Cadtu3qQ-zX8lQopX.js → TaskManagementPage-CTMoHv0R-DzrReeZE.js} +13 -13
- package/dist/assets/{TimeRangeSwitcher-CXt00my3-kyL42Suj.js → TimeRangeSwitcher-SqY2MHGs-Bpa_mFEa.js} +5 -5
- package/dist/assets/{TimeframeSwitcher-D0ujXDLd-DkH3ill0.js → TimeframeSwitcher-BlJ2fuHy-8yHS99Lr.js} +4 -4
- package/dist/assets/{TimeframeSwitcherWithToggle-CMzQ2qRz-CKP0fk1A.js → TimeframeSwitcherWithToggle-Dgc1odUH-CNwpIwWb.js} +4 -4
- package/dist/assets/{TopExCard-BmRXVrxo-D8yAs-m9.js → TopExCard-CG8YLsYe-CsdBprjg.js} +11 -11
- package/dist/assets/{TopExDetailPage-Ds-BZjbz-IOO7_XQl.js → TopExDetailPage-TvYCbzSP-C1DN6y7-.js} +16 -16
- package/dist/assets/{TransactionActivityLogPage-CKIHtz5l-D-dTYDgC.js → TransactionActivityLogPage-BL3vEAdU-B_s3Ii9P.js} +11 -11
- package/dist/assets/{TransactionDetailPage-B1UKqtkR-BE9V0dPT.js → TransactionDetailPage-DUouBL0o-BwsVWjsw.js} +26 -26
- package/dist/assets/{TransactionList-BE3ODDi0-BDIJTskc.js → TransactionList-B16NONME-MhxbTKXX.js} +18 -18
- package/dist/assets/{TransactionListBig-JcBvCcMd-HNZ38dTS.js → TransactionListBig-CItPbTRV-CTDy7YXE.js} +10 -10
- package/dist/assets/TransactionListPage-DNecYY8M-DvyKlW5R.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-BCtWJV5U-CC-HiQvd.js → TransactionVendorDetailPage-DpqisXN8-BeIl3VIo.js} +6 -6
- package/dist/assets/{TransferDrawerPage-DoIPGIdB-JAB5Sz6q.js → TransferDrawerPage-Dsmbswu0-DuQeRo8o.js} +24 -24
- package/dist/assets/{TreasuryOverviewPage-lmaT3YkG-C6wF0pBN.js → TreasuryOverviewPage-BcRpcYmB-B_2n4w_R.js} +40 -40
- package/dist/assets/{TreasuryPromoPage-avx9YENY-CaSHYgG2.js → TreasuryPromoPage-DOO_OMRa-Nn5daNmi.js} +19 -19
- package/dist/assets/{TreasuryStatementsPage-BguLbwsn-B5E0Q7zz.js → TreasuryStatementsPage-A_U7bEy5-DdFUWuDa.js} +7 -7
- package/dist/assets/TreasuryTaxLetterPage-BsJn-BgX-CQZpySFF.js +58 -0
- package/dist/assets/{TrendChart-rzKYI72b-x69qqEF1.js → TrendChart-GMMat-NG-CAc9nAfG.js} +2 -2
- package/dist/assets/{TrendWithTransactions-atLfDrR5-B0aSX9-q.js → TrendWithTransactions-CrA4opNV-BTtTpjeg.js} +6 -6
- package/dist/assets/{UncategorizedAccountsMappingPage-5VnrVRL7-DkHh43Pm.js → UncategorizedAccountsMappingPage-CrzbFGOi-B7V18O6N.js} +10 -10
- package/dist/assets/{UnitIntegrationPage-CRtWNQ9s-BlzFosEv.js → UnitIntegrationPage-XZY6zJa7-Cq4xbYW7.js} +13 -13
- package/dist/assets/{UploadAdditionalDocumentOverlay-D0FPdZ3n-DT1NoKwU.js → UploadAdditionalDocumentOverlay-eqwSLigx-Ci9eqDqb.js} +2 -2
- package/dist/assets/Vendor2FAPopup-BHDivuPB-Cn8-yps4.js +1 -0
- package/dist/assets/VendorACHDetailsPage-DJ4Crnr0-adpyH1RD.js +1 -0
- package/dist/assets/{VendorDetailPage-DJ54yvWY-DtibNEE0.js → VendorDetailPage-DEu-yS8w-DNet96B_.js} +24 -24
- package/dist/assets/VendorDomesticWireDetailsPage-WFcOmpiN-CHE49l9v.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-B0LEUR_g-CsMru02g.js → VendorFiling1099EditablePage-C461SzO0-BVUWElpF.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-7VUbqyR2-B-t_-gOw.js → VendorFirstReviewPage-klbCHS04-BFjy2m5_.js} +32 -32
- package/dist/assets/{VendorInternationalWireDetailsPage-CHFMTDYG-UTfMlqxi.js → VendorInternationalWireDetailsPage-DY0V-VbO-C2xJ0CsJ.js} +26 -26
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-B8sx02I_-CE29O6S4.js +1 -0
- package/dist/assets/{VendorsAccountsSection-By1Bhh27--5FkvREo.js → VendorsAccountsSection-Cqcr-ArD-DAAwd5Iw.js} +4 -4
- package/dist/assets/{VerifyDevice-gXwkGIjJ-ffTqb92V.js → VerifyDevice-Dhu5iywf-HX-kw30c.js} +8 -8
- package/dist/assets/{VideoPlayer-DBU7xwIG-G3eDrHhm.js → VideoPlayer-ZGjx_Hp7-Nomi0VD9.js} +3 -3
- package/dist/assets/VideoPopup-R3u0N_if-DgVn2CAl.js +31 -0
- package/dist/assets/{WarningsDrawerPage-ByCZSQ-E-S67fi1hF.js → WarningsDrawerPage-TerLFC4m-C5ptwy3N.js} +8 -8
- package/dist/assets/{ZeniAccountDetailPage-DlCJ5UGq-D5M3rInN.js → ZeniAccountDetailPage-DQB7sXU9-CETOq0EN.js} +16 -16
- package/dist/assets/{ZeniAccountListViewPage-DTiBd3Ze-DvMCmuRh.js → ZeniAccountListViewPage-BwXKgf6g-DrDKS22-.js} +29 -29
- package/dist/assets/{ZeniAccountNavBarPieces-DAcKYXqh-C3pU1dfO.js → ZeniAccountNavBarPieces-CHUTFAWG-DBX2rB9H.js} +4 -4
- package/dist/assets/{ZeniAccountPromoPage-MPekAyNe-BSRrdgoj.js → ZeniAccountPromoPage-BkfJuMNV-DSkmb6Z5.js} +28 -28
- package/dist/assets/ZeniAccountSetupPage-C3drM4Zs-D-HaFV-S.js +36 -0
- package/dist/assets/{ZeniCopyright-B1muAGCe-RlRc6Vn6.js → ZeniCopyright-CznSgVJF-iBl18n1m.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CX1FGWrl-Sctz6Ol2.js → ZeniTransferAmountSlider-C77DEl-C-CZljZWCZ.js} +7 -7
- package/dist/assets/{add-to-wallet-DgdBD8_G-D76iCYbd.js → add-to-wallet-DgdBD8_G-CM6IrCpv.js} +1 -1
- package/dist/assets/{analytics-R4GG3mhr.js → analytics-B_VWX-BQ.js} +1 -1
- package/dist/assets/analyticsHelper-B8fd42um.js +1 -0
- package/dist/assets/{analyticsHelper-BznLUYs2-PwxmAlPi.js → analyticsHelper-Bh8o1v3y-C4Sojiq_.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-BDgsRTSD.js → arrow-south-east-round-PEovUgvH-CQGzMyhs.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-keRK9wSo.js → auto-transfer-rule-mbafm5D3-Ba30im8q.js} +1 -1
- package/dist/assets/{chartTypes-Bckf_DAs-Bp9EYUYX.js → chartTypes-C14YY2Rq-DHigu710.js} +1 -1
- package/dist/assets/{commonDimensions-Bno19oYe-Ckn-nRQz.js → commonDimensions-CVpc-NCw-D6CVEqC_.js} +1 -1
- package/dist/assets/{commonTypes-CATFe6V_-DoBP4FJ5.js → commonTypes-Ec-PxfpT-Dj2109B_.js} +1 -1
- package/dist/assets/{constants-CEF2OtLN.js → constants-DgwGHN1r.js} +1 -1
- package/dist/assets/{core-DpPwA1EY.js → core-Cjh03OPu.js} +1 -1
- package/dist/assets/{dash.all.min-DdEpb4Db.js → dash.all.min-CCSNDyIp.js} +1 -1
- package/dist/assets/downloadPdf-BuPJ6cfr-Dyz4TLVR.js +1 -0
- package/dist/assets/{empty-nUYKFD2C.js → empty-DlGh28fD.js} +1 -1
- package/dist/assets/{empty-r8v2CG_J.js → empty-iTJcp-B8.js} +1 -1
- package/dist/assets/{epic-BSSFYfU0.js → epic-hN0N_N79.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-v4xTyl5z.js → gift-box-Cmt9OgIZ-TbiyaSAn.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-CDoGR872.js → graphic-no-data-l-DU4J8fDt-CxIH_dl6.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BB-JG1AW.js → graphic-no-data-net-burn-l-CzmycA0m-CUkTpFd-.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-B0fu0zwh.js → handshake-BPg58FML-Dbtylvfc.js} +1 -1
- package/dist/assets/{helper-BCh4SWyd-CwI6N1FK.js → helper-AgH8nJln-Bk3G7LVh.js} +4 -4
- package/dist/assets/{index-CMalJxiA.js → index-B5cuJQnR.js} +1 -1
- package/dist/assets/{index-VSH6R5vg.js → index-Bk7UJBjY.js} +1 -1
- package/dist/assets/{index-BTvJvxFI.js → index-C4Fispms.js} +1 -1
- package/dist/assets/{index-C6nwvBZg.js → index-ChCGry2d.js} +1 -1
- package/dist/assets/{index-BlPcRVKX.js → index-DAwCqq2t.js} +1 -1
- package/dist/assets/{index-SEvYEB33.js → index-DFowIMIZ.js} +1 -1
- package/dist/assets/{index-uV9C0lq0.js → index-aCBnCBoN.js} +3602 -3593
- package/dist/assets/{lexical-WuSd_Y3l.js → lexical-9REae7LV.js} +1 -1
- package/dist/assets/{liveblocks-PPyiYwu4.js → liveblocks-CEY7tsth.js} +1 -1
- package/dist/assets/{lottie-CwowL814.js → lottie-BmLFYENY.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DTyQHWMc-CfKVg64X.js +1 -0
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-D7pjBGp6-Bef-KTrw.js +1 -0
- package/dist/assets/mapSpacerToTreeNode-Cd4FCXAf-BQ_XhzIu.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-Drhl_lnP-CrhrR0QG.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-UsawmMLa-_s__LV61.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-B-aNuSSK-BvCkLSPj.js +1 -0
- package/dist/assets/{mui-CgOsYmSB.js → mui-BosmckWV.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-npur6fd8.js → page-detail-CWX5S47F-C2A7RuXG.js} +1 -1
- package/dist/assets/{panelSelectedMixin-Cddsb26L-BDFz9brn.js → panelSelectedMixin-Cddsb26L-CWVsp72I.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-CaCRbViv.js → radio-default-CiSgisfh-Dhw9u_Vt.js} +1 -1
- package/dist/assets/{react-D6M30H8E.js → react-CLFAbS9n.js} +2 -2
- package/dist/assets/{react-DzADjYrb.js → react-D8DqvAAs.js} +1 -1
- package/dist/assets/{react-1JgjrFGc.js → react-DAXSMqh2.js} +1 -1
- package/dist/assets/{react-B5r5WB2A.js → react-DSh5n3Dg.js} +1 -1
- package/dist/assets/{react-D2UrnCU4.js → react-DT8qkoNX.js} +1 -1
- package/dist/assets/{react-5VwsKWlP.js → react-DTZ405nF.js} +1 -1
- package/dist/assets/{react-Bpsw4H-g.js → react-DxfKP-TY.js} +1 -1
- package/dist/assets/{react-C_FwXK63.js → react-ddvEC0y3.js} +1 -1
- package/dist/assets/{recharts-B5a8DAKj.js → recharts-CimMNwCJ.js} +1 -1
- package/dist/assets/{sentry-rcvLxAzW.js → sentry-DzaNjvx0.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DrUeUva_.js → shield-DOlUxcFf-Cva3YFBn.js} +1 -1
- package/dist/assets/toCOABalancesWithID-wh35N3no-ClXxioRe.js +1 -0
- package/dist/assets/toChartData-G5y-N82I-BBptd2Gk.js +1 -0
- package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-BkGK3BZ_.js → upload-reimbursement-receipt-O2N8vcO7-CMjD_kCZ.js} +1 -1
- package/dist/assets/{uploadAttachment-BLbU_iLy-Cn6htN7U.js → uploadAttachment-RbkIBMGO-TVHnian4.js} +17 -17
- package/dist/assets/{uploadReceipts-CIgkuVpu-Bgo2p-8x.js → uploadReceipts-CIgkuVpu-Dil-Qv4Z.js} +1 -1
- package/dist/assets/{url-C66ml4tg.js → url-KRGewpHH.js} +1 -1
- package/dist/assets/{url-Ce1cqXlU.js → url-ymOv7sCf.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-DY03cKku.js → useLongPress-GCK2COYQ-BgaoTE4k.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-BM7i27Wh.js → usp-line-BBd1wKwW-Bnk1sVWO.js} +1 -1
- package/dist/assets/{utils-GKlM-QyI.js → utils-THjX-QSp.js} +1 -1
- package/dist/assets/{zeni-epic-state-D5MWzrZ6.js → zeni-epic-state-BNpJ2txa.js} +7 -7
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AccountInfoPage-XrG_Cs9Q-BjKmCZKu.js +0 -18
- package/dist/assets/AddAddressForCardDrawer-BjL_E7Jt-BqV5wj25.js +0 -6
- package/dist/assets/ApAgingDetailPage-BdNgdMZi-DJq3tAqz.js +0 -46
- package/dist/assets/AppDrawerContent-DpoXoHZU-DR5CGNls.js +0 -92
- package/dist/assets/ArAgingDetailPage-Cl5P98Kf-BFShKipH.js +0 -46
- package/dist/assets/BalancesInsightWithToolTip-B0YZt5m3-DjqAngZd.js +0 -38
- package/dist/assets/ChargeCardStatementsPage-B-XeiOnb-DLIBzbq-.js +0 -60
- package/dist/assets/ConfettiBurst-BCkkcLA1-CXjExpzp.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-C_wG7Q8O-BR0kgKEZ.js +0 -1
- package/dist/assets/DomesticWireDetailsPage-QhDoZX5h-BgrN8fs3.js +0 -21
- package/dist/assets/EditPeoplePage-DD6wg7xI-_tzQnjsD.js +0 -55
- package/dist/assets/EntityDetailPage-levtFHaa-DA4k2cnL.js +0 -18
- package/dist/assets/InsightsSection-Cwd2cIP2-BnHpqv9D.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-H6gzEDg6-fjU1XMHZ.js +0 -65
- package/dist/assets/InviteFormPage-D56FOZEG-CMUlIs-X.js +0 -312
- package/dist/assets/InvitePeoplePage-D-XyBXhF-D4mjC05U.js +0 -12
- package/dist/assets/InvoiceUploadSection-DaJWTI5B-B6XbuKee.js +0 -140
- package/dist/assets/LabeledAddressValueField-B5eyO5LD-1yB-ANDh.js +0 -45
- package/dist/assets/LabeledDocumentField-H4V0rHKt-CfD-D1mp.js +0 -41
- package/dist/assets/LockCardPage-DIZ-1K3B-DoKRqXz4.js +0 -623
- package/dist/assets/MagicLinkACHDetailsPage-DdWD8eZA-BQF6ZaYY.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-fC1L-fjF-D0AcUoNI.js +0 -31
- package/dist/assets/MailingDetailsSection-_5DUMAiO-CN0GY3U_.js +0 -21
- package/dist/assets/NoDataTable-BtEKMdpl-5T10t8Bw.js +0 -8
- package/dist/assets/PandLWithForecastPage-GXzJgAFS-BaOt9ro5.js +0 -107
- package/dist/assets/ReportsPage-CqCp4w8y-DJ_z1O-2.js +0 -237
- package/dist/assets/RoleWithToolTip-Cu0ixEhp-CbBWt2cn.js +0 -22
- package/dist/assets/ScheduleDetailsFixedAssetsPage-9XyukA76-CCXXH9fn.js +0 -37
- package/dist/assets/ScheduleDetailsPage-CkMIJDcP-Pzn7oHhr.js +0 -37
- package/dist/assets/ScheduleSequenceTable-Dgb-vhXK-B0K_kZdi.js +0 -324
- package/dist/assets/SignInScreen-DTqfud4B.js +0 -1
- package/dist/assets/StatementsPage-BO3P2kKJ-Cx3q3Xoo.js +0 -58
- package/dist/assets/TransactionListPage-DqY2twbP-CMg44It6.js +0 -35
- package/dist/assets/TreasuryTaxLetterPage-BT_G7d-D-CkFo0wcb.js +0 -58
- package/dist/assets/Vendor2FAPopup-CH44a6ok-C6c_8fAz.js +0 -1
- package/dist/assets/VendorACHDetailsPage-YgMvjx2w-C_ciXBuk.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-CRsOlxyy-CCULw521.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-D0Fnosfi-7sDGJOsu.js +0 -1
- package/dist/assets/VideoPopup-Dxc93Pwx-4nt_V7AU.js +0 -31
- package/dist/assets/ZeniAccountSetupPage-CxYZzfiZ-r8QQEMaF.js +0 -36
- package/dist/assets/analyticsHelper-C5rhp2_h.js +0 -1
- package/dist/assets/downloadPdf-CkATqzUx-Dc-uQGNf.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DcYetEpP-CsO00r3l.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-CExgzViB-CdHm7xiF.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-D02PFsN8-CpAel0E8.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CoqcGXTM-BAVPnmdP.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-D0zXBGho-BFFFE8UF.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-_7RU9lwp-BmunaChV.js +0 -1
- package/dist/assets/toCOABalancesWithID-C-wpsGXP-BaAwN-7v.js +0 -1
- package/dist/assets/toChartData-C-X2WzOE-DjbtnWdG.js +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{V as t,b5 as Ao,ac as x,bP as
|
|
1
|
+
import{V as t,b5 as Ao,ac as x,bP as xe,aQ as U,dx as Bo,o as c,d as ee,aS as Sn,e as W,aG as $n,aA as Io,dy as vn,dz as Wo,O as I,u as w,dA as ti,dB as Vt,dC as Dt,cj as Rt,dD as Gt,x as D,dc as Et,ay as Ht,ab as rt,cv as De,bW as K,L as Oo,v as Mo,H as No,g as ce,aX as B,b1 as ni,bY as ii,ap as Ne,dE as Po,dF as se,ci as Kt,c8 as _n,ak as zo,ao as Ce,dG as at,dH as Pe,dI as st,an as S,cq as ie,dJ as Fo,w as Yt,dK as Ze,dL as Ln,dM as To,dN as Vo,dO as An,dP as Do,dQ as Ro,dR as Go,bb as oi,aY as V,b8 as Eo,cI as Ut,cH as Zt,dS as Ho,b9 as ri,cL as ai,b_ as Ko,dT as Yo,dU as Uo,dV as Bn,dW as In,dX as Zo,dY as Xo,c0 as Qo,bM as qo,dZ as Jo}from"./index-aCBnCBoN.js";import{n as a,c as N}from"./mui-BosmckWV.js";import{a as z,P as er}from"./sentry-DzaNjvx0.js";import{F$ as jt,FM as Xt,Gh as Qt,Gi as Re,Gj as qt,Gk as Jt,Gl as en,Gm as tn,Gn as li,Go as tr,FO as Ge,bm as Wn,bg as si,Gp as ci,cc as nr,bo as ir,G0 as di}from"./zeni-epic-state-BNpJ2txa.js";import{N as ct,D as or,R as rr,B as Se,u as _}from"./AccountRow-CdgvnPG8-BbJV8Q8M.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="80eeef31-0fdf-4ac4-b788-1ff5a7323d4e",e._sentryDebugIdIdentifier="sentry-dbid-80eeef31-0fdf-4ac4-b788-1ff5a7323d4e")}catch{}})();function Z(e,n){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return xe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function q(e){return U("0,0",e?.forecast)}function hi(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return xe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function Lt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return xe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function he(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return xe("0.00%",Math.floor(n*100)/100)}else return xe("0.00%",void 0)}function ue(e){if(e!=null&&e.forecast!=null){const n=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:n}))}else return U("0,0",null)}function ui(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const n=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return xe("0.00%",Math.floor(n*100)/100)}else return xe("0.00%",void 0)}function pi(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:n}))}else return U("0,0",null)}const Ee=(e,n,i)=>{const{startDate:o,balanceType:r}=n,{dateFormat:{visual:l}}=I.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${jt(o,l.MMMYYYYFormat,e)}`:Ct(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${I.getLocalizedStrings().reports.quarterPrefix}${jt(o,l.QYYYYformat,e)}`:Ct(r,i);case"year":return r==="default"||r==="default_with_percent"?`${jt(o,l.YYYYformat,e)}`:Ct(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function Ct(e,n){return I.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const Rg=(e,n,i)=>{const o=n.length==0?e:`${e}_${n.join("_")}`;return i!=null&&i.trim().length>0?`${o}_${i}`:`${o}_${Bo(10)}`},ar=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
width: 100%;
|
|
5
5
|
height: ${e=>e.heightValue}px;
|
|
6
6
|
justify-content: flex-start;
|
|
7
7
|
align-items: center;
|
|
8
|
-
padding-right: ${
|
|
9
|
-
`,
|
|
8
|
+
padding-right: ${_.wrapperPadding}px;
|
|
9
|
+
`,lr=a.div`
|
|
10
10
|
cursor: default;
|
|
11
11
|
user-select: none;
|
|
12
12
|
display: flex;
|
|
@@ -14,91 +14,91 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
14
14
|
flex-flow: row;
|
|
15
15
|
justify-content: flex-start;
|
|
16
16
|
align-items: center;
|
|
17
|
-
`,
|
|
17
|
+
`,sr=a.div`
|
|
18
18
|
display: flex;
|
|
19
19
|
justify-content: flex-start;
|
|
20
20
|
align-items: center;
|
|
21
21
|
gap: ${c.sp2};
|
|
22
|
-
width: ${
|
|
23
|
-
`,
|
|
22
|
+
width: ${_.leftHeadingWidth}px;
|
|
23
|
+
`,cr=a.div`
|
|
24
24
|
display: flex;
|
|
25
25
|
flex: 1 1 auto;
|
|
26
26
|
justify-content: flex-end;
|
|
27
27
|
align-items: center;
|
|
28
28
|
gap: ${c.sp4};
|
|
29
|
-
`,
|
|
30
|
-
width: ${
|
|
31
|
-
min-width: ${
|
|
29
|
+
`,dr=a(ie)`
|
|
30
|
+
width: ${_.bankBalanceWidth}px;
|
|
31
|
+
min-width: ${_.bankBalanceWidth}px;
|
|
32
32
|
text-align: right;
|
|
33
|
-
`,
|
|
34
|
-
width: ${
|
|
35
|
-
min-width: ${
|
|
33
|
+
`,hr=a(ie)`
|
|
34
|
+
width: ${_.clearedBalanceWidth}px;
|
|
35
|
+
min-width: ${_.clearedBalanceWidth}px;
|
|
36
36
|
text-align: right;
|
|
37
|
-
`,
|
|
38
|
-
width: ${
|
|
39
|
-
min-width: ${
|
|
40
|
-
`,
|
|
37
|
+
`,ur=a(ie)`
|
|
38
|
+
width: ${_.statusWidth}px;
|
|
39
|
+
min-width: ${_.statusWidth}px;
|
|
40
|
+
`,pr=a.div`
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-shrink: 0;
|
|
43
43
|
gap: ${c.sp3};
|
|
44
|
-
width: ${
|
|
45
|
-
min-width: ${
|
|
44
|
+
width: ${_.varianceWidth}px;
|
|
45
|
+
min-width: ${_.varianceWidth}px;
|
|
46
46
|
flex-direction: row;
|
|
47
47
|
justify-content: flex-end;
|
|
48
48
|
align-items: center;
|
|
49
49
|
text-align: center;
|
|
50
|
-
`,
|
|
51
|
-
width: ${
|
|
52
|
-
min-width: ${
|
|
50
|
+
`,gr=a.div`
|
|
51
|
+
width: ${_.variancePercentageWidth}px;
|
|
52
|
+
min-width: ${_.variancePercentageWidth}px;
|
|
53
53
|
text-align: right;
|
|
54
54
|
margin-right: ${c.sp2};
|
|
55
|
-
`,
|
|
55
|
+
`,fr=a.div`
|
|
56
56
|
display: flex;
|
|
57
57
|
justify-content: center;
|
|
58
58
|
align-items: center;
|
|
59
|
-
`,
|
|
59
|
+
`,xr=a.div`
|
|
60
60
|
display: flex;
|
|
61
61
|
justify-content: center;
|
|
62
62
|
align-items: center;
|
|
63
|
-
`;function
|
|
63
|
+
`;function mr({height:e}){const n=W();return t.jsx(ar,{heightValue:e,windowSize:n,children:t.jsxs(lr,{children:[t.jsxs(sr,{children:[t.jsx(fr,{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(xr,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,width:_.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(cr,{children:[t.jsx(dr,{children:t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:_.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(hr,{children:t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:_.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(pr,{children:[t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:_.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(gr,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,width:_.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(ur,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,width:_.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const wr=a.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: row;
|
|
66
66
|
height: ${e=>e.heightValue}px;
|
|
67
|
-
padding-right: ${
|
|
68
|
-
`;function
|
|
67
|
+
padding-right: ${_.wrapperPadding}px;
|
|
68
|
+
`;function yr({height:e}){return t.jsx(wr,{heightValue:e})}const br=a.div`
|
|
69
69
|
user-select: none;
|
|
70
70
|
display: flex;
|
|
71
71
|
width: 100%;
|
|
72
72
|
height: ${e=>e.height}px;
|
|
73
73
|
background-color: ${e=>e.bgColor?.hex()};
|
|
74
74
|
flex-direction: column;
|
|
75
|
-
padding-right: ${
|
|
76
|
-
`,
|
|
75
|
+
padding-right: ${_.wrapperPadding}px;
|
|
76
|
+
`,kr=a.div`
|
|
77
77
|
flex: 1 1 auto;
|
|
78
78
|
display: flex;
|
|
79
79
|
align-items: center;
|
|
80
80
|
height: ${c.sp8};
|
|
81
81
|
justify-content: flex-start;
|
|
82
82
|
align-items: center;
|
|
83
|
-
`,
|
|
83
|
+
`,jr=a.div`
|
|
84
84
|
display: flex;
|
|
85
85
|
flex-direction: row;
|
|
86
86
|
justify-content: flex-end;
|
|
87
|
-
width: ${
|
|
88
|
-
`,
|
|
87
|
+
width: ${_.leftHeadingWidth}px;
|
|
88
|
+
`,Cr=a.div`
|
|
89
89
|
display: flex;
|
|
90
90
|
flex: 1 1 auto;
|
|
91
91
|
flex-direction: row;
|
|
92
92
|
justify-content: flex-end;
|
|
93
|
-
`,
|
|
93
|
+
`,Sr=a(ri)`
|
|
94
94
|
user-select: none;
|
|
95
95
|
color: ${e=>e.theme.colors.primary};
|
|
96
|
-
width: ${
|
|
97
|
-
min-width: ${
|
|
96
|
+
width: ${_.leftTimeframeWidth}px;
|
|
97
|
+
min-width: ${_.leftTimeframeWidth}px;
|
|
98
98
|
flex: 1 1 auto;
|
|
99
|
-
|
|
99
|
+
`,$r=a(S)`
|
|
100
100
|
user-select: none;
|
|
101
|
-
`,
|
|
101
|
+
`,vr=a.div`
|
|
102
102
|
max-height: ${c.sp8};
|
|
103
103
|
min-height: ${c.sp8};
|
|
104
104
|
min-width: ${e=>e.widthValue}px;
|
|
@@ -111,38 +111,38 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
111
111
|
border-radius: ${c.sp2};
|
|
112
112
|
color: ${e=>e.theme.colors.primary};
|
|
113
113
|
margin-right: ${e=>e.marginRight===!0?c.sp2:c.sp0};
|
|
114
|
-
`,jr=a.div`
|
|
115
|
-
width: ${v.bankBalanceWidth}px;
|
|
116
|
-
`,Cr=a.div`
|
|
117
|
-
width: ${v.bankBalanceRightTimeframeWidth}px;
|
|
118
|
-
`,Sr=a.div`
|
|
119
|
-
width: ${v.clearedBalanceWidth}px;
|
|
120
|
-
margin-right: ${v.tickLeftMargin}px;
|
|
121
|
-
`,$r=a.div`
|
|
122
|
-
width: ${v.varianceTimeframeWidth}px;
|
|
123
|
-
align-self: flex-end;
|
|
124
|
-
`,vr=a.div`
|
|
125
|
-
width: ${v.spacerLineWidth}px;
|
|
126
114
|
`,_r=a.div`
|
|
127
|
-
width: ${
|
|
128
|
-
`,
|
|
115
|
+
width: ${_.bankBalanceWidth}px;
|
|
116
|
+
`,Lr=a.div`
|
|
117
|
+
width: ${_.bankBalanceRightTimeframeWidth}px;
|
|
118
|
+
`,Ar=a.div`
|
|
119
|
+
width: ${_.clearedBalanceWidth}px;
|
|
120
|
+
margin-right: ${_.tickLeftMargin}px;
|
|
121
|
+
`,Br=a.div`
|
|
122
|
+
width: ${_.varianceTimeframeWidth}px;
|
|
123
|
+
align-self: flex-end;
|
|
124
|
+
`,Ir=a.div`
|
|
125
|
+
width: ${_.spacerLineWidth}px;
|
|
126
|
+
`,Wr=a.div`
|
|
127
|
+
width: ${_.statusWidth}px;
|
|
128
|
+
`,Xe=({title:e,type:n})=>t.jsx(vr,{widthValue:_[n],children:t.jsx($r,{children:e})});function Or({sectionTitle:e,height:n,isLoading:i}){const o=I.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(br,{height:n,children:t.jsxs(kr,{children:[t.jsx(jr,{children:t.jsx(se,{isLoading:i,customStyle:{height:c.sp4,width:_.leftLabelWidth},children:t.jsx(Sr,{"data-testid":x("account-recon-section-title",e),children:e})})}),t.jsxs(Cr,{children:[t.jsx(_r,{children:t.jsx(se,{isLoading:i,customStyle:{height:c.sp7,width:_.bankBalanceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Xe,{title:o.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(Lr,{}),t.jsx(Ar,{children:t.jsx(se,{isLoading:i,customStyle:{height:c.sp7,width:_.clearedBalanceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Xe,{title:o.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(Br,{children:t.jsx(se,{isLoading:i,customStyle:{height:c.sp7,width:_.varianceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Xe,{title:o.variance,type:"varianceTimeframeWidth"})})}),t.jsx(Ir,{}),t.jsx(Wr,{children:t.jsx(se,{isLoading:i,customStyle:{height:c.sp7,width:_.statusTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Xe,{title:o.status,type:"statusTimeframeWidth"})})})]})]})})}const Mr=a.div`
|
|
129
129
|
display: flex;
|
|
130
130
|
flex-direction: row;
|
|
131
131
|
height: ${e=>e.heightValue}px;
|
|
132
132
|
align-items: center;
|
|
133
|
-
padding-right: ${
|
|
134
|
-
`,
|
|
133
|
+
padding-right: ${_.wrapperPadding}px;
|
|
134
|
+
`,Nr=a(ri)`
|
|
135
135
|
user-select: none;
|
|
136
136
|
color: ${e=>e.theme.colors.primary};
|
|
137
|
-
`;function
|
|
137
|
+
`;function Pr({height:e,title:n}){return t.jsx(Mr,{heightValue:e,children:t.jsx(Nr,{"data-testid":x("account-recon-section-title",n),children:n})})}const zr=a.div`
|
|
138
138
|
display: flex;
|
|
139
139
|
flex: 1 1 auto;
|
|
140
140
|
width: 100%;
|
|
141
141
|
height: ${e=>e.heightValue}px;
|
|
142
142
|
justify-content: flex-start;
|
|
143
143
|
align-items: center;
|
|
144
|
-
padding-right: ${
|
|
145
|
-
`,
|
|
144
|
+
padding-right: ${_.wrapperPadding}px;
|
|
145
|
+
`,Fr=a.div`
|
|
146
146
|
cursor: default;
|
|
147
147
|
user-select: none;
|
|
148
148
|
display: flex;
|
|
@@ -151,13 +151,13 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
151
151
|
justify-content: flex-start;
|
|
152
152
|
align-items: center;
|
|
153
153
|
color: ${e=>e.theme.colors.primary};
|
|
154
|
-
`,
|
|
154
|
+
`,Tr=a.div`
|
|
155
155
|
display: flex;
|
|
156
156
|
flex: 1 1 auto;
|
|
157
157
|
justify-content: flex-start;
|
|
158
158
|
align-items: center;
|
|
159
159
|
gap: ${c.sp2};
|
|
160
|
-
`,
|
|
160
|
+
`,Vr=a(ie)`
|
|
161
161
|
user-select: none;
|
|
162
162
|
clear: both;
|
|
163
163
|
display: inline-block;
|
|
@@ -166,132 +166,132 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
166
166
|
text-overflow: ellipsis;
|
|
167
167
|
text-align: left;
|
|
168
168
|
color: ${e=>e.theme.colors.primary};
|
|
169
|
-
width: ${
|
|
170
|
-
min-width: ${
|
|
171
|
-
`,
|
|
169
|
+
width: ${_.leftLabelWidth}px;
|
|
170
|
+
min-width: ${_.leftLabelWidth}px;
|
|
171
|
+
`,Dr=a.div`
|
|
172
172
|
display: flex;
|
|
173
173
|
flex: 1 1 auto;
|
|
174
174
|
justify-content: flex-end;
|
|
175
175
|
align-items: center;
|
|
176
|
-
`,
|
|
177
|
-
width: ${
|
|
178
|
-
min-width: ${
|
|
176
|
+
`,Rr=a(ie)`
|
|
177
|
+
width: ${_.bankBalanceWidth}px;
|
|
178
|
+
min-width: ${_.bankBalanceWidth}px;
|
|
179
179
|
text-align: right;
|
|
180
|
-
`,
|
|
181
|
-
width: ${
|
|
182
|
-
min-width: ${
|
|
180
|
+
`,Gr=a(ie)`
|
|
181
|
+
width: ${_.clearedBalanceWidth}px;
|
|
182
|
+
min-width: ${_.clearedBalanceWidth}px;
|
|
183
183
|
text-align: right;
|
|
184
|
-
margin-left: ${
|
|
185
|
-
`,
|
|
186
|
-
width: ${
|
|
187
|
-
min-width: ${
|
|
184
|
+
margin-left: ${_.tickLeftMargin}px;
|
|
185
|
+
`,Er=a(ie)`
|
|
186
|
+
width: ${_.statusWidth}px;
|
|
187
|
+
min-width: ${_.statusWidth}px;
|
|
188
188
|
height: 1px;
|
|
189
|
-
`,
|
|
189
|
+
`,Hr=a.div`
|
|
190
190
|
display: flex;
|
|
191
191
|
flex-direction: row;
|
|
192
|
-
min-width: ${
|
|
193
|
-
width: ${
|
|
192
|
+
min-width: ${_.spacerLineWidth}px;
|
|
193
|
+
width: ${_.spacerLineWidth}px;
|
|
194
194
|
align-items: center;
|
|
195
|
-
`,
|
|
195
|
+
`,Kr=a.div`
|
|
196
196
|
width: 1px;
|
|
197
197
|
margin-left: ${c.sp3};
|
|
198
198
|
height: ${e=>e.heightValue}px;
|
|
199
199
|
background-color: ${e=>e.theme.colors.grey3};
|
|
200
|
-
`,
|
|
200
|
+
`,Yr=a.div`
|
|
201
201
|
display: flex;
|
|
202
202
|
flex-shrink: 0;
|
|
203
|
-
width: ${
|
|
204
|
-
min-width: ${
|
|
203
|
+
width: ${_.varianceTimeframeWidth}px;
|
|
204
|
+
min-width: ${_.varianceTimeframeWidth}px;
|
|
205
205
|
flex-direction: row;
|
|
206
206
|
justify-content: flex-end;
|
|
207
207
|
align-items: center;
|
|
208
208
|
text-align: center;
|
|
209
|
-
margin-left: ${
|
|
210
|
-
`,
|
|
209
|
+
margin-left: ${_.tickLeftMargin}px;
|
|
210
|
+
`,Ur=a(ie)`
|
|
211
211
|
border-radius: ${c.sp1};
|
|
212
212
|
color: ${e=>e.textColor.hex()};
|
|
213
|
-
min-width: ${
|
|
213
|
+
min-width: ${_.varianceNumberWidth}px;
|
|
214
214
|
text-align: right;
|
|
215
215
|
margin-right: ${c.sp2};
|
|
216
|
-
`,
|
|
216
|
+
`,Zr=a(ie)`
|
|
217
217
|
border-radius: ${c.sp1};
|
|
218
218
|
padding: ${c.sp0} ${c.sp1};
|
|
219
219
|
justify-content: center;
|
|
220
220
|
text-align: center;
|
|
221
221
|
color: ${e=>e.textColor.hex()};
|
|
222
222
|
background-color: ${e=>e.bgColor.hex()};
|
|
223
|
-
min-width: ${
|
|
224
|
-
`,{expenseAutomation:{accountRecon:{reconciliation:{headers:
|
|
223
|
+
min-width: ${_.variancePercentageWidth}px;
|
|
224
|
+
`,{expenseAutomation:{accountRecon:{reconciliation:{headers:On}}},common:{strings:{percentage:Xr,hyphen:lt}}}=I.getLocalizedStrings();function Qr({height:e,sectionData:n}){const i=W(),o=n.totalVariance,r=n.totalVariancePercentage,l=ce();return t.jsx(zr,{"data-testid":x("total-row-root-container"),heightValue:e,windowSize:i,children:t.jsxs(Fr,{isClickable:!1,"data-testid":x("total-row-container"),children:[t.jsxs(Tr,{children:[t.jsx(Se,{firstLetter:On.section[n.sectionId].subTitle.charAt(0),color:new B(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(Vr,{children:On.section[n.sectionId].subTitle})]}),t.jsxs(Dr,{children:[t.jsx(Rr,{children:n.totalBankBalance!=null?U("0,0",n.totalBankBalance):lt}),t.jsx(Gr,{children:n.totalClearedBalance!=null?U("0,0",n.totalClearedBalance):lt}),t.jsx(qr,{variance:o,variancePercentage:r}),t.jsx(Hr,{children:t.jsx(Kr,{heightValue:e})}),t.jsx(Er,{})]})]})})}const qr=({variance:e,variancePercentage:n})=>{const i=ce(),o=new B(i.colors.hero),r=new B(i.colors.hero),l=new B(i.colors.background),s=e!=null&&e.amount===0?"0%":n!=null?n===0?"0%":`${n.toFixed(2)}${Xr}`:lt;return t.jsxs(Yr,{children:[t.jsx(Ur,{textColor:o,children:e!=null?U("0,0",e):lt}),t.jsx(Zr,{textColor:r,bgColor:l,children:s})]})};function Jr(){return t.jsx(yr,{height:ct("section")})}function ea(){return t.jsx(mr,{height:ct("loading_in_progress")})}function ta(e,n){if(e.element.kind!=="timeframe_headers")return null;const i=I.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,o=e.element.data,r=o.accountIDs.length===0;return t.jsx(Or,{sectionTitle:i.section[o.sectionId].title,isLoading:r,isSticky:n,height:ct("timeframe_headers")})}const na=(e,n,i)=>{const o=e.element.data;return t.jsx(Qr,{isSticky:i,height:n,sectionData:o})},ia=(e,n)=>{const i=e.element.data,o=I.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(Pr,{height:n,title:o.section[i.sectionId].title})},oa=(e,n,i)=>{const o=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?o.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(rr,{height:n,accountRecon:o,isLastRow:i,isSelectedRow:r,onReviewClicked:e.config.accountReconciliationConfig?.onReviewClicked,onConnectClicked:e.config.accountReconciliationConfig?.onConnectClicked,onReconnectClicked:e.config.accountReconciliationConfig?.onReconnectClicked,onOpenDrawerClicked:e.config.accountReconciliationConfig?.onOpenDrawerClicked,onStatementAddClicked:e.config.accountReconciliationConfig?.onStatementAddClicked})},k={balanceHeight:c.sp4,balanceHeightInPx:w[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:c.sp4,balanceLeftMarginInPx:w[4],titleWidth:new D(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128};function ra(e){switch(e){case"section":return w[8];case"section_with_ac_only":return w[8];case"calculated_section":case"calculated_section_type1":return w[8];case"ac_group_report":case"ac_group_subaccount":return w[6];case"ac_subentity_total":case"ac_subaccount":case"ac_report":return w[6];case"title_string_only":case"total":return w[6];case"timeframe_headers":case"class_headers":case"headers_loading_in_progress":return w[11];case"timeframe_headers_with_forecast":return 98;case"loading_in_progress":case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function aa(e,n,i=0){const o=["summary"];switch(e){case"section":return!o.includes(n);case"section_with_ac_only":return!o.includes(n);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(o.includes(n)||n==="detailed"&&i>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(o.includes(n)||n==="detailed"&&i>0);case"title_string_only":return!o.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":case"class_headers":return!1;case"class":return!(n==="detailed"&&i>0);case"checkbox_and_name_only":return!0;default:return!1}}const pe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!0}},be=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},gi={emptyLeftContainer:new D(w[0],w[5])},la=a(S)`
|
|
225
225
|
margin-left: ${e=>!e.hasChildren&&e.depth!==0?c.sp3:c.sp2};
|
|
226
226
|
overflow: hidden;
|
|
227
227
|
white-space: nowrap;
|
|
228
228
|
text-overflow: ellipsis;
|
|
229
229
|
width: ${e=>k.titleWidth.value(e.windowSize)-(e.depth+1)*45}px;
|
|
230
|
-
`,
|
|
230
|
+
`,sa=a.div`
|
|
231
231
|
display: flex;
|
|
232
232
|
height: ${c.sp6};
|
|
233
233
|
align-items: center;
|
|
234
|
-
`,
|
|
234
|
+
`,ca=a.div`
|
|
235
235
|
display: flex;
|
|
236
236
|
height: ${c.sp6};
|
|
237
237
|
align-items: center;
|
|
238
|
-
`,
|
|
238
|
+
`,da=a.div`
|
|
239
239
|
height: ${c.sp6};
|
|
240
240
|
width: ${c.sp3};
|
|
241
|
-
`,
|
|
241
|
+
`,ha=a.div`
|
|
242
242
|
width: 14px;
|
|
243
243
|
height: ${c.sp1};
|
|
244
|
-
`,
|
|
244
|
+
`,ua=a.div`
|
|
245
245
|
width: ${c.sp2};
|
|
246
246
|
height: ${c.sp1};
|
|
247
247
|
`,fi=a.div`
|
|
248
248
|
width: ${e=>gi.emptyLeftContainer.valuePx(e.windowSize)};
|
|
249
249
|
height: ${c.sp1};
|
|
250
|
-
`,
|
|
250
|
+
`,ze=a.div`
|
|
251
251
|
display: flex;
|
|
252
|
-
`,
|
|
252
|
+
`,pa=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return t.jsxs(ze,{children:[r.depth===0?t.jsx(An,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Pe,{},o):t.jsx(st,{}):null,r.depth>=1?t.jsx(An,{depth:r.depth}):null]},i+o)}):null}),xi=({ancestorMetadata:e,depth:n,name:i})=>{const o=W();return n===0?e[n].hasChildren===!1?t.jsx(fi,{windowSize:o}):t.jsxs(ze,{children:[t.jsx(Ze,{depth:n}),t.jsx(Pe,{}),t.jsx(Ze,{depth:n+1})]}):t.jsxs(t.Fragment,{children:[[...Array(n+1).keys()].map(r=>{const l=e[r],s=r!==n?e[r+1]:void 0;return t.jsxs(ze,{children:[l.depth===0?t.jsx(Ze,{depth:l.depth}):null,r>=2||r===1&&(n===r?l.hasChildren===!0:s!=null&&!s.isLastNode)?n===1?t.jsx(Ln,{index:1}):t.jsx(Ln,{index:2}):null,(n===r?l.hasChildren===!0:s!=null&&!s.isLastNode)?t.jsx(Pe,{},r):t.jsx(st,{}),t.jsx(Ze,{depth:l.depth+1})]},i+r)}),n===1&&e[n].hasChildren!=!0?t.jsx(ua,{}):null]})},mi=({ancestorMetadata:e,depth:n,name:i})=>n===0?t.jsx(ha,{}):t.jsx(t.Fragment,{children:[...Array(n).keys()].map(o=>{const r=e[o],l=o!==n?e[o+1]:void 0;return t.jsxs(ze,{children:[r!=null&&r.depth===0?t.jsx(at,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Pe,{},o):t.jsx(st,{}),t.jsx(at,{depth:r!=null?r.depth+1:0})]},i+o)})}),ga=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return r==null?null:t.jsxs(ze,{children:[r.depth===0?t.jsx(at,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Pe,{},o):t.jsx(st,{}):null,r.depth>=1?t.jsx(at,{depth:r.depth}):null]},i+o)}):null}),fa=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})=>{let d=t.jsx(da,{});return e===0&&r&&(d=t.jsx(Uo,{collapsed:l,onIconClick:s})),e>0&&(r&&!o&&n&&(d=t.jsx(Bn,{collapsed:l,onIconClick:s})),i&&o&&n&&(d=t.jsx(In,{})),i&&o&&!n&&(d=t.jsx(Zo,{})),r&&o&&!n&&(d=t.jsx(Xo,{collapsed:l,onIconClick:s})),r&&o&&n&&(d=t.jsx(Bn,{collapsed:l,onIconClick:s})),n&&i&&(d=t.jsx(In,{}))),d},xa=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})=>t.jsx(ca,{children:t.jsx(fa,{depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})});function nn(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const i=W();return t.jsxs(sa,{children:[e.classDepth!=null?t.jsx(xi,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(fi,{windowSize:i}):null,t.jsx(ga,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(xa,{...e}),t.jsx(la,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:i,title:n,children:n})]})}const H={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 ma(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 wa(){return!0}const Qe=[new D(w[4],w[8]),new D(44,76),new D(69,102),new D(93,124),new D(113,143)],ya=a.div`
|
|
253
253
|
display: flex;
|
|
254
254
|
flex: 1 1 auto;
|
|
255
255
|
max-height: 1px;
|
|
256
256
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
257
|
-
`,
|
|
257
|
+
`,ba=a.div`
|
|
258
258
|
display: flex;
|
|
259
259
|
flex: 1 1 auto;
|
|
260
260
|
flex-flow: row;
|
|
261
261
|
justify-content: flex-start;
|
|
262
262
|
align-items: center;
|
|
263
|
-
`,
|
|
263
|
+
`,ka=a.div`
|
|
264
264
|
display: flex;
|
|
265
265
|
flex-direction: row;
|
|
266
266
|
flex-shrink: 2;
|
|
267
267
|
flex-grow: 1;
|
|
268
268
|
align-items: center;
|
|
269
269
|
background-color: ${e=>e.theme.colors.grey4};
|
|
270
|
-
width: ${e=>
|
|
271
|
-
max-width: ${e=>
|
|
272
|
-
${({isSticky:e})=>e?
|
|
270
|
+
width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
271
|
+
max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
272
|
+
${({isSticky:e})=>e?N`
|
|
273
273
|
position: -webkit-sticky;
|
|
274
274
|
position: sticky;
|
|
275
275
|
top: ${c.sp0};
|
|
276
276
|
left: ${c.sp0};
|
|
277
277
|
`:null}
|
|
278
|
-
`,
|
|
279
|
-
width: ${e=>e.noMarginForEntity?
|
|
280
|
-
max-width: ${e=>e.noMarginForEntity?
|
|
278
|
+
`,ja=a.div`
|
|
279
|
+
width: ${e=>e.noMarginForEntity?Qe[e.nestingLevel].value(e.windowSize)-w[5]:Qe[e.nestingLevel].value(e.windowSize)}px;
|
|
280
|
+
max-width: ${e=>e.noMarginForEntity?Qe[e.nestingLevel].value(e.windowSize)-w[5]:Qe[e.nestingLevel].value(e.windowSize)}px;
|
|
281
281
|
height: 1px;
|
|
282
|
-
`,
|
|
282
|
+
`,Ca=a.div`
|
|
283
283
|
display: flex;
|
|
284
284
|
flex: 1 1 auto;
|
|
285
285
|
max-height: 1px;
|
|
286
286
|
height: 1px;
|
|
287
287
|
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
288
|
-
`,
|
|
288
|
+
`,Sa=a.div`
|
|
289
289
|
display: flex;
|
|
290
290
|
flex: 1 1 auto;
|
|
291
291
|
max-height: 1px;
|
|
292
292
|
height: 1px;
|
|
293
293
|
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
294
|
-
`,
|
|
294
|
+
`,Mn=e=>{const n=W(),i=ce();return t.jsxs(ba,{"data-testid":x("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(ka,{windowSize:n,isSticky:e.isSticky,"data-testid":x("sub-entity-name-container","vendor_row_separator"),children:[t.jsx(ja,{"data-testid":x("sub-entity-empty-container","vendor_row_separator"),nestingLevel:e.nestingLevel,noMarginForEntity:e.noMarginForEntity,windowSize:n}),t.jsx(Ca,{"data-testid":x("sub-entity-name-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(Sa,{"data-testid":x("sub-entity-remaining-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function At({kind:e,isScrolling:n,subEntityProps:i}){switch(e){case"vendor_row_separator":return t.jsx(Mn,{nestingLevel:i?.nestingLevel??0,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!1,noMarginForEntity:i?.noMarginForEntity??!0});case"end_row_separator":return t.jsx(ya,{"data-testid":x("end-row-separator",e),isScrolling:n});case"subtotal_row_separator":return t.jsx(Mn,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,noMarginForEntity:i?.noMarginForEntity??!1})}}const wi=a.div`
|
|
295
295
|
display: flex;
|
|
296
296
|
flex: 1 1 auto;
|
|
297
297
|
width: fit-content;
|
|
@@ -321,17 +321,17 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
321
321
|
justify-content: flex-start;
|
|
322
322
|
`,ji=a(S)`
|
|
323
323
|
user-select: none;
|
|
324
|
-
min-width: ${
|
|
325
|
-
max-width: ${
|
|
324
|
+
min-width: ${H.balanceWidth};
|
|
325
|
+
max-width: ${H.balanceWidth};
|
|
326
326
|
text-align: right;
|
|
327
|
-
margin-left: ${
|
|
327
|
+
margin-left: ${H.balanceLeftMargin};
|
|
328
328
|
border: 1px solid transparent;
|
|
329
329
|
color: ${e=>e.theme.colors.hero};
|
|
330
330
|
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
331
331
|
&:hover {
|
|
332
332
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
333
333
|
}
|
|
334
|
-
|
|
334
|
+
`,$a=a(S)`
|
|
335
335
|
user-select: none;
|
|
336
336
|
clear: both;
|
|
337
337
|
display: inline-block;
|
|
@@ -347,10 +347,10 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
347
347
|
flex-grow: 1;
|
|
348
348
|
align-items: center;
|
|
349
349
|
height: ${e=>e.containerHeight}px;
|
|
350
|
-
width: ${e=>
|
|
351
|
-
max-width: ${e=>
|
|
350
|
+
width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
351
|
+
max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
352
352
|
background-color: ${e=>e.bgColor?.hex()};
|
|
353
|
-
${({isSticky:e})=>e?
|
|
353
|
+
${({isSticky:e})=>e?N`
|
|
354
354
|
position: sticky;
|
|
355
355
|
top: ${c.sp0};
|
|
356
356
|
left: ${c.sp0};
|
|
@@ -360,7 +360,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
360
360
|
&:hover {
|
|
361
361
|
color: ${e=>e.theme.colors.primary};
|
|
362
362
|
}
|
|
363
|
-
`,Si=({balance:e,isOpen:n})=>{const i=n?e?.balance:e?.totalBalance;return t.jsx(ki,{children:t.jsx(ji,{isClickable:!1,onClick:()=>null,children:U("0,0",i)})})},$i=({total:e})=>t.jsx(ki,{children:t.jsx(ji,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function
|
|
363
|
+
`,Si=({balance:e,isOpen:n})=>{const i=n?e?.balance:e?.totalBalance;return t.jsx(ki,{children:t.jsx(ji,{isClickable:!1,onClick:()=>null,children:U("0,0",i)})})},$i=({total:e})=>t.jsx(ki,{children:t.jsx(ji,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function va({isSticky:e,height:n,isScrolling:i,isLastNode:o,balances:r,total:l,vendor:s,backgroundColor:d,onEntityNameClick:h}){const u=W(),g="default",p=s?.name??"";return t.jsxs(wi,{"data-testid":x("ap-aging-report-row-root-container",p),containerHeight:n,bgColor:d,windowSize:u,children:[t.jsxs(yi,{"data-testid":x("ap-aging-report-row-container",p),style:{cursor:g},isClickable:!1,containerHeight:n-1,children:[t.jsxs(Ci,{onClick:()=>s?.id!=null?h?.(s.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:n-1,children:[s?.logo!=null?t.jsx(Gt,{photoUrl:s.logo.toString(),styles:{width:H.nameLogoWidth.valuePx(u),height:H.nameLogoHeight.valuePx(u)}}):t.jsx(Et,{name:p??"",size:c.sp4}),t.jsx($a,{children:p})]}),t.jsxs(bi,{"data-testid":x("ap-aging-report-row-balances-container",p),children:[r.map(f=>t.jsx(Si,{balance:f,isOpen:!0},f?.period)),t.jsx($i,{total:l})]})]}),t.jsx(vi,{isScrolling:i,isLastNode:o})]})}function _a({treeNodeId:e,isSticky:n,height:i,isScrolling:o,isLastNode:r,isOpen:l,balances:s,total:d,totalWithChildren:h,nestedCustomer:u,metadata:g,backgroundColor:p,onEntityNameClick:f,onClick:m}){const y=W(),b=g,$=u?.customer.name??"",C=u!=null?u.id.length-1:0,L=u?.hasSiblings??!1,v=u!=null?u.children.length!==0:!1,A=v,M=A?"pointer":"default",P=u!=null?u.isLeafCustomer:!1,E=()=>{m?.(e)};return t.jsxs(wi,{"data-testid":x("ar-aging-report-row-root-container",e),containerHeight:i,bgColor:p,windowSize:y,children:[t.jsxs(yi,{"data-testid":x("ar-aging-report-row-container",e),style:{cursor:M},isClickable:A,containerHeight:i-1,children:[t.jsx(Ci,{"data-testid":x("ar-aging-report-row-name-container",e),isSticky:n,windowSize:y,bgColor:p,containerHeight:i-1,children:t.jsx(nn,{displayName:$,depth:C,isLastNode:r,hasChildren:v,hasSiblings:L,isLeaf:P,collapsed:!l,subAccountAnscestorMetadata:b.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:E,onNameClick:()=>u?.id[0]!=null?f?.(u.id[0]):void 0})}),t.jsxs(bi,{children:[s.map(T=>t.jsx(Si,{balance:T,isOpen:l},T?.period)),t.jsx($i,{total:l?d:h})]})]}),t.jsx(vi,{isScrolling:o,subEntityProps:{nestingLevel:C,isSticky:n,noMarginForEntity:!0}})]})}function vi({isScrolling:e,isLastNode:n=!1,subEntityProps:i}){return n?t.jsx(At,{isScrolling:e,kind:"end_row_separator",subEntityProps:i}):t.jsx(At,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:i})}const La=a.div`
|
|
364
364
|
user-select: none;
|
|
365
365
|
display: flex;
|
|
366
366
|
flex: 1 1 auto;
|
|
@@ -371,7 +371,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
371
371
|
justify-content: flex-start;
|
|
372
372
|
align-items: center;
|
|
373
373
|
background-color: ${e=>e.bgColor?.hex()};
|
|
374
|
-
`,
|
|
374
|
+
`,Aa=a.div`
|
|
375
375
|
display: flex;
|
|
376
376
|
flex: 1 0 auto;
|
|
377
377
|
flex-direction: row;
|
|
@@ -380,13 +380,13 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
380
380
|
display: flex;
|
|
381
381
|
max-height: ${c.sp8};
|
|
382
382
|
min-height: ${c.sp8};
|
|
383
|
-
min-width: ${
|
|
383
|
+
min-width: ${H.balanceWidth};
|
|
384
384
|
justify-content: center;
|
|
385
385
|
align-items: center;
|
|
386
386
|
background-color: ${e=>e.theme.colors.background};
|
|
387
387
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
388
388
|
border-radius: ${c.sp2};
|
|
389
|
-
margin-left: ${
|
|
389
|
+
margin-left: ${H.balanceLeftMargin};
|
|
390
390
|
color: ${e=>e.theme.colors.primary};
|
|
391
391
|
`,Li=a(S)`
|
|
392
392
|
display: flex;
|
|
@@ -394,28 +394,28 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
394
394
|
flex-direction: row;
|
|
395
395
|
justify-content: center;
|
|
396
396
|
align-items: center;
|
|
397
|
-
height: ${
|
|
398
|
-
max-width: ${
|
|
397
|
+
height: ${H.balanceHeight};
|
|
398
|
+
max-width: ${H.balanceWidth};
|
|
399
399
|
width: 138px;
|
|
400
400
|
text-align: center;
|
|
401
401
|
column-gap: ${c.sp1};
|
|
402
402
|
color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
|
|
403
|
-
|
|
403
|
+
`,Ba=a.div`
|
|
404
404
|
max-height: ${c.sp8};
|
|
405
405
|
min-height: ${c.sp8};
|
|
406
406
|
display: flex;
|
|
407
407
|
flex-direction: row;
|
|
408
408
|
align-items: center;
|
|
409
|
-
min-width: ${e=>
|
|
409
|
+
min-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
410
410
|
color: ${e=>e.theme.colors.primary};
|
|
411
411
|
background-color: ${e=>e.bgColor?.hex()};
|
|
412
|
-
${e=>e.isSticky?
|
|
412
|
+
${e=>e.isSticky?N`
|
|
413
413
|
position: -webkit-sticky;
|
|
414
414
|
position: sticky;
|
|
415
415
|
top: ${c.sp0};
|
|
416
416
|
left: ${c.sp0};
|
|
417
417
|
`:""}
|
|
418
|
-
`,
|
|
418
|
+
`,Ia=a(S)`
|
|
419
419
|
display: flex;
|
|
420
420
|
align-items: center;
|
|
421
421
|
cursor: pointer;
|
|
@@ -425,24 +425,24 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
425
425
|
max-height: ${c.sp8};
|
|
426
426
|
min-height: ${c.sp8};
|
|
427
427
|
cursor: pointer;
|
|
428
|
-
`,
|
|
428
|
+
`,on=a.div`
|
|
429
429
|
display: flex;
|
|
430
430
|
column-gap: ${c.sp1};
|
|
431
431
|
cursor: pointer;
|
|
432
432
|
align-items: center;
|
|
433
433
|
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
|
|
434
|
-
`,Bi=a.div``,
|
|
434
|
+
`,Bi=a.div``,Ii=a(ai)`
|
|
435
435
|
width: 12px;
|
|
436
436
|
height: 12px;
|
|
437
437
|
cursor: pointer;
|
|
438
438
|
color: ${e=>e.theme.colors.hero};
|
|
439
|
-
`,
|
|
439
|
+
`,rn=a(Zt)`
|
|
440
440
|
width: 12px;
|
|
441
441
|
height: 12px;
|
|
442
|
-
`,
|
|
442
|
+
`,an=a(Ut)`
|
|
443
443
|
width: 12px;
|
|
444
444
|
height: 12px;
|
|
445
|
-
`,
|
|
445
|
+
`,Wa=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=()=>{o?.(ln(i),r)},s=n===r?i:"ascending";return t.jsxs(Ia,{active:n===r,"data-testid":x("duration-row-vendor-title",e),children:[r==="vendor"?I.getLocalizedStrings().reports.aging.apAging.vendor:I.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(on,{selectedForSort:n===r,children:t.jsx(Bi,{"data-testid":x("duration-row-vendor-sort-icon",e),onClick:l,children:s==="ascending"?t.jsx(an,{}):t.jsx(rn,{})})}),t.jsx(rt,{controller:n===r,children:t.jsx(Ii,{"data-testid":x("duration-row-vendor-sort-cancel-icon",e),onClick:()=>Wi({onSortOrderChanged:o})})})]})},Wi=({onSortOrderChanged:e})=>{e?.("descending","total")},Oa=({agingPeriod:e,sortKey:n="vendor",sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n===e?i:"ascending",l=()=>{o?.(ln(i),e)};return t.jsx(Ai,{"data-testid":x("duration-row-tick-container",e),children:t.jsx(_i,{"data-testid":x("duration-row-tick-element-container",e),children:t.jsxs(Li,{active:n===e,"data-testid":x("duration-row-timeframe-tick",e),children:[I.getLocalizedStrings().reports.aging.duration[e],t.jsxs(on,{selectedForSort:n===e,"data-testid":x("duration-row-sort-container",e),children:[t.jsx(Bi,{"data-testid":x("duration-row-sort-icon",e),onClick:l,children:r==="ascending"?t.jsx(an,{}):t.jsx(rn,{})}),t.jsx(rt,{controller:n===e,children:t.jsx(Ii,{"data-testid":x("duration-row-sort-cancel-icon",e),onClick:()=>Wi({onSortOrderChanged:o})})})]})]})})})},Oi=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n==="total"?i:"ascending",l=()=>{o?.(ln(i),"total")};return t.jsx(Ai,{"data-testid":x("duration-row-entity-total-tick-container",e),onClick:l,children:t.jsx(_i,{"data-testid":x("duration-row-entity-total-tick-element-container",e),children:t.jsxs(Li,{active:n==="total","data-testid":x("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?I.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:I.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(on,{selectedForSort:n==="total","data-testid":x("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(an,{}):t.jsx(rn,{})})]})})})},Ma=({reportId:e,agingPeriod:n,sortKey:i="vendor",sortOrder:o="ascending",onSortOrderChanged:r})=>n!=null?t.jsx(Oa,{sortKey:i,sortOrder:o,onSortOrderChanged:r,agingPeriod:n}):t.jsx(Oi,{reportId:e,sortKey:i,sortOrder:o,onSortOrderChanged:r});function Na({reportId:e,isSticky:n,height:i,agingPeriods:o,sortKey:r,sortOrder:l,backgroundColor:s,onSortOrderChanged:d}){const h=W();return t.jsxs(La,{height:i,bgColor:s,"data-testid":x("duration-row-root-container",e),children:[t.jsx(Ba,{"data-testid":x("duration-row-placeholder-name",e),isSticky:n,windowSize:h,bgColor:s,children:t.jsx(Wa,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})}),t.jsxs(Aa,{children:[o.map(u=>t.jsx(Ma,{reportId:e,agingPeriod:u,sortKey:r,sortOrder:l,onSortOrderChanged:d},u)),t.jsx(Oi,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})]})]})}const ln=e=>e==="ascending"?"descending":"ascending",Pa=[10,14,20,20,20],za=a.div`
|
|
446
446
|
display: flex;
|
|
447
447
|
flex: 1 1 auto;
|
|
448
448
|
width: fit-content;
|
|
@@ -450,14 +450,14 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
450
450
|
flex-direction: column;
|
|
451
451
|
height: ${e=>e.containerHeight}px;
|
|
452
452
|
background-color: ${e=>e.bgColor?.hex()};
|
|
453
|
-
`,
|
|
453
|
+
`,Fa=a.div`
|
|
454
454
|
user-select: none;
|
|
455
455
|
display: flex;
|
|
456
456
|
flex: 1 1 auto;
|
|
457
457
|
flex-flow: row;
|
|
458
458
|
justify-content: flex-start;
|
|
459
459
|
align-items: center;
|
|
460
|
-
`,
|
|
460
|
+
`,Ta=a.div`
|
|
461
461
|
display: flex;
|
|
462
462
|
flex: 1 0 auto;
|
|
463
463
|
flex-direction: row;
|
|
@@ -468,28 +468,28 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
468
468
|
justify-content: flex-start;
|
|
469
469
|
`,Ni=a(S)`
|
|
470
470
|
user-select: none;
|
|
471
|
-
min-width: ${
|
|
472
|
-
max-width: ${
|
|
471
|
+
min-width: ${H.balanceWidth};
|
|
472
|
+
max-width: ${H.balanceWidth};
|
|
473
473
|
text-align: right;
|
|
474
|
-
margin-left: ${
|
|
474
|
+
margin-left: ${H.balanceLeftMargin};
|
|
475
475
|
color: ${e=>e.theme.colors.primary};
|
|
476
476
|
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
477
|
-
`,
|
|
477
|
+
`,Va=a.div`
|
|
478
478
|
display: flex;
|
|
479
479
|
flex-direction: row;
|
|
480
480
|
flex-shrink: 2;
|
|
481
481
|
flex-grow: 1;
|
|
482
482
|
align-items: center;
|
|
483
483
|
height: ${e=>e.containerHeight-1}px;
|
|
484
|
-
width: ${e=>
|
|
485
|
-
max-width: ${e=>
|
|
484
|
+
width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
485
|
+
max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
486
486
|
background-color: ${e=>e.bgColor?.hex()};
|
|
487
|
-
${({isSticky:e})=>e?
|
|
487
|
+
${({isSticky:e})=>e?N`
|
|
488
488
|
position: sticky;
|
|
489
489
|
top: ${c.sp0};
|
|
490
490
|
left: ${c.sp0};
|
|
491
491
|
`:null}
|
|
492
|
-
`,
|
|
492
|
+
`,Da=a(S)`
|
|
493
493
|
user-select: none;
|
|
494
494
|
clear: both;
|
|
495
495
|
display: inline-block;
|
|
@@ -497,10 +497,10 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
497
497
|
white-space: nowrap;
|
|
498
498
|
text-overflow: ellipsis;
|
|
499
499
|
text-align: left;
|
|
500
|
-
margin-left: ${e=>
|
|
500
|
+
margin-left: ${e=>Pa[e.depth]}px;
|
|
501
501
|
color: ${e=>e.theme.colors.primary};
|
|
502
|
-
width: ${e=>
|
|
503
|
-
`,
|
|
502
|
+
width: ${e=>H.titleWidth.value(e.windowSize)-e.depth*w[11]}px;
|
|
503
|
+
`,Ra=({balance:e})=>t.jsx(Mi,{children:t.jsx(Ni,{isClickable:!1,onClick:()=>null,children:U("0,0",e?.totalBalance)})}),Ga=({total:e})=>t.jsx(Mi,{children:t.jsx(Ni,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function Ea({backgroundColor:e,isSticky:n,height:i,noMarginForEntity:o,isScrolling:r,total:l,nestedCustomer:s,metadata:d}){const h=W(),{common:{strings:{empty:u}},reports:{sections:g}}=I.getLocalizedStrings(),p=s!=null?s.id.length-1:0,f=d,m=s?.customer.name??u;return t.jsxs(za,{"data-testid":"sub-customer-total-row-root-container",containerHeight:i,bgColor:e,children:[t.jsxs(Fa,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(Va,{isSticky:n,windowSize:h,bgColor:e,containerHeight:i,children:[t.jsx(mi,{ancestorMetadata:f.vendorOrCustomerAncestorMetadata,depth:p,name:m}),t.jsx(Da,{isClickable:!1,title:m,depth:p,windowSize:h,children:g.totalPrefix+" "+m})]}),t.jsxs(Ta,{children:[s?.arAgingBalances.map((y,b)=>t.jsx(Ra,{balance:y},b)),t.jsx(Ga,{total:l})]})]}),t.jsx(Ha,{isScrolling:r,nestingLevel:p,isSticky:n,noMarginForEntity:o})]})}function Ha({isScrolling:e,nestingLevel:n,isSticky:i,noMarginForEntity:o}){return t.jsx(At,{isScrolling:e,kind:"subtotal_row_separator",subEntityProps:{nestingLevel:n,isSticky:i,noMarginForEntity:o}})}const re=e=>{switch(e){case"name+balances_actual":return!0;case"name+balances_forecast":return!1;case"name_only":return!1}},Fe=e=>{switch(e){case"name+balances_forecast":return!0;case"name+balances_actual":return!1;case"name_only":return!1}},Ka=a.div`
|
|
504
504
|
display: flex;
|
|
505
505
|
flex: 1 1 auto;
|
|
506
506
|
width: fit-content;
|
|
@@ -508,7 +508,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
508
508
|
flex-direction: column;
|
|
509
509
|
height: ${e=>e.height}px;
|
|
510
510
|
background-color: ${e=>e.bgColor?.hex()};
|
|
511
|
-
`,
|
|
511
|
+
`,Ya=a.div`
|
|
512
512
|
cursor: default;
|
|
513
513
|
user-select: none;
|
|
514
514
|
display: flex;
|
|
@@ -516,7 +516,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
516
516
|
flex-flow: row;
|
|
517
517
|
justify-content: flex-start;
|
|
518
518
|
align-items: center;
|
|
519
|
-
`,
|
|
519
|
+
`,Ua=a.div`
|
|
520
520
|
display: flex;
|
|
521
521
|
flex: 1 0 auto;
|
|
522
522
|
flex-direction: row;
|
|
@@ -525,35 +525,35 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
525
525
|
display: flex;
|
|
526
526
|
flex-direction: row;
|
|
527
527
|
justify-content: flex-start;
|
|
528
|
-
`,zi=a(
|
|
528
|
+
`,zi=a(ie)`
|
|
529
529
|
user-select: none;
|
|
530
|
-
min-width: ${
|
|
531
|
-
max-width: ${
|
|
530
|
+
min-width: ${H.balanceWidth};
|
|
531
|
+
max-width: ${H.balanceWidth};
|
|
532
532
|
text-align: right;
|
|
533
|
-
margin-left: ${
|
|
533
|
+
margin-left: ${H.balanceLeftMargin};
|
|
534
534
|
color: ${e=>e.theme.colors.primary};
|
|
535
535
|
border: 1px solid transparent;
|
|
536
|
-
`,
|
|
536
|
+
`,Za=a.div`
|
|
537
537
|
display: flex;
|
|
538
538
|
flex-direction: row;
|
|
539
539
|
flex-shrink: 2;
|
|
540
540
|
flex-grow: 1;
|
|
541
541
|
align-items: center;
|
|
542
|
-
width: ${e=>
|
|
543
|
-
max-width: ${e=>
|
|
542
|
+
width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
543
|
+
max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
544
544
|
background-color: ${e=>e.bgColor?.hex()};
|
|
545
|
-
${({isSticky:e,isIndented:n})=>e&&n?
|
|
545
|
+
${({isSticky:e,isIndented:n})=>e&&n?N`
|
|
546
546
|
position: -webkit-sticky;
|
|
547
547
|
position: sticky;
|
|
548
548
|
top: ${c.sp0};
|
|
549
549
|
left: ${c.sp4};
|
|
550
|
-
`:e&&!n?
|
|
550
|
+
`:e&&!n?N`
|
|
551
551
|
position: -webkit-sticky;
|
|
552
552
|
position: sticky;
|
|
553
553
|
top: ${c.sp0};
|
|
554
554
|
left: ${c.sp0};
|
|
555
555
|
`:null}
|
|
556
|
-
`,
|
|
556
|
+
`,Xa=a(ie)`
|
|
557
557
|
user-select: none;
|
|
558
558
|
clear: both;
|
|
559
559
|
display: inline-block;
|
|
@@ -562,23 +562,23 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
562
562
|
text-overflow: ellipsis;
|
|
563
563
|
text-align: left;
|
|
564
564
|
color: ${e=>e.theme.colors.primary};
|
|
565
|
-
`,Ka=({type:e,balance:n})=>t.jsx(Pi,{children:re(e)===!0?t.jsx(zi,{children:U("0,0",n?.balance)}):null}),Ya=({type:e,balance:n})=>t.jsx(Pi,{children:re(e)===!0?t.jsx(zi,{children:U("0,0",n)}):null});function Ua({type:e,isSticky:n,isIndented:i,height:o,title:r,totalBalances:l,backgroundColor:s}){const d=I(),h={amount:l.reduce((u,g)=>u+(g?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Wn.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Wn.currencySymbol};return t.jsx(Da,{"data-testid":x("total-row-root-container"),height:o,bgColor:s,windowSize:d,children:t.jsxs(Ga,{isClickable:!1,"data-testid":x("total-row-container"),children:[t.jsx(Ea,{bgColor:s,isSticky:n,windowSize:d,isIndented:i,children:t.jsx(Ha,{children:r})}),t.jsxs(Ra,{children:[l.map((u,g)=>t.jsx(Ka,{type:e,balance:u},g)),t.jsx(Ya,{type:e,balance:h})]})]})})}const qa=(e,n,i,o,r,l,s)=>{if(e.element.kind!=="timeframe_headers")return null;const d=e.element.data;return t.jsx(Ba,{reportId:e.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:d,backgroundColor:i,isSticky:o,height:n,sortKey:r,sortOrder:l,onSortOrderChanged:s})},Za=(e,n,i,o,r,l,s,d,h,u)=>{if(n.element.kind!=="aging_report_row")return null;if(n.config.reportId==="accounts_payable_aging"){const p=n.element.data;return t.jsx(ka,{backgroundColor:d,isLastNode:l,isScrolling:s,isSticky:r,height:i,balances:p.apAgingBalances,vendor:p.vendor,total:p.total,onEntityNameClick:h})}const g=n.element.data;return t.jsx(ja,{treeNodeId:e,backgroundColor:d,isLastNode:l,isScrolling:s,isSticky:r,isOpen:o,height:i,metadata:n.element.metadata,balances:g.arAgingBalances,nestedCustomer:g,total:g.total,totalWithChildren:g.totalWithChildren,onEntityNameClick:h,onClick:u})},Xa=(e,n,i,o,r)=>{if(e.element.kind!=="ac_subentity_total")return null;if(e.config.reportId==="accounts_receivable_aging"){const l=e.element.data;return t.jsx(Ta,{backgroundColor:r,isScrolling:o,isSticky:i,height:n,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},Ja=(e,n,i,o,r)=>{const l=n.element.data;return t.jsx(Ua,{type:e,backgroundColor:o,isSticky:r,height:i,totalBalances:l,isIndented:n.config.reportId==="accounts_receivable_aging",title:n.element.title})};function dt(e,n,i,o){switch(e){case"cogs":return Qa(i,o,n);case"expenses":return el(i,o,n);case"income":return tl(i,o,n);case"cash_position":return nl(i,o,n);case"cash_in":return il(i,o,n);case"cash_out":return ol(i,o,n);case"assets":return rl(i,o,n);case"equity":return al(i,o,n);case"liabilities":return ll(i,o,n);case"other_expense":return sl(i,o,n);case"other_income":return cl(i,o,n);case"operating_activities":return dl(i,o,n);case"investing_activities":return hl(i,o,n);case"financing_activities":return ul(i,o,n);default:throw Error(`${e} is not yet supported!`)}}const Qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCogsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},el=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithExpensesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},tl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithIncomeOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},nl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashPositionInTimeframe,o.compactedAccountsSelector=()=>R([],o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},il=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashInOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},ol=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashOutOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},rl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithAssetsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},al=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithEquityOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},ll=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithLiabilitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},sl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherExpensesInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},cl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherIncomeInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},dl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithOperatingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},hl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithInvestingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},ul=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithFinancingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o};function R(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Fi(n(o)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(o=>Ti(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Vi(n(o)?.balances??[]))}}function ie(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Fi(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Ti(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Vi(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function Fi(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function Ti(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function Vi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function ee(e,n="ascending_date",i=-1,o=!0){const r=i!==-1;let l=[],s=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Gi([],i)),{balances:l,thisPeriodIndex:s};let d=e.balances;return n==="ascending_date"?s=e.balances.length-1:(s=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:s}}function Di(e,n="ascending_date",i=-1,o=!0){const r=i!==-1,l=ee(e,n,i,o);if(e==null||e.balances.length===0)return l;const s=[...l.balances];if(e?.totalBalance!=null)s.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=Gi([],1);s.push(...d)}return{balances:s,thisPeriodIndex:l.thisPeriodIndex}}function Re(e,n){if(n==="ascending_date")return e;{const i=[],o=[];for(const r of e)r.type==="default"?i.push(r):o.push(r);return[...i.reverse(),...o]}}function Gi(e,n){return e.length>0?e:ei(Array(n),null)}const pl=a.div`
|
|
565
|
+
`,Qa=({type:e,balance:n})=>t.jsx(Pi,{children:re(e)===!0?t.jsx(zi,{children:U("0,0",n?.balance)}):null}),qa=({type:e,balance:n})=>t.jsx(Pi,{children:re(e)===!0?t.jsx(zi,{children:U("0,0",n)}):null});function Ja({type:e,isSticky:n,isIndented:i,height:o,title:r,totalBalances:l,backgroundColor:s}){const d=W(),h={amount:l.reduce((u,g)=>u+(g?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Wn.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Wn.currencySymbol};return t.jsx(Ka,{"data-testid":x("total-row-root-container"),height:o,bgColor:s,windowSize:d,children:t.jsxs(Ya,{isClickable:!1,"data-testid":x("total-row-container"),children:[t.jsx(Za,{bgColor:s,isSticky:n,windowSize:d,isIndented:i,children:t.jsx(Xa,{children:r})}),t.jsxs(Ua,{children:[l.map((u,g)=>t.jsx(Qa,{type:e,balance:u},g)),t.jsx(qa,{type:e,balance:h})]})]})})}const el=(e,n,i,o,r,l,s)=>{if(e.element.kind!=="timeframe_headers")return null;const d=e.element.data;return t.jsx(Na,{reportId:e.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:d,backgroundColor:i,isSticky:o,height:n,sortKey:r,sortOrder:l,onSortOrderChanged:s})},tl=(e,n,i,o,r,l,s,d,h,u)=>{if(n.element.kind!=="aging_report_row")return null;if(n.config.reportId==="accounts_payable_aging"){const p=n.element.data;return t.jsx(va,{backgroundColor:d,isLastNode:l,isScrolling:s,isSticky:r,height:i,balances:p.apAgingBalances,vendor:p.vendor,total:p.total,onEntityNameClick:h})}const g=n.element.data;return t.jsx(_a,{treeNodeId:e,backgroundColor:d,isLastNode:l,isScrolling:s,isSticky:r,isOpen:o,height:i,metadata:n.element.metadata,balances:g.arAgingBalances,nestedCustomer:g,total:g.total,totalWithChildren:g.totalWithChildren,onEntityNameClick:h,onClick:u})},nl=(e,n,i,o,r)=>{if(e.element.kind!=="ac_subentity_total")return null;if(e.config.reportId==="accounts_receivable_aging"){const l=e.element.data;return t.jsx(Ea,{backgroundColor:r,isScrolling:o,isSticky:i,height:n,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},il=(e,n,i,o,r)=>{const l=n.element.data;return t.jsx(Ja,{type:e,backgroundColor:o,isSticky:r,height:i,totalBalances:l,isIndented:n.config.reportId==="accounts_receivable_aging",title:n.element.title})};function dt(e,n,i,o){switch(e){case"cogs":return ol(i,o,n);case"expenses":return rl(i,o,n);case"income":return al(i,o,n);case"cash_position":return ll(i,o,n);case"cash_in":return sl(i,o,n);case"cash_out":return cl(i,o,n);case"assets":return dl(i,o,n);case"equity":return hl(i,o,n);case"liabilities":return ul(i,o,n);case"other_expense":return pl(i,o,n);case"other_income":return gl(i,o,n);case"operating_activities":return fl(i,o,n);case"investing_activities":return xl(i,o,n);case"financing_activities":return ml(i,o,n);default:throw Error(`${e} is not yet supported!`)}}const ol=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCogsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},rl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithExpensesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},al=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithIncomeOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ll=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashPositionInTimeframe,o.compactedAccountsSelector=()=>G([],o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},sl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCashInOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},cl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCashOutOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},dl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithAssetsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},hl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithEquityOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ul=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithLiabilitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},pl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherExpensesInTimeframe,o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},gl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherIncomeInTimeframe,o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},fl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithOperatingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},xl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithInvestingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ml=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithFinancingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o};function G(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Fi(n(o)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(o=>Ti(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Vi(n(o)?.balances??[]))}}function oe(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Fi(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Ti(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Vi(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function Fi(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function Ti(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function Vi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function te(e,n="ascending_date",i=-1,o=!0){const r=i!==-1;let l=[],s=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Ri([],i)),{balances:l,thisPeriodIndex:s};let d=e.balances;return n==="ascending_date"?s=e.balances.length-1:(s=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:s}}function Di(e,n="ascending_date",i=-1,o=!0){const r=i!==-1,l=te(e,n,i,o);if(e==null||e.balances.length===0)return l;const s=[...l.balances];if(e?.totalBalance!=null)s.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=Ri([],1);s.push(...d)}return{balances:s,thisPeriodIndex:l.thisPeriodIndex}}function He(e,n){if(n==="ascending_date")return e;{const i=[],o=[];for(const r of e)r.type==="default"?i.push(r):o.push(r);return[...i.reverse(),...o]}}function Ri(e,n){return e.length>0?e:ti(Array(n),null)}const wl=a.div`
|
|
566
566
|
display: flex;
|
|
567
567
|
flex: 1 1 auto;
|
|
568
568
|
max-height: 1px;
|
|
569
569
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
570
|
-
`,
|
|
570
|
+
`,Nn=a.div`
|
|
571
571
|
display: flex;
|
|
572
572
|
flex: 1 1 auto;
|
|
573
573
|
max-height: 1px;
|
|
574
574
|
margin-left: ${e=>e.marginLeft}px;
|
|
575
575
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
576
|
-
`,
|
|
576
|
+
`,yl=a.div`
|
|
577
577
|
display: flex;
|
|
578
578
|
flex: 1 1 auto;
|
|
579
579
|
max-height: 1px;
|
|
580
580
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
581
|
-
`;function
|
|
581
|
+
`;function bl({kind:e,isScrolling:n}){switch(e){case"account_title_row_separator":return t.jsx(Nn,{marginLeft:w[5],isScrolling:n});case"account_balance_row_separator":return t.jsx(Nn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(wl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(yl,{isScrolling:n})}}const Me={balanceHeight:c.sp4,balanceWidth:"166px",balanceLeftMargin:c.sp4,titleWidth:new D(200,350,405)};function kl(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 jl(e,n){const i=["summary","detailed"];switch(e){case"section":return!i.includes(n);case"section_with_ac_only":return!i.includes(n);case"calculated_section":case"calculated_section_type1":return!i.includes(n);case"ac_group_report":case"ac_group_subaccount":return!i.includes(n);case"ac_report":case"ac_subaccount":case"ac_subentity_total":return!i.includes(n);case"title_string_only":return!i.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":case"checkbox_and_name_only":return!1;default:return!1}}const Cl=a.div`
|
|
582
582
|
display: flex;
|
|
583
583
|
flex: 1 1 auto;
|
|
584
584
|
width: fit-content;
|
|
@@ -586,46 +586,46 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
586
586
|
flex-direction: column;
|
|
587
587
|
height: ${e=>e.height}px;
|
|
588
588
|
background-color: ${e=>e.bgColor?.hex()};
|
|
589
|
-
`,
|
|
589
|
+
`,Sl=a.div`
|
|
590
590
|
user-select: none;
|
|
591
591
|
display: flex;
|
|
592
592
|
flex: 1 1 auto;
|
|
593
593
|
flex-flow: row;
|
|
594
594
|
justify-content: flex-start;
|
|
595
595
|
align-items: center;
|
|
596
|
-
|
|
596
|
+
`,$l=a.div`
|
|
597
597
|
display: flex;
|
|
598
598
|
flex: 1 0 auto;
|
|
599
599
|
flex-direction: row;
|
|
600
600
|
justify-content: flex-end;
|
|
601
|
-
`,
|
|
601
|
+
`,vl=a.div`
|
|
602
602
|
display: flex;
|
|
603
603
|
flex-direction: row;
|
|
604
604
|
justify-content: flex-start;
|
|
605
|
-
`,
|
|
605
|
+
`,_l=a(S)`
|
|
606
606
|
user-select: none;
|
|
607
607
|
color: ${e=>e.theme.colors.hero};
|
|
608
|
-
min-width: ${
|
|
609
|
-
max-width: ${
|
|
608
|
+
min-width: ${Me.balanceWidth};
|
|
609
|
+
max-width: ${Me.balanceWidth};
|
|
610
610
|
text-align: right;
|
|
611
|
-
margin-left: ${
|
|
612
|
-
`,
|
|
611
|
+
margin-left: ${Me.balanceLeftMargin};
|
|
612
|
+
`,Ll=a.div`
|
|
613
613
|
display: flex;
|
|
614
614
|
flex-direction: row;
|
|
615
615
|
flex-shrink: 2;
|
|
616
616
|
flex-grow: 1;
|
|
617
617
|
align-items: center;
|
|
618
|
-
width: ${e=>
|
|
618
|
+
width: ${e=>Me.titleWidth.valuePx(e.windowSize)};
|
|
619
619
|
color: ${e=>e.theme.colors.hero};
|
|
620
|
-
max-width: ${e=>
|
|
620
|
+
max-width: ${e=>Me.titleWidth.valuePx(e.windowSize)};
|
|
621
621
|
background-color: ${e=>e.bgColor?.hex()};
|
|
622
|
-
${({isSticky:e})=>e?
|
|
622
|
+
${({isSticky:e})=>e?N`
|
|
623
623
|
position: -webkit-sticky;
|
|
624
624
|
position: sticky;
|
|
625
625
|
top: ${c.sp0};
|
|
626
626
|
left: ${c.sp0};
|
|
627
627
|
`:null}
|
|
628
|
-
`,
|
|
628
|
+
`,Al=a(S)`
|
|
629
629
|
user-select: none;
|
|
630
630
|
clear: both;
|
|
631
631
|
display: inline-block;
|
|
@@ -634,7 +634,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
634
634
|
text-overflow: ellipsis;
|
|
635
635
|
text-align: left;
|
|
636
636
|
margin-left: ${c.sp6};
|
|
637
|
-
|
|
637
|
+
`,Bl=({balance:e})=>t.jsx(vl,{children:t.jsx(_l,{children:Z(e)})});function Il({heading:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,totalBalances:l,isScrolling:s,isLastNode:d,onClick:h}){const u=W();return t.jsxs(Cl,{"data-testid":x("calculated-section-type-1-root-container-row",o),height:r,bgColor:n,windowSize:u,children:[t.jsxs(Sl,{"data-testid":x("calculated-section-type-1-container-row",o),onClick:()=>h?.(o),children:[t.jsx(Ll,{"data-testid":x("calculated-section-type-1-total-container-row",o),bgColor:n,isSticky:i,windowSize:u,children:t.jsx(Al,{children:e})}),t.jsx($l,{children:l.map((g,p)=>t.jsx(Bl,{balance:g},p))})]}),t.jsx(Wl,{isScrolling:s,isLastNode:d})]})}function Wl({isScrolling:e,isLastNode:n}){return n===!0?t.jsx(bl,{isScrolling:e,kind:"heading_row_separator"}):null}const Ol=a.div`
|
|
638
638
|
display: flex;
|
|
639
639
|
flex: 1 1 auto;
|
|
640
640
|
width: fit-content;
|
|
@@ -642,30 +642,30 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
642
642
|
flex-direction: column;
|
|
643
643
|
height: ${e=>e.height}px;
|
|
644
644
|
background-color: ${e=>e.bgColor?.hex()};
|
|
645
|
-
`,
|
|
645
|
+
`,Ml=a.div`
|
|
646
646
|
user-select: none;
|
|
647
647
|
display: flex;
|
|
648
648
|
flex: 1 1 auto;
|
|
649
649
|
flex-flow: row;
|
|
650
650
|
justify-content: flex-start;
|
|
651
651
|
align-items: center;
|
|
652
|
-
`,
|
|
652
|
+
`,Nl=a.div`
|
|
653
653
|
display: flex;
|
|
654
654
|
flex: 1 0 auto;
|
|
655
655
|
flex-direction: row;
|
|
656
656
|
justify-content: flex-end;
|
|
657
|
-
`,
|
|
657
|
+
`,Pl=a.div`
|
|
658
658
|
display: flex;
|
|
659
659
|
flex-direction: row;
|
|
660
660
|
justify-content: flex-start;
|
|
661
|
-
`,
|
|
661
|
+
`,qe=a(oi)`
|
|
662
662
|
color: ${e=>e.theme.colors.champion};
|
|
663
663
|
user-select: none;
|
|
664
664
|
max-width: ${k.balanceWidth};
|
|
665
665
|
min-width: ${k.balanceWidth};
|
|
666
666
|
text-align: right;
|
|
667
667
|
margin-left: ${k.balanceLeftMargin};
|
|
668
|
-
`,
|
|
668
|
+
`,zl=a.div`
|
|
669
669
|
display: flex;
|
|
670
670
|
flex-direction: row;
|
|
671
671
|
flex-shrink: 2;
|
|
@@ -674,13 +674,13 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
674
674
|
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
675
675
|
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
676
676
|
background-color: ${e=>e.bgColor?.hex()};
|
|
677
|
-
${({isSticky:e})=>e?
|
|
677
|
+
${({isSticky:e})=>e?N`
|
|
678
678
|
position: -webkit-sticky;
|
|
679
679
|
position: sticky;
|
|
680
680
|
top: ${c.sp0};
|
|
681
681
|
left: ${c.sp0};
|
|
682
682
|
`:null}
|
|
683
|
-
`,
|
|
683
|
+
`,Fl=a(oi)`
|
|
684
684
|
color: ${e=>e.theme.colors.champion};
|
|
685
685
|
user-select: none;
|
|
686
686
|
clear: both;
|
|
@@ -690,23 +690,23 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
690
690
|
text-overflow: ellipsis;
|
|
691
691
|
text-align: left;
|
|
692
692
|
background-color: ${e=>e.bgColor?.hex()};
|
|
693
|
-
`,
|
|
693
|
+
`,Tl=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs(Pl,{"data-testid":x("heading-row-balance-element",e),children:[re(e)||i?t.jsx(qe,{"data-testid":x("heading-row-balance-actual",e),children:Z(n)}):t.jsx(qe,{"data-testid":x("heading-row-balance-forecast",e),children:q(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(qe,{"data-testid":x("heading-row-balance-forecast",e),children:q(n)}),t.jsx(qe,{"data-testid":x("heading-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?he(n):ue(n)})]}):null]});function Vl({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,heading:l,headingBalances:s,isActualVsForecastOn:d,compareMode:h,isLeaf:u,onClick:g}){const p=W();return t.jsx(Ol,{height:r,bgColor:n,"data-testid":x("heading-row-root-container",o),children:t.jsxs(Ml,{"data-testid":x("heading-row-container",o),isClickable:!u,onClick:()=>g?.(o),children:[pe(e)===!0?t.jsx(zl,{"data-testid":x("heading-row-heading-container",o),isSticky:i,windowSize:p,bgColor:n,children:t.jsx(Fl,{children:l})}):null,be(e)===!0?t.jsx(Nl,{"data-testid":x("heading-row-balances-container",o),children:s.map((f,m)=>t.jsx(Tl,{"data-testid":x("heading-row-balance-element",e),type:e,heading:l,balance:f,isActualVsForecastOn:d,compareMode:h},m))}):null]})})}const Dl=(e,n,i,o,r,l,s)=>{if(n.element.kind!="calculated_section_type1"||n.element.data==null)return null;const d=n.element.data,h=te(d,n.config.displayOrder,n.element.numOfBalances);return t.jsx(Il,{backgroundColor:o,isSticky:r,treeNodeId:e,heading:n.element.title,totalBalances:h.balances,height:i,isScrolling:l,isLastNode:s})},sn=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="title_string_only")return null;const f=te(void 0,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Vl,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,heading:i.element.title,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,headingBalances:f.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:m=>{p?.(m)}})};function Gi(e,n){return Rl(n)}const Rl=(e,n)=>{const i={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return i.acBalanceSelector=o=>o.balancesInTimeframe,i.compactedAccountsSelectorVariant=o=>Gl(o,i.acBalanceSelector,e),i};function Gl(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>El(n(o)?.balances??[]));default:return e}}function El(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}const Je=[new D(w[4],56),new D(44,76),new D(69,102),new D(93,124),new D(113,143)],Pn=[new D(w[0],w[0]),new D(14,w[4]),new D(67,67),new D(102,102),new D(136,136)],Hl=a.div`
|
|
694
694
|
display: flex;
|
|
695
695
|
flex: 1 1 auto;
|
|
696
696
|
max-height: 1px;
|
|
697
697
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
698
|
-
`,
|
|
698
|
+
`,zn=a.div`
|
|
699
699
|
display: flex;
|
|
700
700
|
flex: 1 1 auto;
|
|
701
701
|
max-height: 1px;
|
|
702
702
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey4};
|
|
703
|
-
`,
|
|
703
|
+
`,Kl=a.div`
|
|
704
704
|
display: flex;
|
|
705
705
|
flex: 1 1 auto;
|
|
706
706
|
flex-flow: row;
|
|
707
707
|
justify-content: flex-start;
|
|
708
708
|
align-items: center;
|
|
709
|
-
`,
|
|
709
|
+
`,Yl=a.div`
|
|
710
710
|
display: flex;
|
|
711
711
|
flex-direction: row;
|
|
712
712
|
flex-shrink: 2;
|
|
@@ -715,38 +715,38 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
715
715
|
background-color: ${e=>e.theme.colors.grey4};
|
|
716
716
|
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
717
717
|
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
718
|
-
${({isSticky:e})=>e?
|
|
718
|
+
${({isSticky:e})=>e?N`
|
|
719
719
|
position: -webkit-sticky;
|
|
720
720
|
position: sticky;
|
|
721
721
|
top: ${c.sp0};
|
|
722
722
|
left: ${c.sp0};
|
|
723
723
|
`:null}
|
|
724
|
-
`,
|
|
725
|
-
width: ${e=>e.noMarginForAccount?
|
|
726
|
-
max-width: ${e=>e.noMarginForAccount?
|
|
724
|
+
`,Ul=a.div`
|
|
725
|
+
width: ${e=>e.noMarginForAccount?Je[e.nestingLevel].value(e.windowSize)-w[5]:Je[e.nestingLevel].value(e.windowSize)}px;
|
|
726
|
+
max-width: ${e=>e.noMarginForAccount?Je[e.nestingLevel].value(e.windowSize)-w[5]:Je[e.nestingLevel].value(e.windowSize)}px;
|
|
727
727
|
height: 1px;
|
|
728
|
-
`,
|
|
729
|
-
width: ${e=>
|
|
730
|
-
max-width: ${e=>
|
|
728
|
+
`,Zl=a.div`
|
|
729
|
+
width: ${e=>Pn[e.classDepth].valuePx(e.windowSize)};
|
|
730
|
+
max-width: ${e=>Pn[e.classDepth].valuePx(e.windowSize)};
|
|
731
731
|
height: 1px;
|
|
732
|
-
`,
|
|
732
|
+
`,Xl=a.div`
|
|
733
733
|
display: flex;
|
|
734
734
|
flex: 1 1 auto;
|
|
735
735
|
max-height: 1px;
|
|
736
736
|
height: 1px;
|
|
737
737
|
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
738
|
-
`,
|
|
738
|
+
`,Ql=a.div`
|
|
739
739
|
display: flex;
|
|
740
740
|
flex: 1 1 auto;
|
|
741
741
|
max-height: 1px;
|
|
742
742
|
height: 1px;
|
|
743
743
|
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
744
|
-
`,
|
|
744
|
+
`,ql=a.div`
|
|
745
745
|
display: flex;
|
|
746
746
|
flex: 1 1 auto;
|
|
747
747
|
max-height: 1px;
|
|
748
748
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
749
|
-
`,
|
|
749
|
+
`,Fn=e=>{const n=W(),i=ce();return t.jsxs(Kl,{children:[t.jsxs(Yl,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(Zl,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(Ul,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx(Xl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(Ql,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function ke({kind:e,isScrolling:n,subAccountProps:i}){switch(e){case"account_title_row_separator":return t.jsx(zn,{marginLeft:w[5],isScrolling:n});case"sub_account_balance_row_separator":return t.jsx(Fn,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!1,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1});case"account_balance_row_separator":return t.jsx(zn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(Hl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(ql,{isScrolling:n});case"total_row_separator":return t.jsx(Fn,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1})}}function Ei({height:e,backgroundColor:n,title:i,numOfBalances:o=6}){const r=W(),l=i!=null?i.split("+")[1]:"";let s=null;const d=r!=="small";switch(l){case"section-row":s=t.jsx(Jl,{columns:o,isSticky:d});break;case"root-class-row":s=t.jsx(es,{columns:o,isSticky:d});break;case"sub-class-row":s=t.jsx(ts,{columns:o,isSticky:d});break;case"leaf-class-row":s=t.jsxs(t.Fragment,{children:[t.jsx(ns,{columns:o,isSticky:d}),t.jsx(ke,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]});break}return t.jsx(os,{height:e,bgColor:n,children:s})}const Jl=({columns:e,isSticky:n})=>t.jsxs(Ae,{children:[t.jsxs(ut,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(De,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(ht,{columns:e,rectangleWidth:k.loadingBalanceWidthInPx})]}),es=({columns:e,isSticky:n})=>t.jsxs(Ae,{children:[t.jsxs(ut,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(De,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(ht,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),ts=({columns:e,isSticky:n})=>t.jsxs(Ae,{children:[t.jsx(ut,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(Ae,{style:{marginLeft:"36px"},children:[t.jsx(De,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx,style:{marginLeft:w[4]}})]})}),t.jsx(ht,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),ns=({columns:e,isSticky:n})=>t.jsxs(Ae,{children:[t.jsx(ut,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(Ae,{style:{marginLeft:"84px"},children:t.jsx(K,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})})}),t.jsx(ht,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),is=({rectangleWidth:e})=>t.jsx(Hi,{width:k.balanceWidthInPx,children:t.jsx(K,{width:e,height:k.balanceHeightInPx})}),ht=({columns:e,rectangleWidth:n})=>t.jsx(rs,{style:{zIndex:9,width:k.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((i,o)=>t.jsx(is,{rectangleWidth:n},o))}),os=a.div`
|
|
750
750
|
display: flex;
|
|
751
751
|
flex: 1 1 auto;
|
|
752
752
|
width: fit-content;
|
|
@@ -754,7 +754,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
754
754
|
flex-direction: column;
|
|
755
755
|
height: ${e=>e.height}px;
|
|
756
756
|
background-color: ${e=>e.bgColor?.hex()??e.theme.colors.grey4};
|
|
757
|
-
`,
|
|
757
|
+
`,Ae=a.div`
|
|
758
758
|
user-select: none;
|
|
759
759
|
display: flex;
|
|
760
760
|
flex: 1 1 auto;
|
|
@@ -762,7 +762,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
762
762
|
justify-content: flex-start;
|
|
763
763
|
align-items: center;
|
|
764
764
|
min-height: 0;
|
|
765
|
-
`,
|
|
765
|
+
`,rs=a.div`
|
|
766
766
|
display: flex;
|
|
767
767
|
flex: 1 0 auto;
|
|
768
768
|
flex-direction: row;
|
|
@@ -781,7 +781,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
781
781
|
z-index: 10;
|
|
782
782
|
background-color: ${e=>e.theme.colors.grey4};
|
|
783
783
|
justify-content: flex-start;
|
|
784
|
-
`;function Ki({height:e,numOfBalances:n,backgroundColor:i}){const o=
|
|
784
|
+
`;function Ki({height:e,numOfBalances:n,backgroundColor:i}){const o=W();return t.jsx(as,{height:e,bgColor:i,children:t.jsxs(ls,{windowSize:o,children:[t.jsx(ss,{windowSize:o,width:`${k.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(cs,{children:Array.from({length:n},(r,l)=>t.jsx(Yi,{windowSize:o,width:k.balanceWidth,children:t.jsx(K,{width:k.balanceWidthInPx,height:w[6]})},`timeframe-balance-${l}`))})]})})}const as=a.div`
|
|
785
785
|
display: flex;
|
|
786
786
|
flex: 1 1 auto;
|
|
787
787
|
width: fit-content;
|
|
@@ -790,7 +790,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
790
790
|
height: ${e=>e.height}px;
|
|
791
791
|
background-color: ${e=>e.bgColor?.hex()};
|
|
792
792
|
margin-top: 20px;
|
|
793
|
-
`,
|
|
793
|
+
`,ls=a.div`
|
|
794
794
|
display: flex;
|
|
795
795
|
flex-direction: row;
|
|
796
796
|
width: 100%;
|
|
@@ -807,28 +807,28 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
807
807
|
justify-content: flex-start;
|
|
808
808
|
}
|
|
809
809
|
margin-right: ${k.balanceLeftMargin};
|
|
810
|
-
`,
|
|
810
|
+
`,ss=a(Yi)`
|
|
811
811
|
position: sticky;
|
|
812
812
|
left: ${c.sp0};
|
|
813
813
|
z-index: 10;
|
|
814
814
|
background-color: ${e=>e.theme.colors.grey4};
|
|
815
|
-
`,
|
|
815
|
+
`,cs=a.div`
|
|
816
816
|
display: flex;
|
|
817
817
|
flex-direction: row;
|
|
818
818
|
width: calc(100% - ${k.loadingInProgressStickySectionWidth}px);
|
|
819
819
|
justify-content: flex-end;
|
|
820
820
|
flex: 1 0 auto;
|
|
821
|
-
`,
|
|
821
|
+
`,ds=a.div`
|
|
822
822
|
display: flex;
|
|
823
823
|
flex: 1 1 auto;
|
|
824
824
|
max-height: 1px;
|
|
825
825
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
826
|
-
`,
|
|
826
|
+
`,hs=a.div`
|
|
827
827
|
display: flex;
|
|
828
828
|
flex: 1 1 auto;
|
|
829
829
|
max-height: 1px;
|
|
830
830
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
831
|
-
`;function
|
|
831
|
+
`;function cn({kind:e,isScrolling:n}){switch(e){case"ac_group_row_separator":return t.jsx(ds,{"data-testid":x("ac-group-row-separator",e),isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(hs,{"data-testid":x("section-row-separator",e),isScrolling:n})}}const R={balanceHeight:c.sp4,balanceWidth:"166px",balanceLeftMargin:c.sp4,titleWidth:new D(200,350,405)};function us(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 ps(e,n){const i=["summary","detailed"];switch(e){case"section":return!i.includes(n);case"section_with_ac_only":return!i.includes(n);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":case"ac_group_subaccount":return!i.includes(n);case"ac_subentity_total":case"ac_subaccount":case"ac_report":return!i.includes(n);case"title_string_only":return!i.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":case"checkbox_and_name_only":return!0;default:return!1}}const gs=a.div`
|
|
832
832
|
display: flex;
|
|
833
833
|
flex: 1 1 auto;
|
|
834
834
|
width: fit-content;
|
|
@@ -836,7 +836,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
836
836
|
flex-direction: column;
|
|
837
837
|
height: ${e=>e.height}px;
|
|
838
838
|
background-color: ${e=>e.bgColor?.hex()};
|
|
839
|
-
`,
|
|
839
|
+
`,fs=a.div`
|
|
840
840
|
user-select: none;
|
|
841
841
|
display: flex;
|
|
842
842
|
flex: 1 1 auto;
|
|
@@ -846,44 +846,44 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
846
846
|
&:hover {
|
|
847
847
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
848
848
|
}
|
|
849
|
-
`,
|
|
849
|
+
`,xs=a.div`
|
|
850
850
|
display: flex;
|
|
851
851
|
flex: 1 0 auto;
|
|
852
852
|
flex-direction: row;
|
|
853
853
|
justify-content: flex-end;
|
|
854
854
|
color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
855
|
-
`,
|
|
855
|
+
`,ms=a.div`
|
|
856
856
|
display: flex;
|
|
857
857
|
flex-direction: row;
|
|
858
858
|
justify-content: flex-start;
|
|
859
859
|
`,Bt=a(S)`
|
|
860
860
|
user-select: none;
|
|
861
|
-
min-width: ${
|
|
862
|
-
max-width: ${
|
|
861
|
+
min-width: ${R.balanceWidth};
|
|
862
|
+
max-width: ${R.balanceWidth};
|
|
863
863
|
text-align: right;
|
|
864
|
-
margin-left: ${
|
|
865
|
-
`,
|
|
864
|
+
margin-left: ${R.balanceLeftMargin};
|
|
865
|
+
`,ws=a(Bt)`
|
|
866
866
|
color: ${e=>e.theme.colors.hero};
|
|
867
867
|
&:hover {
|
|
868
868
|
color: inherit;
|
|
869
869
|
}
|
|
870
|
-
`,
|
|
870
|
+
`,ys=a.div`
|
|
871
871
|
display: flex;
|
|
872
872
|
flex-direction: row;
|
|
873
873
|
flex-shrink: 2;
|
|
874
874
|
flex-grow: 1;
|
|
875
875
|
align-items: center;
|
|
876
|
-
width: ${e=>
|
|
877
|
-
max-width: ${e=>
|
|
876
|
+
width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
877
|
+
max-width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
878
878
|
background-color: ${e=>e.bgColor?.hex()};
|
|
879
879
|
color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
880
|
-
${({isSticky:e})=>e?
|
|
880
|
+
${({isSticky:e})=>e?N`
|
|
881
881
|
position: -webkit-sticky;
|
|
882
882
|
position: sticky;
|
|
883
883
|
top: ${c.sp0};
|
|
884
884
|
left: ${c.sp0};
|
|
885
885
|
`:null}
|
|
886
|
-
`,
|
|
886
|
+
`,bs=a(S)`
|
|
887
887
|
user-select: none;
|
|
888
888
|
clear: both;
|
|
889
889
|
display: inline-block;
|
|
@@ -892,7 +892,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
892
892
|
text-overflow: ellipsis;
|
|
893
893
|
text-align: left;
|
|
894
894
|
margin-left: ${c.sp2};
|
|
895
|
-
`,
|
|
895
|
+
`,ks=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?ws:Bt;return t.jsxs(ms,{"data-testid":x("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":x("account-group-row-balance-actual",e),children:Z(n)}),Fe(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":x("account-group-row-balance-forecast",e),children:q(n)}),t.jsx(Bt,{"data-testid":x("account-group-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?he(n):ue(n)})]}):null]})};function js({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountGroupName:l,accountGroupBalances:s,compareMode:d,isScrolling:h,isOpen:u,isLeaf:g,isLastNode:p,onClick:f}){const m=W(),y=!g,b=y?"pointer":"default",$=l.length>0?l.substr(0,1).toUpperCase():"",C=Ss(s),L=ce().colors.primary,[v,A]=z.useState(!1);return t.jsxs(gs,{"data-testid":x("account-group-row-root-container",e),height:r,bgColor:n,windowSize:m,children:[t.jsxs(fs,{"data-testid":x("account-group-row-container",e),style:{cursor:b},isClickable:y,onClick:()=>f?.(o),onMouseOver:()=>A(!0),onMouseLeave:()=>A(!1),children:[t.jsxs(ys,{"data-testid":x("account-group-row-name-container",e),bgColor:n,isSticky:i,windowSize:m,hasNonZeroBalance:C,children:[t.jsx(Se,{"data-testid":x("account-group-row-circle-with-letter",e),color:B(L),showCollapsedIcon:!u,showIcon:y&&v,firstLetter:$}),t.jsx(bs,{"data-testid":x("account-group-row-name",e),children:l})]}),t.jsx(xs,{"data-testid":x("account-group-row-balances-container",e),hasNonZeroBalance:C,children:s.map((M,P)=>t.jsx(ks,{"data-testid":x("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:M,compareMode:d,collapsed:!1},P))})]}),t.jsx(Cs,{isScrolling:h,isLeaf:g,isLastNode:p,isOpen:u})]})}function Cs({isScrolling:e,isLeaf:n,isLastNode:i,isOpen:o}){return n||!o||!i?t.jsx(cn,{isScrolling:e,kind:"ac_group_row_separator"}):null}const Ss=e=>{let n=!1;if(e!=null){for(const i of e)if(i!=null&&i.balance.amount!==0){n=!0;break}}return n},$s="__horizontal_total__";function Te(e){return typeof e=="object"&&e!==null&&"depth"in e&&typeof e.depth=="number"&&!("filter"in e)}function pt(e,n){if(!(e==null||n==null||Te(e)!==!0)){if(n.id===$s)return{isHorizontalClassTotalColumn:!0};if(n.id!=null)return{isHorizontalClassColumn:!0}}}const vs=a.div`
|
|
896
896
|
display: flex;
|
|
897
897
|
flex: 1 1 auto;
|
|
898
898
|
width: fit-content;
|
|
@@ -900,7 +900,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
900
900
|
flex-direction: column;
|
|
901
901
|
height: ${e=>e.height}px;
|
|
902
902
|
background-color: ${e=>e.bgColor?.hex()};
|
|
903
|
-
`,
|
|
903
|
+
`,_s=a.div`
|
|
904
904
|
user-select: none;
|
|
905
905
|
display: flex;
|
|
906
906
|
flex: 1 1 auto;
|
|
@@ -910,42 +910,42 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
910
910
|
&:hover {
|
|
911
911
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
912
912
|
}
|
|
913
|
-
`,
|
|
913
|
+
`,Ls=a.div`
|
|
914
914
|
display: flex;
|
|
915
915
|
flex: 1 0 auto;
|
|
916
916
|
flex-direction: row;
|
|
917
917
|
justify-content: flex-end;
|
|
918
|
-
`,
|
|
918
|
+
`,As=a.div`
|
|
919
919
|
display: flex;
|
|
920
920
|
flex-direction: row;
|
|
921
921
|
justify-content: flex-start;
|
|
922
922
|
`,St=a(S)`
|
|
923
923
|
user-select: none;
|
|
924
|
-
min-width: ${
|
|
925
|
-
max-width: ${
|
|
924
|
+
min-width: ${R.balanceWidth};
|
|
925
|
+
max-width: ${R.balanceWidth};
|
|
926
926
|
text-align: right;
|
|
927
|
-
margin-left: ${
|
|
927
|
+
margin-left: ${R.balanceLeftMargin};
|
|
928
928
|
color: ${e=>e.theme.colors.hero};
|
|
929
929
|
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
930
930
|
&:hover {
|
|
931
931
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
932
932
|
}
|
|
933
|
-
|
|
933
|
+
`,Bs=a.div`
|
|
934
934
|
display: flex;
|
|
935
935
|
flex-direction: row;
|
|
936
936
|
flex-shrink: 2;
|
|
937
937
|
flex-grow: 1;
|
|
938
938
|
align-items: center;
|
|
939
|
-
width: ${e=>
|
|
940
|
-
max-width: ${e=>
|
|
939
|
+
width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
940
|
+
max-width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
941
941
|
background-color: ${e=>e.bgColor?.hex()};
|
|
942
|
-
${({isSticky:e})=>e?
|
|
942
|
+
${({isSticky:e})=>e?N`
|
|
943
943
|
position: -webkit-sticky;
|
|
944
944
|
position: sticky;
|
|
945
945
|
top: ${c.sp0};
|
|
946
946
|
left: ${c.sp0};
|
|
947
947
|
`:null}
|
|
948
|
-
`,
|
|
948
|
+
`,Is=a(S)`
|
|
949
949
|
user-select: none;
|
|
950
950
|
clear: both;
|
|
951
951
|
display: inline-block;
|
|
@@ -955,7 +955,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
955
955
|
text-align: left;
|
|
956
956
|
margin-left: 35px;
|
|
957
957
|
color: ${e=>e.theme.colors.hero};
|
|
958
|
-
`,
|
|
958
|
+
`,Ws=({type:e,balance:n,account:i,onAccountBalanceClick:o,compareMode:r})=>{const l=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",s=i!=null&&n!=null&&o!=null&&l!==!0;return t.jsxs(As,{children:[t.jsx(St,{isClickable:s,onClick:()=>{s===!0&&i!=null&&n!=null&&o?.(i,n,pt(i,n))},children:Z(n)}),Fe(e)?t.jsxs(t.Fragment,{children:[t.jsx(St,{isClickable:!1,children:q(n)}),t.jsx(St,{isClickable:!1,children:r==="compare_mode_percent"?he(n):ue(n)})]}):null]})};function Os({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isCompareModeOn:s,isForecastModeOn:d,isScrolling:h,isLeaf:u,isLastNode:g,compareMode:p,account:f,onAccountBalanceClick:m}){const y=W(),{common:{strings:{empty:b}}}=I.getLocalizedStrings(),$=f?.accountDescription?f.accountDescription:b,C=f?.accountName?f.accountName:$,L=Ht(),v=L.loggedInUserRole!=null&&!si(L.loggedInUserRole),A=v===!0&&f!=null&&s!==!0&&m!=null&&d!==!0,M=A?"pointer":"default",P=(E,T)=>{A===!0&&l[l.length-1]!=null&&m?.(E,T,l[l.length-1],pt(T,l[l.length-1]??null))};return t.jsxs(vs,{height:r,bgColor:n,windowSize:y,children:[t.jsxs(_s,{style:{cursor:M},isClickable:A,onClick:()=>f!=null?P(o,f):null,children:[t.jsx(Bs,{isSticky:i,windowSize:y,bgColor:n,children:t.jsx(Is,{title:C,children:C})}),t.jsx(Ls,{children:l.map((E,T)=>t.jsx(Ws,{type:e,balance:E,account:f,onAccountBalanceClick:v===!1||m==null?void 0:(Y,X,ae)=>{m(o,Y,X,ae)},compareMode:p},T))})]}),t.jsx(Ms,{isScrolling:h,isLeaf:u,isLastNode:g})]})}function Ms({isScrolling:e,isLeaf:n,isLastNode:i}){return n||!i?t.jsx(cn,{isScrolling:e,kind:"ac_group_row_separator"}):null}const Ns=a.div`
|
|
959
959
|
display: flex;
|
|
960
960
|
flex: 1 1 auto;
|
|
961
961
|
width: fit-content;
|
|
@@ -963,55 +963,55 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
963
963
|
flex-direction: column;
|
|
964
964
|
height: ${e=>e.rootHeight-1}px;
|
|
965
965
|
background-color: ${e=>e.bgColor?.hex()};
|
|
966
|
-
`,
|
|
966
|
+
`,Ps=a.div`
|
|
967
967
|
user-select: none;
|
|
968
968
|
display: flex;
|
|
969
969
|
flex: 1 1 auto;
|
|
970
970
|
flex-flow: row;
|
|
971
971
|
justify-content: flex-start;
|
|
972
972
|
align-items: center;
|
|
973
|
-
`,
|
|
973
|
+
`,zs=a.div`
|
|
974
974
|
display: flex;
|
|
975
975
|
flex: 1 0 auto;
|
|
976
976
|
flex-direction: row;
|
|
977
977
|
justify-content: flex-end;
|
|
978
|
-
`,
|
|
978
|
+
`,Tn=a.div`
|
|
979
979
|
display: flex;
|
|
980
980
|
flex-direction: row;
|
|
981
981
|
justify-content: flex-start;
|
|
982
|
-
`,
|
|
982
|
+
`,Ie=a(S)`
|
|
983
983
|
user-select: none;
|
|
984
|
-
max-width: ${
|
|
985
|
-
min-width: ${
|
|
984
|
+
max-width: ${R.balanceWidth};
|
|
985
|
+
min-width: ${R.balanceWidth};
|
|
986
986
|
text-align: right;
|
|
987
|
-
margin-left: ${
|
|
988
|
-
`,
|
|
987
|
+
margin-left: ${R.balanceLeftMargin};
|
|
988
|
+
`,Vn=a(S)`
|
|
989
989
|
user-select: none;
|
|
990
|
-
max-width: ${
|
|
991
|
-
min-width: ${
|
|
990
|
+
max-width: ${R.balanceWidth};
|
|
991
|
+
min-width: ${R.balanceWidth};
|
|
992
992
|
text-align: right;
|
|
993
|
-
margin-left: ${
|
|
994
|
-
`,
|
|
993
|
+
margin-left: ${R.balanceLeftMargin};
|
|
994
|
+
`,Fs=a.div`
|
|
995
995
|
display: flex;
|
|
996
996
|
flex-direction: column;
|
|
997
997
|
align-items: flex-end;
|
|
998
|
-
`,
|
|
998
|
+
`,Ts=a.div`
|
|
999
999
|
display: flex;
|
|
1000
1000
|
flex-direction: row;
|
|
1001
1001
|
flex-shrink: 2;
|
|
1002
1002
|
flex-grow: 1;
|
|
1003
1003
|
align-items: center;
|
|
1004
1004
|
height: ${c.sp7};
|
|
1005
|
-
width: ${e=>
|
|
1006
|
-
max-width: ${e=>
|
|
1005
|
+
width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
1006
|
+
max-width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
1007
1007
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1008
|
-
${({isSticky:e})=>e?
|
|
1008
|
+
${({isSticky:e})=>e?N`
|
|
1009
1009
|
position: -webkit-sticky;
|
|
1010
1010
|
position: sticky;
|
|
1011
1011
|
top: ${c.sp0};
|
|
1012
1012
|
left: ${c.sp0};
|
|
1013
1013
|
`:null}
|
|
1014
|
-
`,
|
|
1014
|
+
`,Vs=a(S)`
|
|
1015
1015
|
user-select: none;
|
|
1016
1016
|
user-select: none;
|
|
1017
1017
|
clear: both;
|
|
@@ -1021,7 +1021,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1021
1021
|
text-overflow: ellipsis;
|
|
1022
1022
|
text-align: left;
|
|
1023
1023
|
margin-left: ${c.sp2};
|
|
1024
|
-
`,
|
|
1024
|
+
`,Ds=({type:e,balance:n,color:i,compareMode:o})=>{const r=n!=null&&n.type==="default_with_percent"&&n.percentValue!=null?n.percentValue:0,l=n!=null&&n.type==="default_with_percent"&&n.forecastPercentValue!=null?n.forecastPercentValue:0;return t.jsxs(Fs,{children:[t.jsxs(Tn,{children:[t.jsx(Ie,{style:{color:i.toString()},children:Z(n)}),Fe(e)?t.jsxs(t.Fragment,{children:[t.jsx(Ie,{style:{color:i.toString()},children:q(n)}),t.jsx(Ie,{style:{color:i.toString()},children:o==="compare_mode_percent"?he(n):ue(n)})]}):null]}),t.jsxs(Tn,{children:[r!==0?t.jsx(Vn,{style:{color:i.toString()},children:xe("0,0%",r)}):null,Fe(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(Vn,{style:{color:i.toString()},children:xe("0,0%",l)}):t.jsx(Ie,{}),t.jsx(Ie,{})]}):null]})]})};function dn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:s,sectionColor:d,isScrolling:h,isOpen:u,isLeaf:g,compareMode:p,onClick:f}){const m=W(),[y,b]=z.useState(!1),$=!g,C=$?"pointer":"default",L=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(Ns,{"data-testid":x("section-row-root-container",o),rootHeight:r,bgColor:n,windowSize:m,children:[t.jsxs(Ps,{"data-testid":x("section-row-container",o),style:{cursor:C},onClick:()=>f?.(o),onMouseOver:()=>b(!0),onMouseLeave:()=>b(!1),children:[t.jsxs(Ts,{"data-testid":x("section-row-name-container",o),isSticky:i,windowSize:m,bgColor:n,children:[t.jsx(Se,{"data-testid":x("section-row-circle-with-letter",o),color:B(d),showCollapsedIcon:!u,showIcon:$&&y,firstLetter:L}),t.jsx(Vs,{"data-testid":x("section-row-name",o),style:{color:d.toString()},children:l})]}),t.jsx(zs,{"data-testid":x("section-row-balances-container",o),children:s.map((v,A)=>t.jsx(Ds,{"data-testid":x("section-row-balance-element",e),type:e,sectionName:l,balance:v,color:d,compareMode:p},A))})]}),t.jsx(Rs,{isScrolling:h,isLeaf:g,isOpen:u})]})}function Rs({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(cn,{isScrolling:e,kind:"section_row_separator"}):null}const Gs=a.div`
|
|
1025
1025
|
display: flex;
|
|
1026
1026
|
flex: 1 1 auto;
|
|
1027
1027
|
width: fit-content;
|
|
@@ -1029,50 +1029,50 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1029
1029
|
flex-direction: column;
|
|
1030
1030
|
height: ${e=>e.height}px;
|
|
1031
1031
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1032
|
-
`,
|
|
1032
|
+
`,Es=a.div`
|
|
1033
1033
|
user-select: none;
|
|
1034
1034
|
display: flex;
|
|
1035
1035
|
flex: 1 1 auto;
|
|
1036
1036
|
flex-flow: row;
|
|
1037
1037
|
justify-content: flex-start;
|
|
1038
1038
|
align-items: center;
|
|
1039
|
-
`,
|
|
1039
|
+
`,Hs=a.div`
|
|
1040
1040
|
display: flex;
|
|
1041
1041
|
flex: 1 0 auto;
|
|
1042
1042
|
flex-direction: row;
|
|
1043
1043
|
justify-content: flex-end;
|
|
1044
|
-
`,
|
|
1044
|
+
`,Ks=a.div`
|
|
1045
1045
|
display: flex;
|
|
1046
1046
|
flex-direction: row;
|
|
1047
1047
|
justify-content: flex-start;
|
|
1048
1048
|
`,Ui=a(S)`
|
|
1049
1049
|
user-select: none;
|
|
1050
|
-
min-width: ${
|
|
1051
|
-
max-width: ${
|
|
1050
|
+
min-width: ${R.balanceWidth};
|
|
1051
|
+
max-width: ${R.balanceWidth};
|
|
1052
1052
|
text-align: right;
|
|
1053
|
-
margin-left: ${
|
|
1053
|
+
margin-left: ${R.balanceLeftMargin};
|
|
1054
1054
|
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1055
|
-
`,
|
|
1055
|
+
`,Ys=a(Ui)`
|
|
1056
1056
|
color: ${e=>e.theme.colors.hero};
|
|
1057
1057
|
&:hover {
|
|
1058
1058
|
color: inherit;
|
|
1059
1059
|
}
|
|
1060
|
-
`,
|
|
1060
|
+
`,Us=a.div`
|
|
1061
1061
|
display: flex;
|
|
1062
1062
|
flex-direction: row;
|
|
1063
1063
|
flex-shrink: 2;
|
|
1064
1064
|
flex-grow: 1;
|
|
1065
1065
|
align-items: center;
|
|
1066
|
-
width: ${e=>
|
|
1067
|
-
max-width: ${e=>
|
|
1066
|
+
width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
1067
|
+
max-width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
1068
1068
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1069
|
-
${({isSticky:e})=>e?
|
|
1069
|
+
${({isSticky:e})=>e?N`
|
|
1070
1070
|
position: -webkit-sticky;
|
|
1071
1071
|
position: sticky;
|
|
1072
1072
|
top: ${c.sp0};
|
|
1073
1073
|
left: ${c.sp0};
|
|
1074
1074
|
`:null}
|
|
1075
|
-
`,
|
|
1075
|
+
`,Zs=a(S)`
|
|
1076
1076
|
user-select: none;
|
|
1077
1077
|
clear: both;
|
|
1078
1078
|
display: inline-block;
|
|
@@ -1083,30 +1083,30 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1083
1083
|
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1084
1084
|
`,$t=a(S)`
|
|
1085
1085
|
user-select: none;
|
|
1086
|
-
min-width: ${
|
|
1087
|
-
max-width: ${
|
|
1086
|
+
min-width: ${R.balanceWidth};
|
|
1087
|
+
max-width: ${R.balanceWidth};
|
|
1088
1088
|
text-align: right;
|
|
1089
|
-
margin-left: ${
|
|
1089
|
+
margin-left: ${R.balanceLeftMargin};
|
|
1090
1090
|
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1091
|
-
`,
|
|
1091
|
+
`,Xs=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?Ys:Ui;return t.jsxs(Ks,{children:[re(e)===!0?t.jsx(r,{children:Z(n)}):null,Fe(e)?t.jsxs(t.Fragment,{children:[t.jsx($t,{children:Z(n)}),t.jsx($t,{children:q(n)}),t.jsx($t,{children:o==="compare_mode_percent"?he(n):ue(n)})]}):null]})};function Qs({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:s,isLeaf:d,compareMode:h,onClick:u}){const g=W(),p=!d,f=p?"pointer":"default";return t.jsx(Gs,{height:r,bgColor:n,windowSize:g,children:t.jsxs(Es,{style:{cursor:f},isClickable:p,onClick:()=>u?.(o),children:[t.jsx(Us,{bgColor:n,isSticky:i,windowSize:g,children:t.jsx(Zs,{children:l})}),t.jsx(Hs,{children:s.map((m,y)=>t.jsx(Xs,{type:e,balance:m,collapsed:!1,compareMode:h},y))})]})})}const _e={net_burn_or_income:{income:{color:new B(V.graphColor04),hoverColor:new B(V.graphColor04Dark)},cogs:{color:new B(V.graphColor10),hoverColor:new B(V.graphColor10Dark)},expenses:{color:new B(V.graphColor32),hoverColor:new B(V.graphColor32Dark)},"Gross Burn":{color:new B(ee.neutralGrey2Dark),hoverColor:new B(ee.neutralGrey2Dark)},"Net Burn":{color:new B(V.graphColor13),hoverColor:new B(V.graphColor13Dark)},"Net Income":{color:new B(V.graphColor13),hoverColor:new B(V.graphColor13Dark)}},revenue:{income:{color:new B(V.graphColor28),hoverColor:new B(V.graphColor28Dark)},cogs:{color:new B(V.graphColor17),hoverColor:new B(V.graphColor17Dark)},"Gross Margin":{color:new B(V.graphColor10),hoverColor:new B(V.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new B(V.graphColor33),hoverColor:new B(V.graphColor33Dark)},cash_out:{color:new B(V.graphColor02),hoverColor:new B(V.graphColor02Dark)},"Net Cash Flow":{color:new B(V.graphColor35),hoverColor:new B(V.graphColor35Dark)}},default:{color:new B(ee.neutralGrey2Dark),hoverColor:new B(ee.neutralGrey2Dark)}},hn=(e,n)=>e.startsWith("net_burn_or_income")===!0?n!=null?_e.net_burn_or_income[n]:_e.default:e.startsWith("revenue")===!0?n!=null?_e.revenue[n]:_e.default:e.startsWith("cash_in_cash_out")===!0&&n!=null?_e.cash_in_cash_out[n]:_e.default,qs=(e,n,i,o,r,l,s,d,h,u,g)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const p=i.element.data,f=Re(i.config.reportId)===!0?Gi("no_filter",i.config.filterAccountsWithNilBalances):dt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),m=te(f.acBalanceSelector(p),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Os,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountBalances:m.balances,isCompareModeOn:i.config.mode==="this_period_vs_period_before",isForecastModeOn:i.config.mode==="actual_vs_forecast",isScrolling:s,isLeaf:d,isLastNode:h,compareMode:u,account:p,onAccountBalanceClick:g==null?void 0:(y,b,$,C)=>{g?.(y,b,$,C)}})},Js=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,m=dt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),y=te(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(js,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountGroupName:f.accountGroupName,compareMode:g,accountGroupBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},Zi=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=hn(i.config.reportId,i.element.sectionType),m=i.element.data,y=te(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionColor:f.color,sectionName:i.element.title,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:b=>{p?.(b)}})},ec=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=hn(i.config.reportId,i.element.sectionType),m=i.element.data,y=te(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:b=>{p?.(b)}})},Xi=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=hn(i.config.reportId,i.element.title),m=i.element.data,y=te(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:b=>{p?.(b)}})},Qi=(e,n,i,o,r,l,s,d)=>{if((i.config.isZeniCOAInUse==null||i.config.isZeniCOAInUse===!0)&&i.config.mode!=="this_period_vs_period_before")return null;const h=i.element.data,u=te(h,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Qs,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,title:i.element.title,height:o,isLeaf:d,compareMode:s,totalBalances:u.balances})},tc=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ei,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),nc=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ki,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),un=20,ic=e=>{const n=[];return e&&Object.values(e).forEach(i=>{n.push(i)}),n.reverse()},oc=a.div`
|
|
1092
1092
|
display: flex;
|
|
1093
1093
|
flex: 1 1 auto;
|
|
1094
1094
|
height: 1px;
|
|
1095
1095
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
1096
|
-
`,
|
|
1096
|
+
`,rc=a.div`
|
|
1097
1097
|
display: flex;
|
|
1098
1098
|
height: 1px;
|
|
1099
1099
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
1100
|
-
`;function
|
|
1100
|
+
`;function It({kind:e,isScrolling:n}){switch(e){case"account_class_row_separator":return t.jsx(oc,{isScrolling:n});case"section_row_separator":case"vendor_separator":return t.jsx(rc,{isScrolling:n});case"heading_row_separator":return null}}const ac=a.div`
|
|
1101
1101
|
position: relative;
|
|
1102
|
-
`,
|
|
1102
|
+
`,lc=a.div`
|
|
1103
1103
|
height: ${e=>e.height}px;
|
|
1104
1104
|
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1105
1105
|
width: 1px;
|
|
1106
1106
|
`;a.div`
|
|
1107
1107
|
height: 39px;
|
|
1108
1108
|
width: 2px;
|
|
1109
|
-
`;const
|
|
1109
|
+
`;const sc=a.div`
|
|
1110
1110
|
position: relative;
|
|
1111
1111
|
margin-right: ${c.sp3};
|
|
1112
1112
|
&::after {
|
|
@@ -1116,11 +1116,11 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1116
1116
|
border-top: 1px solid ${e=>e.theme.colors.grey1};
|
|
1117
1117
|
width: 18px;
|
|
1118
1118
|
}
|
|
1119
|
-
`,
|
|
1119
|
+
`,cc=a.div`
|
|
1120
1120
|
height: ${c.sp6};
|
|
1121
1121
|
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1122
1122
|
width: 1px;
|
|
1123
|
-
`,
|
|
1123
|
+
`,dc=a.div`
|
|
1124
1124
|
position: relative;
|
|
1125
1125
|
margin-right: ${c.sp3};
|
|
1126
1126
|
&::after {
|
|
@@ -1130,12 +1130,12 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1130
1130
|
border-top: 1px solid ${e=>e.theme.colors.grey1};
|
|
1131
1131
|
width: 18px;
|
|
1132
1132
|
}
|
|
1133
|
-
`,
|
|
1133
|
+
`,hc=a.div`
|
|
1134
1134
|
height: ${e=>e.height}px;
|
|
1135
1135
|
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1136
1136
|
margin-bottom: ${e=>e.height}px;
|
|
1137
1137
|
width: 1px;
|
|
1138
|
-
`,
|
|
1138
|
+
`,qi=({height:e})=>t.jsx(ac,{children:t.jsx(lc,{height:e})}),uc=({height:e})=>t.jsx(dc,{height:e,children:t.jsx(hc,{height:e})}),pc=()=>t.jsx(sc,{children:t.jsx(cc,{})}),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 Ji(e,n=!1){switch(e){case"section":return w[8];case"flux_vendor_account_class_row":return n?w[9]:w[6];case"flux_vendor_row":return w[8];case"timeframe_headers":return w[8];case"total":return w[8];case"loading_in_progress":return w[8];case"headers_loading_in_progress":return w[8];default:return 0}}function gc(e){return["section","flux_vendor_account_class_row","flux_vendor_row"].includes(e)}const Dn=I.getLocalizedStrings(),fc=a.div`
|
|
1139
1139
|
display: flex;
|
|
1140
1140
|
flex-shrink: 0;
|
|
1141
1141
|
width: ${j.varianceContainerWidth};
|
|
@@ -1145,12 +1145,12 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1145
1145
|
flex-direction: row;
|
|
1146
1146
|
justify-content: flex-end;
|
|
1147
1147
|
text-align: center;
|
|
1148
|
-
`,
|
|
1148
|
+
`,xc=a.div`
|
|
1149
1149
|
height: ${c.sp4};
|
|
1150
1150
|
border-radius: ${c.sp1};
|
|
1151
1151
|
padding: 2px ${c.sp1};
|
|
1152
1152
|
color: ${e=>e.textColor.hex()};
|
|
1153
|
-
`,
|
|
1153
|
+
`,mc=a.div`
|
|
1154
1154
|
border-radius: ${c.sp1};
|
|
1155
1155
|
padding: 2px ${c.sp1};
|
|
1156
1156
|
height: ${c.sp4};
|
|
@@ -1158,13 +1158,13 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1158
1158
|
text-align: center;
|
|
1159
1159
|
color: ${e=>e.textColor.hex()};
|
|
1160
1160
|
background-color: ${e=>e.bgColor.hex()};
|
|
1161
|
-
`,gt=({amount:e,percentage:n,currency:i})=>{const o=
|
|
1161
|
+
`,gt=({amount:e,percentage:n,currency:i})=>{const o=ce();return t.jsxs(fc,{children:[t.jsx(xc,{textColor:e>0?new B(o.colors.brandColorGoldDark):new B(o.colors.success),children:U("0,0",ir(Math.abs(e),i.currencyCode,i.currencySymbol))}),t.jsx(mc,{textColor:e>0?new B(o.colors.brandColorGoldDark):new B(o.colors.success),bgColor:e>0?new B(ee.brandColorGoldLight):new B(ee.successLight),children:`${Eo(Math.abs(n)).format(Dn.common.numberFormat.roundedOff)}${Dn.common.strings.percentage}`})]})},Rn=I.getLocalizedStrings(),wc=a.div`
|
|
1162
1162
|
display: flex;
|
|
1163
1163
|
flex: 1 1 auto;
|
|
1164
1164
|
width: fit-content;
|
|
1165
1165
|
min-width: 100%;
|
|
1166
1166
|
flex-direction: column;
|
|
1167
|
-
`,
|
|
1167
|
+
`,yc=a.div`
|
|
1168
1168
|
display: flex;
|
|
1169
1169
|
flex: 1 1 auto;
|
|
1170
1170
|
flex-flow: row;
|
|
@@ -1181,16 +1181,16 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1181
1181
|
`,to=a.div`
|
|
1182
1182
|
display: flex;
|
|
1183
1183
|
height: ${c.sp4};
|
|
1184
|
-
`,
|
|
1184
|
+
`,bc=a.div`
|
|
1185
1185
|
display: flex;
|
|
1186
1186
|
flex-direction: row;
|
|
1187
1187
|
justify-content: flex-start;
|
|
1188
|
-
`,
|
|
1188
|
+
`,kc=a(S)`
|
|
1189
1189
|
min-width: ${j.balanceWidth};
|
|
1190
1190
|
max-width: ${j.balanceWidth};
|
|
1191
1191
|
text-align: right;
|
|
1192
1192
|
margin-left: 12px;
|
|
1193
|
-
`,
|
|
1193
|
+
`,jc=a.div`
|
|
1194
1194
|
display: flex;
|
|
1195
1195
|
flex-direction: column;
|
|
1196
1196
|
flex-shrink: 2;
|
|
@@ -1199,34 +1199,34 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1199
1199
|
width: ${j.categoryClassContainerWidth};
|
|
1200
1200
|
max-width: ${j.categoryClassContainerWidth};
|
|
1201
1201
|
padding-left: 67.5px;
|
|
1202
|
-
${({isSticky:e})=>e?
|
|
1202
|
+
${({isSticky:e})=>e?N`
|
|
1203
1203
|
position: sticky;
|
|
1204
1204
|
top: ${c.sp0};
|
|
1205
1205
|
left: ${c.sp0};
|
|
1206
1206
|
display: flex;
|
|
1207
1207
|
`:null}
|
|
1208
|
-
`,
|
|
1208
|
+
`,Cc=a.div`
|
|
1209
1209
|
display: flex;
|
|
1210
1210
|
height: ${c.sp4};
|
|
1211
1211
|
width: 100%;
|
|
1212
|
-
`,
|
|
1212
|
+
`,Sc=a.div`
|
|
1213
1213
|
display: flex;
|
|
1214
1214
|
flex-direction: row;
|
|
1215
1215
|
flex-shrink: 2;
|
|
1216
1216
|
flex-grow: 1;
|
|
1217
1217
|
align-items: center;
|
|
1218
1218
|
width: 100%;
|
|
1219
|
-
|
|
1219
|
+
`,$c=a(Ce)`
|
|
1220
1220
|
display: flex;
|
|
1221
1221
|
width: ${j.categoryClassHeaderWidth};
|
|
1222
1222
|
margin-left: ${c.sp3};
|
|
1223
1223
|
color: ${e=>e.theme.colors.hero};
|
|
1224
|
-
`,
|
|
1224
|
+
`,vc=a(Ce)`
|
|
1225
1225
|
display: flex;
|
|
1226
1226
|
width: ${j.categoryClassHeaderWidth};
|
|
1227
1227
|
margin-left: ${c.sp4};
|
|
1228
1228
|
color: ${e=>e.theme.colors.hero};
|
|
1229
|
-
`,
|
|
1229
|
+
`,_c=a(S)`
|
|
1230
1230
|
clear: both;
|
|
1231
1231
|
display: flex;
|
|
1232
1232
|
overflow: hidden;
|
|
@@ -1236,7 +1236,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1236
1236
|
margin-left: 2px;
|
|
1237
1237
|
width: ${j.categoryClassValueWidth};
|
|
1238
1238
|
max-width: ${j.categoryClassValueWidth};
|
|
1239
|
-
`,
|
|
1239
|
+
`,Lc=a(S)`
|
|
1240
1240
|
display: flex;
|
|
1241
1241
|
align-items: center;
|
|
1242
1242
|
overflow: hidden;
|
|
@@ -1247,24 +1247,24 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1247
1247
|
margin-right: ${c.sp3};
|
|
1248
1248
|
width: ${j.categoryClassValueWidth};
|
|
1249
1249
|
max-width: ${j.categoryClassValueWidth};
|
|
1250
|
-
`,
|
|
1250
|
+
`,Ac=a.div`
|
|
1251
1251
|
display: flex;
|
|
1252
1252
|
margin-left: ${c.sp7};
|
|
1253
1253
|
margin-right: calc(
|
|
1254
1254
|
${j.statusContainerWidth} +
|
|
1255
1255
|
${j.statusLeftMargin}
|
|
1256
1256
|
);
|
|
1257
|
-
|
|
1257
|
+
`,Bc=a.div`
|
|
1258
1258
|
position: sticky;
|
|
1259
1259
|
left: 0;
|
|
1260
1260
|
background-color: ${e=>e.theme.colors.grey4};
|
|
1261
1261
|
display: flex;
|
|
1262
|
-
`,
|
|
1262
|
+
`,Ic=a.div`
|
|
1263
1263
|
overflow-x: auto;
|
|
1264
1264
|
display: flex;
|
|
1265
1265
|
flex: 1;
|
|
1266
1266
|
justify-content: flex-end;
|
|
1267
|
-
`,
|
|
1267
|
+
`,Wc=({isBalanceRowFirstNode:e=!1,balance:n})=>{const i=n!=null;return t.jsxs(eo,{children:[e?t.jsx(to,{}):null,t.jsx(bc,{children:t.jsx(kc,{isClickable:i,children:Z(n)})})]})};function Oc({varianceAmount:e,variancePercentage:n,currency:i,isSticky:o,balances:r,isScrolling:l,nodeMetadata:s,isLeaf:d,isLastNode:h,accountAndClass:u,isHoveredByParent:g}){const{common:{strings:{hyphen:p}}}=I.getLocalizedStrings(),f=u.accountBase?.accountDescription?u.accountBase?.accountDescription:p,m=u.accountBase?.accountName?u.accountBase?.accountName:f,y=u.classBase?.className?u.classBase?.className:p,b=s?.accountAndClassRowMetadata.isLastNode;return t.jsxs(wc,{children:[t.jsxs(yc,{style:{cursor:"default"},isHoveredByParent:g,children:[t.jsx(Bc,{children:t.jsxs(jc,{className:"flux-class-and-account-value-container",isSticky:o,children:[!!s?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(Cc,{children:[t.jsx(qi,{height:j.lineComponentHeight}),t.jsx($c,{children:Rn.common.texts.category}),t.jsx(vc,{children:Rn.common.texts.class})]}),t.jsxs(Sc,{children:[b===!0?t.jsx(uc,{height:j.lineLComponentHeight}):t.jsx(pc,{}),t.jsx(_c,{title:m,children:m}),t.jsx(Lc,{title:y,children:y})]})]})}),t.jsx(Ic,{children:t.jsxs(Ac,{children:[r.map(($,C)=>t.jsx(Wc,{balance:$,isBalanceRowFirstNode:s?.accountAndClassRowMetadata.isFirstNode},C)),t.jsxs(eo,{children:[!!s?.accountAndClassRowMetadata.isFirstNode&&t.jsx(to,{}),t.jsx(gt,{amount:e,percentage:n,currency:i})]})]})})]}),t.jsx(Mc,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:s?.isVendorLastChild??!0})]})}function Mc({isScrolling:e,isLastNode:n,isParentLastChild:i}){return n&&i?t.jsx(It,{isScrolling:e,kind:"vendor_separator"}):n?t.jsx(It,{isScrolling:e,kind:"account_class_row_separator"}):null}function Nc(){return t.jsxs(Pc,{children:[t.jsxs(Fc,{children:[t.jsxs(Le,{width:j.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(De,{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(Le,{width:j.categoryRowsSkeletonContainerWidth,children:t.jsx(K,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:c.sp2}})})]}),t.jsxs(zc,{children:[t.jsx(Le,{width:j.titleWidthMedium,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(Le,{width:j.titleWidthMedium,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(Le,{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(Le,{width:j.titleWidthMedium,children:t.jsx(K,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const Pc=a.div`
|
|
1268
1268
|
display: flex;
|
|
1269
1269
|
flex-direction: row;
|
|
1270
1270
|
width: 100%;
|
|
@@ -1272,7 +1272,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1272
1272
|
.vendor-title {
|
|
1273
1273
|
justify-content: flex-start;
|
|
1274
1274
|
}
|
|
1275
|
-
`,
|
|
1275
|
+
`,Le=a.div`
|
|
1276
1276
|
display: flex;
|
|
1277
1277
|
flex-direction: row;
|
|
1278
1278
|
align-items: center;
|
|
@@ -1284,16 +1284,16 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1284
1284
|
:last-of-type {
|
|
1285
1285
|
justify-content: center;
|
|
1286
1286
|
}
|
|
1287
|
-
`,
|
|
1287
|
+
`,zc=a.div`
|
|
1288
1288
|
display: flex;
|
|
1289
|
-
`,
|
|
1289
|
+
`,Fc=a.div`
|
|
1290
1290
|
display: flex;
|
|
1291
1291
|
width: ${j.vendorContainerWidth};
|
|
1292
1292
|
position: sticky;
|
|
1293
1293
|
left: ${c.sp8};
|
|
1294
1294
|
top: 0;
|
|
1295
1295
|
z-index: 10;
|
|
1296
|
-
`,
|
|
1296
|
+
`,Tc=a.div`
|
|
1297
1297
|
display: flex;
|
|
1298
1298
|
flex: 1 1 auto;
|
|
1299
1299
|
width: fit-content;
|
|
@@ -1301,23 +1301,23 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1301
1301
|
flex-direction: column;
|
|
1302
1302
|
height: ${e=>e.heightValue}px;
|
|
1303
1303
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1304
|
-
`,
|
|
1304
|
+
`,Vc=a.div`
|
|
1305
1305
|
display: flex;
|
|
1306
1306
|
flex: 1 1 auto;
|
|
1307
1307
|
flex-flow: row;
|
|
1308
1308
|
justify-content: flex-start;
|
|
1309
1309
|
align-items: center;
|
|
1310
|
-
`,
|
|
1310
|
+
`,Dc=a.div`
|
|
1311
1311
|
display: flex;
|
|
1312
1312
|
flex-direction: row;
|
|
1313
1313
|
justify-content: flex-start;
|
|
1314
|
-
`,
|
|
1314
|
+
`,Rc=a(S)`
|
|
1315
1315
|
max-width: ${j.balanceWidth};
|
|
1316
1316
|
min-width: ${j.balanceWidth};
|
|
1317
1317
|
text-align: right;
|
|
1318
1318
|
margin-left: ${j.balanceLeftMargin};
|
|
1319
1319
|
color: ${({color:e})=>e};
|
|
1320
|
-
`,
|
|
1320
|
+
`,Gc=a.div`
|
|
1321
1321
|
display: flex;
|
|
1322
1322
|
flex-direction: row;
|
|
1323
1323
|
flex-shrink: 2;
|
|
@@ -1326,12 +1326,12 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1326
1326
|
width: ${j.sectionContainerWidth};
|
|
1327
1327
|
min-width: ${j.sectionContainerWidth};
|
|
1328
1328
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1329
|
-
${({isSticky:e})=>e&&
|
|
1329
|
+
${({isSticky:e})=>e&&N`
|
|
1330
1330
|
position: sticky;
|
|
1331
1331
|
top: ${c.sp0};
|
|
1332
1332
|
left: ${c.sp0};
|
|
1333
1333
|
`}
|
|
1334
|
-
`,
|
|
1334
|
+
`,Ec=a(S)`
|
|
1335
1335
|
clear: both;
|
|
1336
1336
|
display: inline-block;
|
|
1337
1337
|
overflow: hidden;
|
|
@@ -1340,21 +1340,21 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1340
1340
|
text-align: left;
|
|
1341
1341
|
margin-left: ${c.sp2};
|
|
1342
1342
|
color: ${({color:e})=>e};
|
|
1343
|
-
`,
|
|
1343
|
+
`,Hc=a(Kt)`
|
|
1344
1344
|
color: ${e=>e.theme.colors.primary};
|
|
1345
1345
|
width: ${c.sp3};
|
|
1346
1346
|
height: ${c.sp3};
|
|
1347
|
-
`,
|
|
1347
|
+
`,Kc=a.div`
|
|
1348
1348
|
display: flex;
|
|
1349
1349
|
&:hover {
|
|
1350
1350
|
.flux-section-checkbox {
|
|
1351
1351
|
background-color: transparent;
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
|
-
`,
|
|
1354
|
+
`,Yc=a.div`
|
|
1355
1355
|
display: flex;
|
|
1356
1356
|
width: ${c.sp8};
|
|
1357
|
-
`,
|
|
1357
|
+
`,Uc=a.div`
|
|
1358
1358
|
display: flex;
|
|
1359
1359
|
margin-left: ${c.sp7};
|
|
1360
1360
|
flex: 1 1 auto;
|
|
@@ -1363,12 +1363,12 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1363
1363
|
${j.statusContainerWidth} +
|
|
1364
1364
|
${j.statusLeftMargin}
|
|
1365
1365
|
);
|
|
1366
|
-
`,
|
|
1366
|
+
`,Zc=({balance:e,color:n})=>t.jsx(Dc,{children:t.jsx(Rc,{color:n,children:Z(e)})}),Xc=er.memo(function({currency:e,sectionId:n,selectedSectionsIds:i,backgroundColor:o,isSticky:r,treeNodeId:l,height:s,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:g,variancePercentage:p,sectionColor:f,isScrolling:m,isOpen:y,isLeaf:b,idsForReview:$,sectionToggled:C,onSectionCheckboxClick:L}){const v=W(),[A,M]=z.useState($.length>0),[P,E]=z.useState(!1),T=i.includes(n),Y=!b,X=$.length===un&&!T,ae=d?.[0]?.toUpperCase()??"",Q=z.useCallback(J=>{L?.(n,J.target.checked)},[n,L]),de=x("flux-analysis-section-expand-collapse",n),me=x("flux-analysis-section-row",n),le=x("flux-analysis-section-checkbox",n);return t.jsxs(Tc,{heightValue:s,bgColor:o,"data-testid":me,children:[t.jsxs(Vc,{style:{cursor:Y?"pointer":"default"},onClick:()=>C?.(l),onMouseOver:()=>{E(!0),M(!0)},onMouseLeave:()=>{E(!1),$.length===0&&M(!1)},children:[t.jsxs(Gc,{className:"flux-section-name-container",isSticky:r,windowSize:v,bgColor:o,children:[h&&A&&y?t.jsx(Kc,{children:t.jsx(Dt,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox","data-testid":le,icon:t.jsx(Rt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(Hc,{}),checked:T,id:l,disabled:X,onChange:Q,onClick:J=>J.stopPropagation(),style:{padding:"20px",pointerEvents:X?"none":"auto"}})}):t.jsx(Yc,{}),t.jsx(Se,{color:B(f),dataTestId:de,firstLetter:ae,showCollapsedIcon:!y,showIcon:P&&Y}),t.jsx(Ec,{color:f.toString(),children:d})]}),t.jsxs(Uc,{children:[u.map((J,we)=>t.jsx(Zc,{sectionName:d,balance:J,color:f.toString()},we)),t.jsx(gt,{amount:g,percentage:p,currency:e})]})]}),t.jsx(Qc,{isScrolling:m,isLeaf:b,isOpen:y})]})});function Qc({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(It,{isScrolling:e,kind:"section_row_separator"}):null}function qc(){const e=W();return t.jsxs(Jc,{windowSize:e,children:[t.jsx(We,{windowSize:e,width:j.vendorContainerWidth,marginRight:0,children:t.jsx(K,{width:w[9],height:w[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(We,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(K,{width:128,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(We,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(We,{windowSize:e,width:j.varianceRowSkeletonContainerWidth,children:t.jsx(K,{width:184,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(We,{windowSize:e,width:j.titleWidthSmall,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})})]})}const Jc=a.div`
|
|
1367
1367
|
display: flex;
|
|
1368
1368
|
flex-direction: row;
|
|
1369
1369
|
width: 100%;
|
|
1370
1370
|
margin-left: ${c.sp8};
|
|
1371
|
-
`,
|
|
1371
|
+
`,We=a.div`
|
|
1372
1372
|
display: flex;
|
|
1373
1373
|
flex-direction: row;
|
|
1374
1374
|
align-items: center;
|
|
@@ -1380,7 +1380,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1380
1380
|
:first-of-type {
|
|
1381
1381
|
justify-content: flex-start;
|
|
1382
1382
|
}
|
|
1383
|
-
`,{common:
|
|
1383
|
+
`,{common:ed,expenseAutomation:{fluxAnalysis:td},vendors:{opExByVendor:nd}}=I.getLocalizedStrings(),id=a.div`
|
|
1384
1384
|
display: flex;
|
|
1385
1385
|
flex: 1 1 auto;
|
|
1386
1386
|
width: fit-content;
|
|
@@ -1390,7 +1390,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1390
1390
|
justify-content: flex-start;
|
|
1391
1391
|
align-items: center;
|
|
1392
1392
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1393
|
-
`,
|
|
1393
|
+
`,Wt=a.div`
|
|
1394
1394
|
display: flex;
|
|
1395
1395
|
max-height: ${c.sp8};
|
|
1396
1396
|
min-height: ${c.sp8};
|
|
@@ -1403,7 +1403,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1403
1403
|
margin-left: ${j.balanceLeftMargin};
|
|
1404
1404
|
color: ${e=>e.theme.colors.primary};
|
|
1405
1405
|
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
1406
|
-
`,
|
|
1406
|
+
`,od=a(S)`
|
|
1407
1407
|
display: flex;
|
|
1408
1408
|
flex-direction: row;
|
|
1409
1409
|
justify-content: center;
|
|
@@ -1412,28 +1412,28 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1412
1412
|
max-width: ${j.balanceHeaderWidth};
|
|
1413
1413
|
width: 138px;
|
|
1414
1414
|
text-align: center;
|
|
1415
|
-
`,
|
|
1415
|
+
`,rd=a.div`
|
|
1416
1416
|
display: flex;
|
|
1417
1417
|
cursor: pointer;
|
|
1418
|
-
`,
|
|
1418
|
+
`,ad=a.div`
|
|
1419
1419
|
display: flex;
|
|
1420
1420
|
cursor: pointer;
|
|
1421
1421
|
justify-content: center;
|
|
1422
1422
|
align-items: center;
|
|
1423
1423
|
color: ${e=>e.theme.colors.primary};
|
|
1424
|
-
`,
|
|
1424
|
+
`,ld=a.div`
|
|
1425
1425
|
display: flex;
|
|
1426
1426
|
flex-direction: row;
|
|
1427
1427
|
z-index: 1;
|
|
1428
1428
|
background-color: ${e=>e.theme.colors.grey4};
|
|
1429
1429
|
padding-left: ${c.sp8};
|
|
1430
|
-
${({isSticky:e})=>e?
|
|
1430
|
+
${({isSticky:e})=>e?N`
|
|
1431
1431
|
top: ${c.sp0};
|
|
1432
1432
|
left: ${c.sp0};
|
|
1433
1433
|
display: flex;
|
|
1434
1434
|
position: sticky;
|
|
1435
1435
|
`:null};
|
|
1436
|
-
`,
|
|
1436
|
+
`,sd=a.div`
|
|
1437
1437
|
height: ${c.sp8};
|
|
1438
1438
|
display: flex;
|
|
1439
1439
|
flex-direction: row;
|
|
@@ -1441,7 +1441,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1441
1441
|
min-width: ${j.vendorContainerWidth};
|
|
1442
1442
|
color: ${e=>e.theme.colors.primary};
|
|
1443
1443
|
background-color: ${e=>e.theme.colors.grey4};
|
|
1444
|
-
`,
|
|
1444
|
+
`,cd=a(S)`
|
|
1445
1445
|
display: flex;
|
|
1446
1446
|
gap: 6px;
|
|
1447
1447
|
align-items: baseline;
|
|
@@ -1451,22 +1451,22 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1451
1451
|
cursor: pointer;
|
|
1452
1452
|
`,Mt=a.div`
|
|
1453
1453
|
color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
|
|
1454
|
-
`,Nt=a(
|
|
1454
|
+
`,Nt=a(Ut)`
|
|
1455
1455
|
width: ${j.sortIconDimension};
|
|
1456
1456
|
height: ${j.sortIconDimension};
|
|
1457
1457
|
margin-left: ${c.sp2};
|
|
1458
1458
|
margin-top: ${c.sp1};
|
|
1459
|
-
`,Pt=a(
|
|
1459
|
+
`,Pt=a(Zt)`
|
|
1460
1460
|
width: ${j.sortIconDimension};
|
|
1461
1461
|
height: ${j.sortIconDimension};
|
|
1462
1462
|
margin-left: ${c.sp2};
|
|
1463
1463
|
margin-top: ${c.sp1};
|
|
1464
|
-
`,
|
|
1464
|
+
`,dd=a.div`
|
|
1465
1465
|
display: flex;
|
|
1466
1466
|
margin-left: ${c.sp7};
|
|
1467
1467
|
flex: 1 1 auto;
|
|
1468
1468
|
justify-content: flex-end;
|
|
1469
|
-
`,
|
|
1469
|
+
`,hd=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(Wt,{isClickable:!1,children:t.jsx(od,{children:Ee(e,n,i)})}),ud=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(hd,{firstMonthOfFY:e,timeframeTick:n,timeframe:i}),pd=({sortKey:e="vendor",sortOrder:n="ascending",isBulkSelected:i,onSortOrderChanged:o})=>{const r=()=>{o(n==="ascending"?"descending":"ascending","vendor")},l=e==="vendor"?n:"ascending";return t.jsx(cd,{isBulkSelected:i,isSortedByKey:e==="vendor",children:t.jsxs(Ot,{onClick:r,"data-testid":x("flux-analysis-report-timeframe-row-vendor-element-row"),children:[nd.vendor,t.jsx(Mt,{isBulkSelected:i,isSortedByKey:e==="vendor",children:l==="ascending"?t.jsx(Nt,{}):t.jsx(Pt,{})})]})})};function gd({backgroundColor:e,height:n,isBulkSelected:i,sortKey:o="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:s,timeframeTicks:d,onSortOrderChanged:h}){const u=W(),g=(p,f)=>{h?.(p,f)};return t.jsxs(id,{heightValue:n,bgColor:e,children:[t.jsx(ld,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(sd,{windowSize:u,children:t.jsx(pd,{sortKey:o,sortOrder:r,isBulkSelected:i,onSortOrderChanged:g})})}),t.jsxs(dd,{children:[d.map((p,f)=>t.jsx(ud,{firstMonthOfFY:l,timeframeTick:p,timeframe:s},f)),t.jsx(Wt,{isClickable:!1,width:j.varianceHeaderContainerWidth,children:t.jsxs(Ot,{onClick:()=>h?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":x("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(rd,{children:td.variance}),t.jsx(Mt,{isBulkSelected:i,isSortedByKey:o==="variance",children:(o==="variance"?r:"ascending")==="ascending"?t.jsx(Nt,{}):t.jsx(Pt,{})})]})}),t.jsx(Wt,{isClickable:!1,width:j.statusContainerWidth,children:t.jsxs(Ot,{onClick:()=>{h?.(r==="ascending"?"descending":"ascending","status")},"data-testid":x("flux-analysis-report-timeframe-row-status"),children:[t.jsx(ad,{children:ed.texts.reviewStatus}),t.jsx(Mt,{isBulkSelected:i,isSortedByKey:o==="status",children:(o==="status"?r:"ascending")==="ascending"?t.jsx(Nt,{}):t.jsx(Pt,{})})]})})]})]})}const fd=a.div`
|
|
1470
1470
|
display: flex;
|
|
1471
1471
|
flex: 1 1 auto;
|
|
1472
1472
|
width: fit-content;
|
|
@@ -1475,7 +1475,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1475
1475
|
flex-direction: column;
|
|
1476
1476
|
height: ${e=>`${e.heightValue}px`};
|
|
1477
1477
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1478
|
-
`,
|
|
1478
|
+
`,xd=a.div`
|
|
1479
1479
|
cursor: default;
|
|
1480
1480
|
user-select: none;
|
|
1481
1481
|
display: flex;
|
|
@@ -1483,23 +1483,23 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1483
1483
|
flex-flow: row;
|
|
1484
1484
|
justify-content: flex-start;
|
|
1485
1485
|
align-items: center;
|
|
1486
|
-
`,
|
|
1486
|
+
`,md=a.div`
|
|
1487
1487
|
display: flex;
|
|
1488
1488
|
flex-direction: row;
|
|
1489
|
-
`,
|
|
1489
|
+
`,wd=a.div`
|
|
1490
1490
|
display: flex;
|
|
1491
1491
|
flex-direction: row;
|
|
1492
1492
|
justify-content: flex-start;
|
|
1493
1493
|
align-items: center;
|
|
1494
1494
|
margin-left: ${j.balanceLeftMargin};
|
|
1495
|
-
`,
|
|
1495
|
+
`,yd=a(ie)`
|
|
1496
1496
|
user-select: none;
|
|
1497
1497
|
min-width: ${j.balanceWidth};
|
|
1498
1498
|
max-width: ${j.balanceWidth};
|
|
1499
1499
|
text-align: right;
|
|
1500
1500
|
color: ${e=>e.theme.colors.hero};
|
|
1501
1501
|
border: 1px solid transparent;
|
|
1502
|
-
`,
|
|
1502
|
+
`,bd=a.div`
|
|
1503
1503
|
display: flex;
|
|
1504
1504
|
flex-direction: row;
|
|
1505
1505
|
align-items: center;
|
|
@@ -1513,7 +1513,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1513
1513
|
left: ${c.sp8};
|
|
1514
1514
|
top: 0;
|
|
1515
1515
|
z-index: 10;
|
|
1516
|
-
`,
|
|
1516
|
+
`,kd=a(ie)`
|
|
1517
1517
|
user-select: none;
|
|
1518
1518
|
clear: both;
|
|
1519
1519
|
display: inline-block;
|
|
@@ -1522,19 +1522,19 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1522
1522
|
text-overflow: ellipsis;
|
|
1523
1523
|
text-align: left;
|
|
1524
1524
|
color: ${e=>e.theme.colors.primary};
|
|
1525
|
-
`,
|
|
1525
|
+
`,jd=a.div`
|
|
1526
1526
|
display: flex;
|
|
1527
1527
|
width: ${j.statusContainerWidth};
|
|
1528
1528
|
min-width: ${j.statusContainerWidth};
|
|
1529
1529
|
justify-content: center;
|
|
1530
1530
|
flex-direction: row;
|
|
1531
1531
|
margin-left: ${j.statusLeftMargin};
|
|
1532
|
-
`,
|
|
1532
|
+
`,Cd=a.div`
|
|
1533
1533
|
display: flex;
|
|
1534
1534
|
margin-left: ${c.sp7};
|
|
1535
1535
|
flex: 1 1 auto;
|
|
1536
1536
|
justify-content: flex-end;
|
|
1537
|
-
`,
|
|
1537
|
+
`,Sd=({balance:e})=>t.jsx(wd,{children:t.jsx(yd,{children:U("0,0",e?.balance)})});function $d({type:e,height:n,title:i,totalBalances:o,varianceAmount:r,variancePercentage:l,currency:s,backgroundColor:d}){return t.jsx(fd,{"data-testid":x("total-row-root-container"),heightValue:n,bgColor:d,children:t.jsxs(xd,{"data-testid":x("total-row-container"),children:[t.jsx(bd,{className:"flux-total-row",children:t.jsx(kd,{children:i})}),t.jsxs(Cd,{children:[t.jsx(md,{children:re(e)&&o.map((h,u)=>t.jsx(Sd,{balance:h},u))}),t.jsx(gt,{amount:r,percentage:l,currency:s}),t.jsx(jd,{})]})]})})}const vd=a.div`
|
|
1538
1538
|
display: flex;
|
|
1539
1539
|
flex: 1 1 auto;
|
|
1540
1540
|
width: fit-content;
|
|
@@ -1542,7 +1542,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1542
1542
|
flex-direction: column;
|
|
1543
1543
|
height: ${e=>`${e.heightValue}px`};
|
|
1544
1544
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1545
|
-
`,
|
|
1545
|
+
`,_d=a.div`
|
|
1546
1546
|
user-select: none;
|
|
1547
1547
|
display: flex;
|
|
1548
1548
|
flex: 1 1 auto;
|
|
@@ -1565,18 +1565,18 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1565
1565
|
border: 1px solid
|
|
1566
1566
|
${e=>e.shouldHighlight?e.theme.colors.primary:e.theme.colors.hero};
|
|
1567
1567
|
}
|
|
1568
|
-
`,
|
|
1568
|
+
`,Ld=a.div`
|
|
1569
1569
|
display: flex;
|
|
1570
1570
|
flex-direction: row;
|
|
1571
1571
|
justify-content: flex-start;
|
|
1572
1572
|
align-items: center;
|
|
1573
1573
|
margin-left: ${j.balanceLeftMargin};
|
|
1574
|
-
`,
|
|
1574
|
+
`,Ad=a(S)`
|
|
1575
1575
|
user-select: none;
|
|
1576
1576
|
min-width: ${j.balanceWidth};
|
|
1577
1577
|
max-width: ${j.balanceWidth};
|
|
1578
1578
|
text-align: right;
|
|
1579
|
-
|
|
1579
|
+
`,Bd=a.div`
|
|
1580
1580
|
display: flex;
|
|
1581
1581
|
flex-direction: row;
|
|
1582
1582
|
align-items: center;
|
|
@@ -1585,13 +1585,13 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1585
1585
|
width: ${j.titleWidth};
|
|
1586
1586
|
max-width: ${j.titleWidth};
|
|
1587
1587
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1588
|
-
${({isSticky:e})=>e?
|
|
1588
|
+
${({isSticky:e})=>e?N`
|
|
1589
1589
|
position: -webkit-sticky;
|
|
1590
1590
|
position: sticky;
|
|
1591
1591
|
top: ${c.sp0};
|
|
1592
1592
|
left: ${c.sp0};
|
|
1593
1593
|
`:null}
|
|
1594
|
-
`,
|
|
1594
|
+
`,Id=a(S)`
|
|
1595
1595
|
user-select: none;
|
|
1596
1596
|
clear: both;
|
|
1597
1597
|
display: inline-block;
|
|
@@ -1599,11 +1599,11 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1599
1599
|
white-space: nowrap;
|
|
1600
1600
|
text-overflow: ellipsis;
|
|
1601
1601
|
text-align: left;
|
|
1602
|
-
`,
|
|
1602
|
+
`,Wd=a.div`
|
|
1603
1603
|
display: flex;
|
|
1604
1604
|
justify-content: space-between;
|
|
1605
1605
|
flex-grow: 1;
|
|
1606
|
-
`,
|
|
1606
|
+
`,Od=a.div`
|
|
1607
1607
|
display: flex;
|
|
1608
1608
|
align-items: center;
|
|
1609
1609
|
margin-left: 10px;
|
|
@@ -1618,7 +1618,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1618
1618
|
justify-content: flex-end;
|
|
1619
1619
|
text-align: center;
|
|
1620
1620
|
align-items: center;
|
|
1621
|
-
`;const
|
|
1621
|
+
`;const Md=a(Ho)`
|
|
1622
1622
|
width: 12px;
|
|
1623
1623
|
height: 12px;
|
|
1624
1624
|
`;a.div`
|
|
@@ -1632,24 +1632,24 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1632
1632
|
justify-content: center;
|
|
1633
1633
|
text-align: center;
|
|
1634
1634
|
background-color: ${e=>e.bgColor.hex()};
|
|
1635
|
-
`;const
|
|
1635
|
+
`;const Nd=a.div`
|
|
1636
1636
|
display: flex;
|
|
1637
1637
|
margin-left: ${c.sp7};
|
|
1638
1638
|
flex: 1 1 auto;
|
|
1639
1639
|
justify-content: flex-end;
|
|
1640
|
-
`,
|
|
1640
|
+
`,Pd=a.div`
|
|
1641
1641
|
display: flex;
|
|
1642
1642
|
flex-direction: column;
|
|
1643
1643
|
align-items: center;
|
|
1644
1644
|
padding-top: ${e=>e.isNodeOpen?c.sp3:c.sp0};
|
|
1645
|
-
`,
|
|
1645
|
+
`,zd=a.div`
|
|
1646
1646
|
display: flex;
|
|
1647
1647
|
width: ${j.statusContainerWidth};
|
|
1648
1648
|
min-width: ${j.statusContainerWidth};
|
|
1649
1649
|
justify-content: center;
|
|
1650
1650
|
flex-direction: row;
|
|
1651
1651
|
margin-left: ${j.statusLeftMargin};
|
|
1652
|
-
`,
|
|
1652
|
+
`,Fd=a(Ce)`
|
|
1653
1653
|
width: ${j.balanceWidth};
|
|
1654
1654
|
max-width: ${j.balanceWidth};
|
|
1655
1655
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -1658,7 +1658,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1658
1658
|
flex-direction: column;
|
|
1659
1659
|
cursor: pointer;
|
|
1660
1660
|
align-items: center;
|
|
1661
|
-
`,
|
|
1661
|
+
`,Td=a.div`
|
|
1662
1662
|
color: ${e=>e.theme.colors.grey1};
|
|
1663
1663
|
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
1664
1664
|
padding: ${c.sp0} 6px;
|
|
@@ -1667,10 +1667,10 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1667
1667
|
display: flex;
|
|
1668
1668
|
align-items: center;
|
|
1669
1669
|
margin-right: ${c.sp2};
|
|
1670
|
-
`,
|
|
1670
|
+
`,Vd=a(Ce)`
|
|
1671
1671
|
overflow: hidden;
|
|
1672
1672
|
text-overflow: ellipsis;
|
|
1673
|
-
`,
|
|
1673
|
+
`,Dd=a.div`
|
|
1674
1674
|
display: flex;
|
|
1675
1675
|
width: ${c.sp8};
|
|
1676
1676
|
height: ${c.sp8};
|
|
@@ -1679,24 +1679,24 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1679
1679
|
background-color: transparent;
|
|
1680
1680
|
}
|
|
1681
1681
|
}
|
|
1682
|
-
`,
|
|
1682
|
+
`,Rd=a(Kt)`
|
|
1683
1683
|
color: ${e=>e.theme.colors.primary};
|
|
1684
1684
|
width: ${c.sp3};
|
|
1685
1685
|
height: ${c.sp3};
|
|
1686
|
-
`,
|
|
1686
|
+
`,Gd=a(Ce)`
|
|
1687
1687
|
display: flex;
|
|
1688
1688
|
flex-direction: row;
|
|
1689
1689
|
align-items: center;
|
|
1690
1690
|
gap: 2px;
|
|
1691
1691
|
color: ${e=>e.theme.colors.success};
|
|
1692
|
-
`,
|
|
1692
|
+
`,Ed=a(ii)`
|
|
1693
1693
|
width: 12px;
|
|
1694
1694
|
height: 12px;
|
|
1695
1695
|
`,Gn=a(ni)`
|
|
1696
1696
|
margin-left: 2px;
|
|
1697
1697
|
width: 12px;
|
|
1698
1698
|
height: 12px;
|
|
1699
|
-
`,
|
|
1699
|
+
`,Hd=a(Ne)`
|
|
1700
1700
|
display: flex;
|
|
1701
1701
|
border-radius: 50%;
|
|
1702
1702
|
width: ${c.sp4};
|
|
@@ -1704,7 +1704,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1704
1704
|
text-align: center;
|
|
1705
1705
|
align-items: center;
|
|
1706
1706
|
justify-content: center;
|
|
1707
|
-
`,
|
|
1707
|
+
`,Kd=a(Ne)`
|
|
1708
1708
|
display: flex;
|
|
1709
1709
|
border-radius: ${c.sp1};
|
|
1710
1710
|
width: ${c.sp4};
|
|
@@ -1713,7 +1713,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1713
1713
|
align-items: center;
|
|
1714
1714
|
justify-content: center;
|
|
1715
1715
|
margin-right: ${c.sp4};
|
|
1716
|
-
`,
|
|
1716
|
+
`,Yd=a(Ne)`
|
|
1717
1717
|
display: flex;
|
|
1718
1718
|
border-radius: 100px;
|
|
1719
1719
|
width: 18px;
|
|
@@ -1721,14 +1721,14 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1721
1721
|
justify-content: center;
|
|
1722
1722
|
align-items: center;
|
|
1723
1723
|
margin-left: ${c.sp1};
|
|
1724
|
-
`,{common:
|
|
1724
|
+
`,{common:En,expenseAutomation:Ud}=I.getLocalizedStrings(),Zd=({balance:e})=>{const n=Ad;return t.jsx(Ld,{children:t.jsx(n,{children:Z(e)})})};function Xd({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:i,isSticky:o,treeNodeId:r,height:l,leftChevron:s,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:g,reviewedByUser:p,status:f,vendor:m,isOpen:y,childrenCount:b,vendorRowIndex:$,setHoveredParentId:C,onClick:L,handleRedirectToVendorDetailPage:v,updateOperatingExpensesIdsForReview:A}){const[M,P]=z.useState(!1),[E,T]=z.useState(n.length>0),Y=n.includes(e),X=n.includes(e),ae=s==="collapsed",Q=n.length===un&&Y===!1,de=Id,me=ge=>{let fe=n;ge.target.checked===!0?fe=[...fe,e]:fe=fe.filter(Be=>Be!==e),A?.(fe)},le=()=>{v?.(m)},J=$!=null?String($):e,we=x("flux-analysis-vendor-checkbox",J),$e=x("flux-analysis-vendor-detail-navigation",J),ye=x("flux-analysis-vendor-expand-collapse",J),ve=x("flux-analysis-vendor-row",J);return t.jsx(vd,{heightValue:l,bgColor:i,"data-testid":ve,children:t.jsxs(_d,{shouldHighlight:X,isRowExpanded:y,onClick:()=>L?.(r),onMouseOver:()=>{P(!0),T(!0),C?.(m.id)},onMouseLeave:()=>{P(!1),n.length===0&&T(!1),C?.(null)},children:[t.jsxs(Bd,{className:"flux-vendor-name-container",bgColor:i,isSticky:o,children:[t.jsx(Dd,{className:"flux-vendor-checkbox-container",children:E?t.jsx(Dt,{className:"flux-vendor-checkbox","data-testid":we,icon:t.jsx(Rt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(Rd,{}),checked:Y,name:m.name,id:e,disabled:Q,onChange:me,onClick:ge=>ge.stopPropagation(),style:{padding:"20px",pointerEvents:Q?"none":"auto"}}):null}),t.jsxs(Pd,{isNodeOpen:y,children:[M?t.jsx(Hd,{className:"flux-vendor-collapsable-chevron-icon","data-testid":ye,children:y===!1?t.jsx(Gn,{}):t.jsx(Ed,{})}):m.logo!=null?t.jsx(Gt,{photoUrl:m.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(Et,{name:m.name,size:c.sp4}),y?t.jsx(qi,{height:j.vendorLineComponentHeight}):null]}),t.jsxs(Wd,{children:[t.jsxs(Od,{children:[t.jsx(de,{children:m.name}),y?null:t.jsx(Yd,{className:"flux-vendor-children-count",children:t.jsx(Ne,{children:b})})]}),M?t.jsx(z.Fragment,{children:t.jsx(Kd,{className:"flux-vendor-chevron-icon",onClick:le,"data-testid":$e,children:t.jsx(Gn,{})})}):null]})]}),t.jsxs(Nd,{children:[g.map((ge,fe)=>t.jsx(Zd,{balance:ge,collapsed:ae},fe)),t.jsx(gt,{amount:d,percentage:h,currency:u}),t.jsx(zd,{children:f==="Pending Review"?t.jsx(Td,{children:t.jsx(Vd,{children:En.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(Fd,{className:"vendor-flux-analysis-review-info",children:p!=null?t.jsxs(z.Fragment,{children:[t.jsxs(Gd,{children:[t.jsx(Md,{}),Ud.fluxAnalysis.reviewedBy]}),t.jsx(Ne,{children:Po(p)})]}):En.strings.hyphen})})})]})]})})}const Hn={generalExpense:{color:new B(V.graphColor04),hoverColor:new B(V.graphColor04Dark)},reimbursement:{color:new B(V.graphColor10),hoverColor:new B(V.graphColor10Dark)},default:{color:new B(ee.neutralGrey2Dark),hoverColor:new B(ee.neutralGrey2Dark)}},Qd=(e,n)=>e.startsWith("flux_analysis_operating_expense")===!0&&n!=null?Hn[n]:Hn.default,pn=(e,n)=>{const{element:i}=e;return i.kind===n&&i.data!=null},no=e=>ic(e.balancesByMonth),qd=(e,n,i,o,r,l,s,d,h)=>{if(!pn(n,"flux_vendor_account_class_row"))return null;const u=n.element.data,g=no(u),p=n.element.metadata.vendorId;return t.jsx(Oc,{backgroundColor:i,isSticky:o,treeNodeId:e,balances:g,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:u.currency,isScrolling:r,isLeaf:l,isLastNode:s,nodeMetadata:n.element.metadata,accountAndClass:u,onAccountAndClassBalanceClick:()=>h?.(p),isHoveredByParent:d?.hoveredParentId===p})},Jd=(e,n,i,o,r,l,s,d,h,u,g)=>{if(!pn(n,"flux_vendor_row"))return null;const p=n.element.data,f=no(p),m=Ji("flux_vendor_row",h),y=b=>{g?.(b),n.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(b)};return t.jsx(Xd,{backgroundColor:i,isSticky:o,treeNodeId:e,vendorRowIndex:n.element.index,fluxAnalysisEntityId:p.fluxAnalysisEntityId,height:m,leftChevron:"collapsed",idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:p.vendor,vendorBalances:f,varianceAmount:p.varianceAmount,variancePercentage:p.variancePercentage,status:p.status,currency:p.currency,isScrolling:r,isOpen:l,isLeaf:s,isLastNode:d,childrenCount:p.vendorAccountsAndClasses.length,onClick:b=>{y?.(b)},reviewedByUser:p.reviewedByUser,updateOperatingExpensesIdsForReview:n.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:n.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},eh=(e,n,i,o,r,l,s,d,h,u)=>{if(!pn(n,"section"))return null;const g=Qd(n.config.reportId,n.element.sectionType),p=n.element.data,f=m=>{n.config.fluxAnalysisConfig?.onSectionRowClick(m),u?.(m)};return t.jsx(Xc,{backgroundColor:o,isSticky:r,treeNodeId:e,height:i,selectedSectionsIds:n.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:g.color,sectionName:n.element.title,sectionBalances:p.balances,varianceAmount:p.varianceAmount,variancePercentage:p.variancePercentage,currency:p.currency,isScrolling:l,isOpen:s,hasVendors:p.vendors.length>0,isLeaf:d,isLastNode:h,sectionToggled:m=>{f?.(m)},onSectionCheckboxClick:n.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:p.sectionId})},th=(e,n,i)=>{if(e.element.kind!=="timeframe_headers")return null;const o=He(e.element.data,e.config.displayOrder),r=o.length>0?o[0].balanceTimeFrame:"month",l=o.map(d=>Ge(d)),s=(d,h)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(d,h)};return t.jsx(gd,{isSticky:i,height:n,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===un,onSortOrderChanged:s,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},nh=(e,n)=>{if(e.element.kind!=="total")return null;const i=e.element.data;return t.jsx($d,{type:"name+balances_actual",title:e.element.title,totalBalances:i.balances,varianceAmount:i.varianceAmount,variancePercentage:i.variancePercentage,currency:i.currency,height:n})},ih=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(Nc,{}),oh=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(qc,{}),rh=a.div`
|
|
1725
1725
|
display: flex;
|
|
1726
1726
|
flex: 1 1 auto;
|
|
1727
1727
|
width: fit-content;
|
|
1728
1728
|
min-width: 100%;
|
|
1729
1729
|
flex-direction: column;
|
|
1730
1730
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1731
|
-
`,
|
|
1731
|
+
`,ah=a.div`
|
|
1732
1732
|
user-select: none;
|
|
1733
1733
|
display: flex;
|
|
1734
1734
|
flex: 1 1 auto;
|
|
@@ -1737,7 +1737,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1737
1737
|
align-items: center;
|
|
1738
1738
|
height: ${e=>e.height}px;
|
|
1739
1739
|
margin-left: ${e=>e.level*20}px;
|
|
1740
|
-
`,
|
|
1740
|
+
`,lh=a.div`
|
|
1741
1741
|
display: flex;
|
|
1742
1742
|
flex-direction: row;
|
|
1743
1743
|
align-items: center;
|
|
@@ -1746,13 +1746,13 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1746
1746
|
background-color: null;
|
|
1747
1747
|
}
|
|
1748
1748
|
width: 100%;
|
|
1749
|
-
`,
|
|
1749
|
+
`,sh=a(zo)`
|
|
1750
1750
|
width: 100%;
|
|
1751
1751
|
display: flex;
|
|
1752
1752
|
align-items: center;
|
|
1753
|
-
font-weight: ${e=>e.isSubclass?
|
|
1753
|
+
font-weight: ${e=>e.isSubclass?_n.regular:_n.medium};
|
|
1754
1754
|
color: ${e=>e.checked?e.theme.colors.primary:e.theme.colors.hero};
|
|
1755
|
-
`,
|
|
1755
|
+
`,ch=a(Ce)`
|
|
1756
1756
|
display: flex;
|
|
1757
1757
|
color: ${e=>e.theme.colors.primary};
|
|
1758
1758
|
align-items: center;
|
|
@@ -1763,11 +1763,11 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1763
1763
|
border-radius: ${c.sp1};
|
|
1764
1764
|
margin: 0 ${c.sp5} 0 ${c.sp3};
|
|
1765
1765
|
min-width: ${c.sp6};
|
|
1766
|
-
`,
|
|
1766
|
+
`,dh=a(Kt)`
|
|
1767
1767
|
color: ${e=>e.theme.colors.primary};
|
|
1768
1768
|
width: ${c.sp3};
|
|
1769
1769
|
height: ${c.sp3};
|
|
1770
|
-
`;function
|
|
1770
|
+
`;function hh({backgroundColor:e,treeNodeId:n,classId:i,isChecked:o,isDisabled:r,height:l,nestedClass:s,isLeaf:d,showClassAccountNumber:h,onClick:u,onToggleCheck:g}){const[p,f]=z.useState(!1);return t.jsx(rh,{"data-testid":x("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(ah,{"data-testid":x("name-with-checkbox-row-container",n),height:l,isClickable:!d,onClick:()=>u?.(n),onMouseOver:()=>f(!0),onMouseLeave:()=>f(!1),level:s.classId.length,children:[t.jsx(Dt,{"data-testid":x("name-with-checkbox-row-checkbox",s.classId.toString()),icon:t.jsx(Rt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(dh,{}),checked:o,name:s.className,id:n,disabled:r,onChange:m=>{g?.(i,m.target.checked)},style:{height:c.sp6}})," ",t.jsx(lh,{children:t.jsxs(sh,{"data-testid":x("name-with-checkbox-row-label-container",n),checked:o,isSubclass:s.classId.length>1,children:[t.jsx("label",{"data-testid":x("name-with-checkbox-row-label",s.classId.toString()),style:{flexGrow:2,cursor:"pointer"},onClick:()=>{g?.(i,!o)},children:s.className}),p===!0&&h===!0&&s.accountingClassNumber!=null&&t.jsx(ch,{children:s.accountingClassNumber})]})})]})})}const uh=(e,n,i,o,r,l,s,d,h,u,g)=>{if(i.element.kind!="checkbox_and_name_only")return null;const p=i.element.data,f=i.config.isClassToBeFilteredOut?.(p.classId)===!1;return t.jsx(hh,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,classId:p.classId,isChecked:f,isDisabled:!1,height:o,isScrolling:s,nestedClass:p,isOpen:d,isLeaf:h,isLastNode:u,showClassAccountNumber:i.config.showClassAccountNumber,onToggleCheck:g})},O={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 ph(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 gh(e,n){return!1}const fh=a.div`
|
|
1771
1771
|
user-select: none;
|
|
1772
1772
|
display: flex;
|
|
1773
1773
|
flex: 1 1 auto;
|
|
@@ -1778,7 +1778,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1778
1778
|
justify-content: flex-start;
|
|
1779
1779
|
align-items: center;
|
|
1780
1780
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1781
|
-
`,
|
|
1781
|
+
`,xh=a.div`
|
|
1782
1782
|
user-select: none;
|
|
1783
1783
|
display: flex;
|
|
1784
1784
|
flex: 1 1 auto;
|
|
@@ -1789,12 +1789,12 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1789
1789
|
align-items: center;
|
|
1790
1790
|
justify-content: center;
|
|
1791
1791
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1792
|
-
`,
|
|
1792
|
+
`,mh=a.div`
|
|
1793
1793
|
display: flex;
|
|
1794
1794
|
flex: 1 0 auto;
|
|
1795
1795
|
flex-direction: row;
|
|
1796
1796
|
justify-content: flex-end;
|
|
1797
|
-
`,
|
|
1797
|
+
`,Kn=a(S)`
|
|
1798
1798
|
color: ${e=>e.theme.colors.hero};
|
|
1799
1799
|
flex-grow: 1;
|
|
1800
1800
|
-webkit-box-orient: vertical;
|
|
@@ -1804,14 +1804,14 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1804
1804
|
max-width: ${O.balanceWidth};
|
|
1805
1805
|
margin-left: ${e=>e.isClubbed===!0?c.sp2:O.balanceLeftMargin};
|
|
1806
1806
|
border: 1px solid transparent;
|
|
1807
|
-
`,
|
|
1807
|
+
`,Yn=a(S)`
|
|
1808
1808
|
color: ${e=>e.theme.colors.hero};
|
|
1809
1809
|
flex-grow: 1;
|
|
1810
1810
|
-webkit-box-orient: vertical;
|
|
1811
1811
|
justify-content: "unset";
|
|
1812
1812
|
display: flex;
|
|
1813
1813
|
min-width: ${e=>O.categoryClassWidth.valuePx(e.windowSize)};
|
|
1814
|
-
`,
|
|
1814
|
+
`,wh=a.div`
|
|
1815
1815
|
height: 100%;
|
|
1816
1816
|
display: flex;
|
|
1817
1817
|
flex-direction: row;
|
|
@@ -1819,14 +1819,14 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1819
1819
|
min-width: ${e=>O.titleWidth.valuePx(e.windowSize)};
|
|
1820
1820
|
color: ${e=>e.theme.colors.primary};
|
|
1821
1821
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1822
|
-
${({isSticky:e})=>e?
|
|
1822
|
+
${({isSticky:e})=>e?N`
|
|
1823
1823
|
position: -webkit-sticky;
|
|
1824
1824
|
position: sticky;
|
|
1825
1825
|
top: ${c.sp0};
|
|
1826
1826
|
left: ${c.sp0};
|
|
1827
1827
|
z-index: 20;
|
|
1828
1828
|
`:null}
|
|
1829
|
-
`;function
|
|
1829
|
+
`;function yh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const s=W();return l.length>0?t.jsxs(fh,{height:i,bgColor:e,"data-testid":x("opex-vendor-loading-in-progress-row"),children:[t.jsxs(wh,{"data-testid":x("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:s,bgColor:e,children:[t.jsx(De,{width:w[4],height:w[4]}),t.jsx(Kn,{windowSize:s,isClubbed:!0,children:t.jsx(K,{width:120,height:w[4]})})]}),t.jsxs(mh,{children:[o?t.jsx(Yn,{windowSize:s,children:t.jsx(K,{width:120,height:w[4]})}):null,r?t.jsx(Yn,{windowSize:s,children:t.jsx(K,{width:120,height:w[4]})}):null,l.map((d,h)=>t.jsx(Kn,{windowSize:s,children:t.jsx(K,{width:120,height:w[4]})},`${h}RowItem`))]})]}):t.jsx(xh,{height:i,bgColor:e,children:t.jsx(Oo,{size:"Small",start:!0})})}const bh=a.div`
|
|
1830
1830
|
user-select: none;
|
|
1831
1831
|
display: flex;
|
|
1832
1832
|
flex: 1 1 auto;
|
|
@@ -1837,12 +1837,12 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1837
1837
|
justify-content: flex-start;
|
|
1838
1838
|
align-items: center;
|
|
1839
1839
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1840
|
-
`,vt=a.div``,
|
|
1840
|
+
`,vt=a.div``,kh=a.div`
|
|
1841
1841
|
display: flex;
|
|
1842
1842
|
flex: 1 0 auto;
|
|
1843
1843
|
flex-direction: row;
|
|
1844
1844
|
justify-content: flex-end;
|
|
1845
|
-
`,
|
|
1845
|
+
`,jh=a(S)`
|
|
1846
1846
|
user-select: none;
|
|
1847
1847
|
clear: both;
|
|
1848
1848
|
display: inline-block;
|
|
@@ -1852,7 +1852,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1852
1852
|
text-align: left;
|
|
1853
1853
|
margin-left: ${c.sp2};
|
|
1854
1854
|
color: ${e=>e.theme.colors.hero};
|
|
1855
|
-
`,
|
|
1855
|
+
`,Ch=a(S)`
|
|
1856
1856
|
color: ${e=>e.theme.colors.hero};
|
|
1857
1857
|
flex-grow: 1;
|
|
1858
1858
|
-webkit-box-orient: vertical;
|
|
@@ -1860,14 +1860,14 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1860
1860
|
min-width: ${O.balanceWidth};
|
|
1861
1861
|
max-width: ${O.balanceWidth};
|
|
1862
1862
|
border: 1px solid transparent;
|
|
1863
|
-
`,
|
|
1863
|
+
`,Un=a(S)`
|
|
1864
1864
|
color: ${e=>e.theme.colors.hero};
|
|
1865
1865
|
flex-grow: 1;
|
|
1866
1866
|
-webkit-box-orient: vertical;
|
|
1867
1867
|
justify-content: "unset";
|
|
1868
1868
|
display: flex;
|
|
1869
1869
|
min-width: ${e=>O.categoryClassWidth.valuePx(e.windowSize)};
|
|
1870
|
-
`,
|
|
1870
|
+
`,Sh=a.div`
|
|
1871
1871
|
height: 100%;
|
|
1872
1872
|
display: flex;
|
|
1873
1873
|
flex-direction: row;
|
|
@@ -1875,16 +1875,16 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1875
1875
|
min-width: ${e=>O.titleWidth.valuePx(e.windowSize)};
|
|
1876
1876
|
color: ${e=>e.theme.colors.primary};
|
|
1877
1877
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1878
|
-
${({isSticky:e})=>e?
|
|
1878
|
+
${({isSticky:e})=>e?N`
|
|
1879
1879
|
position: -webkit-sticky;
|
|
1880
1880
|
position: sticky;
|
|
1881
1881
|
top: ${c.sp0};
|
|
1882
1882
|
left: ${c.sp0};
|
|
1883
1883
|
z-index: 20;
|
|
1884
1884
|
`:null}
|
|
1885
|
-
`;function
|
|
1885
|
+
`;function $h({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const s=W();return t.jsxs(bh,{height:i,bgColor:e,"data-testid":x("no-results-found-title-row"),children:[t.jsx(Sh,{isSticky:n,windowSize:s,bgColor:e,children:t.jsx(jh,{children:I.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(kh,{children:[o?t.jsx(Un,{windowSize:s,children:t.jsx(vt,{})}):null,r?t.jsx(Un,{windowSize:s,children:t.jsx(vt,{})}):null,l.map((d,h)=>t.jsx(Ch,{windowSize:s,children:t.jsx(vt,{children:" "})},`${h}RowItem`))]})]})}function gn({title:e,selectedMode:n,onCompareModeChanged:i,backgroundColor:o,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:s,titleTextStyle:d,titleTextAlignment:h,titleColor:u,menuPosition:g}){const p=["compare_mode_percent","compare_mode_amount"],f=m=>I.getLocalizedStrings().compareMode[m];return t.jsx(Ko,{title:e,pickerValues:p,valueToLabel:f,selectedValue:n,onPickerSelectionChanged:m=>i(m),optionTextStyle:s,titleTextStyle:d,titleTextAlignment:h,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:o??"inherit",menuPosition:g})}const zt={balanceHeight:c.sp4,balanceWidthInPx:170,balanceLeftMargin:c.sp4},vh=a.div`
|
|
1886
1886
|
margin-left: ${c.sp4};
|
|
1887
|
-
`,
|
|
1887
|
+
`,_h=a.div`
|
|
1888
1888
|
display: flex;
|
|
1889
1889
|
max-height: 54px;
|
|
1890
1890
|
min-height: 54px;
|
|
@@ -1896,14 +1896,14 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1896
1896
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1897
1897
|
border-radius: ${c.sp2};
|
|
1898
1898
|
color: ${e=>e.theme.colors.primary};
|
|
1899
|
-
`,
|
|
1899
|
+
`,Lh=a(S)`
|
|
1900
1900
|
display: flex;
|
|
1901
1901
|
user-select: none;
|
|
1902
1902
|
flex-direction: row;
|
|
1903
1903
|
justify-content: center;
|
|
1904
1904
|
align-items: center;
|
|
1905
1905
|
height: ${zt.balanceHeight};
|
|
1906
|
-
`,
|
|
1906
|
+
`,Ah=a.div`
|
|
1907
1907
|
display: flex;
|
|
1908
1908
|
flex-direction: row;
|
|
1909
1909
|
justify-content: center;
|
|
@@ -1912,19 +1912,19 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1912
1912
|
margin-right: ${c.sp2};
|
|
1913
1913
|
position: relative;
|
|
1914
1914
|
top: -12px;
|
|
1915
|
-
|
|
1916
|
-
color: ${e=>e.tagType==="under_review"?
|
|
1915
|
+
`,Bh=a(Jo)`
|
|
1916
|
+
color: ${e=>e.tagType==="under_review"?ee.neutralGrey5Light:e.theme.mode==="light"?ee.primaryDark:ee.primaryLight};
|
|
1917
1917
|
border-radius: ${c.sp2};
|
|
1918
1918
|
padding: 3px 6px;
|
|
1919
1919
|
margin-left: 12px;
|
|
1920
|
-
background: ${e=>e.tagType==="under_review"?
|
|
1921
|
-
`,
|
|
1920
|
+
background: ${e=>e.tagType==="under_review"?ee.alertDark:e.theme.mode==="light"?ee.championLight:ee.championDark};
|
|
1921
|
+
`,Ih=a(qo)`
|
|
1922
1922
|
color: ${e=>e.theme.colors.hero};
|
|
1923
1923
|
margin-left: 5px;
|
|
1924
1924
|
height: ${c.sp3};
|
|
1925
1925
|
width: ${c.sp3};
|
|
1926
1926
|
margin-top: ${c.sp1};
|
|
1927
|
-
`;function
|
|
1927
|
+
`;function Wh(e){if(e==="under_review")return x("report-tree-timeframe-tag","under-review");if(e==="incomplete")return x("report-tree-timeframe-tag","in-progress")}function io({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:o,infoContent:r,tagType:l}){return t.jsxs(vh,{children:[t.jsxs(_h,{children:[t.jsx(Lh,{children:Ee(e,n,i)}),t.jsx(Qo,{style:{padding:c.sp3},title:r,placement:"top",children:t.jsx(Ih,{})})]}),t.jsx(Ah,{"data-testid":Wh(l),children:t.jsx(Bh,{tagType:l,children:o})})]})}const oo=(e,n)=>{const i=I.getLocalizedStrings().reports;switch(n){case"month":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoMonth:i.bookCloseIncompleteInfoMonth:void 0;case"quarter":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoQuarter:i.bookCloseIncompleteInfoQuarter:void 0;case"year":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoYear:i.bookCloseIncompleteInfoYear:void 0;default:return}},Oh=a.div`
|
|
1928
1928
|
user-select: none;
|
|
1929
1929
|
display: flex;
|
|
1930
1930
|
flex: 1 1 auto;
|
|
@@ -1935,7 +1935,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1935
1935
|
justify-content: flex-start;
|
|
1936
1936
|
align-items: center;
|
|
1937
1937
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1938
|
-
`,
|
|
1938
|
+
`,Mh=a.div`
|
|
1939
1939
|
display: flex;
|
|
1940
1940
|
flex: 1 0 auto;
|
|
1941
1941
|
flex-direction: row;
|
|
@@ -1963,19 +1963,19 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1963
1963
|
max-width: ${O.balanceWidth};
|
|
1964
1964
|
width: 138px;
|
|
1965
1965
|
text-align: center;
|
|
1966
|
-
`,
|
|
1966
|
+
`,Nh=a.div`
|
|
1967
1967
|
display: flex;
|
|
1968
1968
|
flex-direction: row;
|
|
1969
1969
|
z-index: 1;
|
|
1970
1970
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1971
|
-
${({isSticky:e})=>e?
|
|
1971
|
+
${({isSticky:e})=>e?N`
|
|
1972
1972
|
position: -webkit-sticky;
|
|
1973
1973
|
position: sticky;
|
|
1974
1974
|
top: ${c.sp0};
|
|
1975
1975
|
left: ${c.sp0};
|
|
1976
1976
|
z-index: 1;
|
|
1977
1977
|
`:null}
|
|
1978
|
-
`,
|
|
1978
|
+
`,Ph=a.div`
|
|
1979
1979
|
max-height: ${e=>e.plHeight}px;
|
|
1980
1980
|
min-height: ${e=>e.plHeight}px;
|
|
1981
1981
|
display: flex;
|
|
@@ -1984,7 +1984,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1984
1984
|
min-width: ${e=>O.titleWidth.valuePx(e.windowSize)};
|
|
1985
1985
|
color: ${e=>e.theme.colors.primary};
|
|
1986
1986
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1987
|
-
`,
|
|
1987
|
+
`,zh=a(S)`
|
|
1988
1988
|
display: flex;
|
|
1989
1989
|
gap: 6px;
|
|
1990
1990
|
align-items: baseline;
|
|
@@ -1999,15 +1999,15 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
1999
1999
|
display: flex;
|
|
2000
2000
|
gap: 6px;
|
|
2001
2001
|
align-items: center;
|
|
2002
|
-
`,
|
|
2002
|
+
`,fn=a.div`
|
|
2003
2003
|
display: flex;
|
|
2004
2004
|
cursor: pointer;
|
|
2005
|
-
`,
|
|
2005
|
+
`,Fh=a.div`
|
|
2006
2006
|
display: flex;
|
|
2007
2007
|
justify-content: center;
|
|
2008
2008
|
align-items: center;
|
|
2009
2009
|
color: ${e=>e.theme.colors.champion};
|
|
2010
|
-
`,
|
|
2010
|
+
`,Th=a.div``,Vh=a(S)`
|
|
2011
2011
|
display: flex;
|
|
2012
2012
|
justify-content: center;
|
|
2013
2013
|
align-items: center;
|
|
@@ -2025,32 +2025,32 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2025
2025
|
min-height: ${c.sp8};
|
|
2026
2026
|
`,ft=a.div`
|
|
2027
2027
|
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
|
|
2028
|
-
`,xt=a(
|
|
2028
|
+
`,xt=a(Zt)`
|
|
2029
2029
|
width: 12px;
|
|
2030
2030
|
height: 12px;
|
|
2031
2031
|
margin-left: ${c.sp2};
|
|
2032
2032
|
margin-top: ${c.sp1};
|
|
2033
|
-
`,mt=a(
|
|
2033
|
+
`,mt=a(Ut)`
|
|
2034
2034
|
width: 12px;
|
|
2035
2035
|
height: 12px;
|
|
2036
2036
|
margin-left: ${c.sp2};
|
|
2037
2037
|
margin-top: ${c.sp1};
|
|
2038
|
-
`,
|
|
2038
|
+
`,xn=a(ai)`
|
|
2039
2039
|
width: 12px;
|
|
2040
2040
|
height: 12px;
|
|
2041
2041
|
cursor: pointer;
|
|
2042
2042
|
color: ${e=>e.theme.colors.hero};
|
|
2043
|
-
`,co=({sortOrder:e,sortKey:n,onSortOrderChanged:i})=>{const o=()=>{i(wt("totals",e,n),"totals")},r=n==="totals"?e:"ascending";return t.jsx(so,{"data-testid":x("period-total-tick"),children:t.jsx(ro,{"data-testid":x("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(ao,{children:[
|
|
2043
|
+
`,co=({sortOrder:e,sortKey:n,onSortOrderChanged:i})=>{const o=()=>{i(wt("totals",e,n),"totals")},r=n==="totals"?e:"ascending";return t.jsx(so,{"data-testid":x("period-total-tick"),children:t.jsx(ro,{"data-testid":x("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(ao,{children:[I.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(ft,{selectedForSort:n==="totals","data-testid":x("report-tree-column-header-sort-icon","period-total"),children:r==="ascending"?t.jsx(mt,{}):t.jsx(xt,{})})]})})})},Dh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(wt("vendor",n,e),"vendor")},l=e==="vendor"?n:"ascending";return t.jsxs(zh,{selectedForSort:e==="vendor","data-testid":x("report-tree-column-header","vendor"),children:[t.jsxs(fn,{onClick:r,children:[I.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(ft,{selectedForSort:e==="vendor","data-testid":x("report-tree-column-header-sort-icon","vendor"),children:l==="ascending"?t.jsx(mt,{}):t.jsx(xt,{})})]}),e==="vendor"?t.jsx(xn,{"data-testid":x("report-tree-column-header-sort-cancel","vendor"),onClick:o}):null]})},Rh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(wt("account",n,e),"account")},l=e==="account"?n:"ascending",s=W();return t.jsxs(lo,{selectedForSort:e==="account",windowSize:s,"data-testid":x("report-tree-column-header","account"),children:[t.jsxs(fn,{onClick:r,children:[I.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(ft,{selectedForSort:e==="account","data-testid":x("report-tree-column-header-sort-icon","account"),children:l==="ascending"?t.jsx(mt,{}):t.jsx(xt,{})})]}),e==="account"?t.jsx(xn,{"data-testid":x("report-tree-column-header-sort-cancel","account"),onClick:o}):null]})},Gh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(wt("class",n,e),"class")},l=e==="class"?n:"ascending",s=W();return t.jsxs(lo,{selectedForSort:e==="class",windowSize:s,"data-testid":x("report-tree-column-header","class"),children:[t.jsxs(fn,{onClick:r,children:[I.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(ft,{selectedForSort:e==="class","data-testid":x("report-tree-column-header-sort-icon","class"),children:l==="ascending"?t.jsx(mt,{}):t.jsx(xt,{})})]}),e==="class"?t.jsx(xn,{"data-testid":x("report-tree-column-header-sort-cancel","class"),onClick:o}):null]})},ho=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tickColumnIndex:o,bookCloseDate:r,dataAvailable:l})=>{const s=I.getLocalizedStrings().reports,d=r!=null&&l!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?di(i,e,n,r,l):void 0,h=d!=null?d==="under_review"?s.bookCloseTagUnderReview:s.bookCloseTagInProgress:void 0,u=oo(d,i),g=x("report-tree-column-header-timeframe",String(o));return t.jsx(so,{"data-testid":g,children:r!=null&&l!=null&&d!=null&&h!=null&&u!=null?t.jsx(io,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:h,infoContent:u,tagType:d}):t.jsx(ro,{isClickable:!1,children:t.jsx(ao,{children:Ee(e,n,i)})})})},Eh=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tickColumnIndex:o,onSortOrderChanged:r,bookCloseDate:l,dataAvailable:s,sortKey:d="totals",sortOrder:h="ascending"})=>n.balanceType==="period_total"?t.jsx(co,{sortKey:d,sortOrder:h,onSortOrderChanged:r}):t.jsx(ho,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tickColumnIndex:o,dataAvailable:s,bookCloseDate:l}),Hh=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:s,bookCloseDate:d,onCompareModeChanged:h,onSortOrderChanged:u})=>{const g=ce(),p=o==="compare_mode_amount"?`${I.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:I.getLocalizedStrings().compareMode.changePercent;return t.jsx(Fh,{children:n.map((f,m)=>t.jsxs(z.Fragment,{children:[f.balanceType==="this_period_vs_last_period"||f.balanceType==="this_period_vs_last_period_percent"?t.jsx(Vh,{"data-testid":x("report-tree-column-header-compare-mode",String(m)),children:t.jsx(gn,{title:p,titleTextStyle:Yt.standardRegular,titleTextAlignment:"flex-end",titleColor:g.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:y=>{y!=="off"&&(y==="compare_mode_amount"||y==="compare_mode_percent"?h?.(y):console.warn("Invalid compare mode option"))}})}):null,f.balanceType==="period_total"?t.jsx(co,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,f.balanceType==="default"?t.jsx(Th,{children:t.jsx(ho,{firstMonthOfFY:e,timeframeTick:f,timeframe:i,tickColumnIndex:m,dataAvailable:s,bookCloseDate:d},m)}):null]},m))})};function Kh({backgroundColor:e,isSticky:n,height:i,isCompareModeOn:o,isAccountColumnShown:r,isClassColumnShown:l,sortKey:s,sortOrder:d,firstMonthOfFY:h,timeframe:u,timeframeTicks:g,compareMode:p,dataAvailable:f,bookCloseDate:m,onCompareModeChanged:y,onSortOrderChanged:b}){const $=W(),C=(v,A)=>{b?.(v,A)},L=()=>{b?.("descending","totals")};return t.jsxs(Oh,{height:i,bgColor:e,children:[t.jsx(Nh,{bgColor:e,windowSize:$,isSticky:n,children:t.jsx(Ph,{plHeight:i,windowSize:$,bgColor:e,children:t.jsx(Dh,{sortKey:s,sortOrder:d,onSortOrderChanged:C,onSortCancel:L})})}),r?t.jsx(Rh,{sortKey:s,sortOrder:d,onSortOrderChanged:C,onSortCancel:L}):null,l?t.jsx(Gh,{sortKey:s,sortOrder:d,onSortOrderChanged:C,onSortCancel:L}):null,t.jsx(Mh,{children:o===!0?t.jsx(Hh,{firstMonthOfFY:h,timeframe:u,sortKey:s,sortOrder:d,timeframeTicks:g,compareMode:p,dataAvailable:f,bookCloseDate:m,onCompareModeChanged:y,onSortOrderChanged:C}):g.map((v,A)=>t.jsx(Eh,{firstMonthOfFY:h,timeframeTick:v,timeframe:u,tickColumnIndex:A,onSortOrderChanged:C,bookCloseDate:m,dataAvailable:f,sortKey:s,sortOrder:d},A))})]})}const wt=(e,n,i)=>e===i?n==="ascending"?"descending":"ascending":"descending",Yh=a.div`
|
|
2044
2044
|
display: flex;
|
|
2045
2045
|
flex: 1 1 auto;
|
|
2046
2046
|
max-height: 1px;
|
|
2047
2047
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
2048
|
-
`,
|
|
2048
|
+
`,Uh=a.div`
|
|
2049
2049
|
display: flex;
|
|
2050
2050
|
flex: 1 1 auto;
|
|
2051
2051
|
max-height: 1px;
|
|
2052
2052
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
2053
|
-
`;function Ft({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(
|
|
2053
|
+
`;function Ft({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(Yh,{isScrolling:n});case"end_row_separator":return t.jsx(Uh,{isScrolling:n})}}const Zh=a.div`
|
|
2054
2054
|
display: flex;
|
|
2055
2055
|
flex: 1 1 auto;
|
|
2056
2056
|
width: fit-content;
|
|
@@ -2058,7 +2058,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2058
2058
|
flex-direction: column;
|
|
2059
2059
|
height: ${e=>e.height}px;
|
|
2060
2060
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2061
|
-
`,
|
|
2061
|
+
`,Xh=a.div`
|
|
2062
2062
|
user-select: none;
|
|
2063
2063
|
display: flex;
|
|
2064
2064
|
flex: 1 1 auto;
|
|
@@ -2066,16 +2066,16 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2066
2066
|
justify-content: flex-start;
|
|
2067
2067
|
align-items: center;
|
|
2068
2068
|
cursor: default;
|
|
2069
|
-
`,
|
|
2069
|
+
`,Qh=a.div`
|
|
2070
2070
|
display: flex;
|
|
2071
2071
|
flex: 1 0 auto;
|
|
2072
2072
|
flex-direction: row;
|
|
2073
2073
|
justify-content: flex-end;
|
|
2074
|
-
`,
|
|
2074
|
+
`,qh=a.div`
|
|
2075
2075
|
display: flex;
|
|
2076
2076
|
flex-direction: row;
|
|
2077
2077
|
justify-content: flex-start;
|
|
2078
|
-
`,uo=a(
|
|
2078
|
+
`,uo=a(ie)`
|
|
2079
2079
|
user-select: none;
|
|
2080
2080
|
min-width: ${O.balanceWidth};
|
|
2081
2081
|
max-width: ${O.balanceWidth};
|
|
@@ -2083,22 +2083,22 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2083
2083
|
margin-left: ${O.balanceLeftMargin};
|
|
2084
2084
|
color: ${e=>e.theme.colors.primary};
|
|
2085
2085
|
border: 1px solid transparent;
|
|
2086
|
-
`,
|
|
2086
|
+
`,Jh=a(uo)`
|
|
2087
2087
|
color: ${e=>e.theme.colors.hero};
|
|
2088
2088
|
&:hover {
|
|
2089
2089
|
color: inherit;
|
|
2090
2090
|
}
|
|
2091
|
-
`,
|
|
2091
|
+
`,eu=a.div`
|
|
2092
2092
|
display: flex;
|
|
2093
2093
|
flex-direction: row;
|
|
2094
2094
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2095
|
-
${({isSticky:e})=>e?
|
|
2095
|
+
${({isSticky:e})=>e?N`
|
|
2096
2096
|
position: -webkit-sticky;
|
|
2097
2097
|
position: sticky;
|
|
2098
2098
|
top: ${c.sp0};
|
|
2099
2099
|
left: ${c.sp0};
|
|
2100
2100
|
`:null}
|
|
2101
|
-
`,
|
|
2101
|
+
`,tu=a.div`
|
|
2102
2102
|
display: flex;
|
|
2103
2103
|
flex-direction: row;
|
|
2104
2104
|
flex-shrink: 2;
|
|
@@ -2107,11 +2107,11 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2107
2107
|
width: ${e=>O.titleWidth.valuePx(e.windowSize)};
|
|
2108
2108
|
max-width: ${e=>O.titleWidth.valuePx(e.windowSize)};
|
|
2109
2109
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2110
|
-
`,
|
|
2110
|
+
`,Zn=a.div`
|
|
2111
2111
|
width: ${e=>O.categoryClassWidth.valuePx(e.windowSize)};
|
|
2112
2112
|
max-width: ${e=>O.categoryClassWidth.valuePx(e.windowSize)};
|
|
2113
2113
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2114
|
-
`,
|
|
2114
|
+
`,nu=a(ie)`
|
|
2115
2115
|
user-select: none;
|
|
2116
2116
|
clear: both;
|
|
2117
2117
|
display: inline-block;
|
|
@@ -2120,7 +2120,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2120
2120
|
text-overflow: ellipsis;
|
|
2121
2121
|
text-align: left;
|
|
2122
2122
|
color: ${e=>e.theme.colors.primary};
|
|
2123
|
-
`,
|
|
2123
|
+
`,iu=({balance:e,collapsed:n,timeframeColumnIndex:i,treeNodeId:o,type:r})=>{const l=n===!0?Jh:uo;return t.jsx(qh,{"data-testid":x("report-tree-total-row-amount",`${o}-${String(i)}`),children:re(r)===!0?t.jsx(l,{children:Z(e)}):null})};function ou({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:s,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:g}){const p=W();return t.jsxs(Zh,{"data-testid":x("total-row-root-container",o),height:r,bgColor:n,windowSize:p,children:[t.jsxs(Xh,{"data-testid":x("total-row-container",o),onClick:()=>u?.(o),children:[t.jsxs(eu,{bgColor:n,windowSize:p,isSticky:i,children:[t.jsx(tu,{bgColor:n,windowSize:p,children:t.jsx(nu,{children:l})}),d?t.jsx(Zn,{windowSize:p}):null,h?t.jsx(Zn,{windowSize:p}):null]}),t.jsx(Qh,{children:s.map((f,m)=>t.jsx(iu,{balance:f,collapsed:!1,timeframeColumnIndex:m,treeNodeId:o,type:e},m))})]}),t.jsx(Ft,{isScrolling:g,kind:"vendor_row_separator"})]})}const ru=a.div`
|
|
2124
2124
|
display: flex;
|
|
2125
2125
|
flex: 1 1 auto;
|
|
2126
2126
|
width: fit-content;
|
|
@@ -2128,7 +2128,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2128
2128
|
flex-direction: column;
|
|
2129
2129
|
height: ${e=>e.height}px;
|
|
2130
2130
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2131
|
-
`,
|
|
2131
|
+
`,au=a.div`
|
|
2132
2132
|
user-select: none;
|
|
2133
2133
|
display: flex;
|
|
2134
2134
|
flex: 1 1 auto;
|
|
@@ -2138,16 +2138,16 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2138
2138
|
&:hover {
|
|
2139
2139
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2140
2140
|
}
|
|
2141
|
-
`,
|
|
2141
|
+
`,lu=a.div`
|
|
2142
2142
|
display: flex;
|
|
2143
2143
|
flex: 1 0 auto;
|
|
2144
2144
|
flex-direction: row;
|
|
2145
2145
|
justify-content: flex-end;
|
|
2146
|
-
`,
|
|
2146
|
+
`,su=a.div`
|
|
2147
2147
|
display: flex;
|
|
2148
2148
|
flex-direction: row;
|
|
2149
2149
|
justify-content: flex-start;
|
|
2150
|
-
`,
|
|
2150
|
+
`,cu=a(S)`
|
|
2151
2151
|
user-select: none;
|
|
2152
2152
|
min-width: ${O.balanceWidth};
|
|
2153
2153
|
max-width: ${O.balanceWidth};
|
|
@@ -2159,17 +2159,17 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2159
2159
|
&:hover {
|
|
2160
2160
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2161
2161
|
}
|
|
2162
|
-
`,
|
|
2162
|
+
`,du=a.div`
|
|
2163
2163
|
display: flex;
|
|
2164
2164
|
flex-direction: row;
|
|
2165
2165
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2166
|
-
${({isSticky:e})=>e?
|
|
2166
|
+
${({isSticky:e})=>e?N`
|
|
2167
2167
|
position: -webkit-sticky;
|
|
2168
2168
|
position: sticky;
|
|
2169
2169
|
top: ${c.sp0};
|
|
2170
2170
|
left: ${c.sp0};
|
|
2171
2171
|
`:null}
|
|
2172
|
-
`,
|
|
2172
|
+
`,hu=a.div`
|
|
2173
2173
|
display: flex;
|
|
2174
2174
|
flex-direction: row;
|
|
2175
2175
|
flex-shrink: 2;
|
|
@@ -2179,7 +2179,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2179
2179
|
width: ${e=>O.titleWidth.valuePx(e.windowSize)};
|
|
2180
2180
|
max-width: ${e=>O.titleWidth.valuePx(e.windowSize)};
|
|
2181
2181
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2182
|
-
`,
|
|
2182
|
+
`,Oe=a(S)`
|
|
2183
2183
|
user-select: none;
|
|
2184
2184
|
clear: both;
|
|
2185
2185
|
display: inline-block;
|
|
@@ -2192,7 +2192,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2192
2192
|
&:hover {
|
|
2193
2193
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2194
2194
|
}
|
|
2195
|
-
`,
|
|
2195
|
+
`,uu=a.div`
|
|
2196
2196
|
display: flex;
|
|
2197
2197
|
flex-direction: row;
|
|
2198
2198
|
flex-shrink: 2;
|
|
@@ -2201,7 +2201,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2201
2201
|
width: ${e=>O.categoryClassWidth.valuePx(e.windowSize)};
|
|
2202
2202
|
max-width: ${e=>O.categoryClassWidth.valuePx(e.windowSize)};
|
|
2203
2203
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2204
|
-
`,
|
|
2204
|
+
`,pu=a.div`
|
|
2205
2205
|
display: flex;
|
|
2206
2206
|
flex-direction: row;
|
|
2207
2207
|
flex-shrink: 2;
|
|
@@ -2210,7 +2210,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2210
2210
|
width: ${e=>O.categoryClassWidth.valuePx(e.windowSize)};
|
|
2211
2211
|
max-width: ${e=>O.categoryClassWidth.valuePx(e.windowSize)};
|
|
2212
2212
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2213
|
-
`,
|
|
2213
|
+
`,gu=a.div``,fu=a.div`
|
|
2214
2214
|
width: ${c.sp4};
|
|
2215
2215
|
height: ${c.sp4};
|
|
2216
2216
|
border-radius: 50%;
|
|
@@ -2219,10 +2219,10 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2219
2219
|
justify-content: center;
|
|
2220
2220
|
align-items: center;
|
|
2221
2221
|
color: ${e=>e.theme.colors.hero};
|
|
2222
|
-
`,
|
|
2222
|
+
`,xu=a(Fo)`
|
|
2223
2223
|
width: ${c.sp3};
|
|
2224
2224
|
height: ${c.sp3};
|
|
2225
|
-
`,
|
|
2225
|
+
`,mu=a.div`
|
|
2226
2226
|
display: flex;
|
|
2227
2227
|
column-gap: ${c.sp2};
|
|
2228
2228
|
width: 100%;
|
|
@@ -2234,12 +2234,12 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2234
2234
|
display: block;
|
|
2235
2235
|
}
|
|
2236
2236
|
}
|
|
2237
|
-
`,
|
|
2237
|
+
`,wu=a(S)`
|
|
2238
2238
|
color: ${e=>e.theme.colors.hero};
|
|
2239
|
-
`,
|
|
2239
|
+
`,yu=a(S)`
|
|
2240
2240
|
color: ${e=>e.theme.colors.hero};
|
|
2241
2241
|
display: none;
|
|
2242
|
-
`,
|
|
2242
|
+
`,bu=({balance:e,timeframeColumnIndex:n,vendor:i,vendorRowKey:o,onVendorNameAndBalanceClick:r})=>{const l=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",s=e?.type==="period_total",d=e?.type==="default_with_null_balance",h=l!==!0&&s===!1&&d===!1&&!ci(i.id);return t.jsx(su,{"data-testid":x("report-tree-vendor-row-amount",`${o}-${String(n)}`),children:t.jsx(cu,{isClickable:h,onClick:()=>{h===!0&&r(i,e??void 0)},children:Z(e)})})};function ku({backgroundColor:e,isSticky:n,height:i,isScrolling:o,isLastNode:r,vendor:l,balances:s,accountBase:d,classBase:h,isAccountColumnShown:u,isClassColumnShown:g,onVendorNameAndBalanceClick:p,vendorRowIndex:f}){const m=W(),y=f!=null?String(f):l.id,b=Ht(),$=b.loggedInUserRole!=null&&!si(b.loggedInUserRole),C=ci(l.id),L=$===!0&&l!=null&&!C,v=L?"pointer":"default",A=l.name;return t.jsxs(ru,{"data-testid":x("vendor-row-root-container",y),height:i,bgColor:e,windowSize:m,children:[t.jsxs(au,{"data-testid":x("vendor-row-container",y),style:{cursor:v},isClickable:L,children:[t.jsx(du,{"data-testid":x("vendor-row-sticky-container",y),isSticky:n,windowSize:m,bgColor:e,children:t.jsxs(hu,{"data-testid":x("vendor-row-name-container",y),windowSize:m,bgColor:e,children:[t.jsxs(rt,{controller:!C,children:[t.jsx(gu,{"data-testid":x("report-tree-vendor-row-avatar",y),children:l.logo!=null?t.jsx(Gt,{photoUrl:l.logo.toString(),styles:{width:O.nameLogoWidth.valuePx(m),height:O.nameLogoHeight.valuePx(m)}}):t.jsx(Et,{name:A,size:c.sp4})}),t.jsx(Oe,{"data-testid":x("vendor-row-name",y),style:{cursor:v},isClickable:L,onClick:()=>{L===!0&&p(l)},children:A})]}),t.jsx(rt,{controller:C,children:t.jsxs(mu,{children:[t.jsx(fu,{"data-testid":x("report-tree-vendor-row-avatar",y),children:t.jsx(xu,{})}),t.jsx(wu,{className:"hyphen-text",children:I.getLocalizedStrings().common.strings.hyphen}),t.jsx(yu,{className:"not-specified-text",children:A})]})})]})}),u?t.jsx(uu,{windowSize:m,bgColor:e,children:d!=null?t.jsx(Oe,{"data-testid":x("vendor-row-account-name",y),title:d.accountName,isClickable:!1,children:d.accountName}):t.jsx(Oe,{isClickable:!1,"data-testid":x("vendor-row-account-name",y),children:I.getLocalizedStrings().common.strings.hyphen})}):null,g?t.jsx(pu,{windowSize:m,bgColor:e,children:h!=null?t.jsx(Oe,{"data-testid":x("vendor-row-class-name",y),title:h.className,isClickable:!1,children:h.className}):t.jsx(Oe,{"data-testid":x("vendor-row-class-name",y),isClickable:!1,children:I.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(lu,{children:s.map((M,P)=>t.jsx(bu,{balance:M,timeframeColumnIndex:P,vendor:l,vendorRowKey:y,onVendorNameAndBalanceClick:p},P))})]}),t.jsx(ju,{isScrolling:o,isLastNode:r})]})}function ju({isScrolling:e,isLastNode:n}){return n?t.jsx(Ft,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Ft,{isScrolling:e,kind:"vendor_row_separator"})}const Cu=(e,n,i,o,r,l)=>{if(e.element.kind!=="timeframe_headers")return null;const s=He(e.element.data,e.config.displayOrder),d=s.length>0?s[0].balanceTimeFrame:"month",h=s.map(u=>Ge(u));return t.jsx(Kh,{backgroundColor:r,isSticky:i,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:e.config.mode==="this_period_vs_period_before"&&h.length>1,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:d,timeframeTicks:h,sortKey:e.config.opexByVendorConfig?.sortKey,sortOrder:e.config.opexByVendorConfig?.sortOrder,dataAvailable:e.config.dataAvailable,bookCloseDate:e.config.bookCloseDate,compareMode:o,onCompareModeChanged:l,onSortOrderChanged:e.config.opexByVendorConfig?.onSortOrderChanged})},Su=(e,n,i,o,r,l,s)=>{const d=i.element.data,h=i.config.mode==="this_period_vs_period_before",u=h?i.element.numOfBalances+2:i.element.numOfBalances+1,g=Di(d,i.config.displayOrder,u,h);return t.jsx(ou,{type:n,backgroundColor:s,isSticky:r,treeNodeId:e,height:o,isScrolling:l,totalBalances:g.balances,title:i.element.title,isAccountColumnShown:i.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:i.config.opexByVendorConfig?.isClassColumnShown??!0})},$u=(e,n,i,o,r,l,s)=>{if(n.element.kind!="vendor_row"||n.element.data==null)return null;const d=n.element.data,h=n.config.mode==="this_period_vs_period_before",u=Di(d,n.config.displayOrder,n.element.numOfBalances,h);return t.jsx(ku,{backgroundColor:o,isSticky:r,height:i,isScrolling:l,vendorRowIndex:n.element.index,vendor:d.vendor,accountBase:d.account,classBase:d.classBase,isLastNode:s,balances:u.balances,isAccountColumnShown:n.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:n.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:(g,p)=>{n.config.opexByVendorConfig?.onVendorNameAndBalanceClicked(g,p)}})},vu=(e,n,i,o)=>{if(e.element.kind!=="loading_in_progress")return null;const r=He(e.element.data,e.config.displayOrder).map(l=>Ge(l));return t.jsx(yh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})},_u=(e,n,i,o)=>{if(e.element.kind!=="title_string_only")return null;const r=He(e.element.data,e.config.displayOrder).map(l=>Ge(l));return t.jsx($h,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})};function mn(e,n,i){return Lu(n,i,e)}const Lu=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.account.balancesInTimeframe,o.compactedAccountsSelector=r=>Xn(r.accounts,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>Xn(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r,o.compactedAccountGroupsSelector=r=>Au(r,o.acGroupBalanceSelector,i,n),o};function Xn(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Bu((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[]))||po((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[])));case"filter_forecast_nil_balances":return e.filter(o=>Qn(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Qn(n(o)?.balances??[]))}}function Au(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>po(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Iu(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Wu(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function po(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function Bu(e){let n=!1;if(e!=null){for(const i of e)if(i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function Iu(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function Wu(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function Qn(e){let n=!1;if(e!=null){for(const i of e)if(i.totalForecast!=null&&i.totalForecast.amount!==0||i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function go(e,n,i=-1,o=!0){const r=i!==-1;let l=[],s=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Ou([],i)),{balances:l,thisPeriodIndex:s};let d=e.balances;return n==="ascending_date"?s=e.balances.length-1:(s=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:s}}function Ou(e,n){return e.length>0?e:ti(Array(n),null)}const Mu=a.div`
|
|
2243
2243
|
display: flex;
|
|
2244
2244
|
flex: 1 1 auto;
|
|
2245
2245
|
width: fit-content;
|
|
@@ -2247,7 +2247,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2247
2247
|
flex-direction: column;
|
|
2248
2248
|
height: ${e=>e.height}px;
|
|
2249
2249
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2250
|
-
`,
|
|
2250
|
+
`,Nu=a.div`
|
|
2251
2251
|
user-select: none;
|
|
2252
2252
|
display: flex;
|
|
2253
2253
|
flex: 1 1 auto;
|
|
@@ -2257,12 +2257,12 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2257
2257
|
&:hover {
|
|
2258
2258
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2259
2259
|
}
|
|
2260
|
-
`,
|
|
2260
|
+
`,Pu=a.div`
|
|
2261
2261
|
display: flex;
|
|
2262
2262
|
flex: 1 0 auto;
|
|
2263
2263
|
flex-direction: row;
|
|
2264
2264
|
justify-content: flex-end;
|
|
2265
|
-
`,
|
|
2265
|
+
`,zu=a.div`
|
|
2266
2266
|
display: flex;
|
|
2267
2267
|
flex-direction: row;
|
|
2268
2268
|
justify-content: flex-start;
|
|
@@ -2273,12 +2273,12 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2273
2273
|
text-align: right;
|
|
2274
2274
|
margin-left: ${k.balanceLeftMargin};
|
|
2275
2275
|
color: ${e=>e.theme.colors.primary};
|
|
2276
|
-
`,
|
|
2276
|
+
`,Fu=a(fo)`
|
|
2277
2277
|
color: ${e=>e.theme.colors.hero};
|
|
2278
2278
|
&:hover {
|
|
2279
2279
|
color: inherit;
|
|
2280
2280
|
}
|
|
2281
|
-
`,
|
|
2281
|
+
`,Tu=a.div`
|
|
2282
2282
|
display: flex;
|
|
2283
2283
|
flex-direction: row;
|
|
2284
2284
|
flex-shrink: 2;
|
|
@@ -2287,7 +2287,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2287
2287
|
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2288
2288
|
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2289
2289
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2290
|
-
${({isSticky:e})=>e?
|
|
2290
|
+
${({isSticky:e})=>e?N`
|
|
2291
2291
|
position: -webkit-sticky;
|
|
2292
2292
|
position: sticky;
|
|
2293
2293
|
top: ${c.sp0};
|
|
@@ -2303,12 +2303,12 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2303
2303
|
text-align: left;
|
|
2304
2304
|
margin-left: ${c.sp4};
|
|
2305
2305
|
color: ${e=>e.theme.colors.primary};
|
|
2306
|
-
`,
|
|
2306
|
+
`,Vu=a(xo)`
|
|
2307
2307
|
color: ${e=>e.theme.colors.hero};
|
|
2308
2308
|
&:hover {
|
|
2309
2309
|
color: inherit;
|
|
2310
2310
|
}
|
|
2311
|
-
`,
|
|
2311
|
+
`,Du=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?Fu:fo;return t.jsxs(zu,{children:[re(e)===!0||o?t.jsx(l,{children:Z(n)}):t.jsx(l,{children:q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:q(n)}),t.jsx(l,{children:r==="compare_mode_percent"?he(n):ue(n)})]}):null]})};function Ru({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:s,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:g,isOpen:p,isLeaf:f,isLastNode:m,onClick:y}){const b=ce(),$=W(),C=!f,L=C?"pointer":"default",v=l==="collapsed",A=l==="hidden",M=A===!0?w[6]:w[4],P=v===!0?Vu:xo,E=v===!0?ni:ii,T=v===!0?b.colors.hero:b.colors.primary;return t.jsxs(Mu,{height:r,bgColor:n,"data-testid":x("pandl-report-account-group-row-root-container",o),children:[t.jsxs(Nu,{"data-testid":x("pandl-report-account-group-row-container",o),style:{cursor:L},isClickable:C,onClick:()=>y?.(o),children:[pe(e)===!0?t.jsxs(Tu,{bgColor:n,isSticky:i,windowSize:$,children:[A===!1?t.jsx(E,{color:T,style:{width:w[3],height:w[3]}}):null,t.jsx(P,{style:{marginLeft:M},children:s})]}):null,be(e)===!0?t.jsx(Pu,{children:d.map((Y,X)=>t.jsx(Du,{type:e,accountGroupName:s,balance:Y,isActualVsForecastOn:h,compareMode:u,collapsed:v},X))}):null]}),t.jsx(Gu,{isScrolling:g,type:e,isLeaf:f,isLastNode:m,isOpen:p})]})}function Gu({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=pe(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(ke,{isScrolling:e,kind:r})}const Eu=a.div`
|
|
2312
2312
|
display: flex;
|
|
2313
2313
|
flex: 1 1 auto;
|
|
2314
2314
|
width: fit-content;
|
|
@@ -2316,7 +2316,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2316
2316
|
flex-direction: column;
|
|
2317
2317
|
height: ${e=>e.height}px;
|
|
2318
2318
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2319
|
-
`,
|
|
2319
|
+
`,Hu=a.div`
|
|
2320
2320
|
user-select: none;
|
|
2321
2321
|
display: flex;
|
|
2322
2322
|
flex: 1 1 auto;
|
|
@@ -2326,12 +2326,12 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2326
2326
|
&:hover {
|
|
2327
2327
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2328
2328
|
}
|
|
2329
|
-
`,
|
|
2329
|
+
`,Ku=a.div`
|
|
2330
2330
|
display: flex;
|
|
2331
2331
|
flex: 1 0 auto;
|
|
2332
2332
|
flex-direction: row;
|
|
2333
2333
|
justify-content: flex-end;
|
|
2334
|
-
`,
|
|
2334
|
+
`,Yu=a.div`
|
|
2335
2335
|
display: flex;
|
|
2336
2336
|
flex-direction: row;
|
|
2337
2337
|
justify-content: flex-start;
|
|
@@ -2342,12 +2342,12 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2342
2342
|
text-align: right;
|
|
2343
2343
|
margin-left: ${k.balanceLeftMargin};
|
|
2344
2344
|
color: ${e=>e.theme.colors.primary};
|
|
2345
|
-
`,
|
|
2345
|
+
`,Uu=a(mo)`
|
|
2346
2346
|
color: ${e=>e.theme.colors.hero};
|
|
2347
2347
|
&:hover {
|
|
2348
2348
|
color: inherit;
|
|
2349
2349
|
}
|
|
2350
|
-
`,
|
|
2350
|
+
`,Zu=a.div`
|
|
2351
2351
|
display: flex;
|
|
2352
2352
|
flex-direction: row;
|
|
2353
2353
|
flex-shrink: 2;
|
|
@@ -2356,7 +2356,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2356
2356
|
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2357
2357
|
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2358
2358
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2359
|
-
${({isSticky:e})=>e?
|
|
2359
|
+
${({isSticky:e})=>e?N`
|
|
2360
2360
|
position: -webkit-sticky;
|
|
2361
2361
|
position: sticky;
|
|
2362
2362
|
top: ${c.sp0};
|
|
@@ -2372,12 +2372,12 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2372
2372
|
text-align: left;
|
|
2373
2373
|
margin-left: ${c.sp2};
|
|
2374
2374
|
color: ${e=>e.theme.colors.primary};
|
|
2375
|
-
`,
|
|
2375
|
+
`,Xu=a(wo)`
|
|
2376
2376
|
color: ${e=>e.theme.colors.hero};
|
|
2377
2377
|
&:hover {
|
|
2378
2378
|
color: inherit;
|
|
2379
2379
|
}
|
|
2380
|
-
`,
|
|
2380
|
+
`,Qu=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?Uu:mo;return t.jsxs(Yu,{children:[re(e)===!0||o?t.jsx(l,{children:Z(n)}):t.jsx(l,{children:q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:q(n)}),t.jsx(l,{children:r==="compare_mode_percent"?he(n):ue(n)})]}):null]})};function qu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:s,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:g,isOpen:p,isLeaf:f,isLastNode:m,onClick:y}){const b=W(),$=ce(),C=!f,L=C?"pointer":"default",v=l==="collapsed",A=v===!0?Xu:wo,[M,P]=z.useState(!1),E=s.length>0?s.substring(0,1).toUpperCase():"";return t.jsxs(Eu,{"data-testid":x("pandl-account-group-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Hu,{"data-testid":x("pandl-account-group-row-container",o),onMouseOver:()=>P(!0),onMouseLeave:()=>P(!1),style:{cursor:L},isClickable:C,onClick:()=>y?.(o),children:[pe(e)===!0?t.jsxs(Zu,{bgColor:n,isSticky:i,windowSize:b,children:[t.jsx(Se,{showCollapsedIcon:v,showIcon:M&&C,firstLetter:E,color:B($.colors.primary)}),t.jsx(A,{children:s})]}):null,be(e)===!0?t.jsx(Ku,{children:d.map((T,Y)=>t.jsx(Qu,{type:e,accountGroupName:s,balance:T,isActualVsForecastOn:h,compareMode:u,collapsed:v},Y))}):null]}),t.jsx(Ju,{isScrolling:g,type:e,isLeaf:f,isLastNode:m,isOpen:p})]})}function Ju({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=pe(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(ke,{isScrolling:e,kind:r})}const ep=a.div`
|
|
2381
2381
|
display: flex;
|
|
2382
2382
|
flex: 1 1 auto;
|
|
2383
2383
|
width: fit-content;
|
|
@@ -2385,19 +2385,19 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2385
2385
|
flex-direction: column;
|
|
2386
2386
|
height: ${e=>e.height}px;
|
|
2387
2387
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2388
|
-
`,
|
|
2388
|
+
`,tp=a.div`
|
|
2389
2389
|
user-select: none;
|
|
2390
2390
|
display: flex;
|
|
2391
2391
|
flex: 1 1 auto;
|
|
2392
2392
|
flex-flow: row;
|
|
2393
2393
|
justify-content: flex-start;
|
|
2394
2394
|
align-items: center;
|
|
2395
|
-
`,
|
|
2395
|
+
`,np=a.div`
|
|
2396
2396
|
display: flex;
|
|
2397
2397
|
flex: 1 0 auto;
|
|
2398
2398
|
flex-direction: row;
|
|
2399
2399
|
justify-content: flex-end;
|
|
2400
|
-
`,
|
|
2400
|
+
`,ip=a.div`
|
|
2401
2401
|
display: flex;
|
|
2402
2402
|
flex-direction: row;
|
|
2403
2403
|
justify-content: flex-start;
|
|
@@ -2412,13 +2412,13 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2412
2412
|
&:hover {
|
|
2413
2413
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2414
2414
|
}
|
|
2415
|
-
`,
|
|
2415
|
+
`,op=a.div`
|
|
2416
2416
|
display: flex;
|
|
2417
2417
|
flex-direction: row;
|
|
2418
2418
|
flex-shrink: 2;
|
|
2419
2419
|
flex-grow: 1;
|
|
2420
2420
|
align-items: center;
|
|
2421
|
-
${({containerHeight:e})=>e!=null?
|
|
2421
|
+
${({containerHeight:e})=>e!=null?N`
|
|
2422
2422
|
height: ${e-1}px;
|
|
2423
2423
|
`:null}
|
|
2424
2424
|
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
@@ -2429,36 +2429,36 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2429
2429
|
&:hover {
|
|
2430
2430
|
color: ${e=>e.isRowClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2431
2431
|
}
|
|
2432
|
-
${({isSticky:e})=>e?
|
|
2432
|
+
${({isSticky:e})=>e?N`
|
|
2433
2433
|
position: -webkit-sticky;
|
|
2434
2434
|
position: sticky;
|
|
2435
2435
|
top: ${c.sp0};
|
|
2436
2436
|
left: ${c.sp0};
|
|
2437
2437
|
`:null}
|
|
2438
|
-
`,
|
|
2438
|
+
`,rp=a.div`
|
|
2439
2439
|
display: flex;
|
|
2440
2440
|
flex-direction: row;
|
|
2441
2441
|
flex-shrink: 2;
|
|
2442
2442
|
flex-grow: 1;
|
|
2443
2443
|
align-items: center;
|
|
2444
|
-
${({containerHeight:e})=>e!=null?
|
|
2444
|
+
${({containerHeight:e})=>e!=null?N`
|
|
2445
2445
|
height: ${e-1}px;
|
|
2446
2446
|
`:null}
|
|
2447
2447
|
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2448
2448
|
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2449
2449
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2450
|
-
${({isSticky:e})=>e?
|
|
2450
|
+
${({isSticky:e})=>e?N`
|
|
2451
2451
|
position: -webkit-sticky;
|
|
2452
2452
|
position: sticky;
|
|
2453
2453
|
top: ${c.sp0};
|
|
2454
2454
|
left: ${c.sp0};
|
|
2455
2455
|
`:null}
|
|
2456
|
-
`,
|
|
2456
|
+
`,ap=a(S)`
|
|
2457
2457
|
user-select: none;
|
|
2458
2458
|
clear: both;
|
|
2459
2459
|
display: inline-block;
|
|
2460
2460
|
text-align: left;
|
|
2461
|
-
`,
|
|
2461
|
+
`,lp=a(S)`
|
|
2462
2462
|
user-select: none;
|
|
2463
2463
|
clear: both;
|
|
2464
2464
|
display: inline-block;
|
|
@@ -2472,7 +2472,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2472
2472
|
&:hover {
|
|
2473
2473
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2474
2474
|
}
|
|
2475
|
-
`,
|
|
2475
|
+
`,sp=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,onAccountBalanceClick:l,stopRowClickPropagation:s})=>{const d=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",h=r!=null&&n!=null&&l!=null&&d!==!0;return t.jsxs(ip,{"data-testid":x("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(et,{"data-testid":x("account-row-balance-actual",e),isClickable:h,onClick:u=>{s===!0&&u.stopPropagation(),h===!0&&r!=null&&n!=null&&l?.(r,n,pt(r,n))},children:Z(n)}):t.jsx(et,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:q(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(et,{isClickable:!1,"data-testid":x("account-row-balance-forecast",e),children:q(n)}),t.jsx(et,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?he(n):ue(n)})]}):null]})};function cp({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isActualVsForecastOn:s,compareMode:d,isScrolling:h,isLeaf:u,isLastNode:g,account:p,titleIndentExtraPx:f,horizontalTreeView:m,horizontalCollapse:y,onAccountBalanceClick:b}){const $=W(),{common:{strings:{hyphen:C}}}=I.getLocalizedStrings(),L=p?.accountDescription?p.accountDescription:C,v=p!=null&&Te(p)===!0||p?.accountName?p.accountName:L;return t.jsxs(ep,{height:r,bgColor:n,"data-testid":x("account-row-root-container",o),children:[t.jsxs(tp,{"data-testid":x("account-row-container",o),onClick:y!=null?()=>y.onRowClick():void 0,children:[pe(e)===!0?m!=null?t.jsx(op,{isSticky:i,windowSize:$,bgColor:n,containerHeight:r,isRowClickable:y!=null,isSubAccountLeaf:m.isLeaf,children:t.jsx(ap,{title:v,children:t.jsx(nn,{classAnscestorMetadata:[],collapsed:y!=null?!y.isOpen:!1,depth:m.treeDepth,displayName:v,hasChildren:m.hasChildren,hasSiblings:m.hasSiblings,isLastNode:m.isLastNode,isLeaf:m.isLeaf,noMarginForAccount:!1,subAccountAnscestorMetadata:m.subAccountAncestorMetadata})})}):t.jsx(rp,{isSticky:i,windowSize:$,bgColor:n,children:t.jsx(lp,{isClickable:!1,title:v,titleIndentExtraPx:f,children:v})}):null,be(e)===!0?t.jsx(np,{children:l.map((A,M)=>t.jsx(sp,{type:e,isActualVsForecastOn:s,compareMode:d,balance:A,account:p,stopRowClickPropagation:y!=null,onAccountBalanceClick:b==null?void 0:(P,E,T)=>{b(o,P,E,T)}},M))}):null]}),t.jsx(dp,{isScrolling:h,type:e,isLeaf:u,isLastNode:g})]})}function dp({isScrolling:e,isLastNode:n,type:i}){const o=n?"ac_group_row_separator":pe(i)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(ke,{isScrolling:e,kind:o})}const hp=a.div`
|
|
2476
2476
|
user-select: none;
|
|
2477
2477
|
display: flex;
|
|
2478
2478
|
flex: 1 1 auto;
|
|
@@ -2483,12 +2483,12 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2483
2483
|
justify-content: flex-start;
|
|
2484
2484
|
align-items: center;
|
|
2485
2485
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2486
|
-
`,
|
|
2486
|
+
`,up=a.div`
|
|
2487
2487
|
display: flex;
|
|
2488
2488
|
flex: 1 0 auto;
|
|
2489
2489
|
flex-direction: row;
|
|
2490
2490
|
justify-content: flex-end;
|
|
2491
|
-
`,
|
|
2491
|
+
`,qn=a.div`
|
|
2492
2492
|
display: flex;
|
|
2493
2493
|
max-height: 54px;
|
|
2494
2494
|
min-height: 54px;
|
|
@@ -2500,7 +2500,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2500
2500
|
border-radius: ${c.sp2};
|
|
2501
2501
|
margin-left: ${k.balanceLeftMarginInPx}px;
|
|
2502
2502
|
color: ${e=>e.theme.colors.primary};
|
|
2503
|
-
`,
|
|
2503
|
+
`,pp=a.div`
|
|
2504
2504
|
display: flex;
|
|
2505
2505
|
flex-direction: row;
|
|
2506
2506
|
align-items: center;
|
|
@@ -2509,7 +2509,8 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2509
2509
|
max-width: ${k.balanceWidthInPx-2}px;
|
|
2510
2510
|
width: ${k.balanceWidthInPx-2}px;
|
|
2511
2511
|
min-width: 0;
|
|
2512
|
-
|
|
2512
|
+
padding: 0 ${c.sp2};
|
|
2513
|
+
`,gp=a(S)`
|
|
2513
2514
|
display: flex;
|
|
2514
2515
|
user-select: none;
|
|
2515
2516
|
flex-direction: row;
|
|
@@ -2522,7 +2523,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2522
2523
|
overflow: hidden;
|
|
2523
2524
|
text-overflow: ellipsis;
|
|
2524
2525
|
white-space: nowrap;
|
|
2525
|
-
`,
|
|
2526
|
+
`,fp=a.div`
|
|
2526
2527
|
height: 100%;
|
|
2527
2528
|
display: inline-block;
|
|
2528
2529
|
flex-direction: row;
|
|
@@ -2531,14 +2532,14 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2531
2532
|
color: ${e=>e.theme.colors.grey5};
|
|
2532
2533
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2533
2534
|
border: 1px solid ${e=>e.bgColor?.hex()};
|
|
2534
|
-
${({isSticky:e})=>e?
|
|
2535
|
+
${({isSticky:e})=>e?N`
|
|
2535
2536
|
position: -webkit-sticky;
|
|
2536
2537
|
position: sticky;
|
|
2537
2538
|
top: ${c.sp0};
|
|
2538
2539
|
left: ${c.sp0};
|
|
2539
2540
|
z-index: 20;
|
|
2540
2541
|
`:null}
|
|
2541
|
-
`;function
|
|
2542
|
+
`;function xp({text:e}){const n=ce();return t.jsx(pp,{children:t.jsx(Go,{text:e,style:{width:"100%",minWidth:0},itemTextStyle:{color:n.colors.primary,textAlign:"center"}})})}function mp({type:e,backgroundColor:n,isSticky:i,height:o,classColumns:r}){const l=W();return t.jsxs(hp,{height:o,bgColor:n,children:[pe(e)===!0?t.jsx(fp,{"aria-hidden":!0,isSticky:i,windowSize:l,bgColor:n}):null,t.jsxs(up,{children:[r.map((s,d)=>t.jsx(qn,{children:t.jsx(xp,{text:s.className})},s.classId??d)),t.jsx(qn,{children:t.jsx(gp,{children:"Total"})},"total")]})]})}const wp=a.div`
|
|
2542
2543
|
display: flex;
|
|
2543
2544
|
flex: 1 1 auto;
|
|
2544
2545
|
width: fit-content;
|
|
@@ -2546,19 +2547,19 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2546
2547
|
flex-direction: column;
|
|
2547
2548
|
height: ${e=>e.height}px;
|
|
2548
2549
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2549
|
-
`,
|
|
2550
|
+
`,yp=a.div`
|
|
2550
2551
|
user-select: none;
|
|
2551
2552
|
display: flex;
|
|
2552
2553
|
flex: 1 1 auto;
|
|
2553
2554
|
flex-flow: row;
|
|
2554
2555
|
justify-content: flex-start;
|
|
2555
2556
|
align-items: center;
|
|
2556
|
-
`,
|
|
2557
|
+
`,bp=a.div`
|
|
2557
2558
|
display: flex;
|
|
2558
2559
|
flex: 1 0 auto;
|
|
2559
2560
|
flex-direction: row;
|
|
2560
2561
|
justify-content: flex-end;
|
|
2561
|
-
`,
|
|
2562
|
+
`,kp=a.div`
|
|
2562
2563
|
display: flex;
|
|
2563
2564
|
flex-direction: row;
|
|
2564
2565
|
justify-content: flex-start;
|
|
@@ -2568,7 +2569,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2568
2569
|
min-width: ${k.balanceWidth};
|
|
2569
2570
|
text-align: right;
|
|
2570
2571
|
margin-left: ${k.balanceLeftMargin};
|
|
2571
|
-
`,
|
|
2572
|
+
`,jp=a.div`
|
|
2572
2573
|
display: flex;
|
|
2573
2574
|
flex-direction: row;
|
|
2574
2575
|
flex-shrink: 2;
|
|
@@ -2577,16 +2578,16 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2577
2578
|
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2578
2579
|
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2579
2580
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2580
|
-
${({isSticky:e})=>e?
|
|
2581
|
+
${({isSticky:e})=>e?N`
|
|
2581
2582
|
position: -webkit-sticky;
|
|
2582
2583
|
position: sticky;
|
|
2583
2584
|
top: ${c.sp0};
|
|
2584
2585
|
left: ${c.sp0};
|
|
2585
2586
|
`:null}
|
|
2586
|
-
`,
|
|
2587
|
+
`,Cp=a.div`
|
|
2587
2588
|
display: flex;
|
|
2588
2589
|
flex-grow: 8;
|
|
2589
|
-
`,
|
|
2590
|
+
`,Sp=a(S)`
|
|
2590
2591
|
user-select: none;
|
|
2591
2592
|
user-select: none;
|
|
2592
2593
|
clear: both;
|
|
@@ -2596,7 +2597,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2596
2597
|
text-overflow: ellipsis;
|
|
2597
2598
|
text-align: left;
|
|
2598
2599
|
margin-left: ${c.sp2};
|
|
2599
|
-
|
|
2600
|
+
`,$p=a(Ce)`
|
|
2600
2601
|
display: flex;
|
|
2601
2602
|
color: ${e=>e.theme.colors.primary};
|
|
2602
2603
|
align-items: center;
|
|
@@ -2607,7 +2608,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2607
2608
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
2608
2609
|
border-radius: ${c.sp1};
|
|
2609
2610
|
margin: 0 ${c.sp5} 0 ${c.sp3};
|
|
2610
|
-
`,
|
|
2611
|
+
`,vp=({metadata:e,depth:n})=>n===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(Do,{}):t.jsx(Ro,{}),_p=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(kp,{children:[re(e)===!0||o?t.jsx(tt,{style:{color:i},children:Z(n)}):t.jsx(tt,{style:{color:i},children:q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(tt,{style:{color:i},children:q(n)}),t.jsx(tt,{style:{color:i},children:r==="compare_mode_percent"?he(n):ue(n)})]}):null]});function Lp({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,className:l,classCode:s,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:g,isScrolling:p,isOpen:f,isLeaf:m,metadata:y,showClassAccountNumber:b,onClick:$,depth:C}){const L=W(),v=ce(),A=!m,M=A?"pointer":"default",P=v.colors.primary,E=l.length>0?l.substr(0,1).toUpperCase():"",[T,Y]=z.useState(!1),X=y.classAncestorMetadata??[];return t.jsxs(wp,{"data-testid":x("class-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(yp,{"data-testid":x("class-row-container",o),style:{cursor:M},onClick:()=>$?.(o),onMouseOver:()=>Y(!0),onMouseLeave:()=>Y(!1),children:[pe(e)===!0?t.jsxs(jp,{isSticky:i,windowSize:L,bgColor:n,children:[t.jsx(pa,{name:l,ancestorMetadata:X,depth:C}),t.jsx(vp,{metadata:X[C],depth:C}),t.jsx(Se,{color:B(P),showCollapsedIcon:!f,showIcon:T&&A,firstLetter:E,showTreeLine:g}),t.jsx(Cp,{children:t.jsx(Sp,{style:{color:P},children:l})}),T===!0&&b===!0&&s!==void 0&&t.jsx($p,{children:s})]}):null,be(e)===!0?t.jsx(bp,{children:d.map((ae,Q)=>t.jsx(_p,{type:e,sectionName:l,balance:ae,isActualVsForecastOn:h,compareMode:u,color:P},Q))}):null]}),t.jsx(Ap,{isScrolling:p,isLeaf:m,isOpen:f})]})}function Ap({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(ke,{isScrolling:e,kind:"section_row_separator"}):null}const Bp=a.div`
|
|
2611
2612
|
display: flex;
|
|
2612
2613
|
flex: 1 1 auto;
|
|
2613
2614
|
width: fit-content;
|
|
@@ -2615,19 +2616,19 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2615
2616
|
flex-direction: column;
|
|
2616
2617
|
height: ${e=>e.height}px;
|
|
2617
2618
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2618
|
-
`,
|
|
2619
|
+
`,Ip=a.div`
|
|
2619
2620
|
user-select: none;
|
|
2620
2621
|
display: flex;
|
|
2621
2622
|
flex: 1 1 auto;
|
|
2622
2623
|
flex-flow: row;
|
|
2623
2624
|
justify-content: flex-start;
|
|
2624
2625
|
align-items: center;
|
|
2625
|
-
`,
|
|
2626
|
+
`,Wp=a.div`
|
|
2626
2627
|
display: flex;
|
|
2627
2628
|
flex: 1 0 auto;
|
|
2628
2629
|
flex-direction: row;
|
|
2629
2630
|
justify-content: flex-end;
|
|
2630
|
-
`,
|
|
2631
|
+
`,Op=a.div`
|
|
2631
2632
|
display: flex;
|
|
2632
2633
|
flex-direction: row;
|
|
2633
2634
|
justify-content: flex-start;
|
|
@@ -2637,7 +2638,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2637
2638
|
min-width: ${k.balanceWidth};
|
|
2638
2639
|
text-align: right;
|
|
2639
2640
|
margin-left: ${k.balanceLeftMargin};
|
|
2640
|
-
`,
|
|
2641
|
+
`,Mp=a.div`
|
|
2641
2642
|
display: flex;
|
|
2642
2643
|
flex-direction: row;
|
|
2643
2644
|
flex-shrink: 2;
|
|
@@ -2646,13 +2647,13 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2646
2647
|
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2647
2648
|
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2648
2649
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2649
|
-
${({isSticky:e})=>e?
|
|
2650
|
+
${({isSticky:e})=>e?N`
|
|
2650
2651
|
position: -webkit-sticky;
|
|
2651
2652
|
position: sticky;
|
|
2652
2653
|
top: ${c.sp0};
|
|
2653
2654
|
left: ${c.sp0};
|
|
2654
2655
|
`:null}
|
|
2655
|
-
`,
|
|
2656
|
+
`,Np=a(S)`
|
|
2656
2657
|
user-select: none;
|
|
2657
2658
|
user-select: none;
|
|
2658
2659
|
clear: both;
|
|
@@ -2662,7 +2663,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2662
2663
|
text-overflow: ellipsis;
|
|
2663
2664
|
text-align: left;
|
|
2664
2665
|
margin-left: ${c.sp2};
|
|
2665
|
-
`,
|
|
2666
|
+
`,Pp=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(Op,{children:[re(e)===!0||o?t.jsx(nt,{style:{color:i},children:Z(n)}):t.jsx(nt,{style:{color:i},children:q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(nt,{style:{color:i},children:q(n)}),t.jsx(nt,{style:{color:i},children:r==="compare_mode_percent"?he(n):ue(n)})]}):null]});function wn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:s,isActualVsForecastOn:d,compareMode:h,sectionColor:u,isScrolling:g,isOpen:p,isLeaf:f,onClick:m}){const y=W(),b=!f,$=b?"pointer":"default",C=l.length>0?l.substring(0,1).toUpperCase():"",[L,v]=z.useState(!1);return t.jsxs(Bp,{"data-testid":x("section-row",o),height:r,bgColor:n,children:[t.jsxs(Ip,{"data-testid":x("section-row-container",o),style:{cursor:$},onClick:()=>m?.(o),onMouseOver:()=>v(!0),onMouseLeave:()=>v(!1),children:[pe(e)===!0?t.jsxs(Mp,{isSticky:i,windowSize:y,bgColor:n,children:[t.jsx(Se,{color:B(u),showCollapsedIcon:!p,showIcon:L&&b,firstLetter:C}),t.jsx(Np,{style:{color:u},children:l})," "]}):null,be(e)===!0?t.jsx(Wp,{children:s.map((A,M)=>t.jsx(Pp,{type:e,sectionName:l,balance:A,isActualVsForecastOn:d,compareMode:h,color:u},M))}):null]}),t.jsx(zp,{isScrolling:g,isLeaf:f,isOpen:p})]})}function zp({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(ke,{isScrolling:e,kind:"section_row_separator"}):null}const Fp=a.div`
|
|
2666
2667
|
display: flex;
|
|
2667
2668
|
flex: 1 1 auto;
|
|
2668
2669
|
width: fit-content;
|
|
@@ -2670,19 +2671,50 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2670
2671
|
flex-direction: column;
|
|
2671
2672
|
height: ${e=>e.height-1}px;
|
|
2672
2673
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2673
|
-
`,
|
|
2674
|
+
`,Tp=a.div`
|
|
2674
2675
|
user-select: none;
|
|
2675
2676
|
display: flex;
|
|
2676
2677
|
flex: 1 1 auto;
|
|
2677
2678
|
flex-flow: row;
|
|
2678
2679
|
justify-content: flex-start;
|
|
2679
2680
|
align-items: center;
|
|
2680
|
-
`,
|
|
2681
|
+
`,Vp=a.div`
|
|
2681
2682
|
display: flex;
|
|
2682
2683
|
flex: 1 0 auto;
|
|
2683
2684
|
flex-direction: row;
|
|
2684
2685
|
justify-content: flex-end;
|
|
2685
|
-
|
|
2686
|
+
|
|
2687
|
+
.field-thread-wrapper {
|
|
2688
|
+
--ft-icon-right: -28px;
|
|
2689
|
+
--ft-icon-top: -6px;
|
|
2690
|
+
|
|
2691
|
+
outline: none;
|
|
2692
|
+
overflow: visible;
|
|
2693
|
+
z-index: 0;
|
|
2694
|
+
|
|
2695
|
+
.active-thread-count {
|
|
2696
|
+
z-index: 4;
|
|
2697
|
+
pointer-events: auto;
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
&::after {
|
|
2701
|
+
content: "";
|
|
2702
|
+
position: absolute;
|
|
2703
|
+
top: -${c.sp2};
|
|
2704
|
+
right: -36px;
|
|
2705
|
+
width: 36px;
|
|
2706
|
+
height: calc(100% + ${c.sp3});
|
|
2707
|
+
z-index: 3;
|
|
2708
|
+
pointer-events: auto;
|
|
2709
|
+
}
|
|
2710
|
+
}
|
|
2711
|
+
|
|
2712
|
+
.field-thread-wrapper:hover,
|
|
2713
|
+
.field-thread-wrapper:focus-within {
|
|
2714
|
+
outline: none;
|
|
2715
|
+
z-index: 5;
|
|
2716
|
+
}
|
|
2717
|
+
`,Dp=a.div`
|
|
2686
2718
|
display: flex;
|
|
2687
2719
|
flex-direction: row;
|
|
2688
2720
|
justify-content: flex-start;
|
|
@@ -2697,7 +2729,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2697
2729
|
&:hover {
|
|
2698
2730
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2699
2731
|
}
|
|
2700
|
-
`,
|
|
2732
|
+
`,Rp=a.div`
|
|
2701
2733
|
display: flex;
|
|
2702
2734
|
flex-direction: row;
|
|
2703
2735
|
flex-shrink: 2;
|
|
@@ -2714,18 +2746,18 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2714
2746
|
&:hover {
|
|
2715
2747
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2716
2748
|
}
|
|
2717
|
-
${({isSticky:e})=>e?
|
|
2749
|
+
${({isSticky:e})=>e?N`
|
|
2718
2750
|
position: -webkit-sticky;
|
|
2719
2751
|
position: sticky;
|
|
2720
2752
|
top: ${c.sp0};
|
|
2721
2753
|
left: ${c.sp0};
|
|
2722
2754
|
`:null}
|
|
2723
|
-
`,
|
|
2755
|
+
`,Gp=a(S)`
|
|
2724
2756
|
user-select: none;
|
|
2725
2757
|
clear: both;
|
|
2726
2758
|
display: inline-block;
|
|
2727
2759
|
text-align: left;
|
|
2728
|
-
`,
|
|
2760
|
+
`,Ep=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,showTotal:l,reportId:s,companyId:d,companyName:h,isCommentingEnabled:u,isForecastReport:g,onAccountBalanceClick:p})=>{const f=n!=null?nr(n?.type):!1,m=r!=null&&n!=null&&p!=null&&f!==!0,y=l===!0?hi(n):Z(n),b=l===!0?Lt(n):q(n),$=l===!0?ui(n):he(n),C=l===!0?pi(n):ue(n),L=To(r?.accountId,n),v=Yo({type:"details",key:s}),A=t.jsxs(Dp,{"data-testid":x("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(it,{"data-testid":x("account-row-balance-actual",e),isClickable:m,onClick:P=>{P.stopPropagation(),m===!0&&r!=null&&n!=null&&p?.(r,n,pt(r,n))},children:y}):t.jsx(it,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:b}),i?t.jsxs(t.Fragment,{children:[t.jsx(it,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:b}),t.jsx(it,{"data-testid":x("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?$:C})]}):null]});if(!u||L==null||!d)return A;const M=g?"forecast_report":"standard_report";return t.jsx(Vo,{isThreadAllowed:!0,dashboardTabKey:v,roomId:`dashboard_${d}`,companyId:d,companyName:h,entityId:L,dashboardOptionType:M,filterMetaData:{companyId:d,tab:M,entityType:`${M}.${v}`,entityId:L},children:A})},{common:{strings:{empty:Hp,plus:Kp}}}=I.getLocalizedStrings();function Yp({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,classDepth:l,accountBalances:s,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:g,noMarginForAccount:p,isLeaf:f,isOpen:m,isLastNode:y,account:b,reportId:$,onAccountBalanceClick:C,onClick:L}){const v=W(),A=Ht(),M=A?.currentTenant?.companyId??"",P=A?.currentTenant?.companyName??"",E=typeof $=="string"&&$.includes(Kp),{useFeatureGate:T}=Mo(),{isFeatureEnabled:Y}=T(No.isReportsCommentingEnabled),X=Y,ae=b!=null?b.id.length-1:0,Q=b?.hasSiblings??!1,de=b!=null?b.children.length!==0:!1,me=u,le=b?.account.accountDescription?b.account.accountDescription:Hp,J=b?.account.accountName?b.account.accountName:le;return t.jsxs(Fp,{"data-testid":x("sub-account-row",o),height:r,bgColor:n,children:[t.jsxs(Tp,{"data-testid":x("sub-account-row-container",o),onClick:()=>L?.(o),children:[t.jsx(Rp,{isClickable:de,isSticky:i,windowSize:v,bgColor:n,containerHeight:r,children:t.jsx(Gp,{title:J,children:t.jsx(nn,{displayName:J,depth:ae,classDepth:l,isLastNode:y,hasChildren:de,hasSiblings:Q,isLeaf:f,collapsed:!m,subAccountAnscestorMetadata:me.subAccountAncestorMetadata,classAnscestorMetadata:me.classAncestorMetadata??[],noMarginForAccount:p})})}),be(e)===!0?t.jsx(Vp,{children:s.map((we,$e)=>t.jsx(Ep,{type:e,isActualVsForecastOn:d,compareMode:h,balance:we,account:b?.account,showTotal:!m,reportId:$,companyId:M,companyName:P,isCommentingEnabled:X,isForecastReport:E,onAccountBalanceClick:C==null?void 0:(ye,ve,ge)=>{C(o,ye,ve,ge)}},$e))}):null]}),t.jsx(Up,{isScrolling:g,isLeaf:f,isOpen:m,depth:ae,isSticky:i,classDepth:l,noMarginForAccount:p})]})}function Up({isScrolling:e,depth:n,isOpen:i,isLeaf:o,isSticky:r,classDepth:l,noMarginForAccount:s}){return!i||o===!0?t.jsx(ke,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:n,isSticky:r,classDepth:l,noMarginForAccount:s}}):null}const Zp=[10,14,20,20,20],Xp=a.div`
|
|
2729
2761
|
display: flex;
|
|
2730
2762
|
flex: 1 1 auto;
|
|
2731
2763
|
width: fit-content;
|
|
@@ -2733,22 +2765,22 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2733
2765
|
flex-direction: column;
|
|
2734
2766
|
height: ${e=>e.height-1}px;
|
|
2735
2767
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2736
|
-
`,
|
|
2768
|
+
`,Qp=a.div`
|
|
2737
2769
|
user-select: none;
|
|
2738
2770
|
display: flex;
|
|
2739
2771
|
flex: 1 1 auto;
|
|
2740
2772
|
flex-flow: row;
|
|
2741
2773
|
justify-content: flex-start;
|
|
2742
2774
|
align-items: center;
|
|
2743
|
-
`,
|
|
2775
|
+
`,qp=a.div`
|
|
2744
2776
|
width: ${e=>gi.emptyLeftContainer.valuePx(e.windowSize)};
|
|
2745
2777
|
height: ${c.sp1};
|
|
2746
|
-
`,
|
|
2778
|
+
`,Jp=a.div`
|
|
2747
2779
|
display: flex;
|
|
2748
2780
|
flex: 1 0 auto;
|
|
2749
2781
|
flex-direction: row;
|
|
2750
2782
|
justify-content: flex-end;
|
|
2751
|
-
`,
|
|
2783
|
+
`,eg=a.div`
|
|
2752
2784
|
display: flex;
|
|
2753
2785
|
flex-direction: row;
|
|
2754
2786
|
justify-content: flex-start;
|
|
@@ -2760,7 +2792,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2760
2792
|
margin-left: ${k.balanceLeftMargin};
|
|
2761
2793
|
color: ${e=>e.theme.colors.primary};
|
|
2762
2794
|
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2763
|
-
`,
|
|
2795
|
+
`,tg=a.div`
|
|
2764
2796
|
display: flex;
|
|
2765
2797
|
flex-direction: row;
|
|
2766
2798
|
flex-shrink: 2;
|
|
@@ -2770,13 +2802,13 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2770
2802
|
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2771
2803
|
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2772
2804
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2773
|
-
${({isSticky:e})=>e?
|
|
2805
|
+
${({isSticky:e})=>e?N`
|
|
2774
2806
|
position: -webkit-sticky;
|
|
2775
2807
|
position: sticky;
|
|
2776
2808
|
top: ${c.sp0};
|
|
2777
2809
|
left: ${c.sp0};
|
|
2778
2810
|
`:null}
|
|
2779
|
-
`,
|
|
2811
|
+
`,ng=a(S)`
|
|
2780
2812
|
user-select: none;
|
|
2781
2813
|
clear: both;
|
|
2782
2814
|
display: inline-block;
|
|
@@ -2784,10 +2816,10 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2784
2816
|
white-space: nowrap;
|
|
2785
2817
|
text-overflow: ellipsis;
|
|
2786
2818
|
text-align: left;
|
|
2787
|
-
margin-left: ${e=>
|
|
2819
|
+
margin-left: ${e=>Zp[e.depth]}px;
|
|
2788
2820
|
color: ${e=>e.theme.colors.primary};
|
|
2789
2821
|
width: ${e=>k.titleWidth.value(e.windowSize)-e.depth*80}px;
|
|
2790
|
-
`,
|
|
2822
|
+
`,ig=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs(eg,{"data-testid":x("sub-account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(ot,{"data-testid":x("sub-account-row-balance-element-actual",e),isClickable:!1,children:hi(n)}):t.jsx(ot,{"data-testid":x("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Lt(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(ot,{"data-testid":x("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Lt(n)}),t.jsx(ot,{"data-testid":x("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?ui(n):pi(n)})]}):null]});function og({type:e,backgroundColor:n,isSticky:i,height:o,classDepth:r,accountName:l,accountBalances:s,account:d,noMarginForAccount:h,isActualVsForecastOn:u,compareMode:g,isScrolling:p,metadata:f}){const m=W(),y=I.getLocalizedStrings().reports.sections,b=d!=null?d.id.length-1:0,$=f;return t.jsxs(Xp,{height:o,bgColor:n,children:[t.jsxs(Qp,{children:[t.jsxs(tg,{isSticky:i,windowSize:m,bgColor:n,containerHeight:o,children:[r!=null?t.jsx(xi,{ancestorMetadata:$.classAncestorMetadata??[],depth:r,name:l}):h===!1?t.jsx(qp,{windowSize:m}):null,t.jsx(mi,{ancestorMetadata:$.subAccountAncestorMetadata,depth:b,name:l}),t.jsx(ng,{"data-testid":x("sub-account-row-name",e),isClickable:!1,title:l,depth:b,windowSize:m,children:y.totalPrefix+" "+l})]}),be(e)===!0?t.jsx(Jp,{children:s.map((C,L)=>t.jsx(ig,{type:e,isActualVsForecastOn:u,compareMode:g,balance:C},L))}):null]}),t.jsx(rg,{isScrolling:p,nestingLevel:b,isSticky:i,classDepth:r,noMarginForAccount:h})]})}function rg({isScrolling:e,nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}){return t.jsx(ke,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}})}const ag=a.div`
|
|
2791
2823
|
user-select: none;
|
|
2792
2824
|
display: flex;
|
|
2793
2825
|
flex: 1 1 auto;
|
|
@@ -2798,16 +2830,16 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2798
2830
|
justify-content: flex-start;
|
|
2799
2831
|
align-items: center;
|
|
2800
2832
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2801
|
-
`,
|
|
2833
|
+
`,lg=a.div`
|
|
2802
2834
|
display: flex;
|
|
2803
2835
|
flex: 1 0 auto;
|
|
2804
2836
|
flex-direction: row;
|
|
2805
2837
|
justify-content: flex-end;
|
|
2806
|
-
`,
|
|
2838
|
+
`,Ve=k.balanceWidthInPx+k.balanceLeftMarginInPx,yo=a.div`
|
|
2807
2839
|
display: flex;
|
|
2808
2840
|
max-height: 54px;
|
|
2809
2841
|
min-height: 54px;
|
|
2810
|
-
min-width: ${e=>e.isActualVsForecastOn?3*(
|
|
2842
|
+
min-width: ${e=>e.isActualVsForecastOn?3*(Ve-2)-k.balanceLeftMarginInPx:k.balanceWidthInPx}px;
|
|
2811
2843
|
justify-content: center;
|
|
2812
2844
|
align-items: center;
|
|
2813
2845
|
background-color: ${e=>e.theme.colors.background};
|
|
@@ -2825,7 +2857,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2825
2857
|
max-width: ${k.balanceWidthInPx-2}px;
|
|
2826
2858
|
width: 138px;
|
|
2827
2859
|
text-align: center;
|
|
2828
|
-
`,
|
|
2860
|
+
`,sg=a.div`
|
|
2829
2861
|
height: 100%;
|
|
2830
2862
|
display: inline-block;
|
|
2831
2863
|
flex-direction: row;
|
|
@@ -2834,16 +2866,16 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2834
2866
|
color: ${e=>e.theme.colors.grey5};
|
|
2835
2867
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2836
2868
|
border: 1px solid ${e=>e.bgColor?.hex()};
|
|
2837
|
-
${({isSticky:e})=>e?
|
|
2869
|
+
${({isSticky:e})=>e?N`
|
|
2838
2870
|
position: -webkit-sticky;
|
|
2839
2871
|
position: sticky;
|
|
2840
2872
|
top: ${c.sp0};
|
|
2841
2873
|
left: ${c.sp0};
|
|
2842
2874
|
z-index: 20;
|
|
2843
2875
|
`:null}
|
|
2844
|
-
`,
|
|
2876
|
+
`,cg=a.div`
|
|
2845
2877
|
display: flex;
|
|
2846
|
-
width: ${e=>e.isActualVsForecastOn?3*
|
|
2878
|
+
width: ${e=>e.isActualVsForecastOn?3*Ve:Ve}px;
|
|
2847
2879
|
flex-direction: row;
|
|
2848
2880
|
justify-content: flex-start;
|
|
2849
2881
|
color: ${e=>e.theme.colors.champion};
|
|
@@ -2856,14 +2888,14 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2856
2888
|
min-width: ${k.balanceWidth};
|
|
2857
2889
|
margin-left: ${k.balanceLeftMargin};
|
|
2858
2890
|
margin-top: ${c.sp3};
|
|
2859
|
-
`,
|
|
2891
|
+
`,dg=a.div`
|
|
2860
2892
|
display: flex;
|
|
2861
2893
|
max-height: 54px;
|
|
2862
2894
|
min-height: 54px;
|
|
2863
2895
|
justify-content: center;
|
|
2864
2896
|
align-items: center;
|
|
2865
2897
|
color: ${e=>e.theme.colors.champion};
|
|
2866
|
-
`,
|
|
2898
|
+
`,hg=a.div``,ug=a(S)`
|
|
2867
2899
|
display: flex;
|
|
2868
2900
|
justify-content: center;
|
|
2869
2901
|
align-items: center;
|
|
@@ -2876,15 +2908,15 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2876
2908
|
color: ${e=>e.theme.colors.primary};
|
|
2877
2909
|
width: ${k.balanceWidth};
|
|
2878
2910
|
min-width: ${k.balanceWidth};
|
|
2879
|
-
`,
|
|
2911
|
+
`,pg=a.div`
|
|
2880
2912
|
display: flex;
|
|
2881
|
-
width: ${e=>e.isActualVsForecastOn?3*
|
|
2913
|
+
width: ${e=>e.isActualVsForecastOn?3*Ve:Ve}px;
|
|
2882
2914
|
flex-direction: column;
|
|
2883
2915
|
align-items: flex-end;
|
|
2884
|
-
`,
|
|
2916
|
+
`,gg=a.div`
|
|
2885
2917
|
max-height: 54px;
|
|
2886
2918
|
min-height: 54px;
|
|
2887
|
-
`,ko=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=W.getLocalizedStrings().reports,s=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?di(i,e,n,r,o):void 0,d=s!=null?s==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=oo(s,i);return t.jsx(lg,{children:r!=null&&o!=null&&s!=null&&d!=null&&h!=null?t.jsx(io,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:s}):t.jsx(yo,{isActualVsForecastOn:!1,children:t.jsx(bo,{children:Ge(e,n,i)})})})},sg=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:s,onCompareModeChanged:d})=>{const h=W.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(ag,{isActualVsForecastOn:o,children:[t.jsx(yo,{isActualVsForecastOn:o,children:t.jsx(bo,{children:Ge(e,n,i)})}),t.jsxs(ng,{isActualVsForecastOn:o,children:[t.jsx(_t,{children:h.actual}),t.jsx(_t,{children:h.forecast}),t.jsx(_t,{children:t.jsx(pn,{title:u,titleTextStyle:Kt.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:g=>{g!=="off"?d?.(g):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(ko,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:s})},cg=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:s})=>{const d=le(),h=o==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return t.jsx(ig,{children:n.map((u,g)=>t.jsx(z.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(rg,{children:t.jsx(pn,{title:h,titleTextStyle:Kt.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:p=>{p!=="off"&&(p==="compare_mode_amount"||p==="compare_mode_percent"?s?.(p):console.warn("Invalid compare mode option"))}})}):t.jsx(og,{children:t.jsx(ko,{firstMonthOfFY:e,timeframeTick:u,timeframe:i,dataAvailable:r,bookCloseDate:l},g)})},g))})};function dg({type:e,backgroundColor:n,isSticky:i,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}){const m=I();return t.jsxs(Qp,{height:o,bgColor:n,children:[he(e)===!0?t.jsx(tg,{isSticky:i,windowSize:m,bgColor:n,children:" . "}):null,t.jsx(eg,{children:l===!0?t.jsx(cg,{firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}):h.map((y,b)=>t.jsx(sg,{firstMonthOfFY:s,timeframeTick:y,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f},b))})]})}const yt=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const f=i.element.data,m=ze(f)===!0?f.horizontalTreeView:void 0,y=ze(f)===!0&&m==null?Math.max(0,f.depth-2)*16:void 0,b=Ve(i.config.reportId)===!0||li(i.config.reportId)===!0?Ri("no_filter",i.config.filterAccountsWithNilBalances):dt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),$=ee(b.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),C=m!=null&&m.hasChildren&&p!=null?{isOpen:u,onRowClick:()=>p(e)}:void 0;return t.jsx(op,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,accountBalances:$.balances,isScrolling:s,isLeaf:d,isLastNode:h,account:f,titleIndentExtraPx:y,horizontalTreeView:m,horizontalCollapse:C,onAccountBalanceClick:p==null?void 0:(B,_,L,N)=>{p?.(B,_,L,N)}})},Ee=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_subaccount"||i.element.data==null)return null;const f=i.element.data,m=xn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),y=go(m.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),b=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,$=i.config.reportId==="operating_expenses";return t.jsx(Vp,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",classDepth:b,compareMode:g,accountBalances:y.balances,isScrolling:s,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:i.element.metadata,onClick:p,noMarginForAccount:$,onAccountBalanceClick:p==null?void 0:(C,B,_,L)=>{p?.(C,B,_,L)}})},bt=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,m=dt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),y=ee(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(zu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},wn=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_group_subaccount"||i.element.data==null)return null;const f=i.element.data,m=xn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),y=ee(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Yu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},yn=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=Vt(i.element.title),m=i.element.data,y=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(mn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},kt=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=Vt(i.element.title),m=i.element.data,y=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(mn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},bn=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=Vt(i.element.title),m=i.element.data,y=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(mn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},He=(e,n,i,o,r,l,s,d,h)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,g=xn("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),p=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=go(g.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),m=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(Xp,{type:e,backgroundColor:o,isSticky:r,height:i,accountName:u.account.accountName,account:u,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:m,isLeaf:s,isLastNode:d,metadata:n.element.metadata,classDepth:p})},Ke=(e,n,i,o,r,l,s,d)=>{if(i.element.kind!=="timeframe_headers"&&i.element.kind!=="timeframe_headers_with_forecast")return null;const h=Re(i.element.data,i.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",g=h.map(p=>De(p));return t.jsx(dg,{treeNodeId:e,backgroundColor:r,isSticky:l,type:n,height:o,isActualVsForecastOn:i.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:i.config.mode==="this_period_vs_period_before"&&g.length>1,firstMonthOfFY:i.config.firstMonthOfFY,timeframe:u,timeframeTicks:g,compareMode:s,dataAvailable:i.config.dataAvailable,bookCloseDate:i.config.bookCloseDate,onCompareModeChanged:d})},hg=(e,n,i,o,r,l)=>{if(i.element.kind!=="class_headers")return null;const s=i.element.data;return t.jsx(up,{isSticky:l,type:n,height:o,backgroundColor:r,classColumns:s})},jo=(e,n,i,o,r,l,s,d,h,u,g,p,f)=>{if(i.element.kind!="class"||i.element.data==null)return null;const m=i.element.data,y=ee(m.childrenBalancesTotal,i.config.displayOrder,i.element.numOfBalances),b=g>1;return t.jsx(Cp,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,className:i.element.title,classCode:i.element.data.class.accountingClassNumber,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",depth:m.id.length-1,compareMode:p,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,hasChildren:m.children.length>0,isLastNode:u,isSubClass:b,showClassAccountNumber:i.config.showClassAccountNumber,onClick:$=>{f?.($)},metadata:i.element.metadata})},ug=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ei,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),pg=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ki,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),Jn=e=>{const{height:n,data:{reportElementData:i,id:o,treeKind:r,isLeaf:l,isLastNode:s,nestingLevel:d,isFirstNode:h},isOpen:u,style:g,setOpen:p,isScrolling:f}=e,m=($,C,B,_)=>{const L=l?u:!u;!l&&B==null&&(p(!u),e.onNodeCollapseToggled?.($,!u)),e.onNodeClick?.($,L,C,B,_)},y=e.treeNodePadding?.left,b=e.treeNodePadding?.right;return t.jsx("div",{style:{...g,width:"auto",minWidth:"100%",paddingLeft:y,paddingRight:b},children:t.jsx(Co,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:i,height:n,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:s,isFirstNode:h,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick!=null||!l?m:void 0,compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},o)})},Co=e=>e.treeKind==="name_only"?t.jsx(yg,{...e}):Xt(e.reportElementData.config.reportId)?t.jsx(kg,{...e}):Qt(e.reportElementData.config.reportId)===!0?t.jsx(bg,{...e}):li(e.reportElementData.config.reportId)===!0?t.jsx(gg,{...e}):qt(e.reportElementData.config.reportId)===!0?t.jsx(fg,{...e}):Ve(e.reportElementData.config.reportId)===!0?t.jsx(xg,{...e}):Zt(e.reportElementData.config.reportId)===!0?t.jsx(mg,{...e}):Zo(e.reportElementData.config.reportId)===!0?t.jsx(wg,{...e}):en(e.reportElementData.config.reportId)===!0?t.jsx(jg,{...e}):Jt(e.reportElementData.config.reportId)===!0?t.jsx(Cg,{...e}):null,gg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:m})=>{switch(i.element.kind){case"ac_report":return yt(e,n,i,o,r,l,s,d,h,u,p,f);case"ac_group_report":return bt(e,n,i,o,r,l,s,u,d,h,p,f);case"section":return yn(e,n,i,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return kt(e,n,i,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return bn(e,n,i,o,r,l,s,u,d,h,p,f);case"title_string_only":return null;case"class_headers":return hg(e,n,i,o,r,l);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ke(e,n,i,o,r,l,p,m);case"class":return jo(e,n,i,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return Ee(e,n,i,o,r,l,s,d,u,h,p,f);case"ac_subentity_total":return He(n,i,o,r,l,s,d,h,p);case"headers_loading_in_progress":return pg(i,o,r);case"loading_in_progress":return ug(i,o,r);default:return null}},fg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return yt(e,n,i,o,r,l,s,d,h,u,g,p);case"ac_group_report":return bt(e,n,i,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return Ee(e,n,i,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return wn(e,n,i,o,r,l,s,u,d,h,g,p);case"section":return yn(e,n,i,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return kt(e,n,i,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return bn(e,n,i,o,r,l,s,u,d,h,g,p);case"title_string_only":return null;case"ac_subentity_total":return He(n,i,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ke(e,n,i,o,r,l,g,f);default:return null}},xg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:m})=>{switch(i.element.kind){case"ac_report":return yt(e,n,i,o,r,l,s,d,h,u,p,f);case"ac_group_report":return bt(e,n,i,o,r,l,s,u,d,h,p,f);case"section":return qi(e,n,i,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return kt(e,n,i,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return Zi(e,n,i,o,r,l,s,u,d,h,p,f);case"title_string_only":return ln(e,n,i,o,r,l,s,u,d,h,p,f);case"ac_subentity_total":return He(n,i,o,r,l,s,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ke(e,n,i,o,r,l,p,m);case"class":return jo(e,n,i,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return Ee(e,n,i,o,r,l,s,d,u,h,p,f);case"total":return Xi(e,n,i,o,r,l,p,d);case"headers_loading_in_progress":return Xs(i,o,r);case"loading_in_progress":return Zs(i,o,r);default:return null}},mg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return Ys(e,n,i,o,r,l,s,d,h,g,p);case"ac_group_report":return Us(e,n,i,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return Ee(e,n,i,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return wn(e,n,i,o,r,l,s,u,d,h,g,p);case"section":return qi(e,n,i,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return qs(e,n,i,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return Zi(e,n,i,o,r,l,s,u,d,h,g,p);case"title_string_only":return ln(e,n,i,o,r,l,s,u,d,h,g,p);case"total":return Xi(e,n,i,o,r,l,g,d);case"ac_subentity_total":return He(n,i,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ke(e,n,i,o,r,l,g,f);default:return null}},wg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return yt(e,n,i,o,r,l,s,d,h,u,g,p);case"ac_group_report":return bt(e,n,i,o,r,l,s,u,d,h,g,p);case"section":return yn(e,n,i,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return kt(e,n,i,o,r,l,s,u,d,h,g,p);case"calculated_section":return bn(e,n,i,o,r,l,s,u,d,h,g,p);case"calculated_section_type1":return Pl(e,i,o,r,l,s,h);case"title_string_only":return ln(e,n,i,o,r,l,s,u,d,h,g,p);case"ac_subentity_total":return He(n,i,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ke(e,n,i,o,r,l,g,f);case"ac_subaccount":return Ee(e,n,i,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return wn(e,n,i,o,r,l,s,u,d,h,g,p);default:return null}},yg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:g})=>{switch(i.element.kind){case"checkbox_and_name_only":return lh(e,n,i,o,r,l,s,u,d,h,g);default:return null}},bg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(i.element.kind){case"loading_in_progress":case"spacer_row":return ku(i,o,r,l);case"timeframe_headers":return wu(i,o,l,h,r,u);case"total":return yu(e,n,i,o,l,s,r);case"vendor_row":return bu(n,i,o,r,l,s,d);case"title_string_only":return ju(i,o,r,l);default:return null}},kg=({id:e,treeKind:n,reportElementData:i,height:o,isOpen:r,isSticky:l,isScrolling:s,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:g}=i;switch(i.element.kind){case"spacer_row":return null;case"timeframe_headers":return qa(i,o,h,l,g.agingReportConfig?.sortKey,g.agingReportConfig?.sortOrder,g.agingReportConfig?.onSortOrderChanged);case"total":return Ja(n,i,o,h,l);case"aging_report_row":return Za(e,i,o,r,l,d,s,h,g.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Xa(i,o,l,s,h);default:return null}},jg=({id:e,reportElementData:n,height:i,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:s,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:g,nodeClickHandler:p,hoveredParentIdProps:f})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return Yd(e,n,o,r,l,s,d,f,g);case"flux_vendor_row":return Ud(e,n,o,r,l,u,s,d,h,f,p);case"section":return qd(e,n,i,o,r,l,u,s,d,p);case"timeframe_headers":return Zd(n,i,r);case"total":return Xd(n,i);case"loading_in_progress":return Jd(n);case"headers_loading_in_progress":return Qd(n);default:return null}},Cg=({reportElementData:e,height:n,isSticky:i,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return Zr(e,i);case"loading_in_progress":return qr();case"total":return Xr(e,n,i);case"section":return Ur();case"title_string_only":return Jr(e,n);case"ac_group_report":return Qr(e,n,o);default:return null}};function Qn(e,n,i,o){const r=e.reportElementData.element.data,l=e.reportElementData.config.reportId==="profit_and_loss_by_classes"&&e.reportElementData.element.kind==="ac_report"&&e.children.length>0&&ze(r)===!0?!0:void 0;return{data:{defaultHeight:kn(e.reportElementData.config.reportId,e.reportElementData.element.kind,e.isFirstNode),id:e.id,isLeaf:e.children.length===0,isFirstNode:e.isFirstNode??!1,isLastNode:e.isLastNode,isOpenByDefault:o??l??Sg(e.reportElementData.config.reportId,e.reportElementData.element.kind,i,e.reportElementData.config.reportFormat),nestingLevel:i,treeKind:n,reportElementData:e.reportElementData},treeKind:n,nestingLevel:i,node:e}}function kn(e,n,i){return qt(e)===!0?ea(n):Zt(e)===!0||Ve(e)===!0?ls(n):Xt(e)?ua(n):Jt(e)?ct(n):Qt(e)?sh(n):en(e)?Qi(n,i):xl(n)}function Sg(e,n,i,o){return qt(e)?ta(n,o,i):Zt(e)||Ve(e)===!0?ss(n,o):Xt(e)?pa():Qt(e)?ch():en(e)?cc(n):Jt(e)?Qo():ml(n,o)}const $g=a.div`
|
|
2919
|
+
`,ko=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=I.getLocalizedStrings().reports,s=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?di(i,e,n,r,o):void 0,d=s!=null?s==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=oo(s,i);return t.jsx(gg,{children:r!=null&&o!=null&&s!=null&&d!=null&&h!=null?t.jsx(io,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:s}):t.jsx(yo,{isActualVsForecastOn:!1,children:t.jsx(bo,{children:Ee(e,n,i)})})})},fg=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:s,onCompareModeChanged:d})=>{const h=I.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${I.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:I.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(pg,{isActualVsForecastOn:o,children:[t.jsx(yo,{isActualVsForecastOn:o,children:t.jsx(bo,{children:Ee(e,n,i)})}),t.jsxs(cg,{isActualVsForecastOn:o,children:[t.jsx(_t,{children:h.actual}),t.jsx(_t,{children:h.forecast}),t.jsx(_t,{children:t.jsx(gn,{title:u,titleTextStyle:Yt.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:g=>{g!=="off"?d?.(g):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(ko,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:s})},xg=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:s})=>{const d=ce(),h=o==="compare_mode_amount"?`${I.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:I.getLocalizedStrings().compareMode.changePercent;return t.jsx(dg,{children:n.map((u,g)=>t.jsx(z.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(ug,{children:t.jsx(gn,{title:h,titleTextStyle:Yt.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(hg,{children:t.jsx(ko,{firstMonthOfFY:e,timeframeTick:u,timeframe:i,dataAvailable:r,bookCloseDate:l},g)})},g))})};function mg({type:e,backgroundColor:n,isSticky:i,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}){const m=W();return t.jsxs(ag,{height:o,bgColor:n,children:[pe(e)===!0?t.jsx(sg,{isSticky:i,windowSize:m,bgColor:n,children:" . "}):null,t.jsx(lg,{children:l===!0?t.jsx(xg,{firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}):h.map((y,b)=>t.jsx(fg,{firstMonthOfFY:s,timeframeTick:y,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f},b))})]})}const yt=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const f=i.element.data,m=Te(f)===!0?f.horizontalTreeView:void 0,y=Te(f)===!0&&m==null?Math.max(0,f.depth-2)*16:void 0,b=Re(i.config.reportId)===!0||li(i.config.reportId)===!0?Gi("no_filter",i.config.filterAccountsWithNilBalances):dt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),$=te(b.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),C=m!=null&&m.hasChildren&&p!=null?{isOpen:u,onRowClick:()=>p(e)}:void 0;return t.jsx(cp,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,accountBalances:$.balances,isScrolling:s,isLeaf:d,isLastNode:h,account:f,titleIndentExtraPx:y,horizontalTreeView:m,horizontalCollapse:C,onAccountBalanceClick:p==null?void 0:(L,v,A,M)=>{p?.(L,v,A,M)}})},Ke=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_subaccount"||i.element.data==null)return null;const f=i.element.data,m=mn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),y=go(m.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),b=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,$=i.config.reportId==="operating_expenses";return t.jsx(Yp,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",classDepth:b,compareMode:g,accountBalances:y.balances,isScrolling:s,isLeaf:d,isOpen:h,isLastNode:u,account:f,reportId:i.config.reportId,metadata:i.element.metadata,onClick:p,noMarginForAccount:$,onAccountBalanceClick:p==null?void 0:(C,L,v,A)=>{p?.(C,L,v,A)}})},bt=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,m=dt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),y=te(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Ru,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},yn=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_group_subaccount"||i.element.data==null)return null;const f=i.element.data,m=mn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),y=te(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(qu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},bn=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=Vt(i.element.title),m=i.element.data,y=te(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(wn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},kt=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=Vt(i.element.title),m=i.element.data,y=te(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(wn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},kn=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=Vt(i.element.title),m=i.element.data,y=te(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(wn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},Ye=(e,n,i,o,r,l,s,d,h)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,g=mn("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),p=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=go(g.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),m=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(og,{type:e,backgroundColor:o,isSticky:r,height:i,accountName:u.account.accountName,account:u,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:m,isLeaf:s,isLastNode:d,metadata:n.element.metadata,classDepth:p})},Ue=(e,n,i,o,r,l,s,d)=>{if(i.element.kind!=="timeframe_headers"&&i.element.kind!=="timeframe_headers_with_forecast")return null;const h=He(i.element.data,i.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",g=h.map(p=>Ge(p));return t.jsx(mg,{treeNodeId:e,backgroundColor:r,isSticky:l,type:n,height:o,isActualVsForecastOn:i.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:i.config.mode==="this_period_vs_period_before"&&g.length>1,firstMonthOfFY:i.config.firstMonthOfFY,timeframe:u,timeframeTicks:g,compareMode:s,dataAvailable:i.config.dataAvailable,bookCloseDate:i.config.bookCloseDate,onCompareModeChanged:d})},wg=(e,n,i,o,r,l)=>{if(i.element.kind!=="class_headers")return null;const s=i.element.data;return t.jsx(mp,{isSticky:l,type:n,height:o,backgroundColor:r,classColumns:s})},jo=(e,n,i,o,r,l,s,d,h,u,g,p,f)=>{if(i.element.kind!="class"||i.element.data==null)return null;const m=i.element.data,y=te(m.childrenBalancesTotal,i.config.displayOrder,i.element.numOfBalances),b=g>1;return t.jsx(Lp,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,className:i.element.title,classCode:i.element.data.class.accountingClassNumber,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",depth:m.id.length-1,compareMode:p,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,hasChildren:m.children.length>0,isLastNode:u,isSubClass:b,showClassAccountNumber:i.config.showClassAccountNumber,onClick:$=>{f?.($)},metadata:i.element.metadata})},yg=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ei,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),bg=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ki,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),Jn=e=>{const{height:n,data:{reportElementData:i,id:o,treeKind:r,isLeaf:l,isLastNode:s,nestingLevel:d,isFirstNode:h},isOpen:u,style:g,setOpen:p,isScrolling:f}=e,m=($,C,L,v)=>{const A=l?u:!u;!l&&L==null&&(p(!u),e.onNodeCollapseToggled?.($,!u)),e.onNodeClick?.($,A,C,L,v)},y=e.treeNodePadding?.left,b=e.treeNodePadding?.right;return t.jsx("div",{style:{...g,width:"auto",minWidth:"100%",paddingLeft:y,paddingRight:b},children:t.jsx(Co,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:i,height:n,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:s,isFirstNode:h,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick!=null||!l?m:void 0,compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},o)})},Co=e=>e.treeKind==="name_only"?t.jsx(vg,{...e}):qt(e.reportElementData.config.reportId)?t.jsx(Lg,{...e}):en(e.reportElementData.config.reportId)===!0?t.jsx(_g,{...e}):li(e.reportElementData.config.reportId)===!0?t.jsx(kg,{...e}):Xt(e.reportElementData.config.reportId)===!0?t.jsx(jg,{...e}):Re(e.reportElementData.config.reportId)===!0?t.jsx(Cg,{...e}):Qt(e.reportElementData.config.reportId)===!0?t.jsx(Sg,{...e}):tr(e.reportElementData.config.reportId)===!0?t.jsx($g,{...e}):tn(e.reportElementData.config.reportId)===!0?t.jsx(Ag,{...e}):Jt(e.reportElementData.config.reportId)===!0?t.jsx(Bg,{...e}):null,kg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:m})=>{switch(i.element.kind){case"ac_report":return yt(e,n,i,o,r,l,s,d,h,u,p,f);case"ac_group_report":return bt(e,n,i,o,r,l,s,u,d,h,p,f);case"section":return bn(e,n,i,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return kt(e,n,i,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return kn(e,n,i,o,r,l,s,u,d,h,p,f);case"title_string_only":return null;case"class_headers":return wg(e,n,i,o,r,l);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ue(e,n,i,o,r,l,p,m);case"class":return jo(e,n,i,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return Ke(e,n,i,o,r,l,s,d,u,h,p,f);case"ac_subentity_total":return Ye(n,i,o,r,l,s,d,h,p);case"headers_loading_in_progress":return bg(i,o,r);case"loading_in_progress":return yg(i,o,r);default:return null}},jg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return yt(e,n,i,o,r,l,s,d,h,u,g,p);case"ac_group_report":return bt(e,n,i,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return Ke(e,n,i,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return yn(e,n,i,o,r,l,s,u,d,h,g,p);case"section":return bn(e,n,i,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return kt(e,n,i,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return kn(e,n,i,o,r,l,s,u,d,h,g,p);case"title_string_only":return null;case"ac_subentity_total":return Ye(n,i,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ue(e,n,i,o,r,l,g,f);default:return null}},Cg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:m})=>{switch(i.element.kind){case"ac_report":return yt(e,n,i,o,r,l,s,d,h,u,p,f);case"ac_group_report":return bt(e,n,i,o,r,l,s,u,d,h,p,f);case"section":return Zi(e,n,i,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return kt(e,n,i,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return Xi(e,n,i,o,r,l,s,u,d,h,p,f);case"title_string_only":return sn(e,n,i,o,r,l,s,u,d,h,p,f);case"ac_subentity_total":return Ye(n,i,o,r,l,s,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ue(e,n,i,o,r,l,p,m);case"class":return jo(e,n,i,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return Ke(e,n,i,o,r,l,s,d,u,h,p,f);case"total":return Qi(e,n,i,o,r,l,p,d);case"headers_loading_in_progress":return nc(i,o,r);case"loading_in_progress":return tc(i,o,r);default:return null}},Sg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return qs(e,n,i,o,r,l,s,d,h,g,p);case"ac_group_report":return Js(e,n,i,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return Ke(e,n,i,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return yn(e,n,i,o,r,l,s,u,d,h,g,p);case"section":return Zi(e,n,i,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return ec(e,n,i,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return Xi(e,n,i,o,r,l,s,u,d,h,g,p);case"title_string_only":return sn(e,n,i,o,r,l,s,u,d,h,g,p);case"total":return Qi(e,n,i,o,r,l,g,d);case"ac_subentity_total":return Ye(n,i,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ue(e,n,i,o,r,l,g,f);default:return null}},$g=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return yt(e,n,i,o,r,l,s,d,h,u,g,p);case"ac_group_report":return bt(e,n,i,o,r,l,s,u,d,h,g,p);case"section":return bn(e,n,i,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return kt(e,n,i,o,r,l,s,u,d,h,g,p);case"calculated_section":return kn(e,n,i,o,r,l,s,u,d,h,g,p);case"calculated_section_type1":return Dl(e,i,o,r,l,s,h);case"title_string_only":return sn(e,n,i,o,r,l,s,u,d,h,g,p);case"ac_subentity_total":return Ye(n,i,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ue(e,n,i,o,r,l,g,f);case"ac_subaccount":return Ke(e,n,i,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return yn(e,n,i,o,r,l,s,u,d,h,g,p);default:return null}},vg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:g})=>{switch(i.element.kind){case"checkbox_and_name_only":return uh(e,n,i,o,r,l,s,u,d,h,g);default:return null}},_g=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(i.element.kind){case"loading_in_progress":case"spacer_row":return vu(i,o,r,l);case"timeframe_headers":return Cu(i,o,l,h,r,u);case"total":return Su(e,n,i,o,l,s,r);case"vendor_row":return $u(n,i,o,r,l,s,d);case"title_string_only":return _u(i,o,r,l);default:return null}},Lg=({id:e,treeKind:n,reportElementData:i,height:o,isOpen:r,isSticky:l,isScrolling:s,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:g}=i;switch(i.element.kind){case"spacer_row":return null;case"timeframe_headers":return el(i,o,h,l,g.agingReportConfig?.sortKey,g.agingReportConfig?.sortOrder,g.agingReportConfig?.onSortOrderChanged);case"total":return il(n,i,o,h,l);case"aging_report_row":return tl(e,i,o,r,l,d,s,h,g.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return nl(i,o,l,s,h);default:return null}},Ag=({id:e,reportElementData:n,height:i,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:s,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:g,nodeClickHandler:p,hoveredParentIdProps:f})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return qd(e,n,o,r,l,s,d,f,g);case"flux_vendor_row":return Jd(e,n,o,r,l,u,s,d,h,f,p);case"section":return eh(e,n,i,o,r,l,u,s,d,p);case"timeframe_headers":return th(n,i,r);case"total":return nh(n,i);case"loading_in_progress":return ih(n);case"headers_loading_in_progress":return oh(n);default:return null}},Bg=({reportElementData:e,height:n,isSticky:i,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return ta(e,i);case"loading_in_progress":return ea();case"total":return na(e,n,i);case"section":return Jr();case"title_string_only":return ia(e,n);case"ac_group_report":return oa(e,n,o);default:return null}};function ei(e,n,i,o){const r=e.reportElementData.element.data,l=e.reportElementData.config.reportId==="profit_and_loss_by_classes"&&e.reportElementData.element.kind==="ac_report"&&e.children.length>0&&Te(r)===!0?!0:void 0;return{data:{defaultHeight:jn(e.reportElementData.config.reportId,e.reportElementData.element.kind,e.isFirstNode),id:e.id,isLeaf:e.children.length===0,isFirstNode:e.isFirstNode??!1,isLastNode:e.isLastNode,isOpenByDefault:o??l??Ig(e.reportElementData.config.reportId,e.reportElementData.element.kind,i,e.reportElementData.config.reportFormat),nestingLevel:i,treeKind:n,reportElementData:e.reportElementData},treeKind:n,nestingLevel:i,node:e}}function jn(e,n,i){return Xt(e)===!0?ra(n):Qt(e)===!0||Re(e)===!0?us(n):qt(e)?ma(n):Jt(e)?ct(n):en(e)?ph(n):tn(e)?Ji(n,i):kl(n)}function Ig(e,n,i,o){return Xt(e)?aa(n,o,i):Qt(e)||Re(e)===!0?ps(n,o):qt(e)?wa():en(e)?gh():tn(e)?gc(n):Jt(e)?or():jl(n,o)}const Wg=a.div`
|
|
2888
2920
|
top: 0;
|
|
2889
2921
|
left: 0;
|
|
2890
2922
|
position: sticky !important;
|
|
@@ -2899,7 +2931,7 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2899
2931
|
align-items: center;
|
|
2900
2932
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2901
2933
|
box-sizing: border-box;
|
|
2902
|
-
`;function
|
|
2934
|
+
`;function Og({height:e,backgroundColor:n,headers:i,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:s}){return i.length===0?null:(i.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(Wg,{heightValue:e,bgColor:n,"data-testid":x("sticky-header-report-tree"),children:i.map((d,h)=>t.jsx(Co,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:jn(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:n,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:i.length-1===h,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:s},d.id))}))}const Mg=(e,n,i)=>function*(){for(let o=0;o<n.length;++o)yield ei(n[o],e,0,i[n[o].id]??void 0);for(;;){const o=yield;for(let r=0;r<o.node.children.length;++r)yield ei(o.node.children[r],e,o.nestingLevel+1,i[o.node.children[r].id]??void 0)}},So=z.createContext(void 0);function Ng({height:e,kind:n,rootNodes:i,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:s,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:g,infiniteLoadingProps:p,variableNodeHeightTree:f,onNodeClick:m,onCompareModeChanged:y,scrollPosition:b,onScroll:$,nodeOpenStatus:C,onNodeCollapseToggled:L,onTreeInnerElementHeightChanged:v,onToggleCheck:A,hoveredParentIdProps:M}){const P=z.useRef(null),E=z.useRef(null),T=Sn(f?.prevFetchState),Y=Sn(f?.prevRefreshFetchState),[X,ae]=z.useState(0),Q=g??E,de=u??P,me=W(),[le,J]=z.useState(void 0),[we,$e]=z.useState(!1),[ye,ve]=z.useState(C),ge=(F,ne)=>{ve(Object.assign({},ye,{[F]:ne})),L?.(F,ne)},fe=F=>{if(i.contentNodes.length>0)if(Object.keys(F).length>0){const ne={};Object.keys(F).forEach(je=>{ne[je]={open:F[je]}}),de?.current?.recomputeTree(ne)}else{const ne=i.contentNodes[0].id;de?.current?.recomputeTree({[ne]:{open:!0}})}};z.useLayoutEffect(()=>{if((!$n(b,le)||le==null)&&Q.current!=null){const F=b?.scrollLeft==null?me==="small"?0:Q.current.scrollWidth:b?.scrollLeft;if(b!=null){const ne={scrollTop:b.scrollTop,scrollLeft:F};J(ne),F!==b?.scrollLeft&&$?.(ne)}Q.current.scroll({left:F,top:b?.scrollTop})}},[b]),z.useEffect(()=>{$n(C,ye)||(ve(C),fe(C))},[C]),z.useEffect(()=>{const F=Q.current,ne=Io(()=>{if(F!=null&&(le==null||F.scrollLeft!==le.scrollLeft||F.scrollTop!==le.scrollTop)){const je={scrollLeft:F.scrollLeft,scrollTop:F.scrollTop};J(je),$?.(je)}},50);return F?.addEventListener("scroll",ne),()=>{F?.removeEventListener("scroll",ne)}},[Q,le,$]),z.useEffect(()=>{if(i.contentNodes.length>0){fe(ye);const F=i.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";F!==we&&$e(F)}},[we,$e,i,de,Q]),z.useEffect(()=>{(f!=null&&T==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&Y==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),ae(X+1))},[X,f?.fetchState,f?.isSortApplied,T,Y,f]);const Be=z.useRef(),[$o,vo]=z.useState(void 0),_o=()=>{const F=Be.current;F!=null&&F.clientHeight>0&&F.clientHeight!=$o&&(vo(F.clientHeight),v?.(F.clientHeight))},Cn=z.useCallback(Mg(n,i.contentNodes,ye),[n,i]),Lo={rootNodes:i,treeNodePadding:s,backgroundColor:l,kind:n,isSticky:r,compareMode:o,onCompareModeChanged:y};return t.jsx(So.Provider,{value:Lo,"data-testid":x("report-tree"),children:p==null?t.jsx(vn,{className:d,style:h,ref:de,innerRef:Be,outerRef:Q,innerElementType:Tt,treeWalker:Cn,onItemsRendered:_o,height:e,width:"100%",children:F=>t.jsx(Jn,{...F,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:s,onNodeClick:m,onNodeCollapseToggled:ge,compareMode:o,onCompareModeChanged:y,onToggleCheck:A})}):t.jsx(Wo,{isItemLoaded:p.isItemLoaded,itemCount:p.itemCount+1,loadMoreItems:p.loadMoreItems,children:({onItemsRendered:F,ref:ne})=>t.jsx(vn,{className:d,style:h,ref:ne,innerRef:Be,outerRef:Q,innerElementType:Tt,treeWalker:Cn,onItemsRendered:F,height:e,width:"100%",children:je=>t.jsx(Jn,{...je,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:s,onNodeClick:m,onNodeCollapseToggled:ge,compareMode:o,onCompareModeChanged:y,onToggleCheck:A,hoveredParentIdProps:M})},X)})})}const Tt=z.forwardRef((e,n)=>{const{children:i,style:o,...r}=e,{rootNodes:l,treeNodePadding:s,backgroundColor:d,kind:h,isSticky:u,compareMode:g,onCompareModeChanged:p}=z.useContext(So),f=l.headerNodes.reduce(($,C)=>$+jn(C.reportElementData.config.reportId,C.reportElementData.element.kind,C.isFirstNode),0),m=s?.left,y=s?.right,b=c.sp8;return t.jsxs("div",{ref:n,style:{...o,width:"auto",minWidth:"100%",paddingLeft:m,paddingRight:y,marginBottom:b},...r,children:[t.jsx(Og,{height:f,backgroundColor:d,headers:l.headerNodes,treeKind:h,isSticky:u.isStickyHeader,compareMode:g,onCompareModeChanged:p}),i]})});Tt.displayName="stickyInnerElementType";const Pg=a.div`
|
|
2903
2935
|
display: flex;
|
|
2904
2936
|
flex: 1 0 auto;
|
|
2905
2937
|
width: ${e=>e.width}px;
|
|
@@ -2928,8 +2960,8 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2928
2960
|
background-color: transparent;
|
|
2929
2961
|
}
|
|
2930
2962
|
&::-webkit-scrollbar-track {
|
|
2931
|
-
box-shadow: inset 0 0 2px ${
|
|
2932
|
-
-webkit-box-shadow: inset 0 0 2px ${
|
|
2963
|
+
box-shadow: inset 0 0 2px ${ee.scrollbarBoxShadow};
|
|
2964
|
+
-webkit-box-shadow: inset 0 0 2px ${ee.scrollbarBoxShadow};
|
|
2933
2965
|
background-color: transparent;
|
|
2934
2966
|
}
|
|
2935
2967
|
&::-webkit-scrollbar-thumb {
|
|
@@ -2938,4 +2970,4 @@ import{V as t,b5 as Ao,ac as x,bP as fe,aQ as U,dq as Bo,o as c,p as Q,aS as Cn,
|
|
|
2938
2970
|
}
|
|
2939
2971
|
}
|
|
2940
2972
|
}
|
|
2941
|
-
`;function
|
|
2973
|
+
`;function Gg({rootNodes:e,type:n,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l,onAccountClick:s,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onCompareModeChanged:g,scrollPosition:p,onScroll:f,nodeOpenStatus:m,onNodeCollapseToggled:y,onReportTableHeightChanged:b,onToggleCheck:$,treeRef:C}){return t.jsx(Ao,{children:({height:L,width:v})=>t.jsx(Pg,{"data-testid":x("report-tree-container"),height:L,width:v,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(Ng,{"data-testid":x("report-tree"),treeClassName:"content-scroll",height:L,kind:n,rootNodes:e,compareMode:i,isSticky:o,backgroundColor:r,treeRef:C,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onNodeClick:s==null?void 0:(A,M,P,E,T)=>{P!=null&&E!=null&&s(P,E,T)},onCompareModeChanged:g,scrollPosition:p,onScroll:f,nodeOpenStatus:m,onNodeCollapseToggled:y,onTreeInnerElementHeightChanged:b,onToggleCheck:$})})})}export{te as D,Z as J,Fe as N,Ee as Z,ic as a,dt as h,mn as j,un as m,Gg as n,Rg as t};
|