@zeniai/web-cockpit-ui 1.15.12-dev → 1.15.13-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-BY65AQjO-Cl2Tlmft.js → ACHDetailsPage-BlujuoRH-D3z2m9vf.js} +1 -1
- package/dist/assets/{AIPerformancePage-B0a7EX_p-BepCOVvT.js → AIPerformancePage-DfgPUakC-C7_4KJtd.js} +12 -12
- package/dist/assets/AccountInfoPage-BYwGsz6J-ilS3p_4u.js +18 -0
- package/dist/assets/{AccountInfoPageContent-BsSGhNw9-Bhg40nPQ.js → AccountInfoPageContent-CTvsml8u-HiMO1t4f.js} +7 -7
- package/dist/assets/{AccountLockedInfoModal-uPOYP0OH-gMh9hb_c.js → AccountLockedInfoModal-DeYVMh3B-Dec8Ripp.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-BgPmbG_g-9wGOY4BN.js → AccountReconDetailsDrawerPage-D6WT5Co_-Boi6JvlJ.js} +1 -1
- package/dist/assets/{AccountRow-B9ZIzZy7-C9nPv4rY.js → AccountRow-FmhkZVL4-BiCaU5gp.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-BLcpWU3T-CV6K5Y9x.js → AccountsPromoCardStack-B5Mri6qW-C55uOtTG.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-B1oucxyM-I6biD8O7.js → AddAddressForCardDrawer-Bs4dQyRL-ChMzAqlj.js} +1 -1
- package/dist/assets/{AddToWalletPage-B1GVnxRf-CndQH9vq.js → AddToWalletPage-fBplELoj-BbSWfj-_.js} +1 -1
- package/dist/assets/{AgingReportsPage-Bpp4te8m-HodwoOcT.js → AgingReportsPage-CgeLN6Su-mjdbj-V7.js} +1 -1
- package/dist/assets/{AllUserItems-CzugF5fn-8WnbDsqH.js → AllUserItems-vOFCgjs7-BawEw1bw.js} +3 -3
- package/dist/assets/{ApAgingDetailPage-CyUQeZY0-DHH2Dilv.js → ApAgingDetailPage-CF5WKuOc-DwzZ4J6w.js} +4 -4
- package/dist/assets/{AppBasePage-Di7hObbX-uZJvqLhK.js → AppBasePage-DrIjva6e-BEoSV9em.js} +1 -1
- package/dist/assets/{AppDrawerContent-KdrUuifo-DcEK8qwb.js → AppDrawerContent-Co1DpiWD-BseTWq0X.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-BRIgTh7x-CF-Pagn9.js → ApprovalRulesSettingsPage-tYbxBThK-Cp_BZtLr.js} +1 -1
- package/dist/assets/{ArAgingChart-DeE5uhiT-BcI5cuvH.js → ArAgingChart-B2zTJJgb-BW-4V4KX.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-CFiIUBWl-BXhWrXr_.js → ArAgingDetailPage-0nCr6crv-CVAwjIoB.js} +5 -5
- package/dist/assets/{AttachmentView-CfacSLcU-gwYezuYM.js → AttachmentView-vlVaH4YF-DjHAa-jm.js} +1 -1
- package/dist/assets/{BankAccountSection-Bm8vdxFd-DKKdvH8R.js → BankAccountSection-CDKiTWgn-CtT_fqlj.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-M3w6kP33-ChP5wvhC.js → BankAccountWarningSection-tSnRJm3S-Xh7INFxm.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-Dfrp0CKz-Dc4Qac0T.js → BankConnectionsSettingsPage-O_L8CHJf-Lbkg03Kb.js} +1 -1
- package/dist/assets/{BillDetailPage-BA1D1bO3-Ofkt6QPd.js → BillDetailPage-DR3JefXf-CT_vRh92.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DR8YzZt1-CQcbdF34.js → BillPayApprovalRuleDetailPage-2w8HO-NU-BrDPRKpx.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CfZ4aSPM-C6nI7yKc.js → BillPayApprovalRulesPage-yFoEpHK8-mn4XE1DW.js} +1 -1
- package/dist/assets/{BillPayPromoPage-CP9Nvd2Q-CSZ8mSrV.js → BillPayPromoPage-DZkA_0AV-wh6M-Qtv.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-BwEONKu_-DARv5ESb.js → BillPaySetUpPage-B2j-es9G-Cgscrq-x.js} +7 -7
- package/dist/assets/{BillingSettingsPage-DicGyWCt-DwbmjVcE.js → BillingSettingsPage-ayQNGWSW-BH36NbEd.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-fS3-YEdi-DKZKHDla.js → BillsBulkReviewDrawerPage-B2LDJ9-N-Bz6yNrUs.js} +1 -1
- package/dist/assets/{BoxItem-Cr0Y9YBV-C2AawtqJ.js → BoxItem-B0bHU_KA-CwJAi_XO.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CvL9cdJm-Drj-tMQU.js → BusinessVerificationPage-DZ27apcr-60B1XBNo.js} +1 -1
- package/dist/assets/{CardNumberSubText-CXBKzGK5-CCtn2y_n.js → CardNumberSubText-CpqumrS--C5H93W0D.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DOdPOiws-CAJxdhJ3.js → CashbackDetailPage-C3oNmfln-Cjfl1QQU.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-DfhAyysD-Cgd92Yem.js → ChargeCardDetailPage-C9XhHqSo-C6G4QIZB.js} +1 -1
- package/dist/assets/{ChargeCardListPage-Bnnu4TVk-DFZAYaNm.js → ChargeCardListPage-B_PxtkQX-D4XUj6S4.js} +1 -1
- package/dist/assets/{ChargeCardListTable-D7zGM8uo-70otSDDQ.js → ChargeCardListTable-kp0WwIZo-C7S3-nFL.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-U00GbINt-BIwIfF30.js → ChargeCardPaymentHistoryPage-D1l3Qgr_-CcXK8zox.js} +8 -8
- package/dist/assets/{ChargeCardPromoPage-BpBiwjfr-DWB9eQGN.js → ChargeCardPromoPage-DcmgTF8u-uElL894v.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-Duj6901M-CIASuReJ.js → ChargeCardSetupPage-BX9fPIf_-CJBf2z8R.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-IkU86L31-ClrDQTtP.js → ChargeCardStatementsPage-a5u9wGDg-CReuXYls.js} +4 -4
- package/dist/assets/{CheckDepositDrawerPage-fHeTkRJF-CdLdCkIH.js → CheckDepositDrawerPage-_DvlXSse-DhB3lKOy.js} +1 -1
- package/dist/assets/{CollapsableReportTable-DUo-9gOh-B_gwOhYJ.js → CollapsableReportTable-DgteU0nB-DwU6xqcB.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DzDZe6MU-DWguMF6d.js → CompanyOfficerDetailsSection-DG1ZQ-UL-BWPYN3Ux.js} +1 -1
- package/dist/assets/{CompanyPassportCard-BwiwJ82k-WRVY9XX8.js → CompanyPassportCard-JfMVwFHV-DIdzwTm1.js} +3 -3
- package/dist/assets/{CompanyPassportPage-Bz3rzG9k-e3d2ccIM.js → CompanyPassportPage-2j8z-oge-D6U4VneL.js} +1 -1
- package/dist/assets/{CompleteProfile-CRXV-nNq-DpRL426l.js → CompleteProfile-Cm8XlcS3-h3qANDX9.js} +2 -2
- package/dist/assets/{ConfettiBurst-CapRdPno-Dlg4XvfD.js → ConfettiBurst-BtmMysff-DXW2t6JP.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BjPotKnf-De1W0m4N.js → CreateOrEditVendorPage-BxSAnKo6-BT1rzueh.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-BTZ2Lph6-DMwCUXwV.js → CreditCardPaymentDrawerPage-a2j9Vyid-B5YbQ1Qy.js} +1 -1
- package/dist/assets/{CurrencySelectField-DY0HeU0G-CSYPXeIb.js → CurrencySelectField-CbBlYqRB-D1pLCzjN.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-BIKXkkcY-IFMHYYO1.js → CustomerOnboardingActivationPage-CG508vOx-CLWU-GVx.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CuP19GYc-BdzG4LPd.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DYiAmFsM-C0-Ot9Uw.js → CustomerOnboardingDetailPageSkeleton-BszHZi0e-DON_7YLk.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-gssFllMT-DT9hupvU.js → CustomerOnboardingNoStepsPage-Cg8ti5NY-DlxEJtW7.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-CBJHj8BH-KUidrPxI.js → CustomerOnboardingPage-DM-gDkp1-rcTTcpJq.js} +1 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-BryLMJRG-DDfHjs9L.js +202 -0
- package/dist/assets/{Dashboard-BVvkfPf9-hp4sQi7A.js → Dashboard-BRm1rkFD-sRJsQcvd.js} +1 -1
- package/dist/assets/{DashboardReportPage-DHQ79h9V-C3FgTbgA.js → DashboardReportPage-rtbUwJSW-Cfsk6TQp.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-B8Q-YA_s-DLXiBeQj.js → DashboardSidebarBackgroundAnimation-DVTdlTEZ-LE3GU0DJ.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-DZnqI7IQ-DR0NgZ86.js → DepositAccTransactionItem-BbKLxsPR-Dpo7wVCS.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BMNdp-3Q-CyOUea8P.js → DepositAccTransactionListPage-0AV-fx2Z-BFJB16zN.js} +2 -2
- package/dist/assets/{DomesticWireDetailsPage-CCP6xoW_-BlmZjbpt.js → DomesticWireDetailsPage-BKumlfKE-Cqz9aujw.js} +1 -1
- package/dist/assets/{DownloadOverlay-B2bK30rG-B-m5Mv2I.js → DownloadOverlay-C6GFjg2N-DrkN4pip.js} +1 -1
- package/dist/assets/{DrawerPage-BRJDrBlv-D28-uO54.js → DrawerPage-BjfQ_wvz-BRg4aJBc.js} +1 -1
- package/dist/assets/{EditPeoplePage-I8E1Rs3x-DbyrgA_C.js → EditPeoplePage-59PeI1Ul-cMTnU9vy.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-C7BPmFMR-DTPMhwLH.js → EditReimbursementDetailPage-D5cPRveU--6MVI5yI.js} +1 -1
- package/dist/assets/{EntityDetailPage-BraBJ2k1-Wq1E4JPl.js → EntityDetailPage-CiO1dOzo-BB1u6uOD.js} +2 -2
- package/dist/assets/{EntitySummarySection-DPmL3Bnf-CHA6TrKp.js → EntitySummarySection-DBQxz0Ak-YgKNz1nX.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-CDaO_5Vj-gZyomnai.js → ExpenseAutomationOverviewPage-D9JnRKeQ-bE2V-UEo.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-DUenmMQD-Yh_8CeIf.js → ExpenseAutomationPage-isWf-Yjm-BEj6GzxJ.js} +1 -1
- package/dist/assets/{ExpressPayPage-DxO1mXNE-DeRja-sm.js → ExpressPayPage-iL1BYLic-BqUwfpLY.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-BWPNZcYs-CdJLxzVS.js → FeaturePreviewPage-CFz7RpI6-DbRQaCew.js} +1 -1
- package/dist/assets/{FollowStepsSection-DhVGeocZ-Ddk_z58q.js → FollowStepsSection-Crd9GwnW-RQu2gQ-V.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-8eiQXg7N-pPWYTyKl.js → GlobalReviewListPage-xUatsnwu-Dx9d2TTm.js} +1 -1
- package/dist/assets/{InformationCardStack-CHVjIv01-Y1Eih__r.js → InformationCardStack-CgSYiHdK-Cf9Cjw1k.js} +2 -2
- package/dist/assets/{InsightsCardStack-x_tohY2Z-DNptH2Sv.js → InsightsCardStack-dkuf5D9A-Duqx5-xn.js} +2 -2
- package/dist/assets/{InsightsSection-D7g00fg7-Bl1k6KMG.js → InsightsSection-CUk29Ace-BKDJK0uo.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-DVRtPRi9-ig1iJJpM.js → IntegrationsSettingsPage-As-313jz-BWoXfvd2.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-DnWbUuiD-CIWMoecY.js → InternationalWireSwiftDetailsPage-CqMsBHlO-CbK2_2UB.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-CHvUYgd8-B9TQJM22.js → InternationalWireVerificationPage-BJ9-Rvqo-C5xNuG17.js} +1 -1
- package/dist/assets/{InviteFormPage-Cw0TIkwc-D0dTmTLg.js → InviteFormPage-D7yOmbjN-B6cNY2j6.js} +1 -1
- package/dist/assets/{InvitePageListView-B4gEzFp2-1aqNeIHc.js → InvitePageListView-CUeSQD7S-BB-ili2p.js} +1 -1
- package/dist/assets/{InvitePeoplePage-Bnsqv_IY-DhNBoZS8.js → InvitePeoplePage-BY6iz4UW-16zeXtyQ.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-CW4hHmAi-DKFSw8te.js → InvoiceUploadSection-fjn4uF_l-DBvp2GNb.js} +20 -20
- package/dist/assets/{IssueChargeCardPage-sM826Uvu-DMhbp0aa.js → IssueChargeCardPage-B30u11O2-BHXfiwVd.js} +1 -1
- package/dist/assets/{LabeledAddressValue-AuzW29LK-99vdzqZR.js → LabeledAddressValue-CJZ_1zh1-dIyC1ckB.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-C_KatgTA-ByiPbJgm.js → LabeledAddressValueField-3BEuHr_a-BAXHOnek.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CEd7DSmU-mOU-S2fp.js → LabeledControlledCheckBoxField-DqtbWhaH-Ct8s61sn.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-CffMX6f1-C44H-4q3.js → LabeledCountryMultiSelectField-t7lnpz15-B8MvgThW.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CoS6DIi_-DTDCa09f.js → LabeledCreatableSingleSelectField-DSrFEwMO-BtK2wHhP.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CVBhbPHv-9665D02s.js → LabeledDocumentField-CYvUm3Rk-DLfE-kKo.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CNru68eT-GPSUv36b.js → LabeledDropDownFormattedTextField-IohlqRi7-BoY6bhCM.js} +1 -1
- package/dist/assets/{LabeledMultiSelectField-CTqXa2Rh-Cxu9DNT8.js → LabeledMultiSelectField-CveBXp8L-BAd1gTI4.js} +1 -1
- package/dist/assets/{LabeledText-Da0Yn6u8-CFgd90E4.js → LabeledText-C9CoADG4-BsL6jbJB.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CE332GjA-BafYQ_Pm.js → LabeledUserSingleSelectWithSubtitlesField-B6q4n0f5-BWHNFjm5.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-DU4-ho4X-DQBIg45w.js → LabeledZeniRolesDropDownField-B-0ZfQFs-BLpCJZWp.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-Dx4OE1-O-HLvvvZHd.js → LinkJETransactionPage-CLo-jbfZ-CgODjcQ0.js} +2 -2
- package/dist/assets/{LockCardPage-B3P6wcK_-Ckpg2eew.js → LockCardPage-CmWzTH0n-B_X-TwZ4.js} +6 -6
- package/dist/assets/{LowBalancePopup-Dp1vEYQQ-DIw_NRSy.js → LowBalancePopup-BUAKDPHL-BfDsvGUL.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-v539jeyl-sH7kLHfx.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CU9g_d2_-gcBn5f-G.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-CYupqopA-BhBR0cCB.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-Iva17nX0-DhK2jGAZ.js → MagicLinkSuccessPage-BGSpNBaK-DRZ7k8D2.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-B726bP_P-CoT1ZO_f.js → MagicLinkTitleSection-BKIOmha4-ChpstG69.js} +1 -1
- package/dist/assets/MailingDetailsSection-BwgWy_VZ-Do6nH1qr.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-Ad6xGN08-JjXBlik9.js → MyBankConnectionsSettingsPage-B3HEwRST-BMNPEzRQ.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BYZ61huS-YKZjMs5X.js → MyPendingActivationChargeCardListPage-Cy_JIUO5-CXr2StVT.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-bEru4GQJ-Cj303JTH.js → MyProfileSettingsPage-D4XR8lj4-Cx77Yc0W.js} +1 -1
- package/dist/assets/{NavBarWithPicker-BAKrtv3g-BXBcsUFZ.js → NavBarWithPicker-Brxnh3kz-BBzh1_Q6.js} +1 -1
- package/dist/assets/{NavigationArrow-CKvBs9-h-DGD1r2EE.js → NavigationArrow-C1HvrCIx-DFOmLMLf.js} +1 -1
- package/dist/assets/{NavigationDots-BdcVrwsL-D_WEvn6f.js → NavigationDots-Ttv3r4BR-v2ws1TaA.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Cx38uQAS-BBICE4OG.js → NewGlobalMerchantPage-rrVa4Iiv-lDEd0itd.js} +1 -1
- package/dist/assets/{NoDataChart-BbyxZE2g-CtN5BYbf.js → NoDataChart--T7v827k-zXeqjU35.js} +1 -1
- package/dist/assets/{NoDataTable-BNZWGvtm-S9Fe9Ovx.js → NoDataTable-cJmfr934-D57XH4Vn.js} +1 -1
- package/dist/assets/{NotFoundPage-CssnEz-k-ccXdF3op.js → NotFoundPage-C-RS1j9W-DH4NAkkX.js} +9 -9
- package/dist/assets/{NotificationSettingsPage-DmgxnO9I-BH2rOJH7.js → NotificationSettingsPage-Bt94GV9--r7sgcB96.js} +1 -1
- package/dist/assets/{NotificationsListConfig-DdMKLqFI-DwvXMwFg.js → NotificationsListConfig-CbWdzORJ-BsmAt2Aw.js} +1 -1
- package/dist/assets/{NotificationsPage-B9XIE39J-CejudHUF.js → NotificationsPage-kZGgGVaC-BAHmfRGl.js} +1 -1
- package/dist/assets/{OpExByVendorPage-5wnFvYXt-D6A9jnRY.js → OpExByVendorPage-BSoM5hsv-8kUubW4x.js} +1 -1
- package/dist/assets/{OverlayContainerPage-IDTUbuAC-dv-sDcTQ.js → OverlayContainerPage-IDTUbuAC-C05m2YxE.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CrtKdSaD-CYng6puq.js → PandLWithForecastPage-C181kEf--CfV2ma5M.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CQki5l4P-CuMomXeK.js → PaymentAccountSetupBillingAddressSection-DqDvhQwH-C-RxqOsn.js} +7 -7
- package/dist/assets/{PeoplePage-BCjxJl1y-JBCpiTMQ.js → PeoplePage-ByvK4lsu-B40YfrBC.js} +1 -1
- package/dist/assets/{Preview-DMKZka6j.js → Preview-B0RnB2Yn.js} +1 -1
- package/dist/assets/{ProductsCarousel-BYvlY6Jl-BJ6Pqq3q.js → ProductsCarousel-CCLEQfr4-D3JLfCUB.js} +1 -1
- package/dist/assets/{PromoBaseCards-6vRaZnUg-CBqkAept.js → PromoBaseCards-BESaQCrl-gKsHUW_9.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-C-v9bhUW-CtiRv4Zj.js → QBOConnectionDialog-BhmH5aji-CM5T8oTr.js} +1 -1
- package/dist/assets/{QBOSetupSection-DPhwp1AB-DxJDpMHr.js → QBOSetupSection-BevEEFTb-Jbk-oPo7.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Crz8RArL-DQzyot-2.js → ReimbursementApprovalRuleDetailPage-Dklp8fND-C3LBVHUX.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-CHrPVveg-DDlyKkun.js → ReimbursementApprovalRulesPage-CCo730ny-q5c8fyV0.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BlfifQuc-DXXQTfQu.js → ReimbursementDetailPage-D8G3Aoci-DIVONTh0.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-B6rhhOye-CmIRL-Wr.js → ReimbursementPromoPage-B8BSm0-k-Bt9GjQuu.js} +4 -4
- package/dist/assets/{ReimbursementSetUpPage-BQwRjKZ5-CWVOKlly.js → ReimbursementSetUpPage-KRQIL0VK-DR0ER4Yx.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BTaFn0Mh-DXx1vhRK.js → ReimbursementsBulkReviewDrawerPage-B77ypxnc-BkObb0RE.js} +1 -1
- package/dist/assets/{ReloadCard-DETUOoLJ-Dww2RtAQ.js → ReloadCard-0KQtayY--Cg4JfrF6.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-DSDclygb-CPmwPKtZ.js → ReportTableViewSelector-wrUJSIfk-Dns-QQbX.js} +26 -26
- package/dist/assets/{ReportsPage-BrmMmYET-qm3o80ge.js → ReportsPage-D-r0S90r-CtLOp9ey.js} +1 -1
- package/dist/assets/{RevenueChart-B711QWTX-ztc9NA65.js → RevenueChart-4kIDtnAc-WBQ50ylJ.js} +14 -14
- package/dist/assets/{ReviewDetailsPage-Bkw0FfE--BL2mmyys.js → ReviewDetailsPage-BqIBTewY-C8DdFF_e.js} +1 -1
- package/dist/assets/{ReviewOverlay-CkB3Z8hH-CX5FMXRQ.js → ReviewOverlay-DjazNKfI-D9LHGfoS.js} +1 -1
- package/dist/assets/{RoleWithToolTip-CkpqxMzB-CgYpd1vG.js → RoleWithToolTip-CjvIxkPO-Bi_70Hu8.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-C-4zVu03-B-3H4CNH.js → ScheduleDetailsFixedAssetsPage-DBfwlnR1-bCnucyiC.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-D4mYRUnv-CIK0kUkx.js → ScheduleDetailsPage-CLEKOymC-B3NLZeIV.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-q-031a_C-Cl6g3k1V.js → ScheduleSequenceTable-Dnapx3YK-Be50KNDE.js} +1 -1
- package/dist/assets/{ScreenRoutes-D9-sd0S3.js → ScreenRoutes-S2WD5yPN.js} +1 -1
- package/dist/assets/{SetUpAccountSection-Mm8JelXc-DJkSxyLc.js → SetUpAccountSection-D7Nf4cYj-UGNHCsDO.js} +1 -1
- package/dist/assets/{SignIn-faWXqi7o-BVPJ-uzq.js → SignIn-Cl1If8Mq-CvFGHXZ8.js} +15 -15
- package/dist/assets/{SignInScreen-DTTr8TvQ.js → SignInScreen-CFwIVPDY.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BLWEPKWO-zjDi64vH.js → SpendManagementListViewPage-B8AdQD7w-DscL1E8I.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-vZNK6DuA-DHQi0ok2.js → SpendManagementPerTabPage-BJxGbUNp-CTR6zi4P.js} +1 -1
- package/dist/assets/{SpendManagementSection-CeDmloNd-CJQVf2yR.js → SpendManagementSection-CJ-vMwcf-DAIvaE36.js} +1 -1
- package/dist/assets/{StatementItem-CJShifEl-gXZiawe9.js → StatementItem-CCXoBC0x-B0aqg_M_.js} +2 -2
- package/dist/assets/StatementsPage-BaDmSL9L-t79Ai808.js +58 -0
- package/dist/assets/{StatusSwitcher-CPuONMOx-IUewbXcR.js → StatusSwitcher-BZ2svcz0-BTZEKNgF.js} +1 -1
- package/dist/assets/{SubTabSwitcher-ibTbIxr5-87SzITqK.js → SubTabSwitcher-C3216C6m-CK-Qtqj3.js} +1 -1
- package/dist/assets/{SummaryCard-vWpHXMPE-j4-YbXA_.js → SummaryCard-CSkw4qa9-i9KCkyV3.js} +1 -1
- package/dist/assets/{TaskManagementPage-COs5ebo9-LStJ5YyB.js → TaskManagementPage-BO9Fcar1-BB1pU97E.js} +8 -8
- package/dist/assets/{TimeRangeSwitcher-fD5vvYGO-Cg6AHBEd.js → TimeRangeSwitcher-C9jo91ZR-BexBx71o.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-BYXKRKtc-BTNUudrw.js → TimeframeSwitcher-453JT8qD-dl4gBr1v.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-f92qNjEk-CshyNxhp.js → TimeframeSwitcherWithToggle-CkiICrjF-BzFnMJO-.js} +2 -2
- package/dist/assets/{TopExCard-Bs4nI9Q9-C9Jpq9jc.js → TopExCard-Qae08TpE-B5FSxtbi.js} +10 -10
- package/dist/assets/{TopExDetailPage-B0kS11k0-IiO7dIt-.js → TopExDetailPage-BpwMO-8K-qWr97Eft.js} +4 -4
- package/dist/assets/{TransactionDetailPage-BXl6y7sy-B_wNV2dF.js → TransactionDetailPage-CF5tZCkv-ND1Ih8Rd.js} +1 -1
- package/dist/assets/{TransactionList-BYXPQXN1-C2WkgSOj.js → TransactionList-BuFcrTEd-Pd5NkKsR.js} +1 -1
- package/dist/assets/{TransactionListBig-lrbHUS38-D0fzERPt.js → TransactionListBig-B6-3iOkU-brDnQ-dC.js} +1 -1
- package/dist/assets/{TransactionListPage-OOLJzsmw-Dmoozb9S.js → TransactionListPage-cSSv81G2-C84Nagsy.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CmjrngD2-DvxXX996.js → TransactionVendorDetailPage-BJzVtpnF-BD1O-dJA.js} +1 -1
- package/dist/assets/{TransferDrawerPage-CnFrzA_M-C6390hZV.js → TransferDrawerPage-DCxNnGwu-R8tXJhB-.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-CGxccIcU-CgXb0qH5.js → TreasuryOverviewPage-DfIkj3v1-DGzCSt8t.js} +9 -9
- package/dist/assets/{TreasuryPromoPage-BmMVa8cX-BOYWbSX7.js → TreasuryPromoPage-BBdOyiO--DBYyvSzX.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-DL94A9mN-DZ6yoZ74.js → TreasuryStatementsPage-NgiurO36-wIt2qVvF.js} +2 -2
- package/dist/assets/{TreasuryTaxLetterPage-BJ9-ZsCQ-DnDmd1Op.js → TreasuryTaxLetterPage-DcI8sKk8-CiTg5Fth.js} +2 -2
- package/dist/assets/{TrendChart-ClyJQTBF-TLthRW_O.js → TrendChart-DVp0Led--C8WSZxuE.js} +1 -1
- package/dist/assets/{TrendWithTransactions-D4m4sVkf-DJ-5Yugx.js → TrendWithTransactions-C5Zfe4RN-BXIMOZup.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-BLwx8CVj-dhOY5qHO.js → UncategorizedAccountsMappingPage-DKQj6Y2Z-CJmiPan8.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-CgbOyIBt-nz_B7FQx.js → UnitIntegrationPage-DzP4Z8GG-Dy6PuJhN.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CmVwCxA2-BL_6rNZZ.js → UploadAdditionalDocumentOverlay-BGFTh8Ed-BM9KBkkU.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DQtP0bm--CecMTi1i.js → Vendor2FAPopup-CyeLsWVA-Bvm0fc8m.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-Ch6V5aiE-C8mQ2zAb.js +1 -0
- package/dist/assets/{VendorDetailPage-CFkDOdUe-B1GqtBiD.js → VendorDetailPage-CrEIBnBt-BV5_7SzR.js} +1 -1
- package/dist/assets/VendorDomesticWireDetailsPage-GMtYv721-BHj1SZ-2.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-Bkn9p2Sf-xXTYWhq9.js → VendorFiling1099EditablePage-Bw_Igktf-DBjJgjbY.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-CKvnB4Q7-wJi46XXQ.js → VendorFirstReviewPage-CCCVS8n7-E428xFy1.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage--B2XU_hP-CbzsnIo2.js → VendorInternationalWireDetailsPage-DsBGMjtN-CQvN_vWC.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BeXxE9Qn-ym6eVDNw.js +1 -0
- package/dist/assets/{VendorsAccountsSection-DJP1yZx7-OlnsbsSP.js → VendorsAccountsSection-Bd1rg5Tw-DRUi6jIP.js} +1 -1
- package/dist/assets/{VerifyDevice-dFsnt44d-C1LsKxM_.js → VerifyDevice-B52Vuja4-0E_pm_dD.js} +7 -7
- package/dist/assets/{VideoPlayer-Dy6rImBJ-QOYygi-i.js → VideoPlayer-Cfh9VY-B-CLXI1KSM.js} +2 -2
- package/dist/assets/{VideoPopup-DM5Buf4j-CFLugl6n.js → VideoPopup-BLRMOVnP-CAsXJ3um.js} +3 -3
- package/dist/assets/{WarningsDrawerPage-C8i8v3rq-BqkJBNMa.js → WarningsDrawerPage-CnUUMlFZ-C2O6kI2F.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CI7znfzM-Vqgai5nW.js → ZeniAccountDetailPage-DrBVs3G5-BGnEJzEM.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CBnYQpc8-Dv81IpSI.js → ZeniAccountListViewPage-C3WwakQr-CVBB5Etq.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-sMjtAlej-CO7nbf-u.js → ZeniAccountNavBarPieces-CP2pkywN-CGbioXtu.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-B_NJMHHV-DWsuBCOP.js → ZeniAccountPromoPage-DYAVwX1I-CACWm6_J.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-C9cJ0F8e-BF5g947U.js → ZeniAccountSetupPage-D4y3RRC0-VwyN8R98.js} +1 -1
- package/dist/assets/{ZeniCopyright-DzWFQiAt-07AcK5yb.js → ZeniCopyright-DxhdQ6XJ-DxZgbZ2B.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-B424bcSV-CHepSJQx.js → ZeniTransferAmountSlider-COT3DDGF-CcOgiNdg.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-pWZi41H8.js → add-to-wallet-DgdBD8_G-DsgRUVgA.js} +1 -1
- package/dist/assets/{analytics-BvXI56dE.js → analytics-CSlaNB19.js} +1 -1
- package/dist/assets/{analyticsHelper-DP-LgJhR.js → analyticsHelper-BSMq6Y2P.js} +1 -1
- package/dist/assets/{analyticsHelper-CzevEN9D-BUYGstD0.js → analyticsHelper-C35dM-yG-D6b8wU4U.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-B9_UwdI_.js → arrow-south-east-round-PEovUgvH-yHNADvS4.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CRwly3T1.js → auto-transfer-rule-mbafm5D3-Ccdjr6D8.js} +1 -1
- package/dist/assets/{chartTypes-n3TS0IBf-DRx7aLxA.js → chartTypes-BDwrrz9S-CO6_cPbC.js} +1 -1
- package/dist/assets/{commonDimensions-6BcP8EhU-CPpjZ-C4.js → commonDimensions-Pu55v5lV-fIykEmeD.js} +1 -1
- package/dist/assets/{commonTypes-Q1WP-Ym3-Cmq2uCPt.js → commonTypes-BElGElM--Bg_ac7b3.js} +1 -1
- package/dist/assets/{constants-B97TsRRb.js → constants-D-PeI_mM.js} +1 -1
- package/dist/assets/{core-CIefpDlV.js → core-CqdPXR9B.js} +1 -1
- package/dist/assets/{dash.all.min-RUznf6Xj.js → dash.all.min-DbcV3v7u.js} +1 -1
- package/dist/assets/{detailCommon-D3YbmSu3-CiTGsaNF.js → detailCommon-CM8F8nQy-BjrXwaKv.js} +3 -3
- package/dist/assets/{downloadPdf-Bf11NXjY-DUwuSlsF.js → downloadPdf-BF8--IAB-lQpphdcn.js} +1 -1
- package/dist/assets/{empty-BQQX0XD1.js → empty-DPq645sP.js} +1 -1
- package/dist/assets/{empty-DJIJO66a.js → empty-DTh_Ij2M.js} +1 -1
- package/dist/assets/{epic-C6ygjjdM.js → epic-96Yt9tV8.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-BWCTqneo.js → gift-box-Cmt9OgIZ-Bn-y1hvl.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-C8GXOUxr.js → graphic-no-data-l-DU4J8fDt-a_iKaRv1.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BQAFQuCs.js → graphic-no-data-net-burn-l-CzmycA0m-C9dTXMJH.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BCnezDN8.js → handshake-BPg58FML-DqlUuE7u.js} +1 -1
- package/dist/assets/{index-smQbM7l5.js → index-BTSZX0gU.js} +1 -1
- package/dist/assets/{index-BzA0Xv0P.js → index-Bs6vtzGR.js} +1 -1
- package/dist/assets/{index-WEj6FS32.js → index-D4DdpT1f.js} +7 -7
- package/dist/assets/{index-rikpsdq-.js → index-DQJyhSzl.js} +1 -1
- package/dist/assets/{index-CQs92n2L.js → index-DeNk0spl.js} +1 -1
- package/dist/assets/{index-DAj0zPwk.js → index-DfNzwEf5.js} +1 -1
- package/dist/assets/{index-DtRGsySN.js → index-DzUx431K.js} +1 -1
- package/dist/assets/{lexical-Dp1JhPKz.js → lexical-D6mU3oV8.js} +1 -1
- package/dist/assets/{liveblocks-CrODURpx.js → liveblocks-DXNKZvWw.js} +1 -1
- package/dist/assets/{lottie-hIwSKdQS.js → lottie-BGCmjFH9.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-BArKDqgr-Ce9uxfyP.js → mapLoadingInProgressToTreeNode-4ruPPd2Y-CXJTu75z.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BCmFQbuz-BJl1ilV_.js → mapSectionWithAcOnlyToTreeNode-B77EOrVX-heqCPLrc.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-DbVBrfUp-DCvPMvjH.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-ClmNRrTo-Covijrhn.js → mapTimeframeBalancesToTreeNode-DA60r528-sldeiWG8.js} +1 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-IkKV62Jb-JqYi47LI.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DT4LUXl9-COTrRRrU.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BPtN2Cj0-BxEY8256.js} +1 -1
- package/dist/assets/{mui-BTtN6lbG.js → mui-CooLgaJO.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-vL4oE1Hd.js → page-detail-CWX5S47F-D0SYshoo.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-CzTG_UVX.js → radio-default-CiSgisfh-aKay5Aup.js} +1 -1
- package/dist/assets/{react-DTawl0rf.js → react-B3adtom7.js} +1 -1
- package/dist/assets/{react-RUf-G1wy.js → react-BBgs2Til.js} +1 -1
- package/dist/assets/{react-dGc0O2tO.js → react-BOYN8kx1.js} +1 -1
- package/dist/assets/{react-D8h_J9ua.js → react-CEyM_Slo.js} +1 -1
- package/dist/assets/{react-yNxKnTJa.js → react-CrELMTJL.js} +1 -1
- package/dist/assets/{react-BZDhaeWn.js → react-DHuOianZ.js} +1 -1
- package/dist/assets/{react-FdUpWGdd.js → react-MtwZeeNV.js} +2 -2
- package/dist/assets/{react-CZT8R2xg.js → react-_XrYtXDi.js} +1 -1
- package/dist/assets/{recharts-BfU_srYC.js → recharts-DHPcYqKb.js} +1 -1
- package/dist/assets/{sentry-B0WgNUxa.js → sentry-Dlcq8VjX.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-Z1Xg2OMK.js → shield-DOlUxcFf-D8h0VGFI.js} +1 -1
- package/dist/assets/toCOABalancesWithID-C8uaUoxX-n7EZ1iwJ.js +1 -0
- package/dist/assets/{toChartData-Bl-lEYbQ-Cv_10vbn.js → toChartData-CTG-a8va-B2RC0Eyi.js} +1 -1
- package/dist/assets/{uploadAttachment-B_0cN84g-C7pQHANb.js → uploadAttachment-n14_2p7o-3Yaegacg.js} +1 -1
- package/dist/assets/{uploadReceipts-DJRtId-4-B1jpX457.js → uploadReceipts-DJRtId-4-D8fSq3Gx.js} +1 -1
- package/dist/assets/{url-D-l_68oE.js → url-CfIahVCp.js} +1 -1
- package/dist/assets/{url-CHEcUoer.js → url-d3WjAGv6.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-BysG3lqG.js → useLongPress-GCK2COYQ-B0lPuhDh.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-ZROsAmzr.js → usp-line-BBd1wKwW-CZ22OQAj.js} +1 -1
- package/dist/assets/{utils-DZQMbqmw.js → utils-CXbV7y1T.js} +1 -1
- package/dist/assets/{zeni-epic-state-DnAAAEmj.js → zeni-epic-state-pmiItBju.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AccountInfoPage-DUYpaV3v-CL9yEZEk.js +0 -18
- package/dist/assets/CustomerOnboardingContainerPage-DZfFYnVw-BG6Jz35S.js +0 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-2V3vSjB8-BYRuju-o.js +0 -202
- package/dist/assets/MagicLinkACHDetailsPage-BeRQFYX3-CrMUHXPB.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-C1DDZC2_-CWTR8m-D.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DyDp04Vn-UtoyLAup.js +0 -1
- package/dist/assets/MailingDetailsSection-IQJY4Yl0-C_b76P8R.js +0 -21
- package/dist/assets/StatementsPage-BRxP-Jwn-CibgKP9E.js +0 -58
- package/dist/assets/VendorACHDetailsPage-CuCteqbL-CrfAmoz7.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-Cr1fyB0u-N7obKAAe.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CJFB7SEO-BecYrM5_.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-DdwRxjlP-Bw1NwZTY.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CR-gDA51-Dr9tcN9g.js +0 -1
- package/dist/assets/toCOABalancesWithID-BzzH0Io4-q6KiTxht.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as f,co as V,cp as M,cq as q,k8 as W,aY as Y,F as z}from"./index-
|
|
1
|
+
import{V as f,co as V,cp as M,cq as q,k8 as W,aY as Y,F as z}from"./index-D4DdpT1f.js";import{a as b}from"./sentry-Dlcq8VjX.js";import{Ge as G}from"./zeni-epic-state-pmiItBju.js";import{p as J}from"./ReviewOverlay-DjazNKfI-D9LHGfoS.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./mui-CooLgaJO.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.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]="e132f053-f603-4d2f-90bc-9f751dc4dba7",e._sentryDebugIdIdentifier="sentry-dbid-e132f053-f603-4d2f-90bc-9f751dc4dba7")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=z.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:g,currentSubTab:y}=e,v=!1,[S,l]=b.useState(!1),[d,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,Z]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===d.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[d.length,B,h,e.fetchState,v,e,o]);const D=d.length,x=d.filter(m=>m.reviewStatus.code!=="error").length,F=()=>{const{title:m,description:C}=Q(x);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,g,y),l(!0)},E={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,g,y,G(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=X(p,x,D,h),T=e.fetchState==="Completed"&&x===0,U=()=>{i.trackReimbursementBulkSubmit(t,g,y),u(t)},N=()=>{let m=a.footer.approve;return T?m=a.texts.close:t==="send_for_approval"&&(m=a.footer.submit),{label:m,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:F,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[S?f.jsx(V,{titleComponent:f.jsx(q,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(J,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&x===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:Y("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},Q=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},X=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:g,do_:y,does:v}=a.texts,S=o>1,l=i>1;let d="",_="";return e==="Completed"&&!u?(d=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?y:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",S?t:g)}`):(d=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:d,description:_}};export{ce as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as l,V as r,aM as a,b2 as x,F as y,aP as m,aS as h,bD as g,ai as f,o as c,b3 as w}from"./index-
|
|
1
|
+
import{g as l,V as r,aM as a,b2 as x,F as y,aP as m,aS as h,bD as g,ai as f,o as c,b3 as w}from"./index-D4DdpT1f.js";import{n as s}from"./mui-CooLgaJO.js";import{a as d}from"./sentry-Dlcq8VjX.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]="fe34bd6e-53ab-4fec-ac5f-5c053c0a0e61",e._sentryDebugIdIdentifier="sentry-dbid-fe34bd6e-53ab-4fec-ac5f-5c053c0a0e61")}catch{}})();function b({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(h)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(w,{children:({height:n,width:i})=>r.jsx(b,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=s(h)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import{g as ee,J as de,cc as xe,a9 as ye,V as o,ao as _e,cd as te,ac as we,y as D,aR as $e,o as
|
|
2
|
-
padding: 0 ${
|
|
1
|
+
import{g as ee,J as de,cc as xe,a9 as ye,V as o,ao as _e,cd as te,ac as we,y as D,aR as $e,o as n,F as oe,ce as ve,cf as ke,cg as Ce,ch as je,ci as Ie,am as he,cj as Ne,ai as Se,aD as X,bD as De,u as f,aV as Pe,al as Oe,at as Fe}from"./index-D4DdpT1f.js";import{a as u,P as ue}from"./sentry-Dlcq8VjX.js";import{n as d}from"./mui-CooLgaJO.js";import{R as P,I as Be}from"./CollapsableReportTable-DgteU0nB-DwU6xqcB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="1c162b28-ad95-4129-8bec-d79401a65134",e._sentryDebugIdIdentifier="sentry-dbid-1c162b28-ad95-4129-8bec-d79401a65134")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Te=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ae=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Te(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ae(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ee(a)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ke(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
|
|
2
|
+
padding: 0 ${n.sp3} 0 ${n.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
5
|
-
border-radius: ${
|
|
5
|
+
border-radius: ${n.sp1};
|
|
6
6
|
display: flex;
|
|
7
7
|
justify-content: space-between;
|
|
8
8
|
align-items: center;
|
|
9
9
|
position: relative;
|
|
10
|
-
height: ${
|
|
10
|
+
height: ${n.sp8};
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
`,Me=d(Oe)`
|
|
13
13
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -16,14 +16,14 @@ import{g as ee,J as de,cc as xe,a9 as ye,V as o,ao as _e,cd as te,ac as we,y as
|
|
|
16
16
|
color: ${e=>e.theme.colors.hero};
|
|
17
17
|
width: 12px;
|
|
18
18
|
height: 12px;
|
|
19
|
-
margin: auto ${
|
|
19
|
+
margin: auto ${n.sp0};
|
|
20
20
|
:hover {
|
|
21
21
|
color: ${e=>e.theme.colors.primary};
|
|
22
22
|
}
|
|
23
|
-
`,Ve=e=>{const{value:r,onClick:
|
|
23
|
+
`,Ve=e=>{const{value:r,onClick:a}=e,t=ee();return o.jsxs(Le,{onClick:a,children:[o.jsx(Me,{style:{color:t.colors.primary},children:r}),o.jsx(Re,{})]})},ze=ue.memo(Ve);function Ye({backgroundColor:e,foregroundColor:r,animated:a,width:t,height:l}){return o.jsxs(De,{speed:2,width:t,height:l,viewBox:`0 0 ${t} ${l}`,animate:a!=!1,backgroundColor:e,foregroundColor:r,style:{marginBottom:n.sp2},children:[o.jsx("rect",{x:"45",y:f[3],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:f[8],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:f[4]})]})}function pe({nestedClass:e,isLastNode:r,config:a,parentNodeIDs:t}){const l=P("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:l,isLastNode:r,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((y,_)=>pe({nestedClass:y,config:a,isLastNode:_===e.children.length-1,parentNodeIDs:[...t,l]})),h}function He(e,r){const a=e.map((t,l)=>{const h=P("checkbox_and_name_only",[],t.classId[0]),y={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:r}},_=t.children.map(O=>pe({nestedClass:O,config:r,isLastNode:l===t.children.length-1,parentNodeIDs:[h]}));return y.children.push(..._),y});return{config:r,headerNodes:[],contentNodes:[...a]}}function We(e,r){Object.assign(e.config,r);const a=e.contentNodes;return a.forEach(t=>fe(t,r)),{config:r,headerNodes:[],contentNodes:[...a]}}function fe(e,r){Object.assign(e.reportElementData.config,r),e.children.forEach(a=>fe(a,r))}const se={contentPaddingLeft:new D(f[3],f[3],f[2]),contentPaddingRight:new D(f[3],f[3],f[2])},Ge=d.div`
|
|
24
24
|
height: ${e=>e.height}px;
|
|
25
25
|
width: 100%;
|
|
26
|
-
`,qe=({reportId:e,firstMonthOfFY:r,nestedClassHierarchy:
|
|
26
|
+
`,qe=({reportId:e,firstMonthOfFY:r,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:l,showClassAccountNumber:h,scrollPosition:y,onScroll:_,nodeOpenStatus:O,onNodeCollapseToggled:U,onToggleCheck:F})=>{const z=ee(),Y=de(),[v,j]=u.useState(void 0),[E,w]=u.useState(!1),[L,B]=u.useState({}),[m,M]=u.useState(void 0),[T,k]=u.useState(l),H="none",A=c=>l==="account_group"?!0:t?.length>0?t.find(i=>i[0]===c[0])!=null:!1,I=(c,i)=>{w(!0),B(c),F?.(c,i,l==="account_group"?!0:void 0),$(c,i)},$=(c,i)=>{const g=W(c);for(const b of g.children)F?.(b.classId,i),$(b.classId,i)},W=c=>{let i=a.filter(g=>g.classId[0]===c[c.length-1])[0];for(let g=c.length-2;g>=0;g--)i=i.children.filter(b=>b.classId[0]===c[g])[0];return i},G=c=>{if(c.length>1){const i=W(c.slice(1));let g=!1;for(const b of i.children)if(t.find(q=>q[0]===b.classId[0])===void 0){g=!0;break}g===!0?F?.(i.classId,!0):F?.(i.classId,!1),B(i.classId)}};u.useEffect(()=>{E&&G(L)}),u.useEffect(()=>{const c={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:H,firstMonthOfFY:r,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:A,showClassAccountNumber:h};if(v==null||!X(m,a)||!X(T,l)||E===!0){const i=He(a,c);M(a),j(i),k(l)}else{const i=We(v,c);j(i),k(l)}},[a,l,t]);const[J,Z]=u.useState(5),K=c=>{const i=c+f[6];Z(i)};return v!=null?o.jsx(Ge,{height:J,children:o.jsx(Be,{backgroundColor:l==="classes"?new Pe(z.colors.background):void 0,rootNodes:v,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:se.contentPaddingLeft.value(Y),right:se.contentPaddingRight.value(Y)},scrollPosition:y,onScroll:_,nodeOpenStatus:O,onNodeCollapseToggled:U,onToggleCheck:I,onReportTableHeightChanged:K})}):null},C={width:new D(350,400,400),height:new D(165,165,165),buttonWidth:new D(62,62),buttonHeight:new D(f[5],f[5]),containerWidth:new D(150,400,400)},Ue=d.div`
|
|
27
27
|
position: relative;
|
|
28
28
|
pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
|
|
29
29
|
`,Je=d.div`
|
|
@@ -44,13 +44,13 @@ import{g as ee,J as de,cc as xe,a9 as ye,V as o,ao as _e,cd as te,ac as we,y as
|
|
|
44
44
|
color: ${e=>e.theme.colors.primary};
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
gap: ${
|
|
47
|
+
gap: ${n.sp2};
|
|
48
48
|
margin-top: 12px;
|
|
49
49
|
align-items: center;
|
|
50
50
|
`,Ke=d(Ie)`
|
|
51
51
|
color: ${e=>e.theme.colors.hero};
|
|
52
|
-
width: ${
|
|
53
|
-
height: ${
|
|
52
|
+
width: ${n.sp4};
|
|
53
|
+
height: ${n.sp4};
|
|
54
54
|
&:hover {
|
|
55
55
|
color: ${e=>e.theme.colors.primary};
|
|
56
56
|
}
|
|
@@ -61,12 +61,12 @@ import{g as ee,J as de,cc as xe,a9 as ye,V as o,ao as _e,cd as te,ac as we,y as
|
|
|
61
61
|
justify-content: space-between;
|
|
62
62
|
flex-direction: column;
|
|
63
63
|
border: 1px solid ${e=>e.theme.colors.grey5};
|
|
64
|
-
border-radius: ${
|
|
65
|
-
box-shadow: ${e=>`${
|
|
64
|
+
border-radius: ${n.sp1};
|
|
65
|
+
box-shadow: ${e=>`${n.sp0} 2px ${n.sp2} ${e.theme.colors.dropShadowHover}`};
|
|
66
66
|
margin-top: 10px;
|
|
67
|
-
padding-top: ${
|
|
67
|
+
padding-top: ${n.sp1};
|
|
68
68
|
background: ${e=>e.theme.colors.grey5};
|
|
69
|
-
`,
|
|
69
|
+
`,ae=d.div`
|
|
70
70
|
display: flex;
|
|
71
71
|
align-items: flex-start;
|
|
72
72
|
justify-content: space-between;
|
|
@@ -78,13 +78,13 @@ import{g as ee,J as de,cc as xe,a9 as ye,V as o,ao as _e,cd as te,ac as we,y as
|
|
|
78
78
|
-moz-appearance: none;
|
|
79
79
|
appearance: none;
|
|
80
80
|
display: inline-block;
|
|
81
|
-
width: ${
|
|
82
|
-
height: ${
|
|
81
|
+
width: ${n.sp3};
|
|
82
|
+
height: ${n.sp3};
|
|
83
83
|
padding: 2px;
|
|
84
84
|
background-clip: content-box;
|
|
85
85
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
86
86
|
border-radius: 50%;
|
|
87
|
-
margin: ${
|
|
87
|
+
margin: ${n.sp0} ${n.sp2} ${n.sp0} ${n.sp2};
|
|
88
88
|
cursor: pointer;
|
|
89
89
|
}
|
|
90
90
|
|
|
@@ -99,8 +99,8 @@ import{g as ee,J as de,cc as xe,a9 as ye,V as o,ao as _e,cd as te,ac as we,y as
|
|
|
99
99
|
&:hover {
|
|
100
100
|
background: ${e=>e.theme.colors.background};
|
|
101
101
|
}
|
|
102
|
-
`,
|
|
103
|
-
height: ${
|
|
102
|
+
`,ne=d(Se)`
|
|
103
|
+
height: ${n.sp6};
|
|
104
104
|
display: flex;
|
|
105
105
|
justify-content: center;
|
|
106
106
|
align-items: center;
|
|
@@ -126,8 +126,8 @@ import{g as ee,J as de,cc as xe,a9 as ye,V as o,ao as _e,cd as te,ac as we,y as
|
|
|
126
126
|
`,oo=d(he)`
|
|
127
127
|
display: flex;
|
|
128
128
|
align-items: center;
|
|
129
|
-
column-gap: ${
|
|
130
|
-
margin-left: ${
|
|
129
|
+
column-gap: ${n.sp2};
|
|
130
|
+
margin-left: ${n.sp5};
|
|
131
131
|
color: ${e=>e.theme.colors.hero};
|
|
132
132
|
&:hover {
|
|
133
133
|
cursor: pointer;
|
|
@@ -141,10 +141,10 @@ import{g as ee,J as de,cc as xe,a9 as ye,V as o,ao as _e,cd as te,ac as we,y as
|
|
|
141
141
|
min-height: 1px;
|
|
142
142
|
max-height: 1px;
|
|
143
143
|
`,so=d(Ne)`
|
|
144
|
-
width: ${
|
|
145
|
-
height: ${
|
|
146
|
-
`,
|
|
147
|
-
margin-left: ${
|
|
144
|
+
width: ${n.sp3};
|
|
145
|
+
height: ${n.sp3};
|
|
146
|
+
`,ao=d(he)`
|
|
147
|
+
margin-left: ${n.sp5};
|
|
148
148
|
margin-top: -12px;
|
|
149
149
|
color: ${e=>e.theme.colors.hero};
|
|
150
|
-
`,{reportViewSelector:S,common:{footer:le}}=oe.getLocalizedStrings(),ie="tableViewSelector",ce=e=>`${e}_form`;function uo({reportId:e,firstMonthOfFY:r,nodes:
|
|
150
|
+
`,{reportViewSelector:S,common:{footer:le}}=oe.getLocalizedStrings(),ie="tableViewSelector",ce=e=>`${e}_form`;function uo({reportId:e,firstMonthOfFY:r,nodes:a,classesListFetchState:t,selectedView:l,classesToBeFilteredOut:h,showClassAccountNumber:y,onOpenAccountViewMode:_,onSaveClick:O,isClassViewDisabled:U,downloadPage:F,showAccountGroups:z=!0,onResyncReports:Y,isPageFetchInProgress:v=!1,lastRefreshSuccessTime:j}){const E=ee(),w=de(),[L,B]=u.useState(!1),[m,M]=u.useState(l),[T,k]=u.useState({}),H=(s,p)=>(s.forEach(x=>{p.push(x.classId),p=H(x.children,p)}),p),A=H(a,[]),[I,$]=u.useState(m==="classes"?h:A),W=t!=="Completed"||m==="classes"&&I.length===A.length,G=u.useRef(!1),[J,Z]=u.useState(!1),K=u.useRef(s=>{s&&!G.current&&(G.current=!0,Z(!0))});xe({componentName:`reports.${e}`,enabled:J});const c=s=>s==="classes"?S.classes.label:z===!0?S.accountGroups.label:S.accounts.label,i=ye({mode:"all"}),g=i.handleSubmit(()=>{B(!1),m==="classes"?O?.("classes",I):O?.("account_group")}),b=s=>{if(M(s),s==="classes")k({}),$([]);else{$(A);let p={};a.forEach(x=>{const N=P("checkbox_and_name_only",[],x.classId[0]);p=Object.assign({},p,{[N]:!1})}),k(p)}},q=()=>{L===!0&&Q(),B(!L);let s={};a.forEach(p=>{const x=P("checkbox_and_name_only",[],p.classId[0]);l==="account_group"||I.find(N=>N[0]===p.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),k(s)},me=(s,p,x)=>{if(x===!0&&(M("classes"),$(A)),p===!0){const N=P("checkbox_and_name_only",[],s[0]);T[N]=!0,k(T),$(R=>R.filter(be=>be[0]!==s[0]))}else{const N=P("checkbox_and_name_only",[],s[0]);T[N]=!1,I.find(R=>R[0]===s[0])===void 0&&$(R=>[...R,s])}},Q=()=>{B(!1),M(l),$(h)},ge=()=>{v===!1&&Y?.()};return u.useEffect(()=>{if(t==="Completed"&&m==="account_group"){let s={};a.forEach(p=>{const x=P("checkbox_and_name_only",[],p.classId[0]);s=Object.assign({},s,{[x]:!1})}),k(s)}},[t]),o.jsx(_e,{onClickAway:Q,children:o.jsxs(Ue,{ref:K.current,isDisabled:U??!1,children:[F===!0?o.jsx(ze,{value:c(l),onClick:()=>{_?.(),q()}}):o.jsxs(Je,{windowSize:w,children:[o.jsxs(Ze,{onClick:s=>{s.preventDefault(),_?.(),q()},children:[o.jsx(Ke,{className:"dropdownIcon"}),c(l)]}),l==="classes"?o.jsx(oo,{onClick:ge,children:v?S.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${te(j)}`,o.jsx(so,{})]})}):null]}),L?o.jsx(we,{...i,children:o.jsx("form",{id:ce(ie),onSubmit:g,children:o.jsxs(Qe,{width:C.width.value(w),children:[o.jsx(ae,{checked:m==="account_group",children:o.jsxs(ne,{onClick:()=>m!=="account_group"?b("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>b(s.currentTarget.value),checked:m==="account_group",disabled:t!=="Completed"}),o.jsx(re,{disabled:t!=="Completed",children:z===!0?S.accountGroups.dropdownLabel:S.accounts.dropdownLabel})]})}),o.jsx(to,{}),o.jsxs(ae,{checked:m==="classes",children:[o.jsxs(ne,{onClick:()=>t==="Completed"?b("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?b(s.currentTarget.value):null,checked:m==="classes",disabled:t!=="Completed"}),o.jsx(re,{disabled:t!=="Completed",children:S.classes.dropdownLabel})]}),v||t!=="Completed"?null:o.jsx(ao,{children:j&&`${te(j)}`}),t==="Completed"?o.jsx(Xe,{id:"sectionformcontainer",children:o.jsx(no,{reportId:e,firstMonthOfFY:r,nestedClassHierarchy:a,classesToBeFilteredOut:I,selectedView:m,nodeOpenStatus:T,showClassAccountNumber:y,onToggleCheck:me})}):o.jsx(Ye,{backgroundColor:E.colors.grey3,foregroundColor:E.colors.grey4,width:C.width.value(w),height:C.height.value(w),animated:!0})]}),o.jsx(eo,{children:o.jsx($e,{formId:ce(ie),primaryBtn:{label:le.save,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},isLoading:!1,isDisabled:W,size:"small"},showCancel:!0,cancelBtn:{label:le.cancel,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},onClick:Q,size:"small",shouldResetOnCancel:!0},style:{padding:n.sp3}})})]})})}):null]})})}const no=ue.memo(qe,X);export{ho as g,uo as x};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as W,g as G,F as y,aw as ge,V as r,bN as _e,aP as P,bC as be,bB as Se,o as w,aT as we,T as ye,y as B,bO as Ce,u as S,G as A,aD as K,A as xe,aV as Oe,as as Re,bK as Ae}from"./index-WEj6FS32.js";import{a as L,P as X}from"./sentry-B0WgNUxa.js";import{n as _}from"./mui-BTtN6lbG.js";import{bg as H,EN as Be,EW as ve,EX as E,EY as Te,EZ as Le,E_ as Pe,E$ as Ne,F0 as Ie,F1 as ee,F2 as te}from"./zeni-epic-state-DnAAAEmj.js";import{m as z,l as q}from"./analyticsHelper-CzevEN9D-BUYGstD0.js";import{x as ke}from"./ReportTableViewSelector-DSDclygb-CPmwPKtZ.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-fD5vvYGO-Cg6AHBEd.js";import{M as Me}from"./TimeframeSwitcherWithToggle-f92qNjEk-CshyNxhp.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-B2bK30rG-B-m5Mv2I.js";import{I as $e,R as F,x as ne}from"./CollapsableReportTable-DUo-9gOh-B_gwOhYJ.js";import{D as oe,T as ae,C as $,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BCmFQbuz-BJl1ilV_.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-CR-gDA51-Dr9tcN9g.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-DT4LUXl9-COTrRRrU.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-BArKDqgr-Ce9uxfyP.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";import"./TimeframeSwitcher-BYXKRKtc-BTNUudrw.js";import"./page-detail-CWX5S47F-vL4oE1Hd.js";import"./AccountRow-B9ZIzZy7-C9nPv4rY.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]="f8925e59-f094-4c69-8632-73ea914ac31c",e._sentryDebugIdIdentifier="sentry-dbid-f8925e59-f094-4c69-8632-73ea914ac31c")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("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 We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=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;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Te(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Le(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function Ze(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ne(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ie(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function He(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push($({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push($({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
|
|
1
|
+
import{J as W,g as G,F as y,aw as ge,V as r,bN as _e,aP as P,bC as be,bB as Se,o as w,aT as we,T as ye,y as B,bO as Ce,u as S,G as A,aD as K,A as xe,aV as Oe,as as Re,bK as Ae}from"./index-D4DdpT1f.js";import{a as L,P as X}from"./sentry-Dlcq8VjX.js";import{n as _}from"./mui-CooLgaJO.js";import{bg as H,EN as Be,EW as ve,EX as E,EY as Te,EZ as Le,E_ as Pe,E$ as Ne,F0 as Ie,F1 as ee,F2 as te}from"./zeni-epic-state-pmiItBju.js";import{m as z,l as q}from"./analyticsHelper-C35dM-yG-D6b8wU4U.js";import{x as ke}from"./ReportTableViewSelector-wrUJSIfk-Dns-QQbX.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-C9jo91ZR-BexBx71o.js";import{M as Me}from"./TimeframeSwitcherWithToggle-CkiICrjF-BzFnMJO-.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-C6GFjg2N-DrkN4pip.js";import{I as $e,R as F,x as ne}from"./CollapsableReportTable-DgteU0nB-DwU6xqcB.js";import{D as oe,T as ae,C as $,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-B77EOrVX-heqCPLrc.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-IkKV62Jb-JqYi47LI.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BPtN2Cj0-BxEY8256.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-4ruPPd2Y-CXJTu75z.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./TimeframeSwitcher-453JT8qD-dl4gBr1v.js";import"./page-detail-CWX5S47F-D0SYshoo.js";import"./AccountRow-FmhkZVL4-BiCaU5gp.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]="6be4c6d5-db68-4378-9814-8da43ea2954b",e._sentryDebugIdIdentifier="sentry-dbid-6be4c6d5-db68-4378-9814-8da43ea2954b")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("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 We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=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;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Te(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Le(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function Ze(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ne(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ie(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function He(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push($({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push($({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${w.sp2};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as A,V as a,F as D,J as de,b3 as Q,u as I,b as M,aY as J,o as m,aP as Ae,p as g,aD as Ve,y as xe,bL as ge,al as R,bM as V,ba as F}from"./index-
|
|
1
|
+
import{g as A,V as a,F as D,J as de,b3 as Q,u as I,b as M,aY as J,o as m,aP as Ae,p as g,aD as Ve,y as xe,bL as ge,al as R,bM as V,ba as F}from"./index-D4DdpT1f.js";import{a as P,P as ee}from"./sentry-Dlcq8VjX.js";import{n as x}from"./mui-CooLgaJO.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-BDwrrz9S-CO6_cPbC.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-C8uaUoxX-n7EZ1iwJ.js";import{V as Z}from"./toChartData-CTG-a8va-B2RC0Eyi.js";import{H as Te,I as te,X as le,Y as ne,J as ce,L as pe,K as se,M as me,N as fe}from"./recharts-DHPcYqKb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="933c9cf0-debb-402c-8dc8-3b55571906b4",e._sentryDebugIdIdentifier="sentry-dbid-933c9cf0-debb-402c-8dc8-3b55571906b4")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -29,7 +29,7 @@ import{g as A,V as a,F as D,J as de,b3 as Q,u as I,b as M,aY as J,o as m,aP as A
|
|
|
29
29
|
text-align: left;
|
|
30
30
|
`,Ze=x(R)`
|
|
31
31
|
text-align: right;
|
|
32
|
-
`,Qe=({active:e,payload:r})=>{const t=[];return r?.forEach(n=>{const o=n.name;if(e===!0){const l=n.payload,i=n.color,h=o!=null&&l.record[o]!=null?l.record[o].amount:void 0;t.push({barName:D.getLocalizedStrings().chartCard.cashInCashOut[N(o)],value:h,color:i})}}),t},be=e=>e.map((r,t)=>a.jsxs(Xe,{color:r.color,children:[a.jsxs(Ue,{children:[a.jsx(qe,{color:r.color}),`${r.barName}:`]}),a.jsx(Ze,{children:`${T(r.value)}`})]},r.barName+t)),Je=e=>{const r=Qe({...e});return r.length===0?null:a.jsx(Fe,{children:a.jsxs(Ye,{children:[be(r.slice(0,r.length-1)),r.length?a.jsx(He,{}):null,be(r.slice(-1))]})})},ea=ee.memo(Je),aa=(e,r,t,n,o)=>{let l=[],i=[],h=[];t!=null&&t.balances.length>0&&(l=K("cash_in","actual",t)),n!=null&&n.balances.length>0&&(i=K("cash_out","actual",n)),o!=null&&o.balances.length>0&&(h=oe("net_cash_flow","actual",o));const
|
|
32
|
+
`,Qe=({active:e,payload:r})=>{const t=[];return r?.forEach(n=>{const o=n.name;if(e===!0){const l=n.payload,i=n.color,h=o!=null&&l.record[o]!=null?l.record[o].amount:void 0;t.push({barName:D.getLocalizedStrings().chartCard.cashInCashOut[N(o)],value:h,color:i})}}),t},be=e=>e.map((r,t)=>a.jsxs(Xe,{color:r.color,children:[a.jsxs(Ue,{children:[a.jsx(qe,{color:r.color}),`${r.barName}:`]}),a.jsx(Ze,{children:`${T(r.value)}`})]},r.barName+t)),Je=e=>{const r=Qe({...e});return r.length===0?null:a.jsx(Fe,{children:a.jsxs(Ye,{children:[be(r.slice(0,r.length-1)),r.length?a.jsx(He,{}):null,be(r.slice(-1))]})})},ea=ee.memo(Je),aa=(e,r,t,n,o)=>{let l=[],i=[],h=[];t!=null&&t.balances.length>0&&(l=K("cash_in","actual",t)),n!=null&&n.balances.length>0&&(i=K("cash_out","actual",n)),o!=null&&o.balances.length>0&&(h=oe("net_cash_flow","actual",o));const s=b("cash_in","actual"),c=b("cash_out","actual"),f=b("net_cash_flow","actual"),p=l.length>0?s:i.length>0?c:void 0,d={};return d[s]=l,d[c]=i,d[f]=h,p!=null?Z(e,r,p,d):void 0},ye=[b("cash_in","actual"),b("cash_out","actual"),b("net_cash_flow","actual")],ra=x.div`
|
|
33
33
|
width: ${e=>e.width}px;
|
|
34
34
|
height: ${e=>e.height}px;
|
|
35
35
|
|
|
@@ -42,7 +42,7 @@ import{g as A,V as a,F as D,J as de,b3 as Q,u as I,b as M,aY as J,o as m,aP as A
|
|
|
42
42
|
`,oa=x(ge)`
|
|
43
43
|
margin-left: ${e=>X.legendLabelMarginLeft.valuePx(e.windowSize)};
|
|
44
44
|
color: ${e=>e.theme.colors.primary};
|
|
45
|
-
`;function Tr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const
|
|
45
|
+
`;function Tr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const s=A(),c=P.useRef(!1);P.useEffect(()=>{c.current=!0},[]);const f=[s.colors.graphColor33,s.colors.graphColor36,s.colors.graphColor35],p=(_,w=s.colors.graphColor08)=>_<f.length?f[_]:w,d=aa(e.firstMonthOfFY,ye,e.cashIn,e.cashOut,e.netCashFlow),y=()=>{const _=[];return ye.forEach((w,C)=>{const L=i===!0&&!c.current;_.push(a.jsx(se,{name:w,animationDuration:L?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:$=>{const k=$.record;return(k[w]!=null&&k[w].amount!=null?k[w].amount:void 0)?.amount??0},fill:p(C)},w))}),_};return d==null?null:a.jsx(ta,{chartData:d,timeframe:r,showBarHoverBackground:l,barElements:y(),customToolTipContent:({active:_,payload:w})=>a.jsx(ea,{active:_,payload:w}),width:n,height:o,onCOABalancesRangeChanged:h,highlightedRange:t,isDetailPage:i===!0})}const ta=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const f=de(),p=A(),d=e.timeseries,y=ae(e),_=d.map($=>$.label),w=h!==!1,C=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:d[j].startDate,endDate:d[j].endDate}};c?.(d[v],r,S)},L=s?(l-60)/W.cash_in_cash_out*(W.cash_in_cash_out-e.recordByTimeseries.length):20;return a.jsx(ra,{"data-testid":Ae("dashboard-cash-in-cash-out-timeframe",r),width:l,height:i,windowSize:f,children:a.jsx(Q,{children:({height:$,width:k})=>a.jsxs(Te,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?I[10]:22,barGap:s?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,y)}),a.jsx(ce,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,s?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},formatter:v=>a.jsx(oa,{windowSize:f,children:D.getLocalizedStrings().chartCard.cashInCashOut[N(v)]})}):null]})})})},la=x.div`
|
|
46
46
|
display: flex;
|
|
47
47
|
`,na=x.div`
|
|
48
48
|
flex: display;
|
|
@@ -51,16 +51,16 @@ import{g as A,V as a,F as D,J as de,b3 as Q,u as I,b as M,aY as J,o as m,aP as A
|
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
padding: ${m.sp3};
|
|
53
53
|
background-color: ${e=>e.theme.colors.black};
|
|
54
|
-
`,
|
|
54
|
+
`,ca=x(R)`
|
|
55
55
|
color: ${e=>e.color??g.neutralGrey2Light};
|
|
56
56
|
text-align: left;
|
|
57
57
|
display: flex;
|
|
58
58
|
align-items: center;
|
|
59
59
|
justify-content: space-between;
|
|
60
|
-
`,
|
|
60
|
+
`,sa=({active:e,payload:r})=>{const t=[];return r?.forEach(n=>{const o=n.name;if(e===!0){const l=n.payload,i=n.color,h=o!=null&&l.record[o]!=null?l.record[o].amount:void 0;t.push({barName:D.getLocalizedStrings().reportTitleById.cash_position,value:h,color:i})}}),t},ia=e=>{const r=sa(e);return r.length===0?null:a.jsx(la,{children:a.jsx(na,{children:r.map((t,n)=>a.jsx(ca,{color:t.color,children:`${t.barName}: ${T(t.value)}`},t.barName+n))})})},ua=ee.memo(ia),ha=(e,r,t)=>{let n=[];t!=null&&t.balances.length>0&&(n=G("cash_position","actual",t));const o=b("cash_position","actual"),l={};return l[o]=n,n.length>0?Z(e,r,o,l):void 0},da=x.div`
|
|
61
61
|
width: ${e=>e.width}px;
|
|
62
62
|
height: ${e=>e.height}px;
|
|
63
|
-
`,Ce=[b("cash_position","actual")];function Wr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const
|
|
63
|
+
`,Ce=[b("cash_position","actual")];function Wr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const s=A(),c=P.useRef(!1);P.useEffect(()=>{c.current=!0},[]);const f=ha(e.firstMonthOfFY,Ce,e.cashPosition),p=()=>{const d=[];return Ce.forEach(y=>{const _=i===!0&&!c.current;d.push(a.jsx(se,{name:y,animationDuration:_?500:void 0,style:{cursor:"pointer"},dataKey:w=>{const C=w.record;return(C[y]!=null&&C[y].amount!=null?C[y].amount:void 0)?.amount??0},fill:s.colors.graphColor17},y))}),d};return f==null?null:a.jsx(ga,{chartData:f,timeframe:r,showBarHoverBackground:l,barElements:p(),customToolTipContent:({active:d,payload:y})=>a.jsx(ua,{active:d,payload:y}),width:n,height:o,onCOABalancesRangeChanged:h,highlightedRange:t,isDetailPage:i===!0})}const ga=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const f=A(),p=e.timeseries,d=ae(e),y=p.map(L=>L.label),_=h!==!1,w=L=>{if(!s||L?.activePayload==null||L?.activePayload.length===0)return;const $=L.activePayload[0];if($?.payload?.timeLabel?.label==null)return;const k=L.activeTooltipIndex,v=$.payload.timeLabel.label;if(o==null)return;const O=re(v,y,o.numberOfPeriods),u=O[1]===void 0?y.length-1:y.indexOf(O[1]),j={...o,thisPeriod:{startDate:p[u].startDate,endDate:p[u].endDate}};c?.(p[k],r,j)},C=s?(l-60)/W.cash_position*(W.cash_position-e.recordByTimeseries.length):20;return a.jsx(da,{width:l,height:i,children:a.jsx(Q,{children:({height:L,width:$})=>a.jsxs(Te,{width:$,height:L,data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:s?I[10]:30,margin:{top:5,right:C,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:f.colors.grey3}),a.jsx(le,{dataKey:k=>k.timeLabel.label,type:"category",axisLine:{stroke:f.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:k=>J("0,0.[00]a",k,d)}),a.jsx(ce,{wrapperStyle:{zIndex:2},cursor:_?{stroke:f.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:f.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t]})})})},pa=x.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
`,ma=x.div`
|
|
66
66
|
display: flex;
|
|
@@ -128,7 +128,7 @@ import{g as A,V as a,F as D,J as de,b3 as Q,u as I,b as M,aY as J,o as m,aP as A
|
|
|
128
128
|
`,ve=x(F)`
|
|
129
129
|
display: flex;
|
|
130
130
|
flex-direction: column;
|
|
131
|
-
`,ke=x(H)``,ka=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l=Math.floor((n.amount-o.amount)*100/100),i={...n,amount:l},h=o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:i,percent:h,forecastPercent:r.record[t].percentValue}},$a=({active:e,payload:r,mode:t})=>{const n=[],o={barName:D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn,actual:void 0,color:g.neutralGrey2Dark,forecast:void 0};let l={amount:0,currencyCode:"",currencySymbol:""},i={amount:0,currencyCode:"",currencySymbol:""};const h=b("income","actual"),
|
|
131
|
+
`,ke=x(H)``,ka=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l=Math.floor((n.amount-o.amount)*100/100),i={...n,amount:l},h=o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:i,percent:h,forecastPercent:r.record[t].percentValue}},$a=({active:e,payload:r,mode:t})=>{const n=[],o={barName:D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn,actual:void 0,color:g.neutralGrey2Dark,forecast:void 0};let l={amount:0,currencyCode:"",currencySymbol:""},i={amount:0,currencyCode:"",currencySymbol:""};const h=b("income","actual"),s=b("cogs","actual"),c=b("expenses","actual"),f=b("net_burn_or_income","actual");return r?.forEach(p=>{const d=p.name;if(e===!0){const y=p.payload,_=p.color,w=d!=null&&y.record[d]!=null?y.record[d].amount:void 0;let C;if(d.includes("forecast")!==!0)switch(t==="forecast_mode"&&(C=y.record[d]!=null?ka(d,y):void 0),d){case s:case c:w!=null&&(l.currencyCode===""?l={...w}:l.amount=l.amount+w.amount),C!=null&&(i.currencyCode===""?i={...C.value}:i.amount=i.amount+C.value.amount),n.push({barName:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(d)],actual:w,forecast:C,color:_});break;case f:{const L=w!=null&&w.amount>=0?D.getLocalizedStrings().chartCard.netBurnOrIncome.net_income:D.getLocalizedStrings().chartCard.netBurnOrIncome.net_burn;n.push({barName:L,actual:w,color:_,percent:y.record[d]?.percentValue,forecast:C});break}case h:default:n.push({barName:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(d)],actual:w,color:_,forecast:C})}}}),o.actual=l,o.forecast=i!=null&&l!=null?{value:i,change:{...l,amount:Math.floor((l.amount-i.amount)*100/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,o),n},$e=e=>e.map((r,t)=>a.jsxs(Ne,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(Ca,{children:[a.jsx(Ie,{color:r.barName===D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":r.color}),`${r.barName}:`]}),a.jsxs(va,{children:[a.jsx(je,{children:`${T(r.actual)}`}),r.percent!=null?a.jsx(je,{children:V("0,0.0%",r.percent)}):null]})]},r.barName+t)),we=e=>e.map((r,t)=>a.jsxs(Ne,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(ja,{children:[a.jsx(Ie,{color:r.barName===D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":r.color}),`${r.barName}:`]}),a.jsx(H,{children:a.jsxs(ve,{children:[r.actual!=null?`${T(r.actual)}`:"-",a.jsx(ke,{children:r.percent!=null?V("0,0.0%",r.percent):null})]})}),a.jsx(H,{children:a.jsxs(ve,{children:[r.forecast!=null?`${T(r.forecast.value)}`:"-",a.jsx(ke,{children:r.forecast!=null&&r.forecast.forecastPercent!=null?V("0,0.0%",r.forecast.forecastPercent):null})]})}),r.forecast!=null?a.jsx(H,{isChange:!0,children:`${T(r.forecast.change)}`}):a.jsx(H,{children:"-"}),r.forecast!=null?a.jsx(H,{isChange:!0,children:V("0,0.0%",r.forecast.percent)}):a.jsx(H,{children:"-"})]},r.barName+t)),wa=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},_a=({barLabelsWithValues:e})=>a.jsxs(ma,{children:[a.jsxs(fa,{children:[a.jsx(xa,{}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(ie,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",wa(e)]}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(ya,{children:[we(e.slice(0,e.length-2)),e.length?a.jsx(We,{}):null,we(e.slice(-2))]})]}),La=({barLabelsWithValues:e})=>a.jsx(pa,{children:a.jsxs(ba,{children:[$e(e.slice(0,e.length-2)),e.length?a.jsx(We,{}):null,$e(e.slice(-2))]})}),Da=e=>{const r=$a({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(_a,{barLabelsWithValues:r}):a.jsx(La,{barLabelsWithValues:r})})},Sa=ee.memo(Da),Ba=(e,r,t,n,o,l,i)=>{let h=[],s=[],c=[],f=[];n!=null&&n.balances.length>0&&(h=K("income","actual",n)),o!=null&&o.balances.length>0&&(s=K("cogs","actual",o)),l!=null&&l.balances.length>0&&(c=G("expenses","actual",l)),i!=null&&i.balances.length>0&&(f=oe("net_burn_or_income","actual",i));const p=b("income","actual"),d=b("cogs","actual"),y=b("expenses","actual"),_=b("net_burn_or_income","actual"),w=h.length>0?p:s.length>0?d:c.length>0?y:void 0,C={};return C[p]=h,C[d]=s,C[y]=c,C[_]=f,t==="forecast_mode"&&Object.assign(C,Oa(n,o,l,i)),w!=null?Z(e,r,w,C):void 0},Oa=(e,r,t,n)=>{let o=[],l=[],i=[],h=[];e!=null&&e.balances.length>0&&(o=K("income","forecast",e)),r!=null&&r.balances.length>0&&(l=K("cogs","forecast",r)),t!=null&&t.balances.length>0&&(i=G("expenses","forecast",t)),n!=null&&n.balances.length>0&&(h=oe("net_burn_or_income","forecast",n));const s=b("income","forecast"),c=b("cogs","forecast"),f=b("expenses","forecast"),p=b("net_burn_or_income","forecast"),d={};return d[s]=o,d[c]=l,d[f]=i,d[p]=h,d},za=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual")],Pa=[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")],Ra=x.div`
|
|
132
132
|
width: ${e=>e.width}px;
|
|
133
133
|
height: ${e=>e.height}px;
|
|
134
134
|
|
|
@@ -141,7 +141,7 @@ import{g as A,V as a,F as D,J as de,b3 as Q,u as I,b as M,aY as J,o as m,aP as A
|
|
|
141
141
|
`,Ta=x(ge)`
|
|
142
142
|
margin-left: ${e=>X.legendLabelMarginLeft.valuePx(e.windowSize)};
|
|
143
143
|
color: ${e=>e.theme.colors.primary};
|
|
144
|
-
`;function Nr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:
|
|
144
|
+
`;function Nr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:s}){const c=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[c.colors.graphColor36,c.colors.graphColor06,c.colors.graphColor31,c.colors.graphColor12],d=[c.colors.graphColor04,c.colors.graphColor10,c.colors.graphColor32,c.colors.graphColor13,c.colors.graphColor04Dark,c.colors.graphColor10Dark,c.colors.graphColor32Dark,c.colors.graphColor13Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?Pa:za,w=(u,j=c.colors.graphColor04)=>u<y.length?y[u]:j,C=(e.reportId,Ba(e.firstMonthOfFY,_,h,e.sections.income,e.sections.cogs,e.sections.expenses,e.calculatedSections.netBurnOrIncome)),L=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:4,stroke:B,strokeWidth:2,fill:z})},$=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:5,stroke:z,strokeWidth:2,fill:B})},k=(u,j)=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount},dot:a.jsx(L,{}),strokeWidth:1.5,stroke:w(j),strokeDasharray:"3 3",activeDot:a.jsx($,{})},u),v=(u,j,S)=>a.jsx(se,{name:u,animationDuration:S?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:B=>{const z=B.record;return(z[u]!=null&&z[u].amount!=null?z[u].amount:void 0)?.amount??0},fill:w(j)},u),O=()=>{const u=[];return _.forEach((j,S)=>{const B=i===!0&&!f.current;j.endsWith("_forecast")?u.push(k(j,S)):u.push(v(j,S,B))}),u};return C==null?null:a.jsx(Wa,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:O(),customToolTipContent:({active:u,payload:j})=>a.jsx(Sa,{active:u,payload:j,mode:h}),width:n,height:o,onCOABalancesRangeChanged:s,highlightedRange:t,isDetailPage:i===!0})}const Wa=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:y[j].startDate,endDate:y[j].endDate}};c?.(y[v],r,S)},L=s?(l-60)/W.net_burn_or_income*(W.net_burn_or_income-e.recordByTimeseries.length):20;return a.jsx(Ra,{width:l,height:i,windowSize:f,children:a.jsx(Q,{children:({height:$,width:k})=>a.jsxs(fe,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?I[10]:22,barGap:s?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,d)}),a.jsx(ce,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeWidth:(k-60)/W.net_burn_or_income,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,s?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},iconSize:I[3],formatter:v=>a.jsx(Ta,{windowSize:f,children:v.endsWith("_forecast")===!0?D.getLocalizedStrings().chartCard.netBurnOrIncome[v]:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(v)]})}):null]})})})},Na=x.div`
|
|
145
145
|
display: flex;
|
|
146
146
|
`,Ia=x.div`
|
|
147
147
|
flex: display;
|
|
@@ -192,15 +192,15 @@ import{g as A,V as a,F as D,J as de,b3 as Q,u as I,b as M,aY as J,o as m,aP as A
|
|
|
192
192
|
`,q=x(F)`
|
|
193
193
|
text-align: right;
|
|
194
194
|
flex: 1;
|
|
195
|
-
`,Fa=({active:e,payload:r,barName:t})=>{const n=[];if(r!=null&&e===!0){const o=r.filter(
|
|
195
|
+
`,Fa=({active:e,payload:r,barName:t})=>{const n=[];if(r!=null&&e===!0){const o=r.filter(s=>s.name==t)[0],l=o.payload,i=o.color,h=t!=null&&l.record[t]!=null?l.record[t].amount:void 0;if(!t?.endsWith("_forecast")){let s;if(t.includes("forecast")!==!0){s=l.record[t]!=null?Ha(t,l):void 0;const c={amount:0,currencyCode:"",currencySymbol:""},f={amount:0,currencyCode:"",currencySymbol:""};let p;for(p in l.record){const C=l.record[p].amount;p.endsWith("_actual")?(c.amount+=l.record[p].amount?.amount??0,c.currencyCode=C!=null?C.currencyCode:c.currencyCode,c.currencySymbol=C!=null?C.currencySymbol:c.currencySymbol):p.endsWith("_forecast")&&(f.amount+=l.record[p].amount?.amount??0,f.currencyCode=C!=null?C.currencyCode:f.currencyCode,f.currencySymbol=C!=null?C.currencySymbol:f.currencySymbol)}const d=Math.floor((c?.amount-f?.amount)*100/100),y={...c,amount:d},_=f.amount!==0?Math.floor((c.amount-f.amount)/f.amount*100)/100:0,w={value:f,change:y,percent:_};n.push({barName:N(t),actual:h,forecast:s,color:i}),n.push({barName:D.getLocalizedStrings().chartCard.total,actual:c,forecast:w,color:g.neutralGrey1Light})}}}return n},Ha=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l={...n,amount:o!=null?Math.floor((n.amount-o.amount)*100/100):n.amount},i=o!=null&&o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:l,percent:i}},Le=e=>a.jsxs(Ga,{color:e.color,children:[a.jsx(Va,{children:`${e.barName}:`}),a.jsx(q,{children:e.actual!=null?`${T(e.actual)}`:"-"}),a.jsx(q,{children:e.forecast!=null?`${T(e.forecast.value)}`:"-"}),e.forecast!=null?a.jsx(q,{isChange:!0,children:`${T(e.forecast.change)}`}):a.jsx(q,{children:"-"}),e.forecast!=null?a.jsx(q,{isChange:!0,children:V("0,0.0%",e.forecast.percent)}):a.jsx(q,{children:"-"})]}),Ya=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},Xa=({barLabelsWithValues:e})=>a.jsx(Na,{children:a.jsxs(Ia,{children:[a.jsx(_e,{color:e[0].color,children:`${e[0].barName}: ${T(e[0].actual)}`}),a.jsx(Ee,{}),a.jsx(_e,{children:`${D.getLocalizedStrings().chartCard.total}: ${T(e[1].actual)}`})]})}),qa=({barLabelsWithValues:e})=>a.jsxs(Ma,{children:[a.jsxs(Ka,{children:[a.jsx(Ea,{}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(ue,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",Ya(e)]}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(Aa,{children:[Le(e[0]),a.jsx(Ee,{}),Le(e[1])]})]}),Ua=e=>{const r=Fa({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(qa,{barLabelsWithValues:r}):a.jsx(Xa,{barLabelsWithValues:r})})},Za=ee.memo(Ua),Qa=(e,r)=>{const t=[],n={};let o;return r!=null&&r.classes.length!=0&&r.classes.forEach(l=>{const i=G(l.class.className,"actual",l.childrenBalancesTotal),h=b(l.class.className,"actual");n[h]=i,t.push(h),o==null&&i.length>0&&(o=b(l.class.className,"actual"))}),o!=null?Z(e,t,o,n):void 0},De=[g.graphColor34,g.graphColor05,g.graphColor08,g.graphColor11,g.graphColor13,g.graphColor19,g.graphColor29,g.graphColor28,g.graphColor20,g.graphColor21,g.graphColor22,g.graphColor14,g.graphColor35,g.graphColor31,g.graphColor33,g.graphColor32,g.graphColor36,g.graphColor02,g.graphColor06,g.graphColor04,g.graphColor10,g.graphColor12,g.graphColor15,g.graphColor18,g.graphColor17,g.graphColor07,g.graphColor34Dark,g.graphColor05Dark,g.graphColor08Dark,g.graphColor11Dark,g.graphColor13Dark,g.graphColor19Dark,g.graphColor29Dark,g.graphColor28Dark,g.graphColor20Dark,g.graphColor21Dark,g.graphColor22Dark,g.graphColor14Dark,g.graphColor35Dark,g.graphColor31Dark,g.graphColor33Dark,g.graphColor32Dark,g.graphColor36Dark,g.graphColor02Dark,g.graphColor06Dark,g.graphColor04Dark,g.graphColor10Dark,g.graphColor12Dark,g.graphColor15Dark,g.graphColor18Dark,g.graphColor17Dark,g.graphColor07Dark];class Y{_barColors;_barColorsKeyWise;_defaultColor;constructor(){this._defaultColor=g.graphColor34,this._barColors=De.slice(),this._barColorsKeyWise=new Map}static#e=new Y;getBarColor(r){const t=Y.instance();return t._barColorsKeyWise.has(r)||(t._barColors.length===0&&(t._barColors=De.slice()),t._barColorsKeyWise.set(r,t._barColors.shift()??t._defaultColor)),t._barColorsKeyWise.get(r)}shouldUpdate(r){const t=Y.instance(),n=Array.from(t._barColorsKeyWise.keys()).sort();return!Ve(n,r)}static init(){return this.#e=new Y,this.#e}static instance(){return this.#e}}const Ja=Y.instance(),er=(e,r,t)=>{const n=[],o={};let l,i=!1;if(t!=null&&t.accountGroups.length!=0?t.accountGroups.forEach(h=>{const s=G(h.accountGroupName,"actual",h),c=b(h.accountGroupName,"actual");o[c]=s,n.push(c),l==null&&s.length>0&&(l=b(h.accountGroupName,"actual"))}):t!=null&&t.accounts.length!=0&&(i=!0,t.accounts.forEach(h=>{const s=G(h.account.accountName,"actual",h.account.balancesInTimeframe),c=b(h.account.accountName,"actual");o[c]=s,n.push(c),l==null&&s.length>0&&(l=b(h.account.accountName,"actual"))})),t!=null&&t.accountGroups.length===0&&t.accounts.length===0){const h=D.getLocalizedStrings().chartCard.total,s=G(h,"actual",t);if(s.length!==0){const c=b(h,"actual");o[c]=s,l=c,n.push(c)}}return r==="forecast_mode"&&Object.assign(o,ar(n,t)),l!=null?Z(e,n,l,o,i):void 0},ar=(e,r)=>{const t={};let n;if(r!=null&&r.accountGroups.length!=0?r.accountGroups.forEach(o=>{const l=G(o.accountGroupName,"forecast",o),i=b(o.accountGroupName,"forecast");t[i]=l,e.push(i),n==null&&l.length>0&&(n=b(o.accountGroupName,"forecast"))}):r!=null&&r.accounts.length!=0&&r.accounts.forEach(o=>{const l=G(o.account.accountName,"forecast",o.account.balancesInTimeframe),i=b(o.account.accountName,"forecast");t[i]=l,e.push(i),n==null&&l.length>0&&(n=b(o.account.accountName,"forecast"))}),r!=null&&r.accountGroups.length===0&&r.accounts.length===0){const o=D.getLocalizedStrings().chartCard.total,l=G(o,"forecast",r);if(l.length!==0){const i=b(o,"forecast");t[i]=l,n=i,e.push(i)}}return t},rr=x.div`
|
|
196
196
|
width: ${e=>e.width}px;
|
|
197
197
|
height: ${e=>e.height}px;
|
|
198
|
-
`,or=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:4,stroke:n,strokeWidth:2,fill:o})},tr=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:5,stroke:o,strokeWidth:2,fill:n})};function Ir({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:
|
|
198
|
+
`,or=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:4,stroke:n,strokeWidth:2,fill:o})},tr=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:5,stroke:o,strokeWidth:2,fill:n})};function Ir({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:s}){const c=P.useRef(!1),[f,p]=P.useState(Ja),[d,y]=P.useState(void 0),_=A(),w=P.useRef([]);P.useEffect(()=>{c.current=!0},[]),P.useEffect(()=>{f.shouldUpdate(w.current)===!0&&p(Y.init())},[]),P.useEffect(()=>{let k=[];if(e.reportId==="operating_expenses"){const v=e.sections.expenses;v.accountGroups.length===0&&v.accounts.length===0?k.push(D.getLocalizedStrings().chartCard.total):v.accountGroups.length!=0?k=v.accountGroups.map(O=>O.accountGroupName).sort():k=v.accounts.map(O=>O.account).map(O=>O.accountName).sort()}else k=e.sections.expenses.classes.map(v=>v.class.className).sort();w.current=k},[e,f]);const C=P.useMemo(()=>e.reportId==="operating_expenses"?er(e.firstMonthOfFY,h,e.sections.expenses):Qa(e.firstMonthOfFY,e.sections.expenses),[e,h]),L=P.useCallback(()=>{const k=u=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:a.jsx(or,{}),activeDot:a.jsx(tr,{}),dataKey:j=>{const S=j.record;let B,z;for(z in S)if(z.endsWith("_forecast")){const E=S[z].amount;E!=null&&(B==null?B={...E}:B.amount+=E.amount)}return B?.amount},stroke:_.colors.grey1,strokeDasharray:"3 3",strokeWidth:1.5},u),v=(u,j)=>a.jsx(se,{name:u,animationDuration:j?500:void 0,style:{cursor:"pointer"},dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount??0},stackId:"a",fill:f.getBarColor(N(u)),onMouseEnter:()=>{d!==u&&y(u)},onMouseLeave:()=>{d!=null&&y(void 0)}},u),O=[];return C?.orderedKeys.forEach(u=>{const j=!c.current;u.endsWith("_forecast")?O.push(k(u)):O.push(v(u,j))}),O},[C]),$=({active:k,payload:v})=>v?.find(O=>O.name===d)!=null&&d!=null&&k===!0?a.jsx(Za,{active:k,payload:v,mode:h,barName:d}):null;return C==null?null:a.jsx(lr,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:L(),customToolTipContent:a.jsx($,{}),width:n,height:o,onCOABalancesRangeChanged:s,highlightedRange:t,isDetailPage:i===!0})}const lr=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const f=A(),p=ae(e),d=e.timeseries,y=d.map(L=>L.label),_=h!==!1,w=L=>{if(!s||L?.activePayload==null||L?.activePayload.length===0)return;const $=L.activePayload[0];if($?.payload?.timeLabel?.label==null)return;const k=L.activeTooltipIndex,v=$.payload.timeLabel.label;if(o==null)return;const O=re(v,y,o.numberOfPeriods),u=O[1]===void 0?y.length-1:y.indexOf(O[1]),j={...o,thisPeriod:{startDate:d[u].startDate,endDate:d[u].endDate}};c?.(d[k],r,j)},C=s?(l-60)/W.operating_expenses*(W.operating_expenses-e.recordByTimeseries.length):20;return a.jsx(rr,{width:l,height:i,children:a.jsx(Q,{children:({height:L,width:$})=>a.jsxs(fe,{width:$,height:L,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:s?I[10]:30,margin:{top:5,right:C,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:f.colors.grey3}),a.jsx(le,{dataKey:k=>k.timeLabel.label,type:"category",axisLine:{stroke:f.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:k=>J("0,0.[00]a",k,p)}),a.jsx(ce,{wrapperStyle:{zIndex:2},cursor:_?{stroke:f.colors.background,strokeWidth:($-60)/W.operating_expenses,fill:f.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t]})})})},nr=x.div`
|
|
199
199
|
display: flex;
|
|
200
|
-
`,
|
|
200
|
+
`,cr=x.div`
|
|
201
201
|
display: flex;
|
|
202
202
|
flex-direction: column;
|
|
203
|
-
`,
|
|
203
|
+
`,sr=x.div`
|
|
204
204
|
display: flex;
|
|
205
205
|
background-color: ${e=>e.theme.colors.black};
|
|
206
206
|
opacity: 0.85;
|
|
@@ -263,7 +263,7 @@ import{g as A,V as a,F as D,J as de,b3 as Q,u as I,b as M,aY as J,o as m,aP as A
|
|
|
263
263
|
`,Be=x(F)`
|
|
264
264
|
display: flex;
|
|
265
265
|
flex-direction: column;
|
|
266
|
-
`,Oe=x(F)``,mr=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l={...n,amount:Math.floor((n.amount-o.amount)*100/100)},i=o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:l,percent:i,forecastPercent:r.record[t].percentValue}},fr=({active:e,payload:r,mode:t})=>{const n=[];let o={amount:0,currencyCode:""},l={amount:0,currencyCode:""};const i=b("gross_margin","actual");return r?.forEach(h=>{const
|
|
266
|
+
`,Oe=x(F)``,mr=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l={...n,amount:Math.floor((n.amount-o.amount)*100/100)},i=o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:l,percent:i,forecastPercent:r.record[t].percentValue}},fr=({active:e,payload:r,mode:t})=>{const n=[];let o={amount:0,currencyCode:""},l={amount:0,currencyCode:""};const i=b("gross_margin","actual");return r?.forEach(h=>{const s=h.name;if(e===!0){const c=h.payload,f=h.color,p=s!=null&&c.record[s]!=null?c.record[s].amount:void 0;let d;if(s.includes("forecast")!==!0)switch(t==="forecast_mode"&&(d=c.record[s]!=null?mr(s,c):void 0),s){case i:p!=null&&(o.currencyCode===""?o={...p}:o.amount=o.amount+p.amount),d!=null&&(l.currencyCode===""?l={...d.value}:l.amount=l.amount+d.value.amount),n.push({barName:D.getLocalizedStrings().chartCard.revenue[N(s)],actual:p,forecast:d,percent:c.record[s]!=null?c.record[s].percentValue??0:0,color:f});break;default:n.push({barName:D.getLocalizedStrings().chartCard.revenue[N(s)],actual:p,color:f,forecast:d});break}}}),n},ze=e=>e.map((r,t)=>a.jsxs(Me,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(gr,{children:[a.jsx(Ke,{color:r.color}),`${r.barName}:`]}),a.jsxs(pr,{children:[a.jsx(Se,{children:`${T(r.actual)}`}),r.percent!=null?a.jsx(Se,{children:V("0,0.0%",r.percent)}):null]})]},r.barName+t)),Pe=e=>e.map((r,t)=>a.jsxs(Me,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(hr,{children:[a.jsx(Ke,{color:r.color}),`${r.barName}:`]}),a.jsx(U,{children:a.jsxs(Be,{children:[r.actual!=null?`${T(r.actual)}`:"-",a.jsx(Oe,{children:r.percent!=null?V("0,0.0%",r.percent):null})]})}),a.jsx(U,{children:a.jsxs(Be,{children:[r.forecast!=null?`${T(r.forecast.value)}`:"-",a.jsx(Oe,{children:r.forecast!=null&&r.forecast.forecastPercent!=null?V("0,0.0%",r.forecast.forecastPercent):null})]})}),r.forecast!=null?a.jsx(U,{isChange:!0,children:`${T(r.forecast.change)}`}):a.jsx(U,{children:"-"}),r.forecast!=null?a.jsx(U,{isChange:!0,children:V("0,0.0%",r.forecast.percent)}):a.jsx(U,{children:"-"})]},r.barName+t)),xr=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},br=({barLabelsWithValues:e})=>a.jsxs(cr,{children:[a.jsxs(sr,{children:[a.jsx(ir,{}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(he,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",xr(e)]}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(ur,{children:[Pe(e.slice(0,e.length-1)),e.length?a.jsx(Ge,{}):null,Pe(e.slice(-1))]})]}),yr=({barLabelsWithValues:e})=>a.jsx(nr,{children:a.jsxs(dr,{children:[ze(e.slice(0,e.length-1)),e.length?a.jsx(Ge,{}):null,ze(e.slice(-1))]})}),Cr=e=>{const r=fr({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(br,{barLabelsWithValues:r}):a.jsx(yr,{barLabelsWithValues:r})})},jr=ee.memo(Cr),Re=(e,r,t,n,o,l)=>{let i=[],h=[],s=[];n!=null&&n.balances.length>0&&(i=K("income","actual",n)),o!=null&&o.balances.length>0&&(h=K("cogs","actual",o)),l!=null&&l.balances.length>0&&(s=oe("gross_margin","actual",l));const c=b("income","actual"),f=b("cogs","actual"),p=b("gross_margin","actual"),d=i.length>0?c:h.length>0?f:p,y={};return y[c]=i,y[f]=h,y[p]=s,t==="forecast_mode"&&Object.assign(y,vr(n,o,l)),d!=null?Z(e,r,d,y):void 0},vr=(e,r,t)=>{let n=[],o=[],l=[];e!=null&&e.balances.length>0&&(n=K("income","forecast",e)),r!=null&&r.balances.length>0&&(o=K("cogs","forecast",r)),t!=null&&t.balances.length>0&&(l=oe("gross_margin","forecast",t));const i=b("income","forecast"),h=b("cogs","forecast"),s=b("gross_margin","forecast"),c={};return c[i]=n,c[h]=o,c[s]=l,c},kr=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual")],$r=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual"),b("income","forecast"),b("cogs","forecast"),b("gross_margin","forecast")],wr=x.div`
|
|
267
267
|
width: ${e=>e.width}px;
|
|
268
268
|
height: ${e=>e.height}px;
|
|
269
269
|
|
|
@@ -277,4 +277,4 @@ import{g as A,V as a,F as D,J as de,b3 as Q,u as I,b as M,aY as J,o as m,aP as A
|
|
|
277
277
|
margin-left: ${e=>X.legendLabelMarginLeft.valuePx(e.windowSize)};
|
|
278
278
|
margin-right: ${e=>X.legendLabelMarginRight.valuePx(e.windowSize)};
|
|
279
279
|
color: ${e=>e.theme.colors.primary};
|
|
280
|
-
`;function Er({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:
|
|
280
|
+
`;function Er({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:s}){const c=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[c.colors.graphColor26,c.colors.graphColor17,c.colors.graphColor12],d=[c.colors.graphColor28,c.colors.graphColor17,c.colors.graphColor10,c.colors.graphColor28Dark,c.colors.graphColor17Dark,c.colors.graphColor10Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?$r:kr,w=(u,j=c.colors.graphColor28)=>u<y.length?y[u]:j,C=e.reportId==="revenue"?Re(e.firstMonthOfFY,_,h,e.sections?.income,e.sections?.cogs,e.calculatedSections?.grossMargin):Re(e.firstMonthOfFY,_,h,e.sections.income,e.sections.cogs,e.calculatedSections.grossMargin),L=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:4,stroke:B,strokeWidth:2,fill:z})},$=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:5,stroke:z,strokeWidth:2,fill:B})},k=(u,j)=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:a.jsx(L,{}),activeDot:a.jsx($,{}),dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount},stroke:w(j),strokeDasharray:"3 3",strokeWidth:1.5},u),v=(u,j,S)=>a.jsx(se,{name:u,animationDuration:S?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:B=>{const z=B.record;return(z[u]!=null&&z[u].amount!=null?z[u].amount:void 0)?.amount??0},fill:w(j)},u),O=()=>{const u=[];return _.forEach((j,S)=>{const B=i===!0&&!f.current;j.endsWith("_forecast")?u.push(k(j,S)):u.push(v(j,S,B))}),u};return C==null?null:a.jsx(Lr,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:O(),customToolTipContent:({active:u,payload:j})=>a.jsx(jr,{active:u,payload:j,mode:h}),width:n,height:o,onCOABalancesRangeChanged:s,highlightedRange:t,isDetailPage:i===!0})}const Lr=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:y[j].startDate,endDate:y[j].endDate}};c?.(y[v],r,S)},L=s?(l-60)/W.revenue*(W.revenue-e.recordByTimeseries.length):20;return a.jsx(wr,{width:l,height:i,windowSize:f,children:a.jsx(Q,{children:({height:$,width:k})=>a.jsxs(fe,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?I[10]:22,barGap:s?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,d)}),a.jsx(ce,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeWidth:(k-60)/W.revenue,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,s?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},iconSize:I[3],formatter:v=>a.jsx(_r,{windowSize:f,children:v.endsWith("_forecast")===!0?D.getLocalizedStrings().chartCard.revenue[v]:D.getLocalizedStrings().chartCard.revenue[N(v)]})}):null]})})})};export{Tr as G,Nr as H,Wr as P,Er as X,Ir as Y};
|