@zeniai/web-cockpit-ui 1.14.72-dev → 1.14.72-dev-betaSK01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-BZFkcCOG-Bm0yzLzS.js → ACHDetailsPage-BZFkcCOG-WfBPHoUX.js} +2 -2
- package/dist/assets/{AIPerformancePage-DtNLjoUW-C8WssBlV.js → AIPerformancePage-DtNLjoUW-CinUSJg2.js} +124 -124
- package/dist/assets/{AccountInfoPage-D-E_-WpE-D3xkesKo.js → AccountInfoPage-D-E_-WpE-DJyb7x4k.js} +2 -2
- package/dist/assets/{AccountInfoPageContent-B8GKrtCm-Bl_GPEk1.js → AccountInfoPageContent-B8GKrtCm-10kK72ec.js} +13 -13
- package/dist/assets/AccountLockedInfoModal-BD7Nb81U-ZCs8qzoa.js +59 -0
- package/dist/assets/AccountReconDetailsDrawerPage-D-_ME0pV-BuvZZBZ-.js +239 -0
- package/dist/assets/{AccountRow-Be3LIHO--AtWCxnkE.js → AccountRow-Be3LIHO--BjLJB43L.js} +32 -32
- package/dist/assets/AccountsPromoCardStack-CdBwPVgI-CkQ7kJh8.js +207 -0
- package/dist/assets/{AddAddressForCardDrawer-Lm7cn4kq-BwSuj-eK.js → AddAddressForCardDrawer-Lm7cn4kq-DzFp-OyN.js} +2 -2
- package/dist/assets/{AddToWalletPage-nSq-9dQy-DNXeo8yV.js → AddToWalletPage-nSq-9dQy-D56Hf4hb.js} +13 -13
- package/dist/assets/AgingReportsPage-L0zQxwCf-D3sUJmot.js +79 -0
- package/dist/assets/AllUserItems-CvwaOEhu-DISgj-9d.js +192 -0
- package/dist/assets/ApAgingDetailPage-B_78aSEv-DLL7XkHo.js +46 -0
- package/dist/assets/{AppBasePage-Br0WbQRY-C5P2SI_a.js → AppBasePage-Br0WbQRY-BAK8zLlg.js} +5 -5
- package/dist/assets/{AppDrawerContent-BZODvVvi-DO9-i0u3.js → AppDrawerContent-BZODvVvi-DQ-V9QL0.js} +7 -7
- package/dist/assets/ApprovalRulesSettingsPage-Dxd7A3hZ-CRTSWRxG.js +47 -0
- package/dist/assets/ArAgingChart-BezVy1Sm-ClcQ64wd.js +24 -0
- package/dist/assets/{ArAgingDetailPage-BlV3iJeW-DvSoM4Rd.js → ArAgingDetailPage-BlV3iJeW-D0lCDh_0.js} +3 -3
- package/dist/assets/{AttachmentView-DhluaeAV-DnrJUkr5.js → AttachmentView-DhluaeAV-DsM43aN0.js} +9 -9
- package/dist/assets/{BankAccountSection-GDEQdiGL-CuwfGvXF.js → BankAccountSection-GDEQdiGL-CmBLlIS1.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-Di_BsiJC-Cp36wJhl.js → BankAccountWarningSection-Di_BsiJC-_Ul1tNJQ.js} +9 -9
- package/dist/assets/BankConnectionsSettingsPage-D5hI4xtm-ik9FJnty.js +425 -0
- package/dist/assets/BillDetailPage-CDAh8Jtl-wk3WJY1W.js +266 -0
- package/dist/assets/{BillPayApprovalRuleDetailPage-BzyTn4mC-DYCBn6RW.js → BillPayApprovalRuleDetailPage-BzyTn4mC-DxDRXjZW.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DDJ-LxQz-D20J03DB.js → BillPayApprovalRulesPage-DDJ-LxQz-B-4hhNoy.js} +7 -7
- package/dist/assets/BillPayPromoPage-B2YcxWc9-ChjVVUdj.js +84 -0
- package/dist/assets/BillPaySetUpPage-oJvoWpFu-ZQ44J65y.js +42 -0
- package/dist/assets/BillingSettingsPage-BRsKYzT5-C1YZEc97.js +44 -0
- package/dist/assets/BillsBulkReviewDrawerPage-B7tORIok-09a60H-u.js +1 -0
- package/dist/assets/{BoxItem-COIjjFrn-DqU4ZyNU.js → BoxItem-COIjjFrn-CYZK_lth.js} +4 -4
- package/dist/assets/BusinessVerificationPage-Nw_fedst-Ce7UF4J6.js +138 -0
- package/dist/assets/{CardNumberSubText-CmhH95Ff-CLBGKyAX.js → CardNumberSubText-CmhH95Ff-D70_vfvB.js} +2 -2
- package/dist/assets/{CashbackDetailPage-BPLjvuA3-362WFi2j.js → CashbackDetailPage-BPLjvuA3-D2AlurqK.js} +56 -56
- package/dist/assets/{ChargeCardDetailPage-qOu4cPGd-BUoeKuHJ.js → ChargeCardDetailPage-qOu4cPGd-CMQ9x73T.js} +215 -215
- package/dist/assets/ChargeCardListPage-v5hH98Wi-BhiUhdgm.js +406 -0
- package/dist/assets/{ChargeCardListTable-BGWV4zJl-fPTlw7hA.js → ChargeCardListTable-BGWV4zJl-CcT6S7FA.js} +51 -51
- package/dist/assets/ChargeCardPromoPage-CPEaGOL3-CiA1pNTj.js +222 -0
- package/dist/assets/ChargeCardSetupPage-G5Rn0o6y-Bqw8Kqbv.js +36 -0
- package/dist/assets/{ChargeCardStatementsPage-CJgUrcLz-BpTcE_Fq.js → ChargeCardStatementsPage-CJgUrcLz-BY-SWhAj.js} +3 -3
- package/dist/assets/ChargeCardUtils-BRgkrCTs-Bo37IpfS.js +1 -0
- package/dist/assets/{ChaseOverlay-BC_4vwtb-ZJ37WP7g.js → ChaseOverlay-BC_4vwtb-BQqHx8M-.js} +4 -4
- package/dist/assets/{CheckDepositDrawerPage-CDo5E13X-BcLnzbHC.js → CheckDepositDrawerPage-CDo5E13X-CKNKZDF1.js} +21 -21
- package/dist/assets/CollapsableReportTable-7iAngywY-BhPujiYA.js +2932 -0
- package/dist/assets/CompanyOfficerDetailsSection-CJKyxEnf-B2MTqDnr.js +260 -0
- package/dist/assets/{CompanyPassportCard-D3F01eJL-CYg3XwZh.js → CompanyPassportCard-D3F01eJL-BhEJq4YF.js} +1 -1
- package/dist/assets/CompanyPassportPage-BQoEcPJr-CLTXsXdq.js +574 -0
- package/dist/assets/CompleteProfile-D5e9TQgy-B3NCfzYL.js +52 -0
- package/dist/assets/{ConfettiBurst--HIHB7Os-CFkZhGnX.js → ConfettiBurst--HIHB7Os-S4QyIwiq.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D9jmSrKr-BqbzMjKm.js → CreateOrEditVendorPage-D9jmSrKr-DpdjBsSE.js} +11 -11
- package/dist/assets/CreditCardPaymentDrawerPage-DXeq4z9l-C-tETdxW.js +224 -0
- package/dist/assets/{CreditCardPaymentPlgSection-8ZShMO31-D_nbIzHo.js → CreditCardPaymentPlgSection-8ZShMO31-COciJwfu.js} +10 -10
- package/dist/assets/{CurrencySelectField-nhg_dhDw-Ct_sJsLw.js → CurrencySelectField-nhg_dhDw-nZHVWMo0.js} +6 -6
- package/dist/assets/{CustomerOnboardingActivationPage-CoGvz7Kd-2HboMU2B.js → CustomerOnboardingActivationPage-CoGvz7Kd-1Tt5lNh3.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-CdqN8qku.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DUGRKWtN-Bm0dGA9J.js → CustomerOnboardingDetailPageSkeleton-DUGRKWtN-ClKlbRH6.js} +13 -13
- package/dist/assets/{CustomerOnboardingNoStepsPage-Cc5frP29-BNFSu_0c.js → CustomerOnboardingNoStepsPage-Cc5frP29-Pt9D5fwX.js} +6 -6
- package/dist/assets/CustomerOnboardingPage-zBqp9QN6-BMM-roBm.js +107 -0
- package/dist/assets/CustomerOnboardingProductSuitePage-BbJ4oiCI-DgRG1l8f.js +202 -0
- package/dist/assets/{Dashboard-D6Ba5oj0-DGZ5Ekyf.js → Dashboard-D6Ba5oj0-C5iZr7Dc.js} +262 -262
- package/dist/assets/DashboardReportPage-DTMbYOWH-B0H-UpGg.js +371 -0
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Locz2zHR-BPk9MxB4.js → DashboardSidebarBackgroundAnimation-Locz2zHR-Bhgpjfq-.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-B0BGwVqF-CxL2uxQm.js → DepositAccTransactionItem-B0BGwVqF-Cwta5ei3.js} +5 -5
- package/dist/assets/DepositAccTransactionListPage-CcO673ZL-D1h5XemH.js +66 -0
- package/dist/assets/DomesticWireDetailsPage-D5hbPNCt-Bhq4tM9b.js +21 -0
- package/dist/assets/DownloadOverlay-DRcasKoB-BTfb8tZj.js +439 -0
- package/dist/assets/{DrawerPage-BRD6cE6J-CdG9rNJx.js → DrawerPage-BRD6cE6J-1UMYAHb7.js} +13 -13
- package/dist/assets/EditPeoplePage-Zzo62if7-Clw_H_tG.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-D59OJdZ1-DgdwTZwz.js +865 -0
- package/dist/assets/EntityDetailPage-CzlzOW8n-CjIrlTQm.js +18 -0
- package/dist/assets/{EntitySummarySection-BRt1kPDf-BrvMzC_z.js → EntitySummarySection-BRt1kPDf-DQbEIQFx.js} +28 -28
- package/dist/assets/{ExpenseAutomationOverviewPage-vUkGameq-D28DcERt.js → ExpenseAutomationOverviewPage-vUkGameq-CHnaqssF.js} +50 -50
- package/dist/assets/ExpenseAutomationPage-Cm_IiRlb-DxIRsn8B.js +1650 -0
- package/dist/assets/ExpressPayPage-DdQiFzDu-CXe6diRB.js +168 -0
- package/dist/assets/{FeaturePreviewPage-CQN2xThT-D8GcVVCI.js → FeaturePreviewPage-CQN2xThT-DJXN60Ac.js} +3 -3
- package/dist/assets/{FollowStepsSection-DdwEVWhG-XjqeMDlz.js → FollowStepsSection-DdwEVWhG-yjJ5FRCa.js} +21 -21
- package/dist/assets/GlobalReviewListPage-DHn2Uk8R-Dz5cpAt1.js +291 -0
- package/dist/assets/HelpButton-BNMy-6ce-CVlMGZqS.js +28 -0
- package/dist/assets/{InformationCardStack-Cw7c9Pnd-JKEjusS_.js → InformationCardStack-Cw7c9Pnd-BX2LTL8l.js} +2 -2
- package/dist/assets/InsightsCardStack-CaMZiCnn-DLt2ZmbV.js +79 -0
- package/dist/assets/{InsightsSection-JIKb9lz3-CSUvMdaP.js → InsightsSection-JIKb9lz3-Hi0aN8hq.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-h4pel2yK-CfkisAjm.js → IntegrationsSettingsPage-h4pel2yK-CxqwarZy.js} +4 -4
- package/dist/assets/{InternationalWireSwiftDetailsPage-C2SnHEV1-D4h6wt17.js → InternationalWireSwiftDetailsPage-C2SnHEV1-CzlIxaS1.js} +16 -16
- package/dist/assets/{InternationalWireVerificationPage-Dk11ztF7-CGQwkBKG.js → InternationalWireVerificationPage-Dk11ztF7-BCCRbUea.js} +28 -28
- package/dist/assets/{InviteFormPage-CrtH0cSG-lBcBfRNC.js → InviteFormPage-CrtH0cSG-eVIYbN0r.js} +16 -16
- package/dist/assets/{InvitePageListView-DUoopPip-D3WES4Ay.js → InvitePageListView-DUoopPip-D5qrm4ww.js} +164 -164
- package/dist/assets/InvitePeoplePage-C3ecL8XJ-olYxQVFB.js +12 -0
- package/dist/assets/InvoiceUploadSection-DoR834b4-CjFOCIIZ.js +140 -0
- package/dist/assets/{IssueChargeCardPage-D6DCohbK-CY0NLJ-D.js → IssueChargeCardPage-D6DCohbK-BMG4Ljit.js} +10 -10
- package/dist/assets/{LabeledAddressValue-C3R0DSjj-DSFQoK0_.js → LabeledAddressValue-C3R0DSjj-CpxXKm9c.js} +1 -1
- package/dist/assets/LabeledAddressValueField-YP7bXlgZ-D9-PqJNp.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-zwoLFM1n-WAKwiqVu.js → LabeledControlledCheckBoxField-zwoLFM1n-B44wDW2V.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BhaeopJt-r1U--LmU.js → LabeledCreatableSingleSelectField-BhaeopJt-tsmH64cn.js} +7 -7
- package/dist/assets/LabeledDocumentField-ED03S2kQ-BGespvxP.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-brzU_fnp-DR9C1PhE.js → LabeledDropDownFormattedTextField-brzU_fnp-hUkbh0bF.js} +5 -5
- package/dist/assets/{LabeledText-BESSkt5Z-DvRhicFs.js → LabeledText-BESSkt5Z-CPDVK04g.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-BRFp4N3Z.js → LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-DaWgPr9f.js} +18 -18
- package/dist/assets/{LabeledZeniRolesDropDownField-BXTCN4j2-C9dcF_vL.js → LabeledZeniRolesDropDownField-BXTCN4j2-CLEMt0Ht.js} +33 -33
- package/dist/assets/LinkJETransactionPage-_ROjxBMO-C6IEO3Ec.js +98 -0
- package/dist/assets/{LockCardPage-DYfgK11k-CA2sqFlt.js → LockCardPage-DYfgK11k-BFAZ4k7o.js} +71 -71
- package/dist/assets/LowBalancePopup-CZDcHxyW-BSR036zV.js +34 -0
- package/dist/assets/{MagicLinkACHDetailsPage-CLXcRbZ--CVcTUs2d.js → MagicLinkACHDetailsPage-CLXcRbZ--B-X6oebP.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CZlZr96w-BPglJFOV.js → MagicLinkDomesticWireDetailsPage-CZlZr96w-DllJxuHV.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DhPjvv0o-DFwZaRYm.js → MagicLinkInternationalWireDetailsPage-DhPjvv0o-BIaiGIsd.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-Bh2nlLPN-Ddx1hbRe.js → MagicLinkSuccessPage-Bh2nlLPN-6rfZopUb.js} +3 -3
- package/dist/assets/MagicLinkTitleSection-Cn1v72Rs-Dx0fyRw5.js +17 -0
- package/dist/assets/{MailingDetailsSection-9RwlQxVG-C09sdGhg.js → MailingDetailsSection-9RwlQxVG-_UrE81Sw.js} +2 -2
- package/dist/assets/{MeetingCalenderPopup-BxV_UIXP-B9VDTxkT.js → MeetingCalenderPopup-BxV_UIXP-BXGtVHle.js} +4 -4
- package/dist/assets/Menu-B6iTf2H7-Cu2Vb11u.js +17 -0
- package/dist/assets/MyBankConnectionsSettingsPage-IPPiH6jv-uU5Nku5W.js +110 -0
- package/dist/assets/MyPendingActivationChargeCardListPage-BTGb1yIE-yyVAdXqO.js +6 -0
- package/dist/assets/MyProfileSettingsPage-BRK5nWg2-BCkp79gR.js +85 -0
- package/dist/assets/{NavBarWithPicker-CKh_HMfV-U1f60LTo.js → NavBarWithPicker-CKh_HMfV-i4ObGPrS.js} +4 -4
- package/dist/assets/{NavigationArrow-XZmJpDrE-BSGdgz-m.js → NavigationArrow-XZmJpDrE-DolsLofY.js} +2 -2
- package/dist/assets/{NavigationDots-BxPgEW_p-CnLRJgGA.js → NavigationDots-BxPgEW_p-Cjr25BX_.js} +3 -3
- package/dist/assets/{NewGlobalMerchantPage-CQzrDe0S-CFbklyjG.js → NewGlobalMerchantPage-CQzrDe0S-K2NUXsKS.js} +35 -35
- package/dist/assets/{NoDataChart-5E72SElf-Bfyft1Tp.js → NoDataChart-5E72SElf-3CnLxisw.js} +4 -4
- package/dist/assets/{NoDataTable-BwHbkm3l-C4AJlFQY.js → NoDataTable-BwHbkm3l-VTHrTfOq.js} +2 -2
- package/dist/assets/{NotFoundPage-6udaksBZ-Bdrzyyzv.js → NotFoundPage-6udaksBZ-DUgTbMe0.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DkYmxMgg-B7fNoy2R.js → NotificationSettingsPage-DkYmxMgg-BVRECpS0.js} +32 -32
- package/dist/assets/{NotificationsListConfig-FGxLgO1o-Bjqs17aQ.js → NotificationsListConfig-FGxLgO1o-C0kfEx8A.js} +1 -1
- package/dist/assets/NotificationsPage-C7lSAnUb-CEUwTZM_.js +685 -0
- package/dist/assets/{OpExByVendorPage-CM0RluUk-BgpW2giu.js → OpExByVendorPage-CM0RluUk-PZB-G7xm.js} +4 -4
- package/dist/assets/{OverlayContainerPage-BKHs_4eI-mLdiagVZ.js → OverlayContainerPage-BKHs_4eI-CSsJiY_P.js} +2 -2
- package/dist/assets/PandLWithForecastPage-W4jlNjml-8wxKAhbo.js +107 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DQ82eP9Q-ChYOGpfy.js → PaymentAccountSetupBillingAddressSection-DQ82eP9Q-Cwm2aoR2.js} +9 -9
- package/dist/assets/{PeoplePage-CB3T3u_F-DC1PdCPq.js → PeoplePage-CB3T3u_F-BR69e4ui.js} +96 -96
- package/dist/assets/{PortfolioAllocationFormPage-CZkJD6tu-CmTdPnvM.js → PortfolioAllocationFormPage-CZkJD6tu-1mutznS7.js} +13 -13
- package/dist/assets/{PortfolioDetails-D4yT8r35-DSk0Sc23.js → PortfolioDetails-D4yT8r35-BZAutCbg.js} +34 -34
- package/dist/assets/{ProductsCarousel-CR7_rk0K-DQWJaP-C.js → ProductsCarousel-CR7_rk0K-CKMGS-I4.js} +7 -7
- package/dist/assets/{PromoBaseCards-BAPolzxE-DLtmx-3v.js → PromoBaseCards-BAPolzxE-DjUVr5kX.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-D3eazhj7-fJDNmSLU.js → QBOConnectionDialog-D3eazhj7-DCdAj667.js} +7 -7
- package/dist/assets/{QBOSetupSection-Cjjhm_Ee-CrlXRkit.js → QBOSetupSection-Cjjhm_Ee-CX61tnWs.js} +12 -12
- package/dist/assets/ReimbursementApprovalRuleDetailPage-eidNY097-DDLdjGbX.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-GSzJGSuy-H2GhhV11.js → ReimbursementApprovalRulesPage-GSzJGSuy-DOLnlfRe.js} +12 -12
- package/dist/assets/ReimbursementDetailPage-AvqEBxbz-ByJDRCe5.js +314 -0
- package/dist/assets/ReimbursementPromoPage-PshodHUZ-CEBQKb7P.js +84 -0
- package/dist/assets/ReimbursementSetUpPage-6P4FT-UC-BMbaH1eU.js +140 -0
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-Cas6GzVp-CEJlVV08.js +1 -0
- package/dist/assets/{ReloadCard-Dpoxd9nE-B9DlyhD4.js → ReloadCard-Dpoxd9nE-_RGkkZLm.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-Ci-WKrCO-DAZRgQwg.js → ReportTableViewSelector-Ci-WKrCO-D0sA8766.js} +30 -30
- package/dist/assets/ReportsPage-C7zirS74-oNrbhh6a.js +121 -0
- package/dist/assets/{RevenueChart-CXMBT3cr-DnDEiqPG.js → RevenueChart-CXMBT3cr-BigDcfmP.js} +29 -29
- package/dist/assets/ReviewDetailsPage-ClsyL5-w-rKSUEvaS.js +290 -0
- package/dist/assets/{ReviewOverlay-C6Kx7Hfm-IahzUsv3.js → ReviewOverlay-C6Kx7Hfm-Aab2M4el.js} +12 -12
- package/dist/assets/{RoleWithToolTip-BqI6M0x_-CwUqJeb5.js → RoleWithToolTip-BqI6M0x_-3Pz3ZAbU.js} +2 -2
- package/dist/assets/ScheduleDetailsFixedAssetsPage-zFyJPVpN-Dm8QVj-0.js +37 -0
- package/dist/assets/ScheduleDetailsPage-BftjSvA7-D97uCI5t.js +37 -0
- package/dist/assets/{ScheduleSequenceTable-lTN7r0p4-BFWt_8N-.js → ScheduleSequenceTable-lTN7r0p4-BmAjQVGV.js} +42 -42
- package/dist/assets/ScreenRoutes-Du6t5Ig_.js +206 -0
- package/dist/assets/SetUpAccountSection-Bnbi8X23-7-Jadv9H.js +378 -0
- package/dist/assets/{SetUpDefaultSection-Bm1eZSgT-BcxYXAIw.js → SetUpDefaultSection-Bm1eZSgT-9DFPAVat.js} +13 -13
- package/dist/assets/{SignIn-BlISBvt5-C9HXqHPg.js → SignIn-BlISBvt5-BSeULTEW.js} +28 -28
- package/dist/assets/SignInScreen-BN2xWnU-.js +1 -0
- package/dist/assets/SpendManagementListViewPage-ChNp8dgm-ByNxcaX6.js +123 -0
- package/dist/assets/SpendManagementPerTabPage-D-bOr2-6-C5z49u7s.js +754 -0
- package/dist/assets/SpendManagementSection-kucZgC-H-Cqflt6S1.js +230 -0
- package/dist/assets/SpendMgmtSetupAccountSection-de7hEmtE-9bAK-YlL.js +206 -0
- package/dist/assets/{StatementItem-BVIVLdDn-BLcyHqWZ.js → StatementItem-BVIVLdDn-DWQxeT2X.js} +2 -2
- package/dist/assets/StatementsPage-KnLUSJbm-DVR36Ge4.js +58 -0
- package/dist/assets/{StatusSwitcher-aAizq1mr-D4E7X1zy.js → StatusSwitcher-aAizq1mr-c-jcIGD9.js} +2 -2
- package/dist/assets/{SubTabSwitcher-COrYJ6CW-B2hsvJe_.js → SubTabSwitcher-COrYJ6CW-BIZF-iNv.js} +1 -1
- package/dist/assets/{SummaryCard-Dv0dWKBw-BnK7xgrF.js → SummaryCard-Dv0dWKBw-CGu-GHYa.js} +1 -1
- package/dist/assets/TaskManagementPage-CPLyyK1Y-BZe-OFxL.js +508 -0
- package/dist/assets/{TimeRangeSwitcher-ifkHfqEg-CGFdCObN.js → TimeRangeSwitcher-ifkHfqEg-VY1vzvIS.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-BP-PxO5g-DG6ysLlp.js → TimeframeSwitcher-BP-PxO5g-DxTIS9PI.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DH-PfsTQ-Dd12kokF.js → TimeframeSwitcherWithToggle-DH-PfsTQ-D7U0L-cV.js} +1 -1
- package/dist/assets/{TopExCard-Bam-Q4MV-GCmLzO6i.js → TopExCard-Bam-Q4MV-BsP_HKjG.js} +6 -6
- package/dist/assets/{TopExDetailPage-P0Twt5zZ-BElfoauE.js → TopExDetailPage-P0Twt5zZ-CoHp8hDQ.js} +12 -12
- package/dist/assets/TransactionDetailPage-D1Z1f-DD-BPMl_wDr.js +912 -0
- package/dist/assets/TransactionList-BzJEbOV9-0ST5sY1-.js +147 -0
- package/dist/assets/{TransactionListBig-u4SJBZTE-BZvqZwTB.js → TransactionListBig-u4SJBZTE-BlGBIBoN.js} +44 -44
- package/dist/assets/{TransactionListPage-D4GJ6i3l-BXLL3BhX.js → TransactionListPage-D4GJ6i3l-yaso0Nlb.js} +3 -3
- package/dist/assets/{TransactionVendorDetailPage-CuFHbm8c-Cl9iluIt.js → TransactionVendorDetailPage-CuFHbm8c-kFca8x3E.js} +5 -5
- package/dist/assets/{TransferDrawerPage-GD2I8ptj-B7cXbGdy.js → TransferDrawerPage-GD2I8ptj-CANT8JC_.js} +27 -27
- package/dist/assets/TreasuryOverviewPage-DySunaqy-Du5jK6WV.js +708 -0
- package/dist/assets/{TreasuryPromoPage-DW1f8_q1-CZjoBD0v.js → TreasuryPromoPage-DW1f8_q1-CkWefV3r.js} +6 -6
- package/dist/assets/{TreasurySetupPage-53k6ARHC-8YVNt5Wt.js → TreasurySetupPage-53k6ARHC-DuoYqIOy.js} +3 -3
- package/dist/assets/{TreasuryStatementsPage-pIshKNaR-Dtfk2lx_.js → TreasuryStatementsPage-pIshKNaR--8vN-IgR.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-B3PkB1al-CKVKJh1V.js → TreasuryTaxLetterPage-B3PkB1al-CkqZdxpj.js} +5 -5
- package/dist/assets/TreasuryTransferOrReviewPage-Dzq-FxSM-DKViGoiZ.js +576 -0
- package/dist/assets/TrendChart-B_5D-Zud-Cw_zgD-R.js +16 -0
- package/dist/assets/{TrendWithTransactions-mI_El5D1-SbfSjDf-.js → TrendWithTransactions-mI_El5D1-DUVZm_U-.js} +4 -4
- package/dist/assets/{UncategorizedAccountsMappingPage-LQeq8Gdv-BxpsIXJf.js → UncategorizedAccountsMappingPage-LQeq8Gdv-BNgZRg4x.js} +47 -47
- package/dist/assets/{UnitIntegrationPage-XOWqGHla-DR8O2yO4.js → UnitIntegrationPage-XOWqGHla-BIoTpmZ_.js} +11 -11
- package/dist/assets/UploadAdditionalDocumentOverlay-DhXRLBEg-BNMbNbJQ.js +38 -0
- package/dist/assets/{Vendor2FAPopup-BfqIHZBb-CksyyTez.js → Vendor2FAPopup-BfqIHZBb-DUpQFrOM.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CswCvAFH-CdUK-HJH.js → VendorACHDetailsPage-CswCvAFH-DqnJleBx.js} +1 -1
- package/dist/assets/VendorDetailPage-CEX7xMIN-D29fVYfj.js +257 -0
- package/dist/assets/{VendorDomesticWireDetailsPage-DxrSjlTR-B4ZHtbXA.js → VendorDomesticWireDetailsPage-DxrSjlTR-GbXdyYXP.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-q1gQ8keD-BmDatzoV.js → VendorFiling1099EditablePage-q1gQ8keD-GKQT7vTw.js} +32 -32
- package/dist/assets/VendorFirstReviewPage-D9ogNmAK-DwoL9x7s.js +730 -0
- package/dist/assets/VendorInternationalWireDetailsPage-Ct689KuY-N7HCxAFy.js +152 -0
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-W0s1zQNC-ZgE8KOcO.js → VendorInternationalWireSwiftDetailsPage-W0s1zQNC-eVlfJ9f_.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C13Z2HN9-C2XOcHy1.js → VendorsAccountsSection-C13Z2HN9-DvGRJwYY.js} +4 -4
- package/dist/assets/VerifyDevice-C27gEWkZ-BrEq9dHz.js +112 -0
- package/dist/assets/{VideoPlayer-ByyqUuhG-DTMNeCaX.js → VideoPlayer-ByyqUuhG-CcmvFcG0.js} +1 -1
- package/dist/assets/{VideoPopup-DJrQQTPq-DoXO-Vwb.js → VideoPopup-DJrQQTPq-BZRShVLd.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-B3Ht3VnM-DBDTIhyB.js → WarningsDrawerPage-B3Ht3VnM-C_aFzWZK.js} +5 -5
- package/dist/assets/ZeniAccountDetailPage-egmysAfI-CX7srLCt.js +300 -0
- package/dist/assets/{ZeniAccountListViewPage-q_v2FogF-B-baYGeD.js → ZeniAccountListViewPage-q_v2FogF-wW_PUJNB.js} +12 -12
- package/dist/assets/ZeniAccountNavBarPieces-HNIht0FM-azEwN9c2.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-CzncR6vK-DAONZr9A.js → ZeniAccountPromoPage-CzncR6vK-CoCFGvia.js} +21 -21
- package/dist/assets/{ZeniAccountSetupPage-TcdzEL_V-CApQPT0B.js → ZeniAccountSetupPage-TcdzEL_V-CPTq7KjK.js} +1 -1
- package/dist/assets/{ZeniCopyright-B7Q6IUGC-Ca3UXoxG.js → ZeniCopyright-B7Q6IUGC-DjtbTVnp.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Dmf5xxv4-D_ugGHJW.js → ZeniTransferAmountSlider-Dmf5xxv4-D-BoRJmd.js} +3 -3
- package/dist/assets/addSubtractPeriod-CFvkmqm8.js +1 -0
- package/dist/assets/analyticsHelper-L-FpsGLH.js +1 -0
- package/dist/assets/analyticsHelper-or1KkBWk-CU2Z2CeD.js +1 -0
- package/dist/assets/{chartTypes-DCvOVjlS-BdPIN5WI.js → chartTypes-DCvOVjlS-CF3jsUNb.js} +1 -1
- package/dist/assets/{commonDimensions-C32v1F7H-CiAEfJl2.js → commonDimensions-C32v1F7H-C9uaBJ8J.js} +1 -1
- package/dist/assets/{detailCommon-CRAGrqoO-Cq9phP1q.js → detailCommon-CRAGrqoO-5xMc7u9M.js} +8 -8
- package/dist/assets/downloadPdf-D7p3yKmg-DrJJdcEl.js +1 -0
- package/dist/assets/{index-sAOH0Fje.js → index-kF4u7Flm.js} +511 -704
- package/dist/assets/{mapLoadingInProgressToTreeNode-CRwG2DSD-B4LnWZMC.js → mapLoadingInProgressToTreeNode-CRwG2DSD-CLLcsBiK.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C9O-C2dp-BYZLhSZo.js → mapSectionWithAcOnlyToTreeNode-C9O-C2dp-4sjxXlit.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-5aJk-sLn-DpF_Q8pH.js → mapSpacerToTreeNode-5aJk-sLn-CeZutbYy.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CnviLujI-Do2_oG27.js → mapTimeframeBalancesToTreeNode-CnviLujI-rcfKFEh1.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv4d4PqE-C559SZVp.js → mapTimeframeBalancesToTreeNode-Cv4d4PqE-BmreU2CJ.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-yJCRTG35.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-CkRgUU-m.js} +1 -1
- package/dist/assets/redux-D-TY61DZ.js +12 -0
- package/dist/assets/{toCOABalancesWithID-B3yVGPrV-B_BzNOYP.js → toCOABalancesWithID-B3yVGPrV-Dj01dEre.js} +1 -1
- package/dist/assets/toChartData-DEW0iT7T-DaQT4Adc.js +1 -0
- package/dist/assets/{treasuryColorHelper-13LJ_xhk-LqN_6Xl4.js → treasuryColorHelper-13LJ_xhk-5-aGYtqD.js} +1 -1
- package/dist/assets/{uploadAttachment-DVy2pZeJ-X-xSyfvF.js → uploadAttachment-DVy2pZeJ-DL6B1oGY.js} +25 -25
- package/dist/assets/{uploadReceipts-Dp1dvCjf-Bw0_dVvQ.js → uploadReceipts-Dp1dvCjf-BQPyxtgi.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AccountLockedInfoModal-BD7Nb81U-CexK1k9m.js +0 -59
- package/dist/assets/AccountReconDetailsDrawerPage-D-_ME0pV-s74oVSdU.js +0 -239
- package/dist/assets/AccountsPromoCardStack-CdBwPVgI-0eZTGbZE.js +0 -207
- package/dist/assets/AgingReportsPage-L0zQxwCf-BGxthXxn.js +0 -79
- package/dist/assets/AllUserItems-CvwaOEhu-4FgiUHmj.js +0 -192
- package/dist/assets/ApAgingDetailPage-B_78aSEv-BIkW3as9.js +0 -46
- package/dist/assets/ApprovalRulesSettingsPage-Dxd7A3hZ-B57JU70m.js +0 -47
- package/dist/assets/ArAgingChart-BezVy1Sm-UplSlTlX.js +0 -24
- package/dist/assets/BankConnectionsSettingsPage-D5hI4xtm-CIHmOttI.js +0 -425
- package/dist/assets/BillDetailPage-CDAh8Jtl-0qBbZ__0.js +0 -266
- package/dist/assets/BillPayPromoPage-B2YcxWc9-CwLnyiow.js +0 -84
- package/dist/assets/BillPaySetUpPage-oJvoWpFu-CYkgRBSH.js +0 -42
- package/dist/assets/BillingSettingsPage-BRsKYzT5-gKM6YCmc.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-B7tORIok-Cjhni78W.js +0 -1
- package/dist/assets/BusinessVerificationPage-Nw_fedst-D0V3bhmc.js +0 -138
- package/dist/assets/ChargeCardListPage-v5hH98Wi-D_Ffaz0x.js +0 -406
- package/dist/assets/ChargeCardPromoPage-CPEaGOL3-BJBmWN7Q.js +0 -222
- package/dist/assets/ChargeCardSetupPage-G5Rn0o6y-DXJQIwPQ.js +0 -36
- package/dist/assets/ChargeCardUtils-BRgkrCTs-DoVoCmwL.js +0 -1
- package/dist/assets/CollapsableReportTable-7iAngywY-CxWB4sRz.js +0 -2932
- package/dist/assets/CompanyOfficerDetailsSection-CJKyxEnf-BshC7d2B.js +0 -260
- package/dist/assets/CompanyPassportPage-BQoEcPJr-DzLqV-NZ.js +0 -574
- package/dist/assets/CompleteProfile-D5e9TQgy-ppOK1lFi.js +0 -52
- package/dist/assets/CreditCardPaymentDrawerPage-DXeq4z9l-Dr585X5v.js +0 -224
- package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-4OaWohod.js +0 -1
- package/dist/assets/CustomerOnboardingPage-zBqp9QN6-D_UHEoUt.js +0 -107
- package/dist/assets/CustomerOnboardingProductSuitePage-BbJ4oiCI-C_0KKlnp.js +0 -202
- package/dist/assets/DashboardReportPage-DTMbYOWH-CSMllwg6.js +0 -371
- package/dist/assets/DepositAccTransactionListPage-CcO673ZL-CiLAoQqZ.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-D5hbPNCt-Bj16Fg_f.js +0 -21
- package/dist/assets/DownloadOverlay-DRcasKoB-BDQCkt6Q.js +0 -439
- package/dist/assets/EditPeoplePage-Zzo62if7-CQfgpQsa.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-D59OJdZ1-7T5j9Uz8.js +0 -865
- package/dist/assets/EntityDetailPage-CzlzOW8n-DjZ6eItY.js +0 -18
- package/dist/assets/ExpenseAutomationPage-Cm_IiRlb-Ch0agMlw.js +0 -1650
- package/dist/assets/ExpressPayPage-DdQiFzDu-ykW984zo.js +0 -168
- package/dist/assets/GlobalReviewListPage-DHn2Uk8R-Cd3V8M7p.js +0 -291
- package/dist/assets/HelpButton-BNMy-6ce-WFq-iELy.js +0 -28
- package/dist/assets/InsightsCardStack-CaMZiCnn-D5ut2TNQ.js +0 -79
- package/dist/assets/InvitePeoplePage-C3ecL8XJ-D06hBumB.js +0 -12
- package/dist/assets/InvoiceUploadSection-DoR834b4-BezkawDL.js +0 -140
- package/dist/assets/LabeledAddressValueField-YP7bXlgZ-8CibrbWw.js +0 -45
- package/dist/assets/LabeledDocumentField-ED03S2kQ-wbMhlpMQ.js +0 -41
- package/dist/assets/LinkJETransactionPage-_ROjxBMO-DP6JabBY.js +0 -98
- package/dist/assets/LowBalancePopup-CZDcHxyW-BHOAXZjC.js +0 -34
- package/dist/assets/MagicLinkTitleSection-Cn1v72Rs-BaSRKY-c.js +0 -17
- package/dist/assets/Menu-B6iTf2H7-Cqx4dVPp.js +0 -17
- package/dist/assets/MyBankConnectionsSettingsPage-IPPiH6jv-CVF8iXYJ.js +0 -110
- package/dist/assets/MyPendingActivationChargeCardListPage-BTGb1yIE-BD419NGA.js +0 -6
- package/dist/assets/MyProfileSettingsPage-BRK5nWg2--GwgfIws.js +0 -85
- package/dist/assets/NotificationsPage-C7lSAnUb-wDRHsOkp.js +0 -685
- package/dist/assets/PandLWithForecastPage-W4jlNjml-Bcn3UKYp.js +0 -107
- package/dist/assets/ReimbursementApprovalRuleDetailPage-eidNY097-DmIjK42h.js +0 -26
- package/dist/assets/ReimbursementDetailPage-AvqEBxbz-fUbgpa2M.js +0 -314
- package/dist/assets/ReimbursementPromoPage-PshodHUZ-B_XNUegE.js +0 -84
- package/dist/assets/ReimbursementSetUpPage-6P4FT-UC-Bw__edeG.js +0 -140
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-Cas6GzVp-BQcspCuT.js +0 -1
- package/dist/assets/ReportsPage-C7zirS74-CyyHiNy4.js +0 -121
- package/dist/assets/ReviewDetailsPage-ClsyL5-w-_y4o463o.js +0 -290
- package/dist/assets/ScheduleDetailsFixedAssetsPage-zFyJPVpN-BSd6OZtz.js +0 -37
- package/dist/assets/ScheduleDetailsPage-BftjSvA7-Jy_FtZQR.js +0 -37
- package/dist/assets/ScreenRoutes-en4svsq9.js +0 -206
- package/dist/assets/SetUpAccountSection-Bnbi8X23-DL-18RCf.js +0 -378
- package/dist/assets/SignInScreen-Ba17TSWH.js +0 -1
- package/dist/assets/SpendManagementListViewPage-ChNp8dgm-BhMjXPdH.js +0 -123
- package/dist/assets/SpendManagementPerTabPage-D-bOr2-6-GaRieOUe.js +0 -754
- package/dist/assets/SpendManagementSection-kucZgC-H-DLgSRXEX.js +0 -230
- package/dist/assets/SpendMgmtSetupAccountSection-de7hEmtE-CX-1PNOC.js +0 -206
- package/dist/assets/StatementsPage-KnLUSJbm-DvU_Y3UP.js +0 -58
- package/dist/assets/TaskManagementPage-CPLyyK1Y-ena6uodh.js +0 -508
- package/dist/assets/TransactionDetailPage-D1Z1f-DD-DTPxqy3v.js +0 -912
- package/dist/assets/TransactionList-BzJEbOV9-BQZ8x4Oq.js +0 -147
- package/dist/assets/TreasuryOverviewPage-DySunaqy-CWB-hp0S.js +0 -708
- package/dist/assets/TreasuryTransferOrReviewPage-Dzq-FxSM-CX84O_mN.js +0 -576
- package/dist/assets/TrendChart-B_5D-Zud-BUU2-6nI.js +0 -16
- package/dist/assets/UploadAdditionalDocumentOverlay-DhXRLBEg-DvVrgitE.js +0 -38
- package/dist/assets/VendorDetailPage-CEX7xMIN-Djo4PloX.js +0 -257
- package/dist/assets/VendorFirstReviewPage-D9ogNmAK-PlB10gEr.js +0 -730
- package/dist/assets/VendorInternationalWireDetailsPage-Ct689KuY-DAoPjpj5.js +0 -152
- package/dist/assets/VerifyDevice-C27gEWkZ-C7pLL5Wm.js +0 -112
- package/dist/assets/ZeniAccountDetailPage-egmysAfI-DFbZv9KZ.js +0 -300
- package/dist/assets/ZeniAccountNavBarPieces-HNIht0FM-aSJ3m6rj.js +0 -14
- package/dist/assets/analyticsHelper-CVWZE356.js +0 -1
- package/dist/assets/analyticsHelper-or1KkBWk-Plh_6I_p.js +0 -1
- package/dist/assets/downloadPdf-D7p3yKmg-CYmmjPHt.js +0 -1
- package/dist/assets/redux-CEhZD0hA.js +0 -12
- package/dist/assets/toChartData-DEW0iT7T-DrkbvIyQ.js +0 -1
|
@@ -0,0 +1,2932 @@
|
|
|
1
|
+
import{eF as Bn,ao as so,gd as tt,c as Pi,ge as Fi,gf as In,gg as On,gh as zi,gi as Di,gj as Vi,gk as Ri,gl as Se,r as Ei,gm as Gi,gn as Hi,go as Ki,gp as Yi,ff as Ui,gq as qi,gr as Qi,gs as uo,j as t,cZ as Zi,cF as m,d$ as Ce,cG as te,gt as Ji,o as d,h as re,cJ as Wn,q as W,cu as Mn,cr as Xi,gu as Nn,gv as er,O,ex as It,u as w,gw as ho,e2 as He,gx as qt,cO as A,gy as Qt,eD as Zt,gz as Jt,y as G,fL as Xt,fY as Tn,co as go,cp as po,gA as fo,c2 as ht,gB as Ke,e1 as Q,Y as tr,x as me,cV as xo,gC as mo,cP as E,cf as De,gD as nr,gE as xe,eC as en,ep as Pn,c9 as or,ce as $e,gF as gt,gG as Ve,gH as ft,cd as j,eQ as le,gI as ir,C as tn,gJ as nt,gK as Fn,gL as zn,gM as rr,gN as ar,d2 as wo,gO as lr,c$ as cr,f5 as nn,f4 as on,gP as sr,d0 as yo,f8 as bo,ef as dr,gQ as ur,gR as Dn,gS as Vn,gT as hr,gU as gr,eh as pr,dS as fr,gV as xr}from"./index-kF4u7Flm.js";import{n as a,b as T,w as mr,i as P}from"./vendor-Bs1fkIUX.js";import{N as xt,D as wr,R as yr,B as Le,u as $}from"./AccountRow-Be3LIHO--BjLJB43L.js";const ko=(e,n,o,i,r)=>{const l=Bn(i,n),c=Bn(o.startDate,n);if(so(new Date(o.endDate.year(),o.endDate.month()+1,0).toDateString()).isSame(o.endDate,"day")===!1||r.endDate.isSameOrBefore(o.endDate,"day"))return"incomplete";switch(e){case"month":return o.startDate.isAfter(i,"day")?"under_review":void 0;case"quarter":return o.endDate.isAfter(i,"day")?"under_review":void 0;case"year":return o.endDate.isAfter(i,"day")&&c.fyYear>=l.fyYear&&r.endDate.isAfter(i)?"under_review":void 0;default:return}},Hp=e=>so(new Date(e.endDate.year(),e.endDate.month()+1,0).toDateString()).isSame(e.endDate,"day")===!1,br=["this_period_vs_last_period","this_period_vs_last_period_percent","year_to_date_total","free_range_total","year_to_date_last_year_total","rolling_12_months","rolling_12_months_average","this_period_vs_same_period_last_year","this_period_vs_same_period_last_year_percent","same_period_last_year"],kr=e=>br.find(n=>e===n)!=null,rn=e=>e.startsWith("profit_and_loss"),So=e=>e.startsWith("profit_and_loss_by_classes"),an=e=>{switch(e.split("+")[0]){case"net_burn_or_income":case"net_burn_or_income_story_card":case"operating_expenses":case"cash_in_cash_out":case"revenue":case"cash_position":return!0}return!1},Ye=e=>{switch(e.split("+")[0]){case"net_burn_or_income_by_classes":case"operating_expenses_by_classes":case"revenue_by_classes":return!0}return!1},Sr=e=>e.startsWith("cash_flow")||e.startsWith("balance_sheet"),ln=e=>e==="accounts_payable_aging"||e==="accounts_receivable_aging",cn=e=>e.startsWith("operating_expenses_by_vendor"),sn=e=>e.startsWith("flux_analysis_operating_expense"),Cr=(e,n,o,i)=>{var r;return((r=e.monthEndCloseChecksByTenantId[o])===null||r===void 0?void 0:r[n])!=null?e.monthEndCloseChecksByTenantId[o][n].monthEndCloseCheckList.map(c=>{switch(c.id){case"month_end_insights":return{step:c.id,title:c.title,subTitle:c.description,completionStatus:c.progress===100?tt("complete"):tt("incomplete"),isDisabled:i==null,isPrevDisabled:!1,isNextDisabled:!1};case"reconciliation":case"je_schedules":case"missing_receipts":case"flux_analysis":case"transaction_categorization":return{step:c.id,title:c.title,subTitle:c.description,completionStatus:c.progress===100?tt("complete"):tt("incomplete"),isDisabled:!1,isPrevDisabled:!1,isNextDisabled:!1}}}):[]};Pi(e=>e,e=>Fi(e),e=>e.expenseAutomationReconciliationViewState,e=>e.expenseAutomationViewState,e=>e.plaidAccountViewState,e=>e.accountListState,e=>e.accountState,e=>e.classListState,e=>e.classState,e=>e.monthEndCloseChecksState,e=>e.vendorState,(e,n,o,i,r,l,c,s,u,h,p)=>{var g,f,x,b,y;const{selectedPeriodByTenantId:_}=i,C=o.reconTabsState.reconcile.uiState,B=o.reconTabsState.review.uiState,v=_[n.tenantId],L=v!=null?o.accountReconciliationRecordsBySelectedPeriod[In(v)]:void 0,V=((f=(g=On(c,["bank"]))===null||g===void 0?void 0:g.bank)!==null&&f!==void 0?f:[]).reduce((N,F)=>(N.some(se=>se.accountId===F.accountId)||N.push(F),N),[]),R=((b=(x=On(c,["credit_card"]))===null||x===void 0?void 0:x.credit_card)!==null&&b!==void 0?b:[]).reduce((N,F)=>(N.some(se=>se.accountId===F.accountId)||N.push(F),N),[]);if(L==null)return{bankAccounts:[],creditCards:[],reconListUIState:Vi.reconListUIState,accountListNestedAccountHierarchy:[],classListNestedAccountHierarchy:[],allAccountList:[],allClassList:[],fetchStatus:{fetchState:o.fetchState,error:o.error},plaidConnectionDetails:r.expense_automation_reconcile.plaidConnectionDetails,completionStatus:"incomplete",refreshStatus:o.refreshStatus,selectedTab:o.selectedTab,monthYearPeriod:v,selectedAccountId:o.selectedAccountId,statementUploadChosen:o.statementUploadChosen,accountReconciliationsByAccountID:{},reconciliationTabsState:Di,actionFetchStates:zi,reviewTabSelectedVendorByTransactionId:{},accountReconciliationBySectionID:{assets:{sectionId:"assets",accountIDs:[],totalBankBalance:void 0,totalClearedBalance:void 0,totalReconciledBalance:void 0,totalVariance:void 0,totalVariancePercentage:void 0},liabilities:{sectionId:"liabilities",accountIDs:[],totalBankBalance:void 0,totalClearedBalance:void 0,totalReconciledBalance:void 0,totalVariance:void 0,totalVariancePercentage:void 0}}};const Z=L.accountIDs,q={},ue=[],ee=[],D={},J={};Z.forEach(N=>{const F=Ri(e,N,v);if(F==null){console.error(`Account reconciliation not found for account ${N} in period ${v.toString()}`);return}const se=o.accountConnectionStatusByAccountID[N];if(se==null){console.error(`Account connection status not found for account ${N} in period ${v.toString()}`);return}const I=F.account,X=_r(F.transactionsToReconcile,C);F.transactionsToReconcile=X;const ke=jr(F.transactionsToReview,B);F.transactionsToReview=ke;let he,ge,ve;const oe={};I.accountType==="bank"?(he=D.balanceTotal!=null?Se(D.balanceTotal.amount):void 0,ge=D.clearedTotal!=null?Se(D.clearedTotal.amount):void 0,ve=D.varianceTotal!=null?Se(D.varianceTotal.amount):void 0):I.accountType==="credit_card"&&(he=J.balanceTotal!=null?Se(J.balanceTotal.amount):void 0,ge=J.clearedTotal!=null?Se(J.clearedTotal.amount):void 0,ve=J.varianceTotal!=null?Se(J.varianceTotal.amount):void 0),F.balance!=null&&he!=null?he=he.plus(F.balance.amount):F.balance!=null&&he==null&&(he=Se(F.balance.amount)),F.clearedBalance!=null&&ge!=null?ge=ge.plus(F.clearedBalance.amount):F.clearedBalance!=null&&ge==null&&(ge=Se(F.clearedBalance.amount)),he!=null&&(oe.balanceTotal=Object.assign(Object.assign({},F.currency),{amount:parseFloat(he.toFixed(2))})),ge!=null&&(oe.clearedTotal=Object.assign(Object.assign({},F.currency),{amount:parseFloat(ge.toFixed(2))})),ge!=null&&he!=null?ve=ge.minus(he).abs():ge!=null?ve=ge.abs():he!=null&&(ve=Se(0).minus(he).abs()),ve!=null&&(oe.varianceTotal=Object.assign(Object.assign({},F.currency),{amount:parseFloat(ve.toFixed(2))})),oe.variancePercentage=oe.varianceTotal!=null&&oe.balanceTotal!=null&&oe.balanceTotal.amount!==0?Math.abs(oe.varianceTotal.amount/oe.balanceTotal.amount*100):void 0,I?.accountType==="bank"?(ue.push(N),D.balanceTotal=oe.balanceTotal,D.clearedTotal=oe.clearedTotal,D.varianceTotal=oe.varianceTotal,D.variancePercentage=oe.variancePercentage):I.accountType==="credit_card"&&(ee.push(N),J.balanceTotal=oe.balanceTotal,J.clearedTotal=oe.clearedTotal,J.varianceTotal=oe.varianceTotal,J.variancePercentage=oe.variancePercentage),q[N]={accountConnectionStatus:se.status,paymentAccountId:se.paymentAccountId,connectionInProgress:se.connectionInProgress,accountReconEntity:F,refreshStatus:L.reconciliationByAccountID[N].refreshStatus,statementDeleteStatus:L.reconciliationByAccountID[N].statementDeleteStatus,statementUpdateStatus:L.reconciliationByAccountID[N].statementUpdateStatus,statementUploadStatus:L.reconciliationByAccountID[N].statementUploadStatus,localData:L.reconciliationByAccountID[N].localData,statementParseInProgress:L.reconciliationByAccountID[N].statementParseInProgress,transactionFetchState:Ei([L.reconciliationByAccountID[N].transactionFetchState,l.byReportId.accountList])}});const ce={assets:{sectionId:"assets",accountIDs:ue,totalBankBalance:D.balanceTotal,totalClearedBalance:D.clearedTotal,totalReconciledBalance:D.varianceTotal,totalVariance:D.varianceTotal,totalVariancePercentage:D.variancePercentage},liabilities:{sectionId:"liabilities",accountIDs:ee,totalBankBalance:J.balanceTotal,totalClearedBalance:J.clearedTotal,totalReconciledBalance:J.varianceTotal,totalVariance:J.varianceTotal,totalVariancePercentage:J.variancePercentage}},fe=Gi(l,"accountList"),Ae=Hi(s),Xe=Ki(c,l,"accountList"),et=Yi(u,s).classes.map(N=>Ui(N,["accountIds","key"])),Be=(y=(v!=null?Cr(h,In(v),n.tenantId):[]).find(N=>N.step==="reconciliation"))===null||y===void 0?void 0:y.completionStatus,Ne=Be??"incomplete",At=qi(o.reconTabsState.review.localData),Bt=Object.fromEntries(At.map(N=>{var F;const se=o.reconTabsState.review.localData[N],I=(F=se?.vendor)===null||F===void 0?void 0:F.id;if(I==null)return null;const X=Qi(p,I);return X==null?null:[N,X]}).filter(N=>N!==null));return{bankAccounts:V,creditCards:R,accountReconciliationsByAccountID:q,fetchStatus:{fetchState:o.fetchState,error:o.error},plaidConnectionDetails:r.expense_automation_reconcile.plaidConnectionDetails,reconciliationTabsState:o.reconTabsState,completionStatus:Ne,refreshStatus:o.refreshStatus,selectedTab:o.selectedTab,selectedDrawerAccountId:o.selectedDrawerAccountId,statementUploadChosen:o.statementUploadChosen,monthYearPeriod:v,accountReconciliationBySectionID:ce,selectedAccountId:o.selectedAccountId,selectedReconAccount:o.selectedAccountId!=null&&q[o.selectedAccountId]!=null?q[o.selectedAccountId]:void 0,accountListNestedAccountHierarchy:fe,actionFetchStates:o.actionFetchState,classListNestedAccountHierarchy:Ae,allAccountList:Xe.accounts,allClassList:et,reviewTabSelectedVendorByTransactionId:Bt,reconListUIState:o.reconListUIState}});const dn=e=>e.endsWith("reconciliation");function _r(e,n){const{sortKey:o,sortOrder:i}=n;return uo(e,r=>{var l,c,s,u,h,p;switch(o){case"clearedDate":return(c=(l=r.clearedDate)===null||l===void 0?void 0:l.valueOf())!==null&&c!==void 0?c:null;case"type":return r.type.toLowerCase();case"payee":return(u=(s=r.merchantName)===null||s===void 0?void 0:s.toLowerCase())!==null&&u!==void 0?u:null;case"account":return(p=(h=r.accountName)===null||h===void 0?void 0:h.toLowerCase())!==null&&p!==void 0?p:null;case"transactionDirection":return r.transactionDirection.toLowerCase();case"memo":return r.memo.toLowerCase();case"amount":return r.amount.amount;case"date":default:return r.date.valueOf()}},i==="ascending"?"asc":"desc")}function jr(e,n){const{sortKey:o,sortOrder:i}=n;return uo(e,r=>{var l,c,s,u,h;switch(o){case"match":return(c=(l=r.recommendedAction)===null||l===void 0?void 0:l.recommendedTransactions.length)!==null&&c!==void 0?c:null;case"payee":return(h=(u=(s=r.recommendedAction.recommendedTransactions[0])===null||s===void 0?void 0:s.merchantName)===null||u===void 0?void 0:u.toLowerCase())!==null&&h!==void 0?h:null;case"direction":return r.transactionDirection.toLowerCase();case"memo":return r.memo.toLowerCase();case"amount":return r.amount.amount;case"date":default:return r.transactionDate.valueOf()}},i==="ascending"?"asc":"desc")}function ne(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 Ce("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return te("0,0",e?.balance)}function ie(e){return te("0,0",e?.forecast)}function Co(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return Ce("0.00%",e.totalPercentValue)}return te("0,0",e?.totalBalance)}function Pt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return Ce("0.00%",e.forecastPercentValue)}return te("0,0",e?.totalForecast)}function we(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return Ce("0.00%",Math.floor(n*100)/100)}else return Ce("0.00%",void 0)}function ye(e){if(e!=null&&e.forecast!=null){const n=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return te("0,0",Object.assign({},e.forecast,{amount:n}))}else return te("0,0",null)}function _o(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 Ce("0.00%",Math.floor(n*100)/100)}else return Ce("0.00%",void 0)}function jo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return te("0,0",Object.assign({},e.totalForecast,{amount:n}))}else return te("0,0",null)}const Ue=(e,n,o)=>{const{startDate:i,balanceType:r}=n,{dateFormat:{visual:l}}=O.getLocalizedStrings();switch(o){case"month":return r==="default"||r==="default_with_percent"?`${It(i,l.MMMYYYYFormat,e)}`:Ot(r,o);case"quarter":return r==="default"||r==="default_with_percent"?`${O.getLocalizedStrings().reports.quarterPrefix}${It(i,l.QYYYYformat,e)}`:Ot(r,o);case"year":return r==="default"||r==="default_with_percent"?`${It(i,l.YYYYformat,e)}`:Ot(r,o);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function Ot(e,n){return O.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const Kp=(e,n,o)=>{const i=n.length==0?e:`${e}_${n.join("_")}`;return o!=null&&o.trim().length>0?`${i}_${o}`:`${i}_${Ji(10)}`},vr=a.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex: 1 1 auto;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: ${e=>e.heightValue}px;
|
|
6
|
+
justify-content: flex-start;
|
|
7
|
+
align-items: center;
|
|
8
|
+
padding-right: ${$.wrapperPadding}px;
|
|
9
|
+
`,$r=a.div`
|
|
10
|
+
cursor: default;
|
|
11
|
+
user-select: none;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex: 1 1 auto;
|
|
14
|
+
flex-flow: row;
|
|
15
|
+
justify-content: flex-start;
|
|
16
|
+
align-items: center;
|
|
17
|
+
`,Lr=a.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: flex-start;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: ${d.sp2};
|
|
22
|
+
width: ${$.leftHeadingWidth}px;
|
|
23
|
+
`,Ar=a.div`
|
|
24
|
+
display: flex;
|
|
25
|
+
flex: 1 1 auto;
|
|
26
|
+
justify-content: flex-end;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: ${d.sp4};
|
|
29
|
+
`,Br=a(le)`
|
|
30
|
+
width: ${$.bankBalanceWidth}px;
|
|
31
|
+
min-width: ${$.bankBalanceWidth}px;
|
|
32
|
+
text-align: right;
|
|
33
|
+
`,Ir=a(le)`
|
|
34
|
+
width: ${$.clearedBalanceWidth}px;
|
|
35
|
+
min-width: ${$.clearedBalanceWidth}px;
|
|
36
|
+
text-align: right;
|
|
37
|
+
`,Or=a(le)`
|
|
38
|
+
width: ${$.statusWidth}px;
|
|
39
|
+
min-width: ${$.statusWidth}px;
|
|
40
|
+
`,Wr=a.div`
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-shrink: 0;
|
|
43
|
+
gap: ${d.sp3};
|
|
44
|
+
width: ${$.varianceWidth}px;
|
|
45
|
+
min-width: ${$.varianceWidth}px;
|
|
46
|
+
flex-direction: row;
|
|
47
|
+
justify-content: flex-end;
|
|
48
|
+
align-items: center;
|
|
49
|
+
text-align: center;
|
|
50
|
+
`,Mr=a.div`
|
|
51
|
+
width: ${$.variancePercentageWidth}px;
|
|
52
|
+
min-width: ${$.variancePercentageWidth}px;
|
|
53
|
+
text-align: right;
|
|
54
|
+
margin-right: ${d.sp2};
|
|
55
|
+
`,Nr=a.div`
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
align-items: center;
|
|
59
|
+
`,Tr=a.div`
|
|
60
|
+
display: flex;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
align-items: center;
|
|
63
|
+
`;function Pr({height:e}){const n=W();return t.jsx(vr,{heightValue:e,windowSize:n,children:t.jsxs($r,{children:[t.jsxs(Lr,{children:[t.jsx(Nr,{children:t.jsx(xe,{isLoading:!0,customStyle:{height:d.sp4,maxWidth:d.sp4,width:d.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(Tr,{children:t.jsx(xe,{isLoading:!0,customStyle:{height:d.sp4,width:$.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(Ar,{children:[t.jsx(Br,{children:t.jsx(xe,{isLoading:!0,position:"right",customStyle:{height:d.sp4,width:$.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(Ir,{children:t.jsx(xe,{isLoading:!0,position:"right",customStyle:{height:d.sp4,width:$.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(Wr,{children:[t.jsx(xe,{isLoading:!0,position:"right",customStyle:{height:d.sp4,width:$.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(Mr,{children:t.jsx(xe,{isLoading:!0,customStyle:{height:d.sp4,width:$.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(Or,{children:t.jsx(xe,{isLoading:!0,customStyle:{height:d.sp4,width:$.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const Fr=a.div`
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: row;
|
|
66
|
+
height: ${e=>e.heightValue}px;
|
|
67
|
+
padding-right: ${$.wrapperPadding}px;
|
|
68
|
+
`;function zr({height:e}){return t.jsx(Fr,{heightValue:e})}const Dr=a.div`
|
|
69
|
+
user-select: none;
|
|
70
|
+
display: flex;
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: ${e=>e.height}px;
|
|
73
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
padding-right: ${$.wrapperPadding}px;
|
|
76
|
+
`,Vr=a.div`
|
|
77
|
+
flex: 1 1 auto;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
height: ${d.sp8};
|
|
81
|
+
justify-content: flex-start;
|
|
82
|
+
align-items: center;
|
|
83
|
+
`,Rr=a.div`
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: row;
|
|
86
|
+
justify-content: flex-end;
|
|
87
|
+
width: ${$.leftHeadingWidth}px;
|
|
88
|
+
`,Er=a.div`
|
|
89
|
+
display: flex;
|
|
90
|
+
flex: 1 1 auto;
|
|
91
|
+
flex-direction: row;
|
|
92
|
+
justify-content: flex-end;
|
|
93
|
+
`,Gr=a(yo)`
|
|
94
|
+
user-select: none;
|
|
95
|
+
color: ${e=>e.theme.colors.primary};
|
|
96
|
+
width: ${$.leftTimeframeWidth}px;
|
|
97
|
+
min-width: ${$.leftTimeframeWidth}px;
|
|
98
|
+
flex: 1 1 auto;
|
|
99
|
+
`,Hr=a(j)`
|
|
100
|
+
user-select: none;
|
|
101
|
+
`,Kr=a.div`
|
|
102
|
+
max-height: ${d.sp8};
|
|
103
|
+
min-height: ${d.sp8};
|
|
104
|
+
min-width: ${e=>e.widthValue}px;
|
|
105
|
+
max-width: ${e=>e.widthValue}px;
|
|
106
|
+
display: flex;
|
|
107
|
+
justify-content: center;
|
|
108
|
+
align-items: center;
|
|
109
|
+
background-color: ${e=>e.theme.colors.background};
|
|
110
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
111
|
+
border-radius: ${d.sp2};
|
|
112
|
+
color: ${e=>e.theme.colors.primary};
|
|
113
|
+
margin-right: ${e=>e.marginRight===!0?d.sp2:d.sp0};
|
|
114
|
+
`,Yr=a.div`
|
|
115
|
+
width: ${$.bankBalanceWidth}px;
|
|
116
|
+
`,Ur=a.div`
|
|
117
|
+
width: ${$.bankBalanceRightTimeframeWidth}px;
|
|
118
|
+
`,qr=a.div`
|
|
119
|
+
width: ${$.clearedBalanceWidth}px;
|
|
120
|
+
margin-right: ${$.tickLeftMargin}px;
|
|
121
|
+
`,Qr=a.div`
|
|
122
|
+
width: ${$.varianceTimeframeWidth}px;
|
|
123
|
+
align-self: flex-end;
|
|
124
|
+
`,Zr=a.div`
|
|
125
|
+
width: ${$.spacerLineWidth}px;
|
|
126
|
+
`,Jr=a.div`
|
|
127
|
+
width: ${$.statusWidth}px;
|
|
128
|
+
`,ot=({title:e,type:n})=>t.jsx(Kr,{widthValue:$[n],children:t.jsx(Hr,{children:e})});function Xr({sectionTitle:e,height:n,isLoading:o}){const i=O.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(Dr,{height:n,children:t.jsxs(Vr,{children:[t.jsx(Rr,{children:t.jsx(xe,{isLoading:o,customStyle:{height:d.sp4,width:$.leftLabelWidth},children:t.jsx(Gr,{"data-testid":m("account-recon-section-title",e),children:e})})}),t.jsxs(Er,{children:[t.jsx(Yr,{children:t.jsx(xe,{isLoading:o,customStyle:{height:d.sp7,width:$.bankBalanceTimeframeWidth,borderRadius:d.sp2},children:t.jsx(ot,{title:i.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(Ur,{}),t.jsx(qr,{children:t.jsx(xe,{isLoading:o,customStyle:{height:d.sp7,width:$.clearedBalanceTimeframeWidth,borderRadius:d.sp2},children:t.jsx(ot,{title:i.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(Qr,{children:t.jsx(xe,{isLoading:o,customStyle:{height:d.sp7,width:$.varianceTimeframeWidth,borderRadius:d.sp2},children:t.jsx(ot,{title:i.variance,type:"varianceTimeframeWidth"})})}),t.jsx(Zr,{}),t.jsx(Jr,{children:t.jsx(xe,{isLoading:o,customStyle:{height:d.sp7,width:$.statusTimeframeWidth,borderRadius:d.sp2},children:t.jsx(ot,{title:i.status,type:"statusTimeframeWidth"})})})]})]})})}const ea=a.div`
|
|
129
|
+
display: flex;
|
|
130
|
+
flex-direction: row;
|
|
131
|
+
height: ${e=>e.heightValue}px;
|
|
132
|
+
align-items: center;
|
|
133
|
+
padding-right: ${$.wrapperPadding}px;
|
|
134
|
+
`,ta=a(yo)`
|
|
135
|
+
user-select: none;
|
|
136
|
+
color: ${e=>e.theme.colors.primary};
|
|
137
|
+
`;function na({height:e,title:n}){return t.jsx(ea,{heightValue:e,children:t.jsx(ta,{"data-testid":m("account-recon-section-title",n),children:n})})}const oa=a.div`
|
|
138
|
+
display: flex;
|
|
139
|
+
flex: 1 1 auto;
|
|
140
|
+
width: 100%;
|
|
141
|
+
height: ${e=>e.heightValue}px;
|
|
142
|
+
justify-content: flex-start;
|
|
143
|
+
align-items: center;
|
|
144
|
+
padding-right: ${$.wrapperPadding}px;
|
|
145
|
+
`,ia=a.div`
|
|
146
|
+
cursor: default;
|
|
147
|
+
user-select: none;
|
|
148
|
+
display: flex;
|
|
149
|
+
flex: 1 1 auto;
|
|
150
|
+
flex-flow: row;
|
|
151
|
+
justify-content: flex-start;
|
|
152
|
+
align-items: center;
|
|
153
|
+
color: ${e=>e.theme.colors.primary};
|
|
154
|
+
`,ra=a.div`
|
|
155
|
+
display: flex;
|
|
156
|
+
flex: 1 1 auto;
|
|
157
|
+
justify-content: flex-start;
|
|
158
|
+
align-items: center;
|
|
159
|
+
gap: ${d.sp2};
|
|
160
|
+
`,aa=a(le)`
|
|
161
|
+
user-select: none;
|
|
162
|
+
clear: both;
|
|
163
|
+
display: inline-block;
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
white-space: nowrap;
|
|
166
|
+
text-overflow: ellipsis;
|
|
167
|
+
text-align: left;
|
|
168
|
+
color: ${e=>e.theme.colors.primary};
|
|
169
|
+
width: ${$.leftLabelWidth}px;
|
|
170
|
+
min-width: ${$.leftLabelWidth}px;
|
|
171
|
+
`,la=a.div`
|
|
172
|
+
display: flex;
|
|
173
|
+
flex: 1 1 auto;
|
|
174
|
+
justify-content: flex-end;
|
|
175
|
+
align-items: center;
|
|
176
|
+
`,ca=a(le)`
|
|
177
|
+
width: ${$.bankBalanceWidth}px;
|
|
178
|
+
min-width: ${$.bankBalanceWidth}px;
|
|
179
|
+
text-align: right;
|
|
180
|
+
`,sa=a(le)`
|
|
181
|
+
width: ${$.clearedBalanceWidth}px;
|
|
182
|
+
min-width: ${$.clearedBalanceWidth}px;
|
|
183
|
+
text-align: right;
|
|
184
|
+
margin-left: ${$.tickLeftMargin}px;
|
|
185
|
+
`,da=a(le)`
|
|
186
|
+
width: ${$.statusWidth}px;
|
|
187
|
+
min-width: ${$.statusWidth}px;
|
|
188
|
+
height: 1px;
|
|
189
|
+
`,ua=a.div`
|
|
190
|
+
display: flex;
|
|
191
|
+
flex-direction: row;
|
|
192
|
+
min-width: ${$.spacerLineWidth}px;
|
|
193
|
+
width: ${$.spacerLineWidth}px;
|
|
194
|
+
align-items: center;
|
|
195
|
+
`,ha=a.div`
|
|
196
|
+
width: 1px;
|
|
197
|
+
margin-left: ${d.sp3};
|
|
198
|
+
height: ${e=>e.heightValue}px;
|
|
199
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
200
|
+
`,ga=a.div`
|
|
201
|
+
display: flex;
|
|
202
|
+
flex-shrink: 0;
|
|
203
|
+
width: ${$.varianceTimeframeWidth}px;
|
|
204
|
+
min-width: ${$.varianceTimeframeWidth}px;
|
|
205
|
+
flex-direction: row;
|
|
206
|
+
justify-content: flex-end;
|
|
207
|
+
align-items: center;
|
|
208
|
+
text-align: center;
|
|
209
|
+
margin-left: ${$.tickLeftMargin}px;
|
|
210
|
+
`,pa=a(le)`
|
|
211
|
+
border-radius: ${d.sp1};
|
|
212
|
+
color: ${e=>e.textColor.hex()};
|
|
213
|
+
min-width: ${$.varianceNumberWidth}px;
|
|
214
|
+
text-align: right;
|
|
215
|
+
margin-right: ${d.sp2};
|
|
216
|
+
`,fa=a(le)`
|
|
217
|
+
border-radius: ${d.sp1};
|
|
218
|
+
padding: ${d.sp0} ${d.sp1};
|
|
219
|
+
justify-content: center;
|
|
220
|
+
text-align: center;
|
|
221
|
+
color: ${e=>e.textColor.hex()};
|
|
222
|
+
background-color: ${e=>e.bgColor.hex()};
|
|
223
|
+
min-width: ${$.variancePercentageWidth}px;
|
|
224
|
+
`,{expenseAutomation:{accountRecon:{reconciliation:{headers:Rn}}},common:{strings:{percentage:xa,hyphen:pt}}}=O.getLocalizedStrings();function ma({height:e,sectionData:n}){const o=W(),i=n.totalVariance,r=n.totalVariancePercentage,l=me();return t.jsx(oa,{"data-testid":m("total-row-root-container"),heightValue:e,windowSize:o,children:t.jsxs(ia,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsxs(ra,{children:[t.jsx(Le,{firstLetter:Rn.section[n.sectionId].subTitle.charAt(0),color:new A(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(aa,{children:Rn.section[n.sectionId].subTitle})]}),t.jsxs(la,{children:[t.jsx(ca,{children:n.totalBankBalance!=null?te("0,0",n.totalBankBalance):pt}),t.jsx(sa,{children:n.totalClearedBalance!=null?te("0,0",n.totalClearedBalance):pt}),t.jsx(wa,{variance:i,variancePercentage:r}),t.jsx(ua,{children:t.jsx(ha,{heightValue:e})}),t.jsx(da,{})]})]})})}const wa=({variance:e,variancePercentage:n})=>{const o=me(),i=new A(o.colors.hero),r=new A(o.colors.hero),l=new A(o.colors.background),c=e!=null&&e.amount===0?"0%":n!=null?n===0?"0%":`${n.toFixed(2)}${xa}`:pt;return t.jsxs(ga,{children:[t.jsx(pa,{textColor:i,children:e!=null?te("0,0",e):pt}),t.jsx(fa,{textColor:r,bgColor:l,children:c})]})};function ya(){return t.jsx(zr,{height:xt("section")})}function ba(){return t.jsx(Pr,{height:xt("loading_in_progress")})}function ka(e,n){if(e.element.kind!=="timeframe_headers")return null;const o=O.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,i=e.element.data,r=i.accountIDs.length===0;return t.jsx(Xr,{sectionTitle:o.section[i.sectionId].title,isLoading:r,isSticky:n,height:xt("timeframe_headers")})}const Sa=(e,n,o)=>{const i=e.element.data;return t.jsx(ma,{isSticky:o,height:n,sectionData:i})},Ca=(e,n)=>{const o=e.element.data,i=O.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(na,{height:n,title:i.section[o.sectionId].title})},_a=(e,n,o)=>{const i=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?i.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(yr,{height:n,accountRecon:i,isLastRow:o,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:d.sp4,balanceHeightInPx:w[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:d.sp4,balanceLeftMarginInPx:w[4],titleWidth:new G(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128};function ja(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 va(e,n,o=0){const i=["summary"];switch(e){case"section":return!i.includes(n);case"section_with_ac_only":return!i.includes(n);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(i.includes(n)||n==="detailed"&&o>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(i.includes(n)||n==="detailed"&&o>0);case"title_string_only":return!i.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(n==="detailed"&&o>0);case"checkbox_and_name_only":return!0;default:return!1}}const be=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!0}},_e=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},vo={emptyLeftContainer:new G(w[0],w[5])},$a=a(j)`
|
|
225
|
+
margin-left: ${e=>!e.hasChildren&&e.depth!==0?d.sp3:d.sp2};
|
|
226
|
+
overflow: hidden;
|
|
227
|
+
white-space: nowrap;
|
|
228
|
+
text-overflow: ellipsis;
|
|
229
|
+
width: ${e=>k.titleWidth.value(e.windowSize)-(e.depth+1)*45}px;
|
|
230
|
+
`,La=a.div`
|
|
231
|
+
display: flex;
|
|
232
|
+
height: ${d.sp6};
|
|
233
|
+
align-items: center;
|
|
234
|
+
`,Aa=a.div`
|
|
235
|
+
display: flex;
|
|
236
|
+
height: ${d.sp6};
|
|
237
|
+
align-items: center;
|
|
238
|
+
`,Ba=a.div`
|
|
239
|
+
height: ${d.sp6};
|
|
240
|
+
width: ${d.sp3};
|
|
241
|
+
`,Ia=a.div`
|
|
242
|
+
width: 14px;
|
|
243
|
+
height: ${d.sp1};
|
|
244
|
+
`,Oa=a.div`
|
|
245
|
+
width: ${d.sp2};
|
|
246
|
+
height: ${d.sp1};
|
|
247
|
+
`,$o=a.div`
|
|
248
|
+
width: ${e=>vo.emptyLeftContainer.valuePx(e.windowSize)};
|
|
249
|
+
height: ${d.sp1};
|
|
250
|
+
`,Re=a.div`
|
|
251
|
+
display: flex;
|
|
252
|
+
`,Wa=({ancestorMetadata:e,depth:n,name:o})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(i=>{const r=e[i];return t.jsxs(Re,{children:[r.depth===0?t.jsx(zn,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ve,{},i):t.jsx(ft,{}):null,r.depth>=1?t.jsx(zn,{depth:r.depth}):null]},o+i)}):null}),Lo=({ancestorMetadata:e,depth:n,name:o})=>{const i=W();return n===0?e[n].hasChildren===!1?t.jsx($o,{windowSize:i}):t.jsxs(Re,{children:[t.jsx(nt,{depth:n}),t.jsx(Ve,{}),t.jsx(nt,{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(Re,{children:[l.depth===0?t.jsx(nt,{depth:l.depth}):null,r>=2||r===1&&(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?n===1?t.jsx(Fn,{index:1}):t.jsx(Fn,{index:2}):null,(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?t.jsx(Ve,{},r):t.jsx(ft,{}),t.jsx(nt,{depth:l.depth+1})]},o+r)}),n===1&&e[n].hasChildren!=!0?t.jsx(Oa,{}):null]})},Ao=({ancestorMetadata:e,depth:n,name:o})=>n===0?t.jsx(Ia,{}):t.jsx(t.Fragment,{children:[...Array(n).keys()].map(i=>{const r=e[i],l=i!==n?e[i+1]:void 0;return t.jsxs(Re,{children:[r!=null&&r.depth===0?t.jsx(gt,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Ve,{},i):t.jsx(ft,{}),t.jsx(gt,{depth:r!=null?r.depth+1:0})]},o+i)})}),Ma=({ancestorMetadata:e,depth:n,name:o})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(i=>{const r=e[i];return r==null?null:t.jsxs(Re,{children:[r.depth===0?t.jsx(gt,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ve,{},i):t.jsx(ft,{}):null,r.depth>=1?t.jsx(gt,{depth:r.depth}):null]},o+i)}):null}),Na=({depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:l,onIconClick:c})=>{let s=t.jsx(Ba,{});return e===0&&r&&(s=t.jsx(ur,{collapsed:l,onIconClick:c})),e>0&&(r&&!i&&n&&(s=t.jsx(Dn,{collapsed:l,onIconClick:c})),o&&i&&n&&(s=t.jsx(Vn,{})),o&&i&&!n&&(s=t.jsx(hr,{})),r&&i&&!n&&(s=t.jsx(gr,{collapsed:l,onIconClick:c})),r&&i&&n&&(s=t.jsx(Dn,{collapsed:l,onIconClick:c})),n&&o&&(s=t.jsx(Vn,{}))),s},Ta=({depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:l,onIconClick:c})=>t.jsx(Aa,{children:t.jsx(Na,{depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:l,onIconClick:c})});function Bo(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const o=W();return t.jsxs(La,{children:[e.classDepth!=null?t.jsx(Lo,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx($o,{windowSize:o}):null,t.jsx(Ma,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(Ta,{...e}),t.jsx($a,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:o,title:n,children:n})]})}const Y={balanceHeight:d.sp4,balanceWidth:"166px",balanceLeftMargin:d.sp4,titleWidth:new G(200,325,405),nameLogoWidth:new G(w[4],w[4]),nameLogoHeight:new G(w[4],w[4])};function Pa(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 Fa(){return!0}const it=[new G(w[4],w[8]),new G(44,76),new G(69,102),new G(93,124),new G(113,143)],za=a.div`
|
|
253
|
+
display: flex;
|
|
254
|
+
flex: 1 1 auto;
|
|
255
|
+
max-height: 1px;
|
|
256
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
257
|
+
`,Da=a.div`
|
|
258
|
+
display: flex;
|
|
259
|
+
flex: 1 1 auto;
|
|
260
|
+
flex-flow: row;
|
|
261
|
+
justify-content: flex-start;
|
|
262
|
+
align-items: center;
|
|
263
|
+
`,Va=a.div`
|
|
264
|
+
display: flex;
|
|
265
|
+
flex-direction: row;
|
|
266
|
+
flex-shrink: 2;
|
|
267
|
+
flex-grow: 1;
|
|
268
|
+
align-items: center;
|
|
269
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
270
|
+
width: ${e=>Y.titleWidth.valuePx(e.windowSize)};
|
|
271
|
+
max-width: ${e=>Y.titleWidth.valuePx(e.windowSize)};
|
|
272
|
+
${({isSticky:e})=>e?P`
|
|
273
|
+
position: -webkit-sticky;
|
|
274
|
+
position: sticky;
|
|
275
|
+
top: ${d.sp0};
|
|
276
|
+
left: ${d.sp0};
|
|
277
|
+
`:null}
|
|
278
|
+
`,Ra=a.div`
|
|
279
|
+
width: ${e=>e.noMarginForEntity?it[e.nestingLevel].value(e.windowSize)-w[5]:it[e.nestingLevel].value(e.windowSize)}px;
|
|
280
|
+
max-width: ${e=>e.noMarginForEntity?it[e.nestingLevel].value(e.windowSize)-w[5]:it[e.nestingLevel].value(e.windowSize)}px;
|
|
281
|
+
height: 1px;
|
|
282
|
+
`,Ea=a.div`
|
|
283
|
+
display: flex;
|
|
284
|
+
flex: 1 1 auto;
|
|
285
|
+
max-height: 1px;
|
|
286
|
+
height: 1px;
|
|
287
|
+
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
288
|
+
`,Ga=a.div`
|
|
289
|
+
display: flex;
|
|
290
|
+
flex: 1 1 auto;
|
|
291
|
+
max-height: 1px;
|
|
292
|
+
height: 1px;
|
|
293
|
+
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
294
|
+
`,En=e=>{const n=W(),o=me();return t.jsxs(Da,{"data-testid":m("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(Va,{windowSize:n,isSticky:e.isSticky,"data-testid":m("sub-entity-name-container","vendor_row_separator"),children:[t.jsx(Ra,{"data-testid":m("sub-entity-empty-container","vendor_row_separator"),nestingLevel:e.nestingLevel,noMarginForEntity:e.noMarginForEntity,windowSize:n}),t.jsx(Ea,{"data-testid":m("sub-entity-name-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]}),t.jsx(Ga,{"data-testid":m("sub-entity-remaining-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]})};function Ft({kind:e,isScrolling:n,subEntityProps:o}){switch(e){case"vendor_row_separator":return t.jsx(En,{nestingLevel:o?.nestingLevel??0,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!1,noMarginForEntity:o?.noMarginForEntity??!0});case"end_row_separator":return t.jsx(za,{"data-testid":m("end-row-separator",e),isScrolling:n});case"subtotal_row_separator":return t.jsx(En,{nestingLevel:o?.nestingLevel??1,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!0,noMarginForEntity:o?.noMarginForEntity??!1})}}const Io=a.div`
|
|
295
|
+
display: flex;
|
|
296
|
+
flex: 1 1 auto;
|
|
297
|
+
width: fit-content;
|
|
298
|
+
min-width: 100%;
|
|
299
|
+
flex-direction: column;
|
|
300
|
+
height: ${e=>e.containerHeight}px;
|
|
301
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
302
|
+
`,Oo=a.div`
|
|
303
|
+
user-select: none;
|
|
304
|
+
display: flex;
|
|
305
|
+
flex: 1 1 auto;
|
|
306
|
+
flex-flow: row;
|
|
307
|
+
justify-content: flex-start;
|
|
308
|
+
align-items: center;
|
|
309
|
+
height: ${e=>e.containerHeight}px;
|
|
310
|
+
&:hover {
|
|
311
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
312
|
+
}
|
|
313
|
+
`,Wo=a.div`
|
|
314
|
+
display: flex;
|
|
315
|
+
flex: 1 0 auto;
|
|
316
|
+
flex-direction: row;
|
|
317
|
+
justify-content: flex-end;
|
|
318
|
+
`,Mo=a.div`
|
|
319
|
+
display: flex;
|
|
320
|
+
flex-direction: row;
|
|
321
|
+
justify-content: flex-start;
|
|
322
|
+
`,No=a(j)`
|
|
323
|
+
user-select: none;
|
|
324
|
+
min-width: ${Y.balanceWidth};
|
|
325
|
+
max-width: ${Y.balanceWidth};
|
|
326
|
+
text-align: right;
|
|
327
|
+
margin-left: ${Y.balanceLeftMargin};
|
|
328
|
+
border: 1px solid transparent;
|
|
329
|
+
color: ${e=>e.theme.colors.hero};
|
|
330
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
331
|
+
&:hover {
|
|
332
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
333
|
+
}
|
|
334
|
+
`,Ha=a(j)`
|
|
335
|
+
user-select: none;
|
|
336
|
+
clear: both;
|
|
337
|
+
display: inline-block;
|
|
338
|
+
overflow: hidden;
|
|
339
|
+
white-space: nowrap;
|
|
340
|
+
text-overflow: ellipsis;
|
|
341
|
+
text-align: left;
|
|
342
|
+
margin-left: ${d.sp2};
|
|
343
|
+
`,To=a.div`
|
|
344
|
+
display: flex;
|
|
345
|
+
flex-direction: row;
|
|
346
|
+
flex-shrink: 2;
|
|
347
|
+
flex-grow: 1;
|
|
348
|
+
align-items: center;
|
|
349
|
+
height: ${e=>e.containerHeight}px;
|
|
350
|
+
width: ${e=>Y.titleWidth.valuePx(e.windowSize)};
|
|
351
|
+
max-width: ${e=>Y.titleWidth.valuePx(e.windowSize)};
|
|
352
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
353
|
+
${({isSticky:e})=>e?P`
|
|
354
|
+
position: sticky;
|
|
355
|
+
top: ${d.sp0};
|
|
356
|
+
left: ${d.sp0};
|
|
357
|
+
`:null}
|
|
358
|
+
cursor: pointer;
|
|
359
|
+
color: ${e=>e.theme.colors.hero};
|
|
360
|
+
&:hover {
|
|
361
|
+
color: ${e=>e.theme.colors.primary};
|
|
362
|
+
}
|
|
363
|
+
`,Po=({balance:e,isOpen:n})=>{const o=n?e?.balance:e?.totalBalance;return t.jsx(Mo,{children:t.jsx(No,{isClickable:!1,onClick:()=>null,children:te("0,0",o)})})},Fo=({total:e})=>t.jsx(Mo,{children:t.jsx(No,{isClickable:!1,onClick:()=>null,children:te("0,0",e)})});function Ka({isSticky:e,height:n,isScrolling:o,isLastNode:i,balances:r,total:l,vendor:c,backgroundColor:s,onEntityNameClick:u}){const h=W(),p="default",g=c?.name??"";return t.jsxs(Io,{"data-testid":m("ap-aging-report-row-root-container",g),containerHeight:n,bgColor:s,windowSize:h,children:[t.jsxs(Oo,{"data-testid":m("ap-aging-report-row-container",g),style:{cursor:p},isClickable:!1,containerHeight:n-1,children:[t.jsxs(To,{onClick:()=>c?.id!=null?u?.(c.id):void 0,isSticky:e,windowSize:h,bgColor:s,containerHeight:n-1,children:[c?.logo!=null?t.jsx(Jt,{photoUrl:c.logo.toString(),styles:{width:Y.nameLogoWidth.valuePx(h),height:Y.nameLogoHeight.valuePx(h)}}):t.jsx(Xt,{name:g??"",size:d.sp4}),t.jsx(Ha,{children:g})]}),t.jsxs(Wo,{"data-testid":m("ap-aging-report-row-balances-container",g),children:[r.map(f=>t.jsx(Po,{balance:f,isOpen:!0},f?.period)),t.jsx(Fo,{total:l})]})]}),t.jsx(zo,{isScrolling:o,isLastNode:i})]})}function Ya({treeNodeId:e,isSticky:n,height:o,isScrolling:i,isLastNode:r,isOpen:l,balances:c,total:s,totalWithChildren:u,nestedCustomer:h,metadata:p,backgroundColor:g,onEntityNameClick:f,onClick:x}){const b=W(),y=p,_=h?.customer.name??"",C=h!=null?h.id.length-1:0,B=h?.hasSiblings??!1,v=h!=null?h.children.length!==0:!1,L=v,z=L?"pointer":"default",V=h!=null?h.isLeafCustomer:!1,U=()=>{x?.(e)};return t.jsxs(Io,{"data-testid":m("ar-aging-report-row-root-container",e),containerHeight:o,bgColor:g,windowSize:b,children:[t.jsxs(Oo,{"data-testid":m("ar-aging-report-row-container",e),style:{cursor:z},isClickable:L,containerHeight:o-1,children:[t.jsx(To,{"data-testid":m("ar-aging-report-row-name-container",e),isSticky:n,windowSize:b,bgColor:g,containerHeight:o-1,children:t.jsx(Bo,{displayName:_,depth:C,isLastNode:r,hasChildren:v,hasSiblings:B,isLeaf:V,collapsed:!l,subAccountAnscestorMetadata:y.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:U,onNameClick:()=>h?.id[0]!=null?f?.(h.id[0]):void 0})}),t.jsxs(Wo,{children:[c.map(R=>t.jsx(Po,{balance:R,isOpen:l},R?.period)),t.jsx(Fo,{total:l?s:u})]})]}),t.jsx(zo,{isScrolling:i,subEntityProps:{nestingLevel:C,isSticky:n,noMarginForEntity:!0}})]})}function zo({isScrolling:e,isLastNode:n=!1,subEntityProps:o}){return n?t.jsx(Ft,{isScrolling:e,kind:"end_row_separator",subEntityProps:o}):t.jsx(Ft,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:o})}const Ua=a.div`
|
|
364
|
+
user-select: none;
|
|
365
|
+
display: flex;
|
|
366
|
+
flex: 1 1 auto;
|
|
367
|
+
width: fit-content;
|
|
368
|
+
min-width: 100%;
|
|
369
|
+
height: ${e=>e.height}px;
|
|
370
|
+
flex-flow: row;
|
|
371
|
+
justify-content: flex-start;
|
|
372
|
+
align-items: center;
|
|
373
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
374
|
+
`,qa=a.div`
|
|
375
|
+
display: flex;
|
|
376
|
+
flex: 1 0 auto;
|
|
377
|
+
flex-direction: row;
|
|
378
|
+
justify-content: flex-end;
|
|
379
|
+
`,Do=a.div`
|
|
380
|
+
display: flex;
|
|
381
|
+
max-height: ${d.sp8};
|
|
382
|
+
min-height: ${d.sp8};
|
|
383
|
+
min-width: ${Y.balanceWidth};
|
|
384
|
+
justify-content: center;
|
|
385
|
+
align-items: center;
|
|
386
|
+
background-color: ${e=>e.theme.colors.background};
|
|
387
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
388
|
+
border-radius: ${d.sp2};
|
|
389
|
+
margin-left: ${Y.balanceLeftMargin};
|
|
390
|
+
color: ${e=>e.theme.colors.primary};
|
|
391
|
+
`,Vo=a(j)`
|
|
392
|
+
display: flex;
|
|
393
|
+
user-select: none;
|
|
394
|
+
flex-direction: row;
|
|
395
|
+
justify-content: center;
|
|
396
|
+
align-items: center;
|
|
397
|
+
height: ${Y.balanceHeight};
|
|
398
|
+
max-width: ${Y.balanceWidth};
|
|
399
|
+
width: 138px;
|
|
400
|
+
text-align: center;
|
|
401
|
+
column-gap: ${d.sp1};
|
|
402
|
+
color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
|
|
403
|
+
`,Qa=a.div`
|
|
404
|
+
max-height: ${d.sp8};
|
|
405
|
+
min-height: ${d.sp8};
|
|
406
|
+
display: flex;
|
|
407
|
+
flex-direction: row;
|
|
408
|
+
align-items: center;
|
|
409
|
+
min-width: ${e=>Y.titleWidth.valuePx(e.windowSize)};
|
|
410
|
+
color: ${e=>e.theme.colors.primary};
|
|
411
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
412
|
+
${e=>e.isSticky?P`
|
|
413
|
+
position: -webkit-sticky;
|
|
414
|
+
position: sticky;
|
|
415
|
+
top: ${d.sp0};
|
|
416
|
+
left: ${d.sp0};
|
|
417
|
+
`:""}
|
|
418
|
+
`,Za=a(j)`
|
|
419
|
+
display: flex;
|
|
420
|
+
align-items: center;
|
|
421
|
+
cursor: pointer;
|
|
422
|
+
column-gap: ${d.sp1};
|
|
423
|
+
color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
|
|
424
|
+
`,Ro=a.div`
|
|
425
|
+
max-height: ${d.sp8};
|
|
426
|
+
min-height: ${d.sp8};
|
|
427
|
+
cursor: pointer;
|
|
428
|
+
`,un=a.div`
|
|
429
|
+
display: flex;
|
|
430
|
+
column-gap: ${d.sp1};
|
|
431
|
+
cursor: pointer;
|
|
432
|
+
align-items: center;
|
|
433
|
+
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
|
|
434
|
+
`,Eo=a.div``,Go=a(bo)`
|
|
435
|
+
width: 12px;
|
|
436
|
+
height: 12px;
|
|
437
|
+
cursor: pointer;
|
|
438
|
+
color: ${e=>e.theme.colors.hero};
|
|
439
|
+
`,hn=a(on)`
|
|
440
|
+
width: 12px;
|
|
441
|
+
height: 12px;
|
|
442
|
+
`,gn=a(nn)`
|
|
443
|
+
width: 12px;
|
|
444
|
+
height: 12px;
|
|
445
|
+
`,Ja=({reportId:e,sortKey:n,sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=()=>{i?.(pn(o),r)},c=n===r?o:"ascending";return t.jsxs(Za,{active:n===r,"data-testid":m("duration-row-vendor-title",e),children:[r==="vendor"?O.getLocalizedStrings().reports.aging.apAging.vendor:O.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(un,{selectedForSort:n===r,children:t.jsx(Eo,{"data-testid":m("duration-row-vendor-sort-icon",e),onClick:l,children:c==="ascending"?t.jsx(gn,{}):t.jsx(hn,{})})}),t.jsx(ht,{controller:n===r,children:t.jsx(Go,{"data-testid":m("duration-row-vendor-sort-cancel-icon",e),onClick:()=>Ho({onSortOrderChanged:i})})})]})},Ho=({onSortOrderChanged:e})=>{e?.("descending","total")},Xa=({agingPeriod:e,sortKey:n="vendor",sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=n===e?o:"ascending",l=()=>{i?.(pn(o),e)};return t.jsx(Ro,{"data-testid":m("duration-row-tick-container",e),children:t.jsx(Do,{"data-testid":m("duration-row-tick-element-container",e),children:t.jsxs(Vo,{active:n===e,"data-testid":m("duration-row-timeframe-tick",e),children:[O.getLocalizedStrings().reports.aging.duration[e],t.jsxs(un,{selectedForSort:n===e,"data-testid":m("duration-row-sort-container",e),children:[t.jsx(Eo,{"data-testid":m("duration-row-sort-icon",e),onClick:l,children:r==="ascending"?t.jsx(gn,{}):t.jsx(hn,{})}),t.jsx(ht,{controller:n===e,children:t.jsx(Go,{"data-testid":m("duration-row-sort-cancel-icon",e),onClick:()=>Ho({onSortOrderChanged:i})})})]})]})})})},Ko=({reportId:e,sortKey:n,sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=n==="total"?o:"ascending",l=()=>{i?.(pn(o),"total")};return t.jsx(Ro,{"data-testid":m("duration-row-entity-total-tick-container",e),onClick:l,children:t.jsx(Do,{"data-testid":m("duration-row-entity-total-tick-element-container",e),children:t.jsxs(Vo,{active:n==="total","data-testid":m("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?O.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:O.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(un,{selectedForSort:n==="total","data-testid":m("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(gn,{}):t.jsx(hn,{})})]})})})},el=({reportId:e,agingPeriod:n,sortKey:o="vendor",sortOrder:i="ascending",onSortOrderChanged:r})=>n!=null?t.jsx(Xa,{sortKey:o,sortOrder:i,onSortOrderChanged:r,agingPeriod:n}):t.jsx(Ko,{reportId:e,sortKey:o,sortOrder:i,onSortOrderChanged:r});function tl({reportId:e,isSticky:n,height:o,agingPeriods:i,sortKey:r,sortOrder:l,backgroundColor:c,onSortOrderChanged:s}){const u=W();return t.jsxs(Ua,{height:o,bgColor:c,"data-testid":m("duration-row-root-container",e),children:[t.jsx(Qa,{"data-testid":m("duration-row-placeholder-name",e),isSticky:n,windowSize:u,bgColor:c,children:t.jsx(Ja,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:s})}),t.jsxs(qa,{children:[i.map(h=>t.jsx(el,{reportId:e,agingPeriod:h,sortKey:r,sortOrder:l,onSortOrderChanged:s},h)),t.jsx(Ko,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:s})]})]})}const pn=e=>e==="ascending"?"descending":"ascending",nl=[10,14,20,20,20],ol=a.div`
|
|
446
|
+
display: flex;
|
|
447
|
+
flex: 1 1 auto;
|
|
448
|
+
width: fit-content;
|
|
449
|
+
min-width: 100%;
|
|
450
|
+
flex-direction: column;
|
|
451
|
+
height: ${e=>e.containerHeight}px;
|
|
452
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
453
|
+
`,il=a.div`
|
|
454
|
+
user-select: none;
|
|
455
|
+
display: flex;
|
|
456
|
+
flex: 1 1 auto;
|
|
457
|
+
flex-flow: row;
|
|
458
|
+
justify-content: flex-start;
|
|
459
|
+
align-items: center;
|
|
460
|
+
`,rl=a.div`
|
|
461
|
+
display: flex;
|
|
462
|
+
flex: 1 0 auto;
|
|
463
|
+
flex-direction: row;
|
|
464
|
+
justify-content: flex-end;
|
|
465
|
+
`,Yo=a.div`
|
|
466
|
+
display: flex;
|
|
467
|
+
flex-direction: row;
|
|
468
|
+
justify-content: flex-start;
|
|
469
|
+
`,Uo=a(j)`
|
|
470
|
+
user-select: none;
|
|
471
|
+
min-width: ${Y.balanceWidth};
|
|
472
|
+
max-width: ${Y.balanceWidth};
|
|
473
|
+
text-align: right;
|
|
474
|
+
margin-left: ${Y.balanceLeftMargin};
|
|
475
|
+
color: ${e=>e.theme.colors.primary};
|
|
476
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
477
|
+
`,al=a.div`
|
|
478
|
+
display: flex;
|
|
479
|
+
flex-direction: row;
|
|
480
|
+
flex-shrink: 2;
|
|
481
|
+
flex-grow: 1;
|
|
482
|
+
align-items: center;
|
|
483
|
+
height: ${e=>e.containerHeight-1}px;
|
|
484
|
+
width: ${e=>Y.titleWidth.valuePx(e.windowSize)};
|
|
485
|
+
max-width: ${e=>Y.titleWidth.valuePx(e.windowSize)};
|
|
486
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
487
|
+
${({isSticky:e})=>e?P`
|
|
488
|
+
position: sticky;
|
|
489
|
+
top: ${d.sp0};
|
|
490
|
+
left: ${d.sp0};
|
|
491
|
+
`:null}
|
|
492
|
+
`,ll=a(j)`
|
|
493
|
+
user-select: none;
|
|
494
|
+
clear: both;
|
|
495
|
+
display: inline-block;
|
|
496
|
+
overflow: hidden;
|
|
497
|
+
white-space: nowrap;
|
|
498
|
+
text-overflow: ellipsis;
|
|
499
|
+
text-align: left;
|
|
500
|
+
margin-left: ${e=>nl[e.depth]}px;
|
|
501
|
+
color: ${e=>e.theme.colors.primary};
|
|
502
|
+
width: ${e=>Y.titleWidth.value(e.windowSize)-e.depth*w[11]}px;
|
|
503
|
+
`,cl=({balance:e})=>t.jsx(Yo,{children:t.jsx(Uo,{isClickable:!1,onClick:()=>null,children:te("0,0",e?.totalBalance)})}),sl=({total:e})=>t.jsx(Yo,{children:t.jsx(Uo,{isClickable:!1,onClick:()=>null,children:te("0,0",e)})});function dl({backgroundColor:e,isSticky:n,height:o,noMarginForEntity:i,isScrolling:r,total:l,nestedCustomer:c,metadata:s}){const u=W(),{common:{strings:{empty:h}},reports:{sections:p}}=O.getLocalizedStrings(),g=c!=null?c.id.length-1:0,f=s,x=c?.customer.name??h;return t.jsxs(ol,{"data-testid":"sub-customer-total-row-root-container",containerHeight:o,bgColor:e,children:[t.jsxs(il,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(al,{isSticky:n,windowSize:u,bgColor:e,containerHeight:o,children:[t.jsx(Ao,{ancestorMetadata:f.vendorOrCustomerAncestorMetadata,depth:g,name:x}),t.jsx(ll,{isClickable:!1,title:x,depth:g,windowSize:u,children:p.totalPrefix+" "+x})]}),t.jsxs(rl,{children:[c?.arAgingBalances.map((b,y)=>t.jsx(cl,{balance:b},y)),t.jsx(sl,{total:l})]})]}),t.jsx(ul,{isScrolling:r,nestingLevel:g,isSticky:n,noMarginForEntity:i})]})}function ul({isScrolling:e,nestingLevel:n,isSticky:o,noMarginForEntity:i}){return t.jsx(Ft,{isScrolling:e,kind:"subtotal_row_separator",subEntityProps:{nestingLevel:n,isSticky:o,noMarginForEntity:i}})}const pe=e=>{switch(e){case"name+balances_actual":return!0;case"name+balances_forecast":return!1;case"name_only":return!1}},Ee=e=>{switch(e){case"name+balances_forecast":return!0;case"name+balances_actual":return!1;case"name_only":return!1}},hl=a.div`
|
|
504
|
+
display: flex;
|
|
505
|
+
flex: 1 1 auto;
|
|
506
|
+
width: fit-content;
|
|
507
|
+
min-width: 100%;
|
|
508
|
+
flex-direction: column;
|
|
509
|
+
height: ${e=>e.height}px;
|
|
510
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
511
|
+
`,gl=a.div`
|
|
512
|
+
cursor: default;
|
|
513
|
+
user-select: none;
|
|
514
|
+
display: flex;
|
|
515
|
+
flex: 1 1 auto;
|
|
516
|
+
flex-flow: row;
|
|
517
|
+
justify-content: flex-start;
|
|
518
|
+
align-items: center;
|
|
519
|
+
`,pl=a.div`
|
|
520
|
+
display: flex;
|
|
521
|
+
flex: 1 0 auto;
|
|
522
|
+
flex-direction: row;
|
|
523
|
+
justify-content: flex-end;
|
|
524
|
+
`,qo=a.div`
|
|
525
|
+
display: flex;
|
|
526
|
+
flex-direction: row;
|
|
527
|
+
justify-content: flex-start;
|
|
528
|
+
`,Qo=a(le)`
|
|
529
|
+
user-select: none;
|
|
530
|
+
min-width: ${Y.balanceWidth};
|
|
531
|
+
max-width: ${Y.balanceWidth};
|
|
532
|
+
text-align: right;
|
|
533
|
+
margin-left: ${Y.balanceLeftMargin};
|
|
534
|
+
color: ${e=>e.theme.colors.primary};
|
|
535
|
+
border: 1px solid transparent;
|
|
536
|
+
`,fl=a.div`
|
|
537
|
+
display: flex;
|
|
538
|
+
flex-direction: row;
|
|
539
|
+
flex-shrink: 2;
|
|
540
|
+
flex-grow: 1;
|
|
541
|
+
align-items: center;
|
|
542
|
+
width: ${e=>Y.titleWidth.valuePx(e.windowSize)};
|
|
543
|
+
max-width: ${e=>Y.titleWidth.valuePx(e.windowSize)};
|
|
544
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
545
|
+
${({isSticky:e,isIndented:n})=>e&&n?P`
|
|
546
|
+
position: -webkit-sticky;
|
|
547
|
+
position: sticky;
|
|
548
|
+
top: ${d.sp0};
|
|
549
|
+
left: ${d.sp4};
|
|
550
|
+
`:e&&!n?P`
|
|
551
|
+
position: -webkit-sticky;
|
|
552
|
+
position: sticky;
|
|
553
|
+
top: ${d.sp0};
|
|
554
|
+
left: ${d.sp0};
|
|
555
|
+
`:null}
|
|
556
|
+
`,xl=a(le)`
|
|
557
|
+
user-select: none;
|
|
558
|
+
clear: both;
|
|
559
|
+
display: inline-block;
|
|
560
|
+
overflow: hidden;
|
|
561
|
+
white-space: nowrap;
|
|
562
|
+
text-overflow: ellipsis;
|
|
563
|
+
text-align: left;
|
|
564
|
+
color: ${e=>e.theme.colors.primary};
|
|
565
|
+
`,ml=({type:e,balance:n})=>t.jsx(qo,{children:pe(e)===!0?t.jsx(Qo,{children:te("0,0",n?.balance)}):null}),wl=({type:e,balance:n})=>t.jsx(qo,{children:pe(e)===!0?t.jsx(Qo,{children:te("0,0",n)}):null});function yl({type:e,isSticky:n,isIndented:o,height:i,title:r,totalBalances:l,backgroundColor:c}){const s=W(),u={amount:l.reduce((h,p)=>h+(p?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Tn.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Tn.currencySymbol};return t.jsx(hl,{"data-testid":m("total-row-root-container"),height:i,bgColor:c,windowSize:s,children:t.jsxs(gl,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsx(fl,{bgColor:c,isSticky:n,windowSize:s,isIndented:o,children:t.jsx(xl,{children:r})}),t.jsxs(pl,{children:[l.map((h,p)=>t.jsx(ml,{type:e,balance:h},p)),t.jsx(wl,{type:e,balance:u})]})]})})}const bl=(e,n,o,i,r,l,c)=>{if(e.element.kind!=="timeframe_headers")return null;const s=e.element.data;return t.jsx(tl,{reportId:e.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:s,backgroundColor:o,isSticky:i,height:n,sortKey:r,sortOrder:l,onSortOrderChanged:c})},kl=(e,n,o,i,r,l,c,s,u,h)=>{if(n.element.kind!=="aging_report_row")return null;if(n.config.reportId==="accounts_payable_aging"){const g=n.element.data;return t.jsx(Ka,{backgroundColor:s,isLastNode:l,isScrolling:c,isSticky:r,height:o,balances:g.apAgingBalances,vendor:g.vendor,total:g.total,onEntityNameClick:u})}const p=n.element.data;return t.jsx(Ya,{treeNodeId:e,backgroundColor:s,isLastNode:l,isScrolling:c,isSticky:r,isOpen:i,height:o,metadata:n.element.metadata,balances:p.arAgingBalances,nestedCustomer:p,total:p.total,totalWithChildren:p.totalWithChildren,onEntityNameClick:u,onClick:h})},Sl=(e,n,o,i,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(dl,{backgroundColor:r,isScrolling:i,isSticky:o,height:n,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},Cl=(e,n,o,i,r)=>{const l=n.element.data;return t.jsx(yl,{type:e,backgroundColor:i,isSticky:r,height:o,totalBalances:l,isIndented:n.config.reportId==="accounts_receivable_aging",title:n.element.title})};function mt(e,n,o,i){switch(e){case"cogs":return _l(o,i,n);case"expenses":return jl(o,i,n);case"income":return vl(o,i,n);case"cash_position":return $l(o,i,n);case"cash_in":return Ll(o,i,n);case"cash_out":return Al(o,i,n);case"assets":return Bl(o,i,n);case"equity":return Il(o,i,n);case"liabilities":return Ol(o,i,n);case"other_expense":return Wl(o,i,n);case"other_income":return Ml(o,i,n);case"operating_activities":return Nl(o,i,n);case"investing_activities":return Tl(o,i,n);case"financing_activities":return Pl(o,i,n);default:throw Error(`${e} is not yet supported!`)}}const _l=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cogsInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithCogsOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cogsInTimeframe,i.compactedAccountGroupsSelector=r=>de(r,i.acGroupBalanceSelector,o,n),i},jl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.expensesInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithExpensesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.expensesInTimeframe,i.compactedAccountGroupsSelector=r=>de(r,i.acGroupBalanceSelector,o,n),i},vl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.incomeInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithIncomeOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.incomeInTimeframe,i.compactedAccountGroupsSelector=r=>de(r,i.acGroupBalanceSelector,o,n),i},$l=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashPositionInTimeframe,i.compactedAccountsSelector=()=>K([],i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>de(r,i.acGroupBalanceSelector,o,n),i},Ll=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashInInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithCashInOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cashInInTimeframe,i.compactedAccountGroupsSelector=r=>de(r,i.acGroupBalanceSelector,o,n),i},Al=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashOutInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithCashOutOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cashOutInTimeframe,i.compactedAccountGroupsSelector=r=>de(r,i.acGroupBalanceSelector,o,n),i},Bl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.assetsInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithAssetsOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.assetsInTimeframe,i.compactedAccountGroupsSelector=r=>de(r,i.acGroupBalanceSelector,o,n),i},Il=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.equityInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithEquityOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.equityInTimeframe,i.compactedAccountGroupsSelector=r=>de(r,i.acGroupBalanceSelector,o,n),i},Ol=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.liabilitiesInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithLiabilitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,i.compactedAccountGroupsSelector=r=>de(r,i.acGroupBalanceSelector,o,n),i},Wl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.otherExpensesInTimeframe,i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>de(r,i.acGroupBalanceSelector,o,n),i},Ml=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.otherIncomeInTimeframe,i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>de(r,i.acGroupBalanceSelector,o,n),i},Nl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithOperatingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>de(r,i.acGroupBalanceSelector,o,n),i},Tl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.investingActivitiesInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithInvestingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>de(r,i.acGroupBalanceSelector,o,n),i},Pl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.financingActivitiesInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithFinancingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>de(r,i.acGroupBalanceSelector,o,n),i};function K(e,n,o){switch(o){case"off":return e;case"filter_actual_nil_balances":return e.filter(i=>Zo(n(i)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(i=>Jo(n(i)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(i=>Xo(n(i)?.balances??[]))}}function de(e,n,o,i){switch(i){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Zo(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Jo(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Xo(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function Zo(e){let n=!1;if(e!=null){for(const o of e)if(o.balance.amount!==0){n=!0;break}}return n}function Jo(e){let n=!1;if(e!=null){for(const o of e)if(o.forecast!=null&&o.forecast.amount!==0){n=!0;break}}return n}function Xo(e){let n=!1;if(e!=null){for(const o of e)if(o.forecast!=null&&o.forecast.amount!==0||o.balance!=null&&o.balance.amount!==0){n=!0;break}}return n}function ae(e,n="ascending_date",o=-1,i=!0){const r=o!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=ti([],o)),{balances:l,thisPeriodIndex:c};let s=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,s=[...e.balances].reverse()),{balances:[...s,...i?e.additionalBalances:[]],thisPeriodIndex:c}}function ei(e,n="ascending_date",o=-1,i=!0){const r=o!==-1,l=ae(e,n,o,i);if(e==null||e.balances.length===0)return l;const c=[...l.balances];if(e?.totalBalance!=null)c.push(e.totalBalance);else if(r&&e?.totalBalance==null){const s=ti([],1);c.push(...s)}return{balances:c,thisPeriodIndex:l.thisPeriodIndex}}function qe(e,n){if(n==="ascending_date")return e;{const o=[],i=[];for(const r of e)r.type==="default"?o.push(r):i.push(r);return[...o.reverse(),...i]}}function ti(e,n){return e.length>0?e:ho(Array(n),null)}const Fl=a.div`
|
|
566
|
+
display: flex;
|
|
567
|
+
flex: 1 1 auto;
|
|
568
|
+
max-height: 1px;
|
|
569
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
570
|
+
`,Gn=a.div`
|
|
571
|
+
display: flex;
|
|
572
|
+
flex: 1 1 auto;
|
|
573
|
+
max-height: 1px;
|
|
574
|
+
margin-left: ${e=>e.marginLeft}px;
|
|
575
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
576
|
+
`,zl=a.div`
|
|
577
|
+
display: flex;
|
|
578
|
+
flex: 1 1 auto;
|
|
579
|
+
max-height: 1px;
|
|
580
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
581
|
+
`;function Dl({kind:e,isScrolling:n}){switch(e){case"account_title_row_separator":return t.jsx(Gn,{marginLeft:w[5],isScrolling:n});case"account_balance_row_separator":return t.jsx(Gn,{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(zl,{isScrolling:n})}}const ze={balanceHeight:d.sp4,balanceWidth:"166px",balanceLeftMargin:d.sp4,titleWidth:new G(200,350,405)};function Vl(e){switch(e){case"section":return w[8];case"section_with_ac_only":return w[8];case"calculated_section":return w[8];case"calculated_section_type1":return w[6];case"ac_group_report":case"ac_group_subaccount":return w[8];case"ac_report":case"ac_subaccount":case"ac_subentity_total":return w[6];case"title_string_only":return 67;case"total":return w[6];case"timeframe_headers":return w[11];case"timeframe_headers_with_forecast":return w[0];case"class":case"checkbox_and_name_only":return w[0];default:return w[0]}}function Rl(e,n){const o=["summary","detailed"];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!o.includes(n);case"ac_group_report":case"ac_group_subaccount":return!o.includes(n);case"ac_report":case"ac_subaccount":case"ac_subentity_total":return!o.includes(n);case"title_string_only":return!o.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":case"checkbox_and_name_only":return!1;default:return!1}}const El=a.div`
|
|
582
|
+
display: flex;
|
|
583
|
+
flex: 1 1 auto;
|
|
584
|
+
width: fit-content;
|
|
585
|
+
min-width: 100%;
|
|
586
|
+
flex-direction: column;
|
|
587
|
+
height: ${e=>e.height}px;
|
|
588
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
589
|
+
`,Gl=a.div`
|
|
590
|
+
user-select: none;
|
|
591
|
+
display: flex;
|
|
592
|
+
flex: 1 1 auto;
|
|
593
|
+
flex-flow: row;
|
|
594
|
+
justify-content: flex-start;
|
|
595
|
+
align-items: center;
|
|
596
|
+
`,Hl=a.div`
|
|
597
|
+
display: flex;
|
|
598
|
+
flex: 1 0 auto;
|
|
599
|
+
flex-direction: row;
|
|
600
|
+
justify-content: flex-end;
|
|
601
|
+
`,Kl=a.div`
|
|
602
|
+
display: flex;
|
|
603
|
+
flex-direction: row;
|
|
604
|
+
justify-content: flex-start;
|
|
605
|
+
`,Yl=a(j)`
|
|
606
|
+
user-select: none;
|
|
607
|
+
color: ${e=>e.theme.colors.hero};
|
|
608
|
+
min-width: ${ze.balanceWidth};
|
|
609
|
+
max-width: ${ze.balanceWidth};
|
|
610
|
+
text-align: right;
|
|
611
|
+
margin-left: ${ze.balanceLeftMargin};
|
|
612
|
+
`,Ul=a.div`
|
|
613
|
+
display: flex;
|
|
614
|
+
flex-direction: row;
|
|
615
|
+
flex-shrink: 2;
|
|
616
|
+
flex-grow: 1;
|
|
617
|
+
align-items: center;
|
|
618
|
+
width: ${e=>ze.titleWidth.valuePx(e.windowSize)};
|
|
619
|
+
color: ${e=>e.theme.colors.hero};
|
|
620
|
+
max-width: ${e=>ze.titleWidth.valuePx(e.windowSize)};
|
|
621
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
622
|
+
${({isSticky:e})=>e?P`
|
|
623
|
+
position: -webkit-sticky;
|
|
624
|
+
position: sticky;
|
|
625
|
+
top: ${d.sp0};
|
|
626
|
+
left: ${d.sp0};
|
|
627
|
+
`:null}
|
|
628
|
+
`,ql=a(j)`
|
|
629
|
+
user-select: none;
|
|
630
|
+
clear: both;
|
|
631
|
+
display: inline-block;
|
|
632
|
+
overflow: hidden;
|
|
633
|
+
white-space: nowrap;
|
|
634
|
+
text-overflow: ellipsis;
|
|
635
|
+
text-align: left;
|
|
636
|
+
margin-left: ${d.sp6};
|
|
637
|
+
`,Ql=({balance:e})=>t.jsx(Kl,{children:t.jsx(Yl,{children:ne(e)})});function Zl({heading:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,totalBalances:l,isScrolling:c,isLastNode:s,onClick:u}){const h=W();return t.jsxs(El,{"data-testid":m("calculated-section-type-1-root-container-row",i),height:r,bgColor:n,windowSize:h,children:[t.jsxs(Gl,{"data-testid":m("calculated-section-type-1-container-row",i),onClick:()=>u?.(i),children:[t.jsx(Ul,{"data-testid":m("calculated-section-type-1-total-container-row",i),bgColor:n,isSticky:o,windowSize:h,children:t.jsx(ql,{children:e})}),t.jsx(Hl,{children:l.map((p,g)=>t.jsx(Ql,{balance:p},g))})]}),t.jsx(Jl,{isScrolling:c,isLastNode:s})]})}function Jl({isScrolling:e,isLastNode:n}){return n===!0?t.jsx(Dl,{isScrolling:e,kind:"heading_row_separator"}):null}const Xl=a.div`
|
|
638
|
+
display: flex;
|
|
639
|
+
flex: 1 1 auto;
|
|
640
|
+
width: fit-content;
|
|
641
|
+
min-width: 100%;
|
|
642
|
+
flex-direction: column;
|
|
643
|
+
height: ${e=>e.height}px;
|
|
644
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
645
|
+
`,ec=a.div`
|
|
646
|
+
user-select: none;
|
|
647
|
+
display: flex;
|
|
648
|
+
flex: 1 1 auto;
|
|
649
|
+
flex-flow: row;
|
|
650
|
+
justify-content: flex-start;
|
|
651
|
+
align-items: center;
|
|
652
|
+
`,tc=a.div`
|
|
653
|
+
display: flex;
|
|
654
|
+
flex: 1 0 auto;
|
|
655
|
+
flex-direction: row;
|
|
656
|
+
justify-content: flex-end;
|
|
657
|
+
`,nc=a.div`
|
|
658
|
+
display: flex;
|
|
659
|
+
flex-direction: row;
|
|
660
|
+
justify-content: flex-start;
|
|
661
|
+
`,rt=a(wo)`
|
|
662
|
+
color: ${e=>e.theme.colors.champion};
|
|
663
|
+
user-select: none;
|
|
664
|
+
max-width: ${k.balanceWidth};
|
|
665
|
+
min-width: ${k.balanceWidth};
|
|
666
|
+
text-align: right;
|
|
667
|
+
margin-left: ${k.balanceLeftMargin};
|
|
668
|
+
`,oc=a.div`
|
|
669
|
+
display: flex;
|
|
670
|
+
flex-direction: row;
|
|
671
|
+
flex-shrink: 2;
|
|
672
|
+
flex-grow: 1;
|
|
673
|
+
align-items: center;
|
|
674
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
675
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
676
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
677
|
+
${({isSticky:e})=>e?P`
|
|
678
|
+
position: -webkit-sticky;
|
|
679
|
+
position: sticky;
|
|
680
|
+
top: ${d.sp0};
|
|
681
|
+
left: ${d.sp0};
|
|
682
|
+
`:null}
|
|
683
|
+
`,ic=a(wo)`
|
|
684
|
+
color: ${e=>e.theme.colors.champion};
|
|
685
|
+
user-select: none;
|
|
686
|
+
clear: both;
|
|
687
|
+
display: inline-block;
|
|
688
|
+
overflow: hidden;
|
|
689
|
+
white-space: nowrap;
|
|
690
|
+
text-overflow: ellipsis;
|
|
691
|
+
text-align: left;
|
|
692
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
693
|
+
`,rc=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i})=>t.jsxs(nc,{"data-testid":m("heading-row-balance-element",e),children:[pe(e)||o?t.jsx(rt,{"data-testid":m("heading-row-balance-actual",e),children:ne(n)}):t.jsx(rt,{"data-testid":m("heading-row-balance-forecast",e),children:ie(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(rt,{"data-testid":m("heading-row-balance-forecast",e),children:ie(n)}),t.jsx(rt,{"data-testid":m("heading-row-balance-actual-vs-forecast",e),children:i==="compare_mode_percent"?we(n):ye(n)})]}):null]});function ac({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,heading:l,headingBalances:c,isActualVsForecastOn:s,compareMode:u,isLeaf:h,onClick:p}){const g=W();return t.jsx(Xl,{height:r,bgColor:n,"data-testid":m("heading-row-root-container",i),children:t.jsxs(ec,{"data-testid":m("heading-row-container",i),isClickable:!h,onClick:()=>p?.(i),children:[be(e)===!0?t.jsx(oc,{"data-testid":m("heading-row-heading-container",i),isSticky:o,windowSize:g,bgColor:n,children:t.jsx(ic,{children:l})}):null,_e(e)===!0?t.jsx(tc,{"data-testid":m("heading-row-balances-container",i),children:c.map((f,x)=>t.jsx(rc,{"data-testid":m("heading-row-balance-element",e),type:e,heading:l,balance:f,isActualVsForecastOn:s,compareMode:u},x))}):null]})})}const lc=(e,n,o,i,r,l,c)=>{if(n.element.kind!="calculated_section_type1"||n.element.data==null)return null;const s=n.element.data,u=ae(s,n.config.displayOrder,n.element.numOfBalances);return t.jsx(Zl,{backgroundColor:i,isSticky:r,treeNodeId:e,heading:n.element.title,totalBalances:u.balances,height:o,isScrolling:l,isLastNode:c})},fn=(e,n,o,i,r,l,c,s,u,h,p,g)=>{if(o.element.kind!="title_string_only")return null;const f=ae(void 0,o.config.displayOrder,o.element.numOfBalances);return t.jsx(ac,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,heading:o.element.title,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,headingBalances:f.balances,isScrolling:c,isOpen:s,isLeaf:u,isLastNode:h,onClick:x=>{g?.(x)}})};function ni(e,n){return cc(n)}const cc=(e,n)=>{const o={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return o.acBalanceSelector=i=>i.balancesInTimeframe,o.compactedAccountsSelectorVariant=i=>sc(i,o.acBalanceSelector,e),o};function sc(e,n,o){switch(o){case"off":return e;case"filter_actual_nil_balances":return e.filter(i=>dc(n(i)?.balances??[]));default:return e}}function dc(e){let n=!1;if(e!=null){for(const o of e)if(o.balance.amount!==0){n=!0;break}}return n}const at=[new G(w[4],56),new G(44,76),new G(69,102),new G(93,124),new G(113,143)],Hn=[new G(w[0],w[0]),new G(14,w[4]),new G(67,67),new G(102,102),new G(136,136)],uc=a.div`
|
|
694
|
+
display: flex;
|
|
695
|
+
flex: 1 1 auto;
|
|
696
|
+
max-height: 1px;
|
|
697
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
698
|
+
`,Kn=a.div`
|
|
699
|
+
display: flex;
|
|
700
|
+
flex: 1 1 auto;
|
|
701
|
+
max-height: 1px;
|
|
702
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey4};
|
|
703
|
+
`,hc=a.div`
|
|
704
|
+
display: flex;
|
|
705
|
+
flex: 1 1 auto;
|
|
706
|
+
flex-flow: row;
|
|
707
|
+
justify-content: flex-start;
|
|
708
|
+
align-items: center;
|
|
709
|
+
`,gc=a.div`
|
|
710
|
+
display: flex;
|
|
711
|
+
flex-direction: row;
|
|
712
|
+
flex-shrink: 2;
|
|
713
|
+
flex-grow: 1;
|
|
714
|
+
align-items: center;
|
|
715
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
716
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
717
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
718
|
+
${({isSticky:e})=>e?P`
|
|
719
|
+
position: -webkit-sticky;
|
|
720
|
+
position: sticky;
|
|
721
|
+
top: ${d.sp0};
|
|
722
|
+
left: ${d.sp0};
|
|
723
|
+
`:null}
|
|
724
|
+
`,pc=a.div`
|
|
725
|
+
width: ${e=>e.noMarginForAccount?at[e.nestingLevel].value(e.windowSize)-w[5]:at[e.nestingLevel].value(e.windowSize)}px;
|
|
726
|
+
max-width: ${e=>e.noMarginForAccount?at[e.nestingLevel].value(e.windowSize)-w[5]:at[e.nestingLevel].value(e.windowSize)}px;
|
|
727
|
+
height: 1px;
|
|
728
|
+
`,fc=a.div`
|
|
729
|
+
width: ${e=>Hn[e.classDepth].valuePx(e.windowSize)};
|
|
730
|
+
max-width: ${e=>Hn[e.classDepth].valuePx(e.windowSize)};
|
|
731
|
+
height: 1px;
|
|
732
|
+
`,xc=a.div`
|
|
733
|
+
display: flex;
|
|
734
|
+
flex: 1 1 auto;
|
|
735
|
+
max-height: 1px;
|
|
736
|
+
height: 1px;
|
|
737
|
+
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
738
|
+
`,mc=a.div`
|
|
739
|
+
display: flex;
|
|
740
|
+
flex: 1 1 auto;
|
|
741
|
+
max-height: 1px;
|
|
742
|
+
height: 1px;
|
|
743
|
+
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
744
|
+
`,wc=a.div`
|
|
745
|
+
display: flex;
|
|
746
|
+
flex: 1 1 auto;
|
|
747
|
+
max-height: 1px;
|
|
748
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
749
|
+
`,Yn=e=>{const n=W(),o=me();return t.jsxs(hc,{children:[t.jsxs(gc,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(fc,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(pc,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx(xc,{isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]}),t.jsx(mc,{isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]})};function je({kind:e,isScrolling:n,subAccountProps:o}){switch(e){case"account_title_row_separator":return t.jsx(Kn,{marginLeft:w[5],isScrolling:n});case"sub_account_balance_row_separator":return t.jsx(Yn,{nestingLevel:o?.nestingLevel??1,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!1,classDepth:o?.classDepth,noMarginForAccount:o?.noMarginForAccount??!1});case"account_balance_row_separator":return t.jsx(Kn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(uc,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(wc,{isScrolling:n});case"total_row_separator":return t.jsx(Yn,{nestingLevel:o?.nestingLevel??1,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!0,classDepth:o?.classDepth,noMarginForAccount:o?.noMarginForAccount??!1})}}function oi({height:e,backgroundColor:n,title:o,numOfBalances:i=6}){const r=W(),l=o!=null?o.split("+")[1]:"";let c=null;const s=r!=="small";switch(l){case"section-row":c=t.jsx(yc,{columns:i,isSticky:s});break;case"root-class-row":c=t.jsx(bc,{columns:i,isSticky:s});break;case"sub-class-row":c=t.jsx(kc,{columns:i,isSticky:s});break;case"leaf-class-row":c=t.jsxs(t.Fragment,{children:[t.jsx(Sc,{columns:i,isSticky:s}),t.jsx(je,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]});break}return t.jsx(_c,{height:e,bgColor:n,children:c})}const yc=({columns:e,isSticky:n})=>t.jsxs(We,{children:[t.jsxs(yt,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Ke,{width:w[4],height:w[4]}),t.jsx(Q,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(wt,{columns:e,rectangleWidth:k.loadingBalanceWidthInPx})]}),bc=({columns:e,isSticky:n})=>t.jsxs(We,{children:[t.jsxs(yt,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Ke,{width:w[4],height:w[4]}),t.jsx(Q,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(wt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),kc=({columns:e,isSticky:n})=>t.jsxs(We,{children:[t.jsx(yt,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(We,{style:{marginLeft:"36px"},children:[t.jsx(Ke,{width:w[4],height:w[4]}),t.jsx(Q,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx,style:{marginLeft:w[4]}})]})}),t.jsx(wt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Sc=({columns:e,isSticky:n})=>t.jsxs(We,{children:[t.jsx(yt,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(We,{style:{marginLeft:"84px"},children:t.jsx(Q,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})})}),t.jsx(wt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Cc=({rectangleWidth:e})=>t.jsx(ii,{width:k.balanceWidthInPx,children:t.jsx(Q,{width:e,height:k.balanceHeightInPx})}),wt=({columns:e,rectangleWidth:n})=>t.jsx(jc,{style:{zIndex:9,width:k.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((o,i)=>t.jsx(Cc,{rectangleWidth:n},i))}),_c=a.div`
|
|
750
|
+
display: flex;
|
|
751
|
+
flex: 1 1 auto;
|
|
752
|
+
width: fit-content;
|
|
753
|
+
min-width: 100%;
|
|
754
|
+
flex-direction: column;
|
|
755
|
+
height: ${e=>e.height}px;
|
|
756
|
+
background-color: ${e=>e.bgColor?.hex()??e.theme.colors.grey4};
|
|
757
|
+
`,We=a.div`
|
|
758
|
+
user-select: none;
|
|
759
|
+
display: flex;
|
|
760
|
+
flex: 1 1 auto;
|
|
761
|
+
flex-flow: row;
|
|
762
|
+
justify-content: flex-start;
|
|
763
|
+
align-items: center;
|
|
764
|
+
min-height: 0;
|
|
765
|
+
`,jc=a.div`
|
|
766
|
+
display: flex;
|
|
767
|
+
flex: 1 0 auto;
|
|
768
|
+
flex-direction: row;
|
|
769
|
+
justify-content: flex-end;
|
|
770
|
+
`,ii=a.div`
|
|
771
|
+
display: flex;
|
|
772
|
+
flex-direction: row;
|
|
773
|
+
align-items: center;
|
|
774
|
+
min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
|
|
775
|
+
margin-right: ${k.balanceLeftMargin};
|
|
776
|
+
gap: ${k.balanceLeftMargin};
|
|
777
|
+
justify-content: flex-end;
|
|
778
|
+
`,yt=a(ii)`
|
|
779
|
+
position: ${e=>e.isSticky===!0?"sticky":"static"};
|
|
780
|
+
left: ${d.sp0};
|
|
781
|
+
z-index: 10;
|
|
782
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
783
|
+
justify-content: flex-start;
|
|
784
|
+
`;function ri({height:e,numOfBalances:n,backgroundColor:o}){const i=W();return t.jsx(vc,{height:e,bgColor:o,children:t.jsxs($c,{windowSize:i,children:[t.jsx(Lc,{windowSize:i,width:`${k.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(Ac,{children:Array.from({length:n},(r,l)=>t.jsx(ai,{windowSize:i,width:k.balanceWidth,children:t.jsx(Q,{width:k.balanceWidthInPx,height:w[6]})},`timeframe-balance-${l}`))})]})})}const vc=a.div`
|
|
785
|
+
display: flex;
|
|
786
|
+
flex: 1 1 auto;
|
|
787
|
+
width: fit-content;
|
|
788
|
+
min-width: 100%;
|
|
789
|
+
flex-direction: column;
|
|
790
|
+
height: ${e=>e.height}px;
|
|
791
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
792
|
+
margin-top: 20px;
|
|
793
|
+
`,$c=a.div`
|
|
794
|
+
display: flex;
|
|
795
|
+
flex-direction: row;
|
|
796
|
+
width: 100%;
|
|
797
|
+
`,ai=a.div`
|
|
798
|
+
display: flex;
|
|
799
|
+
flex-direction: row;
|
|
800
|
+
align-items: center;
|
|
801
|
+
margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:d.sp4};
|
|
802
|
+
min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
|
|
803
|
+
color: ${e=>e.theme.colors.primary};
|
|
804
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
805
|
+
justify-content: flex-end;
|
|
806
|
+
:first-of-type {
|
|
807
|
+
justify-content: flex-start;
|
|
808
|
+
}
|
|
809
|
+
margin-right: ${k.balanceLeftMargin};
|
|
810
|
+
`,Lc=a(ai)`
|
|
811
|
+
position: sticky;
|
|
812
|
+
left: ${d.sp0};
|
|
813
|
+
z-index: 10;
|
|
814
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
815
|
+
`,Ac=a.div`
|
|
816
|
+
display: flex;
|
|
817
|
+
flex-direction: row;
|
|
818
|
+
width: calc(100% - ${k.loadingInProgressStickySectionWidth}px);
|
|
819
|
+
justify-content: flex-end;
|
|
820
|
+
flex: 1 0 auto;
|
|
821
|
+
`,Bc=a.div`
|
|
822
|
+
display: flex;
|
|
823
|
+
flex: 1 1 auto;
|
|
824
|
+
max-height: 1px;
|
|
825
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
826
|
+
`,Ic=a.div`
|
|
827
|
+
display: flex;
|
|
828
|
+
flex: 1 1 auto;
|
|
829
|
+
max-height: 1px;
|
|
830
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
831
|
+
`;function xn({kind:e,isScrolling:n}){switch(e){case"ac_group_row_separator":return t.jsx(Bc,{"data-testid":m("ac-group-row-separator",e),isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(Ic,{"data-testid":m("section-row-separator",e),isScrolling:n})}}const H={balanceHeight:d.sp4,balanceWidth:"166px",balanceLeftMargin:d.sp4,titleWidth:new G(200,350,405)};function Oc(e){switch(e){case"section":return w[8];case"ac_group_report":case"ac_group_subaccount":return w[8];case"ac_subentity_total":case"ac_subaccount":case"ac_report":return w[6];case"calculated_section":case"calculated_section_type1":return w[8];case"section_with_ac_only":return w[8];case"timeframe_headers":case"headers_loading_in_progress":return w[11];case"timeframe_headers_with_forecast":return 98;case"loading_in_progress":return w[6];case"title_string_only":return w[8];case"total":return w[8];case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function Wc(e,n){const o=["summary","detailed"];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":case"ac_group_subaccount":return!o.includes(n);case"ac_subentity_total":case"ac_subaccount":case"ac_report":return!o.includes(n);case"title_string_only":return!o.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":case"checkbox_and_name_only":return!0;default:return!1}}const Mc=a.div`
|
|
832
|
+
display: flex;
|
|
833
|
+
flex: 1 1 auto;
|
|
834
|
+
width: fit-content;
|
|
835
|
+
min-width: 100%;
|
|
836
|
+
flex-direction: column;
|
|
837
|
+
height: ${e=>e.height}px;
|
|
838
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
839
|
+
`,Nc=a.div`
|
|
840
|
+
user-select: none;
|
|
841
|
+
display: flex;
|
|
842
|
+
flex: 1 1 auto;
|
|
843
|
+
flex-flow: row;
|
|
844
|
+
justify-content: flex-start;
|
|
845
|
+
align-items: center;
|
|
846
|
+
&:hover {
|
|
847
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
848
|
+
}
|
|
849
|
+
`,Tc=a.div`
|
|
850
|
+
display: flex;
|
|
851
|
+
flex: 1 0 auto;
|
|
852
|
+
flex-direction: row;
|
|
853
|
+
justify-content: flex-end;
|
|
854
|
+
color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
855
|
+
`,Pc=a.div`
|
|
856
|
+
display: flex;
|
|
857
|
+
flex-direction: row;
|
|
858
|
+
justify-content: flex-start;
|
|
859
|
+
`,zt=a(j)`
|
|
860
|
+
user-select: none;
|
|
861
|
+
min-width: ${H.balanceWidth};
|
|
862
|
+
max-width: ${H.balanceWidth};
|
|
863
|
+
text-align: right;
|
|
864
|
+
margin-left: ${H.balanceLeftMargin};
|
|
865
|
+
`,Fc=a(zt)`
|
|
866
|
+
color: ${e=>e.theme.colors.hero};
|
|
867
|
+
&:hover {
|
|
868
|
+
color: inherit;
|
|
869
|
+
}
|
|
870
|
+
`,zc=a.div`
|
|
871
|
+
display: flex;
|
|
872
|
+
flex-direction: row;
|
|
873
|
+
flex-shrink: 2;
|
|
874
|
+
flex-grow: 1;
|
|
875
|
+
align-items: center;
|
|
876
|
+
width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
877
|
+
max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
878
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
879
|
+
color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
880
|
+
${({isSticky:e})=>e?P`
|
|
881
|
+
position: -webkit-sticky;
|
|
882
|
+
position: sticky;
|
|
883
|
+
top: ${d.sp0};
|
|
884
|
+
left: ${d.sp0};
|
|
885
|
+
`:null}
|
|
886
|
+
`,Dc=a(j)`
|
|
887
|
+
user-select: none;
|
|
888
|
+
clear: both;
|
|
889
|
+
display: inline-block;
|
|
890
|
+
overflow: hidden;
|
|
891
|
+
white-space: nowrap;
|
|
892
|
+
text-overflow: ellipsis;
|
|
893
|
+
text-align: left;
|
|
894
|
+
margin-left: ${d.sp2};
|
|
895
|
+
`,Vc=({type:e,balance:n,collapsed:o,compareMode:i})=>{const r=o===!0?Fc:zt;return t.jsxs(Pc,{"data-testid":m("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":m("account-group-row-balance-actual",e),children:ne(n)}),Ee(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":m("account-group-row-balance-forecast",e),children:ie(n)}),t.jsx(zt,{"data-testid":m("account-group-row-balance-actual-vs-forecast",e),children:i==="compare_mode_percent"?we(n):ye(n)})]}):null]})};function Rc({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,accountGroupName:l,accountGroupBalances:c,compareMode:s,isScrolling:u,isOpen:h,isLeaf:p,isLastNode:g,onClick:f}){const x=W(),b=!p,y=b?"pointer":"default",_=l.length>0?l.substr(0,1).toUpperCase():"",C=Gc(c),B=me().colors.primary,[v,L]=T.useState(!1);return t.jsxs(Mc,{"data-testid":m("account-group-row-root-container",e),height:r,bgColor:n,windowSize:x,children:[t.jsxs(Nc,{"data-testid":m("account-group-row-container",e),style:{cursor:y},isClickable:b,onClick:()=>f?.(i),onMouseOver:()=>L(!0),onMouseLeave:()=>L(!1),children:[t.jsxs(zc,{"data-testid":m("account-group-row-name-container",e),bgColor:n,isSticky:o,windowSize:x,hasNonZeroBalance:C,children:[t.jsx(Le,{"data-testid":m("account-group-row-circle-with-letter",e),color:A(B),showCollapsedIcon:!h,showIcon:b&&v,firstLetter:_}),t.jsx(Dc,{"data-testid":m("account-group-row-name",e),children:l})]}),t.jsx(Tc,{"data-testid":m("account-group-row-balances-container",e),hasNonZeroBalance:C,children:c.map((z,V)=>t.jsx(Vc,{"data-testid":m("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:z,compareMode:s,collapsed:!1},V))})]}),t.jsx(Ec,{isScrolling:u,isLeaf:p,isLastNode:g,isOpen:h})]})}function Ec({isScrolling:e,isLeaf:n,isLastNode:o,isOpen:i}){return n||!i||!o?t.jsx(xn,{isScrolling:e,kind:"ac_group_row_separator"}):null}const Gc=e=>{let n=!1;if(e!=null){for(const o of e)if(o!=null&&o.balance.amount!==0){n=!0;break}}return n},Hc=a.div`
|
|
896
|
+
display: flex;
|
|
897
|
+
flex: 1 1 auto;
|
|
898
|
+
width: fit-content;
|
|
899
|
+
min-width: 100%;
|
|
900
|
+
flex-direction: column;
|
|
901
|
+
height: ${e=>e.height}px;
|
|
902
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
903
|
+
`,Kc=a.div`
|
|
904
|
+
user-select: none;
|
|
905
|
+
display: flex;
|
|
906
|
+
flex: 1 1 auto;
|
|
907
|
+
flex-flow: row;
|
|
908
|
+
justify-content: flex-start;
|
|
909
|
+
align-items: center;
|
|
910
|
+
&:hover {
|
|
911
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
912
|
+
}
|
|
913
|
+
`,Yc=a.div`
|
|
914
|
+
display: flex;
|
|
915
|
+
flex: 1 0 auto;
|
|
916
|
+
flex-direction: row;
|
|
917
|
+
justify-content: flex-end;
|
|
918
|
+
`,Uc=a.div`
|
|
919
|
+
display: flex;
|
|
920
|
+
flex-direction: row;
|
|
921
|
+
justify-content: flex-start;
|
|
922
|
+
`,Wt=a(j)`
|
|
923
|
+
user-select: none;
|
|
924
|
+
min-width: ${H.balanceWidth};
|
|
925
|
+
max-width: ${H.balanceWidth};
|
|
926
|
+
text-align: right;
|
|
927
|
+
margin-left: ${H.balanceLeftMargin};
|
|
928
|
+
color: ${e=>e.theme.colors.hero};
|
|
929
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
930
|
+
&:hover {
|
|
931
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
932
|
+
}
|
|
933
|
+
`,qc=a.div`
|
|
934
|
+
display: flex;
|
|
935
|
+
flex-direction: row;
|
|
936
|
+
flex-shrink: 2;
|
|
937
|
+
flex-grow: 1;
|
|
938
|
+
align-items: center;
|
|
939
|
+
width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
940
|
+
max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
941
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
942
|
+
${({isSticky:e})=>e?P`
|
|
943
|
+
position: -webkit-sticky;
|
|
944
|
+
position: sticky;
|
|
945
|
+
top: ${d.sp0};
|
|
946
|
+
left: ${d.sp0};
|
|
947
|
+
`:null}
|
|
948
|
+
`,Qc=a(j)`
|
|
949
|
+
user-select: none;
|
|
950
|
+
clear: both;
|
|
951
|
+
display: inline-block;
|
|
952
|
+
overflow: hidden;
|
|
953
|
+
white-space: nowrap;
|
|
954
|
+
text-overflow: ellipsis;
|
|
955
|
+
text-align: left;
|
|
956
|
+
margin-left: 35px;
|
|
957
|
+
color: ${e=>e.theme.colors.hero};
|
|
958
|
+
`,Zc=({type:e,balance:n,account:o,onAccountBalanceClick:i,compareMode:r})=>{const l=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",c=o!=null&&n!=null&&i!=null&&l!==!0;return t.jsxs(Uc,{children:[t.jsx(Wt,{isClickable:c,onClick:()=>{c===!0&&o!=null&&n!=null&&i?.(o,n)},children:ne(n)}),Ee(e)?t.jsxs(t.Fragment,{children:[t.jsx(Wt,{isClickable:!1,children:ie(n)}),t.jsx(Wt,{isClickable:!1,children:r==="compare_mode_percent"?we(n):ye(n)})]}):null]})};function Jc({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,accountBalances:l,isCompareModeOn:c,isForecastModeOn:s,isScrolling:u,isLeaf:h,isLastNode:p,compareMode:g,account:f,onAccountBalanceClick:x}){const b=W(),{common:{strings:{empty:y}}}=O.getLocalizedStrings(),_=f?.accountDescription?f.accountDescription:y,C=f?.accountName?f.accountName:_,B=go(),v=B.loggedInUserRole!=null&&!po(B.loggedInUserRole),L=v===!0&&f!=null&&c!==!0&&x!=null&&s!==!0,z=L?"pointer":"default",V=(U,R)=>{L===!0&&l[l.length-1]!=null&&x?.(U,R,l[l.length-1])};return t.jsxs(Hc,{height:r,bgColor:n,windowSize:b,children:[t.jsxs(Kc,{style:{cursor:z},isClickable:L,onClick:()=>f!=null?V(i,f):null,children:[t.jsx(qc,{isSticky:o,windowSize:b,bgColor:n,children:t.jsx(Qc,{title:C,children:C})}),t.jsx(Yc,{children:l.map((U,R)=>t.jsx(Zc,{type:e,balance:U,account:f,onAccountBalanceClick:v===!1||x==null?void 0:(Z,q)=>{x(i,Z,q)},compareMode:g},R))})]}),t.jsx(Xc,{isScrolling:u,isLeaf:h,isLastNode:p})]})}function Xc({isScrolling:e,isLeaf:n,isLastNode:o}){return n||!o?t.jsx(xn,{isScrolling:e,kind:"ac_group_row_separator"}):null}const es=a.div`
|
|
959
|
+
display: flex;
|
|
960
|
+
flex: 1 1 auto;
|
|
961
|
+
width: fit-content;
|
|
962
|
+
min-width: 100%;
|
|
963
|
+
flex-direction: column;
|
|
964
|
+
height: ${e=>e.rootHeight-1}px;
|
|
965
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
966
|
+
`,ts=a.div`
|
|
967
|
+
user-select: none;
|
|
968
|
+
display: flex;
|
|
969
|
+
flex: 1 1 auto;
|
|
970
|
+
flex-flow: row;
|
|
971
|
+
justify-content: flex-start;
|
|
972
|
+
align-items: center;
|
|
973
|
+
`,ns=a.div`
|
|
974
|
+
display: flex;
|
|
975
|
+
flex: 1 0 auto;
|
|
976
|
+
flex-direction: row;
|
|
977
|
+
justify-content: flex-end;
|
|
978
|
+
`,Un=a.div`
|
|
979
|
+
display: flex;
|
|
980
|
+
flex-direction: row;
|
|
981
|
+
justify-content: flex-start;
|
|
982
|
+
`,Te=a(j)`
|
|
983
|
+
user-select: none;
|
|
984
|
+
max-width: ${H.balanceWidth};
|
|
985
|
+
min-width: ${H.balanceWidth};
|
|
986
|
+
text-align: right;
|
|
987
|
+
margin-left: ${H.balanceLeftMargin};
|
|
988
|
+
`,qn=a(j)`
|
|
989
|
+
user-select: none;
|
|
990
|
+
max-width: ${H.balanceWidth};
|
|
991
|
+
min-width: ${H.balanceWidth};
|
|
992
|
+
text-align: right;
|
|
993
|
+
margin-left: ${H.balanceLeftMargin};
|
|
994
|
+
`,os=a.div`
|
|
995
|
+
display: flex;
|
|
996
|
+
flex-direction: column;
|
|
997
|
+
align-items: flex-end;
|
|
998
|
+
`,is=a.div`
|
|
999
|
+
display: flex;
|
|
1000
|
+
flex-direction: row;
|
|
1001
|
+
flex-shrink: 2;
|
|
1002
|
+
flex-grow: 1;
|
|
1003
|
+
align-items: center;
|
|
1004
|
+
height: ${d.sp7};
|
|
1005
|
+
width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
1006
|
+
max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
1007
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1008
|
+
${({isSticky:e})=>e?P`
|
|
1009
|
+
position: -webkit-sticky;
|
|
1010
|
+
position: sticky;
|
|
1011
|
+
top: ${d.sp0};
|
|
1012
|
+
left: ${d.sp0};
|
|
1013
|
+
`:null}
|
|
1014
|
+
`,rs=a(j)`
|
|
1015
|
+
user-select: none;
|
|
1016
|
+
user-select: none;
|
|
1017
|
+
clear: both;
|
|
1018
|
+
display: inline-block;
|
|
1019
|
+
overflow: hidden;
|
|
1020
|
+
white-space: nowrap;
|
|
1021
|
+
text-overflow: ellipsis;
|
|
1022
|
+
text-align: left;
|
|
1023
|
+
margin-left: ${d.sp2};
|
|
1024
|
+
`,as=({type:e,balance:n,color:o,compareMode:i})=>{const r=n!=null&&n.type==="default_with_percent"&&n.percentValue!=null?n.percentValue:0,l=n!=null&&n.type==="default_with_percent"&&n.forecastPercentValue!=null?n.forecastPercentValue:0;return t.jsxs(os,{children:[t.jsxs(Un,{children:[t.jsx(Te,{style:{color:o.toString()},children:ne(n)}),Ee(e)?t.jsxs(t.Fragment,{children:[t.jsx(Te,{style:{color:o.toString()},children:ie(n)}),t.jsx(Te,{style:{color:o.toString()},children:i==="compare_mode_percent"?we(n):ye(n)})]}):null]}),t.jsxs(Un,{children:[r!==0?t.jsx(qn,{style:{color:o.toString()},children:Ce("0,0%",r)}):null,Ee(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(qn,{style:{color:o.toString()},children:Ce("0,0%",l)}):t.jsx(Te,{}),t.jsx(Te,{})]}):null]})]})};function mn({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,sectionName:l,sectionBalances:c,sectionColor:s,isScrolling:u,isOpen:h,isLeaf:p,compareMode:g,onClick:f}){const x=W(),[b,y]=T.useState(!1),_=!p,C=_?"pointer":"default",B=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(es,{"data-testid":m("section-row-root-container",i),rootHeight:r,bgColor:n,windowSize:x,children:[t.jsxs(ts,{"data-testid":m("section-row-container",i),style:{cursor:C},onClick:()=>f?.(i),onMouseOver:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(is,{"data-testid":m("section-row-name-container",i),isSticky:o,windowSize:x,bgColor:n,children:[t.jsx(Le,{"data-testid":m("section-row-circle-with-letter",i),color:A(s),showCollapsedIcon:!h,showIcon:_&&b,firstLetter:B}),t.jsx(rs,{"data-testid":m("section-row-name",i),style:{color:s.toString()},children:l})]}),t.jsx(ns,{"data-testid":m("section-row-balances-container",i),children:c.map((v,L)=>t.jsx(as,{"data-testid":m("section-row-balance-element",e),type:e,sectionName:l,balance:v,color:s,compareMode:g},L))})]}),t.jsx(ls,{isScrolling:u,isLeaf:p,isOpen:h})]})}function ls({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(xn,{isScrolling:e,kind:"section_row_separator"}):null}const cs=a.div`
|
|
1025
|
+
display: flex;
|
|
1026
|
+
flex: 1 1 auto;
|
|
1027
|
+
width: fit-content;
|
|
1028
|
+
min-width: 100%;
|
|
1029
|
+
flex-direction: column;
|
|
1030
|
+
height: ${e=>e.height}px;
|
|
1031
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1032
|
+
`,ss=a.div`
|
|
1033
|
+
user-select: none;
|
|
1034
|
+
display: flex;
|
|
1035
|
+
flex: 1 1 auto;
|
|
1036
|
+
flex-flow: row;
|
|
1037
|
+
justify-content: flex-start;
|
|
1038
|
+
align-items: center;
|
|
1039
|
+
`,ds=a.div`
|
|
1040
|
+
display: flex;
|
|
1041
|
+
flex: 1 0 auto;
|
|
1042
|
+
flex-direction: row;
|
|
1043
|
+
justify-content: flex-end;
|
|
1044
|
+
`,us=a.div`
|
|
1045
|
+
display: flex;
|
|
1046
|
+
flex-direction: row;
|
|
1047
|
+
justify-content: flex-start;
|
|
1048
|
+
`,li=a(j)`
|
|
1049
|
+
user-select: none;
|
|
1050
|
+
min-width: ${H.balanceWidth};
|
|
1051
|
+
max-width: ${H.balanceWidth};
|
|
1052
|
+
text-align: right;
|
|
1053
|
+
margin-left: ${H.balanceLeftMargin};
|
|
1054
|
+
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1055
|
+
`,hs=a(li)`
|
|
1056
|
+
color: ${e=>e.theme.colors.hero};
|
|
1057
|
+
&:hover {
|
|
1058
|
+
color: inherit;
|
|
1059
|
+
}
|
|
1060
|
+
`,gs=a.div`
|
|
1061
|
+
display: flex;
|
|
1062
|
+
flex-direction: row;
|
|
1063
|
+
flex-shrink: 2;
|
|
1064
|
+
flex-grow: 1;
|
|
1065
|
+
align-items: center;
|
|
1066
|
+
width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
1067
|
+
max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
1068
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1069
|
+
${({isSticky:e})=>e?P`
|
|
1070
|
+
position: -webkit-sticky;
|
|
1071
|
+
position: sticky;
|
|
1072
|
+
top: ${d.sp0};
|
|
1073
|
+
left: ${d.sp0};
|
|
1074
|
+
`:null}
|
|
1075
|
+
`,ps=a(j)`
|
|
1076
|
+
user-select: none;
|
|
1077
|
+
clear: both;
|
|
1078
|
+
display: inline-block;
|
|
1079
|
+
overflow: hidden;
|
|
1080
|
+
white-space: nowrap;
|
|
1081
|
+
text-overflow: ellipsis;
|
|
1082
|
+
text-align: left;
|
|
1083
|
+
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1084
|
+
`,Mt=a(j)`
|
|
1085
|
+
user-select: none;
|
|
1086
|
+
min-width: ${H.balanceWidth};
|
|
1087
|
+
max-width: ${H.balanceWidth};
|
|
1088
|
+
text-align: right;
|
|
1089
|
+
margin-left: ${H.balanceLeftMargin};
|
|
1090
|
+
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1091
|
+
`,fs=({type:e,balance:n,collapsed:o,compareMode:i})=>{const r=o===!0?hs:li;return t.jsxs(us,{children:[pe(e)===!0?t.jsx(r,{children:ne(n)}):null,Ee(e)?t.jsxs(t.Fragment,{children:[t.jsx(Mt,{children:ne(n)}),t.jsx(Mt,{children:ie(n)}),t.jsx(Mt,{children:i==="compare_mode_percent"?we(n):ye(n)})]}):null]})};function xs({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,title:l,totalBalances:c,isLeaf:s,compareMode:u,onClick:h}){const p=W(),g=!s,f=g?"pointer":"default";return t.jsx(cs,{height:r,bgColor:n,windowSize:p,children:t.jsxs(ss,{style:{cursor:f},isClickable:g,onClick:()=>h?.(i),children:[t.jsx(gs,{bgColor:n,isSticky:o,windowSize:p,children:t.jsx(ps,{children:l})}),t.jsx(ds,{children:c.map((x,b)=>t.jsx(fs,{type:e,balance:x,collapsed:!1,compareMode:u},b))})]})})}const Ie={net_burn_or_income:{income:{color:new A(E.graphColor04),hoverColor:new A(E.graphColor04Dark)},cogs:{color:new A(E.graphColor10),hoverColor:new A(E.graphColor10Dark)},expenses:{color:new A(E.graphColor32),hoverColor:new A(E.graphColor32Dark)},"Gross Burn":{color:new A(re.neutralGrey2Dark),hoverColor:new A(re.neutralGrey2Dark)},"Net Burn":{color:new A(E.graphColor13),hoverColor:new A(E.graphColor13Dark)},"Net Income":{color:new A(E.graphColor13),hoverColor:new A(E.graphColor13Dark)}},revenue:{income:{color:new A(E.graphColor28),hoverColor:new A(E.graphColor28Dark)},cogs:{color:new A(E.graphColor17),hoverColor:new A(E.graphColor17Dark)},"Gross Margin":{color:new A(E.graphColor10),hoverColor:new A(E.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new A(E.graphColor33),hoverColor:new A(E.graphColor33Dark)},cash_out:{color:new A(E.graphColor02),hoverColor:new A(E.graphColor02Dark)},"Net Cash Flow":{color:new A(E.graphColor35),hoverColor:new A(E.graphColor35Dark)}},default:{color:new A(re.neutralGrey2Dark),hoverColor:new A(re.neutralGrey2Dark)}},wn=(e,n)=>e.startsWith("net_burn_or_income")===!0?n!=null?Ie.net_burn_or_income[n]:Ie.default:e.startsWith("revenue")===!0?n!=null?Ie.revenue[n]:Ie.default:e.startsWith("cash_in_cash_out")===!0&&n!=null?Ie.cash_in_cash_out[n]:Ie.default,ms=(e,n,o,i,r,l,c,s,u,h,p)=>{if(o.element.kind!="ac_report"||o.element.data==null)return null;const g=o.element.data,f=Ye(o.config.reportId)===!0?ni("no_filter",o.config.filterAccountsWithNilBalances):mt(o.element.sectionType,"no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances),x=ae(f.acBalanceSelector(g),o.config.displayOrder,o.element.numOfBalances);return t.jsx(Jc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,accountBalances:x.balances,isCompareModeOn:o.config.mode==="this_period_vs_period_before",isForecastModeOn:o.config.mode==="actual_vs_forecast",isScrolling:c,isLeaf:s,isLastNode:u,compareMode:h,account:g,onAccountBalanceClick:p==null?void 0:(b,y,_)=>{p?.(b,y,_)}})},ws=(e,n,o,i,r,l,c,s,u,h,p,g)=>{if(o.element.kind!="ac_group_report"||o.element.data==null)return null;const f=o.element.data,x=mt(o.element.sectionType,"no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances),b=ae(x.acGroupBalanceSelector(f),o.config.displayOrder,o.element.numOfBalances);return t.jsx(Rc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,accountGroupName:f.accountGroupName,compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:s,isLeaf:u,isLastNode:h,onClick:y=>{g?.(y)}})},ci=(e,n,o,i,r,l,c,s,u,h,p,g)=>{if(o.element.kind!="section"||o.element.data==null)return null;const f=wn(o.config.reportId,o.element.sectionType),x=o.element.data,b=ae(x,o.config.displayOrder,o.element.numOfBalances);return t.jsx(mn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionColor:f.color,sectionName:o.element.title,sectionBalances:b.balances,isScrolling:c,isOpen:s,isLeaf:u,isLastNode:h,compareMode:p,onClick:y=>{g?.(y)}})},ys=(e,n,o,i,r,l,c,s,u,h,p,g)=>{if(o.element.kind!="section_with_ac_only"||o.element.data==null)return null;const f=wn(o.config.reportId,o.element.sectionType),x=o.element.data,b=ae(x,o.config.displayOrder,o.element.numOfBalances);return t.jsx(mn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:s,isLeaf:u,isLastNode:h,compareMode:p,onClick:y=>{g?.(y)}})},si=(e,n,o,i,r,l,c,s,u,h,p,g)=>{if(o.element.kind!="calculated_section"||o.element.data==null)return null;const f=wn(o.config.reportId,o.element.title),x=o.element.data,b=ae(x,o.config.displayOrder,o.element.numOfBalances);return t.jsx(mn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:s,isLeaf:u,isLastNode:h,compareMode:p,onClick:y=>{g?.(y)}})},di=(e,n,o,i,r,l,c,s)=>{if((o.config.isZeniCOAInUse==null||o.config.isZeniCOAInUse===!0)&&o.config.mode!=="this_period_vs_period_before")return null;const u=o.element.data,h=ae(u,o.config.displayOrder,o.element.numOfBalances);return t.jsx(xs,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,title:o.element.title,height:i,isLeaf:s,compareMode:c,totalBalances:h.balances})},bs=(e,n,o)=>e.element.kind!=="loading_in_progress"?null:t.jsx(oi,{height:n,backgroundColor:o,title:e.element.title,numOfBalances:e.element.numOfBalances}),ks=(e,n,o)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(ri,{height:n,backgroundColor:o,numOfBalances:e.element.numOfBalances}),yn=20,Ss=e=>{const n=[];return e&&Object.values(e).forEach(o=>{n.push(o)}),n.reverse()},Cs=a.div`
|
|
1092
|
+
display: flex;
|
|
1093
|
+
flex: 1 1 auto;
|
|
1094
|
+
height: 1px;
|
|
1095
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
1096
|
+
`,_s=a.div`
|
|
1097
|
+
display: flex;
|
|
1098
|
+
height: 1px;
|
|
1099
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
1100
|
+
`;function Dt({kind:e,isScrolling:n}){switch(e){case"account_class_row_separator":return t.jsx(Cs,{isScrolling:n});case"section_row_separator":case"vendor_separator":return t.jsx(_s,{isScrolling:n});case"heading_row_separator":return null}}const js=a.div`
|
|
1101
|
+
position: relative;
|
|
1102
|
+
`,vs=a.div`
|
|
1103
|
+
height: ${e=>e.height}px;
|
|
1104
|
+
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1105
|
+
width: 1px;
|
|
1106
|
+
`;a.div`
|
|
1107
|
+
height: 39px;
|
|
1108
|
+
width: 2px;
|
|
1109
|
+
`;const $s=a.div`
|
|
1110
|
+
position: relative;
|
|
1111
|
+
margin-right: ${d.sp3};
|
|
1112
|
+
&::after {
|
|
1113
|
+
content: "";
|
|
1114
|
+
position: absolute;
|
|
1115
|
+
top: 20px;
|
|
1116
|
+
border-top: 1px solid ${e=>e.theme.colors.grey1};
|
|
1117
|
+
width: 18px;
|
|
1118
|
+
}
|
|
1119
|
+
`,Ls=a.div`
|
|
1120
|
+
height: ${d.sp6};
|
|
1121
|
+
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1122
|
+
width: 1px;
|
|
1123
|
+
`,As=a.div`
|
|
1124
|
+
position: relative;
|
|
1125
|
+
margin-right: ${d.sp3};
|
|
1126
|
+
&::after {
|
|
1127
|
+
content: "";
|
|
1128
|
+
position: absolute;
|
|
1129
|
+
top: ${e=>e.height}px;
|
|
1130
|
+
border-top: 1px solid ${e=>e.theme.colors.grey1};
|
|
1131
|
+
width: 18px;
|
|
1132
|
+
}
|
|
1133
|
+
`,Bs=a.div`
|
|
1134
|
+
height: ${e=>e.height}px;
|
|
1135
|
+
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1136
|
+
margin-bottom: ${e=>e.height}px;
|
|
1137
|
+
width: 1px;
|
|
1138
|
+
`,ui=({height:e})=>t.jsx(js,{children:t.jsx(vs,{height:e})}),Is=({height:e})=>t.jsx(As,{height:e,children:t.jsx(Bs,{height:e})}),Os=()=>t.jsx($s,{children:t.jsx(Ls,{})}),S={balanceHeight:d.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 hi(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 Ws(e){return["section","flux_vendor_account_class_row","flux_vendor_row"].includes(e)}const Qn=O.getLocalizedStrings(),Ms=a.div`
|
|
1139
|
+
display: flex;
|
|
1140
|
+
flex-shrink: 0;
|
|
1141
|
+
width: ${S.varianceContainerWidth};
|
|
1142
|
+
min-width: ${S.varianceContainerWidth};
|
|
1143
|
+
margin-left: 12px;
|
|
1144
|
+
gap: ${d.sp1};
|
|
1145
|
+
flex-direction: row;
|
|
1146
|
+
justify-content: flex-end;
|
|
1147
|
+
text-align: center;
|
|
1148
|
+
`,Ns=a.div`
|
|
1149
|
+
height: ${d.sp4};
|
|
1150
|
+
border-radius: ${d.sp1};
|
|
1151
|
+
padding: 2px ${d.sp1};
|
|
1152
|
+
color: ${e=>e.textColor.hex()};
|
|
1153
|
+
`,Ts=a.div`
|
|
1154
|
+
border-radius: ${d.sp1};
|
|
1155
|
+
padding: 2px ${d.sp1};
|
|
1156
|
+
height: ${d.sp4};
|
|
1157
|
+
justify-content: center;
|
|
1158
|
+
text-align: center;
|
|
1159
|
+
color: ${e=>e.textColor.hex()};
|
|
1160
|
+
background-color: ${e=>e.bgColor.hex()};
|
|
1161
|
+
`,bt=({amount:e,percentage:n,currency:o})=>{const i=me();return t.jsxs(Ms,{children:[t.jsx(Ns,{textColor:e>0?new A(i.colors.brandColorGoldDark):new A(i.colors.success),children:te("0,0",lr(Math.abs(e),o.currencyCode,o.currencySymbol))}),t.jsx(Ts,{textColor:e>0?new A(i.colors.brandColorGoldDark):new A(i.colors.success),bgColor:e>0?new A(re.brandColorGoldLight):new A(re.successLight),children:`${cr(Math.abs(n)).format(Qn.common.numberFormat.roundedOff)}${Qn.common.strings.percentage}`})]})},Zn=O.getLocalizedStrings(),Ps=a.div`
|
|
1162
|
+
display: flex;
|
|
1163
|
+
flex: 1 1 auto;
|
|
1164
|
+
width: fit-content;
|
|
1165
|
+
min-width: 100%;
|
|
1166
|
+
flex-direction: column;
|
|
1167
|
+
`,Fs=a.div`
|
|
1168
|
+
display: flex;
|
|
1169
|
+
flex: 1 1 auto;
|
|
1170
|
+
flex-flow: row;
|
|
1171
|
+
justify-content: flex-start;
|
|
1172
|
+
align-items: center;
|
|
1173
|
+
width: 100%;
|
|
1174
|
+
color: ${e=>e.isHoveredByParent?e.theme.colors.primary:e.theme.colors.hero};
|
|
1175
|
+
&:hover {
|
|
1176
|
+
color: ${e=>e.theme.colors.primary};
|
|
1177
|
+
}
|
|
1178
|
+
`,gi=a.div`
|
|
1179
|
+
display: flex;
|
|
1180
|
+
flex-direction: column;
|
|
1181
|
+
`,pi=a.div`
|
|
1182
|
+
display: flex;
|
|
1183
|
+
height: ${d.sp4};
|
|
1184
|
+
`,zs=a.div`
|
|
1185
|
+
display: flex;
|
|
1186
|
+
flex-direction: row;
|
|
1187
|
+
justify-content: flex-start;
|
|
1188
|
+
`,Ds=a(j)`
|
|
1189
|
+
min-width: ${S.balanceWidth};
|
|
1190
|
+
max-width: ${S.balanceWidth};
|
|
1191
|
+
text-align: right;
|
|
1192
|
+
margin-left: 12px;
|
|
1193
|
+
`,Vs=a.div`
|
|
1194
|
+
display: flex;
|
|
1195
|
+
flex-direction: column;
|
|
1196
|
+
flex-shrink: 2;
|
|
1197
|
+
flex-grow: 1;
|
|
1198
|
+
align-items: center;
|
|
1199
|
+
width: ${S.categoryClassContainerWidth};
|
|
1200
|
+
max-width: ${S.categoryClassContainerWidth};
|
|
1201
|
+
padding-left: 67.5px;
|
|
1202
|
+
${({isSticky:e})=>e?P`
|
|
1203
|
+
position: sticky;
|
|
1204
|
+
top: ${d.sp0};
|
|
1205
|
+
left: ${d.sp0};
|
|
1206
|
+
display: flex;
|
|
1207
|
+
`:null}
|
|
1208
|
+
`,Rs=a.div`
|
|
1209
|
+
display: flex;
|
|
1210
|
+
height: ${d.sp4};
|
|
1211
|
+
width: 100%;
|
|
1212
|
+
`,Es=a.div`
|
|
1213
|
+
display: flex;
|
|
1214
|
+
flex-direction: row;
|
|
1215
|
+
flex-shrink: 2;
|
|
1216
|
+
flex-grow: 1;
|
|
1217
|
+
align-items: center;
|
|
1218
|
+
width: 100%;
|
|
1219
|
+
`,Gs=a($e)`
|
|
1220
|
+
display: flex;
|
|
1221
|
+
width: ${S.categoryClassHeaderWidth};
|
|
1222
|
+
margin-left: ${d.sp3};
|
|
1223
|
+
color: ${e=>e.theme.colors.hero};
|
|
1224
|
+
`,Hs=a($e)`
|
|
1225
|
+
display: flex;
|
|
1226
|
+
width: ${S.categoryClassHeaderWidth};
|
|
1227
|
+
margin-left: ${d.sp4};
|
|
1228
|
+
color: ${e=>e.theme.colors.hero};
|
|
1229
|
+
`,Ks=a(j)`
|
|
1230
|
+
clear: both;
|
|
1231
|
+
display: flex;
|
|
1232
|
+
overflow: hidden;
|
|
1233
|
+
white-space: nowrap;
|
|
1234
|
+
text-overflow: ellipsis;
|
|
1235
|
+
text-align: left;
|
|
1236
|
+
margin-left: 2px;
|
|
1237
|
+
width: ${S.categoryClassValueWidth};
|
|
1238
|
+
max-width: ${S.categoryClassValueWidth};
|
|
1239
|
+
`,Ys=a(j)`
|
|
1240
|
+
display: flex;
|
|
1241
|
+
align-items: center;
|
|
1242
|
+
overflow: hidden;
|
|
1243
|
+
white-space: nowrap;
|
|
1244
|
+
text-overflow: ellipsis;
|
|
1245
|
+
text-align: left;
|
|
1246
|
+
margin-left: ${d.sp4};
|
|
1247
|
+
margin-right: ${d.sp3};
|
|
1248
|
+
width: ${S.categoryClassValueWidth};
|
|
1249
|
+
max-width: ${S.categoryClassValueWidth};
|
|
1250
|
+
`,Us=a.div`
|
|
1251
|
+
display: flex;
|
|
1252
|
+
margin-left: ${d.sp7};
|
|
1253
|
+
margin-right: calc(
|
|
1254
|
+
${S.statusContainerWidth} +
|
|
1255
|
+
${S.statusLeftMargin}
|
|
1256
|
+
);
|
|
1257
|
+
`,qs=a.div`
|
|
1258
|
+
position: sticky;
|
|
1259
|
+
left: 0;
|
|
1260
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1261
|
+
display: flex;
|
|
1262
|
+
`,Qs=a.div`
|
|
1263
|
+
overflow-x: auto;
|
|
1264
|
+
display: flex;
|
|
1265
|
+
flex: 1;
|
|
1266
|
+
justify-content: flex-end;
|
|
1267
|
+
`,Zs=({isBalanceRowFirstNode:e=!1,balance:n})=>{const o=n!=null;return t.jsxs(gi,{children:[e?t.jsx(pi,{}):null,t.jsx(zs,{children:t.jsx(Ds,{isClickable:o,children:ne(n)})})]})};function Js({varianceAmount:e,variancePercentage:n,currency:o,isSticky:i,balances:r,isScrolling:l,nodeMetadata:c,isLeaf:s,isLastNode:u,accountAndClass:h,isHoveredByParent:p}){const{common:{strings:{hyphen:g}}}=O.getLocalizedStrings(),f=h.accountBase?.accountDescription?h.accountBase?.accountDescription:g,x=h.accountBase?.accountName?h.accountBase?.accountName:f,b=h.classBase?.className?h.classBase?.className:g,y=c?.accountAndClassRowMetadata.isLastNode;return t.jsxs(Ps,{children:[t.jsxs(Fs,{style:{cursor:"default"},isHoveredByParent:p,children:[t.jsx(qs,{children:t.jsxs(Vs,{className:"flux-class-and-account-value-container",isSticky:i,children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(Rs,{children:[t.jsx(ui,{height:S.lineComponentHeight}),t.jsx(Gs,{children:Zn.common.texts.category}),t.jsx(Hs,{children:Zn.common.texts.class})]}),t.jsxs(Es,{children:[y===!0?t.jsx(Is,{height:S.lineLComponentHeight}):t.jsx(Os,{}),t.jsx(Ks,{title:x,children:x}),t.jsx(Ys,{title:b,children:b})]})]})}),t.jsx(Qs,{children:t.jsxs(Us,{children:[r.map((_,C)=>t.jsx(Zs,{balance:_,isBalanceRowFirstNode:c?.accountAndClassRowMetadata.isFirstNode},C)),t.jsxs(gi,{children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsx(pi,{}),t.jsx(bt,{amount:e,percentage:n,currency:o})]})]})})]}),t.jsx(Xs,{isScrolling:l,isLeaf:s,isLastNode:u,isParentLastChild:c?.isVendorLastChild??!0})]})}function Xs({isScrolling:e,isLastNode:n,isParentLastChild:o}){return n&&o?t.jsx(Dt,{isScrolling:e,kind:"vendor_separator"}):n?t.jsx(Dt,{isScrolling:e,kind:"account_class_row_separator"}):null}function ed(){return t.jsxs(td,{children:[t.jsxs(od,{children:[t.jsxs(Oe,{width:S.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(Ke,{width:w[4],height:w[4]}),t.jsx(Q,{width:S.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:d.sp2}})]}),t.jsx(Oe,{width:S.categoryRowsSkeletonContainerWidth,children:t.jsx(Q,{width:S.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:d.sp2}})})]}),t.jsxs(nd,{children:[t.jsx(Oe,{width:S.titleWidthMedium,children:t.jsx(Q,{width:S.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(Oe,{width:S.titleWidthMedium,children:t.jsx(Q,{width:S.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(Oe,{width:S.varianceRowSkeletonContainerWidth,children:[t.jsx(Q,{width:S.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}}),t.jsx(Q,{width:w[7],height:w[4],style:{display:"flex",alignItems:"flex-start",marginLeft:d.sp1}})]}),t.jsx(Oe,{width:S.titleWidthMedium,children:t.jsx(Q,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const td=a.div`
|
|
1268
|
+
display: flex;
|
|
1269
|
+
flex-direction: row;
|
|
1270
|
+
width: 100%;
|
|
1271
|
+
margin-left: ${d.sp8};
|
|
1272
|
+
.vendor-title {
|
|
1273
|
+
justify-content: flex-start;
|
|
1274
|
+
}
|
|
1275
|
+
`,Oe=a.div`
|
|
1276
|
+
display: flex;
|
|
1277
|
+
flex-direction: row;
|
|
1278
|
+
align-items: center;
|
|
1279
|
+
min-width: ${e=>e.width};
|
|
1280
|
+
color: ${e=>e.theme.colors.primary};
|
|
1281
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1282
|
+
justify-content: flex-end;
|
|
1283
|
+
|
|
1284
|
+
:last-of-type {
|
|
1285
|
+
justify-content: center;
|
|
1286
|
+
}
|
|
1287
|
+
`,nd=a.div`
|
|
1288
|
+
display: flex;
|
|
1289
|
+
`,od=a.div`
|
|
1290
|
+
display: flex;
|
|
1291
|
+
width: ${S.vendorContainerWidth};
|
|
1292
|
+
position: sticky;
|
|
1293
|
+
left: ${d.sp8};
|
|
1294
|
+
top: 0;
|
|
1295
|
+
z-index: 10;
|
|
1296
|
+
`,id=a.div`
|
|
1297
|
+
display: flex;
|
|
1298
|
+
flex: 1 1 auto;
|
|
1299
|
+
width: fit-content;
|
|
1300
|
+
min-width: 100%;
|
|
1301
|
+
flex-direction: column;
|
|
1302
|
+
height: ${e=>e.heightValue}px;
|
|
1303
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1304
|
+
`,rd=a.div`
|
|
1305
|
+
display: flex;
|
|
1306
|
+
flex: 1 1 auto;
|
|
1307
|
+
flex-flow: row;
|
|
1308
|
+
justify-content: flex-start;
|
|
1309
|
+
align-items: center;
|
|
1310
|
+
`,ad=a.div`
|
|
1311
|
+
display: flex;
|
|
1312
|
+
flex-direction: row;
|
|
1313
|
+
justify-content: flex-start;
|
|
1314
|
+
`,ld=a(j)`
|
|
1315
|
+
max-width: ${S.balanceWidth};
|
|
1316
|
+
min-width: ${S.balanceWidth};
|
|
1317
|
+
text-align: right;
|
|
1318
|
+
margin-left: ${S.balanceLeftMargin};
|
|
1319
|
+
color: ${({color:e})=>e};
|
|
1320
|
+
`,cd=a.div`
|
|
1321
|
+
display: flex;
|
|
1322
|
+
flex-direction: row;
|
|
1323
|
+
flex-shrink: 2;
|
|
1324
|
+
align-items: center;
|
|
1325
|
+
height: 100%;
|
|
1326
|
+
width: ${S.sectionContainerWidth};
|
|
1327
|
+
min-width: ${S.sectionContainerWidth};
|
|
1328
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1329
|
+
${({isSticky:e})=>e&&P`
|
|
1330
|
+
position: sticky;
|
|
1331
|
+
top: ${d.sp0};
|
|
1332
|
+
left: ${d.sp0};
|
|
1333
|
+
`}
|
|
1334
|
+
`,sd=a(j)`
|
|
1335
|
+
clear: both;
|
|
1336
|
+
display: inline-block;
|
|
1337
|
+
overflow: hidden;
|
|
1338
|
+
white-space: nowrap;
|
|
1339
|
+
text-overflow: ellipsis;
|
|
1340
|
+
text-align: left;
|
|
1341
|
+
margin-left: ${d.sp2};
|
|
1342
|
+
color: ${({color:e})=>e};
|
|
1343
|
+
`,dd=a(en)`
|
|
1344
|
+
color: ${e=>e.theme.colors.primary};
|
|
1345
|
+
width: ${d.sp3};
|
|
1346
|
+
height: ${d.sp3};
|
|
1347
|
+
`,ud=a.div`
|
|
1348
|
+
display: flex;
|
|
1349
|
+
&:hover {
|
|
1350
|
+
.flux-section-checkbox {
|
|
1351
|
+
background-color: transparent;
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
`,hd=a.div`
|
|
1355
|
+
display: flex;
|
|
1356
|
+
width: ${d.sp8};
|
|
1357
|
+
`,gd=a.div`
|
|
1358
|
+
display: flex;
|
|
1359
|
+
margin-left: ${d.sp7};
|
|
1360
|
+
flex: 1 1 auto;
|
|
1361
|
+
justify-content: flex-end;
|
|
1362
|
+
margin-right: calc(
|
|
1363
|
+
${S.statusContainerWidth} +
|
|
1364
|
+
${S.statusLeftMargin}
|
|
1365
|
+
);
|
|
1366
|
+
`,pd=({balance:e,color:n})=>t.jsx(ad,{children:t.jsx(ld,{color:n,children:ne(e)})}),fd=mr.memo(function({currency:e,sectionId:n,selectedSectionsIds:o,backgroundColor:i,isSticky:r,treeNodeId:l,height:c,sectionName:s,hasVendors:u,sectionBalances:h,varianceAmount:p,variancePercentage:g,sectionColor:f,isScrolling:x,isOpen:b,isLeaf:y,idsForReview:_,sectionToggled:C,onSectionCheckboxClick:B}){const v=W(),[L,z]=T.useState(_.length>0),[V,U]=T.useState(!1),R=o.includes(n),Z=!y,q=_.length===yn&&!R,ue=s?.[0]?.toUpperCase()??"",ee=T.useCallback(D=>{B?.(n,D.target.checked)},[n,B]);return t.jsxs(id,{heightValue:c,bgColor:i,children:[t.jsxs(rd,{style:{cursor:Z?"pointer":"default"},onClick:()=>C?.(l),onMouseOver:()=>{U(!0),z(!0)},onMouseLeave:()=>{U(!1),_.length===0&&z(!1)},children:[t.jsxs(cd,{className:"flux-section-name-container",isSticky:r,windowSize:v,bgColor:i,children:[u&&L&&b?t.jsx(ud,{children:t.jsx(Qt,{"aria-label":`Toggle section ${s}`,className:"flux-section-checkbox",icon:t.jsx(Zt,{width:d.sp3,height:d.sp3}),checkedIcon:t.jsx(dd,{}),checked:R,id:l,disabled:q,onChange:ee,onClick:D=>D.stopPropagation(),style:{padding:"20px",pointerEvents:q?"none":"auto"}})}):t.jsx(hd,{}),t.jsx(Le,{color:A(f),showCollapsedIcon:!b,showIcon:V&&Z,firstLetter:ue}),t.jsx(sd,{color:f.toString(),children:s})]}),t.jsxs(gd,{children:[h.map((D,J)=>t.jsx(pd,{sectionName:s,balance:D,color:f.toString()},J)),t.jsx(bt,{amount:p,percentage:g,currency:e})]})]}),t.jsx(xd,{isScrolling:x,isLeaf:y,isOpen:b})]})});function xd({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(Dt,{isScrolling:e,kind:"section_row_separator"}):null}function md(){const e=W();return t.jsxs(wd,{windowSize:e,children:[t.jsx(Pe,{windowSize:e,width:S.vendorContainerWidth,marginRight:0,children:t.jsx(Q,{width:w[9],height:w[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(Pe,{windowSize:e,width:S.titleWidthMedium,marginRight:0,children:t.jsx(Q,{width:128,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Pe,{windowSize:e,width:S.titleWidthMedium,marginRight:0,children:t.jsx(Q,{width:S.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Pe,{windowSize:e,width:S.varianceRowSkeletonContainerWidth,children:t.jsx(Q,{width:184,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Pe,{windowSize:e,width:S.titleWidthSmall,children:t.jsx(Q,{width:S.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})})]})}const wd=a.div`
|
|
1367
|
+
display: flex;
|
|
1368
|
+
flex-direction: row;
|
|
1369
|
+
width: 100%;
|
|
1370
|
+
margin-left: ${d.sp8};
|
|
1371
|
+
`,Pe=a.div`
|
|
1372
|
+
display: flex;
|
|
1373
|
+
flex-direction: row;
|
|
1374
|
+
align-items: center;
|
|
1375
|
+
margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:d.sp4};
|
|
1376
|
+
min-width: ${e=>e.width};
|
|
1377
|
+
color: ${e=>e.theme.colors.primary};
|
|
1378
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1379
|
+
justify-content: flex-end;
|
|
1380
|
+
:first-of-type {
|
|
1381
|
+
justify-content: flex-start;
|
|
1382
|
+
}
|
|
1383
|
+
`,{common:yd,expenseAutomation:{fluxAnalysis:bd},vendors:{opExByVendor:kd}}=O.getLocalizedStrings(),Sd=a.div`
|
|
1384
|
+
display: flex;
|
|
1385
|
+
flex: 1 1 auto;
|
|
1386
|
+
width: fit-content;
|
|
1387
|
+
min-width: 100%;
|
|
1388
|
+
height: ${e=>`${e.heightValue}px`};
|
|
1389
|
+
flex-flow: row;
|
|
1390
|
+
justify-content: flex-start;
|
|
1391
|
+
align-items: center;
|
|
1392
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1393
|
+
`,Vt=a.div`
|
|
1394
|
+
display: flex;
|
|
1395
|
+
max-height: ${d.sp8};
|
|
1396
|
+
min-height: ${d.sp8};
|
|
1397
|
+
min-width: ${e=>e.width!=null?e.width:S.balanceHeaderWidth};
|
|
1398
|
+
justify-content: center;
|
|
1399
|
+
align-items: center;
|
|
1400
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1401
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1402
|
+
border-radius: ${d.sp2};
|
|
1403
|
+
margin-left: ${S.balanceLeftMargin};
|
|
1404
|
+
color: ${e=>e.theme.colors.primary};
|
|
1405
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
1406
|
+
`,Cd=a(j)`
|
|
1407
|
+
display: flex;
|
|
1408
|
+
flex-direction: row;
|
|
1409
|
+
justify-content: center;
|
|
1410
|
+
align-items: center;
|
|
1411
|
+
height: ${S.balanceHeight};
|
|
1412
|
+
max-width: ${S.balanceHeaderWidth};
|
|
1413
|
+
width: 138px;
|
|
1414
|
+
text-align: center;
|
|
1415
|
+
`,_d=a.div`
|
|
1416
|
+
display: flex;
|
|
1417
|
+
cursor: pointer;
|
|
1418
|
+
`,jd=a.div`
|
|
1419
|
+
display: flex;
|
|
1420
|
+
cursor: pointer;
|
|
1421
|
+
justify-content: center;
|
|
1422
|
+
align-items: center;
|
|
1423
|
+
color: ${e=>e.theme.colors.primary};
|
|
1424
|
+
`,vd=a.div`
|
|
1425
|
+
display: flex;
|
|
1426
|
+
flex-direction: row;
|
|
1427
|
+
z-index: 1;
|
|
1428
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1429
|
+
padding-left: ${d.sp8};
|
|
1430
|
+
${({isSticky:e})=>e?P`
|
|
1431
|
+
top: ${d.sp0};
|
|
1432
|
+
left: ${d.sp0};
|
|
1433
|
+
display: flex;
|
|
1434
|
+
position: sticky;
|
|
1435
|
+
`:null};
|
|
1436
|
+
`,$d=a.div`
|
|
1437
|
+
height: ${d.sp8};
|
|
1438
|
+
display: flex;
|
|
1439
|
+
flex-direction: row;
|
|
1440
|
+
align-items: center;
|
|
1441
|
+
min-width: ${S.vendorContainerWidth};
|
|
1442
|
+
color: ${e=>e.theme.colors.primary};
|
|
1443
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1444
|
+
`,Ld=a(j)`
|
|
1445
|
+
display: flex;
|
|
1446
|
+
gap: 6px;
|
|
1447
|
+
align-items: baseline;
|
|
1448
|
+
color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
|
|
1449
|
+
`,Rt=a.div`
|
|
1450
|
+
display: flex;
|
|
1451
|
+
cursor: pointer;
|
|
1452
|
+
`,Et=a.div`
|
|
1453
|
+
color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
|
|
1454
|
+
`,Gt=a(nn)`
|
|
1455
|
+
width: ${S.sortIconDimension};
|
|
1456
|
+
height: ${S.sortIconDimension};
|
|
1457
|
+
margin-left: ${d.sp2};
|
|
1458
|
+
margin-top: ${d.sp1};
|
|
1459
|
+
`,Ht=a(on)`
|
|
1460
|
+
width: ${S.sortIconDimension};
|
|
1461
|
+
height: ${S.sortIconDimension};
|
|
1462
|
+
margin-left: ${d.sp2};
|
|
1463
|
+
margin-top: ${d.sp1};
|
|
1464
|
+
`,Ad=a.div`
|
|
1465
|
+
display: flex;
|
|
1466
|
+
margin-left: ${d.sp7};
|
|
1467
|
+
flex: 1 1 auto;
|
|
1468
|
+
justify-content: flex-end;
|
|
1469
|
+
`,Bd=({firstMonthOfFY:e,timeframeTick:n,timeframe:o})=>t.jsx(Vt,{isClickable:!1,children:t.jsx(Cd,{children:Ue(e,n,o)})}),Id=({firstMonthOfFY:e,timeframeTick:n,timeframe:o})=>t.jsx(Bd,{firstMonthOfFY:e,timeframeTick:n,timeframe:o}),Od=({sortKey:e="vendor",sortOrder:n="ascending",isBulkSelected:o,onSortOrderChanged:i})=>{const r=()=>{i(n==="ascending"?"descending":"ascending","vendor")},l=e==="vendor"?n:"ascending";return t.jsx(Ld,{isBulkSelected:o,isSortedByKey:e==="vendor",children:t.jsxs(Rt,{onClick:r,"data-testid":m("flux-analysis-report-timeframe-row-vendor-element-row"),children:[kd.vendor,t.jsx(Et,{isBulkSelected:o,isSortedByKey:e==="vendor",children:l==="ascending"?t.jsx(Gt,{}):t.jsx(Ht,{})})]})})};function Wd({backgroundColor:e,height:n,isBulkSelected:o,sortKey:i="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:c,timeframeTicks:s,onSortOrderChanged:u}){const h=W(),p=(g,f)=>{u?.(g,f)};return t.jsxs(Sd,{heightValue:n,bgColor:e,children:[t.jsx(vd,{className:"flux-vendor-header-sticky",windowSize:h,isSticky:!0,children:t.jsx($d,{windowSize:h,children:t.jsx(Od,{sortKey:i,sortOrder:r,isBulkSelected:o,onSortOrderChanged:p})})}),t.jsxs(Ad,{children:[s.map((g,f)=>t.jsx(Id,{firstMonthOfFY:l,timeframeTick:g,timeframe:c},f)),t.jsx(Vt,{isClickable:!1,width:S.varianceHeaderContainerWidth,children:t.jsxs(Rt,{onClick:()=>u?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":m("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(_d,{children:bd.variance}),t.jsx(Et,{isBulkSelected:o,isSortedByKey:i==="variance",children:(i==="variance"?r:"ascending")==="ascending"?t.jsx(Gt,{}):t.jsx(Ht,{})})]})}),t.jsx(Vt,{isClickable:!1,width:S.statusContainerWidth,children:t.jsxs(Rt,{onClick:()=>{u?.(r==="ascending"?"descending":"ascending","status")},"data-testid":m("flux-analysis-report-timeframe-row-status"),children:[t.jsx(jd,{children:yd.texts.reviewStatus}),t.jsx(Et,{isBulkSelected:o,isSortedByKey:i==="status",children:(i==="status"?r:"ascending")==="ascending"?t.jsx(Gt,{}):t.jsx(Ht,{})})]})})]})]})}const Md=a.div`
|
|
1470
|
+
display: flex;
|
|
1471
|
+
flex: 1 1 auto;
|
|
1472
|
+
width: fit-content;
|
|
1473
|
+
min-width: 100%;
|
|
1474
|
+
|
|
1475
|
+
flex-direction: column;
|
|
1476
|
+
height: ${e=>`${e.heightValue}px`};
|
|
1477
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1478
|
+
`,Nd=a.div`
|
|
1479
|
+
cursor: default;
|
|
1480
|
+
user-select: none;
|
|
1481
|
+
display: flex;
|
|
1482
|
+
flex: 1 1 auto;
|
|
1483
|
+
flex-flow: row;
|
|
1484
|
+
justify-content: flex-start;
|
|
1485
|
+
align-items: center;
|
|
1486
|
+
`,Td=a.div`
|
|
1487
|
+
display: flex;
|
|
1488
|
+
flex-direction: row;
|
|
1489
|
+
`,Pd=a.div`
|
|
1490
|
+
display: flex;
|
|
1491
|
+
flex-direction: row;
|
|
1492
|
+
justify-content: flex-start;
|
|
1493
|
+
align-items: center;
|
|
1494
|
+
margin-left: ${S.balanceLeftMargin};
|
|
1495
|
+
`,Fd=a(le)`
|
|
1496
|
+
user-select: none;
|
|
1497
|
+
min-width: ${S.balanceWidth};
|
|
1498
|
+
max-width: ${S.balanceWidth};
|
|
1499
|
+
text-align: right;
|
|
1500
|
+
color: ${e=>e.theme.colors.hero};
|
|
1501
|
+
border: 1px solid transparent;
|
|
1502
|
+
`,zd=a.div`
|
|
1503
|
+
display: flex;
|
|
1504
|
+
flex-direction: row;
|
|
1505
|
+
align-items: center;
|
|
1506
|
+
flex-shrink: 2;
|
|
1507
|
+
flex-grow: 1;
|
|
1508
|
+
width: ${S.titleWidth};
|
|
1509
|
+
max-width: ${S.titleWidth};
|
|
1510
|
+
height: 100%;
|
|
1511
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1512
|
+
position: sticky;
|
|
1513
|
+
left: ${d.sp8};
|
|
1514
|
+
top: 0;
|
|
1515
|
+
z-index: 10;
|
|
1516
|
+
`,Dd=a(le)`
|
|
1517
|
+
user-select: none;
|
|
1518
|
+
clear: both;
|
|
1519
|
+
display: inline-block;
|
|
1520
|
+
overflow: hidden;
|
|
1521
|
+
white-space: nowrap;
|
|
1522
|
+
text-overflow: ellipsis;
|
|
1523
|
+
text-align: left;
|
|
1524
|
+
color: ${e=>e.theme.colors.primary};
|
|
1525
|
+
`,Vd=a.div`
|
|
1526
|
+
display: flex;
|
|
1527
|
+
width: ${S.statusContainerWidth};
|
|
1528
|
+
min-width: ${S.statusContainerWidth};
|
|
1529
|
+
justify-content: center;
|
|
1530
|
+
flex-direction: row;
|
|
1531
|
+
margin-left: ${S.statusLeftMargin};
|
|
1532
|
+
`,Rd=a.div`
|
|
1533
|
+
display: flex;
|
|
1534
|
+
margin-left: ${d.sp7};
|
|
1535
|
+
flex: 1 1 auto;
|
|
1536
|
+
justify-content: flex-end;
|
|
1537
|
+
`,Ed=({balance:e})=>t.jsx(Pd,{children:t.jsx(Fd,{children:te("0,0",e?.balance)})});function Gd({type:e,height:n,title:o,totalBalances:i,varianceAmount:r,variancePercentage:l,currency:c,backgroundColor:s}){return t.jsx(Md,{"data-testid":m("total-row-root-container"),heightValue:n,bgColor:s,children:t.jsxs(Nd,{"data-testid":m("total-row-container"),children:[t.jsx(zd,{className:"flux-total-row",children:t.jsx(Dd,{children:o})}),t.jsxs(Rd,{children:[t.jsx(Td,{children:pe(e)&&i.map((u,h)=>t.jsx(Ed,{balance:u},h))}),t.jsx(bt,{amount:r,percentage:l,currency:c}),t.jsx(Vd,{})]})]})})}const Hd=a.div`
|
|
1538
|
+
display: flex;
|
|
1539
|
+
flex: 1 1 auto;
|
|
1540
|
+
width: fit-content;
|
|
1541
|
+
min-width: 100%;
|
|
1542
|
+
flex-direction: column;
|
|
1543
|
+
height: ${e=>`${e.heightValue}px`};
|
|
1544
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1545
|
+
`,Kd=a.div`
|
|
1546
|
+
user-select: none;
|
|
1547
|
+
display: flex;
|
|
1548
|
+
flex: 1 1 auto;
|
|
1549
|
+
flex-flow: row;
|
|
1550
|
+
justify-content: flex-start;
|
|
1551
|
+
align-items: center;
|
|
1552
|
+
cursor: pointer;
|
|
1553
|
+
color: ${e=>e.isRowExpanded?e.theme.colors.primary:e.theme.colors.hero};
|
|
1554
|
+
&:hover {
|
|
1555
|
+
color: ${e=>e.theme.colors.primary};
|
|
1556
|
+
.flux-vendor-chevron-icon,
|
|
1557
|
+
.flux-vendor-collapsable-chevron-icon,
|
|
1558
|
+
.flux-vendor-children-count {
|
|
1559
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
.flux-vendor-chevron-icon,
|
|
1563
|
+
.flux-vendor-collapsable-chevron-icon,
|
|
1564
|
+
.flux-vendor-children-count {
|
|
1565
|
+
border: 1px solid
|
|
1566
|
+
${e=>e.shouldHighlight?e.theme.colors.primary:e.theme.colors.hero};
|
|
1567
|
+
}
|
|
1568
|
+
`,Yd=a.div`
|
|
1569
|
+
display: flex;
|
|
1570
|
+
flex-direction: row;
|
|
1571
|
+
justify-content: flex-start;
|
|
1572
|
+
align-items: center;
|
|
1573
|
+
margin-left: ${S.balanceLeftMargin};
|
|
1574
|
+
`,Ud=a(j)`
|
|
1575
|
+
user-select: none;
|
|
1576
|
+
min-width: ${S.balanceWidth};
|
|
1577
|
+
max-width: ${S.balanceWidth};
|
|
1578
|
+
text-align: right;
|
|
1579
|
+
`,qd=a.div`
|
|
1580
|
+
display: flex;
|
|
1581
|
+
flex-direction: row;
|
|
1582
|
+
align-items: center;
|
|
1583
|
+
flex-shrink: 2;
|
|
1584
|
+
flex-grow: 1;
|
|
1585
|
+
width: ${S.titleWidth};
|
|
1586
|
+
max-width: ${S.titleWidth};
|
|
1587
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1588
|
+
${({isSticky:e})=>e?P`
|
|
1589
|
+
position: -webkit-sticky;
|
|
1590
|
+
position: sticky;
|
|
1591
|
+
top: ${d.sp0};
|
|
1592
|
+
left: ${d.sp0};
|
|
1593
|
+
`:null}
|
|
1594
|
+
`,Qd=a(j)`
|
|
1595
|
+
user-select: none;
|
|
1596
|
+
clear: both;
|
|
1597
|
+
display: inline-block;
|
|
1598
|
+
overflow: hidden;
|
|
1599
|
+
white-space: nowrap;
|
|
1600
|
+
text-overflow: ellipsis;
|
|
1601
|
+
text-align: left;
|
|
1602
|
+
`,Zd=a.div`
|
|
1603
|
+
display: flex;
|
|
1604
|
+
justify-content: space-between;
|
|
1605
|
+
flex-grow: 1;
|
|
1606
|
+
`,Jd=a.div`
|
|
1607
|
+
display: flex;
|
|
1608
|
+
align-items: center;
|
|
1609
|
+
margin-left: 10px;
|
|
1610
|
+
`;a.div`
|
|
1611
|
+
display: flex;
|
|
1612
|
+
flex-shrink: 0;
|
|
1613
|
+
width: ${S.varianceContainerWidth};
|
|
1614
|
+
min-width: ${S.varianceContainerWidth};
|
|
1615
|
+
margin-left: 12px;
|
|
1616
|
+
gap: ${d.sp1};
|
|
1617
|
+
flex-direction: row;
|
|
1618
|
+
justify-content: flex-end;
|
|
1619
|
+
text-align: center;
|
|
1620
|
+
align-items: center;
|
|
1621
|
+
`;const Xd=a(sr)`
|
|
1622
|
+
width: 12px;
|
|
1623
|
+
height: 12px;
|
|
1624
|
+
`;a.div`
|
|
1625
|
+
height: ${d.sp4};
|
|
1626
|
+
border-radius: ${d.sp1};
|
|
1627
|
+
padding: 2px ${d.sp1};
|
|
1628
|
+
`;a.div`
|
|
1629
|
+
border-radius: ${d.sp1};
|
|
1630
|
+
padding: 2px ${d.sp1};
|
|
1631
|
+
height: ${d.sp4};
|
|
1632
|
+
justify-content: center;
|
|
1633
|
+
text-align: center;
|
|
1634
|
+
background-color: ${e=>e.bgColor.hex()};
|
|
1635
|
+
`;const eu=a.div`
|
|
1636
|
+
display: flex;
|
|
1637
|
+
margin-left: ${d.sp7};
|
|
1638
|
+
flex: 1 1 auto;
|
|
1639
|
+
justify-content: flex-end;
|
|
1640
|
+
`,tu=a.div`
|
|
1641
|
+
display: flex;
|
|
1642
|
+
flex-direction: column;
|
|
1643
|
+
align-items: center;
|
|
1644
|
+
padding-top: ${e=>e.isNodeOpen?d.sp3:d.sp0};
|
|
1645
|
+
`,nu=a.div`
|
|
1646
|
+
display: flex;
|
|
1647
|
+
width: ${S.statusContainerWidth};
|
|
1648
|
+
min-width: ${S.statusContainerWidth};
|
|
1649
|
+
justify-content: center;
|
|
1650
|
+
flex-direction: row;
|
|
1651
|
+
margin-left: ${S.statusLeftMargin};
|
|
1652
|
+
`,ou=a($e)`
|
|
1653
|
+
width: ${S.balanceWidth};
|
|
1654
|
+
max-width: ${S.balanceWidth};
|
|
1655
|
+
color: ${e=>e.theme.colors.primary};
|
|
1656
|
+
display: flex;
|
|
1657
|
+
flex: 1 0 auto;
|
|
1658
|
+
flex-direction: column;
|
|
1659
|
+
cursor: pointer;
|
|
1660
|
+
align-items: center;
|
|
1661
|
+
`,iu=a.div`
|
|
1662
|
+
color: ${e=>e.theme.colors.grey1};
|
|
1663
|
+
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
1664
|
+
padding: ${d.sp0} 6px;
|
|
1665
|
+
border-radius: ${d.sp1};
|
|
1666
|
+
width: fit-content;
|
|
1667
|
+
display: flex;
|
|
1668
|
+
align-items: center;
|
|
1669
|
+
margin-right: ${d.sp2};
|
|
1670
|
+
`,ru=a($e)`
|
|
1671
|
+
overflow: hidden;
|
|
1672
|
+
text-overflow: ellipsis;
|
|
1673
|
+
`,au=a.div`
|
|
1674
|
+
display: flex;
|
|
1675
|
+
width: ${d.sp8};
|
|
1676
|
+
height: ${d.sp8};
|
|
1677
|
+
&:hover {
|
|
1678
|
+
.flux-vendor-checkbox {
|
|
1679
|
+
background-color: transparent;
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
`,lu=a(en)`
|
|
1683
|
+
color: ${e=>e.theme.colors.primary};
|
|
1684
|
+
width: ${d.sp3};
|
|
1685
|
+
height: ${d.sp3};
|
|
1686
|
+
`,cu=a($e)`
|
|
1687
|
+
display: flex;
|
|
1688
|
+
flex-direction: row;
|
|
1689
|
+
align-items: center;
|
|
1690
|
+
gap: 2px;
|
|
1691
|
+
color: ${e=>e.theme.colors.success};
|
|
1692
|
+
`,su=a(mo)`
|
|
1693
|
+
width: 12px;
|
|
1694
|
+
height: 12px;
|
|
1695
|
+
`,Jn=a(xo)`
|
|
1696
|
+
margin-left: 2px;
|
|
1697
|
+
width: 12px;
|
|
1698
|
+
height: 12px;
|
|
1699
|
+
`,du=a(De)`
|
|
1700
|
+
display: flex;
|
|
1701
|
+
border-radius: 50%;
|
|
1702
|
+
width: ${d.sp4};
|
|
1703
|
+
height: ${d.sp4};
|
|
1704
|
+
text-align: center;
|
|
1705
|
+
align-items: center;
|
|
1706
|
+
justify-content: center;
|
|
1707
|
+
`,uu=a(De)`
|
|
1708
|
+
display: flex;
|
|
1709
|
+
border-radius: ${d.sp1};
|
|
1710
|
+
width: ${d.sp4};
|
|
1711
|
+
height: ${d.sp4};
|
|
1712
|
+
text-align: center;
|
|
1713
|
+
align-items: center;
|
|
1714
|
+
justify-content: center;
|
|
1715
|
+
margin-right: ${d.sp4};
|
|
1716
|
+
`,hu=a(De)`
|
|
1717
|
+
display: flex;
|
|
1718
|
+
border-radius: 100px;
|
|
1719
|
+
width: 18px;
|
|
1720
|
+
height: 18px;
|
|
1721
|
+
justify-content: center;
|
|
1722
|
+
align-items: center;
|
|
1723
|
+
margin-left: ${d.sp1};
|
|
1724
|
+
`,{common:Xn,expenseAutomation:gu}=O.getLocalizedStrings(),pu=({balance:e})=>{const n=Ud;return t.jsx(Yd,{children:t.jsx(n,{children:ne(e)})})};function fu({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:o,isSticky:i,treeNodeId:r,height:l,leftChevron:c,varianceAmount:s,variancePercentage:u,currency:h,vendorBalances:p,reviewedByUser:g,status:f,vendor:x,isOpen:b,childrenCount:y,setHoveredParentId:_,onClick:C,handleRedirectToVendorDetailPage:B,updateOperatingExpensesIdsForReview:v}){const[L,z]=T.useState(!1),[V,U]=T.useState(n.length>0),R=n.includes(e),Z=n.includes(e),q=c==="collapsed",ue=n.length===yn&&R===!1,ee=Qd,D=ce=>{let fe=n;ce.target.checked===!0?fe=[...fe,e]:fe=fe.filter(Ae=>Ae!==e),v?.(fe)},J=()=>{B?.(x)};return t.jsx(Hd,{heightValue:l,bgColor:o,children:t.jsxs(Kd,{shouldHighlight:Z,isRowExpanded:b,onClick:()=>C?.(r),onMouseOver:()=>{z(!0),U(!0),_?.(x.id)},onMouseLeave:()=>{z(!1),n.length===0&&U(!1),_?.(null)},children:[t.jsxs(qd,{className:"flux-vendor-name-container",bgColor:o,isSticky:i,children:[t.jsx(au,{className:"flux-vendor-checkbox-container",children:V?t.jsx(Qt,{className:"flux-vendor-checkbox",icon:t.jsx(Zt,{width:d.sp3,height:d.sp3}),checkedIcon:t.jsx(lu,{}),checked:R,name:x.name,id:e,disabled:ue,onChange:D,onClick:ce=>ce.stopPropagation(),style:{padding:"20px",pointerEvents:ue?"none":"auto"}}):null}),t.jsxs(tu,{isNodeOpen:b,children:[L?t.jsx(du,{className:"flux-vendor-collapsable-chevron-icon",children:b===!1?t.jsx(Jn,{}):t.jsx(su,{})}):x.logo!=null?t.jsx(Jt,{photoUrl:x.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(Xt,{name:x.name,size:d.sp4}),b?t.jsx(ui,{height:S.vendorLineComponentHeight}):null]}),t.jsxs(Zd,{children:[t.jsxs(Jd,{children:[t.jsx(ee,{children:x.name}),b?null:t.jsx(hu,{className:"flux-vendor-children-count",children:t.jsx(De,{children:y})})]}),L?t.jsx(T.Fragment,{children:t.jsx(uu,{className:"flux-vendor-chevron-icon",onClick:J,"data-testid":m("flux-analysis-report-vendorElement-row"),children:t.jsx(Jn,{})})}):null]})]}),t.jsxs(eu,{children:[p.map((ce,fe)=>t.jsx(pu,{balance:ce,collapsed:q},fe)),t.jsx(bt,{amount:s,percentage:u,currency:h}),t.jsx(nu,{children:f==="Pending Review"?t.jsx(iu,{children:t.jsx(ru,{children:Xn.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(ou,{className:"vendor-flux-analysis-review-info",children:g!=null?t.jsxs(T.Fragment,{children:[t.jsxs(cu,{children:[t.jsx(Xd,{}),gu.fluxAnalysis.reviewedBy]}),t.jsx(De,{children:nr(g)})]}):Xn.strings.hyphen})})})]})]})})}const eo={generalExpense:{color:new A(E.graphColor04),hoverColor:new A(E.graphColor04Dark)},reimbursement:{color:new A(E.graphColor10),hoverColor:new A(E.graphColor10Dark)},default:{color:new A(re.neutralGrey2Dark),hoverColor:new A(re.neutralGrey2Dark)}},xu=(e,n)=>e.startsWith("flux_analysis_operating_expense")===!0&&n!=null?eo[n]:eo.default,bn=(e,n)=>{const{element:o}=e;return o.kind===n&&o.data!=null},fi=e=>Ss(e.balancesByMonth),mu=(e,n,o,i,r,l,c,s,u)=>{if(!bn(n,"flux_vendor_account_class_row"))return null;const h=n.element.data,p=fi(h),g=n.element.metadata.vendorId;return t.jsx(Js,{backgroundColor:o,isSticky:i,treeNodeId:e,balances:p,varianceAmount:h.varianceAmount,variancePercentage:h.variancePercentage,currency:h.currency,isScrolling:r,isLeaf:l,isLastNode:c,nodeMetadata:n.element.metadata,accountAndClass:h,onAccountAndClassBalanceClick:()=>u?.(g),isHoveredByParent:s?.hoveredParentId===g})},wu=(e,n,o,i,r,l,c,s,u,h,p)=>{if(!bn(n,"flux_vendor_row"))return null;const g=n.element.data,f=fi(g),x=hi("flux_vendor_row",u),b=y=>{p?.(y),n.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(y)};return t.jsx(fu,{backgroundColor:o,isSticky:i,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:s,childrenCount:g.vendorAccountsAndClasses.length,onClick:y=>{b?.(y)},reviewedByUser:g.reviewedByUser,updateOperatingExpensesIdsForReview:n.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:n.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:h?.setHoveredParentId})},yu=(e,n,o,i,r,l,c,s,u,h)=>{if(!bn(n,"section"))return null;const p=xu(n.config.reportId,n.element.sectionType),g=n.element.data,f=x=>{n.config.fluxAnalysisConfig?.onSectionRowClick(x),h?.(x)};return t.jsx(fd,{backgroundColor:i,isSticky:r,treeNodeId:e,height:o,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:s,isLastNode:u,sectionToggled:x=>{f?.(x)},onSectionCheckboxClick:n.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:g.sectionId})},bu=(e,n,o)=>{if(e.element.kind!=="timeframe_headers")return null;const i=qe(e.element.data,e.config.displayOrder),r=i.length>0?i[0].balanceTimeFrame:"month",l=i.map(s=>He(s)),c=(s,u)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(s,u)};return t.jsx(Wd,{isSticky:o,height:n,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===yn,onSortOrderChanged:c,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},ku=(e,n)=>{if(e.element.kind!=="total")return null;const o=e.element.data;return t.jsx(Gd,{type:"name+balances_actual",title:e.element.title,totalBalances:o.balances,varianceAmount:o.varianceAmount,variancePercentage:o.variancePercentage,currency:o.currency,height:n})},Su=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(ed,{}),Cu=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(md,{}),_u=a.div`
|
|
1725
|
+
display: flex;
|
|
1726
|
+
flex: 1 1 auto;
|
|
1727
|
+
width: fit-content;
|
|
1728
|
+
min-width: 100%;
|
|
1729
|
+
flex-direction: column;
|
|
1730
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1731
|
+
`,ju=a.div`
|
|
1732
|
+
user-select: none;
|
|
1733
|
+
display: flex;
|
|
1734
|
+
flex: 1 1 auto;
|
|
1735
|
+
flex-flow: row;
|
|
1736
|
+
justify-content: flex-start;
|
|
1737
|
+
align-items: center;
|
|
1738
|
+
height: ${e=>e.height}px;
|
|
1739
|
+
margin-left: ${e=>e.level*20}px;
|
|
1740
|
+
`,vu=a.div`
|
|
1741
|
+
display: flex;
|
|
1742
|
+
flex-direction: row;
|
|
1743
|
+
align-items: center;
|
|
1744
|
+
justify-content: space-between;
|
|
1745
|
+
&:hover {
|
|
1746
|
+
background-color: null;
|
|
1747
|
+
}
|
|
1748
|
+
width: 100%;
|
|
1749
|
+
`,$u=a(or)`
|
|
1750
|
+
width: 100%;
|
|
1751
|
+
display: flex;
|
|
1752
|
+
align-items: center;
|
|
1753
|
+
font-weight: ${e=>e.isSubclass?Pn.regular:Pn.medium};
|
|
1754
|
+
color: ${e=>e.checked?e.theme.colors.primary:e.theme.colors.hero};
|
|
1755
|
+
`,Lu=a($e)`
|
|
1756
|
+
display: flex;
|
|
1757
|
+
color: ${e=>e.theme.colors.primary};
|
|
1758
|
+
align-items: center;
|
|
1759
|
+
flex-direction: row;
|
|
1760
|
+
justify-content: center;
|
|
1761
|
+
height: 18px;
|
|
1762
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
1763
|
+
border-radius: ${d.sp1};
|
|
1764
|
+
margin: 0 ${d.sp5} 0 ${d.sp3};
|
|
1765
|
+
min-width: ${d.sp6};
|
|
1766
|
+
`,Au=a(en)`
|
|
1767
|
+
color: ${e=>e.theme.colors.primary};
|
|
1768
|
+
width: ${d.sp3};
|
|
1769
|
+
height: ${d.sp3};
|
|
1770
|
+
`;function Bu({backgroundColor:e,treeNodeId:n,classId:o,isChecked:i,isDisabled:r,height:l,nestedClass:c,isLeaf:s,showClassAccountNumber:u,onClick:h,onToggleCheck:p}){const[g,f]=T.useState(!1);return t.jsx(_u,{"data-testid":m("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(ju,{"data-testid":m("name-with-checkbox-row-container",n),height:l,isClickable:!s,onClick:()=>h?.(n),onMouseOver:()=>f(!0),onMouseLeave:()=>f(!1),level:c.classId.length,children:[t.jsx(Qt,{"data-testid":m("name-with-checkbox-row-checkbox",c.classId.toString()),icon:t.jsx(Zt,{width:d.sp3,height:d.sp3}),checkedIcon:t.jsx(Au,{}),checked:i,name:c.className,id:n,disabled:r,onChange:x=>{p?.(o,x.target.checked)},style:{height:d.sp6}})," ",t.jsx(vu,{children:t.jsxs($u,{"data-testid":m("name-with-checkbox-row-label-container",n),checked:i,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?.(o,!i)},children:c.className}),g===!0&&u===!0&&c.accountingClassNumber!=null&&t.jsx(Lu,{children:c.accountingClassNumber})]})})]})})}const Iu=(e,n,o,i,r,l,c,s,u,h,p)=>{if(o.element.kind!="checkbox_and_name_only")return null;const g=o.element.data,f=o.config.isClassToBeFilteredOut?.(g.classId)===!1;return t.jsx(Bu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,classId:g.classId,isChecked:f,isDisabled:!1,height:i,isScrolling:c,nestedClass:g,isOpen:s,isLeaf:u,isLastNode:h,showClassAccountNumber:o.config.showClassAccountNumber,onToggleCheck:p})},M={balanceHeight:d.sp4,balanceWidth:"166px",balanceLeftMargin:d.sp4,titleWidth:new G(200,270,270),categoryClassWidth:new G(230,230,240),nameLogoWidth:new G(w[4],w[4]),nameLogoHeight:new G(w[4],w[4])};function Ou(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 Wu(e,n){return!1}const Mu=a.div`
|
|
1771
|
+
user-select: none;
|
|
1772
|
+
display: flex;
|
|
1773
|
+
flex: 1 1 auto;
|
|
1774
|
+
width: fit-content;
|
|
1775
|
+
min-width: 100%;
|
|
1776
|
+
height: ${e=>e.height}px;
|
|
1777
|
+
flex-flow: row;
|
|
1778
|
+
justify-content: flex-start;
|
|
1779
|
+
align-items: center;
|
|
1780
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1781
|
+
`,Nu=a.div`
|
|
1782
|
+
user-select: none;
|
|
1783
|
+
display: flex;
|
|
1784
|
+
flex: 1 1 auto;
|
|
1785
|
+
width: 100vw;
|
|
1786
|
+
min-width: 100%;
|
|
1787
|
+
height: ${e=>e.height}px;
|
|
1788
|
+
flex-flow: row;
|
|
1789
|
+
align-items: center;
|
|
1790
|
+
justify-content: center;
|
|
1791
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1792
|
+
`,Tu=a.div`
|
|
1793
|
+
display: flex;
|
|
1794
|
+
flex: 1 0 auto;
|
|
1795
|
+
flex-direction: row;
|
|
1796
|
+
justify-content: flex-end;
|
|
1797
|
+
`,to=a(j)`
|
|
1798
|
+
color: ${e=>e.theme.colors.hero};
|
|
1799
|
+
flex-grow: 1;
|
|
1800
|
+
-webkit-box-orient: vertical;
|
|
1801
|
+
justify-content: ${e=>e.isClubbed===!0?"unset":"flex-end"};
|
|
1802
|
+
display: flex;
|
|
1803
|
+
min-width: ${M.balanceWidth};
|
|
1804
|
+
max-width: ${M.balanceWidth};
|
|
1805
|
+
margin-left: ${e=>e.isClubbed===!0?d.sp2:M.balanceLeftMargin};
|
|
1806
|
+
border: 1px solid transparent;
|
|
1807
|
+
`,no=a(j)`
|
|
1808
|
+
color: ${e=>e.theme.colors.hero};
|
|
1809
|
+
flex-grow: 1;
|
|
1810
|
+
-webkit-box-orient: vertical;
|
|
1811
|
+
justify-content: "unset";
|
|
1812
|
+
display: flex;
|
|
1813
|
+
min-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
1814
|
+
`,Pu=a.div`
|
|
1815
|
+
height: 100%;
|
|
1816
|
+
display: flex;
|
|
1817
|
+
flex-direction: row;
|
|
1818
|
+
align-items: center;
|
|
1819
|
+
min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
1820
|
+
color: ${e=>e.theme.colors.primary};
|
|
1821
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1822
|
+
${({isSticky:e})=>e?P`
|
|
1823
|
+
position: -webkit-sticky;
|
|
1824
|
+
position: sticky;
|
|
1825
|
+
top: ${d.sp0};
|
|
1826
|
+
left: ${d.sp0};
|
|
1827
|
+
z-index: 20;
|
|
1828
|
+
`:null}
|
|
1829
|
+
`;function Fu({backgroundColor:e,isSticky:n,height:o,isAccountColumnShown:i,isClassColumnShown:r,timeframeTicks:l}){const c=W();return l.length>0?t.jsxs(Mu,{height:o,bgColor:e,"data-testid":m("opex-vendor-loading-in-progress-row"),children:[t.jsxs(Pu,{"data-testid":m("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:c,bgColor:e,children:[t.jsx(Ke,{width:w[4],height:w[4]}),t.jsx(to,{windowSize:c,isClubbed:!0,children:t.jsx(Q,{width:120,height:w[4]})})]}),t.jsxs(Tu,{children:[i?t.jsx(no,{windowSize:c,children:t.jsx(Q,{width:120,height:w[4]})}):null,r?t.jsx(no,{windowSize:c,children:t.jsx(Q,{width:120,height:w[4]})}):null,l.map((s,u)=>t.jsx(to,{windowSize:c,children:t.jsx(Q,{width:120,height:w[4]})},`${u}RowItem`))]})]}):t.jsx(Nu,{height:o,bgColor:e,children:t.jsx(tr,{size:"Small",start:!0})})}const zu=a.div`
|
|
1830
|
+
user-select: none;
|
|
1831
|
+
display: flex;
|
|
1832
|
+
flex: 1 1 auto;
|
|
1833
|
+
width: fit-content;
|
|
1834
|
+
min-width: 100%;
|
|
1835
|
+
height: ${e=>e.height}px;
|
|
1836
|
+
flex-flow: row;
|
|
1837
|
+
justify-content: flex-start;
|
|
1838
|
+
align-items: center;
|
|
1839
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1840
|
+
`,Nt=a.div``,Du=a.div`
|
|
1841
|
+
display: flex;
|
|
1842
|
+
flex: 1 0 auto;
|
|
1843
|
+
flex-direction: row;
|
|
1844
|
+
justify-content: flex-end;
|
|
1845
|
+
`,Vu=a(j)`
|
|
1846
|
+
user-select: none;
|
|
1847
|
+
clear: both;
|
|
1848
|
+
display: inline-block;
|
|
1849
|
+
overflow: hidden;
|
|
1850
|
+
white-space: nowrap;
|
|
1851
|
+
text-overflow: ellipsis;
|
|
1852
|
+
text-align: left;
|
|
1853
|
+
margin-left: ${d.sp2};
|
|
1854
|
+
color: ${e=>e.theme.colors.hero};
|
|
1855
|
+
`,Ru=a(j)`
|
|
1856
|
+
color: ${e=>e.theme.colors.hero};
|
|
1857
|
+
flex-grow: 1;
|
|
1858
|
+
-webkit-box-orient: vertical;
|
|
1859
|
+
display: flex;
|
|
1860
|
+
min-width: ${M.balanceWidth};
|
|
1861
|
+
max-width: ${M.balanceWidth};
|
|
1862
|
+
border: 1px solid transparent;
|
|
1863
|
+
`,oo=a(j)`
|
|
1864
|
+
color: ${e=>e.theme.colors.hero};
|
|
1865
|
+
flex-grow: 1;
|
|
1866
|
+
-webkit-box-orient: vertical;
|
|
1867
|
+
justify-content: "unset";
|
|
1868
|
+
display: flex;
|
|
1869
|
+
min-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
1870
|
+
`,Eu=a.div`
|
|
1871
|
+
height: 100%;
|
|
1872
|
+
display: flex;
|
|
1873
|
+
flex-direction: row;
|
|
1874
|
+
align-items: center;
|
|
1875
|
+
min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
1876
|
+
color: ${e=>e.theme.colors.primary};
|
|
1877
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1878
|
+
${({isSticky:e})=>e?P`
|
|
1879
|
+
position: -webkit-sticky;
|
|
1880
|
+
position: sticky;
|
|
1881
|
+
top: ${d.sp0};
|
|
1882
|
+
left: ${d.sp0};
|
|
1883
|
+
z-index: 20;
|
|
1884
|
+
`:null}
|
|
1885
|
+
`;function Gu({backgroundColor:e,isSticky:n,height:o,isAccountColumnShown:i,isClassColumnShown:r,timeframeTicks:l}){const c=W();return t.jsxs(zu,{height:o,bgColor:e,"data-testid":m("no-results-found-title-row"),children:[t.jsx(Eu,{isSticky:n,windowSize:c,bgColor:e,children:t.jsx(Vu,{children:O.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(Du,{children:[i?t.jsx(oo,{windowSize:c,children:t.jsx(Nt,{})}):null,r?t.jsx(oo,{windowSize:c,children:t.jsx(Nt,{})}):null,l.map((s,u)=>t.jsx(Ru,{windowSize:c,children:t.jsx(Nt,{children:" "})},`${u}RowItem`))]})]})}a.div`
|
|
1886
|
+
user-select: none;
|
|
1887
|
+
display: flex;
|
|
1888
|
+
flex: 1 1 auto;
|
|
1889
|
+
width: fit-content;
|
|
1890
|
+
min-width: 100%;
|
|
1891
|
+
height: ${e=>e.heightValue}px;
|
|
1892
|
+
flex-flow: row;
|
|
1893
|
+
justify-content: flex-start;
|
|
1894
|
+
align-items: center;
|
|
1895
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1896
|
+
`;a.div`
|
|
1897
|
+
display: flex;
|
|
1898
|
+
flex: 1 0 auto;
|
|
1899
|
+
flex-direction: row;
|
|
1900
|
+
justify-content: flex-end;
|
|
1901
|
+
`;a.div`
|
|
1902
|
+
height: 100%;
|
|
1903
|
+
display: flex;
|
|
1904
|
+
flex-direction: row;
|
|
1905
|
+
align-items: center;
|
|
1906
|
+
min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
1907
|
+
color: ${e=>e.theme.colors.primary};
|
|
1908
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1909
|
+
${({isSticky:e})=>e?P`
|
|
1910
|
+
position: -webkit-sticky;
|
|
1911
|
+
position: sticky;
|
|
1912
|
+
top: ${d.sp0};
|
|
1913
|
+
left: ${d.sp0};
|
|
1914
|
+
z-index: 20;
|
|
1915
|
+
`:null}
|
|
1916
|
+
`;function kn({title:e,selectedMode:n,onCompareModeChanged:o,backgroundColor:i,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:c,titleTextStyle:s,titleTextAlignment:u,titleColor:h,menuPosition:p}){const g=["compare_mode_percent","compare_mode_amount"],f=x=>O.getLocalizedStrings().compareMode[x];return t.jsx(dr,{title:e,pickerValues:g,valueToLabel:f,selectedValue:n,onPickerSelectionChanged:x=>o(x),optionTextStyle:c,titleTextStyle:s,titleTextAlignment:u,titleColor:h,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:i??"inherit",menuPosition:p})}const Kt={balanceHeight:d.sp4,balanceWidthInPx:170,balanceLeftMargin:d.sp4},Hu=a.div`
|
|
1917
|
+
margin-left: ${d.sp4};
|
|
1918
|
+
`,Ku=a.div`
|
|
1919
|
+
display: flex;
|
|
1920
|
+
max-height: 54px;
|
|
1921
|
+
min-height: 54px;
|
|
1922
|
+
align-items: center;
|
|
1923
|
+
justify-content: center;
|
|
1924
|
+
max-width: ${Kt.balanceWidthInPx-2}px;
|
|
1925
|
+
min-width: ${Kt.balanceWidthInPx-2}px;
|
|
1926
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1927
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1928
|
+
border-radius: ${d.sp2};
|
|
1929
|
+
color: ${e=>e.theme.colors.primary};
|
|
1930
|
+
`,Yu=a(j)`
|
|
1931
|
+
display: flex;
|
|
1932
|
+
user-select: none;
|
|
1933
|
+
flex-direction: row;
|
|
1934
|
+
justify-content: center;
|
|
1935
|
+
align-items: center;
|
|
1936
|
+
height: ${Kt.balanceHeight};
|
|
1937
|
+
`,Uu=a.div`
|
|
1938
|
+
display: flex;
|
|
1939
|
+
flex-direction: row;
|
|
1940
|
+
justify-content: center;
|
|
1941
|
+
align-items: center;
|
|
1942
|
+
padding: 3px 6px;
|
|
1943
|
+
margin-right: ${d.sp2};
|
|
1944
|
+
position: relative;
|
|
1945
|
+
top: -12px;
|
|
1946
|
+
`,qu=a(xr)`
|
|
1947
|
+
color: ${e=>e.tagType==="under_review"?re.neutralGrey5Light:e.theme.mode==="light"?re.primaryDark:re.primaryLight};
|
|
1948
|
+
border-radius: ${d.sp2};
|
|
1949
|
+
padding: 3px 6px;
|
|
1950
|
+
margin-left: 12px;
|
|
1951
|
+
background: ${e=>e.tagType==="under_review"?re.alertDark:e.theme.mode==="light"?re.championLight:re.championDark};
|
|
1952
|
+
`,Qu=a(fr)`
|
|
1953
|
+
color: ${e=>e.theme.colors.hero};
|
|
1954
|
+
margin-left: 5px;
|
|
1955
|
+
height: ${d.sp3};
|
|
1956
|
+
width: ${d.sp3};
|
|
1957
|
+
margin-top: ${d.sp1};
|
|
1958
|
+
`;function xi({firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:i,infoContent:r,tagType:l}){return t.jsxs(Hu,{children:[t.jsxs(Ku,{children:[t.jsx(Yu,{children:Ue(e,n,o)}),t.jsx(pr,{style:{padding:d.sp3},title:r,placement:"top",children:t.jsx(Qu,{})})]}),t.jsx(Uu,{children:t.jsx(qu,{tagType:l,children:i})})]})}const mi=(e,n)=>{const o=O.getLocalizedStrings().reports;switch(n){case"month":return e!=null?e==="under_review"?o.bookCloseUnderReviewInfoMonth:o.bookCloseIncompleteInfoMonth:void 0;case"quarter":return e!=null?e==="under_review"?o.bookCloseUnderReviewInfoQuarter:o.bookCloseIncompleteInfoQuarter:void 0;case"year":return e!=null?e==="under_review"?o.bookCloseUnderReviewInfoYear:o.bookCloseIncompleteInfoYear:void 0;default:return}},Zu=a.div`
|
|
1959
|
+
user-select: none;
|
|
1960
|
+
display: flex;
|
|
1961
|
+
flex: 1 1 auto;
|
|
1962
|
+
width: fit-content;
|
|
1963
|
+
min-width: 100%;
|
|
1964
|
+
height: ${e=>e.height}px;
|
|
1965
|
+
flex-flow: row;
|
|
1966
|
+
justify-content: flex-start;
|
|
1967
|
+
align-items: center;
|
|
1968
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
1969
|
+
`,Ju=a.div`
|
|
1970
|
+
display: flex;
|
|
1971
|
+
flex: 1 0 auto;
|
|
1972
|
+
flex-direction: row;
|
|
1973
|
+
justify-content: flex-end;
|
|
1974
|
+
`,wi=a.div`
|
|
1975
|
+
display: flex;
|
|
1976
|
+
max-height: ${d.sp8};
|
|
1977
|
+
min-height: ${d.sp8};
|
|
1978
|
+
min-width: ${M.balanceWidth};
|
|
1979
|
+
justify-content: center;
|
|
1980
|
+
align-items: center;
|
|
1981
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1982
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1983
|
+
border-radius: ${d.sp2};
|
|
1984
|
+
margin-left: ${M.balanceLeftMargin};
|
|
1985
|
+
color: ${e=>e.theme.colors.primary};
|
|
1986
|
+
cursor: ${e=>e.isClickable===!0?"pointer":"default"};
|
|
1987
|
+
`,yi=a(j)`
|
|
1988
|
+
display: flex;
|
|
1989
|
+
user-select: none;
|
|
1990
|
+
flex-direction: row;
|
|
1991
|
+
justify-content: center;
|
|
1992
|
+
align-items: center;
|
|
1993
|
+
height: ${M.balanceHeight};
|
|
1994
|
+
max-width: ${M.balanceWidth};
|
|
1995
|
+
width: 138px;
|
|
1996
|
+
text-align: center;
|
|
1997
|
+
`,Xu=a.div`
|
|
1998
|
+
display: flex;
|
|
1999
|
+
flex-direction: row;
|
|
2000
|
+
z-index: 1;
|
|
2001
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2002
|
+
${({isSticky:e})=>e?P`
|
|
2003
|
+
position: -webkit-sticky;
|
|
2004
|
+
position: sticky;
|
|
2005
|
+
top: ${d.sp0};
|
|
2006
|
+
left: ${d.sp0};
|
|
2007
|
+
z-index: 1;
|
|
2008
|
+
`:null}
|
|
2009
|
+
`,eh=a.div`
|
|
2010
|
+
max-height: ${e=>e.plHeight}px;
|
|
2011
|
+
min-height: ${e=>e.plHeight}px;
|
|
2012
|
+
display: flex;
|
|
2013
|
+
flex-direction: row;
|
|
2014
|
+
align-items: center;
|
|
2015
|
+
min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
2016
|
+
color: ${e=>e.theme.colors.primary};
|
|
2017
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2018
|
+
`,th=a(j)`
|
|
2019
|
+
display: flex;
|
|
2020
|
+
gap: 6px;
|
|
2021
|
+
align-items: baseline;
|
|
2022
|
+
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
|
|
2023
|
+
`,bi=a(j)`
|
|
2024
|
+
height: 100%;
|
|
2025
|
+
align-self: center;
|
|
2026
|
+
align-items: baseline;
|
|
2027
|
+
min-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2028
|
+
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
|
|
2029
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2030
|
+
display: flex;
|
|
2031
|
+
gap: 6px;
|
|
2032
|
+
align-items: center;
|
|
2033
|
+
`,Sn=a.div`
|
|
2034
|
+
display: flex;
|
|
2035
|
+
cursor: pointer;
|
|
2036
|
+
`,nh=a.div`
|
|
2037
|
+
display: flex;
|
|
2038
|
+
justify-content: center;
|
|
2039
|
+
align-items: center;
|
|
2040
|
+
color: ${e=>e.theme.colors.champion};
|
|
2041
|
+
`,oh=a.div``,ih=a(j)`
|
|
2042
|
+
display: flex;
|
|
2043
|
+
justify-content: center;
|
|
2044
|
+
align-items: center;
|
|
2045
|
+
max-height: ${d.sp8};
|
|
2046
|
+
min-height: ${d.sp8};
|
|
2047
|
+
background-color: ${e=>e.theme.colors.background};
|
|
2048
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2049
|
+
border-radius: ${d.sp2};
|
|
2050
|
+
margin-left: ${M.balanceLeftMargin};
|
|
2051
|
+
color: ${e=>e.theme.colors.primary};
|
|
2052
|
+
width: ${M.balanceWidth};
|
|
2053
|
+
min-width: ${M.balanceWidth};
|
|
2054
|
+
`,ki=a.div`
|
|
2055
|
+
max-height: ${d.sp8};
|
|
2056
|
+
min-height: ${d.sp8};
|
|
2057
|
+
`,kt=a.div`
|
|
2058
|
+
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
|
|
2059
|
+
`,St=a(on)`
|
|
2060
|
+
width: 12px;
|
|
2061
|
+
height: 12px;
|
|
2062
|
+
margin-left: ${d.sp2};
|
|
2063
|
+
margin-top: ${d.sp1};
|
|
2064
|
+
`,Ct=a(nn)`
|
|
2065
|
+
width: 12px;
|
|
2066
|
+
height: 12px;
|
|
2067
|
+
margin-left: ${d.sp2};
|
|
2068
|
+
margin-top: ${d.sp1};
|
|
2069
|
+
`,Cn=a(bo)`
|
|
2070
|
+
width: 12px;
|
|
2071
|
+
height: 12px;
|
|
2072
|
+
cursor: pointer;
|
|
2073
|
+
color: ${e=>e.theme.colors.hero};
|
|
2074
|
+
`,Si=({sortOrder:e,sortKey:n,onSortOrderChanged:o})=>{const i=()=>{o(_t("totals",e,n),"totals")},r=n==="totals"?e:"ascending";return t.jsx(ki,{"data-testid":m("period-total-tick"),children:t.jsx(wi,{"data-testid":m("period-total-tick-element"),onClick:i,isClickable:!0,children:t.jsxs(yi,{children:[O.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(kt,{selectedForSort:n==="totals",children:r==="ascending"?t.jsx(Ct,{}):t.jsx(St,{})})]})})})},rh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=()=>{o(_t("vendor",n,e),"vendor")},l=e==="vendor"?n:"ascending";return t.jsxs(th,{selectedForSort:e==="vendor",children:[t.jsxs(Sn,{onClick:r,children:[O.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(kt,{selectedForSort:e==="vendor",children:l==="ascending"?t.jsx(Ct,{}):t.jsx(St,{})})]}),e==="vendor"?t.jsx(Cn,{onClick:i}):null]})},ah=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=()=>{o(_t("account",n,e),"account")},l=e==="account"?n:"ascending",c=W();return t.jsxs(bi,{selectedForSort:e==="account",windowSize:c,children:[t.jsxs(Sn,{onClick:r,children:[O.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(kt,{selectedForSort:e==="account",children:l==="ascending"?t.jsx(Ct,{}):t.jsx(St,{})})]}),e==="account"?t.jsx(Cn,{onClick:i}):null]})},lh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=()=>{o(_t("class",n,e),"class")},l=e==="class"?n:"ascending",c=W();return t.jsxs(bi,{selectedForSort:e==="class",windowSize:c,children:[t.jsxs(Sn,{onClick:r,children:[O.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(kt,{selectedForSort:e==="class",children:l==="ascending"?t.jsx(Ct,{}):t.jsx(St,{})})]}),e==="class"?t.jsx(Cn,{onClick:i}):null]})},Ci=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:i,bookCloseDate:r})=>{const l=O.getLocalizedStrings().reports,c=r!=null&&i!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?ko(o,e,n,r,i):void 0,s=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,u=mi(c,o);return t.jsx(ki,{children:r!=null&&i!=null&&c!=null&&s!=null&&u!=null?t.jsx(xi,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:s,infoContent:u,tagType:c}):t.jsx(wi,{isClickable:!1,children:t.jsx(yi,{children:Ue(e,n,o)})})})},ch=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,sortKey:i="totals",sortOrder:r="ascending",dataAvailable:l,bookCloseDate:c,onSortOrderChanged:s})=>n.balanceType==="period_total"?t.jsx(Si,{sortKey:i,sortOrder:r,onSortOrderChanged:s}):t.jsx(Ci,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:l,bookCloseDate:c}),sh=({firstMonthOfFY:e,timeframeTicks:n,timeframe:o,compareMode:i,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:c,bookCloseDate:s,onCompareModeChanged:u,onSortOrderChanged:h})=>{const p=me(),g=i==="compare_mode_amount"?`${O.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:O.getLocalizedStrings().compareMode.changePercent;return t.jsx(nh,{children:n.map((f,x)=>t.jsxs(T.Fragment,{children:[f.balanceType==="this_period_vs_last_period"||f.balanceType==="this_period_vs_last_period_percent"?t.jsx(ih,{children:t.jsx(kn,{title:g,titleTextStyle:tn.standardRegular,titleTextAlignment:"flex-end",titleColor:p.colors.primary,selectedMode:i,menuPosition:"right",onCompareModeChanged:b=>{b!=="off"&&(b==="compare_mode_amount"||b==="compare_mode_percent"?u?.(b):console.warn("Invalid compare mode option"))}})}):null,f.balanceType==="period_total"?t.jsx(Si,{sortKey:r,sortOrder:l,onSortOrderChanged:h}):null,f.balanceType==="default"?t.jsx(oh,{children:t.jsx(Ci,{firstMonthOfFY:e,timeframeTick:f,timeframe:o,dataAvailable:c,bookCloseDate:s},x)}):null]},x))})};function dh({backgroundColor:e,isSticky:n,height:o,isCompareModeOn:i,isAccountColumnShown:r,isClassColumnShown:l,sortKey:c,sortOrder:s,firstMonthOfFY:u,timeframe:h,timeframeTicks:p,compareMode:g,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:y}){const _=W(),C=(v,L)=>{y?.(v,L)},B=()=>{y?.("descending","totals")};return t.jsxs(Zu,{height:o,bgColor:e,children:[t.jsx(Xu,{bgColor:e,windowSize:_,isSticky:n,children:t.jsx(eh,{plHeight:o,windowSize:_,bgColor:e,children:t.jsx(rh,{sortKey:c,sortOrder:s,onSortOrderChanged:C,onSortCancel:B})})}),r?t.jsx(ah,{sortKey:c,sortOrder:s,onSortOrderChanged:C,onSortCancel:B}):null,l?t.jsx(lh,{sortKey:c,sortOrder:s,onSortOrderChanged:C,onSortCancel:B}):null,t.jsx(Ju,{children:i===!0?t.jsx(sh,{firstMonthOfFY:u,timeframe:h,sortKey:c,sortOrder:s,timeframeTicks:p,compareMode:g,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:C}):p.map((v,L)=>t.jsx(ch,{firstMonthOfFY:u,timeframeTick:v,timeframe:h,sortKey:c,sortOrder:s,dataAvailable:f,bookCloseDate:x,onSortOrderChanged:C},L))})]})}const _t=(e,n,o)=>e===o?n==="ascending"?"descending":"ascending":"descending",uh=a.div`
|
|
2075
|
+
display: flex;
|
|
2076
|
+
flex: 1 1 auto;
|
|
2077
|
+
max-height: 1px;
|
|
2078
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
2079
|
+
`,hh=a.div`
|
|
2080
|
+
display: flex;
|
|
2081
|
+
flex: 1 1 auto;
|
|
2082
|
+
max-height: 1px;
|
|
2083
|
+
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
2084
|
+
`;function Yt({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(uh,{isScrolling:n});case"end_row_separator":return t.jsx(hh,{isScrolling:n})}}const gh=a.div`
|
|
2085
|
+
display: flex;
|
|
2086
|
+
flex: 1 1 auto;
|
|
2087
|
+
width: fit-content;
|
|
2088
|
+
min-width: 100%;
|
|
2089
|
+
flex-direction: column;
|
|
2090
|
+
height: ${e=>e.height}px;
|
|
2091
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2092
|
+
`,ph=a.div`
|
|
2093
|
+
user-select: none;
|
|
2094
|
+
display: flex;
|
|
2095
|
+
flex: 1 1 auto;
|
|
2096
|
+
flex-flow: row;
|
|
2097
|
+
justify-content: flex-start;
|
|
2098
|
+
align-items: center;
|
|
2099
|
+
cursor: default;
|
|
2100
|
+
`,fh=a.div`
|
|
2101
|
+
display: flex;
|
|
2102
|
+
flex: 1 0 auto;
|
|
2103
|
+
flex-direction: row;
|
|
2104
|
+
justify-content: flex-end;
|
|
2105
|
+
`,xh=a.div`
|
|
2106
|
+
display: flex;
|
|
2107
|
+
flex-direction: row;
|
|
2108
|
+
justify-content: flex-start;
|
|
2109
|
+
`,_i=a(le)`
|
|
2110
|
+
user-select: none;
|
|
2111
|
+
min-width: ${M.balanceWidth};
|
|
2112
|
+
max-width: ${M.balanceWidth};
|
|
2113
|
+
text-align: right;
|
|
2114
|
+
margin-left: ${M.balanceLeftMargin};
|
|
2115
|
+
color: ${e=>e.theme.colors.primary};
|
|
2116
|
+
border: 1px solid transparent;
|
|
2117
|
+
`,mh=a(_i)`
|
|
2118
|
+
color: ${e=>e.theme.colors.hero};
|
|
2119
|
+
&:hover {
|
|
2120
|
+
color: inherit;
|
|
2121
|
+
}
|
|
2122
|
+
`,wh=a.div`
|
|
2123
|
+
display: flex;
|
|
2124
|
+
flex-direction: row;
|
|
2125
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2126
|
+
${({isSticky:e})=>e?P`
|
|
2127
|
+
position: -webkit-sticky;
|
|
2128
|
+
position: sticky;
|
|
2129
|
+
top: ${d.sp0};
|
|
2130
|
+
left: ${d.sp0};
|
|
2131
|
+
`:null}
|
|
2132
|
+
`,yh=a.div`
|
|
2133
|
+
display: flex;
|
|
2134
|
+
flex-direction: row;
|
|
2135
|
+
flex-shrink: 2;
|
|
2136
|
+
flex-grow: 1;
|
|
2137
|
+
align-items: center;
|
|
2138
|
+
width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
2139
|
+
max-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
2140
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2141
|
+
`,io=a.div`
|
|
2142
|
+
width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2143
|
+
max-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2144
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2145
|
+
`,bh=a(le)`
|
|
2146
|
+
user-select: none;
|
|
2147
|
+
clear: both;
|
|
2148
|
+
display: inline-block;
|
|
2149
|
+
overflow: hidden;
|
|
2150
|
+
white-space: nowrap;
|
|
2151
|
+
text-overflow: ellipsis;
|
|
2152
|
+
text-align: left;
|
|
2153
|
+
color: ${e=>e.theme.colors.primary};
|
|
2154
|
+
`,kh=({type:e,balance:n,collapsed:o})=>{const i=o===!0?mh:_i;return t.jsx(xh,{children:pe(e)===!0?t.jsx(i,{children:ne(n)}):null})};function Sh({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,title:l,totalBalances:c,isAccountColumnShown:s,isClassColumnShown:u,onClick:h,isScrolling:p}){const g=W();return t.jsxs(gh,{"data-testid":m("total-row-root-container",i),height:r,bgColor:n,windowSize:g,children:[t.jsxs(ph,{"data-testid":m("total-row-container",i),onClick:()=>h?.(i),children:[t.jsxs(wh,{bgColor:n,windowSize:g,isSticky:o,children:[t.jsx(yh,{bgColor:n,windowSize:g,children:t.jsx(bh,{children:l})}),s?t.jsx(io,{windowSize:g}):null,u?t.jsx(io,{windowSize:g}):null]}),t.jsx(fh,{children:c.map((f,x)=>t.jsx(kh,{type:e,balance:f,collapsed:!1},x))})]}),t.jsx(Yt,{isScrolling:p,kind:"vendor_row_separator"})]})}const Ch=a.div`
|
|
2155
|
+
display: flex;
|
|
2156
|
+
flex: 1 1 auto;
|
|
2157
|
+
width: fit-content;
|
|
2158
|
+
min-width: 100%;
|
|
2159
|
+
flex-direction: column;
|
|
2160
|
+
height: ${e=>e.height}px;
|
|
2161
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2162
|
+
`,_h=a.div`
|
|
2163
|
+
user-select: none;
|
|
2164
|
+
display: flex;
|
|
2165
|
+
flex: 1 1 auto;
|
|
2166
|
+
flex-flow: row;
|
|
2167
|
+
justify-content: flex-start;
|
|
2168
|
+
align-items: center;
|
|
2169
|
+
&:hover {
|
|
2170
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2171
|
+
}
|
|
2172
|
+
`,jh=a.div`
|
|
2173
|
+
display: flex;
|
|
2174
|
+
flex: 1 0 auto;
|
|
2175
|
+
flex-direction: row;
|
|
2176
|
+
justify-content: flex-end;
|
|
2177
|
+
`,vh=a.div`
|
|
2178
|
+
display: flex;
|
|
2179
|
+
flex-direction: row;
|
|
2180
|
+
justify-content: flex-start;
|
|
2181
|
+
`,$h=a(j)`
|
|
2182
|
+
user-select: none;
|
|
2183
|
+
min-width: ${M.balanceWidth};
|
|
2184
|
+
max-width: ${M.balanceWidth};
|
|
2185
|
+
text-align: right;
|
|
2186
|
+
margin-left: ${M.balanceLeftMargin};
|
|
2187
|
+
border: 1px solid transparent;
|
|
2188
|
+
color: ${e=>e.theme.colors.hero};
|
|
2189
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2190
|
+
&:hover {
|
|
2191
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2192
|
+
}
|
|
2193
|
+
`,Lh=a.div`
|
|
2194
|
+
display: flex;
|
|
2195
|
+
flex-direction: row;
|
|
2196
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2197
|
+
${({isSticky:e})=>e?P`
|
|
2198
|
+
position: -webkit-sticky;
|
|
2199
|
+
position: sticky;
|
|
2200
|
+
top: ${d.sp0};
|
|
2201
|
+
left: ${d.sp0};
|
|
2202
|
+
`:null}
|
|
2203
|
+
`,Ah=a.div`
|
|
2204
|
+
display: flex;
|
|
2205
|
+
flex-direction: row;
|
|
2206
|
+
flex-shrink: 2;
|
|
2207
|
+
flex-grow: 1;
|
|
2208
|
+
align-items: center;
|
|
2209
|
+
gap: ${d.sp2};
|
|
2210
|
+
width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
2211
|
+
max-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
|
|
2212
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2213
|
+
`,Fe=a(j)`
|
|
2214
|
+
user-select: none;
|
|
2215
|
+
clear: both;
|
|
2216
|
+
display: inline-block;
|
|
2217
|
+
overflow: hidden;
|
|
2218
|
+
white-space: nowrap;
|
|
2219
|
+
text-overflow: ellipsis;
|
|
2220
|
+
text-align: left;
|
|
2221
|
+
color: ${e=>e.theme.colors.hero};
|
|
2222
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2223
|
+
&:hover {
|
|
2224
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2225
|
+
}
|
|
2226
|
+
`,Bh=a.div`
|
|
2227
|
+
display: flex;
|
|
2228
|
+
flex-direction: row;
|
|
2229
|
+
flex-shrink: 2;
|
|
2230
|
+
flex-grow: 1;
|
|
2231
|
+
align-items: center;
|
|
2232
|
+
width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2233
|
+
max-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2234
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2235
|
+
`,Ih=a.div`
|
|
2236
|
+
display: flex;
|
|
2237
|
+
flex-direction: row;
|
|
2238
|
+
flex-shrink: 2;
|
|
2239
|
+
flex-grow: 1;
|
|
2240
|
+
align-items: center;
|
|
2241
|
+
width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2242
|
+
max-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
|
|
2243
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2244
|
+
`,Oh=a.div`
|
|
2245
|
+
width: ${d.sp4};
|
|
2246
|
+
height: ${d.sp4};
|
|
2247
|
+
border-radius: 50%;
|
|
2248
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
2249
|
+
display: flex;
|
|
2250
|
+
justify-content: center;
|
|
2251
|
+
align-items: center;
|
|
2252
|
+
color: ${e=>e.theme.colors.hero};
|
|
2253
|
+
`,Wh=a(ir)`
|
|
2254
|
+
width: ${d.sp3};
|
|
2255
|
+
height: ${d.sp3};
|
|
2256
|
+
`,Mh=a.div`
|
|
2257
|
+
display: flex;
|
|
2258
|
+
column-gap: ${d.sp2};
|
|
2259
|
+
width: 100%;
|
|
2260
|
+
&:hover {
|
|
2261
|
+
.hyphen-text {
|
|
2262
|
+
display: none;
|
|
2263
|
+
}
|
|
2264
|
+
.not-specified-text {
|
|
2265
|
+
display: block;
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
`,Nh=a(j)`
|
|
2269
|
+
color: ${e=>e.theme.colors.hero};
|
|
2270
|
+
`,Th=a(j)`
|
|
2271
|
+
color: ${e=>e.theme.colors.hero};
|
|
2272
|
+
display: none;
|
|
2273
|
+
`,Ph=({balance:e,vendor:n,onVendorNameAndBalanceClick:o})=>{const i=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=i!==!0&&r===!1&&l===!1&&!fo(n.id);return t.jsx(vh,{children:t.jsx($h,{isClickable:c,onClick:()=>{c===!0&&o(n,e??void 0)},children:ne(e)})})};function Fh({type:e,backgroundColor:n,isSticky:o,height:i,isScrolling:r,isLastNode:l,vendor:c,balances:s,accountBase:u,classBase:h,isAccountColumnShown:p,isClassColumnShown:g,onVendorNameAndBalanceClick:f}){const x=W(),b=go(),y=b.loggedInUserRole!=null&&!po(b.loggedInUserRole),_=fo(c.id),C=y===!0&&c!=null&&!_,B=C?"pointer":"default",v=c.name;return t.jsxs(Ch,{"data-testid":m("vendor-row-root-container",c.id),height:i,bgColor:n,windowSize:x,children:[t.jsxs(_h,{"data-testid":m("vendor-row-container",c.id),style:{cursor:B},isClickable:C,children:[t.jsx(Lh,{"data-testid":m("vendor-row-sticky-container",c.id),isSticky:o,windowSize:x,bgColor:n,children:t.jsxs(Ah,{"data-testid":m("vendor-row-name-container",c.id),windowSize:x,bgColor:n,children:[t.jsxs(ht,{controller:!_,children:[c.logo!=null?t.jsx(Jt,{photoUrl:c.logo.toString(),styles:{width:M.nameLogoWidth.valuePx(x),height:M.nameLogoHeight.valuePx(x)}}):t.jsx(Xt,{name:v,size:d.sp4}),t.jsx(Fe,{"data-testid":m("vendor-row-name",c.id),style:{cursor:B},isClickable:C,onClick:()=>{C===!0&&f(c)},children:v})]}),t.jsx(ht,{controller:_,children:t.jsxs(Mh,{children:[t.jsx(Oh,{children:t.jsx(Wh,{})}),t.jsx(Nh,{className:"hyphen-text",children:O.getLocalizedStrings().common.strings.hyphen}),t.jsx(Th,{className:"not-specified-text",children:v})]})})]})}),p?t.jsx(Bh,{windowSize:x,bgColor:n,children:u!=null?t.jsx(Fe,{"data-testid":m("vendor-row-account-name",c.id),title:u.accountName,isClickable:!1,children:u.accountName}):t.jsx(Fe,{isClickable:!1,"data-testid":m("vendor-row-account-name",c.id),children:O.getLocalizedStrings().common.strings.hyphen})}):null,g?t.jsx(Ih,{windowSize:x,bgColor:n,children:h!=null?t.jsx(Fe,{"data-testid":m("vendor-row-class-name",c.id),title:h.className,isClickable:!1,children:h.className}):t.jsx(Fe,{"data-testid":m("vendor-row-class-name",c.id),isClickable:!1,children:O.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(jh,{children:s.map((L,z)=>t.jsx(Ph,{type:e,balance:L,vendor:c,onVendorNameAndBalanceClick:f},z))})]}),t.jsx(zh,{isScrolling:r,isLastNode:l})]})}function zh({isScrolling:e,isLastNode:n}){return n?t.jsx(Yt,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Yt,{isScrolling:e,kind:"vendor_row_separator"})}const Dh=(e,n,o,i,r,l)=>{if(e.element.kind!=="timeframe_headers")return null;const c=qe(e.element.data,e.config.displayOrder),s=c.length>0?c[0].balanceTimeFrame:"month",u=c.map(h=>He(h));return t.jsx(dh,{backgroundColor:r,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:e.config.mode==="this_period_vs_period_before"&&u.length>1,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:s,timeframeTicks:u,sortKey:e.config.opexByVendorConfig?.sortKey,sortOrder:e.config.opexByVendorConfig?.sortOrder,dataAvailable:e.config.dataAvailable,bookCloseDate:e.config.bookCloseDate,compareMode:i,onCompareModeChanged:l,onSortOrderChanged:e.config.opexByVendorConfig?.onSortOrderChanged})},Vh=(e,n,o,i,r,l,c)=>{const s=o.element.data,u=o.config.mode==="this_period_vs_period_before",h=u?o.element.numOfBalances+2:o.element.numOfBalances+1,p=ei(s,o.config.displayOrder,h,u);return t.jsx(Sh,{type:n,backgroundColor:c,isSticky:r,treeNodeId:e,height:i,isScrolling:l,totalBalances:p.balances,title:o.element.title,isAccountColumnShown:o.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:o.config.opexByVendorConfig?.isClassColumnShown??!0})},Rh=(e,n,o,i,r,l,c)=>{if(n.element.kind!="vendor_row"||n.element.data==null)return null;const s=n.element.data,u=n.config.mode==="this_period_vs_period_before",h=ei(s,n.config.displayOrder,n.element.numOfBalances,u);return t.jsx(Fh,{type:e,backgroundColor:i,isSticky:r,height:o,isScrolling:l,vendor:s.vendor,accountBase:s.account,classBase:s.classBase,isLastNode:c,balances:h.balances,isAccountColumnShown:n.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:n.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:(p,g)=>{n.config.opexByVendorConfig?.onVendorNameAndBalanceClicked(p,g)}})},Eh=(e,n,o,i)=>{if(e.element.kind!=="loading_in_progress")return null;const r=qe(e.element.data,e.config.displayOrder).map(l=>He(l));return t.jsx(Fu,{backgroundColor:o,isSticky:i,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})},Gh=(e,n,o,i)=>{if(e.element.kind!=="title_string_only")return null;const r=qe(e.element.data,e.config.displayOrder).map(l=>He(l));return t.jsx(Gu,{backgroundColor:o,isSticky:i,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})};function _n(e,n,o){return Hh(n,o,e)}const Hh=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.account.balancesInTimeframe,i.compactedAccountsSelector=r=>ro(r.accounts,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>ro(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r,i.compactedAccountGroupsSelector=r=>Kh(r,i.acGroupBalanceSelector,o,n),i};function ro(e,n,o){switch(o){case"off":return e;case"filter_actual_nil_balances":return e.filter(i=>Yh((n(i)?.balances??[]).concat(n(i)?.additionalBalances??[]))||ji((n(i)?.balances??[]).concat(n(i)?.additionalBalances??[])));case"filter_forecast_nil_balances":return e.filter(i=>ao(n(i)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(i=>ao(n(i)?.balances??[]))}}function Kh(e,n,o,i){switch(i){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>ji(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Uh(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>qh(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function ji(e){let n=!1;if(e!=null){for(const o of e)if(o.balance.amount!==0){n=!0;break}}return n}function Yh(e){let n=!1;if(e!=null){for(const o of e)if(o.totalBalance!=null&&o.totalBalance.amount!==0){n=!0;break}}return n}function Uh(e){let n=!1;if(e!=null){for(const o of e)if(o.forecast!=null&&o.forecast.amount!==0){n=!0;break}}return n}function qh(e){let n=!1;if(e!=null){for(const o of e)if(o.forecast!=null&&o.forecast.amount!==0||o.balance!=null&&o.balance.amount!==0){n=!0;break}}return n}function ao(e){let n=!1;if(e!=null){for(const o of e)if(o.totalForecast!=null&&o.totalForecast.amount!==0||o.totalBalance!=null&&o.totalBalance.amount!==0){n=!0;break}}return n}function vi(e,n,o=-1,i=!0){const r=o!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Qh([],o)),{balances:l,thisPeriodIndex:c};let s=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,s=[...e.balances].reverse()),{balances:[...s,...i?e.additionalBalances:[]],thisPeriodIndex:c}}function Qh(e,n){return e.length>0?e:ho(Array(n),null)}const Zh=a.div`
|
|
2274
|
+
display: flex;
|
|
2275
|
+
flex: 1 1 auto;
|
|
2276
|
+
width: fit-content;
|
|
2277
|
+
min-width: 100%;
|
|
2278
|
+
flex-direction: column;
|
|
2279
|
+
height: ${e=>e.height}px;
|
|
2280
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2281
|
+
`,Jh=a.div`
|
|
2282
|
+
user-select: none;
|
|
2283
|
+
display: flex;
|
|
2284
|
+
flex: 1 1 auto;
|
|
2285
|
+
flex-flow: row;
|
|
2286
|
+
justify-content: flex-start;
|
|
2287
|
+
align-items: center;
|
|
2288
|
+
&:hover {
|
|
2289
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2290
|
+
}
|
|
2291
|
+
`,Xh=a.div`
|
|
2292
|
+
display: flex;
|
|
2293
|
+
flex: 1 0 auto;
|
|
2294
|
+
flex-direction: row;
|
|
2295
|
+
justify-content: flex-end;
|
|
2296
|
+
`,eg=a.div`
|
|
2297
|
+
display: flex;
|
|
2298
|
+
flex-direction: row;
|
|
2299
|
+
justify-content: flex-start;
|
|
2300
|
+
`,$i=a(j)`
|
|
2301
|
+
user-select: none;
|
|
2302
|
+
min-width: ${k.balanceWidth};
|
|
2303
|
+
max-width: ${k.balanceWidth};
|
|
2304
|
+
text-align: right;
|
|
2305
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2306
|
+
color: ${e=>e.theme.colors.primary};
|
|
2307
|
+
`,tg=a($i)`
|
|
2308
|
+
color: ${e=>e.theme.colors.hero};
|
|
2309
|
+
&:hover {
|
|
2310
|
+
color: inherit;
|
|
2311
|
+
}
|
|
2312
|
+
`,ng=a.div`
|
|
2313
|
+
display: flex;
|
|
2314
|
+
flex-direction: row;
|
|
2315
|
+
flex-shrink: 2;
|
|
2316
|
+
flex-grow: 1;
|
|
2317
|
+
align-items: center;
|
|
2318
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2319
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2320
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2321
|
+
${({isSticky:e})=>e?P`
|
|
2322
|
+
position: -webkit-sticky;
|
|
2323
|
+
position: sticky;
|
|
2324
|
+
top: ${d.sp0};
|
|
2325
|
+
left: ${d.sp0};
|
|
2326
|
+
`:null}
|
|
2327
|
+
`,Li=a(j)`
|
|
2328
|
+
user-select: none;
|
|
2329
|
+
clear: both;
|
|
2330
|
+
display: inline-block;
|
|
2331
|
+
overflow: hidden;
|
|
2332
|
+
white-space: nowrap;
|
|
2333
|
+
text-overflow: ellipsis;
|
|
2334
|
+
text-align: left;
|
|
2335
|
+
margin-left: ${d.sp4};
|
|
2336
|
+
color: ${e=>e.theme.colors.primary};
|
|
2337
|
+
`,og=a(Li)`
|
|
2338
|
+
color: ${e=>e.theme.colors.hero};
|
|
2339
|
+
&:hover {
|
|
2340
|
+
color: inherit;
|
|
2341
|
+
}
|
|
2342
|
+
`,ig=({type:e,balance:n,collapsed:o,isActualVsForecastOn:i,compareMode:r})=>{const l=o===!0?tg:$i;return t.jsxs(eg,{children:[pe(e)===!0||i?t.jsx(l,{children:ne(n)}):t.jsx(l,{children:ie(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:ie(n)}),t.jsx(l,{children:r==="compare_mode_percent"?we(n):ye(n)})]}):null]})};function rg({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:s,isActualVsForecastOn:u,compareMode:h,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:x,onClick:b}){const y=me(),_=W(),C=!f,B=C?"pointer":"default",v=l==="collapsed",L=l==="hidden",z=L===!0?w[6]:w[4],V=v===!0?og:Li,U=v===!0?xo:mo,R=v===!0?y.colors.hero:y.colors.primary;return t.jsxs(Zh,{height:r,bgColor:n,"data-testid":m("pandl-report-account-group-row-root-container",i),children:[t.jsxs(Jh,{"data-testid":m("pandl-report-account-group-row-container",i),style:{cursor:B},isClickable:C,onClick:()=>b?.(i),children:[be(e)===!0?t.jsxs(ng,{bgColor:n,isSticky:o,windowSize:_,children:[L===!1?t.jsx(U,{color:R,style:{width:w[3],height:w[3]}}):null,t.jsx(V,{style:{marginLeft:z},children:c})]}):null,_e(e)===!0?t.jsx(Xh,{children:s.map((Z,q)=>t.jsx(ig,{type:e,accountGroupName:c,balance:Z,isActualVsForecastOn:u,compareMode:h,collapsed:v},q))}):null]}),t.jsx(ag,{isScrolling:p,type:e,isLeaf:f,isLastNode:x,isOpen:g})]})}function ag({isScrolling:e,type:n,isLastNode:o,isOpen:i}){let r="ac_group_row_separator";return o&&!i?r="section_row_separator":i&&(r=be(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(je,{isScrolling:e,kind:r})}const lg=a.div`
|
|
2343
|
+
display: flex;
|
|
2344
|
+
flex: 1 1 auto;
|
|
2345
|
+
width: fit-content;
|
|
2346
|
+
min-width: 100%;
|
|
2347
|
+
flex-direction: column;
|
|
2348
|
+
height: ${e=>e.height}px;
|
|
2349
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2350
|
+
`,cg=a.div`
|
|
2351
|
+
user-select: none;
|
|
2352
|
+
display: flex;
|
|
2353
|
+
flex: 1 1 auto;
|
|
2354
|
+
flex-flow: row;
|
|
2355
|
+
justify-content: flex-start;
|
|
2356
|
+
align-items: center;
|
|
2357
|
+
&:hover {
|
|
2358
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2359
|
+
}
|
|
2360
|
+
`,sg=a.div`
|
|
2361
|
+
display: flex;
|
|
2362
|
+
flex: 1 0 auto;
|
|
2363
|
+
flex-direction: row;
|
|
2364
|
+
justify-content: flex-end;
|
|
2365
|
+
`,dg=a.div`
|
|
2366
|
+
display: flex;
|
|
2367
|
+
flex-direction: row;
|
|
2368
|
+
justify-content: flex-start;
|
|
2369
|
+
`,Ai=a(j)`
|
|
2370
|
+
user-select: none;
|
|
2371
|
+
min-width: ${k.balanceWidth};
|
|
2372
|
+
max-width: ${k.balanceWidth};
|
|
2373
|
+
text-align: right;
|
|
2374
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2375
|
+
color: ${e=>e.theme.colors.primary};
|
|
2376
|
+
`,ug=a(Ai)`
|
|
2377
|
+
color: ${e=>e.theme.colors.hero};
|
|
2378
|
+
&:hover {
|
|
2379
|
+
color: inherit;
|
|
2380
|
+
}
|
|
2381
|
+
`,hg=a.div`
|
|
2382
|
+
display: flex;
|
|
2383
|
+
flex-direction: row;
|
|
2384
|
+
flex-shrink: 2;
|
|
2385
|
+
flex-grow: 1;
|
|
2386
|
+
align-items: center;
|
|
2387
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2388
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2389
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2390
|
+
${({isSticky:e})=>e?P`
|
|
2391
|
+
position: -webkit-sticky;
|
|
2392
|
+
position: sticky;
|
|
2393
|
+
top: ${d.sp0};
|
|
2394
|
+
left: ${d.sp0};
|
|
2395
|
+
`:null}
|
|
2396
|
+
`,Bi=a(j)`
|
|
2397
|
+
user-select: none;
|
|
2398
|
+
clear: both;
|
|
2399
|
+
display: inline-block;
|
|
2400
|
+
overflow: hidden;
|
|
2401
|
+
white-space: nowrap;
|
|
2402
|
+
text-overflow: ellipsis;
|
|
2403
|
+
text-align: left;
|
|
2404
|
+
margin-left: ${d.sp2};
|
|
2405
|
+
color: ${e=>e.theme.colors.primary};
|
|
2406
|
+
`,gg=a(Bi)`
|
|
2407
|
+
color: ${e=>e.theme.colors.hero};
|
|
2408
|
+
&:hover {
|
|
2409
|
+
color: inherit;
|
|
2410
|
+
}
|
|
2411
|
+
`,pg=({type:e,balance:n,collapsed:o,isActualVsForecastOn:i,compareMode:r})=>{const l=o===!0?ug:Ai;return t.jsxs(dg,{children:[pe(e)===!0||i?t.jsx(l,{children:ne(n)}):t.jsx(l,{children:ie(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:ie(n)}),t.jsx(l,{children:r==="compare_mode_percent"?we(n):ye(n)})]}):null]})};function fg({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:s,isActualVsForecastOn:u,compareMode:h,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:x,onClick:b}){const y=W(),_=me(),C=!f,B=C?"pointer":"default",v=l==="collapsed",L=v===!0?gg:Bi,[z,V]=T.useState(!1),U=c.length>0?c.substring(0,1).toUpperCase():"";return t.jsxs(lg,{"data-testid":m("pandl-account-group-row-root-container",i),height:r,bgColor:n,children:[t.jsxs(cg,{"data-testid":m("pandl-account-group-row-container",i),onMouseOver:()=>V(!0),onMouseLeave:()=>V(!1),style:{cursor:B},isClickable:C,onClick:()=>b?.(i),children:[be(e)===!0?t.jsxs(hg,{bgColor:n,isSticky:o,windowSize:y,children:[t.jsx(Le,{showCollapsedIcon:v,showIcon:z&&C,firstLetter:U,color:A(_.colors.primary)}),t.jsx(L,{children:c})]}):null,_e(e)===!0?t.jsx(sg,{children:s.map((R,Z)=>t.jsx(pg,{type:e,accountGroupName:c,balance:R,isActualVsForecastOn:u,compareMode:h,collapsed:v},Z))}):null]}),t.jsx(xg,{isScrolling:p,type:e,isLeaf:f,isLastNode:x,isOpen:g})]})}function xg({isScrolling:e,type:n,isLastNode:o,isOpen:i}){let r="ac_group_row_separator";return o&&!i?r="section_row_separator":i&&(r=be(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(je,{isScrolling:e,kind:r})}const mg=a.div`
|
|
2412
|
+
display: flex;
|
|
2413
|
+
flex: 1 1 auto;
|
|
2414
|
+
width: fit-content;
|
|
2415
|
+
min-width: 100%;
|
|
2416
|
+
flex-direction: column;
|
|
2417
|
+
height: ${e=>e.height}px;
|
|
2418
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2419
|
+
`,wg=a.div`
|
|
2420
|
+
user-select: none;
|
|
2421
|
+
display: flex;
|
|
2422
|
+
flex: 1 1 auto;
|
|
2423
|
+
flex-flow: row;
|
|
2424
|
+
justify-content: flex-start;
|
|
2425
|
+
align-items: center;
|
|
2426
|
+
`,yg=a.div`
|
|
2427
|
+
display: flex;
|
|
2428
|
+
flex: 1 0 auto;
|
|
2429
|
+
flex-direction: row;
|
|
2430
|
+
justify-content: flex-end;
|
|
2431
|
+
`,bg=a.div`
|
|
2432
|
+
display: flex;
|
|
2433
|
+
flex-direction: row;
|
|
2434
|
+
justify-content: flex-start;
|
|
2435
|
+
`,lt=a(j)`
|
|
2436
|
+
user-select: none;
|
|
2437
|
+
min-width: ${k.balanceWidth};
|
|
2438
|
+
max-width: ${k.balanceWidth};
|
|
2439
|
+
text-align: right;
|
|
2440
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2441
|
+
color: ${e=>e.theme.colors.hero};
|
|
2442
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2443
|
+
&:hover {
|
|
2444
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2445
|
+
}
|
|
2446
|
+
`,kg=a.div`
|
|
2447
|
+
display: flex;
|
|
2448
|
+
flex-direction: row;
|
|
2449
|
+
flex-shrink: 2;
|
|
2450
|
+
flex-grow: 1;
|
|
2451
|
+
align-items: center;
|
|
2452
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2453
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2454
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2455
|
+
${({isSticky:e})=>e?P`
|
|
2456
|
+
position: -webkit-sticky;
|
|
2457
|
+
position: sticky;
|
|
2458
|
+
top: ${d.sp0};
|
|
2459
|
+
left: ${d.sp0};
|
|
2460
|
+
`:null}
|
|
2461
|
+
`,Sg=a(j)`
|
|
2462
|
+
user-select: none;
|
|
2463
|
+
clear: both;
|
|
2464
|
+
display: inline-block;
|
|
2465
|
+
overflow: hidden;
|
|
2466
|
+
white-space: nowrap;
|
|
2467
|
+
text-overflow: ellipsis;
|
|
2468
|
+
text-align: left;
|
|
2469
|
+
margin-left: ${d.sp6};
|
|
2470
|
+
color: ${e=>e.theme.colors.hero};
|
|
2471
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2472
|
+
&:hover {
|
|
2473
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2474
|
+
}
|
|
2475
|
+
`,Cg=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i,account:r,onAccountBalanceClick:l})=>{const c=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",s=r!=null&&n!=null&&l!=null&&c!==!0;return t.jsxs(bg,{"data-testid":m("account-row-balance-element",e),children:[pe(e)===!0||o?t.jsx(lt,{"data-testid":m("account-row-balance-actual",e),isClickable:s,onClick:()=>{s===!0&&r!=null&&n!=null&&l?.(r,n)},children:ne(n)}):t.jsx(lt,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:ie(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(lt,{isClickable:!1,"data-testid":m("account-row-balance-forecast",e),children:ie(n)}),t.jsx(lt,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?we(n):ye(n)})]}):null]})};function _g({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,accountBalances:l,isActualVsForecastOn:c,compareMode:s,isScrolling:u,isLeaf:h,isLastNode:p,account:g,onAccountBalanceClick:f}){const x=W(),{common:{strings:{hyphen:b}}}=O.getLocalizedStrings(),y=g?.accountDescription?g.accountDescription:b,_=g?.accountName?g.accountName:y;return t.jsxs(mg,{height:r,bgColor:n,"data-testid":m("account-row-root-container",i),children:[t.jsxs(wg,{"data-testid":m("account-row-container",i),children:[be(e)===!0?t.jsx(kg,{isSticky:o,windowSize:x,bgColor:n,children:t.jsx(Sg,{isClickable:!1,title:_,children:_})}):null,_e(e)===!0?t.jsx(yg,{children:l.map((C,B)=>t.jsx(Cg,{type:e,isActualVsForecastOn:c,compareMode:s,balance:C,account:g,onAccountBalanceClick:f==null?void 0:(v,L)=>{f(i,v,L)}},B))}):null]}),t.jsx(jg,{isScrolling:u,type:e,isLeaf:h,isLastNode:p})]})}function jg({isScrolling:e,isLastNode:n,type:o}){const i=n?"ac_group_row_separator":be(o)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(je,{isScrolling:e,kind:i})}const vg=a.div`
|
|
2476
|
+
display: flex;
|
|
2477
|
+
flex: 1 1 auto;
|
|
2478
|
+
width: fit-content;
|
|
2479
|
+
min-width: 100%;
|
|
2480
|
+
flex-direction: column;
|
|
2481
|
+
height: ${e=>e.height}px;
|
|
2482
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2483
|
+
`,$g=a.div`
|
|
2484
|
+
user-select: none;
|
|
2485
|
+
display: flex;
|
|
2486
|
+
flex: 1 1 auto;
|
|
2487
|
+
flex-flow: row;
|
|
2488
|
+
justify-content: flex-start;
|
|
2489
|
+
align-items: center;
|
|
2490
|
+
`,Lg=a.div`
|
|
2491
|
+
display: flex;
|
|
2492
|
+
flex: 1 0 auto;
|
|
2493
|
+
flex-direction: row;
|
|
2494
|
+
justify-content: flex-end;
|
|
2495
|
+
`,Ag=a.div`
|
|
2496
|
+
display: flex;
|
|
2497
|
+
flex-direction: row;
|
|
2498
|
+
justify-content: flex-start;
|
|
2499
|
+
`,ct=a(j)`
|
|
2500
|
+
user-select: none;
|
|
2501
|
+
max-width: ${k.balanceWidth};
|
|
2502
|
+
min-width: ${k.balanceWidth};
|
|
2503
|
+
text-align: right;
|
|
2504
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2505
|
+
`,Bg=a.div`
|
|
2506
|
+
display: flex;
|
|
2507
|
+
flex-direction: row;
|
|
2508
|
+
flex-shrink: 2;
|
|
2509
|
+
flex-grow: 1;
|
|
2510
|
+
align-items: center;
|
|
2511
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2512
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2513
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2514
|
+
${({isSticky:e})=>e?P`
|
|
2515
|
+
position: -webkit-sticky;
|
|
2516
|
+
position: sticky;
|
|
2517
|
+
top: ${d.sp0};
|
|
2518
|
+
left: ${d.sp0};
|
|
2519
|
+
`:null}
|
|
2520
|
+
`,Ig=a.div`
|
|
2521
|
+
display: flex;
|
|
2522
|
+
flex-grow: 8;
|
|
2523
|
+
`,Og=a(j)`
|
|
2524
|
+
user-select: none;
|
|
2525
|
+
user-select: none;
|
|
2526
|
+
clear: both;
|
|
2527
|
+
display: inline-block;
|
|
2528
|
+
overflow: hidden;
|
|
2529
|
+
white-space: nowrap;
|
|
2530
|
+
text-overflow: ellipsis;
|
|
2531
|
+
text-align: left;
|
|
2532
|
+
margin-left: ${d.sp2};
|
|
2533
|
+
`,Wg=a($e)`
|
|
2534
|
+
display: flex;
|
|
2535
|
+
color: ${e=>e.theme.colors.primary};
|
|
2536
|
+
align-items: center;
|
|
2537
|
+
flex-direction: row;
|
|
2538
|
+
justify-content: flex-end;
|
|
2539
|
+
padding: 1px 6px;
|
|
2540
|
+
height: 20px;
|
|
2541
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
2542
|
+
border-radius: ${d.sp1};
|
|
2543
|
+
margin: 0 ${d.sp5} 0 ${d.sp3};
|
|
2544
|
+
`,Mg=({metadata:e,depth:n})=>n===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(rr,{}):t.jsx(ar,{}),Ng=({type:e,balance:n,color:o,isActualVsForecastOn:i,compareMode:r})=>t.jsxs(Ag,{children:[pe(e)===!0||i?t.jsx(ct,{style:{color:o},children:ne(n)}):t.jsx(ct,{style:{color:o},children:ie(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(ct,{style:{color:o},children:ie(n)}),t.jsx(ct,{style:{color:o},children:r==="compare_mode_percent"?we(n):ye(n)})]}):null]});function Tg({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,className:l,classCode:c,sectionBalances:s,isActualVsForecastOn:u,compareMode:h,hasChildren:p,isScrolling:g,isOpen:f,isLeaf:x,metadata:b,showClassAccountNumber:y,onClick:_,depth:C}){const B=W(),v=me(),L=!x,z=L?"pointer":"default",V=v.colors.primary,U=l.length>0?l.substr(0,1).toUpperCase():"",[R,Z]=T.useState(!1),q=b.classAncestorMetadata??[];return t.jsxs(vg,{"data-testid":m("class-row-root-container",i),height:r,bgColor:n,children:[t.jsxs($g,{"data-testid":m("class-row-container",i),style:{cursor:z},onClick:()=>_?.(i),onMouseOver:()=>Z(!0),onMouseLeave:()=>Z(!1),children:[be(e)===!0?t.jsxs(Bg,{isSticky:o,windowSize:B,bgColor:n,children:[t.jsx(Wa,{name:l,ancestorMetadata:q,depth:C}),t.jsx(Mg,{metadata:q[C],depth:C}),t.jsx(Le,{color:A(V),showCollapsedIcon:!f,showIcon:R&&L,firstLetter:U,showTreeLine:p}),t.jsx(Ig,{children:t.jsx(Og,{style:{color:V},children:l})}),R===!0&&y===!0&&c!==void 0&&t.jsx(Wg,{children:c})]}):null,_e(e)===!0?t.jsx(Lg,{children:s.map((ue,ee)=>t.jsx(Ng,{type:e,sectionName:l,balance:ue,isActualVsForecastOn:u,compareMode:h,color:V},ee))}):null]}),t.jsx(Pg,{isScrolling:g,isLeaf:x,isOpen:f})]})}function Pg({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(je,{isScrolling:e,kind:"section_row_separator"}):null}a.div`
|
|
2545
|
+
display: flex;
|
|
2546
|
+
flex: 1 1 auto;
|
|
2547
|
+
width: fit-content;
|
|
2548
|
+
min-width: 100%;
|
|
2549
|
+
flex-direction: column;
|
|
2550
|
+
height: ${e=>e.height}px;
|
|
2551
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2552
|
+
`;a.div`
|
|
2553
|
+
user-select: none;
|
|
2554
|
+
display: flex;
|
|
2555
|
+
flex: 1 1 auto;
|
|
2556
|
+
flex-flow: row;
|
|
2557
|
+
justify-content: flex-start;
|
|
2558
|
+
align-items: center;
|
|
2559
|
+
`;a.div`
|
|
2560
|
+
display: flex;
|
|
2561
|
+
flex: 1 0 auto;
|
|
2562
|
+
flex-direction: row;
|
|
2563
|
+
justify-content: flex-end;
|
|
2564
|
+
`;a.div`
|
|
2565
|
+
display: flex;
|
|
2566
|
+
flex-direction: row;
|
|
2567
|
+
justify-content: flex-start;
|
|
2568
|
+
`;a(j)`
|
|
2569
|
+
user-select: none;
|
|
2570
|
+
max-width: ${k.balanceWidth};
|
|
2571
|
+
min-width: ${k.balanceWidth};
|
|
2572
|
+
text-align: right;
|
|
2573
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2574
|
+
`;a.div`
|
|
2575
|
+
display: flex;
|
|
2576
|
+
flex-direction: row;
|
|
2577
|
+
flex-shrink: 2;
|
|
2578
|
+
flex-grow: 1;
|
|
2579
|
+
align-items: center;
|
|
2580
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2581
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2582
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2583
|
+
${({isSticky:e})=>e?P`
|
|
2584
|
+
position: -webkit-sticky;
|
|
2585
|
+
position: sticky;
|
|
2586
|
+
top: ${d.sp0};
|
|
2587
|
+
left: ${d.sp0};
|
|
2588
|
+
`:null}
|
|
2589
|
+
`;a.div`
|
|
2590
|
+
display: flex;
|
|
2591
|
+
`;a(j)`
|
|
2592
|
+
user-select: none;
|
|
2593
|
+
user-select: none;
|
|
2594
|
+
clear: both;
|
|
2595
|
+
display: inline-block;
|
|
2596
|
+
overflow: hidden;
|
|
2597
|
+
white-space: nowrap;
|
|
2598
|
+
text-overflow: ellipsis;
|
|
2599
|
+
text-align: left;
|
|
2600
|
+
margin-left: ${d.sp2};
|
|
2601
|
+
`;const Fg=a.div`
|
|
2602
|
+
display: flex;
|
|
2603
|
+
flex: 1 1 auto;
|
|
2604
|
+
width: fit-content;
|
|
2605
|
+
min-width: 100%;
|
|
2606
|
+
flex-direction: column;
|
|
2607
|
+
height: ${e=>e.height}px;
|
|
2608
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2609
|
+
`,zg=a.div`
|
|
2610
|
+
user-select: none;
|
|
2611
|
+
display: flex;
|
|
2612
|
+
flex: 1 1 auto;
|
|
2613
|
+
flex-flow: row;
|
|
2614
|
+
justify-content: flex-start;
|
|
2615
|
+
align-items: center;
|
|
2616
|
+
`,Dg=a.div`
|
|
2617
|
+
display: flex;
|
|
2618
|
+
flex: 1 0 auto;
|
|
2619
|
+
flex-direction: row;
|
|
2620
|
+
justify-content: flex-end;
|
|
2621
|
+
`,Vg=a.div`
|
|
2622
|
+
display: flex;
|
|
2623
|
+
flex-direction: row;
|
|
2624
|
+
justify-content: flex-start;
|
|
2625
|
+
`,st=a(j)`
|
|
2626
|
+
user-select: none;
|
|
2627
|
+
max-width: ${k.balanceWidth};
|
|
2628
|
+
min-width: ${k.balanceWidth};
|
|
2629
|
+
text-align: right;
|
|
2630
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2631
|
+
`,Rg=a.div`
|
|
2632
|
+
display: flex;
|
|
2633
|
+
flex-direction: row;
|
|
2634
|
+
flex-shrink: 2;
|
|
2635
|
+
flex-grow: 1;
|
|
2636
|
+
align-items: center;
|
|
2637
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2638
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2639
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2640
|
+
${({isSticky:e})=>e?P`
|
|
2641
|
+
position: -webkit-sticky;
|
|
2642
|
+
position: sticky;
|
|
2643
|
+
top: ${d.sp0};
|
|
2644
|
+
left: ${d.sp0};
|
|
2645
|
+
`:null}
|
|
2646
|
+
`,Eg=a(j)`
|
|
2647
|
+
user-select: none;
|
|
2648
|
+
user-select: none;
|
|
2649
|
+
clear: both;
|
|
2650
|
+
display: inline-block;
|
|
2651
|
+
overflow: hidden;
|
|
2652
|
+
white-space: nowrap;
|
|
2653
|
+
text-overflow: ellipsis;
|
|
2654
|
+
text-align: left;
|
|
2655
|
+
margin-left: ${d.sp2};
|
|
2656
|
+
`,Gg=({type:e,balance:n,color:o,isActualVsForecastOn:i,compareMode:r})=>t.jsxs(Vg,{children:[pe(e)===!0||i?t.jsx(st,{style:{color:o},children:ne(n)}):t.jsx(st,{style:{color:o},children:ie(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(st,{style:{color:o},children:ie(n)}),t.jsx(st,{style:{color:o},children:r==="compare_mode_percent"?we(n):ye(n)})]}):null]});function jn({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,sectionName:l,sectionBalances:c,isActualVsForecastOn:s,compareMode:u,sectionColor:h,isScrolling:p,isOpen:g,isLeaf:f,onClick:x}){const b=W(),y=!f,_=y?"pointer":"default",C=l.length>0?l.substring(0,1).toUpperCase():"",[B,v]=T.useState(!1);return t.jsxs(Fg,{"data-testid":m("section-row",i),height:r,bgColor:n,children:[t.jsxs(zg,{"data-testid":m("section-row-container",i),style:{cursor:_},onClick:()=>x?.(i),onMouseOver:()=>v(!0),onMouseLeave:()=>v(!1),children:[be(e)===!0?t.jsxs(Rg,{isSticky:o,windowSize:b,bgColor:n,children:[t.jsx(Le,{color:A(h),showCollapsedIcon:!g,showIcon:B&&y,firstLetter:C}),t.jsx(Eg,{style:{color:h},children:l})," "]}):null,_e(e)===!0?t.jsx(Dg,{children:c.map((L,z)=>t.jsx(Gg,{type:e,sectionName:l,balance:L,isActualVsForecastOn:s,compareMode:u,color:h},z))}):null]}),t.jsx(Hg,{isScrolling:p,isLeaf:f,isOpen:g})]})}function Hg({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(je,{isScrolling:e,kind:"section_row_separator"}):null}const Kg=a.div`
|
|
2657
|
+
display: flex;
|
|
2658
|
+
flex: 1 1 auto;
|
|
2659
|
+
width: fit-content;
|
|
2660
|
+
min-width: 100%;
|
|
2661
|
+
flex-direction: column;
|
|
2662
|
+
height: ${e=>e.height-1}px;
|
|
2663
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2664
|
+
`,Yg=a.div`
|
|
2665
|
+
user-select: none;
|
|
2666
|
+
display: flex;
|
|
2667
|
+
flex: 1 1 auto;
|
|
2668
|
+
flex-flow: row;
|
|
2669
|
+
justify-content: flex-start;
|
|
2670
|
+
align-items: center;
|
|
2671
|
+
`,Ug=a.div`
|
|
2672
|
+
display: flex;
|
|
2673
|
+
flex: 1 0 auto;
|
|
2674
|
+
flex-direction: row;
|
|
2675
|
+
justify-content: flex-end;
|
|
2676
|
+
`,qg=a.div`
|
|
2677
|
+
display: flex;
|
|
2678
|
+
flex-direction: row;
|
|
2679
|
+
justify-content: flex-start;
|
|
2680
|
+
`,dt=a(j)`
|
|
2681
|
+
user-select: none;
|
|
2682
|
+
min-width: ${k.balanceWidth};
|
|
2683
|
+
max-width: ${k.balanceWidth};
|
|
2684
|
+
text-align: right;
|
|
2685
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2686
|
+
color: ${e=>e.theme.colors.hero};
|
|
2687
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2688
|
+
&:hover {
|
|
2689
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2690
|
+
}
|
|
2691
|
+
`,Qg=a.div`
|
|
2692
|
+
display: flex;
|
|
2693
|
+
flex-direction: row;
|
|
2694
|
+
flex-shrink: 2;
|
|
2695
|
+
flex-grow: 1;
|
|
2696
|
+
align-items: center;
|
|
2697
|
+
height: ${e=>e.containerHeight-1}px; // Else bottom line doesnt show up
|
|
2698
|
+
// because the height of the svg is much larger
|
|
2699
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2700
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2701
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2702
|
+
color: ${e=>e.theme.colors.hero};
|
|
2703
|
+
|
|
2704
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2705
|
+
&:hover {
|
|
2706
|
+
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2707
|
+
}
|
|
2708
|
+
${({isSticky:e})=>e?P`
|
|
2709
|
+
position: -webkit-sticky;
|
|
2710
|
+
position: sticky;
|
|
2711
|
+
top: ${d.sp0};
|
|
2712
|
+
left: ${d.sp0};
|
|
2713
|
+
`:null}
|
|
2714
|
+
`,Zg=a(j)`
|
|
2715
|
+
user-select: none;
|
|
2716
|
+
clear: both;
|
|
2717
|
+
display: inline-block;
|
|
2718
|
+
text-align: left;
|
|
2719
|
+
`,Jg=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i,account:r,showTotal:l,onAccountBalanceClick:c})=>{const s=n!=null?kr(n?.type):!1,u=r!=null&&n!=null&&c!=null&&s!==!0,h=l===!0?Co(n):ne(n),p=l===!0?Pt(n):ie(n),g=l===!0?_o(n):we(n),f=l===!0?jo(n):ye(n);return t.jsxs(qg,{"data-testid":m("account-row-balance-element",e),children:[pe(e)===!0||o?t.jsx(dt,{"data-testid":m("account-row-balance-actual",e),isClickable:u,onClick:x=>{x.stopPropagation(),u===!0&&r!=null&&n!=null&&c?.(r,n)},children:h}):t.jsx(dt,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),o?t.jsxs(t.Fragment,{children:[t.jsx(dt,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),t.jsx(dt,{"data-testid":m("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?g:f})]}):null]})};function Xg({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,classDepth:l,accountBalances:c,isActualVsForecastOn:s,compareMode:u,metadata:h,isScrolling:p,noMarginForAccount:g,isLeaf:f,isOpen:x,isLastNode:b,account:y,onAccountBalanceClick:_,onClick:C}){const B=W(),v=y!=null?y.id.length-1:0,L=y?.hasSiblings??!1,z=y!=null?y.children.length!==0:!1,V=h,{common:{strings:{empty:U}}}=O.getLocalizedStrings(),R=y?.account.accountDescription?y.account.accountDescription:U,Z=y?.account.accountName?y.account.accountName:R;return t.jsxs(Kg,{"data-testid":m("sub-account-row",i),height:r,bgColor:n,children:[t.jsxs(Yg,{"data-testid":m("sub-account-row-container",i),onClick:()=>C?.(i),children:[t.jsx(Qg,{isClickable:z,isSticky:o,windowSize:B,bgColor:n,containerHeight:r,children:t.jsx(Zg,{title:Z,children:t.jsx(Bo,{displayName:Z,depth:v,classDepth:l,isLastNode:b,hasChildren:z,hasSiblings:L,isLeaf:f,collapsed:!x,subAccountAnscestorMetadata:V.subAccountAncestorMetadata,classAnscestorMetadata:V.classAncestorMetadata??[],noMarginForAccount:g})})}),_e(e)===!0?t.jsx(Ug,{children:c.map((q,ue)=>t.jsx(Jg,{type:e,isActualVsForecastOn:s,compareMode:u,balance:q,account:y?.account,showTotal:!x,onAccountBalanceClick:_==null?void 0:(ee,D)=>{_(i,ee,D)}},ue))}):null]}),t.jsx(ep,{isScrolling:p,isLeaf:f,isOpen:x,depth:v,isSticky:o,classDepth:l,noMarginForAccount:g})]})}function ep({isScrolling:e,depth:n,isOpen:o,isLeaf:i,isSticky:r,classDepth:l,noMarginForAccount:c}){return!o||i===!0?t.jsx(je,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:n,isSticky:r,classDepth:l,noMarginForAccount:c}}):null}const tp=[10,14,20,20,20],np=a.div`
|
|
2720
|
+
display: flex;
|
|
2721
|
+
flex: 1 1 auto;
|
|
2722
|
+
width: fit-content;
|
|
2723
|
+
min-width: 100%;
|
|
2724
|
+
flex-direction: column;
|
|
2725
|
+
height: ${e=>e.height-1}px;
|
|
2726
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2727
|
+
`,op=a.div`
|
|
2728
|
+
user-select: none;
|
|
2729
|
+
display: flex;
|
|
2730
|
+
flex: 1 1 auto;
|
|
2731
|
+
flex-flow: row;
|
|
2732
|
+
justify-content: flex-start;
|
|
2733
|
+
align-items: center;
|
|
2734
|
+
`,ip=a.div`
|
|
2735
|
+
width: ${e=>vo.emptyLeftContainer.valuePx(e.windowSize)};
|
|
2736
|
+
height: ${d.sp1};
|
|
2737
|
+
`,rp=a.div`
|
|
2738
|
+
display: flex;
|
|
2739
|
+
flex: 1 0 auto;
|
|
2740
|
+
flex-direction: row;
|
|
2741
|
+
justify-content: flex-end;
|
|
2742
|
+
`,ap=a.div`
|
|
2743
|
+
display: flex;
|
|
2744
|
+
flex-direction: row;
|
|
2745
|
+
justify-content: flex-start;
|
|
2746
|
+
`,ut=a(j)`
|
|
2747
|
+
user-select: none;
|
|
2748
|
+
min-width: ${k.balanceWidth};
|
|
2749
|
+
max-width: ${k.balanceWidth};
|
|
2750
|
+
text-align: right;
|
|
2751
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2752
|
+
color: ${e=>e.theme.colors.primary};
|
|
2753
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2754
|
+
`,lp=a.div`
|
|
2755
|
+
display: flex;
|
|
2756
|
+
flex-direction: row;
|
|
2757
|
+
flex-shrink: 2;
|
|
2758
|
+
flex-grow: 1;
|
|
2759
|
+
align-items: center;
|
|
2760
|
+
height: ${e=>e.containerHeight-1}px;
|
|
2761
|
+
width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2762
|
+
max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2763
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2764
|
+
${({isSticky:e})=>e?P`
|
|
2765
|
+
position: -webkit-sticky;
|
|
2766
|
+
position: sticky;
|
|
2767
|
+
top: ${d.sp0};
|
|
2768
|
+
left: ${d.sp0};
|
|
2769
|
+
`:null}
|
|
2770
|
+
`,cp=a(j)`
|
|
2771
|
+
user-select: none;
|
|
2772
|
+
clear: both;
|
|
2773
|
+
display: inline-block;
|
|
2774
|
+
overflow: hidden;
|
|
2775
|
+
white-space: nowrap;
|
|
2776
|
+
text-overflow: ellipsis;
|
|
2777
|
+
text-align: left;
|
|
2778
|
+
margin-left: ${e=>tp[e.depth]}px;
|
|
2779
|
+
color: ${e=>e.theme.colors.primary};
|
|
2780
|
+
width: ${e=>k.titleWidth.value(e.windowSize)-e.depth*80}px;
|
|
2781
|
+
`,sp=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i})=>t.jsxs(ap,{"data-testid":m("sub-account-row-balance-element",e),children:[pe(e)===!0||o?t.jsx(ut,{"data-testid":m("sub-account-row-balance-element-actual",e),isClickable:!1,children:Co(n)}):t.jsx(ut,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Pt(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(ut,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Pt(n)}),t.jsx(ut,{"data-testid":m("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?_o(n):jo(n)})]}):null]});function dp({type:e,backgroundColor:n,isSticky:o,height:i,classDepth:r,accountName:l,accountBalances:c,account:s,noMarginForAccount:u,isActualVsForecastOn:h,compareMode:p,isScrolling:g,metadata:f}){const x=W(),b=O.getLocalizedStrings().reports.sections,y=s!=null?s.id.length-1:0,_=f;return t.jsxs(np,{height:i,bgColor:n,children:[t.jsxs(op,{children:[t.jsxs(lp,{isSticky:o,windowSize:x,bgColor:n,containerHeight:i,children:[r!=null?t.jsx(Lo,{ancestorMetadata:_.classAncestorMetadata??[],depth:r,name:l}):u===!1?t.jsx(ip,{windowSize:x}):null,t.jsx(Ao,{ancestorMetadata:_.subAccountAncestorMetadata,depth:y,name:l}),t.jsx(cp,{"data-testid":m("sub-account-row-name",e),isClickable:!1,title:l,depth:y,windowSize:x,children:b.totalPrefix+" "+l})]}),_e(e)===!0?t.jsx(rp,{children:c.map((C,B)=>t.jsx(sp,{type:e,isActualVsForecastOn:h,compareMode:p,balance:C},B))}):null]}),t.jsx(up,{isScrolling:g,nestingLevel:y,isSticky:o,classDepth:r,noMarginForAccount:u})]})}function up({isScrolling:e,nestingLevel:n,isSticky:o,classDepth:i,noMarginForAccount:r}){return t.jsx(je,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:n,isSticky:o,classDepth:i,noMarginForAccount:r}})}const hp=a.div`
|
|
2782
|
+
user-select: none;
|
|
2783
|
+
display: flex;
|
|
2784
|
+
flex: 1 1 auto;
|
|
2785
|
+
width: fit-content;
|
|
2786
|
+
min-width: 100%;
|
|
2787
|
+
height: ${e=>e.height}px;
|
|
2788
|
+
flex-flow: row;
|
|
2789
|
+
justify-content: flex-start;
|
|
2790
|
+
align-items: center;
|
|
2791
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2792
|
+
`,gp=a.div`
|
|
2793
|
+
display: flex;
|
|
2794
|
+
flex: 1 0 auto;
|
|
2795
|
+
flex-direction: row;
|
|
2796
|
+
justify-content: flex-end;
|
|
2797
|
+
`,Ge=k.balanceWidthInPx+k.balanceLeftMarginInPx,Ii=a.div`
|
|
2798
|
+
display: flex;
|
|
2799
|
+
max-height: 54px;
|
|
2800
|
+
min-height: 54px;
|
|
2801
|
+
min-width: ${e=>e.isActualVsForecastOn?3*(Ge-2)-k.balanceLeftMarginInPx:k.balanceWidthInPx}px;
|
|
2802
|
+
justify-content: center;
|
|
2803
|
+
align-items: center;
|
|
2804
|
+
background-color: ${e=>e.theme.colors.background};
|
|
2805
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2806
|
+
border-radius: ${d.sp2};
|
|
2807
|
+
margin-left: ${e=>e.isActualVsForecastOn?w[0]:k.balanceLeftMarginInPx}px;
|
|
2808
|
+
color: ${e=>e.theme.colors.primary};
|
|
2809
|
+
`,Oi=a(j)`
|
|
2810
|
+
display: flex;
|
|
2811
|
+
user-select: none;
|
|
2812
|
+
flex-direction: row;
|
|
2813
|
+
justify-content: center;
|
|
2814
|
+
align-items: center;
|
|
2815
|
+
height: ${k.balanceHeight};
|
|
2816
|
+
max-width: ${k.balanceWidthInPx-2}px;
|
|
2817
|
+
width: 138px;
|
|
2818
|
+
text-align: center;
|
|
2819
|
+
`,pp=a.div`
|
|
2820
|
+
height: 100%;
|
|
2821
|
+
display: inline-block;
|
|
2822
|
+
flex-direction: row;
|
|
2823
|
+
align-items: center;
|
|
2824
|
+
min-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
|
|
2825
|
+
color: ${e=>e.theme.colors.grey5};
|
|
2826
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2827
|
+
border: 1px solid ${e=>e.bgColor?.hex()};
|
|
2828
|
+
${({isSticky:e})=>e?P`
|
|
2829
|
+
position: -webkit-sticky;
|
|
2830
|
+
position: sticky;
|
|
2831
|
+
top: ${d.sp0};
|
|
2832
|
+
left: ${d.sp0};
|
|
2833
|
+
z-index: 20;
|
|
2834
|
+
`:null}
|
|
2835
|
+
`,fp=a.div`
|
|
2836
|
+
display: flex;
|
|
2837
|
+
width: ${e=>e.isActualVsForecastOn?3*Ge:Ge}px;
|
|
2838
|
+
flex-direction: row;
|
|
2839
|
+
justify-content: flex-start;
|
|
2840
|
+
color: ${e=>e.theme.colors.champion};
|
|
2841
|
+
`,Tt=a(j)`
|
|
2842
|
+
display: flex;
|
|
2843
|
+
justify-content: flex-end;
|
|
2844
|
+
align-items: center;
|
|
2845
|
+
height: ${k.balanceHeight};
|
|
2846
|
+
width: ${k.balanceWidth};
|
|
2847
|
+
min-width: ${k.balanceWidth};
|
|
2848
|
+
margin-left: ${k.balanceLeftMargin};
|
|
2849
|
+
margin-top: ${d.sp3};
|
|
2850
|
+
`,xp=a.div`
|
|
2851
|
+
display: flex;
|
|
2852
|
+
max-height: 54px;
|
|
2853
|
+
min-height: 54px;
|
|
2854
|
+
justify-content: center;
|
|
2855
|
+
align-items: center;
|
|
2856
|
+
color: ${e=>e.theme.colors.champion};
|
|
2857
|
+
`,mp=a.div``,wp=a(j)`
|
|
2858
|
+
display: flex;
|
|
2859
|
+
justify-content: center;
|
|
2860
|
+
align-items: center;
|
|
2861
|
+
max-height: 54px;
|
|
2862
|
+
min-height: 54px;
|
|
2863
|
+
background-color: ${e=>e.theme.colors.background};
|
|
2864
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2865
|
+
border-radius: ${d.sp2};
|
|
2866
|
+
margin-left: ${k.balanceLeftMarginInPx}px;
|
|
2867
|
+
color: ${e=>e.theme.colors.primary};
|
|
2868
|
+
width: ${k.balanceWidth};
|
|
2869
|
+
min-width: ${k.balanceWidth};
|
|
2870
|
+
`,yp=a.div`
|
|
2871
|
+
display: flex;
|
|
2872
|
+
width: ${e=>e.isActualVsForecastOn?3*Ge:Ge}px;
|
|
2873
|
+
flex-direction: column;
|
|
2874
|
+
align-items: flex-end;
|
|
2875
|
+
`,bp=a.div`
|
|
2876
|
+
max-height: 54px;
|
|
2877
|
+
min-height: 54px;
|
|
2878
|
+
`,Wi=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:i,bookCloseDate:r})=>{const l=O.getLocalizedStrings().reports,c=r!=null&&i!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?ko(o,e,n,r,i):void 0,s=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,u=mi(c,o);return t.jsx(bp,{children:r!=null&&i!=null&&c!=null&&s!=null&&u!=null?t.jsx(xi,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:s,infoContent:u,tagType:c}):t.jsx(Ii,{isActualVsForecastOn:!1,children:t.jsx(Oi,{children:Ue(e,n,o)})})})},kp=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,isActualVsForecastOn:i,compareMode:r,dataAvailable:l,bookCloseDate:c,onCompareModeChanged:s})=>{const u=O.getLocalizedStrings().reports.forecast,h=r==="compare_mode_amount"?`${O.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:O.getLocalizedStrings().compareMode.changePercent;return i===!0?t.jsxs(yp,{isActualVsForecastOn:i,children:[t.jsx(Ii,{isActualVsForecastOn:i,children:t.jsx(Oi,{children:Ue(e,n,o)})}),t.jsxs(fp,{isActualVsForecastOn:i,children:[t.jsx(Tt,{children:u.actual}),t.jsx(Tt,{children:u.forecast}),t.jsx(Tt,{children:t.jsx(kn,{title:h,titleTextStyle:tn.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:p=>{p!=="off"?s?.(p):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(Wi,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:l,bookCloseDate:c})},Sp=({firstMonthOfFY:e,timeframeTicks:n,timeframe:o,compareMode:i,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:c})=>{const s=me(),u=i==="compare_mode_amount"?`${O.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:O.getLocalizedStrings().compareMode.changePercent;return t.jsx(xp,{children:n.map((h,p)=>t.jsx(T.Fragment,{children:h.balanceType==="this_period_vs_last_period"||h.balanceType==="this_period_vs_last_period_percent"?t.jsx(wp,{children:t.jsx(kn,{title:u,titleTextStyle:tn.standardRegular,titleTextAlignment:"flex-end",titleColor:s.colors.primary,selectedMode:i,menuPosition:"right",onCompareModeChanged:g=>{g!=="off"&&(g==="compare_mode_amount"||g==="compare_mode_percent"?c?.(g):console.warn("Invalid compare mode option"))}})}):t.jsx(mp,{children:t.jsx(Wi,{firstMonthOfFY:e,timeframeTick:h,timeframe:o,dataAvailable:r,bookCloseDate:l},p)})},p))})};function Cp({type:e,backgroundColor:n,isSticky:o,height:i,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:c,timeframe:s,timeframeTicks:u,compareMode:h,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}){const x=W();return t.jsxs(hp,{height:i,bgColor:n,children:[be(e)===!0?t.jsx(pp,{isSticky:o,windowSize:x,bgColor:n,children:" . "}):null,t.jsx(gp,{children:l===!0?t.jsx(Sp,{firstMonthOfFY:c,timeframe:s,timeframeTicks:u,compareMode:h,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}):u.map((b,y)=>t.jsx(kp,{firstMonthOfFY:c,timeframeTick:b,timeframe:s,isActualVsForecastOn:r,compareMode:h,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f},y))})]})}const jt=(e,n,o,i,r,l,c,s,u,h,p)=>{if(o.element.kind!="ac_report"||o.element.data==null)return null;const g=o.element.data,f=Ye(o.config.reportId)===!0||So(o.config.reportId)===!0?ni("no_filter",o.config.filterAccountsWithNilBalances):mt(o.element.sectionType,"no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances),x=ae(f.acBalanceSelector(g),o.config.displayOrder,o.element.numOfBalances);return t.jsx(_g,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:x.balances,isScrolling:c,isLeaf:s,isLastNode:u,account:g,onAccountBalanceClick:p==null?void 0:(b,y,_)=>{p?.(b,y,_)}})},Qe=(e,n,o,i,r,l,c,s,u,h,p,g)=>{if(o.element.kind!="ac_subaccount"||o.element.data==null)return null;const f=o.element.data,x=_n("no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances),b=vi(x.acBalanceSelector(f),o.config.displayOrder,o.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,_=o.config.reportId==="operating_expenses";return t.jsx(Xg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",classDepth:y,compareMode:p,accountBalances:b.balances,isScrolling:c,isLeaf:s,isOpen:u,isLastNode:h,account:f,metadata:o.element.metadata,onClick:g,noMarginForAccount:_,onAccountBalanceClick:g==null?void 0:(C,B,v)=>{g?.(C,B,v)}})},vt=(e,n,o,i,r,l,c,s,u,h,p,g)=>{if(o.element.kind!="ac_group_report"||o.element.data==null)return null;const f=o.element.data,x=mt(o.element.sectionType,"no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances),b=ae(x.acGroupBalanceSelector(f),o.config.displayOrder,o.element.numOfBalances);return t.jsx(rg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,leftChevron:s?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:s,isLeaf:u,isLastNode:h,onClick:y=>{g?.(y)}})},vn=(e,n,o,i,r,l,c,s,u,h,p,g)=>{if(o.element.kind!="ac_group_subaccount"||o.element.data==null)return null;const f=o.element.data,x=_n("no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances),b=ae(x.acGroupBalanceSelector(f),o.config.displayOrder,o.element.numOfBalances);return t.jsx(fg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,leftChevron:s?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:s,isLeaf:u,isLastNode:h,onClick:y=>{g?.(y)}})},$n=(e,n,o,i,r,l,c,s,u,h,p,g)=>{if(o.element.kind!="section"||o.element.data==null)return null;const f=qt(o.element.title),x=o.element.data,b=ae(x,o.config.displayOrder,o.element.numOfBalances);return t.jsx(jn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:f,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:s,isLeaf:u,isLastNode:h,onClick:y=>{g?.(y)}})},$t=(e,n,o,i,r,l,c,s,u,h,p,g)=>{if(o.element.kind!="section_with_ac_only"||o.element.data==null)return null;const f=qt(o.element.title),x=o.element.data,b=ae(x,o.config.displayOrder,o.element.numOfBalances);return t.jsx(jn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:f,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:s,isLeaf:u,isLastNode:h,onClick:y=>{g?.(y)}})},Ln=(e,n,o,i,r,l,c,s,u,h,p,g)=>{if(o.element.kind!="calculated_section"||o.element.data==null)return null;const f=qt(o.element.title),x=o.element.data,b=ae(x,o.config.displayOrder,o.element.numOfBalances);return t.jsx(jn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:f,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:s,isLeaf:u,isLastNode:h,onClick:y=>{g?.(y)}})},Ze=(e,n,o,i,r,l,c,s,u)=>{if(n.element.kind!="ac_subentity_total")return null;const h=n.element.data,p=_n("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),g=h.account.classesViewParentId?.parentClassId!=null?h.account.classesViewParentId?.parentClassId.length-1:void 0,f=vi(p.acBalanceSelector(h),n.config.displayOrder,n.element.numOfBalances),x=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(dp,{type:e,backgroundColor:i,isSticky:r,height:o,accountName:h.account.accountName,account:h,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:f.balances,isScrolling:l,noMarginForAccount:x,isLeaf:c,isLastNode:s,metadata:n.element.metadata,classDepth:g})},Je=(e,n,o,i,r,l,c,s)=>{if(o.element.kind!=="timeframe_headers"&&o.element.kind!=="timeframe_headers_with_forecast")return null;const u=qe(o.element.data,o.config.displayOrder),h=u.length>0?u[0].balanceTimeFrame:"month",p=u.map(g=>He(g));return t.jsx(Cp,{treeNodeId:e,backgroundColor:r,isSticky:l,type:n,height:i,isActualVsForecastOn:o.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:o.config.mode==="this_period_vs_period_before"&&p.length>1,firstMonthOfFY:o.config.firstMonthOfFY,timeframe:h,timeframeTicks:p,compareMode:c,dataAvailable:o.config.dataAvailable,bookCloseDate:o.config.bookCloseDate,onCompareModeChanged:s})},Mi=(e,n,o,i,r,l,c,s,u,h,p,g,f)=>{if(o.element.kind!="class"||o.element.data==null)return null;const x=o.element.data,b=ae(x.childrenBalancesTotal,o.config.displayOrder,o.element.numOfBalances),y=p>1;return t.jsx(Tg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,className:o.element.title,classCode:o.element.data.class.accountingClassNumber,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",depth:x.id.length-1,compareMode:g,sectionBalances:b.balances,isScrolling:c,isOpen:s,isLeaf:u,hasChildren:x.children.length>0,isLastNode:h,isSubClass:y,showClassAccountNumber:o.config.showClassAccountNumber,onClick:_=>{f?.(_)},metadata:o.element.metadata})},_p=(e,n,o)=>e.element.kind!=="loading_in_progress"?null:t.jsx(oi,{height:n,backgroundColor:o,title:e.element.title,numOfBalances:e.element.numOfBalances}),jp=(e,n,o)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(ri,{height:n,backgroundColor:o,numOfBalances:e.element.numOfBalances}),lo=e=>{const{height:n,data:{reportElementData:o,id:i,treeKind:r,isLeaf:l,isLastNode:c,nestingLevel:s,isFirstNode:u},isOpen:h,style:p,setOpen:g,isScrolling:f}=e,x=(_,C,B)=>{const v=l?h:!h;!l&&B==null&&(g(!h),e.onNodeCollapseToggled?.(_,!h)),e.onNodeClick?.(_,v,C,B)},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(Ni,{id:i,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:o,height:n,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:c,isFirstNode:u,isOpen:h,nestingLevel:s,nodeClickHandler:e.onNodeClick!=null||!l?x:void 0,compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},i)})},Ni=e=>e.treeKind==="name_only"?t.jsx(Ip,{...e}):ln(e.reportElementData.config.reportId)?t.jsx(Wp,{...e}):cn(e.reportElementData.config.reportId)===!0?t.jsx(Op,{...e}):So(e.reportElementData.config.reportId)===!0?t.jsx(vp,{...e}):rn(e.reportElementData.config.reportId)===!0?t.jsx($p,{...e}):Ye(e.reportElementData.config.reportId)===!0?t.jsx(Lp,{...e}):an(e.reportElementData.config.reportId)===!0?t.jsx(Ap,{...e}):Sr(e.reportElementData.config.reportId)===!0?t.jsx(Bp,{...e}):sn(e.reportElementData.config.reportId)===!0?t.jsx(Mp,{...e}):dn(e.reportElementData.config.reportId)===!0?t.jsx(Np,{...e}):null,vp=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:s,isLastNode:u,isOpen:h,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(o.element.kind){case"ac_report":return jt(e,n,o,i,r,l,c,s,u,g,f);case"ac_group_report":return vt(e,n,o,i,r,l,c,h,s,u,g,f);case"section":return $n(e,n,o,i,r,l,c,h,s,u,g,f);case"section_with_ac_only":return $t(e,n,o,i,r,l,c,h,s,u,g,f);case"calculated_section":case"calculated_section_type1":return Ln(e,n,o,i,r,l,c,h,s,u,g,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return Je(e,n,o,i,r,l,g,x);case"class":return Mi(e,n,o,i,r,l,c,h,s,u,p,g,f);case"ac_subaccount":return Qe(e,n,o,i,r,l,c,s,h,u,g,f);case"ac_subentity_total":return Ze(n,o,i,r,l,c,s,u,g);case"headers_loading_in_progress":return jp(o,i,r);case"loading_in_progress":return _p(o,i,r);default:return null}},$p=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:s,isLastNode:u,isOpen:h,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(o.element.kind){case"ac_report":return jt(e,n,o,i,r,l,c,s,u,p,g);case"ac_group_report":return vt(e,n,o,i,r,l,c,h,s,u,p,g);case"ac_subaccount":return Qe(e,n,o,i,r,l,c,s,h,u,p,g);case"ac_group_subaccount":return vn(e,n,o,i,r,l,c,h,s,u,p,g);case"section":return $n(e,n,o,i,r,l,c,h,s,u,p,g);case"section_with_ac_only":return $t(e,n,o,i,r,l,c,h,s,u,p,g);case"calculated_section":case"calculated_section_type1":return Ln(e,n,o,i,r,l,c,h,s,u,p,g);case"title_string_only":return null;case"ac_subentity_total":return Ze(n,o,i,r,l,c,s,u,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Je(e,n,o,i,r,l,p,f);default:return null}},Lp=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:s,isLastNode:u,isOpen:h,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(o.element.kind){case"ac_report":return jt(e,n,o,i,r,l,c,s,u,g,f);case"ac_group_report":return vt(e,n,o,i,r,l,c,h,s,u,g,f);case"section":return ci(e,n,o,i,r,l,c,h,s,u,g,f);case"section_with_ac_only":return $t(e,n,o,i,r,l,c,h,s,u,g,f);case"calculated_section":case"calculated_section_type1":return si(e,n,o,i,r,l,c,h,s,u,g,f);case"title_string_only":return fn(e,n,o,i,r,l,c,h,s,u,g,f);case"ac_subentity_total":return Ze(n,o,i,r,l,c,s,u,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Je(e,n,o,i,r,l,g,x);case"class":return Mi(e,n,o,i,r,l,c,h,s,u,p,g,f);case"ac_subaccount":return Qe(e,n,o,i,r,l,c,s,h,u,g,f);case"total":return di(e,n,o,i,r,l,g,s);case"headers_loading_in_progress":return ks(o,i,r);case"loading_in_progress":return bs(o,i,r);default:return null}},Ap=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:s,isLastNode:u,isOpen:h,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(o.element.kind){case"ac_report":return ms(e,n,o,i,r,l,c,s,u,p,g);case"ac_group_report":return ws(e,n,o,i,r,l,c,h,s,u,p,g);case"ac_subaccount":return Qe(e,n,o,i,r,l,c,s,h,u,p,g);case"ac_group_subaccount":return vn(e,n,o,i,r,l,c,h,s,u,p,g);case"section":return ci(e,n,o,i,r,l,c,h,s,u,p,g);case"section_with_ac_only":return ys(e,n,o,i,r,l,c,h,s,u,p,g);case"calculated_section":case"calculated_section_type1":return si(e,n,o,i,r,l,c,h,s,u,p,g);case"title_string_only":return fn(e,n,o,i,r,l,c,h,s,u,p,g);case"total":return di(e,n,o,i,r,l,p,s);case"ac_subentity_total":return Ze(n,o,i,r,l,c,s,u,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Je(e,n,o,i,r,l,p,f);default:return null}},Bp=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:s,isLastNode:u,isOpen:h,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(o.element.kind){case"ac_report":return jt(e,n,o,i,r,l,c,s,u,p,g);case"ac_group_report":return vt(e,n,o,i,r,l,c,h,s,u,p,g);case"section":return $n(e,n,o,i,r,l,c,h,s,u,p,g);case"section_with_ac_only":return $t(e,n,o,i,r,l,c,h,s,u,p,g);case"calculated_section":return Ln(e,n,o,i,r,l,c,h,s,u,p,g);case"calculated_section_type1":return lc(e,o,i,r,l,c,u);case"title_string_only":return fn(e,n,o,i,r,l,c,h,s,u,p,g);case"ac_subentity_total":return Ze(n,o,i,r,l,c,s,u,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Je(e,n,o,i,r,l,p,f);case"ac_subaccount":return Qe(e,n,o,i,r,l,c,s,h,u,p,g);case"ac_group_subaccount":return vn(e,n,o,i,r,l,c,h,s,u,p,g);default:return null}},Ip=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:s,isLastNode:u,isOpen:h,toggleCheckHandler:p})=>{switch(o.element.kind){case"checkbox_and_name_only":return Iu(e,n,o,i,r,l,c,h,s,u,p);default:return null}},Op=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLastNode:s,compareMode:u,onCompareModeChanged:h})=>{switch(o.element.kind){case"loading_in_progress":case"spacer_row":return Eh(o,i,r,l);case"timeframe_headers":return Dh(o,i,l,u,r,h);case"total":return Vh(e,n,o,i,l,c,r);case"vendor_row":return Rh(n,o,i,r,l,c,s);case"title_string_only":return Gh(o,i,r,l);default:return null}},Wp=({id:e,treeKind:n,reportElementData:o,height:i,isOpen:r,isSticky:l,isScrolling:c,isLastNode:s,backgroundColor:u,nodeClickHandler:h})=>{const{config:p}=o;switch(o.element.kind){case"spacer_row":return null;case"timeframe_headers":return bl(o,i,u,l,p.agingReportConfig?.sortKey,p.agingReportConfig?.sortOrder,p.agingReportConfig?.onSortOrderChanged);case"total":return Cl(n,o,i,u,l);case"aging_report_row":return kl(e,o,i,r,l,s,c,u,p.agingReportConfig?.onEntityNameClick,h);case"ac_subentity_total":return Sl(o,i,l,c,u);default:return null}},Mp=({id:e,reportElementData:n,height:o,backgroundColor:i,isSticky:r,isScrolling:l,isLeaf:c,isLastNode:s,isFirstNode:u,isOpen:h,onFluxBalanceClick:p,nodeClickHandler:g,hoveredParentIdProps:f})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return mu(e,n,i,r,l,c,s,f,p);case"flux_vendor_row":return wu(e,n,i,r,l,h,c,s,u,f,g);case"section":return yu(e,n,o,i,r,l,h,c,s,g);case"timeframe_headers":return bu(n,o,r);case"total":return ku(n,o);case"loading_in_progress":return Su(n);case"headers_loading_in_progress":return Cu(n);default:return null}},Np=({reportElementData:e,height:n,isSticky:o,isLastNode:i})=>{switch(e.element.kind){case"timeframe_headers":return ka(e,o);case"loading_in_progress":return ba();case"total":return Sa(e,n,o);case"section":return ya();case"title_string_only":return Ca(e,n);case"ac_group_report":return _a(e,n,i);default:return null}};function co(e,n,o,i){return{data:{defaultHeight:An(e.reportElementData.config.reportId,e.reportElementData.element.kind,e.isFirstNode),id:e.id,isLeaf:e.children.length===0,isFirstNode:e.isFirstNode??!1,isLastNode:e.isLastNode,isOpenByDefault:i??Tp(e.reportElementData.config.reportId,e.reportElementData.element.kind,o,e.reportElementData.config.reportFormat),nestingLevel:o,treeKind:n,reportElementData:e.reportElementData},treeKind:n,nestingLevel:o,node:e}}function An(e,n,o){return rn(e)===!0?ja(n):an(e)===!0||Ye(e)===!0?Oc(n):ln(e)?Pa(n):dn(e)?xt(n):cn(e)?Ou(n):sn(e)?hi(n,o):Vl(n)}function Tp(e,n,o,i){return rn(e)?va(n,i,o):an(e)||Ye(e)===!0?Wc(n,i):ln(e)?Fa():cn(e)?Wu():sn(e)?Ws(n):dn(e)?wr():Rl(n,i)}const Pp=a.div`
|
|
2879
|
+
top: 0;
|
|
2880
|
+
left: 0;
|
|
2881
|
+
position: sticky !important;
|
|
2882
|
+
position: -webkit-sticky !important;
|
|
2883
|
+
min-height: ${e=>e.heightValue}px;
|
|
2884
|
+
max-height: ${e=>e.heightValue}px;
|
|
2885
|
+
width: fit-content;
|
|
2886
|
+
min-width: 100%;
|
|
2887
|
+
z-index: 2;
|
|
2888
|
+
display: flex;
|
|
2889
|
+
flex-direction: column;
|
|
2890
|
+
align-items: center;
|
|
2891
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2892
|
+
box-sizing: border-box;
|
|
2893
|
+
`;function Fp({height:e,backgroundColor:n,headers:o,treeKind:i,isSticky:r,compareMode:l,onCompareModeChanged:c}){return o.length===0?null:(o.forEach(s=>{if(s.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(Pp,{heightValue:e,bgColor:n,"data-testid":m("sticky-header-report-tree"),children:o.map((s,u)=>t.jsx(Ni,{id:s.id,treeKind:i,reportElementData:s.reportElementData,height:An(s.reportElementData.config.reportId,s.reportElementData.element.kind,s.isFirstNode),backgroundColor:n,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:o.length-1===u,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:c},s.id))}))}const zp=(e,n,o)=>function*(){for(let i=0;i<n.length;++i)yield co(n[i],e,0,o[n[i].id]??void 0);for(;;){const i=yield;for(let r=0;r<i.node.children.length;++r)yield co(i.node.children[r],e,i.nestingLevel+1,o[i.node.children[r].id]??void 0)}},Ti=T.createContext(void 0);function Dp({height:e,kind:n,rootNodes:o,compareMode:i,isSticky:r,backgroundColor:l,treeNodePadding:c,treeClassName:s,treeStyle:u,treeRef:h,treeOuterElementRef:p,infiniteLoadingProps:g,variableNodeHeightTree:f,onNodeClick:x,onCompareModeChanged:b,scrollPosition:y,onScroll:_,nodeOpenStatus:C,onNodeCollapseToggled:B,onTreeInnerElementHeightChanged:v,onToggleCheck:L,hoveredParentIdProps:z}){const V=T.useRef(null),U=T.useRef(null),R=Wn(f?.prevFetchState),Z=Wn(f?.prevRefreshFetchState),[q,ue]=T.useState(0),ee=p??U,D=h??V,J=W(),[ce,fe]=T.useState(void 0),[Ae,Xe]=T.useState(!1),[Me,et]=T.useState(C),Lt=(I,X)=>{et(Object.assign({},Me,{[I]:X})),B?.(I,X)},Be=I=>{if(o.contentNodes.length>0)if(Object.keys(I).length>0){const X={};Object.keys(I).forEach(ke=>{X[ke]={open:I[ke]}}),D?.current?.recomputeTree(X)}else{const X=o.contentNodes[0].id;D?.current?.recomputeTree({[X]:{open:!0}})}};T.useLayoutEffect(()=>{if((!Mn(y,ce)||ce==null)&&ee.current!=null){const I=y?.scrollLeft==null?J==="small"?0:ee.current.scrollWidth:y?.scrollLeft;if(y!=null){const X={scrollTop:y.scrollTop,scrollLeft:I};fe(X),I!==y?.scrollLeft&&_?.(X)}ee.current.scroll({left:I,top:y?.scrollTop})}},[y]),T.useEffect(()=>{Mn(C,Me)||(et(C),Be(C))},[C]),T.useEffect(()=>{const I=ee.current,X=Xi(()=>{if(I!=null&&(ce==null||I.scrollLeft!==ce.scrollLeft||I.scrollTop!==ce.scrollTop)){const ke={scrollLeft:I.scrollLeft,scrollTop:I.scrollTop};fe(ke),_?.(ke)}},50);return I?.addEventListener("scroll",X),()=>{I?.removeEventListener("scroll",X)}},[ee,ce,_]),T.useEffect(()=>{if(o.contentNodes.length>0){Be(Me);const I=o.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";I!==Ae&&Xe(I)}},[Ae,Xe,o,D,ee]),T.useEffect(()=>{(f!=null&&R==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&Z==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),ue(q+1))},[q,f?.fetchState,f?.isSortApplied,R,Z,f]);const Ne=T.useRef(),[At,Bt]=T.useState(void 0),N=()=>{const I=Ne.current;I!=null&&I.clientHeight>0&&I.clientHeight!=At&&(Bt(I.clientHeight),v?.(I.clientHeight))},F=T.useCallback(zp(n,o.contentNodes,Me),[n,o]),se={rootNodes:o,treeNodePadding:c,backgroundColor:l,kind:n,isSticky:r,compareMode:i,onCompareModeChanged:b};return t.jsx(Ti.Provider,{value:se,"data-testid":m("report-tree"),children:g==null?t.jsx(Nn,{className:s,style:u,ref:D,innerRef:Ne,outerRef:ee,innerElementType:Ut,treeWalker:F,onItemsRendered:N,height:e,width:"100%",children:I=>t.jsx(lo,{...I,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:Lt,compareMode:i,onCompareModeChanged:b,onToggleCheck:L})}):t.jsx(er,{isItemLoaded:g.isItemLoaded,itemCount:g.itemCount+1,loadMoreItems:g.loadMoreItems,children:({onItemsRendered:I,ref:X})=>t.jsx(Nn,{className:s,style:u,ref:X,innerRef:Ne,outerRef:ee,innerElementType:Ut,treeWalker:F,onItemsRendered:I,height:e,width:"100%",children:ke=>t.jsx(lo,{...ke,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:Lt,compareMode:i,onCompareModeChanged:b,onToggleCheck:L,hoveredParentIdProps:z})},q)})})}const Ut=T.forwardRef((e,n)=>{const{children:o,style:i,...r}=e,{rootNodes:l,treeNodePadding:c,backgroundColor:s,kind:u,isSticky:h,compareMode:p,onCompareModeChanged:g}=T.useContext(Ti),f=l.headerNodes.reduce((_,C)=>_+An(C.reportElementData.config.reportId,C.reportElementData.element.kind,C.isFirstNode),0),x=c?.left,b=c?.right,y=d.sp8;return t.jsxs("div",{ref:n,style:{...i,width:"auto",minWidth:"100%",paddingLeft:x,paddingRight:b,marginBottom:y},...r,children:[t.jsx(Fp,{height:f,backgroundColor:s,headers:l.headerNodes,treeKind:u,isSticky:h.isStickyHeader,compareMode:p,onCompareModeChanged:g}),o]})});Ut.displayName="stickyInnerElementType";const Vp=a.div`
|
|
2894
|
+
display: flex;
|
|
2895
|
+
flex: 1 0 auto;
|
|
2896
|
+
width: ${e=>e.width}px;
|
|
2897
|
+
height: ${e=>e.height}px;
|
|
2898
|
+
padding-left: ${e=>e.paddingLeft}px;
|
|
2899
|
+
background-color: ${e=>e.bgColor?.hex()};
|
|
2900
|
+
|
|
2901
|
+
& .content-scroll {
|
|
2902
|
+
overflow: auto;
|
|
2903
|
+
scrollbar-width: thin;
|
|
2904
|
+
scrollbar-color: transparent transparent;
|
|
2905
|
+
&::-webkit-scrollbar {
|
|
2906
|
+
width: ${d.sp2};
|
|
2907
|
+
height: ${d.sp2};
|
|
2908
|
+
background-color: transparent;
|
|
2909
|
+
}
|
|
2910
|
+
&::-webkit-scrollbar-thumb {
|
|
2911
|
+
background-color: transparent;
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
&:hover {
|
|
2915
|
+
scrollbar-color: ${e=>e.theme.colors.grey1} transparent;
|
|
2916
|
+
&::-webkit-scrollbar {
|
|
2917
|
+
width: ${d.sp2};
|
|
2918
|
+
height: ${d.sp2};
|
|
2919
|
+
background-color: transparent;
|
|
2920
|
+
}
|
|
2921
|
+
&::-webkit-scrollbar-track {
|
|
2922
|
+
box-shadow: inset 0 0 2px ${re.scrollbarBoxShadow};
|
|
2923
|
+
-webkit-box-shadow: inset 0 0 2px ${re.scrollbarBoxShadow};
|
|
2924
|
+
background-color: transparent;
|
|
2925
|
+
}
|
|
2926
|
+
&::-webkit-scrollbar-thumb {
|
|
2927
|
+
background-color: ${e=>e.theme.colors.grey1};
|
|
2928
|
+
border-radius: 2px;
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2932
|
+
`;function Yp({rootNodes:e,type:n,compareMode:o,isSticky:i,backgroundColor:r,treeNodePadding:l,onAccountClick:c,infiniteLoadingProps:s,variableNodeHeightTree:u,hoveredParentIdProps:h,onCompareModeChanged:p,scrollPosition:g,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onReportTableHeightChanged:y,onToggleCheck:_}){return t.jsx(Zi,{children:({height:C,width:B})=>t.jsx(Vp,{"data-testid":m("report-tree-container"),height:C,width:B,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(Dp,{"data-testid":m("report-tree"),treeClassName:"content-scroll",height:C,kind:n,rootNodes:e,compareMode:o,isSticky:i,backgroundColor:r,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:s,variableNodeHeightTree:u,hoveredParentIdProps:h,onNodeClick:c==null?void 0:(v,L,z,V)=>{z!=null&&V!=null&&c(z,V)},onCompareModeChanged:p,scrollPosition:g,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onTreeInnerElementHeightChanged:y,onToggleCheck:_})})})}export{ae as D,Yp as I,ne as J,Kp as R,Ue as V,Hp as a,Ee as b,ko as g,rn as i,mt as l,Ss as n,yn as r,_n as x};
|