@zeniai/web-cockpit-ui 1.15.66-dev → 1.15.67-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-fOu5grd7-_I6UtkXF.js +21 -0
- package/dist/assets/{AIPerformancePage-CFErwUsE-C9puPCCO.js → AIPerformancePage-Da3gFo8A-Z4ui8_vI.js} +33 -33
- package/dist/assets/AccountInfoPage-o7hTXtgZ-CYBdmYMP.js +18 -0
- package/dist/assets/{AccountInfoPageContent-CKpeDot5-DIGFDBxC.js → AccountInfoPageContent-DqErO8FH-BbWzsS4C.js} +23 -23
- package/dist/assets/{AccountLockedInfoModal-c30P9O_3-n0xGj_zZ.js → AccountLockedInfoModal-BJjCuLHa-YI1GAfPy.js} +9 -9
- package/dist/assets/{AccountReconDetailsDrawerPage-CO9BYPWm-Mg0FsDRd.js → AccountReconDetailsDrawerPage-CVjH1p0d-Dxp_Yf_G.js} +54 -54
- package/dist/assets/AccountRow-CpftykFx-bzN_3qh3.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-De2yNNuZ-G5M7i2un.js → AccountsPromoCardStack-D7xvgmOH-CXZpH0yT.js} +22 -22
- package/dist/assets/AddAddressForCardDrawer-vecchYEf-_IpKVfzg.js +6 -0
- package/dist/assets/{AddToWalletPage-CsOmzC7v-DDekkTcs.js → AddToWalletPage-zJy9QCjx-C9dnTqSq.js} +21 -21
- package/dist/assets/{AgingReportsPage-D9I9afnB-Pr6LqJHU.js → AgingReportsPage-wAvQb1d8-CHVcAAAX.js} +8 -8
- package/dist/assets/{AllUserItems-Dq7NcP-o-BNPnQC3d.js → AllUserItems-DEv_CXOA-DrRFxVFx.js} +11 -11
- package/dist/assets/ApAgingDetailPage-BOV1WFVF-CJZU2LXe.js +46 -0
- package/dist/assets/AppBasePage-DMlomvFS-DqF43oJC.js +71 -0
- package/dist/assets/AppDrawerContent-Dc2sHnR3-Bud5cVOk.js +92 -0
- package/dist/assets/ApprovalRulesSettingsPage-BnbPSy4U-4wRot9T7.js +47 -0
- package/dist/assets/{ArAgingChart-Tcu0Lja_-Dcd3iM-I.js → ArAgingChart-m-Xp3HAW-BYykckhE.js} +5 -5
- package/dist/assets/ArAgingDetailPage-b_NpDpWj-RkSFd-g-.js +46 -0
- package/dist/assets/{AttachmentView-CiYfninr-76W0iAd5.js → AttachmentView-DB_V1qT1-BAHgn941.js} +7 -7
- package/dist/assets/{BankAccountSection-EZtscP2z-BUefIH5V.js → BankAccountSection-BabhrBM7-CsYno7bw.js} +7 -7
- package/dist/assets/{BankAccountWarningSection-DCfyIUlu-CKci9TET.js → BankAccountWarningSection-yT2UAd12-AQuYXXrV.js} +7 -7
- package/dist/assets/{BankConnectionsSettingsPage-CQWy9jvt-BdLZIBvy.js → BankConnectionsSettingsPage-CbxXykMM-DJ1Qfs7C.js} +32 -32
- package/dist/assets/BillDetailPage-7TMkWo3V-BpI29Fow.js +266 -0
- package/dist/assets/{BillPayApprovalRuleDetailPage-Drh7Bhi8-091yCGF7.js → BillPayApprovalRuleDetailPage-COyDRpaF-B8K_-t2I.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-Cmyo59xB-Bc1FlC0c.js → BillPayApprovalRulesPage-9pxkgFAT-CZRNmhN3.js} +15 -15
- package/dist/assets/BillPayPromoPage-AGffhbY3-C44MBEry.js +84 -0
- package/dist/assets/{BillPaySetUpPage-B6Pd_eBf-CWUn729m.js → BillPaySetUpPage-Cs5rkWBu-BFj8l_hW.js} +4 -4
- package/dist/assets/{BillingSettingsPage-CYsvBrFV-DtV08_g9.js → BillingSettingsPage-CQ117tT9-3H-s6tQ2.js} +7 -7
- package/dist/assets/{BillsBulkReviewDrawerPage-DNnAmqWz-CEdBVzVe.js → BillsBulkReviewDrawerPage-DRkGQQAe-Di_BJEYU.js} +1 -1
- package/dist/assets/{BoxItem-B06DK4G--Bupc4dyY.js → BoxItem-DRwx0M5a-BMNzRCBU.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Dgk5gyMv-BKMYH8C3.js → BusinessVerificationPage-1h0z3N9u-B1KNa18N.js} +10 -10
- package/dist/assets/CardNumberSubText-DqtLT1w5-DwPe5Ik5.js +21 -0
- package/dist/assets/{CashbackDetailPage-5eysaHGf-O2irFEC3.js → CashbackDetailPage-ChdQcvkC-1A8EZQvJ.js} +30 -30
- package/dist/assets/{ChargeCardDetailPage-Diwf-gwZ-BUyvgd6i.js → ChargeCardDetailPage-DFOKlPNG-MYhUkq-U.js} +1 -1
- package/dist/assets/{ChargeCardListPage-C-RTGkKK-DLkixTq5.js → ChargeCardListPage-DhLUsUhd-CLRkrqGa.js} +24 -24
- package/dist/assets/{ChargeCardListTable-B-bNbtZQ--LQKl6Xj.js → ChargeCardListTable-DE72YU_i-BYCOUa2e.js} +60 -60
- package/dist/assets/{ChargeCardPaymentHistoryPage-Cu-zT5tO-CNtnC-O7.js → ChargeCardPaymentHistoryPage-CbGR18s--C7VqbbyV.js} +38 -38
- package/dist/assets/ChargeCardPromoPage-CPpNh89o-DfgxkRWy.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-BcTB9Yy5-BOaP0LVe.js → ChargeCardSetupPage-ITi25kUD-BZlZpXjO.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-B_ERvgmB-DjHyNuHd.js → ChargeCardStatementsPage-CTJc1BCc-BYEICWbq.js} +5 -5
- package/dist/assets/{CheckDepositDrawerPage-D7_usOVn-B0KdoA_b.js → CheckDepositDrawerPage-BrzeSj-3-BtbAQdkJ.js} +17 -17
- package/dist/assets/CollapsableReportTable-CDEe9s_E-TNl2e0Ho.js +2844 -0
- package/dist/assets/{CompanyOfficerDetailsSection-CWADX4kZ-jF_BBJt5.js → CompanyOfficerDetailsSection-BaPhFsLx-Cr9d9T4h.js} +21 -21
- package/dist/assets/{CompanyPassportCard-DF9LFrFD-nY8e_5Nd.js → CompanyPassportCard-B9ymV6Az-COMAf0pP.js} +9 -9
- package/dist/assets/{CompanyPassportPage-BtAopyLq-BcF__FaA.js → CompanyPassportPage-BQ68t7oK-BMTwLfpK.js} +32 -32
- package/dist/assets/{CompleteProfile-CsbsHQ0p-Da1z9Z7H.js → CompleteProfile-C5n9b8gQ-hT3HEiCg.js} +4 -4
- package/dist/assets/ConfettiBurst-BizTW0hz-D0Pewk0g.js +1 -0
- package/dist/assets/{ConstrainedInnerElement-hv51KpGg-CXln6N2t.js → ConstrainedInnerElement-BeIpAPjB-CDDJSzvV.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C2xU6c51-B-kxLo4f.js → CreateOrEditVendorPage-BIfOA5Nr-BuMGF8oN.js} +14 -14
- package/dist/assets/{CreditCardPaymentDrawerPage-CeagMaCu-tu_QZ5if.js → CreditCardPaymentDrawerPage-CCpS-31h-BIvvMTcG.js} +22 -22
- package/dist/assets/CurrencySelectField-KvKyemY6-B3GfB4CH.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-CIeR2XvU-CK8C5kkD.js → CustomerOnboardingActivationPage-6VlMI4oY-E5CGEKHR.js} +29 -29
- package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-Di904UJs.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-kUbwh2r2-J-3HD8z8.js → CustomerOnboardingDetailPageSkeleton-BzbZb27J-BVzHP5Go.js} +14 -14
- package/dist/assets/CustomerOnboardingNoStepsPage-CWF_00EM-DmcEox2S.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-Dm2Si769-D58-iBoA.js → CustomerOnboardingPage-DkW66A-p-CjpdS5qu.js} +16 -16
- package/dist/assets/{CustomerOnboardingProductSuitePage-Cz81Q5jC-n81ts80h.js → CustomerOnboardingProductSuitePage-Ba0yotpP-CIyDBKON.js} +8 -8
- package/dist/assets/{Dashboard-DReG_aaf-DwSOFg0b.js → Dashboard-bX3cWkmP-BbU8pr2A.js} +33 -33
- package/dist/assets/{DashboardReportPage-BXSlwsR7-CQ7UXe-C.js → DashboardReportPage-DuZ4d4CE-DK-gMM8o.js} +39 -39
- package/dist/assets/DashboardSidebarBackgroundAnimation-UV2CZToG-CyMFhVza.js +12 -0
- package/dist/assets/DepositAccTransactionItem-BY_OvuKg-BsNMu9o_.js +76 -0
- package/dist/assets/DepositAccTransactionListPage-a__bpCOB-D_hGWuPJ.js +66 -0
- package/dist/assets/DomesticWireDetailsPage-BumMT4QM-CBRjN65H.js +21 -0
- package/dist/assets/DownloadOverlay-DqiL3-FB-BSVRX95E.js +439 -0
- package/dist/assets/{DrawerPage-DQ3Xuekx-B9p3dBku.js → DrawerPage-CaG-xx5d-EitebnoL.js} +12 -12
- package/dist/assets/EditPeoplePage-BcsdEp_d-CHb4ex1x.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-DNUmwdsH-05ewx_ut.js +865 -0
- package/dist/assets/EntityDetailPage-DtX5TjBc-DQKDGAg6.js +18 -0
- package/dist/assets/{EntitySummarySection-vsEMiXYh-CDZa-Mc3.js → EntitySummarySection-LEA5m6mN-BORCaqtF.js} +17 -17
- package/dist/assets/{ExpenseAutomationOverviewPage-B3HPfIsK-CWN4kP2X.js → ExpenseAutomationOverviewPage-Dmhn7gfp-D__D3sDL.js} +50 -50
- package/dist/assets/ExpenseAutomationPage-B8C4BxoV-Ci1A8Wjo.js +1703 -0
- package/dist/assets/{ExpressPayPage-BH7oCW_F-ls2gqEkj.js → ExpressPayPage-C-nqret2-DlkmEIam.js} +17 -17
- package/dist/assets/{FeaturePreviewPage-DSv61BhF-D3bUAc_I.js → FeaturePreviewPage-BHjUZ7s6-DFFjPG0A.js} +2 -2
- package/dist/assets/{FollowStepsSection-Bgy9MpO4-DjmY6ECY.js → FollowStepsSection-0eFMS0c5-B5EQvoc9.js} +7 -7
- package/dist/assets/GlobalReviewListPage-4eiopkzw-Bih8gWqa.js +291 -0
- package/dist/assets/{InformationCardStack-rx0fypl3-PVL5sP4g.js → InformationCardStack-C7XJCUlh-CiHVF9R1.js} +4 -4
- package/dist/assets/{InsightsCardStack-uJWMkIZL-BMcef6eP.js → InsightsCardStack-fBAbQwhK-BkpAEowk.js} +9 -9
- package/dist/assets/InsightsSection-De9zu_me-Bh9zGZF1.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-Cj01Nub6-Ckk6jPFc.js → IntegrationsSettingsPage-BD5jqAv8-DlI-U29Q.js} +6 -6
- package/dist/assets/{InternationalWireSwiftDetailsPage-C2PM97sv-DZ12UKs3.js → InternationalWireSwiftDetailsPage-BftrE612-J_F_3vEQ.js} +24 -24
- package/dist/assets/InternationalWireVerificationPage-CDf7equc-CiJjOeOD.js +65 -0
- package/dist/assets/{InviteFormPage-dsMpScvq-CwRYtYza.js → InviteFormPage-E2igwKEh-BCSU2LM1.js} +18 -18
- package/dist/assets/{InvitePageListView-e7vGSbFa-DcUjhdI-.js → InvitePageListView-Cuq9dlgu-CDBeR_PP.js} +46 -46
- package/dist/assets/InvitePeoplePage-Db4P4ZEq-BEebaP5f.js +12 -0
- package/dist/assets/InvoiceUploadSection-DYCjz9CI-DfxPkJOj.js +140 -0
- package/dist/assets/{IssueChargeCardPage-CyF9wrb0-CEZ2-O-B.js → IssueChargeCardPage-CK6fnO24-BKSJZVY1.js} +31 -31
- package/dist/assets/{LabeledAddressValue-3l0Bv00--CRsMpkI1.js → LabeledAddressValue-Ma1WURjK-BbziAecd.js} +2 -2
- package/dist/assets/LabeledAddressValueField-C6-hVsPb-DSR7WoQV.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-CgZg0uOW-F-cfza7w.js +16 -0
- package/dist/assets/{LabeledCountryMultiSelectField-3qI_4noU-BwwxeoBQ.js → LabeledCountryMultiSelectField-sj8p7Rne-BUdiOBjF.js} +5 -5
- package/dist/assets/{LabeledCreatableSingleSelectField-BV3h9bh7-D2WoBuGQ.js → LabeledCreatableSingleSelectField-DUTQh416-Cuz1-Arb.js} +7 -7
- package/dist/assets/LabeledDocumentField-Bp9m-OrP-CNPLGXDQ.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-3-KekP79-aeAOh3hf.js +59 -0
- package/dist/assets/{LabeledText-DGZ7hxY4-DsEkDfJy.js → LabeledText-DvzVOku6-qtDKT9OR.js} +6 -6
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DI07Eicg-BdZT_J4k.js → LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-Dkhsfaug.js} +18 -18
- package/dist/assets/{LabeledZeniRolesDropDownField-jIrTovp--BhxE0P_I.js → LabeledZeniRolesDropDownField-kWC0ShEy-B4c0yRiG.js} +27 -27
- package/dist/assets/{LinkJETransactionPage-Bvbqpltz-HF3tsHRK.js → LinkJETransactionPage-WufhDGDQ-CQSugFmY.js} +12 -12
- package/dist/assets/{LockCardPage-DyEQBJYx-Cp9KP7Ha.js → LockCardPage-BBIVLYVD-DGVUoots.js} +61 -61
- package/dist/assets/LowBalancePopup-ScEqPY9J-zI-i6Isi.js +34 -0
- package/dist/assets/MagicLinkACHDetailsPage-C494txw0-CY1IheMO.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CONBCbOQ-jeP8c5FK.js +1 -0
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-C_SjsgC9-VMrnWF1u.js → MagicLinkInternationalWireDetailsPage-fSY3JGpz-3lDfayHZ.js} +1 -1
- package/dist/assets/MagicLinkSuccessPage-BDRXSAO4-C2kPIdG5.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-ClAnBBt9-BG2qP1eV.js → MagicLinkTitleSection-ZnbKPIvJ-CNhLMA89.js} +5 -5
- package/dist/assets/MailingDetailsSection-DZT7JPlI-Cc3Oz9Xy.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-CBNYcuP4-JphRdcv2.js → MyBankConnectionsSettingsPage-aQDVaEG1-CqWavNbr.js} +16 -16
- package/dist/assets/MyPendingActivationChargeCardListPage-BJrk56oA-DBhBFYPS.js +6 -0
- package/dist/assets/MyProfileSettingsPage-L9WuP6HZ-CxLQr9dL.js +85 -0
- package/dist/assets/{NavBarWithPicker-CbjFNysh-fM8X8YaY.js → NavBarWithPicker-zmvBmWS1-DG_L70Us.js} +5 -5
- package/dist/assets/{NavigationArrow-Dpc7u6y4-BiRqyGkx.js → NavigationArrow-D26UG3p--Bc_WE-hA.js} +7 -7
- package/dist/assets/{NavigationDots-DCpslVnm-DccClgwI.js → NavigationDots-Bv4tBDN3-3qW0LzNq.js} +3 -3
- package/dist/assets/{NewGlobalMerchantPage-B10sY6Q_-VgMXWXS2.js → NewGlobalMerchantPage-vOn2O6B9-UKW9QkH8.js} +37 -37
- package/dist/assets/{NoDataChart-9-bhq204-Mk2SpDph.js → NoDataChart-CgT19fV7-DcCaLcsZ.js} +2 -2
- package/dist/assets/{NoDataTable-C6Q2Anpz-DUKNluuK.js → NoDataTable-CPjJmo4s-rcoXWqQH.js} +1 -1
- package/dist/assets/{NotFoundPage-4mPhXD5--D8Xe2RH2.js → NotFoundPage-CP2i3FTm-zCn5IOVY.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-BTxCoB_b-EQULZcKC.js → NotificationSettingsPage-CT9Dnb03-BYS2qU5g.js} +31 -31
- package/dist/assets/NotificationsListConfig-Bn1zmx6b-Bn3vC5S6.js +1 -0
- package/dist/assets/NotificationsPage-DDwdR_Jq-T3skh5EK.js +685 -0
- package/dist/assets/OpExByVendorPage-DukFYlqO-C6JAoAcj.js +100 -0
- package/dist/assets/{OverlayContainerPage-CkUYOhlh-BnCo9_OT.js → OverlayContainerPage-D4QU0p4o-PqYhuBtJ.js} +1 -1
- package/dist/assets/PandLWithForecastPage-Bgflh9Om-DboN8TAW.js +107 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BWFl695q-CDWvoSql.js → PaymentAccountSetupBillingAddressSection-JPO-rPAd-yGcY5OsC.js} +15 -15
- package/dist/assets/PeoplePage-CDvKreQl-CkudxP0y.js +675 -0
- package/dist/assets/{Preview-Cc9vKqgF.js → Preview-P62UcEJK.js} +1 -1
- package/dist/assets/{ProductsCarousel-C9JoJQeH-x81n9I1l.js → ProductsCarousel-7R3cvGiS-Bu_PFFN9.js} +8 -8
- package/dist/assets/{PromoBaseCards-mFk7SsOr-qtCHMf8v.js → PromoBaseCards-DdCMZIc7-DR_4jktz.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-CJsIrEZq-Cv6iSpTz.js → QBOConnectionDialog-Ca36jKz2-BjgnS_b-.js} +5 -5
- package/dist/assets/{QBOSetupSection-C_fqHza_-DgpfNI-0.js → QBOSetupSection-CzBfIVqR-DJuM0C4n.js} +13 -13
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BMZnKpsk-C2eUzL_F.js → ReimbursementApprovalRuleDetailPage-DUVSGQJ6-BsBLC37q.js} +2 -2
- package/dist/assets/{ReimbursementApprovalRulesPage-C2zNa8dT-BewT1FOV.js → ReimbursementApprovalRulesPage-B48x1gPM-C9ZbbxEX.js} +9 -9
- package/dist/assets/ReimbursementDetailPage-oIC9QEyF-CwfsRmIP.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-Df5QmXzC-CiqDm3oM.js → ReimbursementPromoPage-BKgsJieE-VA9mHTWf.js} +32 -32
- package/dist/assets/{ReimbursementSetUpPage-D450RVsP-CoGf8qvT.js → ReimbursementSetUpPage-B_c-ZgFT-CzixtqPF.js} +10 -10
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-CeyGWbKR-CxC7mVx8.js +1 -0
- package/dist/assets/{ReloadCard-D5cvzWxe-B3IyXnq9.js → ReloadCard-DKGn1uxF-DmSJJ42p.js} +6 -6
- package/dist/assets/ReportTableViewSelector-CXDvZEbR-DF_Vh_2k.js +150 -0
- package/dist/assets/ReportsPage-BoUyXSBC-DHugo8wm.js +121 -0
- package/dist/assets/{RevenueChart-DtQu0KAn-D8weCECA.js → RevenueChart-SvdhwBcE-BkckN20x.js} +13 -13
- package/dist/assets/{ReviewDetailsPage-vui4TqeA-D-XziIJQ.js → ReviewDetailsPage-tT1l4R2r-RWSNyRxW.js} +23 -23
- package/dist/assets/{ReviewOverlay-CUnL7H-a-17YpOTAb.js → ReviewOverlay-BoM41t8W-3p-Qz-jJ.js} +25 -25
- package/dist/assets/RoleWithToolTip-C8x5yXaK-DMsCF0JH.js +22 -0
- package/dist/assets/ScheduleDetailsFixedAssetsPage-Bkp0mCOn-DiQJAeBc.js +37 -0
- package/dist/assets/ScheduleDetailsPage-Dg9rYJbn-D-JcLE-0.js +37 -0
- package/dist/assets/ScheduleSequenceTable-J6Eja8XA-F9fSvOJk.js +324 -0
- package/dist/assets/{ScreenRoutes-VDuiXW2A.js → ScreenRoutes-EnKgc_BI.js} +1 -1
- package/dist/assets/{SetUpAccountSection-DYRWWXcL-CqyVY0zk.js → SetUpAccountSection-sfIB1h4i-DtGgsFok.js} +13 -13
- package/dist/assets/SignIn-Cu2nzuEC-gpOpExBj.js +491 -0
- package/dist/assets/SignInScreen-COk_kO8l.js +1 -0
- package/dist/assets/SpendManagementListViewPage-9V9u1jPF-BRyGdKFt.js +134 -0
- package/dist/assets/SpendManagementPerTabPage-COvEPq7V-BGeyAQJ7.js +754 -0
- package/dist/assets/{SpendManagementSection-DKZNTYXT-Y5i2WptS.js → SpendManagementSection-dT-N4bSQ-C4Kh22QW.js} +20 -20
- package/dist/assets/{StatementItem-Dyt5Q0eR-ge2odajX.js → StatementItem-g5tfNBjV-BibsnlRn.js} +4 -4
- package/dist/assets/StatementsPage-DaFrVUeK-COpXIOnq.js +58 -0
- package/dist/assets/{StatusSwitcher-BfQ9VbBH-B-KO1Buq.js → StatusSwitcher-CaoFw0cf-zIzs68OS.js} +5 -5
- package/dist/assets/SubTabSwitcher-zrkVj1aP-DHjajhP7.js +58 -0
- package/dist/assets/{SummaryCard-D61xzK3a-D5OwtVH7.js → SummaryCard-B9wqNSwM-D3nnkdoj.js} +1 -1
- package/dist/assets/TaskManagementPage-dAK9tl2b-DxOEeJV7.js +508 -0
- package/dist/assets/TimeRangeSwitcher-r1TNqVRb-BwLBwrfQ.js +64 -0
- package/dist/assets/TimeframeSwitcher-DHfHCTa4-B-A8y3JU.js +31 -0
- package/dist/assets/TimeframeSwitcherWithToggle-DvBvguRl-BtU2FMS5.js +31 -0
- package/dist/assets/{TopExCard-D2PRxvFc-jwp5OjNB.js → TopExCard-BUjnGDUB-Btojk3ah.js} +6 -6
- package/dist/assets/{TopExDetailPage-C0uHdU7N-D9KWDen5.js → TopExDetailPage-CNDkfc3u-B6N4DKA1.js} +15 -15
- package/dist/assets/{TransactionActivityLogPage-CqYb19tY-BvG_2MHQ.js → TransactionActivityLogPage-kSQqJVpX--4iIwA0-.js} +17 -17
- package/dist/assets/TransactionDetailPage-f7vWtXWL-WDAq0TSH.js +903 -0
- package/dist/assets/TransactionList-3-mUZOsw-DUcE4Bg8.js +153 -0
- package/dist/assets/{TransactionListBig-BrDWayQS-DsH6Jycs.js → TransactionListBig-Bx_Rm9ho-DHw-0VWf.js} +20 -20
- package/dist/assets/TransactionListPage-q6x4_jni-DQgB6nBX.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-CQQuAR6V-D21ZQKzj.js → TransactionVendorDetailPage-MjSH5hfq-BB1KeuZC.js} +6 -6
- package/dist/assets/{TransferDrawerPage-DfFm-1-3-DcsnoXjo.js → TransferDrawerPage-BayVa6po-TPzD0GjA.js} +36 -36
- package/dist/assets/TreasuryOverviewPage-CuqWmrO5-Dm7dVBUb.js +708 -0
- package/dist/assets/{TreasuryPromoPage-Dyip3H10-BFjPECcI.js → TreasuryPromoPage-BCjz1EKX-B0iczXcI.js} +131 -131
- package/dist/assets/TreasuryStatementsPage-CGr00SXF-DVQF7UJA.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-D9_qnlK4-MocugyBE.js +58 -0
- package/dist/assets/{TrendChart-fFlHCvNx--8jxSfa_.js → TrendChart-JTOG0a7B-Bjcs41DB.js} +5 -5
- package/dist/assets/TrendWithTransactions-CTJhTpAM-COrQLjb7.js +116 -0
- package/dist/assets/{UncategorizedAccountsMappingPage-BxBz2Ce0-CNPxhzU9.js → UncategorizedAccountsMappingPage-TGKYpC5A-DFFnFhBd.js} +10 -10
- package/dist/assets/{UnitIntegrationPage-gVgsk2ji-COCsJfhk.js → UnitIntegrationPage-mt2IjA5X-eXnxGxo-.js} +7 -7
- package/dist/assets/UploadAdditionalDocumentOverlay-DZfpwE5J-DWhiDViI.js +38 -0
- package/dist/assets/{Vendor2FAPopup-DRwBzOwn-DhtM-fsI.js → Vendor2FAPopup-DAOf5cJD-mVDrxb-3.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-CCOupiSZ-X7XYqk_U.js +1 -0
- package/dist/assets/VendorDetailPage-DufNphGD-mmWMGpt3.js +257 -0
- package/dist/assets/VendorDomesticWireDetailsPage-BayV34Rt-ClhCrIFs.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-8pYT3u-X-D_UDyuhP.js → VendorFiling1099EditablePage-CRnO7Ubw-CYRb__on.js} +14 -14
- package/dist/assets/VendorFirstReviewPage-DA0EL4RJ-CavJcOcs.js +730 -0
- package/dist/assets/{VendorInternationalWireDetailsPage-DJeI-ZFW-Y_m9RvHt.js → VendorInternationalWireDetailsPage-HUtNyn9Z-DucN-WAy.js} +20 -20
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-DRVMUeXi-81om_0Ih.js +1 -0
- package/dist/assets/{VendorsAccountsSection-YX2g8ETe-e-Ebd3i7.js → VendorsAccountsSection-D6Qa1zf9-ChhuAgMC.js} +2 -2
- package/dist/assets/{VerifyDevice-DeHW4GAi-BrrxSvi2.js → VerifyDevice-B6B_nk3v-FhJvFMiC.js} +9 -9
- package/dist/assets/{VideoPlayer-DxIfGrPu-DG9_29pb.js → VideoPlayer-BRAgZThr-CdNKLBM0.js} +2 -2
- package/dist/assets/{VideoPopup-CUP7ctgS-CnQZCBbO.js → VideoPopup-C_SkBI9U-BmOF4TeE.js} +3 -3
- package/dist/assets/{WarningsDrawerPage--s6b380L-BvzCi6Jk.js → WarningsDrawerPage-B3gB3wW7-B_Al2CpW.js} +10 -10
- package/dist/assets/ZeniAccountDetailPage-Dp-eo-Vq-EwaP3b0U.js +300 -0
- package/dist/assets/ZeniAccountListViewPage-S-XmAYqD-BFwkc5Zx.js +441 -0
- package/dist/assets/ZeniAccountNavBarPieces-DhjBxfEr-CmvbdhsS.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-BikXtkeH-DjpOin1U.js → ZeniAccountPromoPage-BgYCHYLO-DqD41YED.js} +23 -23
- package/dist/assets/ZeniAccountSetupPage-CvnIMdcY-BcF-rNt2.js +36 -0
- package/dist/assets/{ZeniCopyright-DDGvdmLF-447g6hlp.js → ZeniCopyright-BlLvlGZV-FpsBBUu8.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Cdg0TlHk-DPnsENMy.js → ZeniTransferAmountSlider-BNYgPwHs-Bjfhzv90.js} +4 -4
- package/dist/assets/{add-to-wallet-DgdBD8_G-Tvhq1Gb8.js → add-to-wallet-DgdBD8_G-CiWKe3pw.js} +1 -1
- package/dist/assets/{analytics-BSh5cBTM.js → analytics-Dmyyfi9O.js} +1 -1
- package/dist/assets/{analyticsHelper-D9xdJK4b-DdFbzSx8.js → analyticsHelper-CYr5V2MV-D-hMRpr3.js} +1 -1
- package/dist/assets/{analyticsHelper-DOE_CVQ_.js → analyticsHelper-fNnGbi4W.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-D9NhRqZJ.js → arrow-south-east-round-PEovUgvH-odM3_tAX.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-Bd8ltJD0.js → auto-transfer-rule-mbafm5D3-YYpYw6PW.js} +1 -1
- package/dist/assets/chartTypes-40RenddT-DZcmdGKn.js +1 -0
- package/dist/assets/commonDimensions-BMnB1-xU-QqtoTCOP.js +1 -0
- package/dist/assets/{commonTypes-BAJPaPYg-ZRT2EIAq.js → commonTypes-DsWS6Ccc-cGR0O9Jz.js} +1 -1
- package/dist/assets/{constants-Ca2l-eSK.js → constants-CL2zzW6O.js} +1 -1
- package/dist/assets/{core-BBKQkJb7.js → core-CuilwggZ.js} +2 -2
- package/dist/assets/{dash.all.min-DzQe-Q97.js → dash.all.min-BQNcgKZW.js} +1 -1
- package/dist/assets/detailCommon-CrcyqWtZ-D8Fb1SL4.js +38 -0
- package/dist/assets/downloadPdf-CUUx8PWn-2rBn8EvK.js +1 -0
- package/dist/assets/{empty-CvQ9mfdA.js → empty-Br0K9kol.js} +1 -1
- package/dist/assets/{empty-BAhHXN-J.js → empty-CEDPaJOT.js} +1 -1
- package/dist/assets/epic-C2KVDXXW.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-DeI78FXp.js → gift-box-Cmt9OgIZ-Ka06cghW.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-l3Wpg2uF.js → graphic-no-data-l-DU4J8fDt-6m6GIu0k.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-Dyry9S3b.js → graphic-no-data-net-burn-l-CzmycA0m-XhfY9lsK.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-CAcdkk5J.js → handshake-BPg58FML-Sg0ioDB8.js} +1 -1
- package/dist/assets/{helper-z5-P4a-y-BjC38EFp.js → helper-BMiMbXMj-RteEmtlv.js} +5 -5
- package/dist/assets/{index-Co5CHcL-.js → index-BdeZI4Mn.js} +1 -1
- package/dist/assets/{index-C2tYLV1-.js → index-ChqRS7At.js} +1 -1
- package/dist/assets/{index-CbQy18LL.js → index-Cwdqq_eD.js} +1 -1
- package/dist/assets/{index-Di0PzFTw.js → index-D3ZUUMU-.js} +1 -1
- package/dist/assets/{index-D1n9iNXR.js → index-Dvsx2dcd.js} +1 -1
- package/dist/assets/{index-DmJDLobC.js → index-DyBrELD_.js} +5042 -5056
- package/dist/assets/{index-BSFE83ps.js → index-HP0uFTr8.js} +1 -1
- package/dist/assets/{lexical-CC2d_kE2.js → lexical-BV3aGUzT.js} +1 -1
- package/dist/assets/{liveblocks-D1Gf9COF.js → liveblocks-VMOu1QaQ.js} +15 -15
- package/dist/assets/{lottie-B-DVrXwa.js → lottie-DcZDexOB.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DGnyXKBT-BH_N7X7z.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-dsBogxKz-4f0Ul0l4.js → mapSectionWithAcOnlyToTreeNode-BkPRWtaj-D46Qw3f-.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-CvGdU9Ma-DBOtPgCK.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-BCOsOvxo-D8jx_1hw.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DIqYP3NK-D7yaFV5m.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-LJEHXizn.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-4i_2kpdQ.js} +1 -1
- package/dist/assets/{mui-Bgk_7_3h.js → mui-D3hEqMLm.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-DpTi0lr5.js → page-detail-CWX5S47F-D-m40EVy.js} +1 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-DvZGh4g5.js +4 -0
- package/dist/assets/{radio-default-CiSgisfh-Dt6ezU-k.js → radio-default-CiSgisfh-eAbgY-Yj.js} +1 -1
- package/dist/assets/{react-Cz3x_Ojh.js → react-C1gXLOT-.js} +2 -2
- package/dist/assets/{react-vKhkI9QX.js → react-CEbGSPpW.js} +1 -1
- package/dist/assets/{react-8rwwNA9S.js → react-CMq4HMxB.js} +1 -1
- package/dist/assets/{react-Dfxv8P4v.js → react-CTpij_Bh.js} +1 -1
- package/dist/assets/{react-DwGR9wjl.js → react-CqeqecYS.js} +1 -1
- package/dist/assets/{react-0s0M_CAb.js → react-DI8vxsp0.js} +1 -1
- package/dist/assets/{react-TtlD7S5U.js → react-Drm5UQxC.js} +3 -3
- package/dist/assets/{react-93CibPtS.js → react-Y6e5YCHa.js} +1 -1
- package/dist/assets/{recharts-DQ94kkTy.js → recharts-Bs6FfRQK.js} +36 -36
- package/dist/assets/{sentry-L3H0lnBS.js → sentry-BV4jcjA3.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-BeXfYuLC.js → shield-DOlUxcFf-FCvOtDWd.js} +1 -1
- package/dist/assets/toCOABalancesWithID-DkMGvlEt-BQrLH-Nz.js +1 -0
- package/dist/assets/toChartData-C6s-eBzE-DCXAm4rQ.js +1 -0
- package/dist/assets/{uploadAttachment-DJA30WSD-Ce-ZEqY3.js → uploadAttachment-BlLqRIXe-B5ch9itw.js} +32 -32
- package/dist/assets/uploadReceipts-Dge0cNF1-Bo0yI6m6.js +1 -0
- package/dist/assets/{url-CVUNFFPg.js → url-BkyzSFLl.js} +1 -1
- package/dist/assets/{url-3bnwMjsG.js → url-MntlJyPp.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-rqfVb6ME.js → useLongPress-GCK2COYQ-Dwfp0CDv.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-J8zgXRmN.js → usp-line-BBd1wKwW-Ccl_yhhe.js} +1 -1
- package/dist/assets/{utils-WSIc2RtD.js → utils-AGDkxX5e.js} +1 -1
- package/dist/assets/{zeni-epic-state-B9Z2lD6g.js → zeni-epic-state-wSe7lDM8.js} +6 -6
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-BShpKoIj-CW1imKMz.js +0 -21
- package/dist/assets/AccountInfoPage-B8upbXj9-Dtz8WQyO.js +0 -18
- package/dist/assets/AccountRow-BrW_eEjE-DlgTvuFF.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-riOPLnxb-4wUmSook.js +0 -6
- package/dist/assets/ApAgingDetailPage-Z5JgfH-e-BCqAdteh.js +0 -46
- package/dist/assets/AppBasePage-B5sDynhi-CUXe21st.js +0 -71
- package/dist/assets/AppDrawerContent-D9Q8ir0T-CV--mref.js +0 -92
- package/dist/assets/ApprovalRulesSettingsPage-DVGvJsQG-COBJqCxP.js +0 -47
- package/dist/assets/ArAgingDetailPage-B5vqkc3v-DkiCuj_D.js +0 -46
- package/dist/assets/BalancesInsightWithToolTip-tiQUQUbX-C4adSAUq.js +0 -38
- package/dist/assets/BillDetailPage-pt1k5AQf-BjT4Ihsm.js +0 -266
- package/dist/assets/BillPayPromoPage-Dgpz2TLG-RoPtYKEQ.js +0 -84
- package/dist/assets/CardNumberSubText-CcH9jUoZ-mqNKBu9B.js +0 -21
- package/dist/assets/ChargeCardPromoPage-Cz3rNFwM-D_0OzJRZ.js +0 -222
- package/dist/assets/CollapsableReportTable-h0vIfI8o-D3Pt-4FZ.js +0 -2982
- package/dist/assets/ConfettiBurst-duD341Gp-CRM9LgmA.js +0 -1
- package/dist/assets/CurrencySelectField-B8EoF2aF-GOW4qR7m.js +0 -139
- package/dist/assets/CustomerOnboardingContainerPage-DVL4s-eV-BLPiI0Mv.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-Br0jy7Pu-ChmYYCLk.js +0 -66
- package/dist/assets/DashboardSidebarBackgroundAnimation-B3dtVAe2-B6yGX6Ah.js +0 -12
- package/dist/assets/DepositAccTransactionItem-YuSXjbLh-C2vDDOod.js +0 -76
- package/dist/assets/DepositAccTransactionListPage-C-FAvZwD-BbAq4nWD.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-BaiSpc0N-DnjTEbYw.js +0 -21
- package/dist/assets/DownloadOverlay-BpRKCn-0-CHKRQCgV.js +0 -439
- package/dist/assets/EditPeoplePage-8DalSMWH-Ckh9exV5.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-CC2BjMkR-CV9Xwg25.js +0 -865
- package/dist/assets/EntityDetailPage-fmWuxHTZ-DJDbCj57.js +0 -18
- package/dist/assets/ExpenseAutomationPage-4LJefgNh-isL_Jc14.js +0 -3015
- package/dist/assets/GlobalReviewListPage-VRq_gimm-BJViyoax.js +0 -291
- package/dist/assets/InsightsSection-ByFf2oGn-v8_DJRM0.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-Cr3sDrT--DP2ZfrSL.js +0 -65
- package/dist/assets/InvitePeoplePage-BT_YVCP4-CgT1m3Z3.js +0 -12
- package/dist/assets/InvoiceUploadSection-Dg1-uunA-CW2z21hh.js +0 -140
- package/dist/assets/LabeledAddressValueField-F9kvUR_r--rBMYRFp.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-BgC8y0D6-BL02IYWO.js +0 -16
- package/dist/assets/LabeledDocumentField-rriEcsdr-DuJ2zUxk.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-DoVSg3nZ-k-dWGYUh.js +0 -59
- package/dist/assets/LowBalancePopup-C2vHKMNF-bdPNLfbg.js +0 -34
- package/dist/assets/MagicLinkACHDetailsPage-lAAwAtH7-Ck-bBlpT.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-cv823ASo-o8N9E1Vn.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-B1LBYM2F-6icyR0Uu.js +0 -31
- package/dist/assets/MailingDetailsSection-9_XLl4bT-aum9pUe4.js +0 -21
- package/dist/assets/MyPendingActivationChargeCardListPage-n71n40uQ-Dl2qH7gb.js +0 -6
- package/dist/assets/MyProfileSettingsPage-BUMIjZYc-Bnuq---Y.js +0 -85
- package/dist/assets/NotificationsListConfig-CylnViXd-BsFR_NcM.js +0 -1
- package/dist/assets/NotificationsPage-D41h0mS6-Bb6S9Jk3.js +0 -685
- package/dist/assets/OpExByVendorPage-BV_uJSCh-DSWgiZdt.js +0 -100
- package/dist/assets/PandLWithForecastPage-Cj3UWjG4-Daok_AzA.js +0 -123
- package/dist/assets/PeoplePage-DcGqWtAP-DkPagYKu.js +0 -727
- package/dist/assets/ReimbursementDetailPage-B1o8ea57-DRCLvjWj.js +0 -314
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DwgKrhlQ-qH0UNUqD.js +0 -1
- package/dist/assets/ReportTableViewSelector-Ig41fOPb-CLRRGAhe.js +0 -151
- package/dist/assets/ReportsPage-CRAVAUTO-Cw7xKvAS.js +0 -269
- package/dist/assets/RoleWithToolTip-x2rnvWn9-Decoe-vI.js +0 -22
- package/dist/assets/ScheduleDetailsFixedAssetsPage-D_Cls2jC-BwmKM1Tl.js +0 -37
- package/dist/assets/ScheduleDetailsPage-DmSLuM8g-DYOZWouJ.js +0 -37
- package/dist/assets/ScheduleSequenceTable-js9_P_Lo-CzCZ3H3Q.js +0 -326
- package/dist/assets/SignIn-CUJkZb3S-BQ5cYlKz.js +0 -491
- package/dist/assets/SignInScreen-BxnvlP3D.js +0 -1
- package/dist/assets/SpendManagementListViewPage-BieufnDb-DsSgx26K.js +0 -134
- package/dist/assets/SpendManagementPerTabPage-BmUp80QX-_fIZmx1n.js +0 -754
- package/dist/assets/StatementsPage-CbtnJM5y-D7odQb22.js +0 -58
- package/dist/assets/SubTabSwitcher-CzGiuhk3-BJdsqPl7.js +0 -58
- package/dist/assets/TaskManagementPage-ucVAdv7x-DzPLVMfi.js +0 -508
- package/dist/assets/TimeRangeSwitcher-C3jXm39I-pg9s0UqV.js +0 -64
- package/dist/assets/TimeframeSwitcher-CcYg-YQJ-B8uZpFtx.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-w4YJno-p-B2pTF6KS.js +0 -53
- package/dist/assets/TransactionDetailPage-D-NR_yZG-DLNp0Ym3.js +0 -921
- package/dist/assets/TransactionList-f6yB-byH-BeXigMDL.js +0 -157
- package/dist/assets/TransactionListPage-C-Z62y2d-BZTkx2mc.js +0 -35
- package/dist/assets/TreasuryOverviewPage-CKSanlUG-CsJ07wXK.js +0 -725
- package/dist/assets/TreasuryStatementsPage-mljf2Van-CKwUR6NQ.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-D3cV3a-8-L4BwstYA.js +0 -58
- package/dist/assets/TrendWithTransactions-It4KDov3-uJUU6y8f.js +0 -116
- package/dist/assets/UploadAdditionalDocumentOverlay-C5m8jqup-S0ohEV34.js +0 -38
- package/dist/assets/VendorACHDetailsPage-By2Ya2bv-q_tye6Vo.js +0 -1
- package/dist/assets/VendorDetailPage-jci1LqX3-BiOnbd3f.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-uIDE-n5v-CXJb5J3y.js +0 -1
- package/dist/assets/VendorFirstReviewPage-CafakxA1-DLht7hvz.js +0 -730
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-Co-5nTam-2AgQI36C.js +0 -1
- package/dist/assets/ZeniAccountDetailPage-7NdkdSg3-CzyDTlLy.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-B-cs_xnc-CitANkcs.js +0 -443
- package/dist/assets/ZeniAccountNavBarPieces-CjRip0v9-fqy5uhYF.js +0 -33
- package/dist/assets/ZeniAccountSetupPage-BRBsijVt-CVgD2Uf6.js +0 -36
- package/dist/assets/chartTypes-Dq3hUz_T-CZIhQYGg.js +0 -1
- package/dist/assets/commonDimensions-CGHIQ2To-ChTwXt2F.js +0 -1
- package/dist/assets/downloadPdf-BI2Y41h2-CJxUrMkc.js +0 -1
- package/dist/assets/epic-DPl_yeEQ.js +0 -2
- package/dist/assets/mapLoadingInProgressToTreeNode-DrC2Zs2y-BjsjwyTG.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-DMDEaLzQ-V5HoG67-.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CW_wzI5T-DDDj-Taw.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DvfKBCs5-BZ6MszHu.js +0 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-BeWHMcNi.js +0 -3
- package/dist/assets/toCOABalancesWithID-P7keEtAg-CKsrAJNb.js +0 -1
- package/dist/assets/toChartData-BUf5HHim-DU5WiVJh.js +0 -1
- package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-N655yXJS.js +0 -1
- package/dist/assets/uploadReceipts-CqDftTRt-DXWV7iem.js +0 -1
|
@@ -0,0 +1,2844 @@
|
|
|
1
|
+
import{V as t,b5 as vo,aR as m,bP as pe,aP as U,dn as $o,o as s,p as Z,aS as bn,J as O,aF as kn,az as Lo,dp as jn,dq as Ao,O as B,u as w,dr as Jn,ds as Nt,dt as It,cd as Pt,du as Ft,y as V,d3 as zt,ax as Xn,ab as Ze,dv as Me,bR as H,T as Bo,d as ce,aX as $,b1 as Qn,dw as Zn,ao as Le,dx as Wo,dy as le,cc as Tt,c1 as Sn,aj as Oo,an as we,dz as et,dA as Ae,dB as nt,am as _,ck as ne,dC as Mo,b as Vt,dD as Re,dE as Cn,dF as _n,dG as No,dH as Io,bb as ei,aY as T,b8 as Po,cB as Dt,cA as Gt,dI as Fo,b9 as ti,cE as ni,bT as zo,dJ as To,dK as vn,dL as $n,dM as Vo,dN as Do,bV as Go,bM as Ro,dO as Eo}from"./index-DyBrELD_.js";import{n as a,c as P}from"./mui-D3hEqMLm.js";import{a as N,P as Ho}from"./sentry-BV4jcjA3.js";import{FL as Rt,Gf as Et,Gg as Ne,Gh as Ht,Gi as Kt,Gj as Yt,Gk as Ut,Gl as ii,Gm as Ko,FY as xt,FM as Ie,bm as Ln,bg as oi,Gn as ri,Go as Yo,bo as Uo,FZ as ai}from"./zeni-epic-state-wSe7lDM8.js";import{N as it,D as qo,R as Jo,B as ye,u as v}from"./AccountRow-CpftykFx-bzN_3qh3.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]="64962d25-f8d3-4509-97f2-9c66c8ed8d72",e._sentryDebugIdIdentifier="sentry-dbid-64962d25-f8d3-4509-97f2-9c66c8ed8d72")}catch{}})();function q(e,n){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function X(e){return U("0,0",e?.forecast)}function li(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function jt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function se(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return pe("0.00%",Math.floor(n*100)/100)}else return pe("0.00%",void 0)}function de(e){if(e!=null&&e.forecast!=null){const n=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:n}))}else return U("0,0",null)}function ci(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const n=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return pe("0.00%",Math.floor(n*100)/100)}else return pe("0.00%",void 0)}function si(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:n}))}else return U("0,0",null)}const Pe=(e,n,i)=>{const{startDate:o,balanceType:r}=n,{dateFormat:{visual:l}}=B.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${xt(o,l.MMMYYYYFormat,e)}`:mt(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${B.getLocalizedStrings().reports.quarterPrefix}${xt(o,l.QYYYYformat,e)}`:mt(r,i);case"year":return r==="default"||r==="default_with_percent"?`${xt(o,l.YYYYformat,e)}`:mt(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function mt(e,n){return B.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const wp=(e,n,i)=>{const o=n.length==0?e:`${e}_${n.join("_")}`;return i!=null&&i.trim().length>0?`${o}_${i}`:`${o}_${$o(10)}`},Xo=a.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex: 1 1 auto;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: ${e=>e.heightValue}px;
|
|
6
|
+
justify-content: flex-start;
|
|
7
|
+
align-items: center;
|
|
8
|
+
padding-right: ${v.wrapperPadding}px;
|
|
9
|
+
`,Qo=a.div`
|
|
10
|
+
cursor: default;
|
|
11
|
+
user-select: none;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex: 1 1 auto;
|
|
14
|
+
flex-flow: row;
|
|
15
|
+
justify-content: flex-start;
|
|
16
|
+
align-items: center;
|
|
17
|
+
`,Zo=a.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: flex-start;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: ${s.sp2};
|
|
22
|
+
width: ${v.leftHeadingWidth}px;
|
|
23
|
+
`,er=a.div`
|
|
24
|
+
display: flex;
|
|
25
|
+
flex: 1 1 auto;
|
|
26
|
+
justify-content: flex-end;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: ${s.sp4};
|
|
29
|
+
`,tr=a(ne)`
|
|
30
|
+
width: ${v.bankBalanceWidth}px;
|
|
31
|
+
min-width: ${v.bankBalanceWidth}px;
|
|
32
|
+
text-align: right;
|
|
33
|
+
`,nr=a(ne)`
|
|
34
|
+
width: ${v.clearedBalanceWidth}px;
|
|
35
|
+
min-width: ${v.clearedBalanceWidth}px;
|
|
36
|
+
text-align: right;
|
|
37
|
+
`,ir=a(ne)`
|
|
38
|
+
width: ${v.statusWidth}px;
|
|
39
|
+
min-width: ${v.statusWidth}px;
|
|
40
|
+
`,or=a.div`
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-shrink: 0;
|
|
43
|
+
gap: ${s.sp3};
|
|
44
|
+
width: ${v.varianceWidth}px;
|
|
45
|
+
min-width: ${v.varianceWidth}px;
|
|
46
|
+
flex-direction: row;
|
|
47
|
+
justify-content: flex-end;
|
|
48
|
+
align-items: center;
|
|
49
|
+
text-align: center;
|
|
50
|
+
`,rr=a.div`
|
|
51
|
+
width: ${v.variancePercentageWidth}px;
|
|
52
|
+
min-width: ${v.variancePercentageWidth}px;
|
|
53
|
+
text-align: right;
|
|
54
|
+
margin-right: ${s.sp2};
|
|
55
|
+
`,ar=a.div`
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
align-items: center;
|
|
59
|
+
`,lr=a.div`
|
|
60
|
+
display: flex;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
align-items: center;
|
|
63
|
+
`;function cr({height:e}){const n=O();return t.jsx(Xo,{heightValue:e,windowSize:n,children:t.jsxs(Qo,{children:[t.jsxs(Zo,{children:[t.jsx(ar,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,maxWidth:s.sp4,width:s.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(lr,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:v.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(er,{children:[t.jsx(tr,{children:t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:v.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(nr,{children:t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:v.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(or,{children:[t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:v.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(rr,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:v.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(ir,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:v.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const sr=a.div`
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: row;
|
|
66
|
+
height: ${e=>e.heightValue}px;
|
|
67
|
+
padding-right: ${v.wrapperPadding}px;
|
|
68
|
+
`;function dr({height:e}){return t.jsx(sr,{heightValue:e})}const hr=a.div`
|
|
69
|
+
user-select: none;
|
|
70
|
+
display: flex;
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: ${e=>e.height}px;
|
|
73
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
padding-right: ${v.wrapperPadding}px;
|
|
76
|
+
`,ur=a.div`
|
|
77
|
+
flex: 1 1 auto;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
height: ${s.sp8};
|
|
81
|
+
justify-content: flex-start;
|
|
82
|
+
align-items: center;
|
|
83
|
+
`,gr=a.div`
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: row;
|
|
86
|
+
justify-content: flex-end;
|
|
87
|
+
width: ${v.leftHeadingWidth}px;
|
|
88
|
+
`,pr=a.div`
|
|
89
|
+
display: flex;
|
|
90
|
+
flex: 1 1 auto;
|
|
91
|
+
flex-direction: row;
|
|
92
|
+
justify-content: flex-end;
|
|
93
|
+
`,fr=a(ti)`
|
|
94
|
+
user-select: none;
|
|
95
|
+
color: ${e=>e.theme.colors.primary};
|
|
96
|
+
width: ${v.leftTimeframeWidth}px;
|
|
97
|
+
min-width: ${v.leftTimeframeWidth}px;
|
|
98
|
+
flex: 1 1 auto;
|
|
99
|
+
`,xr=a(_)`
|
|
100
|
+
user-select: none;
|
|
101
|
+
`,mr=a.div`
|
|
102
|
+
max-height: ${s.sp8};
|
|
103
|
+
min-height: ${s.sp8};
|
|
104
|
+
min-width: ${e=>e.widthValue}px;
|
|
105
|
+
max-width: ${e=>e.widthValue}px;
|
|
106
|
+
display: flex;
|
|
107
|
+
justify-content: center;
|
|
108
|
+
align-items: center;
|
|
109
|
+
background-color: ${e=>e.theme.colors.background};
|
|
110
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
111
|
+
border-radius: ${s.sp2};
|
|
112
|
+
color: ${e=>e.theme.colors.primary};
|
|
113
|
+
margin-right: ${e=>e.marginRight===!0?s.sp2:s.sp0};
|
|
114
|
+
`,wr=a.div`
|
|
115
|
+
width: ${v.bankBalanceWidth}px;
|
|
116
|
+
`,yr=a.div`
|
|
117
|
+
width: ${v.bankBalanceRightTimeframeWidth}px;
|
|
118
|
+
`,br=a.div`
|
|
119
|
+
width: ${v.clearedBalanceWidth}px;
|
|
120
|
+
margin-right: ${v.tickLeftMargin}px;
|
|
121
|
+
`,kr=a.div`
|
|
122
|
+
width: ${v.varianceTimeframeWidth}px;
|
|
123
|
+
align-self: flex-end;
|
|
124
|
+
`,jr=a.div`
|
|
125
|
+
width: ${v.spacerLineWidth}px;
|
|
126
|
+
`,Sr=a.div`
|
|
127
|
+
width: ${v.statusWidth}px;
|
|
128
|
+
`,Ee=({title:e,type:n})=>t.jsx(mr,{widthValue:v[n],children:t.jsx(xr,{children:e})});function Cr({sectionTitle:e,height:n,isLoading:i}){const o=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(hr,{height:n,children:t.jsxs(ur,{children:[t.jsx(gr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp4,width:v.leftLabelWidth},children:t.jsx(fr,{"data-testid":m("account-recon-section-title",e),children:e})})}),t.jsxs(pr,{children:[t.jsx(wr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.bankBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ee,{title:o.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(yr,{}),t.jsx(br,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.clearedBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ee,{title:o.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(kr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.varianceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ee,{title:o.variance,type:"varianceTimeframeWidth"})})}),t.jsx(jr,{}),t.jsx(Sr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.statusTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ee,{title:o.status,type:"statusTimeframeWidth"})})})]})]})})}const _r=a.div`
|
|
129
|
+
display: flex;
|
|
130
|
+
flex-direction: row;
|
|
131
|
+
height: ${e=>e.heightValue}px;
|
|
132
|
+
align-items: center;
|
|
133
|
+
padding-right: ${v.wrapperPadding}px;
|
|
134
|
+
`,vr=a(ti)`
|
|
135
|
+
user-select: none;
|
|
136
|
+
color: ${e=>e.theme.colors.primary};
|
|
137
|
+
`;function $r({height:e,title:n}){return t.jsx(_r,{heightValue:e,children:t.jsx(vr,{"data-testid":m("account-recon-section-title",n),children:n})})}const Lr=a.div`
|
|
138
|
+
display: flex;
|
|
139
|
+
flex: 1 1 auto;
|
|
140
|
+
width: 100%;
|
|
141
|
+
height: ${e=>e.heightValue}px;
|
|
142
|
+
justify-content: flex-start;
|
|
143
|
+
align-items: center;
|
|
144
|
+
padding-right: ${v.wrapperPadding}px;
|
|
145
|
+
`,Ar=a.div`
|
|
146
|
+
cursor: default;
|
|
147
|
+
user-select: none;
|
|
148
|
+
display: flex;
|
|
149
|
+
flex: 1 1 auto;
|
|
150
|
+
flex-flow: row;
|
|
151
|
+
justify-content: flex-start;
|
|
152
|
+
align-items: center;
|
|
153
|
+
color: ${e=>e.theme.colors.primary};
|
|
154
|
+
`,Br=a.div`
|
|
155
|
+
display: flex;
|
|
156
|
+
flex: 1 1 auto;
|
|
157
|
+
justify-content: flex-start;
|
|
158
|
+
align-items: center;
|
|
159
|
+
gap: ${s.sp2};
|
|
160
|
+
`,Wr=a(ne)`
|
|
161
|
+
user-select: none;
|
|
162
|
+
clear: both;
|
|
163
|
+
display: inline-block;
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
white-space: nowrap;
|
|
166
|
+
text-overflow: ellipsis;
|
|
167
|
+
text-align: left;
|
|
168
|
+
color: ${e=>e.theme.colors.primary};
|
|
169
|
+
width: ${v.leftLabelWidth}px;
|
|
170
|
+
min-width: ${v.leftLabelWidth}px;
|
|
171
|
+
`,Or=a.div`
|
|
172
|
+
display: flex;
|
|
173
|
+
flex: 1 1 auto;
|
|
174
|
+
justify-content: flex-end;
|
|
175
|
+
align-items: center;
|
|
176
|
+
`,Mr=a(ne)`
|
|
177
|
+
width: ${v.bankBalanceWidth}px;
|
|
178
|
+
min-width: ${v.bankBalanceWidth}px;
|
|
179
|
+
text-align: right;
|
|
180
|
+
`,Nr=a(ne)`
|
|
181
|
+
width: ${v.clearedBalanceWidth}px;
|
|
182
|
+
min-width: ${v.clearedBalanceWidth}px;
|
|
183
|
+
text-align: right;
|
|
184
|
+
margin-left: ${v.tickLeftMargin}px;
|
|
185
|
+
`,Ir=a(ne)`
|
|
186
|
+
width: ${v.statusWidth}px;
|
|
187
|
+
min-width: ${v.statusWidth}px;
|
|
188
|
+
height: 1px;
|
|
189
|
+
`,Pr=a.div`
|
|
190
|
+
display: flex;
|
|
191
|
+
flex-direction: row;
|
|
192
|
+
min-width: ${v.spacerLineWidth}px;
|
|
193
|
+
width: ${v.spacerLineWidth}px;
|
|
194
|
+
align-items: center;
|
|
195
|
+
`,Fr=a.div`
|
|
196
|
+
width: 1px;
|
|
197
|
+
margin-left: ${s.sp3};
|
|
198
|
+
height: ${e=>e.heightValue}px;
|
|
199
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
200
|
+
`,zr=a.div`
|
|
201
|
+
display: flex;
|
|
202
|
+
flex-shrink: 0;
|
|
203
|
+
width: ${v.varianceTimeframeWidth}px;
|
|
204
|
+
min-width: ${v.varianceTimeframeWidth}px;
|
|
205
|
+
flex-direction: row;
|
|
206
|
+
justify-content: flex-end;
|
|
207
|
+
align-items: center;
|
|
208
|
+
text-align: center;
|
|
209
|
+
margin-left: ${v.tickLeftMargin}px;
|
|
210
|
+
`,Tr=a(ne)`
|
|
211
|
+
border-radius: ${s.sp1};
|
|
212
|
+
color: ${e=>e.textColor.hex()};
|
|
213
|
+
min-width: ${v.varianceNumberWidth}px;
|
|
214
|
+
text-align: right;
|
|
215
|
+
margin-right: ${s.sp2};
|
|
216
|
+
`,Vr=a(ne)`
|
|
217
|
+
border-radius: ${s.sp1};
|
|
218
|
+
padding: ${s.sp0} ${s.sp1};
|
|
219
|
+
justify-content: center;
|
|
220
|
+
text-align: center;
|
|
221
|
+
color: ${e=>e.textColor.hex()};
|
|
222
|
+
background-color: ${e=>e.bgColor.hex()};
|
|
223
|
+
min-width: ${v.variancePercentageWidth}px;
|
|
224
|
+
`,{expenseAutomation:{accountRecon:{reconciliation:{headers:An}}},common:{strings:{percentage:Dr,hyphen:tt}}}=B.getLocalizedStrings();function Gr({height:e,sectionData:n}){const i=O(),o=n.totalVariance,r=n.totalVariancePercentage,l=ce();return t.jsx(Lr,{"data-testid":m("total-row-root-container"),heightValue:e,windowSize:i,children:t.jsxs(Ar,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsxs(Br,{children:[t.jsx(ye,{firstLetter:An.section[n.sectionId].subTitle.charAt(0),color:new $(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(Wr,{children:An.section[n.sectionId].subTitle})]}),t.jsxs(Or,{children:[t.jsx(Mr,{children:n.totalBankBalance!=null?U("0,0",n.totalBankBalance):tt}),t.jsx(Nr,{children:n.totalClearedBalance!=null?U("0,0",n.totalClearedBalance):tt}),t.jsx(Rr,{variance:o,variancePercentage:r}),t.jsx(Pr,{children:t.jsx(Fr,{heightValue:e})}),t.jsx(Ir,{})]})]})})}const Rr=({variance:e,variancePercentage:n})=>{const i=ce(),o=new $(i.colors.hero),r=new $(i.colors.hero),l=new $(i.colors.background),c=e!=null&&e.amount===0?"0%":n!=null?n===0?"0%":`${n.toFixed(2)}${Dr}`:tt;return t.jsxs(zr,{children:[t.jsx(Tr,{textColor:o,children:e!=null?U("0,0",e):tt}),t.jsx(Vr,{textColor:r,bgColor:l,children:c})]})};function Er(){return t.jsx(dr,{height:it("section")})}function Hr(){return t.jsx(cr,{height:it("loading_in_progress")})}function Kr(e,n){if(e.element.kind!=="timeframe_headers")return null;const i=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,o=e.element.data,r=o.accountIDs.length===0;return t.jsx(Cr,{sectionTitle:i.section[o.sectionId].title,isLoading:r,isSticky:n,height:it("timeframe_headers")})}const Yr=(e,n,i)=>{const o=e.element.data;return t.jsx(Gr,{isSticky:i,height:n,sectionData:o})},Ur=(e,n)=>{const i=e.element.data,o=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx($r,{height:n,title:o.section[i.sectionId].title})},qr=(e,n,i)=>{const o=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?o.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(Jo,{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:s.sp4,balanceHeightInPx:w[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:s.sp4,balanceLeftMarginInPx:w[4],titleWidth:new V(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128};function Jr(e){switch(e){case"section":return w[8];case"section_with_ac_only":return w[8];case"calculated_section":case"calculated_section_type1":return w[8];case"ac_group_report":case"ac_group_subaccount":return w[6];case"ac_subentity_total":case"ac_subaccount":case"ac_report":return w[6];case"title_string_only":case"total":return w[6];case"timeframe_headers":case"headers_loading_in_progress":return w[11];case"timeframe_headers_with_forecast":return 98;case"loading_in_progress":case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function Xr(e,n,i=0){const o=["summary"];switch(e){case"section":return!o.includes(n);case"section_with_ac_only":return!o.includes(n);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(o.includes(n)||n==="detailed"&&i>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(o.includes(n)||n==="detailed"&&i>0);case"title_string_only":return!o.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(n==="detailed"&&i>0);case"checkbox_and_name_only":return!0;default:return!1}}const ge=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!0}},fe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},di={emptyLeftContainer:new V(w[0],w[5])},Qr=a(_)`
|
|
225
|
+
margin-left: ${e=>!e.hasChildren&&e.depth!==0?s.sp3:s.sp2};
|
|
226
|
+
overflow: hidden;
|
|
227
|
+
white-space: nowrap;
|
|
228
|
+
text-overflow: ellipsis;
|
|
229
|
+
width: ${e=>k.titleWidth.value(e.windowSize)-(e.depth+1)*45}px;
|
|
230
|
+
`,Zr=a.div`
|
|
231
|
+
display: flex;
|
|
232
|
+
height: ${s.sp6};
|
|
233
|
+
align-items: center;
|
|
234
|
+
`,ea=a.div`
|
|
235
|
+
display: flex;
|
|
236
|
+
height: ${s.sp6};
|
|
237
|
+
align-items: center;
|
|
238
|
+
`,ta=a.div`
|
|
239
|
+
height: ${s.sp6};
|
|
240
|
+
width: ${s.sp3};
|
|
241
|
+
`,na=a.div`
|
|
242
|
+
width: 14px;
|
|
243
|
+
height: ${s.sp1};
|
|
244
|
+
`,ia=a.div`
|
|
245
|
+
width: ${s.sp2};
|
|
246
|
+
height: ${s.sp1};
|
|
247
|
+
`,hi=a.div`
|
|
248
|
+
width: ${e=>di.emptyLeftContainer.valuePx(e.windowSize)};
|
|
249
|
+
height: ${s.sp1};
|
|
250
|
+
`,Be=a.div`
|
|
251
|
+
display: flex;
|
|
252
|
+
`,oa=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return t.jsxs(Be,{children:[r.depth===0?t.jsx(_n,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}):null,r.depth>=1?t.jsx(_n,{depth:r.depth}):null]},i+o)}):null}),ui=({ancestorMetadata:e,depth:n,name:i})=>{const o=O();return n===0?e[n].hasChildren===!1?t.jsx(hi,{windowSize:o}):t.jsxs(Be,{children:[t.jsx(Re,{depth:n}),t.jsx(Ae,{}),t.jsx(Re,{depth:n+1})]}):t.jsxs(t.Fragment,{children:[[...Array(n+1).keys()].map(r=>{const l=e[r],c=r!==n?e[r+1]:void 0;return t.jsxs(Be,{children:[l.depth===0?t.jsx(Re,{depth:l.depth}):null,r>=2||r===1&&(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?n===1?t.jsx(Cn,{index:1}):t.jsx(Cn,{index:2}):null,(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?t.jsx(Ae,{},r):t.jsx(nt,{}),t.jsx(Re,{depth:l.depth+1})]},i+r)}),n===1&&e[n].hasChildren!=!0?t.jsx(ia,{}):null]})},gi=({ancestorMetadata:e,depth:n,name:i})=>n===0?t.jsx(na,{}):t.jsx(t.Fragment,{children:[...Array(n).keys()].map(o=>{const r=e[o],l=o!==n?e[o+1]:void 0;return t.jsxs(Be,{children:[r!=null&&r.depth===0?t.jsx(et,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}),t.jsx(et,{depth:r!=null?r.depth+1:0})]},i+o)})}),ra=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return r==null?null:t.jsxs(Be,{children:[r.depth===0?t.jsx(et,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}):null,r.depth>=1?t.jsx(et,{depth:r.depth}):null]},i+o)}):null}),aa=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>{let d=t.jsx(ta,{});return e===0&&r&&(d=t.jsx(To,{collapsed:l,onIconClick:c})),e>0&&(r&&!o&&n&&(d=t.jsx(vn,{collapsed:l,onIconClick:c})),i&&o&&n&&(d=t.jsx($n,{})),i&&o&&!n&&(d=t.jsx(Vo,{})),r&&o&&!n&&(d=t.jsx(Do,{collapsed:l,onIconClick:c})),r&&o&&n&&(d=t.jsx(vn,{collapsed:l,onIconClick:c})),n&&i&&(d=t.jsx($n,{}))),d},la=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>t.jsx(ea,{children:t.jsx(aa,{depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})});function pi(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const i=O();return t.jsxs(Zr,{children:[e.classDepth!=null?t.jsx(ui,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(hi,{windowSize:i}):null,t.jsx(ra,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(la,{...e}),t.jsx(Qr,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:i,title:n,children:n})]})}const R={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,325,405),nameLogoWidth:new V(w[4],w[4]),nameLogoHeight:new V(w[4],w[4])};function ca(e){switch(e){case"timeframe_headers":return w[10];case"aging_report_row":return w[6];case"ac_subentity_total":return w[6];case"total":return w[8];case"spacer_row":return w[8];default:return w[0]}}function sa(){return!0}const He=[new V(w[4],w[8]),new V(44,76),new V(69,102),new V(93,124),new V(113,143)],da=a.div`
|
|
253
|
+
display: flex;
|
|
254
|
+
flex: 1 1 auto;
|
|
255
|
+
max-height: 1px;
|
|
256
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
257
|
+
`,ha=a.div`
|
|
258
|
+
display: flex;
|
|
259
|
+
flex: 1 1 auto;
|
|
260
|
+
flex-flow: row;
|
|
261
|
+
justify-content: flex-start;
|
|
262
|
+
align-items: center;
|
|
263
|
+
`,ua=a.div`
|
|
264
|
+
display: flex;
|
|
265
|
+
flex-direction: row;
|
|
266
|
+
flex-shrink: 2;
|
|
267
|
+
flex-grow: 1;
|
|
268
|
+
align-items: center;
|
|
269
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
270
|
+
width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
271
|
+
max-width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
272
|
+
${({isSticky:e})=>e?P`
|
|
273
|
+
position: -webkit-sticky;
|
|
274
|
+
position: sticky;
|
|
275
|
+
top: ${s.sp0};
|
|
276
|
+
left: ${s.sp0};
|
|
277
|
+
`:null}
|
|
278
|
+
`,ga=a.div`
|
|
279
|
+
width: ${e=>e.noMarginForEntity?He[e.nestingLevel].value(e.windowSize)-w[5]:He[e.nestingLevel].value(e.windowSize)}px;
|
|
280
|
+
max-width: ${e=>e.noMarginForEntity?He[e.nestingLevel].value(e.windowSize)-w[5]:He[e.nestingLevel].value(e.windowSize)}px;
|
|
281
|
+
height: 1px;
|
|
282
|
+
`,pa=a.div`
|
|
283
|
+
display: flex;
|
|
284
|
+
flex: 1 1 auto;
|
|
285
|
+
max-height: 1px;
|
|
286
|
+
height: 1px;
|
|
287
|
+
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
288
|
+
`,fa=a.div`
|
|
289
|
+
display: flex;
|
|
290
|
+
flex: 1 1 auto;
|
|
291
|
+
max-height: 1px;
|
|
292
|
+
height: 1px;
|
|
293
|
+
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
294
|
+
`,Bn=e=>{const n=O(),i=ce();return t.jsxs(ha,{"data-testid":m("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(ua,{windowSize:n,isSticky:e.isSticky,"data-testid":m("sub-entity-name-container","vendor_row_separator"),children:[t.jsx(ga,{"data-testid":m("sub-entity-empty-container","vendor_row_separator"),nestingLevel:e.nestingLevel,noMarginForEntity:e.noMarginForEntity,windowSize:n}),t.jsx(pa,{"data-testid":m("sub-entity-name-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(fa,{"data-testid":m("sub-entity-remaining-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function St({kind:e,isScrolling:n,subEntityProps:i}){switch(e){case"vendor_row_separator":return t.jsx(Bn,{nestingLevel:i?.nestingLevel??0,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!1,noMarginForEntity:i?.noMarginForEntity??!0});case"end_row_separator":return t.jsx(da,{"data-testid":m("end-row-separator",e),isScrolling:n});case"subtotal_row_separator":return t.jsx(Bn,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,noMarginForEntity:i?.noMarginForEntity??!1})}}const fi=a.div`
|
|
295
|
+
display: flex;
|
|
296
|
+
flex: 1 1 auto;
|
|
297
|
+
width: fit-content;
|
|
298
|
+
min-width: 100%;
|
|
299
|
+
flex-direction: column;
|
|
300
|
+
height: ${e=>e.containerHeight}px;
|
|
301
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
302
|
+
`,xi=a.div`
|
|
303
|
+
user-select: none;
|
|
304
|
+
display: flex;
|
|
305
|
+
flex: 1 1 auto;
|
|
306
|
+
flex-flow: row;
|
|
307
|
+
justify-content: flex-start;
|
|
308
|
+
align-items: center;
|
|
309
|
+
height: ${e=>e.containerHeight}px;
|
|
310
|
+
&:hover {
|
|
311
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
312
|
+
}
|
|
313
|
+
`,mi=a.div`
|
|
314
|
+
display: flex;
|
|
315
|
+
flex: 1 0 auto;
|
|
316
|
+
flex-direction: row;
|
|
317
|
+
justify-content: flex-end;
|
|
318
|
+
`,wi=a.div`
|
|
319
|
+
display: flex;
|
|
320
|
+
flex-direction: row;
|
|
321
|
+
justify-content: flex-start;
|
|
322
|
+
`,yi=a(_)`
|
|
323
|
+
user-select: none;
|
|
324
|
+
min-width: ${R.balanceWidth};
|
|
325
|
+
max-width: ${R.balanceWidth};
|
|
326
|
+
text-align: right;
|
|
327
|
+
margin-left: ${R.balanceLeftMargin};
|
|
328
|
+
border: 1px solid transparent;
|
|
329
|
+
color: ${e=>e.theme.colors.hero};
|
|
330
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
331
|
+
&:hover {
|
|
332
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
333
|
+
}
|
|
334
|
+
`,xa=a(_)`
|
|
335
|
+
user-select: none;
|
|
336
|
+
clear: both;
|
|
337
|
+
display: inline-block;
|
|
338
|
+
overflow: hidden;
|
|
339
|
+
white-space: nowrap;
|
|
340
|
+
text-overflow: ellipsis;
|
|
341
|
+
text-align: left;
|
|
342
|
+
margin-left: ${s.sp2};
|
|
343
|
+
`,bi=a.div`
|
|
344
|
+
display: flex;
|
|
345
|
+
flex-direction: row;
|
|
346
|
+
flex-shrink: 2;
|
|
347
|
+
flex-grow: 1;
|
|
348
|
+
align-items: center;
|
|
349
|
+
height: ${e=>e.containerHeight}px;
|
|
350
|
+
width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
351
|
+
max-width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
352
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
353
|
+
${({isSticky:e})=>e?P`
|
|
354
|
+
position: sticky;
|
|
355
|
+
top: ${s.sp0};
|
|
356
|
+
left: ${s.sp0};
|
|
357
|
+
`:null}
|
|
358
|
+
cursor: pointer;
|
|
359
|
+
color: ${e=>e.theme.colors.hero};
|
|
360
|
+
&:hover {
|
|
361
|
+
color: ${e=>e.theme.colors.primary};
|
|
362
|
+
}
|
|
363
|
+
`,ki=({balance:e,isOpen:n})=>{const i=n?e?.balance:e?.totalBalance;return t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",i)})})},ji=({total:e})=>t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function ma({isSticky:e,height:n,isScrolling:i,isLastNode:o,balances:r,total:l,vendor:c,backgroundColor:d,onEntityNameClick:h}){const u=O(),p="default",g=c?.name??"";return t.jsxs(fi,{"data-testid":m("ap-aging-report-row-root-container",g),containerHeight:n,bgColor:d,windowSize:u,children:[t.jsxs(xi,{"data-testid":m("ap-aging-report-row-container",g),style:{cursor:p},isClickable:!1,containerHeight:n-1,children:[t.jsxs(bi,{onClick:()=>c?.id!=null?h?.(c.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:n-1,children:[c?.logo!=null?t.jsx(Ft,{photoUrl:c.logo.toString(),styles:{width:R.nameLogoWidth.valuePx(u),height:R.nameLogoHeight.valuePx(u)}}):t.jsx(zt,{name:g??"",size:s.sp4}),t.jsx(xa,{children:g})]}),t.jsxs(mi,{"data-testid":m("ap-aging-report-row-balances-container",g),children:[r.map(f=>t.jsx(ki,{balance:f,isOpen:!0},f?.period)),t.jsx(ji,{total:l})]})]}),t.jsx(Si,{isScrolling:i,isLastNode:o})]})}function wa({treeNodeId:e,isSticky:n,height:i,isScrolling:o,isLastNode:r,isOpen:l,balances:c,total:d,totalWithChildren:h,nestedCustomer:u,metadata:p,backgroundColor:g,onEntityNameClick:f,onClick:x}){const b=O(),y=p,C=u?.customer.name??"",S=u!=null?u.id.length-1:0,A=u?.hasSiblings??!1,L=u!=null?u.children.length!==0:!1,W=L,F=W?"pointer":"default",z=u!=null?u.isLeafCustomer:!1,K=()=>{x?.(e)};return t.jsxs(fi,{"data-testid":m("ar-aging-report-row-root-container",e),containerHeight:i,bgColor:g,windowSize:b,children:[t.jsxs(xi,{"data-testid":m("ar-aging-report-row-container",e),style:{cursor:F},isClickable:W,containerHeight:i-1,children:[t.jsx(bi,{"data-testid":m("ar-aging-report-row-name-container",e),isSticky:n,windowSize:b,bgColor:g,containerHeight:i-1,children:t.jsx(pi,{displayName:C,depth:S,isLastNode:r,hasChildren:L,hasSiblings:A,isLeaf:z,collapsed:!l,subAccountAnscestorMetadata:y.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:K,onNameClick:()=>u?.id[0]!=null?f?.(u.id[0]):void 0})}),t.jsxs(mi,{children:[c.map(E=>t.jsx(ki,{balance:E,isOpen:l},E?.period)),t.jsx(ji,{total:l?d:h})]})]}),t.jsx(Si,{isScrolling:o,subEntityProps:{nestingLevel:S,isSticky:n,noMarginForEntity:!0}})]})}function Si({isScrolling:e,isLastNode:n=!1,subEntityProps:i}){return n?t.jsx(St,{isScrolling:e,kind:"end_row_separator",subEntityProps:i}):t.jsx(St,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:i})}const ya=a.div`
|
|
364
|
+
user-select: none;
|
|
365
|
+
display: flex;
|
|
366
|
+
flex: 1 1 auto;
|
|
367
|
+
width: fit-content;
|
|
368
|
+
min-width: 100%;
|
|
369
|
+
height: ${e=>e.height}px;
|
|
370
|
+
flex-flow: row;
|
|
371
|
+
justify-content: flex-start;
|
|
372
|
+
align-items: center;
|
|
373
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
374
|
+
`,ba=a.div`
|
|
375
|
+
display: flex;
|
|
376
|
+
flex: 1 0 auto;
|
|
377
|
+
flex-direction: row;
|
|
378
|
+
justify-content: flex-end;
|
|
379
|
+
`,Ci=a.div`
|
|
380
|
+
display: flex;
|
|
381
|
+
max-height: ${s.sp8};
|
|
382
|
+
min-height: ${s.sp8};
|
|
383
|
+
min-width: ${R.balanceWidth};
|
|
384
|
+
justify-content: center;
|
|
385
|
+
align-items: center;
|
|
386
|
+
background-color: ${e=>e.theme.colors.background};
|
|
387
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
388
|
+
border-radius: ${s.sp2};
|
|
389
|
+
margin-left: ${R.balanceLeftMargin};
|
|
390
|
+
color: ${e=>e.theme.colors.primary};
|
|
391
|
+
`,_i=a(_)`
|
|
392
|
+
display: flex;
|
|
393
|
+
user-select: none;
|
|
394
|
+
flex-direction: row;
|
|
395
|
+
justify-content: center;
|
|
396
|
+
align-items: center;
|
|
397
|
+
height: ${R.balanceHeight};
|
|
398
|
+
max-width: ${R.balanceWidth};
|
|
399
|
+
width: 138px;
|
|
400
|
+
text-align: center;
|
|
401
|
+
column-gap: ${s.sp1};
|
|
402
|
+
color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
|
|
403
|
+
`,ka=a.div`
|
|
404
|
+
max-height: ${s.sp8};
|
|
405
|
+
min-height: ${s.sp8};
|
|
406
|
+
display: flex;
|
|
407
|
+
flex-direction: row;
|
|
408
|
+
align-items: center;
|
|
409
|
+
min-width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
410
|
+
color: ${e=>e.theme.colors.primary};
|
|
411
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
412
|
+
${e=>e.isSticky?P`
|
|
413
|
+
position: -webkit-sticky;
|
|
414
|
+
position: sticky;
|
|
415
|
+
top: ${s.sp0};
|
|
416
|
+
left: ${s.sp0};
|
|
417
|
+
`:""}
|
|
418
|
+
`,ja=a(_)`
|
|
419
|
+
display: flex;
|
|
420
|
+
align-items: center;
|
|
421
|
+
cursor: pointer;
|
|
422
|
+
column-gap: ${s.sp1};
|
|
423
|
+
color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
|
|
424
|
+
`,vi=a.div`
|
|
425
|
+
max-height: ${s.sp8};
|
|
426
|
+
min-height: ${s.sp8};
|
|
427
|
+
cursor: pointer;
|
|
428
|
+
`,qt=a.div`
|
|
429
|
+
display: flex;
|
|
430
|
+
column-gap: ${s.sp1};
|
|
431
|
+
cursor: pointer;
|
|
432
|
+
align-items: center;
|
|
433
|
+
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
|
|
434
|
+
`,$i=a.div``,Li=a(ni)`
|
|
435
|
+
width: 12px;
|
|
436
|
+
height: 12px;
|
|
437
|
+
cursor: pointer;
|
|
438
|
+
color: ${e=>e.theme.colors.hero};
|
|
439
|
+
`,Jt=a(Gt)`
|
|
440
|
+
width: 12px;
|
|
441
|
+
height: 12px;
|
|
442
|
+
`,Xt=a(Dt)`
|
|
443
|
+
width: 12px;
|
|
444
|
+
height: 12px;
|
|
445
|
+
`,Sa=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=()=>{o?.(Qt(i),r)},c=n===r?i:"ascending";return t.jsxs(ja,{active:n===r,"data-testid":m("duration-row-vendor-title",e),children:[r==="vendor"?B.getLocalizedStrings().reports.aging.apAging.vendor:B.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(qt,{selectedForSort:n===r,children:t.jsx($i,{"data-testid":m("duration-row-vendor-sort-icon",e),onClick:l,children:c==="ascending"?t.jsx(Xt,{}):t.jsx(Jt,{})})}),t.jsx(Ze,{controller:n===r,children:t.jsx(Li,{"data-testid":m("duration-row-vendor-sort-cancel-icon",e),onClick:()=>Ai({onSortOrderChanged:o})})})]})},Ai=({onSortOrderChanged:e})=>{e?.("descending","total")},Ca=({agingPeriod:e,sortKey:n="vendor",sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n===e?i:"ascending",l=()=>{o?.(Qt(i),e)};return t.jsx(vi,{"data-testid":m("duration-row-tick-container",e),children:t.jsx(Ci,{"data-testid":m("duration-row-tick-element-container",e),children:t.jsxs(_i,{active:n===e,"data-testid":m("duration-row-timeframe-tick",e),children:[B.getLocalizedStrings().reports.aging.duration[e],t.jsxs(qt,{selectedForSort:n===e,"data-testid":m("duration-row-sort-container",e),children:[t.jsx($i,{"data-testid":m("duration-row-sort-icon",e),onClick:l,children:r==="ascending"?t.jsx(Xt,{}):t.jsx(Jt,{})}),t.jsx(Ze,{controller:n===e,children:t.jsx(Li,{"data-testid":m("duration-row-sort-cancel-icon",e),onClick:()=>Ai({onSortOrderChanged:o})})})]})]})})})},Bi=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n==="total"?i:"ascending",l=()=>{o?.(Qt(i),"total")};return t.jsx(vi,{"data-testid":m("duration-row-entity-total-tick-container",e),onClick:l,children:t.jsx(Ci,{"data-testid":m("duration-row-entity-total-tick-element-container",e),children:t.jsxs(_i,{active:n==="total","data-testid":m("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?B.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:B.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(qt,{selectedForSort:n==="total","data-testid":m("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(Xt,{}):t.jsx(Jt,{})})]})})})},_a=({reportId:e,agingPeriod:n,sortKey:i="vendor",sortOrder:o="ascending",onSortOrderChanged:r})=>n!=null?t.jsx(Ca,{sortKey:i,sortOrder:o,onSortOrderChanged:r,agingPeriod:n}):t.jsx(Bi,{reportId:e,sortKey:i,sortOrder:o,onSortOrderChanged:r});function va({reportId:e,isSticky:n,height:i,agingPeriods:o,sortKey:r,sortOrder:l,backgroundColor:c,onSortOrderChanged:d}){const h=O();return t.jsxs(ya,{height:i,bgColor:c,"data-testid":m("duration-row-root-container",e),children:[t.jsx(ka,{"data-testid":m("duration-row-placeholder-name",e),isSticky:n,windowSize:h,bgColor:c,children:t.jsx(Sa,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})}),t.jsxs(ba,{children:[o.map(u=>t.jsx(_a,{reportId:e,agingPeriod:u,sortKey:r,sortOrder:l,onSortOrderChanged:d},u)),t.jsx(Bi,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})]})]})}const Qt=e=>e==="ascending"?"descending":"ascending",$a=[10,14,20,20,20],La=a.div`
|
|
446
|
+
display: flex;
|
|
447
|
+
flex: 1 1 auto;
|
|
448
|
+
width: fit-content;
|
|
449
|
+
min-width: 100%;
|
|
450
|
+
flex-direction: column;
|
|
451
|
+
height: ${e=>e.containerHeight}px;
|
|
452
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
453
|
+
`,Aa=a.div`
|
|
454
|
+
user-select: none;
|
|
455
|
+
display: flex;
|
|
456
|
+
flex: 1 1 auto;
|
|
457
|
+
flex-flow: row;
|
|
458
|
+
justify-content: flex-start;
|
|
459
|
+
align-items: center;
|
|
460
|
+
`,Ba=a.div`
|
|
461
|
+
display: flex;
|
|
462
|
+
flex: 1 0 auto;
|
|
463
|
+
flex-direction: row;
|
|
464
|
+
justify-content: flex-end;
|
|
465
|
+
`,Wi=a.div`
|
|
466
|
+
display: flex;
|
|
467
|
+
flex-direction: row;
|
|
468
|
+
justify-content: flex-start;
|
|
469
|
+
`,Oi=a(_)`
|
|
470
|
+
user-select: none;
|
|
471
|
+
min-width: ${R.balanceWidth};
|
|
472
|
+
max-width: ${R.balanceWidth};
|
|
473
|
+
text-align: right;
|
|
474
|
+
margin-left: ${R.balanceLeftMargin};
|
|
475
|
+
color: ${e=>e.theme.colors.primary};
|
|
476
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
477
|
+
`,Wa=a.div`
|
|
478
|
+
display: flex;
|
|
479
|
+
flex-direction: row;
|
|
480
|
+
flex-shrink: 2;
|
|
481
|
+
flex-grow: 1;
|
|
482
|
+
align-items: center;
|
|
483
|
+
height: ${e=>e.containerHeight-1}px;
|
|
484
|
+
width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
485
|
+
max-width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
486
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
487
|
+
${({isSticky:e})=>e?P`
|
|
488
|
+
position: sticky;
|
|
489
|
+
top: ${s.sp0};
|
|
490
|
+
left: ${s.sp0};
|
|
491
|
+
`:null}
|
|
492
|
+
`,Oa=a(_)`
|
|
493
|
+
user-select: none;
|
|
494
|
+
clear: both;
|
|
495
|
+
display: inline-block;
|
|
496
|
+
overflow: hidden;
|
|
497
|
+
white-space: nowrap;
|
|
498
|
+
text-overflow: ellipsis;
|
|
499
|
+
text-align: left;
|
|
500
|
+
margin-left: ${e=>$a[e.depth]}px;
|
|
501
|
+
color: ${e=>e.theme.colors.primary};
|
|
502
|
+
width: ${e=>R.titleWidth.value(e.windowSize)-e.depth*w[11]}px;
|
|
503
|
+
`,Ma=({balance:e})=>t.jsx(Wi,{children:t.jsx(Oi,{isClickable:!1,onClick:()=>null,children:U("0,0",e?.totalBalance)})}),Na=({total:e})=>t.jsx(Wi,{children:t.jsx(Oi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function Ia({backgroundColor:e,isSticky:n,height:i,noMarginForEntity:o,isScrolling:r,total:l,nestedCustomer:c,metadata:d}){const h=O(),{common:{strings:{empty:u}},reports:{sections:p}}=B.getLocalizedStrings(),g=c!=null?c.id.length-1:0,f=d,x=c?.customer.name??u;return t.jsxs(La,{"data-testid":"sub-customer-total-row-root-container",containerHeight:i,bgColor:e,children:[t.jsxs(Aa,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(Wa,{isSticky:n,windowSize:h,bgColor:e,containerHeight:i,children:[t.jsx(gi,{ancestorMetadata:f.vendorOrCustomerAncestorMetadata,depth:g,name:x}),t.jsx(Oa,{isClickable:!1,title:x,depth:g,windowSize:h,children:p.totalPrefix+" "+x})]}),t.jsxs(Ba,{children:[c?.arAgingBalances.map((b,y)=>t.jsx(Ma,{balance:b},y)),t.jsx(Na,{total:l})]})]}),t.jsx(Pa,{isScrolling:r,nestingLevel:g,isSticky:n,noMarginForEntity:o})]})}function Pa({isScrolling:e,nestingLevel:n,isSticky:i,noMarginForEntity:o}){return t.jsx(St,{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}},We=e=>{switch(e){case"name+balances_forecast":return!0;case"name+balances_actual":return!1;case"name_only":return!1}},Fa=a.div`
|
|
504
|
+
display: flex;
|
|
505
|
+
flex: 1 1 auto;
|
|
506
|
+
width: fit-content;
|
|
507
|
+
min-width: 100%;
|
|
508
|
+
flex-direction: column;
|
|
509
|
+
height: ${e=>e.height}px;
|
|
510
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
511
|
+
`,za=a.div`
|
|
512
|
+
cursor: default;
|
|
513
|
+
user-select: none;
|
|
514
|
+
display: flex;
|
|
515
|
+
flex: 1 1 auto;
|
|
516
|
+
flex-flow: row;
|
|
517
|
+
justify-content: flex-start;
|
|
518
|
+
align-items: center;
|
|
519
|
+
`,Ta=a.div`
|
|
520
|
+
display: flex;
|
|
521
|
+
flex: 1 0 auto;
|
|
522
|
+
flex-direction: row;
|
|
523
|
+
justify-content: flex-end;
|
|
524
|
+
`,Mi=a.div`
|
|
525
|
+
display: flex;
|
|
526
|
+
flex-direction: row;
|
|
527
|
+
justify-content: flex-start;
|
|
528
|
+
`,Ni=a(ne)`
|
|
529
|
+
user-select: none;
|
|
530
|
+
min-width: ${R.balanceWidth};
|
|
531
|
+
max-width: ${R.balanceWidth};
|
|
532
|
+
text-align: right;
|
|
533
|
+
margin-left: ${R.balanceLeftMargin};
|
|
534
|
+
color: ${e=>e.theme.colors.primary};
|
|
535
|
+
border: 1px solid transparent;
|
|
536
|
+
`,Va=a.div`
|
|
537
|
+
display: flex;
|
|
538
|
+
flex-direction: row;
|
|
539
|
+
flex-shrink: 2;
|
|
540
|
+
flex-grow: 1;
|
|
541
|
+
align-items: center;
|
|
542
|
+
width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
543
|
+
max-width: ${e=>R.titleWidth.valuePx(e.windowSize)};
|
|
544
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
545
|
+
${({isSticky:e,isIndented:n})=>e&&n?P`
|
|
546
|
+
position: -webkit-sticky;
|
|
547
|
+
position: sticky;
|
|
548
|
+
top: ${s.sp0};
|
|
549
|
+
left: ${s.sp4};
|
|
550
|
+
`:e&&!n?P`
|
|
551
|
+
position: -webkit-sticky;
|
|
552
|
+
position: sticky;
|
|
553
|
+
top: ${s.sp0};
|
|
554
|
+
left: ${s.sp0};
|
|
555
|
+
`:null}
|
|
556
|
+
`,Da=a(ne)`
|
|
557
|
+
user-select: none;
|
|
558
|
+
clear: both;
|
|
559
|
+
display: inline-block;
|
|
560
|
+
overflow: hidden;
|
|
561
|
+
white-space: nowrap;
|
|
562
|
+
text-overflow: ellipsis;
|
|
563
|
+
text-align: left;
|
|
564
|
+
color: ${e=>e.theme.colors.primary};
|
|
565
|
+
`,Ga=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ni,{children:U("0,0",n?.balance)}):null}),Ra=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ni,{children:U("0,0",n)}):null});function Ea({type:e,isSticky:n,isIndented:i,height:o,title:r,totalBalances:l,backgroundColor:c}){const d=O(),h={amount:l.reduce((u,p)=>u+(p?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Ln.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Ln.currencySymbol};return t.jsx(Fa,{"data-testid":m("total-row-root-container"),height:o,bgColor:c,windowSize:d,children:t.jsxs(za,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsx(Va,{bgColor:c,isSticky:n,windowSize:d,isIndented:i,children:t.jsx(Da,{children:r})}),t.jsxs(Ta,{children:[l.map((u,p)=>t.jsx(Ga,{type:e,balance:u},p)),t.jsx(Ra,{type:e,balance:h})]})]})})}const Ha=(e,n,i,o,r,l,c)=>{if(e.element.kind!=="timeframe_headers")return null;const d=e.element.data;return t.jsx(va,{reportId:e.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:d,backgroundColor:i,isSticky:o,height:n,sortKey:r,sortOrder:l,onSortOrderChanged:c})},Ka=(e,n,i,o,r,l,c,d,h,u)=>{if(n.element.kind!=="aging_report_row")return null;if(n.config.reportId==="accounts_payable_aging"){const g=n.element.data;return t.jsx(ma,{backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,height:i,balances:g.apAgingBalances,vendor:g.vendor,total:g.total,onEntityNameClick:h})}const p=n.element.data;return t.jsx(wa,{treeNodeId:e,backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,isOpen:o,height:i,metadata:n.element.metadata,balances:p.arAgingBalances,nestedCustomer:p,total:p.total,totalWithChildren:p.totalWithChildren,onEntityNameClick:h,onClick:u})},Ya=(e,n,i,o,r)=>{if(e.element.kind!=="ac_subentity_total")return null;if(e.config.reportId==="accounts_receivable_aging"){const l=e.element.data;return t.jsx(Ia,{backgroundColor:r,isScrolling:o,isSticky:i,height:n,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},Ua=(e,n,i,o,r)=>{const l=n.element.data;return t.jsx(Ea,{type:e,backgroundColor:o,isSticky:r,height:i,totalBalances:l,isIndented:n.config.reportId==="accounts_receivable_aging",title:n.element.title})};function ot(e,n,i,o){switch(e){case"cogs":return qa(i,o,n);case"expenses":return Ja(i,o,n);case"income":return Xa(i,o,n);case"cash_position":return Qa(i,o,n);case"cash_in":return Za(i,o,n);case"cash_out":return el(i,o,n);case"assets":return tl(i,o,n);case"equity":return nl(i,o,n);case"liabilities":return il(i,o,n);case"other_expense":return ol(i,o,n);case"other_income":return rl(i,o,n);case"operating_activities":return al(i,o,n);case"investing_activities":return ll(i,o,n);case"financing_activities":return cl(i,o,n);default:throw Error(`${e} is not yet supported!`)}}const qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCogsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Ja=(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},Xa=(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},Qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashPositionInTimeframe,o.compactedAccountsSelector=()=>G([],o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Za=(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},el=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCashOutOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},tl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithAssetsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},nl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithEquityOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},il=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithLiabilitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ol=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherExpensesInTimeframe,o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},rl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherIncomeInTimeframe,o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},al=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithOperatingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ll=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithInvestingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},cl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithFinancingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>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=>Ii(n(o)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(o=>Pi(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Fi(n(o)?.balances??[]))}}function oe(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Ii(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Pi(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Fi(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function Ii(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function Pi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function Fi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function ee(e,n="ascending_date",i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Ti([],i)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:c}}function zi(e,n="ascending_date",i=-1,o=!0){const r=i!==-1,l=ee(e,n,i,o);if(e==null||e.balances.length===0)return l;const c=[...l.balances];if(e?.totalBalance!=null)c.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=Ti([],1);c.push(...d)}return{balances:c,thisPeriodIndex:l.thisPeriodIndex}}function Fe(e,n){if(n==="ascending_date")return e;{const i=[],o=[];for(const r of e)r.type==="default"?i.push(r):o.push(r);return[...i.reverse(),...o]}}function Ti(e,n){return e.length>0?e:Jn(Array(n),null)}const sl=a.div`
|
|
566
|
+
display: flex;
|
|
567
|
+
flex: 1 1 auto;
|
|
568
|
+
max-height: 1px;
|
|
569
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
570
|
+
`,Wn=a.div`
|
|
571
|
+
display: flex;
|
|
572
|
+
flex: 1 1 auto;
|
|
573
|
+
max-height: 1px;
|
|
574
|
+
margin-left: ${e=>e.marginLeft}px;
|
|
575
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
576
|
+
`,dl=a.div`
|
|
577
|
+
display: flex;
|
|
578
|
+
flex: 1 1 auto;
|
|
579
|
+
max-height: 1px;
|
|
580
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
581
|
+
`;function hl({kind:e,isScrolling:n}){switch(e){case"account_title_row_separator":return t.jsx(Wn,{marginLeft:w[5],isScrolling:n});case"account_balance_row_separator":return t.jsx(Wn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(sl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(dl,{isScrolling:n})}}const $e={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,350,405)};function ul(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 gl(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 pl=a.div`
|
|
582
|
+
display: flex;
|
|
583
|
+
flex: 1 1 auto;
|
|
584
|
+
width: fit-content;
|
|
585
|
+
min-width: 100%;
|
|
586
|
+
flex-direction: column;
|
|
587
|
+
height: ${e=>e.height}px;
|
|
588
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
589
|
+
`,fl=a.div`
|
|
590
|
+
user-select: none;
|
|
591
|
+
display: flex;
|
|
592
|
+
flex: 1 1 auto;
|
|
593
|
+
flex-flow: row;
|
|
594
|
+
justify-content: flex-start;
|
|
595
|
+
align-items: center;
|
|
596
|
+
`,xl=a.div`
|
|
597
|
+
display: flex;
|
|
598
|
+
flex: 1 0 auto;
|
|
599
|
+
flex-direction: row;
|
|
600
|
+
justify-content: flex-end;
|
|
601
|
+
`,ml=a.div`
|
|
602
|
+
display: flex;
|
|
603
|
+
flex-direction: row;
|
|
604
|
+
justify-content: flex-start;
|
|
605
|
+
`,wl=a(_)`
|
|
606
|
+
user-select: none;
|
|
607
|
+
color: ${e=>e.theme.colors.hero};
|
|
608
|
+
min-width: ${$e.balanceWidth};
|
|
609
|
+
max-width: ${$e.balanceWidth};
|
|
610
|
+
text-align: right;
|
|
611
|
+
margin-left: ${$e.balanceLeftMargin};
|
|
612
|
+
`,yl=a.div`
|
|
613
|
+
display: flex;
|
|
614
|
+
flex-direction: row;
|
|
615
|
+
flex-shrink: 2;
|
|
616
|
+
flex-grow: 1;
|
|
617
|
+
align-items: center;
|
|
618
|
+
width: ${e=>$e.titleWidth.valuePx(e.windowSize)};
|
|
619
|
+
color: ${e=>e.theme.colors.hero};
|
|
620
|
+
max-width: ${e=>$e.titleWidth.valuePx(e.windowSize)};
|
|
621
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
622
|
+
${({isSticky:e})=>e?P`
|
|
623
|
+
position: -webkit-sticky;
|
|
624
|
+
position: sticky;
|
|
625
|
+
top: ${s.sp0};
|
|
626
|
+
left: ${s.sp0};
|
|
627
|
+
`:null}
|
|
628
|
+
`,bl=a(_)`
|
|
629
|
+
user-select: none;
|
|
630
|
+
clear: both;
|
|
631
|
+
display: inline-block;
|
|
632
|
+
overflow: hidden;
|
|
633
|
+
white-space: nowrap;
|
|
634
|
+
text-overflow: ellipsis;
|
|
635
|
+
text-align: left;
|
|
636
|
+
margin-left: ${s.sp6};
|
|
637
|
+
`,kl=({balance:e})=>t.jsx(ml,{children:t.jsx(wl,{children:q(e)})});function jl({heading:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,totalBalances:l,isScrolling:c,isLastNode:d,onClick:h}){const u=O();return t.jsxs(pl,{"data-testid":m("calculated-section-type-1-root-container-row",o),height:r,bgColor:n,windowSize:u,children:[t.jsxs(fl,{"data-testid":m("calculated-section-type-1-container-row",o),onClick:()=>h?.(o),children:[t.jsx(yl,{"data-testid":m("calculated-section-type-1-total-container-row",o),bgColor:n,isSticky:i,windowSize:u,children:t.jsx(bl,{children:e})}),t.jsx(xl,{children:l.map((p,g)=>t.jsx(kl,{balance:p},g))})]}),t.jsx(Sl,{isScrolling:c,isLastNode:d})]})}function Sl({isScrolling:e,isLastNode:n}){return n===!0?t.jsx(hl,{isScrolling:e,kind:"heading_row_separator"}):null}const Cl=a.div`
|
|
638
|
+
display: flex;
|
|
639
|
+
flex: 1 1 auto;
|
|
640
|
+
width: fit-content;
|
|
641
|
+
min-width: 100%;
|
|
642
|
+
flex-direction: column;
|
|
643
|
+
height: ${e=>e.height}px;
|
|
644
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
645
|
+
`,_l=a.div`
|
|
646
|
+
user-select: none;
|
|
647
|
+
display: flex;
|
|
648
|
+
flex: 1 1 auto;
|
|
649
|
+
flex-flow: row;
|
|
650
|
+
justify-content: flex-start;
|
|
651
|
+
align-items: center;
|
|
652
|
+
`,vl=a.div`
|
|
653
|
+
display: flex;
|
|
654
|
+
flex: 1 0 auto;
|
|
655
|
+
flex-direction: row;
|
|
656
|
+
justify-content: flex-end;
|
|
657
|
+
`,$l=a.div`
|
|
658
|
+
display: flex;
|
|
659
|
+
flex-direction: row;
|
|
660
|
+
justify-content: flex-start;
|
|
661
|
+
`,Ke=a(ei)`
|
|
662
|
+
color: ${e=>e.theme.colors.champion};
|
|
663
|
+
user-select: none;
|
|
664
|
+
max-width: ${k.balanceWidth};
|
|
665
|
+
min-width: ${k.balanceWidth};
|
|
666
|
+
text-align: right;
|
|
667
|
+
margin-left: ${k.balanceLeftMargin};
|
|
668
|
+
`,Ll=a.div`
|
|
669
|
+
display: flex;
|
|
670
|
+
flex-direction: row;
|
|
671
|
+
flex-shrink: 2;
|
|
672
|
+
flex-grow: 1;
|
|
673
|
+
align-items: center;
|
|
674
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
675
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
676
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
677
|
+
${({isSticky:e})=>e?P`
|
|
678
|
+
position: -webkit-sticky;
|
|
679
|
+
position: sticky;
|
|
680
|
+
top: ${s.sp0};
|
|
681
|
+
left: ${s.sp0};
|
|
682
|
+
`:null}
|
|
683
|
+
`,Al=a(ei)`
|
|
684
|
+
color: ${e=>e.theme.colors.champion};
|
|
685
|
+
user-select: none;
|
|
686
|
+
clear: both;
|
|
687
|
+
display: inline-block;
|
|
688
|
+
overflow: hidden;
|
|
689
|
+
white-space: nowrap;
|
|
690
|
+
text-overflow: ellipsis;
|
|
691
|
+
text-align: left;
|
|
692
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
693
|
+
`,Bl=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs($l,{"data-testid":m("heading-row-balance-element",e),children:[re(e)||i?t.jsx(Ke,{"data-testid":m("heading-row-balance-actual",e),children:q(n)}):t.jsx(Ke,{"data-testid":m("heading-row-balance-forecast",e),children:X(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ke,{"data-testid":m("heading-row-balance-forecast",e),children:X(n)}),t.jsx(Ke,{"data-testid":m("heading-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?se(n):de(n)})]}):null]});function Wl({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,heading:l,headingBalances:c,isActualVsForecastOn:d,compareMode:h,isLeaf:u,onClick:p}){const g=O();return t.jsx(Cl,{height:r,bgColor:n,"data-testid":m("heading-row-root-container",o),children:t.jsxs(_l,{"data-testid":m("heading-row-container",o),isClickable:!u,onClick:()=>p?.(o),children:[ge(e)===!0?t.jsx(Ll,{"data-testid":m("heading-row-heading-container",o),isSticky:i,windowSize:g,bgColor:n,children:t.jsx(Al,{children:l})}):null,fe(e)===!0?t.jsx(vl,{"data-testid":m("heading-row-balances-container",o),children:c.map((f,x)=>t.jsx(Bl,{"data-testid":m("heading-row-balance-element",e),type:e,heading:l,balance:f,isActualVsForecastOn:d,compareMode:h},x))}):null]})})}const Ol=(e,n,i,o,r,l,c)=>{if(n.element.kind!="calculated_section_type1"||n.element.data==null)return null;const d=n.element.data,h=ee(d,n.config.displayOrder,n.element.numOfBalances);return t.jsx(jl,{backgroundColor:o,isSticky:r,treeNodeId:e,heading:n.element.title,totalBalances:h.balances,height:i,isScrolling:l,isLastNode:c})},Zt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="title_string_only")return null;const f=ee(void 0,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Wl,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,heading:i.element.title,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,headingBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:x=>{g?.(x)}})};function Vi(e,n){return Ml(n)}const Ml=(e,n)=>{const i={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return i.acBalanceSelector=o=>o.balancesInTimeframe,i.compactedAccountsSelectorVariant=o=>Nl(o,i.acBalanceSelector,e),i};function Nl(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Il(n(o)?.balances??[]));default:return e}}function Il(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}const Ye=[new V(w[4],56),new V(44,76),new V(69,102),new V(93,124),new V(113,143)],On=[new V(w[0],w[0]),new V(14,w[4]),new V(67,67),new V(102,102),new V(136,136)],Pl=a.div`
|
|
694
|
+
display: flex;
|
|
695
|
+
flex: 1 1 auto;
|
|
696
|
+
max-height: 1px;
|
|
697
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
698
|
+
`,Mn=a.div`
|
|
699
|
+
display: flex;
|
|
700
|
+
flex: 1 1 auto;
|
|
701
|
+
max-height: 1px;
|
|
702
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey4};
|
|
703
|
+
`,Fl=a.div`
|
|
704
|
+
display: flex;
|
|
705
|
+
flex: 1 1 auto;
|
|
706
|
+
flex-flow: row;
|
|
707
|
+
justify-content: flex-start;
|
|
708
|
+
align-items: center;
|
|
709
|
+
`,zl=a.div`
|
|
710
|
+
display: flex;
|
|
711
|
+
flex-direction: row;
|
|
712
|
+
flex-shrink: 2;
|
|
713
|
+
flex-grow: 1;
|
|
714
|
+
align-items: center;
|
|
715
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
716
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
717
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
718
|
+
${({isSticky:e})=>e?P`
|
|
719
|
+
position: -webkit-sticky;
|
|
720
|
+
position: sticky;
|
|
721
|
+
top: ${s.sp0};
|
|
722
|
+
left: ${s.sp0};
|
|
723
|
+
`:null}
|
|
724
|
+
`,Tl=a.div`
|
|
725
|
+
width: ${e=>e.noMarginForAccount?Ye[e.nestingLevel].value(e.windowSize)-w[5]:Ye[e.nestingLevel].value(e.windowSize)}px;
|
|
726
|
+
max-width: ${e=>e.noMarginForAccount?Ye[e.nestingLevel].value(e.windowSize)-w[5]:Ye[e.nestingLevel].value(e.windowSize)}px;
|
|
727
|
+
height: 1px;
|
|
728
|
+
`,Vl=a.div`
|
|
729
|
+
width: ${e=>On[e.classDepth].valuePx(e.windowSize)};
|
|
730
|
+
max-width: ${e=>On[e.classDepth].valuePx(e.windowSize)};
|
|
731
|
+
height: 1px;
|
|
732
|
+
`,Dl=a.div`
|
|
733
|
+
display: flex;
|
|
734
|
+
flex: 1 1 auto;
|
|
735
|
+
max-height: 1px;
|
|
736
|
+
height: 1px;
|
|
737
|
+
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
738
|
+
`,Gl=a.div`
|
|
739
|
+
display: flex;
|
|
740
|
+
flex: 1 1 auto;
|
|
741
|
+
max-height: 1px;
|
|
742
|
+
height: 1px;
|
|
743
|
+
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
744
|
+
`,Rl=a.div`
|
|
745
|
+
display: flex;
|
|
746
|
+
flex: 1 1 auto;
|
|
747
|
+
max-height: 1px;
|
|
748
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
749
|
+
`,Nn=e=>{const n=O(),i=ce();return t.jsxs(Fl,{children:[t.jsxs(zl,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(Vl,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(Tl,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx(Dl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(Gl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function xe({kind:e,isScrolling:n,subAccountProps:i}){switch(e){case"account_title_row_separator":return t.jsx(Mn,{marginLeft:w[5],isScrolling:n});case"sub_account_balance_row_separator":return t.jsx(Nn,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!1,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1});case"account_balance_row_separator":return t.jsx(Mn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(Pl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(Rl,{isScrolling:n});case"total_row_separator":return t.jsx(Nn,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1})}}function Di({height:e,backgroundColor:n,title:i,numOfBalances:o=6}){const r=O(),l=i!=null?i.split("+")[1]:"";let c=null;const d=r!=="small";switch(l){case"section-row":c=t.jsx(El,{columns:o,isSticky:d});break;case"root-class-row":c=t.jsx(Hl,{columns:o,isSticky:d});break;case"sub-class-row":c=t.jsx(Kl,{columns:o,isSticky:d});break;case"leaf-class-row":c=t.jsxs(t.Fragment,{children:[t.jsx(Yl,{columns:o,isSticky:d}),t.jsx(xe,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]});break}return t.jsx(ql,{height:e,bgColor:n,children:c})}const El=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsxs(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(rt,{columns:e,rectangleWidth:k.loadingBalanceWidthInPx})]}),Hl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsxs(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Kl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsx(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(je,{style:{marginLeft:"36px"},children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx,style:{marginLeft:w[4]}})]})}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Yl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsx(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(je,{style:{marginLeft:"84px"},children:t.jsx(H,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})})}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Ul=({rectangleWidth:e})=>t.jsx(Gi,{width:k.balanceWidthInPx,children:t.jsx(H,{width:e,height:k.balanceHeightInPx})}),rt=({columns:e,rectangleWidth:n})=>t.jsx(Jl,{style:{zIndex:9,width:k.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((i,o)=>t.jsx(Ul,{rectangleWidth:n},o))}),ql=a.div`
|
|
750
|
+
display: flex;
|
|
751
|
+
flex: 1 1 auto;
|
|
752
|
+
width: fit-content;
|
|
753
|
+
min-width: 100%;
|
|
754
|
+
flex-direction: column;
|
|
755
|
+
height: ${e=>e.height}px;
|
|
756
|
+
background-color: ${e=>e.bgColor?.hex()??e.theme.colors.grey4};
|
|
757
|
+
`,je=a.div`
|
|
758
|
+
user-select: none;
|
|
759
|
+
display: flex;
|
|
760
|
+
flex: 1 1 auto;
|
|
761
|
+
flex-flow: row;
|
|
762
|
+
justify-content: flex-start;
|
|
763
|
+
align-items: center;
|
|
764
|
+
min-height: 0;
|
|
765
|
+
`,Jl=a.div`
|
|
766
|
+
display: flex;
|
|
767
|
+
flex: 1 0 auto;
|
|
768
|
+
flex-direction: row;
|
|
769
|
+
justify-content: flex-end;
|
|
770
|
+
`,Gi=a.div`
|
|
771
|
+
display: flex;
|
|
772
|
+
flex-direction: row;
|
|
773
|
+
align-items: center;
|
|
774
|
+
min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
|
|
775
|
+
margin-right: ${k.balanceLeftMargin};
|
|
776
|
+
gap: ${k.balanceLeftMargin};
|
|
777
|
+
justify-content: flex-end;
|
|
778
|
+
`,at=a(Gi)`
|
|
779
|
+
position: ${e=>e.isSticky===!0?"sticky":"static"};
|
|
780
|
+
left: ${s.sp0};
|
|
781
|
+
z-index: 10;
|
|
782
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
783
|
+
justify-content: flex-start;
|
|
784
|
+
`;function Ri({height:e,numOfBalances:n,backgroundColor:i}){const o=O();return t.jsx(Xl,{height:e,bgColor:i,children:t.jsxs(Ql,{windowSize:o,children:[t.jsx(Zl,{windowSize:o,width:`${k.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(ec,{children:Array.from({length:n},(r,l)=>t.jsx(Ei,{windowSize:o,width:k.balanceWidth,children:t.jsx(H,{width:k.balanceWidthInPx,height:w[6]})},`timeframe-balance-${l}`))})]})})}const Xl=a.div`
|
|
785
|
+
display: flex;
|
|
786
|
+
flex: 1 1 auto;
|
|
787
|
+
width: fit-content;
|
|
788
|
+
min-width: 100%;
|
|
789
|
+
flex-direction: column;
|
|
790
|
+
height: ${e=>e.height}px;
|
|
791
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
792
|
+
margin-top: 20px;
|
|
793
|
+
`,Ql=a.div`
|
|
794
|
+
display: flex;
|
|
795
|
+
flex-direction: row;
|
|
796
|
+
width: 100%;
|
|
797
|
+
`,Ei=a.div`
|
|
798
|
+
display: flex;
|
|
799
|
+
flex-direction: row;
|
|
800
|
+
align-items: center;
|
|
801
|
+
margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:s.sp4};
|
|
802
|
+
min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
|
|
803
|
+
color: ${e=>e.theme.colors.primary};
|
|
804
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
805
|
+
justify-content: flex-end;
|
|
806
|
+
:first-of-type {
|
|
807
|
+
justify-content: flex-start;
|
|
808
|
+
}
|
|
809
|
+
margin-right: ${k.balanceLeftMargin};
|
|
810
|
+
`,Zl=a(Ei)`
|
|
811
|
+
position: sticky;
|
|
812
|
+
left: ${s.sp0};
|
|
813
|
+
z-index: 10;
|
|
814
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
815
|
+
`,ec=a.div`
|
|
816
|
+
display: flex;
|
|
817
|
+
flex-direction: row;
|
|
818
|
+
width: calc(100% - ${k.loadingInProgressStickySectionWidth}px);
|
|
819
|
+
justify-content: flex-end;
|
|
820
|
+
flex: 1 0 auto;
|
|
821
|
+
`,tc=a.div`
|
|
822
|
+
display: flex;
|
|
823
|
+
flex: 1 1 auto;
|
|
824
|
+
max-height: 1px;
|
|
825
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
826
|
+
`,nc=a.div`
|
|
827
|
+
display: flex;
|
|
828
|
+
flex: 1 1 auto;
|
|
829
|
+
max-height: 1px;
|
|
830
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
831
|
+
`;function en({kind:e,isScrolling:n}){switch(e){case"ac_group_row_separator":return t.jsx(tc,{"data-testid":m("ac-group-row-separator",e),isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(nc,{"data-testid":m("section-row-separator",e),isScrolling:n})}}const D={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,350,405)};function ic(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 oc(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 rc=a.div`
|
|
832
|
+
display: flex;
|
|
833
|
+
flex: 1 1 auto;
|
|
834
|
+
width: fit-content;
|
|
835
|
+
min-width: 100%;
|
|
836
|
+
flex-direction: column;
|
|
837
|
+
height: ${e=>e.height}px;
|
|
838
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
839
|
+
`,ac=a.div`
|
|
840
|
+
user-select: none;
|
|
841
|
+
display: flex;
|
|
842
|
+
flex: 1 1 auto;
|
|
843
|
+
flex-flow: row;
|
|
844
|
+
justify-content: flex-start;
|
|
845
|
+
align-items: center;
|
|
846
|
+
&:hover {
|
|
847
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
848
|
+
}
|
|
849
|
+
`,lc=a.div`
|
|
850
|
+
display: flex;
|
|
851
|
+
flex: 1 0 auto;
|
|
852
|
+
flex-direction: row;
|
|
853
|
+
justify-content: flex-end;
|
|
854
|
+
color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
855
|
+
`,cc=a.div`
|
|
856
|
+
display: flex;
|
|
857
|
+
flex-direction: row;
|
|
858
|
+
justify-content: flex-start;
|
|
859
|
+
`,Ct=a(_)`
|
|
860
|
+
user-select: none;
|
|
861
|
+
min-width: ${D.balanceWidth};
|
|
862
|
+
max-width: ${D.balanceWidth};
|
|
863
|
+
text-align: right;
|
|
864
|
+
margin-left: ${D.balanceLeftMargin};
|
|
865
|
+
`,sc=a(Ct)`
|
|
866
|
+
color: ${e=>e.theme.colors.hero};
|
|
867
|
+
&:hover {
|
|
868
|
+
color: inherit;
|
|
869
|
+
}
|
|
870
|
+
`,dc=a.div`
|
|
871
|
+
display: flex;
|
|
872
|
+
flex-direction: row;
|
|
873
|
+
flex-shrink: 2;
|
|
874
|
+
flex-grow: 1;
|
|
875
|
+
align-items: center;
|
|
876
|
+
width: ${e=>D.titleWidth.valuePx(e.windowSize)};
|
|
877
|
+
max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
|
|
878
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
879
|
+
color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
880
|
+
${({isSticky:e})=>e?P`
|
|
881
|
+
position: -webkit-sticky;
|
|
882
|
+
position: sticky;
|
|
883
|
+
top: ${s.sp0};
|
|
884
|
+
left: ${s.sp0};
|
|
885
|
+
`:null}
|
|
886
|
+
`,hc=a(_)`
|
|
887
|
+
user-select: none;
|
|
888
|
+
clear: both;
|
|
889
|
+
display: inline-block;
|
|
890
|
+
overflow: hidden;
|
|
891
|
+
white-space: nowrap;
|
|
892
|
+
text-overflow: ellipsis;
|
|
893
|
+
text-align: left;
|
|
894
|
+
margin-left: ${s.sp2};
|
|
895
|
+
`,uc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?sc:Ct;return t.jsxs(cc,{"data-testid":m("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":m("account-group-row-balance-actual",e),children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":m("account-group-row-balance-forecast",e),children:X(n)}),t.jsx(Ct,{"data-testid":m("account-group-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function gc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountGroupName:l,accountGroupBalances:c,compareMode:d,isScrolling:h,isOpen:u,isLeaf:p,isLastNode:g,onClick:f}){const x=O(),b=!p,y=b?"pointer":"default",C=l.length>0?l.substr(0,1).toUpperCase():"",S=fc(c),A=ce().colors.primary,[L,W]=N.useState(!1);return t.jsxs(rc,{"data-testid":m("account-group-row-root-container",e),height:r,bgColor:n,windowSize:x,children:[t.jsxs(ac,{"data-testid":m("account-group-row-container",e),style:{cursor:y},isClickable:b,onClick:()=>f?.(o),onMouseOver:()=>W(!0),onMouseLeave:()=>W(!1),children:[t.jsxs(dc,{"data-testid":m("account-group-row-name-container",e),bgColor:n,isSticky:i,windowSize:x,hasNonZeroBalance:S,children:[t.jsx(ye,{"data-testid":m("account-group-row-circle-with-letter",e),color:$(A),showCollapsedIcon:!u,showIcon:b&&L,firstLetter:C}),t.jsx(hc,{"data-testid":m("account-group-row-name",e),children:l})]}),t.jsx(lc,{"data-testid":m("account-group-row-balances-container",e),hasNonZeroBalance:S,children:c.map((F,z)=>t.jsx(uc,{"data-testid":m("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:F,compareMode:d,collapsed:!1},z))})]}),t.jsx(pc,{isScrolling:h,isLeaf:p,isLastNode:g,isOpen:u})]})}function pc({isScrolling:e,isLeaf:n,isLastNode:i,isOpen:o}){return n||!o||!i?t.jsx(en,{isScrolling:e,kind:"ac_group_row_separator"}):null}const fc=e=>{let n=!1;if(e!=null){for(const i of e)if(i!=null&&i.balance.amount!==0){n=!0;break}}return n},xc=a.div`
|
|
896
|
+
display: flex;
|
|
897
|
+
flex: 1 1 auto;
|
|
898
|
+
width: fit-content;
|
|
899
|
+
min-width: 100%;
|
|
900
|
+
flex-direction: column;
|
|
901
|
+
height: ${e=>e.height}px;
|
|
902
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
903
|
+
`,mc=a.div`
|
|
904
|
+
user-select: none;
|
|
905
|
+
display: flex;
|
|
906
|
+
flex: 1 1 auto;
|
|
907
|
+
flex-flow: row;
|
|
908
|
+
justify-content: flex-start;
|
|
909
|
+
align-items: center;
|
|
910
|
+
&:hover {
|
|
911
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
912
|
+
}
|
|
913
|
+
`,wc=a.div`
|
|
914
|
+
display: flex;
|
|
915
|
+
flex: 1 0 auto;
|
|
916
|
+
flex-direction: row;
|
|
917
|
+
justify-content: flex-end;
|
|
918
|
+
`,yc=a.div`
|
|
919
|
+
display: flex;
|
|
920
|
+
flex-direction: row;
|
|
921
|
+
justify-content: flex-start;
|
|
922
|
+
`,wt=a(_)`
|
|
923
|
+
user-select: none;
|
|
924
|
+
min-width: ${D.balanceWidth};
|
|
925
|
+
max-width: ${D.balanceWidth};
|
|
926
|
+
text-align: right;
|
|
927
|
+
margin-left: ${D.balanceLeftMargin};
|
|
928
|
+
color: ${e=>e.theme.colors.hero};
|
|
929
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
930
|
+
&:hover {
|
|
931
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
932
|
+
}
|
|
933
|
+
`,bc=a.div`
|
|
934
|
+
display: flex;
|
|
935
|
+
flex-direction: row;
|
|
936
|
+
flex-shrink: 2;
|
|
937
|
+
flex-grow: 1;
|
|
938
|
+
align-items: center;
|
|
939
|
+
width: ${e=>D.titleWidth.valuePx(e.windowSize)};
|
|
940
|
+
max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
|
|
941
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
942
|
+
${({isSticky:e})=>e?P`
|
|
943
|
+
position: -webkit-sticky;
|
|
944
|
+
position: sticky;
|
|
945
|
+
top: ${s.sp0};
|
|
946
|
+
left: ${s.sp0};
|
|
947
|
+
`:null}
|
|
948
|
+
`,kc=a(_)`
|
|
949
|
+
user-select: none;
|
|
950
|
+
clear: both;
|
|
951
|
+
display: inline-block;
|
|
952
|
+
overflow: hidden;
|
|
953
|
+
white-space: nowrap;
|
|
954
|
+
text-overflow: ellipsis;
|
|
955
|
+
text-align: left;
|
|
956
|
+
margin-left: 35px;
|
|
957
|
+
color: ${e=>e.theme.colors.hero};
|
|
958
|
+
`,jc=({type:e,balance:n,account:i,onAccountBalanceClick:o,compareMode:r})=>{const l=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",c=i!=null&&n!=null&&o!=null&&l!==!0;return t.jsxs(yc,{children:[t.jsx(wt,{isClickable:c,onClick:()=>{c===!0&&i!=null&&n!=null&&o?.(i,n)},children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(wt,{isClickable:!1,children:X(n)}),t.jsx(wt,{isClickable:!1,children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Sc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isCompareModeOn:c,isForecastModeOn:d,isScrolling:h,isLeaf:u,isLastNode:p,compareMode:g,account:f,onAccountBalanceClick:x}){const b=O(),{common:{strings:{empty:y}}}=B.getLocalizedStrings(),C=f?.accountDescription?f.accountDescription:y,S=f?.accountName?f.accountName:C,A=Xn(),L=A.loggedInUserRole!=null&&!oi(A.loggedInUserRole),W=L===!0&&f!=null&&c!==!0&&x!=null&&d!==!0,F=W?"pointer":"default",z=(K,E)=>{W===!0&&l[l.length-1]!=null&&x?.(K,E,l[l.length-1])};return t.jsxs(xc,{height:r,bgColor:n,windowSize:b,children:[t.jsxs(mc,{style:{cursor:F},isClickable:W,onClick:()=>f!=null?z(o,f):null,children:[t.jsx(bc,{isSticky:i,windowSize:b,bgColor:n,children:t.jsx(kc,{title:S,children:S})}),t.jsx(wc,{children:l.map((K,E)=>t.jsx(jc,{type:e,balance:K,account:f,onAccountBalanceClick:L===!1||x==null?void 0:(Y,J)=>{x(o,Y,J)},compareMode:g},E))})]}),t.jsx(Cc,{isScrolling:h,isLeaf:u,isLastNode:p})]})}function Cc({isScrolling:e,isLeaf:n,isLastNode:i}){return n||!i?t.jsx(en,{isScrolling:e,kind:"ac_group_row_separator"}):null}const _c=a.div`
|
|
959
|
+
display: flex;
|
|
960
|
+
flex: 1 1 auto;
|
|
961
|
+
width: fit-content;
|
|
962
|
+
min-width: 100%;
|
|
963
|
+
flex-direction: column;
|
|
964
|
+
height: ${e=>e.rootHeight-1}px;
|
|
965
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
966
|
+
`,vc=a.div`
|
|
967
|
+
user-select: none;
|
|
968
|
+
display: flex;
|
|
969
|
+
flex: 1 1 auto;
|
|
970
|
+
flex-flow: row;
|
|
971
|
+
justify-content: flex-start;
|
|
972
|
+
align-items: center;
|
|
973
|
+
`,$c=a.div`
|
|
974
|
+
display: flex;
|
|
975
|
+
flex: 1 0 auto;
|
|
976
|
+
flex-direction: row;
|
|
977
|
+
justify-content: flex-end;
|
|
978
|
+
`,In=a.div`
|
|
979
|
+
display: flex;
|
|
980
|
+
flex-direction: row;
|
|
981
|
+
justify-content: flex-start;
|
|
982
|
+
`,Ce=a(_)`
|
|
983
|
+
user-select: none;
|
|
984
|
+
max-width: ${D.balanceWidth};
|
|
985
|
+
min-width: ${D.balanceWidth};
|
|
986
|
+
text-align: right;
|
|
987
|
+
margin-left: ${D.balanceLeftMargin};
|
|
988
|
+
`,Pn=a(_)`
|
|
989
|
+
user-select: none;
|
|
990
|
+
max-width: ${D.balanceWidth};
|
|
991
|
+
min-width: ${D.balanceWidth};
|
|
992
|
+
text-align: right;
|
|
993
|
+
margin-left: ${D.balanceLeftMargin};
|
|
994
|
+
`,Lc=a.div`
|
|
995
|
+
display: flex;
|
|
996
|
+
flex-direction: column;
|
|
997
|
+
align-items: flex-end;
|
|
998
|
+
`,Ac=a.div`
|
|
999
|
+
display: flex;
|
|
1000
|
+
flex-direction: row;
|
|
1001
|
+
flex-shrink: 2;
|
|
1002
|
+
flex-grow: 1;
|
|
1003
|
+
align-items: center;
|
|
1004
|
+
height: ${s.sp7};
|
|
1005
|
+
width: ${e=>D.titleWidth.valuePx(e.windowSize)};
|
|
1006
|
+
max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
|
|
1007
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1008
|
+
${({isSticky:e})=>e?P`
|
|
1009
|
+
position: -webkit-sticky;
|
|
1010
|
+
position: sticky;
|
|
1011
|
+
top: ${s.sp0};
|
|
1012
|
+
left: ${s.sp0};
|
|
1013
|
+
`:null}
|
|
1014
|
+
`,Bc=a(_)`
|
|
1015
|
+
user-select: none;
|
|
1016
|
+
user-select: none;
|
|
1017
|
+
clear: both;
|
|
1018
|
+
display: inline-block;
|
|
1019
|
+
overflow: hidden;
|
|
1020
|
+
white-space: nowrap;
|
|
1021
|
+
text-overflow: ellipsis;
|
|
1022
|
+
text-align: left;
|
|
1023
|
+
margin-left: ${s.sp2};
|
|
1024
|
+
`,Wc=({type:e,balance:n,color:i,compareMode:o})=>{const r=n!=null&&n.type==="default_with_percent"&&n.percentValue!=null?n.percentValue:0,l=n!=null&&n.type==="default_with_percent"&&n.forecastPercentValue!=null?n.forecastPercentValue:0;return t.jsxs(Lc,{children:[t.jsxs(In,{children:[t.jsx(Ce,{style:{color:i.toString()},children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(Ce,{style:{color:i.toString()},children:X(n)}),t.jsx(Ce,{style:{color:i.toString()},children:o==="compare_mode_percent"?se(n):de(n)})]}):null]}),t.jsxs(In,{children:[r!==0?t.jsx(Pn,{style:{color:i.toString()},children:pe("0,0%",r)}):null,We(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(Pn,{style:{color:i.toString()},children:pe("0,0%",l)}):t.jsx(Ce,{}),t.jsx(Ce,{})]}):null]})]})};function tn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:c,sectionColor:d,isScrolling:h,isOpen:u,isLeaf:p,compareMode:g,onClick:f}){const x=O(),[b,y]=N.useState(!1),C=!p,S=C?"pointer":"default",A=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(_c,{"data-testid":m("section-row-root-container",o),rootHeight:r,bgColor:n,windowSize:x,children:[t.jsxs(vc,{"data-testid":m("section-row-container",o),style:{cursor:S},onClick:()=>f?.(o),onMouseOver:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(Ac,{"data-testid":m("section-row-name-container",o),isSticky:i,windowSize:x,bgColor:n,children:[t.jsx(ye,{"data-testid":m("section-row-circle-with-letter",o),color:$(d),showCollapsedIcon:!u,showIcon:C&&b,firstLetter:A}),t.jsx(Bc,{"data-testid":m("section-row-name",o),style:{color:d.toString()},children:l})]}),t.jsx($c,{"data-testid":m("section-row-balances-container",o),children:c.map((L,W)=>t.jsx(Wc,{"data-testid":m("section-row-balance-element",e),type:e,sectionName:l,balance:L,color:d,compareMode:g},W))})]}),t.jsx(Oc,{isScrolling:h,isLeaf:p,isOpen:u})]})}function Oc({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(en,{isScrolling:e,kind:"section_row_separator"}):null}const Mc=a.div`
|
|
1025
|
+
display: flex;
|
|
1026
|
+
flex: 1 1 auto;
|
|
1027
|
+
width: fit-content;
|
|
1028
|
+
min-width: 100%;
|
|
1029
|
+
flex-direction: column;
|
|
1030
|
+
height: ${e=>e.height}px;
|
|
1031
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1032
|
+
`,Nc=a.div`
|
|
1033
|
+
user-select: none;
|
|
1034
|
+
display: flex;
|
|
1035
|
+
flex: 1 1 auto;
|
|
1036
|
+
flex-flow: row;
|
|
1037
|
+
justify-content: flex-start;
|
|
1038
|
+
align-items: center;
|
|
1039
|
+
`,Ic=a.div`
|
|
1040
|
+
display: flex;
|
|
1041
|
+
flex: 1 0 auto;
|
|
1042
|
+
flex-direction: row;
|
|
1043
|
+
justify-content: flex-end;
|
|
1044
|
+
`,Pc=a.div`
|
|
1045
|
+
display: flex;
|
|
1046
|
+
flex-direction: row;
|
|
1047
|
+
justify-content: flex-start;
|
|
1048
|
+
`,Hi=a(_)`
|
|
1049
|
+
user-select: none;
|
|
1050
|
+
min-width: ${D.balanceWidth};
|
|
1051
|
+
max-width: ${D.balanceWidth};
|
|
1052
|
+
text-align: right;
|
|
1053
|
+
margin-left: ${D.balanceLeftMargin};
|
|
1054
|
+
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1055
|
+
`,Fc=a(Hi)`
|
|
1056
|
+
color: ${e=>e.theme.colors.hero};
|
|
1057
|
+
&:hover {
|
|
1058
|
+
color: inherit;
|
|
1059
|
+
}
|
|
1060
|
+
`,zc=a.div`
|
|
1061
|
+
display: flex;
|
|
1062
|
+
flex-direction: row;
|
|
1063
|
+
flex-shrink: 2;
|
|
1064
|
+
flex-grow: 1;
|
|
1065
|
+
align-items: center;
|
|
1066
|
+
width: ${e=>D.titleWidth.valuePx(e.windowSize)};
|
|
1067
|
+
max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
|
|
1068
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1069
|
+
${({isSticky:e})=>e?P`
|
|
1070
|
+
position: -webkit-sticky;
|
|
1071
|
+
position: sticky;
|
|
1072
|
+
top: ${s.sp0};
|
|
1073
|
+
left: ${s.sp0};
|
|
1074
|
+
`:null}
|
|
1075
|
+
`,Tc=a(_)`
|
|
1076
|
+
user-select: none;
|
|
1077
|
+
clear: both;
|
|
1078
|
+
display: inline-block;
|
|
1079
|
+
overflow: hidden;
|
|
1080
|
+
white-space: nowrap;
|
|
1081
|
+
text-overflow: ellipsis;
|
|
1082
|
+
text-align: left;
|
|
1083
|
+
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1084
|
+
`,yt=a(_)`
|
|
1085
|
+
user-select: none;
|
|
1086
|
+
min-width: ${D.balanceWidth};
|
|
1087
|
+
max-width: ${D.balanceWidth};
|
|
1088
|
+
text-align: right;
|
|
1089
|
+
margin-left: ${D.balanceLeftMargin};
|
|
1090
|
+
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1091
|
+
`,Vc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?Fc:Hi;return t.jsxs(Pc,{children:[re(e)===!0?t.jsx(r,{children:q(n)}):null,We(e)?t.jsxs(t.Fragment,{children:[t.jsx(yt,{children:q(n)}),t.jsx(yt,{children:X(n)}),t.jsx(yt,{children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Dc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:c,isLeaf:d,compareMode:h,onClick:u}){const p=O(),g=!d,f=g?"pointer":"default";return t.jsx(Mc,{height:r,bgColor:n,windowSize:p,children:t.jsxs(Nc,{style:{cursor:f},isClickable:g,onClick:()=>u?.(o),children:[t.jsx(zc,{bgColor:n,isSticky:i,windowSize:p,children:t.jsx(Tc,{children:l})}),t.jsx(Ic,{children:c.map((x,b)=>t.jsx(Vc,{type:e,balance:x,collapsed:!1,compareMode:h},b))})]})})}const be={net_burn_or_income:{income:{color:new $(T.graphColor04),hoverColor:new $(T.graphColor04Dark)},cogs:{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)},expenses:{color:new $(T.graphColor32),hoverColor:new $(T.graphColor32Dark)},"Gross Burn":{color:new $(Z.neutralGrey2Dark),hoverColor:new $(Z.neutralGrey2Dark)},"Net Burn":{color:new $(T.graphColor13),hoverColor:new $(T.graphColor13Dark)},"Net Income":{color:new $(T.graphColor13),hoverColor:new $(T.graphColor13Dark)}},revenue:{income:{color:new $(T.graphColor28),hoverColor:new $(T.graphColor28Dark)},cogs:{color:new $(T.graphColor17),hoverColor:new $(T.graphColor17Dark)},"Gross Margin":{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new $(T.graphColor33),hoverColor:new $(T.graphColor33Dark)},cash_out:{color:new $(T.graphColor02),hoverColor:new $(T.graphColor02Dark)},"Net Cash Flow":{color:new $(T.graphColor35),hoverColor:new $(T.graphColor35Dark)}},default:{color:new $(Z.neutralGrey2Dark),hoverColor:new $(Z.neutralGrey2Dark)}},nn=(e,n)=>e.startsWith("net_burn_or_income")===!0?n!=null?be.net_burn_or_income[n]:be.default:e.startsWith("revenue")===!0?n!=null?be.revenue[n]:be.default:e.startsWith("cash_in_cash_out")===!0&&n!=null?be.cash_in_cash_out[n]:be.default,Gc=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Ne(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),x=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Sc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountBalances:x.balances,isCompareModeOn:i.config.mode==="this_period_vs_period_before",isForecastModeOn:i.config.mode==="actual_vs_forecast",isScrolling:c,isLeaf:d,isLastNode:h,compareMode:u,account:g,onAccountBalanceClick:p==null?void 0:(b,y,C)=>{p?.(b,y,C)}})},Rc=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,x=ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(gc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountGroupName:f.accountGroupName,compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Ki=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.sectionType),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionColor:f.color,sectionName:i.element.title,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Ec=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.sectionType),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Yi=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Ui=(e,n,i,o,r,l,c,d)=>{if((i.config.isZeniCOAInUse==null||i.config.isZeniCOAInUse===!0)&&i.config.mode!=="this_period_vs_period_before")return null;const h=i.element.data,u=ee(h,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Dc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,title:i.element.title,height:o,isLeaf:d,compareMode:c,totalBalances:u.balances})},Hc=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Kc=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ri,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),on=20,Yc=e=>{const n=[];return e&&Object.values(e).forEach(i=>{n.push(i)}),n.reverse()},Uc=a.div`
|
|
1092
|
+
display: flex;
|
|
1093
|
+
flex: 1 1 auto;
|
|
1094
|
+
height: 1px;
|
|
1095
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
1096
|
+
`,qc=a.div`
|
|
1097
|
+
display: flex;
|
|
1098
|
+
height: 1px;
|
|
1099
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
1100
|
+
`;function _t({kind:e,isScrolling:n}){switch(e){case"account_class_row_separator":return t.jsx(Uc,{isScrolling:n});case"section_row_separator":case"vendor_separator":return t.jsx(qc,{isScrolling:n});case"heading_row_separator":return null}}const Jc=a.div`
|
|
1101
|
+
position: relative;
|
|
1102
|
+
`,Xc=a.div`
|
|
1103
|
+
height: ${e=>e.height}px;
|
|
1104
|
+
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1105
|
+
width: 1px;
|
|
1106
|
+
`;a.div`
|
|
1107
|
+
height: 39px;
|
|
1108
|
+
width: 2px;
|
|
1109
|
+
`;const Qc=a.div`
|
|
1110
|
+
position: relative;
|
|
1111
|
+
margin-right: ${s.sp3};
|
|
1112
|
+
&::after {
|
|
1113
|
+
content: "";
|
|
1114
|
+
position: absolute;
|
|
1115
|
+
top: 20px;
|
|
1116
|
+
border-top: 1px solid ${e=>e.theme.colors.grey1};
|
|
1117
|
+
width: 18px;
|
|
1118
|
+
}
|
|
1119
|
+
`,Zc=a.div`
|
|
1120
|
+
height: ${s.sp6};
|
|
1121
|
+
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1122
|
+
width: 1px;
|
|
1123
|
+
`,es=a.div`
|
|
1124
|
+
position: relative;
|
|
1125
|
+
margin-right: ${s.sp3};
|
|
1126
|
+
&::after {
|
|
1127
|
+
content: "";
|
|
1128
|
+
position: absolute;
|
|
1129
|
+
top: ${e=>e.height}px;
|
|
1130
|
+
border-top: 1px solid ${e=>e.theme.colors.grey1};
|
|
1131
|
+
width: 18px;
|
|
1132
|
+
}
|
|
1133
|
+
`,ts=a.div`
|
|
1134
|
+
height: ${e=>e.height}px;
|
|
1135
|
+
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1136
|
+
margin-bottom: ${e=>e.height}px;
|
|
1137
|
+
width: 1px;
|
|
1138
|
+
`,qi=({height:e})=>t.jsx(Jc,{children:t.jsx(Xc,{height:e})}),ns=({height:e})=>t.jsx(es,{height:e,children:t.jsx(ts,{height:e})}),is=()=>t.jsx(Qc,{children:t.jsx(Zc,{})}),j={balanceHeight:s.sp4,balanceHeaderWidth:"126px",balanceWidth:"128px",balanceLeftMargin:"12px",statusLeftMargin:"12px",titleWidth:"685px",vendorContainerWidth:"628px",sectionContainerWidth:"685px",varianceHeaderContainerWidth:"182px",varianceContainerWidth:"184px",statusContainerWidth:"144px",sortIconDimension:"12px",categoryClassContainerWidth:"685px",categoryClassHeaderWidth:"250px",categoryClassValueWidth:"250px",lineComponentHeight:39,lineLComponentHeight:19.5,vendorLineComponentHeight:16,rectangularContainerWidth:128,largeRectangularContainerWidth:168,titleWidthMedium:"180px",categoryRowsSkeletonContainerWidth:"300px",varianceRowSkeletonContainerWidth:"210px",titleWidthSmall:"128px"};function 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 os(e){return["section","flux_vendor_account_class_row","flux_vendor_row"].includes(e)}const Fn=B.getLocalizedStrings(),rs=a.div`
|
|
1139
|
+
display: flex;
|
|
1140
|
+
flex-shrink: 0;
|
|
1141
|
+
width: ${j.varianceContainerWidth};
|
|
1142
|
+
min-width: ${j.varianceContainerWidth};
|
|
1143
|
+
margin-left: 12px;
|
|
1144
|
+
gap: ${s.sp1};
|
|
1145
|
+
flex-direction: row;
|
|
1146
|
+
justify-content: flex-end;
|
|
1147
|
+
text-align: center;
|
|
1148
|
+
`,as=a.div`
|
|
1149
|
+
height: ${s.sp4};
|
|
1150
|
+
border-radius: ${s.sp1};
|
|
1151
|
+
padding: 2px ${s.sp1};
|
|
1152
|
+
color: ${e=>e.textColor.hex()};
|
|
1153
|
+
`,ls=a.div`
|
|
1154
|
+
border-radius: ${s.sp1};
|
|
1155
|
+
padding: 2px ${s.sp1};
|
|
1156
|
+
height: ${s.sp4};
|
|
1157
|
+
justify-content: center;
|
|
1158
|
+
text-align: center;
|
|
1159
|
+
color: ${e=>e.textColor.hex()};
|
|
1160
|
+
background-color: ${e=>e.bgColor.hex()};
|
|
1161
|
+
`,lt=({amount:e,percentage:n,currency:i})=>{const o=ce();return t.jsxs(rs,{children:[t.jsx(as,{textColor:e>0?new $(o.colors.brandColorGoldDark):new $(o.colors.success),children:U("0,0",Uo(Math.abs(e),i.currencyCode,i.currencySymbol))}),t.jsx(ls,{textColor:e>0?new $(o.colors.brandColorGoldDark):new $(o.colors.success),bgColor:e>0?new $(Z.brandColorGoldLight):new $(Z.successLight),children:`${Po(Math.abs(n)).format(Fn.common.numberFormat.roundedOff)}${Fn.common.strings.percentage}`})]})},zn=B.getLocalizedStrings(),cs=a.div`
|
|
1162
|
+
display: flex;
|
|
1163
|
+
flex: 1 1 auto;
|
|
1164
|
+
width: fit-content;
|
|
1165
|
+
min-width: 100%;
|
|
1166
|
+
flex-direction: column;
|
|
1167
|
+
`,ss=a.div`
|
|
1168
|
+
display: flex;
|
|
1169
|
+
flex: 1 1 auto;
|
|
1170
|
+
flex-flow: row;
|
|
1171
|
+
justify-content: flex-start;
|
|
1172
|
+
align-items: center;
|
|
1173
|
+
width: 100%;
|
|
1174
|
+
color: ${e=>e.isHoveredByParent?e.theme.colors.primary:e.theme.colors.hero};
|
|
1175
|
+
&:hover {
|
|
1176
|
+
color: ${e=>e.theme.colors.primary};
|
|
1177
|
+
}
|
|
1178
|
+
`,Xi=a.div`
|
|
1179
|
+
display: flex;
|
|
1180
|
+
flex-direction: column;
|
|
1181
|
+
`,Qi=a.div`
|
|
1182
|
+
display: flex;
|
|
1183
|
+
height: ${s.sp4};
|
|
1184
|
+
`,ds=a.div`
|
|
1185
|
+
display: flex;
|
|
1186
|
+
flex-direction: row;
|
|
1187
|
+
justify-content: flex-start;
|
|
1188
|
+
`,hs=a(_)`
|
|
1189
|
+
min-width: ${j.balanceWidth};
|
|
1190
|
+
max-width: ${j.balanceWidth};
|
|
1191
|
+
text-align: right;
|
|
1192
|
+
margin-left: 12px;
|
|
1193
|
+
`,us=a.div`
|
|
1194
|
+
display: flex;
|
|
1195
|
+
flex-direction: column;
|
|
1196
|
+
flex-shrink: 2;
|
|
1197
|
+
flex-grow: 1;
|
|
1198
|
+
align-items: center;
|
|
1199
|
+
width: ${j.categoryClassContainerWidth};
|
|
1200
|
+
max-width: ${j.categoryClassContainerWidth};
|
|
1201
|
+
padding-left: 67.5px;
|
|
1202
|
+
${({isSticky:e})=>e?P`
|
|
1203
|
+
position: sticky;
|
|
1204
|
+
top: ${s.sp0};
|
|
1205
|
+
left: ${s.sp0};
|
|
1206
|
+
display: flex;
|
|
1207
|
+
`:null}
|
|
1208
|
+
`,gs=a.div`
|
|
1209
|
+
display: flex;
|
|
1210
|
+
height: ${s.sp4};
|
|
1211
|
+
width: 100%;
|
|
1212
|
+
`,ps=a.div`
|
|
1213
|
+
display: flex;
|
|
1214
|
+
flex-direction: row;
|
|
1215
|
+
flex-shrink: 2;
|
|
1216
|
+
flex-grow: 1;
|
|
1217
|
+
align-items: center;
|
|
1218
|
+
width: 100%;
|
|
1219
|
+
`,fs=a(we)`
|
|
1220
|
+
display: flex;
|
|
1221
|
+
width: ${j.categoryClassHeaderWidth};
|
|
1222
|
+
margin-left: ${s.sp3};
|
|
1223
|
+
color: ${e=>e.theme.colors.hero};
|
|
1224
|
+
`,xs=a(we)`
|
|
1225
|
+
display: flex;
|
|
1226
|
+
width: ${j.categoryClassHeaderWidth};
|
|
1227
|
+
margin-left: ${s.sp4};
|
|
1228
|
+
color: ${e=>e.theme.colors.hero};
|
|
1229
|
+
`,ms=a(_)`
|
|
1230
|
+
clear: both;
|
|
1231
|
+
display: flex;
|
|
1232
|
+
overflow: hidden;
|
|
1233
|
+
white-space: nowrap;
|
|
1234
|
+
text-overflow: ellipsis;
|
|
1235
|
+
text-align: left;
|
|
1236
|
+
margin-left: 2px;
|
|
1237
|
+
width: ${j.categoryClassValueWidth};
|
|
1238
|
+
max-width: ${j.categoryClassValueWidth};
|
|
1239
|
+
`,ws=a(_)`
|
|
1240
|
+
display: flex;
|
|
1241
|
+
align-items: center;
|
|
1242
|
+
overflow: hidden;
|
|
1243
|
+
white-space: nowrap;
|
|
1244
|
+
text-overflow: ellipsis;
|
|
1245
|
+
text-align: left;
|
|
1246
|
+
margin-left: ${s.sp4};
|
|
1247
|
+
margin-right: ${s.sp3};
|
|
1248
|
+
width: ${j.categoryClassValueWidth};
|
|
1249
|
+
max-width: ${j.categoryClassValueWidth};
|
|
1250
|
+
`,ys=a.div`
|
|
1251
|
+
display: flex;
|
|
1252
|
+
margin-left: ${s.sp7};
|
|
1253
|
+
margin-right: calc(
|
|
1254
|
+
${j.statusContainerWidth} +
|
|
1255
|
+
${j.statusLeftMargin}
|
|
1256
|
+
);
|
|
1257
|
+
`,bs=a.div`
|
|
1258
|
+
position: sticky;
|
|
1259
|
+
left: 0;
|
|
1260
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1261
|
+
display: flex;
|
|
1262
|
+
`,ks=a.div`
|
|
1263
|
+
overflow-x: auto;
|
|
1264
|
+
display: flex;
|
|
1265
|
+
flex: 1;
|
|
1266
|
+
justify-content: flex-end;
|
|
1267
|
+
`,js=({isBalanceRowFirstNode:e=!1,balance:n})=>{const i=n!=null;return t.jsxs(Xi,{children:[e?t.jsx(Qi,{}):null,t.jsx(ds,{children:t.jsx(hs,{isClickable:i,children:q(n)})})]})};function Ss({varianceAmount:e,variancePercentage:n,currency:i,isSticky:o,balances:r,isScrolling:l,nodeMetadata:c,isLeaf:d,isLastNode:h,accountAndClass:u,isHoveredByParent:p}){const{common:{strings:{hyphen:g}}}=B.getLocalizedStrings(),f=u.accountBase?.accountDescription?u.accountBase?.accountDescription:g,x=u.accountBase?.accountName?u.accountBase?.accountName:f,b=u.classBase?.className?u.classBase?.className:g,y=c?.accountAndClassRowMetadata.isLastNode;return t.jsxs(cs,{children:[t.jsxs(ss,{style:{cursor:"default"},isHoveredByParent:p,children:[t.jsx(bs,{children:t.jsxs(us,{className:"flux-class-and-account-value-container",isSticky:o,children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(gs,{children:[t.jsx(qi,{height:j.lineComponentHeight}),t.jsx(fs,{children:zn.common.texts.category}),t.jsx(xs,{children:zn.common.texts.class})]}),t.jsxs(ps,{children:[y===!0?t.jsx(ns,{height:j.lineLComponentHeight}):t.jsx(is,{}),t.jsx(ms,{title:x,children:x}),t.jsx(ws,{title:b,children:b})]})]})}),t.jsx(ks,{children:t.jsxs(ys,{children:[r.map((C,S)=>t.jsx(js,{balance:C,isBalanceRowFirstNode:c?.accountAndClassRowMetadata.isFirstNode},S)),t.jsxs(Xi,{children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsx(Qi,{}),t.jsx(lt,{amount:e,percentage:n,currency:i})]})]})})]}),t.jsx(Cs,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:c?.isVendorLastChild??!0})]})}function Cs({isScrolling:e,isLastNode:n,isParentLastChild:i}){return n&&i?t.jsx(_t,{isScrolling:e,kind:"vendor_separator"}):n?t.jsx(_t,{isScrolling:e,kind:"account_class_row_separator"}):null}function _s(){return t.jsxs(vs,{children:[t.jsxs(Ls,{children:[t.jsxs(ke,{width:j.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})]}),t.jsx(ke,{width:j.categoryRowsSkeletonContainerWidth,children:t.jsx(H,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})})]}),t.jsxs($s,{children:[t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(ke,{width:j.varianceRowSkeletonContainerWidth,children:[t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}}),t.jsx(H,{width:w[7],height:w[4],style:{display:"flex",alignItems:"flex-start",marginLeft:s.sp1}})]}),t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const vs=a.div`
|
|
1268
|
+
display: flex;
|
|
1269
|
+
flex-direction: row;
|
|
1270
|
+
width: 100%;
|
|
1271
|
+
margin-left: ${s.sp8};
|
|
1272
|
+
.vendor-title {
|
|
1273
|
+
justify-content: flex-start;
|
|
1274
|
+
}
|
|
1275
|
+
`,ke=a.div`
|
|
1276
|
+
display: flex;
|
|
1277
|
+
flex-direction: row;
|
|
1278
|
+
align-items: center;
|
|
1279
|
+
min-width: ${e=>e.width};
|
|
1280
|
+
color: ${e=>e.theme.colors.primary};
|
|
1281
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1282
|
+
justify-content: flex-end;
|
|
1283
|
+
|
|
1284
|
+
:last-of-type {
|
|
1285
|
+
justify-content: center;
|
|
1286
|
+
}
|
|
1287
|
+
`,$s=a.div`
|
|
1288
|
+
display: flex;
|
|
1289
|
+
`,Ls=a.div`
|
|
1290
|
+
display: flex;
|
|
1291
|
+
width: ${j.vendorContainerWidth};
|
|
1292
|
+
position: sticky;
|
|
1293
|
+
left: ${s.sp8};
|
|
1294
|
+
top: 0;
|
|
1295
|
+
z-index: 10;
|
|
1296
|
+
`,As=a.div`
|
|
1297
|
+
display: flex;
|
|
1298
|
+
flex: 1 1 auto;
|
|
1299
|
+
width: fit-content;
|
|
1300
|
+
min-width: 100%;
|
|
1301
|
+
flex-direction: column;
|
|
1302
|
+
height: ${e=>e.heightValue}px;
|
|
1303
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1304
|
+
`,Bs=a.div`
|
|
1305
|
+
display: flex;
|
|
1306
|
+
flex: 1 1 auto;
|
|
1307
|
+
flex-flow: row;
|
|
1308
|
+
justify-content: flex-start;
|
|
1309
|
+
align-items: center;
|
|
1310
|
+
`,Ws=a.div`
|
|
1311
|
+
display: flex;
|
|
1312
|
+
flex-direction: row;
|
|
1313
|
+
justify-content: flex-start;
|
|
1314
|
+
`,Os=a(_)`
|
|
1315
|
+
max-width: ${j.balanceWidth};
|
|
1316
|
+
min-width: ${j.balanceWidth};
|
|
1317
|
+
text-align: right;
|
|
1318
|
+
margin-left: ${j.balanceLeftMargin};
|
|
1319
|
+
color: ${({color:e})=>e};
|
|
1320
|
+
`,Ms=a.div`
|
|
1321
|
+
display: flex;
|
|
1322
|
+
flex-direction: row;
|
|
1323
|
+
flex-shrink: 2;
|
|
1324
|
+
align-items: center;
|
|
1325
|
+
height: 100%;
|
|
1326
|
+
width: ${j.sectionContainerWidth};
|
|
1327
|
+
min-width: ${j.sectionContainerWidth};
|
|
1328
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1329
|
+
${({isSticky:e})=>e&&P`
|
|
1330
|
+
position: sticky;
|
|
1331
|
+
top: ${s.sp0};
|
|
1332
|
+
left: ${s.sp0};
|
|
1333
|
+
`}
|
|
1334
|
+
`,Ns=a(_)`
|
|
1335
|
+
clear: both;
|
|
1336
|
+
display: inline-block;
|
|
1337
|
+
overflow: hidden;
|
|
1338
|
+
white-space: nowrap;
|
|
1339
|
+
text-overflow: ellipsis;
|
|
1340
|
+
text-align: left;
|
|
1341
|
+
margin-left: ${s.sp2};
|
|
1342
|
+
color: ${({color:e})=>e};
|
|
1343
|
+
`,Is=a(Tt)`
|
|
1344
|
+
color: ${e=>e.theme.colors.primary};
|
|
1345
|
+
width: ${s.sp3};
|
|
1346
|
+
height: ${s.sp3};
|
|
1347
|
+
`,Ps=a.div`
|
|
1348
|
+
display: flex;
|
|
1349
|
+
&:hover {
|
|
1350
|
+
.flux-section-checkbox {
|
|
1351
|
+
background-color: transparent;
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
`,Fs=a.div`
|
|
1355
|
+
display: flex;
|
|
1356
|
+
width: ${s.sp8};
|
|
1357
|
+
`,zs=a.div`
|
|
1358
|
+
display: flex;
|
|
1359
|
+
margin-left: ${s.sp7};
|
|
1360
|
+
flex: 1 1 auto;
|
|
1361
|
+
justify-content: flex-end;
|
|
1362
|
+
margin-right: calc(
|
|
1363
|
+
${j.statusContainerWidth} +
|
|
1364
|
+
${j.statusLeftMargin}
|
|
1365
|
+
);
|
|
1366
|
+
`,Ts=({balance:e,color:n})=>t.jsx(Ws,{children:t.jsx(Os,{color:n,children:q(e)})}),Vs=Ho.memo(function({currency:e,sectionId:n,selectedSectionsIds:i,backgroundColor:o,isSticky:r,treeNodeId:l,height:c,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:p,variancePercentage:g,sectionColor:f,isScrolling:x,isOpen:b,isLeaf:y,idsForReview:C,sectionToggled:S,onSectionCheckboxClick:A}){const L=O(),[W,F]=N.useState(C.length>0),[z,K]=N.useState(!1),E=i.includes(n),Y=!y,J=C.length===on&&!E,he=d?.[0]?.toUpperCase()??"",Q=N.useCallback(ie=>{A?.(n,ie.target.checked)},[n,A]);return t.jsxs(As,{heightValue:c,bgColor:o,children:[t.jsxs(Bs,{style:{cursor:Y?"pointer":"default"},onClick:()=>S?.(l),onMouseOver:()=>{K(!0),F(!0)},onMouseLeave:()=>{K(!1),C.length===0&&F(!1)},children:[t.jsxs(Ms,{className:"flux-section-name-container",isSticky:r,windowSize:L,bgColor:o,children:[h&&W&&b?t.jsx(Ps,{children:t.jsx(It,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox",icon:t.jsx(Pt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Is,{}),checked:E,id:l,disabled:J,onChange:Q,onClick:ie=>ie.stopPropagation(),style:{padding:"20px",pointerEvents:J?"none":"auto"}})}):t.jsx(Fs,{}),t.jsx(ye,{color:$(f),showCollapsedIcon:!b,showIcon:z&&Y,firstLetter:he}),t.jsx(Ns,{color:f.toString(),children:d})]}),t.jsxs(zs,{children:[u.map((ie,Se)=>t.jsx(Ts,{sectionName:d,balance:ie,color:f.toString()},Se)),t.jsx(lt,{amount:p,percentage:g,currency:e})]})]}),t.jsx(Ds,{isScrolling:x,isLeaf:y,isOpen:b})]})});function Ds({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(_t,{isScrolling:e,kind:"section_row_separator"}):null}function Gs(){const e=O();return t.jsxs(Rs,{windowSize:e,children:[t.jsx(_e,{windowSize:e,width:j.vendorContainerWidth,marginRight:0,children:t.jsx(H,{width:w[9],height:w[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(_e,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(H,{width:128,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(_e,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(_e,{windowSize:e,width:j.varianceRowSkeletonContainerWidth,children:t.jsx(H,{width:184,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(_e,{windowSize:e,width:j.titleWidthSmall,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})})]})}const Rs=a.div`
|
|
1367
|
+
display: flex;
|
|
1368
|
+
flex-direction: row;
|
|
1369
|
+
width: 100%;
|
|
1370
|
+
margin-left: ${s.sp8};
|
|
1371
|
+
`,_e=a.div`
|
|
1372
|
+
display: flex;
|
|
1373
|
+
flex-direction: row;
|
|
1374
|
+
align-items: center;
|
|
1375
|
+
margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:s.sp4};
|
|
1376
|
+
min-width: ${e=>e.width};
|
|
1377
|
+
color: ${e=>e.theme.colors.primary};
|
|
1378
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1379
|
+
justify-content: flex-end;
|
|
1380
|
+
:first-of-type {
|
|
1381
|
+
justify-content: flex-start;
|
|
1382
|
+
}
|
|
1383
|
+
`,{common:Es,expenseAutomation:{fluxAnalysis:Hs},vendors:{opExByVendor:Ks}}=B.getLocalizedStrings(),Ys=a.div`
|
|
1384
|
+
display: flex;
|
|
1385
|
+
flex: 1 1 auto;
|
|
1386
|
+
width: fit-content;
|
|
1387
|
+
min-width: 100%;
|
|
1388
|
+
height: ${e=>`${e.heightValue}px`};
|
|
1389
|
+
flex-flow: row;
|
|
1390
|
+
justify-content: flex-start;
|
|
1391
|
+
align-items: center;
|
|
1392
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1393
|
+
`,vt=a.div`
|
|
1394
|
+
display: flex;
|
|
1395
|
+
max-height: ${s.sp8};
|
|
1396
|
+
min-height: ${s.sp8};
|
|
1397
|
+
min-width: ${e=>e.width!=null?e.width:j.balanceHeaderWidth};
|
|
1398
|
+
justify-content: center;
|
|
1399
|
+
align-items: center;
|
|
1400
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1401
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1402
|
+
border-radius: ${s.sp2};
|
|
1403
|
+
margin-left: ${j.balanceLeftMargin};
|
|
1404
|
+
color: ${e=>e.theme.colors.primary};
|
|
1405
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
1406
|
+
`,Us=a(_)`
|
|
1407
|
+
display: flex;
|
|
1408
|
+
flex-direction: row;
|
|
1409
|
+
justify-content: center;
|
|
1410
|
+
align-items: center;
|
|
1411
|
+
height: ${j.balanceHeight};
|
|
1412
|
+
max-width: ${j.balanceHeaderWidth};
|
|
1413
|
+
width: 138px;
|
|
1414
|
+
text-align: center;
|
|
1415
|
+
`,qs=a.div`
|
|
1416
|
+
display: flex;
|
|
1417
|
+
cursor: pointer;
|
|
1418
|
+
`,Js=a.div`
|
|
1419
|
+
display: flex;
|
|
1420
|
+
cursor: pointer;
|
|
1421
|
+
justify-content: center;
|
|
1422
|
+
align-items: center;
|
|
1423
|
+
color: ${e=>e.theme.colors.primary};
|
|
1424
|
+
`,Xs=a.div`
|
|
1425
|
+
display: flex;
|
|
1426
|
+
flex-direction: row;
|
|
1427
|
+
z-index: 1;
|
|
1428
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1429
|
+
padding-left: ${s.sp8};
|
|
1430
|
+
${({isSticky:e})=>e?P`
|
|
1431
|
+
top: ${s.sp0};
|
|
1432
|
+
left: ${s.sp0};
|
|
1433
|
+
display: flex;
|
|
1434
|
+
position: sticky;
|
|
1435
|
+
`:null};
|
|
1436
|
+
`,Qs=a.div`
|
|
1437
|
+
height: ${s.sp8};
|
|
1438
|
+
display: flex;
|
|
1439
|
+
flex-direction: row;
|
|
1440
|
+
align-items: center;
|
|
1441
|
+
min-width: ${j.vendorContainerWidth};
|
|
1442
|
+
color: ${e=>e.theme.colors.primary};
|
|
1443
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1444
|
+
`,Zs=a(_)`
|
|
1445
|
+
display: flex;
|
|
1446
|
+
gap: 6px;
|
|
1447
|
+
align-items: baseline;
|
|
1448
|
+
color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
|
|
1449
|
+
`,$t=a.div`
|
|
1450
|
+
display: flex;
|
|
1451
|
+
cursor: pointer;
|
|
1452
|
+
`,Lt=a.div`
|
|
1453
|
+
color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
|
|
1454
|
+
`,At=a(Dt)`
|
|
1455
|
+
width: ${j.sortIconDimension};
|
|
1456
|
+
height: ${j.sortIconDimension};
|
|
1457
|
+
margin-left: ${s.sp2};
|
|
1458
|
+
margin-top: ${s.sp1};
|
|
1459
|
+
`,Bt=a(Gt)`
|
|
1460
|
+
width: ${j.sortIconDimension};
|
|
1461
|
+
height: ${j.sortIconDimension};
|
|
1462
|
+
margin-left: ${s.sp2};
|
|
1463
|
+
margin-top: ${s.sp1};
|
|
1464
|
+
`,ed=a.div`
|
|
1465
|
+
display: flex;
|
|
1466
|
+
margin-left: ${s.sp7};
|
|
1467
|
+
flex: 1 1 auto;
|
|
1468
|
+
justify-content: flex-end;
|
|
1469
|
+
`,td=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(vt,{isClickable:!1,children:t.jsx(Us,{children:Pe(e,n,i)})}),nd=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(td,{firstMonthOfFY:e,timeframeTick:n,timeframe:i}),id=({sortKey:e="vendor",sortOrder:n="ascending",isBulkSelected:i,onSortOrderChanged:o})=>{const r=()=>{o(n==="ascending"?"descending":"ascending","vendor")},l=e==="vendor"?n:"ascending";return t.jsx(Zs,{isBulkSelected:i,isSortedByKey:e==="vendor",children:t.jsxs($t,{onClick:r,"data-testid":m("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Ks.vendor,t.jsx(Lt,{isBulkSelected:i,isSortedByKey:e==="vendor",children:l==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})})};function od({backgroundColor:e,height:n,isBulkSelected:i,sortKey:o="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:c,timeframeTicks:d,onSortOrderChanged:h}){const u=O(),p=(g,f)=>{h?.(g,f)};return t.jsxs(Ys,{heightValue:n,bgColor:e,children:[t.jsx(Xs,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(Qs,{windowSize:u,children:t.jsx(id,{sortKey:o,sortOrder:r,isBulkSelected:i,onSortOrderChanged:p})})}),t.jsxs(ed,{children:[d.map((g,f)=>t.jsx(nd,{firstMonthOfFY:l,timeframeTick:g,timeframe:c},f)),t.jsx(vt,{isClickable:!1,width:j.varianceHeaderContainerWidth,children:t.jsxs($t,{onClick:()=>h?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":m("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(qs,{children:Hs.variance}),t.jsx(Lt,{isBulkSelected:i,isSortedByKey:o==="variance",children:(o==="variance"?r:"ascending")==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})}),t.jsx(vt,{isClickable:!1,width:j.statusContainerWidth,children:t.jsxs($t,{onClick:()=>{h?.(r==="ascending"?"descending":"ascending","status")},"data-testid":m("flux-analysis-report-timeframe-row-status"),children:[t.jsx(Js,{children:Es.texts.reviewStatus}),t.jsx(Lt,{isBulkSelected:i,isSortedByKey:o==="status",children:(o==="status"?r:"ascending")==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})})]})]})}const rd=a.div`
|
|
1470
|
+
display: flex;
|
|
1471
|
+
flex: 1 1 auto;
|
|
1472
|
+
width: fit-content;
|
|
1473
|
+
min-width: 100%;
|
|
1474
|
+
|
|
1475
|
+
flex-direction: column;
|
|
1476
|
+
height: ${e=>`${e.heightValue}px`};
|
|
1477
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1478
|
+
`,ad=a.div`
|
|
1479
|
+
cursor: default;
|
|
1480
|
+
user-select: none;
|
|
1481
|
+
display: flex;
|
|
1482
|
+
flex: 1 1 auto;
|
|
1483
|
+
flex-flow: row;
|
|
1484
|
+
justify-content: flex-start;
|
|
1485
|
+
align-items: center;
|
|
1486
|
+
`,ld=a.div`
|
|
1487
|
+
display: flex;
|
|
1488
|
+
flex-direction: row;
|
|
1489
|
+
`,cd=a.div`
|
|
1490
|
+
display: flex;
|
|
1491
|
+
flex-direction: row;
|
|
1492
|
+
justify-content: flex-start;
|
|
1493
|
+
align-items: center;
|
|
1494
|
+
margin-left: ${j.balanceLeftMargin};
|
|
1495
|
+
`,sd=a(ne)`
|
|
1496
|
+
user-select: none;
|
|
1497
|
+
min-width: ${j.balanceWidth};
|
|
1498
|
+
max-width: ${j.balanceWidth};
|
|
1499
|
+
text-align: right;
|
|
1500
|
+
color: ${e=>e.theme.colors.hero};
|
|
1501
|
+
border: 1px solid transparent;
|
|
1502
|
+
`,dd=a.div`
|
|
1503
|
+
display: flex;
|
|
1504
|
+
flex-direction: row;
|
|
1505
|
+
align-items: center;
|
|
1506
|
+
flex-shrink: 2;
|
|
1507
|
+
flex-grow: 1;
|
|
1508
|
+
width: ${j.titleWidth};
|
|
1509
|
+
max-width: ${j.titleWidth};
|
|
1510
|
+
height: 100%;
|
|
1511
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1512
|
+
position: sticky;
|
|
1513
|
+
left: ${s.sp8};
|
|
1514
|
+
top: 0;
|
|
1515
|
+
z-index: 10;
|
|
1516
|
+
`,hd=a(ne)`
|
|
1517
|
+
user-select: none;
|
|
1518
|
+
clear: both;
|
|
1519
|
+
display: inline-block;
|
|
1520
|
+
overflow: hidden;
|
|
1521
|
+
white-space: nowrap;
|
|
1522
|
+
text-overflow: ellipsis;
|
|
1523
|
+
text-align: left;
|
|
1524
|
+
color: ${e=>e.theme.colors.primary};
|
|
1525
|
+
`,ud=a.div`
|
|
1526
|
+
display: flex;
|
|
1527
|
+
width: ${j.statusContainerWidth};
|
|
1528
|
+
min-width: ${j.statusContainerWidth};
|
|
1529
|
+
justify-content: center;
|
|
1530
|
+
flex-direction: row;
|
|
1531
|
+
margin-left: ${j.statusLeftMargin};
|
|
1532
|
+
`,gd=a.div`
|
|
1533
|
+
display: flex;
|
|
1534
|
+
margin-left: ${s.sp7};
|
|
1535
|
+
flex: 1 1 auto;
|
|
1536
|
+
justify-content: flex-end;
|
|
1537
|
+
`,pd=({balance:e})=>t.jsx(cd,{children:t.jsx(sd,{children:U("0,0",e?.balance)})});function fd({type:e,height:n,title:i,totalBalances:o,varianceAmount:r,variancePercentage:l,currency:c,backgroundColor:d}){return t.jsx(rd,{"data-testid":m("total-row-root-container"),heightValue:n,bgColor:d,children:t.jsxs(ad,{"data-testid":m("total-row-container"),children:[t.jsx(dd,{className:"flux-total-row",children:t.jsx(hd,{children:i})}),t.jsxs(gd,{children:[t.jsx(ld,{children:re(e)&&o.map((h,u)=>t.jsx(pd,{balance:h},u))}),t.jsx(lt,{amount:r,percentage:l,currency:c}),t.jsx(ud,{})]})]})})}const xd=a.div`
|
|
1538
|
+
display: flex;
|
|
1539
|
+
flex: 1 1 auto;
|
|
1540
|
+
width: fit-content;
|
|
1541
|
+
min-width: 100%;
|
|
1542
|
+
flex-direction: column;
|
|
1543
|
+
height: ${e=>`${e.heightValue}px`};
|
|
1544
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1545
|
+
`,md=a.div`
|
|
1546
|
+
user-select: none;
|
|
1547
|
+
display: flex;
|
|
1548
|
+
flex: 1 1 auto;
|
|
1549
|
+
flex-flow: row;
|
|
1550
|
+
justify-content: flex-start;
|
|
1551
|
+
align-items: center;
|
|
1552
|
+
cursor: pointer;
|
|
1553
|
+
color: ${e=>e.isRowExpanded?e.theme.colors.primary:e.theme.colors.hero};
|
|
1554
|
+
&:hover {
|
|
1555
|
+
color: ${e=>e.theme.colors.primary};
|
|
1556
|
+
.flux-vendor-chevron-icon,
|
|
1557
|
+
.flux-vendor-collapsable-chevron-icon,
|
|
1558
|
+
.flux-vendor-children-count {
|
|
1559
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
.flux-vendor-chevron-icon,
|
|
1563
|
+
.flux-vendor-collapsable-chevron-icon,
|
|
1564
|
+
.flux-vendor-children-count {
|
|
1565
|
+
border: 1px solid
|
|
1566
|
+
${e=>e.shouldHighlight?e.theme.colors.primary:e.theme.colors.hero};
|
|
1567
|
+
}
|
|
1568
|
+
`,wd=a.div`
|
|
1569
|
+
display: flex;
|
|
1570
|
+
flex-direction: row;
|
|
1571
|
+
justify-content: flex-start;
|
|
1572
|
+
align-items: center;
|
|
1573
|
+
margin-left: ${j.balanceLeftMargin};
|
|
1574
|
+
`,yd=a(_)`
|
|
1575
|
+
user-select: none;
|
|
1576
|
+
min-width: ${j.balanceWidth};
|
|
1577
|
+
max-width: ${j.balanceWidth};
|
|
1578
|
+
text-align: right;
|
|
1579
|
+
`,bd=a.div`
|
|
1580
|
+
display: flex;
|
|
1581
|
+
flex-direction: row;
|
|
1582
|
+
align-items: center;
|
|
1583
|
+
flex-shrink: 2;
|
|
1584
|
+
flex-grow: 1;
|
|
1585
|
+
width: ${j.titleWidth};
|
|
1586
|
+
max-width: ${j.titleWidth};
|
|
1587
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1588
|
+
${({isSticky:e})=>e?P`
|
|
1589
|
+
position: -webkit-sticky;
|
|
1590
|
+
position: sticky;
|
|
1591
|
+
top: ${s.sp0};
|
|
1592
|
+
left: ${s.sp0};
|
|
1593
|
+
`:null}
|
|
1594
|
+
`,kd=a(_)`
|
|
1595
|
+
user-select: none;
|
|
1596
|
+
clear: both;
|
|
1597
|
+
display: inline-block;
|
|
1598
|
+
overflow: hidden;
|
|
1599
|
+
white-space: nowrap;
|
|
1600
|
+
text-overflow: ellipsis;
|
|
1601
|
+
text-align: left;
|
|
1602
|
+
`,jd=a.div`
|
|
1603
|
+
display: flex;
|
|
1604
|
+
justify-content: space-between;
|
|
1605
|
+
flex-grow: 1;
|
|
1606
|
+
`,Sd=a.div`
|
|
1607
|
+
display: flex;
|
|
1608
|
+
align-items: center;
|
|
1609
|
+
margin-left: 10px;
|
|
1610
|
+
`;a.div`
|
|
1611
|
+
display: flex;
|
|
1612
|
+
flex-shrink: 0;
|
|
1613
|
+
width: ${j.varianceContainerWidth};
|
|
1614
|
+
min-width: ${j.varianceContainerWidth};
|
|
1615
|
+
margin-left: 12px;
|
|
1616
|
+
gap: ${s.sp1};
|
|
1617
|
+
flex-direction: row;
|
|
1618
|
+
justify-content: flex-end;
|
|
1619
|
+
text-align: center;
|
|
1620
|
+
align-items: center;
|
|
1621
|
+
`;const Cd=a(Fo)`
|
|
1622
|
+
width: 12px;
|
|
1623
|
+
height: 12px;
|
|
1624
|
+
`;a.div`
|
|
1625
|
+
height: ${s.sp4};
|
|
1626
|
+
border-radius: ${s.sp1};
|
|
1627
|
+
padding: 2px ${s.sp1};
|
|
1628
|
+
`;a.div`
|
|
1629
|
+
border-radius: ${s.sp1};
|
|
1630
|
+
padding: 2px ${s.sp1};
|
|
1631
|
+
height: ${s.sp4};
|
|
1632
|
+
justify-content: center;
|
|
1633
|
+
text-align: center;
|
|
1634
|
+
background-color: ${e=>e.bgColor.hex()};
|
|
1635
|
+
`;const _d=a.div`
|
|
1636
|
+
display: flex;
|
|
1637
|
+
margin-left: ${s.sp7};
|
|
1638
|
+
flex: 1 1 auto;
|
|
1639
|
+
justify-content: flex-end;
|
|
1640
|
+
`,vd=a.div`
|
|
1641
|
+
display: flex;
|
|
1642
|
+
flex-direction: column;
|
|
1643
|
+
align-items: center;
|
|
1644
|
+
padding-top: ${e=>e.isNodeOpen?s.sp3:s.sp0};
|
|
1645
|
+
`,$d=a.div`
|
|
1646
|
+
display: flex;
|
|
1647
|
+
width: ${j.statusContainerWidth};
|
|
1648
|
+
min-width: ${j.statusContainerWidth};
|
|
1649
|
+
justify-content: center;
|
|
1650
|
+
flex-direction: row;
|
|
1651
|
+
margin-left: ${j.statusLeftMargin};
|
|
1652
|
+
`,Ld=a(we)`
|
|
1653
|
+
width: ${j.balanceWidth};
|
|
1654
|
+
max-width: ${j.balanceWidth};
|
|
1655
|
+
color: ${e=>e.theme.colors.primary};
|
|
1656
|
+
display: flex;
|
|
1657
|
+
flex: 1 0 auto;
|
|
1658
|
+
flex-direction: column;
|
|
1659
|
+
cursor: pointer;
|
|
1660
|
+
align-items: center;
|
|
1661
|
+
`,Ad=a.div`
|
|
1662
|
+
color: ${e=>e.theme.colors.grey1};
|
|
1663
|
+
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
1664
|
+
padding: ${s.sp0} 6px;
|
|
1665
|
+
border-radius: ${s.sp1};
|
|
1666
|
+
width: fit-content;
|
|
1667
|
+
display: flex;
|
|
1668
|
+
align-items: center;
|
|
1669
|
+
margin-right: ${s.sp2};
|
|
1670
|
+
`,Bd=a(we)`
|
|
1671
|
+
overflow: hidden;
|
|
1672
|
+
text-overflow: ellipsis;
|
|
1673
|
+
`,Wd=a.div`
|
|
1674
|
+
display: flex;
|
|
1675
|
+
width: ${s.sp8};
|
|
1676
|
+
height: ${s.sp8};
|
|
1677
|
+
&:hover {
|
|
1678
|
+
.flux-vendor-checkbox {
|
|
1679
|
+
background-color: transparent;
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
`,Od=a(Tt)`
|
|
1683
|
+
color: ${e=>e.theme.colors.primary};
|
|
1684
|
+
width: ${s.sp3};
|
|
1685
|
+
height: ${s.sp3};
|
|
1686
|
+
`,Md=a(we)`
|
|
1687
|
+
display: flex;
|
|
1688
|
+
flex-direction: row;
|
|
1689
|
+
align-items: center;
|
|
1690
|
+
gap: 2px;
|
|
1691
|
+
color: ${e=>e.theme.colors.success};
|
|
1692
|
+
`,Nd=a(Zn)`
|
|
1693
|
+
width: 12px;
|
|
1694
|
+
height: 12px;
|
|
1695
|
+
`,Tn=a(Qn)`
|
|
1696
|
+
margin-left: 2px;
|
|
1697
|
+
width: 12px;
|
|
1698
|
+
height: 12px;
|
|
1699
|
+
`,Id=a(Le)`
|
|
1700
|
+
display: flex;
|
|
1701
|
+
border-radius: 50%;
|
|
1702
|
+
width: ${s.sp4};
|
|
1703
|
+
height: ${s.sp4};
|
|
1704
|
+
text-align: center;
|
|
1705
|
+
align-items: center;
|
|
1706
|
+
justify-content: center;
|
|
1707
|
+
`,Pd=a(Le)`
|
|
1708
|
+
display: flex;
|
|
1709
|
+
border-radius: ${s.sp1};
|
|
1710
|
+
width: ${s.sp4};
|
|
1711
|
+
height: ${s.sp4};
|
|
1712
|
+
text-align: center;
|
|
1713
|
+
align-items: center;
|
|
1714
|
+
justify-content: center;
|
|
1715
|
+
margin-right: ${s.sp4};
|
|
1716
|
+
`,Fd=a(Le)`
|
|
1717
|
+
display: flex;
|
|
1718
|
+
border-radius: 100px;
|
|
1719
|
+
width: 18px;
|
|
1720
|
+
height: 18px;
|
|
1721
|
+
justify-content: center;
|
|
1722
|
+
align-items: center;
|
|
1723
|
+
margin-left: ${s.sp1};
|
|
1724
|
+
`,{common:Vn,expenseAutomation:zd}=B.getLocalizedStrings(),Td=({balance:e})=>{const n=yd;return t.jsx(wd,{children:t.jsx(n,{children:q(e)})})};function Vd({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:i,isSticky:o,treeNodeId:r,height:l,leftChevron:c,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:p,reviewedByUser:g,status:f,vendor:x,isOpen:b,childrenCount:y,setHoveredParentId:C,onClick:S,handleRedirectToVendorDetailPage:A,updateOperatingExpensesIdsForReview:L}){const[W,F]=N.useState(!1),[z,K]=N.useState(n.length>0),E=n.includes(e),Y=n.includes(e),J=c==="collapsed",he=n.length===on&&E===!1,Q=kd,ie=ae=>{let ue=n;ae.target.checked===!0?ue=[...ue,e]:ue=ue.filter(De=>De!==e),L?.(ue)},Se=()=>{A?.(x)};return t.jsx(xd,{heightValue:l,bgColor:i,children:t.jsxs(md,{shouldHighlight:Y,isRowExpanded:b,onClick:()=>S?.(r),onMouseOver:()=>{F(!0),K(!0),C?.(x.id)},onMouseLeave:()=>{F(!1),n.length===0&&K(!1),C?.(null)},children:[t.jsxs(bd,{className:"flux-vendor-name-container",bgColor:i,isSticky:o,children:[t.jsx(Wd,{className:"flux-vendor-checkbox-container",children:z?t.jsx(It,{className:"flux-vendor-checkbox",icon:t.jsx(Pt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Od,{}),checked:E,name:x.name,id:e,disabled:he,onChange:ie,onClick:ae=>ae.stopPropagation(),style:{padding:"20px",pointerEvents:he?"none":"auto"}}):null}),t.jsxs(vd,{isNodeOpen:b,children:[W?t.jsx(Id,{className:"flux-vendor-collapsable-chevron-icon",children:b===!1?t.jsx(Tn,{}):t.jsx(Nd,{})}):x.logo!=null?t.jsx(Ft,{photoUrl:x.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(zt,{name:x.name,size:s.sp4}),b?t.jsx(qi,{height:j.vendorLineComponentHeight}):null]}),t.jsxs(jd,{children:[t.jsxs(Sd,{children:[t.jsx(Q,{children:x.name}),b?null:t.jsx(Fd,{className:"flux-vendor-children-count",children:t.jsx(Le,{children:y})})]}),W?t.jsx(N.Fragment,{children:t.jsx(Pd,{className:"flux-vendor-chevron-icon",onClick:Se,"data-testid":m("flux-analysis-report-vendorElement-row"),children:t.jsx(Tn,{})})}):null]})]}),t.jsxs(_d,{children:[p.map((ae,ue)=>t.jsx(Td,{balance:ae,collapsed:J},ue)),t.jsx(lt,{amount:d,percentage:h,currency:u}),t.jsx($d,{children:f==="Pending Review"?t.jsx(Ad,{children:t.jsx(Bd,{children:Vn.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(Ld,{className:"vendor-flux-analysis-review-info",children:g!=null?t.jsxs(N.Fragment,{children:[t.jsxs(Md,{children:[t.jsx(Cd,{}),zd.fluxAnalysis.reviewedBy]}),t.jsx(Le,{children:Wo(g)})]}):Vn.strings.hyphen})})})]})]})})}const Dn={generalExpense:{color:new $(T.graphColor04),hoverColor:new $(T.graphColor04Dark)},reimbursement:{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)},default:{color:new $(Z.neutralGrey2Dark),hoverColor:new $(Z.neutralGrey2Dark)}},Dd=(e,n)=>e.startsWith("flux_analysis_operating_expense")===!0&&n!=null?Dn[n]:Dn.default,rn=(e,n)=>{const{element:i}=e;return i.kind===n&&i.data!=null},Zi=e=>Yc(e.balancesByMonth),Gd=(e,n,i,o,r,l,c,d,h)=>{if(!rn(n,"flux_vendor_account_class_row"))return null;const u=n.element.data,p=Zi(u),g=n.element.metadata.vendorId;return t.jsx(Ss,{backgroundColor:i,isSticky:o,treeNodeId:e,balances:p,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:u.currency,isScrolling:r,isLeaf:l,isLastNode:c,nodeMetadata:n.element.metadata,accountAndClass:u,onAccountAndClassBalanceClick:()=>h?.(g),isHoveredByParent:d?.hoveredParentId===g})},Rd=(e,n,i,o,r,l,c,d,h,u,p)=>{if(!rn(n,"flux_vendor_row"))return null;const g=n.element.data,f=Zi(g),x=Ji("flux_vendor_row",h),b=y=>{p?.(y),n.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(y)};return t.jsx(Vd,{backgroundColor:i,isSticky:o,treeNodeId:e,fluxAnalysisEntityId:g.fluxAnalysisEntityId,height:x,leftChevron:"collapsed",idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:g.vendor,vendorBalances:f,varianceAmount:g.varianceAmount,variancePercentage:g.variancePercentage,status:g.status,currency:g.currency,isScrolling:r,isOpen:l,isLeaf:c,isLastNode:d,childrenCount:g.vendorAccountsAndClasses.length,onClick:y=>{b?.(y)},reviewedByUser:g.reviewedByUser,updateOperatingExpensesIdsForReview:n.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:n.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},Ed=(e,n,i,o,r,l,c,d,h,u)=>{if(!rn(n,"section"))return null;const p=Dd(n.config.reportId,n.element.sectionType),g=n.element.data,f=x=>{n.config.fluxAnalysisConfig?.onSectionRowClick(x),u?.(x)};return t.jsx(Vs,{backgroundColor:o,isSticky:r,treeNodeId:e,height:i,selectedSectionsIds:n.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:p.color,sectionName:n.element.title,sectionBalances:g.balances,varianceAmount:g.varianceAmount,variancePercentage:g.variancePercentage,currency:g.currency,isScrolling:l,isOpen:c,hasVendors:g.vendors.length>0,isLeaf:d,isLastNode:h,sectionToggled:x=>{f?.(x)},onSectionCheckboxClick:n.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:g.sectionId})},Hd=(e,n,i)=>{if(e.element.kind!=="timeframe_headers")return null;const o=Fe(e.element.data,e.config.displayOrder),r=o.length>0?o[0].balanceTimeFrame:"month",l=o.map(d=>Ie(d)),c=(d,h)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(d,h)};return t.jsx(od,{isSticky:i,height:n,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===on,onSortOrderChanged:c,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},Kd=(e,n)=>{if(e.element.kind!=="total")return null;const i=e.element.data;return t.jsx(fd,{type:"name+balances_actual",title:e.element.title,totalBalances:i.balances,varianceAmount:i.varianceAmount,variancePercentage:i.variancePercentage,currency:i.currency,height:n})},Yd=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(_s,{}),Ud=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Gs,{}),qd=a.div`
|
|
1725
|
+
display: flex;
|
|
1726
|
+
flex: 1 1 auto;
|
|
1727
|
+
width: fit-content;
|
|
1728
|
+
min-width: 100%;
|
|
1729
|
+
flex-direction: column;
|
|
1730
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1731
|
+
`,Jd=a.div`
|
|
1732
|
+
user-select: none;
|
|
1733
|
+
display: flex;
|
|
1734
|
+
flex: 1 1 auto;
|
|
1735
|
+
flex-flow: row;
|
|
1736
|
+
justify-content: flex-start;
|
|
1737
|
+
align-items: center;
|
|
1738
|
+
height: ${e=>e.height}px;
|
|
1739
|
+
margin-left: ${e=>e.level*20}px;
|
|
1740
|
+
`,Xd=a.div`
|
|
1741
|
+
display: flex;
|
|
1742
|
+
flex-direction: row;
|
|
1743
|
+
align-items: center;
|
|
1744
|
+
justify-content: space-between;
|
|
1745
|
+
&:hover {
|
|
1746
|
+
background-color: null;
|
|
1747
|
+
}
|
|
1748
|
+
width: 100%;
|
|
1749
|
+
`,Qd=a(Oo)`
|
|
1750
|
+
width: 100%;
|
|
1751
|
+
display: flex;
|
|
1752
|
+
align-items: center;
|
|
1753
|
+
font-weight: ${e=>e.isSubclass?Sn.regular:Sn.medium};
|
|
1754
|
+
color: ${e=>e.checked?e.theme.colors.primary:e.theme.colors.hero};
|
|
1755
|
+
`,Zd=a(we)`
|
|
1756
|
+
display: flex;
|
|
1757
|
+
color: ${e=>e.theme.colors.primary};
|
|
1758
|
+
align-items: center;
|
|
1759
|
+
flex-direction: row;
|
|
1760
|
+
justify-content: center;
|
|
1761
|
+
height: 18px;
|
|
1762
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
1763
|
+
border-radius: ${s.sp1};
|
|
1764
|
+
margin: 0 ${s.sp5} 0 ${s.sp3};
|
|
1765
|
+
min-width: ${s.sp6};
|
|
1766
|
+
`,eh=a(Tt)`
|
|
1767
|
+
color: ${e=>e.theme.colors.primary};
|
|
1768
|
+
width: ${s.sp3};
|
|
1769
|
+
height: ${s.sp3};
|
|
1770
|
+
`;function th({backgroundColor:e,treeNodeId:n,classId:i,isChecked:o,isDisabled:r,height:l,nestedClass:c,isLeaf:d,showClassAccountNumber:h,onClick:u,onToggleCheck:p}){const[g,f]=N.useState(!1);return t.jsx(qd,{"data-testid":m("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(Jd,{"data-testid":m("name-with-checkbox-row-container",n),height:l,isClickable:!d,onClick:()=>u?.(n),onMouseOver:()=>f(!0),onMouseLeave:()=>f(!1),level:c.classId.length,children:[t.jsx(It,{"data-testid":m("name-with-checkbox-row-checkbox",c.classId.toString()),icon:t.jsx(Pt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(eh,{}),checked:o,name:c.className,id:n,disabled:r,onChange:x=>{p?.(i,x.target.checked)},style:{height:s.sp6}})," ",t.jsx(Xd,{children:t.jsxs(Qd,{"data-testid":m("name-with-checkbox-row-label-container",n),checked:o,isSubclass:c.classId.length>1,children:[t.jsx("label",{"data-testid":m("name-with-checkbox-row-label",c.classId.toString()),style:{flexGrow:2,cursor:"pointer"},onClick:()=>{p?.(i,!o)},children:c.className}),g===!0&&h===!0&&c.accountingClassNumber!=null&&t.jsx(Zd,{children:c.accountingClassNumber})]})})]})})}const nh=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="checkbox_and_name_only")return null;const g=i.element.data,f=i.config.isClassToBeFilteredOut?.(g.classId)===!1;return t.jsx(th,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,classId:g.classId,isChecked:f,isDisabled:!1,height:o,isScrolling:c,nestedClass:g,isOpen:d,isLeaf:h,isLastNode:u,showClassAccountNumber:i.config.showClassAccountNumber,onToggleCheck:p})},M={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,270,270),categoryClassWidth:new V(230,230,240),nameLogoWidth:new V(w[4],w[4]),nameLogoHeight:new V(w[4],w[4])};function ih(e){switch(e){case"timeframe_headers":return w[11];case"vendor_row":return w[6];case"total":return w[8];case"loading_in_progress":return w[6];case"spacer_row":return w[8];case"title_string_only":return w[8];default:return 0}}function oh(e,n){return!1}const rh=a.div`
|
|
1771
|
+
user-select: none;
|
|
1772
|
+
display: flex;
|
|
1773
|
+
flex: 1 1 auto;
|
|
1774
|
+
width: fit-content;
|
|
1775
|
+
min-width: 100%;
|
|
1776
|
+
height: ${e=>e.height}px;
|
|
1777
|
+
flex-flow: row;
|
|
1778
|
+
justify-content: flex-start;
|
|
1779
|
+
align-items: center;
|
|
1780
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1781
|
+
`,ah=a.div`
|
|
1782
|
+
user-select: none;
|
|
1783
|
+
display: flex;
|
|
1784
|
+
flex: 1 1 auto;
|
|
1785
|
+
width: 100vw;
|
|
1786
|
+
min-width: 100%;
|
|
1787
|
+
height: ${e=>e.height}px;
|
|
1788
|
+
flex-flow: row;
|
|
1789
|
+
align-items: center;
|
|
1790
|
+
justify-content: center;
|
|
1791
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1792
|
+
`,lh=a.div`
|
|
1793
|
+
display: flex;
|
|
1794
|
+
flex: 1 0 auto;
|
|
1795
|
+
flex-direction: row;
|
|
1796
|
+
justify-content: flex-end;
|
|
1797
|
+
`,Gn=a(_)`
|
|
1798
|
+
color: ${e=>e.theme.colors.hero};
|
|
1799
|
+
flex-grow: 1;
|
|
1800
|
+
-webkit-box-orient: vertical;
|
|
1801
|
+
justify-content: ${e=>e.isClubbed===!0?"unset":"flex-end"};
|
|
1802
|
+
display: flex;
|
|
1803
|
+
min-width: ${M.balanceWidth};
|
|
1804
|
+
max-width: ${M.balanceWidth};
|
|
1805
|
+
margin-left: ${e=>e.isClubbed===!0?s.sp2:M.balanceLeftMargin};
|
|
1806
|
+
border: 1px solid transparent;
|
|
1807
|
+
`,Rn=a(_)`
|
|
1808
|
+
color: ${e=>e.theme.colors.hero};
|
|
1809
|
+
flex-grow: 1;
|
|
1810
|
+
-webkit-box-orient: vertical;
|
|
1811
|
+
justify-content: "unset";
|
|
1812
|
+
display: flex;
|
|
1813
|
+
min-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
1814
|
+
`,ch=a.div`
|
|
1815
|
+
height: 100%;
|
|
1816
|
+
display: flex;
|
|
1817
|
+
flex-direction: row;
|
|
1818
|
+
align-items: center;
|
|
1819
|
+
min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
1820
|
+
color: ${e=>e.theme.colors.primary};
|
|
1821
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1822
|
+
${({isSticky:e})=>e?P`
|
|
1823
|
+
position: -webkit-sticky;
|
|
1824
|
+
position: sticky;
|
|
1825
|
+
top: ${s.sp0};
|
|
1826
|
+
left: ${s.sp0};
|
|
1827
|
+
z-index: 20;
|
|
1828
|
+
`:null}
|
|
1829
|
+
`;function sh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return l.length>0?t.jsxs(rh,{height:i,bgColor:e,"data-testid":m("opex-vendor-loading-in-progress-row"),children:[t.jsxs(ch,{"data-testid":m("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:c,bgColor:e,children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(Gn,{windowSize:c,isClubbed:!0,children:t.jsx(H,{width:120,height:w[4]})})]}),t.jsxs(lh,{children:[o?t.jsx(Rn,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})}):null,r?t.jsx(Rn,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})}):null,l.map((d,h)=>t.jsx(Gn,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})},`${h}RowItem`))]})]}):t.jsx(ah,{height:i,bgColor:e,children:t.jsx(Bo,{size:"Small",start:!0})})}const dh=a.div`
|
|
1830
|
+
user-select: none;
|
|
1831
|
+
display: flex;
|
|
1832
|
+
flex: 1 1 auto;
|
|
1833
|
+
width: fit-content;
|
|
1834
|
+
min-width: 100%;
|
|
1835
|
+
height: ${e=>e.height}px;
|
|
1836
|
+
flex-flow: row;
|
|
1837
|
+
justify-content: flex-start;
|
|
1838
|
+
align-items: center;
|
|
1839
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1840
|
+
`,bt=a.div``,hh=a.div`
|
|
1841
|
+
display: flex;
|
|
1842
|
+
flex: 1 0 auto;
|
|
1843
|
+
flex-direction: row;
|
|
1844
|
+
justify-content: flex-end;
|
|
1845
|
+
`,uh=a(_)`
|
|
1846
|
+
user-select: none;
|
|
1847
|
+
clear: both;
|
|
1848
|
+
display: inline-block;
|
|
1849
|
+
overflow: hidden;
|
|
1850
|
+
white-space: nowrap;
|
|
1851
|
+
text-overflow: ellipsis;
|
|
1852
|
+
text-align: left;
|
|
1853
|
+
margin-left: ${s.sp2};
|
|
1854
|
+
color: ${e=>e.theme.colors.hero};
|
|
1855
|
+
`,gh=a(_)`
|
|
1856
|
+
color: ${e=>e.theme.colors.hero};
|
|
1857
|
+
flex-grow: 1;
|
|
1858
|
+
-webkit-box-orient: vertical;
|
|
1859
|
+
display: flex;
|
|
1860
|
+
min-width: ${M.balanceWidth};
|
|
1861
|
+
max-width: ${M.balanceWidth};
|
|
1862
|
+
border: 1px solid transparent;
|
|
1863
|
+
`,En=a(_)`
|
|
1864
|
+
color: ${e=>e.theme.colors.hero};
|
|
1865
|
+
flex-grow: 1;
|
|
1866
|
+
-webkit-box-orient: vertical;
|
|
1867
|
+
justify-content: "unset";
|
|
1868
|
+
display: flex;
|
|
1869
|
+
min-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
1870
|
+
`,ph=a.div`
|
|
1871
|
+
height: 100%;
|
|
1872
|
+
display: flex;
|
|
1873
|
+
flex-direction: row;
|
|
1874
|
+
align-items: center;
|
|
1875
|
+
min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
1876
|
+
color: ${e=>e.theme.colors.primary};
|
|
1877
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1878
|
+
${({isSticky:e})=>e?P`
|
|
1879
|
+
position: -webkit-sticky;
|
|
1880
|
+
position: sticky;
|
|
1881
|
+
top: ${s.sp0};
|
|
1882
|
+
left: ${s.sp0};
|
|
1883
|
+
z-index: 20;
|
|
1884
|
+
`:null}
|
|
1885
|
+
`;function fh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return t.jsxs(dh,{height:i,bgColor:e,"data-testid":m("no-results-found-title-row"),children:[t.jsx(ph,{isSticky:n,windowSize:c,bgColor:e,children:t.jsx(uh,{children:B.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(hh,{children:[o?t.jsx(En,{windowSize:c,children:t.jsx(bt,{})}):null,r?t.jsx(En,{windowSize:c,children:t.jsx(bt,{})}):null,l.map((d,h)=>t.jsx(gh,{windowSize:c,children:t.jsx(bt,{children:" "})},`${h}RowItem`))]})]})}function an({title:e,selectedMode:n,onCompareModeChanged:i,backgroundColor:o,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:c,titleTextStyle:d,titleTextAlignment:h,titleColor:u,menuPosition:p}){const g=["compare_mode_percent","compare_mode_amount"],f=x=>B.getLocalizedStrings().compareMode[x];return t.jsx(zo,{title:e,pickerValues:g,valueToLabel:f,selectedValue:n,onPickerSelectionChanged:x=>i(x),optionTextStyle:c,titleTextStyle:d,titleTextAlignment:h,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:o??"inherit",menuPosition:p})}const Wt={balanceHeight:s.sp4,balanceWidthInPx:170,balanceLeftMargin:s.sp4},xh=a.div`
|
|
1886
|
+
margin-left: ${s.sp4};
|
|
1887
|
+
`,mh=a.div`
|
|
1888
|
+
display: flex;
|
|
1889
|
+
max-height: 54px;
|
|
1890
|
+
min-height: 54px;
|
|
1891
|
+
align-items: center;
|
|
1892
|
+
justify-content: center;
|
|
1893
|
+
max-width: ${Wt.balanceWidthInPx-2}px;
|
|
1894
|
+
min-width: ${Wt.balanceWidthInPx-2}px;
|
|
1895
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1896
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1897
|
+
border-radius: ${s.sp2};
|
|
1898
|
+
color: ${e=>e.theme.colors.primary};
|
|
1899
|
+
`,wh=a(_)`
|
|
1900
|
+
display: flex;
|
|
1901
|
+
user-select: none;
|
|
1902
|
+
flex-direction: row;
|
|
1903
|
+
justify-content: center;
|
|
1904
|
+
align-items: center;
|
|
1905
|
+
height: ${Wt.balanceHeight};
|
|
1906
|
+
`,yh=a.div`
|
|
1907
|
+
display: flex;
|
|
1908
|
+
flex-direction: row;
|
|
1909
|
+
justify-content: center;
|
|
1910
|
+
align-items: center;
|
|
1911
|
+
padding: 3px 6px;
|
|
1912
|
+
margin-right: ${s.sp2};
|
|
1913
|
+
position: relative;
|
|
1914
|
+
top: -12px;
|
|
1915
|
+
`,bh=a(Eo)`
|
|
1916
|
+
color: ${e=>e.tagType==="under_review"?Z.neutralGrey5Light:e.theme.mode==="light"?Z.primaryDark:Z.primaryLight};
|
|
1917
|
+
border-radius: ${s.sp2};
|
|
1918
|
+
padding: 3px 6px;
|
|
1919
|
+
margin-left: 12px;
|
|
1920
|
+
background: ${e=>e.tagType==="under_review"?Z.alertDark:e.theme.mode==="light"?Z.championLight:Z.championDark};
|
|
1921
|
+
`,kh=a(Ro)`
|
|
1922
|
+
color: ${e=>e.theme.colors.hero};
|
|
1923
|
+
margin-left: 5px;
|
|
1924
|
+
height: ${s.sp3};
|
|
1925
|
+
width: ${s.sp3};
|
|
1926
|
+
margin-top: ${s.sp1};
|
|
1927
|
+
`;function eo({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:o,infoContent:r,tagType:l}){return t.jsxs(xh,{children:[t.jsxs(mh,{children:[t.jsx(wh,{children:Pe(e,n,i)}),t.jsx(Go,{style:{padding:s.sp3},title:r,placement:"top",children:t.jsx(kh,{})})]}),t.jsx(yh,{children:t.jsx(bh,{tagType:l,children:o})})]})}const to=(e,n)=>{const i=B.getLocalizedStrings().reports;switch(n){case"month":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoMonth:i.bookCloseIncompleteInfoMonth:void 0;case"quarter":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoQuarter:i.bookCloseIncompleteInfoQuarter:void 0;case"year":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoYear:i.bookCloseIncompleteInfoYear:void 0;default:return}},jh=a.div`
|
|
1928
|
+
user-select: none;
|
|
1929
|
+
display: flex;
|
|
1930
|
+
flex: 1 1 auto;
|
|
1931
|
+
width: fit-content;
|
|
1932
|
+
min-width: 100%;
|
|
1933
|
+
height: ${e=>e.height}px;
|
|
1934
|
+
flex-flow: row;
|
|
1935
|
+
justify-content: flex-start;
|
|
1936
|
+
align-items: center;
|
|
1937
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1938
|
+
`,Sh=a.div`
|
|
1939
|
+
display: flex;
|
|
1940
|
+
flex: 1 0 auto;
|
|
1941
|
+
flex-direction: row;
|
|
1942
|
+
justify-content: flex-end;
|
|
1943
|
+
`,no=a.div`
|
|
1944
|
+
display: flex;
|
|
1945
|
+
max-height: ${s.sp8};
|
|
1946
|
+
min-height: ${s.sp8};
|
|
1947
|
+
min-width: ${M.balanceWidth};
|
|
1948
|
+
justify-content: center;
|
|
1949
|
+
align-items: center;
|
|
1950
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1951
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1952
|
+
border-radius: ${s.sp2};
|
|
1953
|
+
margin-left: ${M.balanceLeftMargin};
|
|
1954
|
+
color: ${e=>e.theme.colors.primary};
|
|
1955
|
+
cursor: ${e=>e.isClickable===!0?"pointer":"default"};
|
|
1956
|
+
`,io=a(_)`
|
|
1957
|
+
display: flex;
|
|
1958
|
+
user-select: none;
|
|
1959
|
+
flex-direction: row;
|
|
1960
|
+
justify-content: center;
|
|
1961
|
+
align-items: center;
|
|
1962
|
+
height: ${M.balanceHeight};
|
|
1963
|
+
max-width: ${M.balanceWidth};
|
|
1964
|
+
width: 138px;
|
|
1965
|
+
text-align: center;
|
|
1966
|
+
`,Ch=a.div`
|
|
1967
|
+
display: flex;
|
|
1968
|
+
flex-direction: row;
|
|
1969
|
+
z-index: 1;
|
|
1970
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1971
|
+
${({isSticky:e})=>e?P`
|
|
1972
|
+
position: -webkit-sticky;
|
|
1973
|
+
position: sticky;
|
|
1974
|
+
top: ${s.sp0};
|
|
1975
|
+
left: ${s.sp0};
|
|
1976
|
+
z-index: 1;
|
|
1977
|
+
`:null}
|
|
1978
|
+
`,_h=a.div`
|
|
1979
|
+
max-height: ${e=>e.plHeight}px;
|
|
1980
|
+
min-height: ${e=>e.plHeight}px;
|
|
1981
|
+
display: flex;
|
|
1982
|
+
flex-direction: row;
|
|
1983
|
+
align-items: center;
|
|
1984
|
+
min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
1985
|
+
color: ${e=>e.theme.colors.primary};
|
|
1986
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1987
|
+
`,vh=a(_)`
|
|
1988
|
+
display: flex;
|
|
1989
|
+
gap: 6px;
|
|
1990
|
+
align-items: baseline;
|
|
1991
|
+
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
|
|
1992
|
+
`,oo=a(_)`
|
|
1993
|
+
height: 100%;
|
|
1994
|
+
align-self: center;
|
|
1995
|
+
align-items: baseline;
|
|
1996
|
+
min-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
1997
|
+
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
|
|
1998
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1999
|
+
display: flex;
|
|
2000
|
+
gap: 6px;
|
|
2001
|
+
align-items: center;
|
|
2002
|
+
`,ln=a.div`
|
|
2003
|
+
display: flex;
|
|
2004
|
+
cursor: pointer;
|
|
2005
|
+
`,$h=a.div`
|
|
2006
|
+
display: flex;
|
|
2007
|
+
justify-content: center;
|
|
2008
|
+
align-items: center;
|
|
2009
|
+
color: ${e=>e.theme.colors.champion};
|
|
2010
|
+
`,Lh=a.div``,Ah=a(_)`
|
|
2011
|
+
display: flex;
|
|
2012
|
+
justify-content: center;
|
|
2013
|
+
align-items: center;
|
|
2014
|
+
max-height: ${s.sp8};
|
|
2015
|
+
min-height: ${s.sp8};
|
|
2016
|
+
background-color: ${e=>e.theme.colors.background};
|
|
2017
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2018
|
+
border-radius: ${s.sp2};
|
|
2019
|
+
margin-left: ${M.balanceLeftMargin};
|
|
2020
|
+
color: ${e=>e.theme.colors.primary};
|
|
2021
|
+
width: ${M.balanceWidth};
|
|
2022
|
+
min-width: ${M.balanceWidth};
|
|
2023
|
+
`,ro=a.div`
|
|
2024
|
+
max-height: ${s.sp8};
|
|
2025
|
+
min-height: ${s.sp8};
|
|
2026
|
+
`,ct=a.div`
|
|
2027
|
+
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
|
|
2028
|
+
`,st=a(Gt)`
|
|
2029
|
+
width: 12px;
|
|
2030
|
+
height: 12px;
|
|
2031
|
+
margin-left: ${s.sp2};
|
|
2032
|
+
margin-top: ${s.sp1};
|
|
2033
|
+
`,dt=a(Dt)`
|
|
2034
|
+
width: 12px;
|
|
2035
|
+
height: 12px;
|
|
2036
|
+
margin-left: ${s.sp2};
|
|
2037
|
+
margin-top: ${s.sp1};
|
|
2038
|
+
`,cn=a(ni)`
|
|
2039
|
+
width: 12px;
|
|
2040
|
+
height: 12px;
|
|
2041
|
+
cursor: pointer;
|
|
2042
|
+
color: ${e=>e.theme.colors.hero};
|
|
2043
|
+
`,ao=({sortOrder:e,sortKey:n,onSortOrderChanged:i})=>{const o=()=>{i(ht("totals",e,n),"totals")},r=n==="totals"?e:"ascending";return t.jsx(ro,{"data-testid":m("period-total-tick"),children:t.jsx(no,{"data-testid":m("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(io,{children:[B.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(ct,{selectedForSort:n==="totals",children:r==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]})})})},Bh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("vendor",n,e),"vendor")},l=e==="vendor"?n:"ascending";return t.jsxs(vh,{selectedForSort:e==="vendor",children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(ct,{selectedForSort:e==="vendor",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="vendor"?t.jsx(cn,{onClick:o}):null]})},Wh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("account",n,e),"account")},l=e==="account"?n:"ascending",c=O();return t.jsxs(oo,{selectedForSort:e==="account",windowSize:c,children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(ct,{selectedForSort:e==="account",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="account"?t.jsx(cn,{onClick:o}):null]})},Oh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("class",n,e),"class")},l=e==="class"?n:"ascending",c=O();return t.jsxs(oo,{selectedForSort:e==="class",windowSize:c,children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(ct,{selectedForSort:e==="class",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="class"?t.jsx(cn,{onClick:o}):null]})},lo=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=B.getLocalizedStrings().reports,c=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?ai(i,e,n,r,o):void 0,d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=to(c,i);return t.jsx(ro,{children:r!=null&&o!=null&&c!=null&&d!=null&&h!=null?t.jsx(eo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:c}):t.jsx(no,{isClickable:!1,children:t.jsx(io,{children:Pe(e,n,i)})})})},Mh=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,sortKey:o="totals",sortOrder:r="ascending",dataAvailable:l,bookCloseDate:c,onSortOrderChanged:d})=>n.balanceType==="period_total"?t.jsx(ao,{sortKey:o,sortOrder:r,onSortOrderChanged:d}):t.jsx(lo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:c}),Nh=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:c,bookCloseDate:d,onCompareModeChanged:h,onSortOrderChanged:u})=>{const p=ce(),g=o==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return t.jsx($h,{children:n.map((f,x)=>t.jsxs(N.Fragment,{children:[f.balanceType==="this_period_vs_last_period"||f.balanceType==="this_period_vs_last_period_percent"?t.jsx(Ah,{children:t.jsx(an,{title:g,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",titleColor:p.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:b=>{b!=="off"&&(b==="compare_mode_amount"||b==="compare_mode_percent"?h?.(b):console.warn("Invalid compare mode option"))}})}):null,f.balanceType==="period_total"?t.jsx(ao,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,f.balanceType==="default"?t.jsx(Lh,{children:t.jsx(lo,{firstMonthOfFY:e,timeframeTick:f,timeframe:i,dataAvailable:c,bookCloseDate:d},x)}):null]},x))})};function Ih({backgroundColor:e,isSticky:n,height:i,isCompareModeOn:o,isAccountColumnShown:r,isClassColumnShown:l,sortKey:c,sortOrder:d,firstMonthOfFY:h,timeframe:u,timeframeTicks:p,compareMode:g,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:y}){const C=O(),S=(L,W)=>{y?.(L,W)},A=()=>{y?.("descending","totals")};return t.jsxs(jh,{height:i,bgColor:e,children:[t.jsx(Ch,{bgColor:e,windowSize:C,isSticky:n,children:t.jsx(_h,{plHeight:i,windowSize:C,bgColor:e,children:t.jsx(Bh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A})})}),r?t.jsx(Wh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A}):null,l?t.jsx(Oh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A}):null,t.jsx(Sh,{children:o===!0?t.jsx(Nh,{firstMonthOfFY:h,timeframe:u,sortKey:c,sortOrder:d,timeframeTicks:p,compareMode:g,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:S}):p.map((L,W)=>t.jsx(Mh,{firstMonthOfFY:h,timeframeTick:L,timeframe:u,sortKey:c,sortOrder:d,dataAvailable:f,bookCloseDate:x,onSortOrderChanged:S},W))})]})}const ht=(e,n,i)=>e===i?n==="ascending"?"descending":"ascending":"descending",Ph=a.div`
|
|
2044
|
+
display: flex;
|
|
2045
|
+
flex: 1 1 auto;
|
|
2046
|
+
max-height: 1px;
|
|
2047
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
2048
|
+
`,Fh=a.div`
|
|
2049
|
+
display: flex;
|
|
2050
|
+
flex: 1 1 auto;
|
|
2051
|
+
max-height: 1px;
|
|
2052
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
2053
|
+
`;function Ot({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(Ph,{isScrolling:n});case"end_row_separator":return t.jsx(Fh,{isScrolling:n})}}const zh=a.div`
|
|
2054
|
+
display: flex;
|
|
2055
|
+
flex: 1 1 auto;
|
|
2056
|
+
width: fit-content;
|
|
2057
|
+
min-width: 100%;
|
|
2058
|
+
flex-direction: column;
|
|
2059
|
+
height: ${e=>e.height}px;
|
|
2060
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2061
|
+
`,Th=a.div`
|
|
2062
|
+
user-select: none;
|
|
2063
|
+
display: flex;
|
|
2064
|
+
flex: 1 1 auto;
|
|
2065
|
+
flex-flow: row;
|
|
2066
|
+
justify-content: flex-start;
|
|
2067
|
+
align-items: center;
|
|
2068
|
+
cursor: default;
|
|
2069
|
+
`,Vh=a.div`
|
|
2070
|
+
display: flex;
|
|
2071
|
+
flex: 1 0 auto;
|
|
2072
|
+
flex-direction: row;
|
|
2073
|
+
justify-content: flex-end;
|
|
2074
|
+
`,Dh=a.div`
|
|
2075
|
+
display: flex;
|
|
2076
|
+
flex-direction: row;
|
|
2077
|
+
justify-content: flex-start;
|
|
2078
|
+
`,co=a(ne)`
|
|
2079
|
+
user-select: none;
|
|
2080
|
+
min-width: ${M.balanceWidth};
|
|
2081
|
+
max-width: ${M.balanceWidth};
|
|
2082
|
+
text-align: right;
|
|
2083
|
+
margin-left: ${M.balanceLeftMargin};
|
|
2084
|
+
color: ${e=>e.theme.colors.primary};
|
|
2085
|
+
border: 1px solid transparent;
|
|
2086
|
+
`,Gh=a(co)`
|
|
2087
|
+
color: ${e=>e.theme.colors.hero};
|
|
2088
|
+
&:hover {
|
|
2089
|
+
color: inherit;
|
|
2090
|
+
}
|
|
2091
|
+
`,Rh=a.div`
|
|
2092
|
+
display: flex;
|
|
2093
|
+
flex-direction: row;
|
|
2094
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2095
|
+
${({isSticky:e})=>e?P`
|
|
2096
|
+
position: -webkit-sticky;
|
|
2097
|
+
position: sticky;
|
|
2098
|
+
top: ${s.sp0};
|
|
2099
|
+
left: ${s.sp0};
|
|
2100
|
+
`:null}
|
|
2101
|
+
`,Eh=a.div`
|
|
2102
|
+
display: flex;
|
|
2103
|
+
flex-direction: row;
|
|
2104
|
+
flex-shrink: 2;
|
|
2105
|
+
flex-grow: 1;
|
|
2106
|
+
align-items: center;
|
|
2107
|
+
width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
2108
|
+
max-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
2109
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2110
|
+
`,Hn=a.div`
|
|
2111
|
+
width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2112
|
+
max-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2113
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2114
|
+
`,Hh=a(ne)`
|
|
2115
|
+
user-select: none;
|
|
2116
|
+
clear: both;
|
|
2117
|
+
display: inline-block;
|
|
2118
|
+
overflow: hidden;
|
|
2119
|
+
white-space: nowrap;
|
|
2120
|
+
text-overflow: ellipsis;
|
|
2121
|
+
text-align: left;
|
|
2122
|
+
color: ${e=>e.theme.colors.primary};
|
|
2123
|
+
`,Kh=({type:e,balance:n,collapsed:i})=>{const o=i===!0?Gh:co;return t.jsx(Dh,{children:re(e)===!0?t.jsx(o,{children:q(n)}):null})};function Yh({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:c,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:p}){const g=O();return t.jsxs(zh,{"data-testid":m("total-row-root-container",o),height:r,bgColor:n,windowSize:g,children:[t.jsxs(Th,{"data-testid":m("total-row-container",o),onClick:()=>u?.(o),children:[t.jsxs(Rh,{bgColor:n,windowSize:g,isSticky:i,children:[t.jsx(Eh,{bgColor:n,windowSize:g,children:t.jsx(Hh,{children:l})}),d?t.jsx(Hn,{windowSize:g}):null,h?t.jsx(Hn,{windowSize:g}):null]}),t.jsx(Vh,{children:c.map((f,x)=>t.jsx(Kh,{type:e,balance:f,collapsed:!1},x))})]}),t.jsx(Ot,{isScrolling:p,kind:"vendor_row_separator"})]})}const Uh=a.div`
|
|
2124
|
+
display: flex;
|
|
2125
|
+
flex: 1 1 auto;
|
|
2126
|
+
width: fit-content;
|
|
2127
|
+
min-width: 100%;
|
|
2128
|
+
flex-direction: column;
|
|
2129
|
+
height: ${e=>e.height}px;
|
|
2130
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2131
|
+
`,qh=a.div`
|
|
2132
|
+
user-select: none;
|
|
2133
|
+
display: flex;
|
|
2134
|
+
flex: 1 1 auto;
|
|
2135
|
+
flex-flow: row;
|
|
2136
|
+
justify-content: flex-start;
|
|
2137
|
+
align-items: center;
|
|
2138
|
+
&:hover {
|
|
2139
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2140
|
+
}
|
|
2141
|
+
`,Jh=a.div`
|
|
2142
|
+
display: flex;
|
|
2143
|
+
flex: 1 0 auto;
|
|
2144
|
+
flex-direction: row;
|
|
2145
|
+
justify-content: flex-end;
|
|
2146
|
+
`,Xh=a.div`
|
|
2147
|
+
display: flex;
|
|
2148
|
+
flex-direction: row;
|
|
2149
|
+
justify-content: flex-start;
|
|
2150
|
+
`,Qh=a(_)`
|
|
2151
|
+
user-select: none;
|
|
2152
|
+
min-width: ${M.balanceWidth};
|
|
2153
|
+
max-width: ${M.balanceWidth};
|
|
2154
|
+
text-align: right;
|
|
2155
|
+
margin-left: ${M.balanceLeftMargin};
|
|
2156
|
+
border: 1px solid transparent;
|
|
2157
|
+
color: ${e=>e.theme.colors.hero};
|
|
2158
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2159
|
+
&:hover {
|
|
2160
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2161
|
+
}
|
|
2162
|
+
`,Zh=a.div`
|
|
2163
|
+
display: flex;
|
|
2164
|
+
flex-direction: row;
|
|
2165
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2166
|
+
${({isSticky:e})=>e?P`
|
|
2167
|
+
position: -webkit-sticky;
|
|
2168
|
+
position: sticky;
|
|
2169
|
+
top: ${s.sp0};
|
|
2170
|
+
left: ${s.sp0};
|
|
2171
|
+
`:null}
|
|
2172
|
+
`,eu=a.div`
|
|
2173
|
+
display: flex;
|
|
2174
|
+
flex-direction: row;
|
|
2175
|
+
flex-shrink: 2;
|
|
2176
|
+
flex-grow: 1;
|
|
2177
|
+
align-items: center;
|
|
2178
|
+
gap: ${s.sp2};
|
|
2179
|
+
width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
2180
|
+
max-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
2181
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2182
|
+
`,ve=a(_)`
|
|
2183
|
+
user-select: none;
|
|
2184
|
+
clear: both;
|
|
2185
|
+
display: inline-block;
|
|
2186
|
+
overflow: hidden;
|
|
2187
|
+
white-space: nowrap;
|
|
2188
|
+
text-overflow: ellipsis;
|
|
2189
|
+
text-align: left;
|
|
2190
|
+
color: ${e=>e.theme.colors.hero};
|
|
2191
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2192
|
+
&:hover {
|
|
2193
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2194
|
+
}
|
|
2195
|
+
`,tu=a.div`
|
|
2196
|
+
display: flex;
|
|
2197
|
+
flex-direction: row;
|
|
2198
|
+
flex-shrink: 2;
|
|
2199
|
+
flex-grow: 1;
|
|
2200
|
+
align-items: center;
|
|
2201
|
+
width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2202
|
+
max-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2203
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2204
|
+
`,nu=a.div`
|
|
2205
|
+
display: flex;
|
|
2206
|
+
flex-direction: row;
|
|
2207
|
+
flex-shrink: 2;
|
|
2208
|
+
flex-grow: 1;
|
|
2209
|
+
align-items: center;
|
|
2210
|
+
width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2211
|
+
max-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2212
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2213
|
+
`,iu=a.div`
|
|
2214
|
+
width: ${s.sp4};
|
|
2215
|
+
height: ${s.sp4};
|
|
2216
|
+
border-radius: 50%;
|
|
2217
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
2218
|
+
display: flex;
|
|
2219
|
+
justify-content: center;
|
|
2220
|
+
align-items: center;
|
|
2221
|
+
color: ${e=>e.theme.colors.hero};
|
|
2222
|
+
`,ou=a(Mo)`
|
|
2223
|
+
width: ${s.sp3};
|
|
2224
|
+
height: ${s.sp3};
|
|
2225
|
+
`,ru=a.div`
|
|
2226
|
+
display: flex;
|
|
2227
|
+
column-gap: ${s.sp2};
|
|
2228
|
+
width: 100%;
|
|
2229
|
+
&:hover {
|
|
2230
|
+
.hyphen-text {
|
|
2231
|
+
display: none;
|
|
2232
|
+
}
|
|
2233
|
+
.not-specified-text {
|
|
2234
|
+
display: block;
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2237
|
+
`,au=a(_)`
|
|
2238
|
+
color: ${e=>e.theme.colors.hero};
|
|
2239
|
+
`,lu=a(_)`
|
|
2240
|
+
color: ${e=>e.theme.colors.hero};
|
|
2241
|
+
display: none;
|
|
2242
|
+
`,cu=({balance:e,vendor:n,onVendorNameAndBalanceClick:i})=>{const o=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",r=e?.type==="period_total",l=e?.type==="default_with_null_balance",c=o!==!0&&r===!1&&l===!1&&!ri(n.id);return t.jsx(Xh,{children:t.jsx(Qh,{isClickable:c,onClick:()=>{c===!0&&i(n,e??void 0)},children:q(e)})})};function su({type:e,backgroundColor:n,isSticky:i,height:o,isScrolling:r,isLastNode:l,vendor:c,balances:d,accountBase:h,classBase:u,isAccountColumnShown:p,isClassColumnShown:g,onVendorNameAndBalanceClick:f}){const x=O(),b=Xn(),y=b.loggedInUserRole!=null&&!oi(b.loggedInUserRole),C=ri(c.id),S=y===!0&&c!=null&&!C,A=S?"pointer":"default",L=c.name;return t.jsxs(Uh,{"data-testid":m("vendor-row-root-container",c.id),height:o,bgColor:n,windowSize:x,children:[t.jsxs(qh,{"data-testid":m("vendor-row-container",c.id),style:{cursor:A},isClickable:S,children:[t.jsx(Zh,{"data-testid":m("vendor-row-sticky-container",c.id),isSticky:i,windowSize:x,bgColor:n,children:t.jsxs(eu,{"data-testid":m("vendor-row-name-container",c.id),windowSize:x,bgColor:n,children:[t.jsxs(Ze,{controller:!C,children:[c.logo!=null?t.jsx(Ft,{photoUrl:c.logo.toString(),styles:{width:M.nameLogoWidth.valuePx(x),height:M.nameLogoHeight.valuePx(x)}}):t.jsx(zt,{name:L,size:s.sp4}),t.jsx(ve,{"data-testid":m("vendor-row-name",c.id),style:{cursor:A},isClickable:S,onClick:()=>{S===!0&&f(c)},children:L})]}),t.jsx(Ze,{controller:C,children:t.jsxs(ru,{children:[t.jsx(iu,{children:t.jsx(ou,{})}),t.jsx(au,{className:"hyphen-text",children:B.getLocalizedStrings().common.strings.hyphen}),t.jsx(lu,{className:"not-specified-text",children:L})]})})]})}),p?t.jsx(tu,{windowSize:x,bgColor:n,children:h!=null?t.jsx(ve,{"data-testid":m("vendor-row-account-name",c.id),title:h.accountName,isClickable:!1,children:h.accountName}):t.jsx(ve,{isClickable:!1,"data-testid":m("vendor-row-account-name",c.id),children:B.getLocalizedStrings().common.strings.hyphen})}):null,g?t.jsx(nu,{windowSize:x,bgColor:n,children:u!=null?t.jsx(ve,{"data-testid":m("vendor-row-class-name",c.id),title:u.className,isClickable:!1,children:u.className}):t.jsx(ve,{"data-testid":m("vendor-row-class-name",c.id),isClickable:!1,children:B.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(Jh,{children:d.map((W,F)=>t.jsx(cu,{type:e,balance:W,vendor:c,onVendorNameAndBalanceClick:f},F))})]}),t.jsx(du,{isScrolling:r,isLastNode:l})]})}function du({isScrolling:e,isLastNode:n}){return n?t.jsx(Ot,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Ot,{isScrolling:e,kind:"vendor_row_separator"})}const hu=(e,n,i,o,r,l)=>{if(e.element.kind!=="timeframe_headers")return null;const c=Fe(e.element.data,e.config.displayOrder),d=c.length>0?c[0].balanceTimeFrame:"month",h=c.map(u=>Ie(u));return t.jsx(Ih,{backgroundColor:r,isSticky:i,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:e.config.mode==="this_period_vs_period_before"&&h.length>1,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:d,timeframeTicks:h,sortKey:e.config.opexByVendorConfig?.sortKey,sortOrder:e.config.opexByVendorConfig?.sortOrder,dataAvailable:e.config.dataAvailable,bookCloseDate:e.config.bookCloseDate,compareMode:o,onCompareModeChanged:l,onSortOrderChanged:e.config.opexByVendorConfig?.onSortOrderChanged})},uu=(e,n,i,o,r,l,c)=>{const d=i.element.data,h=i.config.mode==="this_period_vs_period_before",u=h?i.element.numOfBalances+2:i.element.numOfBalances+1,p=zi(d,i.config.displayOrder,u,h);return t.jsx(Yh,{type:n,backgroundColor:c,isSticky:r,treeNodeId:e,height:o,isScrolling:l,totalBalances:p.balances,title:i.element.title,isAccountColumnShown:i.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:i.config.opexByVendorConfig?.isClassColumnShown??!0})},gu=(e,n,i,o,r,l,c)=>{if(n.element.kind!="vendor_row"||n.element.data==null)return null;const d=n.element.data,h=n.config.mode==="this_period_vs_period_before",u=zi(d,n.config.displayOrder,n.element.numOfBalances,h);return t.jsx(su,{type:e,backgroundColor:o,isSticky:r,height:i,isScrolling:l,vendor:d.vendor,accountBase:d.account,classBase:d.classBase,isLastNode:c,balances:u.balances,isAccountColumnShown:n.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:n.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:(p,g)=>{n.config.opexByVendorConfig?.onVendorNameAndBalanceClicked(p,g)}})},pu=(e,n,i,o)=>{if(e.element.kind!=="loading_in_progress")return null;const r=Fe(e.element.data,e.config.displayOrder).map(l=>Ie(l));return t.jsx(sh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})},fu=(e,n,i,o)=>{if(e.element.kind!=="title_string_only")return null;const r=Fe(e.element.data,e.config.displayOrder).map(l=>Ie(l));return t.jsx(fh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})};function sn(e,n,i){return xu(n,i,e)}const xu=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.account.balancesInTimeframe,o.compactedAccountsSelector=r=>Kn(r.accounts,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>Kn(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r,o.compactedAccountGroupsSelector=r=>mu(r,o.acGroupBalanceSelector,i,n),o};function Kn(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>wu((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[]))||so((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[])));case"filter_forecast_nil_balances":return e.filter(o=>Yn(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Yn(n(o)?.balances??[]))}}function mu(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>so(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>yu(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>bu(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function so(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function wu(e){let n=!1;if(e!=null){for(const i of e)if(i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function yu(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function bu(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function Yn(e){let n=!1;if(e!=null){for(const i of e)if(i.totalForecast!=null&&i.totalForecast.amount!==0||i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function ho(e,n,i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=ku([],i)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:c}}function ku(e,n){return e.length>0?e:Jn(Array(n),null)}const ju=a.div`
|
|
2243
|
+
display: flex;
|
|
2244
|
+
flex: 1 1 auto;
|
|
2245
|
+
width: fit-content;
|
|
2246
|
+
min-width: 100%;
|
|
2247
|
+
flex-direction: column;
|
|
2248
|
+
height: ${e=>e.height}px;
|
|
2249
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2250
|
+
`,Su=a.div`
|
|
2251
|
+
user-select: none;
|
|
2252
|
+
display: flex;
|
|
2253
|
+
flex: 1 1 auto;
|
|
2254
|
+
flex-flow: row;
|
|
2255
|
+
justify-content: flex-start;
|
|
2256
|
+
align-items: center;
|
|
2257
|
+
&:hover {
|
|
2258
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2259
|
+
}
|
|
2260
|
+
`,Cu=a.div`
|
|
2261
|
+
display: flex;
|
|
2262
|
+
flex: 1 0 auto;
|
|
2263
|
+
flex-direction: row;
|
|
2264
|
+
justify-content: flex-end;
|
|
2265
|
+
`,_u=a.div`
|
|
2266
|
+
display: flex;
|
|
2267
|
+
flex-direction: row;
|
|
2268
|
+
justify-content: flex-start;
|
|
2269
|
+
`,uo=a(_)`
|
|
2270
|
+
user-select: none;
|
|
2271
|
+
min-width: ${k.balanceWidth};
|
|
2272
|
+
max-width: ${k.balanceWidth};
|
|
2273
|
+
text-align: right;
|
|
2274
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2275
|
+
color: ${e=>e.theme.colors.primary};
|
|
2276
|
+
`,vu=a(uo)`
|
|
2277
|
+
color: ${e=>e.theme.colors.hero};
|
|
2278
|
+
&:hover {
|
|
2279
|
+
color: inherit;
|
|
2280
|
+
}
|
|
2281
|
+
`,$u=a.div`
|
|
2282
|
+
display: flex;
|
|
2283
|
+
flex-direction: row;
|
|
2284
|
+
flex-shrink: 2;
|
|
2285
|
+
flex-grow: 1;
|
|
2286
|
+
align-items: center;
|
|
2287
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2288
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2289
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2290
|
+
${({isSticky:e})=>e?P`
|
|
2291
|
+
position: -webkit-sticky;
|
|
2292
|
+
position: sticky;
|
|
2293
|
+
top: ${s.sp0};
|
|
2294
|
+
left: ${s.sp0};
|
|
2295
|
+
`:null}
|
|
2296
|
+
`,go=a(_)`
|
|
2297
|
+
user-select: none;
|
|
2298
|
+
clear: both;
|
|
2299
|
+
display: inline-block;
|
|
2300
|
+
overflow: hidden;
|
|
2301
|
+
white-space: nowrap;
|
|
2302
|
+
text-overflow: ellipsis;
|
|
2303
|
+
text-align: left;
|
|
2304
|
+
margin-left: ${s.sp4};
|
|
2305
|
+
color: ${e=>e.theme.colors.primary};
|
|
2306
|
+
`,Lu=a(go)`
|
|
2307
|
+
color: ${e=>e.theme.colors.hero};
|
|
2308
|
+
&:hover {
|
|
2309
|
+
color: inherit;
|
|
2310
|
+
}
|
|
2311
|
+
`,Au=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?vu:uo;return t.jsxs(_u,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:X(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:X(n)}),t.jsx(l,{children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Bu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:x,onClick:b}){const y=ce(),C=O(),S=!f,A=S?"pointer":"default",L=l==="collapsed",W=l==="hidden",F=W===!0?w[6]:w[4],z=L===!0?Lu:go,K=L===!0?Qn:Zn,E=L===!0?y.colors.hero:y.colors.primary;return t.jsxs(ju,{height:r,bgColor:n,"data-testid":m("pandl-report-account-group-row-root-container",o),children:[t.jsxs(Su,{"data-testid":m("pandl-report-account-group-row-container",o),style:{cursor:A},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs($u,{bgColor:n,isSticky:i,windowSize:C,children:[W===!1?t.jsx(K,{color:E,style:{width:w[3],height:w[3]}}):null,t.jsx(z,{style:{marginLeft:F},children:c})]}):null,fe(e)===!0?t.jsx(Cu,{children:d.map((Y,J)=>t.jsx(Au,{type:e,accountGroupName:c,balance:Y,isActualVsForecastOn:h,compareMode:u,collapsed:L},J))}):null]}),t.jsx(Wu,{isScrolling:p,type:e,isLeaf:f,isLastNode:x,isOpen:g})]})}function Wu({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(xe,{isScrolling:e,kind:r})}const Ou=a.div`
|
|
2312
|
+
display: flex;
|
|
2313
|
+
flex: 1 1 auto;
|
|
2314
|
+
width: fit-content;
|
|
2315
|
+
min-width: 100%;
|
|
2316
|
+
flex-direction: column;
|
|
2317
|
+
height: ${e=>e.height}px;
|
|
2318
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2319
|
+
`,Mu=a.div`
|
|
2320
|
+
user-select: none;
|
|
2321
|
+
display: flex;
|
|
2322
|
+
flex: 1 1 auto;
|
|
2323
|
+
flex-flow: row;
|
|
2324
|
+
justify-content: flex-start;
|
|
2325
|
+
align-items: center;
|
|
2326
|
+
&:hover {
|
|
2327
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2328
|
+
}
|
|
2329
|
+
`,Nu=a.div`
|
|
2330
|
+
display: flex;
|
|
2331
|
+
flex: 1 0 auto;
|
|
2332
|
+
flex-direction: row;
|
|
2333
|
+
justify-content: flex-end;
|
|
2334
|
+
`,Iu=a.div`
|
|
2335
|
+
display: flex;
|
|
2336
|
+
flex-direction: row;
|
|
2337
|
+
justify-content: flex-start;
|
|
2338
|
+
`,po=a(_)`
|
|
2339
|
+
user-select: none;
|
|
2340
|
+
min-width: ${k.balanceWidth};
|
|
2341
|
+
max-width: ${k.balanceWidth};
|
|
2342
|
+
text-align: right;
|
|
2343
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2344
|
+
color: ${e=>e.theme.colors.primary};
|
|
2345
|
+
`,Pu=a(po)`
|
|
2346
|
+
color: ${e=>e.theme.colors.hero};
|
|
2347
|
+
&:hover {
|
|
2348
|
+
color: inherit;
|
|
2349
|
+
}
|
|
2350
|
+
`,Fu=a.div`
|
|
2351
|
+
display: flex;
|
|
2352
|
+
flex-direction: row;
|
|
2353
|
+
flex-shrink: 2;
|
|
2354
|
+
flex-grow: 1;
|
|
2355
|
+
align-items: center;
|
|
2356
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2357
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2358
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2359
|
+
${({isSticky:e})=>e?P`
|
|
2360
|
+
position: -webkit-sticky;
|
|
2361
|
+
position: sticky;
|
|
2362
|
+
top: ${s.sp0};
|
|
2363
|
+
left: ${s.sp0};
|
|
2364
|
+
`:null}
|
|
2365
|
+
`,fo=a(_)`
|
|
2366
|
+
user-select: none;
|
|
2367
|
+
clear: both;
|
|
2368
|
+
display: inline-block;
|
|
2369
|
+
overflow: hidden;
|
|
2370
|
+
white-space: nowrap;
|
|
2371
|
+
text-overflow: ellipsis;
|
|
2372
|
+
text-align: left;
|
|
2373
|
+
margin-left: ${s.sp2};
|
|
2374
|
+
color: ${e=>e.theme.colors.primary};
|
|
2375
|
+
`,zu=a(fo)`
|
|
2376
|
+
color: ${e=>e.theme.colors.hero};
|
|
2377
|
+
&:hover {
|
|
2378
|
+
color: inherit;
|
|
2379
|
+
}
|
|
2380
|
+
`,Tu=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?Pu:po;return t.jsxs(Iu,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:X(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:X(n)}),t.jsx(l,{children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Vu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:x,onClick:b}){const y=O(),C=ce(),S=!f,A=S?"pointer":"default",L=l==="collapsed",W=L===!0?zu:fo,[F,z]=N.useState(!1),K=c.length>0?c.substring(0,1).toUpperCase():"";return t.jsxs(Ou,{"data-testid":m("pandl-account-group-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Mu,{"data-testid":m("pandl-account-group-row-container",o),onMouseOver:()=>z(!0),onMouseLeave:()=>z(!1),style:{cursor:A},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs(Fu,{bgColor:n,isSticky:i,windowSize:y,children:[t.jsx(ye,{showCollapsedIcon:L,showIcon:F&&S,firstLetter:K,color:$(C.colors.primary)}),t.jsx(W,{children:c})]}):null,fe(e)===!0?t.jsx(Nu,{children:d.map((E,Y)=>t.jsx(Tu,{type:e,accountGroupName:c,balance:E,isActualVsForecastOn:h,compareMode:u,collapsed:L},Y))}):null]}),t.jsx(Du,{isScrolling:p,type:e,isLeaf:f,isLastNode:x,isOpen:g})]})}function Du({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(xe,{isScrolling:e,kind:r})}const Gu=a.div`
|
|
2381
|
+
display: flex;
|
|
2382
|
+
flex: 1 1 auto;
|
|
2383
|
+
width: fit-content;
|
|
2384
|
+
min-width: 100%;
|
|
2385
|
+
flex-direction: column;
|
|
2386
|
+
height: ${e=>e.height}px;
|
|
2387
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2388
|
+
`,Ru=a.div`
|
|
2389
|
+
user-select: none;
|
|
2390
|
+
display: flex;
|
|
2391
|
+
flex: 1 1 auto;
|
|
2392
|
+
flex-flow: row;
|
|
2393
|
+
justify-content: flex-start;
|
|
2394
|
+
align-items: center;
|
|
2395
|
+
`,Eu=a.div`
|
|
2396
|
+
display: flex;
|
|
2397
|
+
flex: 1 0 auto;
|
|
2398
|
+
flex-direction: row;
|
|
2399
|
+
justify-content: flex-end;
|
|
2400
|
+
`,Hu=a.div`
|
|
2401
|
+
display: flex;
|
|
2402
|
+
flex-direction: row;
|
|
2403
|
+
justify-content: flex-start;
|
|
2404
|
+
`,Ue=a(_)`
|
|
2405
|
+
user-select: none;
|
|
2406
|
+
min-width: ${k.balanceWidth};
|
|
2407
|
+
max-width: ${k.balanceWidth};
|
|
2408
|
+
text-align: right;
|
|
2409
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2410
|
+
color: ${e=>e.theme.colors.hero};
|
|
2411
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2412
|
+
&:hover {
|
|
2413
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2414
|
+
}
|
|
2415
|
+
`,Ku=a.div`
|
|
2416
|
+
display: flex;
|
|
2417
|
+
flex-direction: row;
|
|
2418
|
+
flex-shrink: 2;
|
|
2419
|
+
flex-grow: 1;
|
|
2420
|
+
align-items: center;
|
|
2421
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2422
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2423
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2424
|
+
${({isSticky:e})=>e?P`
|
|
2425
|
+
position: -webkit-sticky;
|
|
2426
|
+
position: sticky;
|
|
2427
|
+
top: ${s.sp0};
|
|
2428
|
+
left: ${s.sp0};
|
|
2429
|
+
`:null}
|
|
2430
|
+
`,Yu=a(_)`
|
|
2431
|
+
user-select: none;
|
|
2432
|
+
clear: both;
|
|
2433
|
+
display: inline-block;
|
|
2434
|
+
overflow: hidden;
|
|
2435
|
+
white-space: nowrap;
|
|
2436
|
+
text-overflow: ellipsis;
|
|
2437
|
+
text-align: left;
|
|
2438
|
+
margin-left: ${s.sp6};
|
|
2439
|
+
color: ${e=>e.theme.colors.hero};
|
|
2440
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2441
|
+
&:hover {
|
|
2442
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2443
|
+
}
|
|
2444
|
+
`,Uu=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,onAccountBalanceClick:l})=>{const c=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",d=r!=null&&n!=null&&l!=null&&c!==!0;return t.jsxs(Hu,{"data-testid":m("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Ue,{"data-testid":m("account-row-balance-actual",e),isClickable:d,onClick:()=>{d===!0&&r!=null&&n!=null&&l?.(r,n)},children:q(n)}):t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:X(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{isClickable:!1,"data-testid":m("account-row-balance-forecast",e),children:X(n)}),t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function qu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isActualVsForecastOn:c,compareMode:d,isScrolling:h,isLeaf:u,isLastNode:p,account:g,onAccountBalanceClick:f}){const x=O(),{common:{strings:{hyphen:b}}}=B.getLocalizedStrings(),y=g?.accountDescription?g.accountDescription:b,C=g?.accountName?g.accountName:y;return t.jsxs(Gu,{height:r,bgColor:n,"data-testid":m("account-row-root-container",o),children:[t.jsxs(Ru,{"data-testid":m("account-row-container",o),children:[ge(e)===!0?t.jsx(Ku,{isSticky:i,windowSize:x,bgColor:n,children:t.jsx(Yu,{isClickable:!1,title:C,children:C})}):null,fe(e)===!0?t.jsx(Eu,{children:l.map((S,A)=>t.jsx(Uu,{type:e,isActualVsForecastOn:c,compareMode:d,balance:S,account:g,onAccountBalanceClick:f==null?void 0:(L,W)=>{f(o,L,W)}},A))}):null]}),t.jsx(Ju,{isScrolling:h,type:e,isLeaf:u,isLastNode:p})]})}function Ju({isScrolling:e,isLastNode:n,type:i}){const o=n?"ac_group_row_separator":ge(i)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(xe,{isScrolling:e,kind:o})}const Xu=a.div`
|
|
2445
|
+
display: flex;
|
|
2446
|
+
flex: 1 1 auto;
|
|
2447
|
+
width: fit-content;
|
|
2448
|
+
min-width: 100%;
|
|
2449
|
+
flex-direction: column;
|
|
2450
|
+
height: ${e=>e.height}px;
|
|
2451
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2452
|
+
`,Qu=a.div`
|
|
2453
|
+
user-select: none;
|
|
2454
|
+
display: flex;
|
|
2455
|
+
flex: 1 1 auto;
|
|
2456
|
+
flex-flow: row;
|
|
2457
|
+
justify-content: flex-start;
|
|
2458
|
+
align-items: center;
|
|
2459
|
+
`,Zu=a.div`
|
|
2460
|
+
display: flex;
|
|
2461
|
+
flex: 1 0 auto;
|
|
2462
|
+
flex-direction: row;
|
|
2463
|
+
justify-content: flex-end;
|
|
2464
|
+
`,eg=a.div`
|
|
2465
|
+
display: flex;
|
|
2466
|
+
flex-direction: row;
|
|
2467
|
+
justify-content: flex-start;
|
|
2468
|
+
`,qe=a(_)`
|
|
2469
|
+
user-select: none;
|
|
2470
|
+
max-width: ${k.balanceWidth};
|
|
2471
|
+
min-width: ${k.balanceWidth};
|
|
2472
|
+
text-align: right;
|
|
2473
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2474
|
+
`,tg=a.div`
|
|
2475
|
+
display: flex;
|
|
2476
|
+
flex-direction: row;
|
|
2477
|
+
flex-shrink: 2;
|
|
2478
|
+
flex-grow: 1;
|
|
2479
|
+
align-items: center;
|
|
2480
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2481
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2482
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2483
|
+
${({isSticky:e})=>e?P`
|
|
2484
|
+
position: -webkit-sticky;
|
|
2485
|
+
position: sticky;
|
|
2486
|
+
top: ${s.sp0};
|
|
2487
|
+
left: ${s.sp0};
|
|
2488
|
+
`:null}
|
|
2489
|
+
`,ng=a.div`
|
|
2490
|
+
display: flex;
|
|
2491
|
+
flex-grow: 8;
|
|
2492
|
+
`,ig=a(_)`
|
|
2493
|
+
user-select: none;
|
|
2494
|
+
user-select: none;
|
|
2495
|
+
clear: both;
|
|
2496
|
+
display: inline-block;
|
|
2497
|
+
overflow: hidden;
|
|
2498
|
+
white-space: nowrap;
|
|
2499
|
+
text-overflow: ellipsis;
|
|
2500
|
+
text-align: left;
|
|
2501
|
+
margin-left: ${s.sp2};
|
|
2502
|
+
`,og=a(we)`
|
|
2503
|
+
display: flex;
|
|
2504
|
+
color: ${e=>e.theme.colors.primary};
|
|
2505
|
+
align-items: center;
|
|
2506
|
+
flex-direction: row;
|
|
2507
|
+
justify-content: flex-end;
|
|
2508
|
+
padding: 1px 6px;
|
|
2509
|
+
height: 20px;
|
|
2510
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
2511
|
+
border-radius: ${s.sp1};
|
|
2512
|
+
margin: 0 ${s.sp5} 0 ${s.sp3};
|
|
2513
|
+
`,rg=({metadata:e,depth:n})=>n===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(No,{}):t.jsx(Io,{}),ag=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(eg,{children:[re(e)===!0||o?t.jsx(qe,{style:{color:i},children:q(n)}):t.jsx(qe,{style:{color:i},children:X(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(qe,{style:{color:i},children:X(n)}),t.jsx(qe,{style:{color:i},children:r==="compare_mode_percent"?se(n):de(n)})]}):null]});function lg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,className:l,classCode:c,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:p,isScrolling:g,isOpen:f,isLeaf:x,metadata:b,showClassAccountNumber:y,onClick:C,depth:S}){const A=O(),L=ce(),W=!x,F=W?"pointer":"default",z=L.colors.primary,K=l.length>0?l.substr(0,1).toUpperCase():"",[E,Y]=N.useState(!1),J=b.classAncestorMetadata??[];return t.jsxs(Xu,{"data-testid":m("class-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Qu,{"data-testid":m("class-row-container",o),style:{cursor:F},onClick:()=>C?.(o),onMouseOver:()=>Y(!0),onMouseLeave:()=>Y(!1),children:[ge(e)===!0?t.jsxs(tg,{isSticky:i,windowSize:A,bgColor:n,children:[t.jsx(oa,{name:l,ancestorMetadata:J,depth:S}),t.jsx(rg,{metadata:J[S],depth:S}),t.jsx(ye,{color:$(z),showCollapsedIcon:!f,showIcon:E&&W,firstLetter:K,showTreeLine:p}),t.jsx(ng,{children:t.jsx(ig,{style:{color:z},children:l})}),E===!0&&y===!0&&c!==void 0&&t.jsx(og,{children:c})]}):null,fe(e)===!0?t.jsx(Zu,{children:d.map((he,Q)=>t.jsx(ag,{type:e,sectionName:l,balance:he,isActualVsForecastOn:h,compareMode:u,color:z},Q))}):null]}),t.jsx(cg,{isScrolling:g,isLeaf:x,isOpen:f})]})}function cg({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(xe,{isScrolling:e,kind:"section_row_separator"}):null}const sg=a.div`
|
|
2514
|
+
display: flex;
|
|
2515
|
+
flex: 1 1 auto;
|
|
2516
|
+
width: fit-content;
|
|
2517
|
+
min-width: 100%;
|
|
2518
|
+
flex-direction: column;
|
|
2519
|
+
height: ${e=>e.height}px;
|
|
2520
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2521
|
+
`,dg=a.div`
|
|
2522
|
+
user-select: none;
|
|
2523
|
+
display: flex;
|
|
2524
|
+
flex: 1 1 auto;
|
|
2525
|
+
flex-flow: row;
|
|
2526
|
+
justify-content: flex-start;
|
|
2527
|
+
align-items: center;
|
|
2528
|
+
`,hg=a.div`
|
|
2529
|
+
display: flex;
|
|
2530
|
+
flex: 1 0 auto;
|
|
2531
|
+
flex-direction: row;
|
|
2532
|
+
justify-content: flex-end;
|
|
2533
|
+
`,ug=a.div`
|
|
2534
|
+
display: flex;
|
|
2535
|
+
flex-direction: row;
|
|
2536
|
+
justify-content: flex-start;
|
|
2537
|
+
`,Je=a(_)`
|
|
2538
|
+
user-select: none;
|
|
2539
|
+
max-width: ${k.balanceWidth};
|
|
2540
|
+
min-width: ${k.balanceWidth};
|
|
2541
|
+
text-align: right;
|
|
2542
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2543
|
+
`,gg=a.div`
|
|
2544
|
+
display: flex;
|
|
2545
|
+
flex-direction: row;
|
|
2546
|
+
flex-shrink: 2;
|
|
2547
|
+
flex-grow: 1;
|
|
2548
|
+
align-items: center;
|
|
2549
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2550
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2551
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2552
|
+
${({isSticky:e})=>e?P`
|
|
2553
|
+
position: -webkit-sticky;
|
|
2554
|
+
position: sticky;
|
|
2555
|
+
top: ${s.sp0};
|
|
2556
|
+
left: ${s.sp0};
|
|
2557
|
+
`:null}
|
|
2558
|
+
`,pg=a(_)`
|
|
2559
|
+
user-select: none;
|
|
2560
|
+
user-select: none;
|
|
2561
|
+
clear: both;
|
|
2562
|
+
display: inline-block;
|
|
2563
|
+
overflow: hidden;
|
|
2564
|
+
white-space: nowrap;
|
|
2565
|
+
text-overflow: ellipsis;
|
|
2566
|
+
text-align: left;
|
|
2567
|
+
margin-left: ${s.sp2};
|
|
2568
|
+
`,fg=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(ug,{children:[re(e)===!0||o?t.jsx(Je,{style:{color:i},children:q(n)}):t.jsx(Je,{style:{color:i},children:X(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(Je,{style:{color:i},children:X(n)}),t.jsx(Je,{style:{color:i},children:r==="compare_mode_percent"?se(n):de(n)})]}):null]});function dn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:c,isActualVsForecastOn:d,compareMode:h,sectionColor:u,isScrolling:p,isOpen:g,isLeaf:f,onClick:x}){const b=O(),y=!f,C=y?"pointer":"default",S=l.length>0?l.substring(0,1).toUpperCase():"",[A,L]=N.useState(!1);return t.jsxs(sg,{"data-testid":m("section-row",o),height:r,bgColor:n,children:[t.jsxs(dg,{"data-testid":m("section-row-container",o),style:{cursor:C},onClick:()=>x?.(o),onMouseOver:()=>L(!0),onMouseLeave:()=>L(!1),children:[ge(e)===!0?t.jsxs(gg,{isSticky:i,windowSize:b,bgColor:n,children:[t.jsx(ye,{color:$(u),showCollapsedIcon:!g,showIcon:A&&y,firstLetter:S}),t.jsx(pg,{style:{color:u},children:l})," "]}):null,fe(e)===!0?t.jsx(hg,{children:c.map((W,F)=>t.jsx(fg,{type:e,sectionName:l,balance:W,isActualVsForecastOn:d,compareMode:h,color:u},F))}):null]}),t.jsx(xg,{isScrolling:p,isLeaf:f,isOpen:g})]})}function xg({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(xe,{isScrolling:e,kind:"section_row_separator"}):null}const mg=a.div`
|
|
2569
|
+
display: flex;
|
|
2570
|
+
flex: 1 1 auto;
|
|
2571
|
+
width: fit-content;
|
|
2572
|
+
min-width: 100%;
|
|
2573
|
+
flex-direction: column;
|
|
2574
|
+
height: ${e=>e.height-1}px;
|
|
2575
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2576
|
+
`,wg=a.div`
|
|
2577
|
+
user-select: none;
|
|
2578
|
+
display: flex;
|
|
2579
|
+
flex: 1 1 auto;
|
|
2580
|
+
flex-flow: row;
|
|
2581
|
+
justify-content: flex-start;
|
|
2582
|
+
align-items: center;
|
|
2583
|
+
`,yg=a.div`
|
|
2584
|
+
display: flex;
|
|
2585
|
+
flex: 1 0 auto;
|
|
2586
|
+
flex-direction: row;
|
|
2587
|
+
justify-content: flex-end;
|
|
2588
|
+
`,bg=a.div`
|
|
2589
|
+
display: flex;
|
|
2590
|
+
flex-direction: row;
|
|
2591
|
+
justify-content: flex-start;
|
|
2592
|
+
`,Xe=a(_)`
|
|
2593
|
+
user-select: none;
|
|
2594
|
+
min-width: ${k.balanceWidth};
|
|
2595
|
+
max-width: ${k.balanceWidth};
|
|
2596
|
+
text-align: right;
|
|
2597
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2598
|
+
color: ${e=>e.theme.colors.hero};
|
|
2599
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2600
|
+
&:hover {
|
|
2601
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2602
|
+
}
|
|
2603
|
+
`,kg=a.div`
|
|
2604
|
+
display: flex;
|
|
2605
|
+
flex-direction: row;
|
|
2606
|
+
flex-shrink: 2;
|
|
2607
|
+
flex-grow: 1;
|
|
2608
|
+
align-items: center;
|
|
2609
|
+
height: ${e=>e.containerHeight-1}px; // Else bottom line doesnt show up
|
|
2610
|
+
// because the height of the svg is much larger
|
|
2611
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2612
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2613
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2614
|
+
color: ${e=>e.theme.colors.hero};
|
|
2615
|
+
|
|
2616
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2617
|
+
&:hover {
|
|
2618
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2619
|
+
}
|
|
2620
|
+
${({isSticky:e})=>e?P`
|
|
2621
|
+
position: -webkit-sticky;
|
|
2622
|
+
position: sticky;
|
|
2623
|
+
top: ${s.sp0};
|
|
2624
|
+
left: ${s.sp0};
|
|
2625
|
+
`:null}
|
|
2626
|
+
`,jg=a(_)`
|
|
2627
|
+
user-select: none;
|
|
2628
|
+
clear: both;
|
|
2629
|
+
display: inline-block;
|
|
2630
|
+
text-align: left;
|
|
2631
|
+
`,Sg=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,showTotal:l,onAccountBalanceClick:c})=>{const d=n!=null?Yo(n?.type):!1,h=r!=null&&n!=null&&c!=null&&d!==!0,u=l===!0?li(n):q(n),p=l===!0?jt(n):X(n),g=l===!0?ci(n):se(n),f=l===!0?si(n):de(n);return t.jsxs(bg,{"data-testid":m("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Xe,{"data-testid":m("account-row-balance-actual",e),isClickable:h,onClick:x=>{x.stopPropagation(),h===!0&&r!=null&&n!=null&&c?.(r,n)},children:u}):t.jsx(Xe,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),i?t.jsxs(t.Fragment,{children:[t.jsx(Xe,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),t.jsx(Xe,{"data-testid":m("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?g:f})]}):null]})};function Cg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,classDepth:l,accountBalances:c,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:p,noMarginForAccount:g,isLeaf:f,isOpen:x,isLastNode:b,account:y,onAccountBalanceClick:C,onClick:S}){const A=O(),L=y!=null?y.id.length-1:0,W=y?.hasSiblings??!1,F=y!=null?y.children.length!==0:!1,z=u,{common:{strings:{empty:K}}}=B.getLocalizedStrings(),E=y?.account.accountDescription?y.account.accountDescription:K,Y=y?.account.accountName?y.account.accountName:E;return t.jsxs(mg,{"data-testid":m("sub-account-row",o),height:r,bgColor:n,children:[t.jsxs(wg,{"data-testid":m("sub-account-row-container",o),onClick:()=>S?.(o),children:[t.jsx(kg,{isClickable:F,isSticky:i,windowSize:A,bgColor:n,containerHeight:r,children:t.jsx(jg,{title:Y,children:t.jsx(pi,{displayName:Y,depth:L,classDepth:l,isLastNode:b,hasChildren:F,hasSiblings:W,isLeaf:f,collapsed:!x,subAccountAnscestorMetadata:z.subAccountAncestorMetadata,classAnscestorMetadata:z.classAncestorMetadata??[],noMarginForAccount:g})})}),fe(e)===!0?t.jsx(yg,{children:c.map((J,he)=>t.jsx(Sg,{type:e,isActualVsForecastOn:d,compareMode:h,balance:J,account:y?.account,showTotal:!x,onAccountBalanceClick:C==null?void 0:(Q,ie)=>{C(o,Q,ie)}},he))}):null]}),t.jsx(_g,{isScrolling:p,isLeaf:f,isOpen:x,depth:L,isSticky:i,classDepth:l,noMarginForAccount:g})]})}function _g({isScrolling:e,depth:n,isOpen:i,isLeaf:o,isSticky:r,classDepth:l,noMarginForAccount:c}){return!i||o===!0?t.jsx(xe,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:n,isSticky:r,classDepth:l,noMarginForAccount:c}}):null}const vg=[10,14,20,20,20],$g=a.div`
|
|
2632
|
+
display: flex;
|
|
2633
|
+
flex: 1 1 auto;
|
|
2634
|
+
width: fit-content;
|
|
2635
|
+
min-width: 100%;
|
|
2636
|
+
flex-direction: column;
|
|
2637
|
+
height: ${e=>e.height-1}px;
|
|
2638
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2639
|
+
`,Lg=a.div`
|
|
2640
|
+
user-select: none;
|
|
2641
|
+
display: flex;
|
|
2642
|
+
flex: 1 1 auto;
|
|
2643
|
+
flex-flow: row;
|
|
2644
|
+
justify-content: flex-start;
|
|
2645
|
+
align-items: center;
|
|
2646
|
+
`,Ag=a.div`
|
|
2647
|
+
width: ${e=>di.emptyLeftContainer.valuePx(e.windowSize)};
|
|
2648
|
+
height: ${s.sp1};
|
|
2649
|
+
`,Bg=a.div`
|
|
2650
|
+
display: flex;
|
|
2651
|
+
flex: 1 0 auto;
|
|
2652
|
+
flex-direction: row;
|
|
2653
|
+
justify-content: flex-end;
|
|
2654
|
+
`,Wg=a.div`
|
|
2655
|
+
display: flex;
|
|
2656
|
+
flex-direction: row;
|
|
2657
|
+
justify-content: flex-start;
|
|
2658
|
+
`,Qe=a(_)`
|
|
2659
|
+
user-select: none;
|
|
2660
|
+
min-width: ${k.balanceWidth};
|
|
2661
|
+
max-width: ${k.balanceWidth};
|
|
2662
|
+
text-align: right;
|
|
2663
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2664
|
+
color: ${e=>e.theme.colors.primary};
|
|
2665
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2666
|
+
`,Og=a.div`
|
|
2667
|
+
display: flex;
|
|
2668
|
+
flex-direction: row;
|
|
2669
|
+
flex-shrink: 2;
|
|
2670
|
+
flex-grow: 1;
|
|
2671
|
+
align-items: center;
|
|
2672
|
+
height: ${e=>e.containerHeight-1}px;
|
|
2673
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2674
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2675
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2676
|
+
${({isSticky:e})=>e?P`
|
|
2677
|
+
position: -webkit-sticky;
|
|
2678
|
+
position: sticky;
|
|
2679
|
+
top: ${s.sp0};
|
|
2680
|
+
left: ${s.sp0};
|
|
2681
|
+
`:null}
|
|
2682
|
+
`,Mg=a(_)`
|
|
2683
|
+
user-select: none;
|
|
2684
|
+
clear: both;
|
|
2685
|
+
display: inline-block;
|
|
2686
|
+
overflow: hidden;
|
|
2687
|
+
white-space: nowrap;
|
|
2688
|
+
text-overflow: ellipsis;
|
|
2689
|
+
text-align: left;
|
|
2690
|
+
margin-left: ${e=>vg[e.depth]}px;
|
|
2691
|
+
color: ${e=>e.theme.colors.primary};
|
|
2692
|
+
width: ${e=>k.titleWidth.value(e.windowSize)-e.depth*80}px;
|
|
2693
|
+
`,Ng=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs(Wg,{"data-testid":m("sub-account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-actual",e),isClickable:!1,children:li(n)}):t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:jt(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:jt(n)}),t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?ci(n):si(n)})]}):null]});function Ig({type:e,backgroundColor:n,isSticky:i,height:o,classDepth:r,accountName:l,accountBalances:c,account:d,noMarginForAccount:h,isActualVsForecastOn:u,compareMode:p,isScrolling:g,metadata:f}){const x=O(),b=B.getLocalizedStrings().reports.sections,y=d!=null?d.id.length-1:0,C=f;return t.jsxs($g,{height:o,bgColor:n,children:[t.jsxs(Lg,{children:[t.jsxs(Og,{isSticky:i,windowSize:x,bgColor:n,containerHeight:o,children:[r!=null?t.jsx(ui,{ancestorMetadata:C.classAncestorMetadata??[],depth:r,name:l}):h===!1?t.jsx(Ag,{windowSize:x}):null,t.jsx(gi,{ancestorMetadata:C.subAccountAncestorMetadata,depth:y,name:l}),t.jsx(Mg,{"data-testid":m("sub-account-row-name",e),isClickable:!1,title:l,depth:y,windowSize:x,children:b.totalPrefix+" "+l})]}),fe(e)===!0?t.jsx(Bg,{children:c.map((S,A)=>t.jsx(Ng,{type:e,isActualVsForecastOn:u,compareMode:p,balance:S},A))}):null]}),t.jsx(Pg,{isScrolling:g,nestingLevel:y,isSticky:i,classDepth:r,noMarginForAccount:h})]})}function Pg({isScrolling:e,nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}){return t.jsx(xe,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}})}const Fg=a.div`
|
|
2694
|
+
user-select: none;
|
|
2695
|
+
display: flex;
|
|
2696
|
+
flex: 1 1 auto;
|
|
2697
|
+
width: fit-content;
|
|
2698
|
+
min-width: 100%;
|
|
2699
|
+
height: ${e=>e.height}px;
|
|
2700
|
+
flex-flow: row;
|
|
2701
|
+
justify-content: flex-start;
|
|
2702
|
+
align-items: center;
|
|
2703
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2704
|
+
`,zg=a.div`
|
|
2705
|
+
display: flex;
|
|
2706
|
+
flex: 1 0 auto;
|
|
2707
|
+
flex-direction: row;
|
|
2708
|
+
justify-content: flex-end;
|
|
2709
|
+
`,Oe=k.balanceWidthInPx+k.balanceLeftMarginInPx,xo=a.div`
|
|
2710
|
+
display: flex;
|
|
2711
|
+
max-height: 54px;
|
|
2712
|
+
min-height: 54px;
|
|
2713
|
+
min-width: ${e=>e.isActualVsForecastOn?3*(Oe-2)-k.balanceLeftMarginInPx:k.balanceWidthInPx}px;
|
|
2714
|
+
justify-content: center;
|
|
2715
|
+
align-items: center;
|
|
2716
|
+
background-color: ${e=>e.theme.colors.background};
|
|
2717
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2718
|
+
border-radius: ${s.sp2};
|
|
2719
|
+
margin-left: ${e=>e.isActualVsForecastOn?w[0]:k.balanceLeftMarginInPx}px;
|
|
2720
|
+
color: ${e=>e.theme.colors.primary};
|
|
2721
|
+
`,mo=a(_)`
|
|
2722
|
+
display: flex;
|
|
2723
|
+
user-select: none;
|
|
2724
|
+
flex-direction: row;
|
|
2725
|
+
justify-content: center;
|
|
2726
|
+
align-items: center;
|
|
2727
|
+
height: ${k.balanceHeight};
|
|
2728
|
+
max-width: ${k.balanceWidthInPx-2}px;
|
|
2729
|
+
width: 138px;
|
|
2730
|
+
text-align: center;
|
|
2731
|
+
`,Tg=a.div`
|
|
2732
|
+
height: 100%;
|
|
2733
|
+
display: inline-block;
|
|
2734
|
+
flex-direction: row;
|
|
2735
|
+
align-items: center;
|
|
2736
|
+
min-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2737
|
+
color: ${e=>e.theme.colors.grey5};
|
|
2738
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2739
|
+
border: 1px solid ${e=>e.bgColor?.hex()};
|
|
2740
|
+
${({isSticky:e})=>e?P`
|
|
2741
|
+
position: -webkit-sticky;
|
|
2742
|
+
position: sticky;
|
|
2743
|
+
top: ${s.sp0};
|
|
2744
|
+
left: ${s.sp0};
|
|
2745
|
+
z-index: 20;
|
|
2746
|
+
`:null}
|
|
2747
|
+
`,Vg=a.div`
|
|
2748
|
+
display: flex;
|
|
2749
|
+
width: ${e=>e.isActualVsForecastOn?3*Oe:Oe}px;
|
|
2750
|
+
flex-direction: row;
|
|
2751
|
+
justify-content: flex-start;
|
|
2752
|
+
color: ${e=>e.theme.colors.champion};
|
|
2753
|
+
`,kt=a(_)`
|
|
2754
|
+
display: flex;
|
|
2755
|
+
justify-content: flex-end;
|
|
2756
|
+
align-items: center;
|
|
2757
|
+
height: ${k.balanceHeight};
|
|
2758
|
+
width: ${k.balanceWidth};
|
|
2759
|
+
min-width: ${k.balanceWidth};
|
|
2760
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2761
|
+
margin-top: ${s.sp3};
|
|
2762
|
+
`,Dg=a.div`
|
|
2763
|
+
display: flex;
|
|
2764
|
+
max-height: 54px;
|
|
2765
|
+
min-height: 54px;
|
|
2766
|
+
justify-content: center;
|
|
2767
|
+
align-items: center;
|
|
2768
|
+
color: ${e=>e.theme.colors.champion};
|
|
2769
|
+
`,Gg=a.div``,Rg=a(_)`
|
|
2770
|
+
display: flex;
|
|
2771
|
+
justify-content: center;
|
|
2772
|
+
align-items: center;
|
|
2773
|
+
max-height: 54px;
|
|
2774
|
+
min-height: 54px;
|
|
2775
|
+
background-color: ${e=>e.theme.colors.background};
|
|
2776
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2777
|
+
border-radius: ${s.sp2};
|
|
2778
|
+
margin-left: ${k.balanceLeftMarginInPx}px;
|
|
2779
|
+
color: ${e=>e.theme.colors.primary};
|
|
2780
|
+
width: ${k.balanceWidth};
|
|
2781
|
+
min-width: ${k.balanceWidth};
|
|
2782
|
+
`,Eg=a.div`
|
|
2783
|
+
display: flex;
|
|
2784
|
+
width: ${e=>e.isActualVsForecastOn?3*Oe:Oe}px;
|
|
2785
|
+
flex-direction: column;
|
|
2786
|
+
align-items: flex-end;
|
|
2787
|
+
`,Hg=a.div`
|
|
2788
|
+
max-height: 54px;
|
|
2789
|
+
min-height: 54px;
|
|
2790
|
+
`,wo=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=B.getLocalizedStrings().reports,c=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?ai(i,e,n,r,o):void 0,d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=to(c,i);return t.jsx(Hg,{children:r!=null&&o!=null&&c!=null&&d!=null&&h!=null?t.jsx(eo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:c}):t.jsx(xo,{isActualVsForecastOn:!1,children:t.jsx(mo,{children:Pe(e,n,i)})})})},Kg=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:c,onCompareModeChanged:d})=>{const h=B.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(Eg,{isActualVsForecastOn:o,children:[t.jsx(xo,{isActualVsForecastOn:o,children:t.jsx(mo,{children:Pe(e,n,i)})}),t.jsxs(Vg,{isActualVsForecastOn:o,children:[t.jsx(kt,{children:h.actual}),t.jsx(kt,{children:h.forecast}),t.jsx(kt,{children:t.jsx(an,{title:u,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:p=>{p!=="off"?d?.(p):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(wo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:c})},Yg=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:c})=>{const d=ce(),h=o==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return t.jsx(Dg,{children:n.map((u,p)=>t.jsx(N.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(Rg,{children:t.jsx(an,{title:h,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:g=>{g!=="off"&&(g==="compare_mode_amount"||g==="compare_mode_percent"?c?.(g):console.warn("Invalid compare mode option"))}})}):t.jsx(Gg,{children:t.jsx(wo,{firstMonthOfFY:e,timeframeTick:u,timeframe:i,dataAvailable:r,bookCloseDate:l},p)})},p))})};function Ug({type:e,backgroundColor:n,isSticky:i,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}){const x=O();return t.jsxs(Fg,{height:o,bgColor:n,children:[ge(e)===!0?t.jsx(Tg,{isSticky:i,windowSize:x,bgColor:n,children:" . "}):null,t.jsx(zg,{children:l===!0?t.jsx(Yg,{firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}):h.map((b,y)=>t.jsx(Kg,{firstMonthOfFY:c,timeframeTick:b,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f},y))})]})}const ut=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Ne(i.config.reportId)===!0||ii(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),x=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(qu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:x.balances,isScrolling:c,isLeaf:d,isLastNode:h,account:g,onAccountBalanceClick:p==null?void 0:(b,y,C)=>{p?.(b,y,C)}})},ze=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_subaccount"||i.element.data==null)return null;const f=i.element.data,x=sn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ho(x.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,C=i.config.reportId==="operating_expenses";return t.jsx(Cg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",classDepth:y,compareMode:p,accountBalances:b.balances,isScrolling:c,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:i.element.metadata,onClick:g,noMarginForAccount:C,onAccountBalanceClick:g==null?void 0:(S,A,L)=>{g?.(S,A,L)}})},gt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,x=ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Bu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},hn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_subaccount"||i.element.data==null)return null;const f=i.element.data,x=sn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Vu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},un=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=Nt(i.element.title),x=i.element.data,b=ee(x,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,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},pt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=Nt(i.element.title),x=i.element.data,b=ee(x,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,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},gn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=Nt(i.element.title),x=i.element.data,b=ee(x,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,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Te=(e,n,i,o,r,l,c,d,h)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,p=sn("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),g=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=ho(p.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),x=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(Ig,{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:x,isLeaf:c,isLastNode:d,metadata:n.element.metadata,classDepth:g})},Ve=(e,n,i,o,r,l,c,d)=>{if(i.element.kind!=="timeframe_headers"&&i.element.kind!=="timeframe_headers_with_forecast")return null;const h=Fe(i.element.data,i.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",p=h.map(g=>Ie(g));return t.jsx(Ug,{treeNodeId:e,backgroundColor:r,isSticky:l,type:n,height:o,isActualVsForecastOn:i.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:i.config.mode==="this_period_vs_period_before"&&p.length>1,firstMonthOfFY:i.config.firstMonthOfFY,timeframe:u,timeframeTicks:p,compareMode:c,dataAvailable:i.config.dataAvailable,bookCloseDate:i.config.bookCloseDate,onCompareModeChanged:d})},yo=(e,n,i,o,r,l,c,d,h,u,p,g,f)=>{if(i.element.kind!="class"||i.element.data==null)return null;const x=i.element.data,b=ee(x.childrenBalancesTotal,i.config.displayOrder,i.element.numOfBalances),y=p>1;return t.jsx(lg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,className:i.element.title,classCode:i.element.data.class.accountingClassNumber,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",depth:x.id.length-1,compareMode:g,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,hasChildren:x.children.length>0,isLastNode:u,isSubClass:y,showClassAccountNumber:i.config.showClassAccountNumber,onClick:C=>{f?.(C)},metadata:i.element.metadata})},qg=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Jg=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ri,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),Un=e=>{const{height:n,data:{reportElementData:i,id:o,treeKind:r,isLeaf:l,isLastNode:c,nestingLevel:d,isFirstNode:h},isOpen:u,style:p,setOpen:g,isScrolling:f}=e,x=(C,S,A)=>{const L=l?u:!u;!l&&A==null&&(g(!u),e.onNodeCollapseToggled?.(C,!u)),e.onNodeClick?.(C,L,S,A)},b=e.treeNodePadding?.left,y=e.treeNodePadding?.right;return t.jsx("div",{style:{...p,width:"auto",minWidth:"100%",paddingLeft:b,paddingRight:y},children:t.jsx(bo,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:i,height:n,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:c,isFirstNode:h,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick!=null||!l?x:void 0,compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},o)})},bo=e=>e.treeKind==="name_only"?t.jsx(np,{...e}):Ht(e.reportElementData.config.reportId)?t.jsx(op,{...e}):Yt(e.reportElementData.config.reportId)===!0?t.jsx(ip,{...e}):ii(e.reportElementData.config.reportId)===!0?t.jsx(Xg,{...e}):Rt(e.reportElementData.config.reportId)===!0?t.jsx(Qg,{...e}):Ne(e.reportElementData.config.reportId)===!0?t.jsx(Zg,{...e}):Et(e.reportElementData.config.reportId)===!0?t.jsx(ep,{...e}):Ko(e.reportElementData.config.reportId)===!0?t.jsx(tp,{...e}):Ut(e.reportElementData.config.reportId)===!0?t.jsx(rp,{...e}):Kt(e.reportElementData.config.reportId)===!0?t.jsx(ap,{...e}):null,Xg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return un(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return gn(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,g,x);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,g,f);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,g);case"headers_loading_in_progress":return Jg(i,o,r);case"loading_in_progress":return qg(i,o,r);default:return null}},Qg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return un(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return gn(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return null;case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);default:return null}},Zg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return Zt(e,n,i,o,r,l,c,u,d,h,g,f);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,g,x);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,g,f);case"total":return Ui(e,n,i,o,r,l,g,d);case"headers_loading_in_progress":return Kc(i,o,r);case"loading_in_progress":return Hc(i,o,r);default:return null}},ep=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return Gc(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return Rc(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return Ec(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return Zt(e,n,i,o,r,l,c,u,d,h,p,g);case"total":return Ui(e,n,i,o,r,l,p,d);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);default:return null}},tp=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return un(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":return gn(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section_type1":return Ol(e,i,o,r,l,c,h);case"title_string_only":return Zt(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);default:return null}},np=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:p})=>{switch(i.element.kind){case"checkbox_and_name_only":return nh(e,n,i,o,r,l,c,u,d,h,p);default:return null}},ip=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(i.element.kind){case"loading_in_progress":case"spacer_row":return pu(i,o,r,l);case"timeframe_headers":return hu(i,o,l,h,r,u);case"total":return uu(e,n,i,o,l,c,r);case"vendor_row":return gu(n,i,o,r,l,c,d);case"title_string_only":return fu(i,o,r,l);default:return null}},op=({id:e,treeKind:n,reportElementData:i,height:o,isOpen:r,isSticky:l,isScrolling:c,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:p}=i;switch(i.element.kind){case"spacer_row":return null;case"timeframe_headers":return Ha(i,o,h,l,p.agingReportConfig?.sortKey,p.agingReportConfig?.sortOrder,p.agingReportConfig?.onSortOrderChanged);case"total":return Ua(n,i,o,h,l);case"aging_report_row":return Ka(e,i,o,r,l,d,c,h,p.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Ya(i,o,l,c,h);default:return null}},rp=({id:e,reportElementData:n,height:i,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:c,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:p,nodeClickHandler:g,hoveredParentIdProps:f})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return Gd(e,n,o,r,l,c,d,f,p);case"flux_vendor_row":return Rd(e,n,o,r,l,u,c,d,h,f,g);case"section":return Ed(e,n,i,o,r,l,u,c,d,g);case"timeframe_headers":return Hd(n,i,r);case"total":return Kd(n,i);case"loading_in_progress":return Yd(n);case"headers_loading_in_progress":return Ud(n);default:return null}},ap=({reportElementData:e,height:n,isSticky:i,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return Kr(e,i);case"loading_in_progress":return Hr();case"total":return Yr(e,n,i);case"section":return Er();case"title_string_only":return Ur(e,n);case"ac_group_report":return qr(e,n,o);default:return null}};function qn(e,n,i,o){return{data:{defaultHeight:pn(e.reportElementData.config.reportId,e.reportElementData.element.kind,e.isFirstNode),id:e.id,isLeaf:e.children.length===0,isFirstNode:e.isFirstNode??!1,isLastNode:e.isLastNode,isOpenByDefault:o??lp(e.reportElementData.config.reportId,e.reportElementData.element.kind,i,e.reportElementData.config.reportFormat),nestingLevel:i,treeKind:n,reportElementData:e.reportElementData},treeKind:n,nestingLevel:i,node:e}}function pn(e,n,i){return Rt(e)===!0?Jr(n):Et(e)===!0||Ne(e)===!0?ic(n):Ht(e)?ca(n):Kt(e)?it(n):Yt(e)?ih(n):Ut(e)?Ji(n,i):ul(n)}function lp(e,n,i,o){return Rt(e)?Xr(n,o,i):Et(e)||Ne(e)===!0?oc(n,o):Ht(e)?sa():Yt(e)?oh():Ut(e)?os(n):Kt(e)?qo():gl(n,o)}const cp=a.div`
|
|
2791
|
+
top: 0;
|
|
2792
|
+
left: 0;
|
|
2793
|
+
position: sticky !important;
|
|
2794
|
+
position: -webkit-sticky !important;
|
|
2795
|
+
min-height: ${e=>e.heightValue}px;
|
|
2796
|
+
max-height: ${e=>e.heightValue}px;
|
|
2797
|
+
width: fit-content;
|
|
2798
|
+
min-width: 100%;
|
|
2799
|
+
z-index: 2;
|
|
2800
|
+
display: flex;
|
|
2801
|
+
flex-direction: column;
|
|
2802
|
+
align-items: center;
|
|
2803
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2804
|
+
box-sizing: border-box;
|
|
2805
|
+
`;function sp({height:e,backgroundColor:n,headers:i,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:c}){return i.length===0?null:(i.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(cp,{heightValue:e,bgColor:n,"data-testid":m("sticky-header-report-tree"),children:i.map((d,h)=>t.jsx(bo,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:pn(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:n,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:i.length-1===h,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:c},d.id))}))}const dp=(e,n,i)=>function*(){for(let o=0;o<n.length;++o)yield qn(n[o],e,0,i[n[o].id]??void 0);for(;;){const o=yield;for(let r=0;r<o.node.children.length;++r)yield qn(o.node.children[r],e,o.nestingLevel+1,i[o.node.children[r].id]??void 0)}},ko=N.createContext(void 0);function hp({height:e,kind:n,rootNodes:i,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:c,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:p,infiniteLoadingProps:g,variableNodeHeightTree:f,onNodeClick:x,onCompareModeChanged:b,scrollPosition:y,onScroll:C,nodeOpenStatus:S,onNodeCollapseToggled:A,onTreeInnerElementHeightChanged:L,onToggleCheck:W,hoveredParentIdProps:F}){const z=N.useRef(null),K=N.useRef(null),E=bn(f?.prevFetchState),Y=bn(f?.prevRefreshFetchState),[J,he]=N.useState(0),Q=p??K,ie=u??z,Se=O(),[ae,ue]=N.useState(void 0),[De,fn]=N.useState(!1),[Ge,xn]=N.useState(S),mn=(I,te)=>{xn(Object.assign({},Ge,{[I]:te})),A?.(I,te)},wn=I=>{if(i.contentNodes.length>0)if(Object.keys(I).length>0){const te={};Object.keys(I).forEach(me=>{te[me]={open:I[me]}}),ie?.current?.recomputeTree(te)}else{const te=i.contentNodes[0].id;ie?.current?.recomputeTree({[te]:{open:!0}})}};N.useLayoutEffect(()=>{if((!kn(y,ae)||ae==null)&&Q.current!=null){const I=y?.scrollLeft==null?Se==="small"?0:Q.current.scrollWidth:y?.scrollLeft;if(y!=null){const te={scrollTop:y.scrollTop,scrollLeft:I};ue(te),I!==y?.scrollLeft&&C?.(te)}Q.current.scroll({left:I,top:y?.scrollTop})}},[y]),N.useEffect(()=>{kn(S,Ge)||(xn(S),wn(S))},[S]),N.useEffect(()=>{const I=Q.current,te=Lo(()=>{if(I!=null&&(ae==null||I.scrollLeft!==ae.scrollLeft||I.scrollTop!==ae.scrollTop)){const me={scrollLeft:I.scrollLeft,scrollTop:I.scrollTop};ue(me),C?.(me)}},50);return I?.addEventListener("scroll",te),()=>{I?.removeEventListener("scroll",te)}},[Q,ae,C]),N.useEffect(()=>{if(i.contentNodes.length>0){wn(Ge);const I=i.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";I!==De&&fn(I)}},[De,fn,i,ie,Q]),N.useEffect(()=>{(f!=null&&E==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&Y==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),he(J+1))},[J,f?.fetchState,f?.isSortApplied,E,Y,f]);const ft=N.useRef(),[jo,So]=N.useState(void 0),Co=()=>{const I=ft.current;I!=null&&I.clientHeight>0&&I.clientHeight!=jo&&(So(I.clientHeight),L?.(I.clientHeight))},yn=N.useCallback(dp(n,i.contentNodes,Ge),[n,i]),_o={rootNodes:i,treeNodePadding:c,backgroundColor:l,kind:n,isSticky:r,compareMode:o,onCompareModeChanged:b};return t.jsx(ko.Provider,{value:_o,"data-testid":m("report-tree"),children:g==null?t.jsx(jn,{className:d,style:h,ref:ie,innerRef:ft,outerRef:Q,innerElementType:Mt,treeWalker:yn,onItemsRendered:Co,height:e,width:"100%",children:I=>t.jsx(Un,{...I,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:mn,compareMode:o,onCompareModeChanged:b,onToggleCheck:W})}):t.jsx(Ao,{isItemLoaded:g.isItemLoaded,itemCount:g.itemCount+1,loadMoreItems:g.loadMoreItems,children:({onItemsRendered:I,ref:te})=>t.jsx(jn,{className:d,style:h,ref:te,innerRef:ft,outerRef:Q,innerElementType:Mt,treeWalker:yn,onItemsRendered:I,height:e,width:"100%",children:me=>t.jsx(Un,{...me,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:mn,compareMode:o,onCompareModeChanged:b,onToggleCheck:W,hoveredParentIdProps:F})},J)})})}const Mt=N.forwardRef((e,n)=>{const{children:i,style:o,...r}=e,{rootNodes:l,treeNodePadding:c,backgroundColor:d,kind:h,isSticky:u,compareMode:p,onCompareModeChanged:g}=N.useContext(ko),f=l.headerNodes.reduce((C,S)=>C+pn(S.reportElementData.config.reportId,S.reportElementData.element.kind,S.isFirstNode),0),x=c?.left,b=c?.right,y=s.sp8;return t.jsxs("div",{ref:n,style:{...o,width:"auto",minWidth:"100%",paddingLeft:x,paddingRight:b,marginBottom:y},...r,children:[t.jsx(sp,{height:f,backgroundColor:d,headers:l.headerNodes,treeKind:h,isSticky:u.isStickyHeader,compareMode:p,onCompareModeChanged:g}),i]})});Mt.displayName="stickyInnerElementType";const up=a.div`
|
|
2806
|
+
display: flex;
|
|
2807
|
+
flex: 1 0 auto;
|
|
2808
|
+
width: ${e=>e.width}px;
|
|
2809
|
+
height: ${e=>e.height}px;
|
|
2810
|
+
padding-left: ${e=>e.paddingLeft}px;
|
|
2811
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2812
|
+
|
|
2813
|
+
& .content-scroll {
|
|
2814
|
+
overflow: auto;
|
|
2815
|
+
scrollbar-width: thin;
|
|
2816
|
+
scrollbar-color: transparent transparent;
|
|
2817
|
+
&::-webkit-scrollbar {
|
|
2818
|
+
width: ${s.sp2};
|
|
2819
|
+
height: ${s.sp2};
|
|
2820
|
+
background-color: transparent;
|
|
2821
|
+
}
|
|
2822
|
+
&::-webkit-scrollbar-thumb {
|
|
2823
|
+
background-color: transparent;
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
&:hover {
|
|
2827
|
+
scrollbar-color: ${e=>e.theme.colors.grey1} transparent;
|
|
2828
|
+
&::-webkit-scrollbar {
|
|
2829
|
+
width: ${s.sp2};
|
|
2830
|
+
height: ${s.sp2};
|
|
2831
|
+
background-color: transparent;
|
|
2832
|
+
}
|
|
2833
|
+
&::-webkit-scrollbar-track {
|
|
2834
|
+
box-shadow: inset 0 0 2px ${Z.scrollbarBoxShadow};
|
|
2835
|
+
-webkit-box-shadow: inset 0 0 2px ${Z.scrollbarBoxShadow};
|
|
2836
|
+
background-color: transparent;
|
|
2837
|
+
}
|
|
2838
|
+
&::-webkit-scrollbar-thumb {
|
|
2839
|
+
background-color: ${e=>e.theme.colors.grey1};
|
|
2840
|
+
border-radius: 2px;
|
|
2841
|
+
}
|
|
2842
|
+
}
|
|
2843
|
+
}
|
|
2844
|
+
`;function yp({rootNodes:e,type:n,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l,onAccountClick:c,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onCompareModeChanged:p,scrollPosition:g,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onReportTableHeightChanged:y,onToggleCheck:C}){return t.jsx(vo,{children:({height:S,width:A})=>t.jsx(up,{"data-testid":m("report-tree-container"),height:S,width:A,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(hp,{"data-testid":m("report-tree"),treeClassName:"content-scroll",height:S,kind:n,rootNodes:e,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onNodeClick:c==null?void 0:(L,W,F,z)=>{F!=null&&z!=null&&c(F,z)},onCompareModeChanged:p,scrollPosition:g,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onTreeInnerElementHeightChanged:y,onToggleCheck:C})})})}export{ee as D,yp as I,q as J,wp as R,Pe as V,We as a,ot as l,Yc as n,on as r,sn as x};
|