@zeniai/web-app-ui 4.14.28-prod → 4.14.29-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-CnKQi3u4.js → ACHDetailsPage-DdI8Zlpr-DP3Ijrzf.js} +6 -6
- package/dist/assets/{AIPerformancePage-VILPvNCr-BPT7YRxu.js → AIPerformancePage-BCxF5hNI-DwsSzcsx.js} +15 -15
- package/dist/assets/AccountInfoPage-D_PrQwlp-DcHjYUET.js +18 -0
- package/dist/assets/{AccountInfoPageContent-g_X840C3-Bf7uv7Ip.js → AccountInfoPageContent-jLGn4-UA-BlSpfvCV.js} +7 -7
- package/dist/assets/{AccountLockedInfoModal-DDNvWMEQ-D21ggUhc.js → AccountLockedInfoModal-CKODwo_y-D1V0TVL_.js} +8 -8
- package/dist/assets/{AccountReconDetailsDrawerPage-CydLoK6D-DgTwHDXu.js → AccountReconDetailsDrawerPage-B2m7w0mL-C5Y15orT.js} +17 -17
- package/dist/assets/AccountRow-G9Hw9KCo-CT1w9ZhF.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-D8mOW1Wp-Bllhxb1U.js → AccountsPromoCardStack-C1-hQWvB-BQ8MpMFD.js} +17 -17
- package/dist/assets/AddAddressForCardDrawer-Dd-0o1b--B4hUfY9b.js +6 -0
- package/dist/assets/{AddToWalletPage-BMCgd2A5-DYYQJbMt.js → AddToWalletPage-BLdfTvYw-1DCwK82d.js} +15 -15
- package/dist/assets/AddressRoutes-BQkJFfvp.js +1 -0
- package/dist/assets/AddressScreen-Dl895CZ9.js +9 -0
- package/dist/assets/{AgingReportsPage-BL_aBNzL-Rfib8YTF.js → AgingReportsPage-C6aasTzQ-C63SyJmI.js} +7 -7
- package/dist/assets/AiCfoScreen-IdwAAJXG.js +11 -0
- package/dist/assets/{AllUserItems-b0wgd0Wz-HghicmNo.js → AllUserItems-CjeF5SWi-CeRsiH4z.js} +13 -13
- package/dist/assets/{ApAgingDetailPage-CD2EkZkg-C3t2oIzS.js → ApAgingDetailPage-BWtvu1dO-Br56Wlkb.js} +4 -4
- package/dist/assets/AppBasePage-MKRsDpmx-DMLcxkrr.js +71 -0
- package/dist/assets/AppDrawerContent-DN2hf6ff-5NhbUBos.js +92 -0
- package/dist/assets/ApprovalRulesSettingsPage-0XbPzs2a-C8UoHZRv.js +47 -0
- package/dist/assets/ArAgingChart-DSx_E9ZM-RnIrRkZm.js +24 -0
- package/dist/assets/ArAgingDetailPage-C8h1id5v-HwBRgj9f.js +46 -0
- package/dist/assets/{AttachmentView-ENg9Osic-P9NYY_0P.js → AttachmentView-CqKnI6Xt-AOGCu7iZ.js} +7 -7
- package/dist/assets/BalancesInsightWithToolTip-CSaW4oJh-DywAYbnn.js +38 -0
- package/dist/assets/{BankAccountSection-oL-aN0I_-Dgtd5LW7.js → BankAccountSection-Dhp7GLZA-FNVqovjK.js} +5 -5
- package/dist/assets/BankAccountWarningSection-C_OfdR1O-BMVJxE-j.js +51 -0
- package/dist/assets/{BankConnectionsSettingsPage-B848OGHq-Cd04Ls8R.js → BankConnectionsSettingsPage-CDPUFu2k-BBx4P7dZ.js} +21 -21
- package/dist/assets/BillDetailPage-BWBGE0pg-CYoOWtCP.js +266 -0
- package/dist/assets/{BillPayApprovalRoutes-D2WhMQ-d.js → BillPayApprovalRoutes-BvnC9SqN.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DtAj6RxA-cHLoC7d8.js → BillPayApprovalRuleDetailPage-B_XoB7xi-CXJBKdTH.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DLHvMgeY-o_RLMJzv.js → BillPayApprovalRulesPage-5okdFn01-D6fpe4cT.js} +12 -12
- package/dist/assets/{BillPayPromoPage-DQJAZi1a-nMEmkS30.js → BillPayPromoPage-GoR4wxn7-Cd3jtttJ.js} +11 -11
- package/dist/assets/{BillPayRoutes-BUUZZuBG.js → BillPayRoutes-DqZf2rOO.js} +13 -13
- package/dist/assets/BillPaySetUpPage-CKWIFJ92-Dr75QuFi.js +42 -0
- package/dist/assets/{BillingSettingsPage-Cfe4Vmza-BztoAmNg.js → BillingSettingsPage-AjSQYumd-GqgYiFI4.js} +10 -10
- package/dist/assets/{BillsBulkReviewDrawerPage-7y9q0HF_-BQu7vS0s.js → BillsBulkReviewDrawerPage-DsNKfhkT-CXzE-Qir.js} +1 -1
- package/dist/assets/{BoxItem-CTEOx6Nh-C4z3ogUT.js → BoxItem-BWNurtfc-J9WJ61G4.js} +3 -3
- package/dist/assets/BusinessVerificationPage-DN88j0Rn-DzH0PVhP.js +138 -0
- package/dist/assets/BusinessVerificationPageScreen-CJ17INUy.js +9 -0
- package/dist/assets/BusyIndication-H_iNZOWd-BNmJKxof.js +9 -0
- package/dist/assets/{CardNumberSubText-DijJqFXC-9bJRWO6u.js → CardNumberSubText-BAWc12F9-CekGLfjU.js} +5 -5
- package/dist/assets/{CashbackDetailPage-BxIWU0z2-5aSz_QAT.js → CashbackDetailPage-BhCHvGxj-nllESilf.js} +21 -21
- package/dist/assets/{ChargeCardDetailPage-ClyQPqJf-1IHjkCeF.js → ChargeCardDetailPage-D9-V0pjZ-CTp6LwRI.js} +64 -64
- package/dist/assets/{ChargeCardListPage-CYhY6c52-CMF1P6xh.js → ChargeCardListPage-CZFi8l0_-CO-jS4Wx.js} +21 -21
- package/dist/assets/ChargeCardListTable-DiJUp9-c-hw3gHlrw.js +711 -0
- package/dist/assets/{ChargeCardPaymentHistoryPage-wt6arCEL-CW6KbxWs.js → ChargeCardPaymentHistoryPage-CW9gtO0w-oF9Kbl5Z.js} +11 -11
- package/dist/assets/ChargeCardPromoPage-CiZDV925-B7JK6cJL.js +222 -0
- package/dist/assets/{ChargeCardRoutes-Bi6qtFGx.js → ChargeCardRoutes-BumOjc7r.js} +12 -12
- package/dist/assets/{ChargeCardSetupPage-C59WR7nm-BzmfqBsT.js → ChargeCardSetupPage-C5jXY5P--Da4gT9DT.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-DF5rt4B5-DgWKrTjO.js → ChargeCardStatementsPage-CetLgQ8l-CHHBhChm.js} +3 -3
- package/dist/assets/CheckDepositDrawerPage-BYfqgSGk-58W0gPrS.js +206 -0
- package/dist/assets/CollapsableReportTable-BhbPzkAB-C83Y_pXv.js +2972 -0
- package/dist/assets/{CompanyOfficerDetailsSection-BNSHkrC4-ClzL1rA4.js → CompanyOfficerDetailsSection-CMcuDe-X-CNo7Ot8a.js} +34 -34
- package/dist/assets/CompanyPassportCard-DImW2Dm8-pP6x_qCR.js +42 -0
- package/dist/assets/{CompanyPassportPage-DqhT6YL_-C387_Sbn.js → CompanyPassportPage-DT2W9QE1-DJLwOOR3.js} +18 -18
- package/dist/assets/{CompanyPassportScreen-Bw3qq-Ht.js → CompanyPassportScreen-Ckk3Aa0n.js} +1 -1
- package/dist/assets/{CompleteProfile-DdA-FkwG-CwuL_HZU.js → CompleteProfile-BOabRQRQ-Cdf3T9vg.js} +1 -1
- package/dist/assets/ConfettiBurst-Ix0vYpu--B-yjeAz3.js +1 -0
- package/dist/assets/ConnectionAuthScreen-CJIuvxwT.js +11 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-DRfa7meL.js → ConstrainedInnerElement-CgdnMeoA-CUV-Iost.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CODInbfe-yXgVF4QO.js → CreateOrEditVendorPage-D86akQ-H-a9byVQeU.js} +21 -21
- package/dist/assets/{CreditCardPaymentDrawerPage-DZNUIDa0-JL4MKrF6.js → CreditCardPaymentDrawerPage-MS34Pxyw-S-FNpO-K.js} +21 -21
- package/dist/assets/CurrencySelectField-BsuzTGXR-DG4V_Nis.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-CBlyvq0r-BGxcXIVy.js → CustomerOnboardingActivationPage-BP-GIrmI-cXKCGBAv.js} +5 -5
- package/dist/assets/CustomerOnboardingAuthScreen-C_Q_XIl1.js +1 -0
- package/dist/assets/CustomerOnboardingContainerPage-D4BMPshV-BEJOCQX6.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CIhb8Zvx-CnjT99uZ.js → CustomerOnboardingDetailPageSkeleton-CISAUodZ-DSVMFFq4.js} +9 -9
- package/dist/assets/CustomerOnboardingNoStepsPage-DgMQ5prq-DEUVMq4v.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-BJGDpI-d-BQ9XwM-v.js → CustomerOnboardingPage-QvCZDMFw-pwPfUUii.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-DmgQGvpp-Bu9zcjpR.js → CustomerOnboardingProductSuitePage-Bt1cV23--C-IqxjRL.js} +6 -6
- package/dist/assets/CustomerOnboardingRoutes-GPk7JXLd.js +23 -0
- package/dist/assets/{Dashboard-Cvmg-DzK-puV8ebMR.js → Dashboard-DdAePVSx-CyfCOyra.js} +26 -26
- package/dist/assets/{DashboardReportPage-C7bT-gmW-B8nCLsAW.js → DashboardReportPage-ccn0JYfk-DfPZgIh7.js} +40 -40
- package/dist/assets/DashboardRoutes-DbCVxvoA.js +21 -0
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CcTStx9W-Bnz6LhkJ.js → DashboardSidebarBackgroundAnimation-DPDd6e7b-ClZHrJ6l.js} +1 -1
- package/dist/assets/{DefaultTenantHome-RFtlxhsO.js → DefaultTenantHome-DnjlKX8o.js} +1 -1
- package/dist/assets/DepositAccTransactionItem-BijpyBiZ-CNN7AUw4.js +76 -0
- package/dist/assets/DepositAccTransactionListPage-DOuU7gGT-CxNst2Ko.js +66 -0
- package/dist/assets/DomesticWireDetailScreen-CMHXbUdU.js +18 -0
- package/dist/assets/DomesticWireDetailsPage-B10Vx6K5-BgPOj6ev.js +21 -0
- package/dist/assets/DownloadOverlay-BiIbEvq6-DkggD5hU.js +439 -0
- package/dist/assets/{DrawerPage-DGuh6P-6-BcyuUjYZ.js → DrawerPage-4aE01eRo-CbGkLlgW.js} +14 -14
- package/dist/assets/DrawerScreen-Bqlol_ka.js +1 -0
- package/dist/assets/EditPeoplePage-BWjOJqch-DMjcjWgK.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-Dcw8QlH6-CKpHH0Rb.js +865 -0
- package/dist/assets/{EntityDetailPage-BbeHCNGS-CuhXo5UK.js → EntityDetailPage-DseDMalq-D030AWbJ.js} +1 -1
- package/dist/assets/EntityDetailRoutes-DKPg6KvF.js +1 -0
- package/dist/assets/{EntitySummarySection-BgjWn9vX-B3b1MF7S.js → EntitySummarySection-D1o-WKT9-B4D8PhFo.js} +26 -26
- package/dist/assets/{ExpenseAutomationOverviewPage-V2cvYWxH-CNs6UVeS.js → ExpenseAutomationOverviewPage-BIGlSzsy-DDeWTiVS.js} +52 -52
- package/dist/assets/ExpenseAutomationPage-BUARFwSx-BgUO5pJv.js +3614 -0
- package/dist/assets/ExpenseAutomationRoutes-CFAuM0iq.js +20 -0
- package/dist/assets/{ExpressPayPage-5VdASApP-D9MlPJBc.js → ExpressPayPage-BKpxo5VW-BeZ2tWeR.js} +14 -14
- package/dist/assets/{FeaturePreviewPage-CA_fxOHn-Bf1rij6M.js → FeaturePreviewPage-CfqYjofS-Dw_fXJXh.js} +2 -2
- package/dist/assets/FeaturePreviewScreen-Ctx49exK.js +1 -0
- package/dist/assets/{FollowStepsSection-CTSjTKjT-BGVIDRAe.js → FollowStepsSection-CJzIGe2N-q0pn7uac.js} +11 -11
- package/dist/assets/GlobalReviewListPage-B4qWm75N-BekP71Yj.js +291 -0
- package/dist/assets/{InformationCardStack-D_Z7Ebe0-CrFTMoBP.js → InformationCardStack-BXWxFJnm-DZneOpmz.js} +3 -3
- package/dist/assets/InsightsCardStack-iUppdWya-IGcayZ6m.js +79 -0
- package/dist/assets/InsightsSection-CPg_uo3H-DaY57Nkj.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-4OV7HFwe-DZdJwIZ8.js → IntegrationsSettingsPage-DthkTtT9-BfWjdmm5.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-B1nvNamF-BTijFGVO.js → InternationalWireSwiftDetailsPage-hYeFGjj4-De4TNLmU.js} +19 -19
- package/dist/assets/InternationalWireVerificationPage-0TZuCAzZ-DstpGM2q.js +65 -0
- package/dist/assets/{InviteFormPage-C5mS-6c8-CQ3pBA8X.js → InviteFormPage-BC1PH63r-DAB3gVVK.js} +7 -7
- package/dist/assets/{InvitePageListView-Yj83_lDA-BObL1UwR.js → InvitePageListView-BJDfCvno-Sk3rc3V-.js} +65 -65
- package/dist/assets/InvitePeoplePage-Bl-WUfXO-DagADS45.js +12 -0
- package/dist/assets/InvoiceUploadSection-BgVvYytR-DjoTneQr.js +140 -0
- package/dist/assets/{IssueChargeCardPage-BIOTVOMR-BjJzOdS5.js → IssueChargeCardPage-0JEZpfCu-DLK0riSj.js} +29 -29
- package/dist/assets/{LabeledAddressValue-Bb1x9jR--K66XVI1l.js → LabeledAddressValue-BCsadhSu-lscFDQOa.js} +2 -2
- package/dist/assets/LabeledAddressValueField-D-AO8-Me-DR8Qyzx1.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-Do7rlK6F-CTyXPdV4.js +16 -0
- package/dist/assets/{LabeledCountryMultiSelectField-LeubJT8b-DKahjV4C.js → LabeledCountryMultiSelectField-BHwXHYPO-CYnRn6eD.js} +4 -4
- package/dist/assets/{LabeledCreatableSingleSelectField-CzrPLo-T-BnUMrxSH.js → LabeledCreatableSingleSelectField-gMUp1tXY-y1kl4nd-.js} +7 -7
- package/dist/assets/LabeledDocumentField-DxUq-7nr-DAyGmAsR.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-D51ly333-CZ2VlJWO.js +59 -0
- package/dist/assets/{LabeledEmailInputField-BOEHGgHy-B8PcLj3U.js → LabeledEmailInputField-Cd9p7Kj0-DZf49c8n.js} +11 -11
- package/dist/assets/{LabeledNameField-DWKoivcI-Bg7Loxzf.js → LabeledNameField-364jsrFK-CaN5hIDf.js} +5 -5
- package/dist/assets/{LabeledSingleSelectField-BkGsnV9P-BmcuJIvo.js → LabeledSingleSelectField-B3pMIEfZ-C8i8zlDG.js} +3 -3
- package/dist/assets/LabeledText-uFTi1qOo-Dh31QRqg.js +42 -0
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BTo_s8x5-CA9RNgOe.js → LabeledUserSingleSelectWithSubtitlesField-XD6D3r0Y-Ce4jb_BF.js} +15 -15
- package/dist/assets/{LabeledZeniRolesDropDownField-C3LoYUh_-B2cjpWvF.js → LabeledZeniRolesDropDownField-CbJ3OtWK-CN-nwhu5.js} +20 -20
- package/dist/assets/{LinkJETransactionPage-BbpybbwD-CgRdsDGC.js → LinkJETransactionPage-B5M6Ojt--C7jEEQdH.js} +12 -12
- package/dist/assets/{LockCardPage-C0XjGES8-DzPwjGzp.js → LockCardPage-DN2dvQA9-ptj6YCPt.js} +34 -34
- package/dist/assets/{LowBalancePopup-CkO97HGX-nozhu0WG.js → LowBalancePopup-CXTWwEyb-DHi-7FjF.js} +6 -6
- package/dist/assets/MagicLinkACHDetailsPage-6iW79Hsc-BuBCCqa7.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-KPRoVnEc-9k2m3ge7.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DjB2bi8k-BA612N6w.js +1 -0
- package/dist/assets/{MagicLinkRoutes-D99wiuRu.js → MagicLinkRoutes-0gOcNpgv.js} +10 -10
- package/dist/assets/MagicLinkSignInScreen-hqZFIhM7.js +12 -0
- package/dist/assets/MagicLinkSuccessPage-JRpuY47p-CZGcRvVV.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-CEZGF8ER-DCWrw88D.js → MagicLinkTitleSection-BnzImXCX-DsNqMADc.js} +9 -9
- package/dist/assets/MailingDetailsSection-aNMVpaF0-Mi3ceriD.js +21 -0
- package/dist/assets/MobileAppDrawer-CXepfp6e.js +1 -0
- package/dist/assets/{MoreMenuButton-BWNCapgP-BFDpJyIR.js → MoreMenuButton-C_jqM-Ix-D5fFt93A.js} +23 -23
- package/dist/assets/{MyBankConnectionsSettingsPage-C6p5J_f5-2jAZ0hVQ.js → MyBankConnectionsSettingsPage-CdW-lOqB-CQAYDmx1.js} +7 -7
- package/dist/assets/MyPendingActivationChargeCardListPage-DKvDUyn7-Cn7MG0Rp.js +6 -0
- package/dist/assets/{MyProfileSettingsPage-Ctkx_sAQ-BiLtfbOe.js → MyProfileSettingsPage-ZmPfSk3b-CekXUU4A.js} +6 -6
- package/dist/assets/NavBarWithPicker-BYosIzfk-CHzZbup1.js +30 -0
- package/dist/assets/{NavigationArrow-CUPvxfZv-CROxnh_J.js → NavigationArrow-CMLkPq47-BPg7he64.js} +7 -7
- package/dist/assets/NavigationDots-maxhYltq-IyF42HyI.js +15 -0
- package/dist/assets/{NewGlobalMerchantPage-g9JuX6MR-Cddrtv6r.js → NewGlobalMerchantPage-BkDFFysB-BMj84SI3.js} +4 -4
- package/dist/assets/NoDataChart-CKqR_T30-DZpYrIq4.js +26 -0
- package/dist/assets/{NoDataTable-D1v085Vv-CeExg0EA.js → NoDataTable-BQLSA76V-CA1kwcWh.js} +1 -1
- package/dist/assets/{NotFoundPage-Bf-EPtU9-DffpH6WC.js → NotFoundPage-rtS33FV3-CW80Ae7U.js} +4 -4
- package/dist/assets/NotFoundScreen-86VjMapP.js +1 -0
- package/dist/assets/NotificationRoutes-WpVyAd3n.js +1 -0
- package/dist/assets/{NotificationSettingsPage-Zv4-2vEl-CP53OCrD.js → NotificationSettingsPage-JJ5a6f1u-Dg5nWtfu.js} +15 -15
- package/dist/assets/NotificationsListConfig-CWWrsRBB-BQkEfnwX.js +1 -0
- package/dist/assets/NotificationsPage-9vgLoVxJ-CqhoB5mC.js +685 -0
- package/dist/assets/OpExByVendorPage-Dy7Ll1zE-CncYLP1q.js +100 -0
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-C20bjbix.js → OverlayContainerPage-BG9y5C0t-o9B6MYdd.js} +1 -1
- package/dist/assets/PandLWithForecastPage-D-V3dD71-2GY3G9_S.js +123 -0
- package/dist/assets/PandLWithForecastRoutes-NKWly9at.js +1 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CqavirRU-BkF9Y6IP.js → PaymentAccountSetupBillingAddressSection-B_4cMrVT-DX0VhwXR.js} +9 -9
- package/dist/assets/PeoplePage-B9bxxtaC-BUc8a2C6.js +772 -0
- package/dist/assets/PeopleRoutes-LIAWa-ry.js +22 -0
- package/dist/assets/PerformanceRoutes-647LNvtJ.js +1 -0
- package/dist/assets/{Preview-BI7JdS0A.js → Preview-C63MOKlS.js} +1 -1
- package/dist/assets/{ProductsCarousel-Dx8bStwI-DCDAdb91.js → ProductsCarousel-BnezAuLA-CWNs-1wI.js} +8 -8
- package/dist/assets/{PromoBaseCards-Bauxzwzt-D83UTBk-.js → PromoBaseCards-B5vRjrOp-DZnXvun2.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-COlHLDTh-Ca5S7kv5.js → QBOConnectionDialog-mVAyONiQ-BFw_Aijs.js} +4 -4
- package/dist/assets/{QBOConnectionScreen-Bdjj5_fC.js → QBOConnectionScreen-DPXluGT3.js} +4 -22
- package/dist/assets/{QBOSetupSection-Cb4AlHU9-D57sQXWJ.js → QBOSetupSection-Co4tc3sO-UEf5y5yj.js} +14 -14
- package/dist/assets/ReferralListScreen-C9t9-uma.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-DBPigEkQ.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cb4wyiiA-5a2mo1SI.js → ReimbursementApprovalRuleDetailPage-t48xfVQ_-DSouPzhL.js} +6 -6
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-D1GmaX--.js → ReimbursementApprovalRuleDetailScreen-iL2FRiSL.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BEid42KU-CqL0yvKr.js → ReimbursementApprovalRulesPage-BuOE0xKm-CyQAGb5D.js} +3 -3
- package/dist/assets/ReimbursementDetailPage-oD88KyGk-Z26luXjw.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-fvIAhNdR-CIqsc5v3.js → ReimbursementPromoPage-DC6vQNFr-Df-JQbVt.js} +11 -11
- package/dist/assets/ReimbursementRoutes-DP3Zyw9z.js +13 -0
- package/dist/assets/{ReimbursementSetUpPage-CBKANstD-CS_Qn9By.js → ReimbursementSetUpPage-ClkPQCRt-3XXwJA8a.js} +5 -5
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DiWW85PW-CdKgZHg6.js +1 -0
- package/dist/assets/ReloadCard-DcyZqZO5-CwUMwJXU.js +26 -0
- package/dist/assets/ReportTableViewSelector-Be_385i6-D1d1hisQ.js +151 -0
- package/dist/assets/ReportsPage-Dp_uEJ2H-DsQqyldd.js +258 -0
- package/dist/assets/ReportsRoutes-CQDTEzwi.js +1 -0
- package/dist/assets/{RevenueChart-BHrj8Dy9-CDfFyh6U.js → RevenueChart-B-iMe_PD-Bi6Ok69j.js} +12 -12
- package/dist/assets/ReviewDetailsPage--0ZUpEVp-CQmlT2je.js +290 -0
- package/dist/assets/{ReviewOverlay-Be_F1hd--BbTRhL0o.js → ReviewOverlay-D_JI48L0-CyNlOwFh.js} +8 -8
- package/dist/assets/RewardsRoutes-BiuOGirU.js +1 -0
- package/dist/assets/RoleWithToolTip-Bqdsc31P-CNmkPW05.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-h1Ewtn5T-BEUluqGW.js → ScheduleDetailsFixedAssetsPage-vFbciuuA-Diyke3YU.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-Cr-KaH2D-BD6uE37t.js → ScheduleDetailsPage-BUxgvyKT-Xmkq7RcC.js} +3 -3
- package/dist/assets/ScheduleSequenceTable-CPf50z9S-CLdzdoca.js +324 -0
- package/dist/assets/ScreenRoutes-IYIFGbR5.js +2 -0
- package/dist/assets/{SetUpAccountSection-ULABF-Md-zu_CEzKT.js → SetUpAccountSection-Bk3RGJCY-2x7H96z3.js} +32 -32
- package/dist/assets/{SettingsRoutes-DjjTCzCe.js → SettingsRoutes-CEWrZV9M.js} +7 -7
- package/dist/assets/{SetupPagesScreen-n_J03kZN.js → SetupPagesScreen-BFZeWYvZ.js} +6 -6
- package/dist/assets/SignIn-DbvYG8OW-DIGSru0r.js +491 -0
- package/dist/assets/SignInScreen-B27QEE_5.js +1 -0
- package/dist/assets/SignOutScreen-DfH6txYx.js +9 -0
- package/dist/assets/SpendManagementListViewPage-CSGYJyZu-BweWpc_X.js +134 -0
- package/dist/assets/SpendManagementPerTabPage-DuGeuTYQ-DataZT66.js +754 -0
- package/dist/assets/SpendManagementSection-CZ_i360S-BWGL8ndc.js +375 -0
- package/dist/assets/StatementItem-CDx2knrL-D3uOvDYp.js +31 -0
- package/dist/assets/StatementsPage-BMFYpAPA-D3BvQu9P.js +58 -0
- package/dist/assets/{StatusSwitcher-CgzMvf5t-BZOhbmQ7.js → StatusSwitcher-CDnarHSf-meshGWkH.js} +6 -6
- package/dist/assets/{SubTabSwitcher-gc5g6vV0-DPlVBwi9.js → SubTabSwitcher-DhIXVTVI-Dm-A1aML.js} +9 -9
- package/dist/assets/SuccessAnimation-C-AHWH-M-DYko07lj.js +13 -0
- package/dist/assets/SummaryCard-4S9PQQ5W-B2YKQ_55.js +1 -0
- package/dist/assets/{TaskDetailPage-Brq3l5Lm-D1g8XH38.js → TaskDetailPage-rWt-QUEv-DH6XgxNN.js} +45 -45
- package/dist/assets/TaskListScreen-CWIPHTTl.js +9 -0
- package/dist/assets/TaskManagementPage-D3YvKWVJ-DM0xoyo4.js +1067 -0
- package/dist/assets/TaskRoutes-CgARLANx.js +9 -0
- package/dist/assets/TimeRangeSwitcher-CFJrPhfZ-Bh0bakQI.js +64 -0
- package/dist/assets/TimeframeSwitcher-DS6zgSjT-D1R0FMKh.js +31 -0
- package/dist/assets/TimeframeSwitcherWithToggle-Did8-Dj7-CGwKh4M0.js +53 -0
- package/dist/assets/{TopExCard-CRxFMC50-DI0Ys14u.js → TopExCard-ByF-svYM-Ctw9EYS9.js} +6 -6
- package/dist/assets/{TopExDetailPage-D7dCJGpQ-0fQzChNa.js → TopExDetailPage-ABVezwCx-DzhDJZA8.js} +16 -16
- package/dist/assets/{TransactionActivityLogPage-ByyxovGE-DjV_kYSi.js → TransactionActivityLogPage-B8ytNODX-DVytAoU9.js} +9 -9
- package/dist/assets/TransactionDetailPage-CunkyIXB-CNc17TsU.js +903 -0
- package/dist/assets/TransactionDetailRoutes-CK-34SUt.js +1 -0
- package/dist/assets/{TransactionDetailScreen-BB7cA6Qz.js → TransactionDetailScreen-DDeYMLmN.js} +2 -2
- package/dist/assets/TransactionList-CEPVnfZD-ClBHZqTs.js +153 -0
- package/dist/assets/{TransactionListBig-BOKPby7d-BEnm2yMd.js → TransactionListBig-BYFv0irc-pAbEVbC_.js} +24 -24
- package/dist/assets/TransactionListPage-CEVs8CRQ-DxaQpOMD.js +35 -0
- package/dist/assets/{TransactionListRoutes-C8lRyPOF.js → TransactionListRoutes-DCJ5Lweu.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BK4zpJ1F-CN3xlCoQ.js → TransactionVendorDetailPage-DYvgQFQS-DSlx2b8r.js} +4 -4
- package/dist/assets/{TransferDrawerPage-B5ofYt0y-GqcyFVry.js → TransferDrawerPage-gDUiIE-g-Bvvjaklx.js} +25 -25
- package/dist/assets/TreasuryOverviewPage-DXIqVBWp-B9pyuKCe.js +725 -0
- package/dist/assets/{TreasuryPromoPage-ofZQDboF-CT-dKX0-.js → TreasuryPromoPage-oERSujnm-ClN1OTf6.js} +24 -24
- package/dist/assets/TreasuryRoutes-BjolvDGd.js +45 -0
- package/dist/assets/TreasuryStatementsPage-GWCCDPvf-_h3417p3.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-4aV14kQe-DVnspMQ5.js → TreasuryTaxLetterPage-pTRWyNYH-BQ_qi0uM.js} +4 -4
- package/dist/assets/TrendChart-B2oLQN05-BkrG4BVH.js +16 -0
- package/dist/assets/TrendWithTransactions-Bx63fv0P-BQ8GiA8P.js +116 -0
- package/dist/assets/{UncategorizedAccountsMappingPage-mYSXtdgK-C0jjOEyX.js → UncategorizedAccountsMappingPage-D_QwlpkW-CEr8coR8.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-C44UiDRH-CnXGyk33.js → UnitIntegrationPage-EeIQyR4L-D0Uey0gi.js} +4 -4
- package/dist/assets/UploadAdditionalDocumentOverlay-B8_7dtgO-BVpFWtFr.js +38 -0
- package/dist/assets/Vendor2FAPopup-DwTNfggI-QO3FNLHc.js +1 -0
- package/dist/assets/{VendorACHDetailsPage-CxlQSWGZ-CJCZBXzk.js → VendorACHDetailsPage-KDUuJi9g-SMC7hwJD.js} +1 -1
- package/dist/assets/VendorDetailPage-k42A_Pv1-C-eMTgO6.js +257 -0
- package/dist/assets/VendorDomesticWireDetailsPage-Dotx5CDo-B6fOSB2X.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-DIyS2YV_-BSd00dOl.js → VendorFiling1099EditablePage-BUuhWv_U-D-yHNm5T.js} +16 -16
- package/dist/assets/VendorFirstReviewPage-bN7DO44j-DzTJUqvm.js +730 -0
- package/dist/assets/{VendorInternationalWireDetailsPage-DOYmaAmB-CP8642Mt.js → VendorInternationalWireDetailsPage-DjkOrgs7-CUIWISK5.js} +11 -11
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BRtCcxHm-BL32YiVm.js +1 -0
- package/dist/assets/{VendorsAccountsSection-D6DinIAj-BpUOgRZp.js → VendorsAccountsSection-D-7K4aZA-BPnUt7kZ.js} +2 -2
- package/dist/assets/{VendorsRoutes-BcdOO99u.js → VendorsRoutes-Dh458IQK.js} +21 -21
- package/dist/assets/VerifyDevice-VPfuXUzH-AU1zuQlS.js +112 -0
- package/dist/assets/{VideoPlayer-BuOlZW0M-BMl86S4m.js → VideoPlayer-2MQyZqi6-DqklpbYT.js} +1 -1
- package/dist/assets/VideoPopup-ZFwt4A81-Ch4C2tup.js +31 -0
- package/dist/assets/WiseConfirmationScreen-Bat277PD.js +12 -0
- package/dist/assets/ZeniAccountDetailPage-CJrpkcjr-CBwTak_Y.js +300 -0
- package/dist/assets/ZeniAccountListViewPage-DvJI3LGF-CKLfdqdE.js +443 -0
- package/dist/assets/ZeniAccountNavBarPieces-UCydmVe7-CXtDBFLP.js +33 -0
- package/dist/assets/{ZeniAccountPromoPage-iELT-FzW-BjCD72m0.js → ZeniAccountPromoPage-DiGsabvm-C_SqwLVl.js} +22 -22
- package/dist/assets/ZeniAccountRoutes-CAAxW9JY.js +58 -0
- package/dist/assets/{ZeniAccountSetupPage-feqonZIV-CG1KriVL.js → ZeniAccountSetupPage-hVmIT6tO-tFtJgQAT.js} +4 -4
- package/dist/assets/ZeniAccountStatementScreen-BaoiJX5h.js +9 -0
- package/dist/assets/{ZeniAvatar-CHmpyZc4-D3SEyYvU.js → ZeniAvatar-C2LxBTZ4-YOmVMm4j.js} +3 -3
- package/dist/assets/{ZeniCopyright-Cy7xQhak-ScelyO6I.js → ZeniCopyright-BTIaEGE9-Di2RxJTA.js} +1 -1
- package/dist/assets/{ZeniDatePicker--Wk1Y9-b-DVDC_pYc.js → ZeniDatePicker-9JxwH7J5-CcV9D7gC.js} +5 -5
- package/dist/assets/ZeniTransferAmountSlider-BlEFrC-Z-rEEslC0z.js +63 -0
- package/dist/assets/{accountMappingHelper-CTk3qsZA.js → accountMappingHelper-CZHlLVR_.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-DBixabBc.js → add-to-wallet-DgdBD8_G-BgQLRlhS.js} +1 -1
- package/dist/assets/{analytics-DeMdmyL7.js → analytics-CDQ7tGpV.js} +1 -1
- package/dist/assets/{analyticsHelper-MsboCQcB-CSXrY7fF.js → analyticsHelper-CYp9h-KW-6KJErEZC.js} +1 -1
- package/dist/assets/{analyticsHelper-LPY3WkeX.js → analyticsHelper-jTnRtCKB.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-CpIzET1p.js → arrow-south-east-round-PEovUgvH-CvfiHTRY.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-NghmWVqE.js → auto-transfer-rule-mbafm5D3-8rMpx5do.js} +1 -1
- package/dist/assets/{avatar-Dz7aEm3d-bHemC5rL.js → avatar-Dz7aEm3d-BdKWS97a.js} +1 -1
- package/dist/assets/bank-letter-BOcVjN6J-ydWr7ZOI.js +1 -0
- package/dist/assets/{calculateSize-DtEgyuiA-CjEqHti4.js → calculateSize-DecSvt-d-CIfCbqel.js} +1 -1
- package/dist/assets/{chartTypes-BZL6U2-d-jpm0hHlK.js → chartTypes-D2s_Hwo9-BbhqSw8p.js} +1 -1
- package/dist/assets/{clock-CJkylEKt-7F524_Wn.js → clock-CJkylEKt-CjcyjUt4.js} +1 -1
- package/dist/assets/common-BGuhvMjF-Ry4gfI81.js +1 -0
- package/dist/assets/commonDimensions-u85vL09f-D9VH5FSj.js +1 -0
- package/dist/assets/{commonTypes-lunwFIdl-CvIuXwQA.js → commonTypes-DKKiPW4t-BlYaUk1n.js} +1 -1
- package/dist/assets/{core-CSCSHf4h.js → core-B0nKoasK.js} +3 -38
- package/dist/assets/{dash.all.min-DD8xAjYr.js → dash.all.min-CXMi5GlA.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-CjRggx5I.js → decodeURIComponentSafe-CHDtTf3Z.js} +1 -1
- package/dist/assets/{dnd-COr1F31f.js → dnd-NNN-4w0O.js} +1 -1
- package/dist/assets/{dollar-round-D18u7nlm-jCztdMWk.js → dollar-round-D18u7nlm-CQw1tD8J.js} +1 -1
- package/dist/assets/downloadPdf-CnXPMbwm-BjEW_jtg.js +1 -0
- package/dist/assets/empty-CVZTZ-q9.js +1 -0
- package/dist/assets/{empty-CxBrUVur.js → empty-DA-JSLu3.js} +1 -1
- package/dist/assets/epic-D0yDPv8O.js +2 -0
- package/dist/assets/{filter-cZIFUNvj-CXXx4fNz.js → filter-cZIFUNvj-DAakc3sS.js} +1 -1
- package/dist/assets/getLocaleForTenant-DGG0tVFT.js +1 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-CKc8hoEH.js → gift-box-Cmt9OgIZ-C6pLHK0s.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-C4iKOud4.js → graphic-no-data-l-DU4J8fDt-Dn4I-rOX.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-VLqn_raX.js → graphic-no-data-net-burn-l-CzmycA0m-DO0fHtUP.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-DNYsMVIY.js → handshake-BPg58FML-C47iPdmd.js} +1 -1
- package/dist/assets/{helper-2Z01-P8G-6WuzcTRW.js → helper-C7sZs2qJ-DE63clA9.js} +2 -2
- package/dist/assets/{hyperlink-DQyCeXx2-CQAWbGo_.js → hyperlink-DQyCeXx2-BOSMM7uX.js} +1 -1
- package/dist/assets/{empty-BUd3exG5.js → index-BIjZljJR.js} +1 -1
- package/dist/assets/{index-DDbdy58V.js → index-ByxsQZNo.js} +4239 -4303
- package/dist/assets/{index-BOP14OKw.js → index-CEBFS-eA.js} +1 -1
- package/dist/assets/{index-BRX_XEL-.js → index-CQJQXzZY.js} +1 -1
- package/dist/assets/{index-CWdL8pZi.js → index-DrsMeyfs.js} +2 -8
- package/dist/assets/index-zhMcpxMF.js +1 -0
- package/dist/assets/{lexical-O2a-WmAf.js → lexical-Fl-AogKa.js} +1 -1
- package/dist/assets/{liveblocks-CxtxQte5.js → liveblocks-DskTqGyX.js} +3 -8
- package/dist/assets/{lottie-BQDwpIDJ.js → lottie-BzV8yd9z.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-CG-v5g2M-DTh9tKjd.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode--0eoufeA-Z11hNQZX.js → mapSectionWithAcOnlyToTreeNode-Okgefznu-CJAMwNIO.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-Cehw-jOG-pPZFbPSE.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-sCX2cRnL-BfAjp3to.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-yMo9FeMO-BQEyuzFH.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-ww9DgKFP-Cu0SrzZe.js +1 -0
- package/dist/assets/{media-player-En9R4zy-.js → media-player-eLGyvMHZ.js} +2 -2
- package/dist/assets/{money-2cg1MuG4-Dg41nRSv.js → money-2cg1MuG4-rv31fLm6.js} +1 -1
- package/dist/assets/{mui-CVWe5m7x.js → mui-40xepic5.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-BOzcKZnj.js → page-detail-CWX5S47F-BrbO3gtI.js} +1 -1
- package/dist/assets/{page-summary-D7_VQHwN-CcrLQmlI.js → page-summary-D7_VQHwN-bNTaLAow.js} +1 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-DgahycaC.js +3 -0
- package/dist/assets/{pathToGoBack-DIP3w2mF.js → pathToGoBack-D0UTUGlT.js} +1 -1
- package/dist/assets/{pdf-rNAmIEF5.js → pdf-A8jRKyoC.js} +3 -3
- package/dist/assets/{pdf-lib-JWzwvdNX.js → pdf-lib-mQnebn-k.js} +1 -1
- package/dist/assets/{plaid-CiVnbkxs.js → plaid-cfgjTkr8.js} +1 -1
- package/dist/assets/{pusher-CfFxSIhQ.js → pusher-1O2fsDZq.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-dW1yKl4Q.js → radio-default-CiSgisfh-Cy5-Jl8l.js} +1 -1
- package/dist/assets/{react-DRNApT94.js → react-BEcUyG01.js} +2 -12
- package/dist/assets/{react-DreXWt5i.js → react-BEctO-ia.js} +2 -12
- package/dist/assets/{react-CWo9VOAE.js → react-C6o6ScF5.js} +2 -12
- package/dist/assets/react-CQm7lU_-.js +19 -0
- package/dist/assets/{react-BLXPSNxU.js → react-CidUU4N9.js} +2 -12
- package/dist/assets/{react-BeMs2FpL.js → react-D8s_m7Vn.js} +2 -12
- package/dist/assets/{react-4TAXbemT.js → react-DcRcFJEU.js} +3 -13
- package/dist/assets/{react-BQsk4BoF.js → react-QF7HiPHo.js} +2 -12
- package/dist/assets/{recharts-C5pBg015.js → recharts-Bbdho9Pi.js} +1 -1
- package/dist/assets/{routePaths-fz0y1bUD.js → routePaths-CpPoI1xs.js} +1 -1
- package/dist/assets/{sentry-DXG8OAzW.js → sentry-COYnhuxW.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-Cd3QAXsn.js → shield-DOlUxcFf-wVomU2ew.js} +1 -1
- package/dist/assets/{spend-limit-D6SyboD4-D2szeI3Z.js → spend-limit-D6SyboD4-BruIkKZj.js} +1 -1
- package/dist/assets/toCOABalancesWithID-DinJUeg4-DkE5puj7.js +1 -0
- package/dist/assets/toChartData-DrYGpr_j-D2GR-55Z.js +1 -0
- package/dist/assets/{transaction-placeholder-CpOwZAMG-B2mLzfbH.js → transaction-placeholder-CpOwZAMG-C-J0dsgn.js} +1 -1
- package/dist/assets/{undo-b_3XZ5CX-DSJzH_Tn.js → undo-b_3XZ5CX-Chu3klyO.js} +1 -1
- package/dist/assets/{unlock-BPWn2I5L-Do1fnqx6.js → unlock-BPWn2I5L-BGatCFPm.js} +1 -1
- package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-GfUJ6f_w.js +1 -0
- package/dist/assets/{uploadAttachment-DtJo5Tp4-BZBGp8x9.js → uploadAttachment-DPYv4udq-CXZc-rXm.js} +29 -29
- package/dist/assets/{uploadReceipts-Dge0cNF1-Bk3l52rk.js → uploadReceipts-CIgkuVpu-Mr0MhYx1.js} +1 -1
- package/dist/assets/{url-DHNwFLzp.js → url-C27bOf0k.js} +1 -1
- package/dist/assets/{url-D1_xUHHk.js → url-XCmE-JaB.js} +1 -1
- package/dist/assets/{useDeviceId-CbEpWwMZ.js → useDeviceId-UXlBHXyB.js} +1 -1
- package/dist/assets/useInitialThreadRequest-BIFRjZze.js +1 -0
- package/dist/assets/{useLongPress-GCK2COYQ-B5PGidsY.js → useLongPress-GCK2COYQ-CqE4OIEm.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-BIw6ZPFi.js → usp-line-BBd1wKwW-vz296XX2.js} +1 -1
- package/dist/assets/{utils-CEFC9M68.js → utils-DMEPgX6w.js} +7 -20
- package/dist/assets/withTransactionSidePanel-BDgDxNYJ.js +8 -0
- package/dist/assets/zeni-epic-state-DCforPdM.js +14 -0
- package/dist/assets/{zeni-icon-only-CqALPKNP.js → zeni-icon-only-BkUYNged.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +16 -8
- package/package.json +4 -4
- package/dist/assets/AccountInfoPage-BTogpO7M-BUQAmyzG.js +0 -18
- package/dist/assets/AccountRow-Zjkju8uM-6N6Zy9oH.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-BvGnuIf6-DHHz24yV.js +0 -6
- package/dist/assets/AddressRoutes-BRhTpo4o.js +0 -1
- package/dist/assets/AddressScreen-DDbvTrW2.js +0 -9
- package/dist/assets/AiCfoScreen-BMeMMkhN.js +0 -11
- package/dist/assets/AppBasePage-BM1NMPdI-DTjsrnRl.js +0 -71
- package/dist/assets/AppDrawerContent-XR9dBd-C-BEm_wBDf.js +0 -92
- package/dist/assets/ApprovalRulesSettingsPage-6unABLlP-Dy0-KpVU.js +0 -47
- package/dist/assets/ArAgingChart-DePiNxcV-D_qXJGXM.js +0 -24
- package/dist/assets/ArAgingDetailPage-DiJ6PePf-DNZvBCjF.js +0 -46
- package/dist/assets/BankAccountWarningSection-CtRFcHTv-D_XRICo4.js +0 -51
- package/dist/assets/BillDetailPage-CPxVWXx6-1Oioq8DD.js +0 -266
- package/dist/assets/BillPaySetUpPage-BVOLWF1M-BteYr6zk.js +0 -42
- package/dist/assets/BusinessVerificationPage-D05hRyo1-CBEBIqW_.js +0 -138
- package/dist/assets/BusinessVerificationPageScreen-Cmz7lCYf.js +0 -9
- package/dist/assets/BusyIndication-Nz8htndZ-DYZEgBsh.js +0 -9
- package/dist/assets/ChargeCardListTable-Dblodw9X-CDugn7Oq.js +0 -711
- package/dist/assets/ChargeCardPromoPage-AihUlwys-Dk9L2iB8.js +0 -222
- package/dist/assets/CheckDepositDrawerPage-B9-ktuL_-qZS941d9.js +0 -206
- package/dist/assets/CollapsableReportTable-BAz0DbFh-CAhAQGEZ.js +0 -2844
- package/dist/assets/CompanyPassportCard-DTfKmcGv-De1PPEAL.js +0 -42
- package/dist/assets/ConfettiBurst-Dc0iIaw3-B7boQlLF.js +0 -1
- package/dist/assets/ConnectionAuthScreen-Du50wdfI.js +0 -11
- package/dist/assets/CurrencySelectField-D_D8AUqS-BZdJIXWt.js +0 -139
- package/dist/assets/CustomerOnboardingAuthScreen-Bmfm6EF8.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-BJV0xAFp-C9np5L3h.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-CLFh9K94-eo3A1qkf.js +0 -66
- package/dist/assets/CustomerOnboardingRoutes-C8nMZVtS.js +0 -23
- package/dist/assets/DashboardRoutes-Cs6trW6R.js +0 -21
- package/dist/assets/DepositAccTransactionItem-XZgomj7v-Bhnnv8Ar.js +0 -76
- package/dist/assets/DepositAccTransactionListPage-B11lcuip-BIFNXmB4.js +0 -66
- package/dist/assets/DomesticWireDetailScreen-CDquLvw_.js +0 -18
- package/dist/assets/DomesticWireDetailsPage-Cw4aq8Ar-D7iaVqqU.js +0 -21
- package/dist/assets/DownloadOverlay-DE63RFQe-rm17dQJa.js +0 -439
- package/dist/assets/DrawerScreen-C-gJlwdg.js +0 -1
- package/dist/assets/EditPeoplePage-Dmz2l8uY-DdG9SBff.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-BrQ60mqq-BnVEgdU7.js +0 -865
- package/dist/assets/EntityDetailRoutes-Bjmke2zn.js +0 -1
- package/dist/assets/ExpenseAutomationPage-BDZ6aX0q-DC7_gDiI.js +0 -2323
- package/dist/assets/ExpenseAutomationRoutes-N5IH8NJS.js +0 -20
- package/dist/assets/FeaturePreviewScreen-CLKJ2QAB.js +0 -1
- package/dist/assets/GlobalReviewListPage-DmrnXFgW-B57SMtSt.js +0 -291
- package/dist/assets/InsightsCardStack-Dbpzjgf4-CmY1A9uH.js +0 -79
- package/dist/assets/InsightsSection-DgViiL7e-D07WWVHm.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-HZgqUkj4-BQdwtp6K.js +0 -65
- package/dist/assets/InvitePeoplePage-C7DlxHsy-Ch_cCeBl.js +0 -12
- package/dist/assets/InvoiceUploadSection-DdIQCBkC-B4QsOjKN.js +0 -140
- package/dist/assets/LabeledAddressValueField-D3_DsNPu-DVmbiKLN.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-DdHmj0q2-BmQSyhgm.js +0 -16
- package/dist/assets/LabeledDocumentField-CFtFroDl-BAzH2vry.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-CFsuVVp3-Cllg2-kq.js +0 -59
- package/dist/assets/LabeledText-CZMUFsPf-BzxAzPVQ.js +0 -42
- package/dist/assets/MagicLinkACHDetailsPage-CcaWGIEm-3uajWvNb.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-6V37rCS5-Dxqj-iaP.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-BKWBDCxr-BHR9xOJ3.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-D9jNjUlX.js +0 -12
- package/dist/assets/MagicLinkSuccessPage-L5UJIvTe-BW7N1yCO.js +0 -31
- package/dist/assets/MailingDetailsSection-CRsQVOYi-xwOtQnim.js +0 -21
- package/dist/assets/MobileAppDrawer-D_OmB8VL.js +0 -1
- package/dist/assets/MyPendingActivationChargeCardListPage-CluWS3nS-DHrdaNvb.js +0 -6
- package/dist/assets/NavBarWithPicker-ClP6LCUF-D7FqbQNc.js +0 -30
- package/dist/assets/NavigationDots-Cu9LZj7T-BoVhghfD.js +0 -15
- package/dist/assets/NoDataChart-DcMRzXHU-DbjmTgYu.js +0 -26
- package/dist/assets/NotFoundScreen-DykxXNVn.js +0 -1
- package/dist/assets/NotificationRoutes-C-lRR8pY.js +0 -1
- package/dist/assets/NotificationsListConfig-CO5uOSs7-aAnj3j2i.js +0 -1
- package/dist/assets/NotificationsPage-BH6B4Q8b-D1IQhl37.js +0 -685
- package/dist/assets/OpExByVendorPage-EjyJRLhn-BhVe3s3b.js +0 -100
- package/dist/assets/PandLWithForecastPage-UpDz4Qqu-BN-vVvpP.js +0 -107
- package/dist/assets/PandLWithForecastRoutes-zzKekdOK.js +0 -1
- package/dist/assets/PeoplePage-D2N1XP-O-caSWGUZc.js +0 -720
- package/dist/assets/PeopleRoutes-CsdzM7DQ.js +0 -22
- package/dist/assets/PerformanceRoutes-DoL3UdHs.js +0 -1
- package/dist/assets/ReferralListScreen-CmCz8zc8.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-Cei43fBO.js +0 -1
- package/dist/assets/ReimbursementDetailPage-CuuOsKPv-BmGXaLa_.js +0 -314
- package/dist/assets/ReimbursementRoutes-CtyvtqmD.js +0 -13
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-BXO46shT-BXeQO4_5.js +0 -1
- package/dist/assets/ReloadCard-BKHKE8Pu-BkEOOlFz.js +0 -26
- package/dist/assets/ReportTableViewSelector-gYxUii1M-CxYX420D.js +0 -150
- package/dist/assets/ReportsPage-D7rEPLAa-CTGwy7xH.js +0 -121
- package/dist/assets/ReportsRoutes-DzvU0X2a.js +0 -1
- package/dist/assets/ReviewDetailsPage-B9SMV_va-DpCKxVZs.js +0 -290
- package/dist/assets/RewardsRoutes-vGh4ydPL.js +0 -1
- package/dist/assets/RoleWithToolTip-D9DCHaph-BK_HFdm8.js +0 -22
- package/dist/assets/ScheduleSequenceTable-BBbLa0gA-BpQ_H6dR.js +0 -324
- package/dist/assets/ScreenRoutes-Ddt_3qWB.js +0 -2
- package/dist/assets/SignIn-6YH_riJW-CoJmoytJ.js +0 -491
- package/dist/assets/SignInScreen-C81bBqwd.js +0 -1
- package/dist/assets/SignOutScreen-CEuaozcz.js +0 -9
- package/dist/assets/SpendManagementListViewPage-D_RrkezV-Gg_jrdXn.js +0 -134
- package/dist/assets/SpendManagementPerTabPage-BnugLA94-ISau-F_A.js +0 -754
- package/dist/assets/SpendManagementSection-DCk1isQq-DqP3iWuL.js +0 -375
- package/dist/assets/StatementItem-BWKA6BsE-B8aggs_N.js +0 -31
- package/dist/assets/StatementsPage-C5KuiVH4-BGiHKDOi.js +0 -58
- package/dist/assets/SuccessAnimation-CcFXT4sg-BETTrulo.js +0 -13
- package/dist/assets/SummaryCard-DgPg2oPm-DQSV3AJ_.js +0 -1
- package/dist/assets/TaskListScreen-D_rI0d2T.js +0 -9
- package/dist/assets/TaskManagementPage-Dyy-A0ij-BRtOKHgc.js +0 -1063
- package/dist/assets/TaskRoutes-CcAxScvl.js +0 -9
- package/dist/assets/TimeRangeSwitcher-PcHPZNOq-Bhy6ebhC.js +0 -64
- package/dist/assets/TimeframeSwitcher-XZjkUS_W-L_xk8ffg.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-KxCdrFMS-aH0QwP3R.js +0 -31
- package/dist/assets/TransactionDetailPage-D0_Tjv5D-BzMxrc83.js +0 -903
- package/dist/assets/TransactionDetailRoutes-CKp9VtFU.js +0 -1
- package/dist/assets/TransactionList-DoYieHoy-Dq8Ds1Cb.js +0 -153
- package/dist/assets/TransactionListPage-Bfx0PW2V-Bv5CoGoz.js +0 -35
- package/dist/assets/TreasuryOverviewPage-D4LuhPMd-CAEUMavm.js +0 -708
- package/dist/assets/TreasuryRoutes-aZ6pdLcv.js +0 -45
- package/dist/assets/TreasuryStatementsPage-D4bGPC_n-BmKF81fd.js +0 -58
- package/dist/assets/TrendChart-BJLik8fK-B6jK66HA.js +0 -16
- package/dist/assets/TrendWithTransactions-R1FCSydB-BZtJh6Ko.js +0 -116
- package/dist/assets/UploadAdditionalDocumentOverlay-CJmvE3y6-B0vgA0Ji.js +0 -38
- package/dist/assets/Vendor2FAPopup-Bt_phaZI-DuVfk6Oy.js +0 -1
- package/dist/assets/VendorDetailPage-BixXt95H-CEzpHcoG.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-BmFZeCgu-DciG2YXd.js +0 -1
- package/dist/assets/VendorFirstReviewPage-DZ00XYRi-COzJ3EOL.js +0 -730
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BCafZBL5-De6VzWbh.js +0 -1
- package/dist/assets/VerifyDevice-DFug_o82-D9msA2pt.js +0 -112
- package/dist/assets/VideoPopup-B03SM83j--LOH40s0.js +0 -31
- package/dist/assets/WiseConfirmationScreen-D_LadT7o.js +0 -12
- package/dist/assets/ZeniAccountDetailPage-BJQvxY7D-DuzKrnCG.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-CvwGdUPT-Bay6wmzi.js +0 -441
- package/dist/assets/ZeniAccountNavBarPieces-OGXEdZmI-DsgZBmco.js +0 -14
- package/dist/assets/ZeniAccountRoutes-DBnPGXKs.js +0 -58
- package/dist/assets/ZeniAccountStatementScreen-Br16O1Ed.js +0 -9
- package/dist/assets/ZeniTransferAmountSlider-BGK6jY7c-BE0jJw55.js +0 -63
- package/dist/assets/common-DspMM85g-CC6Rl9Du.js +0 -1
- package/dist/assets/commonDimensions-RZ10geET-CKOh47Tk.js +0 -1
- package/dist/assets/detailCommon-CxEOrtjx-Ct263sBr.js +0 -38
- package/dist/assets/downloadPdf-BpxrRqLr-DZAS6b5B.js +0 -1
- package/dist/assets/epic-DybEFF0H.js +0 -2
- package/dist/assets/getLocaleForTenant-CjEkOXZy.js +0 -1
- package/dist/assets/index-CCO5Gdps.js +0 -1
- package/dist/assets/index-iatqQdID.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-BJRnX8Ir-U3ElZRzN.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-CQvnRjWo-CdPsLyjM.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CY0Vs8kK-DzlhNi2D.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cytg0KxN-BBQ4MiQI.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-3KVmTdIZ-DB9phXRk.js +0 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-DlyoL7DQ.js +0 -4
- package/dist/assets/react-C8m8Qc1h.js +0 -37
- package/dist/assets/toCOABalancesWithID-DzAIFjHl-Dd4AXSDY.js +0 -1
- package/dist/assets/toChartData-BurvmO_S-Dcja8_o1.js +0 -1
- package/dist/assets/useInitialThreadRequest-B_AZH90H.js +0 -1
- package/dist/assets/withTransactionSidePanel-CV9mcG0R.js +0 -8
- package/dist/assets/zeni-epic-state-B_a_iTrR.js +0 -122
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import{e as me,y as fe,_ as ct,ba as dt,bb as pt,bc as ht,O as B,V as a,bd as mt,P as $,a$ as ft,aM as ut,a_ as gt,be as bt,o as C,ab as _t,L as yt,bf as xt,x as Y,bg as wt,k as L,j as ye,I as z,bh as xe,C as ue,bi as Ie,S as $e,bj as St,ad as Ct,l as Fe,q as Rt,b7 as Ot}from"./index-ByxsQZNo.js";import{a as v,b as Pe}from"./sentry-COYnhuxW.js";import{n as b}from"./mui-40xepic5.js";import{_ as vt}from"./liveblocks-DskTqGyX.js";import{bt as we,F6 as Tt,Ff as At,Fg as Bt,Fh as K,Fi as kt,Fj as Lt,Fk as jt,Fl as Nt,Fm as Mt,Fn as re,Fo as le,Fp as Se}from"./zeni-epic-state-DCforPdM.js";import{j as It,z as ce}from"./mapTimeframeBalancesToTreeNode-sCX2cRnL-BfAjp3to.js";import{m as Q,l as de}from"./analyticsHelper-CYp9h-KW-6KJErEZC.js";import{b as $t}from"./ReportTableViewSelector-Be_385i6-D1d1hisQ.js";import{S as oe,y as Ft,M as Pt,$ as Et,v as Vt}from"./TimeRangeSwitcher-CFJrPhfZ-Bh0bakQI.js";import{X as zt}from"./TimeframeSwitcherWithToggle-Did8-Dj7-CGwKh4M0.js";import{DownloadOverlayButton as Dt}from"./DownloadOverlay-BiIbEvq6-DkggD5hU.js";import{Z as Ut,n as Yt,t as P,j as Ce}from"./CollapsableReportTable-BhbPzkAB-C83Y_pXv.js";import{D as Re,T as Oe,C as te,L as Wt,g as Ee}from"./mapSectionWithAcOnlyToTreeNode-Okgefznu-CJAMwNIO.js";import{d as Gt,l as Ht}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-ww9DgKFP-Cu0SrzZe.js";import{d as Zt}from"./mapLoadingInProgressToTreeNode-CG-v5g2M-DTh9tKjd.js";import"./pdf-A8jRKyoC.js";import"./core-B0nKoasK.js";import"./lottie-BzV8yd9z.js";import"./dnd-NNN-4w0O.js";import"./analytics-CDQ7tGpV.js";import"./plaid-cfgjTkr8.js";import"./recharts-Bbdho9Pi.js";import"./utils-DMEPgX6w.js";import"./filter-cZIFUNvj-DAakc3sS.js";import"./TimeframeSwitcher-DS6zgSjT-D1R0FMKh.js";import"./page-detail-CWX5S47F-BrbO3gtI.js";import"./page-summary-D7_VQHwN-bNTaLAow.js";import"./AccountRow-G9Hw9KCo-CT1w9ZhF.js";import"./clock-CJkylEKt-CjcyjUt4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="feb22a5f-2a03-43c0-a673-77e4860f00fc",e._sentryDebugIdIdentifier="sentry-dbid-feb22a5f-2a03-43c0-a673-77e4860f00fc")}catch{}})();const qt=b.div`
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
`,Xt=b.div`
|
|
5
|
+
display: flex;
|
|
6
|
+
width: 100%;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
10
|
+
min-height: ${oe}px;
|
|
11
|
+
box-sizing: content-box;
|
|
12
|
+
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
13
|
+
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
14
|
+
`,Jt=b.div`
|
|
15
|
+
position: relative;
|
|
16
|
+
width: auto;
|
|
17
|
+
max-width: 100%;
|
|
18
|
+
`,Kt=b(ue)`
|
|
19
|
+
color: ${e=>e.theme.colors.primary};
|
|
20
|
+
`,Qt=b(Ie)`
|
|
21
|
+
color: ${e=>e.theme.colors.hero};
|
|
22
|
+
width: 12px;
|
|
23
|
+
height: 12px;
|
|
24
|
+
flex-shrink: 0;
|
|
25
|
+
`,eo=b.div`
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
gap: ${C.sp2};
|
|
30
|
+
min-height: ${oe}px;
|
|
31
|
+
padding: 0 ${C.sp3};
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
/* Class-based hover targets: nested styled component refs need @emotion/babel-plugin in app builds */
|
|
35
|
+
&:hover .reports-period-slider-label {
|
|
36
|
+
color: ${e=>e.theme.colors.primary};
|
|
37
|
+
}
|
|
38
|
+
&:hover .reports-period-slider-chevron {
|
|
39
|
+
color: ${e=>e.theme.colors.primary};
|
|
40
|
+
}
|
|
41
|
+
`,to=b.div`
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
height: ${C.sp5};
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
padding: 0 ${C.sp3};
|
|
47
|
+
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
48
|
+
border-radius: ${C.sp1};
|
|
49
|
+
background: ${e=>e.theme.colors.grey5};
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
min-width: 0;
|
|
52
|
+
justify-content: space-between;
|
|
53
|
+
gap: ${C.sp2};
|
|
54
|
+
&:hover {
|
|
55
|
+
border-color: ${e=>e.theme.colors.primary};
|
|
56
|
+
}
|
|
57
|
+
`,oo=b(ue)`
|
|
58
|
+
color: ${e=>e.theme.colors.hero};
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
text-overflow: ellipsis;
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
`,no=b(Ie)`
|
|
63
|
+
color: ${e=>e.theme.colors.hero};
|
|
64
|
+
width: 12px;
|
|
65
|
+
height: 12px;
|
|
66
|
+
flex-shrink: 0;
|
|
67
|
+
`,Ve=b.div`
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: calc(100% + ${C.sp1});
|
|
70
|
+
left: 0;
|
|
71
|
+
z-index: 10;
|
|
72
|
+
background: ${e=>e.theme.colors.grey5};
|
|
73
|
+
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
74
|
+
border-radius: ${C.sp1};
|
|
75
|
+
padding: ${C.sp3};
|
|
76
|
+
min-width: 260px;
|
|
77
|
+
`,ao=b(Ve)`
|
|
78
|
+
left: 50%;
|
|
79
|
+
transform: translateX(-50%);
|
|
80
|
+
`,so=b.div`
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
gap: ${C.sp3};
|
|
84
|
+
`,io=b.div`
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
gap: ${C.sp2};
|
|
88
|
+
padding-bottom: ${C.sp2};
|
|
89
|
+
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
90
|
+
`,ve=b.div`
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
flex: 1;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
padding: ${C.sp2} ${C.sp3};
|
|
96
|
+
border-radius: ${C.sp1};
|
|
97
|
+
border: 1px solid
|
|
98
|
+
${e=>e.active?e.theme.colors.primary:e.theme.colors.grey3};
|
|
99
|
+
background: ${e=>e.active?e.theme.colors.background:"transparent"};
|
|
100
|
+
`,Te=b(ue)`
|
|
101
|
+
color: ${e=>e.theme.colors.hero};
|
|
102
|
+
`,Ae=b(Fe)`
|
|
103
|
+
color: ${e=>e.theme.colors.primary};
|
|
104
|
+
`,ro=b(Fe)`
|
|
105
|
+
color: ${e=>e.theme.colors.hero};
|
|
106
|
+
flex-shrink: 0;
|
|
107
|
+
`,lo=b.div`
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
`,Be=b.div`
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-wrap: wrap;
|
|
113
|
+
`,co=b.div`
|
|
114
|
+
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
115
|
+
width: 100%;
|
|
116
|
+
margin: ${C.sp2} 0;
|
|
117
|
+
`;function ee(e){const{dateFormat:{analytics:t}}=B.getLocalizedStrings();return e.startDate.format(t.YYYYFormat)}function q(e,t,r){return Ut(r,e,t)}const po=({allTimeframeTicks:e,bookCloseDate:t,firstMonthOfFY:r,fromIndex:l,selectedTimeframe:o,toIndex:n,onFromSelected:p,onToSelected:x})=>{const{dateFormat:{analytics:u}}=B.getLocalizedStrings(),m=B.getLocalizedStrings().reports,[f,h]=v.useState("from"),i=[...new Set(e.map(ee))],[d,y]=v.useState(()=>ee(e[l]??e[0])),s=T=>{h(T),y(ee(e[T==="from"?l:n]))},c=e.map((T,O)=>({tick:T,index:O})).filter(({tick:T})=>ee(T)===d),S=e.length-1,R=S>=0&&Bt(e[S]),k=q(e[l],o,r),M=q(e[n],o,r);return a.jsxs(so,{children:[a.jsxs(io,{children:[a.jsxs(ve,{active:f==="from",onClick:()=>s("from"),children:[a.jsx(Te,{children:m.periodRangeFrom}),a.jsx(Ae,{children:k})]}),a.jsx(ro,{children:"→"}),a.jsxs(ve,{active:f==="to",onClick:()=>s("to"),children:[a.jsx(Te,{children:m.periodRangeTo}),a.jsx(Ae,{children:M})]})]}),a.jsxs(lo,{children:[a.jsx(Be,{children:i.map(T=>a.jsx(xe,{id:T,text:T,checked:T===d,textVariant:"small",onClick:O=>y(O)},T))}),a.jsx(co,{}),a.jsx(Be,{children:c.map(({tick:T,index:O})=>{const _=function(E,D,ne,X){return D==="month"?E.startDate.format(X):q(E,D,ne)}(T,o,r,u.MMMFormat),w=f==="from"?O===l:O===n,A=t!=null&&T.startDate.isAfter(t),I=O===S,N=A&&!(R&&I),F=A&&R&&I;return a.jsx(xe,{id:String(O),text:_,checked:w,starred:N,doubleStarred:F,textVariant:"small",onClick:E=>(D=>{f==="from"?p(D):x(D)})(Number.parseInt(E,10))},O)})})]})]})};function ho(e){const{allTimeframeTicks:t,bookCloseDate:r,firstMonthOfFY:l,onCOABalancesRangeChanged:o,onDateRangeAnalytics:n,isCompareMode:p,referrer:x,selectedCOABalancesRange:u,selectedTimeframe:m,variant:f="default"}=e,[h,i]=v.useState(!1),d=t??[];if(m==="week"||m==="free_range"||d.length===0)return null;const y=Pt(d,u),s=u.numberOfPeriods??1,c=y.startIndex,S=Math.max(0,Math.min(c,d.length-1)),R=Math.min(Math.max(S+y.length-1,0),d.length-1),k=q(d[S],m,l),M=q(d[R],m,l),T=(_,w)=>{const A=w-_+1,I={offsetFromEnd:d.length-1-w,length:A},N={startIndex:_,length:A},F=Et(d,I),E=Vt(d,N);F.thisPeriod!=null&&n!=null&&n(x,p,de(l,m,F.thisPeriod)),o(F,E),i(!1)},O=h&&d.length>0?a.jsx(po,{allTimeframeTicks:d,bookCloseDate:r,firstMonthOfFY:l,selectedTimeframe:m,fromIndex:S,toIndex:R,onFromSelected:_=>{const w=_,A=Math.min(w+s-1,d.length-1);T(w,A)},onToSelected:_=>{const w=Math.min(S,_),A=Math.max(S,_);T(w,A)}}):null;return f==="timeRangeSlider"?a.jsx(Xt,{children:a.jsx(ye,{onClickAway:()=>i(!1),children:a.jsxs(Jt,{"data-testid":$("reports-period-range-calendar"),children:[a.jsxs(eo,{onClick:()=>i(_=>!_),children:[a.jsxs(Kt,{className:"reports-period-slider-label",children:[k," – ",M]}),a.jsx(Qt,{className:"reports-period-slider-chevron"})]}),O!=null?a.jsx(ao,{children:O}):null]})})}):a.jsx(ye,{onClickAway:()=>i(!1),children:a.jsxs(qt,{"data-testid":$("reports-period-range-calendar"),children:[a.jsxs(to,{onClick:()=>i(_=>!_),children:[a.jsxs(oo,{children:[k," – ",M]}),a.jsx(no,{})]}),O!=null?a.jsx(Ve,{children:O}):null]})})}function ze({section:e,sectionId:t,numOfBalances:r,config:l}){return Ce("no_filter",l.filterAccountsWithNilBalances,l.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(o=>function({accountGroup:n,sectionType:p,numOfBalances:x,title:u,isLastNode:m,config:f}){const h=P("section",[],u+p),i={children:[],id:h,isLastNode:m,reportElementData:{element:{kind:"section",title:u,sectionType:p,data:n,numOfBalances:x},config:f}},d=Ce("no_filter",f.filterAccountsWithNilBalances,f.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(n.accounts),y=d.map((s,c)=>Ee({account:s,sectionType:p,numOfBalances:x,title:s.account.accountName,config:f,isLastNode:c===d.length-1,parentNodeIDs:[h],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:d.length>1,hasChildren:s.children.length>0,isLastNode:c===d.length-1}]}}));return i.children.push(...y),i}({accountGroup:o,sectionType:t,numOfBalances:r,title:o.accountGroupName,isLastNode:!0,config:l}))}function De({sectionWithAcOnly:e,sectionType:t,numOfBalances:r,config:l}){return e.accounts.map((o,n)=>Ee({account:o,sectionType:t,numOfBalances:r,title:o.account.accountName,config:l,isLastNode:n===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:o.children.length>0,isLastNode:n===e.accounts.length-1}]}}))}function Ue({balances:e,config:t,nodeId:r}){return{children:[],id:r??P("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function pe(e,t){for(const r of e)r.reportElementData={...r.reportElementData,config:t},pe(r.children,t)}function mo(e,t,r,l=!0){if(Object.assign(e.config,t),function(p){return p.reportId==="profit_and_loss_by_classes"&&"headerBalances"in p&&Array.isArray(p.headerBalances)}(r))return pe(e.headerNodes,t),pe(e.contentNodes,t),{config:t,headerNodes:e.headerNodes,contentNodes:e.contentNodes};const o=Ye(r),n=ce({balances:o,config:t});return{config:t,headerNodes:l?[n]:[],contentNodes:[n,...e.contentNodes.slice(1)]}}const Ye=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e,r=t.sections?.expenses?.balances,l=t.sections?.income?.balances,o=t.sections?.expenses?.additionalBalances??[],n=t.sections?.income?.additionalBalances??[];return(r?.length??0)>0?[...r,...o]:(l?.length??0)>0?[...l,...n]:[]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let r=[];return Object.keys(t.sections).forEach(l=>{t.sections[l].balances.length>0&&(r=[...t.sections[l].balances,...t.sections[l].additionalBalances])}),r}default:return[]}};function fo(e,t,r=!0){const l=B.getLocalizedStrings().reports.sections,o=B.getLocalizedStrings().reports.cashFlow,n=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,x=Ue({balances:n,config:t}),u=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(m=>{const f={children:[],id:P("title_string_only",[],m),isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:l[m],data:void 0,numOfBalances:0},config:t}};u.push(f),e.rootSectionsWithSubSectionIds[m].forEach(h=>{if(jt(h)===!0)if(e.sections[h].accountGroups.length>0){const i=ze({sectionId:h,section:e.sections[h],numOfBalances:p,config:t});u.push(...i)}else{const i=De({sectionWithAcOnly:e.sections[h],sectionType:h,numOfBalances:p,config:t});u.push(...i)}else Nt(h)===!0?u.push(function({calculatedSection:i,numOfBalances:d,title:y,isLastNode:s,config:c}){return{children:[],id:P("calculated_section_type1",[],y),isLastNode:s,reportElementData:{element:{kind:"calculated_section_type1",title:y,data:i,numOfBalances:d},config:c}}}({calculatedSection:e.calculatedSections[h],numOfBalances:p,title:o[h],isLastNode:!0,config:t})):Mt(h)===!0&&u.push(te({calculatedSection:e.calculatedSections[h],numOfBalances:p,title:o[h],isLastNode:!0,config:t}))})}),{config:t,headerNodes:r?[x]:[],contentNodes:[x,...u]}}function uo(e,t){const r=[];let l=[];const o=e.classColumns.length+1,n={children:[],id:P("class_headers",[]),isLastNode:!1,reportElementData:{element:{kind:"class_headers",title:"",data:e.classColumns,numOfBalances:o},config:t}};return r.push(n),l=[n],e.idsInOrder.forEach(p=>{if(re(p)){const x=e.sections[p];x!=null&&r.push(function(u,m,f,h,i){const d=P("section",[],u.title),y=u.treeLayout,s=u.sectionHeaderBalancesSlice??Se(i.firstMonthOfFY),c={children:[],id:d,isLastNode:!0,reportElementData:{element:{kind:"section",title:u.title,sectionType:m,data:s,numOfBalances:f},config:h}};if(y==null)return c;const S=new Map;for(const[R,k]of Object.entries(y.childrenRowIndicesByParent))S.set(Number(R),k);return y.rootAccountRowIndices.forEach((R,k)=>{c.children.push(We(R,u.accounts,S,f,h,[d],k===y.rootAccountRowIndices.length-1))}),c}(x,p,o,t,e))}else if(le(p)){const x=e.calculatedSections[p];x!=null&&r.push(function(u,m,f,h){const i=u.sectionHeaderBalancesSlice??Se(h.firstMonthOfFY);return{children:[],id:P("calculated_section",[],u.title),isLastNode:!0,reportElementData:{element:{kind:"calculated_section",title:u.title,data:i,numOfBalances:m},config:f}}}(x,o,t,e))}}),{config:t,headerNodes:l,contentNodes:r}}function We(e,t,r,l,o,n,p){const x=t[e],u=x.accountReportData,m=r.get(e)??[],f=P("ac_report",n,x.accountId);return{children:m.map((h,i)=>We(h,t,r,l,o,[...n,f],i===m.length-1)),id:f,isLastNode:p,reportElementData:{element:{kind:"ac_report",title:x.accountName,data:u,numOfBalances:l},config:o}}}const ke={contentPaddingLeft:new Y(L[0],L[0],L[0]),contentPaddingRight:new Y(L[3],L[3],L[8])},go=b.div`
|
|
118
|
+
height: ${e=>e.height}px;
|
|
119
|
+
width: 99.9%;
|
|
120
|
+
margin-top: ${C.sp2};
|
|
121
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
122
|
+
`,bo=(e,t,r=!0,l=!1)=>{switch(e.reportId){case"profit_and_loss":return function(o,n,p=!0){const x=B.getLocalizedStrings().reports,u=o.sections.expenses!=null&&o.sections.expenses.balances.length>0?[...o.sections.expenses.balances,...o.sections.expenses.additionalBalances]:o.sections.income!=null&&o.sections.income.balances.length>0?[...o.sections.income.balances,...o.sections.income.additionalBalances]:o.sections.cogs!=null&&o.sections.cogs.balances.length>0?[...o.sections.cogs.balances,...o.sections.cogs.additionalBalances]:o.sections.otherIncome!=null&&o.sections.otherIncome.balances.length>0?[...o.sections.otherIncome.balances,...o.sections.otherIncome.additionalBalances]:o.sections.otherExpenses!=null&&o.sections.otherExpenses.balances.length>0?[...o.sections.otherExpenses.balances,...o.sections.otherExpenses.additionalBalances]:[],m=n.mode!=null&&n.mode==="this_period_vs_period_before"&&u.length>1?o.filter.balancesRange.numberOfPeriods+2:o.filter.balancesRange.numberOfPeriods+1,f=ce({balances:u,config:n}),h=[];return h.push(f),o.idsInOrder.forEach(i=>{if(re(i)===!0&&(o.sections[i].accountGroups.length>0?h.push(Re({section:o.sections[i],sectionType:i,numOfBalances:m,title:x.sections[i],isLastNode:!0,config:n})):h.push(Oe({sectionWithAcOnly:o.sections[i],sectionType:i,numOfBalances:m,title:x.sections[i],isLastNode:!0,config:n}))),le(i)===!0){const d=o.calculatedSections[i];d!=null&&h.push(te({calculatedSection:d,numOfBalances:m,title:x.sections[i],isLastNode:!0,config:n}))}}),{config:n,headerNodes:p?[f]:[],contentNodes:h}}(e,t,r);case"profit_and_loss_by_classes":{const o=e;return o.classColumns!=null&&o.reportTitle==="Profit and Loss by Class"?uo(o,t):function(n,p,x=!0,u=!1){const m=B.getLocalizedStrings().reports,f=B.getLocalizedStrings().common;let h=[];const i=[];let d=[];if(u===!0){const y=Gt({title:f.loading,balances:[],config:p});y.reportElementData.element.numOfBalances=6,x&&(d=[y]),i.push(y),[...Array(8)].forEach((s,c)=>{let S=Ht[c%4];const R=Zt({title:`${c}+${S}`,balances:h,config:p});R.reportElementData.element.numOfBalances=6,i.push(R)})}else{const y=n.sections.expenses.balances.length>0?[...n.sections.expenses.balances,...n.sections.expenses.additionalBalances]:n.sections.income.balances.length>0?[...n.sections.income.balances,...n.sections.income.additionalBalances]:n.sections.cogs.balances.length>0?[...n.sections.cogs.balances,...n.sections.cogs.additionalBalances]:n.sections.otherIncome.balances.length>0?[...n.sections.otherIncome.balances,...n.sections.otherIncome.additionalBalances]:n.sections.otherExpenses.balances.length>0?[...n.sections.otherExpenses.balances,...n.sections.otherExpenses.additionalBalances]:[],s=ce({balances:y,config:p}),c=p.mode!=null&&p.mode==="this_period_vs_period_before"&&y.length>1?n.filter.balancesRange.numberOfPeriods+2:n.filter.balancesRange.numberOfPeriods+1;i.push(s),x&&(d=[s]),n.idsInOrder.forEach(S=>{if(re(S)===!0){const R=n.sections[S];R!=null&&i.push(Wt({section:R,sectionType:S,numOfBalances:c,title:m.sections[S],isLastNode:!0,config:p}))}else if(le(S)===!0){const R=n.calculatedSections[S];R!=null&&i.push(te({calculatedSection:R,numOfBalances:c,title:m.sections[S],isLastNode:!0,config:p}))}})}return{config:p,headerNodes:d,contentNodes:i}}(e,t,r,l)}case"cash_flow":return fo(e,t,r);case"balance_sheet":return function(o,n,p=!0){const x=B.getLocalizedStrings().reports.sections,u=B.getLocalizedStrings().reports.balanceSheet,m=Ye(o),f=n.mode!=null&&n.mode==="this_period_vs_period_before"&&m.length>1?o.filter.balancesRange.numberOfPeriods+2:o.filter.balancesRange.numberOfPeriods+1,h=Ue({balances:m,config:n}),i=[];return i.push(h),Object.keys(o.rootSectionsWithSubSectionIds).forEach(d=>{const y={children:[],id:P("title_string_only",[],d),isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:x[d],data:void 0,numOfBalances:0},config:n}};i.push(y),o.rootSectionsWithSubSectionIds[d].forEach(s=>{if(kt(s)===!0)if(o.sections[s].accountGroups.length>0)if(s==="equity"){const c=ze({sectionId:s,section:o.sections[s],numOfBalances:f,config:n});i.push(...c)}else i.push(Re({section:o.sections[s],sectionType:s,numOfBalances:f,title:u[s],isLastNode:!0,config:n}));else if(s==="equity"){const c=De({sectionWithAcOnly:o.sections[s],sectionType:s,numOfBalances:f,config:n});i.push(...c)}else{const c=o.sections[s];i.push(Oe({sectionWithAcOnly:c,sectionType:s,numOfBalances:f,title:u[s],isLastNode:!0,config:n}))}else Lt(s)===!0&&i.push(te({calculatedSection:o.calculatedSections[s],numOfBalances:f,title:u[s],isLastNode:!0,config:n}))})}),{config:n,headerNodes:p?[h]:[],contentNodes:i}}(e,t,r);default:return}},_o=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return z.Event.profitAndLoss;case"cash_flow":return z.Event.cashFlow;case"balance_sheet":return z.Event.balanceSheet;default:return z.Event.reports}},yo=b.div`
|
|
123
|
+
display: flex;
|
|
124
|
+
flex-direction: row;
|
|
125
|
+
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
126
|
+
justify-content: center;
|
|
127
|
+
width: 100%;
|
|
128
|
+
align-items: center;
|
|
129
|
+
`,xo=b.div`
|
|
130
|
+
display: flex;
|
|
131
|
+
position: relative;
|
|
132
|
+
`,wo=b(Rt)`
|
|
133
|
+
padding: 12px;
|
|
134
|
+
color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
|
|
135
|
+
cursor: ${e=>e.isSelected?"default":"pointer"};
|
|
136
|
+
margin: ${e=>e.spaceAround?`0 ${C.sp4}`:0};
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
align-items: center;
|
|
140
|
+
&:hover {
|
|
141
|
+
color: ${e=>e.theme.colors.primary};
|
|
142
|
+
}
|
|
143
|
+
`,So=b.div`
|
|
144
|
+
height: 2px;
|
|
145
|
+
background-color: ${e=>e.theme.colors.primary};
|
|
146
|
+
border-radius: 1px;
|
|
147
|
+
position: absolute;
|
|
148
|
+
bottom: 0;
|
|
149
|
+
left: 0;
|
|
150
|
+
transition: left 0.35s;
|
|
151
|
+
&.profit_and_loss {
|
|
152
|
+
width: 106px;
|
|
153
|
+
left: 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&.profit_and_loss_by_classes {
|
|
157
|
+
width: 106px;
|
|
158
|
+
left: 0;
|
|
159
|
+
}
|
|
160
|
+
&.balance_sheet {
|
|
161
|
+
width: 114px;
|
|
162
|
+
left: 30%;
|
|
163
|
+
}
|
|
164
|
+
&.cash_flow {
|
|
165
|
+
width: 160px;
|
|
166
|
+
left: 63%;
|
|
167
|
+
}
|
|
168
|
+
`,Co=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return B.getLocalizedStrings().reportTitleById[e];default:throw new Error("Unsupported report")}};function Ro({reportId:e,isSelected:t,onClick:r}){return a.jsx(wo,{"data-testid":$("reportSwitcher",e),onClick:()=>{t===!1&&r(e)},isSelected:t,spaceAround:e==="balance_sheet",children:Co(e)})}function Oo({reportIds:e,selectedReport:t,onReportSelectionChanged:r}){const l=o=>{r?.(o)};return a.jsx(yo,{"data-testid":$("report-switcher-container"),children:a.jsx(xo,{"data-testid":$("report-switcher-content"),children:e.map(o=>o!=="profit_and_loss_by_classes"&&a.jsxs("div",{children:[a.jsx(Ro,{reportId:o,isSelected:t===o,onClick:l}),a.jsx(So,{className:`Slider ${t}`})]},`reportSegment-${o}`))})})}const G={contentContainerLeftRightMargin:new Y(L[3],L[3],L[8]),contentRightPadding:new Y(L[3],L[3],L[8]),tickSkeletonContainerWidth:new Y(343,600,905,1240)},{collaboration:{threads:{placeholder:Le,tooltip:je,title:{comments:vo}}}}=B.getLocalizedStrings(),To=new Y(4,4),Ao=new Y(4,4),Bo=(e,t)=>e?Ao.value(t):To.value(t),ko=b.div`
|
|
169
|
+
display: flex;
|
|
170
|
+
flex: 1 1 auto;
|
|
171
|
+
min-height: 100%;
|
|
172
|
+
flex-direction: column;
|
|
173
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
174
|
+
`,Lo=b.div`
|
|
175
|
+
display: flex;
|
|
176
|
+
flex: 1 1 auto;
|
|
177
|
+
flex-direction: column;
|
|
178
|
+
height: calc(100vh - ${C.sp10});
|
|
179
|
+
margin: ${e=>`${C.sp2} ${C.sp0} ${C.sp0} ${G.contentContainerLeftRightMargin.valuePx(e.windowSize)}`};
|
|
180
|
+
`,jo=b.div`
|
|
181
|
+
display: flex;
|
|
182
|
+
width: 100%;
|
|
183
|
+
height: 100%;
|
|
184
|
+
flex-direction: row;
|
|
185
|
+
justify-content: center;
|
|
186
|
+
align-items: center;
|
|
187
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
188
|
+
`,No=b.div`
|
|
189
|
+
position: absolute;
|
|
190
|
+
margin-top: ${e=>e.windowSize==="small"?"230px":"195px"};
|
|
191
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
192
|
+
`,Mo=b.div`
|
|
193
|
+
display: flex;
|
|
194
|
+
width: 100%;
|
|
195
|
+
height: calc(100% - 60px);
|
|
196
|
+
flex-direction: column;
|
|
197
|
+
justify-content: center;
|
|
198
|
+
align-items: center;
|
|
199
|
+
`,Io=b.div`
|
|
200
|
+
height: 96px;
|
|
201
|
+
width: 96px;
|
|
202
|
+
background: ${e=>e.theme.colors.background};
|
|
203
|
+
border-radius: 50%;
|
|
204
|
+
cursor: pointer;
|
|
205
|
+
& svg {
|
|
206
|
+
margin: ${C.sp5};
|
|
207
|
+
color: ${e=>e.theme.colors.grey1};
|
|
208
|
+
}
|
|
209
|
+
&:hover {
|
|
210
|
+
& svg {
|
|
211
|
+
color: ${e=>e.theme.colors.primary};
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
`,$o=b(_t)`
|
|
215
|
+
margin-top: ${C.sp3};
|
|
216
|
+
color: ${e=>e.theme.colors.hero};
|
|
217
|
+
`,Ge=({style:e,isLoading:t})=>t?a.jsx(jo,{style:e,children:a.jsx(yt,{size:"ExtraLarge",start:!0})}):null,W=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;default:return e.profitAndLossReport}},He=e=>{if(e.selectedReport==="profit_and_loss_by_classes"&&e.profitAndLossClassesViewReport?.uiState.classViewLayout==="horizontal"){const t=e.profitAndLossByClassHorizontalReport;return t.selectedPeriod!=null?t:W(e)}return W(e)},he=({selectedReport:e,isCompareModeOn:t,windowSize:r})=>{const l=e.availableNumberOfPeriods;let o=Bo(t,r);return l!=null&&(o=Math.min(o,l)),o};function Rn(e){const t=me(),r=fe(),l=ct(),{onUpdateAccountViewMode:o,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:x,isCompareMode:u,selectedReportAndTimeframeFetchState:m,onClickMenuIcon:f,isReportsCommentingEnabled:h,initialOpenThreadRequest:i}=e,d=e.isZeniUser??!1,y=l?.currentTenant?.companyId,s=l?.currentTenant?.companyName??"",c=h===!0&&y!=null,S=`dashboard_${y}`,R=d?dt:pt,{threads:k,isLoading:M,requestToOpenThread:T,setRequestToOpenThread:O,setOpenThread:_}=v.useContext(R);v.useEffect(()=>{i?.threadId!=null&&i?.companyId!=null&&i?.entityType!=null&&O(i)},[i,O]);const[w,A]=v.useState(!1),I=v.useMemo(()=>({application:"dashboard",companyId:y,tab:"standard_report",isGlobalComment:!1}),[y]),N=v.useMemo(()=>{const g=ht(k,I,"both");return Array.from(g.values())},[k,I]),F=v.useMemo(()=>N.filter(g=>g.resolved===!1),[N]).length,E=v.useCallback((g,j)=>{A(!1),O({threadId:j,companyId:g.companyId,entityType:g.entityType,threadMetadata:g})},[O]),[D,ne]=v.useState(void 0),X=v.useRef(null),qe=v.useCallback(g=>{ne(g)},[]),Xe=v.useCallback(g=>{X.current?.scrollToItem(g,"center")},[]);It({requestToOpenThread:T,setRequestToOpenThread:O,setOpenThread:_,allThreads:N,selectedReport:e.selectedReport,onReportSelectionChanged:e.onReportSelectionChanged,reportTreeRootNodes:D,nodeCollapseState:He(e).uiState.nodeCollapseState,onExpandNode:e.onElementCollapseStateChanged,scrollToNode:Xe});const Je=v.useMemo(()=>({companyId:y??"",companyName:s,entityType:"standard_report.details",entityId:y??"",isGlobalComment:!1,application:"dashboard",tab:"standard_report",url:window.location.href}),[y,s]),Ke=(g,j)=>{g!==J?.accountViewMode&&o?.(g),j&&n?.(j)};v.useEffect(()=>{if(e.fetchState==="Completed"){const g=W(e).filter?.additionalBalances??[];e.onUpdateHighlightedNumberOfPeriods?.(g,e.isCompareMode,he({selectedReport:W(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe??[])}},[t,e.fetchState]);const J=function(g){let j=g.selectedCOABalancesRange.thisPeriod;if(j==null){const it=g.profitAndLossClassesViewReport.uiState.accountViewMode==="classes"&&g.profitAndLossClassesViewReport.uiState.classViewLayout==="horizontal",be=g.profitAndLossByClassHorizontalReport.headerBalances[0];if(it===!0&&be!=null)j=be;else{const rt=g.displayOrder,se=g.profitAndLossReport.sections.expenses,lt=g.profitAndLossReport.sections.income,ie=se!=null&&(se?.balances?.length??0)>0?se:lt;if(ie!=null&&(ie.balances?.length??0)>0){const _e=ie.balances??[];j=_e[rt==="ascending_date"?_e.length-1:0]}}}const V=W(g),H=V.firstMonthOfFY,Z=V.bookCloseDate,at=V.dataAvailable,st=V.filter.additionalBalances;if(j!=null)return{localeId:B.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:g.currentTenantCompanyName,statementFileType:"pdf",statements:g.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:H,bookCloseDate:Z,dataAvailable:at,timeframe:g.selectedTimeframe,additionalBalances:st,format:g.reportFormat,balancesFilter:{thisPeriod:j,numberOfPeriods:g.selectedCOABalancesRange.numberOfPeriods,orderBy:g.displayOrder},accountViewMode:g.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:g.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:g.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:g.isZeniUser,isZeniCOAUsed:g.isZeniCOAUsed,classViewLayout:g.profitAndLossClassesViewReport.uiState.accountViewMode==="classes"?g.profitAndLossClassesViewReport.uiState.classViewLayout:"vertical"}}(e),Qe=B.getLocalizedStrings().reports.common,et=l!=null&&we(l.loggedInUserRole)?"detailed":"more_detailed",ae=l!=null&&we(l.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&J?.accountViewMode==="account_group"&&ae.push("detailed");const[tt,ot]=Pe.useState(ae.includes("more_detailed")?"detailed":"more_detailed"),nt={selectedFormat:tt,disabledFormatForRole:ae,roleBasedClassesSelectedFormat:et,setSelectedFormat:ot};if(m.fetchState==="Error"||e.fetchState==="Error")return a.jsxs(Mo,{"data-testid":$("report-page-error-reload-page"),children:[a.jsx(Io,{"data-testid":$("report-page-error-reload-icon"),onClick:e.onReloadReport,children:a.jsx(mt,{})}),a.jsx($o,{children:Qe.failed})]});const ge=e.fetchState;if(m.fetchState!=="Completed"&&(ge==="In-Progress"||ge==="Not-Started"))return a.jsx(Ge,{isLoading:!0});{const g=a.jsx(ft,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:J!=null&&e.dataAvailable!=null?a.jsx(Dt,{defaultOptions:J,analytics:e.analytics,referrer:U(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:nt,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:Ke,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(V,H,Z)=>{p(u,V,H,Z)},onTimeframeSelectionChanged:(V,H,Z)=>{x?.(V,H,Z)}}):a.jsx(a.Fragment,{})}}}),j=a.jsxs(Wo,{children:[c?a.jsxs(Go,{onClick:()=>A(!0),"data-testid":$("reports-page-comment-button"),children:[a.jsx(ut,{count:M?void 0:F,isLoading:M,style:{left:"12px"}}),a.jsx(Ho,{})]}):null,g]});return a.jsxs(a.Fragment,{children:[a.jsxs(ko,{children:[a.jsx(gt,{title:B.getLocalizedStrings().reports.title,backgroundColor:r.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:f,rightSideComponent:j,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),a.jsx(Fo,{...e,onTreeNodesReady:qe,treeRef:X})]}),c?a.jsx(vt,{id:S,children:a.jsx(bt,{isDrawerOpen:w,allowComposer:!0,drawerTitle:vo,threads:N,filter:I,autoExpand:!0,autoFocus:!1,isLoading:M,textOverrides:{composerPlaceholder:Le.addANewComment,replyComposerPlaceholder:Le.replyAComment,threadResolve:je.resolveComment,threadUnResolve:je.unResolveComment},threadMetadata:Je,onThreadClick:E,onCloseAllThreadsDrawer:()=>A(!1),drawerSectionStyle:{width:t==="small"?"100%":"400px",boxSizing:t==="small"?"border-box":"content-box"},collapsibleThreadStyle:{width:t==="small"?"100%":"360px"}})}):null]})}}function Fo(e){const t=me(),r=fe(),l=v.useRef(null),{selectedReportAndTimeframeFetchState:o}=e,n=W(e),p=l.current?.clientWidth??G.tickSkeletonContainerWidth.value(t),x=Tt([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",u=o.fetchState==="In-Progress",m=e.profitAndLossClassesViewReport?.uiState,f=e.isHorizontalClassReportSwitchEnabled!==!1&&e.selectedReport==="profit_and_loss_by_classes"&&m?.accountViewMode==="classes",h=f&&m?.classViewLayout==="horizontal"&&e.onCOABalancesRangeChanged!=null&&o.fetchState==="Completed",i=f&&m?.classViewLayout==="horizontal",d=B.getLocalizedStrings().reports,y=e.analytics!=null?(s,c,S)=>{c===!0&&e.analytics?.trackCompareFilterTimeFrame(s,Q(e.selectedTimeframe),"range filter",S),e.analytics?.trackDateRangeFilterChange(s,"range filter",c,S)}:void 0;return a.jsxs(Lo,{windowSize:t,"data-testid":$("reports-page-content-container"),children:[a.jsx(zo,{windowSize:t,ref:l,children:a.jsx(zt,{timeframe:{allowedTimeframes:["month","quarter","year"],selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(Q(s),U(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:B.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,isToggleDisabled:i,onValueChanged:s=>{e.analytics?.trackCompareMode(s,U(e.selectedReport),Q(e.selectedTimeframe));const c=n.filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}},secondaryToggle:f?{label:d.horizontalClassLayoutSwitch,isOn:m?.classViewLayout==="horizontal",onValueChanged:s=>{e.onUpdateClassViewLayout?.(s?"horizontal":"vertical")}}:void 0,secondaryToggleDataTestId:$("reports-horizontal-class-layout-switch")})}),o.fetchState==="Not-Started"||o.fetchState==="In-Progress"?a.jsx(Do,{windowSize:t,children:a.jsx(Uo,{children:a.jsx(wt,{width:p,height:oe-L[2],backgroundColor:r.colors.grey3,style:{borderRadius:C.sp2}})})}):h&&e.onCOABalancesRangeChanged!=null?a.jsx(Me,{windowSize:t,children:a.jsx(ho,{allTimeframeTicks:e.allTimeframeTicks,bookCloseDate:n.bookCloseDate,firstMonthOfFY:n.firstMonthOfFY,onCOABalancesRangeChanged:e.onCOABalancesRangeChanged,onDateRangeAnalytics:y,isCompareMode:e.isCompareMode,referrer:U(e.selectedReport),selectedCOABalancesRange:e.selectedCOABalancesRange,selectedTimeframe:e.selectedTimeframe,variant:"timeRangeSlider"})}):a.jsx(Me,{windowSize:t,children:a.jsx(Ft,{firstMonthOfFY:n.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Ne(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Ne(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(U(e.selectedReport),"range filter",e.isCompareMode,de(n.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,he({selectedReport:n,isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=Po(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(U(e.selectedReport),"range filter",e.isCompareMode,de(n.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),a.jsx(Yo,{windowSize:t,children:a.jsx(Oo,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(Eo(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),o.fetchState==="Not-Started"||o.fetchState==="In-Progress"?a.jsx(Ge,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:u}):a.jsxs(a.Fragment,{children:[a.jsx(Ze,{report:He(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",U(e.selectedReport),Q(e.selectedTimeframe),c);const S=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...n.filter.additionalBalances,"this_period_vs_last_period_percent"].filter(R=>R!=="this_period_vs_last_period"):[...n.filter.additionalBalances,"this_period_vs_last_period"].filter(R=>R!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,S,he({selectedReport:n,isCompareModeOn:e.isCompareMode,windowSize:t}))},onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:x,onTreeNodesReady:e.onTreeNodesReady,treeRef:e.treeRef}),At(e.selectedReport)?a.jsx(No,{windowSize:t,children:a.jsx($t,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:x,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const Ne=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let r=e.length-1;return t.thisPeriod!=null&&(r=e.findIndex(l=>l.startDate.isSame(t.thisPeriod.startDate,"date")&&l.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(r+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},Po=(e,t)=>({thisPeriod:e[e.length-1-t.offsetFromEnd],numberOfPeriods:t.length,orderBy:"ascending_date"}),U=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},Eo=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return z.Event.profitAndLoss;case"cash_flow":return z.Event.cashFlow;case"balance_sheet":return z.Event.balanceSheet;default:return z.Event.reports}},Ze=Pe.memo(function({report:e,displayOrder:t,reportFormat:r,analytics:l,isZeniUser:o,onAdditionalBalanceSelectionChanged:n,onAccountBalanceClick:p,onTableScroll:x,onElementCollapseStateChanged:u,isCompareModeOn:m,isPageFetchInProgress:f=!1,onTreeNodesReady:h,treeRef:i}){const d=me(),y=fe(),[s,c]=v.useState(void 0),[S,R]=v.useState(void 0),k=!(d==="small"||d==="medium-compact"),M=m===!0?"this_period_vs_period_before":"none";v.useEffect(()=>{const _={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:M,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:r,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Ot(),showClassAccountNumber:o};if(s!=null&&$e(S,e)&&f!==!0){const w=mo(s,_,e,k);c(w)}else{const w=bo(e,_,k,f);R(e),c(w)}},[m,e,f]),v.useEffect(()=>{s?.contentNodes!=null&&h?.(s.contentNodes)},[s,h]);const[T,O]=v.useState(5);return s!=null?a.jsxs(a.Fragment,{children:[a.jsx(St,{analytics:l,onLoad:_=>_?.trackPageLoaded(_o(e))}),a.jsx(go,{height:T,children:a.jsx(Yt,{backgroundColor:new Ct(y.colors.grey4),rootNodes:s,type:"name+balances_actual",compareMode:(()=>{let _=[];switch(e.reportId){case"profit_and_loss":{const w=e;_=(w.sections.expenses.balances.length>0?w.sections.expenses:w.sections.income).additionalBalances.map(A=>K(A));break}case"profit_and_loss_by_classes":{const w=e,A=(w.sections.expenses?.balances?.length??0)>0?w.sections.expenses:null,I=(w.sections.income?.balances?.length??0)>0?w.sections.income:null,N=A??I;N?.additionalBalances!=null&&(_=N.additionalBalances.map(F=>K(F)));break}case"cash_flow":_=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(w=>K(w));break;case"balance_sheet":_=e.sections.equity.additionalBalances.map(w=>K(w))}return _.length>0&&_.find(w=>w.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"})(),isSticky:{isStickyHeader:k,isStickyName:k},treeNodePadding:{left:ke.contentPaddingLeft.value(d),right:ke.contentPaddingRight.value(d)},treeRef:i,onAccountClick:p==null?void 0:(_,w,A)=>{p(_,w,A)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:_=>n?.(_==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(_,w)=>u?.(e.reportId,_,w),onReportTableHeightChanged:_=>{O(_+135)},onScroll:_=>x?.(e.reportId,_)})})]}):null},(e,t)=>Vo(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));Ze.displayName="Reports table";const Vo=(e,t,r)=>r.reduce((l,o)=>l===!0&&$e(e[`${o}`],t[`${o}`]),!0),zo=b.div`
|
|
218
|
+
padding-right: ${e=>G.contentRightPadding.valuePx(e.windowSize)};
|
|
219
|
+
`,Me=b.div`
|
|
220
|
+
margin-top: ${C.sp3};
|
|
221
|
+
padding-right: ${e=>G.contentRightPadding.valuePx(e.windowSize)};
|
|
222
|
+
`,Do=b.div`
|
|
223
|
+
margin-top: ${C.sp3};
|
|
224
|
+
padding-right: ${e=>G.contentRightPadding.valuePx(e.windowSize)};
|
|
225
|
+
`,Uo=b.div`
|
|
226
|
+
display: flex;
|
|
227
|
+
flex-direction: row;
|
|
228
|
+
justify-content: flex-start;
|
|
229
|
+
min-height: ${oe}px;
|
|
230
|
+
box-sizing: content-box;
|
|
231
|
+
width: 100%;
|
|
232
|
+
align-items: center;
|
|
233
|
+
justify-content: center;
|
|
234
|
+
`,Yo=b.div`
|
|
235
|
+
margin-top: ${C.sp4};
|
|
236
|
+
padding-right: ${e=>G.contentRightPadding.valuePx(e.windowSize)};
|
|
237
|
+
`,Wo=b.div`
|
|
238
|
+
display: flex;
|
|
239
|
+
flex-direction: row;
|
|
240
|
+
align-items: center;
|
|
241
|
+
gap: ${C.sp5};
|
|
242
|
+
`,Go=b.div`
|
|
243
|
+
display: flex;
|
|
244
|
+
align-items: center;
|
|
245
|
+
justify-content: center;
|
|
246
|
+
position: relative;
|
|
247
|
+
cursor: pointer;
|
|
248
|
+
color: ${e=>e.theme.colors.hero};
|
|
249
|
+
&:hover {
|
|
250
|
+
color: ${e=>e.theme.colors.primary};
|
|
251
|
+
}
|
|
252
|
+
`,Ho=b(xt)`
|
|
253
|
+
display: flex;
|
|
254
|
+
width: ${C.sp4};
|
|
255
|
+
height: ${C.sp4};
|
|
256
|
+
align-items: center;
|
|
257
|
+
justify-content: center;
|
|
258
|
+
`;export{Rn as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as c}from"./pdf-A8jRKyoC.js";import{j as ee,i as ae,h as se,l as te,u as f,k as oe,R as ne,m as j}from"./core-B0nKoasK.js";import{ct as L,cR as C,HA as re,mO as F,gB as le,fF as ie,mT as ce,bt as de,HB as pe,bm as me,r7 as fe,HC as ue,HD as _e,q5 as he,HE as v,HF as be,HG as ye,HH as T,HI as O,HJ as D,HK as k,HL as H,Fh as ge,qP as Ce,qD as U,qE as V,qV as Ie,qI as x,q$ as we,HM as Se,HN as Te,HO as Re,HP as Fe,HQ as Oe,cA as De,cy as ke}from"./zeni-epic-state-DCforPdM.js";import{e as He,aE as G,aG as A,js as Y,k2 as Ae,_ as Ee,bj as Le,jz as E,I as Me,k3 as Pe,k4 as Be,jO as je}from"./index-ByxsQZNo.js";import"./mui-40xepic5.js";import ve from"./NotFoundScreen-86VjMapP.js";import{F as Ue}from"./FeaturePreviewScreen-Ctx49exK.js";import{a as y}from"./sentry-COYnhuxW.js";import{u as Ve}from"./useInitialThreadRequest-BIFRjZze.js";import{t as z,a as q}from"./routePaths-CpPoI1xs.js";import{M as xe}from"./MobileAppDrawer-CXepfp6e.js";import"./lottie-BzV8yd9z.js";import"./liveblocks-DskTqGyX.js";import"./recharts-Bbdho9Pi.js";import"./dnd-NNN-4w0O.js";import"./analytics-CDQ7tGpV.js";import"./plaid-cfgjTkr8.js";import"./utils-DMEPgX6w.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="530882ca-398b-48fa-988a-1123db762f47",e._sentryDebugIdIdentifier="sentry-dbid-530882ca-398b-48fa-988a-1123db762f47")}catch{}})();const g=e=>{e(H({resetLeftScroll:!0})),e(k({resetLeftScroll:!0})),e(D({resetLeftScroll:!0})),e(O({resetLeftScroll:!0}))},ze=e=>{e(Te()),e(Re()),e(Fe()),e(Oe())},qe=oe(function(e){const o=Y.getSignedInUser(),i=e.tenantState.currentTenantId,u=L(e),a=u?.companyName??"",s={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:i??""},t=C(e),n=pe(u);return{fetchState:t.fetchState,selectedTimeframe:t.filter.timeframe,selectedReport:t.selectedReportId,displayOrder:t.displayOrder,reportFormat:t.reportFormat,dataAvailable:t.dataAvailable,balancesInTimeframe:t.balancesInTimeframe,allTimeframeTicks:t.allTimeframeTicks,selectedCOABalancesRange:t.filter.balancesRange,isCompareMode:t.isCompareModeOn,profitAndLossReport:t.profitAndLossReport,profitAndLossClassesViewReport:t.profitAndLossByClassReport,profitAndLossByClassHorizontalReport:t.profitAndLossByClassHorizontalReport,balanceSheetReport:t.balanceSheetReport,cashFlowReport:t.cashFlowReport,downloadState:t.downloadState,analytics:E,isZeniUser:me(o),showAccountGroups:n===!0,currentTenantCompanyName:a,statementEndPoint:`${Be}/statement`,authParams:s,isZeniCOAUsed:n}},function(e,o){const{navigate:i,handleDrawerToggle:u}=o;return{onReloadReport:()=>{o.signedInUser!=null&&e(F(o.signedInUser.userId,!0,!1))},updateDownloadStateHandler:a=>{e(Se(a))},onTimeframeSelectionChanged:(a,s,t)=>{if(e(we(a)),s){const{isCompareModeOn:n,filter:l}=o,{additionalBalances:p,balancesRange:d}=l;let m=[...p];a==="year"&&(m=m.filter(_=>_!=="this_period_vs_same_period_last_year"&&_!=="this_period_vs_same_period_last_year_percent"&&_!=="same_period_last_year")),e(U(o.firstMonthOfFY,n,d.numberOfPeriods<4?4:d.numberOfPeriods,m)),p.length>0&&e(V(o.firstMonthOfFY,m.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",d.numberOfPeriods<4?4:d.numberOfPeriods,m))}t!==!0&&setTimeout(()=>g(e),50)},onReportSelectionChanged:a=>{const s=o.selectedReportID;if(a===s)return;const t=o.classViewLayout;e(T(a)),(a==="balance_sheet"||a==="cash_flow")&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(x({numberOfPeriods:4,orderBy:"ascending_date"})),a!=="profit_and_loss"&&a!=="profit_and_loss_by_classes"&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(v({classViewLayout:"vertical"})),g(e)},onCOABalancesRangeChanged:(a,s)=>{e(x(a,s)),g(e)},onThisPeriodChanged:(a,s,t)=>{e(Ie(o.firstMonthOfFY,a,s<4?4:s)),t!==!0&&g(e)},onAdditionalBalanceSelectionChanged:(a,s,t,n)=>{e(U(o.firstMonthOfFY,a,t<4?4:t,s)),s.length>0&&e(V(o.firstMonthOfFY,s.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",t<4?4:t,s)),n!==!0&&o.isCompareModeOn===a||setTimeout(()=>g(e),50)},onUpdateHighlightedNumberOfPeriods:(a,s,t,n)=>{e(Ce({firstMonthOfFY:o.firstMonthOfFY,isCompareModeOn:s,additionalBalances:a,maxNumOfPeriodsToHighlight:t<4?4:t,coaBalances:n}))},onAccountBalanceClick:o.hasTransactionAccess!==!0?void 0:(a,s,t)=>{let n,l;if(s.balanceTimeFrame==="month"||s.balanceTimeFrame==="quarter"?(n=s.balanceTimeFrame,l=ge(s)):s.balanceTimeFrame==="year"?(n="quarter",l={startDate:s.endDate.startOf("quarter"),endDate:s.endDate}):console.error(`timeframe ${s.balanceTimeFrame} is not supported`),l!=null&&n!=null){const p=a.accountName===""?a.accountDescription:a.accountName,d=(()=>{if(o.selectedReportID==="profit_and_loss_by_classes"&&o.classViewLayout==="horizontal"&&a.accountType!=null){if(t?.isHorizontalClassTotalColumn===!0)return z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l);if(t?.isHorizontalClassColumn===!0&&s.id!=null)return q(o.tenantEmailDomain,a.accountId,a.accountType,s.id,p,n,l)}return a.classesViewParentId!=null&&a.classesViewParentId.parentClassId!=null&&a.accountType!=null?q(o.tenantEmailDomain,a.accountId,a.accountType,a.classesViewParentId.parentClassId?.[0],p,n,l):a.accountType!=null?z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l):void 0})();if(d!=null){const m=je(o.location.state?.pathnameStackToGoBack,o.location.pathname);i(d,{state:{pathnameStackToGoBack:m,referrer:R(o.selectedReportID)}})}}},onTableScroll:(a,s)=>{switch(a){case"profit_and_loss":e(H({scrollPosition:s}));break;case"profit_and_loss_by_classes":e(k({scrollPosition:s}));break;case"balance_sheet":e(D({scrollPosition:s}));break;case"cash_flow":e(O({scrollPosition:s}));break;default:console.log(`Table Scroll state for ${a} is not handled`)}},onElementCollapseStateChanged:(a,s,t)=>{switch(a){case"profit_and_loss":e(H({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"profit_and_loss_by_classes":e(k({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"balance_sheet":e(D({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"cash_flow":e(O({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;default:console.log(`Collapse state toggle for ${a} is not handled`)}},onBackClick:()=>{i("../../")},onUpdateAccountViewMode:a=>{e(ye({viewMode:a})),a==="classes"?(o.analytics?.trackGroupBySwitch("Classes",R(o.selectedReportID)),e(T("profit_and_loss_by_classes"))):(o.analytics?.trackGroupBySwitch("Accounts",R(o.selectedReportID)),e(T("profit_and_loss"))),g(e)},onUpdateClassesToFilterOut:a=>{e(be({classesToFilterOut:a}))},onUpdateClassViewLayout:a=>{e(v({classViewLayout:a}))},onOpenAccountViewMode:()=>{e(he())},onUpdateDisplayOrder:a=>{e(_e(a))},onUpdateReportFormat:a=>{ze(e),e(ue(a))},onClickMenuIcon:()=>{u(!0)},onResyncReports:()=>{e(fe("profit_and_loss_by_classes"))}}})(Pe);function Ge(){const e=He(),o=ee(),i=ae(),u=se(),{tenantEmailDomain:a}=te(),{useFeatureGate:s}=G(),{isFeatureEnabled:t}=s(A.isReportsHorizontalClassLayoutSwitchEnabled),n=Y.getSignedInUser(),[l,p]=y.useState(!1),[d,m]=y.useState(!1),{isFeatureEnabled:_}=s(A.isReportsCommentingEnabled);if(n==null)throw Error("Can't access reports page without signing in...");const M=f(r=>L(r)),N=M.company?.companyInfo.firstMonthOfFY??1,$=Ve(_?M?.companyId:void 0),I=f(r=>C(r).fetchState),Z=f(r=>re(r)),{areTenantIdsInSync:h}=Ae(),w=f(r=>r.financeStatementState.selectedReportId),J=f(r=>C(r).isCompareModeOn),b=f(r=>C(r).filter),S=f(r=>C(r).selectedReportAndTimeframeFetchState),K=f(r=>r.profitAndLossClassesViewState.uiState.classViewLayout);y.useEffect(()=>{!l&&h&&(p(!0),i(F(n.userId,!0,!0,!1)))},[l,n,i,h]),y.useEffect(()=>{l&&!d&&I==="Completed"&&h&&(i(F(n.userId,!1,!0,!1)),m(!0))},[l,d,I,h]),y.useEffect(()=>{if(l&&S.fetchState==="Not-Started"&&b.timeframe!=="free_range"&&b.timeframe!=="week"&&h)switch(w){case"profit_and_loss":case"profit_and_loss_by_classes":i(ce(b.timeframe));break;case"balance_sheet":i(ie(b.timeframe));break;case"cash_flow":i(le(b.timeframe))}},[l,w,S,h]);const P=Ee(),Q=P?.loggedInUserRole!=null&&de(P?.loggedInUserRole)!==!0,[W,X]=y.useState(!1),B=r=>{X(r)};return c.jsxs(c.Fragment,{children:[I==="Completed"?c.jsx(Le,{analytics:E,onLoad:r=>r.trackPageLoaded(Me.Event.reports)}):null,c.jsx(xe,{isAppContentDrawerOpen:W,handleDrawerToggle:B}),c.jsx(qe,{firstMonthOfFY:N,tenantEmailDomain:a,location:u,navigate:o,windowSize:e,classViewLayout:K,selectedReportID:w,analytics:E,filter:b,isCompareModeOn:J,hasTransactionAccess:Q,signedInUser:n,selectedReportAndTimeframeFetchState:S,handleDrawerToggle:B,reportsResyncFetchState:Z.reportsResyncFetchState,isHorizontalClassReportSwitchEnabled:t,isReportsCommentingEnabled:_,initialOpenThreadRequest:$})]})}const R=e=>{switch(e){case"profit_and_loss":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}};function ca(){const e=f(s=>L(s)),{useFeatureGate:o}=G(),{isFeatureEnabled:i}=o(A.isDebitCardFeatureEnabled),u=De(i,e),a=ke(e);return u===!0||a===!0?c.jsx(Ue,{}):c.jsxs(ne,{children:[c.jsx(j,{path:"/",element:c.jsx(Ge,{})}),c.jsx(j,{path:"*",element:c.jsx(ve,{})})]})}export{ca as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as F,O as S,V as t,
|
|
1
|
+
import{y as F,O as S,V as t,d as m,S as Fe,an as Q,k as E,w as M,ag as Z,e as de,o as x,P as Ve,x as fe,b8 as ge,l as R,b9 as V,au as K}from"./index-ByxsQZNo.js";import{a as z,b as ee}from"./sentry-COYnhuxW.js";import{n as f}from"./mui-40xepic5.js";import{p as b,b as T,d as te,y as N,g as ae,u as W}from"./chartTypes-D2s_Hwo9-BbhqSw8p.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-DinJUeg4-DkE5puj7.js";import{V as J}from"./toChartData-DrYGpr_j-D2GR-55Z.js";import{G as pe,K as oe,S as me,E as le,X as ne,Y as ce,F as se,H as xe,J as We}from"./recharts-Bbdho9Pi.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="8377ff43-7d7a-4cc5-b042-bd78bcaa34ce",e._sentryDebugIdIdentifier="sentry-dbid-8377ff43-7d7a-4cc5-b042-bd78bcaa34ce")}catch{}})();const q={legendLabelMarginLeft:new fe(2,2),legendLabelMarginRight:new fe(E[3],E[4])},Ke=f.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=f.div`
|
|
4
4
|
margin: ${x.sp2} ${x.sp0} ${x.sp2} ${x.sp0};
|
|
@@ -19,17 +19,17 @@ import{y as F,O as S,V as t,e as m,Q as Fe,an as Q,u as E,j as M,ag as Z,J as de
|
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
21
|
justify-content: space-between;
|
|
22
|
-
`,
|
|
22
|
+
`,Ue=f(R)`
|
|
23
23
|
background-color: ${e=>e.color};
|
|
24
24
|
height: 12px;
|
|
25
25
|
width: 12px;
|
|
26
26
|
display: inline-block;
|
|
27
27
|
margin-right: ${x.sp2};
|
|
28
|
-
`,Ue=f(R)`
|
|
29
|
-
text-align: left;
|
|
30
28
|
`,Xe=f(R)`
|
|
29
|
+
text-align: left;
|
|
30
|
+
`,Je=f(R)`
|
|
31
31
|
text-align: right;
|
|
32
|
-
`,be=e=>e.map((a,o)=>t.jsxs(qe,{color:a.color,children:[t.jsxs(
|
|
32
|
+
`,be=e=>e.map((a,o)=>t.jsxs(qe,{color:a.color,children:[t.jsxs(Xe,{children:[t.jsx(Ue,{color:a.color}),`${a.barName}:`]}),t.jsx(Je,{children:`${W(a.value)}`})]},a.barName+o)),Qe=ee.memo(e=>{const a=(({active:o,payload:n})=>{const r=[];return n?.forEach(l=>{const i=l.name;if(o===!0){const u=l.payload,s=l.color,c=i!=null&&u.record[i]!=null?u.record[i].amount:void 0;r.push({barName:S.getLocalizedStrings().chartCard.cashInCashOut[T(i)],value:c,color:s})}}),r})({...e});return a.length===0?null:t.jsx(Ke,{children:t.jsxs(Ye,{children:[be(a.slice(0,a.length-1)),a.length?t.jsx(He,{}):null,be(a.slice(-1))]})})}),Ze=(e,a,o,n,r)=>{let l=[],i=[],u=[];o!=null&&o.balances.length>0&&(l=A("cash_in","actual",o)),n!=null&&n.balances.length>0&&(i=A("cash_out","actual",n)),r!=null&&r.balances.length>0&&(u=re("net_cash_flow","actual",r));const s=b("cash_in","actual"),c=b("cash_out","actual"),C=b("net_cash_flow","actual"),h=l.length>0?s:i.length>0?c:void 0,d={};return d[s]=l,d[c]=i,d[C]=u,h!=null?J(e,a,h,d):void 0},ye=[b("cash_in","actual"),b("cash_out","actual"),b("net_cash_flow","actual")],et=f.div`
|
|
33
33
|
width: ${e=>e.width}px;
|
|
34
34
|
height: ${e=>e.height}px;
|
|
35
35
|
|
|
@@ -57,7 +57,7 @@ import{y as F,O as S,V as t,e as m,Q as Fe,an as Q,u as E,j as M,ag as Z,J as de
|
|
|
57
57
|
display: flex;
|
|
58
58
|
align-items: center;
|
|
59
59
|
justify-content: space-between;
|
|
60
|
-
`,nt=ee.memo(e=>{const a=(({active:o,payload:n})=>{const r=[];return n?.forEach(l=>{const i=l.name;if(o===!0){const u=l.payload,s=l.color,c=i!=null&&u.record[i]!=null?u.record[i].amount:void 0;r.push({barName:S.getLocalizedStrings().reportTitleById.cash_position,value:c,color:s})}}),r})(e);return a.length===0?null:t.jsx(rt,{children:t.jsx(ot,{children:a.map((o,n)=>t.jsx(lt,{color:o.color,children:`${o.barName}: ${W(o.value)}`},o.barName+n))})})}),ct=(e,a,o)=>{let n=[];o!=null&&o.balances.length>0&&(n=I("cash_position","actual",o));const r=b("cash_position","actual"),l={};return l[r]=n,n.length>0?
|
|
60
|
+
`,nt=ee.memo(e=>{const a=(({active:o,payload:n})=>{const r=[];return n?.forEach(l=>{const i=l.name;if(o===!0){const u=l.payload,s=l.color,c=i!=null&&u.record[i]!=null?u.record[i].amount:void 0;r.push({barName:S.getLocalizedStrings().reportTitleById.cash_position,value:c,color:s})}}),r})(e);return a.length===0?null:t.jsx(rt,{children:t.jsx(ot,{children:a.map((o,n)=>t.jsx(lt,{color:o.color,children:`${o.barName}: ${W(o.value)}`},o.barName+n))})})}),ct=(e,a,o)=>{let n=[];o!=null&&o.balances.length>0&&(n=I("cash_position","actual",o));const r=b("cash_position","actual"),l={};return l[r]=n,n.length>0?J(e,a,r,l):void 0},st=f.div`
|
|
61
61
|
width: ${e=>e.width}px;
|
|
62
62
|
height: ${e=>e.height}px;
|
|
63
63
|
`,Ce=[b("cash_position","actual")];function _a({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:u}){const s=F(),c=z.useRef(!1);z.useEffect(()=>{c.current=!0},[]);const C=ct(e.firstMonthOfFY,Ce,e.cashPosition);return C==null?null:t.jsx(it,{chartData:C,timeframe:a,showBarHoverBackground:l,barElements:(()=>{const h=[];return Ce.forEach(d=>{const y=i===!0&&!c.current;h.push(t.jsx(oe,{name:d,animationDuration:y?500:void 0,style:{cursor:"pointer"},dataKey:j=>{const _=j.record;return(_[d]!=null&&_[d].amount!=null?_[d].amount:void 0)?.amount??0},fill:s.colors.graphColor17},d))}),h})(),customToolTipContent:({active:h,payload:d})=>t.jsx(nt,{active:h,payload:d}),width:n,height:r,onCOABalancesRangeChanged:u,highlightedRange:o,isDetailPage:i===!0})}const it=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=F(),h=e.timeseries,d=te(e),y=h.map($=>$.label),j=u!==!1,_=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const p=$.activeTooltipIndex,g=k.payload.timeLabel.label;if(r==null)return;const D=ae(g,y,r.numberOfPeriods),L=D[1]===void 0?y.length-1:y.indexOf(D[1]),v={...r,thisPeriod:{startDate:h[L].startDate,endDate:h[L].endDate}};c?.(h[p],a,v)},w=s?(l-60)/N.cash_position*(N.cash_position-e.recordByTimeseries.length):20;return t.jsx(st,{width:l,height:i,children:t.jsx(Q,{children:({height:$,width:k})=>t.jsxs(We,{width:k,height:$,data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:s?E[10]:30,margin:{top:5,right:w,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:_,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:C.colors.grey3}),t.jsx(ne,{dataKey:p=>p.timeLabel.label,type:"category",axisLine:{stroke:C.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:p=>Z("0,0.[00]a",p,d)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!j&&{stroke:C.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:C.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})},ut=f.div`
|
|
@@ -128,7 +128,7 @@ import{y as F,O as S,V as t,e as m,Q as Fe,an as Q,u as E,j as M,ag as Z,J as de
|
|
|
128
128
|
`,ke=f(K)`
|
|
129
129
|
display: flex;
|
|
130
130
|
flex-direction: column;
|
|
131
|
-
`,ve=f(H)``,yt=({active:e,payload:a,mode:o})=>{const n=[],r={barName:S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn,actual:void 0,color:m.neutralGrey2Dark,forecast:void 0};let l={amount:0,currencyCode:"",currencySymbol:""},i={amount:0,currencyCode:"",currencySymbol:""};b("income","actual");const u=b("cogs","actual"),s=b("expenses","actual"),c=b("net_burn_or_income","actual");return a?.forEach(C=>{const h=C.name;if(e===!0){const d=C.payload,y=C.color,j=h!=null&&d.record[h]!=null?d.record[h].amount:void 0;let _;if(h.includes("forecast")!==!0)switch(o==="forecast_mode"&&(_=d.record[h]!=null?((w,$)=>{const k=b(T(w),"forecast");if($.record[k]==null)return;const p=$.record[w].amount,g=$.record[k].amount,D=Math.floor(100*(p.amount-g.amount)/100);return{value:g,change:{...p,amount:D},percent:g.amount!==0?Math.floor((p.amount-g.amount)/g.amount*100)/100:void 0,forecastPercent:$.record[k].percentValue}})(h,d):void 0),h){case u:case s:j!=null&&(l.currencyCode===""?l={...j}:l.amount=l.amount+j.amount),_!=null&&(i.currencyCode===""?i={..._.value}:i.amount=i.amount+_.value.amount),n.push({barName:S.getLocalizedStrings().chartCard.netBurnOrIncome[T(h)],actual:j,forecast:_,color:y});break;case c:{const w=j!=null&&j.amount>=0?S.getLocalizedStrings().chartCard.netBurnOrIncome.net_income:S.getLocalizedStrings().chartCard.netBurnOrIncome.net_burn;n.push({barName:w,actual:j,color:y,percent:d.record[h]?.percentValue,forecast:_});break}default:n.push({barName:S.getLocalizedStrings().chartCard.netBurnOrIncome[T(h)],actual:j,color:y,forecast:_})}}}),r.actual=l,r.forecast=i!=null&&l!=null?{value:i,change:{...l,amount:Math.floor(100*(l.amount-i.amount)/100)},percent:i.amount!==0?Math.floor((l.amount-i.amount)/i.amount*100)/100:0}:void 0,e===!0&&n.splice(n.length-1,0,r),n},we=e=>e.map((a,o)=>t.jsxs(Ne,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(xt,{children:[t.jsx(Ee,{color:a.barName===S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":a.color}),`${a.barName}:`]}),t.jsxs(bt,{children:[t.jsx(je,{children:`${W(a.actual)}`}),a.percent!=null?t.jsx(je,{children:V("0,0.0%",a.percent)}):null]})]},a.barName+o)),$e=e=>e.map((a,o)=>t.jsxs(Ne,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(ft,{children:[t.jsx(Ee,{color:a.barName===S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":a.color}),`${a.barName}:`]}),t.jsx(H,{children:t.jsxs(ke,{children:[a.actual!=null?`${W(a.actual)}`:"-",t.jsx(ve,{children:a.percent!=null?V("0,0.0%",a.percent):null})]})}),t.jsx(H,{children:t.jsxs(ke,{children:[a.forecast!=null?`${W(a.forecast.value)}`:"-",t.jsx(ve,{children:a.forecast!=null&&a.forecast.forecastPercent!=null?V("0,0.0%",a.forecast.forecastPercent):null})]})}),a.forecast!=null?t.jsx(H,{isChange:!0,children:`${W(a.forecast.change)}`}):t.jsx(H,{children:"-"}),a.forecast!=null?t.jsx(H,{isChange:!0,children:V("0,0.0%",a.forecast.percent)}):t.jsx(H,{children:"-"})]},a.barName+o)),Ct=e=>{if(e.length>0){for(const a of e)if(a.actual!=null)return a.actual.currencySymbol}return""},jt=({barLabelsWithValues:e})=>t.jsxs(ht,{children:[t.jsxs(dt,{children:[t.jsx(gt,{}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.actual}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.forecast}),t.jsxs(ie,{children:[S.getLocalizedStrings().chartCard.tooltip.change," ",Ct(e)]}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.change_percent})]}),t.jsxs(mt,{children:[$e(e.slice(0,e.length-2)),e.length?t.jsx(Te,{}):null,$e(e.slice(-2))]})]}),kt=({barLabelsWithValues:e})=>t.jsx(ut,{children:t.jsxs(pt,{children:[we(e.slice(0,e.length-2)),e.length?t.jsx(Te,{}):null,we(e.slice(-2))]})}),vt=ee.memo(e=>{const a=yt({...e});return a.length===0?null:t.jsx(t.Fragment,{children:e.mode==="forecast_mode"?t.jsx(jt,{barLabelsWithValues:a}):t.jsx(kt,{barLabelsWithValues:a})})}),wt=(e,a,o,n,r,l,i)=>{let u=[],s=[],c=[],C=[];n!=null&&n.balances.length>0&&(u=A("income","actual",n)),r!=null&&r.balances.length>0&&(s=A("cogs","actual",r)),l!=null&&l.balances.length>0&&(c=I("expenses","actual",l)),i!=null&&i.balances.length>0&&(C=re("net_burn_or_income","actual",i));const h=b("income","actual"),d=b("cogs","actual"),y=b("expenses","actual"),j=b("net_burn_or_income","actual"),_=u.length>0?h:s.length>0?d:c.length>0?y:void 0,w={};return w[h]=u,w[d]=s,w[y]=c,w[j]=C,o==="forecast_mode"&&Object.assign(w,$t(n,r,l,i)),_!=null?
|
|
131
|
+
`,ve=f(H)``,yt=({active:e,payload:a,mode:o})=>{const n=[],r={barName:S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn,actual:void 0,color:m.neutralGrey2Dark,forecast:void 0};let l={amount:0,currencyCode:"",currencySymbol:""},i={amount:0,currencyCode:"",currencySymbol:""};b("income","actual");const u=b("cogs","actual"),s=b("expenses","actual"),c=b("net_burn_or_income","actual");return a?.forEach(C=>{const h=C.name;if(e===!0){const d=C.payload,y=C.color,j=h!=null&&d.record[h]!=null?d.record[h].amount:void 0;let _;if(h.includes("forecast")!==!0)switch(o==="forecast_mode"&&(_=d.record[h]!=null?((w,$)=>{const k=b(T(w),"forecast");if($.record[k]==null)return;const p=$.record[w].amount,g=$.record[k].amount,D=Math.floor(100*(p.amount-g.amount)/100);return{value:g,change:{...p,amount:D},percent:g.amount!==0?Math.floor((p.amount-g.amount)/g.amount*100)/100:void 0,forecastPercent:$.record[k].percentValue}})(h,d):void 0),h){case u:case s:j!=null&&(l.currencyCode===""?l={...j}:l.amount=l.amount+j.amount),_!=null&&(i.currencyCode===""?i={..._.value}:i.amount=i.amount+_.value.amount),n.push({barName:S.getLocalizedStrings().chartCard.netBurnOrIncome[T(h)],actual:j,forecast:_,color:y});break;case c:{const w=j!=null&&j.amount>=0?S.getLocalizedStrings().chartCard.netBurnOrIncome.net_income:S.getLocalizedStrings().chartCard.netBurnOrIncome.net_burn;n.push({barName:w,actual:j,color:y,percent:d.record[h]?.percentValue,forecast:_});break}default:n.push({barName:S.getLocalizedStrings().chartCard.netBurnOrIncome[T(h)],actual:j,color:y,forecast:_})}}}),r.actual=l,r.forecast=i!=null&&l!=null?{value:i,change:{...l,amount:Math.floor(100*(l.amount-i.amount)/100)},percent:i.amount!==0?Math.floor((l.amount-i.amount)/i.amount*100)/100:0}:void 0,e===!0&&n.splice(n.length-1,0,r),n},we=e=>e.map((a,o)=>t.jsxs(Ne,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(xt,{children:[t.jsx(Ee,{color:a.barName===S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":a.color}),`${a.barName}:`]}),t.jsxs(bt,{children:[t.jsx(je,{children:`${W(a.actual)}`}),a.percent!=null?t.jsx(je,{children:V("0,0.0%",a.percent)}):null]})]},a.barName+o)),$e=e=>e.map((a,o)=>t.jsxs(Ne,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(ft,{children:[t.jsx(Ee,{color:a.barName===S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":a.color}),`${a.barName}:`]}),t.jsx(H,{children:t.jsxs(ke,{children:[a.actual!=null?`${W(a.actual)}`:"-",t.jsx(ve,{children:a.percent!=null?V("0,0.0%",a.percent):null})]})}),t.jsx(H,{children:t.jsxs(ke,{children:[a.forecast!=null?`${W(a.forecast.value)}`:"-",t.jsx(ve,{children:a.forecast!=null&&a.forecast.forecastPercent!=null?V("0,0.0%",a.forecast.forecastPercent):null})]})}),a.forecast!=null?t.jsx(H,{isChange:!0,children:`${W(a.forecast.change)}`}):t.jsx(H,{children:"-"}),a.forecast!=null?t.jsx(H,{isChange:!0,children:V("0,0.0%",a.forecast.percent)}):t.jsx(H,{children:"-"})]},a.barName+o)),Ct=e=>{if(e.length>0){for(const a of e)if(a.actual!=null)return a.actual.currencySymbol}return""},jt=({barLabelsWithValues:e})=>t.jsxs(ht,{children:[t.jsxs(dt,{children:[t.jsx(gt,{}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.actual}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.forecast}),t.jsxs(ie,{children:[S.getLocalizedStrings().chartCard.tooltip.change," ",Ct(e)]}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.change_percent})]}),t.jsxs(mt,{children:[$e(e.slice(0,e.length-2)),e.length?t.jsx(Te,{}):null,$e(e.slice(-2))]})]}),kt=({barLabelsWithValues:e})=>t.jsx(ut,{children:t.jsxs(pt,{children:[we(e.slice(0,e.length-2)),e.length?t.jsx(Te,{}):null,we(e.slice(-2))]})}),vt=ee.memo(e=>{const a=yt({...e});return a.length===0?null:t.jsx(t.Fragment,{children:e.mode==="forecast_mode"?t.jsx(jt,{barLabelsWithValues:a}):t.jsx(kt,{barLabelsWithValues:a})})}),wt=(e,a,o,n,r,l,i)=>{let u=[],s=[],c=[],C=[];n!=null&&n.balances.length>0&&(u=A("income","actual",n)),r!=null&&r.balances.length>0&&(s=A("cogs","actual",r)),l!=null&&l.balances.length>0&&(c=I("expenses","actual",l)),i!=null&&i.balances.length>0&&(C=re("net_burn_or_income","actual",i));const h=b("income","actual"),d=b("cogs","actual"),y=b("expenses","actual"),j=b("net_burn_or_income","actual"),_=u.length>0?h:s.length>0?d:c.length>0?y:void 0,w={};return w[h]=u,w[d]=s,w[y]=c,w[j]=C,o==="forecast_mode"&&Object.assign(w,$t(n,r,l,i)),_!=null?J(e,a,_,w):void 0},$t=(e,a,o,n)=>{let r=[],l=[],i=[],u=[];e!=null&&e.balances.length>0&&(r=A("income","forecast",e)),a!=null&&a.balances.length>0&&(l=A("cogs","forecast",a)),o!=null&&o.balances.length>0&&(i=I("expenses","forecast",o)),n!=null&&n.balances.length>0&&(u=re("net_burn_or_income","forecast",n));const s=b("income","forecast"),c=b("cogs","forecast"),C=b("expenses","forecast"),h=b("net_burn_or_income","forecast"),d={};return d[s]=r,d[c]=l,d[C]=i,d[h]=u,d},_t=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual")],Lt=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual"),b("income","forecast"),b("cogs","forecast"),b("expenses","forecast"),b("net_burn_or_income","forecast")],Dt=f.div`
|
|
132
132
|
width: ${e=>e.width}px;
|
|
133
133
|
height: ${e=>e.height}px;
|
|
134
134
|
|
|
@@ -189,13 +189,13 @@ import{y as F,O as S,V as t,e as m,Q as Fe,an as Q,u as E,j as M,ag as Z,J as de
|
|
|
189
189
|
`,Et=f(R)`
|
|
190
190
|
text-align: left;
|
|
191
191
|
width: 162px;
|
|
192
|
-
`,
|
|
192
|
+
`,U=f(K)`
|
|
193
193
|
text-align: right;
|
|
194
194
|
flex: 1;
|
|
195
|
-
`,Gt=(e,a)=>{const o=b(T(e),"forecast");if(a.record[o]==null)return;const n=a.record[e].amount,r=a.record[o].amount;return{value:r,change:{...n,amount:r!=null?Math.floor(100*(n.amount-r.amount)/100):n.amount},percent:r!=null&&r.amount!==0?Math.floor((n.amount-r.amount)/r.amount*100)/100:void 0}},Le=e=>t.jsxs(Ot,{color:e.color,children:[t.jsx(Et,{children:`${e.barName}:`}),t.jsx(
|
|
195
|
+
`,Gt=(e,a)=>{const o=b(T(e),"forecast");if(a.record[o]==null)return;const n=a.record[e].amount,r=a.record[o].amount;return{value:r,change:{...n,amount:r!=null?Math.floor(100*(n.amount-r.amount)/100):n.amount},percent:r!=null&&r.amount!==0?Math.floor((n.amount-r.amount)/r.amount*100)/100:void 0}},Le=e=>t.jsxs(Ot,{color:e.color,children:[t.jsx(Et,{children:`${e.barName}:`}),t.jsx(U,{children:e.actual!=null?`${W(e.actual)}`:"-"}),t.jsx(U,{children:e.forecast!=null?`${W(e.forecast.value)}`:"-"}),e.forecast!=null?t.jsx(U,{isChange:!0,children:`${W(e.forecast.change)}`}):t.jsx(U,{children:"-"}),e.forecast!=null?t.jsx(U,{isChange:!0,children:V("0,0.0%",e.forecast.percent)}):t.jsx(U,{children:"-"})]}),It=e=>{if(e.length>0){for(const a of e)if(a.actual!=null)return a.actual.currencySymbol}return""},Mt=({barLabelsWithValues:e})=>t.jsx(zt,{children:t.jsxs(Pt,{children:[t.jsx(_e,{color:e[0].color,children:`${e[0].barName}: ${W(e[0].actual)}`}),t.jsx(Ge,{}),t.jsx(_e,{children:`${S.getLocalizedStrings().chartCard.total}: ${W(e[1].actual)}`})]})}),At=({barLabelsWithValues:e})=>t.jsxs(Wt,{children:[t.jsxs(Tt,{children:[t.jsx(Rt,{}),t.jsx(ue,{children:S.getLocalizedStrings().chartCard.tooltip.actual}),t.jsx(ue,{children:S.getLocalizedStrings().chartCard.tooltip.forecast}),t.jsxs(ue,{children:[S.getLocalizedStrings().chartCard.tooltip.change," ",It(e)]}),t.jsx(ue,{children:S.getLocalizedStrings().chartCard.tooltip.change_percent})]}),t.jsxs(Nt,{children:[Le(e[0]),t.jsx(Ge,{}),Le(e[1])]})]}),Ft=ee.memo(e=>{const a=(({active:o,payload:n,barName:r})=>{const l=[];if(n!=null&&o===!0){const i=n.filter(C=>C.name==r)[0],u=i.payload,s=i.color,c=r!=null&&u.record[r]!=null?u.record[r].amount:void 0;if(!r?.endsWith("_forecast")){let C;if(r.includes("forecast")!==!0){C=u.record[r]!=null?Gt(r,u):void 0;const h={amount:0,currencyCode:"",currencySymbol:""},d={amount:0,currencyCode:"",currencySymbol:""};let y;for(y in u.record){const w=u.record[y].amount;y.endsWith("_actual")?(h.amount+=u.record[y].amount?.amount??0,h.currencyCode=w!=null?w.currencyCode:h.currencyCode,h.currencySymbol=w!=null?w.currencySymbol:h.currencySymbol):y.endsWith("_forecast")&&(d.amount+=u.record[y].amount?.amount??0,d.currencyCode=w!=null?w.currencyCode:d.currencyCode,d.currencySymbol=w!=null?w.currencySymbol:d.currencySymbol)}const j=Math.floor(100*(h?.amount-d?.amount)/100),_={value:d,change:{...h,amount:j},percent:d.amount!==0?Math.floor((h.amount-d.amount)/d.amount*100)/100:0};l.push({barName:T(r),actual:c,forecast:C,color:s}),l.push({barName:S.getLocalizedStrings().chartCard.total,actual:h,forecast:_,color:m.neutralGrey1Light})}}}return l})({...e});return a.length===0?null:t.jsx(t.Fragment,{children:e.mode==="forecast_mode"?t.jsx(At,{barLabelsWithValues:a}):t.jsx(Mt,{barLabelsWithValues:a})})}),Vt=(e,a)=>{const o=[],n={};let r;return a!=null&&a.classes.length!=0&&a.classes.forEach(l=>{const i=I(l.class.className,"actual",l.childrenBalancesTotal),u=b(l.class.className,"actual");n[u]=i,o.push(u),r==null&&i.length>0&&(r=b(l.class.className,"actual"))}),r!=null?J(e,o,r,n):void 0},De=[m.graphColor34,m.graphColor05,m.graphColor08,m.graphColor11,m.graphColor13,m.graphColor19,m.graphColor29,m.graphColor28,m.graphColor20,m.graphColor21,m.graphColor22,m.graphColor14,m.graphColor35,m.graphColor31,m.graphColor33,m.graphColor32,m.graphColor36,m.graphColor02,m.graphColor06,m.graphColor04,m.graphColor10,m.graphColor12,m.graphColor15,m.graphColor18,m.graphColor17,m.graphColor07,m.graphColor34Dark,m.graphColor05Dark,m.graphColor08Dark,m.graphColor11Dark,m.graphColor13Dark,m.graphColor19Dark,m.graphColor29Dark,m.graphColor28Dark,m.graphColor20Dark,m.graphColor21Dark,m.graphColor22Dark,m.graphColor14Dark,m.graphColor35Dark,m.graphColor31Dark,m.graphColor33Dark,m.graphColor32Dark,m.graphColor36Dark,m.graphColor02Dark,m.graphColor06Dark,m.graphColor04Dark,m.graphColor10Dark,m.graphColor12Dark,m.graphColor15Dark,m.graphColor18Dark,m.graphColor17Dark,m.graphColor07Dark];class Y{_barColors;_barColorsKeyWise;_defaultColor;constructor(){this._defaultColor=m.graphColor34,this._barColors=De.slice(),this._barColorsKeyWise=new Map}static#e=new Y;getBarColor(a){const o=Y.instance();return o._barColorsKeyWise.has(a)||(o._barColors.length===0&&(o._barColors=De.slice()),o._barColorsKeyWise.set(a,o._barColors.shift()??o._defaultColor)),o._barColorsKeyWise.get(a)}shouldUpdate(a){const o=Y.instance(),n=Array.from(o._barColorsKeyWise.keys()).sort();return!Fe(n,a)}static init(){return this.#e=new Y,this.#e}static instance(){return this.#e}}const Kt=Y.instance(),Ht=(e,a,o)=>{const n=[],r={};let l,i=!1;if(o!=null&&o.accountGroups.length!=0?o.accountGroups.forEach(u=>{const s=I(u.accountGroupName,"actual",u),c=b(u.accountGroupName,"actual");r[c]=s,n.push(c),l==null&&s.length>0&&(l=b(u.accountGroupName,"actual"))}):o!=null&&o.accounts.length!=0&&(i=!0,o.accounts.forEach(u=>{const s=I(u.account.accountName,"actual",u.account.balancesInTimeframe),c=b(u.account.accountName,"actual");r[c]=s,n.push(c),l==null&&s.length>0&&(l=b(u.account.accountName,"actual"))})),o!=null&&o.accountGroups.length===0&&o.accounts.length===0){const u=S.getLocalizedStrings().chartCard.total,s=I(u,"actual",o);if(s.length!==0){const c=b(u,"actual");r[c]=s,l=c,n.push(c)}}return a==="forecast_mode"&&Object.assign(r,Yt(n,o)),l!=null?J(e,n,l,r,i):void 0},Yt=(e,a)=>{const o={};let n;if(a!=null&&a.accountGroups.length!=0?a.accountGroups.forEach(r=>{const l=I(r.accountGroupName,"forecast",r),i=b(r.accountGroupName,"forecast");o[i]=l,e.push(i),n==null&&l.length>0&&(n=b(r.accountGroupName,"forecast"))}):a!=null&&a.accounts.length!=0&&a.accounts.forEach(r=>{const l=I(r.account.accountName,"forecast",r.account.balancesInTimeframe),i=b(r.account.accountName,"forecast");o[i]=l,e.push(i),n==null&&l.length>0&&(n=b(r.account.accountName,"forecast"))}),a!=null&&a.accountGroups.length===0&&a.accounts.length===0){const r=S.getLocalizedStrings().chartCard.total,l=I(r,"forecast",a);if(l.length!==0){const i=b(r,"forecast");o[i]=l,n=i,e.push(i)}}return o},qt=f.div`
|
|
196
196
|
width: ${e=>e.width}px;
|
|
197
197
|
height: ${e=>e.height}px;
|
|
198
|
-
`,
|
|
198
|
+
`,Ut=e=>{const{cx:a,cy:o,fill:n,stroke:r,value:l}=e;return l==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:a,cy:o,r:4,stroke:n,strokeWidth:2,fill:r})},Xt=e=>{const{cx:a,cy:o,fill:n,stroke:r,value:l}=e;return l==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:a,cy:o,r:5,stroke:r,strokeWidth:2,fill:n})};function Da({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,mode:u,onCOABalancesRangeChanged:s}){const c=z.useRef(!1),[C,h]=z.useState(Kt),[d,y]=z.useState(void 0),j=F(),_=z.useRef([]);z.useEffect(()=>{c.current=!0},[]),z.useEffect(()=>{C.shouldUpdate(_.current)===!0&&h(Y.init())},[]),z.useEffect(()=>{let p=[];if(e.reportId==="operating_expenses"){const g=e.sections.expenses;g.accountGroups.length===0&&g.accounts.length===0?p.push(S.getLocalizedStrings().chartCard.total):p=g.accountGroups.length!=0?g.accountGroups.map(D=>D.accountGroupName).sort():g.accounts.map(D=>D.account).map(D=>D.accountName).sort()}else p=e.sections.expenses.classes.map(g=>g.class.className).sort();_.current=p},[e,C]);const w=z.useMemo(()=>e.reportId==="operating_expenses"?Ht(e.firstMonthOfFY,u,e.sections.expenses):Vt(e.firstMonthOfFY,e.sections.expenses),[e,u]),$=z.useCallback(()=>{const p=[];return w?.orderedKeys.forEach(g=>{const D=!c.current;g.endsWith("_forecast")?p.push((L=>t.jsx(pe,{name:L,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:t.jsx(Ut,{}),activeDot:t.jsx(Xt,{}),dataKey:v=>{const B=v.record;let P,O;for(O in B)if(O.endsWith("_forecast")){const G=B[O].amount;G!=null&&(P==null?P={...G}:P.amount+=G.amount)}return P?.amount},stroke:j.colors.grey1,strokeDasharray:"3 3",strokeWidth:1.5},L))(g)):p.push(((L,v)=>t.jsx(oe,{name:L,animationDuration:v?500:void 0,style:{cursor:"pointer"},dataKey:B=>{const P=B.record;return(P[L]!=null&&P[L].amount!=null?P[L].amount:void 0)?.amount??0},stackId:"a",fill:C.getBarColor(T(L)),onMouseEnter:()=>{d!==L&&y(L)},onMouseLeave:()=>{d!=null&&y(void 0)}},L))(g,D))}),p},[w]),k=({active:p,payload:g})=>g?.find(D=>D.name===d)!=null&&d!=null&&p===!0?t.jsx(Ft,{active:p,payload:g,mode:u,barName:d}):null;return w==null?null:t.jsx(Jt,{chartData:w,timeframe:a,showBarHoverBackground:l,barElements:$(),customToolTipContent:t.jsx(k,{}),width:n,height:r,onCOABalancesRangeChanged:s,highlightedRange:o,isDetailPage:i===!0})}const Jt=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=F(),h=te(e),d=e.timeseries,y=d.map($=>$.label),j=u!==!1,_=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const p=$.activeTooltipIndex,g=k.payload.timeLabel.label;if(r==null)return;const D=ae(g,y,r.numberOfPeriods),L=D[1]===void 0?y.length-1:y.indexOf(D[1]),v={...r,thisPeriod:{startDate:d[L].startDate,endDate:d[L].endDate}};c?.(d[p],a,v)},w=s?(l-60)/N.operating_expenses*(N.operating_expenses-e.recordByTimeseries.length):20;return t.jsx(qt,{width:l,height:i,children:t.jsx(Q,{children:({height:$,width:k})=>t.jsxs(me,{width:k,height:$,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:s?E[10]:30,margin:{top:5,right:w,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:_,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:C.colors.grey3}),t.jsx(ne,{dataKey:p=>p.timeLabel.label,type:"category",axisLine:{stroke:C.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:p=>Z("0,0.[00]a",p,h)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!j&&{stroke:C.colors.background,strokeWidth:(k-60)/N.operating_expenses,fill:C.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})},Qt=f.div`
|
|
199
199
|
display: flex;
|
|
200
200
|
`,Zt=f.div`
|
|
201
201
|
display: flex;
|
|
@@ -256,14 +256,14 @@ import{y as F,O as S,V as t,e as m,Q as Fe,an as Q,u as E,j as M,ag as Z,J as de
|
|
|
256
256
|
text-align: right;
|
|
257
257
|
`,Se=f(K)`
|
|
258
258
|
text-align: right;
|
|
259
|
-
`,
|
|
259
|
+
`,X=f(K)`
|
|
260
260
|
text-align: right;
|
|
261
261
|
flex: 1;
|
|
262
262
|
color: ${e=>e.isChange!=null&&e.isChange===!0?m.important:null};
|
|
263
263
|
`,Be=f(K)`
|
|
264
264
|
display: flex;
|
|
265
265
|
flex-direction: column;
|
|
266
|
-
`,ze=f(K)``,ca=({active:e,payload:a,mode:o})=>{const n=[];let r={amount:0,currencyCode:""},l={amount:0,currencyCode:""};const i=b("gross_margin","actual");return a?.forEach(u=>{const s=u.name;if(e===!0){const c=u.payload,C=u.color,h=s!=null&&c.record[s]!=null?c.record[s].amount:void 0;let d;s.includes("forecast")!==!0&&(o==="forecast_mode"&&(d=c.record[s]!=null?((y,j)=>{const _=b(T(y),"forecast");if(j.record[_]==null)return;const w=j.record[y].amount,$=j.record[_].amount;return{value:$,change:{...w,amount:Math.floor(100*(w.amount-$.amount)/100)},percent:$.amount!==0?Math.floor((w.amount-$.amount)/$.amount*100)/100:void 0,forecastPercent:j.record[_].percentValue}})(s,c):void 0),s===i?(h!=null&&(r.currencyCode===""?r={...h}:r.amount=r.amount+h.amount),d!=null&&(l.currencyCode===""?l={...d.value}:l.amount=l.amount+d.value.amount),n.push({barName:S.getLocalizedStrings().chartCard.revenue[T(s)],actual:h,forecast:d,percent:c.record[s]!=null?c.record[s].percentValue??0:0,color:C})):n.push({barName:S.getLocalizedStrings().chartCard.revenue[T(s)],actual:h,color:C,forecast:d}))}}),n},Pe=e=>e.map((a,o)=>t.jsxs(Me,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(la,{children:[t.jsx(Ae,{color:a.color}),`${a.barName}:`]}),t.jsxs(na,{children:[t.jsx(Se,{children:`${W(a.actual)}`}),a.percent!=null?t.jsx(Se,{children:V("0,0.0%",a.percent)}):null]})]},a.barName+o)),Re=e=>e.map((a,o)=>t.jsxs(Me,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(ra,{children:[t.jsx(Ae,{color:a.color}),`${a.barName}:`]}),t.jsx(
|
|
266
|
+
`,ze=f(K)``,ca=({active:e,payload:a,mode:o})=>{const n=[];let r={amount:0,currencyCode:""},l={amount:0,currencyCode:""};const i=b("gross_margin","actual");return a?.forEach(u=>{const s=u.name;if(e===!0){const c=u.payload,C=u.color,h=s!=null&&c.record[s]!=null?c.record[s].amount:void 0;let d;s.includes("forecast")!==!0&&(o==="forecast_mode"&&(d=c.record[s]!=null?((y,j)=>{const _=b(T(y),"forecast");if(j.record[_]==null)return;const w=j.record[y].amount,$=j.record[_].amount;return{value:$,change:{...w,amount:Math.floor(100*(w.amount-$.amount)/100)},percent:$.amount!==0?Math.floor((w.amount-$.amount)/$.amount*100)/100:void 0,forecastPercent:j.record[_].percentValue}})(s,c):void 0),s===i?(h!=null&&(r.currencyCode===""?r={...h}:r.amount=r.amount+h.amount),d!=null&&(l.currencyCode===""?l={...d.value}:l.amount=l.amount+d.value.amount),n.push({barName:S.getLocalizedStrings().chartCard.revenue[T(s)],actual:h,forecast:d,percent:c.record[s]!=null?c.record[s].percentValue??0:0,color:C})):n.push({barName:S.getLocalizedStrings().chartCard.revenue[T(s)],actual:h,color:C,forecast:d}))}}),n},Pe=e=>e.map((a,o)=>t.jsxs(Me,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(la,{children:[t.jsx(Ae,{color:a.color}),`${a.barName}:`]}),t.jsxs(na,{children:[t.jsx(Se,{children:`${W(a.actual)}`}),a.percent!=null?t.jsx(Se,{children:V("0,0.0%",a.percent)}):null]})]},a.barName+o)),Re=e=>e.map((a,o)=>t.jsxs(Me,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(ra,{children:[t.jsx(Ae,{color:a.color}),`${a.barName}:`]}),t.jsx(X,{children:t.jsxs(Be,{children:[a.actual!=null?`${W(a.actual)}`:"-",t.jsx(ze,{children:a.percent!=null?V("0,0.0%",a.percent):null})]})}),t.jsx(X,{children:t.jsxs(Be,{children:[a.forecast!=null?`${W(a.forecast.value)}`:"-",t.jsx(ze,{children:a.forecast!=null&&a.forecast.forecastPercent!=null?V("0,0.0%",a.forecast.forecastPercent):null})]})}),a.forecast!=null?t.jsx(X,{isChange:!0,children:`${W(a.forecast.change)}`}):t.jsx(X,{children:"-"}),a.forecast!=null?t.jsx(X,{isChange:!0,children:V("0,0.0%",a.forecast.percent)}):t.jsx(X,{children:"-"})]},a.barName+o)),sa=e=>{if(e.length>0){for(const a of e)if(a.actual!=null)return a.actual.currencySymbol}return""},ia=({barLabelsWithValues:e})=>t.jsxs(Zt,{children:[t.jsxs(ea,{children:[t.jsx(ta,{}),t.jsx(he,{children:S.getLocalizedStrings().chartCard.tooltip.actual}),t.jsx(he,{children:S.getLocalizedStrings().chartCard.tooltip.forecast}),t.jsxs(he,{children:[S.getLocalizedStrings().chartCard.tooltip.change," ",sa(e)]}),t.jsx(he,{children:S.getLocalizedStrings().chartCard.tooltip.change_percent})]}),t.jsxs(aa,{children:[Re(e.slice(0,e.length-1)),e.length?t.jsx(Ie,{}):null,Re(e.slice(-1))]})]}),ua=({barLabelsWithValues:e})=>t.jsx(Qt,{children:t.jsxs(oa,{children:[Pe(e.slice(0,e.length-1)),e.length?t.jsx(Ie,{}):null,Pe(e.slice(-1))]})}),ha=ee.memo(e=>{const a=ca({...e});return a.length===0?null:t.jsx(t.Fragment,{children:e.mode==="forecast_mode"?t.jsx(ia,{barLabelsWithValues:a}):t.jsx(ua,{barLabelsWithValues:a})})}),Oe=(e,a,o,n,r,l)=>{let i=[],u=[],s=[];n!=null&&n.balances.length>0&&(i=A("income","actual",n)),r!=null&&r.balances.length>0&&(u=A("cogs","actual",r)),l!=null&&l.balances.length>0&&(s=re("gross_margin","actual",l));const c=b("income","actual"),C=b("cogs","actual"),h=b("gross_margin","actual"),d=i.length>0?c:u.length>0?C:h,y={};return y[c]=i,y[C]=u,y[h]=s,o==="forecast_mode"&&Object.assign(y,da(n,r,l)),d!=null?J(e,a,d,y):void 0},da=(e,a,o)=>{let n=[],r=[],l=[];e!=null&&e.balances.length>0&&(n=A("income","forecast",e)),a!=null&&a.balances.length>0&&(r=A("cogs","forecast",a)),o!=null&&o.balances.length>0&&(l=re("gross_margin","forecast",o));const i=b("income","forecast"),u=b("cogs","forecast"),s=b("gross_margin","forecast"),c={};return c[i]=n,c[u]=r,c[s]=l,c},ga=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual")],pa=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual"),b("income","forecast"),b("cogs","forecast"),b("gross_margin","forecast")],ma=f.div`
|
|
267
267
|
width: ${e=>e.width}px;
|
|
268
268
|
height: ${e=>e.height}px;
|
|
269
269
|
|