@zeniai/web-app-ui 4.14.36-qa → 4.14.38-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-BgitUCnK.js → ACHDetailsPage-BShpKoIj-D1Wy32uO.js} +6 -6
- package/dist/assets/{AIPerformancePage-Da3gFo8A-B6fd9yMu.js → AIPerformancePage-CFErwUsE-DcUypqs6.js} +21 -21
- package/dist/assets/AccountInfoPage-B8upbXj9-Cm42EUIq.js +18 -0
- package/dist/assets/AccountInfoPageContent-CKpeDot5-CwoUlvIm.js +149 -0
- package/dist/assets/{AccountLockedInfoModal-BJjCuLHa-Dwc4Twfa.js → AccountLockedInfoModal-c30P9O_3-DzDiXoV7.js} +6 -6
- package/dist/assets/{AccountReconDetailsDrawerPage-CVjH1p0d-B1ewqXBW.js → AccountReconDetailsDrawerPage-CO9BYPWm-CTb98mzK.js} +16 -16
- package/dist/assets/AccountRow-BrW_eEjE-Cmf0Jids.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-D7xvgmOH-B_Z0IcIc.js → AccountsPromoCardStack-De2yNNuZ-XXlQf85I.js} +14 -14
- package/dist/assets/AddAddressForCardDrawer-riOPLnxb-DAb8sz-Z.js +6 -0
- package/dist/assets/{AddToWalletPage-zJy9QCjx-CAgD66cB.js → AddToWalletPage-CsOmzC7v-S49ZGsCa.js} +13 -13
- package/dist/assets/AddressRoutes-CO2FKDgK.js +1 -0
- package/dist/assets/AddressScreen-DsuZFaVf.js +9 -0
- package/dist/assets/{AgingReportsPage-wAvQb1d8-bRB2pbCU.js → AgingReportsPage-D9I9afnB-Df3hrLUY.js} +8 -8
- package/dist/assets/AiCfoScreen-D5N0hxeG.js +11 -0
- package/dist/assets/{AllUserItems-DEv_CXOA-D8XKRK3i.js → AllUserItems-Dq7NcP-o-Da1Zo4z6.js} +11 -11
- package/dist/assets/ApAgingDetailPage-Z5JgfH-e-CEuDNd6O.js +46 -0
- package/dist/assets/{AppBasePage-DMlomvFS-CQMcvMHZ.js → AppBasePage-B5sDynhi-CeUmBhIQ.js} +10 -10
- package/dist/assets/AppDrawerContent-D9Q8ir0T-DZmwUW8c.js +92 -0
- package/dist/assets/ApprovalRulesSettingsPage-DVGvJsQG-yl1UuAvx.js +47 -0
- package/dist/assets/{ArAgingChart-m-Xp3HAW-CnkoHC-y.js → ArAgingChart-Tcu0Lja_-BWNKgMZE.js} +7 -7
- package/dist/assets/ArAgingDetailPage-B5vqkc3v-B1AqC5xt.js +46 -0
- package/dist/assets/{AttachmentView-DB_V1qT1-CUnw9dFs.js → AttachmentView-CiYfninr-DZhIwWMR.js} +6 -6
- package/dist/assets/BalancesInsightWithToolTip-tiQUQUbX-DMW3pWLJ.js +38 -0
- package/dist/assets/{BankAccountSection-BabhrBM7-CjKNHuqx.js → BankAccountSection-EZtscP2z-C2fUrA1M.js} +7 -7
- package/dist/assets/BankAccountWarningSection-DCfyIUlu-D_RVGDL2.js +51 -0
- package/dist/assets/BankConnectionsSettingsPage-CQWy9jvt-Brl3VmAQ.js +425 -0
- package/dist/assets/BillDetailPage-pt1k5AQf-C_HrCJfS.js +266 -0
- package/dist/assets/BillPayApprovalRoutes-5Y0msu-c.js +1 -0
- package/dist/assets/BillPayApprovalRuleDetailPage-Drh7Bhi8-EZrQsXba.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-9pxkgFAT-C0fukcC-.js → BillPayApprovalRulesPage-Cmyo59xB-D7U9ywcy.js} +12 -12
- package/dist/assets/{BillPayPromoPage-AGffhbY3-CtBTCqHG.js → BillPayPromoPage-Dgpz2TLG-BwKkDBie.js} +8 -8
- package/dist/assets/{BillPayRoutes-CLxgVQoZ.js → BillPayRoutes-aVWMd64J.js} +19 -19
- package/dist/assets/BillPaySetUpPage-B6Pd_eBf-DFM86E0U.js +42 -0
- package/dist/assets/{BillingSettingsPage-CQ117tT9-BttuaXcF.js → BillingSettingsPage-CYsvBrFV-B9NfPSZ9.js} +10 -10
- package/dist/assets/{BillsBulkReviewDrawerPage-DRkGQQAe-DERm9Zoh.js → BillsBulkReviewDrawerPage-DNnAmqWz-C01NVO_d.js} +1 -1
- package/dist/assets/{BoxItem-DRwx0M5a-CDlEJbUh.js → BoxItem-B06DK4G--C4opawya.js} +3 -3
- package/dist/assets/BusinessVerificationPage-Dgk5gyMv-BrQSkaHR.js +138 -0
- package/dist/assets/BusinessVerificationPageScreen-D9PxWQrU.js +9 -0
- package/dist/assets/BusyIndication-Cd67eHX6-C7aB5h-1.js +9 -0
- package/dist/assets/{CardNumberSubText-DqtLT1w5-3-jd_gkY.js → CardNumberSubText-CcH9jUoZ-HppogTjx.js} +5 -5
- package/dist/assets/{CashbackDetailPage-ChdQcvkC-ICsGmTUH.js → CashbackDetailPage-5eysaHGf-CZA31npt.js} +28 -28
- package/dist/assets/{ChargeCardDetailPage-DFOKlPNG-DAT7wsUl.js → ChargeCardDetailPage-Diwf-gwZ-BccKvsWr.js} +40 -40
- package/dist/assets/{ChargeCardListPage-DhLUsUhd-Cb0G0I2o.js → ChargeCardListPage-C-RTGkKK-Cc1az4M9.js} +23 -23
- package/dist/assets/ChargeCardListTable-B-bNbtZQ-BuEumynS.js +711 -0
- package/dist/assets/{ChargeCardPaymentHistoryPage-CbGR18s--D1FALKZp.js → ChargeCardPaymentHistoryPage-Cu-zT5tO-CNy0B9A3.js} +13 -13
- package/dist/assets/ChargeCardPromoPage-Cz3rNFwM-CdxjjcEa.js +222 -0
- package/dist/assets/{ChargeCardRoutes-B2VyUVyE.js → ChargeCardRoutes-CKV_cGg2.js} +13 -13
- package/dist/assets/{ChargeCardSetupPage-ITi25kUD-DQrLuHzm.js → ChargeCardSetupPage-BcTB9Yy5-BJuaiwYA.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CTJc1BCc-B3iOfWLi.js → ChargeCardStatementsPage-B_ERvgmB-W5ryAUPk.js} +3 -3
- package/dist/assets/CheckDepositDrawerPage-D7_usOVn-DA-Kombi.js +206 -0
- package/dist/assets/CollapsableReportTable-h0vIfI8o-Q6XPsw6M.js +2982 -0
- package/dist/assets/{CompanyOfficerDetailsSection-BaPhFsLx-DHUewusV.js → CompanyOfficerDetailsSection-CWADX4kZ-DANlup8L.js} +96 -96
- package/dist/assets/CompanyPassportCard-DF9LFrFD-DPvP8c2P.js +42 -0
- package/dist/assets/{CompanyPassportPage-BQ68t7oK-BgIAIBvG.js → CompanyPassportPage-BtAopyLq-CG1Jq4C9.js} +24 -24
- package/dist/assets/CompanyPassportScreen-Dl29U7F0.js +1 -0
- package/dist/assets/CompleteProfile-CsbsHQ0p-DmLd2177.js +52 -0
- package/dist/assets/ConfettiBurst-duD341Gp-CKS6HfNq.js +1 -0
- package/dist/assets/ConnectionAuthScreen-CtmFWvaS.js +11 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-2qMgM4hb.js → ConstrainedInnerElement-hv51KpGg-CKGSsSPo.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BIfOA5Nr-DmMOi9Py.js → CreateOrEditVendorPage-C2xU6c51-Cx-c8OBN.js} +15 -15
- package/dist/assets/{CreditCardPaymentDrawerPage-CCpS-31h-D2E09eId.js → CreditCardPaymentDrawerPage-CeagMaCu-CazU8VPX.js} +21 -21
- package/dist/assets/CurrencySelectField-B8EoF2aF-DHzUxLL4.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-6VlMI4oY-C6UkeafC.js → CustomerOnboardingActivationPage-CIeR2XvU-CMOVbNs9.js} +6 -6
- package/dist/assets/CustomerOnboardingAuthScreen-DtvN_x2S.js +1 -0
- package/dist/assets/CustomerOnboardingContainerPage-DVL4s-eV-uJRgyQW8.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BzbZb27J-BjFDDxCU.js → CustomerOnboardingDetailPageSkeleton-kUbwh2r2-BjHJq9e_.js} +17 -17
- package/dist/assets/CustomerOnboardingNoStepsPage-Br0jy7Pu-xbtVpPeD.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-DkW66A-p-CqCCkCYq.js → CustomerOnboardingPage-Dm2Si769-CuOP2t9G.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-Ba0yotpP-B65VLjH4.js → CustomerOnboardingProductSuitePage-Cz81Q5jC-CBFgnoEY.js} +10 -10
- package/dist/assets/{CustomerOnboardingRoutes-BbuQETSm.js → CustomerOnboardingRoutes-C_QLwzau.js} +7 -7
- package/dist/assets/{Dashboard-bX3cWkmP-D2iKKw2J.js → Dashboard-DReG_aaf-B9cmSG7e.js} +45 -45
- package/dist/assets/{DashboardReportPage-DuZ4d4CE-Cp1XRSMC.js → DashboardReportPage-BXSlwsR7-CjT08Tnm.js} +42 -42
- package/dist/assets/DashboardRoutes-Cr_y84hZ.js +21 -0
- package/dist/assets/{DashboardSidebarBackgroundAnimation-UV2CZToG-BePjXuRd.js → DashboardSidebarBackgroundAnimation-B3dtVAe2-DcsdDEM2.js} +1 -1
- package/dist/assets/{DefaultTenantHome-DAGhRU2p.js → DefaultTenantHome-Bp9gU4vX.js} +1 -1
- package/dist/assets/DepositAccTransactionItem-YuSXjbLh-DkrFIYaS.js +76 -0
- package/dist/assets/DepositAccTransactionListPage-C-FAvZwD-CLMW6N19.js +66 -0
- package/dist/assets/DomesticWireDetailScreen-CV-2twy7.js +18 -0
- package/dist/assets/DomesticWireDetailsPage-BaiSpc0N-BjZ307kD.js +21 -0
- package/dist/assets/DownloadOverlay-BpRKCn-0-Ceuu4G9V.js +439 -0
- package/dist/assets/{DrawerPage-CaG-xx5d-DCOdzFu5.js → DrawerPage-DQ3Xuekx-osFrzw_b.js} +14 -14
- package/dist/assets/DrawerScreen-0WDRSJz6.js +1 -0
- package/dist/assets/EditPeoplePage-8DalSMWH-CybAz5BL.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-CC2BjMkR-UcYvbITo.js +865 -0
- package/dist/assets/EntityDetailPage-fmWuxHTZ-zOCr7HwT.js +18 -0
- package/dist/assets/EntityDetailRoutes-r6uNQDsF.js +1 -0
- package/dist/assets/{EntitySummarySection-LEA5m6mN-COsxmiXN.js → EntitySummarySection-vsEMiXYh-xFy88yRd.js} +26 -26
- package/dist/assets/{ExpenseAutomationOverviewPage-Dmhn7gfp-DRKfvdpQ.js → ExpenseAutomationOverviewPage-B3HPfIsK-BoAXmFoS.js} +48 -48
- package/dist/assets/ExpenseAutomationPage-4LJefgNh-n1--5-UE.js +3628 -0
- package/dist/assets/ExpenseAutomationRoutes-Dd80KoVV.js +20 -0
- package/dist/assets/{ExpressPayPage-C-nqret2-KetoqTaI.js → ExpressPayPage-BH7oCW_F-DgICn4el.js} +11 -11
- package/dist/assets/{FeaturePreviewPage-BHjUZ7s6-CDfaoOXm.js → FeaturePreviewPage-DSv61BhF-BsdnfTlO.js} +2 -2
- package/dist/assets/FeaturePreviewScreen-D2Pa-R10.js +1 -0
- package/dist/assets/{FollowStepsSection-0eFMS0c5-BaucUfRt.js → FollowStepsSection-Bgy9MpO4-CvIWpdyW.js} +9 -9
- package/dist/assets/GlobalReviewListPage-VRq_gimm-BpVLghA7.js +291 -0
- package/dist/assets/{InformationCardStack-C7XJCUlh-DjdOTgGS.js → InformationCardStack-rx0fypl3-OYwqii2C.js} +4 -4
- package/dist/assets/InsightsCardStack-uJWMkIZL-BDZTXUwm.js +79 -0
- package/dist/assets/InsightsSection-ByFf2oGn-ChvKOP1F.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-BD5jqAv8-jCqAB96Y.js → IntegrationsSettingsPage-Cj01Nub6-lRHeOJiB.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-BftrE612-C1oqAYKw.js → InternationalWireSwiftDetailsPage-C2PM97sv-BLs5mpsl.js} +13 -13
- package/dist/assets/InternationalWireVerificationPage-Cr3sDrT--Dj5HT769.js +65 -0
- package/dist/assets/{InviteFormPage-E2igwKEh-BfamEOA0.js → InviteFormPage-dsMpScvq-pwPoaIw-.js} +10 -10
- package/dist/assets/{InvitePageListView-Cuq9dlgu-BswYJOcw.js → InvitePageListView-e7vGSbFa-BfSD0kcH.js} +72 -72
- package/dist/assets/InvitePeoplePage-BT_YVCP4-CQRb2c-r.js +12 -0
- package/dist/assets/InvoiceUploadSection-Dg1-uunA-1cshMTVc.js +140 -0
- package/dist/assets/{IssueChargeCardPage-CK6fnO24-CZaBXPmq.js → IssueChargeCardPage-CyF9wrb0-CWwHqex_.js} +22 -22
- package/dist/assets/{LabeledAddressValue-Ma1WURjK-SOyeFnDb.js → LabeledAddressValue-3l0Bv00--Bw_81ZJz.js} +1 -1
- package/dist/assets/LabeledAddressValueField-F9kvUR_r-9ELTRqNI.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-BgC8y0D6-BlS4qFJC.js +16 -0
- package/dist/assets/{LabeledCountryMultiSelectField-sj8p7Rne-BB5IjdKT.js → LabeledCountryMultiSelectField-3qI_4noU-UcVNXOp1.js} +4 -4
- package/dist/assets/{LabeledCreatableSingleSelectField-DUTQh416-C_C7TgJg.js → LabeledCreatableSingleSelectField-BV3h9bh7-BCEINAy7.js} +10 -10
- package/dist/assets/LabeledDocumentField-rriEcsdr-CcDZw3QZ.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-3-KekP79-BFouZsyb.js → LabeledDropDownFormattedTextField-DoVSg3nZ-82mPtDTT.js} +5 -5
- package/dist/assets/{LabeledEmailInputField-BRJyFvVd-CLFwXbdl.js → LabeledEmailInputField-CKWZEkTs-C9DTkL1y.js} +8 -8
- package/dist/assets/{LabeledNameField--saAep-_-CReVVQpK.js → LabeledNameField-yaSRe5Vt-cnDt7eal.js} +5 -5
- package/dist/assets/{LabeledSingleSelectField-Ul4tlTiO-B5-cTLoa.js → LabeledSingleSelectField-D5QUlcEP-DOA8WTdI.js} +7 -7
- package/dist/assets/LabeledText-DGZ7hxY4-BBOC0Eln.js +42 -0
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-Dfj0gvkd.js → LabeledUserSingleSelectWithSubtitlesField-DI07Eicg-NPjB_w_o.js} +15 -15
- package/dist/assets/{LabeledZeniRolesDropDownField-kWC0ShEy-BPt5mqTD.js → LabeledZeniRolesDropDownField-jIrTovp--C7mgztQg.js} +27 -27
- package/dist/assets/{LinkJETransactionPage-WufhDGDQ-CzSZY5Ji.js → LinkJETransactionPage-Bvbqpltz-BZhW34oI.js} +8 -8
- package/dist/assets/{LockCardPage-BBIVLYVD-CLo11134.js → LockCardPage-DyEQBJYx-DksW1-ZG.js} +23 -23
- package/dist/assets/{LowBalancePopup-ScEqPY9J-wCMhmKTa.js → LowBalancePopup-C2vHKMNF-CMEceag2.js} +7 -7
- package/dist/assets/MagicLinkACHDetailsPage-lAAwAtH7-D8E0BCBV.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-cv823ASo-Br4bjkHP.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-C_SjsgC9-Dt-hi6Za.js +1 -0
- package/dist/assets/{MagicLinkRoutes-DGEyZyp5.js → MagicLinkRoutes-DAnRUF47.js} +10 -10
- package/dist/assets/MagicLinkSignInScreen-BRdR8FPq.js +12 -0
- package/dist/assets/MagicLinkSuccessPage-B1LBYM2F-DRIhjweE.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-ZnbKPIvJ-C28UB4ql.js → MagicLinkTitleSection-ClAnBBt9-BWJjfwMs.js} +2 -2
- package/dist/assets/{MailingDetailsSection-DZT7JPlI-C38hqmub.js → MailingDetailsSection-9_XLl4bT-Bq5v10Od.js} +1 -1
- package/dist/assets/MobileAppDrawer-DXy0Oi_h.js +1 -0
- package/dist/assets/{MoreMenuButton-CJue6xR9-DaOmUQCK.js → MoreMenuButton-Ct8k8Oax-C0IXgNiJ.js} +29 -29
- package/dist/assets/{MyBankConnectionsSettingsPage-aQDVaEG1-BQj6U5VD.js → MyBankConnectionsSettingsPage-CBNYcuP4-CSPIvvUE.js} +8 -8
- package/dist/assets/{MyPendingActivationChargeCardListPage-BJrk56oA-a4lk-FRm.js → MyPendingActivationChargeCardListPage-n71n40uQ-DnLQhl3T.js} +1 -1
- package/dist/assets/MyProfileSettingsPage-BUMIjZYc-CAlzma3h.js +85 -0
- package/dist/assets/NavBarWithPicker-CbjFNysh-Ck578WIs.js +30 -0
- package/dist/assets/{NavigationArrow-D26UG3p--CCqiziIA.js → NavigationArrow-Dpc7u6y4-CiTKhYeI.js} +2 -2
- package/dist/assets/NavigationDots-DCpslVnm-D-4SKVAz.js +15 -0
- package/dist/assets/{NewGlobalMerchantPage-vOn2O6B9-BmOnDaTo.js → NewGlobalMerchantPage-B10sY6Q_-Cu6PKFa1.js} +12 -12
- package/dist/assets/{NoDataChart-CgT19fV7-BnUaWo2A.js → NoDataChart-9-bhq204-BNHp8Nld.js} +3 -3
- package/dist/assets/{NoDataTable-CPjJmo4s-BDfqEXQj.js → NoDataTable-C6Q2Anpz-BqTI2GFx.js} +1 -1
- package/dist/assets/{NotFoundPage-CP2i3FTm-DrcRl_rx.js → NotFoundPage-4mPhXD5--pWqZwF3K.js} +5 -5
- package/dist/assets/NotFoundScreen-MU1vvTl3.js +1 -0
- package/dist/assets/NotificationRoutes-CiTIiIjp.js +1 -0
- package/dist/assets/{NotificationSettingsPage-CT9Dnb03-Dm7KyS7f.js → NotificationSettingsPage-BTxCoB_b-1ycVlHAN.js} +30 -30
- package/dist/assets/NotificationsListConfig-CylnViXd-DEcj9I_Q.js +1 -0
- package/dist/assets/NotificationsPage-D41h0mS6-lOcsglza.js +685 -0
- package/dist/assets/OpExByVendorPage-BV_uJSCh-ClxLsbjb.js +100 -0
- package/dist/assets/OverlayContainerPage-CkUYOhlh-C1amAlX0.js +11 -0
- package/dist/assets/PandLWithForecastPage-Cj3UWjG4-C0webWAA.js +123 -0
- package/dist/assets/PandLWithForecastRoutes-t6sqNQ0M.js +1 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-JPO-rPAd-Dmaxec0g.js → PaymentAccountSetupBillingAddressSection-BWFl695q-DCuXfW77.js} +11 -11
- package/dist/assets/PeoplePage-DcGqWtAP-kL10xLdE.js +772 -0
- package/dist/assets/PeopleRoutes-DvMa0FHX.js +22 -0
- package/dist/assets/PerformanceRoutes-C97G2NlX.js +1 -0
- package/dist/assets/{Preview-B_UHWYM5.js → Preview-Bd0e5eLk.js} +1 -1
- package/dist/assets/{ProductsCarousel-7R3cvGiS-DmQ2H6G4.js → ProductsCarousel-C9JoJQeH-y7_emSya.js} +8 -8
- package/dist/assets/{PromoBaseCards-DdCMZIc7-Df8cZl94.js → PromoBaseCards-mFk7SsOr-B_0Pg0f0.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-Ca36jKz2-DAMkmB7c.js → QBOConnectionDialog-CJsIrEZq-CgfqE4WV.js} +13 -13
- package/dist/assets/{QBOConnectionScreen-JiiEAGy2.js → QBOConnectionScreen-1Q56jIZw.js} +4 -22
- package/dist/assets/{QBOSetupSection-CzBfIVqR-CbTARgMf.js → QBOSetupSection-C_fqHza_-B72ZoKWs.js} +9 -9
- package/dist/assets/ReferralListScreen-DJHg0qdR.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-5hvNi1ri.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-DUVSGQJ6-DvpCvtrE.js → ReimbursementApprovalRuleDetailPage-BMZnKpsk-C22qLIuK.js} +4 -4
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-CE15OHBL.js +1 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-B48x1gPM-DxxLWTnS.js → ReimbursementApprovalRulesPage-C2zNa8dT-D_08-i4Q.js} +30 -30
- package/dist/assets/ReimbursementDetailPage-B1o8ea57-pJYrfLLt.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-BKgsJieE-C2_bC473.js → ReimbursementPromoPage-Df5QmXzC-CKWnZWeo.js} +18 -18
- package/dist/assets/ReimbursementRoutes-RM0BTfix.js +13 -0
- package/dist/assets/{ReimbursementSetUpPage-B_c-ZgFT-BBt2uEqx.js → ReimbursementSetUpPage-D450RVsP-XThkQYrn.js} +6 -6
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DwgKrhlQ-Dpv01EXR.js +1 -0
- package/dist/assets/ReloadCard-D5cvzWxe-BiXLC8Nt.js +26 -0
- package/dist/assets/ReportTableViewSelector-Ig41fOPb-DWudlBCf.js +151 -0
- package/dist/assets/ReportsPage-CRAVAUTO-B8oVNLjt.js +269 -0
- package/dist/assets/ReportsRoutes-yGE_MThE.js +1 -0
- package/dist/assets/{RevenueChart-SvdhwBcE-DFVZ2SH4.js → RevenueChart-DtQu0KAn-8Nxk30mB.js} +18 -18
- package/dist/assets/ReviewDetailsPage-vui4TqeA-BHywFcJg.js +290 -0
- package/dist/assets/{ReviewOverlay-BoM41t8W-Tjo8TsbC.js → ReviewOverlay-CUnL7H-a-C2Hax1dX.js} +11 -11
- package/dist/assets/RewardsRoutes-BLdquuw-.js +1 -0
- package/dist/assets/RoleWithToolTip-x2rnvWn9-CndfBCzZ.js +22 -0
- package/dist/assets/ScheduleDetailsFixedAssetsPage-D_Cls2jC-DT2hV6fF.js +37 -0
- package/dist/assets/ScheduleDetailsPage-DmSLuM8g-BJX_WigV.js +37 -0
- package/dist/assets/ScheduleSequenceTable-js9_P_Lo-C0aHTQ-B.js +326 -0
- package/dist/assets/ScreenRoutes-Ckyy2m-9.js +2 -0
- package/dist/assets/{SetUpAccountSection-sfIB1h4i-OQRP6w_s.js → SetUpAccountSection-DYRWWXcL-BJMCbqBu.js} +23 -23
- package/dist/assets/{SettingsRoutes-_PBfx_CH.js → SettingsRoutes-HPPA3EWU.js} +7 -7
- package/dist/assets/{SetupPagesScreen-Bjv1_530.js → SetupPagesScreen-Cz2ybo_2.js} +6 -6
- package/dist/assets/SignIn-CUJkZb3S-Cj2EgQsz.js +491 -0
- package/dist/assets/SignInScreen-BSE9oghj.js +1 -0
- package/dist/assets/SignOutScreen-CDL-h93X.js +9 -0
- package/dist/assets/SpendManagementListViewPage-BieufnDb-Cqid6Xsk.js +134 -0
- package/dist/assets/SpendManagementPerTabPage-BmUp80QX-B1ZhgxKn.js +754 -0
- package/dist/assets/SpendManagementSection-DKZNTYXT-D04hpJmz.js +375 -0
- package/dist/assets/StatementItem-Dyt5Q0eR-jB2YMdu5.js +31 -0
- package/dist/assets/StatementsPage-CbtnJM5y-y3-8Ovdn.js +58 -0
- package/dist/assets/{StatusSwitcher-CaoFw0cf-BSUpAcCG.js → StatusSwitcher-BfQ9VbBH-C2uXiIL4.js} +4 -4
- package/dist/assets/{SubTabSwitcher-zrkVj1aP-kI_QH-yK.js → SubTabSwitcher-CzGiuhk3-C7cKUv_v.js} +9 -9
- package/dist/assets/SuccessAnimation-DA3343II-B6vDBJ0_.js +13 -0
- package/dist/assets/SummaryCard-D61xzK3a-CfR23TFg.js +1 -0
- package/dist/assets/{TaskDetailPage-044JwAvz-CIchaLt5.js → TaskDetailPage-CyZxZdJB-DrITidSC.js} +22 -22
- package/dist/assets/TaskListScreen-DwAEl1NC.js +9 -0
- package/dist/assets/TaskManagementPage-ucVAdv7x-Msj3UnnC.js +1067 -0
- package/dist/assets/TaskRoutes-Bz1uRNCx.js +9 -0
- package/dist/assets/TimeRangeSwitcher-C3jXm39I-fOK0S_yE.js +64 -0
- package/dist/assets/TimeframeSwitcher-CcYg-YQJ-DfqszobX.js +31 -0
- package/dist/assets/TimeframeSwitcherWithToggle-w4YJno-p-mLBmOb3v.js +53 -0
- package/dist/assets/{TopExCard-BUjnGDUB-HxwM-fNF.js → TopExCard-D2PRxvFc-3B8t-gu0.js} +6 -6
- package/dist/assets/{TopExDetailPage-CNDkfc3u-IVplKWSE.js → TopExDetailPage-C0uHdU7N-CImodBfZ.js} +11 -11
- package/dist/assets/{TransactionActivityLogPage-kSQqJVpX-Dthtq0jn.js → TransactionActivityLogPage-CqYb19tY-MGx1R4Ww.js} +9 -9
- package/dist/assets/TransactionDetailPage-D-NR_yZG-CxUKWZX4.js +921 -0
- package/dist/assets/TransactionDetailRoutes-CpDSsFwB.js +1 -0
- package/dist/assets/TransactionDetailScreen-DfuoY_gg.js +5 -0
- package/dist/assets/TransactionList-f6yB-byH-FETk5Iif.js +157 -0
- package/dist/assets/{TransactionListBig-Bx_Rm9ho-Du7QkIGC.js → TransactionListBig-BrDWayQS-BY28Hg37.js} +27 -27
- package/dist/assets/TransactionListPage-C-Z62y2d-DONuCLTJ.js +35 -0
- package/dist/assets/TransactionListRoutes-Bw5edFOJ.js +1 -0
- package/dist/assets/TransactionVendorDetailPage-CQQuAR6V-DBSEzxOy.js +80 -0
- package/dist/assets/{TransferDrawerPage-BayVa6po-u89zHtOp.js → TransferDrawerPage-DfFm-1-3-BhX0O4LO.js} +27 -27
- package/dist/assets/TreasuryOverviewPage-CKSanlUG-CXaeORdV.js +725 -0
- package/dist/assets/{TreasuryPromoPage-BCjz1EKX-9FM2wcwv.js → TreasuryPromoPage-Dyip3H10-C2tUOOp5.js} +14 -14
- package/dist/assets/TreasuryRoutes-j5E27301.js +45 -0
- package/dist/assets/TreasuryStatementsPage-mljf2Van-DcI9l-or.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-D3cV3a-8-ZsZIzn5I.js +58 -0
- package/dist/assets/TrendChart-fFlHCvNx-QKskVgw6.js +16 -0
- package/dist/assets/TrendWithTransactions-It4KDov3-DY_vu1lx.js +116 -0
- package/dist/assets/{UncategorizedAccountsMappingPage-TGKYpC5A-DrDVb8s-.js → UncategorizedAccountsMappingPage-BxBz2Ce0-BJNWUYth.js} +8 -8
- package/dist/assets/{UnitIntegrationPage-mt2IjA5X-B0h7UR57.js → UnitIntegrationPage-gVgsk2ji-D4-73jRv.js} +5 -5
- package/dist/assets/UploadAdditionalDocumentOverlay-C5m8jqup-BRodE0Ls.js +38 -0
- package/dist/assets/{Vendor2FAPopup-DAOf5cJD-GFzHEit0.js → Vendor2FAPopup-DRwBzOwn-DD_9hpy1.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-By2Ya2bv-Cwsi_OAL.js +1 -0
- package/dist/assets/VendorDetailPage-jci1LqX3-BHXhYJF0.js +257 -0
- package/dist/assets/VendorDomesticWireDetailsPage-uIDE-n5v-uvktM6eq.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-CRnO7Ubw-CSnvYMK9.js → VendorFiling1099EditablePage-8pYT3u-X-BDiOOpIL.js} +20 -20
- package/dist/assets/VendorFirstReviewPage-CafakxA1-DGimiBs4.js +730 -0
- package/dist/assets/{VendorInternationalWireDetailsPage-HUtNyn9Z-C58PYE3l.js → VendorInternationalWireDetailsPage-DJeI-ZFW-Cgs5W7gM.js} +10 -10
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-Co-5nTam-xgR7Rh7n.js +1 -0
- package/dist/assets/{VendorsAccountsSection-D6Qa1zf9-CVqHH4cq.js → VendorsAccountsSection-YX2g8ETe-YNhvXO1d.js} +2 -2
- package/dist/assets/{VendorsRoutes-D3omEpvR.js → VendorsRoutes-n5RcX0Vf.js} +28 -28
- package/dist/assets/VerifyDevice-DeHW4GAi-ejYUh2le.js +112 -0
- package/dist/assets/{VideoPlayer-BRAgZThr-BbqnCIc-.js → VideoPlayer-DxIfGrPu-C3cW7OOT.js} +1 -1
- package/dist/assets/VideoPopup-CUP7ctgS-Cy6Bpggh.js +31 -0
- package/dist/assets/WiseConfirmationScreen-CJyMiRdY.js +12 -0
- package/dist/assets/ZeniAccountDetailPage-7NdkdSg3-trkVyM14.js +300 -0
- package/dist/assets/ZeniAccountListViewPage-B-cs_xnc-DkcNyo5a.js +443 -0
- package/dist/assets/ZeniAccountNavBarPieces-CjRip0v9-Bv00yUCA.js +33 -0
- package/dist/assets/{ZeniAccountPromoPage-BgYCHYLO-g5oLmJuT.js → ZeniAccountPromoPage-BikXtkeH-BWgu0hz6.js} +9 -9
- package/dist/assets/ZeniAccountRoutes-BdqNU648.js +58 -0
- package/dist/assets/{ZeniAccountSetupPage-CvnIMdcY-BSUOWmK4.js → ZeniAccountSetupPage-BRBsijVt-BBTbKTOF.js} +4 -4
- package/dist/assets/ZeniAccountStatementScreen-DVjRkXeL.js +9 -0
- package/dist/assets/{ZeniAvatar-CwHVUcMc-CqvMhhIi.js → ZeniAvatar-pjdoqfWE-DmYSRpHD.js} +3 -3
- package/dist/assets/{ZeniCopyright-BlLvlGZV-D_cpkbcT.js → ZeniCopyright-DDGvdmLF-CPeY3qcE.js} +1 -1
- package/dist/assets/{ZeniDatePicker-DCurorsW-D16AsniI.js → ZeniDatePicker-K3F-G3-0-pGSyeWuf.js} +6 -6
- package/dist/assets/ZeniTransferAmountSlider-Cdg0TlHk-B_jBC96s.js +63 -0
- package/dist/assets/{accountMappingHelper-DaPjToYl.js → accountMappingHelper-CMy_dzCB.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-DvLI4jaw.js → add-to-wallet-DgdBD8_G-DZDSR_90.js} +1 -1
- package/dist/assets/{analytics-BuacLKrs.js → analytics-Buyhprzd.js} +1 -1
- package/dist/assets/{analyticsHelper-CHcSxJdc.js → analyticsHelper-CTH_kB-0.js} +1 -1
- package/dist/assets/{analyticsHelper-CYr5V2MV-DP0yfEiC.js → analyticsHelper-D9xdJK4b-DkISjLhy.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-90lG1L3u.js → arrow-south-east-round-PEovUgvH-CxvC0Cnw.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CL7RFrAP.js → auto-transfer-rule-mbafm5D3-BXD0aAHO.js} +1 -1
- package/dist/assets/{avatar-Dz7aEm3d--QTMwhPr.js → avatar-Dz7aEm3d-tC3a4UX-.js} +1 -1
- package/dist/assets/bank-letter-BOcVjN6J-B3HKnrvN.js +1 -0
- package/dist/assets/{calculateSize-Bn1NnCzV-SxKA7C8w.js → calculateSize-zPet_z9g-UKcDxIjM.js} +1 -1
- package/dist/assets/{chartTypes-40RenddT-D0AbAyeZ.js → chartTypes-Dq3hUz_T-DlStt0to.js} +1 -1
- package/dist/assets/{clock-CJkylEKt-Cp3w47l8.js → clock-CJkylEKt-BFtrn8ev.js} +1 -1
- package/dist/assets/common-kiEGPQ33-BvLj55nP.js +1 -0
- package/dist/assets/commonDimensions-CGHIQ2To-BVJ-7SGP.js +1 -0
- package/dist/assets/{commonTypes-DsWS6Ccc-D27m4dJL.js → commonTypes-BAJPaPYg-qcmBeNCl.js} +1 -1
- package/dist/assets/{core-twTS7Cne.js → core-5sxMy3sZ.js} +3 -38
- package/dist/assets/{dash.all.min-BOiJW2p5.js → dash.all.min-CTYaOyx7.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-B0iGosVv.js → decodeURIComponentSafe-BXr_Lgnt.js} +1 -1
- package/dist/assets/{dnd-BWijMgNi.js → dnd-Cfx_ai1S.js} +3 -3
- package/dist/assets/{dollar-round-D18u7nlm-CiBCyYiG.js → dollar-round-D18u7nlm-BAPPb_YV.js} +1 -1
- package/dist/assets/downloadPdf-BI2Y41h2-C3b-r1N_.js +1 -0
- package/dist/assets/{empty-BuEMRnA-.js → empty-CDKH4CBD.js} +1 -1
- package/dist/assets/empty-DLdEFiEn.js +1 -0
- package/dist/assets/epic-Bn4m6PJ6.js +2 -0
- package/dist/assets/{filter-cZIFUNvj-CH_l3zIc.js → filter-cZIFUNvj-DR0oScp6.js} +1 -1
- package/dist/assets/getLocaleForTenant-BPL6tSgt.js +1 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-BCDDcFDZ.js → gift-box-Cmt9OgIZ-CLkhO8vB.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-DVAyGHzA.js → graphic-no-data-l-DU4J8fDt-BXfLioW6.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DlMg8P68.js → graphic-no-data-net-burn-l-CzmycA0m-DESi1ZUm.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-7TxvMz9v.js → handshake-BPg58FML-Cw8-rpU_.js} +1 -1
- package/dist/assets/{helper-BMiMbXMj-B-wSFTz-.js → helper-z5-P4a-y-DRvyDGbW.js} +2 -2
- package/dist/assets/{hyperlink-DQyCeXx2-DhYPEFJi.js → hyperlink-DQyCeXx2-DiF-LRfD.js} +1 -1
- package/dist/assets/index-B6cTzWKI.js +1 -0
- package/dist/assets/{index-k1doZNFg.js → index-BocbTmE1.js} +4430 -4492
- package/dist/assets/{empty-BAMh3RJk.js → index-Bsc8ZpcH.js} +1 -1
- package/dist/assets/{index-zkfIzc9c.js → index-DCFJ_6wy.js} +2 -8
- package/dist/assets/{index-Mx2SsGnu.js → index-XrFKA72B.js} +1 -1
- package/dist/assets/{index-DoiSNwZH.js → index-a2iFhnhM.js} +1 -1
- package/dist/assets/{lexical-CZE2Lq-0.js → lexical-BAlvZZhY.js} +1 -1
- package/dist/assets/{liveblocks-CM0QMS_I.js → liveblocks-BsQBjN-0.js} +17 -22
- package/dist/assets/{lottie-Bdr-9mLw.js → lottie-C2R6rGxS.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DrC2Zs2y-B2Wt05iy.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BkPRWtaj-CxIv2d9v.js → mapSectionWithAcOnlyToTreeNode-dsBogxKz-DAKgnUEj.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-DMDEaLzQ-lo7UbRO0.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-CW_wzI5T-BaeuL7EQ.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DvfKBCs5-Dl1ySEwF.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-CUYmne9-.js +1 -0
- package/dist/assets/{media-player-DTa5D54u.js → media-player-BX2lrCiw.js} +2 -2
- package/dist/assets/{money-2cg1MuG4-B6SZvN8P.js → money-2cg1MuG4-C1UnGCa2.js} +1 -1
- package/dist/assets/{mui-Bi07oTwe.js → mui-C_CXevf3.js} +3 -3
- package/dist/assets/{page-detail-CWX5S47F-y9rokQDc.js → page-detail-CWX5S47F-DCvximFz.js} +1 -1
- package/dist/assets/{page-summary-D7_VQHwN-pIoT3Pmw.js → page-summary-D7_VQHwN-BBMfUdRp.js} +1 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-Kk0Lc2Dj.js +3 -0
- package/dist/assets/{pathToGoBack-Md2zV7uG.js → pathToGoBack-D5dFRCuJ.js} +1 -1
- package/dist/assets/pdf-DyB_VHQx.js +13 -0
- package/dist/assets/{pdf-lib-CILJewzg.js → pdf-lib-BLLlynNv.js} +1 -1
- package/dist/assets/{plaid-Dw_qIY4R.js → plaid-Yyr3DBd8.js} +1 -1
- package/dist/assets/{pusher-DynBuu5N.js → pusher-CQAuuZH-.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-GKL562Zm.js → radio-default-CiSgisfh-HLL7c7Ix.js} +1 -1
- package/dist/assets/{react-Ar6ZOtfZ.js → react-B9pn5zl_.js} +2 -12
- package/dist/assets/{react-1mNX_DRd.js → react-BEZA9UfV.js} +2 -12
- package/dist/assets/{react-vzV2OwEE.js → react-BFykbpKw.js} +2 -12
- package/dist/assets/{react-CHxjXjfJ.js → react-BmJ9wc4M.js} +3 -13
- package/dist/assets/{react-Xs8hOk7X.js → react-CEO525cE.js} +2 -12
- package/dist/assets/{react-DiCJT7O0.js → react-COI-5ihT.js} +2 -12
- package/dist/assets/react-D7RjW9MW.js +19 -0
- package/dist/assets/{react-DvA2K4aW.js → react-YbLjyGgM.js} +2 -12
- package/dist/assets/{recharts-CS0s98U8.js → recharts-CTWfsY-L.js} +36 -36
- package/dist/assets/{routePaths-DiyiibEL.js → routePaths-_EQ7HBkZ.js} +1 -1
- package/dist/assets/{sentry-CytkDQe2.js → sentry-DINNQYpi.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-CuS9M_ww.js → shield-DOlUxcFf-DFaW8QSC.js} +1 -1
- package/dist/assets/{spend-limit-D6SyboD4-DuCQ_jaT.js → spend-limit-D6SyboD4-05QrBanM.js} +1 -1
- package/dist/assets/toCOABalancesWithID-P7keEtAg-CVzjqCh4.js +1 -0
- package/dist/assets/toChartData-BUf5HHim-BMyIU8Hn.js +1 -0
- package/dist/assets/{transaction-placeholder-CpOwZAMG-DuWev16q.js → transaction-placeholder-CpOwZAMG-kO6lyet9.js} +1 -1
- package/dist/assets/{undo-b_3XZ5CX-Cg47YjTI.js → undo-b_3XZ5CX-CAOnjxt9.js} +1 -1
- package/dist/assets/{unlock-BPWn2I5L-DplIQ8y4.js → unlock-BPWn2I5L-fA9hPtxv.js} +1 -1
- package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-BbiwxEOu.js +1 -0
- package/dist/assets/{uploadAttachment-BlLqRIXe-B6ElpyTj.js → uploadAttachment-DJA30WSD-Mme28mRP.js} +25 -25
- package/dist/assets/{uploadReceipts-Dge0cNF1-Co75nE7C.js → uploadReceipts-CqDftTRt-DnJMDyN6.js} +1 -1
- package/dist/assets/{url-DlqX0g3J.js → url-BnrMVJye.js} +1 -1
- package/dist/assets/{url-wSyZyUAL.js → url-dGBmezhj.js} +1 -1
- package/dist/assets/{useDeviceId-CW9B9UlH.js → useDeviceId-Dhw-GVYT.js} +1 -1
- package/dist/assets/useInitialThreadRequest-GWflkp6K.js +1 -0
- package/dist/assets/{useLongPress-GCK2COYQ-DxXBKjrG.js → useLongPress-GCK2COYQ-CI59nlOM.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-DHy4exHr.js → usp-line-BBd1wKwW-Bi23t2Q-.js} +1 -1
- package/dist/assets/{utils-CSjogEj5.js → utils-DmE88LS_.js} +15 -28
- package/dist/assets/withTransactionSidePanel-D4o5a7Hq.js +8 -0
- package/dist/assets/zeni-epic-state-a7Sj5mjO.js +14 -0
- package/dist/assets/{zeni-icon-only-C6-rv1y7.js → zeni-icon-only-COM3FcNM.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +16 -8
- package/package.json +4 -4
- package/dist/assets/AccountInfoPage-o7hTXtgZ-NjcAzXFT.js +0 -18
- package/dist/assets/AccountInfoPageContent-DqErO8FH-BeoOImtE.js +0 -149
- package/dist/assets/AccountRow-CpftykFx-BJ3WZo2I.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-vecchYEf-lmlcPBf7.js +0 -6
- package/dist/assets/AddressRoutes-BeSQWOrw.js +0 -1
- package/dist/assets/AddressScreen-CE8x2lDp.js +0 -9
- package/dist/assets/AiCfoScreen-BszigZh8.js +0 -11
- package/dist/assets/ApAgingDetailPage-BOV1WFVF-Bn0q4RYM.js +0 -46
- package/dist/assets/AppDrawerContent-Dc2sHnR3-B11HecZn.js +0 -92
- package/dist/assets/ApprovalRulesSettingsPage-BnbPSy4U-CIEnHFVH.js +0 -47
- package/dist/assets/ArAgingDetailPage-b_NpDpWj-B3kCWqKT.js +0 -46
- package/dist/assets/BankAccountWarningSection-yT2UAd12-DDru0TbG.js +0 -51
- package/dist/assets/BankConnectionsSettingsPage-CbxXykMM-DSyYDFRR.js +0 -425
- package/dist/assets/BillDetailPage-7TMkWo3V-Bx_V8TNq.js +0 -266
- package/dist/assets/BillPayApprovalRoutes-D-Lr-knt.js +0 -1
- package/dist/assets/BillPayApprovalRuleDetailPage-COyDRpaF-Cw59nmg3.js +0 -27
- package/dist/assets/BillPaySetUpPage-Cs5rkWBu-uFttJJzg.js +0 -42
- package/dist/assets/BusinessVerificationPage-1h0z3N9u-RMOZ1n1-.js +0 -138
- package/dist/assets/BusinessVerificationPageScreen-CsiX3KGh.js +0 -9
- package/dist/assets/BusyIndication-DizZe0Gu-1EWobmeT.js +0 -9
- package/dist/assets/ChargeCardListTable-DE72YU_i-CnPve3es.js +0 -711
- package/dist/assets/ChargeCardPromoPage-CPpNh89o-CvxWAl-t.js +0 -222
- package/dist/assets/CheckDepositDrawerPage-BrzeSj-3-qP1HtOIM.js +0 -206
- package/dist/assets/CollapsableReportTable-CDEe9s_E-BVFWKHUA.js +0 -2844
- package/dist/assets/CompanyPassportCard-B9ymV6Az-CvyAeev5.js +0 -42
- package/dist/assets/CompanyPassportScreen-UiOT42U6.js +0 -1
- package/dist/assets/CompleteProfile-C5n9b8gQ-BqfKsPPd.js +0 -52
- package/dist/assets/ConfettiBurst-BizTW0hz-BTsH0Adk.js +0 -1
- package/dist/assets/ConnectionAuthScreen-hHSL4PoV.js +0 -11
- package/dist/assets/CurrencySelectField-KvKyemY6-Bi0fspzF.js +0 -139
- package/dist/assets/CustomerOnboardingAuthScreen-DMW5eYly.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-p4P1_J3p.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-CWF_00EM-BKydcoC-.js +0 -66
- package/dist/assets/DashboardRoutes-CXkTMDXA.js +0 -21
- package/dist/assets/DepositAccTransactionItem-BY_OvuKg-BV-rFk5q.js +0 -76
- package/dist/assets/DepositAccTransactionListPage-a__bpCOB-CF9PDDNQ.js +0 -66
- package/dist/assets/DomesticWireDetailScreen-DacvZAfq.js +0 -18
- package/dist/assets/DomesticWireDetailsPage-BumMT4QM-xDzQX0lF.js +0 -21
- package/dist/assets/DownloadOverlay-DqiL3-FB-DATHjVq3.js +0 -439
- package/dist/assets/DrawerScreen-B1Tmjk6I.js +0 -1
- package/dist/assets/EditPeoplePage-BcsdEp_d-83JmqDcO.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-DNUmwdsH-BwDh21om.js +0 -865
- package/dist/assets/EntityDetailPage-DtX5TjBc-C1gOmTYV.js +0 -18
- package/dist/assets/EntityDetailRoutes-DH6Oay7j.js +0 -1
- package/dist/assets/ExpenseAutomationPage-B8C4BxoV-DDvaiJ6I.js +0 -2323
- package/dist/assets/ExpenseAutomationRoutes-CVAejH_S.js +0 -20
- package/dist/assets/FeaturePreviewScreen-DqxtfQjE.js +0 -1
- package/dist/assets/GlobalReviewListPage-4eiopkzw-B9-MVo2q.js +0 -291
- package/dist/assets/InsightsCardStack-fBAbQwhK-Ben65oUn.js +0 -79
- package/dist/assets/InsightsSection-De9zu_me-BVBRSj8O.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-CDf7equc-BWfDz-qh.js +0 -65
- package/dist/assets/InvitePeoplePage-Db4P4ZEq-D8yQs7Vc.js +0 -12
- package/dist/assets/InvoiceUploadSection-DYCjz9CI-CGqj6KTI.js +0 -140
- package/dist/assets/LabeledAddressValueField-C6-hVsPb-Cx3qxpIQ.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-CgZg0uOW-CRnqdJf1.js +0 -16
- package/dist/assets/LabeledDocumentField-Bp9m-OrP-BZJ1R-di.js +0 -41
- package/dist/assets/LabeledText-DvzVOku6-C1r6b0lJ.js +0 -42
- package/dist/assets/MagicLinkACHDetailsPage-C494txw0-B6Ad2Ian.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CONBCbOQ-BnDh5s_P.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-fSY3JGpz-DQpa109r.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-CeYyqoa0.js +0 -12
- package/dist/assets/MagicLinkSuccessPage-BDRXSAO4-Te4RRaTi.js +0 -31
- package/dist/assets/MobileAppDrawer-B2Fzw8F_.js +0 -1
- package/dist/assets/MyProfileSettingsPage-L9WuP6HZ-D4wjrOZn.js +0 -85
- package/dist/assets/NavBarWithPicker-zmvBmWS1-C1LKFsDL.js +0 -30
- package/dist/assets/NavigationDots-Bv4tBDN3-CX4VVQFS.js +0 -15
- package/dist/assets/NotFoundScreen-BBemVqe2.js +0 -1
- package/dist/assets/NotificationRoutes-U-LaNI42.js +0 -1
- package/dist/assets/NotificationsListConfig-Bn1zmx6b-CgwI3kB8.js +0 -1
- package/dist/assets/NotificationsPage-DDwdR_Jq-CLxtwJ7_.js +0 -685
- package/dist/assets/OpExByVendorPage-DukFYlqO-DLkue9kB.js +0 -100
- package/dist/assets/OverlayContainerPage-D4QU0p4o-C-Icci7k.js +0 -11
- package/dist/assets/PandLWithForecastPage-Bgflh9Om-BLh8XrcC.js +0 -107
- package/dist/assets/PandLWithForecastRoutes-D-HhWNvF.js +0 -1
- package/dist/assets/PeoplePage-CDvKreQl-Br9fXMF2.js +0 -720
- package/dist/assets/PeopleRoutes-Dq51UjI9.js +0 -22
- package/dist/assets/PerformanceRoutes-cKruQlcS.js +0 -1
- package/dist/assets/ReferralListScreen-CSsSh4ih.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-CVWnCLDW.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-DZcx_Ou3.js +0 -1
- package/dist/assets/ReimbursementDetailPage-oIC9QEyF-DlTQsBwh.js +0 -314
- package/dist/assets/ReimbursementRoutes-Djc8hIjc.js +0 -13
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-CeyGWbKR-CZtSd4TM.js +0 -1
- package/dist/assets/ReloadCard-DKGn1uxF-CkrmOtQv.js +0 -26
- package/dist/assets/ReportTableViewSelector-CXDvZEbR-B4WtL-_p.js +0 -150
- package/dist/assets/ReportsPage-BoUyXSBC-D_vUbcSy.js +0 -121
- package/dist/assets/ReportsRoutes-tnBiH82P.js +0 -1
- package/dist/assets/ReviewDetailsPage-tT1l4R2r-DKl8wtRU.js +0 -290
- package/dist/assets/RewardsRoutes-DS51i8ZJ.js +0 -1
- package/dist/assets/RoleWithToolTip-C8x5yXaK-oTqAGBzT.js +0 -22
- package/dist/assets/ScheduleDetailsFixedAssetsPage-Bkp0mCOn-NjexzQQI.js +0 -37
- package/dist/assets/ScheduleDetailsPage-Dg9rYJbn-mJi37FRF.js +0 -37
- package/dist/assets/ScheduleSequenceTable-J6Eja8XA-uTDNIyeO.js +0 -324
- package/dist/assets/ScreenRoutes-DvoBFpYl.js +0 -2
- package/dist/assets/SignIn-Cu2nzuEC-CgFcNFK3.js +0 -491
- package/dist/assets/SignInScreen-CCXIdR_f.js +0 -1
- package/dist/assets/SignOutScreen-nUR_nQi4.js +0 -9
- package/dist/assets/SpendManagementListViewPage-9V9u1jPF-CAhShlf6.js +0 -134
- package/dist/assets/SpendManagementPerTabPage-COvEPq7V-Enwnkp6K.js +0 -754
- package/dist/assets/SpendManagementSection-dT-N4bSQ-BU7QcxyK.js +0 -375
- package/dist/assets/StatementItem-g5tfNBjV-B8DjDGkB.js +0 -31
- package/dist/assets/StatementsPage-DaFrVUeK-Bb78Acqy.js +0 -58
- package/dist/assets/SuccessAnimation-oz7yQ6H3-mzE9epVx.js +0 -13
- package/dist/assets/SummaryCard-B9wqNSwM-BiOPMjla.js +0 -1
- package/dist/assets/TaskListScreen-BTd0K2Ah.js +0 -9
- package/dist/assets/TaskManagementPage-dAK9tl2b-B8eIax2u.js +0 -1063
- package/dist/assets/TaskRoutes-C34_uNkE.js +0 -9
- package/dist/assets/TimeRangeSwitcher-r1TNqVRb-ca11ciDj.js +0 -64
- package/dist/assets/TimeframeSwitcher-DHfHCTa4-CRY0pI2L.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-DvBvguRl-zevKhD94.js +0 -31
- package/dist/assets/TransactionDetailPage-f7vWtXWL-DFjYfEw-.js +0 -903
- package/dist/assets/TransactionDetailRoutes-D0IUp-c0.js +0 -1
- package/dist/assets/TransactionDetailScreen-DuZvqtgf.js +0 -5
- package/dist/assets/TransactionList-3-mUZOsw-kAZ-qL0T.js +0 -153
- package/dist/assets/TransactionListPage-q6x4_jni-D2QSW9vu.js +0 -35
- package/dist/assets/TransactionListRoutes-PB1J2m8T.js +0 -1
- package/dist/assets/TransactionVendorDetailPage-MjSH5hfq-BRDls23z.js +0 -80
- package/dist/assets/TreasuryOverviewPage-CuqWmrO5-Duo1If9V.js +0 -708
- package/dist/assets/TreasuryRoutes-BFHIVJGR.js +0 -45
- package/dist/assets/TreasuryStatementsPage-CGr00SXF-CPBafn5H.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-D9_qnlK4-BmLnB6xa.js +0 -58
- package/dist/assets/TrendChart-JTOG0a7B-B1HzEifS.js +0 -16
- package/dist/assets/TrendWithTransactions-CTJhTpAM-FxLucl6g.js +0 -116
- package/dist/assets/UploadAdditionalDocumentOverlay-DZfpwE5J-BZwjrrpj.js +0 -38
- package/dist/assets/VendorACHDetailsPage-CCOupiSZ-BPHL9d4l.js +0 -1
- package/dist/assets/VendorDetailPage-DufNphGD-DqlByCd7.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-BayV34Rt-Du-36wGx.js +0 -1
- package/dist/assets/VendorFirstReviewPage-DA0EL4RJ-CKfw2PVJ.js +0 -730
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-DRVMUeXi-ln7X-i9Z.js +0 -1
- package/dist/assets/VerifyDevice-B6B_nk3v-7J7PFtZ-.js +0 -112
- package/dist/assets/VideoPopup-C_SkBI9U-BL3_M3X0.js +0 -31
- package/dist/assets/WiseConfirmationScreen-DvushDs-.js +0 -12
- package/dist/assets/ZeniAccountDetailPage-Dp-eo-Vq-B3WRlZyy.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-S-XmAYqD-BHUjzyQE.js +0 -441
- package/dist/assets/ZeniAccountNavBarPieces-DhjBxfEr-BkpO-_U2.js +0 -14
- package/dist/assets/ZeniAccountRoutes-JNlaxrz8.js +0 -58
- package/dist/assets/ZeniAccountStatementScreen-Df6Ut17b.js +0 -9
- package/dist/assets/ZeniTransferAmountSlider-BNYgPwHs-rAtxCD8c.js +0 -63
- package/dist/assets/common-DEB71I4X-D2h2kF8O.js +0 -1
- package/dist/assets/commonDimensions-BMnB1-xU-CuHaP4qo.js +0 -1
- package/dist/assets/detailCommon-CrcyqWtZ-Co4x3-EY.js +0 -38
- package/dist/assets/downloadPdf-CUUx8PWn-B-oFkl1r.js +0 -1
- package/dist/assets/epic-Dx6vN-UO.js +0 -2
- package/dist/assets/getLocaleForTenant-CY5R0VDK.js +0 -1
- package/dist/assets/index-BYeMrBg9.js +0 -1
- package/dist/assets/index-DO6IEWSk.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DGnyXKBT-BSjhxbWc.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-CvGdU9Ma-oI33_r0x.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BCOsOvxo-BejLDcnD.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DIqYP3NK-CPJM42M2.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-DquHI1rq.js +0 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-Bh-ojoWH.js +0 -4
- package/dist/assets/pdf-emb33J2I.js +0 -13
- package/dist/assets/react-BL4qYNQl.js +0 -37
- package/dist/assets/toCOABalancesWithID-DkMGvlEt-DFgINRIk.js +0 -1
- package/dist/assets/toChartData-C6s-eBzE-BfIZvn48.js +0 -1
- package/dist/assets/useInitialThreadRequest-1tDzaux1.js +0 -1
- package/dist/assets/withTransactionSidePanel-kYDF1Rc9.js +0 -8
- package/dist/assets/zeni-epic-state-DyRbb6Q5.js +0 -122
|
@@ -0,0 +1,2982 @@
|
|
|
1
|
+
import{ae as O,b9 as ye,a5 as Z,V as t,an as Ki,E as y,cP as Yi,o as s,e as ee,a7 as Wn,X as W,S as Pn,A as Ui,cQ as zn,cR as Zi,O as N,j as C,cS as qt,bE as Qt,cT as Jt,x as E,cs as Xt,v as en,I as st,bO as He,bg as Y,L as qi,aE as Qi,aG as Ji,y as de,ad as I,aj as wo,bj as yo,g as Te,cU as Xi,cV as se,bD as tn,bu as Fn,C as er,H as Ce,cW as dt,cX as Ve,cY as mt,l as _,bH as ne,cZ as bo,c_ as tr,w as nn,c$ as Je,d0 as Tn,d1 as nr,d2 as or,d3 as Vn,d4 as ir,d5 as rr,d6 as ar,at as ko,aq as lr,b_ as on,bZ as rn,d7 as cr,ar as jo,c1 as So,bm as sr,d8 as dr,d9 as hr,da as Dn,db as En,dc as ur,dd as pr,bo as gr,b6 as xr,de as fr}from"./index-BocbTmE1.js";import{n as a,c as F}from"./mui-C_CXevf3.js";import{a as V,b as mr}from"./sentry-DINNQYpi.js";import{FA as Ot,Fl as an,FS as ln,FT as Ke,FU as cn,FV as sn,FW as dn,FX as hn,FY as Co,FZ as wr,Fn as Me,ci as Gn,bt as vo,F_ as $o,cs as yr,cp as br,FB as _o}from"./zeni-epic-state-a7Sj5mjO.js";import{N as ct,D as kr,R as jr,B as ve,u as A}from"./AccountRow-BrW_eEjE-Cmf0Jids.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]="60ded473-2926-4122-b333-62daf0824198",e._sentryDebugIdIdentifier="sentry-dbid-60ded473-2926-4122-b333-62daf0824198")}catch{}})();const Nt=[O.graphColor34,O.graphColor08,O.graphColor11,O.graphColor13,O.graphColor19,O.graphColor20,O.graphColor14,O.graphColor35,O.graphColor32,O.graphColor02,O.graphColor06,O.graphColor04,O.graphColor10,O.graphColor12,O.graphColor15,O.graphColor18];function un(e,n=0){const o=(i=>{const r=String.prototype.concat(...new Set(i));let l=0;for(let c=0;c<r.length;++c)l+=r.charCodeAt(c);return l})(e)+n*n*n;return Nt[Math.floor(o/Nt.length)%Nt.length]}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 ye("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return Z("0,0",e?.balance)}function J(e){return Z("0,0",e?.forecast)}function Lo(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return ye("0.00%",e.totalPercentValue)}return Z("0,0",e?.totalBalance)}function Tt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return ye("0.00%",e.forecastPercentValue)}return Z("0,0",e?.totalForecast)}function pe(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return ye("0.00%",Math.floor(100*n)/100)}return ye("0.00%",void 0)}function ge(e){if(e!=null&&e.forecast!=null){const n=Math.floor(100*(e.balance.amount-e.forecast.amount)/100);return Z("0,0",Object.assign({},e.forecast,{amount:n}))}return Z("0,0",null)}function Ao(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 ye("0.00%",Math.floor(100*n)/100)}return ye("0.00%",void 0)}function Bo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor(100*(e.totalBalance.amount-e.totalForecast.amount)/100);return Z("0,0",Object.assign({},e.totalForecast,{amount:n}))}return Z("0,0",null)}const Ye=(e,n,o)=>{const{startDate:i,balanceType:r}=n,{dateFormat:{visual:l}}=N.getLocalizedStrings();switch(o){case"month":return r==="default"||r==="default_with_percent"?`${Ot(i,l.MMMYYYYFormat,e)}`:Mt(r,o);case"quarter":return r==="default"||r==="default_with_percent"?`${N.getLocalizedStrings().reports.quarterPrefix}${Ot(i,l.QYYYYformat,e)}`:Mt(r,o);case"year":return r==="default"||r==="default_with_percent"?`${Ot(i,l.YYYYformat,e)}`:Mt(r,o);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function Mt(e,n){return N.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const fg=(e,n,o)=>{const i=n.length==0?e:`${e}_${n.join("_")}`;return o!=null&&o.trim().length>0?`${i}_${o}`:`${i}_${Yi(10)}`},Sr=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: ${A.wrapperPadding}px;
|
|
9
|
+
`,Cr=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
|
+
`,vr=a.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: flex-start;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: ${s.sp2};
|
|
22
|
+
width: ${A.leftHeadingWidth}px;
|
|
23
|
+
`,$r=a.div`
|
|
24
|
+
display: flex;
|
|
25
|
+
flex: 1 1 auto;
|
|
26
|
+
justify-content: flex-end;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: ${s.sp4};
|
|
29
|
+
`,_r=a(ne)`
|
|
30
|
+
width: ${A.bankBalanceWidth}px;
|
|
31
|
+
min-width: ${A.bankBalanceWidth}px;
|
|
32
|
+
text-align: right;
|
|
33
|
+
`,Lr=a(ne)`
|
|
34
|
+
width: ${A.clearedBalanceWidth}px;
|
|
35
|
+
min-width: ${A.clearedBalanceWidth}px;
|
|
36
|
+
text-align: right;
|
|
37
|
+
`,Ar=a(ne)`
|
|
38
|
+
width: ${A.statusWidth}px;
|
|
39
|
+
min-width: ${A.statusWidth}px;
|
|
40
|
+
`,Br=a.div`
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-shrink: 0;
|
|
43
|
+
gap: ${s.sp3};
|
|
44
|
+
width: ${A.varianceWidth}px;
|
|
45
|
+
min-width: ${A.varianceWidth}px;
|
|
46
|
+
flex-direction: row;
|
|
47
|
+
justify-content: flex-end;
|
|
48
|
+
align-items: center;
|
|
49
|
+
text-align: center;
|
|
50
|
+
`,Ir=a.div`
|
|
51
|
+
width: ${A.variancePercentageWidth}px;
|
|
52
|
+
min-width: ${A.variancePercentageWidth}px;
|
|
53
|
+
text-align: right;
|
|
54
|
+
margin-right: ${s.sp2};
|
|
55
|
+
`,Or=a.div`
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
align-items: center;
|
|
59
|
+
`,Nr=a.div`
|
|
60
|
+
display: flex;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
align-items: center;
|
|
63
|
+
`;function Mr({height:e}){const n=W();return t.jsx(Sr,{heightValue:e,windowSize:n,children:t.jsxs(Cr,{children:[t.jsxs(vr,{children:[t.jsx(Or,{children:t.jsx(se,{isLoading:!0,customStyle:{height:s.sp4,maxWidth:s.sp4,width:s.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(Nr,{children:t.jsx(se,{isLoading:!0,customStyle:{height:s.sp4,width:A.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs($r,{children:[t.jsx(_r,{children:t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:A.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(Lr,{children:t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:A.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(Br,{children:[t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:A.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(Ir,{children:t.jsx(se,{isLoading:!0,customStyle:{height:s.sp4,width:A.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(Ar,{children:t.jsx(se,{isLoading:!0,customStyle:{height:s.sp4,width:A.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const Wr=a.div`
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: row;
|
|
66
|
+
height: ${e=>e.heightValue}px;
|
|
67
|
+
padding-right: ${A.wrapperPadding}px;
|
|
68
|
+
`;function Pr({height:e}){return t.jsx(Wr,{heightValue:e})}const zr=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: ${A.wrapperPadding}px;
|
|
76
|
+
`,Fr=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
|
+
`,Tr=a.div`
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: row;
|
|
86
|
+
justify-content: flex-end;
|
|
87
|
+
width: ${A.leftHeadingWidth}px;
|
|
88
|
+
`,Vr=a.div`
|
|
89
|
+
display: flex;
|
|
90
|
+
flex: 1 1 auto;
|
|
91
|
+
flex-direction: row;
|
|
92
|
+
justify-content: flex-end;
|
|
93
|
+
`,Dr=a(jo)`
|
|
94
|
+
user-select: none;
|
|
95
|
+
color: ${e=>e.theme.colors.primary};
|
|
96
|
+
width: ${A.leftTimeframeWidth}px;
|
|
97
|
+
min-width: ${A.leftTimeframeWidth}px;
|
|
98
|
+
flex: 1 1 auto;
|
|
99
|
+
`,Er=a(_)`
|
|
100
|
+
user-select: none;
|
|
101
|
+
`,Gr=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
|
+
`,Rr=a.div`
|
|
115
|
+
width: ${A.bankBalanceWidth}px;
|
|
116
|
+
`,Hr=a.div`
|
|
117
|
+
width: ${A.bankBalanceRightTimeframeWidth}px;
|
|
118
|
+
`,Kr=a.div`
|
|
119
|
+
width: ${A.clearedBalanceWidth}px;
|
|
120
|
+
margin-right: ${A.tickLeftMargin}px;
|
|
121
|
+
`,Yr=a.div`
|
|
122
|
+
width: ${A.varianceTimeframeWidth}px;
|
|
123
|
+
align-self: flex-end;
|
|
124
|
+
`,Ur=a.div`
|
|
125
|
+
width: ${A.spacerLineWidth}px;
|
|
126
|
+
`,Zr=a.div`
|
|
127
|
+
width: ${A.statusWidth}px;
|
|
128
|
+
`,Xe=({title:e,type:n})=>t.jsx(Gr,{widthValue:A[n],children:t.jsx(Er,{children:e})});function qr({sectionTitle:e,height:n,isLoading:o}){const i=N.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(zr,{height:n,children:t.jsxs(Fr,{children:[t.jsx(Tr,{children:t.jsx(se,{isLoading:o,customStyle:{height:s.sp4,width:A.leftLabelWidth},children:t.jsx(Dr,{"data-testid":y("account-recon-section-title",e),children:e})})}),t.jsxs(Vr,{children:[t.jsx(Rr,{children:t.jsx(se,{isLoading:o,customStyle:{height:s.sp7,width:A.bankBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Xe,{title:i.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(Hr,{}),t.jsx(Kr,{children:t.jsx(se,{isLoading:o,customStyle:{height:s.sp7,width:A.clearedBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Xe,{title:i.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(Yr,{children:t.jsx(se,{isLoading:o,customStyle:{height:s.sp7,width:A.varianceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Xe,{title:i.variance,type:"varianceTimeframeWidth"})})}),t.jsx(Ur,{}),t.jsx(Zr,{children:t.jsx(se,{isLoading:o,customStyle:{height:s.sp7,width:A.statusTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Xe,{title:i.status,type:"statusTimeframeWidth"})})})]})]})})}const Qr=a.div`
|
|
129
|
+
display: flex;
|
|
130
|
+
flex-direction: row;
|
|
131
|
+
height: ${e=>e.heightValue}px;
|
|
132
|
+
align-items: center;
|
|
133
|
+
padding-right: ${A.wrapperPadding}px;
|
|
134
|
+
`,Jr=a(jo)`
|
|
135
|
+
user-select: none;
|
|
136
|
+
color: ${e=>e.theme.colors.primary};
|
|
137
|
+
`;function Xr({height:e,title:n}){return t.jsx(Qr,{heightValue:e,children:t.jsx(Jr,{"data-testid":y("account-recon-section-title",n),children:n})})}const ea=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: ${A.wrapperPadding}px;
|
|
145
|
+
`,ta=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
|
+
`,na=a.div`
|
|
155
|
+
display: flex;
|
|
156
|
+
flex: 1 1 auto;
|
|
157
|
+
justify-content: flex-start;
|
|
158
|
+
align-items: center;
|
|
159
|
+
gap: ${s.sp2};
|
|
160
|
+
`,oa=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: ${A.leftLabelWidth}px;
|
|
170
|
+
min-width: ${A.leftLabelWidth}px;
|
|
171
|
+
`,ia=a.div`
|
|
172
|
+
display: flex;
|
|
173
|
+
flex: 1 1 auto;
|
|
174
|
+
justify-content: flex-end;
|
|
175
|
+
align-items: center;
|
|
176
|
+
`,ra=a(ne)`
|
|
177
|
+
width: ${A.bankBalanceWidth}px;
|
|
178
|
+
min-width: ${A.bankBalanceWidth}px;
|
|
179
|
+
text-align: right;
|
|
180
|
+
`,aa=a(ne)`
|
|
181
|
+
width: ${A.clearedBalanceWidth}px;
|
|
182
|
+
min-width: ${A.clearedBalanceWidth}px;
|
|
183
|
+
text-align: right;
|
|
184
|
+
margin-left: ${A.tickLeftMargin}px;
|
|
185
|
+
`,la=a(ne)`
|
|
186
|
+
width: ${A.statusWidth}px;
|
|
187
|
+
min-width: ${A.statusWidth}px;
|
|
188
|
+
height: 1px;
|
|
189
|
+
`,ca=a.div`
|
|
190
|
+
display: flex;
|
|
191
|
+
flex-direction: row;
|
|
192
|
+
min-width: ${A.spacerLineWidth}px;
|
|
193
|
+
width: ${A.spacerLineWidth}px;
|
|
194
|
+
align-items: center;
|
|
195
|
+
`,sa=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
|
+
`,da=a.div`
|
|
201
|
+
display: flex;
|
|
202
|
+
flex-shrink: 0;
|
|
203
|
+
width: ${A.varianceTimeframeWidth}px;
|
|
204
|
+
min-width: ${A.varianceTimeframeWidth}px;
|
|
205
|
+
flex-direction: row;
|
|
206
|
+
justify-content: flex-end;
|
|
207
|
+
align-items: center;
|
|
208
|
+
text-align: center;
|
|
209
|
+
margin-left: ${A.tickLeftMargin}px;
|
|
210
|
+
`,ha=a(ne)`
|
|
211
|
+
border-radius: ${s.sp1};
|
|
212
|
+
color: ${e=>e.textColor.hex()};
|
|
213
|
+
min-width: ${A.varianceNumberWidth}px;
|
|
214
|
+
text-align: right;
|
|
215
|
+
margin-right: ${s.sp2};
|
|
216
|
+
`,ua=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: ${A.variancePercentageWidth}px;
|
|
224
|
+
`,{expenseAutomation:{accountRecon:{reconciliation:{headers:Rn}}},common:{strings:{percentage:pa,hyphen:ht}}}=N.getLocalizedStrings();function ga({height:e,sectionData:n}){const o=W(),i=n.totalVariance,r=n.totalVariancePercentage,l=de();return t.jsx(ea,{"data-testid":y("total-row-root-container"),heightValue:e,windowSize:o,children:t.jsxs(ta,{isClickable:!1,"data-testid":y("total-row-container"),children:[t.jsxs(na,{children:[t.jsx(ve,{firstLetter:Rn.section[n.sectionId].subTitle.charAt(0),color:new I(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(oa,{children:Rn.section[n.sectionId].subTitle})]}),t.jsxs(ia,{children:[t.jsx(ra,{children:n.totalBankBalance!=null?Z("0,0",n.totalBankBalance):ht}),t.jsx(aa,{children:n.totalClearedBalance!=null?Z("0,0",n.totalClearedBalance):ht}),t.jsx(xa,{variance:i,variancePercentage:r}),t.jsx(ca,{children:t.jsx(sa,{heightValue:e})}),t.jsx(la,{})]})]})})}const xa=({variance:e,variancePercentage:n})=>{const o=de(),i=new I(o.colors.hero),r=new I(o.colors.hero),l=new I(o.colors.background),c=e!=null&&e.amount===0?"0%":n!=null?n===0?"0%":`${n.toFixed(2)}${pa}`:ht;return t.jsxs(da,{children:[t.jsx(ha,{textColor:i,children:e!=null?Z("0,0",e):ht}),t.jsx(ua,{textColor:r,bgColor:l,children:c})]})},j={balanceHeight:s.sp4,balanceHeightInPx:C[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:s.sp4,balanceLeftMarginInPx:C[4],titleWidth:new E(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128},xe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":case"name_only":return!0}},ke=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},Io={emptyLeftContainer:new E(C[0],C[5])},fa=a(_)`
|
|
225
|
+
margin-left: ${e=>e.hasChildren||e.depth===0?s.sp2:s.sp3};
|
|
226
|
+
overflow: hidden;
|
|
227
|
+
white-space: nowrap;
|
|
228
|
+
text-overflow: ellipsis;
|
|
229
|
+
width: ${e=>j.titleWidth.value(e.windowSize)-45*(e.depth+1)}px;
|
|
230
|
+
`,ma=a.div`
|
|
231
|
+
display: flex;
|
|
232
|
+
height: ${s.sp6};
|
|
233
|
+
align-items: center;
|
|
234
|
+
`,wa=a.div`
|
|
235
|
+
display: flex;
|
|
236
|
+
height: ${s.sp6};
|
|
237
|
+
align-items: center;
|
|
238
|
+
`,ya=a.div`
|
|
239
|
+
height: ${s.sp6};
|
|
240
|
+
width: ${s.sp3};
|
|
241
|
+
`,ba=a.div`
|
|
242
|
+
width: 14px;
|
|
243
|
+
height: ${s.sp1};
|
|
244
|
+
`,ka=a.div`
|
|
245
|
+
width: ${s.sp2};
|
|
246
|
+
height: ${s.sp1};
|
|
247
|
+
`,Oo=a.div`
|
|
248
|
+
width: ${e=>Io.emptyLeftContainer.valuePx(e.windowSize)};
|
|
249
|
+
height: ${s.sp1};
|
|
250
|
+
`,De=a.div`
|
|
251
|
+
display: flex;
|
|
252
|
+
`,ja=({ancestorMetadata:e,depth:n,name:o})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(i=>{const r=e[i];return t.jsxs(De,{children:[r.depth===0?t.jsx(Vn,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ve,{},i):t.jsx(mt,{}):null,r.depth>=1?t.jsx(Vn,{depth:r.depth}):null]},o+i)}):null}),No=({ancestorMetadata:e,depth:n,name:o})=>{const i=W();return n===0?e[n].hasChildren===!1?t.jsx(Oo,{windowSize:i}):t.jsxs(De,{children:[t.jsx(Je,{depth:n}),t.jsx(Ve,{}),t.jsx(Je,{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(De,{children:[l.depth===0?t.jsx(Je,{depth:l.depth}):null,r>=2||r===1&&(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?n===1?t.jsx(Tn,{index:1}):t.jsx(Tn,{index:2}):null,(n===r?l.hasChildren!==!0:c==null||c.isLastNode)?t.jsx(mt,{}):t.jsx(Ve,{},r),t.jsx(Je,{depth:l.depth+1})]},o+r)}),n===1&&e[n].hasChildren!=1?t.jsx(ka,{}):null]})},Mo=({ancestorMetadata:e,depth:n,name:o})=>n===0?t.jsx(ba,{}):t.jsx(t.Fragment,{children:[...Array(n).keys()].map(i=>{const r=e[i],l=i!==n?e[i+1]:void 0;return t.jsxs(De,{children:[r!=null&&r.depth===0?t.jsx(dt,{depth:r.depth}):null,l==null||l.isLastNode?t.jsx(mt,{}):t.jsx(Ve,{},i),t.jsx(dt,{depth:r!=null?r.depth+1:0})]},o+i)})}),Sa=({ancestorMetadata:e,depth:n,name:o})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(i=>{const r=e[i];return r==null?null:t.jsxs(De,{children:[r.depth===0?t.jsx(dt,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ve,{},i):t.jsx(mt,{}):null,r.depth>=1?t.jsx(dt,{depth:r.depth}):null]},o+i)}):null}),Ca=({depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:l,onIconClick:c})=>{let d=t.jsx(ya,{});return e===0&&r&&(d=t.jsx(hr,{collapsed:l,onIconClick:c})),e>0&&(r&&!i&&n&&(d=t.jsx(Dn,{collapsed:l,onIconClick:c})),o&&i&&n&&(d=t.jsx(En,{})),o&&i&&!n&&(d=t.jsx(ur,{})),r&&i&&!n&&(d=t.jsx(pr,{collapsed:l,onIconClick:c})),r&&i&&n&&(d=t.jsx(Dn,{collapsed:l,onIconClick:c})),n&&o&&(d=t.jsx(En,{}))),d},va=({depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:l,onIconClick:c})=>t.jsx(wa,{children:t.jsx(Ca,{depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:l,onIconClick:c})});function pn(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const o=W();return t.jsxs(ma,{children:[e.classDepth!=null?t.jsx(No,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(Oo,{windowSize:o}):null,t.jsx(Sa,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(va,{...e}),t.jsx(fa,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:o,title:n,children:n})]})}const H={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new E(200,325,405),nameLogoWidth:new E(C[4],C[4]),nameLogoHeight:new E(C[4],C[4])},et=[new E(C[4],C[8]),new E(44,76),new E(69,102),new E(93,124),new E(113,143)],$a=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
|
+
`,_a=a.div`
|
|
258
|
+
display: flex;
|
|
259
|
+
flex: 1 1 auto;
|
|
260
|
+
flex-flow: row;
|
|
261
|
+
justify-content: flex-start;
|
|
262
|
+
align-items: center;
|
|
263
|
+
`,La=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=>H.titleWidth.valuePx(e.windowSize)};
|
|
271
|
+
max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
272
|
+
${({isSticky:e})=>e?F`
|
|
273
|
+
position: -webkit-sticky;
|
|
274
|
+
position: sticky;
|
|
275
|
+
top: ${s.sp0};
|
|
276
|
+
left: ${s.sp0};
|
|
277
|
+
`:null}
|
|
278
|
+
`,Aa=a.div`
|
|
279
|
+
width: ${e=>e.noMarginForEntity?et[e.nestingLevel].value(e.windowSize)-C[5]:et[e.nestingLevel].value(e.windowSize)}px;
|
|
280
|
+
max-width: ${e=>e.noMarginForEntity?et[e.nestingLevel].value(e.windowSize)-C[5]:et[e.nestingLevel].value(e.windowSize)}px;
|
|
281
|
+
height: 1px;
|
|
282
|
+
`,Ba=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
|
+
`,Ia=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
|
+
`,Hn=e=>{const n=W(),o=de();return t.jsxs(_a,{"data-testid":y("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(La,{windowSize:n,isSticky:e.isSticky,"data-testid":y("sub-entity-name-container","vendor_row_separator"),children:[t.jsx(Aa,{"data-testid":y("sub-entity-empty-container","vendor_row_separator"),nestingLevel:e.nestingLevel,noMarginForEntity:e.noMarginForEntity,windowSize:n}),t.jsx(Ba,{"data-testid":y("sub-entity-name-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]}),t.jsx(Ia,{"data-testid":y("sub-entity-remaining-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]})};function Vt({kind:e,isScrolling:n,subEntityProps:o}){switch(e){case"vendor_row_separator":return t.jsx(Hn,{nestingLevel:o?.nestingLevel??0,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!1,noMarginForEntity:o?.noMarginForEntity??!0});case"end_row_separator":return t.jsx($a,{"data-testid":y("end-row-separator",e),isScrolling:n});case"subtotal_row_separator":return t.jsx(Hn,{nestingLevel:o?.nestingLevel??1,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!0,noMarginForEntity:o?.noMarginForEntity??!1})}}const Wo=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
|
+
`,Po=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
|
+
`,zo=a.div`
|
|
314
|
+
display: flex;
|
|
315
|
+
flex: 1 0 auto;
|
|
316
|
+
flex-direction: row;
|
|
317
|
+
justify-content: flex-end;
|
|
318
|
+
`,Fo=a.div`
|
|
319
|
+
display: flex;
|
|
320
|
+
flex-direction: row;
|
|
321
|
+
justify-content: flex-start;
|
|
322
|
+
`,To=a(_)`
|
|
323
|
+
user-select: none;
|
|
324
|
+
min-width: ${H.balanceWidth};
|
|
325
|
+
max-width: ${H.balanceWidth};
|
|
326
|
+
text-align: right;
|
|
327
|
+
margin-left: ${H.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
|
+
`,Oa=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
|
+
`,Vo=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=>H.titleWidth.valuePx(e.windowSize)};
|
|
351
|
+
max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
352
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
353
|
+
${({isSticky:e})=>e?F`
|
|
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
|
+
`,Do=({balance:e,isOpen:n})=>{const o=n?e?.balance:e?.totalBalance;return t.jsx(Fo,{children:t.jsx(To,{isClickable:!1,onClick:()=>null,children:Z("0,0",o)})})},Eo=({total:e})=>t.jsx(Fo,{children:t.jsx(To,{isClickable:!1,onClick:()=>null,children:Z("0,0",e)})});function Na({isSticky:e,height:n,isScrolling:o,isLastNode:i,balances:r,total:l,vendor:c,backgroundColor:d,onEntityNameClick:p}){const u=W(),g=c?.name??"";return t.jsxs(Wo,{"data-testid":y("ap-aging-report-row-root-container",g),containerHeight:n,bgColor:d,windowSize:u,children:[t.jsxs(Po,{"data-testid":y("ap-aging-report-row-container",g),style:{cursor:"default"},isClickable:!1,containerHeight:n-1,children:[t.jsxs(Vo,{onClick:()=>c?.id!=null?p?.(c.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:n-1,children:[c?.logo!=null?t.jsx(Jt,{photoUrl:c.logo.toString(),styles:{width:H.nameLogoWidth.valuePx(u),height:H.nameLogoHeight.valuePx(u)}}):t.jsx(Xt,{name:g??"",size:s.sp4}),t.jsx(Oa,{children:g})]}),t.jsxs(zo,{"data-testid":y("ap-aging-report-row-balances-container",g),children:[r.map(h=>t.jsx(Do,{balance:h,isOpen:!0},h?.period)),t.jsx(Eo,{total:l})]})]}),t.jsx(Go,{isScrolling:o,isLastNode:i})]})}function Ma({treeNodeId:e,isSticky:n,height:o,isScrolling:i,isLastNode:r,isOpen:l,balances:c,total:d,totalWithChildren:p,nestedCustomer:u,metadata:g,backgroundColor:h,onEntityNameClick:x,onClick:f}){const m=W(),w=g,b=u?.customer.name??"",k=u!=null?u.id.length-1:0,v=u?.hasSiblings??!1,S=u!=null&&u.children.length!==0,$=S,B=$?"pointer":"default",L=u!=null&&u.isLeafCustomer;return t.jsxs(Wo,{"data-testid":y("ar-aging-report-row-root-container",e),containerHeight:o,bgColor:h,windowSize:m,children:[t.jsxs(Po,{"data-testid":y("ar-aging-report-row-container",e),style:{cursor:B},isClickable:$,containerHeight:o-1,children:[t.jsx(Vo,{"data-testid":y("ar-aging-report-row-name-container",e),isSticky:n,windowSize:m,bgColor:h,containerHeight:o-1,children:t.jsx(pn,{displayName:b,depth:k,isLastNode:r,hasChildren:S,hasSiblings:v,isLeaf:L,collapsed:!l,subAccountAnscestorMetadata:w.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:()=>{f?.(e)},onNameClick:()=>u?.id[0]!=null?x?.(u.id[0]):void 0})}),t.jsxs(zo,{children:[c.map(M=>t.jsx(Do,{balance:M,isOpen:l},M?.period)),t.jsx(Eo,{total:l?d:p})]})]}),t.jsx(Go,{isScrolling:i,subEntityProps:{nestingLevel:k,isSticky:n,noMarginForEntity:!0}})]})}function Go({isScrolling:e,isLastNode:n=!1,subEntityProps:o}){return n?t.jsx(Vt,{isScrolling:e,kind:"end_row_separator",subEntityProps:o}):t.jsx(Vt,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:o})}const Wa=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
|
+
`,Pa=a.div`
|
|
375
|
+
display: flex;
|
|
376
|
+
flex: 1 0 auto;
|
|
377
|
+
flex-direction: row;
|
|
378
|
+
justify-content: flex-end;
|
|
379
|
+
`,Ro=a.div`
|
|
380
|
+
display: flex;
|
|
381
|
+
max-height: ${s.sp8};
|
|
382
|
+
min-height: ${s.sp8};
|
|
383
|
+
min-width: ${H.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: ${H.balanceLeftMargin};
|
|
390
|
+
color: ${e=>e.theme.colors.primary};
|
|
391
|
+
`,Ho=a(_)`
|
|
392
|
+
display: flex;
|
|
393
|
+
user-select: none;
|
|
394
|
+
flex-direction: row;
|
|
395
|
+
justify-content: center;
|
|
396
|
+
align-items: center;
|
|
397
|
+
height: ${H.balanceHeight};
|
|
398
|
+
max-width: ${H.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
|
+
`,za=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=>H.titleWidth.valuePx(e.windowSize)};
|
|
410
|
+
color: ${e=>e.theme.colors.primary};
|
|
411
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
412
|
+
${e=>e.isSticky?F`
|
|
413
|
+
position: -webkit-sticky;
|
|
414
|
+
position: sticky;
|
|
415
|
+
top: ${s.sp0};
|
|
416
|
+
left: ${s.sp0};
|
|
417
|
+
`:""}
|
|
418
|
+
`,Fa=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
|
+
`,Ko=a.div`
|
|
425
|
+
max-height: ${s.sp8};
|
|
426
|
+
min-height: ${s.sp8};
|
|
427
|
+
cursor: pointer;
|
|
428
|
+
`,gn=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
|
+
`,Yo=a.div``,Uo=a(So)`
|
|
435
|
+
width: 12px;
|
|
436
|
+
height: 12px;
|
|
437
|
+
cursor: pointer;
|
|
438
|
+
color: ${e=>e.theme.colors.hero};
|
|
439
|
+
`,xn=a(rn)`
|
|
440
|
+
width: 12px;
|
|
441
|
+
height: 12px;
|
|
442
|
+
`,fn=a(on)`
|
|
443
|
+
width: 12px;
|
|
444
|
+
height: 12px;
|
|
445
|
+
`,Ta=({reportId:e,sortKey:n,sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=n===r?o:"ascending";return t.jsxs(Fa,{active:n===r,"data-testid":y("duration-row-vendor-title",e),children:[r==="vendor"?N.getLocalizedStrings().reports.aging.apAging.vendor:N.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(gn,{selectedForSort:n===r,children:t.jsx(Yo,{"data-testid":y("duration-row-vendor-sort-icon",e),onClick:()=>{i?.(mn(o),r)},children:l==="ascending"?t.jsx(fn,{}):t.jsx(xn,{})})}),t.jsx(st,{controller:n===r,children:t.jsx(Uo,{"data-testid":y("duration-row-vendor-sort-cancel-icon",e),onClick:()=>Zo({onSortOrderChanged:i})})})]})},Zo=({onSortOrderChanged:e})=>{e?.("descending","total")},Va=({agingPeriod:e,sortKey:n="vendor",sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=n===e?o:"ascending";return t.jsx(Ko,{"data-testid":y("duration-row-tick-container",e),children:t.jsx(Ro,{"data-testid":y("duration-row-tick-element-container",e),children:t.jsxs(Ho,{active:n===e,"data-testid":y("duration-row-timeframe-tick",e),children:[N.getLocalizedStrings().reports.aging.duration[e],t.jsxs(gn,{selectedForSort:n===e,"data-testid":y("duration-row-sort-container",e),children:[t.jsx(Yo,{"data-testid":y("duration-row-sort-icon",e),onClick:()=>{i?.(mn(o),e)},children:r==="ascending"?t.jsx(fn,{}):t.jsx(xn,{})}),t.jsx(st,{controller:n===e,children:t.jsx(Uo,{"data-testid":y("duration-row-sort-cancel-icon",e),onClick:()=>Zo({onSortOrderChanged:i})})})]})]})})})},qo=({reportId:e,sortKey:n,sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=n==="total"?o:"ascending";return t.jsx(Ko,{"data-testid":y("duration-row-entity-total-tick-container",e),onClick:()=>{i?.(mn(o),"total")},children:t.jsx(Ro,{"data-testid":y("duration-row-entity-total-tick-element-container",e),children:t.jsxs(Ho,{active:n==="total","data-testid":y("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?N.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:N.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(gn,{selectedForSort:n==="total","data-testid":y("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(fn,{}):t.jsx(xn,{})})]})})})},Da=({reportId:e,agingPeriod:n,sortKey:o="vendor",sortOrder:i="ascending",onSortOrderChanged:r})=>n!=null?t.jsx(Va,{sortKey:o,sortOrder:i,onSortOrderChanged:r,agingPeriod:n}):t.jsx(qo,{reportId:e,sortKey:o,sortOrder:i,onSortOrderChanged:r});function Ea({reportId:e,isSticky:n,height:o,agingPeriods:i,sortKey:r,sortOrder:l,backgroundColor:c,onSortOrderChanged:d}){const p=W();return t.jsxs(Wa,{height:o,bgColor:c,"data-testid":y("duration-row-root-container",e),children:[t.jsx(za,{"data-testid":y("duration-row-placeholder-name",e),isSticky:n,windowSize:p,bgColor:c,children:t.jsx(Ta,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})}),t.jsxs(Pa,{children:[i.map(u=>t.jsx(Da,{reportId:e,agingPeriod:u,sortKey:r,sortOrder:l,onSortOrderChanged:d},u)),t.jsx(qo,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})]})]})}const mn=e=>e==="ascending"?"descending":"ascending",Ga=[10,14,20,20,20],Ra=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
|
+
`,Ha=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
|
+
`,Ka=a.div`
|
|
461
|
+
display: flex;
|
|
462
|
+
flex: 1 0 auto;
|
|
463
|
+
flex-direction: row;
|
|
464
|
+
justify-content: flex-end;
|
|
465
|
+
`,Qo=a.div`
|
|
466
|
+
display: flex;
|
|
467
|
+
flex-direction: row;
|
|
468
|
+
justify-content: flex-start;
|
|
469
|
+
`,Jo=a(_)`
|
|
470
|
+
user-select: none;
|
|
471
|
+
min-width: ${H.balanceWidth};
|
|
472
|
+
max-width: ${H.balanceWidth};
|
|
473
|
+
text-align: right;
|
|
474
|
+
margin-left: ${H.balanceLeftMargin};
|
|
475
|
+
color: ${e=>e.theme.colors.primary};
|
|
476
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
477
|
+
`,Ya=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=>H.titleWidth.valuePx(e.windowSize)};
|
|
485
|
+
max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
486
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
487
|
+
${({isSticky:e})=>e?F`
|
|
488
|
+
position: sticky;
|
|
489
|
+
top: ${s.sp0};
|
|
490
|
+
left: ${s.sp0};
|
|
491
|
+
`:null}
|
|
492
|
+
`,Ua=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=>Ga[e.depth]}px;
|
|
501
|
+
color: ${e=>e.theme.colors.primary};
|
|
502
|
+
width: ${e=>H.titleWidth.value(e.windowSize)-e.depth*C[11]}px;
|
|
503
|
+
`,Za=({balance:e})=>t.jsx(Qo,{children:t.jsx(Jo,{isClickable:!1,onClick:()=>null,children:Z("0,0",e?.totalBalance)})}),qa=({total:e})=>t.jsx(Qo,{children:t.jsx(Jo,{isClickable:!1,onClick:()=>null,children:Z("0,0",e)})});function Qa({backgroundColor:e,isSticky:n,height:o,noMarginForEntity:i,isScrolling:r,total:l,nestedCustomer:c,metadata:d}){const p=W(),{common:{strings:{empty:u}},reports:{sections:g}}=N.getLocalizedStrings(),h=c!=null?c.id.length-1:0,x=d,f=c?.customer.name??u;return t.jsxs(Ra,{"data-testid":"sub-customer-total-row-root-container",containerHeight:o,bgColor:e,children:[t.jsxs(Ha,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(Ya,{isSticky:n,windowSize:p,bgColor:e,containerHeight:o,children:[t.jsx(Mo,{ancestorMetadata:x.vendorOrCustomerAncestorMetadata,depth:h,name:f}),t.jsx(Ua,{isClickable:!1,title:f,depth:h,windowSize:p,children:g.totalPrefix+" "+f})]}),t.jsxs(Ka,{children:[c?.arAgingBalances.map((m,w)=>t.jsx(Za,{balance:m},w)),t.jsx(qa,{total:l})]})]}),t.jsx(Ja,{isScrolling:r,nestingLevel:h,isSticky:n,noMarginForEntity:i})]})}function Ja({isScrolling:e,nestingLevel:n,isSticky:o,noMarginForEntity:i}){return t.jsx(Vt,{isScrolling:e,kind:"subtotal_row_separator",subEntityProps:{nestingLevel:n,isSticky:o,noMarginForEntity:i}})}const ae=e=>{switch(e){case"name+balances_actual":return!0;case"name+balances_forecast":case"name_only":return!1}},Ee=e=>{switch(e){case"name+balances_forecast":return!0;case"name+balances_actual":case"name_only":return!1}},Xa=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
|
+
`,el=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
|
+
`,tl=a.div`
|
|
520
|
+
display: flex;
|
|
521
|
+
flex: 1 0 auto;
|
|
522
|
+
flex-direction: row;
|
|
523
|
+
justify-content: flex-end;
|
|
524
|
+
`,Xo=a.div`
|
|
525
|
+
display: flex;
|
|
526
|
+
flex-direction: row;
|
|
527
|
+
justify-content: flex-start;
|
|
528
|
+
`,ei=a(ne)`
|
|
529
|
+
user-select: none;
|
|
530
|
+
min-width: ${H.balanceWidth};
|
|
531
|
+
max-width: ${H.balanceWidth};
|
|
532
|
+
text-align: right;
|
|
533
|
+
margin-left: ${H.balanceLeftMargin};
|
|
534
|
+
color: ${e=>e.theme.colors.primary};
|
|
535
|
+
border: 1px solid transparent;
|
|
536
|
+
`,nl=a.div`
|
|
537
|
+
display: flex;
|
|
538
|
+
flex-direction: row;
|
|
539
|
+
flex-shrink: 2;
|
|
540
|
+
flex-grow: 1;
|
|
541
|
+
align-items: center;
|
|
542
|
+
width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
543
|
+
max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
544
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
545
|
+
${({isSticky:e,isIndented:n})=>e&&n?F`
|
|
546
|
+
position: -webkit-sticky;
|
|
547
|
+
position: sticky;
|
|
548
|
+
top: ${s.sp0};
|
|
549
|
+
left: ${s.sp4};
|
|
550
|
+
`:e&&!n?F`
|
|
551
|
+
position: -webkit-sticky;
|
|
552
|
+
position: sticky;
|
|
553
|
+
top: ${s.sp0};
|
|
554
|
+
left: ${s.sp0};
|
|
555
|
+
`:null}
|
|
556
|
+
`,ol=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
|
+
`,il=({type:e,balance:n})=>t.jsx(Xo,{children:ae(e)===!0?t.jsx(ei,{children:Z("0,0",n?.balance)}):null}),rl=({type:e,balance:n})=>t.jsx(Xo,{children:ae(e)===!0?t.jsx(ei,{children:Z("0,0",n)}):null});function al({type:e,isSticky:n,isIndented:o,height:i,title:r,totalBalances:l,backgroundColor:c}){const d=W(),p={amount:l.reduce((u,g)=>u+(g?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Gn.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Gn.currencySymbol};return t.jsx(Xa,{"data-testid":y("total-row-root-container"),height:i,bgColor:c,windowSize:d,children:t.jsxs(el,{isClickable:!1,"data-testid":y("total-row-container"),children:[t.jsx(nl,{bgColor:c,isSticky:n,windowSize:d,isIndented:o,children:t.jsx(ol,{children:r})}),t.jsxs(tl,{children:[l.map((u,g)=>t.jsx(il,{type:e,balance:u},g)),t.jsx(rl,{type:e,balance:p})]})]})})}function ut(e,n,o,i){switch(e){case"cogs":return ll(o,i,n);case"expenses":return cl(o,i,n);case"income":return sl(o,i,n);case"cash_position":return dl(o,i,n);case"cash_in":return hl(o,i,n);case"cash_out":return ul(o,i,n);case"assets":return pl(o,i,n);case"equity":return gl(o,i,n);case"liabilities":return xl(o,i,n);case"other_expense":return fl(o,i,n);case"other_income":return ml(o,i,n);case"operating_activities":return wl(o,i,n);case"investing_activities":return yl(o,i,n);case"financing_activities":return bl(o,i,n);default:throw Error(`${e} is not yet supported!`)}}const ll=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cogsInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithCogsOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cogsInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},cl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.expensesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithExpensesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.expensesInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},sl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.incomeInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithIncomeOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.incomeInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},dl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashPositionInTimeframe,i.compactedAccountsSelector=()=>R([],i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},hl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashInInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithCashInOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cashInInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},ul=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashOutInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithCashOutOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cashOutInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},pl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.assetsInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithAssetsOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.assetsInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},gl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.equityInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithEquityOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.equityInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},xl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.liabilitiesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithLiabilitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},fl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.otherExpensesInTimeframe,i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},ml=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.otherIncomeInTimeframe,i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},wl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithOperatingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},yl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.investingActivitiesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithInvestingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},bl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.financingActivitiesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithFinancingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i};function R(e,n,o){switch(o){case"off":return e;case"filter_actual_nil_balances":return e.filter(i=>ti(n(i)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(i=>ni(n(i)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(i=>oi(n(i)?.balances??[]))}}function oe(e,n,o,i){switch(i){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>ti(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>ni(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>oi(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function ti(e){let n=!1;if(e!=null){for(const o of e)if(o.balance.amount!==0){n=!0;break}}return n}function ni(e){let n=!1;if(e!=null){for(const o of e)if(o.forecast!=null&&o.forecast.amount!==0){n=!0;break}}return n}function oi(e){let n=!1;if(e!=null){for(const o of e)if(o.forecast!=null&&o.forecast.amount!==0||o.balance!=null&&o.balance.amount!==0){n=!0;break}}return n}function te(e,n="ascending_date",o=-1,i=!0){const r=o!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=ii([],o)),{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,...i?e.additionalBalances:[]],thisPeriodIndex:c}}function Kn(e,n="ascending_date",o=-1,i=!0){const r=o!==-1,l=te(e,n,o,i);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=ii([],1);c.push(...d)}return{balances:c,thisPeriodIndex:l.thisPeriodIndex}}function We(e,n){if(n==="ascending_date")return e;{const o=[],i=[];for(const r of e)r.type==="default"?o.push(r):i.push(r);return[...o.reverse(),...i]}}function ii(e,n){return e.length>0?e:bo(Array(n),null)}const kl=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
|
+
`,Yn=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
|
+
`,jl=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 Sl({kind:e,isScrolling:n}){switch(e){case"account_title_row_separator":return t.jsx(Yn,{marginLeft:C[5],isScrolling:n});case"account_balance_row_separator":return t.jsx(Yn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(kl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(jl,{isScrolling:n})}}const Pe={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new E(200,350,405)},Cl=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
|
+
`,vl=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
|
+
`,$l=a.div`
|
|
597
|
+
display: flex;
|
|
598
|
+
flex: 1 0 auto;
|
|
599
|
+
flex-direction: row;
|
|
600
|
+
justify-content: flex-end;
|
|
601
|
+
`,_l=a.div`
|
|
602
|
+
display: flex;
|
|
603
|
+
flex-direction: row;
|
|
604
|
+
justify-content: flex-start;
|
|
605
|
+
`,Ll=a(_)`
|
|
606
|
+
user-select: none;
|
|
607
|
+
color: ${e=>e.theme.colors.hero};
|
|
608
|
+
min-width: ${Pe.balanceWidth};
|
|
609
|
+
max-width: ${Pe.balanceWidth};
|
|
610
|
+
text-align: right;
|
|
611
|
+
margin-left: ${Pe.balanceLeftMargin};
|
|
612
|
+
`,Al=a.div`
|
|
613
|
+
display: flex;
|
|
614
|
+
flex-direction: row;
|
|
615
|
+
flex-shrink: 2;
|
|
616
|
+
flex-grow: 1;
|
|
617
|
+
align-items: center;
|
|
618
|
+
width: ${e=>Pe.titleWidth.valuePx(e.windowSize)};
|
|
619
|
+
color: ${e=>e.theme.colors.hero};
|
|
620
|
+
max-width: ${e=>Pe.titleWidth.valuePx(e.windowSize)};
|
|
621
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
622
|
+
${({isSticky:e})=>e?F`
|
|
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
|
+
`,Il=({balance:e})=>t.jsx(_l,{children:t.jsx(Ll,{children:q(e)})});function Ol({heading:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,totalBalances:l,isScrolling:c,isLastNode:d,onClick:p}){const u=W();return t.jsxs(Cl,{"data-testid":y("calculated-section-type-1-root-container-row",i),height:r,bgColor:n,windowSize:u,children:[t.jsxs(vl,{"data-testid":y("calculated-section-type-1-container-row",i),onClick:()=>p?.(i),children:[t.jsx(Al,{"data-testid":y("calculated-section-type-1-total-container-row",i),bgColor:n,isSticky:o,windowSize:u,children:t.jsx(Bl,{children:e})}),t.jsx($l,{children:l.map((g,h)=>t.jsx(Il,{balance:g},h))})]}),t.jsx(Nl,{isScrolling:c,isLastNode:d})]})}function Nl({isScrolling:e,isLastNode:n}){return n===!0?t.jsx(Sl,{isScrolling:e,kind:"heading_row_separator"}):null}const Ml=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
|
+
`,Wl=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
|
+
`,Pl=a.div`
|
|
653
|
+
display: flex;
|
|
654
|
+
flex: 1 0 auto;
|
|
655
|
+
flex-direction: row;
|
|
656
|
+
justify-content: flex-end;
|
|
657
|
+
`,zl=a.div`
|
|
658
|
+
display: flex;
|
|
659
|
+
flex-direction: row;
|
|
660
|
+
justify-content: flex-start;
|
|
661
|
+
`,tt=a(ko)`
|
|
662
|
+
color: ${e=>e.theme.colors.champion};
|
|
663
|
+
user-select: none;
|
|
664
|
+
max-width: ${j.balanceWidth};
|
|
665
|
+
min-width: ${j.balanceWidth};
|
|
666
|
+
text-align: right;
|
|
667
|
+
margin-left: ${j.balanceLeftMargin};
|
|
668
|
+
`,Fl=a.div`
|
|
669
|
+
display: flex;
|
|
670
|
+
flex-direction: row;
|
|
671
|
+
flex-shrink: 2;
|
|
672
|
+
flex-grow: 1;
|
|
673
|
+
align-items: center;
|
|
674
|
+
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
675
|
+
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
676
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
677
|
+
${({isSticky:e})=>e?F`
|
|
678
|
+
position: -webkit-sticky;
|
|
679
|
+
position: sticky;
|
|
680
|
+
top: ${s.sp0};
|
|
681
|
+
left: ${s.sp0};
|
|
682
|
+
`:null}
|
|
683
|
+
`,Tl=a(ko)`
|
|
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
|
+
`,Vl=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i})=>t.jsxs(zl,{"data-testid":y("heading-row-balance-element",e),children:[ae(e)||o?t.jsx(tt,{"data-testid":y("heading-row-balance-actual",e),children:q(n)}):t.jsx(tt,{"data-testid":y("heading-row-balance-forecast",e),children:J(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(tt,{"data-testid":y("heading-row-balance-forecast",e),children:J(n)}),t.jsx(tt,{"data-testid":y("heading-row-balance-actual-vs-forecast",e),children:i==="compare_mode_percent"?pe(n):ge(n)})]}):null]});function Dl({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,heading:l,headingBalances:c,isActualVsForecastOn:d,compareMode:p,isLeaf:u,onClick:g}){const h=W();return t.jsx(Ml,{height:r,bgColor:n,"data-testid":y("heading-row-root-container",i),children:t.jsxs(Wl,{"data-testid":y("heading-row-container",i),isClickable:!u,onClick:()=>g?.(i),children:[xe(e)===!0?t.jsx(Fl,{"data-testid":y("heading-row-heading-container",i),isSticky:o,windowSize:h,bgColor:n,children:t.jsx(Tl,{children:l})}):null,ke(e)===!0?t.jsx(Pl,{"data-testid":y("heading-row-balances-container",i),children:c.map((x,f)=>t.jsx(Vl,{"data-testid":y("heading-row-balance-element",e),type:e,heading:l,balance:x,isActualVsForecastOn:d,compareMode:p},f))}):null]})})}const wn=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="title_string_only")return null;const x=te(void 0,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Dl,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,heading:o.element.title,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,headingBalances:x.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:f=>{h?.(f)}})};function ri(e,n){return El(n)}const El=(e,n)=>{const o={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return o.acBalanceSelector=i=>i.balancesInTimeframe,o.compactedAccountsSelectorVariant=i=>function(r,l,c){switch(c){case"off":default:return r;case"filter_actual_nil_balances":return r.filter(d=>function(p){let u=!1;if(p!=null){for(const g of p)if(g.balance.amount!==0){u=!0;break}}return u}(l(d)?.balances??[]))}}(i,o.acBalanceSelector,e),o},nt=[new E(C[4],56),new E(44,76),new E(69,102),new E(93,124),new E(113,143)],Un=[new E(C[0],C[0]),new E(14,C[4]),new E(67,67),new E(102,102),new E(136,136)],Gl=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
|
+
`,Zn=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
|
+
`,Rl=a.div`
|
|
704
|
+
display: flex;
|
|
705
|
+
flex: 1 1 auto;
|
|
706
|
+
flex-flow: row;
|
|
707
|
+
justify-content: flex-start;
|
|
708
|
+
align-items: center;
|
|
709
|
+
`,Hl=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=>j.titleWidth.valuePx(e.windowSize)};
|
|
717
|
+
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
718
|
+
${({isSticky:e})=>e?F`
|
|
719
|
+
position: -webkit-sticky;
|
|
720
|
+
position: sticky;
|
|
721
|
+
top: ${s.sp0};
|
|
722
|
+
left: ${s.sp0};
|
|
723
|
+
z-index: 20;
|
|
724
|
+
`:null}
|
|
725
|
+
`,Kl=a.div`
|
|
726
|
+
width: ${e=>e.noMarginForAccount?nt[e.nestingLevel].value(e.windowSize)-C[5]:nt[e.nestingLevel].value(e.windowSize)}px;
|
|
727
|
+
max-width: ${e=>e.noMarginForAccount?nt[e.nestingLevel].value(e.windowSize)-C[5]:nt[e.nestingLevel].value(e.windowSize)}px;
|
|
728
|
+
height: 1px;
|
|
729
|
+
`,Yl=a.div`
|
|
730
|
+
width: ${e=>Un[e.classDepth].valuePx(e.windowSize)};
|
|
731
|
+
max-width: ${e=>Un[e.classDepth].valuePx(e.windowSize)};
|
|
732
|
+
height: 1px;
|
|
733
|
+
`,Ul=a.div`
|
|
734
|
+
display: flex;
|
|
735
|
+
flex: 1 1 auto;
|
|
736
|
+
max-height: 1px;
|
|
737
|
+
height: 1px;
|
|
738
|
+
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
739
|
+
`,Zl=a.div`
|
|
740
|
+
display: flex;
|
|
741
|
+
flex: 1 1 auto;
|
|
742
|
+
max-height: 1px;
|
|
743
|
+
height: 1px;
|
|
744
|
+
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
745
|
+
`,ql=a.div`
|
|
746
|
+
display: flex;
|
|
747
|
+
flex: 1 1 auto;
|
|
748
|
+
max-height: 1px;
|
|
749
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
750
|
+
`,qn=e=>{const n=W(),o=de();return t.jsxs(Rl,{children:[t.jsxs(Hl,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(Yl,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(Kl,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx(Ul,{isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]}),t.jsx(Zl,{isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]})};function je({kind:e,isScrolling:n,subAccountProps:o}){switch(e){case"account_title_row_separator":return t.jsx(Zn,{marginLeft:C[5],isScrolling:n});case"sub_account_balance_row_separator":return t.jsx(qn,{nestingLevel:o?.nestingLevel??1,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!1,classDepth:o?.classDepth,noMarginForAccount:o?.noMarginForAccount??!1});case"account_balance_row_separator":return t.jsx(Zn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(Gl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(ql,{isScrolling:n});case"total_row_separator":return t.jsx(qn,{nestingLevel:o?.nestingLevel??1,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!0,classDepth:o?.classDepth,noMarginForAccount:o?.noMarginForAccount??!1})}}function ai({height:e,backgroundColor:n,title:o,numOfBalances:i=6}){let r=null;const l=W()!=="small";switch(o!=null?o.split("+")[1]:""){case"section-row":r=t.jsx(Ql,{columns:i,isSticky:l});break;case"root-class-row":r=t.jsx(Jl,{columns:i,isSticky:l});break;case"sub-class-row":r=t.jsx(Xl,{columns:i,isSticky:l});break;case"leaf-class-row":r=t.jsxs(t.Fragment,{children:[t.jsx(ec,{columns:i,isSticky:l}),t.jsx(je,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]})}return t.jsx(nc,{height:e,bgColor:n,children:r})}const Ql=({columns:e,isSticky:n})=>t.jsxs(Be,{children:[t.jsxs(yt,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(He,{width:C[4],height:C[4]}),t.jsx(Y,{width:j.loadingInProgressSmallStickyColumnWidth,height:j.balanceHeightInPx})]}),t.jsx(wt,{columns:e,rectangleWidth:j.loadingBalanceWidthInPx})]}),Jl=({columns:e,isSticky:n})=>t.jsxs(Be,{children:[t.jsxs(yt,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(He,{width:C[4],height:C[4]}),t.jsx(Y,{width:j.loadingInProgressLargeStickyColumnWidth,height:j.balanceHeightInPx})]}),t.jsx(wt,{columns:e,rectangleWidth:j.smallLoadingBalanceWidthInPx})]}),Xl=({columns:e,isSticky:n})=>t.jsxs(Be,{children:[t.jsx(yt,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(Be,{style:{marginLeft:"36px"},children:[t.jsx(He,{width:C[4],height:C[4]}),t.jsx(Y,{width:j.loadingInProgressLargeStickyColumnWidth,height:j.balanceHeightInPx,style:{marginLeft:C[4]}})]})}),t.jsx(wt,{columns:e,rectangleWidth:j.smallLoadingBalanceWidthInPx})]}),ec=({columns:e,isSticky:n})=>t.jsxs(Be,{children:[t.jsx(yt,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(Be,{style:{marginLeft:"84px"},children:t.jsx(Y,{width:j.loadingInProgressSmallStickyColumnWidth,height:j.balanceHeightInPx})})}),t.jsx(wt,{columns:e,rectangleWidth:j.smallLoadingBalanceWidthInPx})]}),tc=({rectangleWidth:e})=>t.jsx(li,{width:j.balanceWidthInPx,children:t.jsx(Y,{width:e,height:j.balanceHeightInPx})}),wt=({columns:e,rectangleWidth:n})=>t.jsx(oc,{style:{zIndex:9,width:j.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((o,i)=>t.jsx(tc,{rectangleWidth:n},i))}),nc=a.div`
|
|
751
|
+
display: flex;
|
|
752
|
+
flex: 1 1 auto;
|
|
753
|
+
width: fit-content;
|
|
754
|
+
min-width: 100%;
|
|
755
|
+
flex-direction: column;
|
|
756
|
+
height: ${e=>e.height}px;
|
|
757
|
+
background-color: ${e=>e.bgColor?.hex()??e.theme.colors.grey4};
|
|
758
|
+
`,Be=a.div`
|
|
759
|
+
user-select: none;
|
|
760
|
+
display: flex;
|
|
761
|
+
flex: 1 1 auto;
|
|
762
|
+
flex-flow: row;
|
|
763
|
+
justify-content: flex-start;
|
|
764
|
+
align-items: center;
|
|
765
|
+
min-height: 0;
|
|
766
|
+
`,oc=a.div`
|
|
767
|
+
display: flex;
|
|
768
|
+
flex: 1 0 auto;
|
|
769
|
+
flex-direction: row;
|
|
770
|
+
justify-content: flex-end;
|
|
771
|
+
`,li=a.div`
|
|
772
|
+
display: flex;
|
|
773
|
+
flex-direction: row;
|
|
774
|
+
align-items: center;
|
|
775
|
+
min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
|
|
776
|
+
margin-right: ${j.balanceLeftMargin};
|
|
777
|
+
gap: ${j.balanceLeftMargin};
|
|
778
|
+
justify-content: flex-end;
|
|
779
|
+
`,yt=a(li)`
|
|
780
|
+
position: ${e=>e.isSticky===!0?"sticky":"static"};
|
|
781
|
+
left: ${s.sp0};
|
|
782
|
+
z-index: 10;
|
|
783
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
784
|
+
justify-content: flex-start;
|
|
785
|
+
`;function ci({height:e,numOfBalances:n,backgroundColor:o}){const i=W();return t.jsx(ic,{height:e,bgColor:o,children:t.jsxs(rc,{windowSize:i,children:[t.jsx(ac,{windowSize:i,width:`${j.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(lc,{children:Array.from({length:n},(r,l)=>t.jsx(si,{windowSize:i,width:j.balanceWidth,children:t.jsx(Y,{width:j.balanceWidthInPx,height:C[6]})},`timeframe-balance-${l}`))})]})})}const ic=a.div`
|
|
786
|
+
display: flex;
|
|
787
|
+
flex: 1 1 auto;
|
|
788
|
+
width: fit-content;
|
|
789
|
+
min-width: 100%;
|
|
790
|
+
flex-direction: column;
|
|
791
|
+
height: ${e=>e.height}px;
|
|
792
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
793
|
+
margin-top: 20px;
|
|
794
|
+
`,rc=a.div`
|
|
795
|
+
display: flex;
|
|
796
|
+
flex-direction: row;
|
|
797
|
+
width: 100%;
|
|
798
|
+
`,si=a.div`
|
|
799
|
+
display: flex;
|
|
800
|
+
flex-direction: row;
|
|
801
|
+
align-items: center;
|
|
802
|
+
margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:s.sp4};
|
|
803
|
+
min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
|
|
804
|
+
color: ${e=>e.theme.colors.primary};
|
|
805
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
806
|
+
justify-content: flex-end;
|
|
807
|
+
:first-of-type {
|
|
808
|
+
justify-content: flex-start;
|
|
809
|
+
}
|
|
810
|
+
margin-right: ${j.balanceLeftMargin};
|
|
811
|
+
`,ac=a(si)`
|
|
812
|
+
position: sticky;
|
|
813
|
+
left: ${s.sp0};
|
|
814
|
+
z-index: 10;
|
|
815
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
816
|
+
`,lc=a.div`
|
|
817
|
+
display: flex;
|
|
818
|
+
flex-direction: row;
|
|
819
|
+
width: calc(100% - ${j.loadingInProgressStickySectionWidth}px);
|
|
820
|
+
justify-content: flex-end;
|
|
821
|
+
flex: 1 0 auto;
|
|
822
|
+
`,cc=a.div`
|
|
823
|
+
display: flex;
|
|
824
|
+
flex: 1 1 auto;
|
|
825
|
+
max-height: 1px;
|
|
826
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
827
|
+
`,sc=a.div`
|
|
828
|
+
display: flex;
|
|
829
|
+
flex: 1 1 auto;
|
|
830
|
+
max-height: 1px;
|
|
831
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
832
|
+
`;function yn({kind:e,isScrolling:n}){switch(e){case"ac_group_row_separator":return t.jsx(cc,{"data-testid":y("ac-group-row-separator",e),isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(sc,{"data-testid":y("section-row-separator",e),isScrolling:n})}}const G={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new E(200,350,405)},dc=a.div`
|
|
833
|
+
display: flex;
|
|
834
|
+
flex: 1 1 auto;
|
|
835
|
+
width: fit-content;
|
|
836
|
+
min-width: 100%;
|
|
837
|
+
flex-direction: column;
|
|
838
|
+
height: ${e=>e.height}px;
|
|
839
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
840
|
+
`,hc=a.div`
|
|
841
|
+
user-select: none;
|
|
842
|
+
display: flex;
|
|
843
|
+
flex: 1 1 auto;
|
|
844
|
+
flex-flow: row;
|
|
845
|
+
justify-content: flex-start;
|
|
846
|
+
align-items: center;
|
|
847
|
+
&:hover {
|
|
848
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
849
|
+
}
|
|
850
|
+
`,uc=a.div`
|
|
851
|
+
display: flex;
|
|
852
|
+
flex: 1 0 auto;
|
|
853
|
+
flex-direction: row;
|
|
854
|
+
justify-content: flex-end;
|
|
855
|
+
color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
856
|
+
`,pc=a.div`
|
|
857
|
+
display: flex;
|
|
858
|
+
flex-direction: row;
|
|
859
|
+
justify-content: flex-start;
|
|
860
|
+
`,Dt=a(_)`
|
|
861
|
+
user-select: none;
|
|
862
|
+
min-width: ${G.balanceWidth};
|
|
863
|
+
max-width: ${G.balanceWidth};
|
|
864
|
+
text-align: right;
|
|
865
|
+
margin-left: ${G.balanceLeftMargin};
|
|
866
|
+
`,gc=a(Dt)`
|
|
867
|
+
color: ${e=>e.theme.colors.hero};
|
|
868
|
+
&:hover {
|
|
869
|
+
color: inherit;
|
|
870
|
+
}
|
|
871
|
+
`,xc=a.div`
|
|
872
|
+
display: flex;
|
|
873
|
+
flex-direction: row;
|
|
874
|
+
flex-shrink: 2;
|
|
875
|
+
flex-grow: 1;
|
|
876
|
+
align-items: center;
|
|
877
|
+
width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
878
|
+
max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
879
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
880
|
+
color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
881
|
+
${({isSticky:e})=>e?F`
|
|
882
|
+
position: -webkit-sticky;
|
|
883
|
+
position: sticky;
|
|
884
|
+
top: ${s.sp0};
|
|
885
|
+
left: ${s.sp0};
|
|
886
|
+
`:null}
|
|
887
|
+
`,fc=a(_)`
|
|
888
|
+
user-select: none;
|
|
889
|
+
clear: both;
|
|
890
|
+
display: inline-block;
|
|
891
|
+
overflow: hidden;
|
|
892
|
+
white-space: nowrap;
|
|
893
|
+
text-overflow: ellipsis;
|
|
894
|
+
text-align: left;
|
|
895
|
+
margin-left: ${s.sp2};
|
|
896
|
+
`,mc=({type:e,balance:n,collapsed:o,compareMode:i})=>{const r=o===!0?gc:Dt;return t.jsxs(pc,{"data-testid":y("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":y("account-group-row-balance-actual",e),children:q(n)}),Ee(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":y("account-group-row-balance-forecast",e),children:J(n)}),t.jsx(Dt,{"data-testid":y("account-group-row-balance-actual-vs-forecast",e),children:i==="compare_mode_percent"?pe(n):ge(n)})]}):null]})};function wc({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,accountGroupName:l,accountGroupBalances:c,compareMode:d,isScrolling:p,isOpen:u,isLeaf:g,isLastNode:h,onClick:x}){const f=W(),m=!g,w=m?"pointer":"default",b=l.length>0?l.substr(0,1).toUpperCase():"",k=bc(c),v=de().colors.primary,[S,$]=V.useState(!1);return t.jsxs(dc,{"data-testid":y("account-group-row-root-container",e),height:r,bgColor:n,windowSize:f,children:[t.jsxs(hc,{"data-testid":y("account-group-row-container",e),style:{cursor:w},isClickable:m,onClick:()=>x?.(i),onMouseOver:()=>$(!0),onMouseLeave:()=>$(!1),children:[t.jsxs(xc,{"data-testid":y("account-group-row-name-container",e),bgColor:n,isSticky:o,windowSize:f,hasNonZeroBalance:k,children:[t.jsx(ve,{"data-testid":y("account-group-row-circle-with-letter",e),color:I(v),showCollapsedIcon:!u,showIcon:m&&S,firstLetter:b}),t.jsx(fc,{"data-testid":y("account-group-row-name",e),children:l})]}),t.jsx(uc,{"data-testid":y("account-group-row-balances-container",e),hasNonZeroBalance:k,children:c.map((B,L)=>t.jsx(mc,{"data-testid":y("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:B,compareMode:d,collapsed:!1},L))})]}),t.jsx(yc,{isScrolling:p,isLeaf:g,isLastNode:h,isOpen:u})]})}function yc({isScrolling:e,isLeaf:n,isLastNode:o,isOpen:i}){return!n&&i&&o?null:t.jsx(yn,{isScrolling:e,kind:"ac_group_row_separator"})}const bc=e=>{let n=!1;if(e!=null){for(const o of e)if(o!=null&&o.balance.amount!==0){n=!0;break}}return n};function Ge(e){return typeof e=="object"&&e!==null&&"depth"in e&&typeof e.depth=="number"&&!("filter"in e)}function bt(e,n){if(e!=null&&n!=null&&Ge(e)===!0){if(n.id==="__horizontal_total__")return{isHorizontalClassTotalColumn:!0};if(n.id!=null)return{isHorizontalClassColumn:!0}}}const kc=a.div`
|
|
897
|
+
display: flex;
|
|
898
|
+
flex: 1 1 auto;
|
|
899
|
+
width: fit-content;
|
|
900
|
+
min-width: 100%;
|
|
901
|
+
flex-direction: column;
|
|
902
|
+
height: ${e=>e.height}px;
|
|
903
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
904
|
+
`,jc=a.div`
|
|
905
|
+
user-select: none;
|
|
906
|
+
display: flex;
|
|
907
|
+
flex: 1 1 auto;
|
|
908
|
+
flex-flow: row;
|
|
909
|
+
justify-content: flex-start;
|
|
910
|
+
align-items: center;
|
|
911
|
+
&:hover {
|
|
912
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
913
|
+
}
|
|
914
|
+
`,Sc=a.div`
|
|
915
|
+
display: flex;
|
|
916
|
+
flex: 1 0 auto;
|
|
917
|
+
flex-direction: row;
|
|
918
|
+
justify-content: flex-end;
|
|
919
|
+
`,Cc=a.div`
|
|
920
|
+
display: flex;
|
|
921
|
+
flex-direction: row;
|
|
922
|
+
justify-content: flex-start;
|
|
923
|
+
`,Wt=a(_)`
|
|
924
|
+
user-select: none;
|
|
925
|
+
min-width: ${G.balanceWidth};
|
|
926
|
+
max-width: ${G.balanceWidth};
|
|
927
|
+
text-align: right;
|
|
928
|
+
margin-left: ${G.balanceLeftMargin};
|
|
929
|
+
color: ${e=>e.theme.colors.hero};
|
|
930
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
931
|
+
&:hover {
|
|
932
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
933
|
+
}
|
|
934
|
+
`,vc=a.div`
|
|
935
|
+
display: flex;
|
|
936
|
+
flex-direction: row;
|
|
937
|
+
flex-shrink: 2;
|
|
938
|
+
flex-grow: 1;
|
|
939
|
+
align-items: center;
|
|
940
|
+
width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
941
|
+
max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
942
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
943
|
+
${({isSticky:e})=>e?F`
|
|
944
|
+
position: -webkit-sticky;
|
|
945
|
+
position: sticky;
|
|
946
|
+
top: ${s.sp0};
|
|
947
|
+
left: ${s.sp0};
|
|
948
|
+
`:null}
|
|
949
|
+
`,$c=a(_)`
|
|
950
|
+
user-select: none;
|
|
951
|
+
clear: both;
|
|
952
|
+
display: inline-block;
|
|
953
|
+
overflow: hidden;
|
|
954
|
+
white-space: nowrap;
|
|
955
|
+
text-overflow: ellipsis;
|
|
956
|
+
text-align: left;
|
|
957
|
+
margin-left: 35px;
|
|
958
|
+
color: ${e=>e.theme.colors.hero};
|
|
959
|
+
`,_c=({type:e,balance:n,account:o,onAccountBalanceClick:i,compareMode:r})=>{const l=o!=null&&n!=null&&i!=null&&!(n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent");return t.jsxs(Cc,{children:[t.jsx(Wt,{isClickable:l,onClick:()=>{l===!0&&o!=null&&n!=null&&i?.(o,n,bt(o,n))},children:q(n)}),Ee(e)?t.jsxs(t.Fragment,{children:[t.jsx(Wt,{isClickable:!1,children:J(n)}),t.jsx(Wt,{isClickable:!1,children:r==="compare_mode_percent"?pe(n):ge(n)})]}):null]})};function Lc({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,accountBalances:l,isCompareModeOn:c,isForecastModeOn:d,isScrolling:p,isLeaf:u,isLastNode:g,compareMode:h,account:x,onAccountBalanceClick:f}){const m=W(),{common:{strings:{empty:w}}}=N.getLocalizedStrings(),b=x?.accountDescription?x.accountDescription:w,k=x?.accountName?x.accountName:b,v=en(),S=v.loggedInUserRole!=null&&!vo(v.loggedInUserRole),$=S===!0&&x!=null&&c!==!0&&f!=null&&d!==!0,B=$?"pointer":"default";return t.jsxs(kc,{height:r,bgColor:n,windowSize:m,children:[t.jsxs(jc,{style:{cursor:B},isClickable:$,onClick:()=>{return x!=null?(L=i,M=x,void($===!0&&l[l.length-1]!=null&&f?.(L,M,l[l.length-1],bt(M,l[l.length-1]??null)))):null;var L,M},children:[t.jsx(vc,{isSticky:o,windowSize:m,bgColor:n,children:t.jsx($c,{title:k,children:k})}),t.jsx(Sc,{children:l.map((L,M)=>t.jsx(_c,{type:e,balance:L,account:x,onAccountBalanceClick:S===!1||f==null?void 0:(T,D,K)=>{f(i,T,D,K)},compareMode:h},M))})]}),t.jsx(Ac,{isScrolling:p,isLeaf:u,isLastNode:g})]})}function Ac({isScrolling:e,isLeaf:n,isLastNode:o}){return n||!o?t.jsx(yn,{isScrolling:e,kind:"ac_group_row_separator"}):null}const Bc=a.div`
|
|
960
|
+
display: flex;
|
|
961
|
+
flex: 1 1 auto;
|
|
962
|
+
width: fit-content;
|
|
963
|
+
min-width: 100%;
|
|
964
|
+
flex-direction: column;
|
|
965
|
+
height: ${e=>e.rootHeight-1}px;
|
|
966
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
967
|
+
`,Ic=a.div`
|
|
968
|
+
user-select: none;
|
|
969
|
+
display: flex;
|
|
970
|
+
flex: 1 1 auto;
|
|
971
|
+
flex-flow: row;
|
|
972
|
+
justify-content: flex-start;
|
|
973
|
+
align-items: center;
|
|
974
|
+
`,Oc=a.div`
|
|
975
|
+
display: flex;
|
|
976
|
+
flex: 1 0 auto;
|
|
977
|
+
flex-direction: row;
|
|
978
|
+
justify-content: flex-end;
|
|
979
|
+
`,Qn=a.div`
|
|
980
|
+
display: flex;
|
|
981
|
+
flex-direction: row;
|
|
982
|
+
justify-content: flex-start;
|
|
983
|
+
`,Ie=a(_)`
|
|
984
|
+
user-select: none;
|
|
985
|
+
max-width: ${G.balanceWidth};
|
|
986
|
+
min-width: ${G.balanceWidth};
|
|
987
|
+
text-align: right;
|
|
988
|
+
margin-left: ${G.balanceLeftMargin};
|
|
989
|
+
`,Jn=a(_)`
|
|
990
|
+
user-select: none;
|
|
991
|
+
max-width: ${G.balanceWidth};
|
|
992
|
+
min-width: ${G.balanceWidth};
|
|
993
|
+
text-align: right;
|
|
994
|
+
margin-left: ${G.balanceLeftMargin};
|
|
995
|
+
`,Nc=a.div`
|
|
996
|
+
display: flex;
|
|
997
|
+
flex-direction: column;
|
|
998
|
+
align-items: flex-end;
|
|
999
|
+
`,Mc=a.div`
|
|
1000
|
+
display: flex;
|
|
1001
|
+
flex-direction: row;
|
|
1002
|
+
flex-shrink: 2;
|
|
1003
|
+
flex-grow: 1;
|
|
1004
|
+
align-items: center;
|
|
1005
|
+
height: ${s.sp7};
|
|
1006
|
+
width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
1007
|
+
max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
1008
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1009
|
+
${({isSticky:e})=>e?F`
|
|
1010
|
+
position: -webkit-sticky;
|
|
1011
|
+
position: sticky;
|
|
1012
|
+
top: ${s.sp0};
|
|
1013
|
+
left: ${s.sp0};
|
|
1014
|
+
`:null}
|
|
1015
|
+
`,Wc=a(_)`
|
|
1016
|
+
user-select: none;
|
|
1017
|
+
user-select: none;
|
|
1018
|
+
clear: both;
|
|
1019
|
+
display: inline-block;
|
|
1020
|
+
overflow: hidden;
|
|
1021
|
+
white-space: nowrap;
|
|
1022
|
+
text-overflow: ellipsis;
|
|
1023
|
+
text-align: left;
|
|
1024
|
+
margin-left: ${s.sp2};
|
|
1025
|
+
`,Pc=({type:e,balance:n,color:o,compareMode:i})=>{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(Nc,{children:[t.jsxs(Qn,{children:[t.jsx(Ie,{style:{color:o.toString()},children:q(n)}),Ee(e)?t.jsxs(t.Fragment,{children:[t.jsx(Ie,{style:{color:o.toString()},children:J(n)}),t.jsx(Ie,{style:{color:o.toString()},children:i==="compare_mode_percent"?pe(n):ge(n)})]}):null]}),t.jsxs(Qn,{children:[r!==0?t.jsx(Jn,{style:{color:o.toString()},children:ye("0,0%",r)}):null,Ee(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(Jn,{style:{color:o.toString()},children:ye("0,0%",l)}):t.jsx(Ie,{}),t.jsx(Ie,{})]}):null]})]})};function bn({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,sectionName:l,sectionBalances:c,sectionColor:d,isScrolling:p,isOpen:u,isLeaf:g,compareMode:h,onClick:x}){const f=W(),[m,w]=V.useState(!1),b=!g,k=b?"pointer":"default",v=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(Bc,{"data-testid":y("section-row-root-container",i),rootHeight:r,bgColor:n,windowSize:f,children:[t.jsxs(Ic,{"data-testid":y("section-row-container",i),style:{cursor:k},onClick:()=>x?.(i),onMouseOver:()=>w(!0),onMouseLeave:()=>w(!1),children:[t.jsxs(Mc,{"data-testid":y("section-row-name-container",i),isSticky:o,windowSize:f,bgColor:n,children:[t.jsx(ve,{"data-testid":y("section-row-circle-with-letter",i),color:I(d),showCollapsedIcon:!u,showIcon:b&&m,firstLetter:v}),t.jsx(Wc,{"data-testid":y("section-row-name",i),style:{color:d.toString()},children:l})]}),t.jsx(Oc,{"data-testid":y("section-row-balances-container",i),children:c.map((S,$)=>t.jsx(Pc,{"data-testid":y("section-row-balance-element",e),type:e,sectionName:l,balance:S,color:d,compareMode:h},$))})]}),t.jsx(zc,{isScrolling:p,isLeaf:g,isOpen:u})]})}function zc({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(yn,{isScrolling:e,kind:"section_row_separator"}):null}const Fc=a.div`
|
|
1026
|
+
display: flex;
|
|
1027
|
+
flex: 1 1 auto;
|
|
1028
|
+
width: fit-content;
|
|
1029
|
+
min-width: 100%;
|
|
1030
|
+
flex-direction: column;
|
|
1031
|
+
height: ${e=>e.height}px;
|
|
1032
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1033
|
+
`,Tc=a.div`
|
|
1034
|
+
user-select: none;
|
|
1035
|
+
display: flex;
|
|
1036
|
+
flex: 1 1 auto;
|
|
1037
|
+
flex-flow: row;
|
|
1038
|
+
justify-content: flex-start;
|
|
1039
|
+
align-items: center;
|
|
1040
|
+
`,Vc=a.div`
|
|
1041
|
+
display: flex;
|
|
1042
|
+
flex: 1 0 auto;
|
|
1043
|
+
flex-direction: row;
|
|
1044
|
+
justify-content: flex-end;
|
|
1045
|
+
`,Dc=a.div`
|
|
1046
|
+
display: flex;
|
|
1047
|
+
flex-direction: row;
|
|
1048
|
+
justify-content: flex-start;
|
|
1049
|
+
`,di=a(_)`
|
|
1050
|
+
user-select: none;
|
|
1051
|
+
min-width: ${G.balanceWidth};
|
|
1052
|
+
max-width: ${G.balanceWidth};
|
|
1053
|
+
text-align: right;
|
|
1054
|
+
margin-left: ${G.balanceLeftMargin};
|
|
1055
|
+
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1056
|
+
`,Ec=a(di)`
|
|
1057
|
+
color: ${e=>e.theme.colors.hero};
|
|
1058
|
+
&:hover {
|
|
1059
|
+
color: inherit;
|
|
1060
|
+
}
|
|
1061
|
+
`,Gc=a.div`
|
|
1062
|
+
display: flex;
|
|
1063
|
+
flex-direction: row;
|
|
1064
|
+
flex-shrink: 2;
|
|
1065
|
+
flex-grow: 1;
|
|
1066
|
+
align-items: center;
|
|
1067
|
+
width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
1068
|
+
max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
|
|
1069
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1070
|
+
${({isSticky:e})=>e?F`
|
|
1071
|
+
position: -webkit-sticky;
|
|
1072
|
+
position: sticky;
|
|
1073
|
+
top: ${s.sp0};
|
|
1074
|
+
left: ${s.sp0};
|
|
1075
|
+
`:null}
|
|
1076
|
+
`,Rc=a(_)`
|
|
1077
|
+
user-select: none;
|
|
1078
|
+
clear: both;
|
|
1079
|
+
display: inline-block;
|
|
1080
|
+
overflow: hidden;
|
|
1081
|
+
white-space: nowrap;
|
|
1082
|
+
text-overflow: ellipsis;
|
|
1083
|
+
text-align: left;
|
|
1084
|
+
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1085
|
+
`,Pt=a(_)`
|
|
1086
|
+
user-select: none;
|
|
1087
|
+
min-width: ${G.balanceWidth};
|
|
1088
|
+
max-width: ${G.balanceWidth};
|
|
1089
|
+
text-align: right;
|
|
1090
|
+
margin-left: ${G.balanceLeftMargin};
|
|
1091
|
+
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1092
|
+
`,Hc=({type:e,balance:n,collapsed:o,compareMode:i})=>{const r=o===!0?Ec:di;return t.jsxs(Dc,{children:[ae(e)===!0?t.jsx(r,{children:q(n)}):null,Ee(e)?t.jsxs(t.Fragment,{children:[t.jsx(Pt,{children:q(n)}),t.jsx(Pt,{children:J(n)}),t.jsx(Pt,{children:i==="compare_mode_percent"?pe(n):ge(n)})]}):null]})};function Kc({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,title:l,totalBalances:c,isLeaf:d,compareMode:p,onClick:u}){const g=W(),h=!d,x=h?"pointer":"default";return t.jsx(Fc,{height:r,bgColor:n,windowSize:g,children:t.jsxs(Tc,{style:{cursor:x},isClickable:h,onClick:()=>u?.(i),children:[t.jsx(Gc,{bgColor:n,isSticky:o,windowSize:g,children:t.jsx(Rc,{children:l})}),t.jsx(Vc,{children:c.map((f,m)=>t.jsx(Hc,{type:e,balance:f,collapsed:!1,compareMode:p},m))})]})})}const Le={net_burn_or_income:{income:{color:new I(O.graphColor04),hoverColor:new I(O.graphColor04Dark)},cogs:{color:new I(O.graphColor10),hoverColor:new I(O.graphColor10Dark)},expenses:{color:new I(O.graphColor32),hoverColor:new I(O.graphColor32Dark)},"Gross Burn":{color:new I(ee.neutralGrey2Dark),hoverColor:new I(ee.neutralGrey2Dark)},"Net Burn":{color:new I(O.graphColor13),hoverColor:new I(O.graphColor13Dark)},"Net Income":{color:new I(O.graphColor13),hoverColor:new I(O.graphColor13Dark)}},revenue:{income:{color:new I(O.graphColor28),hoverColor:new I(O.graphColor28Dark)},cogs:{color:new I(O.graphColor17),hoverColor:new I(O.graphColor17Dark)},"Gross Margin":{color:new I(O.graphColor10),hoverColor:new I(O.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new I(O.graphColor33),hoverColor:new I(O.graphColor33Dark)},cash_out:{color:new I(O.graphColor02),hoverColor:new I(O.graphColor02Dark)},"Net Cash Flow":{color:new I(O.graphColor35),hoverColor:new I(O.graphColor35Dark)}},default:{color:new I(ee.neutralGrey2Dark),hoverColor:new I(ee.neutralGrey2Dark)}},kn=(e,n)=>e.startsWith("net_burn_or_income")===!0?n!=null?Le.net_burn_or_income[n]:Le.default:e.startsWith("revenue")===!0?n!=null?Le.revenue[n]:Le.default:e.startsWith("cash_in_cash_out")===!0&&n!=null?Le.cash_in_cash_out[n]:Le.default,hi=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="section"||o.element.data==null)return null;const x=kn(o.config.reportId,o.element.sectionType),f=te(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(bn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionColor:x.color,sectionName:o.element.title,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,compareMode:g,onClick:m=>{h?.(m)}})},ui=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="calculated_section"||o.element.data==null)return null;const x=kn(o.config.reportId,o.element.title),f=te(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(bn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:x.color,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,compareMode:g,onClick:m=>{h?.(m)}})},pi=(e,n,o,i,r,l,c,d)=>{if((o.config.isZeniCOAInUse==null||o.config.isZeniCOAInUse===!0)&&o.config.mode!=="this_period_vs_period_before")return null;const p=te(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Kc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,title:o.element.title,height:i,isLeaf:d,compareMode:c,totalBalances:p.balances})},mg=20,Yc=e=>{const n=[];return e&&Object.values(e).forEach(o=>{n.push(o)}),n.reverse()},Uc=a.div`
|
|
1093
|
+
display: flex;
|
|
1094
|
+
flex: 1 1 auto;
|
|
1095
|
+
height: 1px;
|
|
1096
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
1097
|
+
`,Zc=a.div`
|
|
1098
|
+
display: flex;
|
|
1099
|
+
height: 1px;
|
|
1100
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
1101
|
+
`;function Et({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(Zc,{isScrolling:n});case"heading_row_separator":return null}}const qc=a.div`
|
|
1102
|
+
position: relative;
|
|
1103
|
+
`,Qc=a.div`
|
|
1104
|
+
height: ${e=>e.height}px;
|
|
1105
|
+
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1106
|
+
width: 1px;
|
|
1107
|
+
`;a.div`
|
|
1108
|
+
height: 39px;
|
|
1109
|
+
width: 2px;
|
|
1110
|
+
`;const Jc=a.div`
|
|
1111
|
+
position: relative;
|
|
1112
|
+
margin-right: ${s.sp3};
|
|
1113
|
+
&::after {
|
|
1114
|
+
content: "";
|
|
1115
|
+
position: absolute;
|
|
1116
|
+
top: 20px;
|
|
1117
|
+
border-top: 1px solid ${e=>e.theme.colors.grey1};
|
|
1118
|
+
width: 18px;
|
|
1119
|
+
}
|
|
1120
|
+
`,Xc=a.div`
|
|
1121
|
+
height: ${s.sp6};
|
|
1122
|
+
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1123
|
+
width: 1px;
|
|
1124
|
+
`,es=a.div`
|
|
1125
|
+
position: relative;
|
|
1126
|
+
margin-right: ${s.sp3};
|
|
1127
|
+
&::after {
|
|
1128
|
+
content: "";
|
|
1129
|
+
position: absolute;
|
|
1130
|
+
top: ${e=>e.height}px;
|
|
1131
|
+
border-top: 1px solid ${e=>e.theme.colors.grey1};
|
|
1132
|
+
width: 18px;
|
|
1133
|
+
}
|
|
1134
|
+
`,ts=a.div`
|
|
1135
|
+
height: ${e=>e.height}px;
|
|
1136
|
+
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1137
|
+
margin-bottom: ${e=>e.height}px;
|
|
1138
|
+
width: 1px;
|
|
1139
|
+
`,gi=({height:e})=>t.jsx(qc,{children:t.jsx(Qc,{height:e})}),ns=({height:e})=>t.jsx(es,{height:e,children:t.jsx(ts,{height:e})}),os=()=>t.jsx(Jc,{children:t.jsx(Xc,{})}),is=s.sp4,xi="126px",me="128px",kt="12px",jt="12px",pt="685px",jn="628px",Xn="685px",rs="182px",gt="184px",Se="144px",xt="12px",eo="685px",fi="250px",ft="250px",as=39,ls=19.5,cs=16,ze=128,to=168,Fe="180px",no="300px",mi="210px",ss="128px";function wi(e,n=!1){switch(e){case"section":case"flux_vendor_row":case"timeframe_headers":case"total":case"loading_in_progress":case"headers_loading_in_progress":return C[8];case"flux_vendor_account_class_row":return n?C[9]:C[6];default:return 0}}const oo=N.getLocalizedStrings(),ds=a.div`
|
|
1140
|
+
display: flex;
|
|
1141
|
+
flex-shrink: 0;
|
|
1142
|
+
width: ${gt};
|
|
1143
|
+
min-width: ${gt};
|
|
1144
|
+
margin-left: 12px;
|
|
1145
|
+
gap: ${s.sp1};
|
|
1146
|
+
flex-direction: row;
|
|
1147
|
+
justify-content: flex-end;
|
|
1148
|
+
text-align: center;
|
|
1149
|
+
`,hs=a.div`
|
|
1150
|
+
height: ${s.sp4};
|
|
1151
|
+
border-radius: ${s.sp1};
|
|
1152
|
+
padding: 2px ${s.sp1};
|
|
1153
|
+
color: ${e=>e.textColor.hex()};
|
|
1154
|
+
`,us=a.div`
|
|
1155
|
+
border-radius: ${s.sp1};
|
|
1156
|
+
padding: 2px ${s.sp1};
|
|
1157
|
+
height: ${s.sp4};
|
|
1158
|
+
justify-content: center;
|
|
1159
|
+
text-align: center;
|
|
1160
|
+
color: ${e=>e.textColor.hex()};
|
|
1161
|
+
background-color: ${e=>e.bgColor.hex()};
|
|
1162
|
+
`,St=({amount:e,percentage:n,currency:o})=>{const i=de();return t.jsxs(ds,{children:[t.jsx(hs,{textColor:new I(e>0?i.colors.brandColorGoldDark:i.colors.success),children:Z("0,0",br(Math.abs(e),o.currencyCode,o.currencySymbol))}),t.jsx(us,{textColor:new I(e>0?i.colors.brandColorGoldDark:i.colors.success),bgColor:new I(e>0?ee.brandColorGoldLight:ee.successLight),children:`${lr(Math.abs(n)).format(oo.common.numberFormat.roundedOff)}${oo.common.strings.percentage}`})]})},io=N.getLocalizedStrings(),ps=a.div`
|
|
1163
|
+
display: flex;
|
|
1164
|
+
flex: 1 1 auto;
|
|
1165
|
+
width: fit-content;
|
|
1166
|
+
min-width: 100%;
|
|
1167
|
+
flex-direction: column;
|
|
1168
|
+
`,gs=a.div`
|
|
1169
|
+
display: flex;
|
|
1170
|
+
flex: 1 1 auto;
|
|
1171
|
+
flex-flow: row;
|
|
1172
|
+
justify-content: flex-start;
|
|
1173
|
+
align-items: center;
|
|
1174
|
+
width: 100%;
|
|
1175
|
+
color: ${e=>e.isHoveredByParent?e.theme.colors.primary:e.theme.colors.hero};
|
|
1176
|
+
&:hover {
|
|
1177
|
+
color: ${e=>e.theme.colors.primary};
|
|
1178
|
+
}
|
|
1179
|
+
`,yi=a.div`
|
|
1180
|
+
display: flex;
|
|
1181
|
+
flex-direction: column;
|
|
1182
|
+
`,bi=a.div`
|
|
1183
|
+
display: flex;
|
|
1184
|
+
height: ${s.sp4};
|
|
1185
|
+
`,xs=a.div`
|
|
1186
|
+
display: flex;
|
|
1187
|
+
flex-direction: row;
|
|
1188
|
+
justify-content: flex-start;
|
|
1189
|
+
`,fs=a(_)`
|
|
1190
|
+
min-width: ${me};
|
|
1191
|
+
max-width: ${me};
|
|
1192
|
+
text-align: right;
|
|
1193
|
+
margin-left: 12px;
|
|
1194
|
+
`,ms=a.div`
|
|
1195
|
+
display: flex;
|
|
1196
|
+
flex-direction: column;
|
|
1197
|
+
flex-shrink: 2;
|
|
1198
|
+
flex-grow: 1;
|
|
1199
|
+
align-items: center;
|
|
1200
|
+
width: ${eo};
|
|
1201
|
+
max-width: ${eo};
|
|
1202
|
+
padding-left: 67.5px;
|
|
1203
|
+
${({isSticky:e})=>e?F`
|
|
1204
|
+
position: sticky;
|
|
1205
|
+
top: ${s.sp0};
|
|
1206
|
+
left: ${s.sp0};
|
|
1207
|
+
display: flex;
|
|
1208
|
+
`:null}
|
|
1209
|
+
`,ws=a.div`
|
|
1210
|
+
display: flex;
|
|
1211
|
+
height: ${s.sp4};
|
|
1212
|
+
width: 100%;
|
|
1213
|
+
`,ys=a.div`
|
|
1214
|
+
display: flex;
|
|
1215
|
+
flex-direction: row;
|
|
1216
|
+
flex-shrink: 2;
|
|
1217
|
+
flex-grow: 1;
|
|
1218
|
+
align-items: center;
|
|
1219
|
+
width: 100%;
|
|
1220
|
+
`,bs=a(Ce)`
|
|
1221
|
+
display: flex;
|
|
1222
|
+
width: ${fi};
|
|
1223
|
+
margin-left: ${s.sp3};
|
|
1224
|
+
color: ${e=>e.theme.colors.hero};
|
|
1225
|
+
`,ks=a(Ce)`
|
|
1226
|
+
display: flex;
|
|
1227
|
+
width: ${fi};
|
|
1228
|
+
margin-left: ${s.sp4};
|
|
1229
|
+
color: ${e=>e.theme.colors.hero};
|
|
1230
|
+
`,js=a(_)`
|
|
1231
|
+
clear: both;
|
|
1232
|
+
display: flex;
|
|
1233
|
+
overflow: hidden;
|
|
1234
|
+
white-space: nowrap;
|
|
1235
|
+
text-overflow: ellipsis;
|
|
1236
|
+
text-align: left;
|
|
1237
|
+
margin-left: 2px;
|
|
1238
|
+
width: ${ft};
|
|
1239
|
+
max-width: ${ft};
|
|
1240
|
+
`,Ss=a(_)`
|
|
1241
|
+
display: flex;
|
|
1242
|
+
align-items: center;
|
|
1243
|
+
overflow: hidden;
|
|
1244
|
+
white-space: nowrap;
|
|
1245
|
+
text-overflow: ellipsis;
|
|
1246
|
+
text-align: left;
|
|
1247
|
+
margin-left: ${s.sp4};
|
|
1248
|
+
margin-right: ${s.sp3};
|
|
1249
|
+
width: ${ft};
|
|
1250
|
+
max-width: ${ft};
|
|
1251
|
+
`,Cs=a.div`
|
|
1252
|
+
display: flex;
|
|
1253
|
+
margin-left: ${s.sp7};
|
|
1254
|
+
margin-right: calc(
|
|
1255
|
+
${Se} +
|
|
1256
|
+
${jt}
|
|
1257
|
+
);
|
|
1258
|
+
`,vs=a.div`
|
|
1259
|
+
position: sticky;
|
|
1260
|
+
left: 0;
|
|
1261
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1262
|
+
display: flex;
|
|
1263
|
+
`,$s=a.div`
|
|
1264
|
+
overflow-x: auto;
|
|
1265
|
+
display: flex;
|
|
1266
|
+
flex: 1;
|
|
1267
|
+
justify-content: flex-end;
|
|
1268
|
+
`,_s=({isBalanceRowFirstNode:e=!1,balance:n})=>{const o=n!=null;return t.jsxs(yi,{children:[e?t.jsx(bi,{}):null,t.jsx(xs,{children:t.jsx(fs,{isClickable:o,children:q(n)})})]})};function Ls({varianceAmount:e,variancePercentage:n,currency:o,isSticky:i,balances:r,isScrolling:l,nodeMetadata:c,isLeaf:d,isLastNode:p,accountAndClass:u,isHoveredByParent:g}){const{common:{strings:{hyphen:h}}}=N.getLocalizedStrings(),x=u.accountBase?.accountDescription?u.accountBase?.accountDescription:h,f=u.accountBase?.accountName?u.accountBase?.accountName:x,m=u.classBase?.className?u.classBase?.className:h,w=c?.accountAndClassRowMetadata.isLastNode;return t.jsxs(ps,{children:[t.jsxs(gs,{style:{cursor:"default"},isHoveredByParent:g,children:[t.jsx(vs,{children:t.jsxs(ms,{className:"flux-class-and-account-value-container",isSticky:i,children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(ws,{children:[t.jsx(gi,{height:as}),t.jsx(bs,{children:io.common.texts.category}),t.jsx(ks,{children:io.common.texts.class})]}),t.jsxs(ys,{children:[w===!0?t.jsx(ns,{height:ls}):t.jsx(os,{}),t.jsx(js,{title:f,children:f}),t.jsx(Ss,{title:m,children:m})]})]})}),t.jsx($s,{children:t.jsxs(Cs,{children:[r.map((b,k)=>t.jsx(_s,{balance:b,isBalanceRowFirstNode:c?.accountAndClassRowMetadata.isFirstNode},k)),t.jsxs(yi,{children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsx(bi,{}),t.jsx(St,{amount:e,percentage:n,currency:o})]})]})})]}),t.jsx(As,{isScrolling:l,isLeaf:d,isLastNode:p,isParentLastChild:c?.isVendorLastChild??!0})]})}function As({isScrolling:e,isLastNode:n,isParentLastChild:o}){return n&&o?t.jsx(Et,{isScrolling:e,kind:"vendor_separator"}):n?t.jsx(Et,{isScrolling:e,kind:"account_class_row_separator"}):null}function Bs(){return t.jsxs(Is,{children:[t.jsxs(Ns,{children:[t.jsxs(Ae,{width:no,className:"vendor-title",children:[t.jsx(He,{width:C[4],height:C[4]}),t.jsx(Y,{width:to,height:C[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})]}),t.jsx(Ae,{width:no,children:t.jsx(Y,{width:to,height:C[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})})]}),t.jsxs(Os,{children:[t.jsx(Ae,{width:Fe,children:t.jsx(Y,{width:ze,height:C[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(Ae,{width:Fe,children:t.jsx(Y,{width:ze,height:C[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(Ae,{width:mi,children:[t.jsx(Y,{width:ze,height:C[4],style:{display:"flex",alignItems:"center"}}),t.jsx(Y,{width:C[7],height:C[4],style:{display:"flex",alignItems:"flex-start",marginLeft:s.sp1}})]}),t.jsx(Ae,{width:Fe,children:t.jsx(Y,{width:70,height:C[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const Is=a.div`
|
|
1269
|
+
display: flex;
|
|
1270
|
+
flex-direction: row;
|
|
1271
|
+
width: 100%;
|
|
1272
|
+
margin-left: ${s.sp8};
|
|
1273
|
+
.vendor-title {
|
|
1274
|
+
justify-content: flex-start;
|
|
1275
|
+
}
|
|
1276
|
+
`,Ae=a.div`
|
|
1277
|
+
display: flex;
|
|
1278
|
+
flex-direction: row;
|
|
1279
|
+
align-items: center;
|
|
1280
|
+
min-width: ${e=>e.width};
|
|
1281
|
+
color: ${e=>e.theme.colors.primary};
|
|
1282
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1283
|
+
justify-content: flex-end;
|
|
1284
|
+
|
|
1285
|
+
:last-of-type {
|
|
1286
|
+
justify-content: center;
|
|
1287
|
+
}
|
|
1288
|
+
`,Os=a.div`
|
|
1289
|
+
display: flex;
|
|
1290
|
+
`,Ns=a.div`
|
|
1291
|
+
display: flex;
|
|
1292
|
+
width: ${jn};
|
|
1293
|
+
position: sticky;
|
|
1294
|
+
left: ${s.sp8};
|
|
1295
|
+
top: 0;
|
|
1296
|
+
z-index: 10;
|
|
1297
|
+
`,Ms=a.div`
|
|
1298
|
+
display: flex;
|
|
1299
|
+
flex: 1 1 auto;
|
|
1300
|
+
width: fit-content;
|
|
1301
|
+
min-width: 100%;
|
|
1302
|
+
flex-direction: column;
|
|
1303
|
+
height: ${e=>e.heightValue}px;
|
|
1304
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1305
|
+
`,Ws=a.div`
|
|
1306
|
+
display: flex;
|
|
1307
|
+
flex: 1 1 auto;
|
|
1308
|
+
flex-flow: row;
|
|
1309
|
+
justify-content: flex-start;
|
|
1310
|
+
align-items: center;
|
|
1311
|
+
`,Ps=a.div`
|
|
1312
|
+
display: flex;
|
|
1313
|
+
flex-direction: row;
|
|
1314
|
+
justify-content: flex-start;
|
|
1315
|
+
`,zs=a(_)`
|
|
1316
|
+
max-width: ${me};
|
|
1317
|
+
min-width: ${me};
|
|
1318
|
+
text-align: right;
|
|
1319
|
+
margin-left: ${kt};
|
|
1320
|
+
color: ${({color:e})=>e};
|
|
1321
|
+
`,Fs=a.div`
|
|
1322
|
+
display: flex;
|
|
1323
|
+
flex-direction: row;
|
|
1324
|
+
flex-shrink: 2;
|
|
1325
|
+
align-items: center;
|
|
1326
|
+
height: 100%;
|
|
1327
|
+
width: ${Xn};
|
|
1328
|
+
min-width: ${Xn};
|
|
1329
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1330
|
+
${({isSticky:e})=>e&&F`
|
|
1331
|
+
position: sticky;
|
|
1332
|
+
top: ${s.sp0};
|
|
1333
|
+
left: ${s.sp0};
|
|
1334
|
+
`}
|
|
1335
|
+
`,Ts=a(_)`
|
|
1336
|
+
clear: both;
|
|
1337
|
+
display: inline-block;
|
|
1338
|
+
overflow: hidden;
|
|
1339
|
+
white-space: nowrap;
|
|
1340
|
+
text-overflow: ellipsis;
|
|
1341
|
+
text-align: left;
|
|
1342
|
+
margin-left: ${s.sp2};
|
|
1343
|
+
color: ${({color:e})=>e};
|
|
1344
|
+
`,Vs=a(tn)`
|
|
1345
|
+
color: ${e=>e.theme.colors.primary};
|
|
1346
|
+
width: ${s.sp3};
|
|
1347
|
+
height: ${s.sp3};
|
|
1348
|
+
`,Ds=a.div`
|
|
1349
|
+
display: flex;
|
|
1350
|
+
&:hover {
|
|
1351
|
+
.flux-section-checkbox {
|
|
1352
|
+
background-color: transparent;
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
`,Es=a.div`
|
|
1356
|
+
display: flex;
|
|
1357
|
+
width: ${s.sp8};
|
|
1358
|
+
`,Gs=a.div`
|
|
1359
|
+
display: flex;
|
|
1360
|
+
margin-left: ${s.sp7};
|
|
1361
|
+
flex: 1 1 auto;
|
|
1362
|
+
justify-content: flex-end;
|
|
1363
|
+
margin-right: calc(
|
|
1364
|
+
${Se} +
|
|
1365
|
+
${jt}
|
|
1366
|
+
);
|
|
1367
|
+
`,Rs=({balance:e,color:n})=>t.jsx(Ps,{children:t.jsx(zs,{color:n,children:q(e)})}),Hs=mr.memo(function({currency:e,sectionId:n,selectedSectionsIds:o,backgroundColor:i,isSticky:r,treeNodeId:l,height:c,sectionName:d,hasVendors:p,sectionBalances:u,varianceAmount:g,variancePercentage:h,sectionColor:x,isScrolling:f,isOpen:m,isLeaf:w,idsForReview:b,sectionToggled:k,onSectionCheckboxClick:v}){const S=W(),[$,B]=V.useState(b.length>0),[L,M]=V.useState(!1),T=o.includes(n),D=!w,K=b.length===20&&!T,X=d?.[0]?.toUpperCase()??"",Q=V.useCallback(re=>{v?.(n,re.target.checked)},[n,v]),ie=y("flux-analysis-section-expand-collapse",n),he=y("flux-analysis-section-row",n),le=y("flux-analysis-section-checkbox",n);return t.jsxs(Ms,{heightValue:c,bgColor:i,"data-testid":he,children:[t.jsxs(Ws,{style:{cursor:D?"pointer":"default"},onClick:()=>k?.(l),onMouseOver:()=>{M(!0),B(!0)},onMouseLeave:()=>{M(!1),b.length===0&&B(!1)},children:[t.jsxs(Fs,{className:"flux-section-name-container",isSticky:r,windowSize:S,bgColor:i,children:[p&&$&&m?t.jsx(Ds,{children:t.jsx(qt,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox","data-testid":le,icon:t.jsx(Qt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Vs,{}),checked:T,id:l,disabled:K,onChange:Q,onClick:re=>re.stopPropagation(),style:{padding:"20px",pointerEvents:K?"none":"auto"}})}):t.jsx(Es,{}),t.jsx(ve,{color:I(x),dataTestId:ie,firstLetter:X,showCollapsedIcon:!m,showIcon:L&&D}),t.jsx(Ts,{color:x.toString(),children:d})]}),t.jsxs(Gs,{children:[u.map((re,be)=>t.jsx(Rs,{sectionName:d,balance:re,color:x.toString()},be)),t.jsx(St,{amount:g,percentage:h,currency:e})]})]}),t.jsx(Ks,{isScrolling:f,isLeaf:w,isOpen:m})]})});function Ks({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(Et,{isScrolling:e,kind:"section_row_separator"}):null}function Ys(){const e=W();return t.jsxs(Us,{windowSize:e,children:[t.jsx(Oe,{windowSize:e,width:jn,marginRight:0,children:t.jsx(Y,{width:C[9],height:C[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(Oe,{windowSize:e,width:Fe,marginRight:0,children:t.jsx(Y,{width:128,height:C[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Oe,{windowSize:e,width:Fe,marginRight:0,children:t.jsx(Y,{width:ze,height:C[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Oe,{windowSize:e,width:mi,children:t.jsx(Y,{width:184,height:C[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Oe,{windowSize:e,width:ss,children:t.jsx(Y,{width:ze,height:C[6],style:{display:"flex",alignItems:"center"}})})]})}const Us=a.div`
|
|
1368
|
+
display: flex;
|
|
1369
|
+
flex-direction: row;
|
|
1370
|
+
width: 100%;
|
|
1371
|
+
margin-left: ${s.sp8};
|
|
1372
|
+
`,Oe=a.div`
|
|
1373
|
+
display: flex;
|
|
1374
|
+
flex-direction: row;
|
|
1375
|
+
align-items: center;
|
|
1376
|
+
margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:s.sp4};
|
|
1377
|
+
min-width: ${e=>e.width};
|
|
1378
|
+
color: ${e=>e.theme.colors.primary};
|
|
1379
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1380
|
+
justify-content: flex-end;
|
|
1381
|
+
:first-of-type {
|
|
1382
|
+
justify-content: flex-start;
|
|
1383
|
+
}
|
|
1384
|
+
`,{common:Zs,expenseAutomation:{fluxAnalysis:qs},vendors:{opExByVendor:Qs}}=N.getLocalizedStrings(),Js=a.div`
|
|
1385
|
+
display: flex;
|
|
1386
|
+
flex: 1 1 auto;
|
|
1387
|
+
width: fit-content;
|
|
1388
|
+
min-width: 100%;
|
|
1389
|
+
height: ${e=>`${e.heightValue}px`};
|
|
1390
|
+
flex-flow: row;
|
|
1391
|
+
justify-content: flex-start;
|
|
1392
|
+
align-items: center;
|
|
1393
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1394
|
+
`,Gt=a.div`
|
|
1395
|
+
display: flex;
|
|
1396
|
+
max-height: ${s.sp8};
|
|
1397
|
+
min-height: ${s.sp8};
|
|
1398
|
+
min-width: ${e=>e.width!=null?e.width:xi};
|
|
1399
|
+
justify-content: center;
|
|
1400
|
+
align-items: center;
|
|
1401
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1402
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1403
|
+
border-radius: ${s.sp2};
|
|
1404
|
+
margin-left: ${kt};
|
|
1405
|
+
color: ${e=>e.theme.colors.primary};
|
|
1406
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
1407
|
+
`,Xs=a(_)`
|
|
1408
|
+
display: flex;
|
|
1409
|
+
flex-direction: row;
|
|
1410
|
+
justify-content: center;
|
|
1411
|
+
align-items: center;
|
|
1412
|
+
height: ${is};
|
|
1413
|
+
max-width: ${xi};
|
|
1414
|
+
width: 138px;
|
|
1415
|
+
text-align: center;
|
|
1416
|
+
`,ed=a.div`
|
|
1417
|
+
display: flex;
|
|
1418
|
+
cursor: pointer;
|
|
1419
|
+
`,td=a.div`
|
|
1420
|
+
display: flex;
|
|
1421
|
+
cursor: pointer;
|
|
1422
|
+
justify-content: center;
|
|
1423
|
+
align-items: center;
|
|
1424
|
+
color: ${e=>e.theme.colors.primary};
|
|
1425
|
+
`,nd=a.div`
|
|
1426
|
+
display: flex;
|
|
1427
|
+
flex-direction: row;
|
|
1428
|
+
z-index: 1;
|
|
1429
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1430
|
+
padding-left: ${s.sp8};
|
|
1431
|
+
${({isSticky:e})=>e?F`
|
|
1432
|
+
top: ${s.sp0};
|
|
1433
|
+
left: ${s.sp0};
|
|
1434
|
+
display: flex;
|
|
1435
|
+
position: sticky;
|
|
1436
|
+
`:null};
|
|
1437
|
+
`,od=a.div`
|
|
1438
|
+
height: ${s.sp8};
|
|
1439
|
+
display: flex;
|
|
1440
|
+
flex-direction: row;
|
|
1441
|
+
align-items: center;
|
|
1442
|
+
min-width: ${jn};
|
|
1443
|
+
color: ${e=>e.theme.colors.primary};
|
|
1444
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1445
|
+
`,id=a(_)`
|
|
1446
|
+
display: flex;
|
|
1447
|
+
gap: 6px;
|
|
1448
|
+
align-items: baseline;
|
|
1449
|
+
color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
|
|
1450
|
+
`,Rt=a.div`
|
|
1451
|
+
display: flex;
|
|
1452
|
+
cursor: pointer;
|
|
1453
|
+
`,Ht=a.div`
|
|
1454
|
+
color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
|
|
1455
|
+
`,Kt=a(on)`
|
|
1456
|
+
width: ${xt};
|
|
1457
|
+
height: ${xt};
|
|
1458
|
+
margin-left: ${s.sp2};
|
|
1459
|
+
margin-top: ${s.sp1};
|
|
1460
|
+
`,Yt=a(rn)`
|
|
1461
|
+
width: ${xt};
|
|
1462
|
+
height: ${xt};
|
|
1463
|
+
margin-left: ${s.sp2};
|
|
1464
|
+
margin-top: ${s.sp1};
|
|
1465
|
+
`,rd=a.div`
|
|
1466
|
+
display: flex;
|
|
1467
|
+
margin-left: ${s.sp7};
|
|
1468
|
+
flex: 1 1 auto;
|
|
1469
|
+
justify-content: flex-end;
|
|
1470
|
+
`,ad=({firstMonthOfFY:e,timeframeTick:n,timeframe:o})=>t.jsx(Gt,{isClickable:!1,children:t.jsx(Xs,{children:Ye(e,n,o)})}),ld=({firstMonthOfFY:e,timeframeTick:n,timeframe:o})=>t.jsx(ad,{firstMonthOfFY:e,timeframeTick:n,timeframe:o}),cd=({sortKey:e="vendor",sortOrder:n="ascending",isBulkSelected:o,onSortOrderChanged:i})=>{const r=e==="vendor"?n:"ascending";return t.jsx(id,{isBulkSelected:o,isSortedByKey:e==="vendor",children:t.jsxs(Rt,{onClick:()=>{i(n==="ascending"?"descending":"ascending","vendor")},"data-testid":y("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Qs.vendor,t.jsx(Ht,{isBulkSelected:o,isSortedByKey:e==="vendor",children:r==="ascending"?t.jsx(Kt,{}):t.jsx(Yt,{})})]})})};function sd({backgroundColor:e,height:n,isBulkSelected:o,sortKey:i="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:c,timeframeTicks:d,onSortOrderChanged:p}){const u=W();return t.jsxs(Js,{heightValue:n,bgColor:e,children:[t.jsx(nd,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(od,{windowSize:u,children:t.jsx(cd,{sortKey:i,sortOrder:r,isBulkSelected:o,onSortOrderChanged:(g,h)=>{p?.(g,h)}})})}),t.jsxs(rd,{children:[d.map((g,h)=>t.jsx(ld,{firstMonthOfFY:l,timeframeTick:g,timeframe:c},h)),t.jsx(Gt,{isClickable:!1,width:rs,children:t.jsxs(Rt,{onClick:()=>p?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":y("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(ed,{children:qs.variance}),t.jsx(Ht,{isBulkSelected:o,isSortedByKey:i==="variance",children:(i==="variance"?r:"ascending")==="ascending"?t.jsx(Kt,{}):t.jsx(Yt,{})})]})}),t.jsx(Gt,{isClickable:!1,width:Se,children:t.jsxs(Rt,{onClick:()=>{p?.(r==="ascending"?"descending":"ascending","status")},"data-testid":y("flux-analysis-report-timeframe-row-status"),children:[t.jsx(td,{children:Zs.texts.reviewStatus}),t.jsx(Ht,{isBulkSelected:o,isSortedByKey:i==="status",children:(i==="status"?r:"ascending")==="ascending"?t.jsx(Kt,{}):t.jsx(Yt,{})})]})})]})]})}const dd=a.div`
|
|
1471
|
+
display: flex;
|
|
1472
|
+
flex: 1 1 auto;
|
|
1473
|
+
width: fit-content;
|
|
1474
|
+
min-width: 100%;
|
|
1475
|
+
|
|
1476
|
+
flex-direction: column;
|
|
1477
|
+
height: ${e=>`${e.heightValue}px`};
|
|
1478
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1479
|
+
`,hd=a.div`
|
|
1480
|
+
cursor: default;
|
|
1481
|
+
user-select: none;
|
|
1482
|
+
display: flex;
|
|
1483
|
+
flex: 1 1 auto;
|
|
1484
|
+
flex-flow: row;
|
|
1485
|
+
justify-content: flex-start;
|
|
1486
|
+
align-items: center;
|
|
1487
|
+
`,ud=a.div`
|
|
1488
|
+
display: flex;
|
|
1489
|
+
flex-direction: row;
|
|
1490
|
+
`,pd=a.div`
|
|
1491
|
+
display: flex;
|
|
1492
|
+
flex-direction: row;
|
|
1493
|
+
justify-content: flex-start;
|
|
1494
|
+
align-items: center;
|
|
1495
|
+
margin-left: ${kt};
|
|
1496
|
+
`,gd=a(ne)`
|
|
1497
|
+
user-select: none;
|
|
1498
|
+
min-width: ${me};
|
|
1499
|
+
max-width: ${me};
|
|
1500
|
+
text-align: right;
|
|
1501
|
+
color: ${e=>e.theme.colors.hero};
|
|
1502
|
+
border: 1px solid transparent;
|
|
1503
|
+
`,xd=a.div`
|
|
1504
|
+
display: flex;
|
|
1505
|
+
flex-direction: row;
|
|
1506
|
+
align-items: center;
|
|
1507
|
+
flex-shrink: 2;
|
|
1508
|
+
flex-grow: 1;
|
|
1509
|
+
width: ${pt};
|
|
1510
|
+
max-width: ${pt};
|
|
1511
|
+
height: 100%;
|
|
1512
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1513
|
+
position: sticky;
|
|
1514
|
+
left: ${s.sp8};
|
|
1515
|
+
top: 0;
|
|
1516
|
+
z-index: 10;
|
|
1517
|
+
`,fd=a(ne)`
|
|
1518
|
+
user-select: none;
|
|
1519
|
+
clear: both;
|
|
1520
|
+
display: inline-block;
|
|
1521
|
+
overflow: hidden;
|
|
1522
|
+
white-space: nowrap;
|
|
1523
|
+
text-overflow: ellipsis;
|
|
1524
|
+
text-align: left;
|
|
1525
|
+
color: ${e=>e.theme.colors.primary};
|
|
1526
|
+
`,md=a.div`
|
|
1527
|
+
display: flex;
|
|
1528
|
+
width: ${Se};
|
|
1529
|
+
min-width: ${Se};
|
|
1530
|
+
justify-content: center;
|
|
1531
|
+
flex-direction: row;
|
|
1532
|
+
margin-left: ${jt};
|
|
1533
|
+
`,wd=a.div`
|
|
1534
|
+
display: flex;
|
|
1535
|
+
margin-left: ${s.sp7};
|
|
1536
|
+
flex: 1 1 auto;
|
|
1537
|
+
justify-content: flex-end;
|
|
1538
|
+
`,yd=({balance:e})=>t.jsx(pd,{children:t.jsx(gd,{children:Z("0,0",e?.balance)})});function bd({type:e,height:n,title:o,totalBalances:i,varianceAmount:r,variancePercentage:l,currency:c,backgroundColor:d}){return t.jsx(dd,{"data-testid":y("total-row-root-container"),heightValue:n,bgColor:d,children:t.jsxs(hd,{"data-testid":y("total-row-container"),children:[t.jsx(xd,{className:"flux-total-row",children:t.jsx(fd,{children:o})}),t.jsxs(wd,{children:[t.jsx(ud,{children:ae(e)&&i.map((p,u)=>t.jsx(yd,{balance:p},u))}),t.jsx(St,{amount:r,percentage:l,currency:c}),t.jsx(md,{})]})]})})}const kd=a.div`
|
|
1539
|
+
display: flex;
|
|
1540
|
+
flex: 1 1 auto;
|
|
1541
|
+
width: fit-content;
|
|
1542
|
+
min-width: 100%;
|
|
1543
|
+
flex-direction: column;
|
|
1544
|
+
height: ${e=>`${e.heightValue}px`};
|
|
1545
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1546
|
+
`,jd=a.div`
|
|
1547
|
+
user-select: none;
|
|
1548
|
+
display: flex;
|
|
1549
|
+
flex: 1 1 auto;
|
|
1550
|
+
flex-flow: row;
|
|
1551
|
+
justify-content: flex-start;
|
|
1552
|
+
align-items: center;
|
|
1553
|
+
cursor: pointer;
|
|
1554
|
+
color: ${e=>e.isRowExpanded?e.theme.colors.primary:e.theme.colors.hero};
|
|
1555
|
+
&:hover {
|
|
1556
|
+
color: ${e=>e.theme.colors.primary};
|
|
1557
|
+
.flux-vendor-chevron-icon,
|
|
1558
|
+
.flux-vendor-collapsable-chevron-icon,
|
|
1559
|
+
.flux-vendor-children-count {
|
|
1560
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
.flux-vendor-chevron-icon,
|
|
1564
|
+
.flux-vendor-collapsable-chevron-icon,
|
|
1565
|
+
.flux-vendor-children-count {
|
|
1566
|
+
border: 1px solid
|
|
1567
|
+
${e=>e.shouldHighlight?e.theme.colors.primary:e.theme.colors.hero};
|
|
1568
|
+
}
|
|
1569
|
+
`,Sd=a.div`
|
|
1570
|
+
display: flex;
|
|
1571
|
+
flex-direction: row;
|
|
1572
|
+
justify-content: flex-start;
|
|
1573
|
+
align-items: center;
|
|
1574
|
+
margin-left: ${kt};
|
|
1575
|
+
`,Cd=a(_)`
|
|
1576
|
+
user-select: none;
|
|
1577
|
+
min-width: ${me};
|
|
1578
|
+
max-width: ${me};
|
|
1579
|
+
text-align: right;
|
|
1580
|
+
`,vd=a.div`
|
|
1581
|
+
display: flex;
|
|
1582
|
+
flex-direction: row;
|
|
1583
|
+
align-items: center;
|
|
1584
|
+
flex-shrink: 2;
|
|
1585
|
+
flex-grow: 1;
|
|
1586
|
+
width: ${pt};
|
|
1587
|
+
max-width: ${pt};
|
|
1588
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1589
|
+
${({isSticky:e})=>e?F`
|
|
1590
|
+
position: -webkit-sticky;
|
|
1591
|
+
position: sticky;
|
|
1592
|
+
top: ${s.sp0};
|
|
1593
|
+
left: ${s.sp0};
|
|
1594
|
+
`:null}
|
|
1595
|
+
`,$d=a(_)`
|
|
1596
|
+
user-select: none;
|
|
1597
|
+
clear: both;
|
|
1598
|
+
display: inline-block;
|
|
1599
|
+
overflow: hidden;
|
|
1600
|
+
white-space: nowrap;
|
|
1601
|
+
text-overflow: ellipsis;
|
|
1602
|
+
text-align: left;
|
|
1603
|
+
`,_d=a.div`
|
|
1604
|
+
display: flex;
|
|
1605
|
+
justify-content: space-between;
|
|
1606
|
+
flex-grow: 1;
|
|
1607
|
+
`,Ld=a.div`
|
|
1608
|
+
display: flex;
|
|
1609
|
+
align-items: center;
|
|
1610
|
+
margin-left: 10px;
|
|
1611
|
+
`;a.div`
|
|
1612
|
+
display: flex;
|
|
1613
|
+
flex-shrink: 0;
|
|
1614
|
+
width: ${gt};
|
|
1615
|
+
min-width: ${gt};
|
|
1616
|
+
margin-left: 12px;
|
|
1617
|
+
gap: ${s.sp1};
|
|
1618
|
+
flex-direction: row;
|
|
1619
|
+
justify-content: flex-end;
|
|
1620
|
+
text-align: center;
|
|
1621
|
+
align-items: center;
|
|
1622
|
+
`;const Ad=a(cr)`
|
|
1623
|
+
width: 12px;
|
|
1624
|
+
height: 12px;
|
|
1625
|
+
`;a.div`
|
|
1626
|
+
height: ${s.sp4};
|
|
1627
|
+
border-radius: ${s.sp1};
|
|
1628
|
+
padding: 2px ${s.sp1};
|
|
1629
|
+
`,a.div`
|
|
1630
|
+
border-radius: ${s.sp1};
|
|
1631
|
+
padding: 2px ${s.sp1};
|
|
1632
|
+
height: ${s.sp4};
|
|
1633
|
+
justify-content: center;
|
|
1634
|
+
text-align: center;
|
|
1635
|
+
background-color: ${e=>e.bgColor.hex()};
|
|
1636
|
+
`;const Bd=a.div`
|
|
1637
|
+
display: flex;
|
|
1638
|
+
margin-left: ${s.sp7};
|
|
1639
|
+
flex: 1 1 auto;
|
|
1640
|
+
justify-content: flex-end;
|
|
1641
|
+
`,Id=a.div`
|
|
1642
|
+
display: flex;
|
|
1643
|
+
flex-direction: column;
|
|
1644
|
+
align-items: center;
|
|
1645
|
+
padding-top: ${e=>e.isNodeOpen?s.sp3:s.sp0};
|
|
1646
|
+
`,Od=a.div`
|
|
1647
|
+
display: flex;
|
|
1648
|
+
width: ${Se};
|
|
1649
|
+
min-width: ${Se};
|
|
1650
|
+
justify-content: center;
|
|
1651
|
+
flex-direction: row;
|
|
1652
|
+
margin-left: ${jt};
|
|
1653
|
+
`,Nd=a(Ce)`
|
|
1654
|
+
width: ${me};
|
|
1655
|
+
max-width: ${me};
|
|
1656
|
+
color: ${e=>e.theme.colors.primary};
|
|
1657
|
+
display: flex;
|
|
1658
|
+
flex: 1 0 auto;
|
|
1659
|
+
flex-direction: column;
|
|
1660
|
+
cursor: pointer;
|
|
1661
|
+
align-items: center;
|
|
1662
|
+
`,Md=a.div`
|
|
1663
|
+
color: ${e=>e.theme.colors.grey1};
|
|
1664
|
+
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
1665
|
+
padding: ${s.sp0} 6px;
|
|
1666
|
+
border-radius: ${s.sp1};
|
|
1667
|
+
width: fit-content;
|
|
1668
|
+
display: flex;
|
|
1669
|
+
align-items: center;
|
|
1670
|
+
margin-right: ${s.sp2};
|
|
1671
|
+
`,Wd=a(Ce)`
|
|
1672
|
+
overflow: hidden;
|
|
1673
|
+
text-overflow: ellipsis;
|
|
1674
|
+
`,Pd=a.div`
|
|
1675
|
+
display: flex;
|
|
1676
|
+
width: ${s.sp8};
|
|
1677
|
+
height: ${s.sp8};
|
|
1678
|
+
&:hover {
|
|
1679
|
+
.flux-vendor-checkbox {
|
|
1680
|
+
background-color: transparent;
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
`,zd=a(tn)`
|
|
1684
|
+
color: ${e=>e.theme.colors.primary};
|
|
1685
|
+
width: ${s.sp3};
|
|
1686
|
+
height: ${s.sp3};
|
|
1687
|
+
`,Fd=a(Ce)`
|
|
1688
|
+
display: flex;
|
|
1689
|
+
flex-direction: row;
|
|
1690
|
+
align-items: center;
|
|
1691
|
+
gap: 2px;
|
|
1692
|
+
color: ${e=>e.theme.colors.success};
|
|
1693
|
+
`,Td=a(yo)`
|
|
1694
|
+
width: 12px;
|
|
1695
|
+
height: 12px;
|
|
1696
|
+
`,ro=a(wo)`
|
|
1697
|
+
margin-left: 2px;
|
|
1698
|
+
width: 12px;
|
|
1699
|
+
height: 12px;
|
|
1700
|
+
`,Vd=a(Te)`
|
|
1701
|
+
display: flex;
|
|
1702
|
+
border-radius: 50%;
|
|
1703
|
+
width: ${s.sp4};
|
|
1704
|
+
height: ${s.sp4};
|
|
1705
|
+
text-align: center;
|
|
1706
|
+
align-items: center;
|
|
1707
|
+
justify-content: center;
|
|
1708
|
+
`,Dd=a(Te)`
|
|
1709
|
+
display: flex;
|
|
1710
|
+
border-radius: ${s.sp1};
|
|
1711
|
+
width: ${s.sp4};
|
|
1712
|
+
height: ${s.sp4};
|
|
1713
|
+
text-align: center;
|
|
1714
|
+
align-items: center;
|
|
1715
|
+
justify-content: center;
|
|
1716
|
+
margin-right: ${s.sp4};
|
|
1717
|
+
`,Ed=a(Te)`
|
|
1718
|
+
display: flex;
|
|
1719
|
+
border-radius: 100px;
|
|
1720
|
+
width: 18px;
|
|
1721
|
+
height: 18px;
|
|
1722
|
+
justify-content: center;
|
|
1723
|
+
align-items: center;
|
|
1724
|
+
margin-left: ${s.sp1};
|
|
1725
|
+
`,{common:ao,expenseAutomation:Gd}=N.getLocalizedStrings(),Rd=({balance:e})=>{const n=Cd;return t.jsx(Sd,{children:t.jsx(n,{children:q(e)})})};function Hd({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:o,isSticky:i,treeNodeId:r,height:l,leftChevron:c,varianceAmount:d,variancePercentage:p,currency:u,vendorBalances:g,reviewedByUser:h,status:x,vendor:f,isOpen:m,childrenCount:w,vendorRowIndex:b,setHoveredParentId:k,onClick:v,handleRedirectToVendorDetailPage:S,updateOperatingExpensesIdsForReview:$}){const[B,L]=V.useState(!1),[M,T]=V.useState(n.length>0),D=n.includes(e),K=n.includes(e),X=c==="collapsed",Q=n.length===20&&D===!1,ie=$d,he=b!=null?String(b):e,le=y("flux-analysis-vendor-checkbox",he),re=y("flux-analysis-vendor-detail-navigation",he),be=y("flux-analysis-vendor-expand-collapse",he),$e=y("flux-analysis-vendor-row",he);return t.jsx(kd,{heightValue:l,bgColor:o,"data-testid":$e,children:t.jsxs(jd,{shouldHighlight:K,isRowExpanded:m,onClick:()=>v?.(r),onMouseOver:()=>{L(!0),T(!0),k?.(f.id)},onMouseLeave:()=>{L(!1),n.length===0&&T(!1),k?.(null)},children:[t.jsxs(vd,{className:"flux-vendor-name-container",bgColor:o,isSticky:i,children:[t.jsx(Pd,{className:"flux-vendor-checkbox-container",children:M?t.jsx(qt,{className:"flux-vendor-checkbox","data-testid":le,icon:t.jsx(Qt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(zd,{}),checked:D,name:f.name,id:e,disabled:Q,onChange:ce=>{let ue=n;ue=ce.target.checked===!0?[...ue,e]:ue.filter(_e=>_e!==e),$?.(ue)},onClick:ce=>ce.stopPropagation(),style:{padding:"20px",pointerEvents:Q?"none":"auto"}}):null}),t.jsxs(Id,{isNodeOpen:m,children:[B?t.jsx(Vd,{className:"flux-vendor-collapsable-chevron-icon","data-testid":be,children:m===!1?t.jsx(ro,{}):t.jsx(Td,{})}):f.logo!=null?t.jsx(Jt,{photoUrl:f.logo.toString(),styles:{width:C[4],height:C[4]}}):t.jsx(Xt,{name:f.name,size:s.sp4}),m?t.jsx(gi,{height:cs}):null]}),t.jsxs(_d,{children:[t.jsxs(Ld,{children:[t.jsx(ie,{children:f.name}),m?null:t.jsx(Ed,{className:"flux-vendor-children-count",children:t.jsx(Te,{children:w})})]}),B?t.jsx(V.Fragment,{children:t.jsx(Dd,{className:"flux-vendor-chevron-icon",onClick:()=>{S?.(f)},"data-testid":re,children:t.jsx(ro,{})})}):null]})]}),t.jsxs(Bd,{children:[g.map((ce,ue)=>t.jsx(Rd,{balance:ce,collapsed:X},ue)),t.jsx(St,{amount:d,percentage:p,currency:u}),t.jsx(Od,{children:x==="Pending Review"?t.jsx(Md,{children:t.jsx(Wd,{children:ao.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(Nd,{className:"vendor-flux-analysis-review-info",children:h!=null?t.jsxs(V.Fragment,{children:[t.jsxs(Fd,{children:[t.jsx(Ad,{}),Gd.fluxAnalysis.reviewedBy]}),t.jsx(Te,{children:Xi(h)})]}):ao.strings.hyphen})})})]})]})})}const lo={generalExpense:{color:new I(O.graphColor04),hoverColor:new I(O.graphColor04Dark)},reimbursement:{color:new I(O.graphColor10),hoverColor:new I(O.graphColor10Dark)},default:{color:new I(ee.neutralGrey2Dark),hoverColor:new I(ee.neutralGrey2Dark)}},Sn=(e,n)=>{const{element:o}=e;return o.kind===n&&o.data!=null},ki=e=>Yc(e.balancesByMonth),Kd=(e,n,o,i,r,l,c,d,p,u,g)=>{if(!Sn(n,"flux_vendor_row"))return null;const h=n.element.data,x=ki(h),f=wi("flux_vendor_row",p);return t.jsx(Hd,{backgroundColor:o,isSticky:i,treeNodeId:e,vendorRowIndex:n.element.index,fluxAnalysisEntityId:h.fluxAnalysisEntityId,height:f,leftChevron:"collapsed",idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:h.vendor,vendorBalances:x,varianceAmount:h.varianceAmount,variancePercentage:h.variancePercentage,status:h.status,currency:h.currency,isScrolling:r,isOpen:l,isLeaf:c,isLastNode:d,childrenCount:h.vendorAccountsAndClasses.length,onClick:m=>{(w=>{g?.(w),n.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(w)})(m)},reviewedByUser:h.reviewedByUser,updateOperatingExpensesIdsForReview:n.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:n.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},Yd=(e,n,o,i,r,l,c,d,p,u)=>{if(!Sn(n,"section"))return null;const g=((x,f)=>x.startsWith("flux_analysis_operating_expense")===!0&&f!=null?lo[f]:lo.default)(n.config.reportId,n.element.sectionType),h=n.element.data;return t.jsx(Hs,{backgroundColor:i,isSticky:r,treeNodeId:e,height:o,selectedSectionsIds:n.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:g.color,sectionName:n.element.title,sectionBalances:h.balances,varianceAmount:h.varianceAmount,variancePercentage:h.variancePercentage,currency:h.currency,isScrolling:l,isOpen:c,hasVendors:h.vendors.length>0,isLeaf:d,isLastNode:p,sectionToggled:x=>{(f=>{n.config.fluxAnalysisConfig?.onSectionRowClick(f),u?.(f)})(x)},onSectionCheckboxClick:n.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:h.sectionId})},Ud=a.div`
|
|
1726
|
+
display: flex;
|
|
1727
|
+
flex: 1 1 auto;
|
|
1728
|
+
width: fit-content;
|
|
1729
|
+
min-width: 100%;
|
|
1730
|
+
flex-direction: column;
|
|
1731
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1732
|
+
`,Zd=a.div`
|
|
1733
|
+
user-select: none;
|
|
1734
|
+
display: flex;
|
|
1735
|
+
flex: 1 1 auto;
|
|
1736
|
+
flex-flow: row;
|
|
1737
|
+
justify-content: flex-start;
|
|
1738
|
+
align-items: center;
|
|
1739
|
+
height: ${e=>e.height}px;
|
|
1740
|
+
margin-left: ${e=>20*e.level}px;
|
|
1741
|
+
`,qd=a.div`
|
|
1742
|
+
display: flex;
|
|
1743
|
+
flex-direction: row;
|
|
1744
|
+
align-items: center;
|
|
1745
|
+
justify-content: space-between;
|
|
1746
|
+
&:hover {
|
|
1747
|
+
background-color: null;
|
|
1748
|
+
}
|
|
1749
|
+
width: 100%;
|
|
1750
|
+
`,Qd=a(er)`
|
|
1751
|
+
width: 100%;
|
|
1752
|
+
display: flex;
|
|
1753
|
+
align-items: center;
|
|
1754
|
+
font-weight: ${e=>e.isSubclass?Fn.regular:Fn.medium};
|
|
1755
|
+
color: ${e=>e.checked?e.theme.colors.primary:e.theme.colors.hero};
|
|
1756
|
+
`,Jd=a(Ce)`
|
|
1757
|
+
display: flex;
|
|
1758
|
+
color: ${e=>e.theme.colors.primary};
|
|
1759
|
+
align-items: center;
|
|
1760
|
+
flex-direction: row;
|
|
1761
|
+
justify-content: center;
|
|
1762
|
+
height: 18px;
|
|
1763
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
1764
|
+
border-radius: ${s.sp1};
|
|
1765
|
+
margin: 0 ${s.sp5} 0 ${s.sp3};
|
|
1766
|
+
min-width: ${s.sp6};
|
|
1767
|
+
`,Xd=a(tn)`
|
|
1768
|
+
color: ${e=>e.theme.colors.primary};
|
|
1769
|
+
width: ${s.sp3};
|
|
1770
|
+
height: ${s.sp3};
|
|
1771
|
+
`;function eh({backgroundColor:e,treeNodeId:n,classId:o,isChecked:i,isDisabled:r,height:l,nestedClass:c,isLeaf:d,showClassAccountNumber:p,onClick:u,onToggleCheck:g}){const[h,x]=V.useState(!1);return t.jsx(Ud,{"data-testid":y("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(Zd,{"data-testid":y("name-with-checkbox-row-container",n),height:l,isClickable:!d,onClick:()=>u?.(n),onMouseOver:()=>x(!0),onMouseLeave:()=>x(!1),level:c.classId.length,children:[t.jsx(qt,{"data-testid":y("name-with-checkbox-row-checkbox",c.classId.toString()),icon:t.jsx(Qt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Xd,{}),checked:i,name:c.className,id:n,disabled:r,onChange:f=>{g?.(o,f.target.checked)},style:{height:s.sp6}})," ",t.jsx(qd,{children:t.jsxs(Qd,{"data-testid":y("name-with-checkbox-row-label-container",n),checked:i,isSubclass:c.classId.length>1,children:[t.jsx("label",{"data-testid":y("name-with-checkbox-row-label",c.classId.toString()),style:{flexGrow:2,cursor:"pointer"},onClick:()=>{g?.(o,!i)},children:c.className}),h===!0&&p===!0&&c.accountingClassNumber!=null&&t.jsx(Jd,{children:c.accountingClassNumber})]})})]})})}const P={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new E(200,270,270),categoryClassWidth:new E(230,230,240),nameLogoWidth:new E(C[4],C[4]),nameLogoHeight:new E(C[4],C[4])},th=a.div`
|
|
1772
|
+
user-select: none;
|
|
1773
|
+
display: flex;
|
|
1774
|
+
flex: 1 1 auto;
|
|
1775
|
+
width: fit-content;
|
|
1776
|
+
min-width: 100%;
|
|
1777
|
+
height: ${e=>e.height}px;
|
|
1778
|
+
flex-flow: row;
|
|
1779
|
+
justify-content: flex-start;
|
|
1780
|
+
align-items: center;
|
|
1781
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1782
|
+
`,nh=a.div`
|
|
1783
|
+
user-select: none;
|
|
1784
|
+
display: flex;
|
|
1785
|
+
flex: 1 1 auto;
|
|
1786
|
+
width: 100vw;
|
|
1787
|
+
min-width: 100%;
|
|
1788
|
+
height: ${e=>e.height}px;
|
|
1789
|
+
flex-flow: row;
|
|
1790
|
+
align-items: center;
|
|
1791
|
+
justify-content: center;
|
|
1792
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1793
|
+
`,oh=a.div`
|
|
1794
|
+
display: flex;
|
|
1795
|
+
flex: 1 0 auto;
|
|
1796
|
+
flex-direction: row;
|
|
1797
|
+
justify-content: flex-end;
|
|
1798
|
+
`,co=a(_)`
|
|
1799
|
+
color: ${e=>e.theme.colors.hero};
|
|
1800
|
+
flex-grow: 1;
|
|
1801
|
+
-webkit-box-orient: vertical;
|
|
1802
|
+
justify-content: ${e=>e.isClubbed===!0?"unset":"flex-end"};
|
|
1803
|
+
display: flex;
|
|
1804
|
+
min-width: ${P.balanceWidth};
|
|
1805
|
+
max-width: ${P.balanceWidth};
|
|
1806
|
+
margin-left: ${e=>e.isClubbed===!0?s.sp2:P.balanceLeftMargin};
|
|
1807
|
+
border: 1px solid transparent;
|
|
1808
|
+
`,so=a(_)`
|
|
1809
|
+
color: ${e=>e.theme.colors.hero};
|
|
1810
|
+
flex-grow: 1;
|
|
1811
|
+
-webkit-box-orient: vertical;
|
|
1812
|
+
justify-content: "unset";
|
|
1813
|
+
display: flex;
|
|
1814
|
+
min-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
1815
|
+
`,ih=a.div`
|
|
1816
|
+
height: 100%;
|
|
1817
|
+
display: flex;
|
|
1818
|
+
flex-direction: row;
|
|
1819
|
+
align-items: center;
|
|
1820
|
+
min-width: ${e=>P.titleWidth.valuePx(e.windowSize)};
|
|
1821
|
+
color: ${e=>e.theme.colors.primary};
|
|
1822
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1823
|
+
${({isSticky:e})=>e?F`
|
|
1824
|
+
position: -webkit-sticky;
|
|
1825
|
+
position: sticky;
|
|
1826
|
+
top: ${s.sp0};
|
|
1827
|
+
left: ${s.sp0};
|
|
1828
|
+
z-index: 20;
|
|
1829
|
+
`:null}
|
|
1830
|
+
`;function rh({backgroundColor:e,isSticky:n,height:o,isAccountColumnShown:i,isClassColumnShown:r,timeframeTicks:l}){const c=W();return l.length>0?t.jsxs(th,{height:o,bgColor:e,"data-testid":y("opex-vendor-loading-in-progress-row"),children:[t.jsxs(ih,{"data-testid":y("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:c,bgColor:e,children:[t.jsx(He,{width:C[4],height:C[4]}),t.jsx(co,{windowSize:c,isClubbed:!0,children:t.jsx(Y,{width:120,height:C[4]})})]}),t.jsxs(oh,{children:[i?t.jsx(so,{windowSize:c,children:t.jsx(Y,{width:120,height:C[4]})}):null,r?t.jsx(so,{windowSize:c,children:t.jsx(Y,{width:120,height:C[4]})}):null,l.map((d,p)=>t.jsx(co,{windowSize:c,children:t.jsx(Y,{width:120,height:C[4]})},`${p}RowItem`))]})]}):t.jsx(nh,{height:o,bgColor:e,children:t.jsx(qi,{size:"Small",start:!0})})}const ah=a.div`
|
|
1831
|
+
user-select: none;
|
|
1832
|
+
display: flex;
|
|
1833
|
+
flex: 1 1 auto;
|
|
1834
|
+
width: fit-content;
|
|
1835
|
+
min-width: 100%;
|
|
1836
|
+
height: ${e=>e.height}px;
|
|
1837
|
+
flex-flow: row;
|
|
1838
|
+
justify-content: flex-start;
|
|
1839
|
+
align-items: center;
|
|
1840
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1841
|
+
`,zt=a.div``,lh=a.div`
|
|
1842
|
+
display: flex;
|
|
1843
|
+
flex: 1 0 auto;
|
|
1844
|
+
flex-direction: row;
|
|
1845
|
+
justify-content: flex-end;
|
|
1846
|
+
`,ch=a(_)`
|
|
1847
|
+
user-select: none;
|
|
1848
|
+
clear: both;
|
|
1849
|
+
display: inline-block;
|
|
1850
|
+
overflow: hidden;
|
|
1851
|
+
white-space: nowrap;
|
|
1852
|
+
text-overflow: ellipsis;
|
|
1853
|
+
text-align: left;
|
|
1854
|
+
margin-left: ${s.sp2};
|
|
1855
|
+
color: ${e=>e.theme.colors.hero};
|
|
1856
|
+
`,sh=a(_)`
|
|
1857
|
+
color: ${e=>e.theme.colors.hero};
|
|
1858
|
+
flex-grow: 1;
|
|
1859
|
+
-webkit-box-orient: vertical;
|
|
1860
|
+
display: flex;
|
|
1861
|
+
min-width: ${P.balanceWidth};
|
|
1862
|
+
max-width: ${P.balanceWidth};
|
|
1863
|
+
border: 1px solid transparent;
|
|
1864
|
+
`,ho=a(_)`
|
|
1865
|
+
color: ${e=>e.theme.colors.hero};
|
|
1866
|
+
flex-grow: 1;
|
|
1867
|
+
-webkit-box-orient: vertical;
|
|
1868
|
+
justify-content: "unset";
|
|
1869
|
+
display: flex;
|
|
1870
|
+
min-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
1871
|
+
`,dh=a.div`
|
|
1872
|
+
height: 100%;
|
|
1873
|
+
display: flex;
|
|
1874
|
+
flex-direction: row;
|
|
1875
|
+
align-items: center;
|
|
1876
|
+
min-width: ${e=>P.titleWidth.valuePx(e.windowSize)};
|
|
1877
|
+
color: ${e=>e.theme.colors.primary};
|
|
1878
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1879
|
+
${({isSticky:e})=>e?F`
|
|
1880
|
+
position: -webkit-sticky;
|
|
1881
|
+
position: sticky;
|
|
1882
|
+
top: ${s.sp0};
|
|
1883
|
+
left: ${s.sp0};
|
|
1884
|
+
z-index: 20;
|
|
1885
|
+
`:null}
|
|
1886
|
+
`;function hh({backgroundColor:e,isSticky:n,height:o,isAccountColumnShown:i,isClassColumnShown:r,timeframeTicks:l}){const c=W();return t.jsxs(ah,{height:o,bgColor:e,"data-testid":y("no-results-found-title-row"),children:[t.jsx(dh,{isSticky:n,windowSize:c,bgColor:e,children:t.jsx(ch,{children:N.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(lh,{children:[i?t.jsx(ho,{windowSize:c,children:t.jsx(zt,{})}):null,r?t.jsx(ho,{windowSize:c,children:t.jsx(zt,{})}):null,l.map((d,p)=>t.jsx(sh,{windowSize:c,children:t.jsx(zt,{children:" "})},`${p}RowItem`))]})]})}function Cn({title:e,selectedMode:n,onCompareModeChanged:o,backgroundColor:i,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:c,titleTextStyle:d,titleTextAlignment:p,titleColor:u,menuPosition:g}){return t.jsx(sr,{title:e,pickerValues:["compare_mode_percent","compare_mode_amount"],valueToLabel:h=>N.getLocalizedStrings().compareMode[h],selectedValue:n,onPickerSelectionChanged:h=>o(h),optionTextStyle:c,titleTextStyle:d,titleTextAlignment:p,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:i??"inherit",menuPosition:g})}const uh=s.sp4,uo=170,ph=(s.sp4,a.div`
|
|
1887
|
+
margin-left: ${s.sp4};
|
|
1888
|
+
`),gh=a.div`
|
|
1889
|
+
display: flex;
|
|
1890
|
+
max-height: 54px;
|
|
1891
|
+
min-height: 54px;
|
|
1892
|
+
align-items: center;
|
|
1893
|
+
justify-content: center;
|
|
1894
|
+
max-width: ${uo-2}px;
|
|
1895
|
+
min-width: ${uo-2}px;
|
|
1896
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1897
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1898
|
+
border-radius: ${s.sp2};
|
|
1899
|
+
color: ${e=>e.theme.colors.primary};
|
|
1900
|
+
`,xh=a(_)`
|
|
1901
|
+
display: flex;
|
|
1902
|
+
user-select: none;
|
|
1903
|
+
flex-direction: row;
|
|
1904
|
+
justify-content: center;
|
|
1905
|
+
align-items: center;
|
|
1906
|
+
height: ${uh};
|
|
1907
|
+
`,fh=a.div`
|
|
1908
|
+
display: flex;
|
|
1909
|
+
flex-direction: row;
|
|
1910
|
+
justify-content: center;
|
|
1911
|
+
align-items: center;
|
|
1912
|
+
padding: 3px 6px;
|
|
1913
|
+
margin-right: ${s.sp2};
|
|
1914
|
+
position: relative;
|
|
1915
|
+
top: -12px;
|
|
1916
|
+
`,mh=a(fr)`
|
|
1917
|
+
color: ${e=>e.tagType==="under_review"?ee.neutralGrey5Light:e.theme.mode==="light"?ee.primaryDark:ee.primaryLight};
|
|
1918
|
+
border-radius: ${s.sp2};
|
|
1919
|
+
padding: 3px 6px;
|
|
1920
|
+
margin-left: 12px;
|
|
1921
|
+
background: ${e=>e.tagType==="under_review"?ee.alertDark:e.theme.mode==="light"?ee.championLight:ee.championDark};
|
|
1922
|
+
`,wh=a(xr)`
|
|
1923
|
+
color: ${e=>e.theme.colors.hero};
|
|
1924
|
+
margin-left: 5px;
|
|
1925
|
+
height: ${s.sp3};
|
|
1926
|
+
width: ${s.sp3};
|
|
1927
|
+
margin-top: ${s.sp1};
|
|
1928
|
+
`;function yh(e){return e==="under_review"?y("report-tree-timeframe-tag","under-review"):e==="incomplete"?y("report-tree-timeframe-tag","in-progress"):void 0}function ji({firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:i,infoContent:r,tagType:l}){return t.jsxs(ph,{children:[t.jsxs(gh,{children:[t.jsx(xh,{children:Ye(e,n,o)}),t.jsx(gr,{style:{padding:s.sp3},title:r,placement:"top",children:t.jsx(wh,{})})]}),t.jsx(fh,{"data-testid":yh(l),children:t.jsx(mh,{tagType:l,children:i})})]})}const Si=(e,n)=>{const o=N.getLocalizedStrings().reports;switch(n){case"month":return e!=null?e==="under_review"?o.bookCloseUnderReviewInfoMonth:o.bookCloseIncompleteInfoMonth:void 0;case"quarter":return e!=null?e==="under_review"?o.bookCloseUnderReviewInfoQuarter:o.bookCloseIncompleteInfoQuarter:void 0;case"year":return e!=null?e==="under_review"?o.bookCloseUnderReviewInfoYear:o.bookCloseIncompleteInfoYear:void 0;default:return}},bh=a.div`
|
|
1929
|
+
user-select: none;
|
|
1930
|
+
display: flex;
|
|
1931
|
+
flex: 1 1 auto;
|
|
1932
|
+
width: fit-content;
|
|
1933
|
+
min-width: 100%;
|
|
1934
|
+
height: ${e=>e.height}px;
|
|
1935
|
+
flex-flow: row;
|
|
1936
|
+
justify-content: flex-start;
|
|
1937
|
+
align-items: center;
|
|
1938
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1939
|
+
`,kh=a.div`
|
|
1940
|
+
display: flex;
|
|
1941
|
+
flex: 1 0 auto;
|
|
1942
|
+
flex-direction: row;
|
|
1943
|
+
justify-content: flex-end;
|
|
1944
|
+
`,Ci=a.div`
|
|
1945
|
+
display: flex;
|
|
1946
|
+
max-height: ${s.sp8};
|
|
1947
|
+
min-height: ${s.sp8};
|
|
1948
|
+
min-width: ${P.balanceWidth};
|
|
1949
|
+
justify-content: center;
|
|
1950
|
+
align-items: center;
|
|
1951
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1952
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1953
|
+
border-radius: ${s.sp2};
|
|
1954
|
+
margin-left: ${P.balanceLeftMargin};
|
|
1955
|
+
color: ${e=>e.theme.colors.primary};
|
|
1956
|
+
cursor: ${e=>e.isClickable===!0?"pointer":"default"};
|
|
1957
|
+
`,vi=a(_)`
|
|
1958
|
+
display: flex;
|
|
1959
|
+
user-select: none;
|
|
1960
|
+
flex-direction: row;
|
|
1961
|
+
justify-content: center;
|
|
1962
|
+
align-items: center;
|
|
1963
|
+
height: ${P.balanceHeight};
|
|
1964
|
+
max-width: ${P.balanceWidth};
|
|
1965
|
+
width: 138px;
|
|
1966
|
+
text-align: center;
|
|
1967
|
+
`,jh=a.div`
|
|
1968
|
+
display: flex;
|
|
1969
|
+
flex-direction: row;
|
|
1970
|
+
z-index: 1;
|
|
1971
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1972
|
+
${({isSticky:e})=>e?F`
|
|
1973
|
+
position: -webkit-sticky;
|
|
1974
|
+
position: sticky;
|
|
1975
|
+
top: ${s.sp0};
|
|
1976
|
+
left: ${s.sp0};
|
|
1977
|
+
z-index: 1;
|
|
1978
|
+
`:null}
|
|
1979
|
+
`,Sh=a.div`
|
|
1980
|
+
max-height: ${e=>e.plHeight}px;
|
|
1981
|
+
min-height: ${e=>e.plHeight}px;
|
|
1982
|
+
display: flex;
|
|
1983
|
+
flex-direction: row;
|
|
1984
|
+
align-items: center;
|
|
1985
|
+
min-width: ${e=>P.titleWidth.valuePx(e.windowSize)};
|
|
1986
|
+
color: ${e=>e.theme.colors.primary};
|
|
1987
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1988
|
+
`,Ch=a(_)`
|
|
1989
|
+
display: flex;
|
|
1990
|
+
gap: 6px;
|
|
1991
|
+
align-items: baseline;
|
|
1992
|
+
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
|
|
1993
|
+
`,$i=a(_)`
|
|
1994
|
+
height: 100%;
|
|
1995
|
+
align-self: center;
|
|
1996
|
+
align-items: baseline;
|
|
1997
|
+
min-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
1998
|
+
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
|
|
1999
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2000
|
+
display: flex;
|
|
2001
|
+
gap: 6px;
|
|
2002
|
+
align-items: center;
|
|
2003
|
+
`,vn=a.div`
|
|
2004
|
+
display: flex;
|
|
2005
|
+
cursor: pointer;
|
|
2006
|
+
`,vh=a.div`
|
|
2007
|
+
display: flex;
|
|
2008
|
+
justify-content: center;
|
|
2009
|
+
align-items: center;
|
|
2010
|
+
color: ${e=>e.theme.colors.champion};
|
|
2011
|
+
`,$h=a.div``,_h=a(_)`
|
|
2012
|
+
display: flex;
|
|
2013
|
+
justify-content: center;
|
|
2014
|
+
align-items: center;
|
|
2015
|
+
max-height: ${s.sp8};
|
|
2016
|
+
min-height: ${s.sp8};
|
|
2017
|
+
background-color: ${e=>e.theme.colors.background};
|
|
2018
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2019
|
+
border-radius: ${s.sp2};
|
|
2020
|
+
margin-left: ${P.balanceLeftMargin};
|
|
2021
|
+
color: ${e=>e.theme.colors.primary};
|
|
2022
|
+
width: ${P.balanceWidth};
|
|
2023
|
+
min-width: ${P.balanceWidth};
|
|
2024
|
+
`,_i=a.div`
|
|
2025
|
+
max-height: ${s.sp8};
|
|
2026
|
+
min-height: ${s.sp8};
|
|
2027
|
+
`,Ct=a.div`
|
|
2028
|
+
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
|
|
2029
|
+
`,vt=a(rn)`
|
|
2030
|
+
width: 12px;
|
|
2031
|
+
height: 12px;
|
|
2032
|
+
margin-left: ${s.sp2};
|
|
2033
|
+
margin-top: ${s.sp1};
|
|
2034
|
+
`,$t=a(on)`
|
|
2035
|
+
width: 12px;
|
|
2036
|
+
height: 12px;
|
|
2037
|
+
margin-left: ${s.sp2};
|
|
2038
|
+
margin-top: ${s.sp1};
|
|
2039
|
+
`,$n=a(So)`
|
|
2040
|
+
width: 12px;
|
|
2041
|
+
height: 12px;
|
|
2042
|
+
cursor: pointer;
|
|
2043
|
+
color: ${e=>e.theme.colors.hero};
|
|
2044
|
+
`,Li=({sortOrder:e,sortKey:n,onSortOrderChanged:o})=>{const i=n==="totals"?e:"ascending";return t.jsx(_i,{"data-testid":y("period-total-tick"),children:t.jsx(Ci,{"data-testid":y("period-total-tick-element"),onClick:()=>{o(_t("totals",e,n),"totals")},isClickable:!0,children:t.jsxs(vi,{children:[N.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(Ct,{selectedForSort:n==="totals","data-testid":y("report-tree-column-header-sort-icon","period-total"),children:i==="ascending"?t.jsx($t,{}):t.jsx(vt,{})})]})})})},Lh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=e==="vendor"?n:"ascending";return t.jsxs(Ch,{selectedForSort:e==="vendor","data-testid":y("report-tree-column-header","vendor"),children:[t.jsxs(vn,{onClick:()=>{o(_t("vendor",n,e),"vendor")},children:[N.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(Ct,{selectedForSort:e==="vendor","data-testid":y("report-tree-column-header-sort-icon","vendor"),children:r==="ascending"?t.jsx($t,{}):t.jsx(vt,{})})]}),e==="vendor"?t.jsx($n,{"data-testid":y("report-tree-column-header-sort-cancel","vendor"),onClick:i}):null]})},Ah=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=e==="account"?n:"ascending",l=W();return t.jsxs($i,{selectedForSort:e==="account",windowSize:l,"data-testid":y("report-tree-column-header","account"),children:[t.jsxs(vn,{onClick:()=>{o(_t("account",n,e),"account")},children:[N.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(Ct,{selectedForSort:e==="account","data-testid":y("report-tree-column-header-sort-icon","account"),children:r==="ascending"?t.jsx($t,{}):t.jsx(vt,{})})]}),e==="account"?t.jsx($n,{"data-testid":y("report-tree-column-header-sort-cancel","account"),onClick:i}):null]})},Bh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=e==="class"?n:"ascending",l=W();return t.jsxs($i,{selectedForSort:e==="class",windowSize:l,"data-testid":y("report-tree-column-header","class"),children:[t.jsxs(vn,{onClick:()=>{o(_t("class",n,e),"class")},children:[N.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(Ct,{selectedForSort:e==="class","data-testid":y("report-tree-column-header-sort-icon","class"),children:r==="ascending"?t.jsx($t,{}):t.jsx(vt,{})})]}),e==="class"?t.jsx($n,{"data-testid":y("report-tree-column-header-sort-cancel","class"),onClick:i}):null]})},Ai=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,tickColumnIndex:i,bookCloseDate:r,dataAvailable:l})=>{const c=N.getLocalizedStrings().reports,d=r==null||l==null||n.balanceType!=="default"&&n.balanceType!=="default_with_percent"?void 0:_o(o,e,n,r,l),p=d!=null?d==="under_review"?c.bookCloseTagUnderReview:c.bookCloseTagInProgress:void 0,u=Si(d,o),g=y("report-tree-column-header-timeframe",String(i));return t.jsx(_i,{"data-testid":g,children:r!=null&&l!=null&&d!=null&&p!=null&&u!=null?t.jsx(ji,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:p,infoContent:u,tagType:d}):t.jsx(Ci,{isClickable:!1,children:t.jsx(vi,{children:Ye(e,n,o)})})})},Ih=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,tickColumnIndex:i,onSortOrderChanged:r,bookCloseDate:l,dataAvailable:c,sortKey:d="totals",sortOrder:p="ascending"})=>n.balanceType==="period_total"?t.jsx(Li,{sortKey:d,sortOrder:p,onSortOrderChanged:r}):t.jsx(Ai,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,tickColumnIndex:i,dataAvailable:c,bookCloseDate:l}),Oh=({firstMonthOfFY:e,timeframeTicks:n,timeframe:o,compareMode:i,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:c,bookCloseDate:d,onCompareModeChanged:p,onSortOrderChanged:u})=>{const g=de(),h=i==="compare_mode_amount"?`${N.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:N.getLocalizedStrings().compareMode.changePercent;return t.jsx(vh,{children:n.map((x,f)=>t.jsxs(V.Fragment,{children:[x.balanceType==="this_period_vs_last_period"||x.balanceType==="this_period_vs_last_period_percent"?t.jsx(_h,{"data-testid":y("report-tree-column-header-compare-mode",String(f)),children:t.jsx(Cn,{title:h,titleTextStyle:nn.standardRegular,titleTextAlignment:"flex-end",titleColor:g.colors.primary,selectedMode:i,menuPosition:"right",onCompareModeChanged:m=>{m!=="off"&&(m==="compare_mode_amount"||m==="compare_mode_percent"?p?.(m):console.warn("Invalid compare mode option"))}})}):null,x.balanceType==="period_total"?t.jsx(Li,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,x.balanceType==="default"?t.jsx($h,{children:t.jsx(Ai,{firstMonthOfFY:e,timeframeTick:x,timeframe:o,tickColumnIndex:f,dataAvailable:c,bookCloseDate:d},f)}):null]},f))})};function Nh({backgroundColor:e,isSticky:n,height:o,isCompareModeOn:i,isAccountColumnShown:r,isClassColumnShown:l,sortKey:c,sortOrder:d,firstMonthOfFY:p,timeframe:u,timeframeTicks:g,compareMode:h,dataAvailable:x,bookCloseDate:f,onCompareModeChanged:m,onSortOrderChanged:w}){const b=W(),k=(S,$)=>{w?.(S,$)},v=()=>{w?.("descending","totals")};return t.jsxs(bh,{height:o,bgColor:e,children:[t.jsx(jh,{bgColor:e,windowSize:b,isSticky:n,children:t.jsx(Sh,{plHeight:o,windowSize:b,bgColor:e,children:t.jsx(Lh,{sortKey:c,sortOrder:d,onSortOrderChanged:k,onSortCancel:v})})}),r?t.jsx(Ah,{sortKey:c,sortOrder:d,onSortOrderChanged:k,onSortCancel:v}):null,l?t.jsx(Bh,{sortKey:c,sortOrder:d,onSortOrderChanged:k,onSortCancel:v}):null,t.jsx(kh,{children:i===!0?t.jsx(Oh,{firstMonthOfFY:p,timeframe:u,sortKey:c,sortOrder:d,timeframeTicks:g,compareMode:h,dataAvailable:x,bookCloseDate:f,onCompareModeChanged:m,onSortOrderChanged:k}):g.map((S,$)=>t.jsx(Ih,{firstMonthOfFY:p,timeframeTick:S,timeframe:u,tickColumnIndex:$,onSortOrderChanged:k,bookCloseDate:f,dataAvailable:x,sortKey:c,sortOrder:d},$))})]})}const _t=(e,n,o)=>e===o?n==="ascending"?"descending":"ascending":"descending",Mh=a.div`
|
|
2045
|
+
display: flex;
|
|
2046
|
+
flex: 1 1 auto;
|
|
2047
|
+
max-height: 1px;
|
|
2048
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
2049
|
+
`,Wh=a.div`
|
|
2050
|
+
display: flex;
|
|
2051
|
+
flex: 1 1 auto;
|
|
2052
|
+
max-height: 1px;
|
|
2053
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
2054
|
+
`;function Ut({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(Mh,{isScrolling:n});case"end_row_separator":return t.jsx(Wh,{isScrolling:n})}}const Ph=a.div`
|
|
2055
|
+
display: flex;
|
|
2056
|
+
flex: 1 1 auto;
|
|
2057
|
+
width: fit-content;
|
|
2058
|
+
min-width: 100%;
|
|
2059
|
+
flex-direction: column;
|
|
2060
|
+
height: ${e=>e.height}px;
|
|
2061
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2062
|
+
`,zh=a.div`
|
|
2063
|
+
user-select: none;
|
|
2064
|
+
display: flex;
|
|
2065
|
+
flex: 1 1 auto;
|
|
2066
|
+
flex-flow: row;
|
|
2067
|
+
justify-content: flex-start;
|
|
2068
|
+
align-items: center;
|
|
2069
|
+
cursor: default;
|
|
2070
|
+
`,Fh=a.div`
|
|
2071
|
+
display: flex;
|
|
2072
|
+
flex: 1 0 auto;
|
|
2073
|
+
flex-direction: row;
|
|
2074
|
+
justify-content: flex-end;
|
|
2075
|
+
`,Th=a.div`
|
|
2076
|
+
display: flex;
|
|
2077
|
+
flex-direction: row;
|
|
2078
|
+
justify-content: flex-start;
|
|
2079
|
+
`,Bi=a(ne)`
|
|
2080
|
+
user-select: none;
|
|
2081
|
+
min-width: ${P.balanceWidth};
|
|
2082
|
+
max-width: ${P.balanceWidth};
|
|
2083
|
+
text-align: right;
|
|
2084
|
+
margin-left: ${P.balanceLeftMargin};
|
|
2085
|
+
color: ${e=>e.theme.colors.primary};
|
|
2086
|
+
border: 1px solid transparent;
|
|
2087
|
+
`,Vh=a(Bi)`
|
|
2088
|
+
color: ${e=>e.theme.colors.hero};
|
|
2089
|
+
&:hover {
|
|
2090
|
+
color: inherit;
|
|
2091
|
+
}
|
|
2092
|
+
`,Dh=a.div`
|
|
2093
|
+
display: flex;
|
|
2094
|
+
flex-direction: row;
|
|
2095
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2096
|
+
${({isSticky:e})=>e?F`
|
|
2097
|
+
position: -webkit-sticky;
|
|
2098
|
+
position: sticky;
|
|
2099
|
+
top: ${s.sp0};
|
|
2100
|
+
left: ${s.sp0};
|
|
2101
|
+
`:null}
|
|
2102
|
+
`,Eh=a.div`
|
|
2103
|
+
display: flex;
|
|
2104
|
+
flex-direction: row;
|
|
2105
|
+
flex-shrink: 2;
|
|
2106
|
+
flex-grow: 1;
|
|
2107
|
+
align-items: center;
|
|
2108
|
+
width: ${e=>P.titleWidth.valuePx(e.windowSize)};
|
|
2109
|
+
max-width: ${e=>P.titleWidth.valuePx(e.windowSize)};
|
|
2110
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2111
|
+
`,po=a.div`
|
|
2112
|
+
width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
2113
|
+
max-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
2114
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2115
|
+
`,Gh=a(ne)`
|
|
2116
|
+
user-select: none;
|
|
2117
|
+
clear: both;
|
|
2118
|
+
display: inline-block;
|
|
2119
|
+
overflow: hidden;
|
|
2120
|
+
white-space: nowrap;
|
|
2121
|
+
text-overflow: ellipsis;
|
|
2122
|
+
text-align: left;
|
|
2123
|
+
color: ${e=>e.theme.colors.primary};
|
|
2124
|
+
`,Rh=({balance:e,collapsed:n,timeframeColumnIndex:o,treeNodeId:i,type:r})=>{const l=n===!0?Vh:Bi;return t.jsx(Th,{"data-testid":y("report-tree-total-row-amount",`${i}-${String(o)}`),children:ae(r)===!0?t.jsx(l,{children:q(e)}):null})};function Hh({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,title:l,totalBalances:c,isAccountColumnShown:d,isClassColumnShown:p,onClick:u,isScrolling:g}){const h=W();return t.jsxs(Ph,{"data-testid":y("total-row-root-container",i),height:r,bgColor:n,windowSize:h,children:[t.jsxs(zh,{"data-testid":y("total-row-container",i),onClick:()=>u?.(i),children:[t.jsxs(Dh,{bgColor:n,windowSize:h,isSticky:o,children:[t.jsx(Eh,{bgColor:n,windowSize:h,children:t.jsx(Gh,{children:l})}),d?t.jsx(po,{windowSize:h}):null,p?t.jsx(po,{windowSize:h}):null]}),t.jsx(Fh,{children:c.map((x,f)=>t.jsx(Rh,{balance:x,collapsed:!1,timeframeColumnIndex:f,treeNodeId:i,type:e},f))})]}),t.jsx(Ut,{isScrolling:g,kind:"vendor_row_separator"})]})}const Kh=a.div`
|
|
2125
|
+
display: flex;
|
|
2126
|
+
flex: 1 1 auto;
|
|
2127
|
+
width: fit-content;
|
|
2128
|
+
min-width: 100%;
|
|
2129
|
+
flex-direction: column;
|
|
2130
|
+
height: ${e=>e.height}px;
|
|
2131
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2132
|
+
`,Yh=a.div`
|
|
2133
|
+
user-select: none;
|
|
2134
|
+
display: flex;
|
|
2135
|
+
flex: 1 1 auto;
|
|
2136
|
+
flex-flow: row;
|
|
2137
|
+
justify-content: flex-start;
|
|
2138
|
+
align-items: center;
|
|
2139
|
+
&:hover {
|
|
2140
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2141
|
+
}
|
|
2142
|
+
`,Uh=a.div`
|
|
2143
|
+
display: flex;
|
|
2144
|
+
flex: 1 0 auto;
|
|
2145
|
+
flex-direction: row;
|
|
2146
|
+
justify-content: flex-end;
|
|
2147
|
+
`,Zh=a.div`
|
|
2148
|
+
display: flex;
|
|
2149
|
+
flex-direction: row;
|
|
2150
|
+
justify-content: flex-start;
|
|
2151
|
+
`,qh=a(_)`
|
|
2152
|
+
user-select: none;
|
|
2153
|
+
min-width: ${P.balanceWidth};
|
|
2154
|
+
max-width: ${P.balanceWidth};
|
|
2155
|
+
text-align: right;
|
|
2156
|
+
margin-left: ${P.balanceLeftMargin};
|
|
2157
|
+
border: 1px solid transparent;
|
|
2158
|
+
color: ${e=>e.theme.colors.hero};
|
|
2159
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2160
|
+
&:hover {
|
|
2161
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2162
|
+
}
|
|
2163
|
+
`,Qh=a.div`
|
|
2164
|
+
display: flex;
|
|
2165
|
+
flex-direction: row;
|
|
2166
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2167
|
+
${({isSticky:e})=>e?F`
|
|
2168
|
+
position: -webkit-sticky;
|
|
2169
|
+
position: sticky;
|
|
2170
|
+
top: ${s.sp0};
|
|
2171
|
+
left: ${s.sp0};
|
|
2172
|
+
`:null}
|
|
2173
|
+
`,Jh=a.div`
|
|
2174
|
+
display: flex;
|
|
2175
|
+
flex-direction: row;
|
|
2176
|
+
flex-shrink: 2;
|
|
2177
|
+
flex-grow: 1;
|
|
2178
|
+
align-items: center;
|
|
2179
|
+
gap: ${s.sp2};
|
|
2180
|
+
width: ${e=>P.titleWidth.valuePx(e.windowSize)};
|
|
2181
|
+
max-width: ${e=>P.titleWidth.valuePx(e.windowSize)};
|
|
2182
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2183
|
+
`,Ne=a(_)`
|
|
2184
|
+
user-select: none;
|
|
2185
|
+
clear: both;
|
|
2186
|
+
display: inline-block;
|
|
2187
|
+
overflow: hidden;
|
|
2188
|
+
white-space: nowrap;
|
|
2189
|
+
text-overflow: ellipsis;
|
|
2190
|
+
text-align: left;
|
|
2191
|
+
color: ${e=>e.theme.colors.hero};
|
|
2192
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2193
|
+
&:hover {
|
|
2194
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2195
|
+
}
|
|
2196
|
+
`,Xh=a.div`
|
|
2197
|
+
display: flex;
|
|
2198
|
+
flex-direction: row;
|
|
2199
|
+
flex-shrink: 2;
|
|
2200
|
+
flex-grow: 1;
|
|
2201
|
+
align-items: center;
|
|
2202
|
+
width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
2203
|
+
max-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
2204
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2205
|
+
`,eu=a.div`
|
|
2206
|
+
display: flex;
|
|
2207
|
+
flex-direction: row;
|
|
2208
|
+
flex-shrink: 2;
|
|
2209
|
+
flex-grow: 1;
|
|
2210
|
+
align-items: center;
|
|
2211
|
+
width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
2212
|
+
max-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
2213
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2214
|
+
`,tu=a.div``,nu=a.div`
|
|
2215
|
+
width: ${s.sp4};
|
|
2216
|
+
height: ${s.sp4};
|
|
2217
|
+
border-radius: 50%;
|
|
2218
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
2219
|
+
display: flex;
|
|
2220
|
+
justify-content: center;
|
|
2221
|
+
align-items: center;
|
|
2222
|
+
color: ${e=>e.theme.colors.hero};
|
|
2223
|
+
`,ou=a(tr)`
|
|
2224
|
+
width: ${s.sp3};
|
|
2225
|
+
height: ${s.sp3};
|
|
2226
|
+
`,iu=a.div`
|
|
2227
|
+
display: flex;
|
|
2228
|
+
column-gap: ${s.sp2};
|
|
2229
|
+
width: 100%;
|
|
2230
|
+
&:hover {
|
|
2231
|
+
.hyphen-text {
|
|
2232
|
+
display: none;
|
|
2233
|
+
}
|
|
2234
|
+
.not-specified-text {
|
|
2235
|
+
display: block;
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
`,ru=a(_)`
|
|
2239
|
+
color: ${e=>e.theme.colors.hero};
|
|
2240
|
+
`,au=a(_)`
|
|
2241
|
+
color: ${e=>e.theme.colors.hero};
|
|
2242
|
+
display: none;
|
|
2243
|
+
`,lu=({balance:e,timeframeColumnIndex:n,vendor:o,vendorRowKey:i,onVendorNameAndBalanceClick:r})=>{const l=!(e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent")&&e?.type!=="period_total"&&e?.type!=="default_with_null_balance"&&!$o(o.id);return t.jsx(Zh,{"data-testid":y("report-tree-vendor-row-amount",`${i}-${String(n)}`),children:t.jsx(qh,{isClickable:l,onClick:()=>{l===!0&&r(o,e??void 0)},children:q(e)})})};function cu({backgroundColor:e,isSticky:n,height:o,isScrolling:i,isLastNode:r,vendor:l,balances:c,accountBase:d,classBase:p,isAccountColumnShown:u,isClassColumnShown:g,onVendorNameAndBalanceClick:h,vendorRowIndex:x}){const f=W(),m=x!=null?String(x):l.id,w=en(),b=w.loggedInUserRole!=null&&!vo(w.loggedInUserRole),k=$o(l.id),v=b===!0&&l!=null&&!k,S=v?"pointer":"default",$=l.name;return t.jsxs(Kh,{"data-testid":y("vendor-row-root-container",m),height:o,bgColor:e,windowSize:f,children:[t.jsxs(Yh,{"data-testid":y("vendor-row-container",m),style:{cursor:S},isClickable:v,children:[t.jsx(Qh,{"data-testid":y("vendor-row-sticky-container",m),isSticky:n,windowSize:f,bgColor:e,children:t.jsxs(Jh,{"data-testid":y("vendor-row-name-container",m),windowSize:f,bgColor:e,children:[t.jsxs(st,{controller:!k,children:[t.jsx(tu,{"data-testid":y("report-tree-vendor-row-avatar",m),children:l.logo!=null?t.jsx(Jt,{photoUrl:l.logo.toString(),styles:{width:P.nameLogoWidth.valuePx(f),height:P.nameLogoHeight.valuePx(f)}}):t.jsx(Xt,{name:$,size:s.sp4})}),t.jsx(Ne,{"data-testid":y("vendor-row-name",m),style:{cursor:S},isClickable:v,onClick:()=>{v===!0&&h(l)},children:$})]}),t.jsx(st,{controller:k,children:t.jsxs(iu,{children:[t.jsx(nu,{"data-testid":y("report-tree-vendor-row-avatar",m),children:t.jsx(ou,{})}),t.jsx(ru,{className:"hyphen-text",children:N.getLocalizedStrings().common.strings.hyphen}),t.jsx(au,{className:"not-specified-text",children:$})]})})]})}),u?t.jsx(Xh,{windowSize:f,bgColor:e,children:d!=null?t.jsx(Ne,{"data-testid":y("vendor-row-account-name",m),title:d.accountName,isClickable:!1,children:d.accountName}):t.jsx(Ne,{isClickable:!1,"data-testid":y("vendor-row-account-name",m),children:N.getLocalizedStrings().common.strings.hyphen})}):null,g?t.jsx(eu,{windowSize:f,bgColor:e,children:p!=null?t.jsx(Ne,{"data-testid":y("vendor-row-class-name",m),title:p.className,isClickable:!1,children:p.className}):t.jsx(Ne,{"data-testid":y("vendor-row-class-name",m),isClickable:!1,children:N.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(Uh,{children:c.map((B,L)=>t.jsx(lu,{balance:B,timeframeColumnIndex:L,vendor:l,vendorRowKey:m,onVendorNameAndBalanceClick:h},L))})]}),t.jsx(su,{isScrolling:i,isLastNode:r})]})}function su({isScrolling:e,isLastNode:n}){return n?t.jsx(Ut,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Ut,{isScrolling:e,kind:"vendor_row_separator"})}function _n(e,n,o){return du(n,o,e)}const du=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.account.balancesInTimeframe,i.compactedAccountsSelector=r=>go(r.accounts,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>go(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r,i.compactedAccountGroupsSelector=r=>function(l,c,d,p){switch(p){case"off":return l;case"filter_actual_nil_account_group_balances":return l.filter(u=>Ii(c(u)?.balances??[]));case"filter_forecast_nil_account_group_balances":return l.filter(u=>function(g){let h=!1;if(g!=null){for(const x of g)if(x.forecast!=null&&x.forecast.amount!==0){h=!0;break}}return h}(c(u)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return l.filter(u=>function(g){let h=!1;if(g!=null){for(const x of g)if(x.forecast!=null&&x.forecast.amount!==0||x.balance!=null&&x.balance.amount!==0){h=!0;break}}return h}(c(u)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return l.filter(u=>(c(u)?.balances??[]).length>0)}}(r,i.acGroupBalanceSelector,0,n),i};function go(e,n,o){switch(o){case"off":return e;case"filter_actual_nil_balances":return e.filter(i=>function(r){let l=!1;if(r!=null){for(const c of r)if(c.totalBalance!=null&&c.totalBalance.amount!==0){l=!0;break}}return l}((n(i)?.balances??[]).concat(n(i)?.additionalBalances??[]))||Ii((n(i)?.balances??[]).concat(n(i)?.additionalBalances??[])));case"filter_forecast_nil_balances":case"filter_actual_forecast_nil_balances":return e.filter(i=>hu(n(i)?.balances??[]))}}function Ii(e){let n=!1;if(e!=null){for(const o of e)if(o.balance.amount!==0){n=!0;break}}return n}function hu(e){let n=!1;if(e!=null){for(const o of e)if(o.totalForecast!=null&&o.totalForecast.amount!==0||o.totalBalance!=null&&o.totalBalance.amount!==0){n=!0;break}}return n}function Oi(e,n,o=-1,i=!0){const r=o!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=function(p,u){return p.length>0?p:bo(Array(u),null)}([],o)),{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,...i?e.additionalBalances:[]],thisPeriodIndex:c}}const uu=a.div`
|
|
2244
|
+
display: flex;
|
|
2245
|
+
flex: 1 1 auto;
|
|
2246
|
+
width: fit-content;
|
|
2247
|
+
min-width: 100%;
|
|
2248
|
+
flex-direction: column;
|
|
2249
|
+
height: ${e=>e.height}px;
|
|
2250
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2251
|
+
`,pu=a.div`
|
|
2252
|
+
user-select: none;
|
|
2253
|
+
display: flex;
|
|
2254
|
+
flex: 1 1 auto;
|
|
2255
|
+
flex-flow: row;
|
|
2256
|
+
justify-content: flex-start;
|
|
2257
|
+
align-items: center;
|
|
2258
|
+
&:hover {
|
|
2259
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2260
|
+
}
|
|
2261
|
+
`,gu=a.div`
|
|
2262
|
+
display: flex;
|
|
2263
|
+
flex: 1 0 auto;
|
|
2264
|
+
flex-direction: row;
|
|
2265
|
+
justify-content: flex-end;
|
|
2266
|
+
`,xu=a.div`
|
|
2267
|
+
display: flex;
|
|
2268
|
+
flex-direction: row;
|
|
2269
|
+
justify-content: flex-start;
|
|
2270
|
+
`,Ni=a(_)`
|
|
2271
|
+
user-select: none;
|
|
2272
|
+
min-width: ${j.balanceWidth};
|
|
2273
|
+
max-width: ${j.balanceWidth};
|
|
2274
|
+
text-align: right;
|
|
2275
|
+
margin-left: ${j.balanceLeftMargin};
|
|
2276
|
+
color: ${e=>e.theme.colors.primary};
|
|
2277
|
+
`,fu=a(Ni)`
|
|
2278
|
+
color: ${e=>e.theme.colors.hero};
|
|
2279
|
+
&:hover {
|
|
2280
|
+
color: inherit;
|
|
2281
|
+
}
|
|
2282
|
+
`,mu=a.div`
|
|
2283
|
+
display: flex;
|
|
2284
|
+
flex-direction: row;
|
|
2285
|
+
flex-shrink: 2;
|
|
2286
|
+
flex-grow: 1;
|
|
2287
|
+
align-items: center;
|
|
2288
|
+
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2289
|
+
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2290
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2291
|
+
${({isSticky:e})=>e?F`
|
|
2292
|
+
position: -webkit-sticky;
|
|
2293
|
+
position: sticky;
|
|
2294
|
+
top: ${s.sp0};
|
|
2295
|
+
left: ${s.sp0};
|
|
2296
|
+
z-index: 20;
|
|
2297
|
+
`:null}
|
|
2298
|
+
`,Mi=a(_)`
|
|
2299
|
+
user-select: none;
|
|
2300
|
+
clear: both;
|
|
2301
|
+
display: inline-block;
|
|
2302
|
+
overflow: hidden;
|
|
2303
|
+
white-space: nowrap;
|
|
2304
|
+
text-overflow: ellipsis;
|
|
2305
|
+
text-align: left;
|
|
2306
|
+
margin-left: ${s.sp4};
|
|
2307
|
+
color: ${e=>e.theme.colors.primary};
|
|
2308
|
+
`,wu=a(Mi)`
|
|
2309
|
+
color: ${e=>e.theme.colors.hero};
|
|
2310
|
+
&:hover {
|
|
2311
|
+
color: inherit;
|
|
2312
|
+
}
|
|
2313
|
+
`,yu=({type:e,balance:n,collapsed:o,isActualVsForecastOn:i,compareMode:r})=>{const l=o===!0?fu:Ni;return t.jsxs(xu,{children:[ae(e)===!0||i?t.jsx(l,{children:q(n)}):t.jsx(l,{children:J(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(n)}),t.jsx(l,{children:r==="compare_mode_percent"?pe(n):ge(n)})]}):null]})};function bu({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:p,compareMode:u,isScrolling:g,isOpen:h,isLeaf:x,isLastNode:f,onClick:m}){const w=de(),b=W(),k=!x,v=k?"pointer":"default",S=l==="collapsed",$=l==="hidden",B=$===!0?C[6]:C[4],L=S===!0?wu:Mi,M=S===!0?wo:yo,T=S===!0?w.colors.hero:w.colors.primary;return t.jsxs(uu,{height:r,bgColor:n,"data-testid":y("pandl-report-account-group-row-root-container",i),children:[t.jsxs(pu,{"data-testid":y("pandl-report-account-group-row-container",i),style:{cursor:v},isClickable:k,onClick:()=>m?.(i),children:[xe(e)===!0?t.jsxs(mu,{bgColor:n,isSticky:o,windowSize:b,children:[$===!1?t.jsx(M,{color:T,style:{width:C[3],height:C[3]}}):null,t.jsx(L,{style:{marginLeft:B},children:c})]}):null,ke(e)===!0?t.jsx(gu,{children:d.map((D,K)=>t.jsx(yu,{type:e,accountGroupName:c,balance:D,isActualVsForecastOn:p,compareMode:u,collapsed:S},K))}):null]}),t.jsx(ku,{isScrolling:g,type:e,isLeaf:x,isLastNode:f,isOpen:h})]})}function ku({isScrolling:e,type:n,isLastNode:o,isOpen:i}){let r="ac_group_row_separator";return o&&!i?r="section_row_separator":i&&(r=xe(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(je,{isScrolling:e,kind:r})}const ju=a.div`
|
|
2314
|
+
display: flex;
|
|
2315
|
+
flex: 1 1 auto;
|
|
2316
|
+
width: fit-content;
|
|
2317
|
+
min-width: 100%;
|
|
2318
|
+
flex-direction: column;
|
|
2319
|
+
height: ${e=>e.height}px;
|
|
2320
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2321
|
+
`,Su=a.div`
|
|
2322
|
+
user-select: none;
|
|
2323
|
+
display: flex;
|
|
2324
|
+
flex: 1 1 auto;
|
|
2325
|
+
flex-flow: row;
|
|
2326
|
+
justify-content: flex-start;
|
|
2327
|
+
align-items: center;
|
|
2328
|
+
&:hover {
|
|
2329
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2330
|
+
}
|
|
2331
|
+
`,Cu=a.div`
|
|
2332
|
+
display: flex;
|
|
2333
|
+
flex: 1 0 auto;
|
|
2334
|
+
flex-direction: row;
|
|
2335
|
+
justify-content: flex-end;
|
|
2336
|
+
`,vu=a.div`
|
|
2337
|
+
display: flex;
|
|
2338
|
+
flex-direction: row;
|
|
2339
|
+
justify-content: flex-start;
|
|
2340
|
+
`,Wi=a(_)`
|
|
2341
|
+
user-select: none;
|
|
2342
|
+
min-width: ${j.balanceWidth};
|
|
2343
|
+
max-width: ${j.balanceWidth};
|
|
2344
|
+
text-align: right;
|
|
2345
|
+
margin-left: ${j.balanceLeftMargin};
|
|
2346
|
+
color: ${e=>e.theme.colors.primary};
|
|
2347
|
+
`,$u=a(Wi)`
|
|
2348
|
+
color: ${e=>e.theme.colors.hero};
|
|
2349
|
+
&:hover {
|
|
2350
|
+
color: inherit;
|
|
2351
|
+
}
|
|
2352
|
+
`,_u=a.div`
|
|
2353
|
+
display: flex;
|
|
2354
|
+
flex-direction: row;
|
|
2355
|
+
flex-shrink: 2;
|
|
2356
|
+
flex-grow: 1;
|
|
2357
|
+
align-items: center;
|
|
2358
|
+
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2359
|
+
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2360
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2361
|
+
${({isSticky:e})=>e?F`
|
|
2362
|
+
position: -webkit-sticky;
|
|
2363
|
+
position: sticky;
|
|
2364
|
+
top: ${s.sp0};
|
|
2365
|
+
left: ${s.sp0};
|
|
2366
|
+
z-index: 20;
|
|
2367
|
+
`:null}
|
|
2368
|
+
`,Pi=a(_)`
|
|
2369
|
+
user-select: none;
|
|
2370
|
+
clear: both;
|
|
2371
|
+
display: inline-block;
|
|
2372
|
+
overflow: hidden;
|
|
2373
|
+
white-space: nowrap;
|
|
2374
|
+
text-overflow: ellipsis;
|
|
2375
|
+
text-align: left;
|
|
2376
|
+
margin-left: ${s.sp2};
|
|
2377
|
+
color: ${e=>e.theme.colors.primary};
|
|
2378
|
+
`,Lu=a(Pi)`
|
|
2379
|
+
color: ${e=>e.theme.colors.hero};
|
|
2380
|
+
&:hover {
|
|
2381
|
+
color: inherit;
|
|
2382
|
+
}
|
|
2383
|
+
`,Au=({type:e,balance:n,collapsed:o,isActualVsForecastOn:i,compareMode:r})=>{const l=o===!0?$u:Wi;return t.jsxs(vu,{children:[ae(e)===!0||i?t.jsx(l,{children:q(n)}):t.jsx(l,{children:J(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(n)}),t.jsx(l,{children:r==="compare_mode_percent"?pe(n):ge(n)})]}):null]})};function Bu({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:p,compareMode:u,isScrolling:g,isOpen:h,isLeaf:x,isLastNode:f,onClick:m}){const w=W(),b=de(),k=!x,v=k?"pointer":"default",S=l==="collapsed",$=S===!0?Lu:Pi,[B,L]=V.useState(!1),M=c.length>0?c.substring(0,1).toUpperCase():"";return t.jsxs(ju,{"data-testid":y("pandl-account-group-row-root-container",i),height:r,bgColor:n,children:[t.jsxs(Su,{"data-testid":y("pandl-account-group-row-container",i),onMouseOver:()=>L(!0),onMouseLeave:()=>L(!1),style:{cursor:v},isClickable:k,onClick:()=>m?.(i),children:[xe(e)===!0?t.jsxs(_u,{bgColor:n,isSticky:o,windowSize:w,children:[t.jsx(ve,{showCollapsedIcon:S,showIcon:B&&k,firstLetter:M,color:I(b.colors.primary)}),t.jsx($,{children:c})]}):null,ke(e)===!0?t.jsx(Cu,{children:d.map((T,D)=>t.jsx(Au,{type:e,accountGroupName:c,balance:T,isActualVsForecastOn:p,compareMode:u,collapsed:S},D))}):null]}),t.jsx(Iu,{isScrolling:g,type:e,isLeaf:x,isLastNode:f,isOpen:h})]})}function Iu({isScrolling:e,type:n,isLastNode:o,isOpen:i}){let r="ac_group_row_separator";return o&&!i?r="section_row_separator":i&&(r=xe(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(je,{isScrolling:e,kind:r})}const Ou=a.div`
|
|
2384
|
+
display: flex;
|
|
2385
|
+
flex: 1 1 auto;
|
|
2386
|
+
width: fit-content;
|
|
2387
|
+
min-width: 100%;
|
|
2388
|
+
flex-direction: column;
|
|
2389
|
+
height: ${e=>e.height}px;
|
|
2390
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2391
|
+
`,Nu=a.div`
|
|
2392
|
+
user-select: none;
|
|
2393
|
+
display: flex;
|
|
2394
|
+
flex: 1 1 auto;
|
|
2395
|
+
flex-flow: row;
|
|
2396
|
+
justify-content: flex-start;
|
|
2397
|
+
align-items: center;
|
|
2398
|
+
`,Mu=a.div`
|
|
2399
|
+
display: flex;
|
|
2400
|
+
flex: 1 0 auto;
|
|
2401
|
+
flex-direction: row;
|
|
2402
|
+
justify-content: flex-end;
|
|
2403
|
+
`,Wu=a.div`
|
|
2404
|
+
display: flex;
|
|
2405
|
+
flex-direction: row;
|
|
2406
|
+
justify-content: flex-start;
|
|
2407
|
+
`,ot=a(_)`
|
|
2408
|
+
user-select: none;
|
|
2409
|
+
min-width: ${j.balanceWidth};
|
|
2410
|
+
max-width: ${j.balanceWidth};
|
|
2411
|
+
text-align: right;
|
|
2412
|
+
margin-left: ${j.balanceLeftMargin};
|
|
2413
|
+
color: ${e=>e.theme.colors.hero};
|
|
2414
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2415
|
+
&:hover {
|
|
2416
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2417
|
+
}
|
|
2418
|
+
`,Pu=a.div`
|
|
2419
|
+
display: flex;
|
|
2420
|
+
flex-direction: row;
|
|
2421
|
+
flex-shrink: 2;
|
|
2422
|
+
flex-grow: 1;
|
|
2423
|
+
align-items: center;
|
|
2424
|
+
${({containerHeight:e})=>e!=null?F`
|
|
2425
|
+
height: ${e-1}px;
|
|
2426
|
+
`:null}
|
|
2427
|
+
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2428
|
+
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2429
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2430
|
+
color: ${e=>e.isSubAccountLeaf?e.theme.colors.grey1:e.theme.colors.hero};
|
|
2431
|
+
cursor: ${e=>e.isRowClickable?"pointer":"default"};
|
|
2432
|
+
&:hover {
|
|
2433
|
+
color: ${e=>e.isRowClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2434
|
+
}
|
|
2435
|
+
${({isSticky:e})=>e?F`
|
|
2436
|
+
position: -webkit-sticky;
|
|
2437
|
+
position: sticky;
|
|
2438
|
+
top: ${s.sp0};
|
|
2439
|
+
left: ${s.sp0};
|
|
2440
|
+
z-index: 20;
|
|
2441
|
+
`:null}
|
|
2442
|
+
`,zu=a.div`
|
|
2443
|
+
display: flex;
|
|
2444
|
+
flex-direction: row;
|
|
2445
|
+
flex-shrink: 2;
|
|
2446
|
+
flex-grow: 1;
|
|
2447
|
+
align-items: center;
|
|
2448
|
+
${({containerHeight:e})=>e!=null?F`
|
|
2449
|
+
height: ${e-1}px;
|
|
2450
|
+
`:null}
|
|
2451
|
+
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2452
|
+
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2453
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2454
|
+
${({isSticky:e})=>e?F`
|
|
2455
|
+
position: -webkit-sticky;
|
|
2456
|
+
position: sticky;
|
|
2457
|
+
top: ${s.sp0};
|
|
2458
|
+
left: ${s.sp0};
|
|
2459
|
+
z-index: 20;
|
|
2460
|
+
`:null}
|
|
2461
|
+
`,Fu=a(_)`
|
|
2462
|
+
user-select: none;
|
|
2463
|
+
clear: both;
|
|
2464
|
+
display: inline-block;
|
|
2465
|
+
text-align: left;
|
|
2466
|
+
`,Tu=a(_)`
|
|
2467
|
+
user-select: none;
|
|
2468
|
+
clear: both;
|
|
2469
|
+
display: inline-block;
|
|
2470
|
+
overflow: hidden;
|
|
2471
|
+
white-space: nowrap;
|
|
2472
|
+
text-overflow: ellipsis;
|
|
2473
|
+
text-align: left;
|
|
2474
|
+
margin-left: ${({titleIndentExtraPx:e})=>e!=null&&e>0?`calc(${s.sp6} + ${e}px)`:s.sp6};
|
|
2475
|
+
color: ${e=>e.theme.colors.hero};
|
|
2476
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2477
|
+
&:hover {
|
|
2478
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2479
|
+
}
|
|
2480
|
+
`,Vu=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i,account:r,onAccountBalanceClick:l,stopRowClickPropagation:c})=>{const d=r!=null&&n!=null&&l!=null&&!(n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent");return t.jsxs(Wu,{"data-testid":y("account-row-balance-element",e),children:[ae(e)===!0||o?t.jsx(ot,{"data-testid":y("account-row-balance-actual",e),isClickable:d,onClick:p=>{c===!0&&p.stopPropagation(),d===!0&&r!=null&&n!=null&&l?.(r,n,bt(r,n))},children:q(n)}):t.jsx(ot,{"data-testid":y("account-row-balance-forecast",e),isClickable:!1,children:J(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(ot,{isClickable:!1,"data-testid":y("account-row-balance-forecast",e),children:J(n)}),t.jsx(ot,{"data-testid":y("account-row-balance-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?pe(n):ge(n)})]}):null]})};function Du({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,accountBalances:l,isActualVsForecastOn:c,compareMode:d,isScrolling:p,isLeaf:u,isLastNode:g,account:h,titleIndentExtraPx:x,horizontalTreeView:f,horizontalCollapse:m,onAccountBalanceClick:w}){const b=W(),{common:{strings:{hyphen:k}}}=N.getLocalizedStrings(),v=h?.accountDescription?h.accountDescription:k,S=h!=null&&Ge(h)===!0||h?.accountName?h.accountName:v;return t.jsxs(Ou,{height:r,bgColor:n,"data-testid":y("account-row-root-container",i),children:[t.jsxs(Nu,{"data-testid":y("account-row-container",i),onClick:m!=null?()=>m.onRowClick():void 0,children:[xe(e)===!0?f!=null?t.jsx(Pu,{isSticky:o,windowSize:b,bgColor:n,containerHeight:r,isRowClickable:m!=null,isSubAccountLeaf:f.isLeaf,children:t.jsx(Fu,{title:S,children:t.jsx(pn,{classAnscestorMetadata:[],collapsed:m!=null&&!m.isOpen,depth:f.treeDepth,displayName:S,hasChildren:f.hasChildren,hasSiblings:f.hasSiblings,isLastNode:f.isLastNode,isLeaf:f.isLeaf,noMarginForAccount:!1,subAccountAnscestorMetadata:f.subAccountAncestorMetadata})})}):t.jsx(zu,{isSticky:o,windowSize:b,bgColor:n,children:t.jsx(Tu,{isClickable:!1,title:S,titleIndentExtraPx:x,children:S})}):null,ke(e)===!0?t.jsx(Mu,{children:l.map(($,B)=>t.jsx(Vu,{type:e,isActualVsForecastOn:c,compareMode:d,balance:$,account:h,stopRowClickPropagation:m!=null,onAccountBalanceClick:w==null?void 0:(L,M,T)=>{w(i,L,M,T)}},B))}):null]}),t.jsx(Eu,{isScrolling:p,type:e,isLeaf:u,isLastNode:g})]})}function Eu({isScrolling:e,isLastNode:n,type:o}){const i=n?"ac_group_row_separator":xe(o)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(je,{isScrolling:e,kind:i})}const Gu=a.div`
|
|
2481
|
+
user-select: none;
|
|
2482
|
+
display: flex;
|
|
2483
|
+
flex: 1 1 auto;
|
|
2484
|
+
width: fit-content;
|
|
2485
|
+
min-width: 100%;
|
|
2486
|
+
height: ${e=>e.height}px;
|
|
2487
|
+
flex-flow: row;
|
|
2488
|
+
justify-content: flex-start;
|
|
2489
|
+
align-items: center;
|
|
2490
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2491
|
+
`,Ru=a.div`
|
|
2492
|
+
display: flex;
|
|
2493
|
+
flex: 1 0 auto;
|
|
2494
|
+
flex-direction: row;
|
|
2495
|
+
justify-content: flex-end;
|
|
2496
|
+
`,xo=a.div`
|
|
2497
|
+
display: flex;
|
|
2498
|
+
max-height: 54px;
|
|
2499
|
+
min-height: 54px;
|
|
2500
|
+
min-width: ${j.balanceWidthInPx}px;
|
|
2501
|
+
justify-content: center;
|
|
2502
|
+
align-items: center;
|
|
2503
|
+
background-color: ${e=>e.theme.colors.background};
|
|
2504
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2505
|
+
border-radius: ${s.sp2};
|
|
2506
|
+
margin-left: ${j.balanceLeftMarginInPx}px;
|
|
2507
|
+
color: ${e=>e.theme.colors.primary};
|
|
2508
|
+
`,Hu=a.div`
|
|
2509
|
+
display: flex;
|
|
2510
|
+
flex-direction: row;
|
|
2511
|
+
align-items: center;
|
|
2512
|
+
justify-content: center;
|
|
2513
|
+
height: ${j.balanceHeight};
|
|
2514
|
+
max-width: ${j.balanceWidthInPx-2}px;
|
|
2515
|
+
width: ${j.balanceWidthInPx-2}px;
|
|
2516
|
+
min-width: 0;
|
|
2517
|
+
padding: 0 ${s.sp2};
|
|
2518
|
+
`,Ku=a(_)`
|
|
2519
|
+
display: flex;
|
|
2520
|
+
user-select: none;
|
|
2521
|
+
flex-direction: row;
|
|
2522
|
+
justify-content: center;
|
|
2523
|
+
align-items: center;
|
|
2524
|
+
height: ${j.balanceHeight};
|
|
2525
|
+
max-width: ${j.balanceWidthInPx-2}px;
|
|
2526
|
+
width: ${j.balanceWidthInPx-2}px;
|
|
2527
|
+
text-align: center;
|
|
2528
|
+
overflow: hidden;
|
|
2529
|
+
text-overflow: ellipsis;
|
|
2530
|
+
white-space: nowrap;
|
|
2531
|
+
`,Yu=a.div`
|
|
2532
|
+
height: 100%;
|
|
2533
|
+
display: inline-block;
|
|
2534
|
+
flex-direction: row;
|
|
2535
|
+
align-items: center;
|
|
2536
|
+
min-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2537
|
+
color: ${e=>e.theme.colors.grey5};
|
|
2538
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2539
|
+
border: 1px solid ${e=>e.bgColor?.hex()};
|
|
2540
|
+
${({isSticky:e})=>e?F`
|
|
2541
|
+
position: -webkit-sticky;
|
|
2542
|
+
position: sticky;
|
|
2543
|
+
top: ${s.sp0};
|
|
2544
|
+
left: ${s.sp0};
|
|
2545
|
+
z-index: 20;
|
|
2546
|
+
`:null}
|
|
2547
|
+
`;function Uu({text:e}){const n=de();return t.jsx(Hu,{children:t.jsx(ar,{text:e,style:{width:"100%",minWidth:0},itemTextStyle:{color:n.colors.primary,textAlign:"center"}})})}function Zu({type:e,backgroundColor:n,isSticky:o,height:i,classColumns:r}){const l=W();return t.jsxs(Gu,{height:i,bgColor:n,children:[xe(e)===!0?t.jsx(Yu,{"aria-hidden":!0,isSticky:o,windowSize:l,bgColor:n}):null,t.jsxs(Ru,{children:[r.map((c,d)=>t.jsx(xo,{children:t.jsx(Uu,{text:c.className})},c.classId??d)),t.jsx(xo,{children:t.jsx(Ku,{children:"Total"})},"total")]})]})}const qu=a.div`
|
|
2548
|
+
display: flex;
|
|
2549
|
+
flex: 1 1 auto;
|
|
2550
|
+
width: fit-content;
|
|
2551
|
+
min-width: 100%;
|
|
2552
|
+
flex-direction: column;
|
|
2553
|
+
height: ${e=>e.height}px;
|
|
2554
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2555
|
+
`,Qu=a.div`
|
|
2556
|
+
user-select: none;
|
|
2557
|
+
display: flex;
|
|
2558
|
+
flex: 1 1 auto;
|
|
2559
|
+
flex-flow: row;
|
|
2560
|
+
justify-content: flex-start;
|
|
2561
|
+
align-items: center;
|
|
2562
|
+
`,Ju=a.div`
|
|
2563
|
+
display: flex;
|
|
2564
|
+
flex: 1 0 auto;
|
|
2565
|
+
flex-direction: row;
|
|
2566
|
+
justify-content: flex-end;
|
|
2567
|
+
`,Xu=a.div`
|
|
2568
|
+
display: flex;
|
|
2569
|
+
flex-direction: row;
|
|
2570
|
+
justify-content: flex-start;
|
|
2571
|
+
`,it=a(_)`
|
|
2572
|
+
user-select: none;
|
|
2573
|
+
max-width: ${j.balanceWidth};
|
|
2574
|
+
min-width: ${j.balanceWidth};
|
|
2575
|
+
text-align: right;
|
|
2576
|
+
margin-left: ${j.balanceLeftMargin};
|
|
2577
|
+
`,ep=a.div`
|
|
2578
|
+
display: flex;
|
|
2579
|
+
flex-direction: row;
|
|
2580
|
+
flex-shrink: 2;
|
|
2581
|
+
flex-grow: 1;
|
|
2582
|
+
align-items: center;
|
|
2583
|
+
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2584
|
+
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2585
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2586
|
+
${({isSticky:e})=>e?F`
|
|
2587
|
+
position: -webkit-sticky;
|
|
2588
|
+
position: sticky;
|
|
2589
|
+
top: ${s.sp0};
|
|
2590
|
+
left: ${s.sp0};
|
|
2591
|
+
z-index: 20;
|
|
2592
|
+
`:null}
|
|
2593
|
+
`,tp=a.div`
|
|
2594
|
+
display: flex;
|
|
2595
|
+
flex-grow: 8;
|
|
2596
|
+
`,np=a(_)`
|
|
2597
|
+
user-select: none;
|
|
2598
|
+
user-select: none;
|
|
2599
|
+
clear: both;
|
|
2600
|
+
display: inline-block;
|
|
2601
|
+
overflow: hidden;
|
|
2602
|
+
white-space: nowrap;
|
|
2603
|
+
text-overflow: ellipsis;
|
|
2604
|
+
text-align: left;
|
|
2605
|
+
margin-left: ${s.sp2};
|
|
2606
|
+
`,op=a(Ce)`
|
|
2607
|
+
display: flex;
|
|
2608
|
+
color: ${e=>e.theme.colors.primary};
|
|
2609
|
+
align-items: center;
|
|
2610
|
+
flex-direction: row;
|
|
2611
|
+
justify-content: flex-end;
|
|
2612
|
+
padding: 1px 6px;
|
|
2613
|
+
height: 20px;
|
|
2614
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
2615
|
+
border-radius: ${s.sp1};
|
|
2616
|
+
margin: 0 ${s.sp5} 0 ${s.sp3};
|
|
2617
|
+
`,ip=({metadata:e,depth:n})=>n===0?null:e.hasSibling!==!0||e.isLastNode?t.jsx(rr,{}):t.jsx(ir,{}),rp=({type:e,balance:n,color:o,isActualVsForecastOn:i,compareMode:r})=>t.jsxs(Xu,{children:[ae(e)===!0||i?t.jsx(it,{style:{color:o},children:q(n)}):t.jsx(it,{style:{color:o},children:J(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(it,{style:{color:o},children:J(n)}),t.jsx(it,{style:{color:o},children:r==="compare_mode_percent"?pe(n):ge(n)})]}):null]});function ap({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,className:l,classCode:c,sectionBalances:d,isActualVsForecastOn:p,compareMode:u,hasChildren:g,isScrolling:h,isOpen:x,isLeaf:f,metadata:m,showClassAccountNumber:w,onClick:b,depth:k}){const v=W(),S=!f,$=S?"pointer":"default",B=de().colors.primary,L=l.length>0?l.substr(0,1).toUpperCase():"",[M,T]=V.useState(!1),D=m.classAncestorMetadata??[];return t.jsxs(qu,{"data-testid":y("class-row-root-container",i),height:r,bgColor:n,children:[t.jsxs(Qu,{"data-testid":y("class-row-container",i),style:{cursor:$},onClick:()=>b?.(i),onMouseOver:()=>T(!0),onMouseLeave:()=>T(!1),children:[xe(e)===!0?t.jsxs(ep,{isSticky:o,windowSize:v,bgColor:n,children:[t.jsx(ja,{name:l,ancestorMetadata:D,depth:k}),t.jsx(ip,{metadata:D[k],depth:k}),t.jsx(ve,{color:I(B),showCollapsedIcon:!x,showIcon:M&&S,firstLetter:L,showTreeLine:g}),t.jsx(tp,{children:t.jsx(np,{style:{color:B},children:l})}),M===!0&&w===!0&&c!==void 0&&t.jsx(op,{children:c})]}):null,ke(e)===!0?t.jsx(Ju,{children:d.map((K,X)=>t.jsx(rp,{type:e,sectionName:l,balance:K,isActualVsForecastOn:p,compareMode:u,color:B},X))}):null]}),t.jsx(lp,{isScrolling:h,isLeaf:f,isOpen:x})]})}function lp({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(je,{isScrolling:e,kind:"section_row_separator"}):null}const cp=a.div`
|
|
2618
|
+
display: flex;
|
|
2619
|
+
flex: 1 1 auto;
|
|
2620
|
+
width: fit-content;
|
|
2621
|
+
min-width: 100%;
|
|
2622
|
+
flex-direction: column;
|
|
2623
|
+
height: ${e=>e.height}px;
|
|
2624
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2625
|
+
`,sp=a.div`
|
|
2626
|
+
user-select: none;
|
|
2627
|
+
display: flex;
|
|
2628
|
+
flex: 1 1 auto;
|
|
2629
|
+
flex-flow: row;
|
|
2630
|
+
justify-content: flex-start;
|
|
2631
|
+
align-items: center;
|
|
2632
|
+
`,dp=a.div`
|
|
2633
|
+
display: flex;
|
|
2634
|
+
flex: 1 0 auto;
|
|
2635
|
+
flex-direction: row;
|
|
2636
|
+
justify-content: flex-end;
|
|
2637
|
+
`,hp=a.div`
|
|
2638
|
+
display: flex;
|
|
2639
|
+
flex-direction: row;
|
|
2640
|
+
justify-content: flex-start;
|
|
2641
|
+
`,rt=a(_)`
|
|
2642
|
+
user-select: none;
|
|
2643
|
+
max-width: ${j.balanceWidth};
|
|
2644
|
+
min-width: ${j.balanceWidth};
|
|
2645
|
+
text-align: right;
|
|
2646
|
+
margin-left: ${j.balanceLeftMargin};
|
|
2647
|
+
`,up=a.div`
|
|
2648
|
+
display: flex;
|
|
2649
|
+
flex-direction: row;
|
|
2650
|
+
flex-shrink: 2;
|
|
2651
|
+
flex-grow: 1;
|
|
2652
|
+
align-items: center;
|
|
2653
|
+
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2654
|
+
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2655
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2656
|
+
${({isSticky:e})=>e?F`
|
|
2657
|
+
position: -webkit-sticky;
|
|
2658
|
+
position: sticky;
|
|
2659
|
+
top: ${s.sp0};
|
|
2660
|
+
left: ${s.sp0};
|
|
2661
|
+
z-index: 20;
|
|
2662
|
+
`:null}
|
|
2663
|
+
`,pp=a(_)`
|
|
2664
|
+
user-select: none;
|
|
2665
|
+
user-select: none;
|
|
2666
|
+
clear: both;
|
|
2667
|
+
display: inline-block;
|
|
2668
|
+
overflow: hidden;
|
|
2669
|
+
white-space: nowrap;
|
|
2670
|
+
text-overflow: ellipsis;
|
|
2671
|
+
text-align: left;
|
|
2672
|
+
margin-left: ${s.sp2};
|
|
2673
|
+
`,gp=({type:e,balance:n,color:o,isActualVsForecastOn:i,compareMode:r})=>t.jsxs(hp,{children:[ae(e)===!0||i?t.jsx(rt,{style:{color:o},children:q(n)}):t.jsx(rt,{style:{color:o},children:J(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(rt,{style:{color:o},children:J(n)}),t.jsx(rt,{style:{color:o},children:r==="compare_mode_percent"?pe(n):ge(n)})]}):null]});function Ln({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,sectionName:l,sectionBalances:c,isActualVsForecastOn:d,compareMode:p,sectionColor:u,isScrolling:g,isOpen:h,isLeaf:x,onClick:f}){const m=W(),w=!x,b=w?"pointer":"default",k=l.length>0?l.substring(0,1).toUpperCase():"",[v,S]=V.useState(!1);return t.jsxs(cp,{"data-testid":y("section-row",i),height:r,bgColor:n,children:[t.jsxs(sp,{"data-testid":y("section-row-container",i),style:{cursor:b},onClick:()=>f?.(i),onMouseOver:()=>S(!0),onMouseLeave:()=>S(!1),children:[xe(e)===!0?t.jsxs(up,{isSticky:o,windowSize:m,bgColor:n,children:[t.jsx(ve,{color:I(u),showCollapsedIcon:!h,showIcon:v&&w,firstLetter:k}),t.jsx(pp,{style:{color:u},children:l})," "]}):null,ke(e)===!0?t.jsx(dp,{children:c.map(($,B)=>t.jsx(gp,{type:e,sectionName:l,balance:$,isActualVsForecastOn:d,compareMode:p,color:u},B))}):null]}),t.jsx(xp,{isScrolling:g,isLeaf:x,isOpen:h})]})}function xp({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(je,{isScrolling:e,kind:"section_row_separator"}):null}const fp=a.div`
|
|
2674
|
+
display: flex;
|
|
2675
|
+
flex: 1 1 auto;
|
|
2676
|
+
width: fit-content;
|
|
2677
|
+
min-width: 100%;
|
|
2678
|
+
flex-direction: column;
|
|
2679
|
+
height: ${e=>e.height-1}px;
|
|
2680
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2681
|
+
`,mp=a.div`
|
|
2682
|
+
user-select: none;
|
|
2683
|
+
display: flex;
|
|
2684
|
+
flex: 1 1 auto;
|
|
2685
|
+
flex-flow: row;
|
|
2686
|
+
justify-content: flex-start;
|
|
2687
|
+
align-items: center;
|
|
2688
|
+
`,wp=a.div`
|
|
2689
|
+
display: flex;
|
|
2690
|
+
flex: 1 0 auto;
|
|
2691
|
+
flex-direction: row;
|
|
2692
|
+
justify-content: flex-end;
|
|
2693
|
+
|
|
2694
|
+
.field-thread-wrapper {
|
|
2695
|
+
--ft-icon-right: -28px;
|
|
2696
|
+
--ft-icon-top: -6px;
|
|
2697
|
+
|
|
2698
|
+
outline: none;
|
|
2699
|
+
overflow: visible;
|
|
2700
|
+
z-index: 0;
|
|
2701
|
+
|
|
2702
|
+
.active-thread-count {
|
|
2703
|
+
z-index: 4;
|
|
2704
|
+
pointer-events: auto;
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2707
|
+
&::after {
|
|
2708
|
+
content: "";
|
|
2709
|
+
position: absolute;
|
|
2710
|
+
top: -${s.sp2};
|
|
2711
|
+
right: -36px;
|
|
2712
|
+
width: 36px;
|
|
2713
|
+
height: calc(100% + ${s.sp3});
|
|
2714
|
+
z-index: 3;
|
|
2715
|
+
pointer-events: auto;
|
|
2716
|
+
}
|
|
2717
|
+
}
|
|
2718
|
+
|
|
2719
|
+
.field-thread-wrapper:hover,
|
|
2720
|
+
.field-thread-wrapper:focus-within {
|
|
2721
|
+
outline: none;
|
|
2722
|
+
z-index: 5;
|
|
2723
|
+
}
|
|
2724
|
+
`,yp=a.div`
|
|
2725
|
+
display: flex;
|
|
2726
|
+
flex-direction: row;
|
|
2727
|
+
justify-content: flex-start;
|
|
2728
|
+
`,at=a(_)`
|
|
2729
|
+
user-select: none;
|
|
2730
|
+
min-width: ${j.balanceWidth};
|
|
2731
|
+
max-width: ${j.balanceWidth};
|
|
2732
|
+
text-align: right;
|
|
2733
|
+
margin-left: ${j.balanceLeftMargin};
|
|
2734
|
+
color: ${e=>e.theme.colors.hero};
|
|
2735
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2736
|
+
&:hover {
|
|
2737
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2738
|
+
}
|
|
2739
|
+
`,bp=a.div`
|
|
2740
|
+
display: flex;
|
|
2741
|
+
flex-direction: row;
|
|
2742
|
+
flex-shrink: 2;
|
|
2743
|
+
flex-grow: 1;
|
|
2744
|
+
align-items: center;
|
|
2745
|
+
height: ${e=>e.containerHeight-1}px; // Else bottom line doesnt show up
|
|
2746
|
+
// because the height of the svg is much larger
|
|
2747
|
+
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2748
|
+
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2749
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2750
|
+
color: ${e=>e.theme.colors.hero};
|
|
2751
|
+
|
|
2752
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2753
|
+
&:hover {
|
|
2754
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2755
|
+
}
|
|
2756
|
+
${({isSticky:e})=>e?F`
|
|
2757
|
+
position: -webkit-sticky;
|
|
2758
|
+
position: sticky;
|
|
2759
|
+
top: ${s.sp0};
|
|
2760
|
+
left: ${s.sp0};
|
|
2761
|
+
z-index: 20;
|
|
2762
|
+
`:null}
|
|
2763
|
+
`,kp=a(_)`
|
|
2764
|
+
user-select: none;
|
|
2765
|
+
clear: both;
|
|
2766
|
+
display: inline-block;
|
|
2767
|
+
text-align: left;
|
|
2768
|
+
`,jp=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i,account:r,showTotal:l,reportId:c,companyId:d,companyName:p,isCommentingEnabled:u,isForecastReport:g,onAccountBalanceClick:h})=>{const x=n!=null&&yr(n?.type),f=r!=null&&n!=null&&h!=null&&x!==!0,m=l===!0?Lo(n):q(n),w=l===!0?Tt(n):J(n),b=l===!0?Ao(n):pe(n),k=l===!0?Bo(n):ge(n),v=nr(r?.accountId,n),S=dr({type:"details",key:c}),$=t.jsxs(yp,{"data-testid":y("account-row-balance-element",e),children:[ae(e)===!0||o?t.jsx(at,{"data-testid":y("account-row-balance-actual",e),isClickable:f,onClick:L=>{L.stopPropagation(),f===!0&&r!=null&&n!=null&&h?.(r,n,bt(r,n))},children:m}):t.jsx(at,{"data-testid":y("account-row-balance-forecast",e),isClickable:!1,children:w}),o?t.jsxs(t.Fragment,{children:[t.jsx(at,{"data-testid":y("account-row-balance-forecast",e),isClickable:!1,children:w}),t.jsx(at,{"data-testid":y("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?b:k})]}):null]});if(!u||v==null||!d)return $;const B=g?"forecast_report":"standard_report";return t.jsx(or,{isThreadAllowed:!0,dashboardTabKey:S,roomId:`dashboard_${d}`,companyId:d,companyName:p,entityId:v,dashboardOptionType:B,filterMetaData:{companyId:d,tab:B,entityType:`${B}.${S}`,entityId:v},children:$})},{common:{strings:{empty:Sp,plus:Cp}}}=N.getLocalizedStrings();function vp({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,classDepth:l,accountBalances:c,isActualVsForecastOn:d,compareMode:p,metadata:u,isScrolling:g,noMarginForAccount:h,isLeaf:x,isOpen:f,isLastNode:m,account:w,reportId:b,onAccountBalanceClick:k,onClick:v}){const S=W(),$=en(),B=$?.currentTenant?.companyId??"",L=$?.currentTenant?.companyName??"",M=typeof b=="string"&&b.includes(Cp),{useFeatureGate:T}=Qi(),{isFeatureEnabled:D}=T(Ji.isReportsCommentingEnabled),K=D,X=w!=null?w.id.length-1:0,Q=w?.hasSiblings??!1,ie=w!=null&&w.children.length!==0,he=u,le=w?.account.accountDescription?w.account.accountDescription:Sp,re=w?.account.accountName?w.account.accountName:le;return t.jsxs(fp,{"data-testid":y("sub-account-row",i),height:r,bgColor:n,children:[t.jsxs(mp,{"data-testid":y("sub-account-row-container",i),onClick:()=>v?.(i),children:[t.jsx(bp,{isClickable:ie,isSticky:o,windowSize:S,bgColor:n,containerHeight:r,children:t.jsx(kp,{title:re,children:t.jsx(pn,{displayName:re,depth:X,classDepth:l,isLastNode:m,hasChildren:ie,hasSiblings:Q,isLeaf:x,collapsed:!f,subAccountAnscestorMetadata:he.subAccountAncestorMetadata,classAnscestorMetadata:he.classAncestorMetadata??[],noMarginForAccount:h})})}),ke(e)===!0?t.jsx(wp,{children:c.map((be,$e)=>t.jsx(jp,{type:e,isActualVsForecastOn:d,compareMode:p,balance:be,account:w?.account,showTotal:!f,reportId:b,companyId:B,companyName:L,isCommentingEnabled:K,isForecastReport:M,onAccountBalanceClick:k==null?void 0:(ce,ue,_e)=>{k(i,ce,ue,_e)}},$e))}):null]}),t.jsx($p,{isScrolling:g,isLeaf:x,isOpen:f,depth:X,isSticky:o,classDepth:l,noMarginForAccount:h})]})}function $p({isScrolling:e,depth:n,isOpen:o,isLeaf:i,isSticky:r,classDepth:l,noMarginForAccount:c}){return o&&i!==!0?null:t.jsx(je,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:n,isSticky:r,classDepth:l,noMarginForAccount:c}})}const _p=[10,14,20,20,20],Lp=a.div`
|
|
2769
|
+
display: flex;
|
|
2770
|
+
flex: 1 1 auto;
|
|
2771
|
+
width: fit-content;
|
|
2772
|
+
min-width: 100%;
|
|
2773
|
+
flex-direction: column;
|
|
2774
|
+
height: ${e=>e.height-1}px;
|
|
2775
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2776
|
+
`,Ap=a.div`
|
|
2777
|
+
user-select: none;
|
|
2778
|
+
display: flex;
|
|
2779
|
+
flex: 1 1 auto;
|
|
2780
|
+
flex-flow: row;
|
|
2781
|
+
justify-content: flex-start;
|
|
2782
|
+
align-items: center;
|
|
2783
|
+
`,Bp=a.div`
|
|
2784
|
+
width: ${e=>Io.emptyLeftContainer.valuePx(e.windowSize)};
|
|
2785
|
+
height: ${s.sp1};
|
|
2786
|
+
`,Ip=a.div`
|
|
2787
|
+
display: flex;
|
|
2788
|
+
flex: 1 0 auto;
|
|
2789
|
+
flex-direction: row;
|
|
2790
|
+
justify-content: flex-end;
|
|
2791
|
+
`,Op=a.div`
|
|
2792
|
+
display: flex;
|
|
2793
|
+
flex-direction: row;
|
|
2794
|
+
justify-content: flex-start;
|
|
2795
|
+
`,lt=a(_)`
|
|
2796
|
+
user-select: none;
|
|
2797
|
+
min-width: ${j.balanceWidth};
|
|
2798
|
+
max-width: ${j.balanceWidth};
|
|
2799
|
+
text-align: right;
|
|
2800
|
+
margin-left: ${j.balanceLeftMargin};
|
|
2801
|
+
color: ${e=>e.theme.colors.primary};
|
|
2802
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2803
|
+
`,Np=a.div`
|
|
2804
|
+
display: flex;
|
|
2805
|
+
flex-direction: row;
|
|
2806
|
+
flex-shrink: 2;
|
|
2807
|
+
flex-grow: 1;
|
|
2808
|
+
align-items: center;
|
|
2809
|
+
height: ${e=>e.containerHeight-1}px;
|
|
2810
|
+
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2811
|
+
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2812
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2813
|
+
${({isSticky:e})=>e?F`
|
|
2814
|
+
position: -webkit-sticky;
|
|
2815
|
+
position: sticky;
|
|
2816
|
+
top: ${s.sp0};
|
|
2817
|
+
left: ${s.sp0};
|
|
2818
|
+
z-index: 20;
|
|
2819
|
+
`:null}
|
|
2820
|
+
`,Mp=a(_)`
|
|
2821
|
+
user-select: none;
|
|
2822
|
+
clear: both;
|
|
2823
|
+
display: inline-block;
|
|
2824
|
+
overflow: hidden;
|
|
2825
|
+
white-space: nowrap;
|
|
2826
|
+
text-overflow: ellipsis;
|
|
2827
|
+
text-align: left;
|
|
2828
|
+
margin-left: ${e=>_p[e.depth]}px;
|
|
2829
|
+
color: ${e=>e.theme.colors.primary};
|
|
2830
|
+
width: ${e=>j.titleWidth.value(e.windowSize)-80*e.depth}px;
|
|
2831
|
+
`,Wp=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i})=>t.jsxs(Op,{"data-testid":y("sub-account-row-balance-element",e),children:[ae(e)===!0||o?t.jsx(lt,{"data-testid":y("sub-account-row-balance-element-actual",e),isClickable:!1,children:Lo(n)}):t.jsx(lt,{"data-testid":y("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Tt(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(lt,{"data-testid":y("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Tt(n)}),t.jsx(lt,{"data-testid":y("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?Ao(n):Bo(n)})]}):null]});function Pp({type:e,backgroundColor:n,isSticky:o,height:i,classDepth:r,accountName:l,accountBalances:c,account:d,noMarginForAccount:p,isActualVsForecastOn:u,compareMode:g,isScrolling:h,metadata:x}){const f=W(),m=N.getLocalizedStrings().reports.sections,w=d!=null?d.id.length-1:0,b=x;return t.jsxs(Lp,{height:i,bgColor:n,children:[t.jsxs(Ap,{children:[t.jsxs(Np,{isSticky:o,windowSize:f,bgColor:n,containerHeight:i,children:[r!=null?t.jsx(No,{ancestorMetadata:b.classAncestorMetadata??[],depth:r,name:l}):p===!1?t.jsx(Bp,{windowSize:f}):null,t.jsx(Mo,{ancestorMetadata:b.subAccountAncestorMetadata,depth:w,name:l}),t.jsx(Mp,{"data-testid":y("sub-account-row-name",e),isClickable:!1,title:l,depth:w,windowSize:f,children:m.totalPrefix+" "+l})]}),ke(e)===!0?t.jsx(Ip,{children:c.map((k,v)=>t.jsx(Wp,{type:e,isActualVsForecastOn:u,compareMode:g,balance:k},v))}):null]}),t.jsx(zp,{isScrolling:h,nestingLevel:w,isSticky:o,classDepth:r,noMarginForAccount:p})]})}function zp({isScrolling:e,nestingLevel:n,isSticky:o,classDepth:i,noMarginForAccount:r}){return t.jsx(je,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:n,isSticky:o,classDepth:i,noMarginForAccount:r}})}const Fp=a.div`
|
|
2832
|
+
user-select: none;
|
|
2833
|
+
display: flex;
|
|
2834
|
+
flex: 1 1 auto;
|
|
2835
|
+
width: fit-content;
|
|
2836
|
+
min-width: 100%;
|
|
2837
|
+
height: ${e=>e.height}px;
|
|
2838
|
+
flex-flow: row;
|
|
2839
|
+
justify-content: flex-start;
|
|
2840
|
+
align-items: center;
|
|
2841
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2842
|
+
`,Tp=a.div`
|
|
2843
|
+
display: flex;
|
|
2844
|
+
flex: 1 0 auto;
|
|
2845
|
+
flex-direction: row;
|
|
2846
|
+
justify-content: flex-end;
|
|
2847
|
+
`,Re=j.balanceWidthInPx+j.balanceLeftMarginInPx,zi=a.div`
|
|
2848
|
+
display: flex;
|
|
2849
|
+
max-height: 54px;
|
|
2850
|
+
min-height: 54px;
|
|
2851
|
+
min-width: ${e=>e.isActualVsForecastOn?3*(Re-2)-j.balanceLeftMarginInPx:j.balanceWidthInPx}px;
|
|
2852
|
+
justify-content: center;
|
|
2853
|
+
align-items: center;
|
|
2854
|
+
background-color: ${e=>e.theme.colors.background};
|
|
2855
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2856
|
+
border-radius: ${s.sp2};
|
|
2857
|
+
margin-left: ${e=>e.isActualVsForecastOn?C[0]:j.balanceLeftMarginInPx}px;
|
|
2858
|
+
color: ${e=>e.theme.colors.primary};
|
|
2859
|
+
`,Fi=a(_)`
|
|
2860
|
+
display: flex;
|
|
2861
|
+
user-select: none;
|
|
2862
|
+
flex-direction: row;
|
|
2863
|
+
justify-content: center;
|
|
2864
|
+
align-items: center;
|
|
2865
|
+
height: ${j.balanceHeight};
|
|
2866
|
+
max-width: ${j.balanceWidthInPx-2}px;
|
|
2867
|
+
width: 138px;
|
|
2868
|
+
text-align: center;
|
|
2869
|
+
`,Vp=a.div`
|
|
2870
|
+
height: 100%;
|
|
2871
|
+
display: inline-block;
|
|
2872
|
+
flex-direction: row;
|
|
2873
|
+
align-items: center;
|
|
2874
|
+
min-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2875
|
+
color: ${e=>e.theme.colors.grey5};
|
|
2876
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2877
|
+
border: 1px solid ${e=>e.bgColor?.hex()};
|
|
2878
|
+
${({isSticky:e})=>e?F`
|
|
2879
|
+
position: -webkit-sticky;
|
|
2880
|
+
position: sticky;
|
|
2881
|
+
top: ${s.sp0};
|
|
2882
|
+
left: ${s.sp0};
|
|
2883
|
+
z-index: 20;
|
|
2884
|
+
`:null}
|
|
2885
|
+
`,Dp=a.div`
|
|
2886
|
+
display: flex;
|
|
2887
|
+
width: ${e=>e.isActualVsForecastOn?3*Re:Re}px;
|
|
2888
|
+
flex-direction: row;
|
|
2889
|
+
justify-content: flex-start;
|
|
2890
|
+
color: ${e=>e.theme.colors.champion};
|
|
2891
|
+
`,Ft=a(_)`
|
|
2892
|
+
display: flex;
|
|
2893
|
+
justify-content: flex-end;
|
|
2894
|
+
align-items: center;
|
|
2895
|
+
height: ${j.balanceHeight};
|
|
2896
|
+
width: ${j.balanceWidth};
|
|
2897
|
+
min-width: ${j.balanceWidth};
|
|
2898
|
+
margin-left: ${j.balanceLeftMargin};
|
|
2899
|
+
margin-top: ${s.sp3};
|
|
2900
|
+
`,Ep=a.div`
|
|
2901
|
+
display: flex;
|
|
2902
|
+
max-height: 54px;
|
|
2903
|
+
min-height: 54px;
|
|
2904
|
+
justify-content: center;
|
|
2905
|
+
align-items: center;
|
|
2906
|
+
color: ${e=>e.theme.colors.champion};
|
|
2907
|
+
`,Gp=a.div``,Rp=a(_)`
|
|
2908
|
+
display: flex;
|
|
2909
|
+
justify-content: center;
|
|
2910
|
+
align-items: center;
|
|
2911
|
+
max-height: 54px;
|
|
2912
|
+
min-height: 54px;
|
|
2913
|
+
background-color: ${e=>e.theme.colors.background};
|
|
2914
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2915
|
+
border-radius: ${s.sp2};
|
|
2916
|
+
margin-left: ${j.balanceLeftMarginInPx}px;
|
|
2917
|
+
color: ${e=>e.theme.colors.primary};
|
|
2918
|
+
width: ${j.balanceWidth};
|
|
2919
|
+
min-width: ${j.balanceWidth};
|
|
2920
|
+
`,Hp=a.div`
|
|
2921
|
+
display: flex;
|
|
2922
|
+
width: ${e=>e.isActualVsForecastOn?3*Re:Re}px;
|
|
2923
|
+
flex-direction: column;
|
|
2924
|
+
align-items: flex-end;
|
|
2925
|
+
`,Kp=a.div`
|
|
2926
|
+
max-height: 54px;
|
|
2927
|
+
min-height: 54px;
|
|
2928
|
+
`,Ti=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:i,bookCloseDate:r})=>{const l=N.getLocalizedStrings().reports,c=r==null||i==null||n.balanceType!=="default"&&n.balanceType!=="default_with_percent"?void 0:_o(o,e,n,r,i),d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,p=Si(c,o);return t.jsx(Kp,{children:r!=null&&i!=null&&c!=null&&d!=null&&p!=null?t.jsx(ji,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:d,infoContent:p,tagType:c}):t.jsx(zi,{isActualVsForecastOn:!1,children:t.jsx(Fi,{children:Ye(e,n,o)})})})},Yp=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,isActualVsForecastOn:i,compareMode:r,dataAvailable:l,bookCloseDate:c,onCompareModeChanged:d})=>{const p=N.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${N.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:N.getLocalizedStrings().compareMode.changePercent;return i===!0?t.jsxs(Hp,{isActualVsForecastOn:i,children:[t.jsx(zi,{isActualVsForecastOn:i,children:t.jsx(Fi,{children:Ye(e,n,o)})}),t.jsxs(Dp,{isActualVsForecastOn:i,children:[t.jsx(Ft,{children:p.actual}),t.jsx(Ft,{children:p.forecast}),t.jsx(Ft,{children:t.jsx(Cn,{title:u,titleTextStyle:nn.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:g=>{g!=="off"?d?.(g):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(Ti,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:l,bookCloseDate:c})},Up=({firstMonthOfFY:e,timeframeTicks:n,timeframe:o,compareMode:i,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:c})=>{const d=de(),p=i==="compare_mode_amount"?`${N.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:N.getLocalizedStrings().compareMode.changePercent;return t.jsx(Ep,{children:n.map((u,g)=>t.jsx(V.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(Rp,{children:t.jsx(Cn,{title:p,titleTextStyle:nn.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:i,menuPosition:"right",onCompareModeChanged:h=>{h!=="off"&&(h==="compare_mode_amount"||h==="compare_mode_percent"?c?.(h):console.warn("Invalid compare mode option"))}})}):t.jsx(Gp,{children:t.jsx(Ti,{firstMonthOfFY:e,timeframeTick:u,timeframe:o,dataAvailable:r,bookCloseDate:l},g)})},g))})};function Zp({type:e,backgroundColor:n,isSticky:o,height:i,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:c,timeframe:d,timeframeTicks:p,compareMode:u,dataAvailable:g,bookCloseDate:h,onCompareModeChanged:x}){const f=W();return t.jsxs(Fp,{height:i,bgColor:n,children:[xe(e)===!0?t.jsx(Vp,{isSticky:o,windowSize:f,bgColor:n,children:" . "}):null,t.jsx(Tp,{children:l===!0?t.jsx(Up,{firstMonthOfFY:c,timeframe:d,timeframeTicks:p,compareMode:u,dataAvailable:g,bookCloseDate:h,onCompareModeChanged:x}):p.map((m,w)=>t.jsx(Yp,{firstMonthOfFY:c,timeframeTick:m,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:g,bookCloseDate:h,onCompareModeChanged:x},w))})]})}const Lt=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="ac_report"||o.element.data==null)return null;const x=o.element.data,f=Ge(x)===!0?x.horizontalTreeView:void 0,m=Ge(x)===!0&&f==null?16*Math.max(0,x.depth-2):void 0,w=te((Ke(o.config.reportId)===!0||Co(o.config.reportId)===!0?ri(0,o.config.filterAccountsWithNilBalances):ut(o.element.sectionType,"no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances)).acBalanceSelector(x),o.config.displayOrder,o.element.numOfBalances),b=f!=null&&f.hasChildren&&h!=null?{isOpen:u,onRowClick:()=>h(e)}:void 0;return t.jsx(Du,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,accountBalances:w.balances,isScrolling:c,isLeaf:d,isLastNode:p,account:x,titleIndentExtraPx:m,horizontalTreeView:f,horizontalCollapse:b,onAccountBalanceClick:h==null?void 0:(k,v,S,$)=>{h?.(k,v,S,$)}})},Ue=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="ac_subaccount"||o.element.data==null)return null;const x=o.element.data,f=Oi(_n("no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances).acBalanceSelector(x),o.config.displayOrder,o.element.numOfBalances),m=x.account.classesViewParentId?.parentClassId!=null?x.account.classesViewParentId?.parentClassId.length-1:void 0,w=o.config.reportId==="operating_expenses";return t.jsx(vp,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",classDepth:m,compareMode:g,accountBalances:f.balances,isScrolling:c,isLeaf:d,isOpen:p,isLastNode:u,account:x,reportId:o.config.reportId,metadata:o.element.metadata,onClick:h,noMarginForAccount:w,onAccountBalanceClick:h==null?void 0:(b,k,v,S)=>{h?.(b,k,v,S)}})},At=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="ac_group_report"||o.element.data==null)return null;const x=o.element.data,f=te(ut(o.element.sectionType,"no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances).acGroupBalanceSelector(x),o.config.displayOrder,o.element.numOfBalances);return t.jsx(bu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,leftChevron:d?"open":"collapsed",accountGroupName:x.accountGroupName,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:m=>{h?.(m)}})},An=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="ac_group_subaccount"||o.element.data==null)return null;const x=o.element.data,f=te(_n("no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances).acGroupBalanceSelector(x),o.config.displayOrder,o.element.numOfBalances);return t.jsx(Bu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,leftChevron:d?"open":"collapsed",accountGroupName:x.accountGroupName,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:m=>{h?.(m)}})},Bn=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="section"||o.element.data==null)return null;const x=un(o.element.title),f=te(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Ln,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:x,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:m=>{h?.(m)}})},Bt=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="section_with_ac_only"||o.element.data==null)return null;const x=un(o.element.title),f=te(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Ln,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:x,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:m=>{h?.(m)}})},In=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="calculated_section"||o.element.data==null)return null;const x=un(o.element.title),f=te(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Ln,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:x,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:m=>{h?.(m)}})},Ze=(e,n,o,i,r,l,c,d,p)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,g=_n("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),h=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,x=Oi(g.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),f=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(Pp,{type:e,backgroundColor:i,isSticky:r,height:o,accountName:u.account.accountName,account:u,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:p,accountBalances:x.balances,isScrolling:l,noMarginForAccount:f,isLeaf:c,isLastNode:d,metadata:n.element.metadata,classDepth:h})},qe=(e,n,o,i,r,l,c,d)=>{if(o.element.kind!=="timeframe_headers"&&o.element.kind!=="timeframe_headers_with_forecast")return null;const p=We(o.element.data,o.config.displayOrder),u=p.length>0?p[0].balanceTimeFrame:"month",g=p.map(h=>Me(h));return t.jsx(Zp,{treeNodeId:e,backgroundColor:r,isSticky:l,type:n,height:i,isActualVsForecastOn:o.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:o.config.mode==="this_period_vs_period_before"&&g.length>1,firstMonthOfFY:o.config.firstMonthOfFY,timeframe:u,timeframeTicks:g,compareMode:c,dataAvailable:o.config.dataAvailable,bookCloseDate:o.config.bookCloseDate,onCompareModeChanged:d})},Vi=(e,n,o,i,r,l,c,d,p,u,g,h,x)=>{if(o.element.kind!="class"||o.element.data==null)return null;const f=o.element.data,m=te(f.childrenBalancesTotal,o.config.displayOrder,o.element.numOfBalances),w=g>1;return t.jsx(ap,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,className:o.element.title,classCode:o.element.data.class.accountingClassNumber,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",depth:f.id.length-1,compareMode:h,sectionBalances:m.balances,isScrolling:c,isOpen:d,isLeaf:p,hasChildren:f.children.length>0,isLastNode:u,isSubClass:w,showClassAccountNumber:o.config.showClassAccountNumber,onClick:b=>{x?.(b)},metadata:o.element.metadata})},fo=e=>{const{height:n,data:{reportElementData:o,id:i,treeKind:r,isLeaf:l,isLastNode:c,nestingLevel:d,isFirstNode:p},isOpen:u,style:g,setOpen:h,isScrolling:x}=e,f=e.treeNodePadding?.left,m=e.treeNodePadding?.right;return t.jsx("div",{style:{...g,width:"auto",minWidth:"100%",paddingLeft:f,paddingRight:m},children:t.jsx(Di,{id:i,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:o,height:n,isSticky:e.isSticky,isScrolling:x??!1,isLeaf:l,isLastNode:c,isFirstNode:p,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick==null&&l?void 0:(w,b,k,v)=>{const S=l?u:!u;!l&&k==null&&(h(!u),e.onNodeCollapseToggled?.(w,!u)),e.onNodeClick?.(w,S,b,k,v)},compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},i)})},Di=e=>e.treeKind==="name_only"?t.jsx(tg,{...e}):cn(e.reportElementData.config.reportId)?t.jsx(og,{...e}):dn(e.reportElementData.config.reportId)===!0?t.jsx(ng,{...e}):Co(e.reportElementData.config.reportId)===!0?t.jsx(qp,{...e}):an(e.reportElementData.config.reportId)===!0?t.jsx(Qp,{...e}):Ke(e.reportElementData.config.reportId)===!0?t.jsx(Jp,{...e}):ln(e.reportElementData.config.reportId)===!0?t.jsx(Xp,{...e}):wr(e.reportElementData.config.reportId)===!0?t.jsx(eg,{...e}):hn(e.reportElementData.config.reportId)===!0?t.jsx(ig,{...e}):sn(e.reportElementData.config.reportId)===!0?t.jsx(rg,{...e}):null,qp=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,nestingLevel:g,compareMode:h,nodeClickHandler:x,onCompareModeChanged:f})=>{switch(o.element.kind){case"ac_report":return Lt(e,n,o,i,r,l,c,d,p,u,h,x);case"ac_group_report":return At(e,n,o,i,r,l,c,u,d,p,h,x);case"section":return Bn(e,n,o,i,r,l,c,u,d,p,h,x);case"section_with_ac_only":return Bt(e,n,o,i,r,l,c,u,d,p,h,x);case"calculated_section":case"calculated_section_type1":return In(e,n,o,i,r,l,c,u,d,p,h,x);case"title_string_only":default:return null;case"class_headers":return((m,w,b,k,v,S)=>{if(b.element.kind!=="class_headers")return null;const $=b.element.data;return t.jsx(Zu,{isSticky:S,type:w,height:k,backgroundColor:v,classColumns:$})})(0,n,o,i,r,l);case"timeframe_headers":case"timeframe_headers_with_forecast":return qe(e,n,o,i,r,l,h,f);case"class":return Vi(e,n,o,i,r,l,c,u,d,p,g,h,x);case"ac_subaccount":return Ue(e,n,o,i,r,l,c,d,u,p,h,x);case"ac_subentity_total":return Ze(n,o,i,r,l,c,d,p,h);case"headers_loading_in_progress":return((m,w,b)=>m.element.kind!=="headers_loading_in_progress"?null:t.jsx(ci,{height:w,backgroundColor:b,numOfBalances:m.element.numOfBalances}))(o,i,r);case"loading_in_progress":return((m,w,b)=>m.element.kind!=="loading_in_progress"?null:t.jsx(ai,{height:w,backgroundColor:b,title:m.element.title,numOfBalances:m.element.numOfBalances}))(o,i,r)}},Qp=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,compareMode:g,nodeClickHandler:h,onCompareModeChanged:x})=>{switch(o.element.kind){case"ac_report":return Lt(e,n,o,i,r,l,c,d,p,u,g,h);case"ac_group_report":return At(e,n,o,i,r,l,c,u,d,p,g,h);case"ac_subaccount":return Ue(e,n,o,i,r,l,c,d,u,p,g,h);case"ac_group_subaccount":return An(e,n,o,i,r,l,c,u,d,p,g,h);case"section":return Bn(e,n,o,i,r,l,c,u,d,p,g,h);case"section_with_ac_only":return Bt(e,n,o,i,r,l,c,u,d,p,g,h);case"calculated_section":case"calculated_section_type1":return In(e,n,o,i,r,l,c,u,d,p,g,h);case"title_string_only":default:return null;case"ac_subentity_total":return Ze(n,o,i,r,l,c,d,p,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return qe(e,n,o,i,r,l,g,x)}},Jp=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,nestingLevel:g,compareMode:h,nodeClickHandler:x,onCompareModeChanged:f})=>{switch(o.element.kind){case"ac_report":return Lt(e,n,o,i,r,l,c,d,p,u,h,x);case"ac_group_report":return At(e,n,o,i,r,l,c,u,d,p,h,x);case"section":return hi(e,n,o,i,r,l,c,u,d,p,h,x);case"section_with_ac_only":return Bt(e,n,o,i,r,l,c,u,d,p,h,x);case"calculated_section":case"calculated_section_type1":return ui(e,n,o,i,r,l,c,u,d,p,h,x);case"title_string_only":return wn(e,n,o,i,r,l,c,u,d,p,h,x);case"ac_subentity_total":return Ze(n,o,i,r,l,c,d,p,h);case"timeframe_headers":case"timeframe_headers_with_forecast":return qe(e,n,o,i,r,l,h,f);case"class":return Vi(e,n,o,i,r,l,c,u,d,p,g,h,x);case"ac_subaccount":return Ue(e,n,o,i,r,l,c,d,u,p,h,x);case"total":return pi(e,n,o,i,r,l,h,d);case"headers_loading_in_progress":return((m,w,b)=>m.element.kind!=="headers_loading_in_progress"?null:t.jsx(ci,{height:w,backgroundColor:b,numOfBalances:m.element.numOfBalances}))(o,i,r);case"loading_in_progress":return((m,w,b)=>m.element.kind!=="loading_in_progress"?null:t.jsx(ai,{height:w,backgroundColor:b,title:m.element.title,numOfBalances:m.element.numOfBalances}))(o,i,r);default:return null}},Xp=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,compareMode:g,nodeClickHandler:h,onCompareModeChanged:x})=>{switch(o.element.kind){case"ac_report":return((f,m,w,b,k,v,S,$,B,L,M)=>{if(w.element.kind!="ac_report"||w.element.data==null)return null;const T=w.element.data,D=te((Ke(w.config.reportId)===!0?ri(0,w.config.filterAccountsWithNilBalances):ut(w.element.sectionType,"no_filter",w.config.filterAccountsWithNilBalances,w.config.filterAccountGroupsWithNilBalances)).acBalanceSelector(T),w.config.displayOrder,w.element.numOfBalances);return t.jsx(Lc,{type:m,backgroundColor:k,isSticky:v,treeNodeId:f,height:b,accountBalances:D.balances,isCompareModeOn:w.config.mode==="this_period_vs_period_before",isForecastModeOn:w.config.mode==="actual_vs_forecast",isScrolling:S,isLeaf:$,isLastNode:B,compareMode:L,account:T,onAccountBalanceClick:M==null?void 0:(K,X,Q,ie)=>{M?.(K,X,Q,ie)}})})(e,n,o,i,r,l,c,d,p,g,h);case"ac_group_report":return((f,m,w,b,k,v,S,$,B,L,M,T)=>{if(w.element.kind!="ac_group_report"||w.element.data==null)return null;const D=w.element.data,K=te(ut(w.element.sectionType,"no_filter",w.config.filterAccountsWithNilBalances,w.config.filterAccountGroupsWithNilBalances).acGroupBalanceSelector(D),w.config.displayOrder,w.element.numOfBalances);return t.jsx(wc,{type:m,backgroundColor:k,isSticky:v,treeNodeId:f,height:b,accountGroupName:D.accountGroupName,compareMode:M,accountGroupBalances:K.balances,isScrolling:S,isOpen:$,isLeaf:B,isLastNode:L,onClick:X=>{T?.(X)}})})(e,n,o,i,r,l,c,u,d,p,g,h);case"ac_subaccount":return Ue(e,n,o,i,r,l,c,d,u,p,g,h);case"ac_group_subaccount":return An(e,n,o,i,r,l,c,u,d,p,g,h);case"section":return hi(e,n,o,i,r,l,c,u,d,p,g,h);case"section_with_ac_only":return((f,m,w,b,k,v,S,$,B,L,M,T)=>{if(w.element.kind!="section_with_ac_only"||w.element.data==null)return null;const D=kn(w.config.reportId,w.element.sectionType),K=te(w.element.data,w.config.displayOrder,w.element.numOfBalances);return t.jsx(bn,{type:m,backgroundColor:k,isSticky:v,treeNodeId:f,height:b,sectionName:w.element.title,sectionColor:D.color,sectionBalances:K.balances,isScrolling:S,isOpen:$,isLeaf:B,isLastNode:L,compareMode:M,onClick:X=>{T?.(X)}})})(e,n,o,i,r,l,c,u,d,p,g,h);case"calculated_section":case"calculated_section_type1":return ui(e,n,o,i,r,l,c,u,d,p,g,h);case"title_string_only":return wn(e,n,o,i,r,l,c,u,d,p,g,h);case"total":return pi(e,n,o,i,r,l,g,d);case"ac_subentity_total":return Ze(n,o,i,r,l,c,d,p,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return qe(e,n,o,i,r,l,g,x);default:return null}},eg=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,compareMode:g,nodeClickHandler:h,onCompareModeChanged:x})=>{switch(o.element.kind){case"ac_report":return Lt(e,n,o,i,r,l,c,d,p,u,g,h);case"ac_group_report":return At(e,n,o,i,r,l,c,u,d,p,g,h);case"section":return Bn(e,n,o,i,r,l,c,u,d,p,g,h);case"section_with_ac_only":return Bt(e,n,o,i,r,l,c,u,d,p,g,h);case"calculated_section":return In(e,n,o,i,r,l,c,u,d,p,g,h);case"calculated_section_type1":return((f,m,w,b,k,v,S)=>{if(m.element.kind!="calculated_section_type1"||m.element.data==null)return null;const $=te(m.element.data,m.config.displayOrder,m.element.numOfBalances);return t.jsx(Ol,{backgroundColor:b,isSticky:k,treeNodeId:f,heading:m.element.title,totalBalances:$.balances,height:w,isScrolling:v,isLastNode:S})})(e,o,i,r,l,c,p);case"title_string_only":return wn(e,n,o,i,r,l,c,u,d,p,g,h);case"ac_subentity_total":return Ze(n,o,i,r,l,c,d,p,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return qe(e,n,o,i,r,l,g,x);case"ac_subaccount":return Ue(e,n,o,i,r,l,c,d,u,p,g,h);case"ac_group_subaccount":return An(e,n,o,i,r,l,c,u,d,p,g,h);default:return null}},tg=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,toggleCheckHandler:g})=>o.element.kind==="checkbox_and_name_only"?((h,x,f,m,w,b,k,v,S,$,B)=>{if(f.element.kind!="checkbox_and_name_only")return null;const L=f.element.data,M=f.config.isClassToBeFilteredOut?.(L.classId)===!1;return t.jsx(eh,{type:x,backgroundColor:w,isSticky:b,treeNodeId:h,classId:L.classId,isChecked:M,isDisabled:!1,height:m,isScrolling:k,nestedClass:L,isOpen:v,isLeaf:S,isLastNode:$,showClassAccountNumber:f.config.showClassAccountNumber,onToggleCheck:B})})(e,n,o,i,r,l,c,u,d,p,g):null,ng=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLastNode:d,compareMode:p,onCompareModeChanged:u})=>{switch(o.element.kind){case"loading_in_progress":case"spacer_row":return((g,h,x,f)=>{if(g.element.kind!=="loading_in_progress")return null;const m=We(g.element.data,g.config.displayOrder).map(w=>Me(w));return t.jsx(rh,{backgroundColor:x,isSticky:f,height:h,isAccountColumnShown:g.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:g.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:m})})(o,i,r,l);case"timeframe_headers":return((g,h,x,f,m,w)=>{if(g.element.kind!=="timeframe_headers")return null;const b=We(g.element.data,g.config.displayOrder),k=b.length>0?b[0].balanceTimeFrame:"month",v=b.map(S=>Me(S));return t.jsx(Nh,{backgroundColor:m,isSticky:x,height:h,isAccountColumnShown:g.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:g.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:g.config.mode==="this_period_vs_period_before"&&v.length>1,firstMonthOfFY:g.config.firstMonthOfFY,timeframe:k,timeframeTicks:v,sortKey:g.config.opexByVendorConfig?.sortKey,sortOrder:g.config.opexByVendorConfig?.sortOrder,dataAvailable:g.config.dataAvailable,bookCloseDate:g.config.bookCloseDate,compareMode:f,onCompareModeChanged:w,onSortOrderChanged:g.config.opexByVendorConfig?.onSortOrderChanged})})(o,i,l,p,r,u);case"total":return((g,h,x,f,m,w,b)=>{const k=x.element.data,v=x.config.mode==="this_period_vs_period_before",S=v?x.element.numOfBalances+2:x.element.numOfBalances+1,$=Kn(k,x.config.displayOrder,S,v);return t.jsx(Hh,{type:h,backgroundColor:b,isSticky:m,treeNodeId:g,height:f,isScrolling:w,totalBalances:$.balances,title:x.element.title,isAccountColumnShown:x.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:x.config.opexByVendorConfig?.isClassColumnShown??!0})})(e,n,o,i,l,c,r);case"vendor_row":return((g,h,x,f,m,w,b)=>{if(h.element.kind!="vendor_row"||h.element.data==null)return null;const k=h.element.data,v=h.config.mode==="this_period_vs_period_before",S=Kn(k,h.config.displayOrder,h.element.numOfBalances,v);return t.jsx(cu,{backgroundColor:f,isSticky:m,height:x,isScrolling:w,vendorRowIndex:h.element.index,vendor:k.vendor,accountBase:k.account,classBase:k.classBase,isLastNode:b,balances:S.balances,isAccountColumnShown:h.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:h.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:($,B)=>{h.config.opexByVendorConfig?.onVendorNameAndBalanceClicked($,B)}})})(0,o,i,r,l,c,d);case"title_string_only":return((g,h,x,f)=>{if(g.element.kind!=="title_string_only")return null;const m=We(g.element.data,g.config.displayOrder).map(w=>Me(w));return t.jsx(hh,{backgroundColor:x,isSticky:f,height:h,isAccountColumnShown:g.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:g.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:m})})(o,i,r,l);default:return null}},og=({id:e,treeKind:n,reportElementData:o,height:i,isOpen:r,isSticky:l,isScrolling:c,isLastNode:d,backgroundColor:p,nodeClickHandler:u})=>{const{config:g}=o;switch(o.element.kind){case"spacer_row":default:return null;case"timeframe_headers":return((h,x,f,m,w,b,k)=>{if(h.element.kind!=="timeframe_headers")return null;const v=h.element.data;return t.jsx(Ea,{reportId:h.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:v,backgroundColor:f,isSticky:m,height:x,sortKey:w,sortOrder:b,onSortOrderChanged:k})})(o,i,p,l,g.agingReportConfig?.sortKey,g.agingReportConfig?.sortOrder,g.agingReportConfig?.onSortOrderChanged);case"total":return((h,x,f,m,w)=>{const b=x.element.data;return t.jsx(al,{type:h,backgroundColor:m,isSticky:w,height:f,totalBalances:b,isIndented:x.config.reportId==="accounts_receivable_aging",title:x.element.title})})(n,o,i,p,l);case"aging_report_row":return((h,x,f,m,w,b,k,v,S,$)=>{if(x.element.kind!=="aging_report_row")return null;if(x.config.reportId==="accounts_payable_aging"){const L=x.element.data;return t.jsx(Na,{backgroundColor:v,isLastNode:b,isScrolling:k,isSticky:w,height:f,balances:L.apAgingBalances,vendor:L.vendor,total:L.total,onEntityNameClick:S})}const B=x.element.data;return t.jsx(Ma,{treeNodeId:h,backgroundColor:v,isLastNode:b,isScrolling:k,isSticky:w,isOpen:m,height:f,metadata:x.element.metadata,balances:B.arAgingBalances,nestedCustomer:B,total:B.total,totalWithChildren:B.totalWithChildren,onEntityNameClick:S,onClick:$})})(e,o,i,r,l,d,c,p,g.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return((h,x,f,m,w)=>{if(h.element.kind!=="ac_subentity_total")return null;if(h.config.reportId==="accounts_receivable_aging"){const b=h.element.data;return t.jsx(Qa,{backgroundColor:w,isScrolling:m,isSticky:f,height:x,metadata:h.element.metadata,nestedCustomer:b,total:b.totalWithChildren,noMarginForEntity:!0})}return null})(o,i,l,c,p)}},ig=({id:e,reportElementData:n,height:o,backgroundColor:i,isSticky:r,isScrolling:l,isLeaf:c,isLastNode:d,isFirstNode:p,isOpen:u,onFluxBalanceClick:g,nodeClickHandler:h,hoveredParentIdProps:x})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return((f,m,w,b,k,v,S,$,B)=>{if(!Sn(m,"flux_vendor_account_class_row"))return null;const L=m.element.data,M=ki(L),T=m.element.metadata.vendorId;return t.jsx(Ls,{backgroundColor:w,isSticky:b,treeNodeId:f,balances:M,varianceAmount:L.varianceAmount,variancePercentage:L.variancePercentage,currency:L.currency,isScrolling:k,isLeaf:v,isLastNode:S,nodeMetadata:m.element.metadata,accountAndClass:L,onAccountAndClassBalanceClick:()=>B?.(T),isHoveredByParent:$?.hoveredParentId===T})})(e,n,i,r,l,c,d,x,g);case"flux_vendor_row":return Kd(e,n,i,r,l,u,c,d,p,x,h);case"section":return Yd(e,n,o,i,r,l,u,c,d,h);case"timeframe_headers":return((f,m,w)=>{if(f.element.kind!=="timeframe_headers")return null;const b=We(f.element.data,f.config.displayOrder),k=b.length>0?b[0].balanceTimeFrame:"month",v=b.map(S=>Me(S));return t.jsx(sd,{isSticky:w,height:m,firstMonthOfFY:f.config.firstMonthOfFY,timeframe:k,timeframeTicks:v,isBulkSelected:f.config.fluxAnalysisConfig?.reviewOpExIds.length===20,onSortOrderChanged:(S,$)=>{f.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),f.config.fluxAnalysisConfig?.onSortOrderChanged(S,$)},sortOrder:f.config.fluxAnalysisConfig?.sortOrder,sortKey:f.config.fluxAnalysisConfig?.sortKey})})(n,o,r);case"total":return((f,m)=>{if(f.element.kind!=="total")return null;const w=f.element.data;return t.jsx(bd,{type:"name+balances_actual",title:f.element.title,totalBalances:w.balances,varianceAmount:w.varianceAmount,variancePercentage:w.variancePercentage,currency:w.currency,height:m})})(n,o);case"loading_in_progress":return(f=>f.element.kind!=="loading_in_progress"?null:t.jsx(Bs,{}))(n);case"headers_loading_in_progress":return(f=>f.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ys,{}))(n);default:return null}},rg=({reportElementData:e,height:n,isSticky:o,isLastNode:i})=>{switch(e.element.kind){case"timeframe_headers":return function(r,l){if(r.element.kind!=="timeframe_headers")return null;const c=N.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,d=r.element.data,p=d.accountIDs.length===0;return t.jsx(qr,{sectionTitle:c.section[d.sectionId].title,isLoading:p,isSticky:l,height:ct("timeframe_headers")})}(e,o);case"loading_in_progress":return t.jsx(Mr,{height:ct("loading_in_progress")});case"total":return((r,l,c)=>{const d=r.element.data;return t.jsx(ga,{isSticky:c,height:l,sectionData:d})})(e,n,o);case"section":return t.jsx(Pr,{height:ct("section")});case"title_string_only":return((r,l)=>{const c=r.element.data,d=N.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(Xr,{height:l,title:d.section[c.sectionId].title})})(e,n);case"ac_group_report":return((r,l,c)=>{const d=r.element.data,p=r.config.accountReconciliationConfig?.selectedDrawerAccountId!=null&&d.accountReconEntity.account.accountId===r.config.accountReconciliationConfig?.selectedDrawerAccountId;return t.jsx(jr,{height:l,accountRecon:d,isLastRow:c,isSelectedRow:p,onReviewClicked:r.config.accountReconciliationConfig?.onReviewClicked,onConnectClicked:r.config.accountReconciliationConfig?.onConnectClicked,onReconnectClicked:r.config.accountReconciliationConfig?.onReconnectClicked,onOpenDrawerClicked:r.config.accountReconciliationConfig?.onOpenDrawerClicked,onStatementAddClicked:r.config.accountReconciliationConfig?.onStatementAddClicked})})(e,n,i);default:return null}};function mo(e,n,o,i){const r=e.reportElementData.element.data,l=e.reportElementData.config.reportId==="profit_and_loss_by_classes"&&e.reportElementData.element.kind==="ac_report"&&e.children.length>0&&Ge(r)===!0||void 0;return{data:{defaultHeight:On(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:i??l??ag(e.reportElementData.config.reportId,e.reportElementData.element.kind,o,e.reportElementData.config.reportFormat),nestingLevel:o,treeKind:n,reportElementData:e.reportElementData},treeKind:n,nestingLevel:o,node:e}}function On(e,n,o){return an(e)===!0?function(i){switch(i){case"section":case"section_with_ac_only":case"calculated_section":case"calculated_section_type1":return C[8];case"ac_group_report":case"ac_group_subaccount":case"ac_subentity_total":case"ac_subaccount":case"ac_report":case"title_string_only":case"total":case"loading_in_progress":case"class":case"checkbox_and_name_only":return C[6];case"timeframe_headers":case"class_headers":case"headers_loading_in_progress":return C[11];case"timeframe_headers_with_forecast":return 98;default:return 0}}(n):ln(e)===!0||Ke(e)===!0?function(i){switch(i){case"section":case"ac_group_report":case"ac_group_subaccount":case"calculated_section":case"calculated_section_type1":case"section_with_ac_only":case"title_string_only":case"total":return C[8];case"ac_subentity_total":case"ac_subaccount":case"ac_report":case"loading_in_progress":case"class":case"checkbox_and_name_only":return C[6];case"timeframe_headers":case"headers_loading_in_progress":return C[11];case"timeframe_headers_with_forecast":return 98;default:return 0}}(n):cn(e)?function(i){switch(i){case"timeframe_headers":return C[10];case"aging_report_row":case"ac_subentity_total":return C[6];case"total":case"spacer_row":return C[8];default:return C[0]}}(n):sn(e)?ct(n):dn(e)?function(i){switch(i){case"timeframe_headers":return C[11];case"vendor_row":case"loading_in_progress":return C[6];case"total":case"spacer_row":case"title_string_only":return C[8];default:return 0}}(n):hn(e)?wi(n,o):function(i){switch(i){case"section":case"section_with_ac_only":case"calculated_section":case"ac_group_report":case"ac_group_subaccount":return C[8];case"calculated_section_type1":case"ac_report":case"ac_subaccount":case"ac_subentity_total":case"total":return C[6];case"title_string_only":return 67;case"timeframe_headers":return C[11];default:return C[0]}}(n)}function ag(e,n,o,i){return an(e)?function(r,l,c=0){const d=["summary"];switch(r){case"section":case"section_with_ac_only":case"title_string_only":return!d.includes(l);case"calculated_section":case"calculated_section_type1":case"ac_group_report":case"ac_report":case"total":case"timeframe_headers":case"timeframe_headers_with_forecast":case"class_headers":default:return!1;case"ac_group_subaccount":case"ac_subaccount":case"ac_subentity_total":return!(d.includes(l)||l==="detailed"&&c>0);case"class":return!(l==="detailed"&&c>0);case"checkbox_and_name_only":return!0}}(n,i,o):ln(e)||Ke(e)===!0?function(r,l){const c=["summary","detailed"];switch(r){case"section":case"section_with_ac_only":case"ac_group_report":case"ac_group_subaccount":case"ac_subentity_total":case"ac_subaccount":case"ac_report":case"title_string_only":return!c.includes(l);case"calculated_section":case"calculated_section_type1":case"total":case"timeframe_headers":case"timeframe_headers_with_forecast":default:return!1;case"class":case"checkbox_and_name_only":return!0}}(n,i):!!cn(e)||!dn(e)&&(hn(e)?function(r){return["section","flux_vendor_account_class_row","flux_vendor_row"].includes(r)}(n):sn(e)?kr():function(r,l){const c=["summary","detailed"];switch(r){case"section":case"section_with_ac_only":case"calculated_section":case"calculated_section_type1":case"ac_group_report":case"ac_group_subaccount":case"ac_report":case"ac_subaccount":case"ac_subentity_total":case"title_string_only":return!c.includes(l);default:return!1}}(n,i))}const lg=a.div`
|
|
2929
|
+
top: 0;
|
|
2930
|
+
left: 0;
|
|
2931
|
+
position: sticky !important;
|
|
2932
|
+
position: -webkit-sticky !important;
|
|
2933
|
+
min-height: ${e=>e.heightValue}px;
|
|
2934
|
+
max-height: ${e=>e.heightValue}px;
|
|
2935
|
+
width: fit-content;
|
|
2936
|
+
min-width: 100%;
|
|
2937
|
+
z-index: 2;
|
|
2938
|
+
display: flex;
|
|
2939
|
+
flex-direction: column;
|
|
2940
|
+
align-items: center;
|
|
2941
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2942
|
+
box-sizing: border-box;
|
|
2943
|
+
`;function cg({height:e,backgroundColor:n,headers:o,treeKind:i,isSticky:r,compareMode:l,onCompareModeChanged:c}){return o.length===0?null:(o.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(lg,{heightValue:e,bgColor:n,"data-testid":y("sticky-header-report-tree"),children:o.map((d,p)=>t.jsx(Di,{id:d.id,treeKind:i,reportElementData:d.reportElementData,height:On(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:n,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:o.length-1===p,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:c},d.id))}))}const Ei=V.createContext(void 0);function sg({height:e,kind:n,rootNodes:o,compareMode:i,isSticky:r,backgroundColor:l,treeNodePadding:c,treeClassName:d,treeStyle:p,treeRef:u,treeOuterElementRef:g,infiniteLoadingProps:h,variableNodeHeightTree:x,onNodeClick:f,onCompareModeChanged:m,scrollPosition:w,onScroll:b,nodeOpenStatus:k,onNodeCollapseToggled:v,onTreeInnerElementHeightChanged:S,onToggleCheck:$,hoveredParentIdProps:B}){const L=V.useRef(null),M=V.useRef(null),T=Wn(x?.prevFetchState),D=Wn(x?.prevRefreshFetchState),[K,X]=V.useState(0),Q=g??M,ie=u??L,he=W(),[le,re]=V.useState(void 0),[be,$e]=V.useState(!1),[ce,ue]=V.useState(k),_e=(z,U)=>{ue(Object.assign({},ce,{[z]:U})),v?.(z,U)},Nn=z=>{if(o.contentNodes.length>0)if(Object.keys(z).length>0){const U={};Object.keys(z).forEach(fe=>{U[fe]={open:z[fe]}}),ie?.current?.recomputeTree(U)}else{const U=o.contentNodes[0].id;ie?.current?.recomputeTree({[U]:{open:!0}})}};V.useLayoutEffect(()=>{if((!Pn(w,le)||le==null)&&Q.current!=null){const z=w?.scrollLeft==null?he==="small"?0:Q.current.scrollWidth:w?.scrollLeft;if(w!=null){const U={scrollTop:w.scrollTop,scrollLeft:z};re(U),z!==w?.scrollLeft&&b?.(U)}Q.current.scroll({left:z,top:w?.scrollTop})}},[w]),V.useEffect(()=>{Pn(k,ce)||(ue(k),Nn(k))},[k]),V.useEffect(()=>{const z=Q.current,U=Ui(()=>{if(z!=null&&(le==null||z.scrollLeft!==le.scrollLeft||z.scrollTop!==le.scrollTop)){const fe={scrollLeft:z.scrollLeft,scrollTop:z.scrollTop};re(fe),b?.(fe)}},50);return z?.addEventListener("scroll",U),()=>{z?.removeEventListener("scroll",U)}},[Q,le,b]),V.useEffect(()=>{if(o.contentNodes.length>0){Nn(ce);const z=o.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";z!==be&&$e(z)}},[be,$e,o,ie,Q]),V.useEffect(()=>{(x!=null&&T==="In-Progress"&&x.fetchState==="Completed"&&x.isSortApplied||x!=null&&D==="In-Progress"&&x.refreshFetchState==="Completed")&&(x.reducedFetchState==="Completed"&&x.setIsSortApplied(!1),X(K+1))},[K,x?.fetchState,x?.isSortApplied,T,D,x]);const It=V.useRef(),[Gi,Ri]=V.useState(void 0),Mn=V.useCallback(((z,U,fe)=>function*(){for(let we=0;we<U.length;++we)yield mo(U[we],z,0,fe[U[we].id]??void 0);for(;;){const we=yield;for(let Qe=0;Qe<we.node.children.length;++Qe)yield mo(we.node.children[Qe],z,we.nestingLevel+1,fe[we.node.children[Qe].id]??void 0)}})(n,o.contentNodes,ce),[n,o]),Hi={rootNodes:o,treeNodePadding:c,backgroundColor:l,kind:n,isSticky:r,compareMode:i,onCompareModeChanged:m};return t.jsx(Ei.Provider,{value:Hi,"data-testid":y("report-tree"),children:h==null?t.jsx(zn,{className:d,style:p,ref:ie,innerRef:It,outerRef:Q,innerElementType:Zt,treeWalker:Mn,onItemsRendered:()=>{const z=It.current;z!=null&&z.clientHeight>0&&z.clientHeight!=Gi&&(Ri(z.clientHeight),S?.(z.clientHeight))},height:e,width:"100%",children:z=>t.jsx(fo,{...z,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:f,onNodeCollapseToggled:_e,compareMode:i,onCompareModeChanged:m,onToggleCheck:$})}):t.jsx(Zi,{isItemLoaded:h.isItemLoaded,itemCount:h.itemCount+1,loadMoreItems:h.loadMoreItems,children:({onItemsRendered:z,ref:U})=>t.jsx(zn,{className:d,style:p,ref:U,innerRef:It,outerRef:Q,innerElementType:Zt,treeWalker:Mn,onItemsRendered:z,height:e,width:"100%",children:fe=>t.jsx(fo,{...fe,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:f,onNodeCollapseToggled:_e,compareMode:i,onCompareModeChanged:m,onToggleCheck:$,hoveredParentIdProps:B})},K)})})}const Zt=V.forwardRef((e,n)=>{const{children:o,style:i,...r}=e,{rootNodes:l,treeNodePadding:c,backgroundColor:d,kind:p,isSticky:u,compareMode:g,onCompareModeChanged:h}=V.useContext(Ei),x=l.headerNodes.reduce((b,k)=>b+On(k.reportElementData.config.reportId,k.reportElementData.element.kind,k.isFirstNode),0),f=c?.left,m=c?.right,w=s.sp8;return t.jsxs("div",{ref:n,style:{...i,width:"auto",minWidth:"100%",paddingLeft:f,paddingRight:m,marginBottom:w},...r,children:[t.jsx(cg,{height:x,backgroundColor:d,headers:l.headerNodes,treeKind:p,isSticky:u.isStickyHeader,compareMode:g,onCompareModeChanged:h}),o]})});Zt.displayName="stickyInnerElementType";const dg=a.div`
|
|
2944
|
+
display: flex;
|
|
2945
|
+
flex: 1 0 auto;
|
|
2946
|
+
width: ${e=>e.width}px;
|
|
2947
|
+
height: ${e=>e.height}px;
|
|
2948
|
+
padding-left: ${e=>e.paddingLeft}px;
|
|
2949
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2950
|
+
|
|
2951
|
+
& .content-scroll {
|
|
2952
|
+
overflow: auto;
|
|
2953
|
+
scrollbar-width: thin;
|
|
2954
|
+
scrollbar-color: transparent transparent;
|
|
2955
|
+
&::-webkit-scrollbar {
|
|
2956
|
+
width: ${s.sp2};
|
|
2957
|
+
height: ${s.sp2};
|
|
2958
|
+
background-color: transparent;
|
|
2959
|
+
}
|
|
2960
|
+
&::-webkit-scrollbar-thumb {
|
|
2961
|
+
background-color: transparent;
|
|
2962
|
+
}
|
|
2963
|
+
|
|
2964
|
+
&:hover {
|
|
2965
|
+
scrollbar-color: ${e=>e.theme.colors.grey1} transparent;
|
|
2966
|
+
&::-webkit-scrollbar {
|
|
2967
|
+
width: ${s.sp2};
|
|
2968
|
+
height: ${s.sp2};
|
|
2969
|
+
background-color: transparent;
|
|
2970
|
+
}
|
|
2971
|
+
&::-webkit-scrollbar-track {
|
|
2972
|
+
box-shadow: inset 0 0 2px ${ee.scrollbarBoxShadow};
|
|
2973
|
+
-webkit-box-shadow: inset 0 0 2px ${ee.scrollbarBoxShadow};
|
|
2974
|
+
background-color: transparent;
|
|
2975
|
+
}
|
|
2976
|
+
&::-webkit-scrollbar-thumb {
|
|
2977
|
+
background-color: ${e=>e.theme.colors.grey1};
|
|
2978
|
+
border-radius: 2px;
|
|
2979
|
+
}
|
|
2980
|
+
}
|
|
2981
|
+
}
|
|
2982
|
+
`;function wg({rootNodes:e,type:n,compareMode:o,isSticky:i,backgroundColor:r,treeNodePadding:l,onAccountClick:c,infiniteLoadingProps:d,variableNodeHeightTree:p,hoveredParentIdProps:u,onCompareModeChanged:g,scrollPosition:h,onScroll:x,nodeOpenStatus:f,onNodeCollapseToggled:m,onReportTableHeightChanged:w,onToggleCheck:b,treeRef:k}){return t.jsx(Ki,{children:({height:v,width:S})=>t.jsx(dg,{"data-testid":y("report-tree-container"),height:v,width:S,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(sg,{"data-testid":y("report-tree"),treeClassName:"content-scroll",height:v,kind:n,rootNodes:e,compareMode:o,isSticky:i,backgroundColor:r,treeRef:k,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:d,variableNodeHeightTree:p,hoveredParentIdProps:u,onNodeClick:c==null?void 0:($,B,L,M,T)=>{L!=null&&M!=null&&c(L,M,T)},onCompareModeChanged:g,scrollPosition:h,onScroll:x,nodeOpenStatus:f,onNodeCollapseToggled:m,onTreeInnerElementHeightChanged:w,onToggleCheck:b})})})}export{te as D,q as J,Ee as N,Ye as Z,Yc as a,ut as h,_n as j,mg as m,wg as n,fg as t};
|