@zeniai/web-cockpit-ui 1.14.89-prod → 1.14.90-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-BBq7KpbY-CpL5U89v.js → ACHDetailsPage-BUP-_2-W-BxsdzxJg.js} +3 -3
- package/dist/assets/{AIPerformancePage-Djq6mgKa-BXUkte6G.js → AIPerformancePage-DHF_70JI-BB0m0Wmb.js} +22 -22
- package/dist/assets/AccountInfoPage-pmUIckJ9-ClFTcWKH.js +18 -0
- package/dist/assets/{AccountInfoPageContent-DO6aVqBW-CcG81fXf.js → AccountInfoPageContent-DLSL1NNm-ysW8pq2z.js} +9 -9
- package/dist/assets/AccountLockedInfoModal-Bq3y0K0F-DT_bUQ3U.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-DEKzSPCP-s5lyisHF.js → AccountReconDetailsDrawerPage-CGcZO_qz-Cy1Ijv5f.js} +16 -16
- package/dist/assets/{AccountRow-Ck53DDbT-DgVym5NM.js → AccountRow-D2Ypckgj-DU9kFXuE.js} +26 -26
- package/dist/assets/{AccountsPromoCardStack-BYjuB-4I-DdN6kRaj.js → AccountsPromoCardStack-BVVDCW1H-DJjdfLGW.js} +23 -23
- package/dist/assets/AddAddressForCardDrawer-C8aENofu-DA1NQK9C.js +6 -0
- package/dist/assets/{AddToWalletPage-DA6AmuaY-BQi9MsaD.js → AddToWalletPage-CmT5jSb5-D2YVbVt5.js} +11 -11
- package/dist/assets/{AgingReportsPage-B_Hhl_Is-DGuqbTZb.js → AgingReportsPage-BeUGvj3b-CHP-b-K4.js} +6 -6
- package/dist/assets/{AllUserItems-BV22Ibpn-D4sEkFpc.js → AllUserItems-CmlMyz-f-C0puagwR.js} +11 -11
- package/dist/assets/{ApAgingDetailPage-DqV1vOVH-C05RVobp.js → ApAgingDetailPage-Dz1_N0Yw-iyEKxxlG.js} +3 -3
- package/dist/assets/{AppBasePage-LrgCcvIv-Ch9LW15t.js → AppBasePage-DX4EGGcT-DxyBlsaI.js} +11 -11
- package/dist/assets/{AppDrawerContent-aZG5Qc_X-DEDViUw7.js → AppDrawerContent-Brg3Rw4K-DWiehP3E.js} +5 -5
- package/dist/assets/ApprovalRulesSettingsPage-Bn7KrUl2-CvKRvgo_.js +47 -0
- package/dist/assets/{ArAgingChart-Am7LTkqG-B6qiKVZ7.js → ArAgingChart-DQZtCsHS-CSTDLkfC.js} +4 -4
- package/dist/assets/ArAgingDetailPage-BtF6K5dA-VZeY_ZUJ.js +46 -0
- package/dist/assets/{AttachmentView-Bujbmx1d-DqiQcBPx.js → AttachmentView-DgPySmB8-B0CUUwUu.js} +8 -8
- package/dist/assets/{BankAccountSection-C5rYUW3V-Bq5OdcQr.js → BankAccountSection-BVZK5jmO-oboSifeA.js} +7 -7
- package/dist/assets/{BankAccountWarningSection-DakysSbk-DtGHGGlf.js → BankAccountWarningSection-DHdeDi15-DsdgRhNS.js} +8 -8
- package/dist/assets/{BankConnectionsSettingsPage-BjZDNgZG-CzKGiQZr.js → BankConnectionsSettingsPage-BN3lAARB-UlnRR8CQ.js} +31 -31
- package/dist/assets/{BillDetailPage-DYc_nZRU-Bfft4Wvj.js → BillDetailPage-BuUm6vdf-DEUKUhee.js} +13 -13
- package/dist/assets/BillPayApprovalRuleDetailPage-BXSdsF2E-CYUFVErE.js +27 -0
- package/dist/assets/BillPayApprovalRulesPage-B8HbVvc9-DpzHPmZp.js +241 -0
- package/dist/assets/{BillPayPromoPage-BK2J56U5-Dr_7W8ch.js → BillPayPromoPage-DkoqXDNt-FNHctwfQ.js} +7 -7
- package/dist/assets/{BillPaySetUpPage-Jic5E25q-ByxpO-dO.js → BillPaySetUpPage-BommXkLS-DOKgmPVm.js} +2 -2
- package/dist/assets/{BillingSettingsPage-CKZVChEm-DCpRgyWO.js → BillingSettingsPage-gHbc5Kq3-CFDIJf8G.js} +10 -10
- package/dist/assets/{BillsBulkReviewDrawerPage-C4Ra5e82-pr6_FYet.js → BillsBulkReviewDrawerPage-C541rBnx-DPMvwxh2.js} +1 -1
- package/dist/assets/{BoxItem-8PfNfaHq-B3NqjMnf.js → BoxItem-usHxaONy-BSYmkNdH.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-JGge-Iiw-CDuaPB9j.js → BusinessVerificationPage-CLsxXy9d-ClcyVS-f.js} +10 -10
- package/dist/assets/{CardNumberSubText-W81SQ4GF-D9TP2ZHa.js → CardNumberSubText-D_fWhc_K-BxJ3GoBc.js} +2 -2
- package/dist/assets/{CashbackDetailPage-DnOcmx2i-BC6CYrJs.js → CashbackDetailPage-D3WylWVP-CydwwFdH.js} +19 -19
- package/dist/assets/{ChargeCardDetailPage-DNVMsxzE-BSQk_5-_.js → ChargeCardDetailPage-BUsGBwBf-DhD5ouX9.js} +27 -27
- package/dist/assets/{ChargeCardListPage-Dgj-WWWI-w23hoUyI.js → ChargeCardListPage-Jhx05dVV-DjDdThgH.js} +24 -24
- package/dist/assets/{ChargeCardListTable-uJZKWoh7-C3O6hd1k.js → ChargeCardListTable-D-eYWaxh-CZeSVtIX.js} +26 -26
- package/dist/assets/ChargeCardPromoPage-CzR82VtA-DoVVgv51.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-BDbJU-vm-lGDN0gVp.js → ChargeCardSetupPage-Ctz8PCuu-Dmh0C1fi.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DImRqpH1-BOXYEkI8.js → ChargeCardStatementsPage-EUtRTAX2-CIQRTxBN.js} +6 -6
- package/dist/assets/{CheckDepositDrawerPage-BVtOOPoa-BIViF4jr.js → CheckDepositDrawerPage-B7DC0HAi-DPwOJJS7.js} +17 -17
- package/dist/assets/{CollapsableReportTable-Crihcv_z-1kvNpwNO.js → CollapsableReportTable-I40BZv7o-RBVPkQ58.js} +233 -233
- package/dist/assets/{CompanyOfficerDetailsSection-CNxtAkKM-85Q00Xll.js → CompanyOfficerDetailsSection-ChsNKXbx-Dk7vpi01.js} +24 -24
- package/dist/assets/{CompanyPassportCard-DMRQkRPb-Da9mkNtI.js → CompanyPassportCard-82bbFwk--C3mnYk4t.js} +1 -1
- package/dist/assets/{CompanyPassportPage-D3XvbSF_-CYpevto3.js → CompanyPassportPage-DG1Fa_Uw-B4wsnqA2.js} +18 -18
- package/dist/assets/{CompleteProfile-BqjXO5ze-Ctdetiwt.js → CompleteProfile-B7bQqLQH-DwtJrHr4.js} +1 -1
- package/dist/assets/{ConfettiBurst-DtwLo4WZ-C2L-ZVQE.js → ConfettiBurst-DUyIBnw4-BZY51mbD.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-FrGRJxMy-CD1A265s.js → CreateOrEditVendorPage-DVzMO96w-CjeOn0Zu.js} +6 -6
- package/dist/assets/CreditCardPaymentDrawerPage-C03hfKGc-BI7dTqV7.js +224 -0
- package/dist/assets/{CurrencySelectField-ClOg6nnS-kGQo9dVf.js → CurrencySelectField-2hU3oIp_-CnccIVlk.js} +3 -3
- package/dist/assets/{CustomerOnboardingActivationPage-Du-zzeL2-DcQOmDTQ.js → CustomerOnboardingActivationPage-Dt-Nml2t-CQyv3wO4.js} +8 -8
- package/dist/assets/CustomerOnboardingContainerPage-Dt-_tVOQ-B7ffmmrc.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BgY95XeU-CxxSHxC_.js → CustomerOnboardingDetailPageSkeleton-C4Z1pDVe-CS261SSd.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-BsKoqUta-Dc6IfrxS.js → CustomerOnboardingNoStepsPage-CwI8nL61-Xg6qQ6Ku.js} +4 -4
- package/dist/assets/CustomerOnboardingPage-C3FgZjAN-C75cnlLW.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-DGVV8Tkk-CYHRi8SS.js → CustomerOnboardingProductSuitePage-BOYu-82S-uR17VQjV.js} +4 -4
- package/dist/assets/{Dashboard-CdYlvep--BGWE43Rb.js → Dashboard-D_oTtu1--CP9XS1zf.js} +1 -1
- package/dist/assets/{DashboardReportPage-c6q027Qp-DuE_OhrG.js → DashboardReportPage-Dprj3eUQ-BK5e1r9g.js} +20 -20
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BdDVYK19-CxxrP75O.js → DashboardSidebarBackgroundAnimation-C6SQaB7q-C2qHBViE.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-D8kL8enp-Dq5wJete.js → DepositAccTransactionItem-C2oP415b-B5ygx6vl.js} +6 -6
- package/dist/assets/DepositAccTransactionListPage-DCvdqAz1-Df_FOAOf.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-CjM1DXnn-f9WMmV-Y.js → DomesticWireDetailsPage-Da_3EveP-Bjb9K-P-.js} +2 -2
- package/dist/assets/{DownloadOverlay-Dr4uLNpZ-DONqYIqe.js → DownloadOverlay-BwddFmV2-BqOR54wm.js} +26 -26
- package/dist/assets/{DrawerPage-CbKBsc7w-SC5EmQrv.js → DrawerPage-CGrnrvf2-BvrxfWnf.js} +12 -12
- package/dist/assets/EditPeoplePage-DMgxG2Gd-C3BsPnxU.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-BTrwOX_s-CLWs3phi.js → EditReimbursementDetailPage-DwCiVkeu-B4w5FVLx.js} +25 -25
- package/dist/assets/EntityDetailPage-BcRVEfi5-Cnj_gM9q.js +18 -0
- package/dist/assets/{EntitySummarySection-BIV9aAq2-gyi2P83i.js → EntitySummarySection-BaHHLLkE-D3Ip19-Y.js} +28 -28
- package/dist/assets/{ExpenseAutomationOverviewPage-B5MtjO2p-CJFA1E0S.js → ExpenseAutomationOverviewPage-hl_3Pc0g-gY12ACUr.js} +27 -27
- package/dist/assets/ExpenseAutomationPage-D70ghitX-EafeQT3m.js +1650 -0
- package/dist/assets/{ExpressPayPage-DnpQuDmt-B1wqsfAL.js → ExpressPayPage-BpfkmJ_I-B4izq8YR.js} +13 -13
- package/dist/assets/{FeaturePreviewPage-BmwBZ7ZP-B0W4Ko3A.js → FeaturePreviewPage-Bzi8Bpk3-DtSpKYbK.js} +3 -3
- package/dist/assets/{FollowStepsSection-B2I9SddL-0icECvY3.js → FollowStepsSection-Bu3RG_GH-DmaIgxgE.js} +10 -10
- package/dist/assets/{GlobalReviewListPage-D3GCP5Xd-DDpKubDJ.js → GlobalReviewListPage-D4BD7q-I-BHZQG-gN.js} +11 -11
- package/dist/assets/{InformationCardStack-mEhasBqu-Cby7NjOe.js → InformationCardStack-B9wnkR3p-CjpaX6cg.js} +3 -3
- package/dist/assets/{InsightsCardStack-Mj7QcQnH-9E267zSA.js → InsightsCardStack-C1_rd2Sb-uYkz47Dy.js} +11 -11
- package/dist/assets/InsightsSection-7-T67WeF-BlMRO9Ba.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-CsI_agJB-BC2VX2XQ.js → IntegrationsSettingsPage-C9YpvDgg-DjW-A2Ra.js} +11 -11
- package/dist/assets/{InternationalWireSwiftDetailsPage-Dszmi69h-kUzCnm4M.js → InternationalWireSwiftDetailsPage-C5mI8dEh-MFTemI3R.js} +12 -12
- package/dist/assets/{InternationalWireVerificationPage-DG9Enrpo-B4oK9pjT.js → InternationalWireVerificationPage-B8AOwcSX-HJr1qwVZ.js} +23 -23
- package/dist/assets/{InviteFormPage-DK6X9Zwi-B6zDF_N3.js → InviteFormPage-DuBhhnre-DKK8UkI0.js} +22 -22
- package/dist/assets/{InvitePageListView-CwKbcKlM-BpKjoalu.js → InvitePageListView-Dw8kwEFd-zXFzVUiq.js} +41 -41
- package/dist/assets/InvitePeoplePage-BI_vd7xw-BSlMVd1C.js +12 -0
- package/dist/assets/{InvoiceUploadSection-CokNNkKu-LMnKce0C.js → InvoiceUploadSection-9DaovMq8-DOf6F-xG.js} +3 -3
- package/dist/assets/IssueChargeCardPage-fumweN4Y-Ie_niRER.js +532 -0
- package/dist/assets/{LabeledAddressValue-BhwrrtZX-Dtm3Vn-k.js → LabeledAddressValue-cNf6hI1l-C1IgZGiS.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DzmwP7hP-DTG2n0wD.js → LabeledAddressValueField-CoTtV0RQ-CTJHm8Dm.js} +8 -8
- package/dist/assets/{LabeledControlledCheckBoxField-B6ndrF2e-DY1ubvCV.js → LabeledControlledCheckBoxField-DQwUvKR2-BFeYWYOG.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CfzLlkho-BHPGlraH.js → LabeledCreatableSingleSelectField-CnQsTYWe-BxSldgLD.js} +7 -7
- package/dist/assets/LabeledDocumentField-MkryOLQ8-ZmKcbrkd.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-oQX33Fim-BfNjnfMR.js → LabeledDropDownFormattedTextField-B-yUtgxR-CkZPhULB.js} +7 -7
- package/dist/assets/{LabeledText-Db46hFZY-BVLwPpan.js → LabeledText-BJ3Zvb5p-yc50ilCa.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-BVcg7w-8.js → LabeledUserSingleSelectWithSubtitlesField-CSEiKb8M-B7kyEAM_.js} +17 -17
- package/dist/assets/{LabeledZeniRolesDropDownField-Docjgj8Y-C1lu43_h.js → LabeledZeniRolesDropDownField-CS_oKjBG-CatyVbOL.js} +11 -11
- package/dist/assets/{LinkJETransactionPage-BZSRaZqY-CJzDRMx9.js → LinkJETransactionPage-BsszwFNq-BtKpHm2U.js} +10 -10
- package/dist/assets/{LockCardPage-KTyESoXL-BEIak2Ih.js → LockCardPage-DqQGGac2-Bntrtxvn.js} +42 -42
- package/dist/assets/{LowBalancePopup-B0BDCEui-imBShbhH.js → LowBalancePopup-BFo5zRk3-BLFy36gu.js} +6 -6
- package/dist/assets/MagicLinkACHDetailsPage-wYa3cyyZ-Cn9Ml7SS.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CW4RNKOV-Bj3CP8hj.js +1 -0
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-C2kxncrD-Ce8g6h3x.js → MagicLinkInternationalWireDetailsPage-CX9SeCLl-Bato55Wl.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DNVe2qMu-CdrXg-uF.js → MagicLinkSuccessPage-Dipq1-St-C4ZMZxw5.js} +2 -2
- package/dist/assets/{MagicLinkTitleSection-CWw516D8-pIsP-hCT.js → MagicLinkTitleSection-DnN52Uwb-aNaCMrDN.js} +7 -7
- package/dist/assets/{MailingDetailsSection-CugAM90r-1QhNZBqO.js → MailingDetailsSection-DwNF-L2Y-DJJZ9RqI.js} +1 -1
- package/dist/assets/{Menu-CGN2qO6T-C4Fa3L7f.js → Menu-D0jF6uaE-AMW53cTN.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CQUfVa0r-qcVSSqGc.js → MyBankConnectionsSettingsPage-DpM6MKBq-CmnrHUZV.js} +7 -7
- package/dist/assets/{MyPendingActivationChargeCardListPage-TOQWRGjp-C-dJs3xW.js → MyPendingActivationChargeCardListPage-BaT55Pwg-BdKjhqSf.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-lCG03Uoh-DVrg-p-V.js → MyProfileSettingsPage-kD1dY6P6-BAgE1Tqp.js} +6 -6
- package/dist/assets/{NavBarWithPicker-DLLvivn4-BzT_Crvs.js → NavBarWithPicker-D-WQJ-tG-C6mGlKIr.js} +4 -4
- package/dist/assets/{NavigationArrow-B4j2t8Qu-hrsh9ohB.js → NavigationArrow-Z9PgxZ-c-DrPA9Vgt.js} +1 -1
- package/dist/assets/{NavigationDots-DyMqwpgy-JfxKvmss.js → NavigationDots-BT-m0FmS-CJdtX5bS.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Bx7iBsCP-BFKhG52x.js → NewGlobalMerchantPage-YsnX4uQU-7PwHdB8y.js} +36 -36
- package/dist/assets/{NoDataChart-Ce1_TZ5w-DDbLlhh6.js → NoDataChart-DMivligx-DVgr9SAl.js} +1 -1
- package/dist/assets/{NoDataTable-l2T5Hw3t-BXRvsSzg.js → NoDataTable-DwOJY23X-BMIpXvJR.js} +1 -1
- package/dist/assets/{NotFoundPage-msdN-Eu6-C6ZelS6k.js → NotFoundPage-DuKXpHos-BIXgl60z.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-_ovcjr8E-CGt9EpNU.js → NotificationSettingsPage-DlU2NxiC-DDx7Rraa.js} +22 -22
- package/dist/assets/NotificationsListConfig-BQCb9x9X-C3jJIn48.js +1 -0
- package/dist/assets/{NotificationsPage-Ddxb5kE0-D6sdzZ5M.js → NotificationsPage-q0bK_5gs-C_zZBYkJ.js} +37 -37
- package/dist/assets/{OpExByVendorPage-BLAHey0l-BlNwZbg2.js → OpExByVendorPage-Boc7U8eu-BxBRsCtx.js} +24 -24
- package/dist/assets/OverlayContainerPage-CrZuT2Jj-DDO8EgYZ.js +11 -0
- package/dist/assets/{PandLWithForecastPage-B7Z73Sq--CNDc-1lT.js → PandLWithForecastPage-B2eGvFPp-CEl0eyCC.js} +10 -10
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-pL7omrJk-2WYjNORF.js → PaymentAccountSetupBillingAddressSection-BP-_59EO-KoltH9y1.js} +9 -9
- package/dist/assets/{PeoplePage-BHRFiM0D-DRMll50T.js → PeoplePage-YMfZIga6-BPMCy-eb.js} +23 -23
- package/dist/assets/{Preview-Bnbo8Nq1.js → Preview-BszQHI_F.js} +1 -1
- package/dist/assets/{ProductsCarousel-D2bf_6Gb-TEfA4CrL.js → ProductsCarousel-CUaU5-V7-CFq7I05R.js} +6 -6
- package/dist/assets/{PromoBaseCards-CI7UOpeY-B1evZov_.js → PromoBaseCards-CmOYEhSO-D3yPErwW.js} +2 -2
- package/dist/assets/{QBOConnectionDialog-D7MeKn1t-B2w1QKzx.js → QBOConnectionDialog-BNiXUEAk-B55AIWRo.js} +3 -3
- package/dist/assets/{QBOSetupSection-DWhfA4Xv-qK0GI5W7.js → QBOSetupSection-CjjNFfgF-CIhiV9Dd.js} +9 -9
- package/dist/assets/ReimbursementApprovalRuleDetailPage-tP7WcKvd-CCMfftol.js +26 -0
- package/dist/assets/ReimbursementApprovalRulesPage-BkuYJ6qb-BIx385RC.js +243 -0
- package/dist/assets/{ReimbursementDetailPage-COIRwy7i-CGhFzpju.js → ReimbursementDetailPage-D5IzqJS5-BklJr7jT.js} +13 -13
- package/dist/assets/ReimbursementPromoPage-D7n6lZNo-BpT8Ss67.js +84 -0
- package/dist/assets/{ReimbursementSetUpPage-CMYR8CcH-dSx9uq0k.js → ReimbursementSetUpPage-E1elWU5Z-VC2DwUtC.js} +15 -15
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BDdhVfaz-CHho_I4c.js → ReimbursementsBulkReviewDrawerPage-HzYNji-G-DGG79plx.js} +1 -1
- package/dist/assets/{ReloadCard-B2sJR97f-BCtofZlK.js → ReloadCard-DMWwNZ1z-CIbg2f6Q.js} +3 -3
- package/dist/assets/{ReportTableViewSelector-_IO343vS-Czn5ein5.js → ReportTableViewSelector-EU36E1lv-XPDH-qLc.js} +11 -11
- package/dist/assets/{ReportsPage-C-aQ1bdd-CGJdsE_g.js → ReportsPage-iJDifG6q-BnnQKn2l.js} +4 -4
- package/dist/assets/{RevenueChart-Bgq6My4J-CVvgi3IE.js → RevenueChart-BbOK-HCB-UtcLA02J.js} +22 -22
- package/dist/assets/ReviewDetailsPage-Bk2vvBn3-C2KvPaPZ.js +290 -0
- package/dist/assets/{ReviewOverlay-CPU7RPiJ-Boo32wAd.js → ReviewOverlay-CJlk2MNH-s-FncxF6.js} +14 -14
- package/dist/assets/{RoleWithToolTip-DSSGBzvw-LpQZuizj.js → RoleWithToolTip-B7woUKhj-CCCbdbHN.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DKGBfhAM-_HxIg-El.js → ScheduleDetailsFixedAssetsPage-B-WjqQN_-BZxRVl4y.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-B-fKJ7Ct-D7Ghhz-Q.js → ScheduleDetailsPage-ocFBINM3-BwGXsqpK.js} +4 -4
- package/dist/assets/{ScheduleSequenceTable-Dh_aT47H-CH4pWS8t.js → ScheduleSequenceTable-Bb7MJ-zJ-GmSlZz8a.js} +24 -24
- package/dist/assets/{ScreenRoutes-CAl3Z8kZ.js → ScreenRoutes-Bs2X1R3V.js} +42 -42
- package/dist/assets/{SetUpAccountSection-DrMCC1IY-DKdlON5F.js → SetUpAccountSection-9zELif-q-xWCkQEz2.js} +4 -4
- package/dist/assets/{SignIn-Ij6tlYI5-W_hhag2x.js → SignIn-BHHUcLal-BDutKsDY.js} +17 -17
- package/dist/assets/{SignInScreen-C1qvvdaH.js → SignInScreen-DqJeiieA.js} +1 -1
- package/dist/assets/SpendManagementListViewPage-BAdSW-49-C0b0e4ib.js +123 -0
- package/dist/assets/SpendManagementPerTabPage-HzCmGr0--BrKmnwTS.js +785 -0
- package/dist/assets/{SpendManagementSection-BqWbsmBW-DdAcoAqN.js → SpendManagementSection-LzT-Bnhy-DcyEJGSm.js} +15 -15
- package/dist/assets/StatementItem-BnxTFgdM-ncI51LoG.js +31 -0
- package/dist/assets/{StatementsPage-BG_pNQzc-C5W9jefo.js → StatementsPage-B8X2un5p-CiIvEzAF.js} +4 -4
- package/dist/assets/{StatusSwitcher-DYRXaLvx-C8j2Xkv0.js → StatusSwitcher-BPKr5BUW-lb0m6Cbr.js} +1 -1
- package/dist/assets/{SubTabSwitcher-C75XU1EG-Bq01jAuq.js → SubTabSwitcher-4dvyyQSv-BdqA6ZlC.js} +1 -1
- package/dist/assets/{SummaryCard-DEnzgi31-uIlH28-c.js → SummaryCard-CiNkV7uy-BHimAYKo.js} +1 -1
- package/dist/assets/{TaskManagementPage-BacWm0wS-3n2EdCaU.js → TaskManagementPage-BiyyDIWi-DCcTniX2.js} +15 -15
- package/dist/assets/{TimeRangeSwitcher-BOzR-0O6-xiPqTTPj.js → TimeRangeSwitcher-DEEhq2Us-D64DWBCZ.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-BVgI_VZw-Dr2i-g4z.js → TimeframeSwitcher-u606tI8Z-DKc_Ov1z.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CPVSAvFa-CkdcdrPb.js → TimeframeSwitcherWithToggle-D2sBGHXQ-Dp4KGiW_.js} +1 -1
- package/dist/assets/{TopExCard-ImUx-vXr-RGtoQGSt.js → TopExCard-DbPlohSJ-YKd6FEuQ.js} +4 -4
- package/dist/assets/{TopExDetailPage-Dg_8DQk8-C4FAKt7P.js → TopExDetailPage-Cla8Hd-1-1fpYe-lT.js} +9 -9
- package/dist/assets/{TransactionDetailPage-BzaDB50S-5UQplDsu.js → TransactionDetailPage-BbjtQvBr-DNyUqobk.js} +45 -45
- package/dist/assets/{TransactionList-DMd3dgoK-GAchYYqt.js → TransactionList-BRiHadkm-BVpjF8up.js} +14 -14
- package/dist/assets/{TransactionListBig-BxHqh8u6-x9Ey0UsD.js → TransactionListBig-BOeu4-R4-Cua70V6_.js} +20 -20
- package/dist/assets/TransactionListPage-ByVvx6ON-C32shKZQ.js +35 -0
- package/dist/assets/TransactionVendorDetailPage-DMweGn3b-CelejD-M.js +80 -0
- package/dist/assets/{TransferDrawerPage-oV7ickRP-D-sipkzC.js → TransferDrawerPage-BTqCR3Hb-CYdeK3jF.js} +12 -12
- package/dist/assets/{TreasuryOverviewPage-CECDKjNn-DafLwMhl.js → TreasuryOverviewPage-CDJtsQsC-ns0b2xlD.js} +42 -42
- package/dist/assets/{TreasuryPromoPage-Bgt7uGAE-Iq5Spa9l.js → TreasuryPromoPage-Bqt6DcqL-DbWZMgaj.js} +131 -131
- package/dist/assets/TreasuryStatementsPage-2PsC-PWa-MMDwIX2Z.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-D6MoHMAo-MFFnXqVo.js +58 -0
- package/dist/assets/{TrendChart-C_6ob-SX-UqLmUzGG.js → TrendChart-DiutckSt-CgHLzJj6.js} +4 -4
- package/dist/assets/{TrendWithTransactions-lMD2sZ-C-CwJLlCAn.js → TrendWithTransactions-rPwZKHfV-DNKy45Dj.js} +9 -9
- package/dist/assets/{UncategorizedAccountsMappingPage-DEgz17_R-BI_hO66l.js → UncategorizedAccountsMappingPage-CFx4P194-CH9WyFGN.js} +11 -11
- package/dist/assets/{UnitIntegrationPage-D9Pzxqju-DEb5YSJD.js → UnitIntegrationPage-DO8dMzVg-DvbEuGmN.js} +6 -6
- package/dist/assets/UploadAdditionalDocumentOverlay-Ug3kL02_-B3G6i9sn.js +38 -0
- package/dist/assets/{Vendor2FAPopup-D-r0NVE--Cj-W5XDH.js → Vendor2FAPopup-BdG-Ywma-QkJvZ609.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-Dv6bTD6Y-Bs2SlaRU.js → VendorACHDetailsPage-BUNmE_s6-5dZ0tO5y.js} +1 -1
- package/dist/assets/{VendorDetailPage-BhfawsBd-B6AIf-oM.js → VendorDetailPage-Dy9McuGu-BueeE3oi.js} +19 -19
- package/dist/assets/{VendorDomesticWireDetailsPage-BjmlrfTQ-BBrkrthi.js → VendorDomesticWireDetailsPage-DvACrh7C-fv6qIbh-.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-glvi0GTU-NorBD_dQ.js → VendorFiling1099EditablePage-Y0hGO4RH-Bkykk5NB.js} +21 -21
- package/dist/assets/{VendorFirstReviewPage-DUuUM8ZT-v0NQaBfE.js → VendorFirstReviewPage-C-pT1M36-D21-SWZN.js} +50 -50
- package/dist/assets/{VendorInternationalWireDetailsPage--Lb-TviQ-RCdBVGb0.js → VendorInternationalWireDetailsPage-CCMramET-CvrUOrMX.js} +15 -15
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C6KviV2Z-BcKJJc7Z.js → VendorInternationalWireSwiftDetailsPage-lxD_Z5W--BAaZ1iJw.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-EmHO3wQ0-CCWdfZ9i.js → VendorsAccountsSection-D-3fhQvy-ODF-nF1J.js} +2 -2
- package/dist/assets/{VerifyDevice-DE3UbLEe-xqLTy9aT.js → VerifyDevice-DDZdWfa8-C2_zooti.js} +7 -7
- package/dist/assets/{VideoPlayer-Gw_PLr8F-LYtV3YjE.js → VideoPlayer-D0GZ_Yml-CzUqkm8K.js} +2 -2
- package/dist/assets/{VideoPopup-DPZYhLgy-BO96yEx0.js → VideoPopup-CEdhfU31-CRc_PqEa.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-CZvToguS-ZmIZ7qVV.js → WarningsDrawerPage-CIK9lkT2-4Dbh3gee.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-CQhqngBz-C7s0f_Qs.js → ZeniAccountDetailPage-BF8cg2oa-D23upslb.js} +36 -36
- package/dist/assets/{ZeniAccountListViewPage-CpX8vqYa-D69L6A9u.js → ZeniAccountListViewPage-BkdkYY8j-BsJgCgRQ.js} +9 -9
- package/dist/assets/{ZeniAccountNavBarPieces-DsUwG15z-B89t8_rk.js → ZeniAccountNavBarPieces-FAxN1QDY-BljetA4S.js} +3 -3
- package/dist/assets/{ZeniAccountPromoPage-DA611IgH-CDNeuQb5.js → ZeniAccountPromoPage-COAOIU03-Bkst1764.js} +31 -31
- package/dist/assets/{ZeniAccountSetupPage-CJv2Fk1i-DgoWwbJ9.js → ZeniAccountSetupPage-QMBiVius-DdJzbNoZ.js} +6 -6
- package/dist/assets/{ZeniCopyright-FFqiWypL-jhRC6VHA.js → ZeniCopyright-CgfP-kcy-BQ8g3w-z.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DSrBZUbA-B8KinheN.js → ZeniTransferAmountSlider-B1fmc3f9-BXoBksgM.js} +3 -3
- package/dist/assets/{add-to-wallet-DgdBD8_G-CmJT13gp.js → add-to-wallet-DgdBD8_G-BctcirlU.js} +1 -1
- package/dist/assets/{analytics-XaDXTZcq.js → analytics-DGBWhVbe.js} +1 -1
- package/dist/assets/{analyticsHelper-CczQLvkM-CJFzfxe1.js → analyticsHelper-BKtlFOJm-DFeq4K6y.js} +1 -1
- package/dist/assets/analyticsHelper-BY515BEN.js +1 -0
- package/dist/assets/{arrow-south-east-round-PEovUgvH-7DsZUZDF.js → arrow-south-east-round-PEovUgvH-DFZl4BUT.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-iFkTgScT.js → auto-transfer-rule-mbafm5D3-BCnmjSj0.js} +1 -1
- package/dist/assets/{chartTypes-CwQl8aoN-mEF0MFro.js → chartTypes-BZYC5y5J-fsutalT0.js} +1 -1
- package/dist/assets/{commonDimensions-B1u_MhON-DBkNP1J8.js → commonDimensions-B-aZt-hB-CyMsSMR_.js} +1 -1
- package/dist/assets/{core-3dlyNYRL.js → core-B-FNbYlu.js} +12 -12
- package/dist/assets/{dash.all.min-DBAY9LgI.js → dash.all.min-BBsvkPzr.js} +1 -1
- package/dist/assets/{detailCommon-nYxvvV_i-Can4Gb-c.js → detailCommon-DCtkwfR8-BBwf5Sk5.js} +2 -2
- package/dist/assets/{downloadPdf-yGlKpV2--fFgmg-2D.js → downloadPdf-BhQlJMh0-BaxCiwAc.js} +1 -1
- package/dist/assets/{empty-DeBX16Fq.js → empty-TjEo4rDg.js} +1 -1
- package/dist/assets/epic-DMZtehrN.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-CvUdutGd.js → gift-box-Cmt9OgIZ-aujv_noX.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js → graphic-no-data-l-DU4J8fDt-DTSR9TM8.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DcAe6xm4.js → graphic-no-data-net-burn-l-CzmycA0m-Bw4ambPw.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-D7G7L1P7.js → handshake-BPg58FML-BjSDfVm7.js} +1 -1
- package/dist/assets/{index-DcV3YN51.js → index-BhteR_e0.js} +3325 -3235
- package/dist/assets/{index-DYDdrdFx.js → index-CFi0iD-l.js} +1 -1
- package/dist/assets/{index-CEtuJXY3.js → index-CL_7G35J.js} +1 -1
- package/dist/assets/{index-DrmeEdvK.js → index-DdJI4MMd.js} +1 -1
- package/dist/assets/{index-CdTBIE6I.js → index-dPPP2cWo.js} +1 -1
- package/dist/assets/{index-DQmBF4-D.js → index-piC0sJHK.js} +1 -1
- package/dist/assets/{liveblocks-CNYVvsag.js → liveblocks-BBTLClA6.js} +1 -1
- package/dist/assets/{lottie-22bRan8M.js → lottie-gmZDfwf4.js} +2 -2
- package/dist/assets/{mapLoadingInProgressToTreeNode-DIAuL28N-Bvp61kW7.js → mapLoadingInProgressToTreeNode-B8iO-fIh-RTAx_JGt.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DRSmQ56_-CVFismWT.js → mapSectionWithAcOnlyToTreeNode-PLUfKBDd-B2JV3NdC.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DOEVwUIo-1MsMz7Z4.js → mapSpacerToTreeNode-BPbkmHFY-Ce33KPvG.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DbnAvW1M-DsWNrW_e.js → mapTimeframeBalancesToTreeNode-B-kK0AfR-BuUApKLg.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DkrEWOxt-D-u3haR2.js → mapTimeframeBalancesToTreeNode-BvN4m9TA-kT_avyio.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-CQahu__z.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BiRfdc4g-CoGG1EsI.js} +1 -1
- package/dist/assets/{mui-bYXq4XMS.js → mui-DLNyBjYF.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-Bc8Xpsuq.js → page-detail-CWX5S47F-Dn7FEY9U.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-Clpw2LWj.js → radio-default-CiSgisfh-B6CtarQ8.js} +1 -1
- package/dist/assets/{react-BpmEXSTM.js → react-2VG2yH4x.js} +1 -1
- package/dist/assets/{react-B84192hO.js → react-BiH01iGK.js} +2 -2
- package/dist/assets/{react-BvHTyLQY.js → react-Bqj7JUF5.js} +1 -1
- package/dist/assets/{react-Egsc5mMa.js → react-CeCWo9lx.js} +3 -3
- package/dist/assets/{react-BUQtf2po.js → react-CwPTei9W.js} +2 -2
- package/dist/assets/{react-CA3XI5Yc.js → react-CxPSrq5B.js} +1 -1
- package/dist/assets/{react-BuvI16A0.js → react-VfkIuzgx.js} +1 -1
- package/dist/assets/{react-Cz0zQhlY.js → react-sPv488Z5.js} +1 -1
- package/dist/assets/{recharts-h5iNQbFd.js → recharts-Cnl2EvUV.js} +1 -1
- package/dist/assets/{sentry-cYFeB6Pw.js → sentry-EYLV4XmG.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-BXuToJ7O.js → shield-DOlUxcFf-DYYbm8md.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-rZFEkHuM-CcmAJqxc.js → toCOABalancesWithID-ChMShONK-DKVddnaL.js} +1 -1
- package/dist/assets/{toChartData-C-dHC-Oz-CP4vBFhW.js → toChartData-BUweupH8-9P9fGujj.js} +1 -1
- package/dist/assets/{transaction-placeholder-CpOwZAMG-0pwHfQC6.js → transaction-placeholder-CpOwZAMG-R9RAntKW.js} +1 -1
- package/dist/assets/{uploadAttachment-D3clfqPu-R41YBfbA.js → uploadAttachment-CeUHLpzO-CvskAe_e.js} +23 -23
- package/dist/assets/{uploadReceipts-Bkf_PaOH-BpDx2Xyf.js → uploadReceipts-Bkf_PaOH-B-Qf32vH.js} +1 -1
- package/dist/assets/{url-DPKHmOp_.js → url-DzcuVjHh.js} +1 -1
- package/dist/assets/{url-B-8T_WZb.js → url-dmxYLsoS.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-8uipnze8.js → useLongPress-GCK2COYQ-BC43nxgO.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-ClwDS-nj.js → usp-line-BBd1wKwW-_aHpaGit.js} +1 -1
- package/dist/assets/utils-D1zwltK3.js +70 -0
- package/dist/assets/{zeni-epic-state-BwKvATgd.js → zeni-epic-state-HWtMOH-U.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AccountInfoPage-CxWBk_t_-C853qZJF.js +0 -18
- package/dist/assets/AccountLockedInfoModal-DVvzKHJQ-BNuMKDDn.js +0 -59
- package/dist/assets/AddAddressForCardDrawer-e8qbO2Y5-DvtRki6M.js +0 -6
- package/dist/assets/ApprovalRulesSettingsPage-DQQw30S5-Cxbiv_Ie.js +0 -47
- package/dist/assets/ArAgingDetailPage-BEKsyA9Q-DYnsL3vQ.js +0 -46
- package/dist/assets/BillPayApprovalRuleDetailPage-ppU1Epmy-wt7XFnWO.js +0 -27
- package/dist/assets/BillPayApprovalRulesPage-UblNi2mR-Cy8f-c8U.js +0 -235
- package/dist/assets/ChargeCardPromoPage-uqT96W3_-BnyG_G4H.js +0 -222
- package/dist/assets/CreditCardPaymentDrawerPage-BvifQpD3-CNzp5-gT.js +0 -224
- package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-Cjd_r5yY.js +0 -1
- package/dist/assets/CustomerOnboardingPage-DUMQKVfM-grMFHxOC.js +0 -107
- package/dist/assets/DepositAccTransactionListPage-BS-OReem-BilXaW65.js +0 -66
- package/dist/assets/EditPeoplePage-BgsR09q8-Clk10Ml0.js +0 -55
- package/dist/assets/EntityDetailPage-Cvd4MG0F-BwgJTkQo.js +0 -18
- package/dist/assets/ExpenseAutomationPage-DW6Pxoah-DEkIGTkH.js +0 -1650
- package/dist/assets/InsightsSection-B3xD0SZ9-D-qnLmvb.js +0 -27
- package/dist/assets/InvitePeoplePage-BqzJOjVI-jVQ9WiMY.js +0 -12
- package/dist/assets/IssueChargeCardPage-CRtJDmrZ-BSgoE7Zm.js +0 -532
- package/dist/assets/LabeledDocumentField-p3pI5qLu-DGU5hH4V.js +0 -41
- package/dist/assets/MagicLinkACHDetailsPage-DwFvuGwG-D28XX0Mk.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CDB2igue-93p71ZIQ.js +0 -1
- package/dist/assets/NotificationsListConfig-BJm7A9Mz-BFc01g7L.js +0 -1
- package/dist/assets/OverlayContainerPage-CrZuT2Jj-Dr75-ri4.js +0 -11
- package/dist/assets/ReimbursementApprovalRuleDetailPage-C_dTOk5P-b8CZcjjJ.js +0 -26
- package/dist/assets/ReimbursementApprovalRulesPage-B5lca4qx-BsFO_SEH.js +0 -237
- package/dist/assets/ReimbursementPromoPage-Bjm0UHcm-OX27QZ1k.js +0 -84
- package/dist/assets/ReviewDetailsPage-COx9R71r-88bs-gXn.js +0 -290
- package/dist/assets/SpendManagementListViewPage-AI676Urw-BtTyp4PL.js +0 -123
- package/dist/assets/SpendManagementPerTabPage-D79c3Xqh-lldxOES4.js +0 -754
- package/dist/assets/StatementItem-Aal79YaO-6BMegZOO.js +0 -31
- package/dist/assets/TransactionListPage-CN9fZznd-BrDL89Z5.js +0 -35
- package/dist/assets/TransactionVendorDetailPage-CykcquSh-B4MWnYyc.js +0 -80
- package/dist/assets/TreasuryStatementsPage-QyWxshsI-NmuXI2Gt.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-BLmfU0VD-CtEdSJnO.js +0 -58
- package/dist/assets/UploadAdditionalDocumentOverlay-CJYvOjh0-CyuAR94x.js +0 -38
- package/dist/assets/analyticsHelper-DP2qtYwK.js +0 -1
- package/dist/assets/epic-BLwHhkRJ.js +0 -2
- package/dist/assets/utils-fBOyu0sO.js +0 -70
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{V as t,b1 as
|
|
1
|
+
import{V as t,b1 as vo,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,q as O,aA as kn,ax as Lo,di as jn,dj as Ao,F as B,d as w,dk as Qn,dl as Nt,aS as $,dm as It,c8 as Ft,dn as Pt,y as V,c_ as zt,av as Zn,a9 as Xe,dp as Me,bM as H,m as Bo,e as ce,aZ as Jn,dq as Xn,aT as T,am as Le,dr as Wo,ds as le,c7 as Tt,bY as Sn,ag as Oo,al as we,dt as et,du as Ae,dv as nt,ak as _,cf as ne,dw as Mo,b as Vt,dx as Ee,dy as Cn,dz as _n,dA as No,dB as Io,b7 as ei,b4 as Fo,cv as Dt,cu as Rt,dC as Po,b5 as ti,cy as ni,bO as zo,dD as To,dE as vn,dF as $n,dG as Vo,dH as Do,bQ as Ro,bI as Eo,dI as Go}from"./index-BhteR_e0.js";import{n as a,b as F}from"./mui-DLNyBjYF.js";import{a as N,S as Ho}from"./core-B-FNbYlu.js";import{EC as Et,F0 as Gt,F1 as Ne,F2 as Ht,F3 as Kt,F4 as Yt,F5 as Ut,F6 as ii,F7 as Ko,EP as xt,ED as Ie,bn as Ln,bh as oi,F8 as ri,F9 as Yo,bp as Uo,EQ as ai}from"./zeni-epic-state-HWtMOH-U.js";import{N as it,D as qo,R as Qo,B as ye,u as v}from"./AccountRow-D2Ypckgj-DU9kFXuE.js";function q(e,n){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function Z(e){return U("0,0",e?.forecast)}function li(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function jt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function se(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return pe("0.00%",Math.floor(n*100)/100)}else return pe("0.00%",void 0)}function de(e){if(e!=null&&e.forecast!=null){const n=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:n}))}else return U("0,0",null)}function ci(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const n=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return pe("0.00%",Math.floor(n*100)/100)}else return pe("0.00%",void 0)}function si(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:n}))}else return U("0,0",null)}const Fe=(e,n,i)=>{const{startDate:o,balanceType:r}=n,{dateFormat:{visual:l}}=B.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${xt(o,l.MMMYYYYFormat,e)}`:mt(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${B.getLocalizedStrings().reports.quarterPrefix}${xt(o,l.QYYYYformat,e)}`:mt(r,i);case"year":return r==="default"||r==="default_with_percent"?`${xt(o,l.YYYYformat,e)}`:mt(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function mt(e,n){return B.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const wp=(e,n,i)=>{const o=n.length==0?e:`${e}_${n.join("_")}`;return i!=null&&i.trim().length>0?`${o}_${i}`:`${o}_${$o(10)}`},Zo=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
width: 100%;
|
|
5
5
|
height: ${e=>e.heightValue}px;
|
|
6
6
|
justify-content: flex-start;
|
|
7
7
|
align-items: center;
|
|
8
|
-
padding-right: ${
|
|
8
|
+
padding-right: ${v.wrapperPadding}px;
|
|
9
9
|
`,Jo=a.div`
|
|
10
10
|
cursor: default;
|
|
11
11
|
user-select: none;
|
|
@@ -19,7 +19,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
19
19
|
justify-content: flex-start;
|
|
20
20
|
align-items: center;
|
|
21
21
|
gap: ${s.sp2};
|
|
22
|
-
width: ${
|
|
22
|
+
width: ${v.leftHeadingWidth}px;
|
|
23
23
|
`,er=a.div`
|
|
24
24
|
display: flex;
|
|
25
25
|
flex: 1 1 auto;
|
|
@@ -27,29 +27,29 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
27
27
|
align-items: center;
|
|
28
28
|
gap: ${s.sp4};
|
|
29
29
|
`,tr=a(ne)`
|
|
30
|
-
width: ${
|
|
31
|
-
min-width: ${
|
|
30
|
+
width: ${v.bankBalanceWidth}px;
|
|
31
|
+
min-width: ${v.bankBalanceWidth}px;
|
|
32
32
|
text-align: right;
|
|
33
33
|
`,nr=a(ne)`
|
|
34
|
-
width: ${
|
|
35
|
-
min-width: ${
|
|
34
|
+
width: ${v.clearedBalanceWidth}px;
|
|
35
|
+
min-width: ${v.clearedBalanceWidth}px;
|
|
36
36
|
text-align: right;
|
|
37
37
|
`,ir=a(ne)`
|
|
38
|
-
width: ${
|
|
39
|
-
min-width: ${
|
|
38
|
+
width: ${v.statusWidth}px;
|
|
39
|
+
min-width: ${v.statusWidth}px;
|
|
40
40
|
`,or=a.div`
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-shrink: 0;
|
|
43
43
|
gap: ${s.sp3};
|
|
44
|
-
width: ${
|
|
45
|
-
min-width: ${
|
|
44
|
+
width: ${v.varianceWidth}px;
|
|
45
|
+
min-width: ${v.varianceWidth}px;
|
|
46
46
|
flex-direction: row;
|
|
47
47
|
justify-content: flex-end;
|
|
48
48
|
align-items: center;
|
|
49
49
|
text-align: center;
|
|
50
50
|
`,rr=a.div`
|
|
51
|
-
width: ${
|
|
52
|
-
min-width: ${
|
|
51
|
+
width: ${v.variancePercentageWidth}px;
|
|
52
|
+
min-width: ${v.variancePercentageWidth}px;
|
|
53
53
|
text-align: right;
|
|
54
54
|
margin-right: ${s.sp2};
|
|
55
55
|
`,ar=a.div`
|
|
@@ -60,11 +60,11 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
60
60
|
display: flex;
|
|
61
61
|
justify-content: center;
|
|
62
62
|
align-items: center;
|
|
63
|
-
`;function cr({height:e}){const n=O();return t.jsx(Zo,{heightValue:e,windowSize:n,children:t.jsxs(Jo,{children:[t.jsxs(Xo,{children:[t.jsx(ar,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,maxWidth:s.sp4,width:s.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(lr,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:
|
|
63
|
+
`;function cr({height:e}){const n=O();return t.jsx(Zo,{heightValue:e,windowSize:n,children:t.jsxs(Jo,{children:[t.jsxs(Xo,{children:[t.jsx(ar,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,maxWidth:s.sp4,width:s.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(lr,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:v.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(er,{children:[t.jsx(tr,{children:t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:v.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(nr,{children:t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:v.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(or,{children:[t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:v.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(rr,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:v.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(ir,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:v.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const sr=a.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: row;
|
|
66
66
|
height: ${e=>e.heightValue}px;
|
|
67
|
-
padding-right: ${
|
|
67
|
+
padding-right: ${v.wrapperPadding}px;
|
|
68
68
|
`;function dr({height:e}){return t.jsx(sr,{heightValue:e})}const hr=a.div`
|
|
69
69
|
user-select: none;
|
|
70
70
|
display: flex;
|
|
@@ -72,7 +72,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
72
72
|
height: ${e=>e.height}px;
|
|
73
73
|
background-color: ${e=>e.bgColor?.hex()};
|
|
74
74
|
flex-direction: column;
|
|
75
|
-
padding-right: ${
|
|
75
|
+
padding-right: ${v.wrapperPadding}px;
|
|
76
76
|
`,ur=a.div`
|
|
77
77
|
flex: 1 1 auto;
|
|
78
78
|
display: flex;
|
|
@@ -84,7 +84,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
84
84
|
display: flex;
|
|
85
85
|
flex-direction: row;
|
|
86
86
|
justify-content: flex-end;
|
|
87
|
-
width: ${
|
|
87
|
+
width: ${v.leftHeadingWidth}px;
|
|
88
88
|
`,pr=a.div`
|
|
89
89
|
display: flex;
|
|
90
90
|
flex: 1 1 auto;
|
|
@@ -93,10 +93,10 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
93
93
|
`,fr=a(ti)`
|
|
94
94
|
user-select: none;
|
|
95
95
|
color: ${e=>e.theme.colors.primary};
|
|
96
|
-
width: ${
|
|
97
|
-
min-width: ${
|
|
96
|
+
width: ${v.leftTimeframeWidth}px;
|
|
97
|
+
min-width: ${v.leftTimeframeWidth}px;
|
|
98
98
|
flex: 1 1 auto;
|
|
99
|
-
`,xr=a(
|
|
99
|
+
`,xr=a(_)`
|
|
100
100
|
user-select: none;
|
|
101
101
|
`,mr=a.div`
|
|
102
102
|
max-height: ${s.sp8};
|
|
@@ -112,36 +112,36 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
112
112
|
color: ${e=>e.theme.colors.primary};
|
|
113
113
|
margin-right: ${e=>e.marginRight===!0?s.sp2:s.sp0};
|
|
114
114
|
`,wr=a.div`
|
|
115
|
-
width: ${
|
|
115
|
+
width: ${v.bankBalanceWidth}px;
|
|
116
116
|
`,yr=a.div`
|
|
117
|
-
width: ${
|
|
117
|
+
width: ${v.bankBalanceRightTimeframeWidth}px;
|
|
118
118
|
`,br=a.div`
|
|
119
|
-
width: ${
|
|
120
|
-
margin-right: ${
|
|
119
|
+
width: ${v.clearedBalanceWidth}px;
|
|
120
|
+
margin-right: ${v.tickLeftMargin}px;
|
|
121
121
|
`,kr=a.div`
|
|
122
|
-
width: ${
|
|
122
|
+
width: ${v.varianceTimeframeWidth}px;
|
|
123
123
|
align-self: flex-end;
|
|
124
124
|
`,jr=a.div`
|
|
125
|
-
width: ${
|
|
125
|
+
width: ${v.spacerLineWidth}px;
|
|
126
126
|
`,Sr=a.div`
|
|
127
|
-
width: ${
|
|
128
|
-
`,
|
|
127
|
+
width: ${v.statusWidth}px;
|
|
128
|
+
`,Ge=({title:e,type:n})=>t.jsx(mr,{widthValue:v[n],children:t.jsx(xr,{children:e})});function Cr({sectionTitle:e,height:n,isLoading:i}){const o=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(hr,{height:n,children:t.jsxs(ur,{children:[t.jsx(gr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp4,width:v.leftLabelWidth},children:t.jsx(fr,{"data-testid":m("account-recon-section-title",e),children:e})})}),t.jsxs(pr,{children:[t.jsx(wr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.bankBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ge,{title:o.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(yr,{}),t.jsx(br,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.clearedBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ge,{title:o.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(kr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.varianceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ge,{title:o.variance,type:"varianceTimeframeWidth"})})}),t.jsx(jr,{}),t.jsx(Sr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.statusTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ge,{title:o.status,type:"statusTimeframeWidth"})})})]})]})})}const _r=a.div`
|
|
129
129
|
display: flex;
|
|
130
130
|
flex-direction: row;
|
|
131
131
|
height: ${e=>e.heightValue}px;
|
|
132
132
|
align-items: center;
|
|
133
|
-
padding-right: ${
|
|
134
|
-
`,
|
|
133
|
+
padding-right: ${v.wrapperPadding}px;
|
|
134
|
+
`,vr=a(ti)`
|
|
135
135
|
user-select: none;
|
|
136
136
|
color: ${e=>e.theme.colors.primary};
|
|
137
|
-
`;function $r({height:e,title:n}){return t.jsx(
|
|
137
|
+
`;function $r({height:e,title:n}){return t.jsx(_r,{heightValue:e,children:t.jsx(vr,{"data-testid":m("account-recon-section-title",n),children:n})})}const Lr=a.div`
|
|
138
138
|
display: flex;
|
|
139
139
|
flex: 1 1 auto;
|
|
140
140
|
width: 100%;
|
|
141
141
|
height: ${e=>e.heightValue}px;
|
|
142
142
|
justify-content: flex-start;
|
|
143
143
|
align-items: center;
|
|
144
|
-
padding-right: ${
|
|
144
|
+
padding-right: ${v.wrapperPadding}px;
|
|
145
145
|
`,Ar=a.div`
|
|
146
146
|
cursor: default;
|
|
147
147
|
user-select: none;
|
|
@@ -166,33 +166,33 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
166
166
|
text-overflow: ellipsis;
|
|
167
167
|
text-align: left;
|
|
168
168
|
color: ${e=>e.theme.colors.primary};
|
|
169
|
-
width: ${
|
|
170
|
-
min-width: ${
|
|
169
|
+
width: ${v.leftLabelWidth}px;
|
|
170
|
+
min-width: ${v.leftLabelWidth}px;
|
|
171
171
|
`,Or=a.div`
|
|
172
172
|
display: flex;
|
|
173
173
|
flex: 1 1 auto;
|
|
174
174
|
justify-content: flex-end;
|
|
175
175
|
align-items: center;
|
|
176
176
|
`,Mr=a(ne)`
|
|
177
|
-
width: ${
|
|
178
|
-
min-width: ${
|
|
177
|
+
width: ${v.bankBalanceWidth}px;
|
|
178
|
+
min-width: ${v.bankBalanceWidth}px;
|
|
179
179
|
text-align: right;
|
|
180
180
|
`,Nr=a(ne)`
|
|
181
|
-
width: ${
|
|
182
|
-
min-width: ${
|
|
181
|
+
width: ${v.clearedBalanceWidth}px;
|
|
182
|
+
min-width: ${v.clearedBalanceWidth}px;
|
|
183
183
|
text-align: right;
|
|
184
|
-
margin-left: ${
|
|
184
|
+
margin-left: ${v.tickLeftMargin}px;
|
|
185
185
|
`,Ir=a(ne)`
|
|
186
|
-
width: ${
|
|
187
|
-
min-width: ${
|
|
186
|
+
width: ${v.statusWidth}px;
|
|
187
|
+
min-width: ${v.statusWidth}px;
|
|
188
188
|
height: 1px;
|
|
189
|
-
`,
|
|
189
|
+
`,Fr=a.div`
|
|
190
190
|
display: flex;
|
|
191
191
|
flex-direction: row;
|
|
192
|
-
min-width: ${
|
|
193
|
-
width: ${
|
|
192
|
+
min-width: ${v.spacerLineWidth}px;
|
|
193
|
+
width: ${v.spacerLineWidth}px;
|
|
194
194
|
align-items: center;
|
|
195
|
-
`,
|
|
195
|
+
`,Pr=a.div`
|
|
196
196
|
width: 1px;
|
|
197
197
|
margin-left: ${s.sp3};
|
|
198
198
|
height: ${e=>e.heightValue}px;
|
|
@@ -200,17 +200,17 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
200
200
|
`,zr=a.div`
|
|
201
201
|
display: flex;
|
|
202
202
|
flex-shrink: 0;
|
|
203
|
-
width: ${
|
|
204
|
-
min-width: ${
|
|
203
|
+
width: ${v.varianceTimeframeWidth}px;
|
|
204
|
+
min-width: ${v.varianceTimeframeWidth}px;
|
|
205
205
|
flex-direction: row;
|
|
206
206
|
justify-content: flex-end;
|
|
207
207
|
align-items: center;
|
|
208
208
|
text-align: center;
|
|
209
|
-
margin-left: ${
|
|
209
|
+
margin-left: ${v.tickLeftMargin}px;
|
|
210
210
|
`,Tr=a(ne)`
|
|
211
211
|
border-radius: ${s.sp1};
|
|
212
212
|
color: ${e=>e.textColor.hex()};
|
|
213
|
-
min-width: ${
|
|
213
|
+
min-width: ${v.varianceNumberWidth}px;
|
|
214
214
|
text-align: right;
|
|
215
215
|
margin-right: ${s.sp2};
|
|
216
216
|
`,Vr=a(ne)`
|
|
@@ -220,8 +220,8 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
220
220
|
text-align: center;
|
|
221
221
|
color: ${e=>e.textColor.hex()};
|
|
222
222
|
background-color: ${e=>e.bgColor.hex()};
|
|
223
|
-
min-width: ${
|
|
224
|
-
`,{expenseAutomation:{accountRecon:{reconciliation:{headers:An}}},common:{strings:{percentage:Dr,hyphen:tt}}}=B.getLocalizedStrings();function Rr({height:e,sectionData:n}){const i=O(),o=n.totalVariance,r=n.totalVariancePercentage,l=ce();return t.jsx(Lr,{"data-testid":m("total-row-root-container"),heightValue:e,windowSize:i,children:t.jsxs(Ar,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsxs(Br,{children:[t.jsx(ye,{firstLetter:An.section[n.sectionId].subTitle.charAt(0),color:new $(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(Wr,{children:An.section[n.sectionId].subTitle})]}),t.jsxs(Or,{children:[t.jsx(Mr,{children:n.totalBankBalance!=null?U("0,0",n.totalBankBalance):tt}),t.jsx(Nr,{children:n.totalClearedBalance!=null?U("0,0",n.totalClearedBalance):tt}),t.jsx(
|
|
223
|
+
min-width: ${v.variancePercentageWidth}px;
|
|
224
|
+
`,{expenseAutomation:{accountRecon:{reconciliation:{headers:An}}},common:{strings:{percentage:Dr,hyphen:tt}}}=B.getLocalizedStrings();function Rr({height:e,sectionData:n}){const i=O(),o=n.totalVariance,r=n.totalVariancePercentage,l=ce();return t.jsx(Lr,{"data-testid":m("total-row-root-container"),heightValue:e,windowSize:i,children:t.jsxs(Ar,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsxs(Br,{children:[t.jsx(ye,{firstLetter:An.section[n.sectionId].subTitle.charAt(0),color:new $(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(Wr,{children:An.section[n.sectionId].subTitle})]}),t.jsxs(Or,{children:[t.jsx(Mr,{children:n.totalBankBalance!=null?U("0,0",n.totalBankBalance):tt}),t.jsx(Nr,{children:n.totalClearedBalance!=null?U("0,0",n.totalClearedBalance):tt}),t.jsx(Er,{variance:o,variancePercentage:r}),t.jsx(Fr,{children:t.jsx(Pr,{heightValue:e})}),t.jsx(Ir,{})]})]})})}const Er=({variance:e,variancePercentage:n})=>{const i=ce(),o=new $(i.colors.hero),r=new $(i.colors.hero),l=new $(i.colors.background),c=e!=null&&e.amount===0?"0%":n!=null?n===0?"0%":`${n.toFixed(2)}${Dr}`:tt;return t.jsxs(zr,{children:[t.jsx(Tr,{textColor:o,children:e!=null?U("0,0",e):tt}),t.jsx(Vr,{textColor:r,bgColor:l,children:c})]})};function Gr(){return t.jsx(dr,{height:it("section")})}function Hr(){return t.jsx(cr,{height:it("loading_in_progress")})}function Kr(e,n){if(e.element.kind!=="timeframe_headers")return null;const i=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,o=e.element.data,r=o.accountIDs.length===0;return t.jsx(Cr,{sectionTitle:i.section[o.sectionId].title,isLoading:r,isSticky:n,height:it("timeframe_headers")})}const Yr=(e,n,i)=>{const o=e.element.data;return t.jsx(Rr,{isSticky:i,height:n,sectionData:o})},Ur=(e,n)=>{const i=e.element.data,o=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx($r,{height:n,title:o.section[i.sectionId].title})},qr=(e,n,i)=>{const o=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?o.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(Qo,{height:n,accountRecon:o,isLastRow:i,isSelectedRow:r,onReviewClicked:e.config.accountReconciliationConfig?.onReviewClicked,onConnectClicked:e.config.accountReconciliationConfig?.onConnectClicked,onReconnectClicked:e.config.accountReconciliationConfig?.onReconnectClicked,onOpenDrawerClicked:e.config.accountReconciliationConfig?.onOpenDrawerClicked,onStatementAddClicked:e.config.accountReconciliationConfig?.onStatementAddClicked})},k={balanceHeight:s.sp4,balanceHeightInPx:w[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:s.sp4,balanceLeftMarginInPx:w[4],titleWidth:new V(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128};function Qr(e){switch(e){case"section":return w[8];case"section_with_ac_only":return w[8];case"calculated_section":case"calculated_section_type1":return w[8];case"ac_group_report":case"ac_group_subaccount":return w[6];case"ac_subentity_total":case"ac_subaccount":case"ac_report":return w[6];case"title_string_only":case"total":return w[6];case"timeframe_headers":case"headers_loading_in_progress":return w[11];case"timeframe_headers_with_forecast":return 98;case"loading_in_progress":case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function Zr(e,n,i=0){const o=["summary"];switch(e){case"section":return!o.includes(n);case"section_with_ac_only":return!o.includes(n);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(o.includes(n)||n==="detailed"&&i>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(o.includes(n)||n==="detailed"&&i>0);case"title_string_only":return!o.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(n==="detailed"&&i>0);case"checkbox_and_name_only":return!0;default:return!1}}const ge=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!0}},fe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},di={emptyLeftContainer:new V(w[0],w[5])},Jr=a(_)`
|
|
225
225
|
margin-left: ${e=>!e.hasChildren&&e.depth!==0?s.sp3:s.sp2};
|
|
226
226
|
overflow: hidden;
|
|
227
227
|
white-space: nowrap;
|
|
@@ -249,7 +249,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
249
249
|
height: ${s.sp1};
|
|
250
250
|
`,Be=a.div`
|
|
251
251
|
display: flex;
|
|
252
|
-
`,oa=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return t.jsxs(Be,{children:[r.depth===0?t.jsx(
|
|
252
|
+
`,oa=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return t.jsxs(Be,{children:[r.depth===0?t.jsx(_n,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}):null,r.depth>=1?t.jsx(_n,{depth:r.depth}):null]},i+o)}):null}),ui=({ancestorMetadata:e,depth:n,name:i})=>{const o=O();return n===0?e[n].hasChildren===!1?t.jsx(hi,{windowSize:o}):t.jsxs(Be,{children:[t.jsx(Ee,{depth:n}),t.jsx(Ae,{}),t.jsx(Ee,{depth:n+1})]}):t.jsxs(t.Fragment,{children:[[...Array(n+1).keys()].map(r=>{const l=e[r],c=r!==n?e[r+1]:void 0;return t.jsxs(Be,{children:[l.depth===0?t.jsx(Ee,{depth:l.depth}):null,r>=2||r===1&&(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?n===1?t.jsx(Cn,{index:1}):t.jsx(Cn,{index:2}):null,(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?t.jsx(Ae,{},r):t.jsx(nt,{}),t.jsx(Ee,{depth:l.depth+1})]},i+r)}),n===1&&e[n].hasChildren!=!0?t.jsx(ia,{}):null]})},gi=({ancestorMetadata:e,depth:n,name:i})=>n===0?t.jsx(na,{}):t.jsx(t.Fragment,{children:[...Array(n).keys()].map(o=>{const r=e[o],l=o!==n?e[o+1]:void 0;return t.jsxs(Be,{children:[r!=null&&r.depth===0?t.jsx(et,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}),t.jsx(et,{depth:r!=null?r.depth+1:0})]},i+o)})}),ra=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return r==null?null:t.jsxs(Be,{children:[r.depth===0?t.jsx(et,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}):null,r.depth>=1?t.jsx(et,{depth:r.depth}):null]},i+o)}):null}),aa=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>{let d=t.jsx(ta,{});return e===0&&r&&(d=t.jsx(To,{collapsed:l,onIconClick:c})),e>0&&(r&&!o&&n&&(d=t.jsx(vn,{collapsed:l,onIconClick:c})),i&&o&&n&&(d=t.jsx($n,{})),i&&o&&!n&&(d=t.jsx(Vo,{})),r&&o&&!n&&(d=t.jsx(Do,{collapsed:l,onIconClick:c})),r&&o&&n&&(d=t.jsx(vn,{collapsed:l,onIconClick:c})),n&&i&&(d=t.jsx($n,{}))),d},la=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>t.jsx(ea,{children:t.jsx(aa,{depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})});function pi(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const i=O();return t.jsxs(Xr,{children:[e.classDepth!=null?t.jsx(ui,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(hi,{windowSize:i}):null,t.jsx(ra,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(la,{...e}),t.jsx(Jr,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:i,title:n,children:n})]})}const E={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,325,405),nameLogoWidth:new V(w[4],w[4]),nameLogoHeight:new V(w[4],w[4])};function ca(e){switch(e){case"timeframe_headers":return w[10];case"aging_report_row":return w[6];case"ac_subentity_total":return w[6];case"total":return w[8];case"spacer_row":return w[8];default:return w[0]}}function sa(){return!0}const He=[new V(w[4],w[8]),new V(44,76),new V(69,102),new V(93,124),new V(113,143)],da=a.div`
|
|
253
253
|
display: flex;
|
|
254
254
|
flex: 1 1 auto;
|
|
255
255
|
max-height: 1px;
|
|
@@ -267,9 +267,9 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
267
267
|
flex-grow: 1;
|
|
268
268
|
align-items: center;
|
|
269
269
|
background-color: ${e=>e.theme.colors.grey4};
|
|
270
|
-
width: ${e=>
|
|
271
|
-
max-width: ${e=>
|
|
272
|
-
${({isSticky:e})=>e?
|
|
270
|
+
width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
271
|
+
max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
272
|
+
${({isSticky:e})=>e?F`
|
|
273
273
|
position: -webkit-sticky;
|
|
274
274
|
position: sticky;
|
|
275
275
|
top: ${s.sp0};
|
|
@@ -319,19 +319,19 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
319
319
|
display: flex;
|
|
320
320
|
flex-direction: row;
|
|
321
321
|
justify-content: flex-start;
|
|
322
|
-
`,yi=a(
|
|
322
|
+
`,yi=a(_)`
|
|
323
323
|
user-select: none;
|
|
324
|
-
min-width: ${
|
|
325
|
-
max-width: ${
|
|
324
|
+
min-width: ${E.balanceWidth};
|
|
325
|
+
max-width: ${E.balanceWidth};
|
|
326
326
|
text-align: right;
|
|
327
|
-
margin-left: ${
|
|
327
|
+
margin-left: ${E.balanceLeftMargin};
|
|
328
328
|
border: 1px solid transparent;
|
|
329
329
|
color: ${e=>e.theme.colors.hero};
|
|
330
330
|
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
331
331
|
&:hover {
|
|
332
332
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
333
333
|
}
|
|
334
|
-
`,xa=a(
|
|
334
|
+
`,xa=a(_)`
|
|
335
335
|
user-select: none;
|
|
336
336
|
clear: both;
|
|
337
337
|
display: inline-block;
|
|
@@ -347,10 +347,10 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
347
347
|
flex-grow: 1;
|
|
348
348
|
align-items: center;
|
|
349
349
|
height: ${e=>e.containerHeight}px;
|
|
350
|
-
width: ${e=>
|
|
351
|
-
max-width: ${e=>
|
|
350
|
+
width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
351
|
+
max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
352
352
|
background-color: ${e=>e.bgColor?.hex()};
|
|
353
|
-
${({isSticky:e})=>e?
|
|
353
|
+
${({isSticky:e})=>e?F`
|
|
354
354
|
position: sticky;
|
|
355
355
|
top: ${s.sp0};
|
|
356
356
|
left: ${s.sp0};
|
|
@@ -360,7 +360,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
360
360
|
&:hover {
|
|
361
361
|
color: ${e=>e.theme.colors.primary};
|
|
362
362
|
}
|
|
363
|
-
`,ki=({balance:e,isOpen:n})=>{const i=n?e?.balance:e?.totalBalance;return t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",i)})})},ji=({total:e})=>t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function ma({isSticky:e,height:n,isScrolling:i,isLastNode:o,balances:r,total:l,vendor:c,backgroundColor:d,onEntityNameClick:h}){const u=O(),p="default",g=c?.name??"";return t.jsxs(fi,{"data-testid":m("ap-aging-report-row-root-container",g),containerHeight:n,bgColor:d,windowSize:u,children:[t.jsxs(xi,{"data-testid":m("ap-aging-report-row-container",g),style:{cursor:p},isClickable:!1,containerHeight:n-1,children:[t.jsxs(bi,{onClick:()=>c?.id!=null?h?.(c.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:n-1,children:[c?.logo!=null?t.jsx(
|
|
363
|
+
`,ki=({balance:e,isOpen:n})=>{const i=n?e?.balance:e?.totalBalance;return t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",i)})})},ji=({total:e})=>t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function ma({isSticky:e,height:n,isScrolling:i,isLastNode:o,balances:r,total:l,vendor:c,backgroundColor:d,onEntityNameClick:h}){const u=O(),p="default",g=c?.name??"";return t.jsxs(fi,{"data-testid":m("ap-aging-report-row-root-container",g),containerHeight:n,bgColor:d,windowSize:u,children:[t.jsxs(xi,{"data-testid":m("ap-aging-report-row-container",g),style:{cursor:p},isClickable:!1,containerHeight:n-1,children:[t.jsxs(bi,{onClick:()=>c?.id!=null?h?.(c.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:n-1,children:[c?.logo!=null?t.jsx(Pt,{photoUrl:c.logo.toString(),styles:{width:E.nameLogoWidth.valuePx(u),height:E.nameLogoHeight.valuePx(u)}}):t.jsx(zt,{name:g??"",size:s.sp4}),t.jsx(xa,{children:g})]}),t.jsxs(mi,{"data-testid":m("ap-aging-report-row-balances-container",g),children:[r.map(f=>t.jsx(ki,{balance:f,isOpen:!0},f?.period)),t.jsx(ji,{total:l})]})]}),t.jsx(Si,{isScrolling:i,isLastNode:o})]})}function wa({treeNodeId:e,isSticky:n,height:i,isScrolling:o,isLastNode:r,isOpen:l,balances:c,total:d,totalWithChildren:h,nestedCustomer:u,metadata:p,backgroundColor:g,onEntityNameClick:f,onClick:x}){const b=O(),y=p,C=u?.customer.name??"",S=u!=null?u.id.length-1:0,A=u?.hasSiblings??!1,L=u!=null?u.children.length!==0:!1,W=L,P=W?"pointer":"default",z=u!=null?u.isLeafCustomer:!1,K=()=>{x?.(e)};return t.jsxs(fi,{"data-testid":m("ar-aging-report-row-root-container",e),containerHeight:i,bgColor:g,windowSize:b,children:[t.jsxs(xi,{"data-testid":m("ar-aging-report-row-container",e),style:{cursor:P},isClickable:W,containerHeight:i-1,children:[t.jsx(bi,{"data-testid":m("ar-aging-report-row-name-container",e),isSticky:n,windowSize:b,bgColor:g,containerHeight:i-1,children:t.jsx(pi,{displayName:C,depth:S,isLastNode:r,hasChildren:L,hasSiblings:A,isLeaf:z,collapsed:!l,subAccountAnscestorMetadata:y.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:K,onNameClick:()=>u?.id[0]!=null?f?.(u.id[0]):void 0})}),t.jsxs(mi,{children:[c.map(G=>t.jsx(ki,{balance:G,isOpen:l},G?.period)),t.jsx(ji,{total:l?d:h})]})]}),t.jsx(Si,{isScrolling:o,subEntityProps:{nestingLevel:S,isSticky:n,noMarginForEntity:!0}})]})}function Si({isScrolling:e,isLastNode:n=!1,subEntityProps:i}){return n?t.jsx(St,{isScrolling:e,kind:"end_row_separator",subEntityProps:i}):t.jsx(St,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:i})}const ya=a.div`
|
|
364
364
|
user-select: none;
|
|
365
365
|
display: flex;
|
|
366
366
|
flex: 1 1 auto;
|
|
@@ -380,22 +380,22 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
380
380
|
display: flex;
|
|
381
381
|
max-height: ${s.sp8};
|
|
382
382
|
min-height: ${s.sp8};
|
|
383
|
-
min-width: ${
|
|
383
|
+
min-width: ${E.balanceWidth};
|
|
384
384
|
justify-content: center;
|
|
385
385
|
align-items: center;
|
|
386
386
|
background-color: ${e=>e.theme.colors.background};
|
|
387
387
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
388
388
|
border-radius: ${s.sp2};
|
|
389
|
-
margin-left: ${
|
|
389
|
+
margin-left: ${E.balanceLeftMargin};
|
|
390
390
|
color: ${e=>e.theme.colors.primary};
|
|
391
|
-
`,
|
|
391
|
+
`,_i=a(_)`
|
|
392
392
|
display: flex;
|
|
393
393
|
user-select: none;
|
|
394
394
|
flex-direction: row;
|
|
395
395
|
justify-content: center;
|
|
396
396
|
align-items: center;
|
|
397
|
-
height: ${
|
|
398
|
-
max-width: ${
|
|
397
|
+
height: ${E.balanceHeight};
|
|
398
|
+
max-width: ${E.balanceWidth};
|
|
399
399
|
width: 138px;
|
|
400
400
|
text-align: center;
|
|
401
401
|
column-gap: ${s.sp1};
|
|
@@ -406,22 +406,22 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
406
406
|
display: flex;
|
|
407
407
|
flex-direction: row;
|
|
408
408
|
align-items: center;
|
|
409
|
-
min-width: ${e=>
|
|
409
|
+
min-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
410
410
|
color: ${e=>e.theme.colors.primary};
|
|
411
411
|
background-color: ${e=>e.bgColor?.hex()};
|
|
412
|
-
${e=>e.isSticky?
|
|
412
|
+
${e=>e.isSticky?F`
|
|
413
413
|
position: -webkit-sticky;
|
|
414
414
|
position: sticky;
|
|
415
415
|
top: ${s.sp0};
|
|
416
416
|
left: ${s.sp0};
|
|
417
417
|
`:""}
|
|
418
|
-
`,ja=a(
|
|
418
|
+
`,ja=a(_)`
|
|
419
419
|
display: flex;
|
|
420
420
|
align-items: center;
|
|
421
421
|
cursor: pointer;
|
|
422
422
|
column-gap: ${s.sp1};
|
|
423
423
|
color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
|
|
424
|
-
`,
|
|
424
|
+
`,vi=a.div`
|
|
425
425
|
max-height: ${s.sp8};
|
|
426
426
|
min-height: ${s.sp8};
|
|
427
427
|
cursor: pointer;
|
|
@@ -442,7 +442,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
442
442
|
`,Zt=a(Dt)`
|
|
443
443
|
width: 12px;
|
|
444
444
|
height: 12px;
|
|
445
|
-
`,Sa=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=()=>{o?.(Jt(i),r)},c=n===r?i:"ascending";return t.jsxs(ja,{active:n===r,"data-testid":m("duration-row-vendor-title",e),children:[r==="vendor"?B.getLocalizedStrings().reports.aging.apAging.vendor:B.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(qt,{selectedForSort:n===r,children:t.jsx($i,{"data-testid":m("duration-row-vendor-sort-icon",e),onClick:l,children:c==="ascending"?t.jsx(Zt,{}):t.jsx(Qt,{})})}),t.jsx(Xe,{controller:n===r,children:t.jsx(Li,{"data-testid":m("duration-row-vendor-sort-cancel-icon",e),onClick:()=>Ai({onSortOrderChanged:o})})})]})},Ai=({onSortOrderChanged:e})=>{e?.("descending","total")},Ca=({agingPeriod:e,sortKey:n="vendor",sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n===e?i:"ascending",l=()=>{o?.(Jt(i),e)};return t.jsx(
|
|
445
|
+
`,Sa=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=()=>{o?.(Jt(i),r)},c=n===r?i:"ascending";return t.jsxs(ja,{active:n===r,"data-testid":m("duration-row-vendor-title",e),children:[r==="vendor"?B.getLocalizedStrings().reports.aging.apAging.vendor:B.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(qt,{selectedForSort:n===r,children:t.jsx($i,{"data-testid":m("duration-row-vendor-sort-icon",e),onClick:l,children:c==="ascending"?t.jsx(Zt,{}):t.jsx(Qt,{})})}),t.jsx(Xe,{controller:n===r,children:t.jsx(Li,{"data-testid":m("duration-row-vendor-sort-cancel-icon",e),onClick:()=>Ai({onSortOrderChanged:o})})})]})},Ai=({onSortOrderChanged:e})=>{e?.("descending","total")},Ca=({agingPeriod:e,sortKey:n="vendor",sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n===e?i:"ascending",l=()=>{o?.(Jt(i),e)};return t.jsx(vi,{"data-testid":m("duration-row-tick-container",e),children:t.jsx(Ci,{"data-testid":m("duration-row-tick-element-container",e),children:t.jsxs(_i,{active:n===e,"data-testid":m("duration-row-timeframe-tick",e),children:[B.getLocalizedStrings().reports.aging.duration[e],t.jsxs(qt,{selectedForSort:n===e,"data-testid":m("duration-row-sort-container",e),children:[t.jsx($i,{"data-testid":m("duration-row-sort-icon",e),onClick:l,children:r==="ascending"?t.jsx(Zt,{}):t.jsx(Qt,{})}),t.jsx(Xe,{controller:n===e,children:t.jsx(Li,{"data-testid":m("duration-row-sort-cancel-icon",e),onClick:()=>Ai({onSortOrderChanged:o})})})]})]})})})},Bi=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n==="total"?i:"ascending",l=()=>{o?.(Jt(i),"total")};return t.jsx(vi,{"data-testid":m("duration-row-entity-total-tick-container",e),onClick:l,children:t.jsx(Ci,{"data-testid":m("duration-row-entity-total-tick-element-container",e),children:t.jsxs(_i,{active:n==="total","data-testid":m("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?B.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:B.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(qt,{selectedForSort:n==="total","data-testid":m("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(Zt,{}):t.jsx(Qt,{})})]})})})},_a=({reportId:e,agingPeriod:n,sortKey:i="vendor",sortOrder:o="ascending",onSortOrderChanged:r})=>n!=null?t.jsx(Ca,{sortKey:i,sortOrder:o,onSortOrderChanged:r,agingPeriod:n}):t.jsx(Bi,{reportId:e,sortKey:i,sortOrder:o,onSortOrderChanged:r});function va({reportId:e,isSticky:n,height:i,agingPeriods:o,sortKey:r,sortOrder:l,backgroundColor:c,onSortOrderChanged:d}){const h=O();return t.jsxs(ya,{height:i,bgColor:c,"data-testid":m("duration-row-root-container",e),children:[t.jsx(ka,{"data-testid":m("duration-row-placeholder-name",e),isSticky:n,windowSize:h,bgColor:c,children:t.jsx(Sa,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})}),t.jsxs(ba,{children:[o.map(u=>t.jsx(_a,{reportId:e,agingPeriod:u,sortKey:r,sortOrder:l,onSortOrderChanged:d},u)),t.jsx(Bi,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})]})]})}const Jt=e=>e==="ascending"?"descending":"ascending",$a=[10,14,20,20,20],La=a.div`
|
|
446
446
|
display: flex;
|
|
447
447
|
flex: 1 1 auto;
|
|
448
448
|
width: fit-content;
|
|
@@ -466,12 +466,12 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
466
466
|
display: flex;
|
|
467
467
|
flex-direction: row;
|
|
468
468
|
justify-content: flex-start;
|
|
469
|
-
`,Oi=a(
|
|
469
|
+
`,Oi=a(_)`
|
|
470
470
|
user-select: none;
|
|
471
|
-
min-width: ${
|
|
472
|
-
max-width: ${
|
|
471
|
+
min-width: ${E.balanceWidth};
|
|
472
|
+
max-width: ${E.balanceWidth};
|
|
473
473
|
text-align: right;
|
|
474
|
-
margin-left: ${
|
|
474
|
+
margin-left: ${E.balanceLeftMargin};
|
|
475
475
|
color: ${e=>e.theme.colors.primary};
|
|
476
476
|
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
477
477
|
`,Wa=a.div`
|
|
@@ -481,15 +481,15 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
481
481
|
flex-grow: 1;
|
|
482
482
|
align-items: center;
|
|
483
483
|
height: ${e=>e.containerHeight-1}px;
|
|
484
|
-
width: ${e=>
|
|
485
|
-
max-width: ${e=>
|
|
484
|
+
width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
485
|
+
max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
486
486
|
background-color: ${e=>e.bgColor?.hex()};
|
|
487
|
-
${({isSticky:e})=>e?
|
|
487
|
+
${({isSticky:e})=>e?F`
|
|
488
488
|
position: sticky;
|
|
489
489
|
top: ${s.sp0};
|
|
490
490
|
left: ${s.sp0};
|
|
491
491
|
`:null}
|
|
492
|
-
`,Oa=a(
|
|
492
|
+
`,Oa=a(_)`
|
|
493
493
|
user-select: none;
|
|
494
494
|
clear: both;
|
|
495
495
|
display: inline-block;
|
|
@@ -499,8 +499,8 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
499
499
|
text-align: left;
|
|
500
500
|
margin-left: ${e=>$a[e.depth]}px;
|
|
501
501
|
color: ${e=>e.theme.colors.primary};
|
|
502
|
-
width: ${e=>
|
|
503
|
-
`,Ma=({balance:e})=>t.jsx(Wi,{children:t.jsx(Oi,{isClickable:!1,onClick:()=>null,children:U("0,0",e?.totalBalance)})}),Na=({total:e})=>t.jsx(Wi,{children:t.jsx(Oi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function Ia({backgroundColor:e,isSticky:n,height:i,noMarginForEntity:o,isScrolling:r,total:l,nestedCustomer:c,metadata:d}){const h=O(),{common:{strings:{empty:u}},reports:{sections:p}}=B.getLocalizedStrings(),g=c!=null?c.id.length-1:0,f=d,x=c?.customer.name??u;return t.jsxs(La,{"data-testid":"sub-customer-total-row-root-container",containerHeight:i,bgColor:e,children:[t.jsxs(Aa,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(Wa,{isSticky:n,windowSize:h,bgColor:e,containerHeight:i,children:[t.jsx(gi,{ancestorMetadata:f.vendorOrCustomerAncestorMetadata,depth:g,name:x}),t.jsx(Oa,{isClickable:!1,title:x,depth:g,windowSize:h,children:p.totalPrefix+" "+x})]}),t.jsxs(Ba,{children:[c?.arAgingBalances.map((b,y)=>t.jsx(Ma,{balance:b},y)),t.jsx(Na,{total:l})]})]}),t.jsx(
|
|
502
|
+
width: ${e=>E.titleWidth.value(e.windowSize)-e.depth*w[11]}px;
|
|
503
|
+
`,Ma=({balance:e})=>t.jsx(Wi,{children:t.jsx(Oi,{isClickable:!1,onClick:()=>null,children:U("0,0",e?.totalBalance)})}),Na=({total:e})=>t.jsx(Wi,{children:t.jsx(Oi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function Ia({backgroundColor:e,isSticky:n,height:i,noMarginForEntity:o,isScrolling:r,total:l,nestedCustomer:c,metadata:d}){const h=O(),{common:{strings:{empty:u}},reports:{sections:p}}=B.getLocalizedStrings(),g=c!=null?c.id.length-1:0,f=d,x=c?.customer.name??u;return t.jsxs(La,{"data-testid":"sub-customer-total-row-root-container",containerHeight:i,bgColor:e,children:[t.jsxs(Aa,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(Wa,{isSticky:n,windowSize:h,bgColor:e,containerHeight:i,children:[t.jsx(gi,{ancestorMetadata:f.vendorOrCustomerAncestorMetadata,depth:g,name:x}),t.jsx(Oa,{isClickable:!1,title:x,depth:g,windowSize:h,children:p.totalPrefix+" "+x})]}),t.jsxs(Ba,{children:[c?.arAgingBalances.map((b,y)=>t.jsx(Ma,{balance:b},y)),t.jsx(Na,{total:l})]})]}),t.jsx(Fa,{isScrolling:r,nestingLevel:g,isSticky:n,noMarginForEntity:o})]})}function Fa({isScrolling:e,nestingLevel:n,isSticky:i,noMarginForEntity:o}){return t.jsx(St,{isScrolling:e,kind:"subtotal_row_separator",subEntityProps:{nestingLevel:n,isSticky:i,noMarginForEntity:o}})}const re=e=>{switch(e){case"name+balances_actual":return!0;case"name+balances_forecast":return!1;case"name_only":return!1}},We=e=>{switch(e){case"name+balances_forecast":return!0;case"name+balances_actual":return!1;case"name_only":return!1}},Pa=a.div`
|
|
504
504
|
display: flex;
|
|
505
505
|
flex: 1 1 auto;
|
|
506
506
|
width: fit-content;
|
|
@@ -527,10 +527,10 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
527
527
|
justify-content: flex-start;
|
|
528
528
|
`,Ni=a(ne)`
|
|
529
529
|
user-select: none;
|
|
530
|
-
min-width: ${
|
|
531
|
-
max-width: ${
|
|
530
|
+
min-width: ${E.balanceWidth};
|
|
531
|
+
max-width: ${E.balanceWidth};
|
|
532
532
|
text-align: right;
|
|
533
|
-
margin-left: ${
|
|
533
|
+
margin-left: ${E.balanceLeftMargin};
|
|
534
534
|
color: ${e=>e.theme.colors.primary};
|
|
535
535
|
border: 1px solid transparent;
|
|
536
536
|
`,Va=a.div`
|
|
@@ -539,15 +539,15 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
539
539
|
flex-shrink: 2;
|
|
540
540
|
flex-grow: 1;
|
|
541
541
|
align-items: center;
|
|
542
|
-
width: ${e=>
|
|
543
|
-
max-width: ${e=>
|
|
542
|
+
width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
543
|
+
max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
544
544
|
background-color: ${e=>e.bgColor?.hex()};
|
|
545
|
-
${({isSticky:e,isIndented:n})=>e&&n?
|
|
545
|
+
${({isSticky:e,isIndented:n})=>e&&n?F`
|
|
546
546
|
position: -webkit-sticky;
|
|
547
547
|
position: sticky;
|
|
548
548
|
top: ${s.sp0};
|
|
549
549
|
left: ${s.sp4};
|
|
550
|
-
`:e&&!n?
|
|
550
|
+
`:e&&!n?F`
|
|
551
551
|
position: -webkit-sticky;
|
|
552
552
|
position: sticky;
|
|
553
553
|
top: ${s.sp0};
|
|
@@ -562,7 +562,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
562
562
|
text-overflow: ellipsis;
|
|
563
563
|
text-align: left;
|
|
564
564
|
color: ${e=>e.theme.colors.primary};
|
|
565
|
-
`,Ra=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ni,{children:U("0,0",n?.balance)}):null}),Ga=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ni,{children:U("0,0",n)}):null});function Ea({type:e,isSticky:n,isIndented:i,height:o,title:r,totalBalances:l,backgroundColor:c}){const d=O(),h={amount:l.reduce((u,p)=>u+(p?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Ln.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Ln.currencySymbol};return t.jsx(Fa,{"data-testid":m("total-row-root-container"),height:o,bgColor:c,windowSize:d,children:t.jsxs(za,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsx(Va,{bgColor:c,isSticky:n,windowSize:d,isIndented:i,children:t.jsx(Da,{children:r})}),t.jsxs(Ta,{children:[l.map((u,p)=>t.jsx(Ra,{type:e,balance:u},p)),t.jsx(Ga,{type:e,balance:h})]})]})})}const Ha=(e,n,i,o,r,l,c)=>{if(e.element.kind!=="timeframe_headers")return null;const d=e.element.data;return t.jsx(_a,{reportId:e.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:d,backgroundColor:i,isSticky:o,height:n,sortKey:r,sortOrder:l,onSortOrderChanged:c})},Ka=(e,n,i,o,r,l,c,d,h,u)=>{if(n.element.kind!=="aging_report_row")return null;if(n.config.reportId==="accounts_payable_aging"){const g=n.element.data;return t.jsx(ma,{backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,height:i,balances:g.apAgingBalances,vendor:g.vendor,total:g.total,onEntityNameClick:h})}const p=n.element.data;return t.jsx(wa,{treeNodeId:e,backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,isOpen:o,height:i,metadata:n.element.metadata,balances:p.arAgingBalances,nestedCustomer:p,total:p.total,totalWithChildren:p.totalWithChildren,onEntityNameClick:h,onClick:u})},Ya=(e,n,i,o,r)=>{if(e.element.kind!=="ac_subentity_total")return null;if(e.config.reportId==="accounts_receivable_aging"){const l=e.element.data;return t.jsx(Ia,{backgroundColor:r,isScrolling:o,isSticky:i,height:n,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},Ua=(e,n,i,o,r)=>{const l=n.element.data;return t.jsx(Ea,{type:e,backgroundColor:o,isSticky:r,height:i,totalBalances:l,isIndented:n.config.reportId==="accounts_receivable_aging",title:n.element.title})};function ot(e,n,i,o){switch(e){case"cogs":return qa(i,o,n);case"expenses":return Qa(i,o,n);case"income":return Za(i,o,n);case"cash_position":return Ja(i,o,n);case"cash_in":return Xa(i,o,n);case"cash_out":return el(i,o,n);case"assets":return tl(i,o,n);case"equity":return nl(i,o,n);case"liabilities":return il(i,o,n);case"other_expense":return ol(i,o,n);case"other_income":return rl(i,o,n);case"operating_activities":return al(i,o,n);case"investing_activities":return ll(i,o,n);case"financing_activities":return cl(i,o,n);default:throw Error(`${e} is not yet supported!`)}}const qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCogsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithExpensesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Za=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithIncomeOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Ja=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashPositionInTimeframe,o.compactedAccountsSelector=()=>R([],o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Xa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashInOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},el=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashOutOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},tl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithAssetsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},nl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithEquityOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},il=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithLiabilitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ol=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherExpensesInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},rl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherIncomeInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},al=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithOperatingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ll=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithInvestingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},cl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithFinancingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o};function R(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Ii(n(o)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(o=>Pi(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Fi(n(o)?.balances??[]))}}function oe(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Ii(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Pi(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Fi(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function Ii(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function Pi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function Fi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function ee(e,n="ascending_date",i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Ti([],i)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:c}}function zi(e,n="ascending_date",i=-1,o=!0){const r=i!==-1,l=ee(e,n,i,o);if(e==null||e.balances.length===0)return l;const c=[...l.balances];if(e?.totalBalance!=null)c.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=Ti([],1);c.push(...d)}return{balances:c,thisPeriodIndex:l.thisPeriodIndex}}function Fe(e,n){if(n==="ascending_date")return e;{const i=[],o=[];for(const r of e)r.type==="default"?i.push(r):o.push(r);return[...i.reverse(),...o]}}function Ti(e,n){return e.length>0?e:Qn(Array(n),null)}const sl=a.div`
|
|
565
|
+
`,Ra=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ni,{children:U("0,0",n?.balance)}):null}),Ea=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ni,{children:U("0,0",n)}):null});function Ga({type:e,isSticky:n,isIndented:i,height:o,title:r,totalBalances:l,backgroundColor:c}){const d=O(),h={amount:l.reduce((u,p)=>u+(p?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Ln.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Ln.currencySymbol};return t.jsx(Pa,{"data-testid":m("total-row-root-container"),height:o,bgColor:c,windowSize:d,children:t.jsxs(za,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsx(Va,{bgColor:c,isSticky:n,windowSize:d,isIndented:i,children:t.jsx(Da,{children:r})}),t.jsxs(Ta,{children:[l.map((u,p)=>t.jsx(Ra,{type:e,balance:u},p)),t.jsx(Ea,{type:e,balance:h})]})]})})}const Ha=(e,n,i,o,r,l,c)=>{if(e.element.kind!=="timeframe_headers")return null;const d=e.element.data;return t.jsx(va,{reportId:e.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:d,backgroundColor:i,isSticky:o,height:n,sortKey:r,sortOrder:l,onSortOrderChanged:c})},Ka=(e,n,i,o,r,l,c,d,h,u)=>{if(n.element.kind!=="aging_report_row")return null;if(n.config.reportId==="accounts_payable_aging"){const g=n.element.data;return t.jsx(ma,{backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,height:i,balances:g.apAgingBalances,vendor:g.vendor,total:g.total,onEntityNameClick:h})}const p=n.element.data;return t.jsx(wa,{treeNodeId:e,backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,isOpen:o,height:i,metadata:n.element.metadata,balances:p.arAgingBalances,nestedCustomer:p,total:p.total,totalWithChildren:p.totalWithChildren,onEntityNameClick:h,onClick:u})},Ya=(e,n,i,o,r)=>{if(e.element.kind!=="ac_subentity_total")return null;if(e.config.reportId==="accounts_receivable_aging"){const l=e.element.data;return t.jsx(Ia,{backgroundColor:r,isScrolling:o,isSticky:i,height:n,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},Ua=(e,n,i,o,r)=>{const l=n.element.data;return t.jsx(Ga,{type:e,backgroundColor:o,isSticky:r,height:i,totalBalances:l,isIndented:n.config.reportId==="accounts_receivable_aging",title:n.element.title})};function ot(e,n,i,o){switch(e){case"cogs":return qa(i,o,n);case"expenses":return Qa(i,o,n);case"income":return Za(i,o,n);case"cash_position":return Ja(i,o,n);case"cash_in":return Xa(i,o,n);case"cash_out":return el(i,o,n);case"assets":return tl(i,o,n);case"equity":return nl(i,o,n);case"liabilities":return il(i,o,n);case"other_expense":return ol(i,o,n);case"other_income":return rl(i,o,n);case"operating_activities":return al(i,o,n);case"investing_activities":return ll(i,o,n);case"financing_activities":return cl(i,o,n);default:throw Error(`${e} is not yet supported!`)}}const qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCogsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithExpensesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Za=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithIncomeOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Ja=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashPositionInTimeframe,o.compactedAccountsSelector=()=>R([],o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Xa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashInOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},el=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashOutOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},tl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithAssetsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},nl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithEquityOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},il=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithLiabilitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ol=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherExpensesInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},rl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherIncomeInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},al=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithOperatingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ll=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithInvestingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},cl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithFinancingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o};function R(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Ii(n(o)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(o=>Fi(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Pi(n(o)?.balances??[]))}}function oe(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Ii(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Fi(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Pi(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function Ii(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function Fi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function Pi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function ee(e,n="ascending_date",i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Ti([],i)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:c}}function zi(e,n="ascending_date",i=-1,o=!0){const r=i!==-1,l=ee(e,n,i,o);if(e==null||e.balances.length===0)return l;const c=[...l.balances];if(e?.totalBalance!=null)c.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=Ti([],1);c.push(...d)}return{balances:c,thisPeriodIndex:l.thisPeriodIndex}}function Pe(e,n){if(n==="ascending_date")return e;{const i=[],o=[];for(const r of e)r.type==="default"?i.push(r):o.push(r);return[...i.reverse(),...o]}}function Ti(e,n){return e.length>0?e:Qn(Array(n),null)}const sl=a.div`
|
|
566
566
|
display: flex;
|
|
567
567
|
flex: 1 1 auto;
|
|
568
568
|
max-height: 1px;
|
|
@@ -602,7 +602,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
602
602
|
display: flex;
|
|
603
603
|
flex-direction: row;
|
|
604
604
|
justify-content: flex-start;
|
|
605
|
-
`,wl=a(
|
|
605
|
+
`,wl=a(_)`
|
|
606
606
|
user-select: none;
|
|
607
607
|
color: ${e=>e.theme.colors.hero};
|
|
608
608
|
min-width: ${$e.balanceWidth};
|
|
@@ -619,13 +619,13 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
619
619
|
color: ${e=>e.theme.colors.hero};
|
|
620
620
|
max-width: ${e=>$e.titleWidth.valuePx(e.windowSize)};
|
|
621
621
|
background-color: ${e=>e.bgColor?.hex()};
|
|
622
|
-
${({isSticky:e})=>e?
|
|
622
|
+
${({isSticky:e})=>e?F`
|
|
623
623
|
position: -webkit-sticky;
|
|
624
624
|
position: sticky;
|
|
625
625
|
top: ${s.sp0};
|
|
626
626
|
left: ${s.sp0};
|
|
627
627
|
`:null}
|
|
628
|
-
`,bl=a(
|
|
628
|
+
`,bl=a(_)`
|
|
629
629
|
user-select: none;
|
|
630
630
|
clear: both;
|
|
631
631
|
display: inline-block;
|
|
@@ -642,14 +642,14 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
642
642
|
flex-direction: column;
|
|
643
643
|
height: ${e=>e.height}px;
|
|
644
644
|
background-color: ${e=>e.bgColor?.hex()};
|
|
645
|
-
`,
|
|
645
|
+
`,_l=a.div`
|
|
646
646
|
user-select: none;
|
|
647
647
|
display: flex;
|
|
648
648
|
flex: 1 1 auto;
|
|
649
649
|
flex-flow: row;
|
|
650
650
|
justify-content: flex-start;
|
|
651
651
|
align-items: center;
|
|
652
|
-
`,
|
|
652
|
+
`,vl=a.div`
|
|
653
653
|
display: flex;
|
|
654
654
|
flex: 1 0 auto;
|
|
655
655
|
flex-direction: row;
|
|
@@ -674,7 +674,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
674
674
|
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
675
675
|
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
676
676
|
background-color: ${e=>e.bgColor?.hex()};
|
|
677
|
-
${({isSticky:e})=>e?
|
|
677
|
+
${({isSticky:e})=>e?F`
|
|
678
678
|
position: -webkit-sticky;
|
|
679
679
|
position: sticky;
|
|
680
680
|
top: ${s.sp0};
|
|
@@ -690,7 +690,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
690
690
|
text-overflow: ellipsis;
|
|
691
691
|
text-align: left;
|
|
692
692
|
background-color: ${e=>e.bgColor?.hex()};
|
|
693
|
-
`,Bl=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs($l,{"data-testid":m("heading-row-balance-element",e),children:[re(e)||i?t.jsx(Ke,{"data-testid":m("heading-row-balance-actual",e),children:q(n)}):t.jsx(Ke,{"data-testid":m("heading-row-balance-forecast",e),children:Z(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ke,{"data-testid":m("heading-row-balance-forecast",e),children:Z(n)}),t.jsx(Ke,{"data-testid":m("heading-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?se(n):de(n)})]}):null]});function Wl({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,heading:l,headingBalances:c,isActualVsForecastOn:d,compareMode:h,isLeaf:u,onClick:p}){const g=O();return t.jsx(Cl,{height:r,bgColor:n,"data-testid":m("heading-row-root-container",o),children:t.jsxs(
|
|
693
|
+
`,Bl=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs($l,{"data-testid":m("heading-row-balance-element",e),children:[re(e)||i?t.jsx(Ke,{"data-testid":m("heading-row-balance-actual",e),children:q(n)}):t.jsx(Ke,{"data-testid":m("heading-row-balance-forecast",e),children:Z(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ke,{"data-testid":m("heading-row-balance-forecast",e),children:Z(n)}),t.jsx(Ke,{"data-testid":m("heading-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?se(n):de(n)})]}):null]});function Wl({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,heading:l,headingBalances:c,isActualVsForecastOn:d,compareMode:h,isLeaf:u,onClick:p}){const g=O();return t.jsx(Cl,{height:r,bgColor:n,"data-testid":m("heading-row-root-container",o),children:t.jsxs(_l,{"data-testid":m("heading-row-container",o),isClickable:!u,onClick:()=>p?.(o),children:[ge(e)===!0?t.jsx(Ll,{"data-testid":m("heading-row-heading-container",o),isSticky:i,windowSize:g,bgColor:n,children:t.jsx(Al,{children:l})}):null,fe(e)===!0?t.jsx(vl,{"data-testid":m("heading-row-balances-container",o),children:c.map((f,x)=>t.jsx(Bl,{"data-testid":m("heading-row-balance-element",e),type:e,heading:l,balance:f,isActualVsForecastOn:d,compareMode:h},x))}):null]})})}const Ol=(e,n,i,o,r,l,c)=>{if(n.element.kind!="calculated_section_type1"||n.element.data==null)return null;const d=n.element.data,h=ee(d,n.config.displayOrder,n.element.numOfBalances);return t.jsx(jl,{backgroundColor:o,isSticky:r,treeNodeId:e,heading:n.element.title,totalBalances:h.balances,height:i,isScrolling:l,isLastNode:c})},Xt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="title_string_only")return null;const f=ee(void 0,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Wl,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,heading:i.element.title,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,headingBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:x=>{g?.(x)}})};function Vi(e,n){return Ml(n)}const Ml=(e,n)=>{const i={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return i.acBalanceSelector=o=>o.balancesInTimeframe,i.compactedAccountsSelectorVariant=o=>Nl(o,i.acBalanceSelector,e),i};function Nl(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Il(n(o)?.balances??[]));default:return e}}function Il(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}const Ye=[new V(w[4],56),new V(44,76),new V(69,102),new V(93,124),new V(113,143)],On=[new V(w[0],w[0]),new V(14,w[4]),new V(67,67),new V(102,102),new V(136,136)],Fl=a.div`
|
|
694
694
|
display: flex;
|
|
695
695
|
flex: 1 1 auto;
|
|
696
696
|
max-height: 1px;
|
|
@@ -700,7 +700,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
700
700
|
flex: 1 1 auto;
|
|
701
701
|
max-height: 1px;
|
|
702
702
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey4};
|
|
703
|
-
`,
|
|
703
|
+
`,Pl=a.div`
|
|
704
704
|
display: flex;
|
|
705
705
|
flex: 1 1 auto;
|
|
706
706
|
flex-flow: row;
|
|
@@ -715,7 +715,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
715
715
|
background-color: ${e=>e.theme.colors.grey4};
|
|
716
716
|
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
717
717
|
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
718
|
-
${({isSticky:e})=>e?
|
|
718
|
+
${({isSticky:e})=>e?F`
|
|
719
719
|
position: -webkit-sticky;
|
|
720
720
|
position: sticky;
|
|
721
721
|
top: ${s.sp0};
|
|
@@ -741,12 +741,12 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
741
741
|
max-height: 1px;
|
|
742
742
|
height: 1px;
|
|
743
743
|
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
744
|
-
`,
|
|
744
|
+
`,El=a.div`
|
|
745
745
|
display: flex;
|
|
746
746
|
flex: 1 1 auto;
|
|
747
747
|
max-height: 1px;
|
|
748
748
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
749
|
-
`,Nn=e=>{const n=O(),i=ce();return t.jsxs(
|
|
749
|
+
`,Nn=e=>{const n=O(),i=ce();return t.jsxs(Pl,{children:[t.jsxs(zl,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(Vl,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(Tl,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx(Dl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(Rl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function xe({kind:e,isScrolling:n,subAccountProps:i}){switch(e){case"account_title_row_separator":return t.jsx(Mn,{marginLeft:w[5],isScrolling:n});case"sub_account_balance_row_separator":return t.jsx(Nn,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!1,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1});case"account_balance_row_separator":return t.jsx(Mn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(Fl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(El,{isScrolling:n});case"total_row_separator":return t.jsx(Nn,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1})}}function Di({height:e,backgroundColor:n,title:i,numOfBalances:o=6}){const r=O(),l=i!=null?i.split("+")[1]:"";let c=null;const d=r!=="small";switch(l){case"section-row":c=t.jsx(Gl,{columns:o,isSticky:d});break;case"root-class-row":c=t.jsx(Hl,{columns:o,isSticky:d});break;case"sub-class-row":c=t.jsx(Kl,{columns:o,isSticky:d});break;case"leaf-class-row":c=t.jsxs(t.Fragment,{children:[t.jsx(Yl,{columns:o,isSticky:d}),t.jsx(xe,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]});break}return t.jsx(ql,{height:e,bgColor:n,children:c})}const Gl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsxs(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(rt,{columns:e,rectangleWidth:k.loadingBalanceWidthInPx})]}),Hl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsxs(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Kl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsx(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(je,{style:{marginLeft:"36px"},children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx,style:{marginLeft:w[4]}})]})}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Yl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsx(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(je,{style:{marginLeft:"84px"},children:t.jsx(H,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})})}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Ul=({rectangleWidth:e})=>t.jsx(Ri,{width:k.balanceWidthInPx,children:t.jsx(H,{width:e,height:k.balanceHeightInPx})}),rt=({columns:e,rectangleWidth:n})=>t.jsx(Ql,{style:{zIndex:9,width:k.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((i,o)=>t.jsx(Ul,{rectangleWidth:n},o))}),ql=a.div`
|
|
750
750
|
display: flex;
|
|
751
751
|
flex: 1 1 auto;
|
|
752
752
|
width: fit-content;
|
|
@@ -781,7 +781,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
781
781
|
z-index: 10;
|
|
782
782
|
background-color: ${e=>e.theme.colors.grey4};
|
|
783
783
|
justify-content: flex-start;
|
|
784
|
-
`;function
|
|
784
|
+
`;function Ei({height:e,numOfBalances:n,backgroundColor:i}){const o=O();return t.jsx(Zl,{height:e,bgColor:i,children:t.jsxs(Jl,{windowSize:o,children:[t.jsx(Xl,{windowSize:o,width:`${k.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(ec,{children:Array.from({length:n},(r,l)=>t.jsx(Gi,{windowSize:o,width:k.balanceWidth,children:t.jsx(H,{width:k.balanceWidthInPx,height:w[6]})},`timeframe-balance-${l}`))})]})})}const Zl=a.div`
|
|
785
785
|
display: flex;
|
|
786
786
|
flex: 1 1 auto;
|
|
787
787
|
width: fit-content;
|
|
@@ -794,7 +794,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
794
794
|
display: flex;
|
|
795
795
|
flex-direction: row;
|
|
796
796
|
width: 100%;
|
|
797
|
-
`,
|
|
797
|
+
`,Gi=a.div`
|
|
798
798
|
display: flex;
|
|
799
799
|
flex-direction: row;
|
|
800
800
|
align-items: center;
|
|
@@ -807,7 +807,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
807
807
|
justify-content: flex-start;
|
|
808
808
|
}
|
|
809
809
|
margin-right: ${k.balanceLeftMargin};
|
|
810
|
-
`,Xl=a(
|
|
810
|
+
`,Xl=a(Gi)`
|
|
811
811
|
position: sticky;
|
|
812
812
|
left: ${s.sp0};
|
|
813
813
|
z-index: 10;
|
|
@@ -856,7 +856,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
856
856
|
display: flex;
|
|
857
857
|
flex-direction: row;
|
|
858
858
|
justify-content: flex-start;
|
|
859
|
-
`,Ct=a(
|
|
859
|
+
`,Ct=a(_)`
|
|
860
860
|
user-select: none;
|
|
861
861
|
min-width: ${D.balanceWidth};
|
|
862
862
|
max-width: ${D.balanceWidth};
|
|
@@ -877,13 +877,13 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
877
877
|
max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
|
|
878
878
|
background-color: ${e=>e.bgColor?.hex()};
|
|
879
879
|
color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
880
|
-
${({isSticky:e})=>e?
|
|
880
|
+
${({isSticky:e})=>e?F`
|
|
881
881
|
position: -webkit-sticky;
|
|
882
882
|
position: sticky;
|
|
883
883
|
top: ${s.sp0};
|
|
884
884
|
left: ${s.sp0};
|
|
885
885
|
`:null}
|
|
886
|
-
`,hc=a(
|
|
886
|
+
`,hc=a(_)`
|
|
887
887
|
user-select: none;
|
|
888
888
|
clear: both;
|
|
889
889
|
display: inline-block;
|
|
@@ -892,7 +892,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
892
892
|
text-overflow: ellipsis;
|
|
893
893
|
text-align: left;
|
|
894
894
|
margin-left: ${s.sp2};
|
|
895
|
-
`,uc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?sc:Ct;return t.jsxs(cc,{"data-testid":m("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":m("account-group-row-balance-actual",e),children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":m("account-group-row-balance-forecast",e),children:Z(n)}),t.jsx(Ct,{"data-testid":m("account-group-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function gc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountGroupName:l,accountGroupBalances:c,compareMode:d,isScrolling:h,isOpen:u,isLeaf:p,isLastNode:g,onClick:f}){const x=O(),b=!p,y=b?"pointer":"default",C=l.length>0?l.substr(0,1).toUpperCase():"",S=fc(c),A=ce().colors.primary,[L,W]=N.useState(!1);return t.jsxs(rc,{"data-testid":m("account-group-row-root-container",e),height:r,bgColor:n,windowSize:x,children:[t.jsxs(ac,{"data-testid":m("account-group-row-container",e),style:{cursor:y},isClickable:b,onClick:()=>f?.(o),onMouseOver:()=>W(!0),onMouseLeave:()=>W(!1),children:[t.jsxs(dc,{"data-testid":m("account-group-row-name-container",e),bgColor:n,isSticky:i,windowSize:x,hasNonZeroBalance:S,children:[t.jsx(ye,{"data-testid":m("account-group-row-circle-with-letter",e),color:$(A),showCollapsedIcon:!u,showIcon:b&&L,firstLetter:C}),t.jsx(hc,{"data-testid":m("account-group-row-name",e),children:l})]}),t.jsx(lc,{"data-testid":m("account-group-row-balances-container",e),hasNonZeroBalance:S,children:c.map((
|
|
895
|
+
`,uc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?sc:Ct;return t.jsxs(cc,{"data-testid":m("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":m("account-group-row-balance-actual",e),children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":m("account-group-row-balance-forecast",e),children:Z(n)}),t.jsx(Ct,{"data-testid":m("account-group-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function gc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountGroupName:l,accountGroupBalances:c,compareMode:d,isScrolling:h,isOpen:u,isLeaf:p,isLastNode:g,onClick:f}){const x=O(),b=!p,y=b?"pointer":"default",C=l.length>0?l.substr(0,1).toUpperCase():"",S=fc(c),A=ce().colors.primary,[L,W]=N.useState(!1);return t.jsxs(rc,{"data-testid":m("account-group-row-root-container",e),height:r,bgColor:n,windowSize:x,children:[t.jsxs(ac,{"data-testid":m("account-group-row-container",e),style:{cursor:y},isClickable:b,onClick:()=>f?.(o),onMouseOver:()=>W(!0),onMouseLeave:()=>W(!1),children:[t.jsxs(dc,{"data-testid":m("account-group-row-name-container",e),bgColor:n,isSticky:i,windowSize:x,hasNonZeroBalance:S,children:[t.jsx(ye,{"data-testid":m("account-group-row-circle-with-letter",e),color:$(A),showCollapsedIcon:!u,showIcon:b&&L,firstLetter:C}),t.jsx(hc,{"data-testid":m("account-group-row-name",e),children:l})]}),t.jsx(lc,{"data-testid":m("account-group-row-balances-container",e),hasNonZeroBalance:S,children:c.map((P,z)=>t.jsx(uc,{"data-testid":m("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:P,compareMode:d,collapsed:!1},z))})]}),t.jsx(pc,{isScrolling:h,isLeaf:p,isLastNode:g,isOpen:u})]})}function pc({isScrolling:e,isLeaf:n,isLastNode:i,isOpen:o}){return n||!o||!i?t.jsx(en,{isScrolling:e,kind:"ac_group_row_separator"}):null}const fc=e=>{let n=!1;if(e!=null){for(const i of e)if(i!=null&&i.balance.amount!==0){n=!0;break}}return n},xc=a.div`
|
|
896
896
|
display: flex;
|
|
897
897
|
flex: 1 1 auto;
|
|
898
898
|
width: fit-content;
|
|
@@ -919,7 +919,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
919
919
|
display: flex;
|
|
920
920
|
flex-direction: row;
|
|
921
921
|
justify-content: flex-start;
|
|
922
|
-
`,wt=a(
|
|
922
|
+
`,wt=a(_)`
|
|
923
923
|
user-select: none;
|
|
924
924
|
min-width: ${D.balanceWidth};
|
|
925
925
|
max-width: ${D.balanceWidth};
|
|
@@ -939,13 +939,13 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
939
939
|
width: ${e=>D.titleWidth.valuePx(e.windowSize)};
|
|
940
940
|
max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
|
|
941
941
|
background-color: ${e=>e.bgColor?.hex()};
|
|
942
|
-
${({isSticky:e})=>e?
|
|
942
|
+
${({isSticky:e})=>e?F`
|
|
943
943
|
position: -webkit-sticky;
|
|
944
944
|
position: sticky;
|
|
945
945
|
top: ${s.sp0};
|
|
946
946
|
left: ${s.sp0};
|
|
947
947
|
`:null}
|
|
948
|
-
`,kc=a(
|
|
948
|
+
`,kc=a(_)`
|
|
949
949
|
user-select: none;
|
|
950
950
|
clear: both;
|
|
951
951
|
display: inline-block;
|
|
@@ -955,7 +955,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
955
955
|
text-align: left;
|
|
956
956
|
margin-left: 35px;
|
|
957
957
|
color: ${e=>e.theme.colors.hero};
|
|
958
|
-
`,jc=({type:e,balance:n,account:i,onAccountBalanceClick:o,compareMode:r})=>{const l=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",c=i!=null&&n!=null&&o!=null&&l!==!0;return t.jsxs(yc,{children:[t.jsx(wt,{isClickable:c,onClick:()=>{c===!0&&i!=null&&n!=null&&o?.(i,n)},children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(wt,{isClickable:!1,children:Z(n)}),t.jsx(wt,{isClickable:!1,children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Sc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isCompareModeOn:c,isForecastModeOn:d,isScrolling:h,isLeaf:u,isLastNode:p,compareMode:g,account:f,onAccountBalanceClick:x}){const b=O(),{common:{strings:{empty:y}}}=B.getLocalizedStrings(),C=f?.accountDescription?f.accountDescription:y,S=f?.accountName?f.accountName:C,A=Zn(),L=A.loggedInUserRole!=null&&!oi(A.loggedInUserRole),W=L===!0&&f!=null&&c!==!0&&x!=null&&d!==!0,
|
|
958
|
+
`,jc=({type:e,balance:n,account:i,onAccountBalanceClick:o,compareMode:r})=>{const l=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",c=i!=null&&n!=null&&o!=null&&l!==!0;return t.jsxs(yc,{children:[t.jsx(wt,{isClickable:c,onClick:()=>{c===!0&&i!=null&&n!=null&&o?.(i,n)},children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(wt,{isClickable:!1,children:Z(n)}),t.jsx(wt,{isClickable:!1,children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Sc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isCompareModeOn:c,isForecastModeOn:d,isScrolling:h,isLeaf:u,isLastNode:p,compareMode:g,account:f,onAccountBalanceClick:x}){const b=O(),{common:{strings:{empty:y}}}=B.getLocalizedStrings(),C=f?.accountDescription?f.accountDescription:y,S=f?.accountName?f.accountName:C,A=Zn(),L=A.loggedInUserRole!=null&&!oi(A.loggedInUserRole),W=L===!0&&f!=null&&c!==!0&&x!=null&&d!==!0,P=W?"pointer":"default",z=(K,G)=>{W===!0&&l[l.length-1]!=null&&x?.(K,G,l[l.length-1])};return t.jsxs(xc,{height:r,bgColor:n,windowSize:b,children:[t.jsxs(mc,{style:{cursor:P},isClickable:W,onClick:()=>f!=null?z(o,f):null,children:[t.jsx(bc,{isSticky:i,windowSize:b,bgColor:n,children:t.jsx(kc,{title:S,children:S})}),t.jsx(wc,{children:l.map((K,G)=>t.jsx(jc,{type:e,balance:K,account:f,onAccountBalanceClick:L===!1||x==null?void 0:(Y,Q)=>{x(o,Y,Q)},compareMode:g},G))})]}),t.jsx(Cc,{isScrolling:h,isLeaf:u,isLastNode:p})]})}function Cc({isScrolling:e,isLeaf:n,isLastNode:i}){return n||!i?t.jsx(en,{isScrolling:e,kind:"ac_group_row_separator"}):null}const _c=a.div`
|
|
959
959
|
display: flex;
|
|
960
960
|
flex: 1 1 auto;
|
|
961
961
|
width: fit-content;
|
|
@@ -963,7 +963,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
963
963
|
flex-direction: column;
|
|
964
964
|
height: ${e=>e.rootHeight-1}px;
|
|
965
965
|
background-color: ${e=>e.bgColor?.hex()};
|
|
966
|
-
`,
|
|
966
|
+
`,vc=a.div`
|
|
967
967
|
user-select: none;
|
|
968
968
|
display: flex;
|
|
969
969
|
flex: 1 1 auto;
|
|
@@ -979,13 +979,13 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
979
979
|
display: flex;
|
|
980
980
|
flex-direction: row;
|
|
981
981
|
justify-content: flex-start;
|
|
982
|
-
`,Ce=a(
|
|
982
|
+
`,Ce=a(_)`
|
|
983
983
|
user-select: none;
|
|
984
984
|
max-width: ${D.balanceWidth};
|
|
985
985
|
min-width: ${D.balanceWidth};
|
|
986
986
|
text-align: right;
|
|
987
987
|
margin-left: ${D.balanceLeftMargin};
|
|
988
|
-
`,
|
|
988
|
+
`,Fn=a(_)`
|
|
989
989
|
user-select: none;
|
|
990
990
|
max-width: ${D.balanceWidth};
|
|
991
991
|
min-width: ${D.balanceWidth};
|
|
@@ -1005,13 +1005,13 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1005
1005
|
width: ${e=>D.titleWidth.valuePx(e.windowSize)};
|
|
1006
1006
|
max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
|
|
1007
1007
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1008
|
-
${({isSticky:e})=>e?
|
|
1008
|
+
${({isSticky:e})=>e?F`
|
|
1009
1009
|
position: -webkit-sticky;
|
|
1010
1010
|
position: sticky;
|
|
1011
1011
|
top: ${s.sp0};
|
|
1012
1012
|
left: ${s.sp0};
|
|
1013
1013
|
`:null}
|
|
1014
|
-
`,Bc=a(
|
|
1014
|
+
`,Bc=a(_)`
|
|
1015
1015
|
user-select: none;
|
|
1016
1016
|
user-select: none;
|
|
1017
1017
|
clear: both;
|
|
@@ -1021,7 +1021,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1021
1021
|
text-overflow: ellipsis;
|
|
1022
1022
|
text-align: left;
|
|
1023
1023
|
margin-left: ${s.sp2};
|
|
1024
|
-
`,Wc=({type:e,balance:n,color:i,compareMode:o})=>{const r=n!=null&&n.type==="default_with_percent"&&n.percentValue!=null?n.percentValue:0,l=n!=null&&n.type==="default_with_percent"&&n.forecastPercentValue!=null?n.forecastPercentValue:0;return t.jsxs(Lc,{children:[t.jsxs(In,{children:[t.jsx(Ce,{style:{color:i.toString()},children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(Ce,{style:{color:i.toString()},children:Z(n)}),t.jsx(Ce,{style:{color:i.toString()},children:o==="compare_mode_percent"?se(n):de(n)})]}):null]}),t.jsxs(In,{children:[r!==0?t.jsx(
|
|
1024
|
+
`,Wc=({type:e,balance:n,color:i,compareMode:o})=>{const r=n!=null&&n.type==="default_with_percent"&&n.percentValue!=null?n.percentValue:0,l=n!=null&&n.type==="default_with_percent"&&n.forecastPercentValue!=null?n.forecastPercentValue:0;return t.jsxs(Lc,{children:[t.jsxs(In,{children:[t.jsx(Ce,{style:{color:i.toString()},children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(Ce,{style:{color:i.toString()},children:Z(n)}),t.jsx(Ce,{style:{color:i.toString()},children:o==="compare_mode_percent"?se(n):de(n)})]}):null]}),t.jsxs(In,{children:[r!==0?t.jsx(Fn,{style:{color:i.toString()},children:pe("0,0%",r)}):null,We(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(Fn,{style:{color:i.toString()},children:pe("0,0%",l)}):t.jsx(Ce,{}),t.jsx(Ce,{})]}):null]})]})};function tn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:c,sectionColor:d,isScrolling:h,isOpen:u,isLeaf:p,compareMode:g,onClick:f}){const x=O(),[b,y]=N.useState(!1),C=!p,S=C?"pointer":"default",A=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(_c,{"data-testid":m("section-row-root-container",o),rootHeight:r,bgColor:n,windowSize:x,children:[t.jsxs(vc,{"data-testid":m("section-row-container",o),style:{cursor:S},onClick:()=>f?.(o),onMouseOver:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(Ac,{"data-testid":m("section-row-name-container",o),isSticky:i,windowSize:x,bgColor:n,children:[t.jsx(ye,{"data-testid":m("section-row-circle-with-letter",o),color:$(d),showCollapsedIcon:!u,showIcon:C&&b,firstLetter:A}),t.jsx(Bc,{"data-testid":m("section-row-name",o),style:{color:d.toString()},children:l})]}),t.jsx($c,{"data-testid":m("section-row-balances-container",o),children:c.map((L,W)=>t.jsx(Wc,{"data-testid":m("section-row-balance-element",e),type:e,sectionName:l,balance:L,color:d,compareMode:g},W))})]}),t.jsx(Oc,{isScrolling:h,isLeaf:p,isOpen:u})]})}function Oc({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(en,{isScrolling:e,kind:"section_row_separator"}):null}const Mc=a.div`
|
|
1025
1025
|
display: flex;
|
|
1026
1026
|
flex: 1 1 auto;
|
|
1027
1027
|
width: fit-content;
|
|
@@ -1041,18 +1041,18 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1041
1041
|
flex: 1 0 auto;
|
|
1042
1042
|
flex-direction: row;
|
|
1043
1043
|
justify-content: flex-end;
|
|
1044
|
-
`,
|
|
1044
|
+
`,Fc=a.div`
|
|
1045
1045
|
display: flex;
|
|
1046
1046
|
flex-direction: row;
|
|
1047
1047
|
justify-content: flex-start;
|
|
1048
|
-
`,Hi=a(
|
|
1048
|
+
`,Hi=a(_)`
|
|
1049
1049
|
user-select: none;
|
|
1050
1050
|
min-width: ${D.balanceWidth};
|
|
1051
1051
|
max-width: ${D.balanceWidth};
|
|
1052
1052
|
text-align: right;
|
|
1053
1053
|
margin-left: ${D.balanceLeftMargin};
|
|
1054
1054
|
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1055
|
-
`,
|
|
1055
|
+
`,Pc=a(Hi)`
|
|
1056
1056
|
color: ${e=>e.theme.colors.hero};
|
|
1057
1057
|
&:hover {
|
|
1058
1058
|
color: inherit;
|
|
@@ -1066,13 +1066,13 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1066
1066
|
width: ${e=>D.titleWidth.valuePx(e.windowSize)};
|
|
1067
1067
|
max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
|
|
1068
1068
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1069
|
-
${({isSticky:e})=>e?
|
|
1069
|
+
${({isSticky:e})=>e?F`
|
|
1070
1070
|
position: -webkit-sticky;
|
|
1071
1071
|
position: sticky;
|
|
1072
1072
|
top: ${s.sp0};
|
|
1073
1073
|
left: ${s.sp0};
|
|
1074
1074
|
`:null}
|
|
1075
|
-
`,Tc=a(
|
|
1075
|
+
`,Tc=a(_)`
|
|
1076
1076
|
user-select: none;
|
|
1077
1077
|
clear: both;
|
|
1078
1078
|
display: inline-block;
|
|
@@ -1081,14 +1081,14 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1081
1081
|
text-overflow: ellipsis;
|
|
1082
1082
|
text-align: left;
|
|
1083
1083
|
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1084
|
-
`,yt=a(
|
|
1084
|
+
`,yt=a(_)`
|
|
1085
1085
|
user-select: none;
|
|
1086
1086
|
min-width: ${D.balanceWidth};
|
|
1087
1087
|
max-width: ${D.balanceWidth};
|
|
1088
1088
|
text-align: right;
|
|
1089
1089
|
margin-left: ${D.balanceLeftMargin};
|
|
1090
1090
|
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1091
|
-
`,Vc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?
|
|
1091
|
+
`,Vc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?Pc:Hi;return t.jsxs(Fc,{children:[re(e)===!0?t.jsx(r,{children:q(n)}):null,We(e)?t.jsxs(t.Fragment,{children:[t.jsx(yt,{children:q(n)}),t.jsx(yt,{children:Z(n)}),t.jsx(yt,{children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Dc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:c,isLeaf:d,compareMode:h,onClick:u}){const p=O(),g=!d,f=g?"pointer":"default";return t.jsx(Mc,{height:r,bgColor:n,windowSize:p,children:t.jsxs(Nc,{style:{cursor:f},isClickable:g,onClick:()=>u?.(o),children:[t.jsx(zc,{bgColor:n,isSticky:i,windowSize:p,children:t.jsx(Tc,{children:l})}),t.jsx(Ic,{children:c.map((x,b)=>t.jsx(Vc,{type:e,balance:x,collapsed:!1,compareMode:h},b))})]})})}const be={net_burn_or_income:{income:{color:new $(T.graphColor04),hoverColor:new $(T.graphColor04Dark)},cogs:{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)},expenses:{color:new $(T.graphColor32),hoverColor:new $(T.graphColor32Dark)},"Gross Burn":{color:new $(X.neutralGrey2Dark),hoverColor:new $(X.neutralGrey2Dark)},"Net Burn":{color:new $(T.graphColor13),hoverColor:new $(T.graphColor13Dark)},"Net Income":{color:new $(T.graphColor13),hoverColor:new $(T.graphColor13Dark)}},revenue:{income:{color:new $(T.graphColor28),hoverColor:new $(T.graphColor28Dark)},cogs:{color:new $(T.graphColor17),hoverColor:new $(T.graphColor17Dark)},"Gross Margin":{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new $(T.graphColor33),hoverColor:new $(T.graphColor33Dark)},cash_out:{color:new $(T.graphColor02),hoverColor:new $(T.graphColor02Dark)},"Net Cash Flow":{color:new $(T.graphColor35),hoverColor:new $(T.graphColor35Dark)}},default:{color:new $(X.neutralGrey2Dark),hoverColor:new $(X.neutralGrey2Dark)}},nn=(e,n)=>e.startsWith("net_burn_or_income")===!0?n!=null?be.net_burn_or_income[n]:be.default:e.startsWith("revenue")===!0?n!=null?be.revenue[n]:be.default:e.startsWith("cash_in_cash_out")===!0&&n!=null?be.cash_in_cash_out[n]:be.default,Rc=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Ne(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),x=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Sc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountBalances:x.balances,isCompareModeOn:i.config.mode==="this_period_vs_period_before",isForecastModeOn:i.config.mode==="actual_vs_forecast",isScrolling:c,isLeaf:d,isLastNode:h,compareMode:u,account:g,onAccountBalanceClick:p==null?void 0:(b,y,C)=>{p?.(b,y,C)}})},Ec=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,x=ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(gc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountGroupName:f.accountGroupName,compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Ki=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.sectionType),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionColor:f.color,sectionName:i.element.title,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Gc=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.sectionType),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Yi=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Ui=(e,n,i,o,r,l,c,d)=>{if((i.config.isZeniCOAInUse==null||i.config.isZeniCOAInUse===!0)&&i.config.mode!=="this_period_vs_period_before")return null;const h=i.element.data,u=ee(h,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Dc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,title:i.element.title,height:o,isLeaf:d,compareMode:c,totalBalances:u.balances})},Hc=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Kc=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ei,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),on=20,Yc=e=>{const n=[];return e&&Object.values(e).forEach(i=>{n.push(i)}),n.reverse()},Uc=a.div`
|
|
1092
1092
|
display: flex;
|
|
1093
1093
|
flex: 1 1 auto;
|
|
1094
1094
|
height: 1px;
|
|
@@ -1097,7 +1097,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1097
1097
|
display: flex;
|
|
1098
1098
|
height: 1px;
|
|
1099
1099
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
1100
|
-
`;function
|
|
1100
|
+
`;function _t({kind:e,isScrolling:n}){switch(e){case"account_class_row_separator":return t.jsx(Uc,{isScrolling:n});case"section_row_separator":case"vendor_separator":return t.jsx(qc,{isScrolling:n});case"heading_row_separator":return null}}const Qc=a.div`
|
|
1101
1101
|
position: relative;
|
|
1102
1102
|
`,Zc=a.div`
|
|
1103
1103
|
height: ${e=>e.height}px;
|
|
@@ -1135,7 +1135,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1135
1135
|
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1136
1136
|
margin-bottom: ${e=>e.height}px;
|
|
1137
1137
|
width: 1px;
|
|
1138
|
-
`,qi=({height:e})=>t.jsx(Qc,{children:t.jsx(Zc,{height:e})}),ns=({height:e})=>t.jsx(es,{height:e,children:t.jsx(ts,{height:e})}),is=()=>t.jsx(Jc,{children:t.jsx(Xc,{})}),j={balanceHeight:s.sp4,balanceHeaderWidth:"126px",balanceWidth:"128px",balanceLeftMargin:"12px",statusLeftMargin:"12px",titleWidth:"685px",vendorContainerWidth:"628px",sectionContainerWidth:"685px",varianceHeaderContainerWidth:"182px",varianceContainerWidth:"184px",statusContainerWidth:"144px",sortIconDimension:"12px",categoryClassContainerWidth:"685px",categoryClassHeaderWidth:"250px",categoryClassValueWidth:"250px",lineComponentHeight:39,lineLComponentHeight:19.5,vendorLineComponentHeight:16,rectangularContainerWidth:128,largeRectangularContainerWidth:168,titleWidthMedium:"180px",categoryRowsSkeletonContainerWidth:"300px",varianceRowSkeletonContainerWidth:"210px",titleWidthSmall:"128px"};function Qi(e,n=!1){switch(e){case"section":return w[8];case"flux_vendor_account_class_row":return n?w[9]:w[6];case"flux_vendor_row":return w[8];case"timeframe_headers":return w[8];case"total":return w[8];case"loading_in_progress":return w[8];case"headers_loading_in_progress":return w[8];default:return 0}}function os(e){return["section","flux_vendor_account_class_row","flux_vendor_row"].includes(e)}const
|
|
1138
|
+
`,qi=({height:e})=>t.jsx(Qc,{children:t.jsx(Zc,{height:e})}),ns=({height:e})=>t.jsx(es,{height:e,children:t.jsx(ts,{height:e})}),is=()=>t.jsx(Jc,{children:t.jsx(Xc,{})}),j={balanceHeight:s.sp4,balanceHeaderWidth:"126px",balanceWidth:"128px",balanceLeftMargin:"12px",statusLeftMargin:"12px",titleWidth:"685px",vendorContainerWidth:"628px",sectionContainerWidth:"685px",varianceHeaderContainerWidth:"182px",varianceContainerWidth:"184px",statusContainerWidth:"144px",sortIconDimension:"12px",categoryClassContainerWidth:"685px",categoryClassHeaderWidth:"250px",categoryClassValueWidth:"250px",lineComponentHeight:39,lineLComponentHeight:19.5,vendorLineComponentHeight:16,rectangularContainerWidth:128,largeRectangularContainerWidth:168,titleWidthMedium:"180px",categoryRowsSkeletonContainerWidth:"300px",varianceRowSkeletonContainerWidth:"210px",titleWidthSmall:"128px"};function Qi(e,n=!1){switch(e){case"section":return w[8];case"flux_vendor_account_class_row":return n?w[9]:w[6];case"flux_vendor_row":return w[8];case"timeframe_headers":return w[8];case"total":return w[8];case"loading_in_progress":return w[8];case"headers_loading_in_progress":return w[8];default:return 0}}function os(e){return["section","flux_vendor_account_class_row","flux_vendor_row"].includes(e)}const Pn=B.getLocalizedStrings(),rs=a.div`
|
|
1139
1139
|
display: flex;
|
|
1140
1140
|
flex-shrink: 0;
|
|
1141
1141
|
width: ${j.varianceContainerWidth};
|
|
@@ -1158,7 +1158,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1158
1158
|
text-align: center;
|
|
1159
1159
|
color: ${e=>e.textColor.hex()};
|
|
1160
1160
|
background-color: ${e=>e.bgColor.hex()};
|
|
1161
|
-
`,lt=({amount:e,percentage:n,currency:i})=>{const o=ce();return t.jsxs(rs,{children:[t.jsx(as,{textColor:e>0?new $(o.colors.brandColorGoldDark):new $(o.colors.success),children:U("0,0",Uo(Math.abs(e),i.currencyCode,i.currencySymbol))}),t.jsx(ls,{textColor:e>0?new $(o.colors.brandColorGoldDark):new $(o.colors.success),bgColor:e>0?new $(X.brandColorGoldLight):new $(X.successLight),children:`${
|
|
1161
|
+
`,lt=({amount:e,percentage:n,currency:i})=>{const o=ce();return t.jsxs(rs,{children:[t.jsx(as,{textColor:e>0?new $(o.colors.brandColorGoldDark):new $(o.colors.success),children:U("0,0",Uo(Math.abs(e),i.currencyCode,i.currencySymbol))}),t.jsx(ls,{textColor:e>0?new $(o.colors.brandColorGoldDark):new $(o.colors.success),bgColor:e>0?new $(X.brandColorGoldLight):new $(X.successLight),children:`${Fo(Math.abs(n)).format(Pn.common.numberFormat.roundedOff)}${Pn.common.strings.percentage}`})]})},zn=B.getLocalizedStrings(),cs=a.div`
|
|
1162
1162
|
display: flex;
|
|
1163
1163
|
flex: 1 1 auto;
|
|
1164
1164
|
width: fit-content;
|
|
@@ -1185,7 +1185,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1185
1185
|
display: flex;
|
|
1186
1186
|
flex-direction: row;
|
|
1187
1187
|
justify-content: flex-start;
|
|
1188
|
-
`,hs=a(
|
|
1188
|
+
`,hs=a(_)`
|
|
1189
1189
|
min-width: ${j.balanceWidth};
|
|
1190
1190
|
max-width: ${j.balanceWidth};
|
|
1191
1191
|
text-align: right;
|
|
@@ -1199,7 +1199,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1199
1199
|
width: ${j.categoryClassContainerWidth};
|
|
1200
1200
|
max-width: ${j.categoryClassContainerWidth};
|
|
1201
1201
|
padding-left: 67.5px;
|
|
1202
|
-
${({isSticky:e})=>e?
|
|
1202
|
+
${({isSticky:e})=>e?F`
|
|
1203
1203
|
position: sticky;
|
|
1204
1204
|
top: ${s.sp0};
|
|
1205
1205
|
left: ${s.sp0};
|
|
@@ -1226,7 +1226,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1226
1226
|
width: ${j.categoryClassHeaderWidth};
|
|
1227
1227
|
margin-left: ${s.sp4};
|
|
1228
1228
|
color: ${e=>e.theme.colors.hero};
|
|
1229
|
-
`,ms=a(
|
|
1229
|
+
`,ms=a(_)`
|
|
1230
1230
|
clear: both;
|
|
1231
1231
|
display: flex;
|
|
1232
1232
|
overflow: hidden;
|
|
@@ -1236,7 +1236,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1236
1236
|
margin-left: 2px;
|
|
1237
1237
|
width: ${j.categoryClassValueWidth};
|
|
1238
1238
|
max-width: ${j.categoryClassValueWidth};
|
|
1239
|
-
`,ws=a(
|
|
1239
|
+
`,ws=a(_)`
|
|
1240
1240
|
display: flex;
|
|
1241
1241
|
align-items: center;
|
|
1242
1242
|
overflow: hidden;
|
|
@@ -1264,7 +1264,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1264
1264
|
display: flex;
|
|
1265
1265
|
flex: 1;
|
|
1266
1266
|
justify-content: flex-end;
|
|
1267
|
-
`,js=({isBalanceRowFirstNode:e=!1,balance:n})=>{const i=n!=null;return t.jsxs(Zi,{children:[e?t.jsx(Ji,{}):null,t.jsx(ds,{children:t.jsx(hs,{isClickable:i,children:q(n)})})]})};function Ss({varianceAmount:e,variancePercentage:n,currency:i,isSticky:o,balances:r,isScrolling:l,nodeMetadata:c,isLeaf:d,isLastNode:h,accountAndClass:u,isHoveredByParent:p}){const{common:{strings:{hyphen:g}}}=B.getLocalizedStrings(),f=u.accountBase?.accountDescription?u.accountBase?.accountDescription:g,x=u.accountBase?.accountName?u.accountBase?.accountName:f,b=u.classBase?.className?u.classBase?.className:g,y=c?.accountAndClassRowMetadata.isLastNode;return t.jsxs(cs,{children:[t.jsxs(ss,{style:{cursor:"default"},isHoveredByParent:p,children:[t.jsx(bs,{children:t.jsxs(us,{className:"flux-class-and-account-value-container",isSticky:o,children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(gs,{children:[t.jsx(qi,{height:j.lineComponentHeight}),t.jsx(fs,{children:zn.common.texts.category}),t.jsx(xs,{children:zn.common.texts.class})]}),t.jsxs(ps,{children:[y===!0?t.jsx(ns,{height:j.lineLComponentHeight}):t.jsx(is,{}),t.jsx(ms,{title:x,children:x}),t.jsx(ws,{title:b,children:b})]})]})}),t.jsx(ks,{children:t.jsxs(ys,{children:[r.map((C,S)=>t.jsx(js,{balance:C,isBalanceRowFirstNode:c?.accountAndClassRowMetadata.isFirstNode},S)),t.jsxs(Zi,{children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsx(Ji,{}),t.jsx(lt,{amount:e,percentage:n,currency:i})]})]})})]}),t.jsx(Cs,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:c?.isVendorLastChild??!0})]})}function Cs({isScrolling:e,isLastNode:n,isParentLastChild:i}){return n&&i?t.jsx(
|
|
1267
|
+
`,js=({isBalanceRowFirstNode:e=!1,balance:n})=>{const i=n!=null;return t.jsxs(Zi,{children:[e?t.jsx(Ji,{}):null,t.jsx(ds,{children:t.jsx(hs,{isClickable:i,children:q(n)})})]})};function Ss({varianceAmount:e,variancePercentage:n,currency:i,isSticky:o,balances:r,isScrolling:l,nodeMetadata:c,isLeaf:d,isLastNode:h,accountAndClass:u,isHoveredByParent:p}){const{common:{strings:{hyphen:g}}}=B.getLocalizedStrings(),f=u.accountBase?.accountDescription?u.accountBase?.accountDescription:g,x=u.accountBase?.accountName?u.accountBase?.accountName:f,b=u.classBase?.className?u.classBase?.className:g,y=c?.accountAndClassRowMetadata.isLastNode;return t.jsxs(cs,{children:[t.jsxs(ss,{style:{cursor:"default"},isHoveredByParent:p,children:[t.jsx(bs,{children:t.jsxs(us,{className:"flux-class-and-account-value-container",isSticky:o,children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(gs,{children:[t.jsx(qi,{height:j.lineComponentHeight}),t.jsx(fs,{children:zn.common.texts.category}),t.jsx(xs,{children:zn.common.texts.class})]}),t.jsxs(ps,{children:[y===!0?t.jsx(ns,{height:j.lineLComponentHeight}):t.jsx(is,{}),t.jsx(ms,{title:x,children:x}),t.jsx(ws,{title:b,children:b})]})]})}),t.jsx(ks,{children:t.jsxs(ys,{children:[r.map((C,S)=>t.jsx(js,{balance:C,isBalanceRowFirstNode:c?.accountAndClassRowMetadata.isFirstNode},S)),t.jsxs(Zi,{children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsx(Ji,{}),t.jsx(lt,{amount:e,percentage:n,currency:i})]})]})})]}),t.jsx(Cs,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:c?.isVendorLastChild??!0})]})}function Cs({isScrolling:e,isLastNode:n,isParentLastChild:i}){return n&&i?t.jsx(_t,{isScrolling:e,kind:"vendor_separator"}):n?t.jsx(_t,{isScrolling:e,kind:"account_class_row_separator"}):null}function _s(){return t.jsxs(vs,{children:[t.jsxs(Ls,{children:[t.jsxs(ke,{width:j.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})]}),t.jsx(ke,{width:j.categoryRowsSkeletonContainerWidth,children:t.jsx(H,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})})]}),t.jsxs($s,{children:[t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(ke,{width:j.varianceRowSkeletonContainerWidth,children:[t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}}),t.jsx(H,{width:w[7],height:w[4],style:{display:"flex",alignItems:"flex-start",marginLeft:s.sp1}})]}),t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const vs=a.div`
|
|
1268
1268
|
display: flex;
|
|
1269
1269
|
flex-direction: row;
|
|
1270
1270
|
width: 100%;
|
|
@@ -1311,7 +1311,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1311
1311
|
display: flex;
|
|
1312
1312
|
flex-direction: row;
|
|
1313
1313
|
justify-content: flex-start;
|
|
1314
|
-
`,Os=a(
|
|
1314
|
+
`,Os=a(_)`
|
|
1315
1315
|
max-width: ${j.balanceWidth};
|
|
1316
1316
|
min-width: ${j.balanceWidth};
|
|
1317
1317
|
text-align: right;
|
|
@@ -1326,12 +1326,12 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1326
1326
|
width: ${j.sectionContainerWidth};
|
|
1327
1327
|
min-width: ${j.sectionContainerWidth};
|
|
1328
1328
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1329
|
-
${({isSticky:e})=>e&&
|
|
1329
|
+
${({isSticky:e})=>e&&F`
|
|
1330
1330
|
position: sticky;
|
|
1331
1331
|
top: ${s.sp0};
|
|
1332
1332
|
left: ${s.sp0};
|
|
1333
1333
|
`}
|
|
1334
|
-
`,Ns=a(
|
|
1334
|
+
`,Ns=a(_)`
|
|
1335
1335
|
clear: both;
|
|
1336
1336
|
display: inline-block;
|
|
1337
1337
|
overflow: hidden;
|
|
@@ -1344,14 +1344,14 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1344
1344
|
color: ${e=>e.theme.colors.primary};
|
|
1345
1345
|
width: ${s.sp3};
|
|
1346
1346
|
height: ${s.sp3};
|
|
1347
|
-
`,
|
|
1347
|
+
`,Fs=a.div`
|
|
1348
1348
|
display: flex;
|
|
1349
1349
|
&:hover {
|
|
1350
1350
|
.flux-section-checkbox {
|
|
1351
1351
|
background-color: transparent;
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
|
-
`,
|
|
1354
|
+
`,Ps=a.div`
|
|
1355
1355
|
display: flex;
|
|
1356
1356
|
width: ${s.sp8};
|
|
1357
1357
|
`,zs=a.div`
|
|
@@ -1363,12 +1363,12 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1363
1363
|
${j.statusContainerWidth} +
|
|
1364
1364
|
${j.statusLeftMargin}
|
|
1365
1365
|
);
|
|
1366
|
-
`,Ts=({balance:e,color:n})=>t.jsx(Ws,{children:t.jsx(Os,{color:n,children:q(e)})}),Vs=Ho.memo(function({currency:e,sectionId:n,selectedSectionsIds:i,backgroundColor:o,isSticky:r,treeNodeId:l,height:c,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:p,variancePercentage:g,sectionColor:f,isScrolling:x,isOpen:b,isLeaf:y,idsForReview:C,sectionToggled:S,onSectionCheckboxClick:A}){const L=O(),[W,
|
|
1366
|
+
`,Ts=({balance:e,color:n})=>t.jsx(Ws,{children:t.jsx(Os,{color:n,children:q(e)})}),Vs=Ho.memo(function({currency:e,sectionId:n,selectedSectionsIds:i,backgroundColor:o,isSticky:r,treeNodeId:l,height:c,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:p,variancePercentage:g,sectionColor:f,isScrolling:x,isOpen:b,isLeaf:y,idsForReview:C,sectionToggled:S,onSectionCheckboxClick:A}){const L=O(),[W,P]=N.useState(C.length>0),[z,K]=N.useState(!1),G=i.includes(n),Y=!y,Q=C.length===on&&!G,he=d?.[0]?.toUpperCase()??"",J=N.useCallback(ie=>{A?.(n,ie.target.checked)},[n,A]);return t.jsxs(As,{heightValue:c,bgColor:o,children:[t.jsxs(Bs,{style:{cursor:Y?"pointer":"default"},onClick:()=>S?.(l),onMouseOver:()=>{K(!0),P(!0)},onMouseLeave:()=>{K(!1),C.length===0&&P(!1)},children:[t.jsxs(Ms,{className:"flux-section-name-container",isSticky:r,windowSize:L,bgColor:o,children:[h&&W&&b?t.jsx(Fs,{children:t.jsx(It,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox",icon:t.jsx(Ft,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Is,{}),checked:G,id:l,disabled:Q,onChange:J,onClick:ie=>ie.stopPropagation(),style:{padding:"20px",pointerEvents:Q?"none":"auto"}})}):t.jsx(Ps,{}),t.jsx(ye,{color:$(f),showCollapsedIcon:!b,showIcon:z&&Y,firstLetter:he}),t.jsx(Ns,{color:f.toString(),children:d})]}),t.jsxs(zs,{children:[u.map((ie,Se)=>t.jsx(Ts,{sectionName:d,balance:ie,color:f.toString()},Se)),t.jsx(lt,{amount:p,percentage:g,currency:e})]})]}),t.jsx(Ds,{isScrolling:x,isLeaf:y,isOpen:b})]})});function Ds({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(_t,{isScrolling:e,kind:"section_row_separator"}):null}function Rs(){const e=O();return t.jsxs(Es,{windowSize:e,children:[t.jsx(_e,{windowSize:e,width:j.vendorContainerWidth,marginRight:0,children:t.jsx(H,{width:w[9],height:w[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(_e,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(H,{width:128,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(_e,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(_e,{windowSize:e,width:j.varianceRowSkeletonContainerWidth,children:t.jsx(H,{width:184,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(_e,{windowSize:e,width:j.titleWidthSmall,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})})]})}const Es=a.div`
|
|
1367
1367
|
display: flex;
|
|
1368
1368
|
flex-direction: row;
|
|
1369
1369
|
width: 100%;
|
|
1370
1370
|
margin-left: ${s.sp8};
|
|
1371
|
-
`,
|
|
1371
|
+
`,_e=a.div`
|
|
1372
1372
|
display: flex;
|
|
1373
1373
|
flex-direction: row;
|
|
1374
1374
|
align-items: center;
|
|
@@ -1380,7 +1380,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1380
1380
|
:first-of-type {
|
|
1381
1381
|
justify-content: flex-start;
|
|
1382
1382
|
}
|
|
1383
|
-
`,{common:
|
|
1383
|
+
`,{common:Gs,expenseAutomation:{fluxAnalysis:Hs},vendors:{opExByVendor:Ks}}=B.getLocalizedStrings(),Ys=a.div`
|
|
1384
1384
|
display: flex;
|
|
1385
1385
|
flex: 1 1 auto;
|
|
1386
1386
|
width: fit-content;
|
|
@@ -1390,7 +1390,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1390
1390
|
justify-content: flex-start;
|
|
1391
1391
|
align-items: center;
|
|
1392
1392
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1393
|
-
`,
|
|
1393
|
+
`,vt=a.div`
|
|
1394
1394
|
display: flex;
|
|
1395
1395
|
max-height: ${s.sp8};
|
|
1396
1396
|
min-height: ${s.sp8};
|
|
@@ -1403,7 +1403,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1403
1403
|
margin-left: ${j.balanceLeftMargin};
|
|
1404
1404
|
color: ${e=>e.theme.colors.primary};
|
|
1405
1405
|
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
1406
|
-
`,Us=a(
|
|
1406
|
+
`,Us=a(_)`
|
|
1407
1407
|
display: flex;
|
|
1408
1408
|
flex-direction: row;
|
|
1409
1409
|
justify-content: center;
|
|
@@ -1427,7 +1427,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1427
1427
|
z-index: 1;
|
|
1428
1428
|
background-color: ${e=>e.theme.colors.grey4};
|
|
1429
1429
|
padding-left: ${s.sp8};
|
|
1430
|
-
${({isSticky:e})=>e?
|
|
1430
|
+
${({isSticky:e})=>e?F`
|
|
1431
1431
|
top: ${s.sp0};
|
|
1432
1432
|
left: ${s.sp0};
|
|
1433
1433
|
display: flex;
|
|
@@ -1441,7 +1441,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1441
1441
|
min-width: ${j.vendorContainerWidth};
|
|
1442
1442
|
color: ${e=>e.theme.colors.primary};
|
|
1443
1443
|
background-color: ${e=>e.theme.colors.grey4};
|
|
1444
|
-
`,Xs=a(
|
|
1444
|
+
`,Xs=a(_)`
|
|
1445
1445
|
display: flex;
|
|
1446
1446
|
gap: 6px;
|
|
1447
1447
|
align-items: baseline;
|
|
@@ -1466,7 +1466,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1466
1466
|
margin-left: ${s.sp7};
|
|
1467
1467
|
flex: 1 1 auto;
|
|
1468
1468
|
justify-content: flex-end;
|
|
1469
|
-
`,td=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(
|
|
1469
|
+
`,td=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(vt,{isClickable:!1,children:t.jsx(Us,{children:Fe(e,n,i)})}),nd=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(td,{firstMonthOfFY:e,timeframeTick:n,timeframe:i}),id=({sortKey:e="vendor",sortOrder:n="ascending",isBulkSelected:i,onSortOrderChanged:o})=>{const r=()=>{o(n==="ascending"?"descending":"ascending","vendor")},l=e==="vendor"?n:"ascending";return t.jsx(Xs,{isBulkSelected:i,isSortedByKey:e==="vendor",children:t.jsxs($t,{onClick:r,"data-testid":m("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Ks.vendor,t.jsx(Lt,{isBulkSelected:i,isSortedByKey:e==="vendor",children:l==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})})};function od({backgroundColor:e,height:n,isBulkSelected:i,sortKey:o="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:c,timeframeTicks:d,onSortOrderChanged:h}){const u=O(),p=(g,f)=>{h?.(g,f)};return t.jsxs(Ys,{heightValue:n,bgColor:e,children:[t.jsx(Zs,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(Js,{windowSize:u,children:t.jsx(id,{sortKey:o,sortOrder:r,isBulkSelected:i,onSortOrderChanged:p})})}),t.jsxs(ed,{children:[d.map((g,f)=>t.jsx(nd,{firstMonthOfFY:l,timeframeTick:g,timeframe:c},f)),t.jsx(vt,{isClickable:!1,width:j.varianceHeaderContainerWidth,children:t.jsxs($t,{onClick:()=>h?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":m("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(qs,{children:Hs.variance}),t.jsx(Lt,{isBulkSelected:i,isSortedByKey:o==="variance",children:(o==="variance"?r:"ascending")==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})}),t.jsx(vt,{isClickable:!1,width:j.statusContainerWidth,children:t.jsxs($t,{onClick:()=>{h?.(r==="ascending"?"descending":"ascending","status")},"data-testid":m("flux-analysis-report-timeframe-row-status"),children:[t.jsx(Qs,{children:Gs.texts.reviewStatus}),t.jsx(Lt,{isBulkSelected:i,isSortedByKey:o==="status",children:(o==="status"?r:"ascending")==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})})]})]})}const rd=a.div`
|
|
1470
1470
|
display: flex;
|
|
1471
1471
|
flex: 1 1 auto;
|
|
1472
1472
|
width: fit-content;
|
|
@@ -1571,7 +1571,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1571
1571
|
justify-content: flex-start;
|
|
1572
1572
|
align-items: center;
|
|
1573
1573
|
margin-left: ${j.balanceLeftMargin};
|
|
1574
|
-
`,yd=a(
|
|
1574
|
+
`,yd=a(_)`
|
|
1575
1575
|
user-select: none;
|
|
1576
1576
|
min-width: ${j.balanceWidth};
|
|
1577
1577
|
max-width: ${j.balanceWidth};
|
|
@@ -1585,13 +1585,13 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1585
1585
|
width: ${j.titleWidth};
|
|
1586
1586
|
max-width: ${j.titleWidth};
|
|
1587
1587
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1588
|
-
${({isSticky:e})=>e?
|
|
1588
|
+
${({isSticky:e})=>e?F`
|
|
1589
1589
|
position: -webkit-sticky;
|
|
1590
1590
|
position: sticky;
|
|
1591
1591
|
top: ${s.sp0};
|
|
1592
1592
|
left: ${s.sp0};
|
|
1593
1593
|
`:null}
|
|
1594
|
-
`,kd=a(
|
|
1594
|
+
`,kd=a(_)`
|
|
1595
1595
|
user-select: none;
|
|
1596
1596
|
clear: both;
|
|
1597
1597
|
display: inline-block;
|
|
@@ -1618,7 +1618,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1618
1618
|
justify-content: flex-end;
|
|
1619
1619
|
text-align: center;
|
|
1620
1620
|
align-items: center;
|
|
1621
|
-
`;const Cd=a(
|
|
1621
|
+
`;const Cd=a(Po)`
|
|
1622
1622
|
width: 12px;
|
|
1623
1623
|
height: 12px;
|
|
1624
1624
|
`;a.div`
|
|
@@ -1632,12 +1632,12 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1632
1632
|
justify-content: center;
|
|
1633
1633
|
text-align: center;
|
|
1634
1634
|
background-color: ${e=>e.bgColor.hex()};
|
|
1635
|
-
`;const
|
|
1635
|
+
`;const _d=a.div`
|
|
1636
1636
|
display: flex;
|
|
1637
1637
|
margin-left: ${s.sp7};
|
|
1638
1638
|
flex: 1 1 auto;
|
|
1639
1639
|
justify-content: flex-end;
|
|
1640
|
-
`,
|
|
1640
|
+
`,vd=a.div`
|
|
1641
1641
|
display: flex;
|
|
1642
1642
|
flex-direction: column;
|
|
1643
1643
|
align-items: center;
|
|
@@ -1704,7 +1704,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1704
1704
|
text-align: center;
|
|
1705
1705
|
align-items: center;
|
|
1706
1706
|
justify-content: center;
|
|
1707
|
-
`,
|
|
1707
|
+
`,Fd=a(Le)`
|
|
1708
1708
|
display: flex;
|
|
1709
1709
|
border-radius: ${s.sp1};
|
|
1710
1710
|
width: ${s.sp4};
|
|
@@ -1713,7 +1713,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1713
1713
|
align-items: center;
|
|
1714
1714
|
justify-content: center;
|
|
1715
1715
|
margin-right: ${s.sp4};
|
|
1716
|
-
`,
|
|
1716
|
+
`,Pd=a(Le)`
|
|
1717
1717
|
display: flex;
|
|
1718
1718
|
border-radius: 100px;
|
|
1719
1719
|
width: 18px;
|
|
@@ -1721,7 +1721,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1721
1721
|
justify-content: center;
|
|
1722
1722
|
align-items: center;
|
|
1723
1723
|
margin-left: ${s.sp1};
|
|
1724
|
-
`,{common:Vn,expenseAutomation:zd}=B.getLocalizedStrings(),Td=({balance:e})=>{const n=yd;return t.jsx(wd,{children:t.jsx(n,{children:q(e)})})};function Vd({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:i,isSticky:o,treeNodeId:r,height:l,leftChevron:c,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:p,reviewedByUser:g,status:f,vendor:x,isOpen:b,childrenCount:y,setHoveredParentId:C,onClick:S,handleRedirectToVendorDetailPage:A,updateOperatingExpensesIdsForReview:L}){const[W,
|
|
1724
|
+
`,{common:Vn,expenseAutomation:zd}=B.getLocalizedStrings(),Td=({balance:e})=>{const n=yd;return t.jsx(wd,{children:t.jsx(n,{children:q(e)})})};function Vd({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:i,isSticky:o,treeNodeId:r,height:l,leftChevron:c,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:p,reviewedByUser:g,status:f,vendor:x,isOpen:b,childrenCount:y,setHoveredParentId:C,onClick:S,handleRedirectToVendorDetailPage:A,updateOperatingExpensesIdsForReview:L}){const[W,P]=N.useState(!1),[z,K]=N.useState(n.length>0),G=n.includes(e),Y=n.includes(e),Q=c==="collapsed",he=n.length===on&&G===!1,J=kd,ie=ae=>{let ue=n;ae.target.checked===!0?ue=[...ue,e]:ue=ue.filter(De=>De!==e),L?.(ue)},Se=()=>{A?.(x)};return t.jsx(xd,{heightValue:l,bgColor:i,children:t.jsxs(md,{shouldHighlight:Y,isRowExpanded:b,onClick:()=>S?.(r),onMouseOver:()=>{P(!0),K(!0),C?.(x.id)},onMouseLeave:()=>{P(!1),n.length===0&&K(!1),C?.(null)},children:[t.jsxs(bd,{className:"flux-vendor-name-container",bgColor:i,isSticky:o,children:[t.jsx(Wd,{className:"flux-vendor-checkbox-container",children:z?t.jsx(It,{className:"flux-vendor-checkbox",icon:t.jsx(Ft,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Od,{}),checked:G,name:x.name,id:e,disabled:he,onChange:ie,onClick:ae=>ae.stopPropagation(),style:{padding:"20px",pointerEvents:he?"none":"auto"}}):null}),t.jsxs(vd,{isNodeOpen:b,children:[W?t.jsx(Id,{className:"flux-vendor-collapsable-chevron-icon",children:b===!1?t.jsx(Tn,{}):t.jsx(Nd,{})}):x.logo!=null?t.jsx(Pt,{photoUrl:x.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(zt,{name:x.name,size:s.sp4}),b?t.jsx(qi,{height:j.vendorLineComponentHeight}):null]}),t.jsxs(jd,{children:[t.jsxs(Sd,{children:[t.jsx(J,{children:x.name}),b?null:t.jsx(Pd,{className:"flux-vendor-children-count",children:t.jsx(Le,{children:y})})]}),W?t.jsx(N.Fragment,{children:t.jsx(Fd,{className:"flux-vendor-chevron-icon",onClick:Se,"data-testid":m("flux-analysis-report-vendorElement-row"),children:t.jsx(Tn,{})})}):null]})]}),t.jsxs(_d,{children:[p.map((ae,ue)=>t.jsx(Td,{balance:ae,collapsed:Q},ue)),t.jsx(lt,{amount:d,percentage:h,currency:u}),t.jsx($d,{children:f==="Pending Review"?t.jsx(Ad,{children:t.jsx(Bd,{children:Vn.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(Ld,{className:"vendor-flux-analysis-review-info",children:g!=null?t.jsxs(N.Fragment,{children:[t.jsxs(Md,{children:[t.jsx(Cd,{}),zd.fluxAnalysis.reviewedBy]}),t.jsx(Le,{children:Wo(g)})]}):Vn.strings.hyphen})})})]})]})})}const Dn={generalExpense:{color:new $(T.graphColor04),hoverColor:new $(T.graphColor04Dark)},reimbursement:{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)},default:{color:new $(X.neutralGrey2Dark),hoverColor:new $(X.neutralGrey2Dark)}},Dd=(e,n)=>e.startsWith("flux_analysis_operating_expense")===!0&&n!=null?Dn[n]:Dn.default,rn=(e,n)=>{const{element:i}=e;return i.kind===n&&i.data!=null},Xi=e=>Yc(e.balancesByMonth),Rd=(e,n,i,o,r,l,c,d,h)=>{if(!rn(n,"flux_vendor_account_class_row"))return null;const u=n.element.data,p=Xi(u),g=n.element.metadata.vendorId;return t.jsx(Ss,{backgroundColor:i,isSticky:o,treeNodeId:e,balances:p,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:u.currency,isScrolling:r,isLeaf:l,isLastNode:c,nodeMetadata:n.element.metadata,accountAndClass:u,onAccountAndClassBalanceClick:()=>h?.(g),isHoveredByParent:d?.hoveredParentId===g})},Ed=(e,n,i,o,r,l,c,d,h,u,p)=>{if(!rn(n,"flux_vendor_row"))return null;const g=n.element.data,f=Xi(g),x=Qi("flux_vendor_row",h),b=y=>{p?.(y),n.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(y)};return t.jsx(Vd,{backgroundColor:i,isSticky:o,treeNodeId:e,fluxAnalysisEntityId:g.fluxAnalysisEntityId,height:x,leftChevron:"collapsed",idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:g.vendor,vendorBalances:f,varianceAmount:g.varianceAmount,variancePercentage:g.variancePercentage,status:g.status,currency:g.currency,isScrolling:r,isOpen:l,isLeaf:c,isLastNode:d,childrenCount:g.vendorAccountsAndClasses.length,onClick:y=>{b?.(y)},reviewedByUser:g.reviewedByUser,updateOperatingExpensesIdsForReview:n.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:n.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},Gd=(e,n,i,o,r,l,c,d,h,u)=>{if(!rn(n,"section"))return null;const p=Dd(n.config.reportId,n.element.sectionType),g=n.element.data,f=x=>{n.config.fluxAnalysisConfig?.onSectionRowClick(x),u?.(x)};return t.jsx(Vs,{backgroundColor:o,isSticky:r,treeNodeId:e,height:i,selectedSectionsIds:n.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:p.color,sectionName:n.element.title,sectionBalances:g.balances,varianceAmount:g.varianceAmount,variancePercentage:g.variancePercentage,currency:g.currency,isScrolling:l,isOpen:c,hasVendors:g.vendors.length>0,isLeaf:d,isLastNode:h,sectionToggled:x=>{f?.(x)},onSectionCheckboxClick:n.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:g.sectionId})},Hd=(e,n,i)=>{if(e.element.kind!=="timeframe_headers")return null;const o=Pe(e.element.data,e.config.displayOrder),r=o.length>0?o[0].balanceTimeFrame:"month",l=o.map(d=>Ie(d)),c=(d,h)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(d,h)};return t.jsx(od,{isSticky:i,height:n,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===on,onSortOrderChanged:c,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},Kd=(e,n)=>{if(e.element.kind!=="total")return null;const i=e.element.data;return t.jsx(fd,{type:"name+balances_actual",title:e.element.title,totalBalances:i.balances,varianceAmount:i.varianceAmount,variancePercentage:i.variancePercentage,currency:i.currency,height:n})},Yd=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(_s,{}),Ud=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Rs,{}),qd=a.div`
|
|
1725
1725
|
display: flex;
|
|
1726
1726
|
flex: 1 1 auto;
|
|
1727
1727
|
width: fit-content;
|
|
@@ -1767,7 +1767,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1767
1767
|
color: ${e=>e.theme.colors.primary};
|
|
1768
1768
|
width: ${s.sp3};
|
|
1769
1769
|
height: ${s.sp3};
|
|
1770
|
-
`;function th({backgroundColor:e,treeNodeId:n,classId:i,isChecked:o,isDisabled:r,height:l,nestedClass:c,isLeaf:d,showClassAccountNumber:h,onClick:u,onToggleCheck:p}){const[g,f]=N.useState(!1);return t.jsx(qd,{"data-testid":m("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(Qd,{"data-testid":m("name-with-checkbox-row-container",n),height:l,isClickable:!d,onClick:()=>u?.(n),onMouseOver:()=>f(!0),onMouseLeave:()=>f(!1),level:c.classId.length,children:[t.jsx(It,{"data-testid":m("name-with-checkbox-row-checkbox",c.classId.toString()),icon:t.jsx(
|
|
1770
|
+
`;function th({backgroundColor:e,treeNodeId:n,classId:i,isChecked:o,isDisabled:r,height:l,nestedClass:c,isLeaf:d,showClassAccountNumber:h,onClick:u,onToggleCheck:p}){const[g,f]=N.useState(!1);return t.jsx(qd,{"data-testid":m("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(Qd,{"data-testid":m("name-with-checkbox-row-container",n),height:l,isClickable:!d,onClick:()=>u?.(n),onMouseOver:()=>f(!0),onMouseLeave:()=>f(!1),level:c.classId.length,children:[t.jsx(It,{"data-testid":m("name-with-checkbox-row-checkbox",c.classId.toString()),icon:t.jsx(Ft,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(eh,{}),checked:o,name:c.className,id:n,disabled:r,onChange:x=>{p?.(i,x.target.checked)},style:{height:s.sp6}})," ",t.jsx(Zd,{children:t.jsxs(Jd,{"data-testid":m("name-with-checkbox-row-label-container",n),checked:o,isSubclass:c.classId.length>1,children:[t.jsx("label",{"data-testid":m("name-with-checkbox-row-label",c.classId.toString()),style:{flexGrow:2,cursor:"pointer"},onClick:()=>{p?.(i,!o)},children:c.className}),g===!0&&h===!0&&c.accountingClassNumber!=null&&t.jsx(Xd,{children:c.accountingClassNumber})]})})]})})}const nh=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="checkbox_and_name_only")return null;const g=i.element.data,f=i.config.isClassToBeFilteredOut?.(g.classId)===!1;return t.jsx(th,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,classId:g.classId,isChecked:f,isDisabled:!1,height:o,isScrolling:c,nestedClass:g,isOpen:d,isLeaf:h,isLastNode:u,showClassAccountNumber:i.config.showClassAccountNumber,onToggleCheck:p})},M={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,270,270),categoryClassWidth:new V(230,230,240),nameLogoWidth:new V(w[4],w[4]),nameLogoHeight:new V(w[4],w[4])};function ih(e){switch(e){case"timeframe_headers":return w[11];case"vendor_row":return w[6];case"total":return w[8];case"loading_in_progress":return w[6];case"spacer_row":return w[8];case"title_string_only":return w[8];default:return 0}}function oh(e,n){return!1}const rh=a.div`
|
|
1771
1771
|
user-select: none;
|
|
1772
1772
|
display: flex;
|
|
1773
1773
|
flex: 1 1 auto;
|
|
@@ -1794,7 +1794,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1794
1794
|
flex: 1 0 auto;
|
|
1795
1795
|
flex-direction: row;
|
|
1796
1796
|
justify-content: flex-end;
|
|
1797
|
-
`,Rn=a(
|
|
1797
|
+
`,Rn=a(_)`
|
|
1798
1798
|
color: ${e=>e.theme.colors.hero};
|
|
1799
1799
|
flex-grow: 1;
|
|
1800
1800
|
-webkit-box-orient: vertical;
|
|
@@ -1804,7 +1804,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1804
1804
|
max-width: ${M.balanceWidth};
|
|
1805
1805
|
margin-left: ${e=>e.isClubbed===!0?s.sp2:M.balanceLeftMargin};
|
|
1806
1806
|
border: 1px solid transparent;
|
|
1807
|
-
`,
|
|
1807
|
+
`,En=a(_)`
|
|
1808
1808
|
color: ${e=>e.theme.colors.hero};
|
|
1809
1809
|
flex-grow: 1;
|
|
1810
1810
|
-webkit-box-orient: vertical;
|
|
@@ -1819,14 +1819,14 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1819
1819
|
min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
1820
1820
|
color: ${e=>e.theme.colors.primary};
|
|
1821
1821
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1822
|
-
${({isSticky:e})=>e?
|
|
1822
|
+
${({isSticky:e})=>e?F`
|
|
1823
1823
|
position: -webkit-sticky;
|
|
1824
1824
|
position: sticky;
|
|
1825
1825
|
top: ${s.sp0};
|
|
1826
1826
|
left: ${s.sp0};
|
|
1827
1827
|
z-index: 20;
|
|
1828
1828
|
`:null}
|
|
1829
|
-
`;function sh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return l.length>0?t.jsxs(rh,{height:i,bgColor:e,"data-testid":m("opex-vendor-loading-in-progress-row"),children:[t.jsxs(ch,{"data-testid":m("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:c,bgColor:e,children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(Rn,{windowSize:c,isClubbed:!0,children:t.jsx(H,{width:120,height:w[4]})})]}),t.jsxs(lh,{children:[o?t.jsx(
|
|
1829
|
+
`;function sh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return l.length>0?t.jsxs(rh,{height:i,bgColor:e,"data-testid":m("opex-vendor-loading-in-progress-row"),children:[t.jsxs(ch,{"data-testid":m("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:c,bgColor:e,children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(Rn,{windowSize:c,isClubbed:!0,children:t.jsx(H,{width:120,height:w[4]})})]}),t.jsxs(lh,{children:[o?t.jsx(En,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})}):null,r?t.jsx(En,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})}):null,l.map((d,h)=>t.jsx(Rn,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})},`${h}RowItem`))]})]}):t.jsx(ah,{height:i,bgColor:e,children:t.jsx(Bo,{size:"Small",start:!0})})}const dh=a.div`
|
|
1830
1830
|
user-select: none;
|
|
1831
1831
|
display: flex;
|
|
1832
1832
|
flex: 1 1 auto;
|
|
@@ -1842,7 +1842,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1842
1842
|
flex: 1 0 auto;
|
|
1843
1843
|
flex-direction: row;
|
|
1844
1844
|
justify-content: flex-end;
|
|
1845
|
-
`,uh=a(
|
|
1845
|
+
`,uh=a(_)`
|
|
1846
1846
|
user-select: none;
|
|
1847
1847
|
clear: both;
|
|
1848
1848
|
display: inline-block;
|
|
@@ -1852,7 +1852,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1852
1852
|
text-align: left;
|
|
1853
1853
|
margin-left: ${s.sp2};
|
|
1854
1854
|
color: ${e=>e.theme.colors.hero};
|
|
1855
|
-
`,gh=a(
|
|
1855
|
+
`,gh=a(_)`
|
|
1856
1856
|
color: ${e=>e.theme.colors.hero};
|
|
1857
1857
|
flex-grow: 1;
|
|
1858
1858
|
-webkit-box-orient: vertical;
|
|
@@ -1860,7 +1860,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1860
1860
|
min-width: ${M.balanceWidth};
|
|
1861
1861
|
max-width: ${M.balanceWidth};
|
|
1862
1862
|
border: 1px solid transparent;
|
|
1863
|
-
`,
|
|
1863
|
+
`,Gn=a(_)`
|
|
1864
1864
|
color: ${e=>e.theme.colors.hero};
|
|
1865
1865
|
flex-grow: 1;
|
|
1866
1866
|
-webkit-box-orient: vertical;
|
|
@@ -1875,14 +1875,14 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1875
1875
|
min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
1876
1876
|
color: ${e=>e.theme.colors.primary};
|
|
1877
1877
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1878
|
-
${({isSticky:e})=>e?
|
|
1878
|
+
${({isSticky:e})=>e?F`
|
|
1879
1879
|
position: -webkit-sticky;
|
|
1880
1880
|
position: sticky;
|
|
1881
1881
|
top: ${s.sp0};
|
|
1882
1882
|
left: ${s.sp0};
|
|
1883
1883
|
z-index: 20;
|
|
1884
1884
|
`:null}
|
|
1885
|
-
`;function fh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return t.jsxs(dh,{height:i,bgColor:e,"data-testid":m("no-results-found-title-row"),children:[t.jsx(ph,{isSticky:n,windowSize:c,bgColor:e,children:t.jsx(uh,{children:B.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(hh,{children:[o?t.jsx(
|
|
1885
|
+
`;function fh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return t.jsxs(dh,{height:i,bgColor:e,"data-testid":m("no-results-found-title-row"),children:[t.jsx(ph,{isSticky:n,windowSize:c,bgColor:e,children:t.jsx(uh,{children:B.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(hh,{children:[o?t.jsx(Gn,{windowSize:c,children:t.jsx(bt,{})}):null,r?t.jsx(Gn,{windowSize:c,children:t.jsx(bt,{})}):null,l.map((d,h)=>t.jsx(gh,{windowSize:c,children:t.jsx(bt,{children:" "})},`${h}RowItem`))]})]})}function an({title:e,selectedMode:n,onCompareModeChanged:i,backgroundColor:o,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:c,titleTextStyle:d,titleTextAlignment:h,titleColor:u,menuPosition:p}){const g=["compare_mode_percent","compare_mode_amount"],f=x=>B.getLocalizedStrings().compareMode[x];return t.jsx(zo,{title:e,pickerValues:g,valueToLabel:f,selectedValue:n,onPickerSelectionChanged:x=>i(x),optionTextStyle:c,titleTextStyle:d,titleTextAlignment:h,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:o??"inherit",menuPosition:p})}const Wt={balanceHeight:s.sp4,balanceWidthInPx:170,balanceLeftMargin:s.sp4},xh=a.div`
|
|
1886
1886
|
margin-left: ${s.sp4};
|
|
1887
1887
|
`,mh=a.div`
|
|
1888
1888
|
display: flex;
|
|
@@ -1896,7 +1896,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1896
1896
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1897
1897
|
border-radius: ${s.sp2};
|
|
1898
1898
|
color: ${e=>e.theme.colors.primary};
|
|
1899
|
-
`,wh=a(
|
|
1899
|
+
`,wh=a(_)`
|
|
1900
1900
|
display: flex;
|
|
1901
1901
|
user-select: none;
|
|
1902
1902
|
flex-direction: row;
|
|
@@ -1912,19 +1912,19 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1912
1912
|
margin-right: ${s.sp2};
|
|
1913
1913
|
position: relative;
|
|
1914
1914
|
top: -12px;
|
|
1915
|
-
`,bh=a(
|
|
1915
|
+
`,bh=a(Go)`
|
|
1916
1916
|
color: ${e=>e.tagType==="under_review"?X.neutralGrey5Light:e.theme.mode==="light"?X.primaryDark:X.primaryLight};
|
|
1917
1917
|
border-radius: ${s.sp2};
|
|
1918
1918
|
padding: 3px 6px;
|
|
1919
1919
|
margin-left: 12px;
|
|
1920
1920
|
background: ${e=>e.tagType==="under_review"?X.alertDark:e.theme.mode==="light"?X.championLight:X.championDark};
|
|
1921
|
-
`,kh=a(
|
|
1921
|
+
`,kh=a(Eo)`
|
|
1922
1922
|
color: ${e=>e.theme.colors.hero};
|
|
1923
1923
|
margin-left: 5px;
|
|
1924
1924
|
height: ${s.sp3};
|
|
1925
1925
|
width: ${s.sp3};
|
|
1926
1926
|
margin-top: ${s.sp1};
|
|
1927
|
-
`;function eo({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:o,infoContent:r,tagType:l}){return t.jsxs(xh,{children:[t.jsxs(mh,{children:[t.jsx(wh,{children:
|
|
1927
|
+
`;function eo({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:o,infoContent:r,tagType:l}){return t.jsxs(xh,{children:[t.jsxs(mh,{children:[t.jsx(wh,{children:Fe(e,n,i)}),t.jsx(Ro,{style:{padding:s.sp3},title:r,placement:"top",children:t.jsx(kh,{})})]}),t.jsx(yh,{children:t.jsx(bh,{tagType:l,children:o})})]})}const to=(e,n)=>{const i=B.getLocalizedStrings().reports;switch(n){case"month":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoMonth:i.bookCloseIncompleteInfoMonth:void 0;case"quarter":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoQuarter:i.bookCloseIncompleteInfoQuarter:void 0;case"year":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoYear:i.bookCloseIncompleteInfoYear:void 0;default:return}},jh=a.div`
|
|
1928
1928
|
user-select: none;
|
|
1929
1929
|
display: flex;
|
|
1930
1930
|
flex: 1 1 auto;
|
|
@@ -1953,7 +1953,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1953
1953
|
margin-left: ${M.balanceLeftMargin};
|
|
1954
1954
|
color: ${e=>e.theme.colors.primary};
|
|
1955
1955
|
cursor: ${e=>e.isClickable===!0?"pointer":"default"};
|
|
1956
|
-
`,io=a(
|
|
1956
|
+
`,io=a(_)`
|
|
1957
1957
|
display: flex;
|
|
1958
1958
|
user-select: none;
|
|
1959
1959
|
flex-direction: row;
|
|
@@ -1968,14 +1968,14 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1968
1968
|
flex-direction: row;
|
|
1969
1969
|
z-index: 1;
|
|
1970
1970
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1971
|
-
${({isSticky:e})=>e?
|
|
1971
|
+
${({isSticky:e})=>e?F`
|
|
1972
1972
|
position: -webkit-sticky;
|
|
1973
1973
|
position: sticky;
|
|
1974
1974
|
top: ${s.sp0};
|
|
1975
1975
|
left: ${s.sp0};
|
|
1976
1976
|
z-index: 1;
|
|
1977
1977
|
`:null}
|
|
1978
|
-
`,
|
|
1978
|
+
`,_h=a.div`
|
|
1979
1979
|
max-height: ${e=>e.plHeight}px;
|
|
1980
1980
|
min-height: ${e=>e.plHeight}px;
|
|
1981
1981
|
display: flex;
|
|
@@ -1984,12 +1984,12 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
1984
1984
|
min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
1985
1985
|
color: ${e=>e.theme.colors.primary};
|
|
1986
1986
|
background-color: ${e=>e.bgColor?.hex()};
|
|
1987
|
-
`,
|
|
1987
|
+
`,vh=a(_)`
|
|
1988
1988
|
display: flex;
|
|
1989
1989
|
gap: 6px;
|
|
1990
1990
|
align-items: baseline;
|
|
1991
1991
|
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
|
|
1992
|
-
`,oo=a(
|
|
1992
|
+
`,oo=a(_)`
|
|
1993
1993
|
height: 100%;
|
|
1994
1994
|
align-self: center;
|
|
1995
1995
|
align-items: baseline;
|
|
@@ -2007,7 +2007,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2007
2007
|
justify-content: center;
|
|
2008
2008
|
align-items: center;
|
|
2009
2009
|
color: ${e=>e.theme.colors.champion};
|
|
2010
|
-
`,Lh=a.div``,Ah=a(
|
|
2010
|
+
`,Lh=a.div``,Ah=a(_)`
|
|
2011
2011
|
display: flex;
|
|
2012
2012
|
justify-content: center;
|
|
2013
2013
|
align-items: center;
|
|
@@ -2040,17 +2040,17 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2040
2040
|
height: 12px;
|
|
2041
2041
|
cursor: pointer;
|
|
2042
2042
|
color: ${e=>e.theme.colors.hero};
|
|
2043
|
-
`,ao=({sortOrder:e,sortKey:n,onSortOrderChanged:i})=>{const o=()=>{i(ht("totals",e,n),"totals")},r=n==="totals"?e:"ascending";return t.jsx(ro,{"data-testid":m("period-total-tick"),children:t.jsx(no,{"data-testid":m("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(io,{children:[B.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(ct,{selectedForSort:n==="totals",children:r==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]})})})},Bh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("vendor",n,e),"vendor")},l=e==="vendor"?n:"ascending";return t.jsxs(
|
|
2043
|
+
`,ao=({sortOrder:e,sortKey:n,onSortOrderChanged:i})=>{const o=()=>{i(ht("totals",e,n),"totals")},r=n==="totals"?e:"ascending";return t.jsx(ro,{"data-testid":m("period-total-tick"),children:t.jsx(no,{"data-testid":m("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(io,{children:[B.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(ct,{selectedForSort:n==="totals",children:r==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]})})})},Bh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("vendor",n,e),"vendor")},l=e==="vendor"?n:"ascending";return t.jsxs(vh,{selectedForSort:e==="vendor",children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(ct,{selectedForSort:e==="vendor",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="vendor"?t.jsx(cn,{onClick:o}):null]})},Wh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("account",n,e),"account")},l=e==="account"?n:"ascending",c=O();return t.jsxs(oo,{selectedForSort:e==="account",windowSize:c,children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(ct,{selectedForSort:e==="account",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="account"?t.jsx(cn,{onClick:o}):null]})},Oh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("class",n,e),"class")},l=e==="class"?n:"ascending",c=O();return t.jsxs(oo,{selectedForSort:e==="class",windowSize:c,children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(ct,{selectedForSort:e==="class",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="class"?t.jsx(cn,{onClick:o}):null]})},lo=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=B.getLocalizedStrings().reports,c=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?ai(i,e,n,r,o):void 0,d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=to(c,i);return t.jsx(ro,{children:r!=null&&o!=null&&c!=null&&d!=null&&h!=null?t.jsx(eo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:c}):t.jsx(no,{isClickable:!1,children:t.jsx(io,{children:Fe(e,n,i)})})})},Mh=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,sortKey:o="totals",sortOrder:r="ascending",dataAvailable:l,bookCloseDate:c,onSortOrderChanged:d})=>n.balanceType==="period_total"?t.jsx(ao,{sortKey:o,sortOrder:r,onSortOrderChanged:d}):t.jsx(lo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:c}),Nh=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:c,bookCloseDate:d,onCompareModeChanged:h,onSortOrderChanged:u})=>{const p=ce(),g=o==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return t.jsx($h,{children:n.map((f,x)=>t.jsxs(N.Fragment,{children:[f.balanceType==="this_period_vs_last_period"||f.balanceType==="this_period_vs_last_period_percent"?t.jsx(Ah,{children:t.jsx(an,{title:g,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",titleColor:p.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:b=>{b!=="off"&&(b==="compare_mode_amount"||b==="compare_mode_percent"?h?.(b):console.warn("Invalid compare mode option"))}})}):null,f.balanceType==="period_total"?t.jsx(ao,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,f.balanceType==="default"?t.jsx(Lh,{children:t.jsx(lo,{firstMonthOfFY:e,timeframeTick:f,timeframe:i,dataAvailable:c,bookCloseDate:d},x)}):null]},x))})};function Ih({backgroundColor:e,isSticky:n,height:i,isCompareModeOn:o,isAccountColumnShown:r,isClassColumnShown:l,sortKey:c,sortOrder:d,firstMonthOfFY:h,timeframe:u,timeframeTicks:p,compareMode:g,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:y}){const C=O(),S=(L,W)=>{y?.(L,W)},A=()=>{y?.("descending","totals")};return t.jsxs(jh,{height:i,bgColor:e,children:[t.jsx(Ch,{bgColor:e,windowSize:C,isSticky:n,children:t.jsx(_h,{plHeight:i,windowSize:C,bgColor:e,children:t.jsx(Bh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A})})}),r?t.jsx(Wh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A}):null,l?t.jsx(Oh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A}):null,t.jsx(Sh,{children:o===!0?t.jsx(Nh,{firstMonthOfFY:h,timeframe:u,sortKey:c,sortOrder:d,timeframeTicks:p,compareMode:g,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:S}):p.map((L,W)=>t.jsx(Mh,{firstMonthOfFY:h,timeframeTick:L,timeframe:u,sortKey:c,sortOrder:d,dataAvailable:f,bookCloseDate:x,onSortOrderChanged:S},W))})]})}const ht=(e,n,i)=>e===i?n==="ascending"?"descending":"ascending":"descending",Fh=a.div`
|
|
2044
2044
|
display: flex;
|
|
2045
2045
|
flex: 1 1 auto;
|
|
2046
2046
|
max-height: 1px;
|
|
2047
2047
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
2048
|
-
`,
|
|
2048
|
+
`,Ph=a.div`
|
|
2049
2049
|
display: flex;
|
|
2050
2050
|
flex: 1 1 auto;
|
|
2051
2051
|
max-height: 1px;
|
|
2052
2052
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
2053
|
-
`;function Ot({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(
|
|
2053
|
+
`;function Ot({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(Fh,{isScrolling:n});case"end_row_separator":return t.jsx(Ph,{isScrolling:n})}}const zh=a.div`
|
|
2054
2054
|
display: flex;
|
|
2055
2055
|
flex: 1 1 auto;
|
|
2056
2056
|
width: fit-content;
|
|
@@ -2088,17 +2088,17 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2088
2088
|
&:hover {
|
|
2089
2089
|
color: inherit;
|
|
2090
2090
|
}
|
|
2091
|
-
`,
|
|
2091
|
+
`,Eh=a.div`
|
|
2092
2092
|
display: flex;
|
|
2093
2093
|
flex-direction: row;
|
|
2094
2094
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2095
|
-
${({isSticky:e})=>e?
|
|
2095
|
+
${({isSticky:e})=>e?F`
|
|
2096
2096
|
position: -webkit-sticky;
|
|
2097
2097
|
position: sticky;
|
|
2098
2098
|
top: ${s.sp0};
|
|
2099
2099
|
left: ${s.sp0};
|
|
2100
2100
|
`:null}
|
|
2101
|
-
`,
|
|
2101
|
+
`,Gh=a.div`
|
|
2102
2102
|
display: flex;
|
|
2103
2103
|
flex-direction: row;
|
|
2104
2104
|
flex-shrink: 2;
|
|
@@ -2120,7 +2120,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2120
2120
|
text-overflow: ellipsis;
|
|
2121
2121
|
text-align: left;
|
|
2122
2122
|
color: ${e=>e.theme.colors.primary};
|
|
2123
|
-
`,Kh=({type:e,balance:n,collapsed:i})=>{const o=i===!0?Rh:co;return t.jsx(Dh,{children:re(e)===!0?t.jsx(o,{children:q(n)}):null})};function Yh({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:c,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:p}){const g=O();return t.jsxs(zh,{"data-testid":m("total-row-root-container",o),height:r,bgColor:n,windowSize:g,children:[t.jsxs(Th,{"data-testid":m("total-row-container",o),onClick:()=>u?.(o),children:[t.jsxs(
|
|
2123
|
+
`,Kh=({type:e,balance:n,collapsed:i})=>{const o=i===!0?Rh:co;return t.jsx(Dh,{children:re(e)===!0?t.jsx(o,{children:q(n)}):null})};function Yh({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:c,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:p}){const g=O();return t.jsxs(zh,{"data-testid":m("total-row-root-container",o),height:r,bgColor:n,windowSize:g,children:[t.jsxs(Th,{"data-testid":m("total-row-container",o),onClick:()=>u?.(o),children:[t.jsxs(Eh,{bgColor:n,windowSize:g,isSticky:i,children:[t.jsx(Gh,{bgColor:n,windowSize:g,children:t.jsx(Hh,{children:l})}),d?t.jsx(Hn,{windowSize:g}):null,h?t.jsx(Hn,{windowSize:g}):null]}),t.jsx(Vh,{children:c.map((f,x)=>t.jsx(Kh,{type:e,balance:f,collapsed:!1},x))})]}),t.jsx(Ot,{isScrolling:p,kind:"vendor_row_separator"})]})}const Uh=a.div`
|
|
2124
2124
|
display: flex;
|
|
2125
2125
|
flex: 1 1 auto;
|
|
2126
2126
|
width: fit-content;
|
|
@@ -2147,7 +2147,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2147
2147
|
display: flex;
|
|
2148
2148
|
flex-direction: row;
|
|
2149
2149
|
justify-content: flex-start;
|
|
2150
|
-
`,Jh=a(
|
|
2150
|
+
`,Jh=a(_)`
|
|
2151
2151
|
user-select: none;
|
|
2152
2152
|
min-width: ${M.balanceWidth};
|
|
2153
2153
|
max-width: ${M.balanceWidth};
|
|
@@ -2163,7 +2163,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2163
2163
|
display: flex;
|
|
2164
2164
|
flex-direction: row;
|
|
2165
2165
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2166
|
-
${({isSticky:e})=>e?
|
|
2166
|
+
${({isSticky:e})=>e?F`
|
|
2167
2167
|
position: -webkit-sticky;
|
|
2168
2168
|
position: sticky;
|
|
2169
2169
|
top: ${s.sp0};
|
|
@@ -2179,7 +2179,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2179
2179
|
width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
2180
2180
|
max-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
2181
2181
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2182
|
-
`,
|
|
2182
|
+
`,ve=a(_)`
|
|
2183
2183
|
user-select: none;
|
|
2184
2184
|
clear: both;
|
|
2185
2185
|
display: inline-block;
|
|
@@ -2234,12 +2234,12 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2234
2234
|
display: block;
|
|
2235
2235
|
}
|
|
2236
2236
|
}
|
|
2237
|
-
`,au=a(
|
|
2237
|
+
`,au=a(_)`
|
|
2238
2238
|
color: ${e=>e.theme.colors.hero};
|
|
2239
|
-
`,lu=a(
|
|
2239
|
+
`,lu=a(_)`
|
|
2240
2240
|
color: ${e=>e.theme.colors.hero};
|
|
2241
2241
|
display: none;
|
|
2242
|
-
`,cu=({balance:e,vendor:n,onVendorNameAndBalanceClick:i})=>{const o=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",r=e?.type==="period_total",l=e?.type==="default_with_null_balance",c=o!==!0&&r===!1&&l===!1&&!ri(n.id);return t.jsx(Zh,{children:t.jsx(Jh,{isClickable:c,onClick:()=>{c===!0&&i(n,e??void 0)},children:q(e)})})};function su({type:e,backgroundColor:n,isSticky:i,height:o,isScrolling:r,isLastNode:l,vendor:c,balances:d,accountBase:h,classBase:u,isAccountColumnShown:p,isClassColumnShown:g,onVendorNameAndBalanceClick:f}){const x=O(),b=Zn(),y=b.loggedInUserRole!=null&&!oi(b.loggedInUserRole),C=ri(c.id),S=y===!0&&c!=null&&!C,A=S?"pointer":"default",L=c.name;return t.jsxs(Uh,{"data-testid":m("vendor-row-root-container",c.id),height:o,bgColor:n,windowSize:x,children:[t.jsxs(qh,{"data-testid":m("vendor-row-container",c.id),style:{cursor:A},isClickable:S,children:[t.jsx(Xh,{"data-testid":m("vendor-row-sticky-container",c.id),isSticky:i,windowSize:x,bgColor:n,children:t.jsxs(eu,{"data-testid":m("vendor-row-name-container",c.id),windowSize:x,bgColor:n,children:[t.jsxs(Xe,{controller:!C,children:[c.logo!=null?t.jsx(
|
|
2242
|
+
`,cu=({balance:e,vendor:n,onVendorNameAndBalanceClick:i})=>{const o=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",r=e?.type==="period_total",l=e?.type==="default_with_null_balance",c=o!==!0&&r===!1&&l===!1&&!ri(n.id);return t.jsx(Zh,{children:t.jsx(Jh,{isClickable:c,onClick:()=>{c===!0&&i(n,e??void 0)},children:q(e)})})};function su({type:e,backgroundColor:n,isSticky:i,height:o,isScrolling:r,isLastNode:l,vendor:c,balances:d,accountBase:h,classBase:u,isAccountColumnShown:p,isClassColumnShown:g,onVendorNameAndBalanceClick:f}){const x=O(),b=Zn(),y=b.loggedInUserRole!=null&&!oi(b.loggedInUserRole),C=ri(c.id),S=y===!0&&c!=null&&!C,A=S?"pointer":"default",L=c.name;return t.jsxs(Uh,{"data-testid":m("vendor-row-root-container",c.id),height:o,bgColor:n,windowSize:x,children:[t.jsxs(qh,{"data-testid":m("vendor-row-container",c.id),style:{cursor:A},isClickable:S,children:[t.jsx(Xh,{"data-testid":m("vendor-row-sticky-container",c.id),isSticky:i,windowSize:x,bgColor:n,children:t.jsxs(eu,{"data-testid":m("vendor-row-name-container",c.id),windowSize:x,bgColor:n,children:[t.jsxs(Xe,{controller:!C,children:[c.logo!=null?t.jsx(Pt,{photoUrl:c.logo.toString(),styles:{width:M.nameLogoWidth.valuePx(x),height:M.nameLogoHeight.valuePx(x)}}):t.jsx(zt,{name:L,size:s.sp4}),t.jsx(ve,{"data-testid":m("vendor-row-name",c.id),style:{cursor:A},isClickable:S,onClick:()=>{S===!0&&f(c)},children:L})]}),t.jsx(Xe,{controller:C,children:t.jsxs(ru,{children:[t.jsx(iu,{children:t.jsx(ou,{})}),t.jsx(au,{className:"hyphen-text",children:B.getLocalizedStrings().common.strings.hyphen}),t.jsx(lu,{className:"not-specified-text",children:L})]})})]})}),p?t.jsx(tu,{windowSize:x,bgColor:n,children:h!=null?t.jsx(ve,{"data-testid":m("vendor-row-account-name",c.id),title:h.accountName,isClickable:!1,children:h.accountName}):t.jsx(ve,{isClickable:!1,"data-testid":m("vendor-row-account-name",c.id),children:B.getLocalizedStrings().common.strings.hyphen})}):null,g?t.jsx(nu,{windowSize:x,bgColor:n,children:u!=null?t.jsx(ve,{"data-testid":m("vendor-row-class-name",c.id),title:u.className,isClickable:!1,children:u.className}):t.jsx(ve,{"data-testid":m("vendor-row-class-name",c.id),isClickable:!1,children:B.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(Qh,{children:d.map((W,P)=>t.jsx(cu,{type:e,balance:W,vendor:c,onVendorNameAndBalanceClick:f},P))})]}),t.jsx(du,{isScrolling:r,isLastNode:l})]})}function du({isScrolling:e,isLastNode:n}){return n?t.jsx(Ot,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Ot,{isScrolling:e,kind:"vendor_row_separator"})}const hu=(e,n,i,o,r,l)=>{if(e.element.kind!=="timeframe_headers")return null;const c=Pe(e.element.data,e.config.displayOrder),d=c.length>0?c[0].balanceTimeFrame:"month",h=c.map(u=>Ie(u));return t.jsx(Ih,{backgroundColor:r,isSticky:i,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:e.config.mode==="this_period_vs_period_before"&&h.length>1,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:d,timeframeTicks:h,sortKey:e.config.opexByVendorConfig?.sortKey,sortOrder:e.config.opexByVendorConfig?.sortOrder,dataAvailable:e.config.dataAvailable,bookCloseDate:e.config.bookCloseDate,compareMode:o,onCompareModeChanged:l,onSortOrderChanged:e.config.opexByVendorConfig?.onSortOrderChanged})},uu=(e,n,i,o,r,l,c)=>{const d=i.element.data,h=i.config.mode==="this_period_vs_period_before",u=h?i.element.numOfBalances+2:i.element.numOfBalances+1,p=zi(d,i.config.displayOrder,u,h);return t.jsx(Yh,{type:n,backgroundColor:c,isSticky:r,treeNodeId:e,height:o,isScrolling:l,totalBalances:p.balances,title:i.element.title,isAccountColumnShown:i.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:i.config.opexByVendorConfig?.isClassColumnShown??!0})},gu=(e,n,i,o,r,l,c)=>{if(n.element.kind!="vendor_row"||n.element.data==null)return null;const d=n.element.data,h=n.config.mode==="this_period_vs_period_before",u=zi(d,n.config.displayOrder,n.element.numOfBalances,h);return t.jsx(su,{type:e,backgroundColor:o,isSticky:r,height:i,isScrolling:l,vendor:d.vendor,accountBase:d.account,classBase:d.classBase,isLastNode:c,balances:u.balances,isAccountColumnShown:n.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:n.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:(p,g)=>{n.config.opexByVendorConfig?.onVendorNameAndBalanceClicked(p,g)}})},pu=(e,n,i,o)=>{if(e.element.kind!=="loading_in_progress")return null;const r=Pe(e.element.data,e.config.displayOrder).map(l=>Ie(l));return t.jsx(sh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})},fu=(e,n,i,o)=>{if(e.element.kind!=="title_string_only")return null;const r=Pe(e.element.data,e.config.displayOrder).map(l=>Ie(l));return t.jsx(fh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})};function sn(e,n,i){return xu(n,i,e)}const xu=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.account.balancesInTimeframe,o.compactedAccountsSelector=r=>Kn(r.accounts,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>Kn(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r,o.compactedAccountGroupsSelector=r=>mu(r,o.acGroupBalanceSelector,i,n),o};function Kn(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>wu((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[]))||so((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[])));case"filter_forecast_nil_balances":return e.filter(o=>Yn(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Yn(n(o)?.balances??[]))}}function mu(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>so(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>yu(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>bu(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function so(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function wu(e){let n=!1;if(e!=null){for(const i of e)if(i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function yu(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function bu(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function Yn(e){let n=!1;if(e!=null){for(const i of e)if(i.totalForecast!=null&&i.totalForecast.amount!==0||i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function ho(e,n,i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=ku([],i)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:c}}function ku(e,n){return e.length>0?e:Qn(Array(n),null)}const ju=a.div`
|
|
2243
2243
|
display: flex;
|
|
2244
2244
|
flex: 1 1 auto;
|
|
2245
2245
|
width: fit-content;
|
|
@@ -2262,18 +2262,18 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2262
2262
|
flex: 1 0 auto;
|
|
2263
2263
|
flex-direction: row;
|
|
2264
2264
|
justify-content: flex-end;
|
|
2265
|
-
`,
|
|
2265
|
+
`,_u=a.div`
|
|
2266
2266
|
display: flex;
|
|
2267
2267
|
flex-direction: row;
|
|
2268
2268
|
justify-content: flex-start;
|
|
2269
|
-
`,uo=a(
|
|
2269
|
+
`,uo=a(_)`
|
|
2270
2270
|
user-select: none;
|
|
2271
2271
|
min-width: ${k.balanceWidth};
|
|
2272
2272
|
max-width: ${k.balanceWidth};
|
|
2273
2273
|
text-align: right;
|
|
2274
2274
|
margin-left: ${k.balanceLeftMargin};
|
|
2275
2275
|
color: ${e=>e.theme.colors.primary};
|
|
2276
|
-
`,
|
|
2276
|
+
`,vu=a(uo)`
|
|
2277
2277
|
color: ${e=>e.theme.colors.hero};
|
|
2278
2278
|
&:hover {
|
|
2279
2279
|
color: inherit;
|
|
@@ -2287,13 +2287,13 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2287
2287
|
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2288
2288
|
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2289
2289
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2290
|
-
${({isSticky:e})=>e?
|
|
2290
|
+
${({isSticky:e})=>e?F`
|
|
2291
2291
|
position: -webkit-sticky;
|
|
2292
2292
|
position: sticky;
|
|
2293
2293
|
top: ${s.sp0};
|
|
2294
2294
|
left: ${s.sp0};
|
|
2295
2295
|
`:null}
|
|
2296
|
-
`,go=a(
|
|
2296
|
+
`,go=a(_)`
|
|
2297
2297
|
user-select: none;
|
|
2298
2298
|
clear: both;
|
|
2299
2299
|
display: inline-block;
|
|
@@ -2308,7 +2308,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2308
2308
|
&:hover {
|
|
2309
2309
|
color: inherit;
|
|
2310
2310
|
}
|
|
2311
|
-
`,Au=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?
|
|
2311
|
+
`,Au=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?vu:uo;return t.jsxs(_u,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Z(n)}),t.jsx(l,{children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Bu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:x,onClick:b}){const y=ce(),C=O(),S=!f,A=S?"pointer":"default",L=l==="collapsed",W=l==="hidden",P=W===!0?w[6]:w[4],z=L===!0?Lu:go,K=L===!0?Jn:Xn,G=L===!0?y.colors.hero:y.colors.primary;return t.jsxs(ju,{height:r,bgColor:n,"data-testid":m("pandl-report-account-group-row-root-container",o),children:[t.jsxs(Su,{"data-testid":m("pandl-report-account-group-row-container",o),style:{cursor:A},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs($u,{bgColor:n,isSticky:i,windowSize:C,children:[W===!1?t.jsx(K,{color:G,style:{width:w[3],height:w[3]}}):null,t.jsx(z,{style:{marginLeft:P},children:c})]}):null,fe(e)===!0?t.jsx(Cu,{children:d.map((Y,Q)=>t.jsx(Au,{type:e,accountGroupName:c,balance:Y,isActualVsForecastOn:h,compareMode:u,collapsed:L},Q))}):null]}),t.jsx(Wu,{isScrolling:p,type:e,isLeaf:f,isLastNode:x,isOpen:g})]})}function Wu({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(xe,{isScrolling:e,kind:r})}const Ou=a.div`
|
|
2312
2312
|
display: flex;
|
|
2313
2313
|
flex: 1 1 auto;
|
|
2314
2314
|
width: fit-content;
|
|
@@ -2335,19 +2335,19 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2335
2335
|
display: flex;
|
|
2336
2336
|
flex-direction: row;
|
|
2337
2337
|
justify-content: flex-start;
|
|
2338
|
-
`,po=a(
|
|
2338
|
+
`,po=a(_)`
|
|
2339
2339
|
user-select: none;
|
|
2340
2340
|
min-width: ${k.balanceWidth};
|
|
2341
2341
|
max-width: ${k.balanceWidth};
|
|
2342
2342
|
text-align: right;
|
|
2343
2343
|
margin-left: ${k.balanceLeftMargin};
|
|
2344
2344
|
color: ${e=>e.theme.colors.primary};
|
|
2345
|
-
`,
|
|
2345
|
+
`,Fu=a(po)`
|
|
2346
2346
|
color: ${e=>e.theme.colors.hero};
|
|
2347
2347
|
&:hover {
|
|
2348
2348
|
color: inherit;
|
|
2349
2349
|
}
|
|
2350
|
-
`,
|
|
2350
|
+
`,Pu=a.div`
|
|
2351
2351
|
display: flex;
|
|
2352
2352
|
flex-direction: row;
|
|
2353
2353
|
flex-shrink: 2;
|
|
@@ -2356,13 +2356,13 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2356
2356
|
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2357
2357
|
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2358
2358
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2359
|
-
${({isSticky:e})=>e?
|
|
2359
|
+
${({isSticky:e})=>e?F`
|
|
2360
2360
|
position: -webkit-sticky;
|
|
2361
2361
|
position: sticky;
|
|
2362
2362
|
top: ${s.sp0};
|
|
2363
2363
|
left: ${s.sp0};
|
|
2364
2364
|
`:null}
|
|
2365
|
-
`,fo=a(
|
|
2365
|
+
`,fo=a(_)`
|
|
2366
2366
|
user-select: none;
|
|
2367
2367
|
clear: both;
|
|
2368
2368
|
display: inline-block;
|
|
@@ -2377,7 +2377,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2377
2377
|
&:hover {
|
|
2378
2378
|
color: inherit;
|
|
2379
2379
|
}
|
|
2380
|
-
`,Tu=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?
|
|
2380
|
+
`,Tu=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?Fu:po;return t.jsxs(Iu,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Z(n)}),t.jsx(l,{children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Vu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:x,onClick:b}){const y=O(),C=ce(),S=!f,A=S?"pointer":"default",L=l==="collapsed",W=L===!0?zu:fo,[P,z]=N.useState(!1),K=c.length>0?c.substring(0,1).toUpperCase():"";return t.jsxs(Ou,{"data-testid":m("pandl-account-group-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Mu,{"data-testid":m("pandl-account-group-row-container",o),onMouseOver:()=>z(!0),onMouseLeave:()=>z(!1),style:{cursor:A},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs(Pu,{bgColor:n,isSticky:i,windowSize:y,children:[t.jsx(ye,{showCollapsedIcon:L,showIcon:P&&S,firstLetter:K,color:$(C.colors.primary)}),t.jsx(W,{children:c})]}):null,fe(e)===!0?t.jsx(Nu,{children:d.map((G,Y)=>t.jsx(Tu,{type:e,accountGroupName:c,balance:G,isActualVsForecastOn:h,compareMode:u,collapsed:L},Y))}):null]}),t.jsx(Du,{isScrolling:p,type:e,isLeaf:f,isLastNode:x,isOpen:g})]})}function Du({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(xe,{isScrolling:e,kind:r})}const Ru=a.div`
|
|
2381
2381
|
display: flex;
|
|
2382
2382
|
flex: 1 1 auto;
|
|
2383
2383
|
width: fit-content;
|
|
@@ -2385,14 +2385,14 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2385
2385
|
flex-direction: column;
|
|
2386
2386
|
height: ${e=>e.height}px;
|
|
2387
2387
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2388
|
-
`,
|
|
2388
|
+
`,Eu=a.div`
|
|
2389
2389
|
user-select: none;
|
|
2390
2390
|
display: flex;
|
|
2391
2391
|
flex: 1 1 auto;
|
|
2392
2392
|
flex-flow: row;
|
|
2393
2393
|
justify-content: flex-start;
|
|
2394
2394
|
align-items: center;
|
|
2395
|
-
`,
|
|
2395
|
+
`,Gu=a.div`
|
|
2396
2396
|
display: flex;
|
|
2397
2397
|
flex: 1 0 auto;
|
|
2398
2398
|
flex-direction: row;
|
|
@@ -2401,7 +2401,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2401
2401
|
display: flex;
|
|
2402
2402
|
flex-direction: row;
|
|
2403
2403
|
justify-content: flex-start;
|
|
2404
|
-
`,Ue=a(
|
|
2404
|
+
`,Ue=a(_)`
|
|
2405
2405
|
user-select: none;
|
|
2406
2406
|
min-width: ${k.balanceWidth};
|
|
2407
2407
|
max-width: ${k.balanceWidth};
|
|
@@ -2421,13 +2421,13 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2421
2421
|
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2422
2422
|
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2423
2423
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2424
|
-
${({isSticky:e})=>e?
|
|
2424
|
+
${({isSticky:e})=>e?F`
|
|
2425
2425
|
position: -webkit-sticky;
|
|
2426
2426
|
position: sticky;
|
|
2427
2427
|
top: ${s.sp0};
|
|
2428
2428
|
left: ${s.sp0};
|
|
2429
2429
|
`:null}
|
|
2430
|
-
`,Yu=a(
|
|
2430
|
+
`,Yu=a(_)`
|
|
2431
2431
|
user-select: none;
|
|
2432
2432
|
clear: both;
|
|
2433
2433
|
display: inline-block;
|
|
@@ -2441,7 +2441,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2441
2441
|
&:hover {
|
|
2442
2442
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2443
2443
|
}
|
|
2444
|
-
`,Uu=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,onAccountBalanceClick:l})=>{const c=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",d=r!=null&&n!=null&&l!=null&&c!==!0;return t.jsxs(Hu,{"data-testid":m("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Ue,{"data-testid":m("account-row-balance-actual",e),isClickable:d,onClick:()=>{d===!0&&r!=null&&n!=null&&l?.(r,n)},children:q(n)}):t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:Z(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{isClickable:!1,"data-testid":m("account-row-balance-forecast",e),children:Z(n)}),t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function qu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isActualVsForecastOn:c,compareMode:d,isScrolling:h,isLeaf:u,isLastNode:p,account:g,onAccountBalanceClick:f}){const x=O(),{common:{strings:{hyphen:b}}}=B.getLocalizedStrings(),y=g?.accountDescription?g.accountDescription:b,C=g?.accountName?g.accountName:y;return t.jsxs(Ru,{height:r,bgColor:n,"data-testid":m("account-row-root-container",o),children:[t.jsxs(
|
|
2444
|
+
`,Uu=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,onAccountBalanceClick:l})=>{const c=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",d=r!=null&&n!=null&&l!=null&&c!==!0;return t.jsxs(Hu,{"data-testid":m("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Ue,{"data-testid":m("account-row-balance-actual",e),isClickable:d,onClick:()=>{d===!0&&r!=null&&n!=null&&l?.(r,n)},children:q(n)}):t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:Z(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{isClickable:!1,"data-testid":m("account-row-balance-forecast",e),children:Z(n)}),t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function qu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isActualVsForecastOn:c,compareMode:d,isScrolling:h,isLeaf:u,isLastNode:p,account:g,onAccountBalanceClick:f}){const x=O(),{common:{strings:{hyphen:b}}}=B.getLocalizedStrings(),y=g?.accountDescription?g.accountDescription:b,C=g?.accountName?g.accountName:y;return t.jsxs(Ru,{height:r,bgColor:n,"data-testid":m("account-row-root-container",o),children:[t.jsxs(Eu,{"data-testid":m("account-row-container",o),children:[ge(e)===!0?t.jsx(Ku,{isSticky:i,windowSize:x,bgColor:n,children:t.jsx(Yu,{isClickable:!1,title:C,children:C})}):null,fe(e)===!0?t.jsx(Gu,{children:l.map((S,A)=>t.jsx(Uu,{type:e,isActualVsForecastOn:c,compareMode:d,balance:S,account:g,onAccountBalanceClick:f==null?void 0:(L,W)=>{f(o,L,W)}},A))}):null]}),t.jsx(Qu,{isScrolling:h,type:e,isLeaf:u,isLastNode:p})]})}function Qu({isScrolling:e,isLastNode:n,type:i}){const o=n?"ac_group_row_separator":ge(i)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(xe,{isScrolling:e,kind:o})}const Zu=a.div`
|
|
2445
2445
|
display: flex;
|
|
2446
2446
|
flex: 1 1 auto;
|
|
2447
2447
|
width: fit-content;
|
|
@@ -2465,7 +2465,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2465
2465
|
display: flex;
|
|
2466
2466
|
flex-direction: row;
|
|
2467
2467
|
justify-content: flex-start;
|
|
2468
|
-
`,qe=a(
|
|
2468
|
+
`,qe=a(_)`
|
|
2469
2469
|
user-select: none;
|
|
2470
2470
|
max-width: ${k.balanceWidth};
|
|
2471
2471
|
min-width: ${k.balanceWidth};
|
|
@@ -2480,7 +2480,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2480
2480
|
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2481
2481
|
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2482
2482
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2483
|
-
${({isSticky:e})=>e?
|
|
2483
|
+
${({isSticky:e})=>e?F`
|
|
2484
2484
|
position: -webkit-sticky;
|
|
2485
2485
|
position: sticky;
|
|
2486
2486
|
top: ${s.sp0};
|
|
@@ -2489,7 +2489,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2489
2489
|
`,ng=a.div`
|
|
2490
2490
|
display: flex;
|
|
2491
2491
|
flex-grow: 8;
|
|
2492
|
-
`,ig=a(
|
|
2492
|
+
`,ig=a(_)`
|
|
2493
2493
|
user-select: none;
|
|
2494
2494
|
user-select: none;
|
|
2495
2495
|
clear: both;
|
|
@@ -2510,7 +2510,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2510
2510
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
2511
2511
|
border-radius: ${s.sp1};
|
|
2512
2512
|
margin: 0 ${s.sp5} 0 ${s.sp3};
|
|
2513
|
-
`,rg=({metadata:e,depth:n})=>n===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(No,{}):t.jsx(Io,{}),ag=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(eg,{children:[re(e)===!0||o?t.jsx(qe,{style:{color:i},children:q(n)}):t.jsx(qe,{style:{color:i},children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(qe,{style:{color:i},children:Z(n)}),t.jsx(qe,{style:{color:i},children:r==="compare_mode_percent"?se(n):de(n)})]}):null]});function lg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,className:l,classCode:c,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:p,isScrolling:g,isOpen:f,isLeaf:x,metadata:b,showClassAccountNumber:y,onClick:C,depth:S}){const A=O(),L=ce(),W=!x,
|
|
2513
|
+
`,rg=({metadata:e,depth:n})=>n===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(No,{}):t.jsx(Io,{}),ag=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(eg,{children:[re(e)===!0||o?t.jsx(qe,{style:{color:i},children:q(n)}):t.jsx(qe,{style:{color:i},children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(qe,{style:{color:i},children:Z(n)}),t.jsx(qe,{style:{color:i},children:r==="compare_mode_percent"?se(n):de(n)})]}):null]});function lg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,className:l,classCode:c,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:p,isScrolling:g,isOpen:f,isLeaf:x,metadata:b,showClassAccountNumber:y,onClick:C,depth:S}){const A=O(),L=ce(),W=!x,P=W?"pointer":"default",z=L.colors.primary,K=l.length>0?l.substr(0,1).toUpperCase():"",[G,Y]=N.useState(!1),Q=b.classAncestorMetadata??[];return t.jsxs(Zu,{"data-testid":m("class-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Ju,{"data-testid":m("class-row-container",o),style:{cursor:P},onClick:()=>C?.(o),onMouseOver:()=>Y(!0),onMouseLeave:()=>Y(!1),children:[ge(e)===!0?t.jsxs(tg,{isSticky:i,windowSize:A,bgColor:n,children:[t.jsx(oa,{name:l,ancestorMetadata:Q,depth:S}),t.jsx(rg,{metadata:Q[S],depth:S}),t.jsx(ye,{color:$(z),showCollapsedIcon:!f,showIcon:G&&W,firstLetter:K,showTreeLine:p}),t.jsx(ng,{children:t.jsx(ig,{style:{color:z},children:l})}),G===!0&&y===!0&&c!==void 0&&t.jsx(og,{children:c})]}):null,fe(e)===!0?t.jsx(Xu,{children:d.map((he,J)=>t.jsx(ag,{type:e,sectionName:l,balance:he,isActualVsForecastOn:h,compareMode:u,color:z},J))}):null]}),t.jsx(cg,{isScrolling:g,isLeaf:x,isOpen:f})]})}function cg({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(xe,{isScrolling:e,kind:"section_row_separator"}):null}const sg=a.div`
|
|
2514
2514
|
display: flex;
|
|
2515
2515
|
flex: 1 1 auto;
|
|
2516
2516
|
width: fit-content;
|
|
@@ -2534,7 +2534,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2534
2534
|
display: flex;
|
|
2535
2535
|
flex-direction: row;
|
|
2536
2536
|
justify-content: flex-start;
|
|
2537
|
-
`,Qe=a(
|
|
2537
|
+
`,Qe=a(_)`
|
|
2538
2538
|
user-select: none;
|
|
2539
2539
|
max-width: ${k.balanceWidth};
|
|
2540
2540
|
min-width: ${k.balanceWidth};
|
|
@@ -2549,13 +2549,13 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2549
2549
|
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2550
2550
|
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2551
2551
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2552
|
-
${({isSticky:e})=>e?
|
|
2552
|
+
${({isSticky:e})=>e?F`
|
|
2553
2553
|
position: -webkit-sticky;
|
|
2554
2554
|
position: sticky;
|
|
2555
2555
|
top: ${s.sp0};
|
|
2556
2556
|
left: ${s.sp0};
|
|
2557
2557
|
`:null}
|
|
2558
|
-
`,pg=a(
|
|
2558
|
+
`,pg=a(_)`
|
|
2559
2559
|
user-select: none;
|
|
2560
2560
|
user-select: none;
|
|
2561
2561
|
clear: both;
|
|
@@ -2565,7 +2565,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2565
2565
|
text-overflow: ellipsis;
|
|
2566
2566
|
text-align: left;
|
|
2567
2567
|
margin-left: ${s.sp2};
|
|
2568
|
-
`,fg=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(ug,{children:[re(e)===!0||o?t.jsx(Qe,{style:{color:i},children:q(n)}):t.jsx(Qe,{style:{color:i},children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{style:{color:i},children:Z(n)}),t.jsx(Qe,{style:{color:i},children:r==="compare_mode_percent"?se(n):de(n)})]}):null]});function dn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:c,isActualVsForecastOn:d,compareMode:h,sectionColor:u,isScrolling:p,isOpen:g,isLeaf:f,onClick:x}){const b=O(),y=!f,C=y?"pointer":"default",S=l.length>0?l.substring(0,1).toUpperCase():"",[A,L]=N.useState(!1);return t.jsxs(sg,{"data-testid":m("section-row",o),height:r,bgColor:n,children:[t.jsxs(dg,{"data-testid":m("section-row-container",o),style:{cursor:C},onClick:()=>x?.(o),onMouseOver:()=>L(!0),onMouseLeave:()=>L(!1),children:[ge(e)===!0?t.jsxs(gg,{isSticky:i,windowSize:b,bgColor:n,children:[t.jsx(ye,{color:$(u),showCollapsedIcon:!g,showIcon:A&&y,firstLetter:S}),t.jsx(pg,{style:{color:u},children:l})," "]}):null,fe(e)===!0?t.jsx(hg,{children:c.map((W,
|
|
2568
|
+
`,fg=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(ug,{children:[re(e)===!0||o?t.jsx(Qe,{style:{color:i},children:q(n)}):t.jsx(Qe,{style:{color:i},children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{style:{color:i},children:Z(n)}),t.jsx(Qe,{style:{color:i},children:r==="compare_mode_percent"?se(n):de(n)})]}):null]});function dn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:c,isActualVsForecastOn:d,compareMode:h,sectionColor:u,isScrolling:p,isOpen:g,isLeaf:f,onClick:x}){const b=O(),y=!f,C=y?"pointer":"default",S=l.length>0?l.substring(0,1).toUpperCase():"",[A,L]=N.useState(!1);return t.jsxs(sg,{"data-testid":m("section-row",o),height:r,bgColor:n,children:[t.jsxs(dg,{"data-testid":m("section-row-container",o),style:{cursor:C},onClick:()=>x?.(o),onMouseOver:()=>L(!0),onMouseLeave:()=>L(!1),children:[ge(e)===!0?t.jsxs(gg,{isSticky:i,windowSize:b,bgColor:n,children:[t.jsx(ye,{color:$(u),showCollapsedIcon:!g,showIcon:A&&y,firstLetter:S}),t.jsx(pg,{style:{color:u},children:l})," "]}):null,fe(e)===!0?t.jsx(hg,{children:c.map((W,P)=>t.jsx(fg,{type:e,sectionName:l,balance:W,isActualVsForecastOn:d,compareMode:h,color:u},P))}):null]}),t.jsx(xg,{isScrolling:p,isLeaf:f,isOpen:g})]})}function xg({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(xe,{isScrolling:e,kind:"section_row_separator"}):null}const mg=a.div`
|
|
2569
2569
|
display: flex;
|
|
2570
2570
|
flex: 1 1 auto;
|
|
2571
2571
|
width: fit-content;
|
|
@@ -2589,7 +2589,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2589
2589
|
display: flex;
|
|
2590
2590
|
flex-direction: row;
|
|
2591
2591
|
justify-content: flex-start;
|
|
2592
|
-
`,Ze=a(
|
|
2592
|
+
`,Ze=a(_)`
|
|
2593
2593
|
user-select: none;
|
|
2594
2594
|
min-width: ${k.balanceWidth};
|
|
2595
2595
|
max-width: ${k.balanceWidth};
|
|
@@ -2617,18 +2617,18 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2617
2617
|
&:hover {
|
|
2618
2618
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2619
2619
|
}
|
|
2620
|
-
${({isSticky:e})=>e?
|
|
2620
|
+
${({isSticky:e})=>e?F`
|
|
2621
2621
|
position: -webkit-sticky;
|
|
2622
2622
|
position: sticky;
|
|
2623
2623
|
top: ${s.sp0};
|
|
2624
2624
|
left: ${s.sp0};
|
|
2625
2625
|
`:null}
|
|
2626
|
-
`,jg=a(
|
|
2626
|
+
`,jg=a(_)`
|
|
2627
2627
|
user-select: none;
|
|
2628
2628
|
clear: both;
|
|
2629
2629
|
display: inline-block;
|
|
2630
2630
|
text-align: left;
|
|
2631
|
-
`,Sg=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,showTotal:l,onAccountBalanceClick:c})=>{const d=n!=null?Yo(n?.type):!1,h=r!=null&&n!=null&&c!=null&&d!==!0,u=l===!0?li(n):q(n),p=l===!0?jt(n):Z(n),g=l===!0?ci(n):se(n),f=l===!0?si(n):de(n);return t.jsxs(bg,{"data-testid":m("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Ze,{"data-testid":m("account-row-balance-actual",e),isClickable:h,onClick:x=>{x.stopPropagation(),h===!0&&r!=null&&n!=null&&c?.(r,n)},children:u}):t.jsx(Ze,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ze,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),t.jsx(Ze,{"data-testid":m("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?g:f})]}):null]})};function Cg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,classDepth:l,accountBalances:c,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:p,noMarginForAccount:g,isLeaf:f,isOpen:x,isLastNode:b,account:y,onAccountBalanceClick:C,onClick:S}){const A=O(),L=y!=null?y.id.length-1:0,W=y?.hasSiblings??!1,
|
|
2631
|
+
`,Sg=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,showTotal:l,onAccountBalanceClick:c})=>{const d=n!=null?Yo(n?.type):!1,h=r!=null&&n!=null&&c!=null&&d!==!0,u=l===!0?li(n):q(n),p=l===!0?jt(n):Z(n),g=l===!0?ci(n):se(n),f=l===!0?si(n):de(n);return t.jsxs(bg,{"data-testid":m("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Ze,{"data-testid":m("account-row-balance-actual",e),isClickable:h,onClick:x=>{x.stopPropagation(),h===!0&&r!=null&&n!=null&&c?.(r,n)},children:u}):t.jsx(Ze,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ze,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),t.jsx(Ze,{"data-testid":m("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?g:f})]}):null]})};function Cg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,classDepth:l,accountBalances:c,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:p,noMarginForAccount:g,isLeaf:f,isOpen:x,isLastNode:b,account:y,onAccountBalanceClick:C,onClick:S}){const A=O(),L=y!=null?y.id.length-1:0,W=y?.hasSiblings??!1,P=y!=null?y.children.length!==0:!1,z=u,{common:{strings:{empty:K}}}=B.getLocalizedStrings(),G=y?.account.accountDescription?y.account.accountDescription:K,Y=y?.account.accountName?y.account.accountName:G;return t.jsxs(mg,{"data-testid":m("sub-account-row",o),height:r,bgColor:n,children:[t.jsxs(wg,{"data-testid":m("sub-account-row-container",o),onClick:()=>S?.(o),children:[t.jsx(kg,{isClickable:P,isSticky:i,windowSize:A,bgColor:n,containerHeight:r,children:t.jsx(jg,{title:Y,children:t.jsx(pi,{displayName:Y,depth:L,classDepth:l,isLastNode:b,hasChildren:P,hasSiblings:W,isLeaf:f,collapsed:!x,subAccountAnscestorMetadata:z.subAccountAncestorMetadata,classAnscestorMetadata:z.classAncestorMetadata??[],noMarginForAccount:g})})}),fe(e)===!0?t.jsx(yg,{children:c.map((Q,he)=>t.jsx(Sg,{type:e,isActualVsForecastOn:d,compareMode:h,balance:Q,account:y?.account,showTotal:!x,onAccountBalanceClick:C==null?void 0:(J,ie)=>{C(o,J,ie)}},he))}):null]}),t.jsx(_g,{isScrolling:p,isLeaf:f,isOpen:x,depth:L,isSticky:i,classDepth:l,noMarginForAccount:g})]})}function _g({isScrolling:e,depth:n,isOpen:i,isLeaf:o,isSticky:r,classDepth:l,noMarginForAccount:c}){return!i||o===!0?t.jsx(xe,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:n,isSticky:r,classDepth:l,noMarginForAccount:c}}):null}const vg=[10,14,20,20,20],$g=a.div`
|
|
2632
2632
|
display: flex;
|
|
2633
2633
|
flex: 1 1 auto;
|
|
2634
2634
|
width: fit-content;
|
|
@@ -2655,7 +2655,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2655
2655
|
display: flex;
|
|
2656
2656
|
flex-direction: row;
|
|
2657
2657
|
justify-content: flex-start;
|
|
2658
|
-
`,Je=a(
|
|
2658
|
+
`,Je=a(_)`
|
|
2659
2659
|
user-select: none;
|
|
2660
2660
|
min-width: ${k.balanceWidth};
|
|
2661
2661
|
max-width: ${k.balanceWidth};
|
|
@@ -2673,13 +2673,13 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2673
2673
|
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2674
2674
|
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2675
2675
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2676
|
-
${({isSticky:e})=>e?
|
|
2676
|
+
${({isSticky:e})=>e?F`
|
|
2677
2677
|
position: -webkit-sticky;
|
|
2678
2678
|
position: sticky;
|
|
2679
2679
|
top: ${s.sp0};
|
|
2680
2680
|
left: ${s.sp0};
|
|
2681
2681
|
`:null}
|
|
2682
|
-
`,Mg=a(
|
|
2682
|
+
`,Mg=a(_)`
|
|
2683
2683
|
user-select: none;
|
|
2684
2684
|
clear: both;
|
|
2685
2685
|
display: inline-block;
|
|
@@ -2687,10 +2687,10 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2687
2687
|
white-space: nowrap;
|
|
2688
2688
|
text-overflow: ellipsis;
|
|
2689
2689
|
text-align: left;
|
|
2690
|
-
margin-left: ${e=>
|
|
2690
|
+
margin-left: ${e=>vg[e.depth]}px;
|
|
2691
2691
|
color: ${e=>e.theme.colors.primary};
|
|
2692
2692
|
width: ${e=>k.titleWidth.value(e.windowSize)-e.depth*80}px;
|
|
2693
|
-
`,Ng=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs(Wg,{"data-testid":m("sub-account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Je,{"data-testid":m("sub-account-row-balance-element-actual",e),isClickable:!1,children:li(n)}):t.jsx(Je,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:jt(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Je,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:jt(n)}),t.jsx(Je,{"data-testid":m("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?ci(n):si(n)})]}):null]});function Ig({type:e,backgroundColor:n,isSticky:i,height:o,classDepth:r,accountName:l,accountBalances:c,account:d,noMarginForAccount:h,isActualVsForecastOn:u,compareMode:p,isScrolling:g,metadata:f}){const x=O(),b=B.getLocalizedStrings().reports.sections,y=d!=null?d.id.length-1:0,C=f;return t.jsxs($g,{height:o,bgColor:n,children:[t.jsxs(Lg,{children:[t.jsxs(Og,{isSticky:i,windowSize:x,bgColor:n,containerHeight:o,children:[r!=null?t.jsx(ui,{ancestorMetadata:C.classAncestorMetadata??[],depth:r,name:l}):h===!1?t.jsx(Ag,{windowSize:x}):null,t.jsx(gi,{ancestorMetadata:C.subAccountAncestorMetadata,depth:y,name:l}),t.jsx(Mg,{"data-testid":m("sub-account-row-name",e),isClickable:!1,title:l,depth:y,windowSize:x,children:b.totalPrefix+" "+l})]}),fe(e)===!0?t.jsx(Bg,{children:c.map((S,A)=>t.jsx(Ng,{type:e,isActualVsForecastOn:u,compareMode:p,balance:S},A))}):null]}),t.jsx(
|
|
2693
|
+
`,Ng=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs(Wg,{"data-testid":m("sub-account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Je,{"data-testid":m("sub-account-row-balance-element-actual",e),isClickable:!1,children:li(n)}):t.jsx(Je,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:jt(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Je,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:jt(n)}),t.jsx(Je,{"data-testid":m("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?ci(n):si(n)})]}):null]});function Ig({type:e,backgroundColor:n,isSticky:i,height:o,classDepth:r,accountName:l,accountBalances:c,account:d,noMarginForAccount:h,isActualVsForecastOn:u,compareMode:p,isScrolling:g,metadata:f}){const x=O(),b=B.getLocalizedStrings().reports.sections,y=d!=null?d.id.length-1:0,C=f;return t.jsxs($g,{height:o,bgColor:n,children:[t.jsxs(Lg,{children:[t.jsxs(Og,{isSticky:i,windowSize:x,bgColor:n,containerHeight:o,children:[r!=null?t.jsx(ui,{ancestorMetadata:C.classAncestorMetadata??[],depth:r,name:l}):h===!1?t.jsx(Ag,{windowSize:x}):null,t.jsx(gi,{ancestorMetadata:C.subAccountAncestorMetadata,depth:y,name:l}),t.jsx(Mg,{"data-testid":m("sub-account-row-name",e),isClickable:!1,title:l,depth:y,windowSize:x,children:b.totalPrefix+" "+l})]}),fe(e)===!0?t.jsx(Bg,{children:c.map((S,A)=>t.jsx(Ng,{type:e,isActualVsForecastOn:u,compareMode:p,balance:S},A))}):null]}),t.jsx(Fg,{isScrolling:g,nestingLevel:y,isSticky:i,classDepth:r,noMarginForAccount:h})]})}function Fg({isScrolling:e,nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}){return t.jsx(xe,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}})}const Pg=a.div`
|
|
2694
2694
|
user-select: none;
|
|
2695
2695
|
display: flex;
|
|
2696
2696
|
flex: 1 1 auto;
|
|
@@ -2718,7 +2718,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2718
2718
|
border-radius: ${s.sp2};
|
|
2719
2719
|
margin-left: ${e=>e.isActualVsForecastOn?w[0]:k.balanceLeftMarginInPx}px;
|
|
2720
2720
|
color: ${e=>e.theme.colors.primary};
|
|
2721
|
-
`,mo=a(
|
|
2721
|
+
`,mo=a(_)`
|
|
2722
2722
|
display: flex;
|
|
2723
2723
|
user-select: none;
|
|
2724
2724
|
flex-direction: row;
|
|
@@ -2737,7 +2737,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2737
2737
|
color: ${e=>e.theme.colors.grey5};
|
|
2738
2738
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2739
2739
|
border: 1px solid ${e=>e.bgColor?.hex()};
|
|
2740
|
-
${({isSticky:e})=>e?
|
|
2740
|
+
${({isSticky:e})=>e?F`
|
|
2741
2741
|
position: -webkit-sticky;
|
|
2742
2742
|
position: sticky;
|
|
2743
2743
|
top: ${s.sp0};
|
|
@@ -2750,7 +2750,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2750
2750
|
flex-direction: row;
|
|
2751
2751
|
justify-content: flex-start;
|
|
2752
2752
|
color: ${e=>e.theme.colors.champion};
|
|
2753
|
-
`,kt=a(
|
|
2753
|
+
`,kt=a(_)`
|
|
2754
2754
|
display: flex;
|
|
2755
2755
|
justify-content: flex-end;
|
|
2756
2756
|
align-items: center;
|
|
@@ -2766,7 +2766,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2766
2766
|
justify-content: center;
|
|
2767
2767
|
align-items: center;
|
|
2768
2768
|
color: ${e=>e.theme.colors.champion};
|
|
2769
|
-
`,Rg=a.div``,
|
|
2769
|
+
`,Rg=a.div``,Eg=a(_)`
|
|
2770
2770
|
display: flex;
|
|
2771
2771
|
justify-content: center;
|
|
2772
2772
|
align-items: center;
|
|
@@ -2779,7 +2779,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2779
2779
|
color: ${e=>e.theme.colors.primary};
|
|
2780
2780
|
width: ${k.balanceWidth};
|
|
2781
2781
|
min-width: ${k.balanceWidth};
|
|
2782
|
-
`,
|
|
2782
|
+
`,Gg=a.div`
|
|
2783
2783
|
display: flex;
|
|
2784
2784
|
width: ${e=>e.isActualVsForecastOn?3*Oe:Oe}px;
|
|
2785
2785
|
flex-direction: column;
|
|
@@ -2787,7 +2787,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2787
2787
|
`,Hg=a.div`
|
|
2788
2788
|
max-height: 54px;
|
|
2789
2789
|
min-height: 54px;
|
|
2790
|
-
`,wo=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=B.getLocalizedStrings().reports,c=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?ai(i,e,n,r,o):void 0,d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=to(c,i);return t.jsx(Hg,{children:r!=null&&o!=null&&c!=null&&d!=null&&h!=null?t.jsx(eo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:c}):t.jsx(xo,{isActualVsForecastOn:!1,children:t.jsx(mo,{children:Pe(e,n,i)})})})},Kg=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:c,onCompareModeChanged:d})=>{const h=B.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(Eg,{isActualVsForecastOn:o,children:[t.jsx(xo,{isActualVsForecastOn:o,children:t.jsx(mo,{children:Pe(e,n,i)})}),t.jsxs(Vg,{isActualVsForecastOn:o,children:[t.jsx(kt,{children:h.actual}),t.jsx(kt,{children:h.forecast}),t.jsx(kt,{children:t.jsx(an,{title:u,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:p=>{p!=="off"?d?.(p):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(wo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:c})},Yg=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:c})=>{const d=ce(),h=o==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return t.jsx(Dg,{children:n.map((u,p)=>t.jsx(N.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(Gg,{children:t.jsx(an,{title:h,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:g=>{g!=="off"&&(g==="compare_mode_amount"||g==="compare_mode_percent"?c?.(g):console.warn("Invalid compare mode option"))}})}):t.jsx(Rg,{children:t.jsx(wo,{firstMonthOfFY:e,timeframeTick:u,timeframe:i,dataAvailable:r,bookCloseDate:l},p)})},p))})};function Ug({type:e,backgroundColor:n,isSticky:i,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}){const x=O();return t.jsxs(Fg,{height:o,bgColor:n,children:[ge(e)===!0?t.jsx(Tg,{isSticky:i,windowSize:x,bgColor:n,children:" . "}):null,t.jsx(zg,{children:l===!0?t.jsx(Yg,{firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}):h.map((b,y)=>t.jsx(Kg,{firstMonthOfFY:c,timeframeTick:b,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f},y))})]})}const ut=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Ne(i.config.reportId)===!0||ii(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),x=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(qu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:x.balances,isScrolling:c,isLeaf:d,isLastNode:h,account:g,onAccountBalanceClick:p==null?void 0:(b,y,C)=>{p?.(b,y,C)}})},ze=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_subaccount"||i.element.data==null)return null;const f=i.element.data,x=sn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ho(x.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,C=i.config.reportId==="operating_expenses";return t.jsx(Cg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",classDepth:y,compareMode:p,accountBalances:b.balances,isScrolling:c,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:i.element.metadata,onClick:g,noMarginForAccount:C,onAccountBalanceClick:g==null?void 0:(S,A,L)=>{g?.(S,A,L)}})},gt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,x=ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Bu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},hn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_subaccount"||i.element.data==null)return null;const f=i.element.data,x=sn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Vu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},un=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=Nt(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},pt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=Nt(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},gn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=Nt(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Te=(e,n,i,o,r,l,c,d,h)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,p=sn("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),g=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=ho(p.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),x=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(Ig,{type:e,backgroundColor:o,isSticky:r,height:i,accountName:u.account.accountName,account:u,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:x,isLeaf:c,isLastNode:d,metadata:n.element.metadata,classDepth:g})},Ve=(e,n,i,o,r,l,c,d)=>{if(i.element.kind!=="timeframe_headers"&&i.element.kind!=="timeframe_headers_with_forecast")return null;const h=Fe(i.element.data,i.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",p=h.map(g=>Ie(g));return t.jsx(Ug,{treeNodeId:e,backgroundColor:r,isSticky:l,type:n,height:o,isActualVsForecastOn:i.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:i.config.mode==="this_period_vs_period_before"&&p.length>1,firstMonthOfFY:i.config.firstMonthOfFY,timeframe:u,timeframeTicks:p,compareMode:c,dataAvailable:i.config.dataAvailable,bookCloseDate:i.config.bookCloseDate,onCompareModeChanged:d})},yo=(e,n,i,o,r,l,c,d,h,u,p,g,f)=>{if(i.element.kind!="class"||i.element.data==null)return null;const x=i.element.data,b=ee(x.childrenBalancesTotal,i.config.displayOrder,i.element.numOfBalances),y=p>1;return t.jsx(lg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,className:i.element.title,classCode:i.element.data.class.accountingClassNumber,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",depth:x.id.length-1,compareMode:g,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,hasChildren:x.children.length>0,isLastNode:u,isSubClass:y,showClassAccountNumber:i.config.showClassAccountNumber,onClick:C=>{f?.(C)},metadata:i.element.metadata})},qg=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Qg=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Gi,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),Un=e=>{const{height:n,data:{reportElementData:i,id:o,treeKind:r,isLeaf:l,isLastNode:c,nestingLevel:d,isFirstNode:h},isOpen:u,style:p,setOpen:g,isScrolling:f}=e,x=(C,S,A)=>{const L=l?u:!u;!l&&A==null&&(g(!u),e.onNodeCollapseToggled?.(C,!u)),e.onNodeClick?.(C,L,S,A)},b=e.treeNodePadding?.left,y=e.treeNodePadding?.right;return t.jsx("div",{style:{...p,width:"auto",minWidth:"100%",paddingLeft:b,paddingRight:y},children:t.jsx(bo,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:i,height:n,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:c,isFirstNode:h,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick!=null||!l?x:void 0,compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},o)})},bo=e=>e.treeKind==="name_only"?t.jsx(np,{...e}):Ht(e.reportElementData.config.reportId)?t.jsx(op,{...e}):Yt(e.reportElementData.config.reportId)===!0?t.jsx(ip,{...e}):ii(e.reportElementData.config.reportId)===!0?t.jsx(Zg,{...e}):Gt(e.reportElementData.config.reportId)===!0?t.jsx(Jg,{...e}):Ne(e.reportElementData.config.reportId)===!0?t.jsx(Xg,{...e}):Et(e.reportElementData.config.reportId)===!0?t.jsx(ep,{...e}):Ko(e.reportElementData.config.reportId)===!0?t.jsx(tp,{...e}):Ut(e.reportElementData.config.reportId)===!0?t.jsx(rp,{...e}):Kt(e.reportElementData.config.reportId)===!0?t.jsx(ap,{...e}):null,Zg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return un(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return gn(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,g,x);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,g,f);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,g);case"headers_loading_in_progress":return Qg(i,o,r);case"loading_in_progress":return qg(i,o,r);default:return null}},Jg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return un(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return gn(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return null;case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);default:return null}},Xg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,g,f);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,g,x);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,g,f);case"total":return Ui(e,n,i,o,r,l,g,d);case"headers_loading_in_progress":return Kc(i,o,r);case"loading_in_progress":return Hc(i,o,r);default:return null}},ep=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return Rc(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return Gc(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return Ec(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,p,g);case"total":return Ui(e,n,i,o,r,l,p,d);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);default:return null}},tp=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return un(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":return gn(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section_type1":return Ol(e,i,o,r,l,c,h);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);default:return null}},np=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:p})=>{switch(i.element.kind){case"checkbox_and_name_only":return nh(e,n,i,o,r,l,c,u,d,h,p);default:return null}},ip=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(i.element.kind){case"loading_in_progress":case"spacer_row":return pu(i,o,r,l);case"timeframe_headers":return hu(i,o,l,h,r,u);case"total":return uu(e,n,i,o,l,c,r);case"vendor_row":return gu(n,i,o,r,l,c,d);case"title_string_only":return fu(i,o,r,l);default:return null}},op=({id:e,treeKind:n,reportElementData:i,height:o,isOpen:r,isSticky:l,isScrolling:c,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:p}=i;switch(i.element.kind){case"spacer_row":return null;case"timeframe_headers":return Ha(i,o,h,l,p.agingReportConfig?.sortKey,p.agingReportConfig?.sortOrder,p.agingReportConfig?.onSortOrderChanged);case"total":return Ua(n,i,o,h,l);case"aging_report_row":return Ka(e,i,o,r,l,d,c,h,p.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Ya(i,o,l,c,h);default:return null}},rp=({id:e,reportElementData:n,height:i,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:c,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:p,nodeClickHandler:g,hoveredParentIdProps:f})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return Rd(e,n,o,r,l,c,d,f,p);case"flux_vendor_row":return Gd(e,n,o,r,l,u,c,d,h,f,g);case"section":return Ed(e,n,i,o,r,l,u,c,d,g);case"timeframe_headers":return Hd(n,i,r);case"total":return Kd(n,i);case"loading_in_progress":return Yd(n);case"headers_loading_in_progress":return Ud(n);default:return null}},ap=({reportElementData:e,height:n,isSticky:i,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return Kr(e,i);case"loading_in_progress":return Hr();case"total":return Yr(e,n,i);case"section":return Er();case"title_string_only":return Ur(e,n);case"ac_group_report":return qr(e,n,o);default:return null}};function qn(e,n,i,o){return{data:{defaultHeight:pn(e.reportElementData.config.reportId,e.reportElementData.element.kind,e.isFirstNode),id:e.id,isLeaf:e.children.length===0,isFirstNode:e.isFirstNode??!1,isLastNode:e.isLastNode,isOpenByDefault:o??lp(e.reportElementData.config.reportId,e.reportElementData.element.kind,i,e.reportElementData.config.reportFormat),nestingLevel:i,treeKind:n,reportElementData:e.reportElementData},treeKind:n,nestingLevel:i,node:e}}function pn(e,n,i){return Gt(e)===!0?Qr(n):Et(e)===!0||Ne(e)===!0?ic(n):Ht(e)?ca(n):Kt(e)?it(n):Yt(e)?ih(n):Ut(e)?Qi(n,i):ul(n)}function lp(e,n,i,o){return Gt(e)?Zr(n,o,i):Et(e)||Ne(e)===!0?oc(n,o):Ht(e)?sa():Yt(e)?oh():Ut(e)?os(n):Kt(e)?qo():gl(n,o)}const cp=a.div`
|
|
2790
|
+
`,wo=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=B.getLocalizedStrings().reports,c=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?ai(i,e,n,r,o):void 0,d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=to(c,i);return t.jsx(Hg,{children:r!=null&&o!=null&&c!=null&&d!=null&&h!=null?t.jsx(eo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:c}):t.jsx(xo,{isActualVsForecastOn:!1,children:t.jsx(mo,{children:Fe(e,n,i)})})})},Kg=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:c,onCompareModeChanged:d})=>{const h=B.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(Gg,{isActualVsForecastOn:o,children:[t.jsx(xo,{isActualVsForecastOn:o,children:t.jsx(mo,{children:Fe(e,n,i)})}),t.jsxs(Vg,{isActualVsForecastOn:o,children:[t.jsx(kt,{children:h.actual}),t.jsx(kt,{children:h.forecast}),t.jsx(kt,{children:t.jsx(an,{title:u,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:p=>{p!=="off"?d?.(p):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(wo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:c})},Yg=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:c})=>{const d=ce(),h=o==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return t.jsx(Dg,{children:n.map((u,p)=>t.jsx(N.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(Eg,{children:t.jsx(an,{title:h,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:g=>{g!=="off"&&(g==="compare_mode_amount"||g==="compare_mode_percent"?c?.(g):console.warn("Invalid compare mode option"))}})}):t.jsx(Rg,{children:t.jsx(wo,{firstMonthOfFY:e,timeframeTick:u,timeframe:i,dataAvailable:r,bookCloseDate:l},p)})},p))})};function Ug({type:e,backgroundColor:n,isSticky:i,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}){const x=O();return t.jsxs(Pg,{height:o,bgColor:n,children:[ge(e)===!0?t.jsx(Tg,{isSticky:i,windowSize:x,bgColor:n,children:" . "}):null,t.jsx(zg,{children:l===!0?t.jsx(Yg,{firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}):h.map((b,y)=>t.jsx(Kg,{firstMonthOfFY:c,timeframeTick:b,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f},y))})]})}const ut=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Ne(i.config.reportId)===!0||ii(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),x=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(qu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:x.balances,isScrolling:c,isLeaf:d,isLastNode:h,account:g,onAccountBalanceClick:p==null?void 0:(b,y,C)=>{p?.(b,y,C)}})},ze=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_subaccount"||i.element.data==null)return null;const f=i.element.data,x=sn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ho(x.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,C=i.config.reportId==="operating_expenses";return t.jsx(Cg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",classDepth:y,compareMode:p,accountBalances:b.balances,isScrolling:c,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:i.element.metadata,onClick:g,noMarginForAccount:C,onAccountBalanceClick:g==null?void 0:(S,A,L)=>{g?.(S,A,L)}})},gt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,x=ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Bu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},hn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_subaccount"||i.element.data==null)return null;const f=i.element.data,x=sn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Vu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},un=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=Nt(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},pt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=Nt(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},gn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=Nt(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Te=(e,n,i,o,r,l,c,d,h)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,p=sn("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),g=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=ho(p.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),x=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(Ig,{type:e,backgroundColor:o,isSticky:r,height:i,accountName:u.account.accountName,account:u,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:x,isLeaf:c,isLastNode:d,metadata:n.element.metadata,classDepth:g})},Ve=(e,n,i,o,r,l,c,d)=>{if(i.element.kind!=="timeframe_headers"&&i.element.kind!=="timeframe_headers_with_forecast")return null;const h=Pe(i.element.data,i.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",p=h.map(g=>Ie(g));return t.jsx(Ug,{treeNodeId:e,backgroundColor:r,isSticky:l,type:n,height:o,isActualVsForecastOn:i.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:i.config.mode==="this_period_vs_period_before"&&p.length>1,firstMonthOfFY:i.config.firstMonthOfFY,timeframe:u,timeframeTicks:p,compareMode:c,dataAvailable:i.config.dataAvailable,bookCloseDate:i.config.bookCloseDate,onCompareModeChanged:d})},yo=(e,n,i,o,r,l,c,d,h,u,p,g,f)=>{if(i.element.kind!="class"||i.element.data==null)return null;const x=i.element.data,b=ee(x.childrenBalancesTotal,i.config.displayOrder,i.element.numOfBalances),y=p>1;return t.jsx(lg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,className:i.element.title,classCode:i.element.data.class.accountingClassNumber,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",depth:x.id.length-1,compareMode:g,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,hasChildren:x.children.length>0,isLastNode:u,isSubClass:y,showClassAccountNumber:i.config.showClassAccountNumber,onClick:C=>{f?.(C)},metadata:i.element.metadata})},qg=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Qg=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ei,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),Un=e=>{const{height:n,data:{reportElementData:i,id:o,treeKind:r,isLeaf:l,isLastNode:c,nestingLevel:d,isFirstNode:h},isOpen:u,style:p,setOpen:g,isScrolling:f}=e,x=(C,S,A)=>{const L=l?u:!u;!l&&A==null&&(g(!u),e.onNodeCollapseToggled?.(C,!u)),e.onNodeClick?.(C,L,S,A)},b=e.treeNodePadding?.left,y=e.treeNodePadding?.right;return t.jsx("div",{style:{...p,width:"auto",minWidth:"100%",paddingLeft:b,paddingRight:y},children:t.jsx(bo,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:i,height:n,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:c,isFirstNode:h,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick!=null||!l?x:void 0,compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},o)})},bo=e=>e.treeKind==="name_only"?t.jsx(np,{...e}):Ht(e.reportElementData.config.reportId)?t.jsx(op,{...e}):Yt(e.reportElementData.config.reportId)===!0?t.jsx(ip,{...e}):ii(e.reportElementData.config.reportId)===!0?t.jsx(Zg,{...e}):Et(e.reportElementData.config.reportId)===!0?t.jsx(Jg,{...e}):Ne(e.reportElementData.config.reportId)===!0?t.jsx(Xg,{...e}):Gt(e.reportElementData.config.reportId)===!0?t.jsx(ep,{...e}):Ko(e.reportElementData.config.reportId)===!0?t.jsx(tp,{...e}):Ut(e.reportElementData.config.reportId)===!0?t.jsx(rp,{...e}):Kt(e.reportElementData.config.reportId)===!0?t.jsx(ap,{...e}):null,Zg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return un(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return gn(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,g,x);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,g,f);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,g);case"headers_loading_in_progress":return Qg(i,o,r);case"loading_in_progress":return qg(i,o,r);default:return null}},Jg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return un(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return gn(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return null;case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);default:return null}},Xg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,g,f);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,g,x);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,g,f);case"total":return Ui(e,n,i,o,r,l,g,d);case"headers_loading_in_progress":return Kc(i,o,r);case"loading_in_progress":return Hc(i,o,r);default:return null}},ep=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return Rc(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return Ec(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return Gc(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,p,g);case"total":return Ui(e,n,i,o,r,l,p,d);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);default:return null}},tp=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return un(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":return gn(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section_type1":return Ol(e,i,o,r,l,c,h);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);default:return null}},np=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:p})=>{switch(i.element.kind){case"checkbox_and_name_only":return nh(e,n,i,o,r,l,c,u,d,h,p);default:return null}},ip=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(i.element.kind){case"loading_in_progress":case"spacer_row":return pu(i,o,r,l);case"timeframe_headers":return hu(i,o,l,h,r,u);case"total":return uu(e,n,i,o,l,c,r);case"vendor_row":return gu(n,i,o,r,l,c,d);case"title_string_only":return fu(i,o,r,l);default:return null}},op=({id:e,treeKind:n,reportElementData:i,height:o,isOpen:r,isSticky:l,isScrolling:c,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:p}=i;switch(i.element.kind){case"spacer_row":return null;case"timeframe_headers":return Ha(i,o,h,l,p.agingReportConfig?.sortKey,p.agingReportConfig?.sortOrder,p.agingReportConfig?.onSortOrderChanged);case"total":return Ua(n,i,o,h,l);case"aging_report_row":return Ka(e,i,o,r,l,d,c,h,p.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Ya(i,o,l,c,h);default:return null}},rp=({id:e,reportElementData:n,height:i,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:c,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:p,nodeClickHandler:g,hoveredParentIdProps:f})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return Rd(e,n,o,r,l,c,d,f,p);case"flux_vendor_row":return Ed(e,n,o,r,l,u,c,d,h,f,g);case"section":return Gd(e,n,i,o,r,l,u,c,d,g);case"timeframe_headers":return Hd(n,i,r);case"total":return Kd(n,i);case"loading_in_progress":return Yd(n);case"headers_loading_in_progress":return Ud(n);default:return null}},ap=({reportElementData:e,height:n,isSticky:i,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return Kr(e,i);case"loading_in_progress":return Hr();case"total":return Yr(e,n,i);case"section":return Gr();case"title_string_only":return Ur(e,n);case"ac_group_report":return qr(e,n,o);default:return null}};function qn(e,n,i,o){return{data:{defaultHeight:pn(e.reportElementData.config.reportId,e.reportElementData.element.kind,e.isFirstNode),id:e.id,isLeaf:e.children.length===0,isFirstNode:e.isFirstNode??!1,isLastNode:e.isLastNode,isOpenByDefault:o??lp(e.reportElementData.config.reportId,e.reportElementData.element.kind,i,e.reportElementData.config.reportFormat),nestingLevel:i,treeKind:n,reportElementData:e.reportElementData},treeKind:n,nestingLevel:i,node:e}}function pn(e,n,i){return Et(e)===!0?Qr(n):Gt(e)===!0||Ne(e)===!0?ic(n):Ht(e)?ca(n):Kt(e)?it(n):Yt(e)?ih(n):Ut(e)?Qi(n,i):ul(n)}function lp(e,n,i,o){return Et(e)?Zr(n,o,i):Gt(e)||Ne(e)===!0?oc(n,o):Ht(e)?sa():Yt(e)?oh():Ut(e)?os(n):Kt(e)?qo():gl(n,o)}const cp=a.div`
|
|
2791
2791
|
top: 0;
|
|
2792
2792
|
left: 0;
|
|
2793
2793
|
position: sticky !important;
|
|
@@ -2802,7 +2802,7 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2802
2802
|
align-items: center;
|
|
2803
2803
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2804
2804
|
box-sizing: border-box;
|
|
2805
|
-
`;function sp({height:e,backgroundColor:n,headers:i,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:c}){return i.length===0?null:(i.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(cp,{heightValue:e,bgColor:n,"data-testid":m("sticky-header-report-tree"),children:i.map((d,h)=>t.jsx(bo,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:pn(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:n,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:i.length-1===h,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:c},d.id))}))}const dp=(e,n,i)=>function*(){for(let o=0;o<n.length;++o)yield qn(n[o],e,0,i[n[o].id]??void 0);for(;;){const o=yield;for(let r=0;r<o.node.children.length;++r)yield qn(o.node.children[r],e,o.nestingLevel+1,i[o.node.children[r].id]??void 0)}},ko=N.createContext(void 0);function hp({height:e,kind:n,rootNodes:i,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:c,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:p,infiniteLoadingProps:g,variableNodeHeightTree:f,onNodeClick:x,onCompareModeChanged:b,scrollPosition:y,onScroll:C,nodeOpenStatus:S,onNodeCollapseToggled:A,onTreeInnerElementHeightChanged:L,onToggleCheck:W,hoveredParentIdProps:
|
|
2805
|
+
`;function sp({height:e,backgroundColor:n,headers:i,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:c}){return i.length===0?null:(i.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(cp,{heightValue:e,bgColor:n,"data-testid":m("sticky-header-report-tree"),children:i.map((d,h)=>t.jsx(bo,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:pn(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:n,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:i.length-1===h,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:c},d.id))}))}const dp=(e,n,i)=>function*(){for(let o=0;o<n.length;++o)yield qn(n[o],e,0,i[n[o].id]??void 0);for(;;){const o=yield;for(let r=0;r<o.node.children.length;++r)yield qn(o.node.children[r],e,o.nestingLevel+1,i[o.node.children[r].id]??void 0)}},ko=N.createContext(void 0);function hp({height:e,kind:n,rootNodes:i,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:c,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:p,infiniteLoadingProps:g,variableNodeHeightTree:f,onNodeClick:x,onCompareModeChanged:b,scrollPosition:y,onScroll:C,nodeOpenStatus:S,onNodeCollapseToggled:A,onTreeInnerElementHeightChanged:L,onToggleCheck:W,hoveredParentIdProps:P}){const z=N.useRef(null),K=N.useRef(null),G=bn(f?.prevFetchState),Y=bn(f?.prevRefreshFetchState),[Q,he]=N.useState(0),J=p??K,ie=u??z,Se=O(),[ae,ue]=N.useState(void 0),[De,fn]=N.useState(!1),[Re,xn]=N.useState(S),mn=(I,te)=>{xn(Object.assign({},Re,{[I]:te})),A?.(I,te)},wn=I=>{if(i.contentNodes.length>0)if(Object.keys(I).length>0){const te={};Object.keys(I).forEach(me=>{te[me]={open:I[me]}}),ie?.current?.recomputeTree(te)}else{const te=i.contentNodes[0].id;ie?.current?.recomputeTree({[te]:{open:!0}})}};N.useLayoutEffect(()=>{if((!kn(y,ae)||ae==null)&&J.current!=null){const I=y?.scrollLeft==null?Se==="small"?0:J.current.scrollWidth:y?.scrollLeft;if(y!=null){const te={scrollTop:y.scrollTop,scrollLeft:I};ue(te),I!==y?.scrollLeft&&C?.(te)}J.current.scroll({left:I,top:y?.scrollTop})}},[y]),N.useEffect(()=>{kn(S,Re)||(xn(S),wn(S))},[S]),N.useEffect(()=>{const I=J.current,te=Lo(()=>{if(I!=null&&(ae==null||I.scrollLeft!==ae.scrollLeft||I.scrollTop!==ae.scrollTop)){const me={scrollLeft:I.scrollLeft,scrollTop:I.scrollTop};ue(me),C?.(me)}},50);return I?.addEventListener("scroll",te),()=>{I?.removeEventListener("scroll",te)}},[J,ae,C]),N.useEffect(()=>{if(i.contentNodes.length>0){wn(Re);const I=i.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";I!==De&&fn(I)}},[De,fn,i,ie,J]),N.useEffect(()=>{(f!=null&&G==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&Y==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),he(Q+1))},[Q,f?.fetchState,f?.isSortApplied,G,Y,f]);const ft=N.useRef(),[jo,So]=N.useState(void 0),Co=()=>{const I=ft.current;I!=null&&I.clientHeight>0&&I.clientHeight!=jo&&(So(I.clientHeight),L?.(I.clientHeight))},yn=N.useCallback(dp(n,i.contentNodes,Re),[n,i]),_o={rootNodes:i,treeNodePadding:c,backgroundColor:l,kind:n,isSticky:r,compareMode:o,onCompareModeChanged:b};return t.jsx(ko.Provider,{value:_o,"data-testid":m("report-tree"),children:g==null?t.jsx(jn,{className:d,style:h,ref:ie,innerRef:ft,outerRef:J,innerElementType:Mt,treeWalker:yn,onItemsRendered:Co,height:e,width:"100%",children:I=>t.jsx(Un,{...I,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:mn,compareMode:o,onCompareModeChanged:b,onToggleCheck:W})}):t.jsx(Ao,{isItemLoaded:g.isItemLoaded,itemCount:g.itemCount+1,loadMoreItems:g.loadMoreItems,children:({onItemsRendered:I,ref:te})=>t.jsx(jn,{className:d,style:h,ref:te,innerRef:ft,outerRef:J,innerElementType:Mt,treeWalker:yn,onItemsRendered:I,height:e,width:"100%",children:me=>t.jsx(Un,{...me,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:mn,compareMode:o,onCompareModeChanged:b,onToggleCheck:W,hoveredParentIdProps:P})},Q)})})}const Mt=N.forwardRef((e,n)=>{const{children:i,style:o,...r}=e,{rootNodes:l,treeNodePadding:c,backgroundColor:d,kind:h,isSticky:u,compareMode:p,onCompareModeChanged:g}=N.useContext(ko),f=l.headerNodes.reduce((C,S)=>C+pn(S.reportElementData.config.reportId,S.reportElementData.element.kind,S.isFirstNode),0),x=c?.left,b=c?.right,y=s.sp8;return t.jsxs("div",{ref:n,style:{...o,width:"auto",minWidth:"100%",paddingLeft:x,paddingRight:b,marginBottom:y},...r,children:[t.jsx(sp,{height:f,backgroundColor:d,headers:l.headerNodes,treeKind:h,isSticky:u.isStickyHeader,compareMode:p,onCompareModeChanged:g}),i]})});Mt.displayName="stickyInnerElementType";const up=a.div`
|
|
2806
2806
|
display: flex;
|
|
2807
2807
|
flex: 1 0 auto;
|
|
2808
2808
|
width: ${e=>e.width}px;
|
|
@@ -2841,4 +2841,4 @@ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dh as $o,o as s,p as X,aN as bn,
|
|
|
2841
2841
|
}
|
|
2842
2842
|
}
|
|
2843
2843
|
}
|
|
2844
|
-
`;function yp({rootNodes:e,type:n,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l,onAccountClick:c,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onCompareModeChanged:p,scrollPosition:g,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onReportTableHeightChanged:y,onToggleCheck:C}){return t.jsx(
|
|
2844
|
+
`;function yp({rootNodes:e,type:n,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l,onAccountClick:c,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onCompareModeChanged:p,scrollPosition:g,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onReportTableHeightChanged:y,onToggleCheck:C}){return t.jsx(vo,{children:({height:S,width:A})=>t.jsx(up,{"data-testid":m("report-tree-container"),height:S,width:A,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(hp,{"data-testid":m("report-tree"),treeClassName:"content-scroll",height:S,kind:n,rootNodes:e,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onNodeClick:c==null?void 0:(L,W,P,z)=>{P!=null&&z!=null&&c(P,z)},onCompareModeChanged:p,scrollPosition:g,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onTreeInnerElementHeightChanged:y,onToggleCheck:C})})})}export{ee as D,yp as I,q as J,wp as R,Fe as V,We as a,ot as l,Yc as n,on as r,sn as x};
|