@zeniai/web-cockpit-ui 1.14.75-dev → 1.14.76-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-CgSAnexf-B3A8op6h.js → ACHDetailsPage-Xx5xzGG6-TLkgYXDo.js} +1 -1
- package/dist/assets/{AIPerformancePage-C9EQ3p87-OJBktR4D.js → AIPerformancePage-CUXg59Hy-CQ1-rEhi.js} +24 -24
- package/dist/assets/{AccountInfoPage-C239tsDp-DRuutmdG.js → AccountInfoPage-BCsDFfVy-hrluJcll.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-CgDFcQqY-CqasllNx.js → AccountInfoPageContent-Dc3zDc0L-zxWLzozl.js} +4 -4
- package/dist/assets/{AccountLockedInfoModal-CQzFFcuJ-Do66phz_.js → AccountLockedInfoModal-C9esWbYw-DmLSIkZF.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-xtmSIQ0k-Cx_Pu75e.js → AccountReconDetailsDrawerPage-zLLBfV9S-BNb08J_3.js} +4 -4
- package/dist/assets/{AccountRow-BrRxbza5-pSnSZur-.js → AccountRow-CjMOMc-1-x3Qeaa-E.js} +6 -6
- package/dist/assets/{AccountsPromoCardStack-CqXbhSj4-Dxz2-66c.js → AccountsPromoCardStack-DkqmFDos-CykT6dqn.js} +17 -17
- package/dist/assets/{AddAddressForCardDrawer-fgjjFlrb-j1U1vMZd.js → AddAddressForCardDrawer-D8Towl2b-BnpRCEKK.js} +1 -1
- package/dist/assets/{AddToWalletPage-DfB7hWI1-IQOFdx9h.js → AddToWalletPage-DPlpIxsE-B4bdwm1E.js} +15 -15
- package/dist/assets/{AgingReportsPage-DHYj512r-CC4JWVYi.js → AgingReportsPage-Bkw7sNWp-BamyEZIc.js} +5 -5
- package/dist/assets/{AllUserItems-DeSMFizX-DNdHjuWX.js → AllUserItems-DMlj0bT0-gvuqGIhf.js} +4 -4
- package/dist/assets/{ApAgingDetailPage-DU0hQxT3-DZWyZWni.js → ApAgingDetailPage-BLz4srnJ-Cc1Xbcy9.js} +2 -2
- package/dist/assets/{AppBasePage-BR-YhSR_-CzGzdBlR.js → AppBasePage-D-TkEHTb-DROxn97N.js} +5 -5
- package/dist/assets/{AppDrawerContent-B80zy-Gz-B39ZSWi1.js → AppDrawerContent-B_OcDS2l-DzddisDQ.js} +2 -2
- package/dist/assets/{ApprovalRulesSettingsPage-By648tCr-CQAcViTv.js → ApprovalRulesSettingsPage-CFLA9ZNm-DAP_H-up.js} +3 -3
- package/dist/assets/{ArAgingChart-TzANw6Zm-ud3qmxZt.js → ArAgingChart-GDCZoeS6-ejUvAmZP.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-C2rcOePe-DceP7UdC.js → ArAgingDetailPage-BpbaAaQd-BiEAKqhS.js} +2 -2
- package/dist/assets/{AttachmentView-jMWZdYNa-B4G6-utv.js → AttachmentView-C5nZKhTq-vO_X412a.js} +4 -4
- package/dist/assets/{BankAccountSection-SGI34h8u-BmPo8uGy.js → BankAccountSection-IncAN4Fp-_HbGSxHo.js} +3 -3
- package/dist/assets/{BankAccountWarningSection-BYhi53r4-4douKQRZ.js → BankAccountWarningSection-B5zw3yYg-D0pN9DqK.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-ChDwYCek-CV2qmOPT.js → BankConnectionsSettingsPage-C_B2Ap4v-CWKHwroD.js} +28 -28
- package/dist/assets/{BillDetailPage-CDcMpkQh-WKx-zUwY.js → BillDetailPage-ZwjUMPQZ-BsZDr1gg.js} +10 -10
- package/dist/assets/{BillPayApprovalRuleDetailPage-CEPY5Pk4-BbBRmkGK.js → BillPayApprovalRuleDetailPage-C253InxT-RvLtQlW3.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CL2A3R9R-lHKvJ4Ac.js → BillPayApprovalRulesPage-CA3FfPrr-qSqftFhb.js} +1 -1
- package/dist/assets/{BillPayPromoPage-B9Tz3jBR-C8UtwtS8.js → BillPayPromoPage-BKleb4US-pzvsBPOp.js} +4 -4
- package/dist/assets/{BillPaySetUpPage-Dt_bfrGH-BFJQWbSz.js → BillPaySetUpPage-DwK0lrbO-rQcYv7BW.js} +1 -1
- package/dist/assets/{BillingSettingsPage-DS50kMjn-x8sOi9VN.js → BillingSettingsPage-zBDcEj5D-BDTLKTvE.js} +5 -5
- package/dist/assets/{BillsBulkReviewDrawerPage-Btt7v1Mg-BawjVs5H.js → BillsBulkReviewDrawerPage-BjOYcTwa-Dv0CJOPA.js} +1 -1
- package/dist/assets/{BoxItem-BFUJgt2x-BC0-eR6w.js → BoxItem-CoguTodA-DItO3xcr.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CF3ZLtzs-m9ujMa8b.js → BusinessVerificationPage-DGQ9x2pf-35QVlpBA.js} +6 -6
- package/dist/assets/{CardNumberSubText-B1MkRWES-C67yiD_w.js → CardNumberSubText-BudPffUB-BTvRfksc.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CPSsS7-h-D1KsDfk8.js → CashbackDetailPage-2KpaTEWi-CUzGkPf8.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-BDqTbXzY-BMqKHARM.js → ChargeCardDetailPage-DU-yz6wh-CBCtuxOp.js} +1 -1
- package/dist/assets/{ChargeCardListPage-yj0mhqgF-BwQcpXMc.js → ChargeCardListPage-C4ITCZwO-C8GmtyMf.js} +14 -14
- package/dist/assets/{ChargeCardListTable-DM6dYuPz-DQIQm3j5.js → ChargeCardListTable-DEqAOIyN-nTkk33YA.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-DSoQsDJK-k397bkJL.js → ChargeCardPromoPage-CvPAVoti-Dig5Emby.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-DhEITB5H-DwrNYcBw.js → ChargeCardSetupPage-CLhkL1Eh-B9fDm_Ae.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-tCXt7AVZ-CGXmLyEQ.js → ChargeCardStatementsPage-6TvYstIS-DKHBxCkb.js} +5 -5
- package/dist/assets/{CheckDepositDrawerPage-6PfNZ8GG-CpP6SDgV.js → CheckDepositDrawerPage-D64qEFAi-DmFPX3Hy.js} +5 -5
- package/dist/assets/{CollapsableReportTable-DERfLf9A-B02u2C6v.js → CollapsableReportTable-o0pGO_sw-CoQujIPL.js} +48 -48
- package/dist/assets/{CompanyOfficerDetailsSection-CmMDQgui-DjcUawXU.js → CompanyOfficerDetailsSection-D3PSro9F-CN8Reo83.js} +12 -12
- package/dist/assets/{CompanyPassportCard-ki3cq_A3-BIFk_EYX.js → CompanyPassportCard-CUcLJOne-CwK5fmgg.js} +2 -2
- package/dist/assets/{CompanyPassportPage-C9UW7mV8-CjYiaVUt.js → CompanyPassportPage-C1v4xE8B-zCkhH9yQ.js} +10 -10
- package/dist/assets/{CompleteProfile-CcjiEAtN-G6pC79hX.js → CompleteProfile-DP8FFDH_-B7Va_v1e.js} +1 -1
- package/dist/assets/{ConfettiBurst-Dq3DwwfS-Bk63elQ-.js → ConfettiBurst-KNUWsLgM-C3W-6qSV.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CsYVqUf8-CQGCDeX8.js → CreateOrEditVendorPage-hEPeylx6-VsqoPSRS.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-C1QUtunc-B_csVrG-.js → CreditCardPaymentDrawerPage-DOgKpleO-DLW-KVW8.js} +8 -8
- package/dist/assets/{CurrencySelectField-PjVnHOPO-De5v3EBh.js → CurrencySelectField-C8L9A7zC-DLDLvWwm.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-BEz1pkPV-m1nyzrH-.js → CustomerOnboardingActivationPage-D_AcFXeU-p0ieIiP_.js} +8 -8
- package/dist/assets/CustomerOnboardingContainerPage-DAxVaKqp-DMOGZ592.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-3S6lsaCB-BUgUvYUX.js → CustomerOnboardingDetailPageSkeleton-DPSQT5UG-yxM-FX1s.js} +12 -12
- package/dist/assets/{CustomerOnboardingNoStepsPage-C7EvOlnr-Bb_AP_JK.js → CustomerOnboardingNoStepsPage-Bqi6QK8D-CnhmXiFi.js} +4 -4
- package/dist/assets/{CustomerOnboardingPage-Clo_UlCC-DsyGD0B2.js → CustomerOnboardingPage-eY5fJENY-CW0ZIKes.js} +4 -4
- package/dist/assets/{CustomerOnboardingProductSuitePage-BEy5gk3x-B66-9NVf.js → CustomerOnboardingProductSuitePage-BEWQQxa2-CUaimIpy.js} +4 -4
- package/dist/assets/{Dashboard-B1tMJ_lT-Dt3eYG-5.js → Dashboard-DyK1Y6xH-BhOeJdbK.js} +1 -1
- package/dist/assets/{DashboardReportPage-CoFYSDIH-DHztoZKU.js → DashboardReportPage-9mEEgfb9-8pEwgBSt.js} +11 -11
- package/dist/assets/{DashboardSidebarBackgroundAnimation-4ckOdfXR-Csek43Wl.js → DashboardSidebarBackgroundAnimation-BKaRUOA4-CrFQyftY.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-tQvZegVN-2h85R67z.js → DepositAccTransactionItem-CwSsISRg-BhipE2js.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-CwXktzEW-DdOhhhJy.js → DepositAccTransactionListPage-d_A-lWfh-BHvjyvXp.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-W6hOjjFW-BWSats5d.js → DomesticWireDetailsPage-C-qIXO7t-BK1ogPTU.js} +1 -1
- package/dist/assets/{DownloadOverlay-BSUE9cHx-CQqT-O4K.js → DownloadOverlay-_HVjRZb_-ovRMQuBS.js} +10 -10
- package/dist/assets/{DrawerPage-CgdtPYXN-BbWBMozy.js → DrawerPage-DgRO2OFE-DsZBSqxn.js} +3 -3
- package/dist/assets/EditPeoplePage-6lvgaJQi-Df2Mb0kP.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-Q2e7iDtu-BBcP7tRA.js → EditReimbursementDetailPage-B85brpdt-BYguIPkd.js} +19 -19
- package/dist/assets/{EntityDetailPage-XsEIg05w-Cod5Z1f6.js → EntityDetailPage-Ds03l_Nm-BYieYjCl.js} +3 -3
- package/dist/assets/{EntitySummarySection-CsXlmDFx-l9ddhbEU.js → EntitySummarySection-CbloJrPd-DGVEU9qa.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-CVe0vhrD-B-avItru.js → ExpenseAutomationOverviewPage-CYNO1bW--pa8gzAaD.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-D6r_A_CD-CiCcvo0I.js → ExpenseAutomationPage-CoYAnlKO-CIOZ9cQ5.js} +1 -1
- package/dist/assets/{ExpressPayPage-C6b1fiyD-DNDZJNDu.js → ExpressPayPage-VpqTGVa6-iCCnAcb9.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-DOebdPqb-TzEy5dMk.js → FeaturePreviewPage-DzgPdfBh-BlncrRkT.js} +1 -1
- package/dist/assets/{FollowStepsSection-jmyNE2Fl-CvBGwqtX.js → FollowStepsSection-NM8GXTRZ--kMzASD7.js} +6 -6
- package/dist/assets/{GlobalReviewListPage-Cx1Km5fu-Bailuk1q.js → GlobalReviewListPage-xUe6yXIO-DDRodqQY.js} +6 -6
- package/dist/assets/{InformationCardStack-C5bKx9vg-k3hJn-Id.js → InformationCardStack-BYRwUh-e-Bm84GPsq.js} +2 -2
- package/dist/assets/{InsightsCardStack-EFoc_EWA-D2FaxDtB.js → InsightsCardStack-DfJXM3Fn-B0luA3Cz.js} +7 -7
- package/dist/assets/{InsightsSection-B0Rg5beY-u8CdyXOx.js → InsightsSection-4aveyVKo-DnKJf3sJ.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-BQmjM8Np-1cGkOCA2.js → IntegrationsSettingsPage-BZMs-taD-ChagB0kp.js} +4 -4
- package/dist/assets/{InternationalWireSwiftDetailsPage-ChSGHFzT-CvsM4E7Y.js → InternationalWireSwiftDetailsPage-D3mlT5XG-CMQP_Nn8.js} +4 -4
- package/dist/assets/{InternationalWireVerificationPage-D41gWYDb-CEwQheQ1.js → InternationalWireVerificationPage-MUHsO8eu-CkpdoULT.js} +1 -1
- package/dist/assets/{InviteFormPage-CltJ2XYv-DJJh50vB.js → InviteFormPage-aZR9lFWK-BCwWSqH4.js} +1 -1
- package/dist/assets/{InvitePageListView-D5OdkeEV-CglVOI_I.js → InvitePageListView-CHyiR2RC-Sk8zihrC.js} +12 -12
- package/dist/assets/{InvitePeoplePage-CyXnulj0-B7lM98ff.js → InvitePeoplePage-BRl496Mv-FaAOJzgH.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-B2ePrdY8-CUZ5YkU9.js → InvoiceUploadSection-BqpspjSO-DbodpMov.js} +6 -6
- package/dist/assets/{IssueChargeCardPage-BCfMS2Zu-DdG6-d9q.js → IssueChargeCardPage-D39Bd6J9-Bz3hak_j.js} +21 -21
- package/dist/assets/{LabeledAddressValue-D7udvbin-kVKW8gGz.js → LabeledAddressValue-w3powIaN-xKKxpzsE.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-jlDhqmgU-CM1ZWEJK.js → LabeledAddressValueField-BPOKk4mI-BFmVYPcn.js} +2 -2
- package/dist/assets/{LabeledControlledCheckBoxField-DNmJFVpZ-DjMQjBxM.js → LabeledControlledCheckBoxField-afEn8tHL-DxqXt4PA.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-B6Vit6ZA-Bdnw6feS.js → LabeledCreatableSingleSelectField-DXA_bSyS-BJinmWca.js} +3 -3
- package/dist/assets/{LabeledDocumentField-CbTN9aAs-CEmYFygD.js → LabeledDocumentField-Z9OHDFr6-HgLdszDI.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CD6Bs8EU-Bok-Bw1g.js → LabeledDropDownFormattedTextField-0Bk8vscY-CDQY3SED.js} +3 -3
- package/dist/assets/{LabeledText-aSB1WzCl-Cj9Ocs2U.js → LabeledText-CgI7e_L--BwhQOiOZ.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Y99F7D2f-Dwh42b2N.js → LabeledUserSingleSelectWithSubtitlesField-B0y_IMnV-GTOhW6B-.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-BJePp4f_-Dc_g-F8s.js → LabeledZeniRolesDropDownField-CEwtGHuw-Bl11WCzt.js} +14 -14
- package/dist/assets/{LinkJETransactionPage-CNbLCYzA-Bg5upj_n.js → LinkJETransactionPage-BqF3QSeN-CXTqkit6.js} +2 -2
- package/dist/assets/{LockCardPage-DMB-6EyM-lbTpu5O_.js → LockCardPage-Ui2RTfpb-B7R1Xixi.js} +10 -10
- package/dist/assets/{LowBalancePopup-D8MLLJa7-CBiPecxo.js → LowBalancePopup-DzqqMGEK-DvUWGZSI.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-BdS3aAWw-BrXiv9-t.js → MagicLinkACHDetailsPage-Kz-uZGml-CF0KJ9I8.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CG0a1drB-Dmn6AGH4.js → MagicLinkDomesticWireDetailsPage-DNR1hQud-DTuqaECC.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-C9-ZvcKN-C21_WG8V.js → MagicLinkInternationalWireDetailsPage-B-hsxI7i-DU8bPbJw.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BBQLFLJ9-CPkaiDv7.js → MagicLinkSuccessPage-CTyWzEAl-CcSFqgbx.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-BVR_lDfw-BbQ3PhCM.js → MagicLinkTitleSection-egx3li4v-CK9jYn1b.js} +1 -1
- package/dist/assets/{MailingDetailsSection-DZi-O94--DF-Hpww_.js → MailingDetailsSection-D28xdU_N-D7dNEE4R.js} +1 -1
- package/dist/assets/{Menu-DGwHJlS--Djq7PCKE.js → Menu-BsPZbkcv-dMEFFJAw.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-BYTxFTOW-gDKKbyJg.js → MyBankConnectionsSettingsPage-B7pw1loZ-BZemPN_o.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CUvKbnux-CN2CiFSh.js → MyPendingActivationChargeCardListPage-CaDgVLY9-D9RWTHXk.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BHnImAny-TmsmZErc.js → MyProfileSettingsPage-DGPjjcRE-BkjL1klq.js} +11 -11
- package/dist/assets/{NavBarWithPicker-Q739fT8--CrZ3WYmY.js → NavBarWithPicker-CK69EXMo-BopYsgXw.js} +3 -3
- package/dist/assets/{NavigationArrow-DQfX85VC-Dvm4TJ9a.js → NavigationArrow-B5JMjj8b-Yf4kFeB6.js} +1 -1
- package/dist/assets/{NavigationDots-CyCjbpW--DGfBQuMJ.js → NavigationDots-yYEq4mai-Bct7I6H1.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-CzT7wrsy-CItQq0bZ.js → NewGlobalMerchantPage-DXdipj9r-Cg-jSrpq.js} +4 -4
- package/dist/assets/{NoDataChart-BnAshBnb-UHLHtstu.js → NoDataChart-CetZJAul-Dliv4FgS.js} +1 -1
- package/dist/assets/{NoDataTable-BhokhW6d-QEuWLEd7.js → NoDataTable-CbxTnnUj-RBS2BO0t.js} +1 -1
- package/dist/assets/{NotFoundPage-uFZMkf3D-DLBn6ZTy.js → NotFoundPage-JK9WWLQL-t0Ol92QM.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BE1_MgJM-BWk4ph6m.js → NotificationSettingsPage-BYFMb4y6-BucvDhx8.js} +7 -7
- package/dist/assets/{NotificationsListConfig-CUWNEUCL-XvkMOcjh.js → NotificationsListConfig-EKmLeUqF-DPKxh2va.js} +1 -1
- package/dist/assets/{NotificationsPage-BMZvKV7t-v_KJjY-j.js → NotificationsPage-Ca9rvFJG-3IKE1yMl.js} +23 -23
- package/dist/assets/{OpExByVendorPage-BuHAApyT-ZSJOclS-.js → OpExByVendorPage-S3IdisaI-C-NcDs3u.js} +20 -20
- package/dist/assets/{OverlayContainerPage-BKHs_4eI-Cod2hmti.js → OverlayContainerPage-BKHs_4eI-B8gf_Owe.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-B0IiVx6D-BofpOT29.js → PandLWithForecastPage-Bf-D_XNg-CrzOb2hU.js} +7 -7
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BkfPpFae-CQO2zwUL.js → PaymentAccountSetupBillingAddressSection-CMVwDWuf-jHkUqKP1.js} +13 -13
- package/dist/assets/{PeoplePage-Cj9mjcMw-9OYaHyag.js → PeoplePage-BKkwc_YR-BoZfR8X8.js} +1 -1
- package/dist/assets/{ProductsCarousel-_jYEgpxl-3H43gICJ.js → ProductsCarousel-DsI5t_Kc-Cpn89x6_.js} +1 -1
- package/dist/assets/{PromoBaseCards-8tkwl6GI-B2drNSiA.js → PromoBaseCards-CnQcR3Wn-B3iRHG7z.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CJz2SlfE-Cw-cnWS5.js → QBOConnectionDialog-PCdTWQqn-D0QAr5xA.js} +2 -2
- package/dist/assets/{QBOSetupSection-CpfryKtp-ZjQWXWah.js → QBOSetupSection-DhsqYA8G-Dcjp9EQd.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-B8CBB3JI-xMBay2No.js → ReimbursementApprovalRuleDetailPage-Dao_lRpW-BNs6twdR.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BsLmDz25-CgEjqCg6.js → ReimbursementApprovalRulesPage-B_LTt_z4-DnK-3YAX.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DiG34Vur-Dcz6odls.js → ReimbursementDetailPage-H6HNtQHN-2pM8Fun7.js} +8 -8
- package/dist/assets/{ReimbursementPromoPage-CNZdwAl--BsBEvPRx.js → ReimbursementPromoPage-j-UbNrbV-VHty7Yzb.js} +4 -4
- package/dist/assets/{ReimbursementSetUpPage-Ccc4qnNZ-CPmymOEP.js → ReimbursementSetUpPage-FagEYTJ_-BpDXEjSX.js} +7 -7
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Cza64yGU-BleycvIi.js → ReimbursementsBulkReviewDrawerPage-imSK_7rH-B3IJ7p46.js} +1 -1
- package/dist/assets/{ReloadCard-Cnz9ywvF-BGT4MYH-.js → ReloadCard-CqdeJe0l-Bb07dYPg.js} +3 -3
- package/dist/assets/{ReportTableViewSelector-B70dJfTV-SlWwkWXT.js → ReportTableViewSelector-DgPlLWgl-CNrxPhYC.js} +5 -5
- package/dist/assets/{ReportsPage-DdvNbMAj-SF_Ndi0S.js → ReportsPage-ByfO0uyp-DE8vAkKj.js} +6 -6
- package/dist/assets/{RevenueChart-B0CcrRHw-DSEzCN2z.js → RevenueChart-ChbWXtmx-BA32Na2v.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BVebc63A-zFlaxD9H.js → ReviewDetailsPage-BsOffi8f-BLsxP3vo.js} +5 -5
- package/dist/assets/{ReviewOverlay-Dm9GTjwu-bBb6sGal.js → ReviewOverlay-B73a-P2j-CTP6pyS2.js} +7 -7
- package/dist/assets/RoleWithToolTip-Ckorto5Y-CV42dy1h.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BWwDY16q-BLBhJP_5.js → ScheduleDetailsFixedAssetsPage-0vTqFn9N-BEm7Cgkc.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-CqFbh9HE-R8G_b4b1.js → ScheduleDetailsPage-Cl11M6UJ-BhHsLjma.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-DDYFTEg4-CG84KRpd.js → ScheduleSequenceTable-ClzxD7gh-DTqJnrdA.js} +26 -26
- package/dist/assets/{ScreenRoutes-BVWkKC_W.js → ScreenRoutes-D3i6oNhN.js} +1 -1
- package/dist/assets/{SetUpAccountSection-BuF3A3dP-Dlc3aKO9.js → SetUpAccountSection-xqqgeGLA-YX4p_D4B.js} +1 -1
- package/dist/assets/{SignIn-CyGyU8wg-8SnTpqj6.js → SignIn-Bh-9-pko-DyJR1DLA.js} +14 -14
- package/dist/assets/{SignInScreen-CEzKwqwu.js → SignInScreen-CaiIkh6O.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DPUhOVZl-B5bRhpPB.js → SpendManagementListViewPage-Bn4KmChq-B4Y0L643.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-CeYdMTbj-DL_aA7k6.js → SpendManagementPerTabPage-pYgoZlfR-DI3UJ4l8.js} +37 -37
- package/dist/assets/{SpendManagementSection--vF9XUYO-BtgzDFex.js → SpendManagementSection-4ctnlmiO-I2pWsNDv.js} +1 -1
- package/dist/assets/{StatementItem-CiYj7XWK-5AkRMgC4.js → StatementItem-CYkgMHQd-B65BnaGl.js} +6 -6
- package/dist/assets/{StatementsPage-SLgIPcxl-DedL5QW0.js → StatementsPage-BeF9vuPn-DNaEdwZ3.js} +1 -1
- package/dist/assets/{StatusSwitcher-CAMXea4Z-Ci68Xk-W.js → StatusSwitcher-DOwOcMYF-CSG0Jxkr.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BFezBmcr-Bv0UYLck.js → SubTabSwitcher-BcEtc_ob-GF65Or0C.js} +1 -1
- package/dist/assets/{SummaryCard-Bk5Eh2IR-CvYAWxo_.js → SummaryCard-fjNCTkA5-B-M5KnHi.js} +1 -1
- package/dist/assets/{TaskManagementPage-ClL2snRe-BkZUI-Os.js → TaskManagementPage-BYMJMIhz-Do04zyQE.js} +15 -15
- package/dist/assets/{TimeRangeSwitcher-fGI52XTc-B8YAuD1t.js → TimeRangeSwitcher-B4FKox6K-C6y8kYZQ.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-CV-bryv5-BZG0GUCh.js → TimeframeSwitcher-DVWPgeL0-8qGmZwOz.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-kmZOYJwI-CNr8HJvn.js → TimeframeSwitcherWithToggle-BWGJWyJr-ClUkg8re.js} +1 -1
- package/dist/assets/{TopExCard-DeYN3ImD-B_G3aCn4.js → TopExCard-CUrz7PjD-Co2zX82Y.js} +5 -5
- package/dist/assets/{TopExDetailPage-BmyFCtzb-Cf6VgVmt.js → TopExDetailPage-BMzQUB6s-BXWwFBJe.js} +3 -3
- package/dist/assets/{TransactionDetailPage-BFpvUUmz-C0BrkJmS.js → TransactionDetailPage-CZdeoUBY-XP0PswSG.js} +31 -31
- package/dist/assets/{TransactionList-JHbSuP08-BE5oUWHj.js → TransactionList-CixEJAgS-CGekhIG9.js} +8 -8
- package/dist/assets/{TransactionListBig-FzOmuwBP-CVEEn05Z.js → TransactionListBig-CMVJvB3o-DxRTSLNX.js} +7 -7
- package/dist/assets/{TransactionListPage-Kkxkkd_A-uxvvUDBa.js → TransactionListPage-CAMz9-YS-BNVZMAVt.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-m1wxsTyn-CtzfWKY9.js → TransactionVendorDetailPage-CzbyeJ4F-DfY35mWk.js} +3 -3
- package/dist/assets/{TransferDrawerPage-obzTPCDc-DmDROdGW.js → TransferDrawerPage-aQAyy9SJ-CtSZX6V_.js} +6 -6
- package/dist/assets/{TreasuryOverviewPage-DW68UR3w-CXp8UZWj.js → TreasuryOverviewPage-DStdhtYj-BmaX-LUn.js} +8 -8
- package/dist/assets/{TreasuryPromoPage-BW76YUSB-1YJbHf0S.js → TreasuryPromoPage-ukEVtL3s-BxkytgW6.js} +7 -7
- package/dist/assets/{TreasuryStatementsPage-BDD4VO8n-DUjcdDs1.js → TreasuryStatementsPage-CrTNmv-B-fC2pfiKh.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-B2NDIt_Q-DCX4Q69d.js → TreasuryTaxLetterPage-BkyI9zJM-Ds84Dj6n.js} +1 -1
- package/dist/assets/{TrendChart-D5CYCZnh-DAyWGjcL.js → TrendChart-BV_FYo44-Dbzn5dy8.js} +1 -1
- package/dist/assets/{TrendWithTransactions-DoCnDpHm-CdDHaHZ9.js → TrendWithTransactions-COtEkfX9-BcCvtDz-.js} +5 -5
- package/dist/assets/{UncategorizedAccountsMappingPage-DX_TBAhJ-BssvOjsa.js → UncategorizedAccountsMappingPage-CDFz90Rp-CAIHAo3N.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-DZfp553j-ByWZS3hU.js → UnitIntegrationPage-DU3fVYZs-CPctIuWc.js} +1 -1
- package/dist/assets/UploadAdditionalDocumentOverlay-C663UVhz-FUVjkpYI.js +38 -0
- package/dist/assets/{Vendor2FAPopup-BmT-gcIz-n3vjq-3y.js → Vendor2FAPopup-DTGw_BLn-CTkC0axp.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CQ7Hq4OS-OICNgdvg.js → VendorACHDetailsPage-BEB-BRPf-BW1XdRCh.js} +1 -1
- package/dist/assets/{VendorDetailPage-Cs6xk6eD-zl-heKdM.js → VendorDetailPage-DgKqF5w_-Da2PCb7B.js} +5 -5
- package/dist/assets/{VendorDomesticWireDetailsPage-8mY07nVg-DHqiq7vN.js → VendorDomesticWireDetailsPage-DsT7aeCi-Cxqzwzrv.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-CAFeI80I-sDSbFxEy.js → VendorFiling1099EditablePage-DSQPqiXK-BlXqobVl.js} +14 -14
- package/dist/assets/{VendorFirstReviewPage-ACNdg13I-BUeCp6NI.js → VendorFirstReviewPage-CHhQfRiw-BCpTFAZN.js} +70 -70
- package/dist/assets/{VendorInternationalWireDetailsPage-BpkamVMK-D0VBsQab.js → VendorInternationalWireDetailsPage-BALUN3IH-B1HapV15.js} +4 -4
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Gvr65ujG-DJLCreKr.js → VendorInternationalWireSwiftDetailsPage-BCJLWye_-CJZeW3NQ.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-AmC5VwVD-DhkXxukb.js → VendorsAccountsSection-BNeOtayE-BfOhq53p.js} +1 -1
- package/dist/assets/{VerifyDevice-PHsuiYk_-D412mfmG.js → VerifyDevice-BdS9Wg6i-km9HNFiy.js} +2 -2
- package/dist/assets/{VideoPlayer-DSqyhtMK-C3AGcKQT.js → VideoPlayer--4ECwDUJ-DpdXEWOa.js} +1 -1
- package/dist/assets/{VideoPopup-BcGkTYtT-KpRyilVI.js → VideoPopup-D0KR8nhb-L_41dJ_u.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-BMxsT694-CfyoaWK9.js → WarningsDrawerPage-CZi7W_N2-BvrjJAup.js} +10 -10
- package/dist/assets/{ZeniAccountDetailPage-CvVIdc-T-DXao_tc2.js → ZeniAccountDetailPage-DRpUQWRY-CFQQ9DDl.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-D8RyYP_F-v3DmCD-q.js → ZeniAccountListViewPage-B58qILci-DPpjeTIQ.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-DN7XGX4V-Dx8A5GLh.js → ZeniAccountNavBarPieces-BvwIaUWa-BHDVxbAK.js} +2 -2
- package/dist/assets/{ZeniAccountPromoPage-DtkPkWS_-DSD29DUQ.js → ZeniAccountPromoPage-BKn8HRaG-C8TqY5PJ.js} +10 -10
- package/dist/assets/{ZeniAccountSetupPage-NDzdHEb2-CwWBVh2N.js → ZeniAccountSetupPage-B52_WsH5-Ny13na_H.js} +2 -2
- package/dist/assets/{ZeniCopyright-C2Et8K0x-lDJzPJZG.js → ZeniCopyright-BBZoZbnj-BkZUi5kn.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-D7NLq8nU-CERt_WDB.js → ZeniTransferAmountSlider-DuVixxF--B3VBiout.js} +1 -1
- package/dist/assets/{analyticsHelper-CaFa35yP-G2_hr-0j.js → analyticsHelper-BFEbpTaS-CI1-ZwNW.js} +1 -1
- package/dist/assets/{analyticsHelper-DU_Un8e0.js → analyticsHelper-DEd3yAFk.js} +1 -1
- package/dist/assets/{chartTypes-D3stzk-w-BOvyI3x_.js → chartTypes-D3rvsvls-DmtOpgie.js} +1 -1
- package/dist/assets/{commonDimensions-DP_SFwFq-B4nonWMr.js → commonDimensions-DTY9_AOp-DlMPlh2t.js} +1 -1
- package/dist/assets/{detailCommon-Cz5amAEd-Cc-pki0l.js → detailCommon-CLP6KEix-B5bEqT96.js} +4 -4
- package/dist/assets/{downloadPdf-BEpDZsHw-iAkz6QUF.js → downloadPdf-DEpaGHNR-Bw53_d32.js} +1 -1
- package/dist/assets/{index-CUpJHznP.js → index-CN7UAWAg.js} +2530 -2515
- package/dist/assets/{mapLoadingInProgressToTreeNode-9Bg2UmOc-COxeXpBk.js → mapLoadingInProgressToTreeNode-B_mkEOSy-BQa7i_Nl.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CrGK4Cl1-CK5Yo8-v.js → mapSectionWithAcOnlyToTreeNode-C_s2TWXG-1zhixfCC.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-Dpahky1g-BWER0KF3.js → mapSpacerToTreeNode-BsPCAFm5-CkJKxUF2.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DGNk2hE1-BtbWYKjA.js → mapTimeframeBalancesToTreeNode-6mbqZF6a-D84LKXiT.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DD94NO-L-IqTvqjc2.js → mapTimeframeBalancesToTreeNode-DLbpODYp-DDiXCv85.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CJYVSL83-sS_oqH0-.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CKvU3bUP-kVnJxQIG.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-iOGWxWc5-CwkpaTeT.js → toCOABalancesWithID-CHHSLp5k-D9n1b9Hs.js} +1 -1
- package/dist/assets/{toChartData-BEJwj1pL-BUKCXEQF.js → toChartData-CBhPep_F-DbHa5eNf.js} +1 -1
- package/dist/assets/{uploadAttachment-Cs4cwF3u-BqxRSnPC.js → uploadAttachment-BXzSdWYh-ChPsAoWK.js} +6 -6
- package/dist/assets/{uploadReceipts-Dp1dvCjf-Rghek-rE.js → uploadReceipts-Dp1dvCjf-CdBFemgP.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CustomerOnboardingContainerPage-BoQBdIuG-Dc2nEhqg.js +0 -1
- package/dist/assets/EditPeoplePage-DIj7SItK-CKkznNAO.js +0 -55
- package/dist/assets/RoleWithToolTip-CqLSnFDx-DgQ7tDAb.js +0 -22
- package/dist/assets/UploadAdditionalDocumentOverlay-BqO1S9_p-C6rWAFOs.js +0 -38
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi,q as M,aC as ui,az as fo,dG as pi,dH as xo,l as A,F as W,u as w,dI as Vi,dJ as Ot,aU as _,dK as Mt,cq as Nt,dL as It,y as D,dg as Pt,ax as Di,ab as Je,dM as Ne,b$ as K,
|
|
1
|
+
import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi,q as M,aC as ui,az as fo,dG as pi,dH as xo,l as A,F as W,u as w,dI as Vi,dJ as Ot,aU as _,dK as Mt,cq as Nt,dL as It,y as D,dg as Pt,ax as Di,ab as Je,dM as Ne,b$ as K,k as mo,d as ce,a$ as Ri,dN as Gi,aV as V,ao as Ae,dO as wo,dP as se,cp as zt,ce as gi,ai as yo,an as ye,dQ as Xe,dR as Be,dS as tt,am as C,cx as ne,dT as bo,b as Ft,dU as Re,dV as fi,dW as xi,dX as ko,dY as jo,b9 as Ei,b6 as So,cN as Tt,cM as Vt,dZ as Co,b7 as Hi,cQ as Ki,c4 as $o,d_ as vo,d$ as mi,e0 as wi,e1 as _o,e2 as Lo,c6 as Ao,bQ as Bo,e3 as Wo}from"./index-CN7UAWAg.js";import{n as a,b as I,w as Oo,i as P}from"./vendor-Bs1fkIUX.js";import{N as it,D as Mo,R as No,B as be,u as v}from"./AccountRow-CjMOMc-1-x3Qeaa-E.js";function Z(e,i){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return q("0,0",e?.balance)}function J(e){return q("0,0",e?.forecast)}function Yi(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.totalPercentValue)}return q("0,0",e?.totalBalance)}function bt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.forecastPercentValue)}return q("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const i=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const i=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return q("0,0",Object.assign({},e.forecast,{amount:i}))}else return q("0,0",null)}function Ui(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const i=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function qi(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const i=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return q("0,0",Object.assign({},e.totalForecast,{amount:i}))}else return q("0,0",null)}const Ie=(e,i,n)=>{const{startDate:o,balanceType:r}=i,{dateFormat:{visual:l}}=W.getLocalizedStrings();switch(n){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.MMMYYYYFormat,e)}`:ft(r,n);case"quarter":return r==="default"||r==="default_with_percent"?`${W.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(o,l.QYYYYformat,e)}`:ft(r,n);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.YYYYformat,e)}`:ft(r,n);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ft(e,i){return W.getLocalizedStrings().downloadReport.additionalColumns.labels[i][e]}const eg=(e,i,n)=>{const o=i.length==0?e:`${e}_${i.join("_")}`;return n!=null&&n.trim().length>0?`${o}_${n}`:`${o}_${go(10)}`},Io=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
width: 100%;
|
|
@@ -73,14 +73,14 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
73
73
|
background-color: ${e=>e.bgColor?.hex()};
|
|
74
74
|
flex-direction: column;
|
|
75
75
|
padding-right: ${v.wrapperPadding}px;
|
|
76
|
-
`,
|
|
76
|
+
`,Zo=a.div`
|
|
77
77
|
flex: 1 1 auto;
|
|
78
78
|
display: flex;
|
|
79
79
|
align-items: center;
|
|
80
80
|
height: ${c.sp8};
|
|
81
81
|
justify-content: flex-start;
|
|
82
82
|
align-items: center;
|
|
83
|
-
`,
|
|
83
|
+
`,Qo=a.div`
|
|
84
84
|
display: flex;
|
|
85
85
|
flex-direction: row;
|
|
86
86
|
justify-content: flex-end;
|
|
@@ -125,7 +125,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
125
125
|
width: ${v.spacerLineWidth}px;
|
|
126
126
|
`,lr=a.div`
|
|
127
127
|
width: ${v.statusWidth}px;
|
|
128
|
-
`,Ge=({title:e,type:i})=>t.jsx(tr,{widthValue:v[i],children:t.jsx(er,{children:e})});function sr({sectionTitle:e,height:i,isLoading:n}){const o=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(qo,{height:i,children:t.jsxs(
|
|
128
|
+
`,Ge=({title:e,type:i})=>t.jsx(tr,{widthValue:v[i],children:t.jsx(er,{children:e})});function sr({sectionTitle:e,height:i,isLoading:n}){const o=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(qo,{height:i,children:t.jsxs(Zo,{children:[t.jsx(Qo,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp4,width:v.leftLabelWidth},children:t.jsx(Xo,{"data-testid":m("account-recon-section-title",e),children:e})})}),t.jsxs(Jo,{children:[t.jsx(ir,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp7,width:v.bankBalanceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Ge,{title:o.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(nr,{}),t.jsx(or,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp7,width:v.clearedBalanceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Ge,{title:o.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(rr,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp7,width:v.varianceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Ge,{title:o.variance,type:"varianceTimeframeWidth"})})}),t.jsx(ar,{}),t.jsx(lr,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp7,width:v.statusTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Ge,{title:o.status,type:"statusTimeframeWidth"})})})]})]})})}const cr=a.div`
|
|
129
129
|
display: flex;
|
|
130
130
|
flex-direction: row;
|
|
131
131
|
height: ${e=>e.heightValue}px;
|
|
@@ -221,7 +221,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
221
221
|
color: ${e=>e.textColor.hex()};
|
|
222
222
|
background-color: ${e=>e.bgColor.hex()};
|
|
223
223
|
min-width: ${v.variancePercentageWidth}px;
|
|
224
|
-
`,{expenseAutomation:{accountRecon:{reconciliation:{headers:yi}}},common:{strings:{percentage:$r,hyphen:et}}}=W.getLocalizedStrings();function vr({height:e,sectionData:i}){const n=M(),o=i.totalVariance,r=i.totalVariancePercentage,l=ce();return t.jsx(ur,{"data-testid":m("total-row-root-container"),heightValue:e,windowSize:n,children:t.jsxs(pr,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsxs(gr,{children:[t.jsx(be,{firstLetter:yi.section[i.sectionId].subTitle.charAt(0),color:new _(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(fr,{children:yi.section[i.sectionId].subTitle})]}),t.jsxs(xr,{children:[t.jsx(mr,{children:i.totalBankBalance!=null?q("0,0",i.totalBankBalance):et}),t.jsx(wr,{children:i.totalClearedBalance!=null?q("0,0",i.totalClearedBalance):et}),t.jsx(_r,{variance:o,variancePercentage:r}),t.jsx(br,{children:t.jsx(kr,{heightValue:e})}),t.jsx(yr,{})]})]})})}const _r=({variance:e,variancePercentage:i})=>{const n=ce(),o=new _(n.colors.hero),r=new _(n.colors.hero),l=new _(n.colors.background),s=e!=null&&e.amount===0?"0%":i!=null?i===0?"0%":`${i.toFixed(2)}${$r}`:et;return t.jsxs(jr,{children:[t.jsx(Sr,{textColor:o,children:e!=null?q("0,0",e):et}),t.jsx(Cr,{textColor:r,bgColor:l,children:s})]})};function Lr(){return t.jsx(Uo,{height:it("section")})}function Ar(){return t.jsx(Ko,{height:it("loading_in_progress")})}function Br(e,i){if(e.element.kind!=="timeframe_headers")return null;const n=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,o=e.element.data,r=o.accountIDs.length===0;return t.jsx(sr,{sectionTitle:n.section[o.sectionId].title,isLoading:r,isSticky:i,height:it("timeframe_headers")})}const Wr=(e,i,n)=>{const o=e.element.data;return t.jsx(vr,{isSticky:n,height:i,sectionData:o})},Or=(e,i)=>{const n=e.element.data,o=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(hr,{height:i,title:o.section[n.sectionId].title})},Mr=(e,i,n)=>{const o=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?o.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(No,{height:i,accountRecon:o,isLastRow:n,isSelectedRow:r,onReviewClicked:e.config.accountReconciliationConfig?.onReviewClicked,onConnectClicked:e.config.accountReconciliationConfig?.onConnectClicked,onReconnectClicked:e.config.accountReconciliationConfig?.onReconnectClicked,onOpenDrawerClicked:e.config.accountReconciliationConfig?.onOpenDrawerClicked,onStatementAddClicked:e.config.accountReconciliationConfig?.onStatementAddClicked})},k={balanceHeight:c.sp4,balanceHeightInPx:w[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:c.sp4,balanceLeftMarginInPx:w[4],titleWidth:new D(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128};function Nr(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 Ir(e,i,n=0){const o=["summary"];switch(e){case"section":return!o.includes(i);case"section_with_ac_only":return!o.includes(i);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(o.includes(i)||i==="detailed"&&n>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(o.includes(i)||i==="detailed"&&n>0);case"title_string_only":return!o.includes(i);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(i==="detailed"&&n>0);case"checkbox_and_name_only":return!0;default:return!1}}const ge=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!0}},xe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},
|
|
224
|
+
`,{expenseAutomation:{accountRecon:{reconciliation:{headers:yi}}},common:{strings:{percentage:$r,hyphen:et}}}=W.getLocalizedStrings();function vr({height:e,sectionData:i}){const n=M(),o=i.totalVariance,r=i.totalVariancePercentage,l=ce();return t.jsx(ur,{"data-testid":m("total-row-root-container"),heightValue:e,windowSize:n,children:t.jsxs(pr,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsxs(gr,{children:[t.jsx(be,{firstLetter:yi.section[i.sectionId].subTitle.charAt(0),color:new _(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(fr,{children:yi.section[i.sectionId].subTitle})]}),t.jsxs(xr,{children:[t.jsx(mr,{children:i.totalBankBalance!=null?q("0,0",i.totalBankBalance):et}),t.jsx(wr,{children:i.totalClearedBalance!=null?q("0,0",i.totalClearedBalance):et}),t.jsx(_r,{variance:o,variancePercentage:r}),t.jsx(br,{children:t.jsx(kr,{heightValue:e})}),t.jsx(yr,{})]})]})})}const _r=({variance:e,variancePercentage:i})=>{const n=ce(),o=new _(n.colors.hero),r=new _(n.colors.hero),l=new _(n.colors.background),s=e!=null&&e.amount===0?"0%":i!=null?i===0?"0%":`${i.toFixed(2)}${$r}`:et;return t.jsxs(jr,{children:[t.jsx(Sr,{textColor:o,children:e!=null?q("0,0",e):et}),t.jsx(Cr,{textColor:r,bgColor:l,children:s})]})};function Lr(){return t.jsx(Uo,{height:it("section")})}function Ar(){return t.jsx(Ko,{height:it("loading_in_progress")})}function Br(e,i){if(e.element.kind!=="timeframe_headers")return null;const n=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,o=e.element.data,r=o.accountIDs.length===0;return t.jsx(sr,{sectionTitle:n.section[o.sectionId].title,isLoading:r,isSticky:i,height:it("timeframe_headers")})}const Wr=(e,i,n)=>{const o=e.element.data;return t.jsx(vr,{isSticky:n,height:i,sectionData:o})},Or=(e,i)=>{const n=e.element.data,o=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(hr,{height:i,title:o.section[n.sectionId].title})},Mr=(e,i,n)=>{const o=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?o.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(No,{height:i,accountRecon:o,isLastRow:n,isSelectedRow:r,onReviewClicked:e.config.accountReconciliationConfig?.onReviewClicked,onConnectClicked:e.config.accountReconciliationConfig?.onConnectClicked,onReconnectClicked:e.config.accountReconciliationConfig?.onReconnectClicked,onOpenDrawerClicked:e.config.accountReconciliationConfig?.onOpenDrawerClicked,onStatementAddClicked:e.config.accountReconciliationConfig?.onStatementAddClicked})},k={balanceHeight:c.sp4,balanceHeightInPx:w[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:c.sp4,balanceLeftMarginInPx:w[4],titleWidth:new D(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128};function Nr(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 Ir(e,i,n=0){const o=["summary"];switch(e){case"section":return!o.includes(i);case"section_with_ac_only":return!o.includes(i);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(o.includes(i)||i==="detailed"&&n>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(o.includes(i)||i==="detailed"&&n>0);case"title_string_only":return!o.includes(i);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(i==="detailed"&&n>0);case"checkbox_and_name_only":return!0;default:return!1}}const ge=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!0}},xe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},Zi={emptyLeftContainer:new D(w[0],w[5])},Pr=a(C)`
|
|
225
225
|
margin-left: ${e=>!e.hasChildren&&e.depth!==0?c.sp3:c.sp2};
|
|
226
226
|
overflow: hidden;
|
|
227
227
|
white-space: nowrap;
|
|
@@ -244,12 +244,12 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
244
244
|
`,Dr=a.div`
|
|
245
245
|
width: ${c.sp2};
|
|
246
246
|
height: ${c.sp1};
|
|
247
|
-
`,
|
|
248
|
-
width: ${e=>
|
|
247
|
+
`,Qi=a.div`
|
|
248
|
+
width: ${e=>Zi.emptyLeftContainer.valuePx(e.windowSize)};
|
|
249
249
|
height: ${c.sp1};
|
|
250
250
|
`,We=a.div`
|
|
251
251
|
display: flex;
|
|
252
|
-
`,Rr=({ancestorMetadata:e,depth:i,name:n})=>t.jsx(t.Fragment,{children:i>0?[...Array(i).keys()].map(o=>{const r=e[o];return t.jsxs(We,{children:[r.depth===0?t.jsx(xi,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Be,{},o):t.jsx(tt,{}):null,r.depth>=1?t.jsx(xi,{depth:r.depth}):null]},n+o)}):null}),Ji=({ancestorMetadata:e,depth:i,name:n})=>{const o=M();return i===0?e[i].hasChildren===!1?t.jsx(
|
|
252
|
+
`,Rr=({ancestorMetadata:e,depth:i,name:n})=>t.jsx(t.Fragment,{children:i>0?[...Array(i).keys()].map(o=>{const r=e[o];return t.jsxs(We,{children:[r.depth===0?t.jsx(xi,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Be,{},o):t.jsx(tt,{}):null,r.depth>=1?t.jsx(xi,{depth:r.depth}):null]},n+o)}):null}),Ji=({ancestorMetadata:e,depth:i,name:n})=>{const o=M();return i===0?e[i].hasChildren===!1?t.jsx(Qi,{windowSize:o}):t.jsxs(We,{children:[t.jsx(Re,{depth:i}),t.jsx(Be,{}),t.jsx(Re,{depth:i+1})]}):t.jsxs(t.Fragment,{children:[[...Array(i+1).keys()].map(r=>{const l=e[r],s=r!==i?e[r+1]:void 0;return t.jsxs(We,{children:[l.depth===0?t.jsx(Re,{depth:l.depth}):null,r>=2||r===1&&(i===r?l.hasChildren===!0:s!=null&&!s.isLastNode)?i===1?t.jsx(fi,{index:1}):t.jsx(fi,{index:2}):null,(i===r?l.hasChildren===!0:s!=null&&!s.isLastNode)?t.jsx(Be,{},r):t.jsx(tt,{}),t.jsx(Re,{depth:l.depth+1})]},n+r)}),i===1&&e[i].hasChildren!=!0?t.jsx(Dr,{}):null]})},Xi=({ancestorMetadata:e,depth:i,name:n})=>i===0?t.jsx(Vr,{}):t.jsx(t.Fragment,{children:[...Array(i).keys()].map(o=>{const r=e[o],l=o!==i?e[o+1]:void 0;return t.jsxs(We,{children:[r!=null&&r.depth===0?t.jsx(Xe,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Be,{},o):t.jsx(tt,{}),t.jsx(Xe,{depth:r!=null?r.depth+1:0})]},n+o)})}),Gr=({ancestorMetadata:e,depth:i,name:n})=>t.jsx(t.Fragment,{children:i>0?[...Array(i).keys()].map(o=>{const r=e[o];return r==null?null:t.jsxs(We,{children:[r.depth===0?t.jsx(Xe,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Be,{},o):t.jsx(tt,{}):null,r.depth>=1?t.jsx(Xe,{depth:r.depth}):null]},n+o)}):null}),Er=({depth:e,isLastNode:i,isLeaf:n,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})=>{let d=t.jsx(Tr,{});return e===0&&r&&(d=t.jsx(vo,{collapsed:l,onIconClick:s})),e>0&&(r&&!o&&i&&(d=t.jsx(mi,{collapsed:l,onIconClick:s})),n&&o&&i&&(d=t.jsx(wi,{})),n&&o&&!i&&(d=t.jsx(_o,{})),r&&o&&!i&&(d=t.jsx(Lo,{collapsed:l,onIconClick:s})),r&&o&&i&&(d=t.jsx(mi,{collapsed:l,onIconClick:s})),i&&n&&(d=t.jsx(wi,{}))),d},Hr=({depth:e,isLastNode:i,isLeaf:n,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})=>t.jsx(Fr,{children:t.jsx(Er,{depth:e,isLastNode:i,isLeaf:n,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})});function en(e){const{displayName:i}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const n=M();return t.jsxs(zr,{children:[e.classDepth!=null?t.jsx(Ji,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(Qi,{windowSize:n}):null,t.jsx(Gr,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(Hr,{...e}),t.jsx(Pr,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:n,title:i,children:i})]})}const E={balanceHeight:c.sp4,balanceWidth:"166px",balanceLeftMargin:c.sp4,titleWidth:new D(200,325,405),nameLogoWidth:new D(w[4],w[4]),nameLogoHeight:new D(w[4],w[4])};function Kr(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 Yr(){return!0}const Ee=[new D(w[4],w[8]),new D(44,76),new D(69,102),new D(93,124),new D(113,143)],Ur=a.div`
|
|
253
253
|
display: flex;
|
|
254
254
|
flex: 1 1 auto;
|
|
255
255
|
max-height: 1px;
|
|
@@ -260,7 +260,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
260
260
|
flex-flow: row;
|
|
261
261
|
justify-content: flex-start;
|
|
262
262
|
align-items: center;
|
|
263
|
-
`,
|
|
263
|
+
`,Zr=a.div`
|
|
264
264
|
display: flex;
|
|
265
265
|
flex-direction: row;
|
|
266
266
|
flex-shrink: 2;
|
|
@@ -275,7 +275,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
275
275
|
top: ${c.sp0};
|
|
276
276
|
left: ${c.sp0};
|
|
277
277
|
`:null}
|
|
278
|
-
`,
|
|
278
|
+
`,Qr=a.div`
|
|
279
279
|
width: ${e=>e.noMarginForEntity?Ee[e.nestingLevel].value(e.windowSize)-w[5]:Ee[e.nestingLevel].value(e.windowSize)}px;
|
|
280
280
|
max-width: ${e=>e.noMarginForEntity?Ee[e.nestingLevel].value(e.windowSize)-w[5]:Ee[e.nestingLevel].value(e.windowSize)}px;
|
|
281
281
|
height: 1px;
|
|
@@ -291,7 +291,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
291
291
|
max-height: 1px;
|
|
292
292
|
height: 1px;
|
|
293
293
|
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
294
|
-
`,bi=e=>{const i=M(),n=ce();return t.jsxs(qr,{"data-testid":m("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(
|
|
294
|
+
`,bi=e=>{const i=M(),n=ce();return t.jsxs(qr,{"data-testid":m("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(Zr,{windowSize:i,isSticky:e.isSticky,"data-testid":m("sub-entity-name-container","vendor_row_separator"),children:[t.jsx(Qr,{"data-testid":m("sub-entity-empty-container","vendor_row_separator"),nestingLevel:e.nestingLevel,noMarginForEntity:e.noMarginForEntity,windowSize:i}),t.jsx(Jr,{"data-testid":m("sub-entity-name-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?n.colors.grey1:n.colors.grey3})]}),t.jsx(Xr,{"data-testid":m("sub-entity-remaining-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?n.colors.grey1:n.colors.grey3})]})};function kt({kind:e,isScrolling:i,subEntityProps:n}){switch(e){case"vendor_row_separator":return t.jsx(bi,{nestingLevel:n?.nestingLevel??0,isScrolling:i,isSticky:n?.isSticky??!1,isTotal:!1,noMarginForEntity:n?.noMarginForEntity??!0});case"end_row_separator":return t.jsx(Ur,{"data-testid":m("end-row-separator",e),isScrolling:i});case"subtotal_row_separator":return t.jsx(bi,{nestingLevel:n?.nestingLevel??1,isScrolling:i,isSticky:n?.isSticky??!1,isTotal:!0,noMarginForEntity:n?.noMarginForEntity??!1})}}const tn=a.div`
|
|
295
295
|
display: flex;
|
|
296
296
|
flex: 1 1 auto;
|
|
297
297
|
width: fit-content;
|
|
@@ -578,7 +578,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
578
578
|
flex: 1 1 auto;
|
|
579
579
|
max-height: 1px;
|
|
580
580
|
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
581
|
-
`;function qa({kind:e,isScrolling:i}){switch(e){case"account_title_row_separator":return t.jsx(ki,{marginLeft:w[5],isScrolling:i});case"account_balance_row_separator":return t.jsx(ki,{marginLeft:0,isScrolling:i});case"ac_group_row_separator":return t.jsx(Ya,{isScrolling:i});case"section_row_separator":case"heading_row_separator":return t.jsx(Ua,{isScrolling:i})}}const Le={balanceHeight:c.sp4,balanceWidth:"166px",balanceLeftMargin:c.sp4,titleWidth:new D(200,350,405)};function
|
|
581
|
+
`;function qa({kind:e,isScrolling:i}){switch(e){case"account_title_row_separator":return t.jsx(ki,{marginLeft:w[5],isScrolling:i});case"account_balance_row_separator":return t.jsx(ki,{marginLeft:0,isScrolling:i});case"ac_group_row_separator":return t.jsx(Ya,{isScrolling:i});case"section_row_separator":case"heading_row_separator":return t.jsx(Ua,{isScrolling:i})}}const Le={balanceHeight:c.sp4,balanceWidth:"166px",balanceLeftMargin:c.sp4,titleWidth:new D(200,350,405)};function Za(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 Qa(e,i){const n=["summary","detailed"];switch(e){case"section":return!n.includes(i);case"section_with_ac_only":return!n.includes(i);case"calculated_section":case"calculated_section_type1":return!n.includes(i);case"ac_group_report":case"ac_group_subaccount":return!n.includes(i);case"ac_report":case"ac_subaccount":case"ac_subentity_total":return!n.includes(i);case"title_string_only":return!n.includes(i);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 Ja=a.div`
|
|
582
582
|
display: flex;
|
|
583
583
|
flex: 1 1 auto;
|
|
584
584
|
width: fit-content;
|
|
@@ -634,7 +634,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
634
634
|
text-overflow: ellipsis;
|
|
635
635
|
text-align: left;
|
|
636
636
|
margin-left: ${c.sp6};
|
|
637
|
-
`,rl=({balance:e})=>t.jsx(tl,{children:t.jsx(il,{children:
|
|
637
|
+
`,rl=({balance:e})=>t.jsx(tl,{children:t.jsx(il,{children:Z(e)})});function al({heading:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,totalBalances:l,isScrolling:s,isLastNode:d,onClick:h}){const u=M();return t.jsxs(Ja,{"data-testid":m("calculated-section-type-1-root-container-row",o),height:r,bgColor:i,windowSize:u,children:[t.jsxs(Xa,{"data-testid":m("calculated-section-type-1-container-row",o),onClick:()=>h?.(o),children:[t.jsx(nl,{"data-testid":m("calculated-section-type-1-total-container-row",o),bgColor:i,isSticky:n,windowSize:u,children:t.jsx(ol,{children:e})}),t.jsx(el,{children:l.map((g,p)=>t.jsx(rl,{balance:g},p))})]}),t.jsx(ll,{isScrolling:s,isLastNode:d})]})}function ll({isScrolling:e,isLastNode:i}){return i===!0?t.jsx(qa,{isScrolling:e,kind:"heading_row_separator"}):null}const sl=a.div`
|
|
638
638
|
display: flex;
|
|
639
639
|
flex: 1 1 auto;
|
|
640
640
|
width: fit-content;
|
|
@@ -690,7 +690,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
690
690
|
text-overflow: ellipsis;
|
|
691
691
|
text-align: left;
|
|
692
692
|
background-color: ${e=>e.bgColor?.hex()};
|
|
693
|
-
`,gl=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o})=>t.jsxs(hl,{"data-testid":m("heading-row-balance-element",e),children:[ae(e)||n?t.jsx(He,{"data-testid":m("heading-row-balance-actual",e),children:
|
|
693
|
+
`,gl=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o})=>t.jsxs(hl,{"data-testid":m("heading-row-balance-element",e),children:[ae(e)||n?t.jsx(He,{"data-testid":m("heading-row-balance-actual",e),children:Z(i)}):t.jsx(He,{"data-testid":m("heading-row-balance-forecast",e),children:J(i)}),n?t.jsxs(t.Fragment,{children:[t.jsx(He,{"data-testid":m("heading-row-balance-forecast",e),children:J(i)}),t.jsx(He,{"data-testid":m("heading-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?de(i):he(i)})]}):null]});function fl({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,heading:l,headingBalances:s,isActualVsForecastOn:d,compareMode:h,isLeaf:u,onClick:g}){const p=M();return t.jsx(sl,{height:r,bgColor:i,"data-testid":m("heading-row-root-container",o),children:t.jsxs(cl,{"data-testid":m("heading-row-container",o),isClickable:!u,onClick:()=>g?.(o),children:[ge(e)===!0?t.jsx(ul,{"data-testid":m("heading-row-heading-container",o),isSticky:n,windowSize:p,bgColor:i,children:t.jsx(pl,{children:l})}):null,xe(e)===!0?t.jsx(dl,{"data-testid":m("heading-row-balances-container",o),children:s.map((f,x)=>t.jsx(gl,{"data-testid":m("heading-row-balance-element",e),type:e,heading:l,balance:f,isActualVsForecastOn:d,compareMode:h},x))}):null]})})}const xl=(e,i,n,o,r,l,s)=>{if(i.element.kind!="calculated_section_type1"||i.element.data==null)return null;const d=i.element.data,h=te(d,i.config.displayOrder,i.element.numOfBalances);return t.jsx(al,{backgroundColor:o,isSticky:r,treeNodeId:e,heading:i.element.title,totalBalances:h.balances,height:n,isScrolling:l,isLastNode:s})},Ht=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="title_string_only")return null;const f=te(void 0,n.config.displayOrder,n.element.numOfBalances);return t.jsx(fl,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,heading:n.element.title,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,headingBalances:f.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:x=>{p?.(x)}})};function _n(e,i){return ml(i)}const ml=(e,i)=>{const n={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return n.acBalanceSelector=o=>o.balancesInTimeframe,n.compactedAccountsSelectorVariant=o=>wl(o,n.acBalanceSelector,e),n};function wl(e,i,n){switch(n){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>yl(i(o)?.balances??[]));default:return e}}function yl(e){let i=!1;if(e!=null){for(const n of e)if(n.balance.amount!==0){i=!0;break}}return i}const Ke=[new D(w[4],56),new D(44,76),new D(69,102),new D(93,124),new D(113,143)],ji=[new D(w[0],w[0]),new D(14,w[4]),new D(67,67),new D(102,102),new D(136,136)],bl=a.div`
|
|
694
694
|
display: flex;
|
|
695
695
|
flex: 1 1 auto;
|
|
696
696
|
max-height: 1px;
|
|
@@ -892,7 +892,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
892
892
|
text-overflow: ellipsis;
|
|
893
893
|
text-align: left;
|
|
894
894
|
margin-left: ${c.sp2};
|
|
895
|
-
`,
|
|
895
|
+
`,Zl=({type:e,balance:i,collapsed:n,compareMode:o})=>{const r=n===!0?Yl:jt;return t.jsxs(Kl,{"data-testid":m("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":m("account-group-row-balance-actual",e),children:Z(i)}),Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":m("account-group-row-balance-forecast",e),children:J(i)}),t.jsx(jt,{"data-testid":m("account-group-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?de(i):he(i)})]}):null]})};function Ql({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,accountGroupName:l,accountGroupBalances:s,compareMode:d,isScrolling:h,isOpen:u,isLeaf:g,isLastNode:p,onClick:f}){const x=M(),b=!g,y=b?"pointer":"default",$=l.length>0?l.substr(0,1).toUpperCase():"",S=Xl(s),B=ce().colors.primary,[L,O]=I.useState(!1);return t.jsxs(Gl,{"data-testid":m("account-group-row-root-container",e),height:r,bgColor:i,windowSize:x,children:[t.jsxs(El,{"data-testid":m("account-group-row-container",e),style:{cursor:y},isClickable:b,onClick:()=>f?.(o),onMouseOver:()=>O(!0),onMouseLeave:()=>O(!1),children:[t.jsxs(Ul,{"data-testid":m("account-group-row-name-container",e),bgColor:i,isSticky:n,windowSize:x,hasNonZeroBalance:S,children:[t.jsx(be,{"data-testid":m("account-group-row-circle-with-letter",e),color:_(B),showCollapsedIcon:!u,showIcon:b&&L,firstLetter:$}),t.jsx(ql,{"data-testid":m("account-group-row-name",e),children:l})]}),t.jsx(Hl,{"data-testid":m("account-group-row-balances-container",e),hasNonZeroBalance:S,children:s.map((F,T)=>t.jsx(Zl,{"data-testid":m("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:F,compareMode:d,collapsed:!1},T))})]}),t.jsx(Jl,{isScrolling:h,isLeaf:g,isLastNode:p,isOpen:u})]})}function Jl({isScrolling:e,isLeaf:i,isLastNode:n,isOpen:o}){return i||!o||!n?t.jsx(Kt,{isScrolling:e,kind:"ac_group_row_separator"}):null}const Xl=e=>{let i=!1;if(e!=null){for(const n of e)if(n!=null&&n.balance.amount!==0){i=!0;break}}return i},es=a.div`
|
|
896
896
|
display: flex;
|
|
897
897
|
flex: 1 1 auto;
|
|
898
898
|
width: fit-content;
|
|
@@ -955,7 +955,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
955
955
|
text-align: left;
|
|
956
956
|
margin-left: 35px;
|
|
957
957
|
color: ${e=>e.theme.colors.hero};
|
|
958
|
-
`,as=({type:e,balance:i,account:n,onAccountBalanceClick:o,compareMode:r})=>{const l=i?.type==="this_period_vs_last_period"||i?.type==="this_period_vs_last_period_percent",s=n!=null&&i!=null&&o!=null&&l!==!0;return t.jsxs(ns,{children:[t.jsx(xt,{isClickable:s,onClick:()=>{s===!0&&n!=null&&i!=null&&o?.(n,i)},children:
|
|
958
|
+
`,as=({type:e,balance:i,account:n,onAccountBalanceClick:o,compareMode:r})=>{const l=i?.type==="this_period_vs_last_period"||i?.type==="this_period_vs_last_period_percent",s=n!=null&&i!=null&&o!=null&&l!==!0;return t.jsxs(ns,{children:[t.jsx(xt,{isClickable:s,onClick:()=>{s===!0&&n!=null&&i!=null&&o?.(n,i)},children:Z(i)}),Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx(xt,{isClickable:!1,children:J(i)}),t.jsx(xt,{isClickable:!1,children:r==="compare_mode_percent"?de(i):he(i)})]}):null]})};function ls({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,accountBalances:l,isCompareModeOn:s,isForecastModeOn:d,isScrolling:h,isLeaf:u,isLastNode:g,compareMode:p,account:f,onAccountBalanceClick:x}){const b=M(),{common:{strings:{empty:y}}}=W.getLocalizedStrings(),$=f?.accountDescription?f.accountDescription:y,S=f?.accountName?f.accountName:$,B=Di(),L=B.loggedInUserRole!=null&&!A.hasInvestorBankerLevelAccess(B.loggedInUserRole),O=L===!0&&f!=null&&s!==!0&&x!=null&&d!==!0,F=O?"pointer":"default",T=(Y,H)=>{O===!0&&l[l.length-1]!=null&&x?.(Y,H,l[l.length-1])};return t.jsxs(es,{height:r,bgColor:i,windowSize:b,children:[t.jsxs(ts,{style:{cursor:F},isClickable:O,onClick:()=>f!=null?T(o,f):null,children:[t.jsx(os,{isSticky:n,windowSize:b,bgColor:i,children:t.jsx(rs,{title:S,children:S})}),t.jsx(is,{children:l.map((Y,H)=>t.jsx(as,{type:e,balance:Y,account:f,onAccountBalanceClick:L===!1||x==null?void 0:(U,Q)=>{x(o,U,Q)},compareMode:p},H))})]}),t.jsx(ss,{isScrolling:h,isLeaf:u,isLastNode:g})]})}function ss({isScrolling:e,isLeaf:i,isLastNode:n}){return i||!n?t.jsx(Kt,{isScrolling:e,kind:"ac_group_row_separator"}):null}const cs=a.div`
|
|
959
959
|
display: flex;
|
|
960
960
|
flex: 1 1 auto;
|
|
961
961
|
width: fit-content;
|
|
@@ -1021,7 +1021,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
1021
1021
|
text-overflow: ellipsis;
|
|
1022
1022
|
text-align: left;
|
|
1023
1023
|
margin-left: ${c.sp2};
|
|
1024
|
-
`,fs=({type:e,balance:i,color:n,compareMode:o})=>{const r=i!=null&&i.type==="default_with_percent"&&i.percentValue!=null?i.percentValue:0,l=i!=null&&i.type==="default_with_percent"&&i.forecastPercentValue!=null?i.forecastPercentValue:0;return t.jsxs(us,{children:[t.jsxs($i,{children:[t.jsx($e,{style:{color:n.toString()},children:
|
|
1024
|
+
`,fs=({type:e,balance:i,color:n,compareMode:o})=>{const r=i!=null&&i.type==="default_with_percent"&&i.percentValue!=null?i.percentValue:0,l=i!=null&&i.type==="default_with_percent"&&i.forecastPercentValue!=null?i.forecastPercentValue:0;return t.jsxs(us,{children:[t.jsxs($i,{children:[t.jsx($e,{style:{color:n.toString()},children:Z(i)}),Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx($e,{style:{color:n.toString()},children:J(i)}),t.jsx($e,{style:{color:n.toString()},children:o==="compare_mode_percent"?de(i):he(i)})]}):null]}),t.jsxs($i,{children:[r!==0?t.jsx(vi,{style:{color:n.toString()},children:fe("0,0%",r)}):null,Oe(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(vi,{style:{color:n.toString()},children:fe("0,0%",l)}):t.jsx($e,{}),t.jsx($e,{})]}):null]})]})};function Yt({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,sectionName:l,sectionBalances:s,sectionColor:d,isScrolling:h,isOpen:u,isLeaf:g,compareMode:p,onClick:f}){const x=M(),[b,y]=I.useState(!1),$=!g,S=$?"pointer":"default",B=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(cs,{"data-testid":m("section-row-root-container",o),rootHeight:r,bgColor:i,windowSize:x,children:[t.jsxs(ds,{"data-testid":m("section-row-container",o),style:{cursor:S},onClick:()=>f?.(o),onMouseOver:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(ps,{"data-testid":m("section-row-name-container",o),isSticky:n,windowSize:x,bgColor:i,children:[t.jsx(be,{"data-testid":m("section-row-circle-with-letter",o),color:_(d),showCollapsedIcon:!u,showIcon:$&&b,firstLetter:B}),t.jsx(gs,{"data-testid":m("section-row-name",o),style:{color:d.toString()},children:l})]}),t.jsx(hs,{"data-testid":m("section-row-balances-container",o),children:s.map((L,O)=>t.jsx(fs,{"data-testid":m("section-row-balance-element",e),type:e,sectionName:l,balance:L,color:d,compareMode:p},O))})]}),t.jsx(xs,{isScrolling:h,isLeaf:g,isOpen:u})]})}function xs({isScrolling:e,isLeaf:i,isOpen:n}){return i||!n?t.jsx(Kt,{isScrolling:e,kind:"section_row_separator"}):null}const ms=a.div`
|
|
1025
1025
|
display: flex;
|
|
1026
1026
|
flex: 1 1 auto;
|
|
1027
1027
|
width: fit-content;
|
|
@@ -1088,7 +1088,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
1088
1088
|
text-align: right;
|
|
1089
1089
|
margin-left: ${R.balanceLeftMargin};
|
|
1090
1090
|
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1091
|
-
`,Cs=({type:e,balance:i,collapsed:n,compareMode:o})=>{const r=n===!0?ks:On;return t.jsxs(bs,{children:[ae(e)===!0?t.jsx(r,{children:
|
|
1091
|
+
`,Cs=({type:e,balance:i,collapsed:n,compareMode:o})=>{const r=n===!0?ks:On;return t.jsxs(bs,{children:[ae(e)===!0?t.jsx(r,{children:Z(i)}):null,Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx(mt,{children:Z(i)}),t.jsx(mt,{children:J(i)}),t.jsx(mt,{children:o==="compare_mode_percent"?de(i):he(i)})]}):null]})};function $s({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,title:l,totalBalances:s,isLeaf:d,compareMode:h,onClick:u}){const g=M(),p=!d,f=p?"pointer":"default";return t.jsx(ms,{height:r,bgColor:i,windowSize:g,children:t.jsxs(ws,{style:{cursor:f},isClickable:p,onClick:()=>u?.(o),children:[t.jsx(js,{bgColor:i,isSticky:n,windowSize:g,children:t.jsx(Ss,{children:l})}),t.jsx(ys,{children:s.map((x,b)=>t.jsx(Cs,{type:e,balance:x,collapsed:!1,compareMode:h},b))})]})})}const ke={net_burn_or_income:{income:{color:new _(V.graphColor04),hoverColor:new _(V.graphColor04Dark)},cogs:{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)},expenses:{color:new _(V.graphColor32),hoverColor:new _(V.graphColor32Dark)},"Gross Burn":{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)},"Net Burn":{color:new _(V.graphColor13),hoverColor:new _(V.graphColor13Dark)},"Net Income":{color:new _(V.graphColor13),hoverColor:new _(V.graphColor13Dark)}},revenue:{income:{color:new _(V.graphColor28),hoverColor:new _(V.graphColor28Dark)},cogs:{color:new _(V.graphColor17),hoverColor:new _(V.graphColor17Dark)},"Gross Margin":{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new _(V.graphColor33),hoverColor:new _(V.graphColor33Dark)},cash_out:{color:new _(V.graphColor02),hoverColor:new _(V.graphColor02Dark)},"Net Cash Flow":{color:new _(V.graphColor35),hoverColor:new _(V.graphColor35Dark)}},default:{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)}},Ut=(e,i)=>e.startsWith("net_burn_or_income")===!0?i!=null?ke.net_burn_or_income[i]:ke.default:e.startsWith("revenue")===!0?i!=null?ke.revenue[i]:ke.default:e.startsWith("cash_in_cash_out")===!0&&i!=null?ke.cash_in_cash_out[i]:ke.default,vs=(e,i,n,o,r,l,s,d,h,u,g)=>{if(n.element.kind!="ac_report"||n.element.data==null)return null;const p=n.element.data,f=A.isDashboardClassesViewReport(n.config.reportId)===!0?_n("no_filter",n.config.filterAccountsWithNilBalances):nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),x=te(f.acBalanceSelector(p),n.config.displayOrder,n.element.numOfBalances);return t.jsx(ls,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountBalances:x.balances,isCompareModeOn:n.config.mode==="this_period_vs_period_before",isForecastModeOn:n.config.mode==="actual_vs_forecast",isScrolling:s,isLeaf:d,isLastNode:h,compareMode:u,account:p,onAccountBalanceClick:g==null?void 0:(b,y,$)=>{g?.(b,y,$)}})},_s=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_group_report"||n.element.data==null)return null;const f=n.element.data,x=nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances);return t.jsx(Ql,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountGroupName:f.accountGroupName,compareMode:g,accountGroupBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},Mn=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section"||n.element.data==null)return null;const f=Ut(n.config.reportId,n.element.sectionType),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(Yt,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionColor:f.color,sectionName:n.element.title,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},Ls=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section_with_ac_only"||n.element.data==null)return null;const f=Ut(n.config.reportId,n.element.sectionType),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(Yt,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},Nn=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="calculated_section"||n.element.data==null)return null;const f=Ut(n.config.reportId,n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(Yt,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},In=(e,i,n,o,r,l,s,d)=>{if((n.config.isZeniCOAInUse==null||n.config.isZeniCOAInUse===!0)&&n.config.mode!=="this_period_vs_period_before")return null;const h=n.element.data,u=te(h,n.config.displayOrder,n.element.numOfBalances);return t.jsx($s,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,title:n.element.title,height:o,isLeaf:d,compareMode:s,totalBalances:u.balances})},As=(e,i,n)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ln,{height:i,backgroundColor:n,title:e.element.title,numOfBalances:e.element.numOfBalances}),Bs=(e,i,n)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Bn,{height:i,backgroundColor:n,numOfBalances:e.element.numOfBalances}),qt=20,Ws=e=>{const i=[];return e&&Object.values(e).forEach(n=>{i.push(n)}),i.reverse()},Os=a.div`
|
|
1092
1092
|
display: flex;
|
|
1093
1093
|
flex: 1 1 auto;
|
|
1094
1094
|
height: 1px;
|
|
@@ -1190,7 +1190,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
1190
1190
|
max-width: ${j.balanceWidth};
|
|
1191
1191
|
text-align: right;
|
|
1192
1192
|
margin-left: 12px;
|
|
1193
|
-
`,
|
|
1193
|
+
`,Zs=a.div`
|
|
1194
1194
|
display: flex;
|
|
1195
1195
|
flex-direction: column;
|
|
1196
1196
|
flex-shrink: 2;
|
|
@@ -1205,7 +1205,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
1205
1205
|
left: ${c.sp0};
|
|
1206
1206
|
display: flex;
|
|
1207
1207
|
`:null}
|
|
1208
|
-
`,
|
|
1208
|
+
`,Qs=a.div`
|
|
1209
1209
|
display: flex;
|
|
1210
1210
|
height: ${c.sp4};
|
|
1211
1211
|
width: 100%;
|
|
@@ -1264,7 +1264,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
1264
1264
|
display: flex;
|
|
1265
1265
|
flex: 1;
|
|
1266
1266
|
justify-content: flex-end;
|
|
1267
|
-
`,ac=({isBalanceRowFirstNode:e=!1,balance:i})=>{const n=i!=null;return t.jsxs(Fn,{children:[e?t.jsx(Tn,{}):null,t.jsx(Us,{children:t.jsx(qs,{isClickable:n,children:
|
|
1267
|
+
`,ac=({isBalanceRowFirstNode:e=!1,balance:i})=>{const n=i!=null;return t.jsxs(Fn,{children:[e?t.jsx(Tn,{}):null,t.jsx(Us,{children:t.jsx(qs,{isClickable:n,children:Z(i)})})]})};function lc({varianceAmount:e,variancePercentage:i,currency:n,isSticky:o,balances:r,isScrolling:l,nodeMetadata:s,isLeaf:d,isLastNode:h,accountAndClass:u,isHoveredByParent:g}){const{common:{strings:{hyphen:p}}}=W.getLocalizedStrings(),f=u.accountBase?.accountDescription?u.accountBase?.accountDescription:p,x=u.accountBase?.accountName?u.accountBase?.accountName:f,b=u.classBase?.className?u.classBase?.className:p,y=s?.accountAndClassRowMetadata.isLastNode;return t.jsxs(Ks,{children:[t.jsxs(Ys,{style:{cursor:"default"},isHoveredByParent:g,children:[t.jsx(oc,{children:t.jsxs(Zs,{className:"flux-class-and-account-value-container",isSticky:o,children:[!!s?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(Qs,{children:[t.jsx(Pn,{height:j.lineComponentHeight}),t.jsx(Xs,{children:Li.common.texts.category}),t.jsx(ec,{children:Li.common.texts.class})]}),t.jsxs(Js,{children:[y===!0?t.jsx(Vs,{height:j.lineLComponentHeight}):t.jsx(Ds,{}),t.jsx(tc,{title:x,children:x}),t.jsx(ic,{title:b,children:b})]})]})}),t.jsx(rc,{children:t.jsxs(nc,{children:[r.map(($,S)=>t.jsx(ac,{balance:$,isBalanceRowFirstNode:s?.accountAndClassRowMetadata.isFirstNode},S)),t.jsxs(Fn,{children:[!!s?.accountAndClassRowMetadata.isFirstNode&&t.jsx(Tn,{}),t.jsx(at,{amount:e,percentage:i,currency:n})]})]})})]}),t.jsx(sc,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:s?.isVendorLastChild??!0})]})}function sc({isScrolling:e,isLastNode:i,isParentLastChild:n}){return i&&n?t.jsx(St,{isScrolling:e,kind:"vendor_separator"}):i?t.jsx(St,{isScrolling:e,kind:"account_class_row_separator"}):null}function cc(){return t.jsxs(dc,{children:[t.jsxs(uc,{children:[t.jsxs(je,{width:j.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(Ne,{width:w[4],height:w[4]}),t.jsx(K,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:c.sp2}})]}),t.jsx(je,{width:j.categoryRowsSkeletonContainerWidth,children:t.jsx(K,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:c.sp2}})})]}),t.jsxs(hc,{children:[t.jsx(je,{width:j.titleWidthMedium,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(je,{width:j.titleWidthMedium,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(je,{width:j.varianceRowSkeletonContainerWidth,children:[t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}}),t.jsx(K,{width:w[7],height:w[4],style:{display:"flex",alignItems:"flex-start",marginLeft:c.sp1}})]}),t.jsx(je,{width:j.titleWidthMedium,children:t.jsx(K,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const dc=a.div`
|
|
1268
1268
|
display: flex;
|
|
1269
1269
|
flex-direction: row;
|
|
1270
1270
|
width: 100%;
|
|
@@ -1363,7 +1363,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
1363
1363
|
${j.statusContainerWidth} +
|
|
1364
1364
|
${j.statusLeftMargin}
|
|
1365
1365
|
);
|
|
1366
|
-
`,Sc=({balance:e,color:i})=>t.jsx(fc,{children:t.jsx(xc,{color:i,children:
|
|
1366
|
+
`,Sc=({balance:e,color:i})=>t.jsx(fc,{children:t.jsx(xc,{color:i,children:Z(e)})}),Cc=Oo.memo(function({currency:e,sectionId:i,selectedSectionsIds:n,backgroundColor:o,isSticky:r,treeNodeId:l,height:s,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:g,variancePercentage:p,sectionColor:f,isScrolling:x,isOpen:b,isLeaf:y,idsForReview:$,sectionToggled:S,onSectionCheckboxClick:B}){const L=M(),[O,F]=I.useState($.length>0),[T,Y]=I.useState(!1),H=n.includes(i),U=!y,Q=$.length===qt&&!H,ue=d?.[0]?.toUpperCase()??"",X=I.useCallback(oe=>{B?.(i,oe.target.checked)},[i,B]);return t.jsxs(pc,{heightValue:s,bgColor:o,children:[t.jsxs(gc,{style:{cursor:U?"pointer":"default"},onClick:()=>S?.(l),onMouseOver:()=>{Y(!0),F(!0)},onMouseLeave:()=>{Y(!1),$.length===0&&F(!1)},children:[t.jsxs(mc,{className:"flux-section-name-container",isSticky:r,windowSize:L,bgColor:o,children:[h&&O&&b?t.jsx(bc,{children:t.jsx(Mt,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox",icon:t.jsx(Nt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(yc,{}),checked:H,id:l,disabled:Q,onChange:X,onClick:oe=>oe.stopPropagation(),style:{padding:"20px",pointerEvents:Q?"none":"auto"}})}):t.jsx(kc,{}),t.jsx(be,{color:_(f),showCollapsedIcon:!b,showIcon:T&&U,firstLetter:ue}),t.jsx(wc,{color:f.toString(),children:d})]}),t.jsxs(jc,{children:[u.map((oe,Ce)=>t.jsx(Sc,{sectionName:d,balance:oe,color:f.toString()},Ce)),t.jsx(at,{amount:g,percentage:p,currency:e})]})]}),t.jsx($c,{isScrolling:x,isLeaf:y,isOpen:b})]})});function $c({isScrolling:e,isLeaf:i,isOpen:n}){return i||!n?t.jsx(St,{isScrolling:e,kind:"section_row_separator"}):null}function vc(){const e=M();return t.jsxs(_c,{windowSize:e,children:[t.jsx(ve,{windowSize:e,width:j.vendorContainerWidth,marginRight:0,children:t.jsx(K,{width:w[9],height:w[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(ve,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(K,{width:128,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:j.varianceRowSkeletonContainerWidth,children:t.jsx(K,{width:184,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:j.titleWidthSmall,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})})]})}const _c=a.div`
|
|
1367
1367
|
display: flex;
|
|
1368
1368
|
flex-direction: row;
|
|
1369
1369
|
width: 100%;
|
|
@@ -1522,19 +1522,19 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
1522
1522
|
text-overflow: ellipsis;
|
|
1523
1523
|
text-align: left;
|
|
1524
1524
|
color: ${e=>e.theme.colors.primary};
|
|
1525
|
-
`,
|
|
1525
|
+
`,Zc=a.div`
|
|
1526
1526
|
display: flex;
|
|
1527
1527
|
width: ${j.statusContainerWidth};
|
|
1528
1528
|
min-width: ${j.statusContainerWidth};
|
|
1529
1529
|
justify-content: center;
|
|
1530
1530
|
flex-direction: row;
|
|
1531
1531
|
margin-left: ${j.statusLeftMargin};
|
|
1532
|
-
`,
|
|
1532
|
+
`,Qc=a.div`
|
|
1533
1533
|
display: flex;
|
|
1534
1534
|
margin-left: ${c.sp7};
|
|
1535
1535
|
flex: 1 1 auto;
|
|
1536
1536
|
justify-content: flex-end;
|
|
1537
|
-
`,Jc=({balance:e})=>t.jsx(Kc,{children:t.jsx(Yc,{children:q("0,0",e?.balance)})});function Xc({type:e,height:i,title:n,totalBalances:o,varianceAmount:r,variancePercentage:l,currency:s,backgroundColor:d}){return t.jsx(Gc,{"data-testid":m("total-row-root-container"),heightValue:i,bgColor:d,children:t.jsxs(Ec,{"data-testid":m("total-row-container"),children:[t.jsx(Uc,{className:"flux-total-row",children:t.jsx(qc,{children:n})}),t.jsxs(
|
|
1537
|
+
`,Jc=({balance:e})=>t.jsx(Kc,{children:t.jsx(Yc,{children:q("0,0",e?.balance)})});function Xc({type:e,height:i,title:n,totalBalances:o,varianceAmount:r,variancePercentage:l,currency:s,backgroundColor:d}){return t.jsx(Gc,{"data-testid":m("total-row-root-container"),heightValue:i,bgColor:d,children:t.jsxs(Ec,{"data-testid":m("total-row-container"),children:[t.jsx(Uc,{className:"flux-total-row",children:t.jsx(qc,{children:n})}),t.jsxs(Qc,{children:[t.jsx(Hc,{children:ae(e)&&o.map((h,u)=>t.jsx(Jc,{balance:h},u))}),t.jsx(at,{amount:r,percentage:l,currency:s}),t.jsx(Zc,{})]})]})})}const ed=a.div`
|
|
1538
1538
|
display: flex;
|
|
1539
1539
|
flex: 1 1 auto;
|
|
1540
1540
|
width: fit-content;
|
|
@@ -1721,7 +1721,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
1721
1721
|
justify-content: center;
|
|
1722
1722
|
align-items: center;
|
|
1723
1723
|
margin-left: ${c.sp1};
|
|
1724
|
-
`,{common:Bi,expenseAutomation:jd}=W.getLocalizedStrings(),Sd=({balance:e})=>{const i=nd;return t.jsx(id,{children:t.jsx(i,{children:
|
|
1724
|
+
`,{common:Bi,expenseAutomation:jd}=W.getLocalizedStrings(),Sd=({balance:e})=>{const i=nd;return t.jsx(id,{children:t.jsx(i,{children:Z(e)})})};function Cd({fluxAnalysisEntityId:e,idsForReview:i,backgroundColor:n,isSticky:o,treeNodeId:r,height:l,leftChevron:s,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:g,reviewedByUser:p,status:f,vendor:x,isOpen:b,childrenCount:y,setHoveredParentId:$,onClick:S,handleRedirectToVendorDetailPage:B,updateOperatingExpensesIdsForReview:L}){const[O,F]=I.useState(!1),[T,Y]=I.useState(i.length>0),H=i.includes(e),U=i.includes(e),Q=s==="collapsed",ue=i.length===qt&&H===!1,X=rd,oe=le=>{let pe=i;le.target.checked===!0?pe=[...pe,e]:pe=pe.filter(Ve=>Ve!==e),L?.(pe)},Ce=()=>{B?.(x)};return t.jsx(ed,{heightValue:l,bgColor:n,children:t.jsxs(td,{shouldHighlight:U,isRowExpanded:b,onClick:()=>S?.(r),onMouseOver:()=>{F(!0),Y(!0),$?.(x.id)},onMouseLeave:()=>{F(!1),i.length===0&&Y(!1),$?.(null)},children:[t.jsxs(od,{className:"flux-vendor-name-container",bgColor:n,isSticky:o,children:[t.jsx(fd,{className:"flux-vendor-checkbox-container",children:T?t.jsx(Mt,{className:"flux-vendor-checkbox",icon:t.jsx(Nt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(xd,{}),checked:H,name:x.name,id:e,disabled:ue,onChange:oe,onClick:le=>le.stopPropagation(),style:{padding:"20px",pointerEvents:ue?"none":"auto"}}):null}),t.jsxs(dd,{isNodeOpen:b,children:[O?t.jsx(yd,{className:"flux-vendor-collapsable-chevron-icon",children:b===!1?t.jsx(Ai,{}):t.jsx(wd,{})}):x.logo!=null?t.jsx(It,{photoUrl:x.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(Pt,{name:x.name,size:c.sp4}),b?t.jsx(Pn,{height:j.vendorLineComponentHeight}):null]}),t.jsxs(ad,{children:[t.jsxs(ld,{children:[t.jsx(X,{children:x.name}),b?null:t.jsx(kd,{className:"flux-vendor-children-count",children:t.jsx(Ae,{children:y})})]}),O?t.jsx(I.Fragment,{children:t.jsx(bd,{className:"flux-vendor-chevron-icon",onClick:Ce,"data-testid":m("flux-analysis-report-vendorElement-row"),children:t.jsx(Ai,{})})}):null]})]}),t.jsxs(cd,{children:[g.map((le,pe)=>t.jsx(Sd,{balance:le,collapsed:Q},pe)),t.jsx(at,{amount:d,percentage:h,currency:u}),t.jsx(hd,{children:f==="Pending Review"?t.jsx(pd,{children:t.jsx(gd,{children:Bi.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(ud,{className:"vendor-flux-analysis-review-info",children:p!=null?t.jsxs(I.Fragment,{children:[t.jsxs(md,{children:[t.jsx(sd,{}),jd.fluxAnalysis.reviewedBy]}),t.jsx(Ae,{children:wo(p)})]}):Bi.strings.hyphen})})})]})]})})}const Wi={generalExpense:{color:new _(V.graphColor04),hoverColor:new _(V.graphColor04Dark)},reimbursement:{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)},default:{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)}},$d=(e,i)=>e.startsWith("flux_analysis_operating_expense")===!0&&i!=null?Wi[i]:Wi.default,Zt=(e,i)=>{const{element:n}=e;return n.kind===i&&n.data!=null},Vn=e=>Ws(e.balancesByMonth),vd=(e,i,n,o,r,l,s,d,h)=>{if(!Zt(i,"flux_vendor_account_class_row"))return null;const u=i.element.data,g=Vn(u),p=i.element.metadata.vendorId;return t.jsx(lc,{backgroundColor:n,isSticky:o,treeNodeId:e,balances:g,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:u.currency,isScrolling:r,isLeaf:l,isLastNode:s,nodeMetadata:i.element.metadata,accountAndClass:u,onAccountAndClassBalanceClick:()=>h?.(p),isHoveredByParent:d?.hoveredParentId===p})},_d=(e,i,n,o,r,l,s,d,h,u,g)=>{if(!Zt(i,"flux_vendor_row"))return null;const p=i.element.data,f=Vn(p),x=zn("flux_vendor_row",h),b=y=>{g?.(y),i.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(y)};return t.jsx(Cd,{backgroundColor:n,isSticky:o,treeNodeId:e,fluxAnalysisEntityId:p.fluxAnalysisEntityId,height:x,leftChevron:"collapsed",idsForReview:i.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:p.vendor,vendorBalances:f,varianceAmount:p.varianceAmount,variancePercentage:p.variancePercentage,status:p.status,currency:p.currency,isScrolling:r,isOpen:l,isLeaf:s,isLastNode:d,childrenCount:p.vendorAccountsAndClasses.length,onClick:y=>{b?.(y)},reviewedByUser:p.reviewedByUser,updateOperatingExpensesIdsForReview:i.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:i.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},Ld=(e,i,n,o,r,l,s,d,h,u)=>{if(!Zt(i,"section"))return null;const g=$d(i.config.reportId,i.element.sectionType),p=i.element.data,f=x=>{i.config.fluxAnalysisConfig?.onSectionRowClick(x),u?.(x)};return t.jsx(Cc,{backgroundColor:o,isSticky:r,treeNodeId:e,height:n,selectedSectionsIds:i.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:i.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:g.color,sectionName:i.element.title,sectionBalances:p.balances,varianceAmount:p.varianceAmount,variancePercentage:p.variancePercentage,currency:p.currency,isScrolling:l,isOpen:s,hasVendors:p.vendors.length>0,isLeaf:d,isLastNode:h,sectionToggled:x=>{f?.(x)},onSectionCheckboxClick:i.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:p.sectionId})},Ad=(e,i,n)=>{if(e.element.kind!=="timeframe_headers")return null;const o=Pe(e.element.data,e.config.displayOrder),r=o.length>0?o[0].balanceTimeFrame:"month",l=o.map(d=>A.toTimeframeTick(d)),s=(d,h)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(d,h)};return t.jsx(Rc,{isSticky:n,height:i,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===qt,onSortOrderChanged:s,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},Bd=(e,i)=>{if(e.element.kind!=="total")return null;const n=e.element.data;return t.jsx(Xc,{type:"name+balances_actual",title:e.element.title,totalBalances:n.balances,varianceAmount:n.varianceAmount,variancePercentage:n.variancePercentage,currency:n.currency,height:i})},Wd=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(cc,{}),Od=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(vc,{}),Md=a.div`
|
|
1725
1725
|
display: flex;
|
|
1726
1726
|
flex: 1 1 auto;
|
|
1727
1727
|
width: fit-content;
|
|
@@ -1842,7 +1842,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
1842
1842
|
flex: 1 0 auto;
|
|
1843
1843
|
flex-direction: row;
|
|
1844
1844
|
justify-content: flex-end;
|
|
1845
|
-
`,
|
|
1845
|
+
`,Zd=a(C)`
|
|
1846
1846
|
user-select: none;
|
|
1847
1847
|
clear: both;
|
|
1848
1848
|
display: inline-block;
|
|
@@ -1852,7 +1852,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
1852
1852
|
text-align: left;
|
|
1853
1853
|
margin-left: ${c.sp2};
|
|
1854
1854
|
color: ${e=>e.theme.colors.hero};
|
|
1855
|
-
`,
|
|
1855
|
+
`,Qd=a(C)`
|
|
1856
1856
|
color: ${e=>e.theme.colors.hero};
|
|
1857
1857
|
flex-grow: 1;
|
|
1858
1858
|
-webkit-box-orient: vertical;
|
|
@@ -1882,7 +1882,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
1882
1882
|
left: ${c.sp0};
|
|
1883
1883
|
z-index: 20;
|
|
1884
1884
|
`:null}
|
|
1885
|
-
`;function Xd({backgroundColor:e,isSticky:i,height:n,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const s=M();return t.jsxs(Ud,{height:n,bgColor:e,"data-testid":m("no-results-found-title-row"),children:[t.jsx(Jd,{isSticky:i,windowSize:s,bgColor:e,children:t.jsx(
|
|
1885
|
+
`;function Xd({backgroundColor:e,isSticky:i,height:n,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const s=M();return t.jsxs(Ud,{height:n,bgColor:e,"data-testid":m("no-results-found-title-row"),children:[t.jsx(Jd,{isSticky:i,windowSize:s,bgColor:e,children:t.jsx(Zd,{children:W.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(qd,{children:[o?t.jsx(Ni,{windowSize:s,children:t.jsx(wt,{})}):null,r?t.jsx(Ni,{windowSize:s,children:t.jsx(wt,{})}):null,l.map((d,h)=>t.jsx(Qd,{windowSize:s,children:t.jsx(wt,{children:" "})},`${h}RowItem`))]})]})}a.div`
|
|
1886
1886
|
user-select: none;
|
|
1887
1887
|
display: flex;
|
|
1888
1888
|
flex: 1 1 auto;
|
|
@@ -1913,7 +1913,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
1913
1913
|
left: ${c.sp0};
|
|
1914
1914
|
z-index: 20;
|
|
1915
1915
|
`:null}
|
|
1916
|
-
`;function
|
|
1916
|
+
`;function Qt({title:e,selectedMode:i,onCompareModeChanged:n,backgroundColor:o,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:s,titleTextStyle:d,titleTextAlignment:h,titleColor:u,menuPosition:g}){const p=["compare_mode_percent","compare_mode_amount"],f=x=>W.getLocalizedStrings().compareMode[x];return t.jsx($o,{title:e,pickerValues:p,valueToLabel:f,selectedValue:i,onPickerSelectionChanged:x=>n(x),optionTextStyle:s,titleTextStyle:d,titleTextAlignment:h,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:o??"inherit",menuPosition:g})}const At={balanceHeight:c.sp4,balanceWidthInPx:170,balanceLeftMargin:c.sp4},eh=a.div`
|
|
1917
1917
|
margin-left: ${c.sp4};
|
|
1918
1918
|
`,th=a.div`
|
|
1919
1919
|
display: flex;
|
|
@@ -2071,7 +2071,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2071
2071
|
height: 12px;
|
|
2072
2072
|
cursor: pointer;
|
|
2073
2073
|
color: ${e=>e.theme.colors.hero};
|
|
2074
|
-
`,Yn=({sortOrder:e,sortKey:i,onSortOrderChanged:n})=>{const o=()=>{n(dt("totals",e,i),"totals")},r=i==="totals"?e:"ascending";return t.jsx(Kn,{"data-testid":m("period-total-tick"),children:t.jsx(Gn,{"data-testid":m("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(En,{children:[W.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(lt,{selectedForSort:i==="totals",children:r==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]})})})},gh=({sortKey:e="totals",sortOrder:i="ascending",onSortOrderChanged:n,onSortCancel:o})=>{const r=()=>{n(dt("vendor",i,e),"vendor")},l=e==="vendor"?i:"ascending";return t.jsxs(dh,{selectedForSort:e==="vendor",children:[t.jsxs(Jt,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(lt,{selectedForSort:e==="vendor",children:l==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]}),e==="vendor"?t.jsx(Xt,{onClick:o}):null]})},fh=({sortKey:e="totals",sortOrder:i="ascending",onSortOrderChanged:n,onSortCancel:o})=>{const r=()=>{n(dt("account",i,e),"account")},l=e==="account"?i:"ascending",s=M();return t.jsxs(Hn,{selectedForSort:e==="account",windowSize:s,children:[t.jsxs(Jt,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(lt,{selectedForSort:e==="account",children:l==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]}),e==="account"?t.jsx(Xt,{onClick:o}):null]})},xh=({sortKey:e="totals",sortOrder:i="ascending",onSortOrderChanged:n,onSortCancel:o})=>{const r=()=>{n(dt("class",i,e),"class")},l=e==="class"?i:"ascending",s=M();return t.jsxs(Hn,{selectedForSort:e==="class",windowSize:s,children:[t.jsxs(Jt,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(lt,{selectedForSort:e==="class",children:l==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]}),e==="class"?t.jsx(Xt,{onClick:o}):null]})},Un=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:o,bookCloseDate:r})=>{const l=W.getLocalizedStrings().reports,s=r!=null&&o!=null&&(i.balanceType==="default"||i.balanceType==="default_with_percent")?A.getTimeframeTickTag(n,e,i,r,o):void 0,d=s!=null?s==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=Rn(s,n);return t.jsx(Kn,{children:r!=null&&o!=null&&s!=null&&d!=null&&h!=null?t.jsx(Dn,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,tagName:d,infoContent:h,tagType:s}):t.jsx(Gn,{isClickable:!1,children:t.jsx(En,{children:Ie(e,i,n)})})})},mh=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,sortKey:o="totals",sortOrder:r="ascending",dataAvailable:l,bookCloseDate:s,onSortOrderChanged:d})=>i.balanceType==="period_total"?t.jsx(Yn,{sortKey:o,sortOrder:r,onSortOrderChanged:d}):t.jsx(Un,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:l,bookCloseDate:s}),wh=({firstMonthOfFY:e,timeframeTicks:i,timeframe:n,compareMode:o,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:s,bookCloseDate:d,onCompareModeChanged:h,onSortOrderChanged:u})=>{const g=ce(),p=o==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${i[0].currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return t.jsx(hh,{children:i.map((f,x)=>t.jsxs(I.Fragment,{children:[f.balanceType==="this_period_vs_last_period"||f.balanceType==="this_period_vs_last_period_percent"?t.jsx(ph,{children:t.jsx(
|
|
2074
|
+
`,Yn=({sortOrder:e,sortKey:i,onSortOrderChanged:n})=>{const o=()=>{n(dt("totals",e,i),"totals")},r=i==="totals"?e:"ascending";return t.jsx(Kn,{"data-testid":m("period-total-tick"),children:t.jsx(Gn,{"data-testid":m("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(En,{children:[W.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(lt,{selectedForSort:i==="totals",children:r==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]})})})},gh=({sortKey:e="totals",sortOrder:i="ascending",onSortOrderChanged:n,onSortCancel:o})=>{const r=()=>{n(dt("vendor",i,e),"vendor")},l=e==="vendor"?i:"ascending";return t.jsxs(dh,{selectedForSort:e==="vendor",children:[t.jsxs(Jt,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(lt,{selectedForSort:e==="vendor",children:l==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]}),e==="vendor"?t.jsx(Xt,{onClick:o}):null]})},fh=({sortKey:e="totals",sortOrder:i="ascending",onSortOrderChanged:n,onSortCancel:o})=>{const r=()=>{n(dt("account",i,e),"account")},l=e==="account"?i:"ascending",s=M();return t.jsxs(Hn,{selectedForSort:e==="account",windowSize:s,children:[t.jsxs(Jt,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(lt,{selectedForSort:e==="account",children:l==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]}),e==="account"?t.jsx(Xt,{onClick:o}):null]})},xh=({sortKey:e="totals",sortOrder:i="ascending",onSortOrderChanged:n,onSortCancel:o})=>{const r=()=>{n(dt("class",i,e),"class")},l=e==="class"?i:"ascending",s=M();return t.jsxs(Hn,{selectedForSort:e==="class",windowSize:s,children:[t.jsxs(Jt,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(lt,{selectedForSort:e==="class",children:l==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]}),e==="class"?t.jsx(Xt,{onClick:o}):null]})},Un=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:o,bookCloseDate:r})=>{const l=W.getLocalizedStrings().reports,s=r!=null&&o!=null&&(i.balanceType==="default"||i.balanceType==="default_with_percent")?A.getTimeframeTickTag(n,e,i,r,o):void 0,d=s!=null?s==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=Rn(s,n);return t.jsx(Kn,{children:r!=null&&o!=null&&s!=null&&d!=null&&h!=null?t.jsx(Dn,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,tagName:d,infoContent:h,tagType:s}):t.jsx(Gn,{isClickable:!1,children:t.jsx(En,{children:Ie(e,i,n)})})})},mh=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,sortKey:o="totals",sortOrder:r="ascending",dataAvailable:l,bookCloseDate:s,onSortOrderChanged:d})=>i.balanceType==="period_total"?t.jsx(Yn,{sortKey:o,sortOrder:r,onSortOrderChanged:d}):t.jsx(Un,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:l,bookCloseDate:s}),wh=({firstMonthOfFY:e,timeframeTicks:i,timeframe:n,compareMode:o,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:s,bookCloseDate:d,onCompareModeChanged:h,onSortOrderChanged:u})=>{const g=ce(),p=o==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${i[0].currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return t.jsx(hh,{children:i.map((f,x)=>t.jsxs(I.Fragment,{children:[f.balanceType==="this_period_vs_last_period"||f.balanceType==="this_period_vs_last_period_percent"?t.jsx(ph,{children:t.jsx(Qt,{title:p,titleTextStyle:Ft.standardRegular,titleTextAlignment:"flex-end",titleColor:g.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:b=>{b!=="off"&&(b==="compare_mode_amount"||b==="compare_mode_percent"?h?.(b):console.warn("Invalid compare mode option"))}})}):null,f.balanceType==="period_total"?t.jsx(Yn,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,f.balanceType==="default"?t.jsx(uh,{children:t.jsx(Un,{firstMonthOfFY:e,timeframeTick:f,timeframe:n,dataAvailable:s,bookCloseDate:d},x)}):null]},x))})};function yh({backgroundColor:e,isSticky:i,height:n,isCompareModeOn:o,isAccountColumnShown:r,isClassColumnShown:l,sortKey:s,sortOrder:d,firstMonthOfFY:h,timeframe:u,timeframeTicks:g,compareMode:p,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:y}){const $=M(),S=(L,O)=>{y?.(L,O)},B=()=>{y?.("descending","totals")};return t.jsxs(ah,{height:n,bgColor:e,children:[t.jsx(sh,{bgColor:e,windowSize:$,isSticky:i,children:t.jsx(ch,{plHeight:n,windowSize:$,bgColor:e,children:t.jsx(gh,{sortKey:s,sortOrder:d,onSortOrderChanged:S,onSortCancel:B})})}),r?t.jsx(fh,{sortKey:s,sortOrder:d,onSortOrderChanged:S,onSortCancel:B}):null,l?t.jsx(xh,{sortKey:s,sortOrder:d,onSortOrderChanged:S,onSortCancel:B}):null,t.jsx(lh,{children:o===!0?t.jsx(wh,{firstMonthOfFY:h,timeframe:u,sortKey:s,sortOrder:d,timeframeTicks:g,compareMode:p,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:S}):g.map((L,O)=>t.jsx(mh,{firstMonthOfFY:h,timeframeTick:L,timeframe:u,sortKey:s,sortOrder:d,dataAvailable:f,bookCloseDate:x,onSortOrderChanged:S},O))})]})}const dt=(e,i,n)=>e===n?i==="ascending"?"descending":"ascending":"descending",bh=a.div`
|
|
2075
2075
|
display: flex;
|
|
2076
2076
|
flex: 1 1 auto;
|
|
2077
2077
|
max-height: 1px;
|
|
@@ -2151,7 +2151,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2151
2151
|
text-overflow: ellipsis;
|
|
2152
2152
|
text-align: left;
|
|
2153
2153
|
color: ${e=>e.theme.colors.primary};
|
|
2154
|
-
`,Bh=({type:e,balance:i,collapsed:n})=>{const o=n===!0?vh:qn;return t.jsx($h,{children:ae(e)===!0?t.jsx(o,{children:
|
|
2154
|
+
`,Bh=({type:e,balance:i,collapsed:n})=>{const o=n===!0?vh:qn;return t.jsx($h,{children:ae(e)===!0?t.jsx(o,{children:Z(i)}):null})};function Wh({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,title:l,totalBalances:s,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:g}){const p=M();return t.jsxs(jh,{"data-testid":m("total-row-root-container",o),height:r,bgColor:i,windowSize:p,children:[t.jsxs(Sh,{"data-testid":m("total-row-container",o),onClick:()=>u?.(o),children:[t.jsxs(_h,{bgColor:i,windowSize:p,isSticky:n,children:[t.jsx(Lh,{bgColor:i,windowSize:p,children:t.jsx(Ah,{children:l})}),d?t.jsx(Ii,{windowSize:p}):null,h?t.jsx(Ii,{windowSize:p}):null]}),t.jsx(Ch,{children:s.map((f,x)=>t.jsx(Bh,{type:e,balance:f,collapsed:!1},x))})]}),t.jsx(Bt,{isScrolling:g,kind:"vendor_row_separator"})]})}const Oh=a.div`
|
|
2155
2155
|
display: flex;
|
|
2156
2156
|
flex: 1 1 auto;
|
|
2157
2157
|
width: fit-content;
|
|
@@ -2270,7 +2270,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2270
2270
|
`,Hh=a(C)`
|
|
2271
2271
|
color: ${e=>e.theme.colors.hero};
|
|
2272
2272
|
display: none;
|
|
2273
|
-
`,Kh=({balance:e,vendor:i,onVendorNameAndBalanceClick:n})=>{const o=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",r=e?.type==="period_total",l=e?.type==="default_with_null_balance",s=o!==!0&&r===!1&&l===!1&&!A.isOpexByVendorIDNotSpecifiedVendor(i.id);return t.jsx(Ih,{children:t.jsx(Ph,{isClickable:s,onClick:()=>{s===!0&&n(i,e??void 0)},children:
|
|
2273
|
+
`,Kh=({balance:e,vendor:i,onVendorNameAndBalanceClick:n})=>{const o=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",r=e?.type==="period_total",l=e?.type==="default_with_null_balance",s=o!==!0&&r===!1&&l===!1&&!A.isOpexByVendorIDNotSpecifiedVendor(i.id);return t.jsx(Ih,{children:t.jsx(Ph,{isClickable:s,onClick:()=>{s===!0&&n(i,e??void 0)},children:Z(e)})})};function Yh({type:e,backgroundColor:i,isSticky:n,height:o,isScrolling:r,isLastNode:l,vendor:s,balances:d,accountBase:h,classBase:u,isAccountColumnShown:g,isClassColumnShown:p,onVendorNameAndBalanceClick:f}){const x=M(),b=Di(),y=b.loggedInUserRole!=null&&!A.hasInvestorBankerLevelAccess(b.loggedInUserRole),$=A.isOpexByVendorIDNotSpecifiedVendor(s.id),S=y===!0&&s!=null&&!$,B=S?"pointer":"default",L=s.name;return t.jsxs(Oh,{"data-testid":m("vendor-row-root-container",s.id),height:o,bgColor:i,windowSize:x,children:[t.jsxs(Mh,{"data-testid":m("vendor-row-container",s.id),style:{cursor:B},isClickable:S,children:[t.jsx(zh,{"data-testid":m("vendor-row-sticky-container",s.id),isSticky:n,windowSize:x,bgColor:i,children:t.jsxs(Fh,{"data-testid":m("vendor-row-name-container",s.id),windowSize:x,bgColor:i,children:[t.jsxs(Je,{controller:!$,children:[s.logo!=null?t.jsx(It,{photoUrl:s.logo.toString(),styles:{width:N.nameLogoWidth.valuePx(x),height:N.nameLogoHeight.valuePx(x)}}):t.jsx(Pt,{name:L,size:c.sp4}),t.jsx(_e,{"data-testid":m("vendor-row-name",s.id),style:{cursor:B},isClickable:S,onClick:()=>{S===!0&&f(s)},children:L})]}),t.jsx(Je,{controller:$,children:t.jsxs(Gh,{children:[t.jsx(Dh,{children:t.jsx(Rh,{})}),t.jsx(Eh,{className:"hyphen-text",children:W.getLocalizedStrings().common.strings.hyphen}),t.jsx(Hh,{className:"not-specified-text",children:L})]})})]})}),g?t.jsx(Th,{windowSize:x,bgColor:i,children:h!=null?t.jsx(_e,{"data-testid":m("vendor-row-account-name",s.id),title:h.accountName,isClickable:!1,children:h.accountName}):t.jsx(_e,{isClickable:!1,"data-testid":m("vendor-row-account-name",s.id),children:W.getLocalizedStrings().common.strings.hyphen})}):null,p?t.jsx(Vh,{windowSize:x,bgColor:i,children:u!=null?t.jsx(_e,{"data-testid":m("vendor-row-class-name",s.id),title:u.className,isClickable:!1,children:u.className}):t.jsx(_e,{"data-testid":m("vendor-row-class-name",s.id),isClickable:!1,children:W.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(Nh,{children:d.map((O,F)=>t.jsx(Kh,{type:e,balance:O,vendor:s,onVendorNameAndBalanceClick:f},F))})]}),t.jsx(Uh,{isScrolling:r,isLastNode:l})]})}function Uh({isScrolling:e,isLastNode:i}){return i?t.jsx(Bt,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Bt,{isScrolling:e,kind:"vendor_row_separator"})}const qh=(e,i,n,o,r,l)=>{if(e.element.kind!=="timeframe_headers")return null;const s=Pe(e.element.data,e.config.displayOrder),d=s.length>0?s[0].balanceTimeFrame:"month",h=s.map(u=>A.toTimeframeTick(u));return t.jsx(yh,{backgroundColor:r,isSticky:n,height:i,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:e.config.mode==="this_period_vs_period_before"&&h.length>1,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:d,timeframeTicks:h,sortKey:e.config.opexByVendorConfig?.sortKey,sortOrder:e.config.opexByVendorConfig?.sortOrder,dataAvailable:e.config.dataAvailable,bookCloseDate:e.config.bookCloseDate,compareMode:o,onCompareModeChanged:l,onSortOrderChanged:e.config.opexByVendorConfig?.onSortOrderChanged})},Zh=(e,i,n,o,r,l,s)=>{const d=n.element.data,h=n.config.mode==="this_period_vs_period_before",u=h?n.element.numOfBalances+2:n.element.numOfBalances+1,g=$n(d,n.config.displayOrder,u,h);return t.jsx(Wh,{type:i,backgroundColor:s,isSticky:r,treeNodeId:e,height:o,isScrolling:l,totalBalances:g.balances,title:n.element.title,isAccountColumnShown:n.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:n.config.opexByVendorConfig?.isClassColumnShown??!0})},Qh=(e,i,n,o,r,l,s)=>{if(i.element.kind!="vendor_row"||i.element.data==null)return null;const d=i.element.data,h=i.config.mode==="this_period_vs_period_before",u=$n(d,i.config.displayOrder,i.element.numOfBalances,h);return t.jsx(Yh,{type:e,backgroundColor:o,isSticky:r,height:n,isScrolling:l,vendor:d.vendor,accountBase:d.account,classBase:d.classBase,isLastNode:s,balances:u.balances,isAccountColumnShown:i.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:i.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:(g,p)=>{i.config.opexByVendorConfig?.onVendorNameAndBalanceClicked(g,p)}})},Jh=(e,i,n,o)=>{if(e.element.kind!=="loading_in_progress")return null;const r=Pe(e.element.data,e.config.displayOrder).map(l=>A.toTimeframeTick(l));return t.jsx(Yd,{backgroundColor:n,isSticky:o,height:i,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})},Xh=(e,i,n,o)=>{if(e.element.kind!=="title_string_only")return null;const r=Pe(e.element.data,e.config.displayOrder).map(l=>A.toTimeframeTick(l));return t.jsx(Xd,{backgroundColor:n,isSticky:o,height:i,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})};function ei(e,i,n){return eu(i,n,e)}const eu=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.account.balancesInTimeframe,o.compactedAccountsSelector=r=>Pi(r.accounts,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>Pi(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r,o.compactedAccountGroupsSelector=r=>tu(r,o.acGroupBalanceSelector,n,i),o};function Pi(e,i,n){switch(n){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>iu((i(o)?.balances??[]).concat(i(o)?.additionalBalances??[]))||Zn((i(o)?.balances??[]).concat(i(o)?.additionalBalances??[])));case"filter_forecast_nil_balances":return e.filter(o=>zi(i(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>zi(i(o)?.balances??[]))}}function tu(e,i,n,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Zn(i(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>nu(i(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>ou(i(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(i(r)?.balances??[]).length>0)}}function Zn(e){let i=!1;if(e!=null){for(const n of e)if(n.balance.amount!==0){i=!0;break}}return i}function iu(e){let i=!1;if(e!=null){for(const n of e)if(n.totalBalance!=null&&n.totalBalance.amount!==0){i=!0;break}}return i}function nu(e){let i=!1;if(e!=null){for(const n of e)if(n.forecast!=null&&n.forecast.amount!==0){i=!0;break}}return i}function ou(e){let i=!1;if(e!=null){for(const n of e)if(n.forecast!=null&&n.forecast.amount!==0||n.balance!=null&&n.balance.amount!==0){i=!0;break}}return i}function zi(e){let i=!1;if(e!=null){for(const n of e)if(n.totalForecast!=null&&n.totalForecast.amount!==0||n.totalBalance!=null&&n.totalBalance.amount!==0){i=!0;break}}return i}function Qn(e,i,n=-1,o=!0){const r=n!==-1;let l=[],s=-1;if(e==null||e.balances.length===0)return r===!0&&(l=ru([],n)),{balances:l,thisPeriodIndex:s};let d=e.balances;return i==="ascending_date"?s=e.balances.length-1:(s=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:s}}function ru(e,i){return e.length>0?e:Vi(Array(i),null)}const au=a.div`
|
|
2274
2274
|
display: flex;
|
|
2275
2275
|
flex: 1 1 auto;
|
|
2276
2276
|
width: fit-content;
|
|
@@ -2339,7 +2339,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2339
2339
|
&:hover {
|
|
2340
2340
|
color: inherit;
|
|
2341
2341
|
}
|
|
2342
|
-
`,pu=({type:e,balance:i,collapsed:n,isActualVsForecastOn:o,compareMode:r})=>{const l=n===!0?du:Jn;return t.jsxs(cu,{children:[ae(e)===!0||o?t.jsx(l,{children:
|
|
2342
|
+
`,pu=({type:e,balance:i,collapsed:n,isActualVsForecastOn:o,compareMode:r})=>{const l=n===!0?du:Jn;return t.jsxs(cu,{children:[ae(e)===!0||o?t.jsx(l,{children:Z(i)}):t.jsx(l,{children:J(i)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(i)}),t.jsx(l,{children:r==="compare_mode_percent"?de(i):he(i)})]}):null]})};function gu({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,leftChevron:l,accountGroupName:s,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:g,isOpen:p,isLeaf:f,isLastNode:x,onClick:b}){const y=ce(),$=M(),S=!f,B=S?"pointer":"default",L=l==="collapsed",O=l==="hidden",F=O===!0?w[6]:w[4],T=L===!0?uu:Xn,Y=L===!0?Ri:Gi,H=L===!0?y.colors.hero:y.colors.primary;return t.jsxs(au,{height:r,bgColor:i,"data-testid":m("pandl-report-account-group-row-root-container",o),children:[t.jsxs(lu,{"data-testid":m("pandl-report-account-group-row-container",o),style:{cursor:B},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs(hu,{bgColor:i,isSticky:n,windowSize:$,children:[O===!1?t.jsx(Y,{color:H,style:{width:w[3],height:w[3]}}):null,t.jsx(T,{style:{marginLeft:F},children:s})]}):null,xe(e)===!0?t.jsx(su,{children:d.map((U,Q)=>t.jsx(pu,{type:e,accountGroupName:s,balance:U,isActualVsForecastOn:h,compareMode:u,collapsed:L},Q))}):null]}),t.jsx(fu,{isScrolling:g,type:e,isLeaf:f,isLastNode:x,isOpen:p})]})}function fu({isScrolling:e,type:i,isLastNode:n,isOpen:o}){let r="ac_group_row_separator";return n&&!o?r="section_row_separator":o&&(r=ge(i)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(me,{isScrolling:e,kind:r})}const xu=a.div`
|
|
2343
2343
|
display: flex;
|
|
2344
2344
|
flex: 1 1 auto;
|
|
2345
2345
|
width: fit-content;
|
|
@@ -2408,7 +2408,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2408
2408
|
&:hover {
|
|
2409
2409
|
color: inherit;
|
|
2410
2410
|
}
|
|
2411
|
-
`,Su=({type:e,balance:i,collapsed:n,isActualVsForecastOn:o,compareMode:r})=>{const l=n===!0?bu:eo;return t.jsxs(yu,{children:[ae(e)===!0||o?t.jsx(l,{children:
|
|
2411
|
+
`,Su=({type:e,balance:i,collapsed:n,isActualVsForecastOn:o,compareMode:r})=>{const l=n===!0?bu:eo;return t.jsxs(yu,{children:[ae(e)===!0||o?t.jsx(l,{children:Z(i)}):t.jsx(l,{children:J(i)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(i)}),t.jsx(l,{children:r==="compare_mode_percent"?de(i):he(i)})]}):null]})};function Cu({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,leftChevron:l,accountGroupName:s,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:g,isOpen:p,isLeaf:f,isLastNode:x,onClick:b}){const y=M(),$=ce(),S=!f,B=S?"pointer":"default",L=l==="collapsed",O=L===!0?ju:to,[F,T]=I.useState(!1),Y=s.length>0?s.substring(0,1).toUpperCase():"";return t.jsxs(xu,{"data-testid":m("pandl-account-group-row-root-container",o),height:r,bgColor:i,children:[t.jsxs(mu,{"data-testid":m("pandl-account-group-row-container",o),onMouseOver:()=>T(!0),onMouseLeave:()=>T(!1),style:{cursor:B},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs(ku,{bgColor:i,isSticky:n,windowSize:y,children:[t.jsx(be,{showCollapsedIcon:L,showIcon:F&&S,firstLetter:Y,color:_($.colors.primary)}),t.jsx(O,{children:s})]}):null,xe(e)===!0?t.jsx(wu,{children:d.map((H,U)=>t.jsx(Su,{type:e,accountGroupName:s,balance:H,isActualVsForecastOn:h,compareMode:u,collapsed:L},U))}):null]}),t.jsx($u,{isScrolling:g,type:e,isLeaf:f,isLastNode:x,isOpen:p})]})}function $u({isScrolling:e,type:i,isLastNode:n,isOpen:o}){let r="ac_group_row_separator";return n&&!o?r="section_row_separator":o&&(r=ge(i)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(me,{isScrolling:e,kind:r})}const vu=a.div`
|
|
2412
2412
|
display: flex;
|
|
2413
2413
|
flex: 1 1 auto;
|
|
2414
2414
|
width: fit-content;
|
|
@@ -2472,7 +2472,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2472
2472
|
&:hover {
|
|
2473
2473
|
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2474
2474
|
}
|
|
2475
|
-
`,Ou=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o,account:r,onAccountBalanceClick:l})=>{const s=i?.type==="this_period_vs_last_period"||i?.type==="this_period_vs_last_period_percent",d=r!=null&&i!=null&&l!=null&&s!==!0;return t.jsxs(Au,{"data-testid":m("account-row-balance-element",e),children:[ae(e)===!0||n?t.jsx(Ye,{"data-testid":m("account-row-balance-actual",e),isClickable:d,onClick:()=>{d===!0&&r!=null&&i!=null&&l?.(r,i)},children:
|
|
2475
|
+
`,Ou=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o,account:r,onAccountBalanceClick:l})=>{const s=i?.type==="this_period_vs_last_period"||i?.type==="this_period_vs_last_period_percent",d=r!=null&&i!=null&&l!=null&&s!==!0;return t.jsxs(Au,{"data-testid":m("account-row-balance-element",e),children:[ae(e)===!0||n?t.jsx(Ye,{"data-testid":m("account-row-balance-actual",e),isClickable:d,onClick:()=>{d===!0&&r!=null&&i!=null&&l?.(r,i)},children:Z(i)}):t.jsx(Ye,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:J(i)}),n?t.jsxs(t.Fragment,{children:[t.jsx(Ye,{isClickable:!1,"data-testid":m("account-row-balance-forecast",e),children:J(i)}),t.jsx(Ye,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?de(i):he(i)})]}):null]})};function Mu({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,accountBalances:l,isActualVsForecastOn:s,compareMode:d,isScrolling:h,isLeaf:u,isLastNode:g,account:p,onAccountBalanceClick:f}){const x=M(),{common:{strings:{hyphen:b}}}=W.getLocalizedStrings(),y=p?.accountDescription?p.accountDescription:b,$=p?.accountName?p.accountName:y;return t.jsxs(vu,{height:r,bgColor:i,"data-testid":m("account-row-root-container",o),children:[t.jsxs(_u,{"data-testid":m("account-row-container",o),children:[ge(e)===!0?t.jsx(Bu,{isSticky:n,windowSize:x,bgColor:i,children:t.jsx(Wu,{isClickable:!1,title:$,children:$})}):null,xe(e)===!0?t.jsx(Lu,{children:l.map((S,B)=>t.jsx(Ou,{type:e,isActualVsForecastOn:s,compareMode:d,balance:S,account:p,onAccountBalanceClick:f==null?void 0:(L,O)=>{f(o,L,O)}},B))}):null]}),t.jsx(Nu,{isScrolling:h,type:e,isLeaf:u,isLastNode:g})]})}function Nu({isScrolling:e,isLastNode:i,type:n}){const o=i?"ac_group_row_separator":ge(n)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(me,{isScrolling:e,kind:o})}const Iu=a.div`
|
|
2476
2476
|
display: flex;
|
|
2477
2477
|
flex: 1 1 auto;
|
|
2478
2478
|
width: fit-content;
|
|
@@ -2541,7 +2541,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2541
2541
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
2542
2542
|
border-radius: ${c.sp1};
|
|
2543
2543
|
margin: 0 ${c.sp5} 0 ${c.sp3};
|
|
2544
|
-
`,Gu=({metadata:e,depth:i})=>i===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(ko,{}):t.jsx(jo,{}),Eu=({type:e,balance:i,color:n,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(Fu,{children:[ae(e)===!0||o?t.jsx(Ue,{style:{color:n},children:
|
|
2544
|
+
`,Gu=({metadata:e,depth:i})=>i===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(ko,{}):t.jsx(jo,{}),Eu=({type:e,balance:i,color:n,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(Fu,{children:[ae(e)===!0||o?t.jsx(Ue,{style:{color:n},children:Z(i)}):t.jsx(Ue,{style:{color:n},children:J(i)}),o?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{style:{color:n},children:J(i)}),t.jsx(Ue,{style:{color:n},children:r==="compare_mode_percent"?de(i):he(i)})]}):null]});function Hu({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,className:l,classCode:s,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:g,isScrolling:p,isOpen:f,isLeaf:x,metadata:b,showClassAccountNumber:y,onClick:$,depth:S}){const B=M(),L=ce(),O=!x,F=O?"pointer":"default",T=L.colors.primary,Y=l.length>0?l.substr(0,1).toUpperCase():"",[H,U]=I.useState(!1),Q=b.classAncestorMetadata??[];return t.jsxs(Iu,{"data-testid":m("class-row-root-container",o),height:r,bgColor:i,children:[t.jsxs(Pu,{"data-testid":m("class-row-container",o),style:{cursor:F},onClick:()=>$?.(o),onMouseOver:()=>U(!0),onMouseLeave:()=>U(!1),children:[ge(e)===!0?t.jsxs(Tu,{isSticky:n,windowSize:B,bgColor:i,children:[t.jsx(Rr,{name:l,ancestorMetadata:Q,depth:S}),t.jsx(Gu,{metadata:Q[S],depth:S}),t.jsx(be,{color:_(T),showCollapsedIcon:!f,showIcon:H&&O,firstLetter:Y,showTreeLine:g}),t.jsx(Vu,{children:t.jsx(Du,{style:{color:T},children:l})}),H===!0&&y===!0&&s!==void 0&&t.jsx(Ru,{children:s})]}):null,xe(e)===!0?t.jsx(zu,{children:d.map((ue,X)=>t.jsx(Eu,{type:e,sectionName:l,balance:ue,isActualVsForecastOn:h,compareMode:u,color:T},X))}):null]}),t.jsx(Ku,{isScrolling:p,isLeaf:x,isOpen:f})]})}function Ku({isScrolling:e,isLeaf:i,isOpen:n}){return i||!n?t.jsx(me,{isScrolling:e,kind:"section_row_separator"}):null}a.div`
|
|
2545
2545
|
display: flex;
|
|
2546
2546
|
flex: 1 1 auto;
|
|
2547
2547
|
width: fit-content;
|
|
@@ -2618,7 +2618,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2618
2618
|
flex: 1 0 auto;
|
|
2619
2619
|
flex-direction: row;
|
|
2620
2620
|
justify-content: flex-end;
|
|
2621
|
-
`,
|
|
2621
|
+
`,Zu=a.div`
|
|
2622
2622
|
display: flex;
|
|
2623
2623
|
flex-direction: row;
|
|
2624
2624
|
justify-content: flex-start;
|
|
@@ -2628,7 +2628,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2628
2628
|
min-width: ${k.balanceWidth};
|
|
2629
2629
|
text-align: right;
|
|
2630
2630
|
margin-left: ${k.balanceLeftMargin};
|
|
2631
|
-
`,
|
|
2631
|
+
`,Qu=a.div`
|
|
2632
2632
|
display: flex;
|
|
2633
2633
|
flex-direction: row;
|
|
2634
2634
|
flex-shrink: 2;
|
|
@@ -2653,7 +2653,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2653
2653
|
text-overflow: ellipsis;
|
|
2654
2654
|
text-align: left;
|
|
2655
2655
|
margin-left: ${c.sp2};
|
|
2656
|
-
`,Xu=({type:e,balance:i,color:n,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(
|
|
2656
|
+
`,Xu=({type:e,balance:i,color:n,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(Zu,{children:[ae(e)===!0||o?t.jsx(qe,{style:{color:n},children:Z(i)}):t.jsx(qe,{style:{color:n},children:J(i)}),o?t.jsxs(t.Fragment,{children:[t.jsx(qe,{style:{color:n},children:J(i)}),t.jsx(qe,{style:{color:n},children:r==="compare_mode_percent"?de(i):he(i)})]}):null]});function ti({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,sectionName:l,sectionBalances:s,isActualVsForecastOn:d,compareMode:h,sectionColor:u,isScrolling:g,isOpen:p,isLeaf:f,onClick:x}){const b=M(),y=!f,$=y?"pointer":"default",S=l.length>0?l.substring(0,1).toUpperCase():"",[B,L]=I.useState(!1);return t.jsxs(Yu,{"data-testid":m("section-row",o),height:r,bgColor:i,children:[t.jsxs(Uu,{"data-testid":m("section-row-container",o),style:{cursor:$},onClick:()=>x?.(o),onMouseOver:()=>L(!0),onMouseLeave:()=>L(!1),children:[ge(e)===!0?t.jsxs(Qu,{isSticky:n,windowSize:b,bgColor:i,children:[t.jsx(be,{color:_(u),showCollapsedIcon:!p,showIcon:B&&y,firstLetter:S}),t.jsx(Ju,{style:{color:u},children:l})," "]}):null,xe(e)===!0?t.jsx(qu,{children:s.map((O,F)=>t.jsx(Xu,{type:e,sectionName:l,balance:O,isActualVsForecastOn:d,compareMode:h,color:u},F))}):null]}),t.jsx(ep,{isScrolling:g,isLeaf:f,isOpen:p})]})}function ep({isScrolling:e,isLeaf:i,isOpen:n}){return i||!n?t.jsx(me,{isScrolling:e,kind:"section_row_separator"}):null}const tp=a.div`
|
|
2657
2657
|
display: flex;
|
|
2658
2658
|
flex: 1 1 auto;
|
|
2659
2659
|
width: fit-content;
|
|
@@ -2677,7 +2677,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2677
2677
|
display: flex;
|
|
2678
2678
|
flex-direction: row;
|
|
2679
2679
|
justify-content: flex-start;
|
|
2680
|
-
`,
|
|
2680
|
+
`,Ze=a(C)`
|
|
2681
2681
|
user-select: none;
|
|
2682
2682
|
min-width: ${k.balanceWidth};
|
|
2683
2683
|
max-width: ${k.balanceWidth};
|
|
@@ -2716,7 +2716,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2716
2716
|
clear: both;
|
|
2717
2717
|
display: inline-block;
|
|
2718
2718
|
text-align: left;
|
|
2719
|
-
`,lp=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o,account:r,showTotal:l,onAccountBalanceClick:s})=>{const d=i!=null?A.isCalculatedBalanceType(i?.type):!1,h=r!=null&&i!=null&&s!=null&&d!==!0,u=l===!0?Yi(i):
|
|
2719
|
+
`,lp=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o,account:r,showTotal:l,onAccountBalanceClick:s})=>{const d=i!=null?A.isCalculatedBalanceType(i?.type):!1,h=r!=null&&i!=null&&s!=null&&d!==!0,u=l===!0?Yi(i):Z(i),g=l===!0?bt(i):J(i),p=l===!0?Ui(i):de(i),f=l===!0?qi(i):he(i);return t.jsxs(op,{"data-testid":m("account-row-balance-element",e),children:[ae(e)===!0||n?t.jsx(Ze,{"data-testid":m("account-row-balance-actual",e),isClickable:h,onClick:x=>{x.stopPropagation(),h===!0&&r!=null&&i!=null&&s?.(r,i)},children:u}):t.jsx(Ze,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:g}),n?t.jsxs(t.Fragment,{children:[t.jsx(Ze,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:g}),t.jsx(Ze,{"data-testid":m("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?p:f})]}):null]})};function sp({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,classDepth:l,accountBalances:s,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:g,noMarginForAccount:p,isLeaf:f,isOpen:x,isLastNode:b,account:y,onAccountBalanceClick:$,onClick:S}){const B=M(),L=y!=null?y.id.length-1:0,O=y?.hasSiblings??!1,F=y!=null?y.children.length!==0:!1,T=u,{common:{strings:{empty:Y}}}=W.getLocalizedStrings(),H=y?.account.accountDescription?y.account.accountDescription:Y,U=y?.account.accountName?y.account.accountName:H;return t.jsxs(tp,{"data-testid":m("sub-account-row",o),height:r,bgColor:i,children:[t.jsxs(ip,{"data-testid":m("sub-account-row-container",o),onClick:()=>S?.(o),children:[t.jsx(rp,{isClickable:F,isSticky:n,windowSize:B,bgColor:i,containerHeight:r,children:t.jsx(ap,{title:U,children:t.jsx(en,{displayName:U,depth:L,classDepth:l,isLastNode:b,hasChildren:F,hasSiblings:O,isLeaf:f,collapsed:!x,subAccountAnscestorMetadata:T.subAccountAncestorMetadata,classAnscestorMetadata:T.classAncestorMetadata??[],noMarginForAccount:p})})}),xe(e)===!0?t.jsx(np,{children:s.map((Q,ue)=>t.jsx(lp,{type:e,isActualVsForecastOn:d,compareMode:h,balance:Q,account:y?.account,showTotal:!x,onAccountBalanceClick:$==null?void 0:(X,oe)=>{$(o,X,oe)}},ue))}):null]}),t.jsx(cp,{isScrolling:g,isLeaf:f,isOpen:x,depth:L,isSticky:n,classDepth:l,noMarginForAccount:p})]})}function cp({isScrolling:e,depth:i,isOpen:n,isLeaf:o,isSticky:r,classDepth:l,noMarginForAccount:s}){return!n||o===!0?t.jsx(me,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:i,isSticky:r,classDepth:l,noMarginForAccount:s}}):null}const dp=[10,14,20,20,20],hp=a.div`
|
|
2720
2720
|
display: flex;
|
|
2721
2721
|
flex: 1 1 auto;
|
|
2722
2722
|
width: fit-content;
|
|
@@ -2732,7 +2732,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2732
2732
|
justify-content: flex-start;
|
|
2733
2733
|
align-items: center;
|
|
2734
2734
|
`,pp=a.div`
|
|
2735
|
-
width: ${e=>
|
|
2735
|
+
width: ${e=>Zi.emptyLeftContainer.valuePx(e.windowSize)};
|
|
2736
2736
|
height: ${c.sp1};
|
|
2737
2737
|
`,gp=a.div`
|
|
2738
2738
|
display: flex;
|
|
@@ -2743,7 +2743,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2743
2743
|
display: flex;
|
|
2744
2744
|
flex-direction: row;
|
|
2745
2745
|
justify-content: flex-start;
|
|
2746
|
-
`,
|
|
2746
|
+
`,Qe=a(C)`
|
|
2747
2747
|
user-select: none;
|
|
2748
2748
|
min-width: ${k.balanceWidth};
|
|
2749
2749
|
max-width: ${k.balanceWidth};
|
|
@@ -2778,7 +2778,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2778
2778
|
margin-left: ${e=>dp[e.depth]}px;
|
|
2779
2779
|
color: ${e=>e.theme.colors.primary};
|
|
2780
2780
|
width: ${e=>k.titleWidth.value(e.windowSize)-e.depth*80}px;
|
|
2781
|
-
`,wp=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o})=>t.jsxs(fp,{"data-testid":m("sub-account-row-balance-element",e),children:[ae(e)===!0||n?t.jsx(
|
|
2781
|
+
`,wp=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o})=>t.jsxs(fp,{"data-testid":m("sub-account-row-balance-element",e),children:[ae(e)===!0||n?t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-actual",e),isClickable:!1,children:Yi(i)}):t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:bt(i)}),n?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:bt(i)}),t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?Ui(i):qi(i)})]}):null]});function yp({type:e,backgroundColor:i,isSticky:n,height:o,classDepth:r,accountName:l,accountBalances:s,account:d,noMarginForAccount:h,isActualVsForecastOn:u,compareMode:g,isScrolling:p,metadata:f}){const x=M(),b=W.getLocalizedStrings().reports.sections,y=d!=null?d.id.length-1:0,$=f;return t.jsxs(hp,{height:o,bgColor:i,children:[t.jsxs(up,{children:[t.jsxs(xp,{isSticky:n,windowSize:x,bgColor:i,containerHeight:o,children:[r!=null?t.jsx(Ji,{ancestorMetadata:$.classAncestorMetadata??[],depth:r,name:l}):h===!1?t.jsx(pp,{windowSize:x}):null,t.jsx(Xi,{ancestorMetadata:$.subAccountAncestorMetadata,depth:y,name:l}),t.jsx(mp,{"data-testid":m("sub-account-row-name",e),isClickable:!1,title:l,depth:y,windowSize:x,children:b.totalPrefix+" "+l})]}),xe(e)===!0?t.jsx(gp,{children:s.map((S,B)=>t.jsx(wp,{type:e,isActualVsForecastOn:u,compareMode:g,balance:S},B))}):null]}),t.jsx(bp,{isScrolling:p,nestingLevel:y,isSticky:n,classDepth:r,noMarginForAccount:h})]})}function bp({isScrolling:e,nestingLevel:i,isSticky:n,classDepth:o,noMarginForAccount:r}){return t.jsx(me,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:i,isSticky:n,classDepth:o,noMarginForAccount:r}})}const kp=a.div`
|
|
2782
2782
|
user-select: none;
|
|
2783
2783
|
display: flex;
|
|
2784
2784
|
flex: 1 1 auto;
|
|
@@ -2875,7 +2875,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2875
2875
|
`,Ap=a.div`
|
|
2876
2876
|
max-height: 54px;
|
|
2877
2877
|
min-height: 54px;
|
|
2878
|
-
`,oo=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:o,bookCloseDate:r})=>{const l=W.getLocalizedStrings().reports,s=r!=null&&o!=null&&(i.balanceType==="default"||i.balanceType==="default_with_percent")?A.getTimeframeTickTag(n,e,i,r,o):void 0,d=s!=null?s==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=Rn(s,n);return t.jsx(Ap,{children:r!=null&&o!=null&&s!=null&&d!=null&&h!=null?t.jsx(Dn,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,tagName:d,infoContent:h,tagType:s}):t.jsx(io,{isActualVsForecastOn:!1,children:t.jsx(no,{children:Ie(e,i,n)})})})},Bp=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:s,onCompareModeChanged:d})=>{const h=W.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${i.currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(Lp,{isActualVsForecastOn:o,children:[t.jsx(io,{isActualVsForecastOn:o,children:t.jsx(no,{children:Ie(e,i,n)})}),t.jsxs(Cp,{isActualVsForecastOn:o,children:[t.jsx(yt,{children:h.actual}),t.jsx(yt,{children:h.forecast}),t.jsx(yt,{children:t.jsx(Zt,{title:u,titleTextStyle:Ft.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:g=>{g!=="off"?d?.(g):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(oo,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:l,bookCloseDate:s})},Wp=({firstMonthOfFY:e,timeframeTicks:i,timeframe:n,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:s})=>{const d=ce(),h=o==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${i[0].currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return t.jsx($p,{children:i.map((u,g)=>t.jsx(I.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(_p,{children:t.jsx(Zt,{title:h,titleTextStyle:Ft.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:p=>{p!=="off"&&(p==="compare_mode_amount"||p==="compare_mode_percent"?s?.(p):console.warn("Invalid compare mode option"))}})}):t.jsx(vp,{children:t.jsx(oo,{firstMonthOfFY:e,timeframeTick:u,timeframe:n,dataAvailable:r,bookCloseDate:l},g)})},g))})};function Op({type:e,backgroundColor:i,isSticky:n,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}){const x=M();return t.jsxs(kp,{height:o,bgColor:i,children:[ge(e)===!0?t.jsx(Sp,{isSticky:n,windowSize:x,bgColor:i,children:" . "}):null,t.jsx(jp,{children:l===!0?t.jsx(Wp,{firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}):h.map((b,y)=>t.jsx(Bp,{firstMonthOfFY:s,timeframeTick:b,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f},y))})]})}const ht=(e,i,n,o,r,l,s,d,h,u,g)=>{if(n.element.kind!="ac_report"||n.element.data==null)return null;const p=n.element.data,f=A.isDashboardClassesViewReport(n.config.reportId)===!0||A.isPAndLClassesViewReport(n.config.reportId)===!0?_n("no_filter",n.config.filterAccountsWithNilBalances):nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),x=te(f.acBalanceSelector(p),n.config.displayOrder,n.element.numOfBalances);return t.jsx(Mu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:x.balances,isScrolling:s,isLeaf:d,isLastNode:h,account:p,onAccountBalanceClick:g==null?void 0:(b,y,$)=>{g?.(b,y,$)}})},ze=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_subaccount"||n.element.data==null)return null;const f=n.element.data,x=ei("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=Zn(x.acBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,$=n.config.reportId==="operating_expenses";return t.jsx(sp,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",classDepth:y,compareMode:g,accountBalances:b.balances,isScrolling:s,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:n.element.metadata,onClick:p,noMarginForAccount:$,onAccountBalanceClick:p==null?void 0:(S,B,L)=>{p?.(S,B,L)}})},ut=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_group_report"||n.element.data==null)return null;const f=n.element.data,x=nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances);return t.jsx(gu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},ii=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_group_subaccount"||n.element.data==null)return null;const f=n.element.data,x=ei("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances);return t.jsx(Cu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},ni=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section"||n.element.data==null)return null;const f=Ot(n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(ti,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},pt=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section_with_ac_only"||n.element.data==null)return null;const f=Ot(n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(ti,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},oi=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="calculated_section"||n.element.data==null)return null;const f=Ot(n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(ti,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},Fe=(e,i,n,o,r,l,s,d,h)=>{if(i.element.kind!="ac_subentity_total")return null;const u=i.element.data,g=ei("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),p=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=Zn(g.acBalanceSelector(u),i.config.displayOrder,i.element.numOfBalances),x=i.config.reportId==="operating_expenses"||i.config.reportId==="operating_expenses_by_classes";return t.jsx(yp,{type:e,backgroundColor:o,isSticky:r,height:n,accountName:u.account.accountName,account:u,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:x,isLeaf:s,isLastNode:d,metadata:i.element.metadata,classDepth:p})},Te=(e,i,n,o,r,l,s,d)=>{if(n.element.kind!=="timeframe_headers"&&n.element.kind!=="timeframe_headers_with_forecast")return null;const h=Pe(n.element.data,n.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",g=h.map(p=>A.toTimeframeTick(p));return t.jsx(Op,{treeNodeId:e,backgroundColor:r,isSticky:l,type:i,height:o,isActualVsForecastOn:n.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:n.config.mode==="this_period_vs_period_before"&&g.length>1,firstMonthOfFY:n.config.firstMonthOfFY,timeframe:u,timeframeTicks:g,compareMode:s,dataAvailable:n.config.dataAvailable,bookCloseDate:n.config.bookCloseDate,onCompareModeChanged:d})},ro=(e,i,n,o,r,l,s,d,h,u,g,p,f)=>{if(n.element.kind!="class"||n.element.data==null)return null;const x=n.element.data,b=te(x.childrenBalancesTotal,n.config.displayOrder,n.element.numOfBalances),y=g>1;return t.jsx(Hu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,className:n.element.title,classCode:n.element.data.class.accountingClassNumber,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",depth:x.id.length-1,compareMode:p,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,hasChildren:x.children.length>0,isLastNode:u,isSubClass:y,showClassAccountNumber:n.config.showClassAccountNumber,onClick:$=>{f?.($)},metadata:n.element.metadata})},Mp=(e,i,n)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ln,{height:i,backgroundColor:n,title:e.element.title,numOfBalances:e.element.numOfBalances}),Np=(e,i,n)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Bn,{height:i,backgroundColor:n,numOfBalances:e.element.numOfBalances}),Fi=e=>{const{height:i,data:{reportElementData:n,id:o,treeKind:r,isLeaf:l,isLastNode:s,nestingLevel:d,isFirstNode:h},isOpen:u,style:g,setOpen:p,isScrolling:f}=e,x=($,S,B)=>{const L=l?u:!u;!l&&B==null&&(p(!u),e.onNodeCollapseToggled?.($,!u)),e.onNodeClick?.($,L,S,B)},b=e.treeNodePadding?.left,y=e.treeNodePadding?.right;return t.jsx("div",{style:{...g,width:"auto",minWidth:"100%",paddingLeft:b,paddingRight:y},children:t.jsx(ao,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:n,height:i,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:s,isFirstNode:h,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick!=null||!l?x:void 0,compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},o)})},ao=e=>e.treeKind==="name_only"?t.jsx(Vp,{...e}):A.isAgingReport(e.reportElementData.config.reportId)?t.jsx(Rp,{...e}):A.isOpExByVendorReport(e.reportElementData.config.reportId)===!0?t.jsx(Dp,{...e}):A.isPAndLClassesViewReport(e.reportElementData.config.reportId)===!0?t.jsx(Ip,{...e}):A.isPAndLReport(e.reportElementData.config.reportId)===!0?t.jsx(Pp,{...e}):A.isDashboardClassesViewReport(e.reportElementData.config.reportId)===!0?t.jsx(zp,{...e}):A.isDashboardReport(e.reportElementData.config.reportId)===!0?t.jsx(Fp,{...e}):A.isCashFlowOrBalanceSheetReport(e.reportElementData.config.reportId)===!0?t.jsx(Tp,{...e}):A.isFluxAnalysisOpExReport(e.reportElementData.config.reportId)===!0?t.jsx(Gp,{...e}):A.isAccountReconReport(e.reportElementData.config.reportId)===!0?t.jsx(Ep,{...e}):null,Ip=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,p,f);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,p,f);case"section":return ni(e,i,n,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return oi(e,i,n,o,r,l,s,u,d,h,p,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,p,x);case"class":return ro(e,i,n,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,p,f);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,p);case"headers_loading_in_progress":return Np(n,o,r);case"loading_in_progress":return Mp(n,o,r);default:return null}},Pp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,g,p);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return ii(e,i,n,o,r,l,s,u,d,h,g,p);case"section":return ni(e,i,n,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return oi(e,i,n,o,r,l,s,u,d,h,g,p);case"title_string_only":return null;case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,g,f);default:return null}},zp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,p,f);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,p,f);case"section":return Mn(e,i,n,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return Nn(e,i,n,o,r,l,s,u,d,h,p,f);case"title_string_only":return Ht(e,i,n,o,r,l,s,u,d,h,p,f);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,p,x);case"class":return ro(e,i,n,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,p,f);case"total":return In(e,i,n,o,r,l,p,d);case"headers_loading_in_progress":return Bs(n,o,r);case"loading_in_progress":return As(n,o,r);default:return null}},Fp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(n.element.kind){case"ac_report":return vs(e,i,n,o,r,l,s,d,h,g,p);case"ac_group_report":return _s(e,i,n,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return ii(e,i,n,o,r,l,s,u,d,h,g,p);case"section":return Mn(e,i,n,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return Ls(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return Nn(e,i,n,o,r,l,s,u,d,h,g,p);case"title_string_only":return Ht(e,i,n,o,r,l,s,u,d,h,g,p);case"total":return In(e,i,n,o,r,l,g,d);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,g,f);default:return null}},Tp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,g,p);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,g,p);case"section":return ni(e,i,n,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section":return oi(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section_type1":return xl(e,n,o,r,l,s,h);case"title_string_only":return Ht(e,i,n,o,r,l,s,u,d,h,g,p);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,g,f);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return ii(e,i,n,o,r,l,s,u,d,h,g,p);default:return null}},Vp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:g})=>{switch(n.element.kind){case"checkbox_and_name_only":return Vd(e,i,n,o,r,l,s,u,d,h,g);default:return null}},Dp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(n.element.kind){case"loading_in_progress":case"spacer_row":return Jh(n,o,r,l);case"timeframe_headers":return qh(n,o,l,h,r,u);case"total":return Qh(e,i,n,o,l,s,r);case"vendor_row":return Zh(i,n,o,r,l,s,d);case"title_string_only":return Xh(n,o,r,l);default:return null}},Rp=({id:e,treeKind:i,reportElementData:n,height:o,isOpen:r,isSticky:l,isScrolling:s,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:g}=n;switch(n.element.kind){case"spacer_row":return null;case"timeframe_headers":return Aa(n,o,h,l,g.agingReportConfig?.sortKey,g.agingReportConfig?.sortOrder,g.agingReportConfig?.onSortOrderChanged);case"total":return Oa(i,n,o,h,l);case"aging_report_row":return Ba(e,n,o,r,l,d,s,h,g.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Wa(n,o,l,s,h);default:return null}},Gp=({id:e,reportElementData:i,height:n,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:s,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:g,nodeClickHandler:p,hoveredParentIdProps:f})=>{switch(i.element.kind){case"flux_vendor_account_class_row":return vd(e,i,o,r,l,s,d,f,g);case"flux_vendor_row":return _d(e,i,o,r,l,u,s,d,h,f,p);case"section":return Ld(e,i,n,o,r,l,u,s,d,p);case"timeframe_headers":return Ad(i,n,r);case"total":return Bd(i,n);case"loading_in_progress":return Wd(i);case"headers_loading_in_progress":return Od(i);default:return null}},Ep=({reportElementData:e,height:i,isSticky:n,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return Br(e,n);case"loading_in_progress":return Ar();case"total":return Wr(e,i,n);case"section":return Lr();case"title_string_only":return Or(e,i);case"ac_group_report":return Mr(e,i,o);default:return null}};function Ti(e,i,n,o){return{data:{defaultHeight:ri(e.reportElementData.config.reportId,e.reportElementData.element.kind,e.isFirstNode),id:e.id,isLeaf:e.children.length===0,isFirstNode:e.isFirstNode??!1,isLastNode:e.isLastNode,isOpenByDefault:o??Hp(e.reportElementData.config.reportId,e.reportElementData.element.kind,n,e.reportElementData.config.reportFormat),nestingLevel:n,treeKind:i,reportElementData:e.reportElementData},treeKind:i,nestingLevel:n,node:e}}function ri(e,i,n){return A.isPAndLReport(e)===!0?Nr(i):A.isDashboardReport(e)===!0||A.isDashboardClassesViewReport(e)===!0?Dl(i):A.isAgingReport(e)?Kr(i):A.isAccountReconReport(e)?it(i):A.isOpExByVendorReport(e)?Dd(i):A.isFluxAnalysisOpExReport(e)?zn(i,n):Qa(i)}function Hp(e,i,n,o){return A.isPAndLReport(e)?Ir(i,o,n):A.isDashboardReport(e)||A.isDashboardClassesViewReport(e)===!0?Rl(i,o):A.isAgingReport(e)?Yr():A.isOpExByVendorReport(e)?Rd():A.isFluxAnalysisOpExReport(e)?Rs(i):A.isAccountReconReport(e)?Mo():Za(i,o)}const Kp=a.div`
|
|
2878
|
+
`,oo=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:o,bookCloseDate:r})=>{const l=W.getLocalizedStrings().reports,s=r!=null&&o!=null&&(i.balanceType==="default"||i.balanceType==="default_with_percent")?A.getTimeframeTickTag(n,e,i,r,o):void 0,d=s!=null?s==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=Rn(s,n);return t.jsx(Ap,{children:r!=null&&o!=null&&s!=null&&d!=null&&h!=null?t.jsx(Dn,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,tagName:d,infoContent:h,tagType:s}):t.jsx(io,{isActualVsForecastOn:!1,children:t.jsx(no,{children:Ie(e,i,n)})})})},Bp=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:s,onCompareModeChanged:d})=>{const h=W.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${i.currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(Lp,{isActualVsForecastOn:o,children:[t.jsx(io,{isActualVsForecastOn:o,children:t.jsx(no,{children:Ie(e,i,n)})}),t.jsxs(Cp,{isActualVsForecastOn:o,children:[t.jsx(yt,{children:h.actual}),t.jsx(yt,{children:h.forecast}),t.jsx(yt,{children:t.jsx(Qt,{title:u,titleTextStyle:Ft.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:g=>{g!=="off"?d?.(g):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(oo,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:l,bookCloseDate:s})},Wp=({firstMonthOfFY:e,timeframeTicks:i,timeframe:n,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:s})=>{const d=ce(),h=o==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${i[0].currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return t.jsx($p,{children:i.map((u,g)=>t.jsx(I.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(_p,{children:t.jsx(Qt,{title:h,titleTextStyle:Ft.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:p=>{p!=="off"&&(p==="compare_mode_amount"||p==="compare_mode_percent"?s?.(p):console.warn("Invalid compare mode option"))}})}):t.jsx(vp,{children:t.jsx(oo,{firstMonthOfFY:e,timeframeTick:u,timeframe:n,dataAvailable:r,bookCloseDate:l},g)})},g))})};function Op({type:e,backgroundColor:i,isSticky:n,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}){const x=M();return t.jsxs(kp,{height:o,bgColor:i,children:[ge(e)===!0?t.jsx(Sp,{isSticky:n,windowSize:x,bgColor:i,children:" . "}):null,t.jsx(jp,{children:l===!0?t.jsx(Wp,{firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}):h.map((b,y)=>t.jsx(Bp,{firstMonthOfFY:s,timeframeTick:b,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f},y))})]})}const ht=(e,i,n,o,r,l,s,d,h,u,g)=>{if(n.element.kind!="ac_report"||n.element.data==null)return null;const p=n.element.data,f=A.isDashboardClassesViewReport(n.config.reportId)===!0||A.isPAndLClassesViewReport(n.config.reportId)===!0?_n("no_filter",n.config.filterAccountsWithNilBalances):nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),x=te(f.acBalanceSelector(p),n.config.displayOrder,n.element.numOfBalances);return t.jsx(Mu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:x.balances,isScrolling:s,isLeaf:d,isLastNode:h,account:p,onAccountBalanceClick:g==null?void 0:(b,y,$)=>{g?.(b,y,$)}})},ze=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_subaccount"||n.element.data==null)return null;const f=n.element.data,x=ei("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=Qn(x.acBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,$=n.config.reportId==="operating_expenses";return t.jsx(sp,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",classDepth:y,compareMode:g,accountBalances:b.balances,isScrolling:s,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:n.element.metadata,onClick:p,noMarginForAccount:$,onAccountBalanceClick:p==null?void 0:(S,B,L)=>{p?.(S,B,L)}})},ut=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_group_report"||n.element.data==null)return null;const f=n.element.data,x=nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances);return t.jsx(gu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},ii=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_group_subaccount"||n.element.data==null)return null;const f=n.element.data,x=ei("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances);return t.jsx(Cu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},ni=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section"||n.element.data==null)return null;const f=Ot(n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(ti,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},pt=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section_with_ac_only"||n.element.data==null)return null;const f=Ot(n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(ti,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},oi=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="calculated_section"||n.element.data==null)return null;const f=Ot(n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(ti,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},Fe=(e,i,n,o,r,l,s,d,h)=>{if(i.element.kind!="ac_subentity_total")return null;const u=i.element.data,g=ei("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),p=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=Qn(g.acBalanceSelector(u),i.config.displayOrder,i.element.numOfBalances),x=i.config.reportId==="operating_expenses"||i.config.reportId==="operating_expenses_by_classes";return t.jsx(yp,{type:e,backgroundColor:o,isSticky:r,height:n,accountName:u.account.accountName,account:u,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:x,isLeaf:s,isLastNode:d,metadata:i.element.metadata,classDepth:p})},Te=(e,i,n,o,r,l,s,d)=>{if(n.element.kind!=="timeframe_headers"&&n.element.kind!=="timeframe_headers_with_forecast")return null;const h=Pe(n.element.data,n.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",g=h.map(p=>A.toTimeframeTick(p));return t.jsx(Op,{treeNodeId:e,backgroundColor:r,isSticky:l,type:i,height:o,isActualVsForecastOn:n.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:n.config.mode==="this_period_vs_period_before"&&g.length>1,firstMonthOfFY:n.config.firstMonthOfFY,timeframe:u,timeframeTicks:g,compareMode:s,dataAvailable:n.config.dataAvailable,bookCloseDate:n.config.bookCloseDate,onCompareModeChanged:d})},ro=(e,i,n,o,r,l,s,d,h,u,g,p,f)=>{if(n.element.kind!="class"||n.element.data==null)return null;const x=n.element.data,b=te(x.childrenBalancesTotal,n.config.displayOrder,n.element.numOfBalances),y=g>1;return t.jsx(Hu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,className:n.element.title,classCode:n.element.data.class.accountingClassNumber,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",depth:x.id.length-1,compareMode:p,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,hasChildren:x.children.length>0,isLastNode:u,isSubClass:y,showClassAccountNumber:n.config.showClassAccountNumber,onClick:$=>{f?.($)},metadata:n.element.metadata})},Mp=(e,i,n)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ln,{height:i,backgroundColor:n,title:e.element.title,numOfBalances:e.element.numOfBalances}),Np=(e,i,n)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Bn,{height:i,backgroundColor:n,numOfBalances:e.element.numOfBalances}),Fi=e=>{const{height:i,data:{reportElementData:n,id:o,treeKind:r,isLeaf:l,isLastNode:s,nestingLevel:d,isFirstNode:h},isOpen:u,style:g,setOpen:p,isScrolling:f}=e,x=($,S,B)=>{const L=l?u:!u;!l&&B==null&&(p(!u),e.onNodeCollapseToggled?.($,!u)),e.onNodeClick?.($,L,S,B)},b=e.treeNodePadding?.left,y=e.treeNodePadding?.right;return t.jsx("div",{style:{...g,width:"auto",minWidth:"100%",paddingLeft:b,paddingRight:y},children:t.jsx(ao,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:n,height:i,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:s,isFirstNode:h,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick!=null||!l?x:void 0,compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},o)})},ao=e=>e.treeKind==="name_only"?t.jsx(Vp,{...e}):A.isAgingReport(e.reportElementData.config.reportId)?t.jsx(Rp,{...e}):A.isOpExByVendorReport(e.reportElementData.config.reportId)===!0?t.jsx(Dp,{...e}):A.isPAndLClassesViewReport(e.reportElementData.config.reportId)===!0?t.jsx(Ip,{...e}):A.isPAndLReport(e.reportElementData.config.reportId)===!0?t.jsx(Pp,{...e}):A.isDashboardClassesViewReport(e.reportElementData.config.reportId)===!0?t.jsx(zp,{...e}):A.isDashboardReport(e.reportElementData.config.reportId)===!0?t.jsx(Fp,{...e}):A.isCashFlowOrBalanceSheetReport(e.reportElementData.config.reportId)===!0?t.jsx(Tp,{...e}):A.isFluxAnalysisOpExReport(e.reportElementData.config.reportId)===!0?t.jsx(Gp,{...e}):A.isAccountReconReport(e.reportElementData.config.reportId)===!0?t.jsx(Ep,{...e}):null,Ip=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,p,f);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,p,f);case"section":return ni(e,i,n,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return oi(e,i,n,o,r,l,s,u,d,h,p,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,p,x);case"class":return ro(e,i,n,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,p,f);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,p);case"headers_loading_in_progress":return Np(n,o,r);case"loading_in_progress":return Mp(n,o,r);default:return null}},Pp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,g,p);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return ii(e,i,n,o,r,l,s,u,d,h,g,p);case"section":return ni(e,i,n,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return oi(e,i,n,o,r,l,s,u,d,h,g,p);case"title_string_only":return null;case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,g,f);default:return null}},zp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,p,f);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,p,f);case"section":return Mn(e,i,n,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return Nn(e,i,n,o,r,l,s,u,d,h,p,f);case"title_string_only":return Ht(e,i,n,o,r,l,s,u,d,h,p,f);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,p,x);case"class":return ro(e,i,n,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,p,f);case"total":return In(e,i,n,o,r,l,p,d);case"headers_loading_in_progress":return Bs(n,o,r);case"loading_in_progress":return As(n,o,r);default:return null}},Fp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(n.element.kind){case"ac_report":return vs(e,i,n,o,r,l,s,d,h,g,p);case"ac_group_report":return _s(e,i,n,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return ii(e,i,n,o,r,l,s,u,d,h,g,p);case"section":return Mn(e,i,n,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return Ls(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return Nn(e,i,n,o,r,l,s,u,d,h,g,p);case"title_string_only":return Ht(e,i,n,o,r,l,s,u,d,h,g,p);case"total":return In(e,i,n,o,r,l,g,d);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,g,f);default:return null}},Tp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,g,p);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,g,p);case"section":return ni(e,i,n,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section":return oi(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section_type1":return xl(e,n,o,r,l,s,h);case"title_string_only":return Ht(e,i,n,o,r,l,s,u,d,h,g,p);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,g,f);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return ii(e,i,n,o,r,l,s,u,d,h,g,p);default:return null}},Vp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:g})=>{switch(n.element.kind){case"checkbox_and_name_only":return Vd(e,i,n,o,r,l,s,u,d,h,g);default:return null}},Dp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(n.element.kind){case"loading_in_progress":case"spacer_row":return Jh(n,o,r,l);case"timeframe_headers":return qh(n,o,l,h,r,u);case"total":return Zh(e,i,n,o,l,s,r);case"vendor_row":return Qh(i,n,o,r,l,s,d);case"title_string_only":return Xh(n,o,r,l);default:return null}},Rp=({id:e,treeKind:i,reportElementData:n,height:o,isOpen:r,isSticky:l,isScrolling:s,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:g}=n;switch(n.element.kind){case"spacer_row":return null;case"timeframe_headers":return Aa(n,o,h,l,g.agingReportConfig?.sortKey,g.agingReportConfig?.sortOrder,g.agingReportConfig?.onSortOrderChanged);case"total":return Oa(i,n,o,h,l);case"aging_report_row":return Ba(e,n,o,r,l,d,s,h,g.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Wa(n,o,l,s,h);default:return null}},Gp=({id:e,reportElementData:i,height:n,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:s,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:g,nodeClickHandler:p,hoveredParentIdProps:f})=>{switch(i.element.kind){case"flux_vendor_account_class_row":return vd(e,i,o,r,l,s,d,f,g);case"flux_vendor_row":return _d(e,i,o,r,l,u,s,d,h,f,p);case"section":return Ld(e,i,n,o,r,l,u,s,d,p);case"timeframe_headers":return Ad(i,n,r);case"total":return Bd(i,n);case"loading_in_progress":return Wd(i);case"headers_loading_in_progress":return Od(i);default:return null}},Ep=({reportElementData:e,height:i,isSticky:n,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return Br(e,n);case"loading_in_progress":return Ar();case"total":return Wr(e,i,n);case"section":return Lr();case"title_string_only":return Or(e,i);case"ac_group_report":return Mr(e,i,o);default:return null}};function Ti(e,i,n,o){return{data:{defaultHeight:ri(e.reportElementData.config.reportId,e.reportElementData.element.kind,e.isFirstNode),id:e.id,isLeaf:e.children.length===0,isFirstNode:e.isFirstNode??!1,isLastNode:e.isLastNode,isOpenByDefault:o??Hp(e.reportElementData.config.reportId,e.reportElementData.element.kind,n,e.reportElementData.config.reportFormat),nestingLevel:n,treeKind:i,reportElementData:e.reportElementData},treeKind:i,nestingLevel:n,node:e}}function ri(e,i,n){return A.isPAndLReport(e)===!0?Nr(i):A.isDashboardReport(e)===!0||A.isDashboardClassesViewReport(e)===!0?Dl(i):A.isAgingReport(e)?Kr(i):A.isAccountReconReport(e)?it(i):A.isOpExByVendorReport(e)?Dd(i):A.isFluxAnalysisOpExReport(e)?zn(i,n):Za(i)}function Hp(e,i,n,o){return A.isPAndLReport(e)?Ir(i,o,n):A.isDashboardReport(e)||A.isDashboardClassesViewReport(e)===!0?Rl(i,o):A.isAgingReport(e)?Yr():A.isOpExByVendorReport(e)?Rd():A.isFluxAnalysisOpExReport(e)?Rs(i):A.isAccountReconReport(e)?Mo():Qa(i,o)}const Kp=a.div`
|
|
2879
2879
|
top: 0;
|
|
2880
2880
|
left: 0;
|
|
2881
2881
|
position: sticky !important;
|
|
@@ -2890,7 +2890,7 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2890
2890
|
align-items: center;
|
|
2891
2891
|
background-color: ${e=>e.bgColor?.hex()};
|
|
2892
2892
|
box-sizing: border-box;
|
|
2893
|
-
`;function Yp({height:e,backgroundColor:i,headers:n,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:s}){return n.length===0?null:(n.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(Kp,{heightValue:e,bgColor:i,"data-testid":m("sticky-header-report-tree"),children:n.map((d,h)=>t.jsx(ao,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:ri(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:i,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:n.length-1===h,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:s},d.id))}))}const Up=(e,i,n)=>function*(){for(let o=0;o<i.length;++o)yield Ti(i[o],e,0,n[i[o].id]??void 0);for(;;){const o=yield;for(let r=0;r<o.node.children.length;++r)yield Ti(o.node.children[r],e,o.nestingLevel+1,n[o.node.children[r].id]??void 0)}},lo=I.createContext(void 0);function qp({height:e,kind:i,rootNodes:n,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:s,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:g,infiniteLoadingProps:p,variableNodeHeightTree:f,onNodeClick:x,onCompareModeChanged:b,scrollPosition:y,onScroll:$,nodeOpenStatus:S,onNodeCollapseToggled:B,onTreeInnerElementHeightChanged:L,onToggleCheck:O,hoveredParentIdProps:F}){const T=I.useRef(null),Y=I.useRef(null),H=hi(f?.prevFetchState),U=hi(f?.prevRefreshFetchState),[
|
|
2893
|
+
`;function Yp({height:e,backgroundColor:i,headers:n,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:s}){return n.length===0?null:(n.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(Kp,{heightValue:e,bgColor:i,"data-testid":m("sticky-header-report-tree"),children:n.map((d,h)=>t.jsx(ao,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:ri(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:i,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:n.length-1===h,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:s},d.id))}))}const Up=(e,i,n)=>function*(){for(let o=0;o<i.length;++o)yield Ti(i[o],e,0,n[i[o].id]??void 0);for(;;){const o=yield;for(let r=0;r<o.node.children.length;++r)yield Ti(o.node.children[r],e,o.nestingLevel+1,n[o.node.children[r].id]??void 0)}},lo=I.createContext(void 0);function qp({height:e,kind:i,rootNodes:n,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:s,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:g,infiniteLoadingProps:p,variableNodeHeightTree:f,onNodeClick:x,onCompareModeChanged:b,scrollPosition:y,onScroll:$,nodeOpenStatus:S,onNodeCollapseToggled:B,onTreeInnerElementHeightChanged:L,onToggleCheck:O,hoveredParentIdProps:F}){const T=I.useRef(null),Y=I.useRef(null),H=hi(f?.prevFetchState),U=hi(f?.prevRefreshFetchState),[Q,ue]=I.useState(0),X=g??Y,oe=u??T,Ce=M(),[le,pe]=I.useState(void 0),[Ve,ai]=I.useState(!1),[De,li]=I.useState(S),si=(z,ie)=>{li(Object.assign({},De,{[z]:ie})),B?.(z,ie)},ci=z=>{if(n.contentNodes.length>0)if(Object.keys(z).length>0){const ie={};Object.keys(z).forEach(we=>{ie[we]={open:z[we]}}),oe?.current?.recomputeTree(ie)}else{const ie=n.contentNodes[0].id;oe?.current?.recomputeTree({[ie]:{open:!0}})}};I.useLayoutEffect(()=>{if((!ui(y,le)||le==null)&&X.current!=null){const z=y?.scrollLeft==null?Ce==="small"?0:X.current.scrollWidth:y?.scrollLeft;if(y!=null){const ie={scrollTop:y.scrollTop,scrollLeft:z};pe(ie),z!==y?.scrollLeft&&$?.(ie)}X.current.scroll({left:z,top:y?.scrollTop})}},[y]),I.useEffect(()=>{ui(S,De)||(li(S),ci(S))},[S]),I.useEffect(()=>{const z=X.current,ie=fo(()=>{if(z!=null&&(le==null||z.scrollLeft!==le.scrollLeft||z.scrollTop!==le.scrollTop)){const we={scrollLeft:z.scrollLeft,scrollTop:z.scrollTop};pe(we),$?.(we)}},50);return z?.addEventListener("scroll",ie),()=>{z?.removeEventListener("scroll",ie)}},[X,le,$]),I.useEffect(()=>{if(n.contentNodes.length>0){ci(De);const z=n.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";z!==Ve&&ai(z)}},[Ve,ai,n,oe,X]),I.useEffect(()=>{(f!=null&&H==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&U==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),ue(Q+1))},[Q,f?.fetchState,f?.isSortApplied,H,U,f]);const gt=I.useRef(),[so,co]=I.useState(void 0),ho=()=>{const z=gt.current;z!=null&&z.clientHeight>0&&z.clientHeight!=so&&(co(z.clientHeight),L?.(z.clientHeight))},di=I.useCallback(Up(i,n.contentNodes,De),[i,n]),uo={rootNodes:n,treeNodePadding:s,backgroundColor:l,kind:i,isSticky:r,compareMode:o,onCompareModeChanged:b};return t.jsx(lo.Provider,{value:uo,"data-testid":m("report-tree"),children:p==null?t.jsx(pi,{className:d,style:h,ref:oe,innerRef:gt,outerRef:X,innerElementType:Wt,treeWalker:di,onItemsRendered:ho,height:e,width:"100%",children:z=>t.jsx(Fi,{...z,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:s,onNodeClick:x,onNodeCollapseToggled:si,compareMode:o,onCompareModeChanged:b,onToggleCheck:O})}):t.jsx(xo,{isItemLoaded:p.isItemLoaded,itemCount:p.itemCount+1,loadMoreItems:p.loadMoreItems,children:({onItemsRendered:z,ref:ie})=>t.jsx(pi,{className:d,style:h,ref:ie,innerRef:gt,outerRef:X,innerElementType:Wt,treeWalker:di,onItemsRendered:z,height:e,width:"100%",children:we=>t.jsx(Fi,{...we,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:s,onNodeClick:x,onNodeCollapseToggled:si,compareMode:o,onCompareModeChanged:b,onToggleCheck:O,hoveredParentIdProps:F})},Q)})})}const Wt=I.forwardRef((e,i)=>{const{children:n,style:o,...r}=e,{rootNodes:l,treeNodePadding:s,backgroundColor:d,kind:h,isSticky:u,compareMode:g,onCompareModeChanged:p}=I.useContext(lo),f=l.headerNodes.reduce(($,S)=>$+ri(S.reportElementData.config.reportId,S.reportElementData.element.kind,S.isFirstNode),0),x=s?.left,b=s?.right,y=c.sp8;return t.jsxs("div",{ref:i,style:{...o,width:"auto",minWidth:"100%",paddingLeft:x,paddingRight:b,marginBottom:y},...r,children:[t.jsx(Yp,{height:f,backgroundColor:d,headers:l.headerNodes,treeKind:h,isSticky:u.isStickyHeader,compareMode:g,onCompareModeChanged:p}),n]})});Wt.displayName="stickyInnerElementType";const Zp=a.div`
|
|
2894
2894
|
display: flex;
|
|
2895
2895
|
flex: 1 0 auto;
|
|
2896
2896
|
width: ${e=>e.width}px;
|
|
@@ -2929,4 +2929,4 @@ import{j as t,b3 as po,aM as m,bZ as fe,aN as q,dF as go,o as c,p as ee,aP as hi
|
|
|
2929
2929
|
}
|
|
2930
2930
|
}
|
|
2931
2931
|
}
|
|
2932
|
-
`;function tg({rootNodes:e,type:i,compareMode:n,isSticky:o,backgroundColor:r,treeNodePadding:l,onAccountClick:s,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onCompareModeChanged:g,scrollPosition:p,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onReportTableHeightChanged:y,onToggleCheck:$}){return t.jsx(po,{children:({height:S,width:B})=>t.jsx(
|
|
2932
|
+
`;function tg({rootNodes:e,type:i,compareMode:n,isSticky:o,backgroundColor:r,treeNodePadding:l,onAccountClick:s,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onCompareModeChanged:g,scrollPosition:p,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onReportTableHeightChanged:y,onToggleCheck:$}){return t.jsx(po,{children:({height:S,width:B})=>t.jsx(Zp,{"data-testid":m("report-tree-container"),height:S,width:B,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(qp,{"data-testid":m("report-tree"),treeClassName:"content-scroll",height:S,kind:i,rootNodes:e,compareMode:n,isSticky:o,backgroundColor:r,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onNodeClick:s==null?void 0:(L,O,F,T)=>{F!=null&&T!=null&&s(F,T)},onCompareModeChanged:g,scrollPosition:p,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onTreeInnerElementHeightChanged:y,onToggleCheck:$})})})}export{te as D,tg as I,Z as J,eg as R,Ie as V,Oe as a,nt as l,Ws as n,qt as r,ei as x};
|