@zeniai/web-cockpit-ui 1.14.49-dev → 1.14.50-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-Sg7hdGqd-BJ6Y4E4W.js → ACHDetailsPage-Bk-T9zeA-CfJ6MKab.js} +3 -3
- package/dist/assets/{AIPerformancePage-ChnBEIPH-BG7kRGAc.js → AIPerformancePage-DlVvPiye--DdUUWgj.js} +33 -33
- package/dist/assets/{AccountInfoPage-BxnQEiJ7-CuhRvlDO.js → AccountInfoPage-4a5_z9Mj-DMFU6f23.js} +4 -4
- package/dist/assets/{AccountInfoPageContent-DNUp3TON-D0ib25q5.js → AccountInfoPageContent-DevYKy6p-CMullRtM.js} +19 -19
- package/dist/assets/{AccountLockedInfoModal-CA152nkz-pxVtwGi8.js → AccountLockedInfoModal-BvtyA_xO-CmYw1Jj0.js} +3 -3
- package/dist/assets/{AccountReconDetailsDrawerPage-C2rkkVPs-fzY1AEUi.js → AccountReconDetailsDrawerPage-BXEQ6cqS-j66Ucrn-.js} +12 -12
- package/dist/assets/{AccountRow-36Vtwpnr-DYEexfmz.js → AccountRow---y_a4hQ-CjUH_owU.js} +11 -11
- package/dist/assets/{AccountsPromoCardStack-C2HYR94b-Ds_RYsZp.js → AccountsPromoCardStack-o9Og7QNk-DK3bk-1Y.js} +17 -17
- package/dist/assets/AddAddressForCardDrawer-Blh9zJ9k-Qnts0jiB.js +6 -0
- package/dist/assets/{AddToWalletPage-C_3jcdka-CL8bElM-.js → AddToWalletPage-F_5GSEK1-DfJbrH2K.js} +19 -19
- package/dist/assets/{AgingReportsPage-BPxROntM-AndJUsDi.js → AgingReportsPage-gY6j3hD1-CYYgQtbs.js} +6 -6
- package/dist/assets/{AllUserItems-D4ZSsopG-BpcSmXEj.js → AllUserItems-DuqNI8Rn-C7-Ck6tc.js} +4 -4
- package/dist/assets/{ApAgingDetailPage-Cg_V8f7G-DR1ckQuO.js → ApAgingDetailPage-BCIZ807--CCB1bmdU.js} +5 -5
- package/dist/assets/{AppBasePage-6i0Pu1mT-CYhfw2EW.js → AppBasePage-Cju4WpBd-B7EKJOCZ.js} +7 -7
- package/dist/assets/{AppDrawerContent-B6_iNfLZ-D1T-ud79.js → AppDrawerContent-CJZlwte8-BLgFIh1I.js} +4 -4
- package/dist/assets/{ApprovalRulesSettingsPage-BnsXfKAE-CtUMFa5Y.js → ApprovalRulesSettingsPage-DcFFdV1D-DwwBhpx6.js} +3 -3
- package/dist/assets/{ArAgingChart-DSDIg2mS-75abgEKE.js → ArAgingChart-B_ybJjur-DHM_zS9S.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BYb9qi8c-CJX-8A7X.js → ArAgingDetailPage-CXBgcuJx-BSdM7AD1.js} +4 -4
- package/dist/assets/AttachmentView-D9MocUS9-BtgOsoHb.js +101 -0
- package/dist/assets/{BankAccountSection-CwYIBEbQ-8mzvKjUV.js → BankAccountSection-CFnXlTaa-wnOEAJae.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-DPIyvB6i-CQf_GPyw.js → BankAccountWarningSection-Dl7DA-Xf-Bk2O3H_M.js} +4 -4
- package/dist/assets/{BankConnectionsSettingsPage-O03gMCgp-ktWZ4Eak.js → BankConnectionsSettingsPage-p7NTe5UU-CDYUeY8o.js} +29 -29
- package/dist/assets/{BillDetailPage-D-fa_jc1-20mAoSs4.js → BillDetailPage-Dy7FjtFP-DCGKKisv.js} +6 -6
- package/dist/assets/{BillPayApprovalRuleDetailPage-D_A4wH0g-D4_Up7SF.js → BillPayApprovalRuleDetailPage-BkROIItP-FF3IQxfd.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-gdOVuTqR-Dm9-SFtE.js → BillPayApprovalRulesPage-wnxmErWK-CnIadX77.js} +7 -7
- package/dist/assets/{BillPayPromoPage-SFpIScHQ-DqufeKOh.js → BillPayPromoPage-B09wLq8f-CG5fEZdp.js} +7 -7
- package/dist/assets/BillPaySetUpPage-bK5uUxWL-CxvMnvOZ.js +42 -0
- package/dist/assets/{BillingSettingsPage-CdaNgKMv-qPNA3e0-.js → BillingSettingsPage-yqdPoo5n-C-yi5L8L.js} +6 -6
- package/dist/assets/{BillsBulkReviewDrawerPage-DPgrXGy0-CnvGZNH8.js → BillsBulkReviewDrawerPage-BPoUzM5h-BT57ZA9A.js} +1 -1
- package/dist/assets/{BoxItem-Bla_vZe9-hVwWcQFM.js → BoxItem-BwOmI0eo-Bg_oDJrZ.js} +1 -1
- package/dist/assets/BusinessVerificationPage-DliZ1mtV-DeT5LWZH.js +140 -0
- package/dist/assets/{CardNumberSubText-B-HsVbRQ-DD1zwm43.js → CardNumberSubText-CAQ8mWuF-vKMkb_aM.js} +1 -1
- package/dist/assets/{CashbackDetailPage-gIJ-1lJF-DJvf8K0I.js → CashbackDetailPage-B1XEtXzZ-1-2pfDRY.js} +17 -17
- package/dist/assets/{ChargeCardDetailPage-Dgyl5IJV-dpF3lMeE.js → ChargeCardDetailPage-C35g3tyS-Cr_XhDe3.js} +21 -21
- package/dist/assets/{ChargeCardListPage-CgN69uh_-OWvNh6ZR.js → ChargeCardListPage-DpJ2ukG9-Chnlo_Ls.js} +9 -9
- package/dist/assets/{ChargeCardListTable-Bq3FUrUG-ZxNJoN2u.js → ChargeCardListTable-0mvBVaVR-DezuEV69.js} +26 -26
- package/dist/assets/{ChargeCardPromoPage-DqDd3QeF-DwKhI9v5.js → ChargeCardPromoPage-xcfRobP3-CBiQn6_2.js} +7 -7
- package/dist/assets/{ChargeCardSetupPage-CBP4-JyP-CTSo8lEf.js → ChargeCardSetupPage-CHK4_mR3-uQ6PE_iN.js} +2 -2
- package/dist/assets/{ChargeCardStatementsPage-CVJyNhXt-BWmc6WcQ.js → ChargeCardStatementsPage-B746tyaI-BpHM8ktT.js} +8 -8
- package/dist/assets/{ChargeCardUtils-DaDe1sIq-Cvp2W_S2.js → ChargeCardUtils-Bel9RKog-BYoByp7T.js} +1 -1
- package/dist/assets/{ChaseOverlay-C1SVk4v1-CPf76lKD.js → ChaseOverlay-Cni-YJBq-ki7qKNfn.js} +2 -2
- package/dist/assets/CheckDepositDrawerPage-h5dYs8n1-xM7OVVph.js +206 -0
- package/dist/assets/{CollapsableReportTable-QtToztmP-Dtu3g55w.js → CollapsableReportTable-Bm4Knvjp-CyuCgDm7.js} +48 -48
- package/dist/assets/{CompanyOfficerDetailsSection-Ctoe2QDP-DNnYQb9v.js → CompanyOfficerDetailsSection-BFrN2zbs-E0-ko42y.js} +19 -19
- package/dist/assets/CompanyPassportCard-CFfVmwtT-DyrnlDth.js +42 -0
- package/dist/assets/{CompanyPassportPage-Dd53DZFe-CBQbcAq0.js → CompanyPassportPage-BwuQEpR6-BzltPqSl.js} +21 -21
- package/dist/assets/{CompleteProfile-DlFmFq5M-BMyL27qP.js → CompleteProfile-DFgQXxaw-eh46GqaL.js} +1 -1
- package/dist/assets/{ConfettiBurst-b3SEoaSY-DuWTUbzD.js → ConfettiBurst-CNGVGH7R-OhWdZxEw.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DwvlzEci-BiFTiX_3.js → CreateOrEditVendorPage-BEOugGdV-BkOi2-LS.js} +12 -12
- package/dist/assets/{CreditCardPaymentDrawerPage-y5jJQGS5-DE9_oAZ2.js → CreditCardPaymentDrawerPage-DL99-asT-IVw3ZmF0.js} +9 -9
- package/dist/assets/{CreditCardPaymentPlgSection-BbVnrMer-CMSyRH0x.js → CreditCardPaymentPlgSection-Bo8bjkSd-Cj2DAE6L.js} +5 -5
- package/dist/assets/{CurrencySelectField-B1rl6vQ0-BGOf9wTv.js → CurrencySelectField-Cy3069QS-B4qJii4j.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-DlFjo3Sv-BTL8l8KD.js → CustomerOnboardingActivationPage-DYHxB1DV-DG10uG78.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DGNxouoJ-cK8xEcln.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BxsQBBs2-DKJ8rMmR.js → CustomerOnboardingDetailPageSkeleton-C-eQB--l-D3xzBHMg.js} +10 -10
- package/dist/assets/CustomerOnboardingNoStepsPage-CdXpLzmq-BKo9Mc6w.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-Cw66PfQC-VEMQRRng.js → CustomerOnboardingPage-BScJEPx_-eyx5FypG.js} +2 -2
- package/dist/assets/CustomerOnboardingProductSuitePage-D8hA3Lv_-DiFPqcjv.js +202 -0
- package/dist/assets/{Dashboard-I5fepHMP-Cevcxjrr.js → Dashboard-D5_YXdct-EKQOlNbW.js} +1 -1
- package/dist/assets/{DashboardReportPage-GkuxGc3t-BHv_HG6x.js → DashboardReportPage-Gq4XjHm5-CgkxriU9.js} +19 -19
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Ba6mjrpq-DflDlyBs.js → DashboardSidebarBackgroundAnimation-CfSTodXy-DUwH9YlE.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-8pfQMKs3-BiFZwIDL.js → DepositAccTransactionItem-CfjfIBsm-DifB7Rhh.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BiTWRxfT-FXfV2auu.js → DepositAccTransactionListPage-BxtgMsQs-1C9yKKse.js} +8 -8
- package/dist/assets/{DomesticWireDetailsPage-4Dh_YZ8--Dac_JC4h.js → DomesticWireDetailsPage-BdmpuYqv-CI5W3KSh.js} +2 -2
- package/dist/assets/{DownloadOverlay-D6S9Obtr-Cl7jFmI9.js → DownloadOverlay-B-TeCIiN-cLZkE7c6.js} +18 -18
- package/dist/assets/{DrawerPage-D13P_uWJ-DwxMNR4o.js → DrawerPage-BayK5Cvt-DenqrNxQ.js} +7 -7
- package/dist/assets/EditPeoplePage-moCKwxdw-kdnDyFe4.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-COg9-yb6-CIDvV_2l.js → EditReimbursementDetailPage-DiRxcH2i-CqEhpelp.js} +1 -1
- package/dist/assets/{EntityDetailPage-BbITG8i5-BGeGObtn.js → EntityDetailPage-B0_iMMXi-BFK6-vDg.js} +4 -4
- package/dist/assets/{EntitySummarySection-BIawu9Ww-jWQbkUh5.js → EntitySummarySection-Bzw9paM5-CCulefX0.js} +1 -1
- package/dist/assets/ExpenseAutomationOverviewPage-CN8oHejg-BCXoKv-G.js +222 -0
- package/dist/assets/{ExpenseAutomationPage-BzqJFgyb-Cn25OmeO.js → ExpenseAutomationPage-nQw-48Jn-1DFXEYwM.js} +29 -29
- package/dist/assets/{ExpressPayPage-ciCYdxZj-CZU8Twmg.js → ExpressPayPage-BbxW-YuU-D_hIdCft.js} +8 -8
- package/dist/assets/{FeaturePreviewPage-Bbbcp0Yy-YrV3pTR0.js → FeaturePreviewPage-CMFiodSD-BBGWeje6.js} +2 -2
- package/dist/assets/{FollowStepsSection-B6uVl1dT-DNC0mar6.js → FollowStepsSection-s4utHS95--Y07h10n.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-BOTtaikB-BvTnXg7j.js → GlobalReviewListPage-Ci8wGpO6-BRGgqus8.js} +5 -5
- package/dist/assets/HelpButton-CdHOhYwZ-vfgKqvvf.js +28 -0
- package/dist/assets/{InformationCardStack-Bm0Oh5VL-8LXcrFIu.js → InformationCardStack-C3Q674Be-BHdplWUC.js} +2 -2
- package/dist/assets/InsightsCardStack-CA-O6aZn-DaypKy1-.js +79 -0
- package/dist/assets/{InsightsSection-wZpjHdxh-C71dHBxC.js → InsightsSection-MD_7iYyd-CoTr4evA.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-Cl-Y86Nj-CQcfLXmx.js → IntegrationsSettingsPage-Gpq_ujC4-Cz49FC1Q.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-DkEpnlVz-KQGlf6zC.js → InternationalWireSwiftDetailsPage-DXQCRbA4-jvd32UXh.js} +18 -18
- package/dist/assets/{InternationalWireVerificationPage-Ra78kWjZ-C8uhi-CA.js → InternationalWireVerificationPage-Z9MeS_FE-CvHI3GW5.js} +13 -13
- package/dist/assets/{InviteFormPage-Be3Tqvh8-B9YJH8eq.js → InviteFormPage-CRBxUW8F-ByLwGMQx.js} +20 -20
- package/dist/assets/{InvitePageListView-BuooPBpK-CTSaKN1R.js → InvitePageListView-BLcD6yhf-BHIBTtPc.js} +14 -14
- package/dist/assets/InvitePeoplePage-B6vbKnl8-3Fr2JjFu.js +12 -0
- package/dist/assets/InvoiceUploadSection-C84g6m-u-CTBUGTYr.js +140 -0
- package/dist/assets/{IssueChargeCardPage-C_4bD6HQ-C7zzGhpe.js → IssueChargeCardPage-CtwG1FQW-CIw40zi7.js} +20 -20
- package/dist/assets/{LabeledAddressValue-Ctk46FKq-DXzMzmT1.js → LabeledAddressValue-BbmveEDp-misv-kNS.js} +1 -1
- package/dist/assets/LabeledAddressValueField-BplBue9M-DBaZ2tp6.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-CATsgVfE-C27gMaQw.js +16 -0
- package/dist/assets/{LabeledCreatableSingleSelectField-Bjh5B-q0-q0j6ciRz.js → LabeledCreatableSingleSelectField-B-m-gINB-DKWDwbZB.js} +2 -2
- package/dist/assets/LabeledDocumentField-pmF98M72-DhaPqfnm.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-BX06HLc2-DYKhZ_Ts.js → LabeledDropDownFormattedTextField-DQRvDrH1-nhXIGcQS.js} +1 -1
- package/dist/assets/{LabeledText-DZVRFAkG-DkVxNbLd.js → LabeledText-Dr7b3HNT-JqfYF6TM.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-QoYZvvyE-DPkhJaYm.js → LabeledUserSingleSelectWithSubtitlesField-DucxxQKW-DpGIkkDj.js} +10 -10
- package/dist/assets/{LabeledZeniRolesDropDownField-D9I9Lxk2-CILsRId4.js → LabeledZeniRolesDropDownField-Fg_p41gp-BLJgU8CM.js} +17 -17
- package/dist/assets/{LinkJETransactionPage-C8K00-1a-BdYYSG3G.js → LinkJETransactionPage-CbtDoohS-BYYpt-Eb.js} +4 -4
- package/dist/assets/LockCardPage-CfupCyYS-DqBQdk1I.js +558 -0
- package/dist/assets/{LowBalancePopup-CQQrhufv-BRlLHtBa.js → LowBalancePopup-DPfkvSKp-CZ231Z71.js} +6 -6
- package/dist/assets/{MagicLinkACHDetailsPage-BUGK2W6m-BANuDDL9.js → MagicLinkACHDetailsPage-TJ1c4k1c-e1ecoiPU.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CdGw-8SL-CS027aBy.js → MagicLinkDomesticWireDetailsPage-Dp4F_O6C-BLuK26i4.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-ioBaDPw3-BPFqiBSS.js → MagicLinkInternationalWireDetailsPage-B5TMFBsw-DE5eebOC.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BBnZ5N8r-CaS0ld-S.js → MagicLinkSuccessPage-XmGUk2UP-t-ML7fFm.js} +3 -3
- package/dist/assets/{MagicLinkTitleSection-C0nl5UrB-Di7GkP7e.js → MagicLinkTitleSection-B3CVACcv-CraOpOkK.js} +3 -3
- package/dist/assets/{MailingDetailsSection-DeaanyVd-DQKkTSnq.js → MailingDetailsSection-CFBmvYV_-DKWh8ntV.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-CGGit3Ny-DKPRY5LI.js → MeetingCalenderPopup-Dd1Z-rK3-BN7CJUqh.js} +5 -5
- package/dist/assets/{Menu-BWGaQpko-B1hEJhh5.js → Menu-AlNg4aZb-ezBRMKxQ.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-Bg_ULoVa-CxqhZSCX.js → MyBankConnectionsSettingsPage-De_mXouS-CFWPRCdV.js} +9 -9
- package/dist/assets/{MyPendingActivationChargeCardListPage-DulXydFx-CskMu8cW.js → MyPendingActivationChargeCardListPage-CdDF0PA3-CqrUarF6.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-C2p1O3ct-CWNCW8b-.js → MyProfileSettingsPage-BE6GsTMH-CiY2hNHx.js} +6 -6
- package/dist/assets/{NavBarWithPicker-BCLF3DOO-BL8tDpIu.js → NavBarWithPicker-CTxQ7r97-Dg-pVfaM.js} +4 -4
- package/dist/assets/{NavigationArrow-BPrl00va-kEFRJVOf.js → NavigationArrow-DCZBdY6w-DXzWpT0y.js} +1 -1
- package/dist/assets/{NavigationDots-O0W_nmju-Bbb_MNmq.js → NavigationDots-D6hsvkMX-Dc9TKWSO.js} +3 -3
- package/dist/assets/{NewGlobalMerchantPage-D6e-akD5-Bz4KL-u9.js → NewGlobalMerchantPage-D5Mo9EMy-C_x_UB26.js} +7 -7
- package/dist/assets/{NoDataChart-C9yfpsin-Sd5PCeur.js → NoDataChart-CI5rKAJf-IpywfvaI.js} +1 -1
- package/dist/assets/{NoDataTable-DKv0uhi4-DZ3R1eiz.js → NoDataTable-C4YVpnKy-bA2EH_fQ.js} +1 -1
- package/dist/assets/{NotFoundPage-B5ou4w73-BIVC4g6u.js → NotFoundPage-Dx56yYo3-CJc22lOw.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-BmrtRoZK-C4tjtLGG.js → NotificationSettingsPage-hOwPscnS-CcQKVe46.js} +8 -8
- package/dist/assets/{NotificationsListConfig-DQ4Ho61v-B_UzJqt6.js → NotificationsListConfig-DV_yEagM-CKLpxpSM.js} +1 -1
- package/dist/assets/{NotificationsPage-UraNN_iD-BYa0kjC2.js → NotificationsPage-B83do0my-DGcJO7Z-.js} +25 -25
- package/dist/assets/{OpExByVendorPage-BRPHj5T9-CJ2zs8i0.js → OpExByVendorPage-WMTGx5ZH-CmZADN9R.js} +5 -5
- package/dist/assets/{OverlayContainerPage-B8Rk53Fe-BZkbGcFB.js → OverlayContainerPage-CZaWUQTs-taUnIcxu.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BMjOYb2a-ac2i66Bf.js → PandLWithForecastPage-DyROxN6C-DH_Ynpil.js} +9 -9
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-B38HgGEM-OQqaoswr.js → PaymentAccountSetupBillingAddressSection-CHwhW69s-PBAsz7VT.js} +7 -7
- package/dist/assets/{PeoplePage-BpMkRqCs-DXNskFpP.js → PeoplePage-DzRLyM45-C2knIeVL.js} +11 -11
- package/dist/assets/{PortfolioAllocationFormPage-tnv4t4QU-DojJmLI3.js → PortfolioAllocationFormPage-CIvcJ9hx-C0L8itY1.js} +9 -9
- package/dist/assets/{PortfolioDetails-BQCQctOT-CxWVFhWY.js → PortfolioDetails-8UvaROaS-BV0kfCx8.js} +15 -15
- package/dist/assets/{ProductsCarousel-BUJiJFiX-BHdXJVWV.js → ProductsCarousel-Di0lW14P-gv6t1pzJ.js} +3 -3
- package/dist/assets/{PromoBaseCards-DwBIZ04X-BovCTw4-.js → PromoBaseCards-zfJOT86M-Cxis92cB.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-MjldLygA-BHVMfA9u.js → QBOConnectionDialog-DYCNzDCW-XbK2K7lq.js} +4 -4
- package/dist/assets/{QBOSetupSection-BknE7gT4-B1wY7X0G.js → QBOSetupSection-DtzlFUKs-CMurUb08.js} +6 -6
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DoWiv_tN-DEovISqR.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-C0Plqj93-FjbcelWF.js → ReimbursementApprovalRulesPage-Drav6sw6-CwgLZUAr.js} +40 -40
- package/dist/assets/ReimbursementDetailPage-ByCpOGLu-Dsc_sGAc.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-X_lNy9W2-BOtmzmNq.js → ReimbursementPromoPage-DOhnXgWW-DuNdw2WY.js} +8 -8
- package/dist/assets/{ReimbursementSetUpPage-DJrOp98g-C4tie5bv.js → ReimbursementSetUpPage-B6m_3OjH-BpWl6ujY.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BZL9RVfR-hNQNkikS.js → ReimbursementsBulkReviewDrawerPage-DSbjVLzo-CVRSkvAX.js} +1 -1
- package/dist/assets/{ReloadCard-aqfmXbU5-TeaWaIOz.js → ReloadCard-C7TwZcxr-vlQuHsih.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-D93qno__-BFHmbylc.js → ReportTableViewSelector-Dw5N3kLR-QNx8XxoO.js} +7 -7
- package/dist/assets/{ReportsPage-B0G-7pwv-kj0A7PNF.js → ReportsPage-Cn38qn0l-B-nkuuwa.js} +9 -9
- package/dist/assets/{RevenueChart-BRlahWs9-ClMCTsw3.js → RevenueChart-Cl6AG_A1-Da4QIV8W.js} +16 -16
- package/dist/assets/ReviewDetailsPage-DOU42eYb-DP8hDUqG.js +290 -0
- package/dist/assets/{ReviewOverlay-yCaY1z8K-Y0rYlFxy.js → ReviewOverlay-Cekl52Tp-C4ta_oQT.js} +13 -13
- package/dist/assets/{RoleWithToolTip-C--9WRHn-CSitueNW.js → RoleWithToolTip-Cxn0Q3kG-C5ZkEEHf.js} +4 -4
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-hn74AoeS-Dhn_4Mgq.js → ScheduleDetailsFixedAssetsPage-By4ikZQn-BUboWldf.js} +4 -4
- package/dist/assets/{ScheduleDetailsPage-DxdxAx1S-CIiBRojV.js → ScheduleDetailsPage-CMCqsjrb-DIQmIy8n.js} +4 -4
- package/dist/assets/{ScheduleSequenceTable-Dq0ZRi2H-D1a5nR8V.js → ScheduleSequenceTable-DNVQ2kVn-kr2CXE0a.js} +49 -49
- package/dist/assets/{ScreenRoutes-CQtuw2xr.js → ScreenRoutes-CngnFJ28.js} +1 -1
- package/dist/assets/{SetUpAccountSection-NP9u54_o-B4yTNPQs.js → SetUpAccountSection-nZ68xEMF-CKqnZuo_.js} +8 -8
- package/dist/assets/{SetUpDefaultSection-BdVOXSh8-NrinDjPO.js → SetUpDefaultSection-e5I_whKg-CWXMi4yS.js} +2 -2
- package/dist/assets/SignIn-e-7z9G0X-C1YFpsfM.js +448 -0
- package/dist/assets/{SignInScreen-BouHtcGb.js → SignInScreen-C77r6V5a.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-CfzCjazp-CLg3V-ID.js → SpendManagementListViewPage-BPfU_Lec-BnogwbnW.js} +6 -6
- package/dist/assets/{SpendManagementPerTabPage-CBOlK1hg-DEzNL2pv.js → SpendManagementPerTabPage-CIVfUAF0-7NlzZC3p.js} +48 -48
- package/dist/assets/{SpendManagementSection-DFVWVBv8-Bnfi_ZJV.js → SpendManagementSection-DilGVAEg-UyhbLf0x.js} +5 -5
- package/dist/assets/{SpendMgmtSetupAccountSection-ZPHoUnnr-Dh8eEb_J.js → SpendMgmtSetupAccountSection-BW8Ip5wi-CkkTNUfg.js} +4 -4
- package/dist/assets/{StatementItem-CwkYfX3v-Dak8ss8U.js → StatementItem-li8rxfjF-DE4xpTDg.js} +2 -2
- package/dist/assets/{StatementsPage-DpjcrDLZ-CI5Yw27o.js → StatementsPage-D0VgSNCy-Bi9vK3HK.js} +1 -1
- package/dist/assets/{StatusSwitcher-6n_dRY-n-BNMaDHq9.js → StatusSwitcher-Dhw4Hsko-VYfBZyYc.js} +2 -2
- package/dist/assets/{SubTabSwitcher-DEXr9JG8-DYl-5nkS.js → SubTabSwitcher-CaDODjQq-zPof6WQa.js} +1 -1
- package/dist/assets/{SummaryCard-DY8o3K8p-BAhmWEkq.js → SummaryCard-BZp6ZbhG-D2hcdAY2.js} +1 -1
- package/dist/assets/{TaskManagementPage-V-99_2Xz-DTPBZKOy.js → TaskManagementPage-CdzxcwSR-FTY6PAR3.js} +14 -14
- package/dist/assets/{TimeRangeSwitcher-5vzTnmwD-21oyU6e-.js → TimeRangeSwitcher-BsecxqSf-68LRPk1P.js} +6 -6
- package/dist/assets/{TimeframeSwitcher-B1ZBKWlB-DhXXrYF_.js → TimeframeSwitcher-CXQS6_Dj-pJvRjYVF.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-C8w7NoSs-BpbC3sMX.js → TimeframeSwitcherWithToggle-xUcT4SAn-Dxw3KxOM.js} +1 -1
- package/dist/assets/{TopExCard-CflRvGFb-BAjYz-Iu.js → TopExCard-DpBmbBOH-rqB_17zU.js} +5 -5
- package/dist/assets/{TopExDetailPage-BNouRPM_-Fc2qW_d-.js → TopExDetailPage-CXYcu4vC-BudfE4e2.js} +21 -21
- package/dist/assets/{TransactionDetailPage-uJRfI4fh-DesqTbc7.js → TransactionDetailPage-C-oGYPM2-XIgrFLJc.js} +23 -23
- package/dist/assets/{TransactionList-C--m4NRu-UliJnI2L.js → TransactionList-d0Qe-D7V-BamSxQ9h.js} +9 -9
- package/dist/assets/{TransactionListBig-Cbf9p6a1-DD-Iltyn.js → TransactionListBig-By3GVBgG-Jvz7Xg_z.js} +11 -11
- package/dist/assets/{TransactionListPage-BXQ4Ig8E-twBFfLzE.js → TransactionListPage-ChIGfg3A-ZqEGHvAv.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-CKdVogwj-DhA4vkZ6.js → TransactionVendorDetailPage-D3stMRFF-C_IPHvl6.js} +3 -3
- package/dist/assets/{TransferDrawerPage-BS3lnMMA-D7Uz75yc.js → TransferDrawerPage-QVYSxd-3-BFQ5htQm.js} +22 -22
- package/dist/assets/{TreasuryOverviewPage-U1p6PrnG-BGJad2Km.js → TreasuryOverviewPage-CumKNGbQ-CAGR3hz2.js} +12 -12
- package/dist/assets/{TreasuryPromoPage-C2wmo0Ex-BmAmX39K.js → TreasuryPromoPage-H2Zbw_Yg-DMBJJl3b.js} +8 -8
- package/dist/assets/{TreasurySetupPage-CMl-qGhi-CNu0Qcao.js → TreasurySetupPage-BtUIYjn_-BvLlmakc.js} +4 -4
- package/dist/assets/{TreasuryStatementsPage-BdmLrhA5-D4Nu2ddG.js → TreasuryStatementsPage-B04Ze6pO-DBs8NMkW.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-Q7prcczk-D25azc_v.js → TreasuryTaxLetterPage-D95U9592-A4FKzQli.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-CwvijEQN-Bwp2pRyY.js → TreasuryTransferOrReviewPage-BhHf8lnF-DBq27s-a.js} +91 -91
- package/dist/assets/{TrendChart-SEWDcga_-BO99NbSF.js → TrendChart-BkdPYoj4-D9rpAM75.js} +4 -4
- package/dist/assets/{TrendWithTransactions-CgSaPEFh-CYd6HAWr.js → TrendWithTransactions-CWgoVTcb-CGbGhBS1.js} +4 -4
- package/dist/assets/{UncategorizedAccountsMappingPage-7LqO7hHL-BDugIDym.js → UncategorizedAccountsMappingPage-LdRZIYp5-BtaeEGaz.js} +10 -10
- package/dist/assets/{UnitIntegrationPage--jgHD8q1-S0pNI1GJ.js → UnitIntegrationPage-Ms9BFSjK-PPYprz9i.js} +4 -4
- package/dist/assets/UploadAdditionalDocumentOverlay-D6x4OGXl-CxKK3Ose.js +38 -0
- package/dist/assets/{Vendor2FAPopup-B0fwm9Q3-DbiowxgB.js → Vendor2FAPopup-UmgHYXvP-pOrgh_fD.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BzgsncOJ-D-wRcBTA.js → VendorACHDetailsPage-B3mdoPp8-DRr-74cL.js} +1 -1
- package/dist/assets/{VendorDetailPage-CA3LTIGq-BWmGwvj9.js → VendorDetailPage-Cj6U1nII-BSRlPQ6y.js} +12 -12
- package/dist/assets/{VendorDomesticWireDetailsPage-Ch42jvVt-Mj8sx7lI.js → VendorDomesticWireDetailsPage-BrZCPlAd-BL-hjFrP.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-QjRWxn7V-CX1a7DDS.js → VendorFiling1099EditablePage-TUixssYI-v6dW0vMN.js} +12 -12
- package/dist/assets/{VendorFirstReviewPage-C-ONdLcA-B0_m6y9f.js → VendorFirstReviewPage-BlUNcGLE-B0NOpsas.js} +44 -44
- package/dist/assets/{VendorInternationalWireDetailsPage-qDx2aiDq-a0VdSR9P.js → VendorInternationalWireDetailsPage-DhHWsAne-VClJg3R1.js} +10 -10
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DICOFwMp-qejyR4Yy.js → VendorInternationalWireSwiftDetailsPage-CIvevemJ-Cnw2il7s.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-D0f3TRGG-D68uFCzI.js → VendorsAccountsSection-viRwhErR-BEJjt5C_.js} +4 -4
- package/dist/assets/{VerifyDevice-BMtMcC41-Dbg2e_4c.js → VerifyDevice-l7opea4l-BtT1vRFj.js} +2 -2
- package/dist/assets/{VideoPlayer-DKMO88LY-CpdcOtzz.js → VideoPlayer-BBVi4SOz-9SgJ3yaM.js} +1 -1
- package/dist/assets/{VideoPopup-2z3T5Lnh-DpdsoCXa.js → VideoPopup-CmXRuhQp-5r314mYD.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-yRdYuhLZ-Rl0k4Hgw.js → WarningsDrawerPage-Ckg9AVsj-B9emohJx.js} +2 -2
- package/dist/assets/{ZeniAccountDetailPage-ISiEkizf-DqMBVEzK.js → ZeniAccountDetailPage-B-jNA-tI-ms245E2y.js} +25 -25
- package/dist/assets/{ZeniAccountListViewPage-BTrvu_w1-CvQRO_G0.js → ZeniAccountListViewPage-oBGTDIBN-C9aSAN9Z.js} +8 -8
- package/dist/assets/ZeniAccountNavBarPieces-JScxmkmi-BP103W6l.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-Dac1THyO-Cwp-e4be.js → ZeniAccountPromoPage-BHzfVbtI-P2leDJcs.js} +20 -20
- package/dist/assets/{ZeniAccountSetupPage-ZSfjnq4--Cch7x_8N.js → ZeniAccountSetupPage-DD_QA8h8-DpmP7jf1.js} +4 -4
- package/dist/assets/{ZeniCopyright-C4Hdl7V0-Ca9rvA1h.js → ZeniCopyright-BPSL51G5-DcEAxBC-.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-CAiR-tiF-D35xHKkQ.js +63 -0
- package/dist/assets/{analyticsHelper-Cf24DjyD.js → analyticsHelper-CnRA1Gcw.js} +1 -1
- package/dist/assets/{analyticsHelper-CaxfROfX-BJw_t2lW.js → analyticsHelper-kwNg2DUZ-Bg-BVsZB.js} +1 -1
- package/dist/assets/{chartTypes-CQLwj1wn-DieV0CBv.js → chartTypes-CCFDB3ft-gWEy54C4.js} +1 -1
- package/dist/assets/{commonDimensions-BqqLiZ_H-B0_d-72y.js → commonDimensions-FafZVRxo-CSxm8Nzu.js} +1 -1
- package/dist/assets/{detailCommon-_wteS7vQ-C_UD8u6z.js → detailCommon-Bk08SAcF-CmJo8a2_.js} +7 -7
- package/dist/assets/{downloadPdf-DqURwcIt-CmMnbB-x.js → downloadPdf-Bj4Y4BB4-D1l-PLqG.js} +1 -1
- package/dist/assets/{index-BkGkQn7J.js → index-dX8TSOm6.js} +72 -72
- package/dist/assets/{mapLoadingInProgressToTreeNode-kidLNkmQ-CU04H-qr.js → mapLoadingInProgressToTreeNode-Cx24jJa--D8U4jxjz.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BSUhjNT5-J3kjBIi7.js → mapSectionWithAcOnlyToTreeNode-BRxefLX_-DoZmzx4J.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-m5nGTY8W-trYJ4bob.js → mapSpacerToTreeNode-VUbus-r3-pBb-m1M8.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-D5QkbXkx-D1QrAIga.js → mapTimeframeBalancesToTreeNode-B6aAv6pB-C6UbW4bf.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CHHGNXiT-D9Kz1L-n.js → mapTimeframeBalancesToTreeNode-CSScIc2H-CNAuSnEW.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-o4l_IoBF-BIaJA13t.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DBDE1nuS-CTldXama.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-bhm-pCR2-Cjf_xcN8.js → toCOABalancesWithID-M4gPqViI-CcaXT71y.js} +1 -1
- package/dist/assets/{toChartData-3h9AvMdw-BtuTX52b.js → toChartData-CrsGFSA1-DRCqW50O.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CJ61L8mT-DGtx7Czf.js → treasuryColorHelper-B8Evc_xJ-C2M6xUma.js} +1 -1
- package/dist/assets/{uploadAttachment-Bf61v1Xo-BdDTy9wy.js → uploadAttachment-PM-_GgYg-CTQQfxMY.js} +3 -3
- package/dist/assets/{uploadReceipts-CPeNTSex-B9QC1Ib6.js → uploadReceipts-B3-z3hJ9-DECDgzHp.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddAddressForCardDrawer-BZ0RCcja-DeN0wdYs.js +0 -6
- package/dist/assets/AttachmentView-CdNQ2xWp-Bvpk1SdZ.js +0 -101
- package/dist/assets/BillPaySetUpPage-mD_IeiJx-C2AEnkkH.js +0 -42
- package/dist/assets/BusinessVerificationPage-CXxO69rJ-B2xvcQL_.js +0 -140
- package/dist/assets/CheckDepositDrawerPage-DSR4fX1u-B41Tuwd0.js +0 -206
- package/dist/assets/CompanyPassportCard-D1Qw3xp1-BcKy74pq.js +0 -42
- package/dist/assets/CustomerOnboardingContainerPage-gA22hWiI-zVgsGpbA.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-r85EAGP9-DFBVNcDX.js +0 -66
- package/dist/assets/CustomerOnboardingProductSuitePage-DjNvBda4-BxY-0AsA.js +0 -202
- package/dist/assets/EditPeoplePage-DF_58Z4U-DoX8iNFa.js +0 -55
- package/dist/assets/ExpenseAutomationOverviewPage-DleEJVpj-D4jVCqMP.js +0 -222
- package/dist/assets/HelpButton-CzyBnp0B-ChA2L75P.js +0 -28
- package/dist/assets/InsightsCardStack-DJQ_W9fy-Bkv78BK1.js +0 -79
- package/dist/assets/InvitePeoplePage-BN0ktc82-BLO9Ep-Z.js +0 -12
- package/dist/assets/InvoiceUploadSection-BQgfwgdt-DRCL-kG6.js +0 -140
- package/dist/assets/LabeledAddressValueField-Dg0TLzPn-C8l26S45.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-DJSFmpIX-C25AJyD4.js +0 -16
- package/dist/assets/LabeledDocumentField-BT7CRAVI-BPUiB9Ug.js +0 -41
- package/dist/assets/LockCardPage-Cv7cc2yv-DzSZdmRI.js +0 -558
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DH75g3pT-WgQ1f6n1.js +0 -26
- package/dist/assets/ReimbursementDetailPage-DNaaqXYR-fQnzyGQt.js +0 -314
- package/dist/assets/ReviewDetailsPage-DaLjRiFW-DH1pO3BU.js +0 -290
- package/dist/assets/SignIn-nUeTTVKC-CJvTPeOF.js +0 -329
- package/dist/assets/UploadAdditionalDocumentOverlay-D2Tin1CX-S9tpm7GT.js +0 -38
- package/dist/assets/ZeniAccountNavBarPieces-C3IR1FEp-39hGD_At.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-Co5sY7gl-BoVHF7sd.js +0 -63
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,
|
|
1
|
+
import{j as t,am as po,a2 as m,bh as fe,a3 as Z,dl as go,o as c,g as ee,a5 as hi,e as M,N as ui,H as fo,dm as pi,dn as xo,l as A,M as W,r as w,dp as Vi,dq as Ot,ab as _,dr as Mt,bK as Nt,ds as It,C as D,cB as Pt,Q as Di,E as Je,dt as Ne,bj as K,h as mo,u as ce,ai as Ri,du as Ei,ac as V,n as Ae,dv as wo,dw as se,bJ as zt,by as gi,w as yo,m as ye,dx as Xe,dy as Be,dz as tt,s as C,bR as ne,dA as bo,$ as Ft,dB as Re,dC as fi,dD as xi,dE as ko,dF as jo,ar as Gi,ao as So,c5 as Tt,c4 as Vt,dG as Co,ap as Hi,c8 as Ki,bp as $o,dH as vo,dI as mi,dJ as wi,dK as _o,dL as Lo,br as Ao,b8 as Bo,dM as Wo}from"./index-dX8TSOm6.js";import{n as a,b as I,f as Oo,j as P}from"./vendor-rkTZJa59.js";import{L as it,N as Mo,D as No,B as be,u as v}from"./AccountRow---y_a4hQ-CjUH_owU.js";function Q(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 Z("0,0",e?.balance)}function J(e){return Z("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 Z("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 Z("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 Z("0,0",Object.assign({},e.forecast,{amount:i}))}else return Z("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 Zi(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const i=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return Z("0,0",Object.assign({},e.totalForecast,{amount:i}))}else return Z("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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 as hi,
|
|
|
73
73
|
background-color: ${e=>e.bgColor?.hex()};
|
|
74
74
|
flex-direction: column;
|
|
75
75
|
padding-right: ${v.wrapperPadding}px;
|
|
76
|
-
`,
|
|
76
|
+
`,Qo=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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 as hi,
|
|
|
125
125
|
width: ${v.spacerLineWidth}px;
|
|
126
126
|
`,lr=a.div`
|
|
127
127
|
width: ${v.statusWidth}px;
|
|
128
|
-
`,Ee=({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(Zo,{height:i,children:t.jsxs(
|
|
128
|
+
`,Ee=({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(Zo,{height:i,children:t.jsxs(Qo,{children:[t.jsx(qo,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp4,width:v.leftLabelWidth},children:t.jsx(Xo,{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(Ee,{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(Ee,{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(Ee,{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(Ee,{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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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?Z("0,0",i.totalBankBalance):et}),t.jsx(wr,{children:i.totalClearedBalance!=null?Z("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?Z("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?Z("0,0",i.totalBankBalance):et}),t.jsx(wr,{children:i.totalClearedBalance!=null?Z("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?Z("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}},Qi={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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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=>Qi.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)})}),Er=({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}),Gr=({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(Gr,{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(Er,{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 G={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 Ge=[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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 as hi,
|
|
|
260
260
|
flex-flow: row;
|
|
261
261
|
justify-content: flex-start;
|
|
262
262
|
align-items: center;
|
|
263
|
-
`,
|
|
263
|
+
`,Qr=a.div`
|
|
264
264
|
display: flex;
|
|
265
265
|
flex-direction: row;
|
|
266
266
|
flex-shrink: 2;
|
|
@@ -275,7 +275,7 @@ import{j as t,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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?Ge[e.nestingLevel].value(e.windowSize)-w[5]:Ge[e.nestingLevel].value(e.windowSize)}px;
|
|
280
280
|
max-width: ${e=>e.noMarginForEntity?Ge[e.nestingLevel].value(e.windowSize)-w[5]:Ge[e.nestingLevel].value(e.windowSize)}px;
|
|
281
281
|
height: 1px;
|
|
@@ -291,7 +291,7 @@ import{j as t,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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(Zr,{"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(Zr,{"data-testid":m("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(Qr,{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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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 Za({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 Za({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 Qa(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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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:Q(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(Za,{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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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:Q(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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 as hi,
|
|
|
892
892
|
text-overflow: ellipsis;
|
|
893
893
|
text-align: left;
|
|
894
894
|
margin-left: ${c.sp2};
|
|
895
|
-
`,
|
|
895
|
+
`,Ql=({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:Q(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(El,{"data-testid":m("account-group-row-root-container",e),height:r,bgColor:i,windowSize:x,children:[t.jsxs(Gl,{"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(Zl,{"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(Ql,{"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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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:Q(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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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:Q(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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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:Q(i)}):null,Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx(mt,{children:Q(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}),Zt=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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 as hi,
|
|
|
1190
1190
|
max-width: ${j.balanceWidth};
|
|
1191
1191
|
text-align: right;
|
|
1192
1192
|
margin-left: 12px;
|
|
1193
|
-
`,
|
|
1193
|
+
`,Qs=a.div`
|
|
1194
1194
|
display: flex;
|
|
1195
1195
|
flex-direction: column;
|
|
1196
1196
|
flex-shrink: 2;
|
|
@@ -1205,7 +1205,7 @@ import{j as t,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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(Zs,{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(Zs,{isClickable:n,children:Q(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(Qs,{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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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:Q(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===Zt&&!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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 as hi,
|
|
|
1522
1522
|
text-overflow: ellipsis;
|
|
1523
1523
|
text-align: left;
|
|
1524
1524
|
color: ${e=>e.theme.colors.primary};
|
|
1525
|
-
`,
|
|
1525
|
+
`,Qc=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:Z("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(Ec,{"data-testid":m("total-row-root-container"),heightValue:i,bgColor:d,children:t.jsxs(Gc,{"data-testid":m("total-row-container"),children:[t.jsx(Uc,{className:"flux-total-row",children:t.jsx(Zc,{children:n})}),t.jsxs(
|
|
1537
|
+
`,Jc=({balance:e})=>t.jsx(Kc,{children:t.jsx(Yc,{children:Z("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(Ec,{"data-testid":m("total-row-root-container"),heightValue:i,bgColor:d,children:t.jsxs(Gc,{"data-testid":m("total-row-container"),children:[t.jsx(Uc,{className:"flux-total-row",children:t.jsx(Zc,{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(Qc,{})]})]})})}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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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:Q(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===Zt&&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,Qt=(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(!Qt(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(!Qt(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(!Qt(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===Zt,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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 as hi,
|
|
|
1842
1842
|
flex: 1 0 auto;
|
|
1843
1843
|
flex-direction: row;
|
|
1844
1844
|
justify-content: flex-end;
|
|
1845
|
-
`,
|
|
1845
|
+
`,Qd=a(C)`
|
|
1846
1846
|
user-select: none;
|
|
1847
1847
|
clear: both;
|
|
1848
1848
|
display: inline-block;
|
|
@@ -1852,7 +1852,7 @@ import{j as t,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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(Qd,{children:W.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(Zd,{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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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(En,{"data-testid":m("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(Gn,{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(En,{isClickable:!1,children:t.jsx(Gn,{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(En,{"data-testid":m("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(Gn,{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(En,{isClickable:!1,children:t.jsx(Gn,{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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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:Zn;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:Zn;return t.jsx($h,{children:ae(e)===!0?t.jsx(o,{children:Q(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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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:Q(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(Eh,{children:[t.jsx(Dh,{children:t.jsx(Rh,{})}),t.jsx(Gh,{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 Zh=(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})},Qh=(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??[]))||Qn((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=>Qn(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 Qn(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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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:Q(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:Ei,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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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:Q(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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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:Q(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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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
|
-
`,Eu=({metadata:e,depth:i})=>i===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(ko,{}):t.jsx(jo,{}),Gu=({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
|
+
`,Eu=({metadata:e,depth:i})=>i===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(ko,{}):t.jsx(jo,{}),Gu=({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:Q(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(Eu,{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(Gu,{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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 as hi,
|
|
|
2618
2618
|
flex: 1 0 auto;
|
|
2619
2619
|
flex-direction: row;
|
|
2620
2620
|
justify-content: flex-end;
|
|
2621
|
-
`,
|
|
2621
|
+
`,Qu=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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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(Qu,{children:[ae(e)===!0||o?t.jsx(Ze,{style:{color:n},children:Q(i)}):t.jsx(Ze,{style:{color:n},children:J(i)}),o?t.jsxs(t.Fragment,{children:[t.jsx(Ze,{style:{color:n},children:J(i)}),t.jsx(Ze,{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(Zu,{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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 as hi,
|
|
|
2677
2677
|
display: flex;
|
|
2678
2678
|
flex-direction: row;
|
|
2679
2679
|
justify-content: flex-start;
|
|
2680
|
-
`,
|
|
2680
|
+
`,Qe=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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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):Q(i),g=l===!0?bt(i):J(i),p=l===!0?Ui(i):de(i),f=l===!0?Zi(i):he(i);return t.jsxs(op,{"data-testid":m("account-row-balance-element",e),children:[ae(e)===!0||n?t.jsx(Qe,{"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(Qe,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:g}),n?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:g}),t.jsx(Qe,{"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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 as hi,
|
|
|
2732
2732
|
justify-content: flex-start;
|
|
2733
2733
|
align-items: center;
|
|
2734
2734
|
`,pp=a.div`
|
|
2735
|
-
width: ${e=>
|
|
2735
|
+
width: ${e=>Qi.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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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):Zi(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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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(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(Ep,{...e}):A.isAccountReconReport(e.reportElementData.config.reportId)===!0?t.jsx(Gp,{...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 Zh(n,o,l,h,r,u);case"total":return qh(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}},Ep=({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}},Gp=({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():Qa(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(Ep,{...e}):A.isAccountReconReport(e.reportElementData.config.reportId)===!0?t.jsx(Gp,{...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 Zh(n,o,l,h,r,u);case"total":return Qh(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}},Ep=({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}},Gp=({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():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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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 Zp({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 Zp({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 Qp=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,aj as po,Z as m,bg as fe,a0 as Z,dl as go,o as c,g as ee,a2 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(Qp,{"data-testid":m("report-tree-container"),height:S,width:B,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(Zp,{"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,Q as J,tg as R,Ie as V,eg as W,Oe as a,nt as l,Ws as n,Zt as r,ei as x};
|