@zeniai/web-app-ui 4.14.27-qa → 4.14.28-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-URcYg-_E-CMrUXh7n.js +21 -0
- package/dist/assets/{AIPerformancePage-BTVbAUHG-D-rlRC9T.js → AIPerformancePage-VILPvNCr-DoBW0TQe.js} +29 -29
- package/dist/assets/AccountInfoPage-BTogpO7M-BeBr7bH3.js +18 -0
- package/dist/assets/AccountInfoPageContent-g_X840C3-Byz3DAPs.js +149 -0
- package/dist/assets/{AccountLockedInfoModal-DM2zVI24-BvqEphwT.js → AccountLockedInfoModal-DDNvWMEQ-6SWWVHDx.js} +6 -6
- package/dist/assets/{AccountReconDetailsDrawerPage-B6mhnC_D-DklXIxCe.js → AccountReconDetailsDrawerPage-CydLoK6D-CZ9nLIe4.js} +13 -13
- package/dist/assets/AccountRow-Zjkju8uM-h-BJkTkR.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-z9STg_F3-Bh-wLGtv.js → AccountsPromoCardStack-D8mOW1Wp-DZkmz2EZ.js} +18 -18
- package/dist/assets/AddAddressForCardDrawer-BvGnuIf6-DB5uU020.js +6 -0
- package/dist/assets/{AddToWalletPage-BMPHVMEY-BU28NRn-.js → AddToWalletPage-BMCgd2A5-2JYacy2K.js} +18 -18
- package/dist/assets/AddressRoutes-BuxeYADW.js +1 -0
- package/dist/assets/AddressScreen-C8N1fPfJ.js +9 -0
- package/dist/assets/{AgingReportsPage-Bngg8YpI-CXMOhN6X.js → AgingReportsPage-BL_aBNzL-Bw5_kBEe.js} +6 -6
- package/dist/assets/{AiCfoScreen-1OpyxOPQ.js → AiCfoScreen-DKeSXeDT.js} +2 -2
- package/dist/assets/{AllUserItems-DzHTUgrn-ctPbjWrH.js → AllUserItems-b0wgd0Wz-Cmdhksre.js} +6 -6
- package/dist/assets/{ApAgingDetailPage-BdNgdMZi-DxkwJc1_.js → ApAgingDetailPage-CD2EkZkg-EpN6BsXj.js} +8 -8
- package/dist/assets/{AppBasePage-DUoMiO7X-BTMjuDOu.js → AppBasePage-BM1NMPdI-BkcQFz9Y.js} +12 -12
- package/dist/assets/AppDrawerContent-XR9dBd-C-BYsZG5_k.js +92 -0
- package/dist/assets/ApprovalRulesSettingsPage-6unABLlP-C91QTWWo.js +47 -0
- package/dist/assets/ArAgingChart-DePiNxcV-B7MRrlOq.js +24 -0
- package/dist/assets/{ArAgingDetailPage-Cl5P98Kf-9j3wejr9.js → ArAgingDetailPage-DiJ6PePf-YRaFOXlC.js} +1 -1
- package/dist/assets/{AttachmentView-DQKnQgQK-DgYnMof2.js → AttachmentView-ENg9Osic-C_h00Xvo.js} +6 -6
- package/dist/assets/{BankAccountSection-DxW0EB-K-B_vSxptX.js → BankAccountSection-oL-aN0I_-51rG79cf.js} +6 -6
- package/dist/assets/BankAccountWarningSection-CtRFcHTv-CaeCkm0V.js +51 -0
- package/dist/assets/{BankConnectionsSettingsPage-CFk2aMnM-DA2j6z8y.js → BankConnectionsSettingsPage-B848OGHq-S0dsKmrE.js} +8 -8
- package/dist/assets/BillDetailPage-CPxVWXx6-LfVxiX7-.js +266 -0
- package/dist/assets/BillPayApprovalRoutes-BwVvI4WJ.js +1 -0
- package/dist/assets/BillPayApprovalRuleDetailPage-DtAj6RxA-B2poyBuX.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-iTvysPLf-CqvnWU4g.js → BillPayApprovalRulesPage-DLHvMgeY-8GthXHpr.js} +14 -14
- package/dist/assets/{BillPayPromoPage-B5AGf-Xt-DMzd5Dti.js → BillPayPromoPage-DQJAZi1a-DOwuaVpw.js} +8 -8
- package/dist/assets/{BillPayRoutes-DKhIaBpZ.js → BillPayRoutes-Bzx279Kq.js} +19 -19
- package/dist/assets/BillPaySetUpPage-BVOLWF1M-CpEBt_P1.js +42 -0
- package/dist/assets/BillingSettingsPage-Cfe4Vmza-DSIJr3FK.js +44 -0
- package/dist/assets/{BillsBulkReviewDrawerPage-8E35ktf3-PSnNGTLJ.js → BillsBulkReviewDrawerPage-7y9q0HF_-gFD4nZqL.js} +1 -1
- package/dist/assets/{BoxItem-Yk1jfFWZ-bm0K3UqJ.js → BoxItem-CTEOx6Nh-BbDYdqVh.js} +3 -3
- package/dist/assets/BusinessVerificationPage-D05hRyo1-BMUS-iMK.js +138 -0
- package/dist/assets/BusinessVerificationPageScreen-DfGLG3SR.js +9 -0
- package/dist/assets/BusyIndication-Nz8htndZ-ChVc54FQ.js +9 -0
- package/dist/assets/{CardNumberSubText-DjHY0FvO-DmKTadAQ.js → CardNumberSubText-DijJqFXC-B69YEX78.js} +5 -5
- package/dist/assets/{CashbackDetailPage-BBnND02O-B0i0dSBe.js → CashbackDetailPage-BxIWU0z2-DcCubJwz.js} +27 -27
- package/dist/assets/{ChargeCardDetailPage-BIR8jdTw-Hl7lWW6J.js → ChargeCardDetailPage-ClyQPqJf-BAQGqfmW.js} +31 -31
- package/dist/assets/{ChargeCardListPage-DIaPTqHg-QvrYu2zx.js → ChargeCardListPage-CYhY6c52-DRzxrfOL.js} +21 -21
- package/dist/assets/ChargeCardListTable-Dblodw9X-B-571jVW.js +711 -0
- package/dist/assets/{ChargeCardPaymentHistoryPage-BdQWV5hd-UaInt8sU.js → ChargeCardPaymentHistoryPage-wt6arCEL-5ryWm6WZ.js} +13 -13
- package/dist/assets/ChargeCardPromoPage-AihUlwys-A1x9S-W0.js +222 -0
- package/dist/assets/{ChargeCardRoutes-QBQgxZFH.js → ChargeCardRoutes-4t9GJNvz.js} +12 -12
- package/dist/assets/{ChargeCardSetupPage-64bBN1fe-B9PROkMH.js → ChargeCardSetupPage-C59WR7nm-CVteL9ef.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-B-XeiOnb-BirnH6mz.js → ChargeCardStatementsPage-DF5rt4B5-CiiFftIv.js} +4 -4
- package/dist/assets/CheckDepositDrawerPage-B9-ktuL_-Cnbi1t8C.js +206 -0
- package/dist/assets/CollapsableReportTable-BAz0DbFh-Bx4HSBTd.js +2844 -0
- package/dist/assets/CompanyOfficerDetailsSection-BNSHkrC4-DZDeEGL9.js +331 -0
- package/dist/assets/CompanyPassportCard-DTfKmcGv-kWFAQF4U.js +42 -0
- package/dist/assets/{CompanyPassportPage-B6zI52Pp-CWxea43i.js → CompanyPassportPage-DqhT6YL_-DjGLWJH_.js} +37 -37
- package/dist/assets/{CompanyPassportScreen-CCGCO9-B.js → CompanyPassportScreen-COEYsT8F.js} +1 -1
- package/dist/assets/{CompleteProfile-BLWNz2VA-BtRBf1pR.js → CompleteProfile-DdA-FkwG-DNxHJftH.js} +1 -1
- package/dist/assets/ConfettiBurst-Dc0iIaw3-Cdx9N-8d.js +1 -0
- package/dist/assets/ConnectionAuthScreen-VX2ylo8v.js +11 -0
- package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-DLCOCuvB.js → ConstrainedInnerElement-BeIpAPjB-B0xEPT_b.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D_fPbFsR-BYUMlM0q.js → CreateOrEditVendorPage-CODInbfe-CWblGuXA.js} +19 -19
- package/dist/assets/{CreditCardPaymentDrawerPage-Bl82rSY1-BUtUdu3I.js → CreditCardPaymentDrawerPage-DZNUIDa0-DYeUjTKl.js} +21 -21
- package/dist/assets/CurrencySelectField-D_D8AUqS-W5q-11LT.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-L6GfGsJ9-BmkijjZG.js → CustomerOnboardingActivationPage-CBlyvq0r-BIiex6sW.js} +5 -5
- package/dist/assets/CustomerOnboardingAuthScreen-Cxwuh-5v.js +1 -0
- package/dist/assets/CustomerOnboardingContainerPage-BJV0xAFp-SuSAzHFh.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-MP-lAuJG-KKPN2GG0.js → CustomerOnboardingDetailPageSkeleton-CIhb8Zvx-Cm7w9wnG.js} +15 -15
- package/dist/assets/CustomerOnboardingNoStepsPage-CLFh9K94-CVAWL8GH.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-Cl4wtP6t-DcrRFrM5.js → CustomerOnboardingPage-BJGDpI-d-BI8WTIh2.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-vkblu46s-CFBeFISK.js → CustomerOnboardingProductSuitePage-DmgQGvpp-BgPaXsEW.js} +7 -7
- package/dist/assets/{CustomerOnboardingRoutes-BMTYfbQW.js → CustomerOnboardingRoutes-CDOn_9SO.js} +6 -6
- package/dist/assets/{Dashboard-C1Fn0zHa-Ck-7rBRI.js → Dashboard-Cvmg-DzK-CDouUJlf.js} +26 -26
- package/dist/assets/{DashboardReportPage-3lvWkrXH-CmzteKGa.js → DashboardReportPage-C7bT-gmW-B7qKYPTM.js} +42 -42
- package/dist/assets/DashboardRoutes-Ca715xZt.js +21 -0
- package/dist/assets/DashboardSidebarBackgroundAnimation-CcTStx9W-CLXLQ3Wl.js +12 -0
- package/dist/assets/{DefaultTenantHome-H89rPQPU.js → DefaultTenantHome-zrpUM-2h.js} +1 -1
- package/dist/assets/DepositAccTransactionItem-XZgomj7v-pud7es11.js +76 -0
- package/dist/assets/DepositAccTransactionListPage-B11lcuip-BA6bJfDH.js +66 -0
- package/dist/assets/DomesticWireDetailScreen-BGqZWgZd.js +18 -0
- package/dist/assets/DomesticWireDetailsPage-Cw4aq8Ar-Bz2WPHpK.js +21 -0
- package/dist/assets/DownloadOverlay-DE63RFQe-VsFfbW3d.js +439 -0
- package/dist/assets/{DrawerPage-DudtPicH-hbiw_pdy.js → DrawerPage-DGuh6P-6-CJKJMwA-.js} +11 -11
- package/dist/assets/DrawerScreen-V32qwnkz.js +1 -0
- package/dist/assets/EditPeoplePage-Dmz2l8uY-CK4iVJZr.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-BrQ60mqq-BxmG6xVG.js +865 -0
- package/dist/assets/EntityDetailPage-BbeHCNGS-C5UPIJtj.js +18 -0
- package/dist/assets/EntityDetailRoutes-BxYqKDQd.js +1 -0
- package/dist/assets/{EntitySummarySection-Po9-k_zM-D4BVYzOO.js → EntitySummarySection-BgjWn9vX-ChJDfPvK.js} +26 -26
- package/dist/assets/{ExpenseAutomationOverviewPage-CbLRqpw3-Bm8ozA7v.js → ExpenseAutomationOverviewPage-V2cvYWxH-C16OEZnu.js} +51 -51
- package/dist/assets/ExpenseAutomationPage-BDZ6aX0q-DJ_VB_IO.js +2323 -0
- package/dist/assets/ExpenseAutomationRoutes-Dbfi_osP.js +20 -0
- package/dist/assets/{ExpressPayPage-BbHx9h8j-DxMm9gcn.js → ExpressPayPage-5VdASApP-Po6fvmnX.js} +10 -10
- package/dist/assets/{FeaturePreviewPage-72x3P-pq-BRxKJgbB.js → FeaturePreviewPage-CA_fxOHn-CMqOKpmQ.js} +2 -2
- package/dist/assets/FeaturePreviewScreen-C5OPsEGq.js +1 -0
- package/dist/assets/{FollowStepsSection-BT_WjsEy-BMkprFjA.js → FollowStepsSection-CTSjTKjT-D1lTh6HA.js} +11 -11
- package/dist/assets/GlobalReviewListPage-DmrnXFgW-CX1Z-LFj.js +291 -0
- package/dist/assets/{InformationCardStack-CjpOEuJF-CY8AHfmK.js → InformationCardStack-D_Z7Ebe0-CcLIhUuZ.js} +3 -3
- package/dist/assets/InsightsCardStack-Dbpzjgf4-fdUWj0-e.js +79 -0
- package/dist/assets/InsightsSection-DgViiL7e-CyZzflwi.js +27 -0
- package/dist/assets/IntegrationsSettingsPage-4OV7HFwe-DB-wBCWA.js +57 -0
- package/dist/assets/{InternationalWireSwiftDetailsPage-C1WTGANK-BxDLWIJ0.js → InternationalWireSwiftDetailsPage-B1nvNamF-Csz75ldD.js} +18 -18
- package/dist/assets/InternationalWireVerificationPage-HZgqUkj4-BeRgJyDk.js +65 -0
- package/dist/assets/{InviteFormPage-D56FOZEG-YjtIHJmt.js → InviteFormPage-C5mS-6c8-DHEfB4pP.js} +18 -18
- package/dist/assets/{InvitePageListView-BbQyUnv0-CP6So3At.js → InvitePageListView-Yj83_lDA-DG8kjHEN.js} +66 -66
- package/dist/assets/InvitePeoplePage-C7DlxHsy-CbV9Kfvk.js +12 -0
- package/dist/assets/InvoiceUploadSection-DdIQCBkC-hgUkpCX_.js +140 -0
- package/dist/assets/{IssueChargeCardPage-BT9h01l_-efn-gMmS.js → IssueChargeCardPage-BIOTVOMR-y141Zbnw.js} +71 -71
- package/dist/assets/{LabeledAddressValue-DF623NAW-DBk7OZ_l.js → LabeledAddressValue-Bb1x9jR--B6kyu-d_.js} +1 -1
- package/dist/assets/LabeledAddressValueField-D3_DsNPu-DBYOiYu9.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-DdHmj0q2-DFcQf8uf.js +16 -0
- package/dist/assets/{LabeledCountryMultiSelectField-B5vytqi_-CTjtWp-f.js → LabeledCountryMultiSelectField-LeubJT8b-DTiRo8mi.js} +4 -4
- package/dist/assets/{LabeledCreatableSingleSelectField-DN5wCaeU-B4bYahZQ.js → LabeledCreatableSingleSelectField-CzrPLo-T-WU7xdxt6.js} +6 -6
- package/dist/assets/LabeledDocumentField-CFtFroDl-BZ61zQ53.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-BvdkjSR_-T-ZEjluP.js → LabeledDropDownFormattedTextField-CFsuVVp3-BWloCe5f.js} +7 -7
- package/dist/assets/{LabeledEmailInputField-B17ZXjvY-Bgq9Bw5g.js → LabeledEmailInputField-BOEHGgHy-DmP8tNRS.js} +7 -7
- package/dist/assets/{LabeledNameField-DXPyRS_B-aEVZrWHH.js → LabeledNameField-DWKoivcI-CTKa3xQk.js} +4 -4
- package/dist/assets/{LabeledSingleSelectField-DZ7GoSpj-CeyfgNkx.js → LabeledSingleSelectField-BkGsnV9P-L8vud565.js} +4 -4
- package/dist/assets/LabeledText-CZMUFsPf-BSb4-Hu0.js +42 -0
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BnDEbwhn-CXwABLlN.js → LabeledUserSingleSelectWithSubtitlesField-BTo_s8x5-D96FBec7.js} +15 -15
- package/dist/assets/{LabeledZeniRolesDropDownField-CY2feiXB-FzZcdRyQ.js → LabeledZeniRolesDropDownField-C3LoYUh_-CUGSemOL.js} +20 -20
- package/dist/assets/{LinkJETransactionPage-Bc3h7Bsx-CLCCvFC8.js → LinkJETransactionPage-BbpybbwD-BZQW-eEy.js} +11 -11
- package/dist/assets/{LockCardPage-DIZ-1K3B-J6PMXtrS.js → LockCardPage-C0XjGES8-Dv5p7F-M.js} +27 -27
- package/dist/assets/{LowBalancePopup-CKSy3iEi-f1V3RnUh.js → LowBalancePopup-CkO97HGX-C-OMTelo.js} +3 -3
- package/dist/assets/MagicLinkACHDetailsPage-CcaWGIEm-CBJpUCPj.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-6V37rCS5-DlEVkMTv.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-BKWBDCxr-1pJwpVUJ.js +1 -0
- package/dist/assets/MagicLinkRoutes-0i3kRHtF.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-8oYCtfCr.js +12 -0
- package/dist/assets/{MagicLinkSuccessPage-fC1L-fjF-B1tQEsFE.js → MagicLinkSuccessPage-L5UJIvTe-Ds_uEzRm.js} +3 -3
- package/dist/assets/{MagicLinkTitleSection-D38JxxrQ--O7VTYiG.js → MagicLinkTitleSection-CEZGF8ER-CtJhgwJN.js} +1 -1
- package/dist/assets/{MailingDetailsSection-_5DUMAiO-cIrB6Ese.js → MailingDetailsSection-CRsQVOYi-DVyOc3HW.js} +1 -1
- package/dist/assets/MobileAppDrawer-vjIJyx5N.js +1 -0
- package/dist/assets/{MoreMenuButton-BCREj5dQ-BCylVRTR.js → MoreMenuButton-BWNCapgP-CobtazoG.js} +27 -27
- package/dist/assets/{MyBankConnectionsSettingsPage-TSaL2Z3R-DIU3oLQ2.js → MyBankConnectionsSettingsPage-C6p5J_f5-aGTzDXcW.js} +7 -7
- package/dist/assets/{MyPendingActivationChargeCardListPage-BvcQUu1g-CT952uFb.js → MyPendingActivationChargeCardListPage-CluWS3nS-3Mvvi7l1.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-AqrcruM6-jesbPct3.js → MyProfileSettingsPage-Ctkx_sAQ-BJzrBUg_.js} +7 -7
- package/dist/assets/NavBarWithPicker-ClP6LCUF-B_agyqrI.js +30 -0
- package/dist/assets/NavigationArrow-CUPvxfZv-DFdgHBv5.js +47 -0
- package/dist/assets/NavigationDots-Cu9LZj7T-BaBE0dTx.js +15 -0
- package/dist/assets/{NewGlobalMerchantPage-B-aRURcQ-D1t1eSio.js → NewGlobalMerchantPage-g9JuX6MR-DfxwRkm2.js} +12 -12
- package/dist/assets/NoDataChart-DcMRzXHU-BWuTQSGS.js +26 -0
- package/dist/assets/{NoDataTable-BtEKMdpl-CBXm-Rpx.js → NoDataTable-D1v085Vv-TbZCkeJw.js} +1 -1
- package/dist/assets/{NotFoundPage-aEkhvzEG-D7OUf5MG.js → NotFoundPage-Bf-EPtU9-B60UYrLG.js} +4 -4
- package/dist/assets/NotFoundScreen-BlOJVroe.js +1 -0
- package/dist/assets/NotificationRoutes-CKAGXrkl.js +1 -0
- package/dist/assets/{NotificationSettingsPage-CMNyI8E6-blQORKhV.js → NotificationSettingsPage-Zv4-2vEl-Dq8r17oD.js} +16 -16
- package/dist/assets/NotificationsListConfig-CO5uOSs7-B3Op3ktj.js +1 -0
- package/dist/assets/NotificationsPage-BH6B4Q8b-YOVbk2c7.js +685 -0
- package/dist/assets/OpExByVendorPage-EjyJRLhn-jezrc1pM.js +100 -0
- package/dist/assets/{OverlayContainerPage-BG9y5C0t-CNdAZz5K.js → OverlayContainerPage-D4QU0p4o-DZKwQHwV.js} +1 -1
- package/dist/assets/PandLWithForecastPage-UpDz4Qqu-fjMo0Gtf.js +107 -0
- package/dist/assets/PandLWithForecastRoutes-TX6P7Zrq.js +1 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-Cg-iwsq9-CQwi_YjA.js → PaymentAccountSetupBillingAddressSection-CqavirRU-DO80n7FW.js} +9 -9
- package/dist/assets/PeoplePage-D2N1XP-O-DKs_D4Fh.js +720 -0
- package/dist/assets/PeopleRoutes-C8mODapz.js +22 -0
- package/dist/assets/PerformanceRoutes-DiU5fqKk.js +1 -0
- package/dist/assets/{Preview-C1JD0WiC.js → Preview-CqLia4uG.js} +1 -1
- package/dist/assets/{ProductsCarousel-LGZZZ4bc-TzC9x8-0.js → ProductsCarousel-Dx8bStwI-C44-19N7.js} +8 -8
- package/dist/assets/{PromoBaseCards-DMnQ-nBZ-B7anhmyf.js → PromoBaseCards-Bauxzwzt-Dgaaf2yK.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-ufRcAeE8-BiWhXsJA.js → QBOConnectionDialog-COlHLDTh-CjJgFUeC.js} +13 -13
- package/dist/assets/{QBOConnectionScreen-hdZFNBVm.js → QBOConnectionScreen-AtAIA8jj.js} +22 -4
- package/dist/assets/QBOSetupSection-Cb4AlHU9-BpQhAPPt.js +79 -0
- package/dist/assets/ReferralListScreen-XiiAfJ90.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-BocYdQhD.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CE0CxjTY-C5xH-EUU.js → ReimbursementApprovalRuleDetailPage-Cb4wyiiA-PPkCr8xd.js} +5 -5
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-C4x83TjH.js → ReimbursementApprovalRuleDetailScreen-DPE-kSBA.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DDNhjbbG-CAvrqdJa.js → ReimbursementApprovalRulesPage-BEid42KU-DeLels1v.js} +5 -5
- package/dist/assets/ReimbursementDetailPage-CuuOsKPv-BPEFJ0xe.js +314 -0
- package/dist/assets/ReimbursementPromoPage-fvIAhNdR-CSg5BemV.js +84 -0
- package/dist/assets/ReimbursementRoutes-ZXUNkUzw.js +13 -0
- package/dist/assets/{ReimbursementSetUpPage-vZd1l3-L-Cd-ugKb_.js → ReimbursementSetUpPage-CBKANstD-CdxQGkDo.js} +7 -7
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-BXO46shT-Ki-BIH8Q.js +1 -0
- package/dist/assets/ReloadCard-BKHKE8Pu-B3lPeTvz.js +26 -0
- package/dist/assets/ReportTableViewSelector-gYxUii1M-BhXMqYN6.js +150 -0
- package/dist/assets/ReportsPage-D7rEPLAa-CczMmifR.js +121 -0
- package/dist/assets/ReportsRoutes-CZ3tnE-5.js +1 -0
- package/dist/assets/{RevenueChart-CKjVL6iT-C_eQ-aqy.js → RevenueChart-BHrj8Dy9-Bgtbsht_.js} +12 -12
- package/dist/assets/ReviewDetailsPage-B9SMV_va-PLuKyyKj.js +290 -0
- package/dist/assets/{ReviewOverlay-DyTC2zKj-KDRsvwAc.js → ReviewOverlay-Be_F1hd--Aq5DKqVU.js} +14 -14
- package/dist/assets/RewardsRoutes-OB-0XHFr.js +1 -0
- package/dist/assets/RoleWithToolTip-D9DCHaph-Ct3ZRTHm.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-9XyukA76-jDvGJj5q.js → ScheduleDetailsFixedAssetsPage-h1Ewtn5T-DRtWGNvu.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-CkMIJDcP-BYxIJ7TX.js → ScheduleDetailsPage-Cr-KaH2D-B1Q1jbwo.js} +3 -3
- package/dist/assets/ScheduleSequenceTable-BBbLa0gA-C54SUt--.js +324 -0
- package/dist/assets/ScreenRoutes-Dj6yeCaN.js +2 -0
- package/dist/assets/{SetUpAccountSection-BkGBS9x_-Cq1DI8pA.js → SetUpAccountSection-ULABF-Md-DYZnUdRJ.js} +15 -15
- package/dist/assets/SettingsRoutes-CK_IQzwc.js +57 -0
- package/dist/assets/{SetupPagesScreen-BAJOwy6E.js → SetupPagesScreen-B28b7eDr.js} +6 -6
- package/dist/assets/{SignIn-DybDQnmR-C81T6vjg.js → SignIn-6YH_riJW-DzqdPViU.js} +74 -74
- package/dist/assets/SignInScreen-Jslx5-TX.js +1 -0
- package/dist/assets/SignOutScreen-D56BFgpr.js +9 -0
- package/dist/assets/SpendManagementListViewPage-D_RrkezV-ELAXLz4H.js +134 -0
- package/dist/assets/{SpendManagementPerTabPage-CR9CphX3-DsEMuden.js → SpendManagementPerTabPage-BnugLA94-vwewauIW.js} +96 -96
- package/dist/assets/SpendManagementSection-DCk1isQq-BuKHrb4M.js +375 -0
- package/dist/assets/StatementItem-BWKA6BsE-BBtXJaEH.js +31 -0
- package/dist/assets/StatementsPage-C5KuiVH4-Cf4qB6ps.js +58 -0
- package/dist/assets/{StatusSwitcher-Z7jo_R2B-BupHP9_H.js → StatusSwitcher-CgzMvf5t-ncrbliMU.js} +6 -6
- package/dist/assets/{SubTabSwitcher-DJvtpJh2-DzBKus5r.js → SubTabSwitcher-gc5g6vV0-BudAZpBJ.js} +9 -9
- package/dist/assets/SuccessAnimation-CcFXT4sg-BtvDv4Ac.js +13 -0
- package/dist/assets/SummaryCard-DgPg2oPm-TIRnserH.js +1 -0
- package/dist/assets/{TaskDetailPage-D6OLDKHa-CcEZ6QIq.js → TaskDetailPage-Brq3l5Lm-js01YZsk.js} +42 -42
- package/dist/assets/TaskListScreen-PaUFhtYL.js +9 -0
- package/dist/assets/TaskManagementPage-Dyy-A0ij-kAppPPcp.js +1063 -0
- package/dist/assets/TaskRoutes-DNKzAv87.js +9 -0
- package/dist/assets/TimeRangeSwitcher-PcHPZNOq-DyMi_xu3.js +64 -0
- package/dist/assets/TimeframeSwitcher-XZjkUS_W-DEhbHF-x.js +31 -0
- package/dist/assets/TimeframeSwitcherWithToggle-KxCdrFMS-CmMYWc36.js +31 -0
- package/dist/assets/{TopExCard-BmRXVrxo-_W2SzaPG.js → TopExCard-CRxFMC50-CucHTjUq.js} +6 -6
- package/dist/assets/{TopExDetailPage-Ds-BZjbz-CIQg5qwm.js → TopExDetailPage-D7dCJGpQ-_APvVGdT.js} +18 -18
- package/dist/assets/{TransactionActivityLogPage-CKIHtz5l-CBtxyxk_.js → TransactionActivityLogPage-ByyxovGE-B8-_ivhT.js} +11 -11
- package/dist/assets/TransactionDetailPage-D0_Tjv5D-BbvOSya5.js +903 -0
- package/dist/assets/TransactionDetailRoutes-BBeHV_Bn.js +1 -0
- package/dist/assets/TransactionDetailScreen-BnLwFmdM.js +5 -0
- package/dist/assets/TransactionList-DoYieHoy-MtmaAm18.js +153 -0
- package/dist/assets/{TransactionListBig-JcBvCcMd-D4tRq6mB.js → TransactionListBig-BOKPby7d-BiHGWKXG.js} +20 -20
- package/dist/assets/TransactionListPage-Bfx0PW2V-Ko7n0w0K.js +35 -0
- package/dist/assets/{TransactionListRoutes-CZ11TS_h.js → TransactionListRoutes-D6vFloa7.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BCtWJV5U-Cg9b-1j4.js → TransactionVendorDetailPage-BK4zpJ1F-BT9vQvKO.js} +5 -5
- package/dist/assets/{TransferDrawerPage-DoIPGIdB-DwVunJdt.js → TransferDrawerPage-B5ofYt0y-GCYB9I81.js} +24 -24
- package/dist/assets/TreasuryOverviewPage-D4LuhPMd-FpA9c7P5.js +708 -0
- package/dist/assets/{TreasuryPromoPage-avx9YENY-DTL4pcWX.js → TreasuryPromoPage-ofZQDboF-BK7GFuNm.js} +13 -13
- package/dist/assets/TreasuryRoutes-DQPlHyww.js +45 -0
- package/dist/assets/TreasuryStatementsPage-D4bGPC_n-C9CJ9i1a.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-BT_G7d-D-DkEXvQO_.js → TreasuryTaxLetterPage-4aV14kQe-Bg3G6zgb.js} +4 -4
- package/dist/assets/{TrendChart-rzKYI72b-Drm1Eh-x.js → TrendChart-BJLik8fK-C09X9QMT.js} +4 -4
- package/dist/assets/TrendWithTransactions-R1FCSydB-Ci1yaQBG.js +116 -0
- package/dist/assets/{UncategorizedAccountsMappingPage-5VnrVRL7-BzS8Z3L2.js → UncategorizedAccountsMappingPage-mYSXtdgK-mpKZn3rt.js} +7 -7
- package/dist/assets/{UnitIntegrationPage-CRtWNQ9s-BXD_JgdY.js → UnitIntegrationPage-C44UiDRH-C1DPzFjn.js} +5 -5
- package/dist/assets/UploadAdditionalDocumentOverlay-CJmvE3y6-D4_Nm785.js +38 -0
- package/dist/assets/Vendor2FAPopup-Bt_phaZI-DRgs4wjV.js +1 -0
- package/dist/assets/VendorACHDetailsPage-CxlQSWGZ-Fo80chk3.js +1 -0
- package/dist/assets/VendorDetailPage-BixXt95H-DDRHGc3v.js +257 -0
- package/dist/assets/VendorDomesticWireDetailsPage-BmFZeCgu-3p9zequ6.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-B0LEUR_g-B5BIQU3s.js → VendorFiling1099EditablePage-DIyS2YV_-CSGr8UHs.js} +24 -24
- package/dist/assets/VendorFirstReviewPage-DZ00XYRi-Bujg7mnV.js +730 -0
- package/dist/assets/{VendorInternationalWireDetailsPage-CHFMTDYG-BbWeoiim.js → VendorInternationalWireDetailsPage-DOYmaAmB-DkdpvBe3.js} +11 -11
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BCafZBL5-O4Et_Cvx.js +1 -0
- package/dist/assets/{VendorsAccountsSection-By1Bhh27-DcOiL6S-.js → VendorsAccountsSection-D6DinIAj-CJyfm4FF.js} +2 -2
- package/dist/assets/{VendorsRoutes-NsL__2Us.js → VendorsRoutes-BzRnsTCQ.js} +21 -21
- package/dist/assets/VerifyDevice-DFug_o82-BbsyIuwM.js +112 -0
- package/dist/assets/{VideoPlayer-DBU7xwIG-B74OFhs2.js → VideoPlayer-BuOlZW0M-DUvqMJGc.js} +1 -1
- package/dist/assets/{VideoPopup-Dxc93Pwx-DENHvk5i.js → VideoPopup-B03SM83j-CEO910rC.js} +1 -1
- package/dist/assets/WiseConfirmationScreen-Be46vSWM.js +12 -0
- package/dist/assets/ZeniAccountDetailPage-BJQvxY7D-0WnS8PEZ.js +300 -0
- package/dist/assets/ZeniAccountListViewPage-CvwGdUPT-CLqSbTJn.js +441 -0
- package/dist/assets/ZeniAccountNavBarPieces-OGXEdZmI-WHE_ZaHO.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-MPekAyNe-Bi-1usPB.js → ZeniAccountPromoPage-iELT-FzW-B54bB-Au.js} +23 -23
- package/dist/assets/ZeniAccountRoutes-ked1y8nK.js +58 -0
- package/dist/assets/{ZeniAccountSetupPage-CxYZzfiZ-zon_oiyA.js → ZeniAccountSetupPage-feqonZIV-DuQlAwjx.js} +4 -4
- package/dist/assets/ZeniAccountStatementScreen-t9W5AfJc.js +9 -0
- package/dist/assets/{ZeniAvatar-BodtWTPw-CVcXEyfO.js → ZeniAvatar-CHmpyZc4-xmYCp34T.js} +2 -2
- package/dist/assets/{ZeniCopyright-B1muAGCe-q18kcBJ1.js → ZeniCopyright-Cy7xQhak-DdKCW6EI.js} +1 -1
- package/dist/assets/{ZeniDatePicker-BmNnzdVH-XUzgAQP_.js → ZeniDatePicker--Wk1Y9-b-Ikkm7YIY.js} +4 -4
- package/dist/assets/ZeniTransferAmountSlider-BGK6jY7c-DnMJhxcK.js +63 -0
- package/dist/assets/{accountMappingHelper-BrPXAL73.js → accountMappingHelper-B5TnMmqA.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-Dh9sZKZB.js → add-to-wallet-DgdBD8_G-Buw9XYbC.js} +1 -1
- package/dist/assets/{analytics-CDaNvN8h.js → analytics-D7HtemTn.js} +1 -1
- package/dist/assets/{analyticsHelper-DApOjqKE.js → analyticsHelper-CpXIJxUL.js} +1 -1
- package/dist/assets/{analyticsHelper-BznLUYs2-D0Y6omTO.js → analyticsHelper-MsboCQcB-ClYGtAlc.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-4zq_odDD.js → arrow-south-east-round-PEovUgvH-BfE1l1sB.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-DbGOeLQx.js → auto-transfer-rule-mbafm5D3-Dbmd4uJS.js} +1 -1
- package/dist/assets/{avatar-Dz7aEm3d-CWySFkWm.js → avatar-Dz7aEm3d-C2PjdQVT.js} +1 -1
- package/dist/assets/{calculateSize-B4Atw2cK-BK5U-vIk.js → calculateSize-DtEgyuiA-BJxqaIDz.js} +1 -1
- package/dist/assets/{chartTypes-Bckf_DAs-CcjNgpBl.js → chartTypes-BZL6U2-d-UPGybQZE.js} +1 -1
- package/dist/assets/{clock-CJkylEKt-CVsxzmyy.js → clock-CJkylEKt-BhyIm3xG.js} +1 -1
- package/dist/assets/common-DspMM85g-eqBRfeMW.js +1 -0
- package/dist/assets/commonDimensions-RZ10geET-CQLnP9WR.js +1 -0
- package/dist/assets/{commonTypes-CATFe6V_-Bw1wXmwu.js → commonTypes-lunwFIdl-BTgH3sp5.js} +1 -1
- package/dist/assets/{core-BROwB3xg.js → core-ADrPabGT.js} +38 -3
- package/dist/assets/{dash.all.min-BwyTjiyH.js → dash.all.min-B80Fjk6g.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-BGR3dXtf.js → decodeURIComponentSafe-B2klyNYm.js} +1 -1
- package/dist/assets/detailCommon-CxEOrtjx-XTML3r_I.js +38 -0
- package/dist/assets/{dnd-M9ETCPCc.js → dnd-83aXbnEf.js} +1 -1
- package/dist/assets/{dollar-round-D18u7nlm-DzhQnUAS.js → dollar-round-D18u7nlm-DpqHsegv.js} +1 -1
- package/dist/assets/downloadPdf-BpxrRqLr-Dq9Hm-Yk.js +1 -0
- package/dist/assets/{index-PbnqpzuR.js → empty-BuW7JTEu.js} +1 -1
- package/dist/assets/{empty-DEfk6lzH.js → empty-b7G9eJAG.js} +1 -1
- package/dist/assets/epic-PnA5OGYq.js +2 -0
- package/dist/assets/{filter-cZIFUNvj-CXOCablV.js → filter-cZIFUNvj-FUBo8Jnl.js} +1 -1
- package/dist/assets/getLocaleForTenant-Bt4tLJ8B.js +1 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-a7ivTWB6.js → gift-box-Cmt9OgIZ-BGtl8O0W.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-D4Z2Td9j.js → graphic-no-data-l-DU4J8fDt-ExJA3UCE.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CidPW_p-.js → graphic-no-data-net-burn-l-CzmycA0m-BakRM2hs.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-Du3wpRQE.js → handshake-BPg58FML-DEzA3ltI.js} +1 -1
- package/dist/assets/{helper-BCh4SWyd-isWS85Kg.js → helper-2Z01-P8G-D7tgV0Ug.js} +3 -3
- package/dist/assets/{hyperlink-DQyCeXx2-BRRoxeMz.js → hyperlink-DQyCeXx2-ky2ivvTP.js} +1 -1
- package/dist/assets/index-B9b8RnaK.js +1 -0
- package/dist/assets/{index-CXeFHlD8.js → index-BC_OqBzO.js} +1 -1
- package/dist/assets/index-Bl4vUMlL.js +1 -0
- package/dist/assets/{index-Bsu_RWOn.js → index-DAaNy4V6.js} +8 -2
- package/dist/assets/{index-hlRDRY3p.js → index-DjP1wQjH.js} +1 -1
- package/dist/assets/{index-onESlw0k.js → index-DorX0WX8.js} +4298 -4227
- package/dist/assets/{lexical-BDowhSNN.js → lexical-BGYE9Sy4.js} +1 -1
- package/dist/assets/{liveblocks-Bdti0GEu.js → liveblocks-f_lxxH57.js} +8 -3
- package/dist/assets/{lottie-CyO1eRs4.js → lottie-sNoV77jf.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DcYetEpP-Cjbsf28w.js → mapLoadingInProgressToTreeNode-BJRnX8Ir-CTwzTgVL.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CExgzViB-Ckk52Tg_.js → mapSectionWithAcOnlyToTreeNode--0eoufeA-BVEmfqf7.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-CQvnRjWo-D94Aabob.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-CY0Vs8kK-BW2bp0f8.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cytg0KxN-BW6Ya40z.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-_7RU9lwp-eJu_Fbcv.js → mapTimeframeHeaderLoadingInProgressToTreeNode-3KVmTdIZ-DkTIrIkC.js} +1 -1
- package/dist/assets/{media-player-C_DTDTMq.js → media-player-D1K6tfw6.js} +2 -2
- package/dist/assets/{money-2cg1MuG4-Dkp2kPMU.js → money-2cg1MuG4-DajJjl7a.js} +1 -1
- package/dist/assets/{mui-B0LS8eOU.js → mui-gZ2J-2YO.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-BqlZh_Sh.js → page-detail-CWX5S47F-mMS9vUC4.js} +1 -1
- package/dist/assets/{page-summary-D7_VQHwN-B_SO8YR9.js → page-summary-D7_VQHwN-DhjZazqO.js} +1 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-DyRjm7kt.js +4 -0
- package/dist/assets/{pathToGoBack-Cd1NYD0G.js → pathToGoBack-BvSUl7ma.js} +1 -1
- package/dist/assets/{pdf-DEiLcZtJ.js → pdf-BNA4Ou8X.js} +3 -3
- package/dist/assets/{pdf-lib-BkXoRqvn.js → pdf-lib-uBsrmHT5.js} +1 -1
- package/dist/assets/{plaid-CnBboaBy.js → plaid-DS3FargU.js} +1 -1
- package/dist/assets/{pusher-Bly36HJj.js → pusher-fI6e2fO0.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-cGAZATVp.js → radio-default-CiSgisfh-BlGVs6W5.js} +1 -1
- package/dist/assets/{react-XiBAuA1q.js → react-2oa8mqCY.js} +12 -2
- package/dist/assets/{react-Dvzp2WQY.js → react-DGUD67o4.js} +12 -2
- package/dist/assets/react-DGs-yfEB.js +37 -0
- package/dist/assets/{react-BQQamkOQ.js → react-Dhg_7JXq.js} +12 -2
- package/dist/assets/{react-BTuVAJx5.js → react-PTvHN8FL.js} +13 -3
- package/dist/assets/{react-BfYalbE9.js → react-aVJXH_ps.js} +12 -2
- package/dist/assets/{react-Ce7uw7zT.js → react-ihVT-KIV.js} +12 -2
- package/dist/assets/{react-BB3tmZIH.js → react-pv23IQaZ.js} +12 -2
- package/dist/assets/{recharts-C5uMntUw.js → recharts-BKvR8EI0.js} +1 -1
- package/dist/assets/{routePaths-DY-F87LY.js → routePaths-BozUSOR4.js} +1 -1
- package/dist/assets/{sentry-CZ5rBRIL.js → sentry-tRTnR5ia.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DzA5SBv7.js → shield-DOlUxcFf-c8MRbcLE.js} +1 -1
- package/dist/assets/{spend-limit-D6SyboD4-DcVPGNzj.js → spend-limit-D6SyboD4-B-j1Sn9h.js} +1 -1
- package/dist/assets/toCOABalancesWithID-DzAIFjHl-Bv5FILWN.js +1 -0
- package/dist/assets/toChartData-BurvmO_S-tegfOE4s.js +1 -0
- package/dist/assets/{transaction-placeholder-CpOwZAMG-COfSIfub.js → transaction-placeholder-CpOwZAMG-B1W5bE7h.js} +1 -1
- package/dist/assets/{undo-b_3XZ5CX-GuaeTLDz.js → undo-b_3XZ5CX-CWSUI7Te.js} +1 -1
- package/dist/assets/{unlock-BPWn2I5L-dCTUzMJK.js → unlock-BPWn2I5L-DofDRoYu.js} +1 -1
- package/dist/assets/{uploadAttachment-BLbU_iLy-8zCKB5Pk.js → uploadAttachment-DtJo5Tp4-I2f6VcnN.js} +16 -16
- package/dist/assets/{uploadReceipts-CIgkuVpu-CdkwjCFf.js → uploadReceipts-Dge0cNF1-CtnQO8tO.js} +1 -1
- package/dist/assets/{url-BpDqVgZ1.js → url-C7onmSKg.js} +1 -1
- package/dist/assets/{url-B5OrmuhL.js → url-DgsAV5vb.js} +1 -1
- package/dist/assets/{useDeviceId-B2ttoe_4.js → useDeviceId-DXjMFBrp.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-PDMuzuX_.js → useInitialThreadRequest-CVIIrf8B.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-DX6C4FZu.js → useLongPress-GCK2COYQ-BErt8Gng.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-DwPxDnl2.js → usp-line-BBd1wKwW-Vkz6UgtT.js} +1 -1
- package/dist/assets/{utils-0wrLfZK3.js → utils-VuBQoQGa.js} +20 -7
- package/dist/assets/withTransactionSidePanel-DCoGJOSb.js +8 -0
- package/dist/assets/zeni-epic-state-DiMW9axO.js +122 -0
- package/dist/assets/{zeni-icon-only-Bw33PFmX.js → zeni-icon-only-soz6I0gO.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +8 -16
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-CfvX6zSV-orp1kpUl.js +0 -21
- package/dist/assets/AccountInfoPage-XrG_Cs9Q-DGo7arLd.js +0 -18
- package/dist/assets/AccountInfoPageContent-Bk0YQ-4C-EIvLBn9J.js +0 -149
- package/dist/assets/AccountRow-2vAGu-jm-CsRx_9_c.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-BjL_E7Jt-CWiP3Ul9.js +0 -6
- package/dist/assets/AddressRoutes-BhTs0719.js +0 -1
- package/dist/assets/AddressScreen-C7FI08DQ.js +0 -9
- package/dist/assets/AppDrawerContent-DpoXoHZU-CYeg8brB.js +0 -92
- package/dist/assets/ApprovalRulesSettingsPage-BfXvTQyU-DBTdErTc.js +0 -47
- package/dist/assets/ArAgingChart-BwVPNYHv-CcByfol5.js +0 -24
- package/dist/assets/BalancesInsightWithToolTip-B0YZt5m3-BSEIXbC4.js +0 -38
- package/dist/assets/BankAccountWarningSection-BQlPiqev-VfBZFP3w.js +0 -51
- package/dist/assets/BillDetailPage-44pWv8Nq-9uRwD-vz.js +0 -266
- package/dist/assets/BillPayApprovalRoutes-Dlvg_E83.js +0 -1
- package/dist/assets/BillPayApprovalRuleDetailPage-D_Q7_oVR-BwbwveWy.js +0 -27
- package/dist/assets/BillPaySetUpPage-bNDxI3Kh-B9_ilJ_1.js +0 -42
- package/dist/assets/BillingSettingsPage-4WGlC_Ok-Cu5yW_nx.js +0 -44
- package/dist/assets/BusinessVerificationPage-CYzudAIt-ChK6OXP0.js +0 -138
- package/dist/assets/BusinessVerificationPageScreen-k-BeqwEY.js +0 -9
- package/dist/assets/BusyIndication-BYTP8DO9-DM831bTM.js +0 -9
- package/dist/assets/ChargeCardListTable-Daaen5Xe-D0lOSTTo.js +0 -711
- package/dist/assets/ChargeCardPromoPage-DAk2fYcE-Be70q6jd.js +0 -222
- package/dist/assets/CheckDepositDrawerPage-DlJJaad8-DQQw5HV9.js +0 -206
- package/dist/assets/CollapsableReportTable-CcyH-50D-DL-xxcdl.js +0 -2941
- package/dist/assets/CompanyOfficerDetailsSection-m-m1nELP-DdzEvWuy.js +0 -331
- package/dist/assets/CompanyPassportCard-ZBDBE8eV-D5rcoYI7.js +0 -42
- package/dist/assets/ConfettiBurst-BCkkcLA1-CfFNklpq.js +0 -1
- package/dist/assets/ConnectionAuthScreen-D8HCXHjs.js +0 -11
- package/dist/assets/CurrencySelectField-CwNGSmb2-D7S0733a.js +0 -139
- package/dist/assets/CustomerOnboardingAuthScreen-2a10tVxr.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-C_wG7Q8O-csD_XfJD.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-DF6CbSZs-Ce1wmMhs.js +0 -66
- package/dist/assets/DashboardRoutes-D7-BQybA.js +0 -21
- package/dist/assets/DashboardSidebarBackgroundAnimation-Cn_5tbit-wUk3-phQ.js +0 -12
- package/dist/assets/DepositAccTransactionItem-DnL2eweO-B6q6pWTa.js +0 -76
- package/dist/assets/DepositAccTransactionListPage-HAUhc4OH-Bic7M5jt.js +0 -66
- package/dist/assets/DomesticWireDetailScreen-Cd59xXc1.js +0 -18
- package/dist/assets/DomesticWireDetailsPage-QhDoZX5h-ALe5PVzc.js +0 -21
- package/dist/assets/DownloadOverlay-GFsPIkgY-BMkk3cm2.js +0 -439
- package/dist/assets/DrawerScreen-D5FqBBJJ.js +0 -1
- package/dist/assets/EditPeoplePage-DD6wg7xI-BXT7xcGL.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-D8RHkMHR-DIlKE1Mz.js +0 -865
- package/dist/assets/EntityDetailPage-levtFHaa-DqaXP9Yk.js +0 -18
- package/dist/assets/EntityDetailRoutes-DVHLqQYx.js +0 -1
- package/dist/assets/ExpenseAutomationPage-DD33LDin-Ba6vQBRK.js +0 -3614
- package/dist/assets/ExpenseAutomationRoutes-B_iGGphM.js +0 -20
- package/dist/assets/FeaturePreviewScreen-BNFYctNf.js +0 -1
- package/dist/assets/GlobalReviewListPage-C5h9rvVb-nfB02P_2.js +0 -291
- package/dist/assets/InsightsCardStack-CkxN0Fd6-763HMSE3.js +0 -79
- package/dist/assets/InsightsSection-Cwd2cIP2-CZ7okUuA.js +0 -27
- package/dist/assets/IntegrationsSettingsPage-CN3x9o-8-BQvn7JQh.js +0 -57
- package/dist/assets/InternationalWireVerificationPage-H6gzEDg6-DaDQKgwa.js +0 -65
- package/dist/assets/InvitePeoplePage-D-XyBXhF-D6owWKuc.js +0 -12
- package/dist/assets/InvoiceUploadSection-DaJWTI5B-CqhFo4gs.js +0 -140
- package/dist/assets/LabeledAddressValueField-B5eyO5LD-BX0obAqg.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-DNFUkVLh-CHxF5t5z.js +0 -16
- package/dist/assets/LabeledDocumentField-H4V0rHKt-BNkRXnBY.js +0 -41
- package/dist/assets/LabeledText-BDkcgGG4-C5NFd1eb.js +0 -42
- package/dist/assets/MagicLinkACHDetailsPage-DdWD8eZA-Bt3qU_e2.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-zLqzW0ZA-BWYuY1Ca.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-OpEbz58h-CFz87ekO.js +0 -1
- package/dist/assets/MagicLinkRoutes-D2_ecbfc.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-BZLNJqh8.js +0 -12
- package/dist/assets/MobileAppDrawer-CAXlcX9R.js +0 -1
- package/dist/assets/NavBarWithPicker-BpjOj0Mh-BwvJYNac.js +0 -30
- package/dist/assets/NavigationArrow-wyRPTk_w-DPu3Oj9V.js +0 -47
- package/dist/assets/NavigationDots-D4jbU1WN-jeganfr5.js +0 -15
- package/dist/assets/NoDataChart-tpjEi1Wb-D421f-73.js +0 -26
- package/dist/assets/NotFoundScreen-CF8ObwPz.js +0 -1
- package/dist/assets/NotificationRoutes-pUWH8lSx.js +0 -1
- package/dist/assets/NotificationsListConfig-CqxCGQSM-OgByU3Gt.js +0 -1
- package/dist/assets/NotificationsPage-xmWyvsYE-BIF5tt7P.js +0 -685
- package/dist/assets/OpExByVendorPage-BwWSNQjj-3fV9YIn4.js +0 -100
- package/dist/assets/PandLWithForecastPage-GXzJgAFS-Cp5kSDNk.js +0 -107
- package/dist/assets/PandLWithForecastRoutes-XLAPfYww.js +0 -1
- package/dist/assets/PeoplePage-CgLumn7f-D_i2gWcF.js +0 -772
- package/dist/assets/PeopleRoutes-Cu0U5U2W.js +0 -22
- package/dist/assets/PerformanceRoutes-3KgDs52i.js +0 -1
- package/dist/assets/QBOSetupSection-BaxLXdyW-pjTHwp3k.js +0 -79
- package/dist/assets/ReferralListScreen-C3_oL385.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-CJ6a1Z7l.js +0 -1
- package/dist/assets/ReimbursementDetailPage-BOW1JodW-D-JMFLZJ.js +0 -314
- package/dist/assets/ReimbursementPromoPage-lD4FRDbt-DT8tB2X5.js +0 -84
- package/dist/assets/ReimbursementRoutes-CgNdfg_9.js +0 -13
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-BV1eoHFe-DYTqcpuP.js +0 -1
- package/dist/assets/ReloadCard-DZJ1-x96-Cbk2YJf5.js +0 -26
- package/dist/assets/ReportTableViewSelector-NmHJk-6O-DC1xlLpc.js +0 -151
- package/dist/assets/ReportsPage-CqCp4w8y-BKv48wE_.js +0 -237
- package/dist/assets/ReportsRoutes-Cjka5GZR.js +0 -1
- package/dist/assets/ReviewDetailsPage-Dm5-QehL-BGVz2Skg.js +0 -290
- package/dist/assets/RewardsRoutes-Cg47LISe.js +0 -1
- package/dist/assets/RoleWithToolTip-Cu0ixEhp-BLzDuQC4.js +0 -22
- package/dist/assets/ScheduleSequenceTable-Dgb-vhXK-B3jTjQj6.js +0 -324
- package/dist/assets/ScreenRoutes-CLgK0flG.js +0 -2
- package/dist/assets/SettingsRoutes-DTEJaC0y.js +0 -57
- package/dist/assets/SignInScreen-DDGNuzrN.js +0 -1
- package/dist/assets/SignOutScreen-Vd1yIsf9.js +0 -9
- package/dist/assets/SpendManagementListViewPage-DkEZTojy-Bbryxib4.js +0 -134
- package/dist/assets/SpendManagementSection-DqDra2TJ-UYVOSI6A.js +0 -375
- package/dist/assets/StatementItem-DSuaMb54-DvgnUhnF.js +0 -31
- package/dist/assets/StatementsPage-BO3P2kKJ-BlvqqfSa.js +0 -58
- package/dist/assets/SuccessAnimation-4kdc8tt0-3U7Tbur-.js +0 -13
- package/dist/assets/SummaryCard-D4k-35Mt-pAdg9hEc.js +0 -1
- package/dist/assets/TaskListScreen-DS-z4_ic.js +0 -9
- package/dist/assets/TaskManagementPage-Cadtu3qQ-BS26r7bL.js +0 -1067
- package/dist/assets/TaskRoutes-DOJRy1jK.js +0 -9
- package/dist/assets/TimeRangeSwitcher-CXt00my3-0befHeUq.js +0 -64
- package/dist/assets/TimeframeSwitcher-D0ujXDLd-BQsQ9a9G.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-CMzQ2qRz-CbDb6VxM.js +0 -53
- package/dist/assets/TransactionDetailPage-B1UKqtkR-d5IFX2Ag.js +0 -903
- package/dist/assets/TransactionDetailRoutes-CcFWlu2e.js +0 -1
- package/dist/assets/TransactionDetailScreen-BiSUP3Ye.js +0 -5
- package/dist/assets/TransactionList-BE3ODDi0-DWNC6ZOm.js +0 -153
- package/dist/assets/TransactionListPage-DqY2twbP-BNNOPUy7.js +0 -35
- package/dist/assets/TreasuryOverviewPage-lmaT3YkG-DTrJbZN8.js +0 -725
- package/dist/assets/TreasuryRoutes-B45oraKw.js +0 -45
- package/dist/assets/TreasuryStatementsPage-BguLbwsn-CqYwnBvA.js +0 -58
- package/dist/assets/TrendWithTransactions-atLfDrR5-BWQ8ewta.js +0 -116
- package/dist/assets/UploadAdditionalDocumentOverlay-D0FPdZ3n-D_o6UAT5.js +0 -38
- package/dist/assets/Vendor2FAPopup-CH44a6ok-D7quKD79.js +0 -1
- package/dist/assets/VendorACHDetailsPage-YgMvjx2w-Cc9yRWvp.js +0 -1
- package/dist/assets/VendorDetailPage-DJ54yvWY-CrTCfpgf.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-CRsOlxyy-BYyMlDV2.js +0 -1
- package/dist/assets/VendorFirstReviewPage-7VUbqyR2-D5_39yaN.js +0 -730
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-D0Fnosfi-nHm5cJMF.js +0 -1
- package/dist/assets/VerifyDevice-gXwkGIjJ-Eh05VlWI.js +0 -112
- package/dist/assets/WiseConfirmationScreen-D3O3YSmJ.js +0 -12
- package/dist/assets/ZeniAccountDetailPage-DlCJ5UGq-D3gjQmIJ.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-DTiBd3Ze--cesRi3D.js +0 -443
- package/dist/assets/ZeniAccountNavBarPieces-DAcKYXqh-C9FBd2ju.js +0 -33
- package/dist/assets/ZeniAccountRoutes-uGhl8Fda.js +0 -58
- package/dist/assets/ZeniAccountStatementScreen-BWKARWnP.js +0 -9
- package/dist/assets/ZeniTransferAmountSlider-CX1FGWrl-CYsYWj7Y.js +0 -63
- package/dist/assets/bank-letter-BOcVjN6J-Cei8xClC.js +0 -1
- package/dist/assets/common-Dx_KVthm-CevE2N5L.js +0 -1
- package/dist/assets/commonDimensions-Bno19oYe-CEAcpM9E.js +0 -1
- package/dist/assets/downloadPdf-CkATqzUx-CAAsaSoH.js +0 -1
- package/dist/assets/empty-DMh0uNaa.js +0 -1
- package/dist/assets/epic-rdGaLX8n.js +0 -2
- package/dist/assets/getLocaleForTenant-XwAfvjzQ.js +0 -1
- package/dist/assets/index-BkXFulDf.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-D02PFsN8-HzZiwtin.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CoqcGXTM-BqsDu5g7.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-D0zXBGho-BlLHhiHi.js +0 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-DwZ96bUM.js +0 -3
- package/dist/assets/react-CFCUHd70.js +0 -19
- package/dist/assets/toCOABalancesWithID-C-wpsGXP-DipYDOu_.js +0 -1
- package/dist/assets/toChartData-C-X2WzOE-Bq8iIFdZ.js +0 -1
- package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-D0qWvkKO.js +0 -1
- package/dist/assets/withTransactionSidePanel-Cqk9VVqu.js +0 -8
- package/dist/assets/zeni-epic-state-Cr-rO4HZ.js +0 -14
|
@@ -1,2941 +0,0 @@
|
|
|
1
|
-
import{ae as I,b9 as ye,a5 as q,V as t,an as Ki,P as y,cF as Yi,o as s,c as X,a7 as Mn,K as W,U as Wn,C as Ui,cG as Pn,cH as qi,O as N,u as S,cI as Zt,by as Jt,cJ as Qt,x as G,cl as Xt,_ as mo,E as st,bJ as Ee,bb as Y,L as Zi,y as le,ad as O,aj as wo,bd as yo,k as Fe,cK as Ji,cL as ae,bx as en,bo as Fn,f as Qi,j as Se,cM as dt,cN as ze,cO as mt,l as _,bC as ne,cP as bo,cQ as Xi,w as tn,cR as Qe,cS as zn,cT as Tn,cU as er,cV as tr,cW as nr,at as ko,aq as or,bV as nn,bU as on,cX as ir,ar as jo,bY as So,bg as rr,cY as ar,cZ as Vn,c_ as Dn,c$ as lr,d0 as cr,bi as sr,b6 as dr,d1 as hr}from"./index-onESlw0k.js";import{n as a,c as z}from"./mui-B0LS8eOU.js";import{a as T,b as ur}from"./sentry-CZ5rBRIL.js";import{Ft as It,Fe as rn,FL as an,FM as Re,FN as ln,FO as cn,FP as sn,FQ as dn,FR as Co,FS as pr,Fg as Ie,cj as Gn,bt as $o,FT as vo,FU as gr,cp as xr,Fu as _o}from"./zeni-epic-state-Cr-rO4HZ.js";import{N as ct,D as fr,R as mr,B as Ce,u as L}from"./AccountRow-2vAGu-jm-CsRx_9_c.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d9efb86f-b1b3-4359-8db4-d348d6933e8d",e._sentryDebugIdIdentifier="sentry-dbid-d9efb86f-b1b3-4359-8db4-d348d6933e8d")}catch{}})();const Nt=[I.graphColor34,I.graphColor08,I.graphColor11,I.graphColor13,I.graphColor19,I.graphColor20,I.graphColor14,I.graphColor35,I.graphColor32,I.graphColor02,I.graphColor06,I.graphColor04,I.graphColor10,I.graphColor12,I.graphColor15,I.graphColor18];function hn(e,n=0){const o=(i=>{const r=String.prototype.concat(...new Set(i));let l=0;for(let c=0;c<r.length;++c)l+=r.charCodeAt(c);return l})(e)+n*n*n;return Nt[Math.floor(o/Nt.length)%Nt.length]}function Z(e,n){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return ye("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return q("0,0",e?.balance)}function Q(e){return q("0,0",e?.forecast)}function Lo(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return ye("0.00%",e.totalPercentValue)}return q("0,0",e?.totalBalance)}function Tt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return ye("0.00%",e.forecastPercentValue)}return q("0,0",e?.totalForecast)}function ce(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return ye("0.00%",Math.floor(100*n)/100)}return ye("0.00%",void 0)}function se(e){if(e!=null&&e.forecast!=null){const n=Math.floor(100*(e.balance.amount-e.forecast.amount)/100);return q("0,0",Object.assign({},e.forecast,{amount:n}))}return q("0,0",null)}function Ao(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const n=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return ye("0.00%",Math.floor(100*n)/100)}return ye("0.00%",void 0)}function Bo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor(100*(e.totalBalance.amount-e.totalForecast.amount)/100);return q("0,0",Object.assign({},e.totalForecast,{amount:n}))}return q("0,0",null)}const He=(e,n,o)=>{const{startDate:i,balanceType:r}=n,{dateFormat:{visual:l}}=N.getLocalizedStrings();switch(o){case"month":return r==="default"||r==="default_with_percent"?`${It(i,l.MMMYYYYFormat,e)}`:Mt(r,o);case"quarter":return r==="default"||r==="default_with_percent"?`${N.getLocalizedStrings().reports.quarterPrefix}${It(i,l.QYYYYformat,e)}`:Mt(r,o);case"year":return r==="default"||r==="default_with_percent"?`${It(i,l.YYYYformat,e)}`:Mt(r,o);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function Mt(e,n){return N.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const sg=(e,n,o)=>{const i=n.length==0?e:`${e}_${n.join("_")}`;return o!=null&&o.trim().length>0?`${i}_${o}`:`${i}_${Yi(10)}`},wr=a.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex: 1 1 auto;
|
|
4
|
-
width: 100%;
|
|
5
|
-
height: ${e=>e.heightValue}px;
|
|
6
|
-
justify-content: flex-start;
|
|
7
|
-
align-items: center;
|
|
8
|
-
padding-right: ${L.wrapperPadding}px;
|
|
9
|
-
`,yr=a.div`
|
|
10
|
-
cursor: default;
|
|
11
|
-
user-select: none;
|
|
12
|
-
display: flex;
|
|
13
|
-
flex: 1 1 auto;
|
|
14
|
-
flex-flow: row;
|
|
15
|
-
justify-content: flex-start;
|
|
16
|
-
align-items: center;
|
|
17
|
-
`,br=a.div`
|
|
18
|
-
display: flex;
|
|
19
|
-
justify-content: flex-start;
|
|
20
|
-
align-items: center;
|
|
21
|
-
gap: ${s.sp2};
|
|
22
|
-
width: ${L.leftHeadingWidth}px;
|
|
23
|
-
`,kr=a.div`
|
|
24
|
-
display: flex;
|
|
25
|
-
flex: 1 1 auto;
|
|
26
|
-
justify-content: flex-end;
|
|
27
|
-
align-items: center;
|
|
28
|
-
gap: ${s.sp4};
|
|
29
|
-
`,jr=a(ne)`
|
|
30
|
-
width: ${L.bankBalanceWidth}px;
|
|
31
|
-
min-width: ${L.bankBalanceWidth}px;
|
|
32
|
-
text-align: right;
|
|
33
|
-
`,Sr=a(ne)`
|
|
34
|
-
width: ${L.clearedBalanceWidth}px;
|
|
35
|
-
min-width: ${L.clearedBalanceWidth}px;
|
|
36
|
-
text-align: right;
|
|
37
|
-
`,Cr=a(ne)`
|
|
38
|
-
width: ${L.statusWidth}px;
|
|
39
|
-
min-width: ${L.statusWidth}px;
|
|
40
|
-
`,$r=a.div`
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-shrink: 0;
|
|
43
|
-
gap: ${s.sp3};
|
|
44
|
-
width: ${L.varianceWidth}px;
|
|
45
|
-
min-width: ${L.varianceWidth}px;
|
|
46
|
-
flex-direction: row;
|
|
47
|
-
justify-content: flex-end;
|
|
48
|
-
align-items: center;
|
|
49
|
-
text-align: center;
|
|
50
|
-
`,vr=a.div`
|
|
51
|
-
width: ${L.variancePercentageWidth}px;
|
|
52
|
-
min-width: ${L.variancePercentageWidth}px;
|
|
53
|
-
text-align: right;
|
|
54
|
-
margin-right: ${s.sp2};
|
|
55
|
-
`,_r=a.div`
|
|
56
|
-
display: flex;
|
|
57
|
-
justify-content: center;
|
|
58
|
-
align-items: center;
|
|
59
|
-
`,Lr=a.div`
|
|
60
|
-
display: flex;
|
|
61
|
-
justify-content: center;
|
|
62
|
-
align-items: center;
|
|
63
|
-
`;function Ar({height:e}){const n=W();return t.jsx(wr,{heightValue:e,windowSize:n,children:t.jsxs(yr,{children:[t.jsxs(br,{children:[t.jsx(_r,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:s.sp4,maxWidth:s.sp4,width:s.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(Lr,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:s.sp4,width:L.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(kr,{children:[t.jsx(jr,{children:t.jsx(ae,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:L.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(Sr,{children:t.jsx(ae,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:L.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs($r,{children:[t.jsx(ae,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:L.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(vr,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:s.sp4,width:L.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(Cr,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:s.sp4,width:L.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const Br=a.div`
|
|
64
|
-
display: flex;
|
|
65
|
-
flex-direction: row;
|
|
66
|
-
height: ${e=>e.heightValue}px;
|
|
67
|
-
padding-right: ${L.wrapperPadding}px;
|
|
68
|
-
`;function Or({height:e}){return t.jsx(Br,{heightValue:e})}const Ir=a.div`
|
|
69
|
-
user-select: none;
|
|
70
|
-
display: flex;
|
|
71
|
-
width: 100%;
|
|
72
|
-
height: ${e=>e.height}px;
|
|
73
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
74
|
-
flex-direction: column;
|
|
75
|
-
padding-right: ${L.wrapperPadding}px;
|
|
76
|
-
`,Nr=a.div`
|
|
77
|
-
flex: 1 1 auto;
|
|
78
|
-
display: flex;
|
|
79
|
-
align-items: center;
|
|
80
|
-
height: ${s.sp8};
|
|
81
|
-
justify-content: flex-start;
|
|
82
|
-
align-items: center;
|
|
83
|
-
`,Mr=a.div`
|
|
84
|
-
display: flex;
|
|
85
|
-
flex-direction: row;
|
|
86
|
-
justify-content: flex-end;
|
|
87
|
-
width: ${L.leftHeadingWidth}px;
|
|
88
|
-
`,Wr=a.div`
|
|
89
|
-
display: flex;
|
|
90
|
-
flex: 1 1 auto;
|
|
91
|
-
flex-direction: row;
|
|
92
|
-
justify-content: flex-end;
|
|
93
|
-
`,Pr=a(jo)`
|
|
94
|
-
user-select: none;
|
|
95
|
-
color: ${e=>e.theme.colors.primary};
|
|
96
|
-
width: ${L.leftTimeframeWidth}px;
|
|
97
|
-
min-width: ${L.leftTimeframeWidth}px;
|
|
98
|
-
flex: 1 1 auto;
|
|
99
|
-
`,Fr=a(_)`
|
|
100
|
-
user-select: none;
|
|
101
|
-
`,zr=a.div`
|
|
102
|
-
max-height: ${s.sp8};
|
|
103
|
-
min-height: ${s.sp8};
|
|
104
|
-
min-width: ${e=>e.widthValue}px;
|
|
105
|
-
max-width: ${e=>e.widthValue}px;
|
|
106
|
-
display: flex;
|
|
107
|
-
justify-content: center;
|
|
108
|
-
align-items: center;
|
|
109
|
-
background-color: ${e=>e.theme.colors.background};
|
|
110
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
111
|
-
border-radius: ${s.sp2};
|
|
112
|
-
color: ${e=>e.theme.colors.primary};
|
|
113
|
-
margin-right: ${e=>e.marginRight===!0?s.sp2:s.sp0};
|
|
114
|
-
`,Tr=a.div`
|
|
115
|
-
width: ${L.bankBalanceWidth}px;
|
|
116
|
-
`,Vr=a.div`
|
|
117
|
-
width: ${L.bankBalanceRightTimeframeWidth}px;
|
|
118
|
-
`,Dr=a.div`
|
|
119
|
-
width: ${L.clearedBalanceWidth}px;
|
|
120
|
-
margin-right: ${L.tickLeftMargin}px;
|
|
121
|
-
`,Gr=a.div`
|
|
122
|
-
width: ${L.varianceTimeframeWidth}px;
|
|
123
|
-
align-self: flex-end;
|
|
124
|
-
`,Er=a.div`
|
|
125
|
-
width: ${L.spacerLineWidth}px;
|
|
126
|
-
`,Rr=a.div`
|
|
127
|
-
width: ${L.statusWidth}px;
|
|
128
|
-
`,Xe=({title:e,type:n})=>t.jsx(zr,{widthValue:L[n],children:t.jsx(Fr,{children:e})});function Hr({sectionTitle:e,height:n,isLoading:o}){const i=N.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(Ir,{height:n,children:t.jsxs(Nr,{children:[t.jsx(Mr,{children:t.jsx(ae,{isLoading:o,customStyle:{height:s.sp4,width:L.leftLabelWidth},children:t.jsx(Pr,{"data-testid":y("account-recon-section-title",e),children:e})})}),t.jsxs(Wr,{children:[t.jsx(Tr,{children:t.jsx(ae,{isLoading:o,customStyle:{height:s.sp7,width:L.bankBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Xe,{title:i.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(Vr,{}),t.jsx(Dr,{children:t.jsx(ae,{isLoading:o,customStyle:{height:s.sp7,width:L.clearedBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Xe,{title:i.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(Gr,{children:t.jsx(ae,{isLoading:o,customStyle:{height:s.sp7,width:L.varianceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Xe,{title:i.variance,type:"varianceTimeframeWidth"})})}),t.jsx(Er,{}),t.jsx(Rr,{children:t.jsx(ae,{isLoading:o,customStyle:{height:s.sp7,width:L.statusTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Xe,{title:i.status,type:"statusTimeframeWidth"})})})]})]})})}const Kr=a.div`
|
|
129
|
-
display: flex;
|
|
130
|
-
flex-direction: row;
|
|
131
|
-
height: ${e=>e.heightValue}px;
|
|
132
|
-
align-items: center;
|
|
133
|
-
padding-right: ${L.wrapperPadding}px;
|
|
134
|
-
`,Yr=a(jo)`
|
|
135
|
-
user-select: none;
|
|
136
|
-
color: ${e=>e.theme.colors.primary};
|
|
137
|
-
`;function Ur({height:e,title:n}){return t.jsx(Kr,{heightValue:e,children:t.jsx(Yr,{"data-testid":y("account-recon-section-title",n),children:n})})}const qr=a.div`
|
|
138
|
-
display: flex;
|
|
139
|
-
flex: 1 1 auto;
|
|
140
|
-
width: 100%;
|
|
141
|
-
height: ${e=>e.heightValue}px;
|
|
142
|
-
justify-content: flex-start;
|
|
143
|
-
align-items: center;
|
|
144
|
-
padding-right: ${L.wrapperPadding}px;
|
|
145
|
-
`,Zr=a.div`
|
|
146
|
-
cursor: default;
|
|
147
|
-
user-select: none;
|
|
148
|
-
display: flex;
|
|
149
|
-
flex: 1 1 auto;
|
|
150
|
-
flex-flow: row;
|
|
151
|
-
justify-content: flex-start;
|
|
152
|
-
align-items: center;
|
|
153
|
-
color: ${e=>e.theme.colors.primary};
|
|
154
|
-
`,Jr=a.div`
|
|
155
|
-
display: flex;
|
|
156
|
-
flex: 1 1 auto;
|
|
157
|
-
justify-content: flex-start;
|
|
158
|
-
align-items: center;
|
|
159
|
-
gap: ${s.sp2};
|
|
160
|
-
`,Qr=a(ne)`
|
|
161
|
-
user-select: none;
|
|
162
|
-
clear: both;
|
|
163
|
-
display: inline-block;
|
|
164
|
-
overflow: hidden;
|
|
165
|
-
white-space: nowrap;
|
|
166
|
-
text-overflow: ellipsis;
|
|
167
|
-
text-align: left;
|
|
168
|
-
color: ${e=>e.theme.colors.primary};
|
|
169
|
-
width: ${L.leftLabelWidth}px;
|
|
170
|
-
min-width: ${L.leftLabelWidth}px;
|
|
171
|
-
`,Xr=a.div`
|
|
172
|
-
display: flex;
|
|
173
|
-
flex: 1 1 auto;
|
|
174
|
-
justify-content: flex-end;
|
|
175
|
-
align-items: center;
|
|
176
|
-
`,ea=a(ne)`
|
|
177
|
-
width: ${L.bankBalanceWidth}px;
|
|
178
|
-
min-width: ${L.bankBalanceWidth}px;
|
|
179
|
-
text-align: right;
|
|
180
|
-
`,ta=a(ne)`
|
|
181
|
-
width: ${L.clearedBalanceWidth}px;
|
|
182
|
-
min-width: ${L.clearedBalanceWidth}px;
|
|
183
|
-
text-align: right;
|
|
184
|
-
margin-left: ${L.tickLeftMargin}px;
|
|
185
|
-
`,na=a(ne)`
|
|
186
|
-
width: ${L.statusWidth}px;
|
|
187
|
-
min-width: ${L.statusWidth}px;
|
|
188
|
-
height: 1px;
|
|
189
|
-
`,oa=a.div`
|
|
190
|
-
display: flex;
|
|
191
|
-
flex-direction: row;
|
|
192
|
-
min-width: ${L.spacerLineWidth}px;
|
|
193
|
-
width: ${L.spacerLineWidth}px;
|
|
194
|
-
align-items: center;
|
|
195
|
-
`,ia=a.div`
|
|
196
|
-
width: 1px;
|
|
197
|
-
margin-left: ${s.sp3};
|
|
198
|
-
height: ${e=>e.heightValue}px;
|
|
199
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
200
|
-
`,ra=a.div`
|
|
201
|
-
display: flex;
|
|
202
|
-
flex-shrink: 0;
|
|
203
|
-
width: ${L.varianceTimeframeWidth}px;
|
|
204
|
-
min-width: ${L.varianceTimeframeWidth}px;
|
|
205
|
-
flex-direction: row;
|
|
206
|
-
justify-content: flex-end;
|
|
207
|
-
align-items: center;
|
|
208
|
-
text-align: center;
|
|
209
|
-
margin-left: ${L.tickLeftMargin}px;
|
|
210
|
-
`,aa=a(ne)`
|
|
211
|
-
border-radius: ${s.sp1};
|
|
212
|
-
color: ${e=>e.textColor.hex()};
|
|
213
|
-
min-width: ${L.varianceNumberWidth}px;
|
|
214
|
-
text-align: right;
|
|
215
|
-
margin-right: ${s.sp2};
|
|
216
|
-
`,la=a(ne)`
|
|
217
|
-
border-radius: ${s.sp1};
|
|
218
|
-
padding: ${s.sp0} ${s.sp1};
|
|
219
|
-
justify-content: center;
|
|
220
|
-
text-align: center;
|
|
221
|
-
color: ${e=>e.textColor.hex()};
|
|
222
|
-
background-color: ${e=>e.bgColor.hex()};
|
|
223
|
-
min-width: ${L.variancePercentageWidth}px;
|
|
224
|
-
`,{expenseAutomation:{accountRecon:{reconciliation:{headers:En}}},common:{strings:{percentage:ca,hyphen:ht}}}=N.getLocalizedStrings();function sa({height:e,sectionData:n}){const o=W(),i=n.totalVariance,r=n.totalVariancePercentage,l=le();return t.jsx(qr,{"data-testid":y("total-row-root-container"),heightValue:e,windowSize:o,children:t.jsxs(Zr,{isClickable:!1,"data-testid":y("total-row-container"),children:[t.jsxs(Jr,{children:[t.jsx(Ce,{firstLetter:En.section[n.sectionId].subTitle.charAt(0),color:new O(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(Qr,{children:En.section[n.sectionId].subTitle})]}),t.jsxs(Xr,{children:[t.jsx(ea,{children:n.totalBankBalance!=null?q("0,0",n.totalBankBalance):ht}),t.jsx(ta,{children:n.totalClearedBalance!=null?q("0,0",n.totalClearedBalance):ht}),t.jsx(da,{variance:i,variancePercentage:r}),t.jsx(oa,{children:t.jsx(ia,{heightValue:e})}),t.jsx(na,{})]})]})})}const da=({variance:e,variancePercentage:n})=>{const o=le(),i=new O(o.colors.hero),r=new O(o.colors.hero),l=new O(o.colors.background),c=e!=null&&e.amount===0?"0%":n!=null?n===0?"0%":`${n.toFixed(2)}${ca}`:ht;return t.jsxs(ra,{children:[t.jsx(aa,{textColor:i,children:e!=null?q("0,0",e):ht}),t.jsx(la,{textColor:r,bgColor:l,children:c})]})},j={balanceHeight:s.sp4,balanceHeightInPx:S[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:s.sp4,balanceLeftMarginInPx:S[4],titleWidth:new G(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128},de=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":case"name_only":return!0}},be=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},Oo={emptyLeftContainer:new G(S[0],S[5])},ha=a(_)`
|
|
225
|
-
margin-left: ${e=>e.hasChildren||e.depth===0?s.sp2:s.sp3};
|
|
226
|
-
overflow: hidden;
|
|
227
|
-
white-space: nowrap;
|
|
228
|
-
text-overflow: ellipsis;
|
|
229
|
-
width: ${e=>j.titleWidth.value(e.windowSize)-45*(e.depth+1)}px;
|
|
230
|
-
`,ua=a.div`
|
|
231
|
-
display: flex;
|
|
232
|
-
height: ${s.sp6};
|
|
233
|
-
align-items: center;
|
|
234
|
-
`,pa=a.div`
|
|
235
|
-
display: flex;
|
|
236
|
-
height: ${s.sp6};
|
|
237
|
-
align-items: center;
|
|
238
|
-
`,ga=a.div`
|
|
239
|
-
height: ${s.sp6};
|
|
240
|
-
width: ${s.sp3};
|
|
241
|
-
`,xa=a.div`
|
|
242
|
-
width: 14px;
|
|
243
|
-
height: ${s.sp1};
|
|
244
|
-
`,fa=a.div`
|
|
245
|
-
width: ${s.sp2};
|
|
246
|
-
height: ${s.sp1};
|
|
247
|
-
`,Io=a.div`
|
|
248
|
-
width: ${e=>Oo.emptyLeftContainer.valuePx(e.windowSize)};
|
|
249
|
-
height: ${s.sp1};
|
|
250
|
-
`,Te=a.div`
|
|
251
|
-
display: flex;
|
|
252
|
-
`,ma=({ancestorMetadata:e,depth:n,name:o})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(i=>{const r=e[i];return t.jsxs(Te,{children:[r.depth===0?t.jsx(Tn,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(ze,{},i):t.jsx(mt,{}):null,r.depth>=1?t.jsx(Tn,{depth:r.depth}):null]},o+i)}):null}),No=({ancestorMetadata:e,depth:n,name:o})=>{const i=W();return n===0?e[n].hasChildren===!1?t.jsx(Io,{windowSize:i}):t.jsxs(Te,{children:[t.jsx(Qe,{depth:n}),t.jsx(ze,{}),t.jsx(Qe,{depth:n+1})]}):t.jsxs(t.Fragment,{children:[[...Array(n+1).keys()].map(r=>{const l=e[r],c=r!==n?e[r+1]:void 0;return t.jsxs(Te,{children:[l.depth===0?t.jsx(Qe,{depth:l.depth}):null,r>=2||r===1&&(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?n===1?t.jsx(zn,{index:1}):t.jsx(zn,{index:2}):null,(n===r?l.hasChildren!==!0:c==null||c.isLastNode)?t.jsx(mt,{}):t.jsx(ze,{},r),t.jsx(Qe,{depth:l.depth+1})]},o+r)}),n===1&&e[n].hasChildren!=1?t.jsx(fa,{}):null]})},Mo=({ancestorMetadata:e,depth:n,name:o})=>n===0?t.jsx(xa,{}):t.jsx(t.Fragment,{children:[...Array(n).keys()].map(i=>{const r=e[i],l=i!==n?e[i+1]:void 0;return t.jsxs(Te,{children:[r!=null&&r.depth===0?t.jsx(dt,{depth:r.depth}):null,l==null||l.isLastNode?t.jsx(mt,{}):t.jsx(ze,{},i),t.jsx(dt,{depth:r!=null?r.depth+1:0})]},o+i)})}),wa=({ancestorMetadata:e,depth:n,name:o})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(i=>{const r=e[i];return r==null?null:t.jsxs(Te,{children:[r.depth===0?t.jsx(dt,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(ze,{},i):t.jsx(mt,{}):null,r.depth>=1?t.jsx(dt,{depth:r.depth}):null]},o+i)}):null}),ya=({depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:l,onIconClick:c})=>{let d=t.jsx(ga,{});return e===0&&r&&(d=t.jsx(ar,{collapsed:l,onIconClick:c})),e>0&&(r&&!i&&n&&(d=t.jsx(Vn,{collapsed:l,onIconClick:c})),o&&i&&n&&(d=t.jsx(Dn,{})),o&&i&&!n&&(d=t.jsx(lr,{})),r&&i&&!n&&(d=t.jsx(cr,{collapsed:l,onIconClick:c})),r&&i&&n&&(d=t.jsx(Vn,{collapsed:l,onIconClick:c})),n&&o&&(d=t.jsx(Dn,{}))),d},ba=({depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:l,onIconClick:c})=>t.jsx(pa,{children:t.jsx(ya,{depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:l,onIconClick:c})});function un(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const o=W();return t.jsxs(ua,{children:[e.classDepth!=null?t.jsx(No,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(Io,{windowSize:o}):null,t.jsx(wa,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(ba,{...e}),t.jsx(ha,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:o,title:n,children:n})]})}const H={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new G(200,325,405),nameLogoWidth:new G(S[4],S[4]),nameLogoHeight:new G(S[4],S[4])},et=[new G(S[4],S[8]),new G(44,76),new G(69,102),new G(93,124),new G(113,143)],ka=a.div`
|
|
253
|
-
display: flex;
|
|
254
|
-
flex: 1 1 auto;
|
|
255
|
-
max-height: 1px;
|
|
256
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
257
|
-
`,ja=a.div`
|
|
258
|
-
display: flex;
|
|
259
|
-
flex: 1 1 auto;
|
|
260
|
-
flex-flow: row;
|
|
261
|
-
justify-content: flex-start;
|
|
262
|
-
align-items: center;
|
|
263
|
-
`,Sa=a.div`
|
|
264
|
-
display: flex;
|
|
265
|
-
flex-direction: row;
|
|
266
|
-
flex-shrink: 2;
|
|
267
|
-
flex-grow: 1;
|
|
268
|
-
align-items: center;
|
|
269
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
270
|
-
width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
271
|
-
max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
272
|
-
${({isSticky:e})=>e?z`
|
|
273
|
-
position: -webkit-sticky;
|
|
274
|
-
position: sticky;
|
|
275
|
-
top: ${s.sp0};
|
|
276
|
-
left: ${s.sp0};
|
|
277
|
-
`:null}
|
|
278
|
-
`,Ca=a.div`
|
|
279
|
-
width: ${e=>e.noMarginForEntity?et[e.nestingLevel].value(e.windowSize)-S[5]:et[e.nestingLevel].value(e.windowSize)}px;
|
|
280
|
-
max-width: ${e=>e.noMarginForEntity?et[e.nestingLevel].value(e.windowSize)-S[5]:et[e.nestingLevel].value(e.windowSize)}px;
|
|
281
|
-
height: 1px;
|
|
282
|
-
`,$a=a.div`
|
|
283
|
-
display: flex;
|
|
284
|
-
flex: 1 1 auto;
|
|
285
|
-
max-height: 1px;
|
|
286
|
-
height: 1px;
|
|
287
|
-
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
288
|
-
`,va=a.div`
|
|
289
|
-
display: flex;
|
|
290
|
-
flex: 1 1 auto;
|
|
291
|
-
max-height: 1px;
|
|
292
|
-
height: 1px;
|
|
293
|
-
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
294
|
-
`,Rn=e=>{const n=W(),o=le();return t.jsxs(ja,{"data-testid":y("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(Sa,{windowSize:n,isSticky:e.isSticky,"data-testid":y("sub-entity-name-container","vendor_row_separator"),children:[t.jsx(Ca,{"data-testid":y("sub-entity-empty-container","vendor_row_separator"),nestingLevel:e.nestingLevel,noMarginForEntity:e.noMarginForEntity,windowSize:n}),t.jsx($a,{"data-testid":y("sub-entity-name-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]}),t.jsx(va,{"data-testid":y("sub-entity-remaining-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]})};function Vt({kind:e,isScrolling:n,subEntityProps:o}){switch(e){case"vendor_row_separator":return t.jsx(Rn,{nestingLevel:o?.nestingLevel??0,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!1,noMarginForEntity:o?.noMarginForEntity??!0});case"end_row_separator":return t.jsx(ka,{"data-testid":y("end-row-separator",e),isScrolling:n});case"subtotal_row_separator":return t.jsx(Rn,{nestingLevel:o?.nestingLevel??1,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!0,noMarginForEntity:o?.noMarginForEntity??!1})}}const Wo=a.div`
|
|
295
|
-
display: flex;
|
|
296
|
-
flex: 1 1 auto;
|
|
297
|
-
width: fit-content;
|
|
298
|
-
min-width: 100%;
|
|
299
|
-
flex-direction: column;
|
|
300
|
-
height: ${e=>e.containerHeight}px;
|
|
301
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
302
|
-
`,Po=a.div`
|
|
303
|
-
user-select: none;
|
|
304
|
-
display: flex;
|
|
305
|
-
flex: 1 1 auto;
|
|
306
|
-
flex-flow: row;
|
|
307
|
-
justify-content: flex-start;
|
|
308
|
-
align-items: center;
|
|
309
|
-
height: ${e=>e.containerHeight}px;
|
|
310
|
-
&:hover {
|
|
311
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
312
|
-
}
|
|
313
|
-
`,Fo=a.div`
|
|
314
|
-
display: flex;
|
|
315
|
-
flex: 1 0 auto;
|
|
316
|
-
flex-direction: row;
|
|
317
|
-
justify-content: flex-end;
|
|
318
|
-
`,zo=a.div`
|
|
319
|
-
display: flex;
|
|
320
|
-
flex-direction: row;
|
|
321
|
-
justify-content: flex-start;
|
|
322
|
-
`,To=a(_)`
|
|
323
|
-
user-select: none;
|
|
324
|
-
min-width: ${H.balanceWidth};
|
|
325
|
-
max-width: ${H.balanceWidth};
|
|
326
|
-
text-align: right;
|
|
327
|
-
margin-left: ${H.balanceLeftMargin};
|
|
328
|
-
border: 1px solid transparent;
|
|
329
|
-
color: ${e=>e.theme.colors.hero};
|
|
330
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
331
|
-
&:hover {
|
|
332
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
333
|
-
}
|
|
334
|
-
`,_a=a(_)`
|
|
335
|
-
user-select: none;
|
|
336
|
-
clear: both;
|
|
337
|
-
display: inline-block;
|
|
338
|
-
overflow: hidden;
|
|
339
|
-
white-space: nowrap;
|
|
340
|
-
text-overflow: ellipsis;
|
|
341
|
-
text-align: left;
|
|
342
|
-
margin-left: ${s.sp2};
|
|
343
|
-
`,Vo=a.div`
|
|
344
|
-
display: flex;
|
|
345
|
-
flex-direction: row;
|
|
346
|
-
flex-shrink: 2;
|
|
347
|
-
flex-grow: 1;
|
|
348
|
-
align-items: center;
|
|
349
|
-
height: ${e=>e.containerHeight}px;
|
|
350
|
-
width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
351
|
-
max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
352
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
353
|
-
${({isSticky:e})=>e?z`
|
|
354
|
-
position: sticky;
|
|
355
|
-
top: ${s.sp0};
|
|
356
|
-
left: ${s.sp0};
|
|
357
|
-
`:null}
|
|
358
|
-
cursor: pointer;
|
|
359
|
-
color: ${e=>e.theme.colors.hero};
|
|
360
|
-
&:hover {
|
|
361
|
-
color: ${e=>e.theme.colors.primary};
|
|
362
|
-
}
|
|
363
|
-
`,Do=({balance:e,isOpen:n})=>{const o=n?e?.balance:e?.totalBalance;return t.jsx(zo,{children:t.jsx(To,{isClickable:!1,onClick:()=>null,children:q("0,0",o)})})},Go=({total:e})=>t.jsx(zo,{children:t.jsx(To,{isClickable:!1,onClick:()=>null,children:q("0,0",e)})});function La({isSticky:e,height:n,isScrolling:o,isLastNode:i,balances:r,total:l,vendor:c,backgroundColor:d,onEntityNameClick:p}){const u=W(),g=c?.name??"";return t.jsxs(Wo,{"data-testid":y("ap-aging-report-row-root-container",g),containerHeight:n,bgColor:d,windowSize:u,children:[t.jsxs(Po,{"data-testid":y("ap-aging-report-row-container",g),style:{cursor:"default"},isClickable:!1,containerHeight:n-1,children:[t.jsxs(Vo,{onClick:()=>c?.id!=null?p?.(c.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:n-1,children:[c?.logo!=null?t.jsx(Qt,{photoUrl:c.logo.toString(),styles:{width:H.nameLogoWidth.valuePx(u),height:H.nameLogoHeight.valuePx(u)}}):t.jsx(Xt,{name:g??"",size:s.sp4}),t.jsx(_a,{children:g})]}),t.jsxs(Fo,{"data-testid":y("ap-aging-report-row-balances-container",g),children:[r.map(h=>t.jsx(Do,{balance:h,isOpen:!0},h?.period)),t.jsx(Go,{total:l})]})]}),t.jsx(Eo,{isScrolling:o,isLastNode:i})]})}function Aa({treeNodeId:e,isSticky:n,height:o,isScrolling:i,isLastNode:r,isOpen:l,balances:c,total:d,totalWithChildren:p,nestedCustomer:u,metadata:g,backgroundColor:h,onEntityNameClick:x,onClick:f}){const m=W(),w=g,b=u?.customer.name??"",k=u!=null?u.id.length-1:0,$=u?.hasSiblings??!1,C=u!=null&&u.children.length!==0,v=C,B=v?"pointer":"default",A=u!=null&&u.isLeafCustomer;return t.jsxs(Wo,{"data-testid":y("ar-aging-report-row-root-container",e),containerHeight:o,bgColor:h,windowSize:m,children:[t.jsxs(Po,{"data-testid":y("ar-aging-report-row-container",e),style:{cursor:B},isClickable:v,containerHeight:o-1,children:[t.jsx(Vo,{"data-testid":y("ar-aging-report-row-name-container",e),isSticky:n,windowSize:m,bgColor:h,containerHeight:o-1,children:t.jsx(un,{displayName:b,depth:k,isLastNode:r,hasChildren:C,hasSiblings:$,isLeaf:A,collapsed:!l,subAccountAnscestorMetadata:w.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:()=>{f?.(e)},onNameClick:()=>u?.id[0]!=null?x?.(u.id[0]):void 0})}),t.jsxs(Fo,{children:[c.map(M=>t.jsx(Do,{balance:M,isOpen:l},M?.period)),t.jsx(Go,{total:l?d:p})]})]}),t.jsx(Eo,{isScrolling:i,subEntityProps:{nestingLevel:k,isSticky:n,noMarginForEntity:!0}})]})}function Eo({isScrolling:e,isLastNode:n=!1,subEntityProps:o}){return n?t.jsx(Vt,{isScrolling:e,kind:"end_row_separator",subEntityProps:o}):t.jsx(Vt,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:o})}const Ba=a.div`
|
|
364
|
-
user-select: none;
|
|
365
|
-
display: flex;
|
|
366
|
-
flex: 1 1 auto;
|
|
367
|
-
width: fit-content;
|
|
368
|
-
min-width: 100%;
|
|
369
|
-
height: ${e=>e.height}px;
|
|
370
|
-
flex-flow: row;
|
|
371
|
-
justify-content: flex-start;
|
|
372
|
-
align-items: center;
|
|
373
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
374
|
-
`,Oa=a.div`
|
|
375
|
-
display: flex;
|
|
376
|
-
flex: 1 0 auto;
|
|
377
|
-
flex-direction: row;
|
|
378
|
-
justify-content: flex-end;
|
|
379
|
-
`,Ro=a.div`
|
|
380
|
-
display: flex;
|
|
381
|
-
max-height: ${s.sp8};
|
|
382
|
-
min-height: ${s.sp8};
|
|
383
|
-
min-width: ${H.balanceWidth};
|
|
384
|
-
justify-content: center;
|
|
385
|
-
align-items: center;
|
|
386
|
-
background-color: ${e=>e.theme.colors.background};
|
|
387
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
388
|
-
border-radius: ${s.sp2};
|
|
389
|
-
margin-left: ${H.balanceLeftMargin};
|
|
390
|
-
color: ${e=>e.theme.colors.primary};
|
|
391
|
-
`,Ho=a(_)`
|
|
392
|
-
display: flex;
|
|
393
|
-
user-select: none;
|
|
394
|
-
flex-direction: row;
|
|
395
|
-
justify-content: center;
|
|
396
|
-
align-items: center;
|
|
397
|
-
height: ${H.balanceHeight};
|
|
398
|
-
max-width: ${H.balanceWidth};
|
|
399
|
-
width: 138px;
|
|
400
|
-
text-align: center;
|
|
401
|
-
column-gap: ${s.sp1};
|
|
402
|
-
color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
|
|
403
|
-
`,Ia=a.div`
|
|
404
|
-
max-height: ${s.sp8};
|
|
405
|
-
min-height: ${s.sp8};
|
|
406
|
-
display: flex;
|
|
407
|
-
flex-direction: row;
|
|
408
|
-
align-items: center;
|
|
409
|
-
min-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
410
|
-
color: ${e=>e.theme.colors.primary};
|
|
411
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
412
|
-
${e=>e.isSticky?z`
|
|
413
|
-
position: -webkit-sticky;
|
|
414
|
-
position: sticky;
|
|
415
|
-
top: ${s.sp0};
|
|
416
|
-
left: ${s.sp0};
|
|
417
|
-
`:""}
|
|
418
|
-
`,Na=a(_)`
|
|
419
|
-
display: flex;
|
|
420
|
-
align-items: center;
|
|
421
|
-
cursor: pointer;
|
|
422
|
-
column-gap: ${s.sp1};
|
|
423
|
-
color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
|
|
424
|
-
`,Ko=a.div`
|
|
425
|
-
max-height: ${s.sp8};
|
|
426
|
-
min-height: ${s.sp8};
|
|
427
|
-
cursor: pointer;
|
|
428
|
-
`,pn=a.div`
|
|
429
|
-
display: flex;
|
|
430
|
-
column-gap: ${s.sp1};
|
|
431
|
-
cursor: pointer;
|
|
432
|
-
align-items: center;
|
|
433
|
-
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
|
|
434
|
-
`,Yo=a.div``,Uo=a(So)`
|
|
435
|
-
width: 12px;
|
|
436
|
-
height: 12px;
|
|
437
|
-
cursor: pointer;
|
|
438
|
-
color: ${e=>e.theme.colors.hero};
|
|
439
|
-
`,gn=a(on)`
|
|
440
|
-
width: 12px;
|
|
441
|
-
height: 12px;
|
|
442
|
-
`,xn=a(nn)`
|
|
443
|
-
width: 12px;
|
|
444
|
-
height: 12px;
|
|
445
|
-
`,Ma=({reportId:e,sortKey:n,sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=n===r?o:"ascending";return t.jsxs(Na,{active:n===r,"data-testid":y("duration-row-vendor-title",e),children:[r==="vendor"?N.getLocalizedStrings().reports.aging.apAging.vendor:N.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(pn,{selectedForSort:n===r,children:t.jsx(Yo,{"data-testid":y("duration-row-vendor-sort-icon",e),onClick:()=>{i?.(fn(o),r)},children:l==="ascending"?t.jsx(xn,{}):t.jsx(gn,{})})}),t.jsx(st,{controller:n===r,children:t.jsx(Uo,{"data-testid":y("duration-row-vendor-sort-cancel-icon",e),onClick:()=>qo({onSortOrderChanged:i})})})]})},qo=({onSortOrderChanged:e})=>{e?.("descending","total")},Wa=({agingPeriod:e,sortKey:n="vendor",sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=n===e?o:"ascending";return t.jsx(Ko,{"data-testid":y("duration-row-tick-container",e),children:t.jsx(Ro,{"data-testid":y("duration-row-tick-element-container",e),children:t.jsxs(Ho,{active:n===e,"data-testid":y("duration-row-timeframe-tick",e),children:[N.getLocalizedStrings().reports.aging.duration[e],t.jsxs(pn,{selectedForSort:n===e,"data-testid":y("duration-row-sort-container",e),children:[t.jsx(Yo,{"data-testid":y("duration-row-sort-icon",e),onClick:()=>{i?.(fn(o),e)},children:r==="ascending"?t.jsx(xn,{}):t.jsx(gn,{})}),t.jsx(st,{controller:n===e,children:t.jsx(Uo,{"data-testid":y("duration-row-sort-cancel-icon",e),onClick:()=>qo({onSortOrderChanged:i})})})]})]})})})},Zo=({reportId:e,sortKey:n,sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=n==="total"?o:"ascending";return t.jsx(Ko,{"data-testid":y("duration-row-entity-total-tick-container",e),onClick:()=>{i?.(fn(o),"total")},children:t.jsx(Ro,{"data-testid":y("duration-row-entity-total-tick-element-container",e),children:t.jsxs(Ho,{active:n==="total","data-testid":y("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?N.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:N.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(pn,{selectedForSort:n==="total","data-testid":y("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(xn,{}):t.jsx(gn,{})})]})})})},Pa=({reportId:e,agingPeriod:n,sortKey:o="vendor",sortOrder:i="ascending",onSortOrderChanged:r})=>n!=null?t.jsx(Wa,{sortKey:o,sortOrder:i,onSortOrderChanged:r,agingPeriod:n}):t.jsx(Zo,{reportId:e,sortKey:o,sortOrder:i,onSortOrderChanged:r});function Fa({reportId:e,isSticky:n,height:o,agingPeriods:i,sortKey:r,sortOrder:l,backgroundColor:c,onSortOrderChanged:d}){const p=W();return t.jsxs(Ba,{height:o,bgColor:c,"data-testid":y("duration-row-root-container",e),children:[t.jsx(Ia,{"data-testid":y("duration-row-placeholder-name",e),isSticky:n,windowSize:p,bgColor:c,children:t.jsx(Ma,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})}),t.jsxs(Oa,{children:[i.map(u=>t.jsx(Pa,{reportId:e,agingPeriod:u,sortKey:r,sortOrder:l,onSortOrderChanged:d},u)),t.jsx(Zo,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})]})]})}const fn=e=>e==="ascending"?"descending":"ascending",za=[10,14,20,20,20],Ta=a.div`
|
|
446
|
-
display: flex;
|
|
447
|
-
flex: 1 1 auto;
|
|
448
|
-
width: fit-content;
|
|
449
|
-
min-width: 100%;
|
|
450
|
-
flex-direction: column;
|
|
451
|
-
height: ${e=>e.containerHeight}px;
|
|
452
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
453
|
-
`,Va=a.div`
|
|
454
|
-
user-select: none;
|
|
455
|
-
display: flex;
|
|
456
|
-
flex: 1 1 auto;
|
|
457
|
-
flex-flow: row;
|
|
458
|
-
justify-content: flex-start;
|
|
459
|
-
align-items: center;
|
|
460
|
-
`,Da=a.div`
|
|
461
|
-
display: flex;
|
|
462
|
-
flex: 1 0 auto;
|
|
463
|
-
flex-direction: row;
|
|
464
|
-
justify-content: flex-end;
|
|
465
|
-
`,Jo=a.div`
|
|
466
|
-
display: flex;
|
|
467
|
-
flex-direction: row;
|
|
468
|
-
justify-content: flex-start;
|
|
469
|
-
`,Qo=a(_)`
|
|
470
|
-
user-select: none;
|
|
471
|
-
min-width: ${H.balanceWidth};
|
|
472
|
-
max-width: ${H.balanceWidth};
|
|
473
|
-
text-align: right;
|
|
474
|
-
margin-left: ${H.balanceLeftMargin};
|
|
475
|
-
color: ${e=>e.theme.colors.primary};
|
|
476
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
477
|
-
`,Ga=a.div`
|
|
478
|
-
display: flex;
|
|
479
|
-
flex-direction: row;
|
|
480
|
-
flex-shrink: 2;
|
|
481
|
-
flex-grow: 1;
|
|
482
|
-
align-items: center;
|
|
483
|
-
height: ${e=>e.containerHeight-1}px;
|
|
484
|
-
width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
485
|
-
max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
486
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
487
|
-
${({isSticky:e})=>e?z`
|
|
488
|
-
position: sticky;
|
|
489
|
-
top: ${s.sp0};
|
|
490
|
-
left: ${s.sp0};
|
|
491
|
-
`:null}
|
|
492
|
-
`,Ea=a(_)`
|
|
493
|
-
user-select: none;
|
|
494
|
-
clear: both;
|
|
495
|
-
display: inline-block;
|
|
496
|
-
overflow: hidden;
|
|
497
|
-
white-space: nowrap;
|
|
498
|
-
text-overflow: ellipsis;
|
|
499
|
-
text-align: left;
|
|
500
|
-
margin-left: ${e=>za[e.depth]}px;
|
|
501
|
-
color: ${e=>e.theme.colors.primary};
|
|
502
|
-
width: ${e=>H.titleWidth.value(e.windowSize)-e.depth*S[11]}px;
|
|
503
|
-
`,Ra=({balance:e})=>t.jsx(Jo,{children:t.jsx(Qo,{isClickable:!1,onClick:()=>null,children:q("0,0",e?.totalBalance)})}),Ha=({total:e})=>t.jsx(Jo,{children:t.jsx(Qo,{isClickable:!1,onClick:()=>null,children:q("0,0",e)})});function Ka({backgroundColor:e,isSticky:n,height:o,noMarginForEntity:i,isScrolling:r,total:l,nestedCustomer:c,metadata:d}){const p=W(),{common:{strings:{empty:u}},reports:{sections:g}}=N.getLocalizedStrings(),h=c!=null?c.id.length-1:0,x=d,f=c?.customer.name??u;return t.jsxs(Ta,{"data-testid":"sub-customer-total-row-root-container",containerHeight:o,bgColor:e,children:[t.jsxs(Va,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(Ga,{isSticky:n,windowSize:p,bgColor:e,containerHeight:o,children:[t.jsx(Mo,{ancestorMetadata:x.vendorOrCustomerAncestorMetadata,depth:h,name:f}),t.jsx(Ea,{isClickable:!1,title:f,depth:h,windowSize:p,children:g.totalPrefix+" "+f})]}),t.jsxs(Da,{children:[c?.arAgingBalances.map((m,w)=>t.jsx(Ra,{balance:m},w)),t.jsx(Ha,{total:l})]})]}),t.jsx(Ya,{isScrolling:r,nestingLevel:h,isSticky:n,noMarginForEntity:i})]})}function Ya({isScrolling:e,nestingLevel:n,isSticky:o,noMarginForEntity:i}){return t.jsx(Vt,{isScrolling:e,kind:"subtotal_row_separator",subEntityProps:{nestingLevel:n,isSticky:o,noMarginForEntity:i}})}const ie=e=>{switch(e){case"name+balances_actual":return!0;case"name+balances_forecast":case"name_only":return!1}},Ve=e=>{switch(e){case"name+balances_forecast":return!0;case"name+balances_actual":case"name_only":return!1}},Ua=a.div`
|
|
504
|
-
display: flex;
|
|
505
|
-
flex: 1 1 auto;
|
|
506
|
-
width: fit-content;
|
|
507
|
-
min-width: 100%;
|
|
508
|
-
flex-direction: column;
|
|
509
|
-
height: ${e=>e.height}px;
|
|
510
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
511
|
-
`,qa=a.div`
|
|
512
|
-
cursor: default;
|
|
513
|
-
user-select: none;
|
|
514
|
-
display: flex;
|
|
515
|
-
flex: 1 1 auto;
|
|
516
|
-
flex-flow: row;
|
|
517
|
-
justify-content: flex-start;
|
|
518
|
-
align-items: center;
|
|
519
|
-
`,Za=a.div`
|
|
520
|
-
display: flex;
|
|
521
|
-
flex: 1 0 auto;
|
|
522
|
-
flex-direction: row;
|
|
523
|
-
justify-content: flex-end;
|
|
524
|
-
`,Xo=a.div`
|
|
525
|
-
display: flex;
|
|
526
|
-
flex-direction: row;
|
|
527
|
-
justify-content: flex-start;
|
|
528
|
-
`,ei=a(ne)`
|
|
529
|
-
user-select: none;
|
|
530
|
-
min-width: ${H.balanceWidth};
|
|
531
|
-
max-width: ${H.balanceWidth};
|
|
532
|
-
text-align: right;
|
|
533
|
-
margin-left: ${H.balanceLeftMargin};
|
|
534
|
-
color: ${e=>e.theme.colors.primary};
|
|
535
|
-
border: 1px solid transparent;
|
|
536
|
-
`,Ja=a.div`
|
|
537
|
-
display: flex;
|
|
538
|
-
flex-direction: row;
|
|
539
|
-
flex-shrink: 2;
|
|
540
|
-
flex-grow: 1;
|
|
541
|
-
align-items: center;
|
|
542
|
-
width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
543
|
-
max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
|
|
544
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
545
|
-
${({isSticky:e,isIndented:n})=>e&&n?z`
|
|
546
|
-
position: -webkit-sticky;
|
|
547
|
-
position: sticky;
|
|
548
|
-
top: ${s.sp0};
|
|
549
|
-
left: ${s.sp4};
|
|
550
|
-
`:e&&!n?z`
|
|
551
|
-
position: -webkit-sticky;
|
|
552
|
-
position: sticky;
|
|
553
|
-
top: ${s.sp0};
|
|
554
|
-
left: ${s.sp0};
|
|
555
|
-
`:null}
|
|
556
|
-
`,Qa=a(ne)`
|
|
557
|
-
user-select: none;
|
|
558
|
-
clear: both;
|
|
559
|
-
display: inline-block;
|
|
560
|
-
overflow: hidden;
|
|
561
|
-
white-space: nowrap;
|
|
562
|
-
text-overflow: ellipsis;
|
|
563
|
-
text-align: left;
|
|
564
|
-
color: ${e=>e.theme.colors.primary};
|
|
565
|
-
`,Xa=({type:e,balance:n})=>t.jsx(Xo,{children:ie(e)===!0?t.jsx(ei,{children:q("0,0",n?.balance)}):null}),el=({type:e,balance:n})=>t.jsx(Xo,{children:ie(e)===!0?t.jsx(ei,{children:q("0,0",n)}):null});function tl({type:e,isSticky:n,isIndented:o,height:i,title:r,totalBalances:l,backgroundColor:c}){const d=W(),p={amount:l.reduce((u,g)=>u+(g?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Gn.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Gn.currencySymbol};return t.jsx(Ua,{"data-testid":y("total-row-root-container"),height:i,bgColor:c,windowSize:d,children:t.jsxs(qa,{isClickable:!1,"data-testid":y("total-row-container"),children:[t.jsx(Ja,{bgColor:c,isSticky:n,windowSize:d,isIndented:o,children:t.jsx(Qa,{children:r})}),t.jsxs(Za,{children:[l.map((u,g)=>t.jsx(Xa,{type:e,balance:u},g)),t.jsx(el,{type:e,balance:p})]})]})})}function ut(e,n,o,i){switch(e){case"cogs":return nl(o,i,n);case"expenses":return ol(o,i,n);case"income":return il(o,i,n);case"cash_position":return rl(o,i,n);case"cash_in":return al(o,i,n);case"cash_out":return ll(o,i,n);case"assets":return cl(o,i,n);case"equity":return sl(o,i,n);case"liabilities":return dl(o,i,n);case"other_expense":return hl(o,i,n);case"other_income":return ul(o,i,n);case"operating_activities":return pl(o,i,n);case"investing_activities":return gl(o,i,n);case"financing_activities":return xl(o,i,n);default:throw Error(`${e} is not yet supported!`)}}const nl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cogsInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithCogsOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cogsInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},ol=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.expensesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithExpensesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.expensesInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},il=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.incomeInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithIncomeOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.incomeInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},rl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashPositionInTimeframe,i.compactedAccountsSelector=()=>R([],i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},al=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashInInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithCashInOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cashInInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},ll=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashOutInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithCashOutOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cashOutInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},cl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.assetsInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithAssetsOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.assetsInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},sl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.equityInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithEquityOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.equityInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},dl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.liabilitiesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithLiabilitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},hl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.otherExpensesInTimeframe,i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},ul=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.otherIncomeInTimeframe,i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},pl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithOperatingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},gl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.investingActivitiesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithInvestingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},xl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.financingActivitiesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithFinancingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i};function R(e,n,o){switch(o){case"off":return e;case"filter_actual_nil_balances":return e.filter(i=>ti(n(i)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(i=>ni(n(i)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(i=>oi(n(i)?.balances??[]))}}function oe(e,n,o,i){switch(i){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>ti(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>ni(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>oi(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function ti(e){let n=!1;if(e!=null){for(const o of e)if(o.balance.amount!==0){n=!0;break}}return n}function ni(e){let n=!1;if(e!=null){for(const o of e)if(o.forecast!=null&&o.forecast.amount!==0){n=!0;break}}return n}function oi(e){let n=!1;if(e!=null){for(const o of e)if(o.forecast!=null&&o.forecast.amount!==0||o.balance!=null&&o.balance.amount!==0){n=!0;break}}return n}function ee(e,n="ascending_date",o=-1,i=!0){const r=o!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=ii([],o)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...i?e.additionalBalances:[]],thisPeriodIndex:c}}function Hn(e,n="ascending_date",o=-1,i=!0){const r=o!==-1,l=ee(e,n,o,i);if(e==null||e.balances.length===0)return l;const c=[...l.balances];if(e?.totalBalance!=null)c.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=ii([],1);c.push(...d)}return{balances:c,thisPeriodIndex:l.thisPeriodIndex}}function Ne(e,n){if(n==="ascending_date")return e;{const o=[],i=[];for(const r of e)r.type==="default"?o.push(r):i.push(r);return[...o.reverse(),...i]}}function ii(e,n){return e.length>0?e:bo(Array(n),null)}const fl=a.div`
|
|
566
|
-
display: flex;
|
|
567
|
-
flex: 1 1 auto;
|
|
568
|
-
max-height: 1px;
|
|
569
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
570
|
-
`,Kn=a.div`
|
|
571
|
-
display: flex;
|
|
572
|
-
flex: 1 1 auto;
|
|
573
|
-
max-height: 1px;
|
|
574
|
-
margin-left: ${e=>e.marginLeft}px;
|
|
575
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
576
|
-
`,ml=a.div`
|
|
577
|
-
display: flex;
|
|
578
|
-
flex: 1 1 auto;
|
|
579
|
-
max-height: 1px;
|
|
580
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
581
|
-
`;function wl({kind:e,isScrolling:n}){switch(e){case"account_title_row_separator":return t.jsx(Kn,{marginLeft:S[5],isScrolling:n});case"account_balance_row_separator":return t.jsx(Kn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(fl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(ml,{isScrolling:n})}}const Me={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new G(200,350,405)},yl=a.div`
|
|
582
|
-
display: flex;
|
|
583
|
-
flex: 1 1 auto;
|
|
584
|
-
width: fit-content;
|
|
585
|
-
min-width: 100%;
|
|
586
|
-
flex-direction: column;
|
|
587
|
-
height: ${e=>e.height}px;
|
|
588
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
589
|
-
`,bl=a.div`
|
|
590
|
-
user-select: none;
|
|
591
|
-
display: flex;
|
|
592
|
-
flex: 1 1 auto;
|
|
593
|
-
flex-flow: row;
|
|
594
|
-
justify-content: flex-start;
|
|
595
|
-
align-items: center;
|
|
596
|
-
`,kl=a.div`
|
|
597
|
-
display: flex;
|
|
598
|
-
flex: 1 0 auto;
|
|
599
|
-
flex-direction: row;
|
|
600
|
-
justify-content: flex-end;
|
|
601
|
-
`,jl=a.div`
|
|
602
|
-
display: flex;
|
|
603
|
-
flex-direction: row;
|
|
604
|
-
justify-content: flex-start;
|
|
605
|
-
`,Sl=a(_)`
|
|
606
|
-
user-select: none;
|
|
607
|
-
color: ${e=>e.theme.colors.hero};
|
|
608
|
-
min-width: ${Me.balanceWidth};
|
|
609
|
-
max-width: ${Me.balanceWidth};
|
|
610
|
-
text-align: right;
|
|
611
|
-
margin-left: ${Me.balanceLeftMargin};
|
|
612
|
-
`,Cl=a.div`
|
|
613
|
-
display: flex;
|
|
614
|
-
flex-direction: row;
|
|
615
|
-
flex-shrink: 2;
|
|
616
|
-
flex-grow: 1;
|
|
617
|
-
align-items: center;
|
|
618
|
-
width: ${e=>Me.titleWidth.valuePx(e.windowSize)};
|
|
619
|
-
color: ${e=>e.theme.colors.hero};
|
|
620
|
-
max-width: ${e=>Me.titleWidth.valuePx(e.windowSize)};
|
|
621
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
622
|
-
${({isSticky:e})=>e?z`
|
|
623
|
-
position: -webkit-sticky;
|
|
624
|
-
position: sticky;
|
|
625
|
-
top: ${s.sp0};
|
|
626
|
-
left: ${s.sp0};
|
|
627
|
-
`:null}
|
|
628
|
-
`,$l=a(_)`
|
|
629
|
-
user-select: none;
|
|
630
|
-
clear: both;
|
|
631
|
-
display: inline-block;
|
|
632
|
-
overflow: hidden;
|
|
633
|
-
white-space: nowrap;
|
|
634
|
-
text-overflow: ellipsis;
|
|
635
|
-
text-align: left;
|
|
636
|
-
margin-left: ${s.sp6};
|
|
637
|
-
`,vl=({balance:e})=>t.jsx(jl,{children:t.jsx(Sl,{children:Z(e)})});function _l({heading:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,totalBalances:l,isScrolling:c,isLastNode:d,onClick:p}){const u=W();return t.jsxs(yl,{"data-testid":y("calculated-section-type-1-root-container-row",i),height:r,bgColor:n,windowSize:u,children:[t.jsxs(bl,{"data-testid":y("calculated-section-type-1-container-row",i),onClick:()=>p?.(i),children:[t.jsx(Cl,{"data-testid":y("calculated-section-type-1-total-container-row",i),bgColor:n,isSticky:o,windowSize:u,children:t.jsx($l,{children:e})}),t.jsx(kl,{children:l.map((g,h)=>t.jsx(vl,{balance:g},h))})]}),t.jsx(Ll,{isScrolling:c,isLastNode:d})]})}function Ll({isScrolling:e,isLastNode:n}){return n===!0?t.jsx(wl,{isScrolling:e,kind:"heading_row_separator"}):null}const Al=a.div`
|
|
638
|
-
display: flex;
|
|
639
|
-
flex: 1 1 auto;
|
|
640
|
-
width: fit-content;
|
|
641
|
-
min-width: 100%;
|
|
642
|
-
flex-direction: column;
|
|
643
|
-
height: ${e=>e.height}px;
|
|
644
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
645
|
-
`,Bl=a.div`
|
|
646
|
-
user-select: none;
|
|
647
|
-
display: flex;
|
|
648
|
-
flex: 1 1 auto;
|
|
649
|
-
flex-flow: row;
|
|
650
|
-
justify-content: flex-start;
|
|
651
|
-
align-items: center;
|
|
652
|
-
`,Ol=a.div`
|
|
653
|
-
display: flex;
|
|
654
|
-
flex: 1 0 auto;
|
|
655
|
-
flex-direction: row;
|
|
656
|
-
justify-content: flex-end;
|
|
657
|
-
`,Il=a.div`
|
|
658
|
-
display: flex;
|
|
659
|
-
flex-direction: row;
|
|
660
|
-
justify-content: flex-start;
|
|
661
|
-
`,tt=a(ko)`
|
|
662
|
-
color: ${e=>e.theme.colors.champion};
|
|
663
|
-
user-select: none;
|
|
664
|
-
max-width: ${j.balanceWidth};
|
|
665
|
-
min-width: ${j.balanceWidth};
|
|
666
|
-
text-align: right;
|
|
667
|
-
margin-left: ${j.balanceLeftMargin};
|
|
668
|
-
`,Nl=a.div`
|
|
669
|
-
display: flex;
|
|
670
|
-
flex-direction: row;
|
|
671
|
-
flex-shrink: 2;
|
|
672
|
-
flex-grow: 1;
|
|
673
|
-
align-items: center;
|
|
674
|
-
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
675
|
-
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
676
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
677
|
-
${({isSticky:e})=>e?z`
|
|
678
|
-
position: -webkit-sticky;
|
|
679
|
-
position: sticky;
|
|
680
|
-
top: ${s.sp0};
|
|
681
|
-
left: ${s.sp0};
|
|
682
|
-
`:null}
|
|
683
|
-
`,Ml=a(ko)`
|
|
684
|
-
color: ${e=>e.theme.colors.champion};
|
|
685
|
-
user-select: none;
|
|
686
|
-
clear: both;
|
|
687
|
-
display: inline-block;
|
|
688
|
-
overflow: hidden;
|
|
689
|
-
white-space: nowrap;
|
|
690
|
-
text-overflow: ellipsis;
|
|
691
|
-
text-align: left;
|
|
692
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
693
|
-
`,Wl=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i})=>t.jsxs(Il,{"data-testid":y("heading-row-balance-element",e),children:[ie(e)||o?t.jsx(tt,{"data-testid":y("heading-row-balance-actual",e),children:Z(n)}):t.jsx(tt,{"data-testid":y("heading-row-balance-forecast",e),children:Q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(tt,{"data-testid":y("heading-row-balance-forecast",e),children:Q(n)}),t.jsx(tt,{"data-testid":y("heading-row-balance-actual-vs-forecast",e),children:i==="compare_mode_percent"?ce(n):se(n)})]}):null]});function Pl({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,heading:l,headingBalances:c,isActualVsForecastOn:d,compareMode:p,isLeaf:u,onClick:g}){const h=W();return t.jsx(Al,{height:r,bgColor:n,"data-testid":y("heading-row-root-container",i),children:t.jsxs(Bl,{"data-testid":y("heading-row-container",i),isClickable:!u,onClick:()=>g?.(i),children:[de(e)===!0?t.jsx(Nl,{"data-testid":y("heading-row-heading-container",i),isSticky:o,windowSize:h,bgColor:n,children:t.jsx(Ml,{children:l})}):null,be(e)===!0?t.jsx(Ol,{"data-testid":y("heading-row-balances-container",i),children:c.map((x,f)=>t.jsx(Wl,{"data-testid":y("heading-row-balance-element",e),type:e,heading:l,balance:x,isActualVsForecastOn:d,compareMode:p},f))}):null]})})}const mn=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="title_string_only")return null;const x=ee(void 0,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Pl,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,heading:o.element.title,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,headingBalances:x.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:f=>{h?.(f)}})};function ri(e,n){return Fl(n)}const Fl=(e,n)=>{const o={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return o.acBalanceSelector=i=>i.balancesInTimeframe,o.compactedAccountsSelectorVariant=i=>function(r,l,c){switch(c){case"off":default:return r;case"filter_actual_nil_balances":return r.filter(d=>function(p){let u=!1;if(p!=null){for(const g of p)if(g.balance.amount!==0){u=!0;break}}return u}(l(d)?.balances??[]))}}(i,o.acBalanceSelector,e),o},nt=[new G(S[4],56),new G(44,76),new G(69,102),new G(93,124),new G(113,143)],Yn=[new G(S[0],S[0]),new G(14,S[4]),new G(67,67),new G(102,102),new G(136,136)],zl=a.div`
|
|
694
|
-
display: flex;
|
|
695
|
-
flex: 1 1 auto;
|
|
696
|
-
max-height: 1px;
|
|
697
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
698
|
-
`,Un=a.div`
|
|
699
|
-
display: flex;
|
|
700
|
-
flex: 1 1 auto;
|
|
701
|
-
max-height: 1px;
|
|
702
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey4};
|
|
703
|
-
`,Tl=a.div`
|
|
704
|
-
display: flex;
|
|
705
|
-
flex: 1 1 auto;
|
|
706
|
-
flex-flow: row;
|
|
707
|
-
justify-content: flex-start;
|
|
708
|
-
align-items: center;
|
|
709
|
-
`,Vl=a.div`
|
|
710
|
-
display: flex;
|
|
711
|
-
flex-direction: row;
|
|
712
|
-
flex-shrink: 2;
|
|
713
|
-
flex-grow: 1;
|
|
714
|
-
align-items: center;
|
|
715
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
716
|
-
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
717
|
-
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
718
|
-
${({isSticky:e})=>e?z`
|
|
719
|
-
position: -webkit-sticky;
|
|
720
|
-
position: sticky;
|
|
721
|
-
top: ${s.sp0};
|
|
722
|
-
left: ${s.sp0};
|
|
723
|
-
`:null}
|
|
724
|
-
`,Dl=a.div`
|
|
725
|
-
width: ${e=>e.noMarginForAccount?nt[e.nestingLevel].value(e.windowSize)-S[5]:nt[e.nestingLevel].value(e.windowSize)}px;
|
|
726
|
-
max-width: ${e=>e.noMarginForAccount?nt[e.nestingLevel].value(e.windowSize)-S[5]:nt[e.nestingLevel].value(e.windowSize)}px;
|
|
727
|
-
height: 1px;
|
|
728
|
-
`,Gl=a.div`
|
|
729
|
-
width: ${e=>Yn[e.classDepth].valuePx(e.windowSize)};
|
|
730
|
-
max-width: ${e=>Yn[e.classDepth].valuePx(e.windowSize)};
|
|
731
|
-
height: 1px;
|
|
732
|
-
`,El=a.div`
|
|
733
|
-
display: flex;
|
|
734
|
-
flex: 1 1 auto;
|
|
735
|
-
max-height: 1px;
|
|
736
|
-
height: 1px;
|
|
737
|
-
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
738
|
-
`,Rl=a.div`
|
|
739
|
-
display: flex;
|
|
740
|
-
flex: 1 1 auto;
|
|
741
|
-
max-height: 1px;
|
|
742
|
-
height: 1px;
|
|
743
|
-
background-color: ${e=>e.isScrolling?"transparent":e.colour};
|
|
744
|
-
`,Hl=a.div`
|
|
745
|
-
display: flex;
|
|
746
|
-
flex: 1 1 auto;
|
|
747
|
-
max-height: 1px;
|
|
748
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
749
|
-
`,qn=e=>{const n=W(),o=le();return t.jsxs(Tl,{children:[t.jsxs(Vl,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(Gl,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(Dl,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx(El,{isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]}),t.jsx(Rl,{isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]})};function ke({kind:e,isScrolling:n,subAccountProps:o}){switch(e){case"account_title_row_separator":return t.jsx(Un,{marginLeft:S[5],isScrolling:n});case"sub_account_balance_row_separator":return t.jsx(qn,{nestingLevel:o?.nestingLevel??1,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!1,classDepth:o?.classDepth,noMarginForAccount:o?.noMarginForAccount??!1});case"account_balance_row_separator":return t.jsx(Un,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(zl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(Hl,{isScrolling:n});case"total_row_separator":return t.jsx(qn,{nestingLevel:o?.nestingLevel??1,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!0,classDepth:o?.classDepth,noMarginForAccount:o?.noMarginForAccount??!1})}}function ai({height:e,backgroundColor:n,title:o,numOfBalances:i=6}){let r=null;const l=W()!=="small";switch(o!=null?o.split("+")[1]:""){case"section-row":r=t.jsx(Kl,{columns:i,isSticky:l});break;case"root-class-row":r=t.jsx(Yl,{columns:i,isSticky:l});break;case"sub-class-row":r=t.jsx(Ul,{columns:i,isSticky:l});break;case"leaf-class-row":r=t.jsxs(t.Fragment,{children:[t.jsx(ql,{columns:i,isSticky:l}),t.jsx(ke,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]})}return t.jsx(Jl,{height:e,bgColor:n,children:r})}const Kl=({columns:e,isSticky:n})=>t.jsxs(Le,{children:[t.jsxs(yt,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Ee,{width:S[4],height:S[4]}),t.jsx(Y,{width:j.loadingInProgressSmallStickyColumnWidth,height:j.balanceHeightInPx})]}),t.jsx(wt,{columns:e,rectangleWidth:j.loadingBalanceWidthInPx})]}),Yl=({columns:e,isSticky:n})=>t.jsxs(Le,{children:[t.jsxs(yt,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Ee,{width:S[4],height:S[4]}),t.jsx(Y,{width:j.loadingInProgressLargeStickyColumnWidth,height:j.balanceHeightInPx})]}),t.jsx(wt,{columns:e,rectangleWidth:j.smallLoadingBalanceWidthInPx})]}),Ul=({columns:e,isSticky:n})=>t.jsxs(Le,{children:[t.jsx(yt,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(Le,{style:{marginLeft:"36px"},children:[t.jsx(Ee,{width:S[4],height:S[4]}),t.jsx(Y,{width:j.loadingInProgressLargeStickyColumnWidth,height:j.balanceHeightInPx,style:{marginLeft:S[4]}})]})}),t.jsx(wt,{columns:e,rectangleWidth:j.smallLoadingBalanceWidthInPx})]}),ql=({columns:e,isSticky:n})=>t.jsxs(Le,{children:[t.jsx(yt,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(Le,{style:{marginLeft:"84px"},children:t.jsx(Y,{width:j.loadingInProgressSmallStickyColumnWidth,height:j.balanceHeightInPx})})}),t.jsx(wt,{columns:e,rectangleWidth:j.smallLoadingBalanceWidthInPx})]}),Zl=({rectangleWidth:e})=>t.jsx(li,{width:j.balanceWidthInPx,children:t.jsx(Y,{width:e,height:j.balanceHeightInPx})}),wt=({columns:e,rectangleWidth:n})=>t.jsx(Ql,{style:{zIndex:9,width:j.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((o,i)=>t.jsx(Zl,{rectangleWidth:n},i))}),Jl=a.div`
|
|
750
|
-
display: flex;
|
|
751
|
-
flex: 1 1 auto;
|
|
752
|
-
width: fit-content;
|
|
753
|
-
min-width: 100%;
|
|
754
|
-
flex-direction: column;
|
|
755
|
-
height: ${e=>e.height}px;
|
|
756
|
-
background-color: ${e=>e.bgColor?.hex()??e.theme.colors.grey4};
|
|
757
|
-
`,Le=a.div`
|
|
758
|
-
user-select: none;
|
|
759
|
-
display: flex;
|
|
760
|
-
flex: 1 1 auto;
|
|
761
|
-
flex-flow: row;
|
|
762
|
-
justify-content: flex-start;
|
|
763
|
-
align-items: center;
|
|
764
|
-
min-height: 0;
|
|
765
|
-
`,Ql=a.div`
|
|
766
|
-
display: flex;
|
|
767
|
-
flex: 1 0 auto;
|
|
768
|
-
flex-direction: row;
|
|
769
|
-
justify-content: flex-end;
|
|
770
|
-
`,li=a.div`
|
|
771
|
-
display: flex;
|
|
772
|
-
flex-direction: row;
|
|
773
|
-
align-items: center;
|
|
774
|
-
min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
|
|
775
|
-
margin-right: ${j.balanceLeftMargin};
|
|
776
|
-
gap: ${j.balanceLeftMargin};
|
|
777
|
-
justify-content: flex-end;
|
|
778
|
-
`,yt=a(li)`
|
|
779
|
-
position: ${e=>e.isSticky===!0?"sticky":"static"};
|
|
780
|
-
left: ${s.sp0};
|
|
781
|
-
z-index: 10;
|
|
782
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
783
|
-
justify-content: flex-start;
|
|
784
|
-
`;function ci({height:e,numOfBalances:n,backgroundColor:o}){const i=W();return t.jsx(Xl,{height:e,bgColor:o,children:t.jsxs(ec,{windowSize:i,children:[t.jsx(tc,{windowSize:i,width:`${j.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(nc,{children:Array.from({length:n},(r,l)=>t.jsx(si,{windowSize:i,width:j.balanceWidth,children:t.jsx(Y,{width:j.balanceWidthInPx,height:S[6]})},`timeframe-balance-${l}`))})]})})}const Xl=a.div`
|
|
785
|
-
display: flex;
|
|
786
|
-
flex: 1 1 auto;
|
|
787
|
-
width: fit-content;
|
|
788
|
-
min-width: 100%;
|
|
789
|
-
flex-direction: column;
|
|
790
|
-
height: ${e=>e.height}px;
|
|
791
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
792
|
-
margin-top: 20px;
|
|
793
|
-
`,ec=a.div`
|
|
794
|
-
display: flex;
|
|
795
|
-
flex-direction: row;
|
|
796
|
-
width: 100%;
|
|
797
|
-
`,si=a.div`
|
|
798
|
-
display: flex;
|
|
799
|
-
flex-direction: row;
|
|
800
|
-
align-items: center;
|
|
801
|
-
margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:s.sp4};
|
|
802
|
-
min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
|
|
803
|
-
color: ${e=>e.theme.colors.primary};
|
|
804
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
805
|
-
justify-content: flex-end;
|
|
806
|
-
:first-of-type {
|
|
807
|
-
justify-content: flex-start;
|
|
808
|
-
}
|
|
809
|
-
margin-right: ${j.balanceLeftMargin};
|
|
810
|
-
`,tc=a(si)`
|
|
811
|
-
position: sticky;
|
|
812
|
-
left: ${s.sp0};
|
|
813
|
-
z-index: 10;
|
|
814
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
815
|
-
`,nc=a.div`
|
|
816
|
-
display: flex;
|
|
817
|
-
flex-direction: row;
|
|
818
|
-
width: calc(100% - ${j.loadingInProgressStickySectionWidth}px);
|
|
819
|
-
justify-content: flex-end;
|
|
820
|
-
flex: 1 0 auto;
|
|
821
|
-
`,oc=a.div`
|
|
822
|
-
display: flex;
|
|
823
|
-
flex: 1 1 auto;
|
|
824
|
-
max-height: 1px;
|
|
825
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
826
|
-
`,ic=a.div`
|
|
827
|
-
display: flex;
|
|
828
|
-
flex: 1 1 auto;
|
|
829
|
-
max-height: 1px;
|
|
830
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
831
|
-
`;function wn({kind:e,isScrolling:n}){switch(e){case"ac_group_row_separator":return t.jsx(oc,{"data-testid":y("ac-group-row-separator",e),isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(ic,{"data-testid":y("section-row-separator",e),isScrolling:n})}}const E={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new G(200,350,405)},rc=a.div`
|
|
832
|
-
display: flex;
|
|
833
|
-
flex: 1 1 auto;
|
|
834
|
-
width: fit-content;
|
|
835
|
-
min-width: 100%;
|
|
836
|
-
flex-direction: column;
|
|
837
|
-
height: ${e=>e.height}px;
|
|
838
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
839
|
-
`,ac=a.div`
|
|
840
|
-
user-select: none;
|
|
841
|
-
display: flex;
|
|
842
|
-
flex: 1 1 auto;
|
|
843
|
-
flex-flow: row;
|
|
844
|
-
justify-content: flex-start;
|
|
845
|
-
align-items: center;
|
|
846
|
-
&:hover {
|
|
847
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
848
|
-
}
|
|
849
|
-
`,lc=a.div`
|
|
850
|
-
display: flex;
|
|
851
|
-
flex: 1 0 auto;
|
|
852
|
-
flex-direction: row;
|
|
853
|
-
justify-content: flex-end;
|
|
854
|
-
color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
855
|
-
`,cc=a.div`
|
|
856
|
-
display: flex;
|
|
857
|
-
flex-direction: row;
|
|
858
|
-
justify-content: flex-start;
|
|
859
|
-
`,Dt=a(_)`
|
|
860
|
-
user-select: none;
|
|
861
|
-
min-width: ${E.balanceWidth};
|
|
862
|
-
max-width: ${E.balanceWidth};
|
|
863
|
-
text-align: right;
|
|
864
|
-
margin-left: ${E.balanceLeftMargin};
|
|
865
|
-
`,sc=a(Dt)`
|
|
866
|
-
color: ${e=>e.theme.colors.hero};
|
|
867
|
-
&:hover {
|
|
868
|
-
color: inherit;
|
|
869
|
-
}
|
|
870
|
-
`,dc=a.div`
|
|
871
|
-
display: flex;
|
|
872
|
-
flex-direction: row;
|
|
873
|
-
flex-shrink: 2;
|
|
874
|
-
flex-grow: 1;
|
|
875
|
-
align-items: center;
|
|
876
|
-
width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
877
|
-
max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
878
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
879
|
-
color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
880
|
-
${({isSticky:e})=>e?z`
|
|
881
|
-
position: -webkit-sticky;
|
|
882
|
-
position: sticky;
|
|
883
|
-
top: ${s.sp0};
|
|
884
|
-
left: ${s.sp0};
|
|
885
|
-
`:null}
|
|
886
|
-
`,hc=a(_)`
|
|
887
|
-
user-select: none;
|
|
888
|
-
clear: both;
|
|
889
|
-
display: inline-block;
|
|
890
|
-
overflow: hidden;
|
|
891
|
-
white-space: nowrap;
|
|
892
|
-
text-overflow: ellipsis;
|
|
893
|
-
text-align: left;
|
|
894
|
-
margin-left: ${s.sp2};
|
|
895
|
-
`,uc=({type:e,balance:n,collapsed:o,compareMode:i})=>{const r=o===!0?sc:Dt;return t.jsxs(cc,{"data-testid":y("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":y("account-group-row-balance-actual",e),children:Z(n)}),Ve(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":y("account-group-row-balance-forecast",e),children:Q(n)}),t.jsx(Dt,{"data-testid":y("account-group-row-balance-actual-vs-forecast",e),children:i==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function pc({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,accountGroupName:l,accountGroupBalances:c,compareMode:d,isScrolling:p,isOpen:u,isLeaf:g,isLastNode:h,onClick:x}){const f=W(),m=!g,w=m?"pointer":"default",b=l.length>0?l.substr(0,1).toUpperCase():"",k=xc(c),$=le().colors.primary,[C,v]=T.useState(!1);return t.jsxs(rc,{"data-testid":y("account-group-row-root-container",e),height:r,bgColor:n,windowSize:f,children:[t.jsxs(ac,{"data-testid":y("account-group-row-container",e),style:{cursor:w},isClickable:m,onClick:()=>x?.(i),onMouseOver:()=>v(!0),onMouseLeave:()=>v(!1),children:[t.jsxs(dc,{"data-testid":y("account-group-row-name-container",e),bgColor:n,isSticky:o,windowSize:f,hasNonZeroBalance:k,children:[t.jsx(Ce,{"data-testid":y("account-group-row-circle-with-letter",e),color:O($),showCollapsedIcon:!u,showIcon:m&&C,firstLetter:b}),t.jsx(hc,{"data-testid":y("account-group-row-name",e),children:l})]}),t.jsx(lc,{"data-testid":y("account-group-row-balances-container",e),hasNonZeroBalance:k,children:c.map((B,A)=>t.jsx(uc,{"data-testid":y("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:B,compareMode:d,collapsed:!1},A))})]}),t.jsx(gc,{isScrolling:p,isLeaf:g,isLastNode:h,isOpen:u})]})}function gc({isScrolling:e,isLeaf:n,isLastNode:o,isOpen:i}){return!n&&i&&o?null:t.jsx(wn,{isScrolling:e,kind:"ac_group_row_separator"})}const xc=e=>{let n=!1;if(e!=null){for(const o of e)if(o!=null&&o.balance.amount!==0){n=!0;break}}return n};function De(e){return typeof e=="object"&&e!==null&&"depth"in e&&typeof e.depth=="number"&&!("filter"in e)}function bt(e,n){if(e!=null&&n!=null&&De(e)===!0){if(n.id==="__horizontal_total__")return{isHorizontalClassTotalColumn:!0};if(n.id!=null)return{isHorizontalClassColumn:!0}}}const fc=a.div`
|
|
896
|
-
display: flex;
|
|
897
|
-
flex: 1 1 auto;
|
|
898
|
-
width: fit-content;
|
|
899
|
-
min-width: 100%;
|
|
900
|
-
flex-direction: column;
|
|
901
|
-
height: ${e=>e.height}px;
|
|
902
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
903
|
-
`,mc=a.div`
|
|
904
|
-
user-select: none;
|
|
905
|
-
display: flex;
|
|
906
|
-
flex: 1 1 auto;
|
|
907
|
-
flex-flow: row;
|
|
908
|
-
justify-content: flex-start;
|
|
909
|
-
align-items: center;
|
|
910
|
-
&:hover {
|
|
911
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
912
|
-
}
|
|
913
|
-
`,wc=a.div`
|
|
914
|
-
display: flex;
|
|
915
|
-
flex: 1 0 auto;
|
|
916
|
-
flex-direction: row;
|
|
917
|
-
justify-content: flex-end;
|
|
918
|
-
`,yc=a.div`
|
|
919
|
-
display: flex;
|
|
920
|
-
flex-direction: row;
|
|
921
|
-
justify-content: flex-start;
|
|
922
|
-
`,Wt=a(_)`
|
|
923
|
-
user-select: none;
|
|
924
|
-
min-width: ${E.balanceWidth};
|
|
925
|
-
max-width: ${E.balanceWidth};
|
|
926
|
-
text-align: right;
|
|
927
|
-
margin-left: ${E.balanceLeftMargin};
|
|
928
|
-
color: ${e=>e.theme.colors.hero};
|
|
929
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
930
|
-
&:hover {
|
|
931
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
932
|
-
}
|
|
933
|
-
`,bc=a.div`
|
|
934
|
-
display: flex;
|
|
935
|
-
flex-direction: row;
|
|
936
|
-
flex-shrink: 2;
|
|
937
|
-
flex-grow: 1;
|
|
938
|
-
align-items: center;
|
|
939
|
-
width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
940
|
-
max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
941
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
942
|
-
${({isSticky:e})=>e?z`
|
|
943
|
-
position: -webkit-sticky;
|
|
944
|
-
position: sticky;
|
|
945
|
-
top: ${s.sp0};
|
|
946
|
-
left: ${s.sp0};
|
|
947
|
-
`:null}
|
|
948
|
-
`,kc=a(_)`
|
|
949
|
-
user-select: none;
|
|
950
|
-
clear: both;
|
|
951
|
-
display: inline-block;
|
|
952
|
-
overflow: hidden;
|
|
953
|
-
white-space: nowrap;
|
|
954
|
-
text-overflow: ellipsis;
|
|
955
|
-
text-align: left;
|
|
956
|
-
margin-left: 35px;
|
|
957
|
-
color: ${e=>e.theme.colors.hero};
|
|
958
|
-
`,jc=({type:e,balance:n,account:o,onAccountBalanceClick:i,compareMode:r})=>{const l=o!=null&&n!=null&&i!=null&&!(n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent");return t.jsxs(yc,{children:[t.jsx(Wt,{isClickable:l,onClick:()=>{l===!0&&o!=null&&n!=null&&i?.(o,n,bt(o,n))},children:Z(n)}),Ve(e)?t.jsxs(t.Fragment,{children:[t.jsx(Wt,{isClickable:!1,children:Q(n)}),t.jsx(Wt,{isClickable:!1,children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function Sc({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,accountBalances:l,isCompareModeOn:c,isForecastModeOn:d,isScrolling:p,isLeaf:u,isLastNode:g,compareMode:h,account:x,onAccountBalanceClick:f}){const m=W(),{common:{strings:{empty:w}}}=N.getLocalizedStrings(),b=x?.accountDescription?x.accountDescription:w,k=x?.accountName?x.accountName:b,$=mo(),C=$.loggedInUserRole!=null&&!$o($.loggedInUserRole),v=C===!0&&x!=null&&c!==!0&&f!=null&&d!==!0,B=v?"pointer":"default";return t.jsxs(fc,{height:r,bgColor:n,windowSize:m,children:[t.jsxs(mc,{style:{cursor:B},isClickable:v,onClick:()=>{return x!=null?(A=i,M=x,void(v===!0&&l[l.length-1]!=null&&f?.(A,M,l[l.length-1],bt(M,l[l.length-1]??null)))):null;var A,M},children:[t.jsx(bc,{isSticky:o,windowSize:m,bgColor:n,children:t.jsx(kc,{title:k,children:k})}),t.jsx(wc,{children:l.map((A,M)=>t.jsx(jc,{type:e,balance:A,account:x,onAccountBalanceClick:C===!1||f==null?void 0:(V,D,K)=>{f(i,V,D,K)},compareMode:h},M))})]}),t.jsx(Cc,{isScrolling:p,isLeaf:u,isLastNode:g})]})}function Cc({isScrolling:e,isLeaf:n,isLastNode:o}){return n||!o?t.jsx(wn,{isScrolling:e,kind:"ac_group_row_separator"}):null}const $c=a.div`
|
|
959
|
-
display: flex;
|
|
960
|
-
flex: 1 1 auto;
|
|
961
|
-
width: fit-content;
|
|
962
|
-
min-width: 100%;
|
|
963
|
-
flex-direction: column;
|
|
964
|
-
height: ${e=>e.rootHeight-1}px;
|
|
965
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
966
|
-
`,vc=a.div`
|
|
967
|
-
user-select: none;
|
|
968
|
-
display: flex;
|
|
969
|
-
flex: 1 1 auto;
|
|
970
|
-
flex-flow: row;
|
|
971
|
-
justify-content: flex-start;
|
|
972
|
-
align-items: center;
|
|
973
|
-
`,_c=a.div`
|
|
974
|
-
display: flex;
|
|
975
|
-
flex: 1 0 auto;
|
|
976
|
-
flex-direction: row;
|
|
977
|
-
justify-content: flex-end;
|
|
978
|
-
`,Zn=a.div`
|
|
979
|
-
display: flex;
|
|
980
|
-
flex-direction: row;
|
|
981
|
-
justify-content: flex-start;
|
|
982
|
-
`,Ae=a(_)`
|
|
983
|
-
user-select: none;
|
|
984
|
-
max-width: ${E.balanceWidth};
|
|
985
|
-
min-width: ${E.balanceWidth};
|
|
986
|
-
text-align: right;
|
|
987
|
-
margin-left: ${E.balanceLeftMargin};
|
|
988
|
-
`,Jn=a(_)`
|
|
989
|
-
user-select: none;
|
|
990
|
-
max-width: ${E.balanceWidth};
|
|
991
|
-
min-width: ${E.balanceWidth};
|
|
992
|
-
text-align: right;
|
|
993
|
-
margin-left: ${E.balanceLeftMargin};
|
|
994
|
-
`,Lc=a.div`
|
|
995
|
-
display: flex;
|
|
996
|
-
flex-direction: column;
|
|
997
|
-
align-items: flex-end;
|
|
998
|
-
`,Ac=a.div`
|
|
999
|
-
display: flex;
|
|
1000
|
-
flex-direction: row;
|
|
1001
|
-
flex-shrink: 2;
|
|
1002
|
-
flex-grow: 1;
|
|
1003
|
-
align-items: center;
|
|
1004
|
-
height: ${s.sp7};
|
|
1005
|
-
width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
1006
|
-
max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
1007
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1008
|
-
${({isSticky:e})=>e?z`
|
|
1009
|
-
position: -webkit-sticky;
|
|
1010
|
-
position: sticky;
|
|
1011
|
-
top: ${s.sp0};
|
|
1012
|
-
left: ${s.sp0};
|
|
1013
|
-
`:null}
|
|
1014
|
-
`,Bc=a(_)`
|
|
1015
|
-
user-select: none;
|
|
1016
|
-
user-select: none;
|
|
1017
|
-
clear: both;
|
|
1018
|
-
display: inline-block;
|
|
1019
|
-
overflow: hidden;
|
|
1020
|
-
white-space: nowrap;
|
|
1021
|
-
text-overflow: ellipsis;
|
|
1022
|
-
text-align: left;
|
|
1023
|
-
margin-left: ${s.sp2};
|
|
1024
|
-
`,Oc=({type:e,balance:n,color:o,compareMode:i})=>{const r=n!=null&&n.type==="default_with_percent"&&n.percentValue!=null?n.percentValue:0,l=n!=null&&n.type==="default_with_percent"&&n.forecastPercentValue!=null?n.forecastPercentValue:0;return t.jsxs(Lc,{children:[t.jsxs(Zn,{children:[t.jsx(Ae,{style:{color:o.toString()},children:Z(n)}),Ve(e)?t.jsxs(t.Fragment,{children:[t.jsx(Ae,{style:{color:o.toString()},children:Q(n)}),t.jsx(Ae,{style:{color:o.toString()},children:i==="compare_mode_percent"?ce(n):se(n)})]}):null]}),t.jsxs(Zn,{children:[r!==0?t.jsx(Jn,{style:{color:o.toString()},children:ye("0,0%",r)}):null,Ve(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(Jn,{style:{color:o.toString()},children:ye("0,0%",l)}):t.jsx(Ae,{}),t.jsx(Ae,{})]}):null]})]})};function yn({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,sectionName:l,sectionBalances:c,sectionColor:d,isScrolling:p,isOpen:u,isLeaf:g,compareMode:h,onClick:x}){const f=W(),[m,w]=T.useState(!1),b=!g,k=b?"pointer":"default",$=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs($c,{"data-testid":y("section-row-root-container",i),rootHeight:r,bgColor:n,windowSize:f,children:[t.jsxs(vc,{"data-testid":y("section-row-container",i),style:{cursor:k},onClick:()=>x?.(i),onMouseOver:()=>w(!0),onMouseLeave:()=>w(!1),children:[t.jsxs(Ac,{"data-testid":y("section-row-name-container",i),isSticky:o,windowSize:f,bgColor:n,children:[t.jsx(Ce,{"data-testid":y("section-row-circle-with-letter",i),color:O(d),showCollapsedIcon:!u,showIcon:b&&m,firstLetter:$}),t.jsx(Bc,{"data-testid":y("section-row-name",i),style:{color:d.toString()},children:l})]}),t.jsx(_c,{"data-testid":y("section-row-balances-container",i),children:c.map((C,v)=>t.jsx(Oc,{"data-testid":y("section-row-balance-element",e),type:e,sectionName:l,balance:C,color:d,compareMode:h},v))})]}),t.jsx(Ic,{isScrolling:p,isLeaf:g,isOpen:u})]})}function Ic({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(wn,{isScrolling:e,kind:"section_row_separator"}):null}const Nc=a.div`
|
|
1025
|
-
display: flex;
|
|
1026
|
-
flex: 1 1 auto;
|
|
1027
|
-
width: fit-content;
|
|
1028
|
-
min-width: 100%;
|
|
1029
|
-
flex-direction: column;
|
|
1030
|
-
height: ${e=>e.height}px;
|
|
1031
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1032
|
-
`,Mc=a.div`
|
|
1033
|
-
user-select: none;
|
|
1034
|
-
display: flex;
|
|
1035
|
-
flex: 1 1 auto;
|
|
1036
|
-
flex-flow: row;
|
|
1037
|
-
justify-content: flex-start;
|
|
1038
|
-
align-items: center;
|
|
1039
|
-
`,Wc=a.div`
|
|
1040
|
-
display: flex;
|
|
1041
|
-
flex: 1 0 auto;
|
|
1042
|
-
flex-direction: row;
|
|
1043
|
-
justify-content: flex-end;
|
|
1044
|
-
`,Pc=a.div`
|
|
1045
|
-
display: flex;
|
|
1046
|
-
flex-direction: row;
|
|
1047
|
-
justify-content: flex-start;
|
|
1048
|
-
`,di=a(_)`
|
|
1049
|
-
user-select: none;
|
|
1050
|
-
min-width: ${E.balanceWidth};
|
|
1051
|
-
max-width: ${E.balanceWidth};
|
|
1052
|
-
text-align: right;
|
|
1053
|
-
margin-left: ${E.balanceLeftMargin};
|
|
1054
|
-
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1055
|
-
`,Fc=a(di)`
|
|
1056
|
-
color: ${e=>e.theme.colors.hero};
|
|
1057
|
-
&:hover {
|
|
1058
|
-
color: inherit;
|
|
1059
|
-
}
|
|
1060
|
-
`,zc=a.div`
|
|
1061
|
-
display: flex;
|
|
1062
|
-
flex-direction: row;
|
|
1063
|
-
flex-shrink: 2;
|
|
1064
|
-
flex-grow: 1;
|
|
1065
|
-
align-items: center;
|
|
1066
|
-
width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
1067
|
-
max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
|
|
1068
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1069
|
-
${({isSticky:e})=>e?z`
|
|
1070
|
-
position: -webkit-sticky;
|
|
1071
|
-
position: sticky;
|
|
1072
|
-
top: ${s.sp0};
|
|
1073
|
-
left: ${s.sp0};
|
|
1074
|
-
`:null}
|
|
1075
|
-
`,Tc=a(_)`
|
|
1076
|
-
user-select: none;
|
|
1077
|
-
clear: both;
|
|
1078
|
-
display: inline-block;
|
|
1079
|
-
overflow: hidden;
|
|
1080
|
-
white-space: nowrap;
|
|
1081
|
-
text-overflow: ellipsis;
|
|
1082
|
-
text-align: left;
|
|
1083
|
-
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1084
|
-
`,Pt=a(_)`
|
|
1085
|
-
user-select: none;
|
|
1086
|
-
min-width: ${E.balanceWidth};
|
|
1087
|
-
max-width: ${E.balanceWidth};
|
|
1088
|
-
text-align: right;
|
|
1089
|
-
margin-left: ${E.balanceLeftMargin};
|
|
1090
|
-
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
1091
|
-
`,Vc=({type:e,balance:n,collapsed:o,compareMode:i})=>{const r=o===!0?Fc:di;return t.jsxs(Pc,{children:[ie(e)===!0?t.jsx(r,{children:Z(n)}):null,Ve(e)?t.jsxs(t.Fragment,{children:[t.jsx(Pt,{children:Z(n)}),t.jsx(Pt,{children:Q(n)}),t.jsx(Pt,{children:i==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function Dc({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,title:l,totalBalances:c,isLeaf:d,compareMode:p,onClick:u}){const g=W(),h=!d,x=h?"pointer":"default";return t.jsx(Nc,{height:r,bgColor:n,windowSize:g,children:t.jsxs(Mc,{style:{cursor:x},isClickable:h,onClick:()=>u?.(i),children:[t.jsx(zc,{bgColor:n,isSticky:o,windowSize:g,children:t.jsx(Tc,{children:l})}),t.jsx(Wc,{children:c.map((f,m)=>t.jsx(Vc,{type:e,balance:f,collapsed:!1,compareMode:p},m))})]})})}const ve={net_burn_or_income:{income:{color:new O(I.graphColor04),hoverColor:new O(I.graphColor04Dark)},cogs:{color:new O(I.graphColor10),hoverColor:new O(I.graphColor10Dark)},expenses:{color:new O(I.graphColor32),hoverColor:new O(I.graphColor32Dark)},"Gross Burn":{color:new O(X.neutralGrey2Dark),hoverColor:new O(X.neutralGrey2Dark)},"Net Burn":{color:new O(I.graphColor13),hoverColor:new O(I.graphColor13Dark)},"Net Income":{color:new O(I.graphColor13),hoverColor:new O(I.graphColor13Dark)}},revenue:{income:{color:new O(I.graphColor28),hoverColor:new O(I.graphColor28Dark)},cogs:{color:new O(I.graphColor17),hoverColor:new O(I.graphColor17Dark)},"Gross Margin":{color:new O(I.graphColor10),hoverColor:new O(I.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new O(I.graphColor33),hoverColor:new O(I.graphColor33Dark)},cash_out:{color:new O(I.graphColor02),hoverColor:new O(I.graphColor02Dark)},"Net Cash Flow":{color:new O(I.graphColor35),hoverColor:new O(I.graphColor35Dark)}},default:{color:new O(X.neutralGrey2Dark),hoverColor:new O(X.neutralGrey2Dark)}},bn=(e,n)=>e.startsWith("net_burn_or_income")===!0?n!=null?ve.net_burn_or_income[n]:ve.default:e.startsWith("revenue")===!0?n!=null?ve.revenue[n]:ve.default:e.startsWith("cash_in_cash_out")===!0&&n!=null?ve.cash_in_cash_out[n]:ve.default,hi=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="section"||o.element.data==null)return null;const x=bn(o.config.reportId,o.element.sectionType),f=ee(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(yn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionColor:x.color,sectionName:o.element.title,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,compareMode:g,onClick:m=>{h?.(m)}})},ui=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="calculated_section"||o.element.data==null)return null;const x=bn(o.config.reportId,o.element.title),f=ee(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(yn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:x.color,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,compareMode:g,onClick:m=>{h?.(m)}})},pi=(e,n,o,i,r,l,c,d)=>{if((o.config.isZeniCOAInUse==null||o.config.isZeniCOAInUse===!0)&&o.config.mode!=="this_period_vs_period_before")return null;const p=ee(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Dc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,title:o.element.title,height:i,isLeaf:d,compareMode:c,totalBalances:p.balances})},dg=20,Gc=e=>{const n=[];return e&&Object.values(e).forEach(o=>{n.push(o)}),n.reverse()},Ec=a.div`
|
|
1092
|
-
display: flex;
|
|
1093
|
-
flex: 1 1 auto;
|
|
1094
|
-
height: 1px;
|
|
1095
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
1096
|
-
`,Rc=a.div`
|
|
1097
|
-
display: flex;
|
|
1098
|
-
height: 1px;
|
|
1099
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
1100
|
-
`;function Gt({kind:e,isScrolling:n}){switch(e){case"account_class_row_separator":return t.jsx(Ec,{isScrolling:n});case"section_row_separator":case"vendor_separator":return t.jsx(Rc,{isScrolling:n});case"heading_row_separator":return null}}const Hc=a.div`
|
|
1101
|
-
position: relative;
|
|
1102
|
-
`,Kc=a.div`
|
|
1103
|
-
height: ${e=>e.height}px;
|
|
1104
|
-
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1105
|
-
width: 1px;
|
|
1106
|
-
`;a.div`
|
|
1107
|
-
height: 39px;
|
|
1108
|
-
width: 2px;
|
|
1109
|
-
`;const Yc=a.div`
|
|
1110
|
-
position: relative;
|
|
1111
|
-
margin-right: ${s.sp3};
|
|
1112
|
-
&::after {
|
|
1113
|
-
content: "";
|
|
1114
|
-
position: absolute;
|
|
1115
|
-
top: 20px;
|
|
1116
|
-
border-top: 1px solid ${e=>e.theme.colors.grey1};
|
|
1117
|
-
width: 18px;
|
|
1118
|
-
}
|
|
1119
|
-
`,Uc=a.div`
|
|
1120
|
-
height: ${s.sp6};
|
|
1121
|
-
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1122
|
-
width: 1px;
|
|
1123
|
-
`,qc=a.div`
|
|
1124
|
-
position: relative;
|
|
1125
|
-
margin-right: ${s.sp3};
|
|
1126
|
-
&::after {
|
|
1127
|
-
content: "";
|
|
1128
|
-
position: absolute;
|
|
1129
|
-
top: ${e=>e.height}px;
|
|
1130
|
-
border-top: 1px solid ${e=>e.theme.colors.grey1};
|
|
1131
|
-
width: 18px;
|
|
1132
|
-
}
|
|
1133
|
-
`,Zc=a.div`
|
|
1134
|
-
height: ${e=>e.height}px;
|
|
1135
|
-
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
1136
|
-
margin-bottom: ${e=>e.height}px;
|
|
1137
|
-
width: 1px;
|
|
1138
|
-
`,gi=({height:e})=>t.jsx(Hc,{children:t.jsx(Kc,{height:e})}),Jc=({height:e})=>t.jsx(qc,{height:e,children:t.jsx(Zc,{height:e})}),Qc=()=>t.jsx(Yc,{children:t.jsx(Uc,{})}),Xc=s.sp4,xi="126px",fe="128px",kt="12px",jt="12px",pt="685px",kn="628px",Qn="685px",es="182px",gt="184px",je="144px",xt="12px",Xn="685px",fi="250px",ft="250px",ts=39,ns=19.5,os=16,We=128,eo=168,Pe="180px",to="300px",mi="210px",is="128px";function wi(e,n=!1){switch(e){case"section":case"flux_vendor_row":case"timeframe_headers":case"total":case"loading_in_progress":case"headers_loading_in_progress":return S[8];case"flux_vendor_account_class_row":return n?S[9]:S[6];default:return 0}}const no=N.getLocalizedStrings(),rs=a.div`
|
|
1139
|
-
display: flex;
|
|
1140
|
-
flex-shrink: 0;
|
|
1141
|
-
width: ${gt};
|
|
1142
|
-
min-width: ${gt};
|
|
1143
|
-
margin-left: 12px;
|
|
1144
|
-
gap: ${s.sp1};
|
|
1145
|
-
flex-direction: row;
|
|
1146
|
-
justify-content: flex-end;
|
|
1147
|
-
text-align: center;
|
|
1148
|
-
`,as=a.div`
|
|
1149
|
-
height: ${s.sp4};
|
|
1150
|
-
border-radius: ${s.sp1};
|
|
1151
|
-
padding: 2px ${s.sp1};
|
|
1152
|
-
color: ${e=>e.textColor.hex()};
|
|
1153
|
-
`,ls=a.div`
|
|
1154
|
-
border-radius: ${s.sp1};
|
|
1155
|
-
padding: 2px ${s.sp1};
|
|
1156
|
-
height: ${s.sp4};
|
|
1157
|
-
justify-content: center;
|
|
1158
|
-
text-align: center;
|
|
1159
|
-
color: ${e=>e.textColor.hex()};
|
|
1160
|
-
background-color: ${e=>e.bgColor.hex()};
|
|
1161
|
-
`,St=({amount:e,percentage:n,currency:o})=>{const i=le();return t.jsxs(rs,{children:[t.jsx(as,{textColor:new O(e>0?i.colors.brandColorGoldDark:i.colors.success),children:q("0,0",xr(Math.abs(e),o.currencyCode,o.currencySymbol))}),t.jsx(ls,{textColor:new O(e>0?i.colors.brandColorGoldDark:i.colors.success),bgColor:new O(e>0?X.brandColorGoldLight:X.successLight),children:`${or(Math.abs(n)).format(no.common.numberFormat.roundedOff)}${no.common.strings.percentage}`})]})},oo=N.getLocalizedStrings(),cs=a.div`
|
|
1162
|
-
display: flex;
|
|
1163
|
-
flex: 1 1 auto;
|
|
1164
|
-
width: fit-content;
|
|
1165
|
-
min-width: 100%;
|
|
1166
|
-
flex-direction: column;
|
|
1167
|
-
`,ss=a.div`
|
|
1168
|
-
display: flex;
|
|
1169
|
-
flex: 1 1 auto;
|
|
1170
|
-
flex-flow: row;
|
|
1171
|
-
justify-content: flex-start;
|
|
1172
|
-
align-items: center;
|
|
1173
|
-
width: 100%;
|
|
1174
|
-
color: ${e=>e.isHoveredByParent?e.theme.colors.primary:e.theme.colors.hero};
|
|
1175
|
-
&:hover {
|
|
1176
|
-
color: ${e=>e.theme.colors.primary};
|
|
1177
|
-
}
|
|
1178
|
-
`,yi=a.div`
|
|
1179
|
-
display: flex;
|
|
1180
|
-
flex-direction: column;
|
|
1181
|
-
`,bi=a.div`
|
|
1182
|
-
display: flex;
|
|
1183
|
-
height: ${s.sp4};
|
|
1184
|
-
`,ds=a.div`
|
|
1185
|
-
display: flex;
|
|
1186
|
-
flex-direction: row;
|
|
1187
|
-
justify-content: flex-start;
|
|
1188
|
-
`,hs=a(_)`
|
|
1189
|
-
min-width: ${fe};
|
|
1190
|
-
max-width: ${fe};
|
|
1191
|
-
text-align: right;
|
|
1192
|
-
margin-left: 12px;
|
|
1193
|
-
`,us=a.div`
|
|
1194
|
-
display: flex;
|
|
1195
|
-
flex-direction: column;
|
|
1196
|
-
flex-shrink: 2;
|
|
1197
|
-
flex-grow: 1;
|
|
1198
|
-
align-items: center;
|
|
1199
|
-
width: ${Xn};
|
|
1200
|
-
max-width: ${Xn};
|
|
1201
|
-
padding-left: 67.5px;
|
|
1202
|
-
${({isSticky:e})=>e?z`
|
|
1203
|
-
position: sticky;
|
|
1204
|
-
top: ${s.sp0};
|
|
1205
|
-
left: ${s.sp0};
|
|
1206
|
-
display: flex;
|
|
1207
|
-
`:null}
|
|
1208
|
-
`,ps=a.div`
|
|
1209
|
-
display: flex;
|
|
1210
|
-
height: ${s.sp4};
|
|
1211
|
-
width: 100%;
|
|
1212
|
-
`,gs=a.div`
|
|
1213
|
-
display: flex;
|
|
1214
|
-
flex-direction: row;
|
|
1215
|
-
flex-shrink: 2;
|
|
1216
|
-
flex-grow: 1;
|
|
1217
|
-
align-items: center;
|
|
1218
|
-
width: 100%;
|
|
1219
|
-
`,xs=a(Se)`
|
|
1220
|
-
display: flex;
|
|
1221
|
-
width: ${fi};
|
|
1222
|
-
margin-left: ${s.sp3};
|
|
1223
|
-
color: ${e=>e.theme.colors.hero};
|
|
1224
|
-
`,fs=a(Se)`
|
|
1225
|
-
display: flex;
|
|
1226
|
-
width: ${fi};
|
|
1227
|
-
margin-left: ${s.sp4};
|
|
1228
|
-
color: ${e=>e.theme.colors.hero};
|
|
1229
|
-
`,ms=a(_)`
|
|
1230
|
-
clear: both;
|
|
1231
|
-
display: flex;
|
|
1232
|
-
overflow: hidden;
|
|
1233
|
-
white-space: nowrap;
|
|
1234
|
-
text-overflow: ellipsis;
|
|
1235
|
-
text-align: left;
|
|
1236
|
-
margin-left: 2px;
|
|
1237
|
-
width: ${ft};
|
|
1238
|
-
max-width: ${ft};
|
|
1239
|
-
`,ws=a(_)`
|
|
1240
|
-
display: flex;
|
|
1241
|
-
align-items: center;
|
|
1242
|
-
overflow: hidden;
|
|
1243
|
-
white-space: nowrap;
|
|
1244
|
-
text-overflow: ellipsis;
|
|
1245
|
-
text-align: left;
|
|
1246
|
-
margin-left: ${s.sp4};
|
|
1247
|
-
margin-right: ${s.sp3};
|
|
1248
|
-
width: ${ft};
|
|
1249
|
-
max-width: ${ft};
|
|
1250
|
-
`,ys=a.div`
|
|
1251
|
-
display: flex;
|
|
1252
|
-
margin-left: ${s.sp7};
|
|
1253
|
-
margin-right: calc(
|
|
1254
|
-
${je} +
|
|
1255
|
-
${jt}
|
|
1256
|
-
);
|
|
1257
|
-
`,bs=a.div`
|
|
1258
|
-
position: sticky;
|
|
1259
|
-
left: 0;
|
|
1260
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1261
|
-
display: flex;
|
|
1262
|
-
`,ks=a.div`
|
|
1263
|
-
overflow-x: auto;
|
|
1264
|
-
display: flex;
|
|
1265
|
-
flex: 1;
|
|
1266
|
-
justify-content: flex-end;
|
|
1267
|
-
`,js=({isBalanceRowFirstNode:e=!1,balance:n})=>{const o=n!=null;return t.jsxs(yi,{children:[e?t.jsx(bi,{}):null,t.jsx(ds,{children:t.jsx(hs,{isClickable:o,children:Z(n)})})]})};function Ss({varianceAmount:e,variancePercentage:n,currency:o,isSticky:i,balances:r,isScrolling:l,nodeMetadata:c,isLeaf:d,isLastNode:p,accountAndClass:u,isHoveredByParent:g}){const{common:{strings:{hyphen:h}}}=N.getLocalizedStrings(),x=u.accountBase?.accountDescription?u.accountBase?.accountDescription:h,f=u.accountBase?.accountName?u.accountBase?.accountName:x,m=u.classBase?.className?u.classBase?.className:h,w=c?.accountAndClassRowMetadata.isLastNode;return t.jsxs(cs,{children:[t.jsxs(ss,{style:{cursor:"default"},isHoveredByParent:g,children:[t.jsx(bs,{children:t.jsxs(us,{className:"flux-class-and-account-value-container",isSticky:i,children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(ps,{children:[t.jsx(gi,{height:ts}),t.jsx(xs,{children:oo.common.texts.category}),t.jsx(fs,{children:oo.common.texts.class})]}),t.jsxs(gs,{children:[w===!0?t.jsx(Jc,{height:ns}):t.jsx(Qc,{}),t.jsx(ms,{title:f,children:f}),t.jsx(ws,{title:m,children:m})]})]})}),t.jsx(ks,{children:t.jsxs(ys,{children:[r.map((b,k)=>t.jsx(js,{balance:b,isBalanceRowFirstNode:c?.accountAndClassRowMetadata.isFirstNode},k)),t.jsxs(yi,{children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsx(bi,{}),t.jsx(St,{amount:e,percentage:n,currency:o})]})]})})]}),t.jsx(Cs,{isScrolling:l,isLeaf:d,isLastNode:p,isParentLastChild:c?.isVendorLastChild??!0})]})}function Cs({isScrolling:e,isLastNode:n,isParentLastChild:o}){return n&&o?t.jsx(Gt,{isScrolling:e,kind:"vendor_separator"}):n?t.jsx(Gt,{isScrolling:e,kind:"account_class_row_separator"}):null}function $s(){return t.jsxs(vs,{children:[t.jsxs(Ls,{children:[t.jsxs(_e,{width:to,className:"vendor-title",children:[t.jsx(Ee,{width:S[4],height:S[4]}),t.jsx(Y,{width:eo,height:S[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})]}),t.jsx(_e,{width:to,children:t.jsx(Y,{width:eo,height:S[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})})]}),t.jsxs(_s,{children:[t.jsx(_e,{width:Pe,children:t.jsx(Y,{width:We,height:S[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(_e,{width:Pe,children:t.jsx(Y,{width:We,height:S[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(_e,{width:mi,children:[t.jsx(Y,{width:We,height:S[4],style:{display:"flex",alignItems:"center"}}),t.jsx(Y,{width:S[7],height:S[4],style:{display:"flex",alignItems:"flex-start",marginLeft:s.sp1}})]}),t.jsx(_e,{width:Pe,children:t.jsx(Y,{width:70,height:S[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const vs=a.div`
|
|
1268
|
-
display: flex;
|
|
1269
|
-
flex-direction: row;
|
|
1270
|
-
width: 100%;
|
|
1271
|
-
margin-left: ${s.sp8};
|
|
1272
|
-
.vendor-title {
|
|
1273
|
-
justify-content: flex-start;
|
|
1274
|
-
}
|
|
1275
|
-
`,_e=a.div`
|
|
1276
|
-
display: flex;
|
|
1277
|
-
flex-direction: row;
|
|
1278
|
-
align-items: center;
|
|
1279
|
-
min-width: ${e=>e.width};
|
|
1280
|
-
color: ${e=>e.theme.colors.primary};
|
|
1281
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1282
|
-
justify-content: flex-end;
|
|
1283
|
-
|
|
1284
|
-
:last-of-type {
|
|
1285
|
-
justify-content: center;
|
|
1286
|
-
}
|
|
1287
|
-
`,_s=a.div`
|
|
1288
|
-
display: flex;
|
|
1289
|
-
`,Ls=a.div`
|
|
1290
|
-
display: flex;
|
|
1291
|
-
width: ${kn};
|
|
1292
|
-
position: sticky;
|
|
1293
|
-
left: ${s.sp8};
|
|
1294
|
-
top: 0;
|
|
1295
|
-
z-index: 10;
|
|
1296
|
-
`,As=a.div`
|
|
1297
|
-
display: flex;
|
|
1298
|
-
flex: 1 1 auto;
|
|
1299
|
-
width: fit-content;
|
|
1300
|
-
min-width: 100%;
|
|
1301
|
-
flex-direction: column;
|
|
1302
|
-
height: ${e=>e.heightValue}px;
|
|
1303
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1304
|
-
`,Bs=a.div`
|
|
1305
|
-
display: flex;
|
|
1306
|
-
flex: 1 1 auto;
|
|
1307
|
-
flex-flow: row;
|
|
1308
|
-
justify-content: flex-start;
|
|
1309
|
-
align-items: center;
|
|
1310
|
-
`,Os=a.div`
|
|
1311
|
-
display: flex;
|
|
1312
|
-
flex-direction: row;
|
|
1313
|
-
justify-content: flex-start;
|
|
1314
|
-
`,Is=a(_)`
|
|
1315
|
-
max-width: ${fe};
|
|
1316
|
-
min-width: ${fe};
|
|
1317
|
-
text-align: right;
|
|
1318
|
-
margin-left: ${kt};
|
|
1319
|
-
color: ${({color:e})=>e};
|
|
1320
|
-
`,Ns=a.div`
|
|
1321
|
-
display: flex;
|
|
1322
|
-
flex-direction: row;
|
|
1323
|
-
flex-shrink: 2;
|
|
1324
|
-
align-items: center;
|
|
1325
|
-
height: 100%;
|
|
1326
|
-
width: ${Qn};
|
|
1327
|
-
min-width: ${Qn};
|
|
1328
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1329
|
-
${({isSticky:e})=>e&&z`
|
|
1330
|
-
position: sticky;
|
|
1331
|
-
top: ${s.sp0};
|
|
1332
|
-
left: ${s.sp0};
|
|
1333
|
-
`}
|
|
1334
|
-
`,Ms=a(_)`
|
|
1335
|
-
clear: both;
|
|
1336
|
-
display: inline-block;
|
|
1337
|
-
overflow: hidden;
|
|
1338
|
-
white-space: nowrap;
|
|
1339
|
-
text-overflow: ellipsis;
|
|
1340
|
-
text-align: left;
|
|
1341
|
-
margin-left: ${s.sp2};
|
|
1342
|
-
color: ${({color:e})=>e};
|
|
1343
|
-
`,Ws=a(en)`
|
|
1344
|
-
color: ${e=>e.theme.colors.primary};
|
|
1345
|
-
width: ${s.sp3};
|
|
1346
|
-
height: ${s.sp3};
|
|
1347
|
-
`,Ps=a.div`
|
|
1348
|
-
display: flex;
|
|
1349
|
-
&:hover {
|
|
1350
|
-
.flux-section-checkbox {
|
|
1351
|
-
background-color: transparent;
|
|
1352
|
-
}
|
|
1353
|
-
}
|
|
1354
|
-
`,Fs=a.div`
|
|
1355
|
-
display: flex;
|
|
1356
|
-
width: ${s.sp8};
|
|
1357
|
-
`,zs=a.div`
|
|
1358
|
-
display: flex;
|
|
1359
|
-
margin-left: ${s.sp7};
|
|
1360
|
-
flex: 1 1 auto;
|
|
1361
|
-
justify-content: flex-end;
|
|
1362
|
-
margin-right: calc(
|
|
1363
|
-
${je} +
|
|
1364
|
-
${jt}
|
|
1365
|
-
);
|
|
1366
|
-
`,Ts=({balance:e,color:n})=>t.jsx(Os,{children:t.jsx(Is,{color:n,children:Z(e)})}),Vs=ur.memo(function({currency:e,sectionId:n,selectedSectionsIds:o,backgroundColor:i,isSticky:r,treeNodeId:l,height:c,sectionName:d,hasVendors:p,sectionBalances:u,varianceAmount:g,variancePercentage:h,sectionColor:x,isScrolling:f,isOpen:m,isLeaf:w,idsForReview:b,sectionToggled:k,onSectionCheckboxClick:$}){const C=W(),[v,B]=T.useState(b.length>0),[A,M]=T.useState(!1),V=o.includes(n),D=!w,K=b.length===20&&!V,te=d?.[0]?.toUpperCase()??"",J=T.useCallback(pe=>{$?.(n,pe.target.checked)},[n,$]),re=y("flux-analysis-section-expand-collapse",n),he=y("flux-analysis-section-row",n),ue=y("flux-analysis-section-checkbox",n);return t.jsxs(As,{heightValue:c,bgColor:i,"data-testid":he,children:[t.jsxs(Bs,{style:{cursor:D?"pointer":"default"},onClick:()=>k?.(l),onMouseOver:()=>{M(!0),B(!0)},onMouseLeave:()=>{M(!1),b.length===0&&B(!1)},children:[t.jsxs(Ns,{className:"flux-section-name-container",isSticky:r,windowSize:C,bgColor:i,children:[p&&v&&m?t.jsx(Ps,{children:t.jsx(Zt,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox","data-testid":ue,icon:t.jsx(Jt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Ws,{}),checked:V,id:l,disabled:K,onChange:J,onClick:pe=>pe.stopPropagation(),style:{padding:"20px",pointerEvents:K?"none":"auto"}})}):t.jsx(Fs,{}),t.jsx(Ce,{color:O(x),dataTestId:re,firstLetter:te,showCollapsedIcon:!m,showIcon:A&&D}),t.jsx(Ms,{color:x.toString(),children:d})]}),t.jsxs(zs,{children:[u.map((pe,$e)=>t.jsx(Ts,{sectionName:d,balance:pe,color:x.toString()},$e)),t.jsx(St,{amount:g,percentage:h,currency:e})]})]}),t.jsx(Ds,{isScrolling:f,isLeaf:w,isOpen:m})]})});function Ds({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(Gt,{isScrolling:e,kind:"section_row_separator"}):null}function Gs(){const e=W();return t.jsxs(Es,{windowSize:e,children:[t.jsx(Be,{windowSize:e,width:kn,marginRight:0,children:t.jsx(Y,{width:S[9],height:S[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(Be,{windowSize:e,width:Pe,marginRight:0,children:t.jsx(Y,{width:128,height:S[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Be,{windowSize:e,width:Pe,marginRight:0,children:t.jsx(Y,{width:We,height:S[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Be,{windowSize:e,width:mi,children:t.jsx(Y,{width:184,height:S[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Be,{windowSize:e,width:is,children:t.jsx(Y,{width:We,height:S[6],style:{display:"flex",alignItems:"center"}})})]})}const Es=a.div`
|
|
1367
|
-
display: flex;
|
|
1368
|
-
flex-direction: row;
|
|
1369
|
-
width: 100%;
|
|
1370
|
-
margin-left: ${s.sp8};
|
|
1371
|
-
`,Be=a.div`
|
|
1372
|
-
display: flex;
|
|
1373
|
-
flex-direction: row;
|
|
1374
|
-
align-items: center;
|
|
1375
|
-
margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:s.sp4};
|
|
1376
|
-
min-width: ${e=>e.width};
|
|
1377
|
-
color: ${e=>e.theme.colors.primary};
|
|
1378
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1379
|
-
justify-content: flex-end;
|
|
1380
|
-
:first-of-type {
|
|
1381
|
-
justify-content: flex-start;
|
|
1382
|
-
}
|
|
1383
|
-
`,{common:Rs,expenseAutomation:{fluxAnalysis:Hs},vendors:{opExByVendor:Ks}}=N.getLocalizedStrings(),Ys=a.div`
|
|
1384
|
-
display: flex;
|
|
1385
|
-
flex: 1 1 auto;
|
|
1386
|
-
width: fit-content;
|
|
1387
|
-
min-width: 100%;
|
|
1388
|
-
height: ${e=>`${e.heightValue}px`};
|
|
1389
|
-
flex-flow: row;
|
|
1390
|
-
justify-content: flex-start;
|
|
1391
|
-
align-items: center;
|
|
1392
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1393
|
-
`,Et=a.div`
|
|
1394
|
-
display: flex;
|
|
1395
|
-
max-height: ${s.sp8};
|
|
1396
|
-
min-height: ${s.sp8};
|
|
1397
|
-
min-width: ${e=>e.width!=null?e.width:xi};
|
|
1398
|
-
justify-content: center;
|
|
1399
|
-
align-items: center;
|
|
1400
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1401
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1402
|
-
border-radius: ${s.sp2};
|
|
1403
|
-
margin-left: ${kt};
|
|
1404
|
-
color: ${e=>e.theme.colors.primary};
|
|
1405
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
1406
|
-
`,Us=a(_)`
|
|
1407
|
-
display: flex;
|
|
1408
|
-
flex-direction: row;
|
|
1409
|
-
justify-content: center;
|
|
1410
|
-
align-items: center;
|
|
1411
|
-
height: ${Xc};
|
|
1412
|
-
max-width: ${xi};
|
|
1413
|
-
width: 138px;
|
|
1414
|
-
text-align: center;
|
|
1415
|
-
`,qs=a.div`
|
|
1416
|
-
display: flex;
|
|
1417
|
-
cursor: pointer;
|
|
1418
|
-
`,Zs=a.div`
|
|
1419
|
-
display: flex;
|
|
1420
|
-
cursor: pointer;
|
|
1421
|
-
justify-content: center;
|
|
1422
|
-
align-items: center;
|
|
1423
|
-
color: ${e=>e.theme.colors.primary};
|
|
1424
|
-
`,Js=a.div`
|
|
1425
|
-
display: flex;
|
|
1426
|
-
flex-direction: row;
|
|
1427
|
-
z-index: 1;
|
|
1428
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1429
|
-
padding-left: ${s.sp8};
|
|
1430
|
-
${({isSticky:e})=>e?z`
|
|
1431
|
-
top: ${s.sp0};
|
|
1432
|
-
left: ${s.sp0};
|
|
1433
|
-
display: flex;
|
|
1434
|
-
position: sticky;
|
|
1435
|
-
`:null};
|
|
1436
|
-
`,Qs=a.div`
|
|
1437
|
-
height: ${s.sp8};
|
|
1438
|
-
display: flex;
|
|
1439
|
-
flex-direction: row;
|
|
1440
|
-
align-items: center;
|
|
1441
|
-
min-width: ${kn};
|
|
1442
|
-
color: ${e=>e.theme.colors.primary};
|
|
1443
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1444
|
-
`,Xs=a(_)`
|
|
1445
|
-
display: flex;
|
|
1446
|
-
gap: 6px;
|
|
1447
|
-
align-items: baseline;
|
|
1448
|
-
color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
|
|
1449
|
-
`,Rt=a.div`
|
|
1450
|
-
display: flex;
|
|
1451
|
-
cursor: pointer;
|
|
1452
|
-
`,Ht=a.div`
|
|
1453
|
-
color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
|
|
1454
|
-
`,Kt=a(nn)`
|
|
1455
|
-
width: ${xt};
|
|
1456
|
-
height: ${xt};
|
|
1457
|
-
margin-left: ${s.sp2};
|
|
1458
|
-
margin-top: ${s.sp1};
|
|
1459
|
-
`,Yt=a(on)`
|
|
1460
|
-
width: ${xt};
|
|
1461
|
-
height: ${xt};
|
|
1462
|
-
margin-left: ${s.sp2};
|
|
1463
|
-
margin-top: ${s.sp1};
|
|
1464
|
-
`,ed=a.div`
|
|
1465
|
-
display: flex;
|
|
1466
|
-
margin-left: ${s.sp7};
|
|
1467
|
-
flex: 1 1 auto;
|
|
1468
|
-
justify-content: flex-end;
|
|
1469
|
-
`,td=({firstMonthOfFY:e,timeframeTick:n,timeframe:o})=>t.jsx(Et,{isClickable:!1,children:t.jsx(Us,{children:He(e,n,o)})}),nd=({firstMonthOfFY:e,timeframeTick:n,timeframe:o})=>t.jsx(td,{firstMonthOfFY:e,timeframeTick:n,timeframe:o}),od=({sortKey:e="vendor",sortOrder:n="ascending",isBulkSelected:o,onSortOrderChanged:i})=>{const r=e==="vendor"?n:"ascending";return t.jsx(Xs,{isBulkSelected:o,isSortedByKey:e==="vendor",children:t.jsxs(Rt,{onClick:()=>{i(n==="ascending"?"descending":"ascending","vendor")},"data-testid":y("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Ks.vendor,t.jsx(Ht,{isBulkSelected:o,isSortedByKey:e==="vendor",children:r==="ascending"?t.jsx(Kt,{}):t.jsx(Yt,{})})]})})};function id({backgroundColor:e,height:n,isBulkSelected:o,sortKey:i="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:c,timeframeTicks:d,onSortOrderChanged:p}){const u=W();return t.jsxs(Ys,{heightValue:n,bgColor:e,children:[t.jsx(Js,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(Qs,{windowSize:u,children:t.jsx(od,{sortKey:i,sortOrder:r,isBulkSelected:o,onSortOrderChanged:(g,h)=>{p?.(g,h)}})})}),t.jsxs(ed,{children:[d.map((g,h)=>t.jsx(nd,{firstMonthOfFY:l,timeframeTick:g,timeframe:c},h)),t.jsx(Et,{isClickable:!1,width:es,children:t.jsxs(Rt,{onClick:()=>p?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":y("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(qs,{children:Hs.variance}),t.jsx(Ht,{isBulkSelected:o,isSortedByKey:i==="variance",children:(i==="variance"?r:"ascending")==="ascending"?t.jsx(Kt,{}):t.jsx(Yt,{})})]})}),t.jsx(Et,{isClickable:!1,width:je,children:t.jsxs(Rt,{onClick:()=>{p?.(r==="ascending"?"descending":"ascending","status")},"data-testid":y("flux-analysis-report-timeframe-row-status"),children:[t.jsx(Zs,{children:Rs.texts.reviewStatus}),t.jsx(Ht,{isBulkSelected:o,isSortedByKey:i==="status",children:(i==="status"?r:"ascending")==="ascending"?t.jsx(Kt,{}):t.jsx(Yt,{})})]})})]})]})}const rd=a.div`
|
|
1470
|
-
display: flex;
|
|
1471
|
-
flex: 1 1 auto;
|
|
1472
|
-
width: fit-content;
|
|
1473
|
-
min-width: 100%;
|
|
1474
|
-
|
|
1475
|
-
flex-direction: column;
|
|
1476
|
-
height: ${e=>`${e.heightValue}px`};
|
|
1477
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1478
|
-
`,ad=a.div`
|
|
1479
|
-
cursor: default;
|
|
1480
|
-
user-select: none;
|
|
1481
|
-
display: flex;
|
|
1482
|
-
flex: 1 1 auto;
|
|
1483
|
-
flex-flow: row;
|
|
1484
|
-
justify-content: flex-start;
|
|
1485
|
-
align-items: center;
|
|
1486
|
-
`,ld=a.div`
|
|
1487
|
-
display: flex;
|
|
1488
|
-
flex-direction: row;
|
|
1489
|
-
`,cd=a.div`
|
|
1490
|
-
display: flex;
|
|
1491
|
-
flex-direction: row;
|
|
1492
|
-
justify-content: flex-start;
|
|
1493
|
-
align-items: center;
|
|
1494
|
-
margin-left: ${kt};
|
|
1495
|
-
`,sd=a(ne)`
|
|
1496
|
-
user-select: none;
|
|
1497
|
-
min-width: ${fe};
|
|
1498
|
-
max-width: ${fe};
|
|
1499
|
-
text-align: right;
|
|
1500
|
-
color: ${e=>e.theme.colors.hero};
|
|
1501
|
-
border: 1px solid transparent;
|
|
1502
|
-
`,dd=a.div`
|
|
1503
|
-
display: flex;
|
|
1504
|
-
flex-direction: row;
|
|
1505
|
-
align-items: center;
|
|
1506
|
-
flex-shrink: 2;
|
|
1507
|
-
flex-grow: 1;
|
|
1508
|
-
width: ${pt};
|
|
1509
|
-
max-width: ${pt};
|
|
1510
|
-
height: 100%;
|
|
1511
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1512
|
-
position: sticky;
|
|
1513
|
-
left: ${s.sp8};
|
|
1514
|
-
top: 0;
|
|
1515
|
-
z-index: 10;
|
|
1516
|
-
`,hd=a(ne)`
|
|
1517
|
-
user-select: none;
|
|
1518
|
-
clear: both;
|
|
1519
|
-
display: inline-block;
|
|
1520
|
-
overflow: hidden;
|
|
1521
|
-
white-space: nowrap;
|
|
1522
|
-
text-overflow: ellipsis;
|
|
1523
|
-
text-align: left;
|
|
1524
|
-
color: ${e=>e.theme.colors.primary};
|
|
1525
|
-
`,ud=a.div`
|
|
1526
|
-
display: flex;
|
|
1527
|
-
width: ${je};
|
|
1528
|
-
min-width: ${je};
|
|
1529
|
-
justify-content: center;
|
|
1530
|
-
flex-direction: row;
|
|
1531
|
-
margin-left: ${jt};
|
|
1532
|
-
`,pd=a.div`
|
|
1533
|
-
display: flex;
|
|
1534
|
-
margin-left: ${s.sp7};
|
|
1535
|
-
flex: 1 1 auto;
|
|
1536
|
-
justify-content: flex-end;
|
|
1537
|
-
`,gd=({balance:e})=>t.jsx(cd,{children:t.jsx(sd,{children:q("0,0",e?.balance)})});function xd({type:e,height:n,title:o,totalBalances:i,varianceAmount:r,variancePercentage:l,currency:c,backgroundColor:d}){return t.jsx(rd,{"data-testid":y("total-row-root-container"),heightValue:n,bgColor:d,children:t.jsxs(ad,{"data-testid":y("total-row-container"),children:[t.jsx(dd,{className:"flux-total-row",children:t.jsx(hd,{children:o})}),t.jsxs(pd,{children:[t.jsx(ld,{children:ie(e)&&i.map((p,u)=>t.jsx(gd,{balance:p},u))}),t.jsx(St,{amount:r,percentage:l,currency:c}),t.jsx(ud,{})]})]})})}const fd=a.div`
|
|
1538
|
-
display: flex;
|
|
1539
|
-
flex: 1 1 auto;
|
|
1540
|
-
width: fit-content;
|
|
1541
|
-
min-width: 100%;
|
|
1542
|
-
flex-direction: column;
|
|
1543
|
-
height: ${e=>`${e.heightValue}px`};
|
|
1544
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1545
|
-
`,md=a.div`
|
|
1546
|
-
user-select: none;
|
|
1547
|
-
display: flex;
|
|
1548
|
-
flex: 1 1 auto;
|
|
1549
|
-
flex-flow: row;
|
|
1550
|
-
justify-content: flex-start;
|
|
1551
|
-
align-items: center;
|
|
1552
|
-
cursor: pointer;
|
|
1553
|
-
color: ${e=>e.isRowExpanded?e.theme.colors.primary:e.theme.colors.hero};
|
|
1554
|
-
&:hover {
|
|
1555
|
-
color: ${e=>e.theme.colors.primary};
|
|
1556
|
-
.flux-vendor-chevron-icon,
|
|
1557
|
-
.flux-vendor-collapsable-chevron-icon,
|
|
1558
|
-
.flux-vendor-children-count {
|
|
1559
|
-
border: 1px solid ${e=>e.theme.colors.primary};
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
.flux-vendor-chevron-icon,
|
|
1563
|
-
.flux-vendor-collapsable-chevron-icon,
|
|
1564
|
-
.flux-vendor-children-count {
|
|
1565
|
-
border: 1px solid
|
|
1566
|
-
${e=>e.shouldHighlight?e.theme.colors.primary:e.theme.colors.hero};
|
|
1567
|
-
}
|
|
1568
|
-
`,wd=a.div`
|
|
1569
|
-
display: flex;
|
|
1570
|
-
flex-direction: row;
|
|
1571
|
-
justify-content: flex-start;
|
|
1572
|
-
align-items: center;
|
|
1573
|
-
margin-left: ${kt};
|
|
1574
|
-
`,yd=a(_)`
|
|
1575
|
-
user-select: none;
|
|
1576
|
-
min-width: ${fe};
|
|
1577
|
-
max-width: ${fe};
|
|
1578
|
-
text-align: right;
|
|
1579
|
-
`,bd=a.div`
|
|
1580
|
-
display: flex;
|
|
1581
|
-
flex-direction: row;
|
|
1582
|
-
align-items: center;
|
|
1583
|
-
flex-shrink: 2;
|
|
1584
|
-
flex-grow: 1;
|
|
1585
|
-
width: ${pt};
|
|
1586
|
-
max-width: ${pt};
|
|
1587
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1588
|
-
${({isSticky:e})=>e?z`
|
|
1589
|
-
position: -webkit-sticky;
|
|
1590
|
-
position: sticky;
|
|
1591
|
-
top: ${s.sp0};
|
|
1592
|
-
left: ${s.sp0};
|
|
1593
|
-
`:null}
|
|
1594
|
-
`,kd=a(_)`
|
|
1595
|
-
user-select: none;
|
|
1596
|
-
clear: both;
|
|
1597
|
-
display: inline-block;
|
|
1598
|
-
overflow: hidden;
|
|
1599
|
-
white-space: nowrap;
|
|
1600
|
-
text-overflow: ellipsis;
|
|
1601
|
-
text-align: left;
|
|
1602
|
-
`,jd=a.div`
|
|
1603
|
-
display: flex;
|
|
1604
|
-
justify-content: space-between;
|
|
1605
|
-
flex-grow: 1;
|
|
1606
|
-
`,Sd=a.div`
|
|
1607
|
-
display: flex;
|
|
1608
|
-
align-items: center;
|
|
1609
|
-
margin-left: 10px;
|
|
1610
|
-
`;a.div`
|
|
1611
|
-
display: flex;
|
|
1612
|
-
flex-shrink: 0;
|
|
1613
|
-
width: ${gt};
|
|
1614
|
-
min-width: ${gt};
|
|
1615
|
-
margin-left: 12px;
|
|
1616
|
-
gap: ${s.sp1};
|
|
1617
|
-
flex-direction: row;
|
|
1618
|
-
justify-content: flex-end;
|
|
1619
|
-
text-align: center;
|
|
1620
|
-
align-items: center;
|
|
1621
|
-
`;const Cd=a(ir)`
|
|
1622
|
-
width: 12px;
|
|
1623
|
-
height: 12px;
|
|
1624
|
-
`;a.div`
|
|
1625
|
-
height: ${s.sp4};
|
|
1626
|
-
border-radius: ${s.sp1};
|
|
1627
|
-
padding: 2px ${s.sp1};
|
|
1628
|
-
`,a.div`
|
|
1629
|
-
border-radius: ${s.sp1};
|
|
1630
|
-
padding: 2px ${s.sp1};
|
|
1631
|
-
height: ${s.sp4};
|
|
1632
|
-
justify-content: center;
|
|
1633
|
-
text-align: center;
|
|
1634
|
-
background-color: ${e=>e.bgColor.hex()};
|
|
1635
|
-
`;const $d=a.div`
|
|
1636
|
-
display: flex;
|
|
1637
|
-
margin-left: ${s.sp7};
|
|
1638
|
-
flex: 1 1 auto;
|
|
1639
|
-
justify-content: flex-end;
|
|
1640
|
-
`,vd=a.div`
|
|
1641
|
-
display: flex;
|
|
1642
|
-
flex-direction: column;
|
|
1643
|
-
align-items: center;
|
|
1644
|
-
padding-top: ${e=>e.isNodeOpen?s.sp3:s.sp0};
|
|
1645
|
-
`,_d=a.div`
|
|
1646
|
-
display: flex;
|
|
1647
|
-
width: ${je};
|
|
1648
|
-
min-width: ${je};
|
|
1649
|
-
justify-content: center;
|
|
1650
|
-
flex-direction: row;
|
|
1651
|
-
margin-left: ${jt};
|
|
1652
|
-
`,Ld=a(Se)`
|
|
1653
|
-
width: ${fe};
|
|
1654
|
-
max-width: ${fe};
|
|
1655
|
-
color: ${e=>e.theme.colors.primary};
|
|
1656
|
-
display: flex;
|
|
1657
|
-
flex: 1 0 auto;
|
|
1658
|
-
flex-direction: column;
|
|
1659
|
-
cursor: pointer;
|
|
1660
|
-
align-items: center;
|
|
1661
|
-
`,Ad=a.div`
|
|
1662
|
-
color: ${e=>e.theme.colors.grey1};
|
|
1663
|
-
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
1664
|
-
padding: ${s.sp0} 6px;
|
|
1665
|
-
border-radius: ${s.sp1};
|
|
1666
|
-
width: fit-content;
|
|
1667
|
-
display: flex;
|
|
1668
|
-
align-items: center;
|
|
1669
|
-
margin-right: ${s.sp2};
|
|
1670
|
-
`,Bd=a(Se)`
|
|
1671
|
-
overflow: hidden;
|
|
1672
|
-
text-overflow: ellipsis;
|
|
1673
|
-
`,Od=a.div`
|
|
1674
|
-
display: flex;
|
|
1675
|
-
width: ${s.sp8};
|
|
1676
|
-
height: ${s.sp8};
|
|
1677
|
-
&:hover {
|
|
1678
|
-
.flux-vendor-checkbox {
|
|
1679
|
-
background-color: transparent;
|
|
1680
|
-
}
|
|
1681
|
-
}
|
|
1682
|
-
`,Id=a(en)`
|
|
1683
|
-
color: ${e=>e.theme.colors.primary};
|
|
1684
|
-
width: ${s.sp3};
|
|
1685
|
-
height: ${s.sp3};
|
|
1686
|
-
`,Nd=a(Se)`
|
|
1687
|
-
display: flex;
|
|
1688
|
-
flex-direction: row;
|
|
1689
|
-
align-items: center;
|
|
1690
|
-
gap: 2px;
|
|
1691
|
-
color: ${e=>e.theme.colors.success};
|
|
1692
|
-
`,Md=a(yo)`
|
|
1693
|
-
width: 12px;
|
|
1694
|
-
height: 12px;
|
|
1695
|
-
`,io=a(wo)`
|
|
1696
|
-
margin-left: 2px;
|
|
1697
|
-
width: 12px;
|
|
1698
|
-
height: 12px;
|
|
1699
|
-
`,Wd=a(Fe)`
|
|
1700
|
-
display: flex;
|
|
1701
|
-
border-radius: 50%;
|
|
1702
|
-
width: ${s.sp4};
|
|
1703
|
-
height: ${s.sp4};
|
|
1704
|
-
text-align: center;
|
|
1705
|
-
align-items: center;
|
|
1706
|
-
justify-content: center;
|
|
1707
|
-
`,Pd=a(Fe)`
|
|
1708
|
-
display: flex;
|
|
1709
|
-
border-radius: ${s.sp1};
|
|
1710
|
-
width: ${s.sp4};
|
|
1711
|
-
height: ${s.sp4};
|
|
1712
|
-
text-align: center;
|
|
1713
|
-
align-items: center;
|
|
1714
|
-
justify-content: center;
|
|
1715
|
-
margin-right: ${s.sp4};
|
|
1716
|
-
`,Fd=a(Fe)`
|
|
1717
|
-
display: flex;
|
|
1718
|
-
border-radius: 100px;
|
|
1719
|
-
width: 18px;
|
|
1720
|
-
height: 18px;
|
|
1721
|
-
justify-content: center;
|
|
1722
|
-
align-items: center;
|
|
1723
|
-
margin-left: ${s.sp1};
|
|
1724
|
-
`,{common:ro,expenseAutomation:zd}=N.getLocalizedStrings(),Td=({balance:e})=>{const n=yd;return t.jsx(wd,{children:t.jsx(n,{children:Z(e)})})};function Vd({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:o,isSticky:i,treeNodeId:r,height:l,leftChevron:c,varianceAmount:d,variancePercentage:p,currency:u,vendorBalances:g,reviewedByUser:h,status:x,vendor:f,isOpen:m,childrenCount:w,vendorRowIndex:b,setHoveredParentId:k,onClick:$,handleRedirectToVendorDetailPage:C,updateOperatingExpensesIdsForReview:v}){const[B,A]=T.useState(!1),[M,V]=T.useState(n.length>0),D=n.includes(e),K=n.includes(e),te=c==="collapsed",J=n.length===20&&D===!1,re=kd,he=b!=null?String(b):e,ue=y("flux-analysis-vendor-checkbox",he),pe=y("flux-analysis-vendor-detail-navigation",he),$e=y("flux-analysis-vendor-expand-collapse",he),qe=y("flux-analysis-vendor-row",he);return t.jsx(fd,{heightValue:l,bgColor:o,"data-testid":qe,children:t.jsxs(md,{shouldHighlight:K,isRowExpanded:m,onClick:()=>$?.(r),onMouseOver:()=>{A(!0),V(!0),k?.(f.id)},onMouseLeave:()=>{A(!1),n.length===0&&V(!1),k?.(null)},children:[t.jsxs(bd,{className:"flux-vendor-name-container",bgColor:o,isSticky:i,children:[t.jsx(Od,{className:"flux-vendor-checkbox-container",children:M?t.jsx(Zt,{className:"flux-vendor-checkbox","data-testid":ue,icon:t.jsx(Jt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Id,{}),checked:D,name:f.name,id:e,disabled:J,onChange:ge=>{let me=n;me=ge.target.checked===!0?[...me,e]:me.filter(Ze=>Ze!==e),v?.(me)},onClick:ge=>ge.stopPropagation(),style:{padding:"20px",pointerEvents:J?"none":"auto"}}):null}),t.jsxs(vd,{isNodeOpen:m,children:[B?t.jsx(Wd,{className:"flux-vendor-collapsable-chevron-icon","data-testid":$e,children:m===!1?t.jsx(io,{}):t.jsx(Md,{})}):f.logo!=null?t.jsx(Qt,{photoUrl:f.logo.toString(),styles:{width:S[4],height:S[4]}}):t.jsx(Xt,{name:f.name,size:s.sp4}),m?t.jsx(gi,{height:os}):null]}),t.jsxs(jd,{children:[t.jsxs(Sd,{children:[t.jsx(re,{children:f.name}),m?null:t.jsx(Fd,{className:"flux-vendor-children-count",children:t.jsx(Fe,{children:w})})]}),B?t.jsx(T.Fragment,{children:t.jsx(Pd,{className:"flux-vendor-chevron-icon",onClick:()=>{C?.(f)},"data-testid":pe,children:t.jsx(io,{})})}):null]})]}),t.jsxs($d,{children:[g.map((ge,me)=>t.jsx(Td,{balance:ge,collapsed:te},me)),t.jsx(St,{amount:d,percentage:p,currency:u}),t.jsx(_d,{children:x==="Pending Review"?t.jsx(Ad,{children:t.jsx(Bd,{children:ro.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(Ld,{className:"vendor-flux-analysis-review-info",children:h!=null?t.jsxs(T.Fragment,{children:[t.jsxs(Nd,{children:[t.jsx(Cd,{}),zd.fluxAnalysis.reviewedBy]}),t.jsx(Fe,{children:Ji(h)})]}):ro.strings.hyphen})})})]})]})})}const ao={generalExpense:{color:new O(I.graphColor04),hoverColor:new O(I.graphColor04Dark)},reimbursement:{color:new O(I.graphColor10),hoverColor:new O(I.graphColor10Dark)},default:{color:new O(X.neutralGrey2Dark),hoverColor:new O(X.neutralGrey2Dark)}},jn=(e,n)=>{const{element:o}=e;return o.kind===n&&o.data!=null},ki=e=>Gc(e.balancesByMonth),Dd=(e,n,o,i,r,l,c,d,p,u,g)=>{if(!jn(n,"flux_vendor_row"))return null;const h=n.element.data,x=ki(h),f=wi("flux_vendor_row",p);return t.jsx(Vd,{backgroundColor:o,isSticky:i,treeNodeId:e,vendorRowIndex:n.element.index,fluxAnalysisEntityId:h.fluxAnalysisEntityId,height:f,leftChevron:"collapsed",idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:h.vendor,vendorBalances:x,varianceAmount:h.varianceAmount,variancePercentage:h.variancePercentage,status:h.status,currency:h.currency,isScrolling:r,isOpen:l,isLeaf:c,isLastNode:d,childrenCount:h.vendorAccountsAndClasses.length,onClick:m=>{(w=>{g?.(w),n.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(w)})(m)},reviewedByUser:h.reviewedByUser,updateOperatingExpensesIdsForReview:n.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:n.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},Gd=(e,n,o,i,r,l,c,d,p,u)=>{if(!jn(n,"section"))return null;const g=((x,f)=>x.startsWith("flux_analysis_operating_expense")===!0&&f!=null?ao[f]:ao.default)(n.config.reportId,n.element.sectionType),h=n.element.data;return t.jsx(Vs,{backgroundColor:i,isSticky:r,treeNodeId:e,height:o,selectedSectionsIds:n.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:g.color,sectionName:n.element.title,sectionBalances:h.balances,varianceAmount:h.varianceAmount,variancePercentage:h.variancePercentage,currency:h.currency,isScrolling:l,isOpen:c,hasVendors:h.vendors.length>0,isLeaf:d,isLastNode:p,sectionToggled:x=>{(f=>{n.config.fluxAnalysisConfig?.onSectionRowClick(f),u?.(f)})(x)},onSectionCheckboxClick:n.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:h.sectionId})},Ed=a.div`
|
|
1725
|
-
display: flex;
|
|
1726
|
-
flex: 1 1 auto;
|
|
1727
|
-
width: fit-content;
|
|
1728
|
-
min-width: 100%;
|
|
1729
|
-
flex-direction: column;
|
|
1730
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1731
|
-
`,Rd=a.div`
|
|
1732
|
-
user-select: none;
|
|
1733
|
-
display: flex;
|
|
1734
|
-
flex: 1 1 auto;
|
|
1735
|
-
flex-flow: row;
|
|
1736
|
-
justify-content: flex-start;
|
|
1737
|
-
align-items: center;
|
|
1738
|
-
height: ${e=>e.height}px;
|
|
1739
|
-
margin-left: ${e=>20*e.level}px;
|
|
1740
|
-
`,Hd=a.div`
|
|
1741
|
-
display: flex;
|
|
1742
|
-
flex-direction: row;
|
|
1743
|
-
align-items: center;
|
|
1744
|
-
justify-content: space-between;
|
|
1745
|
-
&:hover {
|
|
1746
|
-
background-color: null;
|
|
1747
|
-
}
|
|
1748
|
-
width: 100%;
|
|
1749
|
-
`,Kd=a(Qi)`
|
|
1750
|
-
width: 100%;
|
|
1751
|
-
display: flex;
|
|
1752
|
-
align-items: center;
|
|
1753
|
-
font-weight: ${e=>e.isSubclass?Fn.regular:Fn.medium};
|
|
1754
|
-
color: ${e=>e.checked?e.theme.colors.primary:e.theme.colors.hero};
|
|
1755
|
-
`,Yd=a(Se)`
|
|
1756
|
-
display: flex;
|
|
1757
|
-
color: ${e=>e.theme.colors.primary};
|
|
1758
|
-
align-items: center;
|
|
1759
|
-
flex-direction: row;
|
|
1760
|
-
justify-content: center;
|
|
1761
|
-
height: 18px;
|
|
1762
|
-
border: 1px solid ${e=>e.theme.colors.primary};
|
|
1763
|
-
border-radius: ${s.sp1};
|
|
1764
|
-
margin: 0 ${s.sp5} 0 ${s.sp3};
|
|
1765
|
-
min-width: ${s.sp6};
|
|
1766
|
-
`,Ud=a(en)`
|
|
1767
|
-
color: ${e=>e.theme.colors.primary};
|
|
1768
|
-
width: ${s.sp3};
|
|
1769
|
-
height: ${s.sp3};
|
|
1770
|
-
`;function qd({backgroundColor:e,treeNodeId:n,classId:o,isChecked:i,isDisabled:r,height:l,nestedClass:c,isLeaf:d,showClassAccountNumber:p,onClick:u,onToggleCheck:g}){const[h,x]=T.useState(!1);return t.jsx(Ed,{"data-testid":y("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(Rd,{"data-testid":y("name-with-checkbox-row-container",n),height:l,isClickable:!d,onClick:()=>u?.(n),onMouseOver:()=>x(!0),onMouseLeave:()=>x(!1),level:c.classId.length,children:[t.jsx(Zt,{"data-testid":y("name-with-checkbox-row-checkbox",c.classId.toString()),icon:t.jsx(Jt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Ud,{}),checked:i,name:c.className,id:n,disabled:r,onChange:f=>{g?.(o,f.target.checked)},style:{height:s.sp6}})," ",t.jsx(Hd,{children:t.jsxs(Kd,{"data-testid":y("name-with-checkbox-row-label-container",n),checked:i,isSubclass:c.classId.length>1,children:[t.jsx("label",{"data-testid":y("name-with-checkbox-row-label",c.classId.toString()),style:{flexGrow:2,cursor:"pointer"},onClick:()=>{g?.(o,!i)},children:c.className}),h===!0&&p===!0&&c.accountingClassNumber!=null&&t.jsx(Yd,{children:c.accountingClassNumber})]})})]})})}const P={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new G(200,270,270),categoryClassWidth:new G(230,230,240),nameLogoWidth:new G(S[4],S[4]),nameLogoHeight:new G(S[4],S[4])},Zd=a.div`
|
|
1771
|
-
user-select: none;
|
|
1772
|
-
display: flex;
|
|
1773
|
-
flex: 1 1 auto;
|
|
1774
|
-
width: fit-content;
|
|
1775
|
-
min-width: 100%;
|
|
1776
|
-
height: ${e=>e.height}px;
|
|
1777
|
-
flex-flow: row;
|
|
1778
|
-
justify-content: flex-start;
|
|
1779
|
-
align-items: center;
|
|
1780
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1781
|
-
`,Jd=a.div`
|
|
1782
|
-
user-select: none;
|
|
1783
|
-
display: flex;
|
|
1784
|
-
flex: 1 1 auto;
|
|
1785
|
-
width: 100vw;
|
|
1786
|
-
min-width: 100%;
|
|
1787
|
-
height: ${e=>e.height}px;
|
|
1788
|
-
flex-flow: row;
|
|
1789
|
-
align-items: center;
|
|
1790
|
-
justify-content: center;
|
|
1791
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1792
|
-
`,Qd=a.div`
|
|
1793
|
-
display: flex;
|
|
1794
|
-
flex: 1 0 auto;
|
|
1795
|
-
flex-direction: row;
|
|
1796
|
-
justify-content: flex-end;
|
|
1797
|
-
`,lo=a(_)`
|
|
1798
|
-
color: ${e=>e.theme.colors.hero};
|
|
1799
|
-
flex-grow: 1;
|
|
1800
|
-
-webkit-box-orient: vertical;
|
|
1801
|
-
justify-content: ${e=>e.isClubbed===!0?"unset":"flex-end"};
|
|
1802
|
-
display: flex;
|
|
1803
|
-
min-width: ${P.balanceWidth};
|
|
1804
|
-
max-width: ${P.balanceWidth};
|
|
1805
|
-
margin-left: ${e=>e.isClubbed===!0?s.sp2:P.balanceLeftMargin};
|
|
1806
|
-
border: 1px solid transparent;
|
|
1807
|
-
`,co=a(_)`
|
|
1808
|
-
color: ${e=>e.theme.colors.hero};
|
|
1809
|
-
flex-grow: 1;
|
|
1810
|
-
-webkit-box-orient: vertical;
|
|
1811
|
-
justify-content: "unset";
|
|
1812
|
-
display: flex;
|
|
1813
|
-
min-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
1814
|
-
`,Xd=a.div`
|
|
1815
|
-
height: 100%;
|
|
1816
|
-
display: flex;
|
|
1817
|
-
flex-direction: row;
|
|
1818
|
-
align-items: center;
|
|
1819
|
-
min-width: ${e=>P.titleWidth.valuePx(e.windowSize)};
|
|
1820
|
-
color: ${e=>e.theme.colors.primary};
|
|
1821
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1822
|
-
${({isSticky:e})=>e?z`
|
|
1823
|
-
position: -webkit-sticky;
|
|
1824
|
-
position: sticky;
|
|
1825
|
-
top: ${s.sp0};
|
|
1826
|
-
left: ${s.sp0};
|
|
1827
|
-
z-index: 20;
|
|
1828
|
-
`:null}
|
|
1829
|
-
`;function eh({backgroundColor:e,isSticky:n,height:o,isAccountColumnShown:i,isClassColumnShown:r,timeframeTicks:l}){const c=W();return l.length>0?t.jsxs(Zd,{height:o,bgColor:e,"data-testid":y("opex-vendor-loading-in-progress-row"),children:[t.jsxs(Xd,{"data-testid":y("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:c,bgColor:e,children:[t.jsx(Ee,{width:S[4],height:S[4]}),t.jsx(lo,{windowSize:c,isClubbed:!0,children:t.jsx(Y,{width:120,height:S[4]})})]}),t.jsxs(Qd,{children:[i?t.jsx(co,{windowSize:c,children:t.jsx(Y,{width:120,height:S[4]})}):null,r?t.jsx(co,{windowSize:c,children:t.jsx(Y,{width:120,height:S[4]})}):null,l.map((d,p)=>t.jsx(lo,{windowSize:c,children:t.jsx(Y,{width:120,height:S[4]})},`${p}RowItem`))]})]}):t.jsx(Jd,{height:o,bgColor:e,children:t.jsx(Zi,{size:"Small",start:!0})})}const th=a.div`
|
|
1830
|
-
user-select: none;
|
|
1831
|
-
display: flex;
|
|
1832
|
-
flex: 1 1 auto;
|
|
1833
|
-
width: fit-content;
|
|
1834
|
-
min-width: 100%;
|
|
1835
|
-
height: ${e=>e.height}px;
|
|
1836
|
-
flex-flow: row;
|
|
1837
|
-
justify-content: flex-start;
|
|
1838
|
-
align-items: center;
|
|
1839
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1840
|
-
`,Ft=a.div``,nh=a.div`
|
|
1841
|
-
display: flex;
|
|
1842
|
-
flex: 1 0 auto;
|
|
1843
|
-
flex-direction: row;
|
|
1844
|
-
justify-content: flex-end;
|
|
1845
|
-
`,oh=a(_)`
|
|
1846
|
-
user-select: none;
|
|
1847
|
-
clear: both;
|
|
1848
|
-
display: inline-block;
|
|
1849
|
-
overflow: hidden;
|
|
1850
|
-
white-space: nowrap;
|
|
1851
|
-
text-overflow: ellipsis;
|
|
1852
|
-
text-align: left;
|
|
1853
|
-
margin-left: ${s.sp2};
|
|
1854
|
-
color: ${e=>e.theme.colors.hero};
|
|
1855
|
-
`,ih=a(_)`
|
|
1856
|
-
color: ${e=>e.theme.colors.hero};
|
|
1857
|
-
flex-grow: 1;
|
|
1858
|
-
-webkit-box-orient: vertical;
|
|
1859
|
-
display: flex;
|
|
1860
|
-
min-width: ${P.balanceWidth};
|
|
1861
|
-
max-width: ${P.balanceWidth};
|
|
1862
|
-
border: 1px solid transparent;
|
|
1863
|
-
`,so=a(_)`
|
|
1864
|
-
color: ${e=>e.theme.colors.hero};
|
|
1865
|
-
flex-grow: 1;
|
|
1866
|
-
-webkit-box-orient: vertical;
|
|
1867
|
-
justify-content: "unset";
|
|
1868
|
-
display: flex;
|
|
1869
|
-
min-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
1870
|
-
`,rh=a.div`
|
|
1871
|
-
height: 100%;
|
|
1872
|
-
display: flex;
|
|
1873
|
-
flex-direction: row;
|
|
1874
|
-
align-items: center;
|
|
1875
|
-
min-width: ${e=>P.titleWidth.valuePx(e.windowSize)};
|
|
1876
|
-
color: ${e=>e.theme.colors.primary};
|
|
1877
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1878
|
-
${({isSticky:e})=>e?z`
|
|
1879
|
-
position: -webkit-sticky;
|
|
1880
|
-
position: sticky;
|
|
1881
|
-
top: ${s.sp0};
|
|
1882
|
-
left: ${s.sp0};
|
|
1883
|
-
z-index: 20;
|
|
1884
|
-
`:null}
|
|
1885
|
-
`;function ah({backgroundColor:e,isSticky:n,height:o,isAccountColumnShown:i,isClassColumnShown:r,timeframeTicks:l}){const c=W();return t.jsxs(th,{height:o,bgColor:e,"data-testid":y("no-results-found-title-row"),children:[t.jsx(rh,{isSticky:n,windowSize:c,bgColor:e,children:t.jsx(oh,{children:N.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(nh,{children:[i?t.jsx(so,{windowSize:c,children:t.jsx(Ft,{})}):null,r?t.jsx(so,{windowSize:c,children:t.jsx(Ft,{})}):null,l.map((d,p)=>t.jsx(ih,{windowSize:c,children:t.jsx(Ft,{children:" "})},`${p}RowItem`))]})]})}function Sn({title:e,selectedMode:n,onCompareModeChanged:o,backgroundColor:i,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:c,titleTextStyle:d,titleTextAlignment:p,titleColor:u,menuPosition:g}){return t.jsx(rr,{title:e,pickerValues:["compare_mode_percent","compare_mode_amount"],valueToLabel:h=>N.getLocalizedStrings().compareMode[h],selectedValue:n,onPickerSelectionChanged:h=>o(h),optionTextStyle:c,titleTextStyle:d,titleTextAlignment:p,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:i??"inherit",menuPosition:g})}const lh=s.sp4,ho=170,ch=(s.sp4,a.div`
|
|
1886
|
-
margin-left: ${s.sp4};
|
|
1887
|
-
`),sh=a.div`
|
|
1888
|
-
display: flex;
|
|
1889
|
-
max-height: 54px;
|
|
1890
|
-
min-height: 54px;
|
|
1891
|
-
align-items: center;
|
|
1892
|
-
justify-content: center;
|
|
1893
|
-
max-width: ${ho-2}px;
|
|
1894
|
-
min-width: ${ho-2}px;
|
|
1895
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1896
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1897
|
-
border-radius: ${s.sp2};
|
|
1898
|
-
color: ${e=>e.theme.colors.primary};
|
|
1899
|
-
`,dh=a(_)`
|
|
1900
|
-
display: flex;
|
|
1901
|
-
user-select: none;
|
|
1902
|
-
flex-direction: row;
|
|
1903
|
-
justify-content: center;
|
|
1904
|
-
align-items: center;
|
|
1905
|
-
height: ${lh};
|
|
1906
|
-
`,hh=a.div`
|
|
1907
|
-
display: flex;
|
|
1908
|
-
flex-direction: row;
|
|
1909
|
-
justify-content: center;
|
|
1910
|
-
align-items: center;
|
|
1911
|
-
padding: 3px 6px;
|
|
1912
|
-
margin-right: ${s.sp2};
|
|
1913
|
-
position: relative;
|
|
1914
|
-
top: -12px;
|
|
1915
|
-
`,uh=a(hr)`
|
|
1916
|
-
color: ${e=>e.tagType==="under_review"?X.neutralGrey5Light:e.theme.mode==="light"?X.primaryDark:X.primaryLight};
|
|
1917
|
-
border-radius: ${s.sp2};
|
|
1918
|
-
padding: 3px 6px;
|
|
1919
|
-
margin-left: 12px;
|
|
1920
|
-
background: ${e=>e.tagType==="under_review"?X.alertDark:e.theme.mode==="light"?X.championLight:X.championDark};
|
|
1921
|
-
`,ph=a(dr)`
|
|
1922
|
-
color: ${e=>e.theme.colors.hero};
|
|
1923
|
-
margin-left: 5px;
|
|
1924
|
-
height: ${s.sp3};
|
|
1925
|
-
width: ${s.sp3};
|
|
1926
|
-
margin-top: ${s.sp1};
|
|
1927
|
-
`;function gh(e){return e==="under_review"?y("report-tree-timeframe-tag","under-review"):e==="incomplete"?y("report-tree-timeframe-tag","in-progress"):void 0}function ji({firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:i,infoContent:r,tagType:l}){return t.jsxs(ch,{children:[t.jsxs(sh,{children:[t.jsx(dh,{children:He(e,n,o)}),t.jsx(sr,{style:{padding:s.sp3},title:r,placement:"top",children:t.jsx(ph,{})})]}),t.jsx(hh,{"data-testid":gh(l),children:t.jsx(uh,{tagType:l,children:i})})]})}const Si=(e,n)=>{const o=N.getLocalizedStrings().reports;switch(n){case"month":return e!=null?e==="under_review"?o.bookCloseUnderReviewInfoMonth:o.bookCloseIncompleteInfoMonth:void 0;case"quarter":return e!=null?e==="under_review"?o.bookCloseUnderReviewInfoQuarter:o.bookCloseIncompleteInfoQuarter:void 0;case"year":return e!=null?e==="under_review"?o.bookCloseUnderReviewInfoYear:o.bookCloseIncompleteInfoYear:void 0;default:return}},xh=a.div`
|
|
1928
|
-
user-select: none;
|
|
1929
|
-
display: flex;
|
|
1930
|
-
flex: 1 1 auto;
|
|
1931
|
-
width: fit-content;
|
|
1932
|
-
min-width: 100%;
|
|
1933
|
-
height: ${e=>e.height}px;
|
|
1934
|
-
flex-flow: row;
|
|
1935
|
-
justify-content: flex-start;
|
|
1936
|
-
align-items: center;
|
|
1937
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1938
|
-
`,fh=a.div`
|
|
1939
|
-
display: flex;
|
|
1940
|
-
flex: 1 0 auto;
|
|
1941
|
-
flex-direction: row;
|
|
1942
|
-
justify-content: flex-end;
|
|
1943
|
-
`,Ci=a.div`
|
|
1944
|
-
display: flex;
|
|
1945
|
-
max-height: ${s.sp8};
|
|
1946
|
-
min-height: ${s.sp8};
|
|
1947
|
-
min-width: ${P.balanceWidth};
|
|
1948
|
-
justify-content: center;
|
|
1949
|
-
align-items: center;
|
|
1950
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1951
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1952
|
-
border-radius: ${s.sp2};
|
|
1953
|
-
margin-left: ${P.balanceLeftMargin};
|
|
1954
|
-
color: ${e=>e.theme.colors.primary};
|
|
1955
|
-
cursor: ${e=>e.isClickable===!0?"pointer":"default"};
|
|
1956
|
-
`,$i=a(_)`
|
|
1957
|
-
display: flex;
|
|
1958
|
-
user-select: none;
|
|
1959
|
-
flex-direction: row;
|
|
1960
|
-
justify-content: center;
|
|
1961
|
-
align-items: center;
|
|
1962
|
-
height: ${P.balanceHeight};
|
|
1963
|
-
max-width: ${P.balanceWidth};
|
|
1964
|
-
width: 138px;
|
|
1965
|
-
text-align: center;
|
|
1966
|
-
`,mh=a.div`
|
|
1967
|
-
display: flex;
|
|
1968
|
-
flex-direction: row;
|
|
1969
|
-
z-index: 1;
|
|
1970
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1971
|
-
${({isSticky:e})=>e?z`
|
|
1972
|
-
position: -webkit-sticky;
|
|
1973
|
-
position: sticky;
|
|
1974
|
-
top: ${s.sp0};
|
|
1975
|
-
left: ${s.sp0};
|
|
1976
|
-
z-index: 1;
|
|
1977
|
-
`:null}
|
|
1978
|
-
`,wh=a.div`
|
|
1979
|
-
max-height: ${e=>e.plHeight}px;
|
|
1980
|
-
min-height: ${e=>e.plHeight}px;
|
|
1981
|
-
display: flex;
|
|
1982
|
-
flex-direction: row;
|
|
1983
|
-
align-items: center;
|
|
1984
|
-
min-width: ${e=>P.titleWidth.valuePx(e.windowSize)};
|
|
1985
|
-
color: ${e=>e.theme.colors.primary};
|
|
1986
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1987
|
-
`,yh=a(_)`
|
|
1988
|
-
display: flex;
|
|
1989
|
-
gap: 6px;
|
|
1990
|
-
align-items: baseline;
|
|
1991
|
-
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
|
|
1992
|
-
`,vi=a(_)`
|
|
1993
|
-
height: 100%;
|
|
1994
|
-
align-self: center;
|
|
1995
|
-
align-items: baseline;
|
|
1996
|
-
min-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
1997
|
-
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
|
|
1998
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
1999
|
-
display: flex;
|
|
2000
|
-
gap: 6px;
|
|
2001
|
-
align-items: center;
|
|
2002
|
-
`,Cn=a.div`
|
|
2003
|
-
display: flex;
|
|
2004
|
-
cursor: pointer;
|
|
2005
|
-
`,bh=a.div`
|
|
2006
|
-
display: flex;
|
|
2007
|
-
justify-content: center;
|
|
2008
|
-
align-items: center;
|
|
2009
|
-
color: ${e=>e.theme.colors.champion};
|
|
2010
|
-
`,kh=a.div``,jh=a(_)`
|
|
2011
|
-
display: flex;
|
|
2012
|
-
justify-content: center;
|
|
2013
|
-
align-items: center;
|
|
2014
|
-
max-height: ${s.sp8};
|
|
2015
|
-
min-height: ${s.sp8};
|
|
2016
|
-
background-color: ${e=>e.theme.colors.background};
|
|
2017
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2018
|
-
border-radius: ${s.sp2};
|
|
2019
|
-
margin-left: ${P.balanceLeftMargin};
|
|
2020
|
-
color: ${e=>e.theme.colors.primary};
|
|
2021
|
-
width: ${P.balanceWidth};
|
|
2022
|
-
min-width: ${P.balanceWidth};
|
|
2023
|
-
`,_i=a.div`
|
|
2024
|
-
max-height: ${s.sp8};
|
|
2025
|
-
min-height: ${s.sp8};
|
|
2026
|
-
`,Ct=a.div`
|
|
2027
|
-
color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
|
|
2028
|
-
`,$t=a(on)`
|
|
2029
|
-
width: 12px;
|
|
2030
|
-
height: 12px;
|
|
2031
|
-
margin-left: ${s.sp2};
|
|
2032
|
-
margin-top: ${s.sp1};
|
|
2033
|
-
`,vt=a(nn)`
|
|
2034
|
-
width: 12px;
|
|
2035
|
-
height: 12px;
|
|
2036
|
-
margin-left: ${s.sp2};
|
|
2037
|
-
margin-top: ${s.sp1};
|
|
2038
|
-
`,$n=a(So)`
|
|
2039
|
-
width: 12px;
|
|
2040
|
-
height: 12px;
|
|
2041
|
-
cursor: pointer;
|
|
2042
|
-
color: ${e=>e.theme.colors.hero};
|
|
2043
|
-
`,Li=({sortOrder:e,sortKey:n,onSortOrderChanged:o})=>{const i=n==="totals"?e:"ascending";return t.jsx(_i,{"data-testid":y("period-total-tick"),children:t.jsx(Ci,{"data-testid":y("period-total-tick-element"),onClick:()=>{o(_t("totals",e,n),"totals")},isClickable:!0,children:t.jsxs($i,{children:[N.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(Ct,{selectedForSort:n==="totals","data-testid":y("report-tree-column-header-sort-icon","period-total"),children:i==="ascending"?t.jsx(vt,{}):t.jsx($t,{})})]})})})},Sh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=e==="vendor"?n:"ascending";return t.jsxs(yh,{selectedForSort:e==="vendor","data-testid":y("report-tree-column-header","vendor"),children:[t.jsxs(Cn,{onClick:()=>{o(_t("vendor",n,e),"vendor")},children:[N.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(Ct,{selectedForSort:e==="vendor","data-testid":y("report-tree-column-header-sort-icon","vendor"),children:r==="ascending"?t.jsx(vt,{}):t.jsx($t,{})})]}),e==="vendor"?t.jsx($n,{"data-testid":y("report-tree-column-header-sort-cancel","vendor"),onClick:i}):null]})},Ch=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=e==="account"?n:"ascending",l=W();return t.jsxs(vi,{selectedForSort:e==="account",windowSize:l,"data-testid":y("report-tree-column-header","account"),children:[t.jsxs(Cn,{onClick:()=>{o(_t("account",n,e),"account")},children:[N.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(Ct,{selectedForSort:e==="account","data-testid":y("report-tree-column-header-sort-icon","account"),children:r==="ascending"?t.jsx(vt,{}):t.jsx($t,{})})]}),e==="account"?t.jsx($n,{"data-testid":y("report-tree-column-header-sort-cancel","account"),onClick:i}):null]})},$h=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=e==="class"?n:"ascending",l=W();return t.jsxs(vi,{selectedForSort:e==="class",windowSize:l,"data-testid":y("report-tree-column-header","class"),children:[t.jsxs(Cn,{onClick:()=>{o(_t("class",n,e),"class")},children:[N.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(Ct,{selectedForSort:e==="class","data-testid":y("report-tree-column-header-sort-icon","class"),children:r==="ascending"?t.jsx(vt,{}):t.jsx($t,{})})]}),e==="class"?t.jsx($n,{"data-testid":y("report-tree-column-header-sort-cancel","class"),onClick:i}):null]})},Ai=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,tickColumnIndex:i,bookCloseDate:r,dataAvailable:l})=>{const c=N.getLocalizedStrings().reports,d=r==null||l==null||n.balanceType!=="default"&&n.balanceType!=="default_with_percent"?void 0:_o(o,e,n,r,l),p=d!=null?d==="under_review"?c.bookCloseTagUnderReview:c.bookCloseTagInProgress:void 0,u=Si(d,o),g=y("report-tree-column-header-timeframe",String(i));return t.jsx(_i,{"data-testid":g,children:r!=null&&l!=null&&d!=null&&p!=null&&u!=null?t.jsx(ji,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:p,infoContent:u,tagType:d}):t.jsx(Ci,{isClickable:!1,children:t.jsx($i,{children:He(e,n,o)})})})},vh=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,tickColumnIndex:i,onSortOrderChanged:r,bookCloseDate:l,dataAvailable:c,sortKey:d="totals",sortOrder:p="ascending"})=>n.balanceType==="period_total"?t.jsx(Li,{sortKey:d,sortOrder:p,onSortOrderChanged:r}):t.jsx(Ai,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,tickColumnIndex:i,dataAvailable:c,bookCloseDate:l}),_h=({firstMonthOfFY:e,timeframeTicks:n,timeframe:o,compareMode:i,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:c,bookCloseDate:d,onCompareModeChanged:p,onSortOrderChanged:u})=>{const g=le(),h=i==="compare_mode_amount"?`${N.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:N.getLocalizedStrings().compareMode.changePercent;return t.jsx(bh,{children:n.map((x,f)=>t.jsxs(T.Fragment,{children:[x.balanceType==="this_period_vs_last_period"||x.balanceType==="this_period_vs_last_period_percent"?t.jsx(jh,{"data-testid":y("report-tree-column-header-compare-mode",String(f)),children:t.jsx(Sn,{title:h,titleTextStyle:tn.standardRegular,titleTextAlignment:"flex-end",titleColor:g.colors.primary,selectedMode:i,menuPosition:"right",onCompareModeChanged:m=>{m!=="off"&&(m==="compare_mode_amount"||m==="compare_mode_percent"?p?.(m):console.warn("Invalid compare mode option"))}})}):null,x.balanceType==="period_total"?t.jsx(Li,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,x.balanceType==="default"?t.jsx(kh,{children:t.jsx(Ai,{firstMonthOfFY:e,timeframeTick:x,timeframe:o,tickColumnIndex:f,dataAvailable:c,bookCloseDate:d},f)}):null]},f))})};function Lh({backgroundColor:e,isSticky:n,height:o,isCompareModeOn:i,isAccountColumnShown:r,isClassColumnShown:l,sortKey:c,sortOrder:d,firstMonthOfFY:p,timeframe:u,timeframeTicks:g,compareMode:h,dataAvailable:x,bookCloseDate:f,onCompareModeChanged:m,onSortOrderChanged:w}){const b=W(),k=(C,v)=>{w?.(C,v)},$=()=>{w?.("descending","totals")};return t.jsxs(xh,{height:o,bgColor:e,children:[t.jsx(mh,{bgColor:e,windowSize:b,isSticky:n,children:t.jsx(wh,{plHeight:o,windowSize:b,bgColor:e,children:t.jsx(Sh,{sortKey:c,sortOrder:d,onSortOrderChanged:k,onSortCancel:$})})}),r?t.jsx(Ch,{sortKey:c,sortOrder:d,onSortOrderChanged:k,onSortCancel:$}):null,l?t.jsx($h,{sortKey:c,sortOrder:d,onSortOrderChanged:k,onSortCancel:$}):null,t.jsx(fh,{children:i===!0?t.jsx(_h,{firstMonthOfFY:p,timeframe:u,sortKey:c,sortOrder:d,timeframeTicks:g,compareMode:h,dataAvailable:x,bookCloseDate:f,onCompareModeChanged:m,onSortOrderChanged:k}):g.map((C,v)=>t.jsx(vh,{firstMonthOfFY:p,timeframeTick:C,timeframe:u,tickColumnIndex:v,onSortOrderChanged:k,bookCloseDate:f,dataAvailable:x,sortKey:c,sortOrder:d},v))})]})}const _t=(e,n,o)=>e===o?n==="ascending"?"descending":"ascending":"descending",Ah=a.div`
|
|
2044
|
-
display: flex;
|
|
2045
|
-
flex: 1 1 auto;
|
|
2046
|
-
max-height: 1px;
|
|
2047
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
|
|
2048
|
-
`,Bh=a.div`
|
|
2049
|
-
display: flex;
|
|
2050
|
-
flex: 1 1 auto;
|
|
2051
|
-
max-height: 1px;
|
|
2052
|
-
background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
|
|
2053
|
-
`;function Ut({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(Ah,{isScrolling:n});case"end_row_separator":return t.jsx(Bh,{isScrolling:n})}}const Oh=a.div`
|
|
2054
|
-
display: flex;
|
|
2055
|
-
flex: 1 1 auto;
|
|
2056
|
-
width: fit-content;
|
|
2057
|
-
min-width: 100%;
|
|
2058
|
-
flex-direction: column;
|
|
2059
|
-
height: ${e=>e.height}px;
|
|
2060
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2061
|
-
`,Ih=a.div`
|
|
2062
|
-
user-select: none;
|
|
2063
|
-
display: flex;
|
|
2064
|
-
flex: 1 1 auto;
|
|
2065
|
-
flex-flow: row;
|
|
2066
|
-
justify-content: flex-start;
|
|
2067
|
-
align-items: center;
|
|
2068
|
-
cursor: default;
|
|
2069
|
-
`,Nh=a.div`
|
|
2070
|
-
display: flex;
|
|
2071
|
-
flex: 1 0 auto;
|
|
2072
|
-
flex-direction: row;
|
|
2073
|
-
justify-content: flex-end;
|
|
2074
|
-
`,Mh=a.div`
|
|
2075
|
-
display: flex;
|
|
2076
|
-
flex-direction: row;
|
|
2077
|
-
justify-content: flex-start;
|
|
2078
|
-
`,Bi=a(ne)`
|
|
2079
|
-
user-select: none;
|
|
2080
|
-
min-width: ${P.balanceWidth};
|
|
2081
|
-
max-width: ${P.balanceWidth};
|
|
2082
|
-
text-align: right;
|
|
2083
|
-
margin-left: ${P.balanceLeftMargin};
|
|
2084
|
-
color: ${e=>e.theme.colors.primary};
|
|
2085
|
-
border: 1px solid transparent;
|
|
2086
|
-
`,Wh=a(Bi)`
|
|
2087
|
-
color: ${e=>e.theme.colors.hero};
|
|
2088
|
-
&:hover {
|
|
2089
|
-
color: inherit;
|
|
2090
|
-
}
|
|
2091
|
-
`,Ph=a.div`
|
|
2092
|
-
display: flex;
|
|
2093
|
-
flex-direction: row;
|
|
2094
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2095
|
-
${({isSticky:e})=>e?z`
|
|
2096
|
-
position: -webkit-sticky;
|
|
2097
|
-
position: sticky;
|
|
2098
|
-
top: ${s.sp0};
|
|
2099
|
-
left: ${s.sp0};
|
|
2100
|
-
`:null}
|
|
2101
|
-
`,Fh=a.div`
|
|
2102
|
-
display: flex;
|
|
2103
|
-
flex-direction: row;
|
|
2104
|
-
flex-shrink: 2;
|
|
2105
|
-
flex-grow: 1;
|
|
2106
|
-
align-items: center;
|
|
2107
|
-
width: ${e=>P.titleWidth.valuePx(e.windowSize)};
|
|
2108
|
-
max-width: ${e=>P.titleWidth.valuePx(e.windowSize)};
|
|
2109
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2110
|
-
`,uo=a.div`
|
|
2111
|
-
width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
2112
|
-
max-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
2113
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2114
|
-
`,zh=a(ne)`
|
|
2115
|
-
user-select: none;
|
|
2116
|
-
clear: both;
|
|
2117
|
-
display: inline-block;
|
|
2118
|
-
overflow: hidden;
|
|
2119
|
-
white-space: nowrap;
|
|
2120
|
-
text-overflow: ellipsis;
|
|
2121
|
-
text-align: left;
|
|
2122
|
-
color: ${e=>e.theme.colors.primary};
|
|
2123
|
-
`,Th=({balance:e,collapsed:n,timeframeColumnIndex:o,treeNodeId:i,type:r})=>{const l=n===!0?Wh:Bi;return t.jsx(Mh,{"data-testid":y("report-tree-total-row-amount",`${i}-${String(o)}`),children:ie(r)===!0?t.jsx(l,{children:Z(e)}):null})};function Vh({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,title:l,totalBalances:c,isAccountColumnShown:d,isClassColumnShown:p,onClick:u,isScrolling:g}){const h=W();return t.jsxs(Oh,{"data-testid":y("total-row-root-container",i),height:r,bgColor:n,windowSize:h,children:[t.jsxs(Ih,{"data-testid":y("total-row-container",i),onClick:()=>u?.(i),children:[t.jsxs(Ph,{bgColor:n,windowSize:h,isSticky:o,children:[t.jsx(Fh,{bgColor:n,windowSize:h,children:t.jsx(zh,{children:l})}),d?t.jsx(uo,{windowSize:h}):null,p?t.jsx(uo,{windowSize:h}):null]}),t.jsx(Nh,{children:c.map((x,f)=>t.jsx(Th,{balance:x,collapsed:!1,timeframeColumnIndex:f,treeNodeId:i,type:e},f))})]}),t.jsx(Ut,{isScrolling:g,kind:"vendor_row_separator"})]})}const Dh=a.div`
|
|
2124
|
-
display: flex;
|
|
2125
|
-
flex: 1 1 auto;
|
|
2126
|
-
width: fit-content;
|
|
2127
|
-
min-width: 100%;
|
|
2128
|
-
flex-direction: column;
|
|
2129
|
-
height: ${e=>e.height}px;
|
|
2130
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2131
|
-
`,Gh=a.div`
|
|
2132
|
-
user-select: none;
|
|
2133
|
-
display: flex;
|
|
2134
|
-
flex: 1 1 auto;
|
|
2135
|
-
flex-flow: row;
|
|
2136
|
-
justify-content: flex-start;
|
|
2137
|
-
align-items: center;
|
|
2138
|
-
&:hover {
|
|
2139
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2140
|
-
}
|
|
2141
|
-
`,Eh=a.div`
|
|
2142
|
-
display: flex;
|
|
2143
|
-
flex: 1 0 auto;
|
|
2144
|
-
flex-direction: row;
|
|
2145
|
-
justify-content: flex-end;
|
|
2146
|
-
`,Rh=a.div`
|
|
2147
|
-
display: flex;
|
|
2148
|
-
flex-direction: row;
|
|
2149
|
-
justify-content: flex-start;
|
|
2150
|
-
`,Hh=a(_)`
|
|
2151
|
-
user-select: none;
|
|
2152
|
-
min-width: ${P.balanceWidth};
|
|
2153
|
-
max-width: ${P.balanceWidth};
|
|
2154
|
-
text-align: right;
|
|
2155
|
-
margin-left: ${P.balanceLeftMargin};
|
|
2156
|
-
border: 1px solid transparent;
|
|
2157
|
-
color: ${e=>e.theme.colors.hero};
|
|
2158
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2159
|
-
&:hover {
|
|
2160
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2161
|
-
}
|
|
2162
|
-
`,Kh=a.div`
|
|
2163
|
-
display: flex;
|
|
2164
|
-
flex-direction: row;
|
|
2165
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2166
|
-
${({isSticky:e})=>e?z`
|
|
2167
|
-
position: -webkit-sticky;
|
|
2168
|
-
position: sticky;
|
|
2169
|
-
top: ${s.sp0};
|
|
2170
|
-
left: ${s.sp0};
|
|
2171
|
-
`:null}
|
|
2172
|
-
`,Yh=a.div`
|
|
2173
|
-
display: flex;
|
|
2174
|
-
flex-direction: row;
|
|
2175
|
-
flex-shrink: 2;
|
|
2176
|
-
flex-grow: 1;
|
|
2177
|
-
align-items: center;
|
|
2178
|
-
gap: ${s.sp2};
|
|
2179
|
-
width: ${e=>P.titleWidth.valuePx(e.windowSize)};
|
|
2180
|
-
max-width: ${e=>P.titleWidth.valuePx(e.windowSize)};
|
|
2181
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2182
|
-
`,Oe=a(_)`
|
|
2183
|
-
user-select: none;
|
|
2184
|
-
clear: both;
|
|
2185
|
-
display: inline-block;
|
|
2186
|
-
overflow: hidden;
|
|
2187
|
-
white-space: nowrap;
|
|
2188
|
-
text-overflow: ellipsis;
|
|
2189
|
-
text-align: left;
|
|
2190
|
-
color: ${e=>e.theme.colors.hero};
|
|
2191
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2192
|
-
&:hover {
|
|
2193
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2194
|
-
}
|
|
2195
|
-
`,Uh=a.div`
|
|
2196
|
-
display: flex;
|
|
2197
|
-
flex-direction: row;
|
|
2198
|
-
flex-shrink: 2;
|
|
2199
|
-
flex-grow: 1;
|
|
2200
|
-
align-items: center;
|
|
2201
|
-
width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
2202
|
-
max-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
2203
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2204
|
-
`,qh=a.div`
|
|
2205
|
-
display: flex;
|
|
2206
|
-
flex-direction: row;
|
|
2207
|
-
flex-shrink: 2;
|
|
2208
|
-
flex-grow: 1;
|
|
2209
|
-
align-items: center;
|
|
2210
|
-
width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
2211
|
-
max-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
|
|
2212
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2213
|
-
`,Zh=a.div``,Jh=a.div`
|
|
2214
|
-
width: ${s.sp4};
|
|
2215
|
-
height: ${s.sp4};
|
|
2216
|
-
border-radius: 50%;
|
|
2217
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
2218
|
-
display: flex;
|
|
2219
|
-
justify-content: center;
|
|
2220
|
-
align-items: center;
|
|
2221
|
-
color: ${e=>e.theme.colors.hero};
|
|
2222
|
-
`,Qh=a(Xi)`
|
|
2223
|
-
width: ${s.sp3};
|
|
2224
|
-
height: ${s.sp3};
|
|
2225
|
-
`,Xh=a.div`
|
|
2226
|
-
display: flex;
|
|
2227
|
-
column-gap: ${s.sp2};
|
|
2228
|
-
width: 100%;
|
|
2229
|
-
&:hover {
|
|
2230
|
-
.hyphen-text {
|
|
2231
|
-
display: none;
|
|
2232
|
-
}
|
|
2233
|
-
.not-specified-text {
|
|
2234
|
-
display: block;
|
|
2235
|
-
}
|
|
2236
|
-
}
|
|
2237
|
-
`,eu=a(_)`
|
|
2238
|
-
color: ${e=>e.theme.colors.hero};
|
|
2239
|
-
`,tu=a(_)`
|
|
2240
|
-
color: ${e=>e.theme.colors.hero};
|
|
2241
|
-
display: none;
|
|
2242
|
-
`,nu=({balance:e,timeframeColumnIndex:n,vendor:o,vendorRowKey:i,onVendorNameAndBalanceClick:r})=>{const l=!(e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent")&&e?.type!=="period_total"&&e?.type!=="default_with_null_balance"&&!vo(o.id);return t.jsx(Rh,{"data-testid":y("report-tree-vendor-row-amount",`${i}-${String(n)}`),children:t.jsx(Hh,{isClickable:l,onClick:()=>{l===!0&&r(o,e??void 0)},children:Z(e)})})};function ou({backgroundColor:e,isSticky:n,height:o,isScrolling:i,isLastNode:r,vendor:l,balances:c,accountBase:d,classBase:p,isAccountColumnShown:u,isClassColumnShown:g,onVendorNameAndBalanceClick:h,vendorRowIndex:x}){const f=W(),m=x!=null?String(x):l.id,w=mo(),b=w.loggedInUserRole!=null&&!$o(w.loggedInUserRole),k=vo(l.id),$=b===!0&&l!=null&&!k,C=$?"pointer":"default",v=l.name;return t.jsxs(Dh,{"data-testid":y("vendor-row-root-container",m),height:o,bgColor:e,windowSize:f,children:[t.jsxs(Gh,{"data-testid":y("vendor-row-container",m),style:{cursor:C},isClickable:$,children:[t.jsx(Kh,{"data-testid":y("vendor-row-sticky-container",m),isSticky:n,windowSize:f,bgColor:e,children:t.jsxs(Yh,{"data-testid":y("vendor-row-name-container",m),windowSize:f,bgColor:e,children:[t.jsxs(st,{controller:!k,children:[t.jsx(Zh,{"data-testid":y("report-tree-vendor-row-avatar",m),children:l.logo!=null?t.jsx(Qt,{photoUrl:l.logo.toString(),styles:{width:P.nameLogoWidth.valuePx(f),height:P.nameLogoHeight.valuePx(f)}}):t.jsx(Xt,{name:v,size:s.sp4})}),t.jsx(Oe,{"data-testid":y("vendor-row-name",m),style:{cursor:C},isClickable:$,onClick:()=>{$===!0&&h(l)},children:v})]}),t.jsx(st,{controller:k,children:t.jsxs(Xh,{children:[t.jsx(Jh,{"data-testid":y("report-tree-vendor-row-avatar",m),children:t.jsx(Qh,{})}),t.jsx(eu,{className:"hyphen-text",children:N.getLocalizedStrings().common.strings.hyphen}),t.jsx(tu,{className:"not-specified-text",children:v})]})})]})}),u?t.jsx(Uh,{windowSize:f,bgColor:e,children:d!=null?t.jsx(Oe,{"data-testid":y("vendor-row-account-name",m),title:d.accountName,isClickable:!1,children:d.accountName}):t.jsx(Oe,{isClickable:!1,"data-testid":y("vendor-row-account-name",m),children:N.getLocalizedStrings().common.strings.hyphen})}):null,g?t.jsx(qh,{windowSize:f,bgColor:e,children:p!=null?t.jsx(Oe,{"data-testid":y("vendor-row-class-name",m),title:p.className,isClickable:!1,children:p.className}):t.jsx(Oe,{"data-testid":y("vendor-row-class-name",m),isClickable:!1,children:N.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(Eh,{children:c.map((B,A)=>t.jsx(nu,{balance:B,timeframeColumnIndex:A,vendor:l,vendorRowKey:m,onVendorNameAndBalanceClick:h},A))})]}),t.jsx(iu,{isScrolling:i,isLastNode:r})]})}function iu({isScrolling:e,isLastNode:n}){return n?t.jsx(Ut,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Ut,{isScrolling:e,kind:"vendor_row_separator"})}function vn(e,n,o){return ru(n,o,e)}const ru=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.account.balancesInTimeframe,i.compactedAccountsSelector=r=>po(r.accounts,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>po(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r,i.compactedAccountGroupsSelector=r=>function(l,c,d,p){switch(p){case"off":return l;case"filter_actual_nil_account_group_balances":return l.filter(u=>Oi(c(u)?.balances??[]));case"filter_forecast_nil_account_group_balances":return l.filter(u=>function(g){let h=!1;if(g!=null){for(const x of g)if(x.forecast!=null&&x.forecast.amount!==0){h=!0;break}}return h}(c(u)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return l.filter(u=>function(g){let h=!1;if(g!=null){for(const x of g)if(x.forecast!=null&&x.forecast.amount!==0||x.balance!=null&&x.balance.amount!==0){h=!0;break}}return h}(c(u)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return l.filter(u=>(c(u)?.balances??[]).length>0)}}(r,i.acGroupBalanceSelector,0,n),i};function po(e,n,o){switch(o){case"off":return e;case"filter_actual_nil_balances":return e.filter(i=>function(r){let l=!1;if(r!=null){for(const c of r)if(c.totalBalance!=null&&c.totalBalance.amount!==0){l=!0;break}}return l}((n(i)?.balances??[]).concat(n(i)?.additionalBalances??[]))||Oi((n(i)?.balances??[]).concat(n(i)?.additionalBalances??[])));case"filter_forecast_nil_balances":case"filter_actual_forecast_nil_balances":return e.filter(i=>au(n(i)?.balances??[]))}}function Oi(e){let n=!1;if(e!=null){for(const o of e)if(o.balance.amount!==0){n=!0;break}}return n}function au(e){let n=!1;if(e!=null){for(const o of e)if(o.totalForecast!=null&&o.totalForecast.amount!==0||o.totalBalance!=null&&o.totalBalance.amount!==0){n=!0;break}}return n}function Ii(e,n,o=-1,i=!0){const r=o!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=function(p,u){return p.length>0?p:bo(Array(u),null)}([],o)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...i?e.additionalBalances:[]],thisPeriodIndex:c}}const lu=a.div`
|
|
2243
|
-
display: flex;
|
|
2244
|
-
flex: 1 1 auto;
|
|
2245
|
-
width: fit-content;
|
|
2246
|
-
min-width: 100%;
|
|
2247
|
-
flex-direction: column;
|
|
2248
|
-
height: ${e=>e.height}px;
|
|
2249
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2250
|
-
`,cu=a.div`
|
|
2251
|
-
user-select: none;
|
|
2252
|
-
display: flex;
|
|
2253
|
-
flex: 1 1 auto;
|
|
2254
|
-
flex-flow: row;
|
|
2255
|
-
justify-content: flex-start;
|
|
2256
|
-
align-items: center;
|
|
2257
|
-
&:hover {
|
|
2258
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2259
|
-
}
|
|
2260
|
-
`,su=a.div`
|
|
2261
|
-
display: flex;
|
|
2262
|
-
flex: 1 0 auto;
|
|
2263
|
-
flex-direction: row;
|
|
2264
|
-
justify-content: flex-end;
|
|
2265
|
-
`,du=a.div`
|
|
2266
|
-
display: flex;
|
|
2267
|
-
flex-direction: row;
|
|
2268
|
-
justify-content: flex-start;
|
|
2269
|
-
`,Ni=a(_)`
|
|
2270
|
-
user-select: none;
|
|
2271
|
-
min-width: ${j.balanceWidth};
|
|
2272
|
-
max-width: ${j.balanceWidth};
|
|
2273
|
-
text-align: right;
|
|
2274
|
-
margin-left: ${j.balanceLeftMargin};
|
|
2275
|
-
color: ${e=>e.theme.colors.primary};
|
|
2276
|
-
`,hu=a(Ni)`
|
|
2277
|
-
color: ${e=>e.theme.colors.hero};
|
|
2278
|
-
&:hover {
|
|
2279
|
-
color: inherit;
|
|
2280
|
-
}
|
|
2281
|
-
`,uu=a.div`
|
|
2282
|
-
display: flex;
|
|
2283
|
-
flex-direction: row;
|
|
2284
|
-
flex-shrink: 2;
|
|
2285
|
-
flex-grow: 1;
|
|
2286
|
-
align-items: center;
|
|
2287
|
-
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2288
|
-
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2289
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2290
|
-
${({isSticky:e})=>e?z`
|
|
2291
|
-
position: -webkit-sticky;
|
|
2292
|
-
position: sticky;
|
|
2293
|
-
top: ${s.sp0};
|
|
2294
|
-
left: ${s.sp0};
|
|
2295
|
-
`:null}
|
|
2296
|
-
`,Mi=a(_)`
|
|
2297
|
-
user-select: none;
|
|
2298
|
-
clear: both;
|
|
2299
|
-
display: inline-block;
|
|
2300
|
-
overflow: hidden;
|
|
2301
|
-
white-space: nowrap;
|
|
2302
|
-
text-overflow: ellipsis;
|
|
2303
|
-
text-align: left;
|
|
2304
|
-
margin-left: ${s.sp4};
|
|
2305
|
-
color: ${e=>e.theme.colors.primary};
|
|
2306
|
-
`,pu=a(Mi)`
|
|
2307
|
-
color: ${e=>e.theme.colors.hero};
|
|
2308
|
-
&:hover {
|
|
2309
|
-
color: inherit;
|
|
2310
|
-
}
|
|
2311
|
-
`,gu=({type:e,balance:n,collapsed:o,isActualVsForecastOn:i,compareMode:r})=>{const l=o===!0?hu:Ni;return t.jsxs(du,{children:[ie(e)===!0||i?t.jsx(l,{children:Z(n)}):t.jsx(l,{children:Q(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Q(n)}),t.jsx(l,{children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function xu({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:p,compareMode:u,isScrolling:g,isOpen:h,isLeaf:x,isLastNode:f,onClick:m}){const w=le(),b=W(),k=!x,$=k?"pointer":"default",C=l==="collapsed",v=l==="hidden",B=v===!0?S[6]:S[4],A=C===!0?pu:Mi,M=C===!0?wo:yo,V=C===!0?w.colors.hero:w.colors.primary;return t.jsxs(lu,{height:r,bgColor:n,"data-testid":y("pandl-report-account-group-row-root-container",i),children:[t.jsxs(cu,{"data-testid":y("pandl-report-account-group-row-container",i),style:{cursor:$},isClickable:k,onClick:()=>m?.(i),children:[de(e)===!0?t.jsxs(uu,{bgColor:n,isSticky:o,windowSize:b,children:[v===!1?t.jsx(M,{color:V,style:{width:S[3],height:S[3]}}):null,t.jsx(A,{style:{marginLeft:B},children:c})]}):null,be(e)===!0?t.jsx(su,{children:d.map((D,K)=>t.jsx(gu,{type:e,accountGroupName:c,balance:D,isActualVsForecastOn:p,compareMode:u,collapsed:C},K))}):null]}),t.jsx(fu,{isScrolling:g,type:e,isLeaf:x,isLastNode:f,isOpen:h})]})}function fu({isScrolling:e,type:n,isLastNode:o,isOpen:i}){let r="ac_group_row_separator";return o&&!i?r="section_row_separator":i&&(r=de(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(ke,{isScrolling:e,kind:r})}const mu=a.div`
|
|
2312
|
-
display: flex;
|
|
2313
|
-
flex: 1 1 auto;
|
|
2314
|
-
width: fit-content;
|
|
2315
|
-
min-width: 100%;
|
|
2316
|
-
flex-direction: column;
|
|
2317
|
-
height: ${e=>e.height}px;
|
|
2318
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2319
|
-
`,wu=a.div`
|
|
2320
|
-
user-select: none;
|
|
2321
|
-
display: flex;
|
|
2322
|
-
flex: 1 1 auto;
|
|
2323
|
-
flex-flow: row;
|
|
2324
|
-
justify-content: flex-start;
|
|
2325
|
-
align-items: center;
|
|
2326
|
-
&:hover {
|
|
2327
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2328
|
-
}
|
|
2329
|
-
`,yu=a.div`
|
|
2330
|
-
display: flex;
|
|
2331
|
-
flex: 1 0 auto;
|
|
2332
|
-
flex-direction: row;
|
|
2333
|
-
justify-content: flex-end;
|
|
2334
|
-
`,bu=a.div`
|
|
2335
|
-
display: flex;
|
|
2336
|
-
flex-direction: row;
|
|
2337
|
-
justify-content: flex-start;
|
|
2338
|
-
`,Wi=a(_)`
|
|
2339
|
-
user-select: none;
|
|
2340
|
-
min-width: ${j.balanceWidth};
|
|
2341
|
-
max-width: ${j.balanceWidth};
|
|
2342
|
-
text-align: right;
|
|
2343
|
-
margin-left: ${j.balanceLeftMargin};
|
|
2344
|
-
color: ${e=>e.theme.colors.primary};
|
|
2345
|
-
`,ku=a(Wi)`
|
|
2346
|
-
color: ${e=>e.theme.colors.hero};
|
|
2347
|
-
&:hover {
|
|
2348
|
-
color: inherit;
|
|
2349
|
-
}
|
|
2350
|
-
`,ju=a.div`
|
|
2351
|
-
display: flex;
|
|
2352
|
-
flex-direction: row;
|
|
2353
|
-
flex-shrink: 2;
|
|
2354
|
-
flex-grow: 1;
|
|
2355
|
-
align-items: center;
|
|
2356
|
-
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2357
|
-
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2358
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2359
|
-
${({isSticky:e})=>e?z`
|
|
2360
|
-
position: -webkit-sticky;
|
|
2361
|
-
position: sticky;
|
|
2362
|
-
top: ${s.sp0};
|
|
2363
|
-
left: ${s.sp0};
|
|
2364
|
-
`:null}
|
|
2365
|
-
`,Pi=a(_)`
|
|
2366
|
-
user-select: none;
|
|
2367
|
-
clear: both;
|
|
2368
|
-
display: inline-block;
|
|
2369
|
-
overflow: hidden;
|
|
2370
|
-
white-space: nowrap;
|
|
2371
|
-
text-overflow: ellipsis;
|
|
2372
|
-
text-align: left;
|
|
2373
|
-
margin-left: ${s.sp2};
|
|
2374
|
-
color: ${e=>e.theme.colors.primary};
|
|
2375
|
-
`,Su=a(Pi)`
|
|
2376
|
-
color: ${e=>e.theme.colors.hero};
|
|
2377
|
-
&:hover {
|
|
2378
|
-
color: inherit;
|
|
2379
|
-
}
|
|
2380
|
-
`,Cu=({type:e,balance:n,collapsed:o,isActualVsForecastOn:i,compareMode:r})=>{const l=o===!0?ku:Wi;return t.jsxs(bu,{children:[ie(e)===!0||i?t.jsx(l,{children:Z(n)}):t.jsx(l,{children:Q(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Q(n)}),t.jsx(l,{children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function $u({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:p,compareMode:u,isScrolling:g,isOpen:h,isLeaf:x,isLastNode:f,onClick:m}){const w=W(),b=le(),k=!x,$=k?"pointer":"default",C=l==="collapsed",v=C===!0?Su:Pi,[B,A]=T.useState(!1),M=c.length>0?c.substring(0,1).toUpperCase():"";return t.jsxs(mu,{"data-testid":y("pandl-account-group-row-root-container",i),height:r,bgColor:n,children:[t.jsxs(wu,{"data-testid":y("pandl-account-group-row-container",i),onMouseOver:()=>A(!0),onMouseLeave:()=>A(!1),style:{cursor:$},isClickable:k,onClick:()=>m?.(i),children:[de(e)===!0?t.jsxs(ju,{bgColor:n,isSticky:o,windowSize:w,children:[t.jsx(Ce,{showCollapsedIcon:C,showIcon:B&&k,firstLetter:M,color:O(b.colors.primary)}),t.jsx(v,{children:c})]}):null,be(e)===!0?t.jsx(yu,{children:d.map((V,D)=>t.jsx(Cu,{type:e,accountGroupName:c,balance:V,isActualVsForecastOn:p,compareMode:u,collapsed:C},D))}):null]}),t.jsx(vu,{isScrolling:g,type:e,isLeaf:x,isLastNode:f,isOpen:h})]})}function vu({isScrolling:e,type:n,isLastNode:o,isOpen:i}){let r="ac_group_row_separator";return o&&!i?r="section_row_separator":i&&(r=de(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(ke,{isScrolling:e,kind:r})}const _u=a.div`
|
|
2381
|
-
display: flex;
|
|
2382
|
-
flex: 1 1 auto;
|
|
2383
|
-
width: fit-content;
|
|
2384
|
-
min-width: 100%;
|
|
2385
|
-
flex-direction: column;
|
|
2386
|
-
height: ${e=>e.height}px;
|
|
2387
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2388
|
-
`,Lu=a.div`
|
|
2389
|
-
user-select: none;
|
|
2390
|
-
display: flex;
|
|
2391
|
-
flex: 1 1 auto;
|
|
2392
|
-
flex-flow: row;
|
|
2393
|
-
justify-content: flex-start;
|
|
2394
|
-
align-items: center;
|
|
2395
|
-
`,Au=a.div`
|
|
2396
|
-
display: flex;
|
|
2397
|
-
flex: 1 0 auto;
|
|
2398
|
-
flex-direction: row;
|
|
2399
|
-
justify-content: flex-end;
|
|
2400
|
-
`,Bu=a.div`
|
|
2401
|
-
display: flex;
|
|
2402
|
-
flex-direction: row;
|
|
2403
|
-
justify-content: flex-start;
|
|
2404
|
-
`,ot=a(_)`
|
|
2405
|
-
user-select: none;
|
|
2406
|
-
min-width: ${j.balanceWidth};
|
|
2407
|
-
max-width: ${j.balanceWidth};
|
|
2408
|
-
text-align: right;
|
|
2409
|
-
margin-left: ${j.balanceLeftMargin};
|
|
2410
|
-
color: ${e=>e.theme.colors.hero};
|
|
2411
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2412
|
-
&:hover {
|
|
2413
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2414
|
-
}
|
|
2415
|
-
`,Ou=a.div`
|
|
2416
|
-
display: flex;
|
|
2417
|
-
flex-direction: row;
|
|
2418
|
-
flex-shrink: 2;
|
|
2419
|
-
flex-grow: 1;
|
|
2420
|
-
align-items: center;
|
|
2421
|
-
${({containerHeight:e})=>e!=null?z`
|
|
2422
|
-
height: ${e-1}px;
|
|
2423
|
-
`:null}
|
|
2424
|
-
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2425
|
-
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2426
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2427
|
-
color: ${e=>e.isSubAccountLeaf?e.theme.colors.grey1:e.theme.colors.hero};
|
|
2428
|
-
cursor: ${e=>e.isRowClickable?"pointer":"default"};
|
|
2429
|
-
&:hover {
|
|
2430
|
-
color: ${e=>e.isRowClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2431
|
-
}
|
|
2432
|
-
${({isSticky:e})=>e?z`
|
|
2433
|
-
position: -webkit-sticky;
|
|
2434
|
-
position: sticky;
|
|
2435
|
-
top: ${s.sp0};
|
|
2436
|
-
left: ${s.sp0};
|
|
2437
|
-
`:null}
|
|
2438
|
-
`,Iu=a.div`
|
|
2439
|
-
display: flex;
|
|
2440
|
-
flex-direction: row;
|
|
2441
|
-
flex-shrink: 2;
|
|
2442
|
-
flex-grow: 1;
|
|
2443
|
-
align-items: center;
|
|
2444
|
-
${({containerHeight:e})=>e!=null?z`
|
|
2445
|
-
height: ${e-1}px;
|
|
2446
|
-
`:null}
|
|
2447
|
-
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2448
|
-
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2449
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2450
|
-
${({isSticky:e})=>e?z`
|
|
2451
|
-
position: -webkit-sticky;
|
|
2452
|
-
position: sticky;
|
|
2453
|
-
top: ${s.sp0};
|
|
2454
|
-
left: ${s.sp0};
|
|
2455
|
-
`:null}
|
|
2456
|
-
`,Nu=a(_)`
|
|
2457
|
-
user-select: none;
|
|
2458
|
-
clear: both;
|
|
2459
|
-
display: inline-block;
|
|
2460
|
-
text-align: left;
|
|
2461
|
-
`,Mu=a(_)`
|
|
2462
|
-
user-select: none;
|
|
2463
|
-
clear: both;
|
|
2464
|
-
display: inline-block;
|
|
2465
|
-
overflow: hidden;
|
|
2466
|
-
white-space: nowrap;
|
|
2467
|
-
text-overflow: ellipsis;
|
|
2468
|
-
text-align: left;
|
|
2469
|
-
margin-left: ${({titleIndentExtraPx:e})=>e!=null&&e>0?`calc(${s.sp6} + ${e}px)`:s.sp6};
|
|
2470
|
-
color: ${e=>e.theme.colors.hero};
|
|
2471
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2472
|
-
&:hover {
|
|
2473
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2474
|
-
}
|
|
2475
|
-
`,Wu=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i,account:r,onAccountBalanceClick:l,stopRowClickPropagation:c})=>{const d=r!=null&&n!=null&&l!=null&&!(n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent");return t.jsxs(Bu,{"data-testid":y("account-row-balance-element",e),children:[ie(e)===!0||o?t.jsx(ot,{"data-testid":y("account-row-balance-actual",e),isClickable:d,onClick:p=>{c===!0&&p.stopPropagation(),d===!0&&r!=null&&n!=null&&l?.(r,n,bt(r,n))},children:Z(n)}):t.jsx(ot,{"data-testid":y("account-row-balance-forecast",e),isClickable:!1,children:Q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(ot,{isClickable:!1,"data-testid":y("account-row-balance-forecast",e),children:Q(n)}),t.jsx(ot,{"data-testid":y("account-row-balance-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function Pu({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,accountBalances:l,isActualVsForecastOn:c,compareMode:d,isScrolling:p,isLeaf:u,isLastNode:g,account:h,titleIndentExtraPx:x,horizontalTreeView:f,horizontalCollapse:m,onAccountBalanceClick:w}){const b=W(),{common:{strings:{hyphen:k}}}=N.getLocalizedStrings(),$=h?.accountDescription?h.accountDescription:k,C=h!=null&&De(h)===!0||h?.accountName?h.accountName:$;return t.jsxs(_u,{height:r,bgColor:n,"data-testid":y("account-row-root-container",i),children:[t.jsxs(Lu,{"data-testid":y("account-row-container",i),onClick:m!=null?()=>m.onRowClick():void 0,children:[de(e)===!0?f!=null?t.jsx(Ou,{isSticky:o,windowSize:b,bgColor:n,containerHeight:r,isRowClickable:m!=null,isSubAccountLeaf:f.isLeaf,children:t.jsx(Nu,{title:C,children:t.jsx(un,{classAnscestorMetadata:[],collapsed:m!=null&&!m.isOpen,depth:f.treeDepth,displayName:C,hasChildren:f.hasChildren,hasSiblings:f.hasSiblings,isLastNode:f.isLastNode,isLeaf:f.isLeaf,noMarginForAccount:!1,subAccountAnscestorMetadata:f.subAccountAncestorMetadata})})}):t.jsx(Iu,{isSticky:o,windowSize:b,bgColor:n,children:t.jsx(Mu,{isClickable:!1,title:C,titleIndentExtraPx:x,children:C})}):null,be(e)===!0?t.jsx(Au,{children:l.map((v,B)=>t.jsx(Wu,{type:e,isActualVsForecastOn:c,compareMode:d,balance:v,account:h,stopRowClickPropagation:m!=null,onAccountBalanceClick:w==null?void 0:(A,M,V)=>{w(i,A,M,V)}},B))}):null]}),t.jsx(Fu,{isScrolling:p,type:e,isLeaf:u,isLastNode:g})]})}function Fu({isScrolling:e,isLastNode:n,type:o}){const i=n?"ac_group_row_separator":de(o)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(ke,{isScrolling:e,kind:i})}const zu=a.div`
|
|
2476
|
-
user-select: none;
|
|
2477
|
-
display: flex;
|
|
2478
|
-
flex: 1 1 auto;
|
|
2479
|
-
width: fit-content;
|
|
2480
|
-
min-width: 100%;
|
|
2481
|
-
height: ${e=>e.height}px;
|
|
2482
|
-
flex-flow: row;
|
|
2483
|
-
justify-content: flex-start;
|
|
2484
|
-
align-items: center;
|
|
2485
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2486
|
-
`,Tu=a.div`
|
|
2487
|
-
display: flex;
|
|
2488
|
-
flex: 1 0 auto;
|
|
2489
|
-
flex-direction: row;
|
|
2490
|
-
justify-content: flex-end;
|
|
2491
|
-
`,go=a.div`
|
|
2492
|
-
display: flex;
|
|
2493
|
-
max-height: 54px;
|
|
2494
|
-
min-height: 54px;
|
|
2495
|
-
min-width: ${j.balanceWidthInPx}px;
|
|
2496
|
-
justify-content: center;
|
|
2497
|
-
align-items: center;
|
|
2498
|
-
background-color: ${e=>e.theme.colors.background};
|
|
2499
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2500
|
-
border-radius: ${s.sp2};
|
|
2501
|
-
margin-left: ${j.balanceLeftMarginInPx}px;
|
|
2502
|
-
color: ${e=>e.theme.colors.primary};
|
|
2503
|
-
`,Vu=a.div`
|
|
2504
|
-
display: flex;
|
|
2505
|
-
flex-direction: row;
|
|
2506
|
-
align-items: center;
|
|
2507
|
-
justify-content: center;
|
|
2508
|
-
height: ${j.balanceHeight};
|
|
2509
|
-
max-width: ${j.balanceWidthInPx-2}px;
|
|
2510
|
-
width: ${j.balanceWidthInPx-2}px;
|
|
2511
|
-
min-width: 0;
|
|
2512
|
-
`,Du=a(_)`
|
|
2513
|
-
display: flex;
|
|
2514
|
-
user-select: none;
|
|
2515
|
-
flex-direction: row;
|
|
2516
|
-
justify-content: center;
|
|
2517
|
-
align-items: center;
|
|
2518
|
-
height: ${j.balanceHeight};
|
|
2519
|
-
max-width: ${j.balanceWidthInPx-2}px;
|
|
2520
|
-
width: ${j.balanceWidthInPx-2}px;
|
|
2521
|
-
text-align: center;
|
|
2522
|
-
overflow: hidden;
|
|
2523
|
-
text-overflow: ellipsis;
|
|
2524
|
-
white-space: nowrap;
|
|
2525
|
-
`,Gu=a.div`
|
|
2526
|
-
height: 100%;
|
|
2527
|
-
display: inline-block;
|
|
2528
|
-
flex-direction: row;
|
|
2529
|
-
align-items: center;
|
|
2530
|
-
min-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2531
|
-
color: ${e=>e.theme.colors.grey5};
|
|
2532
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2533
|
-
border: 1px solid ${e=>e.bgColor?.hex()};
|
|
2534
|
-
${({isSticky:e})=>e?z`
|
|
2535
|
-
position: -webkit-sticky;
|
|
2536
|
-
position: sticky;
|
|
2537
|
-
top: ${s.sp0};
|
|
2538
|
-
left: ${s.sp0};
|
|
2539
|
-
z-index: 20;
|
|
2540
|
-
`:null}
|
|
2541
|
-
`;function Eu({text:e}){const n=le();return t.jsx(Vu,{children:t.jsx(nr,{text:e,style:{width:"100%",minWidth:0},itemTextStyle:{color:n.colors.primary,textAlign:"center"}})})}function Ru({type:e,backgroundColor:n,isSticky:o,height:i,classColumns:r}){const l=W();return t.jsxs(zu,{height:i,bgColor:n,children:[de(e)===!0?t.jsx(Gu,{"aria-hidden":!0,isSticky:o,windowSize:l,bgColor:n}):null,t.jsxs(Tu,{children:[r.map((c,d)=>t.jsx(go,{children:t.jsx(Eu,{text:c.className})},c.classId??d)),t.jsx(go,{children:t.jsx(Du,{children:"Total"})},"total")]})]})}const Hu=a.div`
|
|
2542
|
-
display: flex;
|
|
2543
|
-
flex: 1 1 auto;
|
|
2544
|
-
width: fit-content;
|
|
2545
|
-
min-width: 100%;
|
|
2546
|
-
flex-direction: column;
|
|
2547
|
-
height: ${e=>e.height}px;
|
|
2548
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2549
|
-
`,Ku=a.div`
|
|
2550
|
-
user-select: none;
|
|
2551
|
-
display: flex;
|
|
2552
|
-
flex: 1 1 auto;
|
|
2553
|
-
flex-flow: row;
|
|
2554
|
-
justify-content: flex-start;
|
|
2555
|
-
align-items: center;
|
|
2556
|
-
`,Yu=a.div`
|
|
2557
|
-
display: flex;
|
|
2558
|
-
flex: 1 0 auto;
|
|
2559
|
-
flex-direction: row;
|
|
2560
|
-
justify-content: flex-end;
|
|
2561
|
-
`,Uu=a.div`
|
|
2562
|
-
display: flex;
|
|
2563
|
-
flex-direction: row;
|
|
2564
|
-
justify-content: flex-start;
|
|
2565
|
-
`,it=a(_)`
|
|
2566
|
-
user-select: none;
|
|
2567
|
-
max-width: ${j.balanceWidth};
|
|
2568
|
-
min-width: ${j.balanceWidth};
|
|
2569
|
-
text-align: right;
|
|
2570
|
-
margin-left: ${j.balanceLeftMargin};
|
|
2571
|
-
`,qu=a.div`
|
|
2572
|
-
display: flex;
|
|
2573
|
-
flex-direction: row;
|
|
2574
|
-
flex-shrink: 2;
|
|
2575
|
-
flex-grow: 1;
|
|
2576
|
-
align-items: center;
|
|
2577
|
-
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2578
|
-
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2579
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2580
|
-
${({isSticky:e})=>e?z`
|
|
2581
|
-
position: -webkit-sticky;
|
|
2582
|
-
position: sticky;
|
|
2583
|
-
top: ${s.sp0};
|
|
2584
|
-
left: ${s.sp0};
|
|
2585
|
-
`:null}
|
|
2586
|
-
`,Zu=a.div`
|
|
2587
|
-
display: flex;
|
|
2588
|
-
flex-grow: 8;
|
|
2589
|
-
`,Ju=a(_)`
|
|
2590
|
-
user-select: none;
|
|
2591
|
-
user-select: none;
|
|
2592
|
-
clear: both;
|
|
2593
|
-
display: inline-block;
|
|
2594
|
-
overflow: hidden;
|
|
2595
|
-
white-space: nowrap;
|
|
2596
|
-
text-overflow: ellipsis;
|
|
2597
|
-
text-align: left;
|
|
2598
|
-
margin-left: ${s.sp2};
|
|
2599
|
-
`,Qu=a(Se)`
|
|
2600
|
-
display: flex;
|
|
2601
|
-
color: ${e=>e.theme.colors.primary};
|
|
2602
|
-
align-items: center;
|
|
2603
|
-
flex-direction: row;
|
|
2604
|
-
justify-content: flex-end;
|
|
2605
|
-
padding: 1px 6px;
|
|
2606
|
-
height: 20px;
|
|
2607
|
-
border: 1px solid ${e=>e.theme.colors.primary};
|
|
2608
|
-
border-radius: ${s.sp1};
|
|
2609
|
-
margin: 0 ${s.sp5} 0 ${s.sp3};
|
|
2610
|
-
`,Xu=({metadata:e,depth:n})=>n===0?null:e.hasSibling!==!0||e.isLastNode?t.jsx(tr,{}):t.jsx(er,{}),ep=({type:e,balance:n,color:o,isActualVsForecastOn:i,compareMode:r})=>t.jsxs(Uu,{children:[ie(e)===!0||i?t.jsx(it,{style:{color:o},children:Z(n)}):t.jsx(it,{style:{color:o},children:Q(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(it,{style:{color:o},children:Q(n)}),t.jsx(it,{style:{color:o},children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]});function tp({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,className:l,classCode:c,sectionBalances:d,isActualVsForecastOn:p,compareMode:u,hasChildren:g,isScrolling:h,isOpen:x,isLeaf:f,metadata:m,showClassAccountNumber:w,onClick:b,depth:k}){const $=W(),C=!f,v=C?"pointer":"default",B=le().colors.primary,A=l.length>0?l.substr(0,1).toUpperCase():"",[M,V]=T.useState(!1),D=m.classAncestorMetadata??[];return t.jsxs(Hu,{"data-testid":y("class-row-root-container",i),height:r,bgColor:n,children:[t.jsxs(Ku,{"data-testid":y("class-row-container",i),style:{cursor:v},onClick:()=>b?.(i),onMouseOver:()=>V(!0),onMouseLeave:()=>V(!1),children:[de(e)===!0?t.jsxs(qu,{isSticky:o,windowSize:$,bgColor:n,children:[t.jsx(ma,{name:l,ancestorMetadata:D,depth:k}),t.jsx(Xu,{metadata:D[k],depth:k}),t.jsx(Ce,{color:O(B),showCollapsedIcon:!x,showIcon:M&&C,firstLetter:A,showTreeLine:g}),t.jsx(Zu,{children:t.jsx(Ju,{style:{color:B},children:l})}),M===!0&&w===!0&&c!==void 0&&t.jsx(Qu,{children:c})]}):null,be(e)===!0?t.jsx(Yu,{children:d.map((K,te)=>t.jsx(ep,{type:e,sectionName:l,balance:K,isActualVsForecastOn:p,compareMode:u,color:B},te))}):null]}),t.jsx(np,{isScrolling:h,isLeaf:f,isOpen:x})]})}function np({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(ke,{isScrolling:e,kind:"section_row_separator"}):null}const op=a.div`
|
|
2611
|
-
display: flex;
|
|
2612
|
-
flex: 1 1 auto;
|
|
2613
|
-
width: fit-content;
|
|
2614
|
-
min-width: 100%;
|
|
2615
|
-
flex-direction: column;
|
|
2616
|
-
height: ${e=>e.height}px;
|
|
2617
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2618
|
-
`,ip=a.div`
|
|
2619
|
-
user-select: none;
|
|
2620
|
-
display: flex;
|
|
2621
|
-
flex: 1 1 auto;
|
|
2622
|
-
flex-flow: row;
|
|
2623
|
-
justify-content: flex-start;
|
|
2624
|
-
align-items: center;
|
|
2625
|
-
`,rp=a.div`
|
|
2626
|
-
display: flex;
|
|
2627
|
-
flex: 1 0 auto;
|
|
2628
|
-
flex-direction: row;
|
|
2629
|
-
justify-content: flex-end;
|
|
2630
|
-
`,ap=a.div`
|
|
2631
|
-
display: flex;
|
|
2632
|
-
flex-direction: row;
|
|
2633
|
-
justify-content: flex-start;
|
|
2634
|
-
`,rt=a(_)`
|
|
2635
|
-
user-select: none;
|
|
2636
|
-
max-width: ${j.balanceWidth};
|
|
2637
|
-
min-width: ${j.balanceWidth};
|
|
2638
|
-
text-align: right;
|
|
2639
|
-
margin-left: ${j.balanceLeftMargin};
|
|
2640
|
-
`,lp=a.div`
|
|
2641
|
-
display: flex;
|
|
2642
|
-
flex-direction: row;
|
|
2643
|
-
flex-shrink: 2;
|
|
2644
|
-
flex-grow: 1;
|
|
2645
|
-
align-items: center;
|
|
2646
|
-
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2647
|
-
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2648
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2649
|
-
${({isSticky:e})=>e?z`
|
|
2650
|
-
position: -webkit-sticky;
|
|
2651
|
-
position: sticky;
|
|
2652
|
-
top: ${s.sp0};
|
|
2653
|
-
left: ${s.sp0};
|
|
2654
|
-
`:null}
|
|
2655
|
-
`,cp=a(_)`
|
|
2656
|
-
user-select: none;
|
|
2657
|
-
user-select: none;
|
|
2658
|
-
clear: both;
|
|
2659
|
-
display: inline-block;
|
|
2660
|
-
overflow: hidden;
|
|
2661
|
-
white-space: nowrap;
|
|
2662
|
-
text-overflow: ellipsis;
|
|
2663
|
-
text-align: left;
|
|
2664
|
-
margin-left: ${s.sp2};
|
|
2665
|
-
`,sp=({type:e,balance:n,color:o,isActualVsForecastOn:i,compareMode:r})=>t.jsxs(ap,{children:[ie(e)===!0||i?t.jsx(rt,{style:{color:o},children:Z(n)}):t.jsx(rt,{style:{color:o},children:Q(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(rt,{style:{color:o},children:Q(n)}),t.jsx(rt,{style:{color:o},children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]});function _n({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,sectionName:l,sectionBalances:c,isActualVsForecastOn:d,compareMode:p,sectionColor:u,isScrolling:g,isOpen:h,isLeaf:x,onClick:f}){const m=W(),w=!x,b=w?"pointer":"default",k=l.length>0?l.substring(0,1).toUpperCase():"",[$,C]=T.useState(!1);return t.jsxs(op,{"data-testid":y("section-row",i),height:r,bgColor:n,children:[t.jsxs(ip,{"data-testid":y("section-row-container",i),style:{cursor:b},onClick:()=>f?.(i),onMouseOver:()=>C(!0),onMouseLeave:()=>C(!1),children:[de(e)===!0?t.jsxs(lp,{isSticky:o,windowSize:m,bgColor:n,children:[t.jsx(Ce,{color:O(u),showCollapsedIcon:!h,showIcon:$&&w,firstLetter:k}),t.jsx(cp,{style:{color:u},children:l})," "]}):null,be(e)===!0?t.jsx(rp,{children:c.map((v,B)=>t.jsx(sp,{type:e,sectionName:l,balance:v,isActualVsForecastOn:d,compareMode:p,color:u},B))}):null]}),t.jsx(dp,{isScrolling:g,isLeaf:x,isOpen:h})]})}function dp({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(ke,{isScrolling:e,kind:"section_row_separator"}):null}const hp=a.div`
|
|
2666
|
-
display: flex;
|
|
2667
|
-
flex: 1 1 auto;
|
|
2668
|
-
width: fit-content;
|
|
2669
|
-
min-width: 100%;
|
|
2670
|
-
flex-direction: column;
|
|
2671
|
-
height: ${e=>e.height-1}px;
|
|
2672
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2673
|
-
`,up=a.div`
|
|
2674
|
-
user-select: none;
|
|
2675
|
-
display: flex;
|
|
2676
|
-
flex: 1 1 auto;
|
|
2677
|
-
flex-flow: row;
|
|
2678
|
-
justify-content: flex-start;
|
|
2679
|
-
align-items: center;
|
|
2680
|
-
`,pp=a.div`
|
|
2681
|
-
display: flex;
|
|
2682
|
-
flex: 1 0 auto;
|
|
2683
|
-
flex-direction: row;
|
|
2684
|
-
justify-content: flex-end;
|
|
2685
|
-
`,gp=a.div`
|
|
2686
|
-
display: flex;
|
|
2687
|
-
flex-direction: row;
|
|
2688
|
-
justify-content: flex-start;
|
|
2689
|
-
`,at=a(_)`
|
|
2690
|
-
user-select: none;
|
|
2691
|
-
min-width: ${j.balanceWidth};
|
|
2692
|
-
max-width: ${j.balanceWidth};
|
|
2693
|
-
text-align: right;
|
|
2694
|
-
margin-left: ${j.balanceLeftMargin};
|
|
2695
|
-
color: ${e=>e.theme.colors.hero};
|
|
2696
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2697
|
-
&:hover {
|
|
2698
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2699
|
-
}
|
|
2700
|
-
`,xp=a.div`
|
|
2701
|
-
display: flex;
|
|
2702
|
-
flex-direction: row;
|
|
2703
|
-
flex-shrink: 2;
|
|
2704
|
-
flex-grow: 1;
|
|
2705
|
-
align-items: center;
|
|
2706
|
-
height: ${e=>e.containerHeight-1}px; // Else bottom line doesnt show up
|
|
2707
|
-
// because the height of the svg is much larger
|
|
2708
|
-
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2709
|
-
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2710
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2711
|
-
color: ${e=>e.theme.colors.hero};
|
|
2712
|
-
|
|
2713
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2714
|
-
&:hover {
|
|
2715
|
-
color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
|
|
2716
|
-
}
|
|
2717
|
-
${({isSticky:e})=>e?z`
|
|
2718
|
-
position: -webkit-sticky;
|
|
2719
|
-
position: sticky;
|
|
2720
|
-
top: ${s.sp0};
|
|
2721
|
-
left: ${s.sp0};
|
|
2722
|
-
`:null}
|
|
2723
|
-
`,fp=a(_)`
|
|
2724
|
-
user-select: none;
|
|
2725
|
-
clear: both;
|
|
2726
|
-
display: inline-block;
|
|
2727
|
-
text-align: left;
|
|
2728
|
-
`,mp=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i,account:r,showTotal:l,onAccountBalanceClick:c})=>{const d=n!=null&&gr(n?.type),p=r!=null&&n!=null&&c!=null&&d!==!0,u=l===!0?Lo(n):Z(n),g=l===!0?Tt(n):Q(n),h=l===!0?Ao(n):ce(n),x=l===!0?Bo(n):se(n);return t.jsxs(gp,{"data-testid":y("account-row-balance-element",e),children:[ie(e)===!0||o?t.jsx(at,{"data-testid":y("account-row-balance-actual",e),isClickable:p,onClick:f=>{f.stopPropagation(),p===!0&&r!=null&&n!=null&&c?.(r,n,bt(r,n))},children:u}):t.jsx(at,{"data-testid":y("account-row-balance-forecast",e),isClickable:!1,children:g}),o?t.jsxs(t.Fragment,{children:[t.jsx(at,{"data-testid":y("account-row-balance-forecast",e),isClickable:!1,children:g}),t.jsx(at,{"data-testid":y("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?h:x})]}):null]})};function wp({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,classDepth:l,accountBalances:c,isActualVsForecastOn:d,compareMode:p,metadata:u,isScrolling:g,noMarginForAccount:h,isLeaf:x,isOpen:f,isLastNode:m,account:w,onAccountBalanceClick:b,onClick:k}){const $=W(),C=w!=null?w.id.length-1:0,v=w?.hasSiblings??!1,B=w!=null&&w.children.length!==0,A=u,{common:{strings:{empty:M}}}=N.getLocalizedStrings(),V=w?.account.accountDescription?w.account.accountDescription:M,D=w?.account.accountName?w.account.accountName:V;return t.jsxs(hp,{"data-testid":y("sub-account-row",i),height:r,bgColor:n,children:[t.jsxs(up,{"data-testid":y("sub-account-row-container",i),onClick:()=>k?.(i),children:[t.jsx(xp,{isClickable:B,isSticky:o,windowSize:$,bgColor:n,containerHeight:r,children:t.jsx(fp,{title:D,children:t.jsx(un,{displayName:D,depth:C,classDepth:l,isLastNode:m,hasChildren:B,hasSiblings:v,isLeaf:x,collapsed:!f,subAccountAnscestorMetadata:A.subAccountAncestorMetadata,classAnscestorMetadata:A.classAncestorMetadata??[],noMarginForAccount:h})})}),be(e)===!0?t.jsx(pp,{children:c.map((K,te)=>t.jsx(mp,{type:e,isActualVsForecastOn:d,compareMode:p,balance:K,account:w?.account,showTotal:!f,onAccountBalanceClick:b==null?void 0:(J,re,he)=>{b(i,J,re,he)}},te))}):null]}),t.jsx(yp,{isScrolling:g,isLeaf:x,isOpen:f,depth:C,isSticky:o,classDepth:l,noMarginForAccount:h})]})}function yp({isScrolling:e,depth:n,isOpen:o,isLeaf:i,isSticky:r,classDepth:l,noMarginForAccount:c}){return o&&i!==!0?null:t.jsx(ke,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:n,isSticky:r,classDepth:l,noMarginForAccount:c}})}const bp=[10,14,20,20,20],kp=a.div`
|
|
2729
|
-
display: flex;
|
|
2730
|
-
flex: 1 1 auto;
|
|
2731
|
-
width: fit-content;
|
|
2732
|
-
min-width: 100%;
|
|
2733
|
-
flex-direction: column;
|
|
2734
|
-
height: ${e=>e.height-1}px;
|
|
2735
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2736
|
-
`,jp=a.div`
|
|
2737
|
-
user-select: none;
|
|
2738
|
-
display: flex;
|
|
2739
|
-
flex: 1 1 auto;
|
|
2740
|
-
flex-flow: row;
|
|
2741
|
-
justify-content: flex-start;
|
|
2742
|
-
align-items: center;
|
|
2743
|
-
`,Sp=a.div`
|
|
2744
|
-
width: ${e=>Oo.emptyLeftContainer.valuePx(e.windowSize)};
|
|
2745
|
-
height: ${s.sp1};
|
|
2746
|
-
`,Cp=a.div`
|
|
2747
|
-
display: flex;
|
|
2748
|
-
flex: 1 0 auto;
|
|
2749
|
-
flex-direction: row;
|
|
2750
|
-
justify-content: flex-end;
|
|
2751
|
-
`,$p=a.div`
|
|
2752
|
-
display: flex;
|
|
2753
|
-
flex-direction: row;
|
|
2754
|
-
justify-content: flex-start;
|
|
2755
|
-
`,lt=a(_)`
|
|
2756
|
-
user-select: none;
|
|
2757
|
-
min-width: ${j.balanceWidth};
|
|
2758
|
-
max-width: ${j.balanceWidth};
|
|
2759
|
-
text-align: right;
|
|
2760
|
-
margin-left: ${j.balanceLeftMargin};
|
|
2761
|
-
color: ${e=>e.theme.colors.primary};
|
|
2762
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
2763
|
-
`,vp=a.div`
|
|
2764
|
-
display: flex;
|
|
2765
|
-
flex-direction: row;
|
|
2766
|
-
flex-shrink: 2;
|
|
2767
|
-
flex-grow: 1;
|
|
2768
|
-
align-items: center;
|
|
2769
|
-
height: ${e=>e.containerHeight-1}px;
|
|
2770
|
-
width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2771
|
-
max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2772
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2773
|
-
${({isSticky:e})=>e?z`
|
|
2774
|
-
position: -webkit-sticky;
|
|
2775
|
-
position: sticky;
|
|
2776
|
-
top: ${s.sp0};
|
|
2777
|
-
left: ${s.sp0};
|
|
2778
|
-
`:null}
|
|
2779
|
-
`,_p=a(_)`
|
|
2780
|
-
user-select: none;
|
|
2781
|
-
clear: both;
|
|
2782
|
-
display: inline-block;
|
|
2783
|
-
overflow: hidden;
|
|
2784
|
-
white-space: nowrap;
|
|
2785
|
-
text-overflow: ellipsis;
|
|
2786
|
-
text-align: left;
|
|
2787
|
-
margin-left: ${e=>bp[e.depth]}px;
|
|
2788
|
-
color: ${e=>e.theme.colors.primary};
|
|
2789
|
-
width: ${e=>j.titleWidth.value(e.windowSize)-80*e.depth}px;
|
|
2790
|
-
`,Lp=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i})=>t.jsxs($p,{"data-testid":y("sub-account-row-balance-element",e),children:[ie(e)===!0||o?t.jsx(lt,{"data-testid":y("sub-account-row-balance-element-actual",e),isClickable:!1,children:Lo(n)}):t.jsx(lt,{"data-testid":y("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Tt(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(lt,{"data-testid":y("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Tt(n)}),t.jsx(lt,{"data-testid":y("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?Ao(n):Bo(n)})]}):null]});function Ap({type:e,backgroundColor:n,isSticky:o,height:i,classDepth:r,accountName:l,accountBalances:c,account:d,noMarginForAccount:p,isActualVsForecastOn:u,compareMode:g,isScrolling:h,metadata:x}){const f=W(),m=N.getLocalizedStrings().reports.sections,w=d!=null?d.id.length-1:0,b=x;return t.jsxs(kp,{height:i,bgColor:n,children:[t.jsxs(jp,{children:[t.jsxs(vp,{isSticky:o,windowSize:f,bgColor:n,containerHeight:i,children:[r!=null?t.jsx(No,{ancestorMetadata:b.classAncestorMetadata??[],depth:r,name:l}):p===!1?t.jsx(Sp,{windowSize:f}):null,t.jsx(Mo,{ancestorMetadata:b.subAccountAncestorMetadata,depth:w,name:l}),t.jsx(_p,{"data-testid":y("sub-account-row-name",e),isClickable:!1,title:l,depth:w,windowSize:f,children:m.totalPrefix+" "+l})]}),be(e)===!0?t.jsx(Cp,{children:c.map((k,$)=>t.jsx(Lp,{type:e,isActualVsForecastOn:u,compareMode:g,balance:k},$))}):null]}),t.jsx(Bp,{isScrolling:h,nestingLevel:w,isSticky:o,classDepth:r,noMarginForAccount:p})]})}function Bp({isScrolling:e,nestingLevel:n,isSticky:o,classDepth:i,noMarginForAccount:r}){return t.jsx(ke,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:n,isSticky:o,classDepth:i,noMarginForAccount:r}})}const Op=a.div`
|
|
2791
|
-
user-select: none;
|
|
2792
|
-
display: flex;
|
|
2793
|
-
flex: 1 1 auto;
|
|
2794
|
-
width: fit-content;
|
|
2795
|
-
min-width: 100%;
|
|
2796
|
-
height: ${e=>e.height}px;
|
|
2797
|
-
flex-flow: row;
|
|
2798
|
-
justify-content: flex-start;
|
|
2799
|
-
align-items: center;
|
|
2800
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2801
|
-
`,Ip=a.div`
|
|
2802
|
-
display: flex;
|
|
2803
|
-
flex: 1 0 auto;
|
|
2804
|
-
flex-direction: row;
|
|
2805
|
-
justify-content: flex-end;
|
|
2806
|
-
`,Ge=j.balanceWidthInPx+j.balanceLeftMarginInPx,Fi=a.div`
|
|
2807
|
-
display: flex;
|
|
2808
|
-
max-height: 54px;
|
|
2809
|
-
min-height: 54px;
|
|
2810
|
-
min-width: ${e=>e.isActualVsForecastOn?3*(Ge-2)-j.balanceLeftMarginInPx:j.balanceWidthInPx}px;
|
|
2811
|
-
justify-content: center;
|
|
2812
|
-
align-items: center;
|
|
2813
|
-
background-color: ${e=>e.theme.colors.background};
|
|
2814
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2815
|
-
border-radius: ${s.sp2};
|
|
2816
|
-
margin-left: ${e=>e.isActualVsForecastOn?S[0]:j.balanceLeftMarginInPx}px;
|
|
2817
|
-
color: ${e=>e.theme.colors.primary};
|
|
2818
|
-
`,zi=a(_)`
|
|
2819
|
-
display: flex;
|
|
2820
|
-
user-select: none;
|
|
2821
|
-
flex-direction: row;
|
|
2822
|
-
justify-content: center;
|
|
2823
|
-
align-items: center;
|
|
2824
|
-
height: ${j.balanceHeight};
|
|
2825
|
-
max-width: ${j.balanceWidthInPx-2}px;
|
|
2826
|
-
width: 138px;
|
|
2827
|
-
text-align: center;
|
|
2828
|
-
`,Np=a.div`
|
|
2829
|
-
height: 100%;
|
|
2830
|
-
display: inline-block;
|
|
2831
|
-
flex-direction: row;
|
|
2832
|
-
align-items: center;
|
|
2833
|
-
min-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
|
|
2834
|
-
color: ${e=>e.theme.colors.grey5};
|
|
2835
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2836
|
-
border: 1px solid ${e=>e.bgColor?.hex()};
|
|
2837
|
-
${({isSticky:e})=>e?z`
|
|
2838
|
-
position: -webkit-sticky;
|
|
2839
|
-
position: sticky;
|
|
2840
|
-
top: ${s.sp0};
|
|
2841
|
-
left: ${s.sp0};
|
|
2842
|
-
z-index: 20;
|
|
2843
|
-
`:null}
|
|
2844
|
-
`,Mp=a.div`
|
|
2845
|
-
display: flex;
|
|
2846
|
-
width: ${e=>e.isActualVsForecastOn?3*Ge:Ge}px;
|
|
2847
|
-
flex-direction: row;
|
|
2848
|
-
justify-content: flex-start;
|
|
2849
|
-
color: ${e=>e.theme.colors.champion};
|
|
2850
|
-
`,zt=a(_)`
|
|
2851
|
-
display: flex;
|
|
2852
|
-
justify-content: flex-end;
|
|
2853
|
-
align-items: center;
|
|
2854
|
-
height: ${j.balanceHeight};
|
|
2855
|
-
width: ${j.balanceWidth};
|
|
2856
|
-
min-width: ${j.balanceWidth};
|
|
2857
|
-
margin-left: ${j.balanceLeftMargin};
|
|
2858
|
-
margin-top: ${s.sp3};
|
|
2859
|
-
`,Wp=a.div`
|
|
2860
|
-
display: flex;
|
|
2861
|
-
max-height: 54px;
|
|
2862
|
-
min-height: 54px;
|
|
2863
|
-
justify-content: center;
|
|
2864
|
-
align-items: center;
|
|
2865
|
-
color: ${e=>e.theme.colors.champion};
|
|
2866
|
-
`,Pp=a.div``,Fp=a(_)`
|
|
2867
|
-
display: flex;
|
|
2868
|
-
justify-content: center;
|
|
2869
|
-
align-items: center;
|
|
2870
|
-
max-height: 54px;
|
|
2871
|
-
min-height: 54px;
|
|
2872
|
-
background-color: ${e=>e.theme.colors.background};
|
|
2873
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
2874
|
-
border-radius: ${s.sp2};
|
|
2875
|
-
margin-left: ${j.balanceLeftMarginInPx}px;
|
|
2876
|
-
color: ${e=>e.theme.colors.primary};
|
|
2877
|
-
width: ${j.balanceWidth};
|
|
2878
|
-
min-width: ${j.balanceWidth};
|
|
2879
|
-
`,zp=a.div`
|
|
2880
|
-
display: flex;
|
|
2881
|
-
width: ${e=>e.isActualVsForecastOn?3*Ge:Ge}px;
|
|
2882
|
-
flex-direction: column;
|
|
2883
|
-
align-items: flex-end;
|
|
2884
|
-
`,Tp=a.div`
|
|
2885
|
-
max-height: 54px;
|
|
2886
|
-
min-height: 54px;
|
|
2887
|
-
`,Ti=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:i,bookCloseDate:r})=>{const l=N.getLocalizedStrings().reports,c=r==null||i==null||n.balanceType!=="default"&&n.balanceType!=="default_with_percent"?void 0:_o(o,e,n,r,i),d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,p=Si(c,o);return t.jsx(Tp,{children:r!=null&&i!=null&&c!=null&&d!=null&&p!=null?t.jsx(ji,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:d,infoContent:p,tagType:c}):t.jsx(Fi,{isActualVsForecastOn:!1,children:t.jsx(zi,{children:He(e,n,o)})})})},Vp=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,isActualVsForecastOn:i,compareMode:r,dataAvailable:l,bookCloseDate:c,onCompareModeChanged:d})=>{const p=N.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${N.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:N.getLocalizedStrings().compareMode.changePercent;return i===!0?t.jsxs(zp,{isActualVsForecastOn:i,children:[t.jsx(Fi,{isActualVsForecastOn:i,children:t.jsx(zi,{children:He(e,n,o)})}),t.jsxs(Mp,{isActualVsForecastOn:i,children:[t.jsx(zt,{children:p.actual}),t.jsx(zt,{children:p.forecast}),t.jsx(zt,{children:t.jsx(Sn,{title:u,titleTextStyle:tn.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:g=>{g!=="off"?d?.(g):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(Ti,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:l,bookCloseDate:c})},Dp=({firstMonthOfFY:e,timeframeTicks:n,timeframe:o,compareMode:i,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:c})=>{const d=le(),p=i==="compare_mode_amount"?`${N.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:N.getLocalizedStrings().compareMode.changePercent;return t.jsx(Wp,{children:n.map((u,g)=>t.jsx(T.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(Fp,{children:t.jsx(Sn,{title:p,titleTextStyle:tn.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:i,menuPosition:"right",onCompareModeChanged:h=>{h!=="off"&&(h==="compare_mode_amount"||h==="compare_mode_percent"?c?.(h):console.warn("Invalid compare mode option"))}})}):t.jsx(Pp,{children:t.jsx(Ti,{firstMonthOfFY:e,timeframeTick:u,timeframe:o,dataAvailable:r,bookCloseDate:l},g)})},g))})};function Gp({type:e,backgroundColor:n,isSticky:o,height:i,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:c,timeframe:d,timeframeTicks:p,compareMode:u,dataAvailable:g,bookCloseDate:h,onCompareModeChanged:x}){const f=W();return t.jsxs(Op,{height:i,bgColor:n,children:[de(e)===!0?t.jsx(Np,{isSticky:o,windowSize:f,bgColor:n,children:" . "}):null,t.jsx(Ip,{children:l===!0?t.jsx(Dp,{firstMonthOfFY:c,timeframe:d,timeframeTicks:p,compareMode:u,dataAvailable:g,bookCloseDate:h,onCompareModeChanged:x}):p.map((m,w)=>t.jsx(Vp,{firstMonthOfFY:c,timeframeTick:m,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:g,bookCloseDate:h,onCompareModeChanged:x},w))})]})}const Lt=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="ac_report"||o.element.data==null)return null;const x=o.element.data,f=De(x)===!0?x.horizontalTreeView:void 0,m=De(x)===!0&&f==null?16*Math.max(0,x.depth-2):void 0,w=ee((Re(o.config.reportId)===!0||Co(o.config.reportId)===!0?ri(0,o.config.filterAccountsWithNilBalances):ut(o.element.sectionType,"no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances)).acBalanceSelector(x),o.config.displayOrder,o.element.numOfBalances),b=f!=null&&f.hasChildren&&h!=null?{isOpen:u,onRowClick:()=>h(e)}:void 0;return t.jsx(Pu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,accountBalances:w.balances,isScrolling:c,isLeaf:d,isLastNode:p,account:x,titleIndentExtraPx:m,horizontalTreeView:f,horizontalCollapse:b,onAccountBalanceClick:h==null?void 0:(k,$,C,v)=>{h?.(k,$,C,v)}})},Ke=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="ac_subaccount"||o.element.data==null)return null;const x=o.element.data,f=Ii(vn("no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances).acBalanceSelector(x),o.config.displayOrder,o.element.numOfBalances),m=x.account.classesViewParentId?.parentClassId!=null?x.account.classesViewParentId?.parentClassId.length-1:void 0,w=o.config.reportId==="operating_expenses";return t.jsx(wp,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",classDepth:m,compareMode:g,accountBalances:f.balances,isScrolling:c,isLeaf:d,isOpen:p,isLastNode:u,account:x,metadata:o.element.metadata,onClick:h,noMarginForAccount:w,onAccountBalanceClick:h==null?void 0:(b,k,$,C)=>{h?.(b,k,$,C)}})},At=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="ac_group_report"||o.element.data==null)return null;const x=o.element.data,f=ee(ut(o.element.sectionType,"no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances).acGroupBalanceSelector(x),o.config.displayOrder,o.element.numOfBalances);return t.jsx(xu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,leftChevron:d?"open":"collapsed",accountGroupName:x.accountGroupName,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:m=>{h?.(m)}})},Ln=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="ac_group_subaccount"||o.element.data==null)return null;const x=o.element.data,f=ee(vn("no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances).acGroupBalanceSelector(x),o.config.displayOrder,o.element.numOfBalances);return t.jsx($u,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,leftChevron:d?"open":"collapsed",accountGroupName:x.accountGroupName,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:m=>{h?.(m)}})},An=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="section"||o.element.data==null)return null;const x=hn(o.element.title),f=ee(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(_n,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:x,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:m=>{h?.(m)}})},Bt=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="section_with_ac_only"||o.element.data==null)return null;const x=hn(o.element.title),f=ee(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(_n,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:x,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:m=>{h?.(m)}})},Bn=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="calculated_section"||o.element.data==null)return null;const x=hn(o.element.title),f=ee(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(_n,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:x,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:m=>{h?.(m)}})},Ye=(e,n,o,i,r,l,c,d,p)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,g=vn("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),h=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,x=Ii(g.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),f=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(Ap,{type:e,backgroundColor:i,isSticky:r,height:o,accountName:u.account.accountName,account:u,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:p,accountBalances:x.balances,isScrolling:l,noMarginForAccount:f,isLeaf:c,isLastNode:d,metadata:n.element.metadata,classDepth:h})},Ue=(e,n,o,i,r,l,c,d)=>{if(o.element.kind!=="timeframe_headers"&&o.element.kind!=="timeframe_headers_with_forecast")return null;const p=Ne(o.element.data,o.config.displayOrder),u=p.length>0?p[0].balanceTimeFrame:"month",g=p.map(h=>Ie(h));return t.jsx(Gp,{treeNodeId:e,backgroundColor:r,isSticky:l,type:n,height:i,isActualVsForecastOn:o.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:o.config.mode==="this_period_vs_period_before"&&g.length>1,firstMonthOfFY:o.config.firstMonthOfFY,timeframe:u,timeframeTicks:g,compareMode:c,dataAvailable:o.config.dataAvailable,bookCloseDate:o.config.bookCloseDate,onCompareModeChanged:d})},Vi=(e,n,o,i,r,l,c,d,p,u,g,h,x)=>{if(o.element.kind!="class"||o.element.data==null)return null;const f=o.element.data,m=ee(f.childrenBalancesTotal,o.config.displayOrder,o.element.numOfBalances),w=g>1;return t.jsx(tp,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,className:o.element.title,classCode:o.element.data.class.accountingClassNumber,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",depth:f.id.length-1,compareMode:h,sectionBalances:m.balances,isScrolling:c,isOpen:d,isLeaf:p,hasChildren:f.children.length>0,isLastNode:u,isSubClass:w,showClassAccountNumber:o.config.showClassAccountNumber,onClick:b=>{x?.(b)},metadata:o.element.metadata})},xo=e=>{const{height:n,data:{reportElementData:o,id:i,treeKind:r,isLeaf:l,isLastNode:c,nestingLevel:d,isFirstNode:p},isOpen:u,style:g,setOpen:h,isScrolling:x}=e,f=e.treeNodePadding?.left,m=e.treeNodePadding?.right;return t.jsx("div",{style:{...g,width:"auto",minWidth:"100%",paddingLeft:f,paddingRight:m},children:t.jsx(Di,{id:i,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:o,height:n,isSticky:e.isSticky,isScrolling:x??!1,isLeaf:l,isLastNode:c,isFirstNode:p,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick==null&&l?void 0:(w,b,k,$)=>{const C=l?u:!u;!l&&k==null&&(h(!u),e.onNodeCollapseToggled?.(w,!u)),e.onNodeClick?.(w,C,b,k,$)},compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},i)})},Di=e=>e.treeKind==="name_only"?t.jsx(Up,{...e}):ln(e.reportElementData.config.reportId)?t.jsx(Zp,{...e}):sn(e.reportElementData.config.reportId)===!0?t.jsx(qp,{...e}):Co(e.reportElementData.config.reportId)===!0?t.jsx(Ep,{...e}):rn(e.reportElementData.config.reportId)===!0?t.jsx(Rp,{...e}):Re(e.reportElementData.config.reportId)===!0?t.jsx(Hp,{...e}):an(e.reportElementData.config.reportId)===!0?t.jsx(Kp,{...e}):pr(e.reportElementData.config.reportId)===!0?t.jsx(Yp,{...e}):dn(e.reportElementData.config.reportId)===!0?t.jsx(Jp,{...e}):cn(e.reportElementData.config.reportId)===!0?t.jsx(Qp,{...e}):null,Ep=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,nestingLevel:g,compareMode:h,nodeClickHandler:x,onCompareModeChanged:f})=>{switch(o.element.kind){case"ac_report":return Lt(e,n,o,i,r,l,c,d,p,u,h,x);case"ac_group_report":return At(e,n,o,i,r,l,c,u,d,p,h,x);case"section":return An(e,n,o,i,r,l,c,u,d,p,h,x);case"section_with_ac_only":return Bt(e,n,o,i,r,l,c,u,d,p,h,x);case"calculated_section":case"calculated_section_type1":return Bn(e,n,o,i,r,l,c,u,d,p,h,x);case"title_string_only":default:return null;case"class_headers":return((m,w,b,k,$,C)=>{if(b.element.kind!=="class_headers")return null;const v=b.element.data;return t.jsx(Ru,{isSticky:C,type:w,height:k,backgroundColor:$,classColumns:v})})(0,n,o,i,r,l);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ue(e,n,o,i,r,l,h,f);case"class":return Vi(e,n,o,i,r,l,c,u,d,p,g,h,x);case"ac_subaccount":return Ke(e,n,o,i,r,l,c,d,u,p,h,x);case"ac_subentity_total":return Ye(n,o,i,r,l,c,d,p,h);case"headers_loading_in_progress":return((m,w,b)=>m.element.kind!=="headers_loading_in_progress"?null:t.jsx(ci,{height:w,backgroundColor:b,numOfBalances:m.element.numOfBalances}))(o,i,r);case"loading_in_progress":return((m,w,b)=>m.element.kind!=="loading_in_progress"?null:t.jsx(ai,{height:w,backgroundColor:b,title:m.element.title,numOfBalances:m.element.numOfBalances}))(o,i,r)}},Rp=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,compareMode:g,nodeClickHandler:h,onCompareModeChanged:x})=>{switch(o.element.kind){case"ac_report":return Lt(e,n,o,i,r,l,c,d,p,u,g,h);case"ac_group_report":return At(e,n,o,i,r,l,c,u,d,p,g,h);case"ac_subaccount":return Ke(e,n,o,i,r,l,c,d,u,p,g,h);case"ac_group_subaccount":return Ln(e,n,o,i,r,l,c,u,d,p,g,h);case"section":return An(e,n,o,i,r,l,c,u,d,p,g,h);case"section_with_ac_only":return Bt(e,n,o,i,r,l,c,u,d,p,g,h);case"calculated_section":case"calculated_section_type1":return Bn(e,n,o,i,r,l,c,u,d,p,g,h);case"title_string_only":default:return null;case"ac_subentity_total":return Ye(n,o,i,r,l,c,d,p,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ue(e,n,o,i,r,l,g,x)}},Hp=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,nestingLevel:g,compareMode:h,nodeClickHandler:x,onCompareModeChanged:f})=>{switch(o.element.kind){case"ac_report":return Lt(e,n,o,i,r,l,c,d,p,u,h,x);case"ac_group_report":return At(e,n,o,i,r,l,c,u,d,p,h,x);case"section":return hi(e,n,o,i,r,l,c,u,d,p,h,x);case"section_with_ac_only":return Bt(e,n,o,i,r,l,c,u,d,p,h,x);case"calculated_section":case"calculated_section_type1":return ui(e,n,o,i,r,l,c,u,d,p,h,x);case"title_string_only":return mn(e,n,o,i,r,l,c,u,d,p,h,x);case"ac_subentity_total":return Ye(n,o,i,r,l,c,d,p,h);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ue(e,n,o,i,r,l,h,f);case"class":return Vi(e,n,o,i,r,l,c,u,d,p,g,h,x);case"ac_subaccount":return Ke(e,n,o,i,r,l,c,d,u,p,h,x);case"total":return pi(e,n,o,i,r,l,h,d);case"headers_loading_in_progress":return((m,w,b)=>m.element.kind!=="headers_loading_in_progress"?null:t.jsx(ci,{height:w,backgroundColor:b,numOfBalances:m.element.numOfBalances}))(o,i,r);case"loading_in_progress":return((m,w,b)=>m.element.kind!=="loading_in_progress"?null:t.jsx(ai,{height:w,backgroundColor:b,title:m.element.title,numOfBalances:m.element.numOfBalances}))(o,i,r);default:return null}},Kp=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,compareMode:g,nodeClickHandler:h,onCompareModeChanged:x})=>{switch(o.element.kind){case"ac_report":return((f,m,w,b,k,$,C,v,B,A,M)=>{if(w.element.kind!="ac_report"||w.element.data==null)return null;const V=w.element.data,D=ee((Re(w.config.reportId)===!0?ri(0,w.config.filterAccountsWithNilBalances):ut(w.element.sectionType,"no_filter",w.config.filterAccountsWithNilBalances,w.config.filterAccountGroupsWithNilBalances)).acBalanceSelector(V),w.config.displayOrder,w.element.numOfBalances);return t.jsx(Sc,{type:m,backgroundColor:k,isSticky:$,treeNodeId:f,height:b,accountBalances:D.balances,isCompareModeOn:w.config.mode==="this_period_vs_period_before",isForecastModeOn:w.config.mode==="actual_vs_forecast",isScrolling:C,isLeaf:v,isLastNode:B,compareMode:A,account:V,onAccountBalanceClick:M==null?void 0:(K,te,J,re)=>{M?.(K,te,J,re)}})})(e,n,o,i,r,l,c,d,p,g,h);case"ac_group_report":return((f,m,w,b,k,$,C,v,B,A,M,V)=>{if(w.element.kind!="ac_group_report"||w.element.data==null)return null;const D=w.element.data,K=ee(ut(w.element.sectionType,"no_filter",w.config.filterAccountsWithNilBalances,w.config.filterAccountGroupsWithNilBalances).acGroupBalanceSelector(D),w.config.displayOrder,w.element.numOfBalances);return t.jsx(pc,{type:m,backgroundColor:k,isSticky:$,treeNodeId:f,height:b,accountGroupName:D.accountGroupName,compareMode:M,accountGroupBalances:K.balances,isScrolling:C,isOpen:v,isLeaf:B,isLastNode:A,onClick:te=>{V?.(te)}})})(e,n,o,i,r,l,c,u,d,p,g,h);case"ac_subaccount":return Ke(e,n,o,i,r,l,c,d,u,p,g,h);case"ac_group_subaccount":return Ln(e,n,o,i,r,l,c,u,d,p,g,h);case"section":return hi(e,n,o,i,r,l,c,u,d,p,g,h);case"section_with_ac_only":return((f,m,w,b,k,$,C,v,B,A,M,V)=>{if(w.element.kind!="section_with_ac_only"||w.element.data==null)return null;const D=bn(w.config.reportId,w.element.sectionType),K=ee(w.element.data,w.config.displayOrder,w.element.numOfBalances);return t.jsx(yn,{type:m,backgroundColor:k,isSticky:$,treeNodeId:f,height:b,sectionName:w.element.title,sectionColor:D.color,sectionBalances:K.balances,isScrolling:C,isOpen:v,isLeaf:B,isLastNode:A,compareMode:M,onClick:te=>{V?.(te)}})})(e,n,o,i,r,l,c,u,d,p,g,h);case"calculated_section":case"calculated_section_type1":return ui(e,n,o,i,r,l,c,u,d,p,g,h);case"title_string_only":return mn(e,n,o,i,r,l,c,u,d,p,g,h);case"total":return pi(e,n,o,i,r,l,g,d);case"ac_subentity_total":return Ye(n,o,i,r,l,c,d,p,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ue(e,n,o,i,r,l,g,x);default:return null}},Yp=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,compareMode:g,nodeClickHandler:h,onCompareModeChanged:x})=>{switch(o.element.kind){case"ac_report":return Lt(e,n,o,i,r,l,c,d,p,u,g,h);case"ac_group_report":return At(e,n,o,i,r,l,c,u,d,p,g,h);case"section":return An(e,n,o,i,r,l,c,u,d,p,g,h);case"section_with_ac_only":return Bt(e,n,o,i,r,l,c,u,d,p,g,h);case"calculated_section":return Bn(e,n,o,i,r,l,c,u,d,p,g,h);case"calculated_section_type1":return((f,m,w,b,k,$,C)=>{if(m.element.kind!="calculated_section_type1"||m.element.data==null)return null;const v=ee(m.element.data,m.config.displayOrder,m.element.numOfBalances);return t.jsx(_l,{backgroundColor:b,isSticky:k,treeNodeId:f,heading:m.element.title,totalBalances:v.balances,height:w,isScrolling:$,isLastNode:C})})(e,o,i,r,l,c,p);case"title_string_only":return mn(e,n,o,i,r,l,c,u,d,p,g,h);case"ac_subentity_total":return Ye(n,o,i,r,l,c,d,p,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ue(e,n,o,i,r,l,g,x);case"ac_subaccount":return Ke(e,n,o,i,r,l,c,d,u,p,g,h);case"ac_group_subaccount":return Ln(e,n,o,i,r,l,c,u,d,p,g,h);default:return null}},Up=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,toggleCheckHandler:g})=>o.element.kind==="checkbox_and_name_only"?((h,x,f,m,w,b,k,$,C,v,B)=>{if(f.element.kind!="checkbox_and_name_only")return null;const A=f.element.data,M=f.config.isClassToBeFilteredOut?.(A.classId)===!1;return t.jsx(qd,{type:x,backgroundColor:w,isSticky:b,treeNodeId:h,classId:A.classId,isChecked:M,isDisabled:!1,height:m,isScrolling:k,nestedClass:A,isOpen:$,isLeaf:C,isLastNode:v,showClassAccountNumber:f.config.showClassAccountNumber,onToggleCheck:B})})(e,n,o,i,r,l,c,u,d,p,g):null,qp=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLastNode:d,compareMode:p,onCompareModeChanged:u})=>{switch(o.element.kind){case"loading_in_progress":case"spacer_row":return((g,h,x,f)=>{if(g.element.kind!=="loading_in_progress")return null;const m=Ne(g.element.data,g.config.displayOrder).map(w=>Ie(w));return t.jsx(eh,{backgroundColor:x,isSticky:f,height:h,isAccountColumnShown:g.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:g.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:m})})(o,i,r,l);case"timeframe_headers":return((g,h,x,f,m,w)=>{if(g.element.kind!=="timeframe_headers")return null;const b=Ne(g.element.data,g.config.displayOrder),k=b.length>0?b[0].balanceTimeFrame:"month",$=b.map(C=>Ie(C));return t.jsx(Lh,{backgroundColor:m,isSticky:x,height:h,isAccountColumnShown:g.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:g.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:g.config.mode==="this_period_vs_period_before"&&$.length>1,firstMonthOfFY:g.config.firstMonthOfFY,timeframe:k,timeframeTicks:$,sortKey:g.config.opexByVendorConfig?.sortKey,sortOrder:g.config.opexByVendorConfig?.sortOrder,dataAvailable:g.config.dataAvailable,bookCloseDate:g.config.bookCloseDate,compareMode:f,onCompareModeChanged:w,onSortOrderChanged:g.config.opexByVendorConfig?.onSortOrderChanged})})(o,i,l,p,r,u);case"total":return((g,h,x,f,m,w,b)=>{const k=x.element.data,$=x.config.mode==="this_period_vs_period_before",C=$?x.element.numOfBalances+2:x.element.numOfBalances+1,v=Hn(k,x.config.displayOrder,C,$);return t.jsx(Vh,{type:h,backgroundColor:b,isSticky:m,treeNodeId:g,height:f,isScrolling:w,totalBalances:v.balances,title:x.element.title,isAccountColumnShown:x.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:x.config.opexByVendorConfig?.isClassColumnShown??!0})})(e,n,o,i,l,c,r);case"vendor_row":return((g,h,x,f,m,w,b)=>{if(h.element.kind!="vendor_row"||h.element.data==null)return null;const k=h.element.data,$=h.config.mode==="this_period_vs_period_before",C=Hn(k,h.config.displayOrder,h.element.numOfBalances,$);return t.jsx(ou,{backgroundColor:f,isSticky:m,height:x,isScrolling:w,vendorRowIndex:h.element.index,vendor:k.vendor,accountBase:k.account,classBase:k.classBase,isLastNode:b,balances:C.balances,isAccountColumnShown:h.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:h.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:(v,B)=>{h.config.opexByVendorConfig?.onVendorNameAndBalanceClicked(v,B)}})})(0,o,i,r,l,c,d);case"title_string_only":return((g,h,x,f)=>{if(g.element.kind!=="title_string_only")return null;const m=Ne(g.element.data,g.config.displayOrder).map(w=>Ie(w));return t.jsx(ah,{backgroundColor:x,isSticky:f,height:h,isAccountColumnShown:g.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:g.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:m})})(o,i,r,l);default:return null}},Zp=({id:e,treeKind:n,reportElementData:o,height:i,isOpen:r,isSticky:l,isScrolling:c,isLastNode:d,backgroundColor:p,nodeClickHandler:u})=>{const{config:g}=o;switch(o.element.kind){case"spacer_row":default:return null;case"timeframe_headers":return((h,x,f,m,w,b,k)=>{if(h.element.kind!=="timeframe_headers")return null;const $=h.element.data;return t.jsx(Fa,{reportId:h.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:$,backgroundColor:f,isSticky:m,height:x,sortKey:w,sortOrder:b,onSortOrderChanged:k})})(o,i,p,l,g.agingReportConfig?.sortKey,g.agingReportConfig?.sortOrder,g.agingReportConfig?.onSortOrderChanged);case"total":return((h,x,f,m,w)=>{const b=x.element.data;return t.jsx(tl,{type:h,backgroundColor:m,isSticky:w,height:f,totalBalances:b,isIndented:x.config.reportId==="accounts_receivable_aging",title:x.element.title})})(n,o,i,p,l);case"aging_report_row":return((h,x,f,m,w,b,k,$,C,v)=>{if(x.element.kind!=="aging_report_row")return null;if(x.config.reportId==="accounts_payable_aging"){const A=x.element.data;return t.jsx(La,{backgroundColor:$,isLastNode:b,isScrolling:k,isSticky:w,height:f,balances:A.apAgingBalances,vendor:A.vendor,total:A.total,onEntityNameClick:C})}const B=x.element.data;return t.jsx(Aa,{treeNodeId:h,backgroundColor:$,isLastNode:b,isScrolling:k,isSticky:w,isOpen:m,height:f,metadata:x.element.metadata,balances:B.arAgingBalances,nestedCustomer:B,total:B.total,totalWithChildren:B.totalWithChildren,onEntityNameClick:C,onClick:v})})(e,o,i,r,l,d,c,p,g.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return((h,x,f,m,w)=>{if(h.element.kind!=="ac_subentity_total")return null;if(h.config.reportId==="accounts_receivable_aging"){const b=h.element.data;return t.jsx(Ka,{backgroundColor:w,isScrolling:m,isSticky:f,height:x,metadata:h.element.metadata,nestedCustomer:b,total:b.totalWithChildren,noMarginForEntity:!0})}return null})(o,i,l,c,p)}},Jp=({id:e,reportElementData:n,height:o,backgroundColor:i,isSticky:r,isScrolling:l,isLeaf:c,isLastNode:d,isFirstNode:p,isOpen:u,onFluxBalanceClick:g,nodeClickHandler:h,hoveredParentIdProps:x})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return((f,m,w,b,k,$,C,v,B)=>{if(!jn(m,"flux_vendor_account_class_row"))return null;const A=m.element.data,M=ki(A),V=m.element.metadata.vendorId;return t.jsx(Ss,{backgroundColor:w,isSticky:b,treeNodeId:f,balances:M,varianceAmount:A.varianceAmount,variancePercentage:A.variancePercentage,currency:A.currency,isScrolling:k,isLeaf:$,isLastNode:C,nodeMetadata:m.element.metadata,accountAndClass:A,onAccountAndClassBalanceClick:()=>B?.(V),isHoveredByParent:v?.hoveredParentId===V})})(e,n,i,r,l,c,d,x,g);case"flux_vendor_row":return Dd(e,n,i,r,l,u,c,d,p,x,h);case"section":return Gd(e,n,o,i,r,l,u,c,d,h);case"timeframe_headers":return((f,m,w)=>{if(f.element.kind!=="timeframe_headers")return null;const b=Ne(f.element.data,f.config.displayOrder),k=b.length>0?b[0].balanceTimeFrame:"month",$=b.map(C=>Ie(C));return t.jsx(id,{isSticky:w,height:m,firstMonthOfFY:f.config.firstMonthOfFY,timeframe:k,timeframeTicks:$,isBulkSelected:f.config.fluxAnalysisConfig?.reviewOpExIds.length===20,onSortOrderChanged:(C,v)=>{f.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),f.config.fluxAnalysisConfig?.onSortOrderChanged(C,v)},sortOrder:f.config.fluxAnalysisConfig?.sortOrder,sortKey:f.config.fluxAnalysisConfig?.sortKey})})(n,o,r);case"total":return((f,m)=>{if(f.element.kind!=="total")return null;const w=f.element.data;return t.jsx(xd,{type:"name+balances_actual",title:f.element.title,totalBalances:w.balances,varianceAmount:w.varianceAmount,variancePercentage:w.variancePercentage,currency:w.currency,height:m})})(n,o);case"loading_in_progress":return(f=>f.element.kind!=="loading_in_progress"?null:t.jsx($s,{}))(n);case"headers_loading_in_progress":return(f=>f.element.kind!=="headers_loading_in_progress"?null:t.jsx(Gs,{}))(n);default:return null}},Qp=({reportElementData:e,height:n,isSticky:o,isLastNode:i})=>{switch(e.element.kind){case"timeframe_headers":return function(r,l){if(r.element.kind!=="timeframe_headers")return null;const c=N.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,d=r.element.data,p=d.accountIDs.length===0;return t.jsx(Hr,{sectionTitle:c.section[d.sectionId].title,isLoading:p,isSticky:l,height:ct("timeframe_headers")})}(e,o);case"loading_in_progress":return t.jsx(Ar,{height:ct("loading_in_progress")});case"total":return((r,l,c)=>{const d=r.element.data;return t.jsx(sa,{isSticky:c,height:l,sectionData:d})})(e,n,o);case"section":return t.jsx(Or,{height:ct("section")});case"title_string_only":return((r,l)=>{const c=r.element.data,d=N.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(Ur,{height:l,title:d.section[c.sectionId].title})})(e,n);case"ac_group_report":return((r,l,c)=>{const d=r.element.data,p=r.config.accountReconciliationConfig?.selectedDrawerAccountId!=null&&d.accountReconEntity.account.accountId===r.config.accountReconciliationConfig?.selectedDrawerAccountId;return t.jsx(mr,{height:l,accountRecon:d,isLastRow:c,isSelectedRow:p,onReviewClicked:r.config.accountReconciliationConfig?.onReviewClicked,onConnectClicked:r.config.accountReconciliationConfig?.onConnectClicked,onReconnectClicked:r.config.accountReconciliationConfig?.onReconnectClicked,onOpenDrawerClicked:r.config.accountReconciliationConfig?.onOpenDrawerClicked,onStatementAddClicked:r.config.accountReconciliationConfig?.onStatementAddClicked})})(e,n,i);default:return null}};function fo(e,n,o,i){const r=e.reportElementData.element.data,l=e.reportElementData.config.reportId==="profit_and_loss_by_classes"&&e.reportElementData.element.kind==="ac_report"&&e.children.length>0&&De(r)===!0||void 0;return{data:{defaultHeight:On(e.reportElementData.config.reportId,e.reportElementData.element.kind,e.isFirstNode),id:e.id,isLeaf:e.children.length===0,isFirstNode:e.isFirstNode??!1,isLastNode:e.isLastNode,isOpenByDefault:i??l??Xp(e.reportElementData.config.reportId,e.reportElementData.element.kind,o,e.reportElementData.config.reportFormat),nestingLevel:o,treeKind:n,reportElementData:e.reportElementData},treeKind:n,nestingLevel:o,node:e}}function On(e,n,o){return rn(e)===!0?function(i){switch(i){case"section":case"section_with_ac_only":case"calculated_section":case"calculated_section_type1":return S[8];case"ac_group_report":case"ac_group_subaccount":case"ac_subentity_total":case"ac_subaccount":case"ac_report":case"title_string_only":case"total":case"loading_in_progress":case"class":case"checkbox_and_name_only":return S[6];case"timeframe_headers":case"class_headers":case"headers_loading_in_progress":return S[11];case"timeframe_headers_with_forecast":return 98;default:return 0}}(n):an(e)===!0||Re(e)===!0?function(i){switch(i){case"section":case"ac_group_report":case"ac_group_subaccount":case"calculated_section":case"calculated_section_type1":case"section_with_ac_only":case"title_string_only":case"total":return S[8];case"ac_subentity_total":case"ac_subaccount":case"ac_report":case"loading_in_progress":case"class":case"checkbox_and_name_only":return S[6];case"timeframe_headers":case"headers_loading_in_progress":return S[11];case"timeframe_headers_with_forecast":return 98;default:return 0}}(n):ln(e)?function(i){switch(i){case"timeframe_headers":return S[10];case"aging_report_row":case"ac_subentity_total":return S[6];case"total":case"spacer_row":return S[8];default:return S[0]}}(n):cn(e)?ct(n):sn(e)?function(i){switch(i){case"timeframe_headers":return S[11];case"vendor_row":case"loading_in_progress":return S[6];case"total":case"spacer_row":case"title_string_only":return S[8];default:return 0}}(n):dn(e)?wi(n,o):function(i){switch(i){case"section":case"section_with_ac_only":case"calculated_section":case"ac_group_report":case"ac_group_subaccount":return S[8];case"calculated_section_type1":case"ac_report":case"ac_subaccount":case"ac_subentity_total":case"total":return S[6];case"title_string_only":return 67;case"timeframe_headers":return S[11];default:return S[0]}}(n)}function Xp(e,n,o,i){return rn(e)?function(r,l,c=0){const d=["summary"];switch(r){case"section":case"section_with_ac_only":case"title_string_only":return!d.includes(l);case"calculated_section":case"calculated_section_type1":case"ac_group_report":case"ac_report":case"total":case"timeframe_headers":case"timeframe_headers_with_forecast":case"class_headers":default:return!1;case"ac_group_subaccount":case"ac_subaccount":case"ac_subentity_total":return!(d.includes(l)||l==="detailed"&&c>0);case"class":return!(l==="detailed"&&c>0);case"checkbox_and_name_only":return!0}}(n,i,o):an(e)||Re(e)===!0?function(r,l){const c=["summary","detailed"];switch(r){case"section":case"section_with_ac_only":case"ac_group_report":case"ac_group_subaccount":case"ac_subentity_total":case"ac_subaccount":case"ac_report":case"title_string_only":return!c.includes(l);case"calculated_section":case"calculated_section_type1":case"total":case"timeframe_headers":case"timeframe_headers_with_forecast":default:return!1;case"class":case"checkbox_and_name_only":return!0}}(n,i):!!ln(e)||!sn(e)&&(dn(e)?function(r){return["section","flux_vendor_account_class_row","flux_vendor_row"].includes(r)}(n):cn(e)?fr():function(r,l){const c=["summary","detailed"];switch(r){case"section":case"section_with_ac_only":case"calculated_section":case"calculated_section_type1":case"ac_group_report":case"ac_group_subaccount":case"ac_report":case"ac_subaccount":case"ac_subentity_total":case"title_string_only":return!c.includes(l);default:return!1}}(n,i))}const eg=a.div`
|
|
2888
|
-
top: 0;
|
|
2889
|
-
left: 0;
|
|
2890
|
-
position: sticky !important;
|
|
2891
|
-
position: -webkit-sticky !important;
|
|
2892
|
-
min-height: ${e=>e.heightValue}px;
|
|
2893
|
-
max-height: ${e=>e.heightValue}px;
|
|
2894
|
-
width: fit-content;
|
|
2895
|
-
min-width: 100%;
|
|
2896
|
-
z-index: 2;
|
|
2897
|
-
display: flex;
|
|
2898
|
-
flex-direction: column;
|
|
2899
|
-
align-items: center;
|
|
2900
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2901
|
-
box-sizing: border-box;
|
|
2902
|
-
`;function tg({height:e,backgroundColor:n,headers:o,treeKind:i,isSticky:r,compareMode:l,onCompareModeChanged:c}){return o.length===0?null:(o.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(eg,{heightValue:e,bgColor:n,"data-testid":y("sticky-header-report-tree"),children:o.map((d,p)=>t.jsx(Di,{id:d.id,treeKind:i,reportElementData:d.reportElementData,height:On(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:n,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:o.length-1===p,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:c},d.id))}))}const Gi=T.createContext(void 0);function ng({height:e,kind:n,rootNodes:o,compareMode:i,isSticky:r,backgroundColor:l,treeNodePadding:c,treeClassName:d,treeStyle:p,treeRef:u,treeOuterElementRef:g,infiniteLoadingProps:h,variableNodeHeightTree:x,onNodeClick:f,onCompareModeChanged:m,scrollPosition:w,onScroll:b,nodeOpenStatus:k,onNodeCollapseToggled:$,onTreeInnerElementHeightChanged:C,onToggleCheck:v,hoveredParentIdProps:B}){const A=T.useRef(null),M=T.useRef(null),V=Mn(x?.prevFetchState),D=Mn(x?.prevRefreshFetchState),[K,te]=T.useState(0),J=g??M,re=u??A,he=W(),[ue,pe]=T.useState(void 0),[$e,qe]=T.useState(!1),[ge,me]=T.useState(k),Ze=(F,U)=>{me(Object.assign({},ge,{[F]:U})),$?.(F,U)},In=F=>{if(o.contentNodes.length>0)if(Object.keys(F).length>0){const U={};Object.keys(F).forEach(xe=>{U[xe]={open:F[xe]}}),re?.current?.recomputeTree(U)}else{const U=o.contentNodes[0].id;re?.current?.recomputeTree({[U]:{open:!0}})}};T.useLayoutEffect(()=>{if((!Wn(w,ue)||ue==null)&&J.current!=null){const F=w?.scrollLeft==null?he==="small"?0:J.current.scrollWidth:w?.scrollLeft;if(w!=null){const U={scrollTop:w.scrollTop,scrollLeft:F};pe(U),F!==w?.scrollLeft&&b?.(U)}J.current.scroll({left:F,top:w?.scrollTop})}},[w]),T.useEffect(()=>{Wn(k,ge)||(me(k),In(k))},[k]),T.useEffect(()=>{const F=J.current,U=Ui(()=>{if(F!=null&&(ue==null||F.scrollLeft!==ue.scrollLeft||F.scrollTop!==ue.scrollTop)){const xe={scrollLeft:F.scrollLeft,scrollTop:F.scrollTop};pe(xe),b?.(xe)}},50);return F?.addEventListener("scroll",U),()=>{F?.removeEventListener("scroll",U)}},[J,ue,b]),T.useEffect(()=>{if(o.contentNodes.length>0){In(ge);const F=o.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";F!==$e&&qe(F)}},[$e,qe,o,re,J]),T.useEffect(()=>{(x!=null&&V==="In-Progress"&&x.fetchState==="Completed"&&x.isSortApplied||x!=null&&D==="In-Progress"&&x.refreshFetchState==="Completed")&&(x.reducedFetchState==="Completed"&&x.setIsSortApplied(!1),te(K+1))},[K,x?.fetchState,x?.isSortApplied,V,D,x]);const Ot=T.useRef(),[Ei,Ri]=T.useState(void 0),Nn=T.useCallback(((F,U,xe)=>function*(){for(let we=0;we<U.length;++we)yield fo(U[we],F,0,xe[U[we].id]??void 0);for(;;){const we=yield;for(let Je=0;Je<we.node.children.length;++Je)yield fo(we.node.children[Je],F,we.nestingLevel+1,xe[we.node.children[Je].id]??void 0)}})(n,o.contentNodes,ge),[n,o]),Hi={rootNodes:o,treeNodePadding:c,backgroundColor:l,kind:n,isSticky:r,compareMode:i,onCompareModeChanged:m};return t.jsx(Gi.Provider,{value:Hi,"data-testid":y("report-tree"),children:h==null?t.jsx(Pn,{className:d,style:p,ref:re,innerRef:Ot,outerRef:J,innerElementType:qt,treeWalker:Nn,onItemsRendered:()=>{const F=Ot.current;F!=null&&F.clientHeight>0&&F.clientHeight!=Ei&&(Ri(F.clientHeight),C?.(F.clientHeight))},height:e,width:"100%",children:F=>t.jsx(xo,{...F,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:f,onNodeCollapseToggled:Ze,compareMode:i,onCompareModeChanged:m,onToggleCheck:v})}):t.jsx(qi,{isItemLoaded:h.isItemLoaded,itemCount:h.itemCount+1,loadMoreItems:h.loadMoreItems,children:({onItemsRendered:F,ref:U})=>t.jsx(Pn,{className:d,style:p,ref:U,innerRef:Ot,outerRef:J,innerElementType:qt,treeWalker:Nn,onItemsRendered:F,height:e,width:"100%",children:xe=>t.jsx(xo,{...xe,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:f,onNodeCollapseToggled:Ze,compareMode:i,onCompareModeChanged:m,onToggleCheck:v,hoveredParentIdProps:B})},K)})})}const qt=T.forwardRef((e,n)=>{const{children:o,style:i,...r}=e,{rootNodes:l,treeNodePadding:c,backgroundColor:d,kind:p,isSticky:u,compareMode:g,onCompareModeChanged:h}=T.useContext(Gi),x=l.headerNodes.reduce((b,k)=>b+On(k.reportElementData.config.reportId,k.reportElementData.element.kind,k.isFirstNode),0),f=c?.left,m=c?.right,w=s.sp8;return t.jsxs("div",{ref:n,style:{...i,width:"auto",minWidth:"100%",paddingLeft:f,paddingRight:m,marginBottom:w},...r,children:[t.jsx(tg,{height:x,backgroundColor:d,headers:l.headerNodes,treeKind:p,isSticky:u.isStickyHeader,compareMode:g,onCompareModeChanged:h}),o]})});qt.displayName="stickyInnerElementType";const og=a.div`
|
|
2903
|
-
display: flex;
|
|
2904
|
-
flex: 1 0 auto;
|
|
2905
|
-
width: ${e=>e.width}px;
|
|
2906
|
-
height: ${e=>e.height}px;
|
|
2907
|
-
padding-left: ${e=>e.paddingLeft}px;
|
|
2908
|
-
background-color: ${e=>e.bgColor?.hex()};
|
|
2909
|
-
|
|
2910
|
-
& .content-scroll {
|
|
2911
|
-
overflow: auto;
|
|
2912
|
-
scrollbar-width: thin;
|
|
2913
|
-
scrollbar-color: transparent transparent;
|
|
2914
|
-
&::-webkit-scrollbar {
|
|
2915
|
-
width: ${s.sp2};
|
|
2916
|
-
height: ${s.sp2};
|
|
2917
|
-
background-color: transparent;
|
|
2918
|
-
}
|
|
2919
|
-
&::-webkit-scrollbar-thumb {
|
|
2920
|
-
background-color: transparent;
|
|
2921
|
-
}
|
|
2922
|
-
|
|
2923
|
-
&:hover {
|
|
2924
|
-
scrollbar-color: ${e=>e.theme.colors.grey1} transparent;
|
|
2925
|
-
&::-webkit-scrollbar {
|
|
2926
|
-
width: ${s.sp2};
|
|
2927
|
-
height: ${s.sp2};
|
|
2928
|
-
background-color: transparent;
|
|
2929
|
-
}
|
|
2930
|
-
&::-webkit-scrollbar-track {
|
|
2931
|
-
box-shadow: inset 0 0 2px ${X.scrollbarBoxShadow};
|
|
2932
|
-
-webkit-box-shadow: inset 0 0 2px ${X.scrollbarBoxShadow};
|
|
2933
|
-
background-color: transparent;
|
|
2934
|
-
}
|
|
2935
|
-
&::-webkit-scrollbar-thumb {
|
|
2936
|
-
background-color: ${e=>e.theme.colors.grey1};
|
|
2937
|
-
border-radius: 2px;
|
|
2938
|
-
}
|
|
2939
|
-
}
|
|
2940
|
-
}
|
|
2941
|
-
`;function hg({rootNodes:e,type:n,compareMode:o,isSticky:i,backgroundColor:r,treeNodePadding:l,onAccountClick:c,infiniteLoadingProps:d,variableNodeHeightTree:p,hoveredParentIdProps:u,onCompareModeChanged:g,scrollPosition:h,onScroll:x,nodeOpenStatus:f,onNodeCollapseToggled:m,onReportTableHeightChanged:w,onToggleCheck:b}){return t.jsx(Ki,{children:({height:k,width:$})=>t.jsx(og,{"data-testid":y("report-tree-container"),height:k,width:$,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(ng,{"data-testid":y("report-tree"),treeClassName:"content-scroll",height:k,kind:n,rootNodes:e,compareMode:o,isSticky:i,backgroundColor:r,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:d,variableNodeHeightTree:p,hoveredParentIdProps:u,onNodeClick:c==null?void 0:(C,v,B,A,M)=>{B!=null&&A!=null&&c(B,A,M)},onCompareModeChanged:g,scrollPosition:h,onScroll:x,nodeOpenStatus:f,onNodeCollapseToggled:m,onTreeInnerElementHeightChanged:w,onToggleCheck:b})})})}export{ee as D,He as F,sg as J,hg as X,Z as a,dg as g,ut as h,Gc as s,vn as y,Ve as z};
|