@zeniai/web-cockpit-ui 1.15.59-dev → 1.15.60-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.
Files changed (284) hide show
  1. package/dist/assets/{ACHDetailsPage-CFhoboVe-NhNiWQoq.js → ACHDetailsPage-BO7lxW8c-B0_WsBb4.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DB-fTWME-C20PCC17.js → AIPerformancePage-SF-quMkk-D_TcV5rN.js} +1 -1
  3. package/dist/assets/AccountInfoPage-v8-NT3FJ-gaoEoT5g.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-eYEsv7ac-CxPwO1am.js → AccountInfoPageContent-DIWh6VaI-CcPRrUNm.js} +1 -1
  5. package/dist/assets/AccountLockedInfoModal-DloPB9vd-BOkxR2Sg.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-3Q0EPYhL-DhctK78k.js → AccountReconDetailsDrawerPage-BAgQsFiF-hVicxd_W.js} +49 -49
  7. package/dist/assets/{AccountRow-CdgvnPG8-BbJV8Q8M.js → AccountRow-Dczx5rSu-C_XsKKay.js} +10 -10
  8. package/dist/assets/{AccountsPromoCardStack-DHo59LLN-G_DVA-Yj.js → AccountsPromoCardStack-Ywhto4lV-C2VycrWJ.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-BzO1FXUa-kqMHH9Vt.js → AddAddressForCardDrawer-B8srmVT6-Co_HJf1Y.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-BfXFbHjk-QRigQSHV.js → AddToWalletPage-k__RW699-DBnalmZR.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-C1hFq4KH-COTxuu-2.js → AgingReportsPage-BuIXjljE-BrreoP_-.js} +1 -1
  12. package/dist/assets/{AllUserItems-B6pnKByY-BUdz_J3g.js → AllUserItems-BdgTe4WF-DQfYtDL3.js} +5 -5
  13. package/dist/assets/{ApAgingDetailPage-CxLVGnpY-OkmLiLaF.js → ApAgingDetailPage-6F47t31h-CB_PIykE.js} +3 -3
  14. package/dist/assets/{AppBasePage-DiVxF606-C03aQg1o.js → AppBasePage-DaTueT-x-BXKUSYxo.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-B_EWsf8O-16pnrlUd.js → AppDrawerContent-CtCI6jpp-CsPTIxrb.js} +22 -22
  16. package/dist/assets/{ApprovalRulesSettingsPage-HHjDp_NQ-CDZaolru.js → ApprovalRulesSettingsPage-BVxu4soW-Cx9W9VZb.js} +1 -1
  17. package/dist/assets/{ArAgingChart-Ba4A-i2N-Cm3Zb2-A.js → ArAgingChart-BK-JyW2V-CRC7GMeI.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-prgcvsS4-CC5CLIGP.js → ArAgingDetailPage-CvqLu3q8-BQd3HFeD.js} +4 -4
  19. package/dist/assets/{AttachmentView-SsWJw4A8-BGK1ntZP.js → AttachmentView-DQdb3v_e-CrflCKQW.js} +2 -2
  20. package/dist/assets/BalancesInsightWithToolTip-D4q45w1q-CGBLlxve.js +38 -0
  21. package/dist/assets/{BankAccountSection-B4jmT0lb-DzAFSATj.js → BankAccountSection-DgbfU8F--CkRwjy7A.js} +1 -1
  22. package/dist/assets/{BankAccountWarningSection-Bz2itMx0-BwlD2-aX.js → BankAccountWarningSection-litL0o_Z-DgHPj2Xz.js} +8 -8
  23. package/dist/assets/{BankConnectionsSettingsPage-BcVk7bTt-CT4jBj4R.js → BankConnectionsSettingsPage-bAj9uB9k-sPoCw_nL.js} +6 -6
  24. package/dist/assets/{BillDetailPage-Dkqmi4H1-BrWo4uGz.js → BillDetailPage-CiHal44n-B-pNvdK4.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRuleDetailPage-Blxlv3pa-CZSNHT3K.js → BillPayApprovalRuleDetailPage-CRBli7lk-C6KU9krq.js} +1 -1
  26. package/dist/assets/{BillPayApprovalRulesPage-B_QwggJS-LtyCS7v3.js → BillPayApprovalRulesPage-BTOmSLcs-DsHPwIyx.js} +1 -1
  27. package/dist/assets/{BillPayPromoPage-Bx2AXpWe-Du89a98b.js → BillPayPromoPage-B5gkQjT2-CDaCRy4j.js} +6 -6
  28. package/dist/assets/{BillPaySetUpPage-CM7_DkHC-CclJKf3M.js → BillPaySetUpPage-DM3r09by-ylftA-6O.js} +1 -1
  29. package/dist/assets/{BillingSettingsPage-DM0OIfxa-BuoiB9BU.js → BillingSettingsPage-CiTKyJeG-D7-iHgY4.js} +1 -1
  30. package/dist/assets/{BillsBulkReviewDrawerPage-C3xmQ7wz-Bwj3c210.js → BillsBulkReviewDrawerPage-B6ofRDkg-pxXiH1By.js} +1 -1
  31. package/dist/assets/{BoxItem-CvCo0wr6-DKAIvhWo.js → BoxItem-C39hQSVg-DygFSSe8.js} +3 -3
  32. package/dist/assets/{BusinessVerificationPage-BAZmkR4a-AnwjdvL9.js → BusinessVerificationPage-BiWEnJET-BH1PMwYP.js} +1 -1
  33. package/dist/assets/{CardNumberSubText-DHtSIcZZ-DL8DMs-k.js → CardNumberSubText-FNfrozX6-CY1gwPPP.js} +1 -1
  34. package/dist/assets/{CashbackDetailPage-CNS1FA6b-JWXE3hsL.js → CashbackDetailPage-DaLICa_v-BHVqJW_A.js} +6 -6
  35. package/dist/assets/{ChargeCardDetailPage-C4NeG7IM-CPxS6cRg.js → ChargeCardDetailPage-B0Aq7zO5-Bj_iPNHv.js} +34 -34
  36. package/dist/assets/{ChargeCardListPage-DNYiWaEf-DJhH9poc.js → ChargeCardListPage-CfRto2rQ-DUZeib3g.js} +1 -1
  37. package/dist/assets/{ChargeCardListTable-DdnyzdFf-BmYCmkcc.js → ChargeCardListTable-DMdC4lxo-70bPzG6D.js} +28 -28
  38. package/dist/assets/{ChargeCardPaymentHistoryPage-CXlqzaUt-BEtGgsbY.js → ChargeCardPaymentHistoryPage-BYTmtF_y-QaBsAk7f.js} +22 -22
  39. package/dist/assets/ChargeCardPromoPage-AI5bladj-CDTghnkA.js +222 -0
  40. package/dist/assets/{ChargeCardSetupPage-BtikPFOq-_QFEhM40.js → ChargeCardSetupPage-BjhqdubL-Bxyq0dEG.js} +1 -1
  41. package/dist/assets/{ChargeCardStatementsPage-RepWBbvJ-fE-f9dTt.js → ChargeCardStatementsPage-DCM92s6v-BgJV4ytL.js} +4 -4
  42. package/dist/assets/{CheckDepositDrawerPage-BCqg3irO-BNQC0cqt.js → CheckDepositDrawerPage-CkIxEqHU-Dod8HuuJ.js} +1 -1
  43. package/dist/assets/{CollapsableReportTable-gy7Ue_fk-D4P0G-Lp.js → CollapsableReportTable-ClHwXtCj-D8daRiWx.js} +43 -43
  44. package/dist/assets/{CompanyOfficerDetailsSection-BsCx7q-g-vYNOEpVO.js → CompanyOfficerDetailsSection-BY8hFQnp-CtC3dw7s.js} +1 -1
  45. package/dist/assets/{CompanyPassportCard-BbUWOs1U-BLVqocbL.js → CompanyPassportCard-B3rZE3pg-CHku2Rtz.js} +2 -2
  46. package/dist/assets/{CompanyPassportPage-BnP2oA1U-zWSSW3Bs.js → CompanyPassportPage-4FXVf3EP-CYRMv_ux.js} +24 -24
  47. package/dist/assets/{CompleteProfile-TiRsm2Fm-CIjFxaAm.js → CompleteProfile-B1BoilWd-DIpcRO8q.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-D7J36hZf-BKlSjT6j.js → ConfettiBurst-CsbAGF65-DaE2G5iK.js} +1 -1
  49. package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-Bv_SCMJB.js → ConstrainedInnerElement-CgdnMeoA-D3ljsIVB.js} +1 -1
  50. package/dist/assets/{CreateOrEditVendorPage-Dihzr1D5-D9cB4SAg.js → CreateOrEditVendorPage-C50eYOFo-5jCRpD-i.js} +11 -11
  51. package/dist/assets/{CreditCardPaymentDrawerPage-CZGzDuxC-p3RWbIDE.js → CreditCardPaymentDrawerPage-Dxz_SY7N-CdO_tBcx.js} +5 -5
  52. package/dist/assets/{CurrencySelectField-BTAmIqPa-BqQ2_ci5.js → CurrencySelectField-D2Ogwvbr-DFlDNWit.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-MVI7kqIh-wst5cRj4.js → CustomerOnboardingActivationPage-5Sh7hmI9-BLHLFJqx.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-B5kVGk_V-Bb9r_J_O.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CaI_0pCb-CxQ8bQdr.js → CustomerOnboardingDetailPageSkeleton-CL-mOSUp-BYS-DtUM.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-CO_c2COV-pLp1hFCt.js → CustomerOnboardingNoStepsPage-CyL1AK78-Cy-eN1DF.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingPage-BF0vuYaJ-JMRuse4Z.js → CustomerOnboardingPage-C8nxJPwo-CFmeBld-.js} +4 -4
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BGFdLX1i-DySt6BQg.js → CustomerOnboardingProductSuitePage-C7FbnHpU-Dxkjm06Q.js} +1 -1
  59. package/dist/assets/{Dashboard-Qjedd4r--DHZmjgJN.js → Dashboard-Bpu-6Sm5-BISIyFSl.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-Deith_ON-ChcA84Vk.js → DashboardReportPage-B1aAikQG-BdFbggI-.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-C7DfUDio-DPyKxS1U.js → DashboardSidebarBackgroundAnimation-C6xm-p2j-CVm6YwBC.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-7kYotKov-BnPXoaAG.js → DepositAccTransactionItem-DEU0DgtI-EQTbBfv8.js} +3 -3
  63. package/dist/assets/{DepositAccTransactionListPage-Bop4Uj5w-ZOaAmZOC.js → DepositAccTransactionListPage-Bh0dIkE9-CW5ttbou.js} +2 -2
  64. package/dist/assets/{DomesticWireDetailsPage-_TyXsqEx-cl5Mv1ja.js → DomesticWireDetailsPage-2WyD73c9-Ddu9-eO2.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-Cmd727bN-BHplNe_3.js → DownloadOverlay-B7M2VI7K-8UWWddqd.js} +18 -18
  66. package/dist/assets/{DrawerPage-DmGwfnGp-B5EgKZxZ.js → DrawerPage-DsQTxXa8-FNOF0T9x.js} +5 -5
  67. package/dist/assets/{EditPeoplePage-YyluIC6R-CQIl30sj.js → EditPeoplePage-fY0HXvVS-CPTN1GRB.js} +3 -3
  68. package/dist/assets/{EditReimbursementDetailPage-DeMid2Ko-BTURFjuA.js → EditReimbursementDetailPage-D7RUWSTZ-BNhqRuzG.js} +1 -1
  69. package/dist/assets/EntityDetailPage-BDyO7iLI-BQGDz9Ii.js +18 -0
  70. package/dist/assets/{EntitySummarySection-5NbutA8l-Z4HQfo2N.js → EntitySummarySection-0rRkC5V6-DX9oCnh6.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-CQ_3WluW-sBkDi2LJ.js → ExpenseAutomationOverviewPage-DOGAdZXV-Ott9us_6.js} +1 -1
  72. package/dist/assets/{ExpenseAutomationPage-VuU4acYd-DRu_62Rz.js → ExpenseAutomationPage-DOsIzX0P-DNfPXp6J.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-DhoNmyC2-Ixqn7FeR.js → ExpressPayPage-CIi6jM8Y-qFfOMk3w.js} +1 -1
  74. package/dist/assets/{FeaturePreviewPage-GSwhPxgP-C20k6nV5.js → FeaturePreviewPage-BVn6ZUOB-BcJD18O7.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-DaueHRo4-DdiQ4lOn.js → FollowStepsSection-CvWPHXDW-CayqdWAy.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-DG7_1HOT-mLv5NHYa.js → GlobalReviewListPage-CS_11bx0-sbF8FOmX.js} +1 -1
  77. package/dist/assets/{InformationCardStack-zc-BxR7F-B2cR2Vrc.js → InformationCardStack-B9g7W7Xx-BWV4DOrJ.js} +1 -1
  78. package/dist/assets/{InsightsCardStack-DxCA5sFh-CBXIO7T2.js → InsightsCardStack-mvzIc2uY-DntFQXQU.js} +3 -3
  79. package/dist/assets/{InsightsSection-BdFG3j3R-DpGjm8qb.js → InsightsSection-rGyA4lY9-B2pA29Jq.js} +4 -4
  80. package/dist/assets/{IntegrationsSettingsPage-CaiL3kqS-yWfc1-ip.js → IntegrationsSettingsPage-Dwz4ukHF-BDuIwaNQ.js} +2 -2
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-BrQVSzeS-DauYa5_z.js → InternationalWireSwiftDetailsPage-Cm0H9oyf-DfXMYL1d.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-NaLnhW9C-D3Wh10D9.js → InternationalWireVerificationPage-woIoME3I-CEoHufSE.js} +1 -1
  83. package/dist/assets/{InviteFormPage-fjqv2l7h-CoWToBnJ.js → InviteFormPage-DaZ-sJYV-Bag9I8OB.js} +17 -17
  84. package/dist/assets/{InvitePageListView-CQecQhxr-BNu8hXMY.js → InvitePageListView-Do7EVQrj-BrU-UxSb.js} +13 -13
  85. package/dist/assets/{InvitePeoplePage-DAEBuOnk-jK8Ueocl.js → InvitePeoplePage-CpD7YoC2-DLME90b_.js} +1 -1
  86. package/dist/assets/{InvoiceUploadSection-58l6ePuH-BuOyGSAC.js → InvoiceUploadSection-DOuTQPee-DKRpBgc2.js} +1 -1
  87. package/dist/assets/{IssueChargeCardPage-Bkxqsgax-BMc-YwRY.js → IssueChargeCardPage-ClMhr27d-Dvt3VEvl.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-CZfFV97h-DWDhZW5u.js → LabeledAddressValue-B6_PZDTO-BM9CuApr.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-D66XOhMx-Di6mjf7B.js → LabeledAddressValueField-Cz6tRMoW-wArjCe_0.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-BtnsqE4D-CLMK-CUC.js → LabeledControlledCheckBoxField-BEpAlnvo-BghNAEyy.js} +1 -1
  91. package/dist/assets/{LabeledCountryMultiSelectField-kopByxLB-CVecMMvH.js → LabeledCountryMultiSelectField-1kTcZMQW-BkvqWj3Y.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-B6An-cwq-DxTaWad8.js → LabeledCreatableSingleSelectField-PiLB1S77-D7JcIqjo.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-D_ZD8JTn-BbI3Z3Te.js → LabeledDocumentField-Cicw8ABs-BakwqLCx.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-CJ7ncCzH-CmOBBbLT.js → LabeledDropDownFormattedTextField-BEVVgIGK-CLPycccH.js} +2 -2
  95. package/dist/assets/{LabeledText-A1h_ionS-YHsepFfP.js → LabeledText-C56xvYuX-BJO8VuVp.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-IYaUvqgY-BQ0ZCt10.js → LabeledUserSingleSelectWithSubtitlesField-CF4oVI17-1aX-FRHw.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-DmynBXbJ-BkBy6SHA.js → LabeledZeniRolesDropDownField-B5rxYfam-B3apIRze.js} +1 -1
  98. package/dist/assets/{LinkJETransactionPage-D6-fL4a6-DPNZmHzv.js → LinkJETransactionPage-DbnaYlRA-4hyH1rgp.js} +9 -9
  99. package/dist/assets/{LockCardPage-BDlnh_zf-coxMaBNB.js → LockCardPage-XHbTmzq8-CfUgYvqO.js} +20 -20
  100. package/dist/assets/{LowBalancePopup-CBPl_udd-D2XBBf4O.js → LowBalancePopup-IF7NG9aL-CmWtcxy6.js} +2 -2
  101. package/dist/assets/MagicLinkACHDetailsPage-DbhqYo7W-DLN4BmVt.js +1 -0
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-BcNOhJgL-C8mUkiDX.js → MagicLinkDomesticWireDetailsPage-D0JDLfbz-CKYFGEdB.js} +1 -1
  103. package/dist/assets/MagicLinkInternationalWireDetailsPage-DChqrJN7-j39Z7g0H.js +1 -0
  104. package/dist/assets/{MagicLinkSuccessPage-Cl461HWp-CO6oeX5F.js → MagicLinkSuccessPage-Cyr3p_8a-DYu_aa7F.js} +1 -1
  105. package/dist/assets/{MagicLinkTitleSection-DoIMYrRv-BlE9zH37.js → MagicLinkTitleSection-A4zyF5bg-CuWJG08o.js} +1 -1
  106. package/dist/assets/MailingDetailsSection-DqSOlu2t-XHdrpb5B.js +21 -0
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BU6TBzI1-DN5Npe5i.js → MyBankConnectionsSettingsPage-DtTjhna--DxAAS5ce.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-DcunCDU6-gyBwBEb_.js → MyPendingActivationChargeCardListPage-CKSWf7I4-CVnClwp0.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-DF7ahyXE-B1LJnYuu.js → MyProfileSettingsPage-WF1pNlyU-C1ew1Kqs.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-D2v1fhLS-C3H8GgqL.js → NavBarWithPicker-DiCaJ8Qy-D9erSe1B.js} +3 -3
  111. package/dist/assets/{NavigationArrow-CWUL-6kN-BrqMd9Lj.js → NavigationArrow-f4Z3TuXg-DjAooGX3.js} +6 -6
  112. package/dist/assets/{NavigationDots-c-XSrFzE-Dxzsqafk.js → NavigationDots-WiVjbUsC-BSgmW_if.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-FGEO68I8-B7wryl8V.js → NewGlobalMerchantPage-kvjjwV8d-C-gYRU5V.js} +1 -1
  114. package/dist/assets/{NoDataChart-DJhSgtLu-B7rWK9ww.js → NoDataChart-DlSLTzZl-qjL1S4Ow.js} +1 -1
  115. package/dist/assets/{NoDataTable-BZiwo2qK-1fFq9QL7.js → NoDataTable-9vLoRpsR-NJzyakwC.js} +1 -1
  116. package/dist/assets/{NotFoundPage-BN5unYX8-RIPoUtcm.js → NotFoundPage-CFlNCHFs-CZtYv7Ed.js} +4 -4
  117. package/dist/assets/{NotificationSettingsPage-d8kHDj0M-BR4XfDGy.js → NotificationSettingsPage-KJzE9v4p-D_0qzf80.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-ThKLok_w-DiwvAaDh.js → NotificationsListConfig-6sXXtF_E-CjeFzlDg.js} +1 -1
  119. package/dist/assets/{NotificationsPage-Uvu6XESA-C7IDz_PV.js → NotificationsPage-D4AmPdo9-Lse12GIJ.js} +11 -11
  120. package/dist/assets/{OpExByVendorPage-QyqRkD2_-BZtZlU0k.js → OpExByVendorPage-B5Wtu3ww-DoL2G9-j.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-BG9y5C0t-B5Ccc20I.js → OverlayContainerPage-BG9y5C0t-B-_gIiaG.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-DJ2v5qbE-D34Zu7P_.js → PandLWithForecastPage-CjkaxTx7-hcg5r7tq.js} +2 -2
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-q5z8XZFC-BXoCztnc.js → PaymentAccountSetupBillingAddressSection-eeLSg7xb-BPuUddlR.js} +6 -6
  124. package/dist/assets/{PeoplePage-C5ZdpVyR-D5gb3H9N.js → PeoplePage-CQREy6SW-B0AK4Oec.js} +1 -1
  125. package/dist/assets/{Preview-M7TzJD6j.js → Preview-CZH7Vvu6.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-CXjLTOLy-qhgO5u3T.js → ProductsCarousel-COZZMTcH-CfEx379j.js} +3 -3
  127. package/dist/assets/{PromoBaseCards-CN9uZfG4-4ZG6rDcT.js → PromoBaseCards-Bmn6TN2k-B692-NLa.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-CXSi1Pd9-BlV5xAad.js → QBOConnectionDialog-DYxoiSkA-COoNZDfT.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-BrtLMvEP-CWf9qAKV.js → QBOSetupSection-Cdz2PDxV-1MtshN_P.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CS1BQ7pL-gwQi2ubd.js → ReimbursementApprovalRuleDetailPage-C-QEoqCw-DEqspRF0.js} +2 -2
  131. package/dist/assets/{ReimbursementApprovalRulesPage-aLRkhkZB-CtUN1jCI.js → ReimbursementApprovalRulesPage-Ch2sxTFV-CKSEAZRx.js} +9 -9
  132. package/dist/assets/{ReimbursementDetailPage-Dr5BTvEq-BkIwEWVX.js → ReimbursementDetailPage-DSF6SfKn-BbgmDgbl.js} +1 -1
  133. package/dist/assets/{ReimbursementPromoPage-C5Z0mVhQ-sIeJk3bD.js → ReimbursementPromoPage-F1ROFd63-Df7C1VVh.js} +4 -4
  134. package/dist/assets/{ReimbursementSetUpPage-CXhOBErm-DH5oFO_k.js → ReimbursementSetUpPage-l2mhLFuo-DfcOr7HI.js} +1 -1
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CA0n0mau-YPT0uXmT.js → ReimbursementsBulkReviewDrawerPage-DyPxPnlu-BUgOGjSI.js} +1 -1
  136. package/dist/assets/{ReloadCard-Bjp8ygC2-QCThgpLx.js → ReloadCard-CDcJMl9F-tXak7uFI.js} +1 -1
  137. package/dist/assets/{ReportTableViewSelector-DTk1dNWC-B6Y4EDN-.js → ReportTableViewSelector-DvCk55Hn-CTarIpK9.js} +1 -1
  138. package/dist/assets/{ReportsPage-DrjOGopt-DJaJ6UxU.js → ReportsPage-DfqqKSt3-BxlHe2bX.js} +49 -38
  139. package/dist/assets/{RevenueChart-CqGvXDr4-ls1jVoKH.js → RevenueChart-BONT9upM-Cun2QP3i.js} +1 -1
  140. package/dist/assets/{ReviewDetailsPage-CWBP7FBN-BDBxmvOT.js → ReviewDetailsPage-857bVurA-D9gCRs9U.js} +1 -1
  141. package/dist/assets/{ReviewOverlay-Cxkp85Kw-C7d3vwBi.js → ReviewOverlay-ClQg7d2j-j91vCn0m.js} +1 -1
  142. package/dist/assets/RoleWithToolTip-C0G1Hgp_-BKrTDu8H.js +22 -0
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CYvlB3Nf-BjdxIH5b.js → ScheduleDetailsFixedAssetsPage-CJ_JBtxS-BCPY7QpL.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-CZXJ15tN-CjrCADWR.js → ScheduleDetailsPage-B1aEwPL--vu1ZFkSU.js} +3 -3
  145. package/dist/assets/{ScheduleSequenceTable-DNPID_7F-j2fgEjwp.js → ScheduleSequenceTable-DhU7PI91-BAKwnm-f.js} +1 -1
  146. package/dist/assets/{ScreenRoutes-DJ_rUo9A.js → ScreenRoutes-B4US_7hw.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-_WPR-q2V-DrJlA8IQ.js → SetUpAccountSection-C8dulq9s-DDXcc18s.js} +11 -11
  148. package/dist/assets/{SignIn-CDEsZw_T-0YUs2QmP.js → SignIn-wDe7lbGR-dg2gJssp.js} +1 -1
  149. package/dist/assets/{SignInScreen-CUXsEOc0.js → SignInScreen-CnOpPKTK.js} +1 -1
  150. package/dist/assets/{SpendManagementListViewPage-MOCWuROI-DKR38Veg.js → SpendManagementListViewPage-BdddUHrW-CnqRniMi.js} +3 -3
  151. package/dist/assets/{SpendManagementPerTabPage-BeK0SCeE-D8khDgh_.js → SpendManagementPerTabPage-BBJm3884-DoJtdm-x.js} +18 -18
  152. package/dist/assets/{SpendManagementSection-DZFPfKNi-BUQ2S0Kz.js → SpendManagementSection-6R5y0Hy4-D5jOLcFY.js} +1 -1
  153. package/dist/assets/{StatementItem-DjvU5wiI-DHTNeSpB.js → StatementItem-qsoXKx_p-DBQZldZM.js} +1 -1
  154. package/dist/assets/{StatementsPage-DYLp_e7W-C5hw_hkQ.js → StatementsPage-Cn7WG5-S-AcQ1iHip.js} +1 -1
  155. package/dist/assets/{StatusSwitcher-jxaonB4S-Dw8Z5KsP.js → StatusSwitcher-D3qCg5J1-BZCFmoiB.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-CudjNlsi-Dk2m1EXt.js → SubTabSwitcher-BXajy75j-DZugBDGb.js} +1 -1
  157. package/dist/assets/{SummaryCard-DPOhBmkr-Cj1Lt-Mp.js → SummaryCard-B1d4_5lE-uu1gTNTh.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-CTMoHv0R-DzrReeZE.js → TaskManagementPage-h3Rb49Jj-Mtdf3ds1.js} +1 -1
  159. package/dist/assets/{TimeRangeSwitcher-SqY2MHGs-Bpa_mFEa.js → TimeRangeSwitcher-DpUOmqiR-DjFTIpwn.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcher-BlJ2fuHy-8yHS99Lr.js → TimeframeSwitcher-BKEtsv_r-DfkM31PQ.js} +1 -1
  161. package/dist/assets/{TimeframeSwitcherWithToggle-Dgc1odUH-CNwpIwWb.js → TimeframeSwitcherWithToggle-DECnQIMT-Cmt_c04c.js} +10 -10
  162. package/dist/assets/{TopExCard-CG8YLsYe-CsdBprjg.js → TopExCard-leQR29Sq-B0Y6UXAe.js} +3 -3
  163. package/dist/assets/{TopExDetailPage-TvYCbzSP-C1DN6y7-.js → TopExDetailPage-Dgg7Do6D-DdiiFE6N.js} +8 -8
  164. package/dist/assets/{TransactionActivityLogPage-BL3vEAdU-B_s3Ii9P.js → TransactionActivityLogPage-CU2pUJQL-CUfFmWBA.js} +6 -6
  165. package/dist/assets/{TransactionDetailPage-DUouBL0o-BwsVWjsw.js → TransactionDetailPage-FT2IPLH7-BTpqS69f.js} +17 -17
  166. package/dist/assets/{TransactionList-B16NONME-MhxbTKXX.js → TransactionList-C2MGkQYM-DYhz6ZPl.js} +1 -1
  167. package/dist/assets/{TransactionListBig-CItPbTRV-CTDy7YXE.js → TransactionListBig-CZ3jIxzR-CRCbDlw1.js} +4 -4
  168. package/dist/assets/{TransactionListPage-DNecYY8M-DvyKlW5R.js → TransactionListPage-PCa4exLO-BxsKDJxF.js} +1 -1
  169. package/dist/assets/{TransactionVendorDetailPage-DpqisXN8-BeIl3VIo.js → TransactionVendorDetailPage-BgcqndCu-JJLz26CY.js} +1 -1
  170. package/dist/assets/{TransferDrawerPage-Dsmbswu0-DuQeRo8o.js → TransferDrawerPage-SirvPH4z-I4L9iRhs.js} +28 -28
  171. package/dist/assets/{TreasuryOverviewPage-BcRpcYmB-B_2n4w_R.js → TreasuryOverviewPage-B_WK1aOv-CprBsLp-.js} +12 -12
  172. package/dist/assets/{TreasuryPromoPage-DOO_OMRa-Nn5daNmi.js → TreasuryPromoPage-B_D63Dr2-CnSqy837.js} +9 -9
  173. package/dist/assets/{TreasuryStatementsPage-A_U7bEy5-DdFUWuDa.js → TreasuryStatementsPage-BGe0fhBe-DTEczdhN.js} +2 -2
  174. package/dist/assets/TreasuryTaxLetterPage-9gNdkQZp-C1BQoAja.js +58 -0
  175. package/dist/assets/{TrendChart-GMMat-NG-CAc9nAfG.js → TrendChart-COItOWPp-BY69H27v.js} +1 -1
  176. package/dist/assets/{TrendWithTransactions-CrA4opNV-BTtTpjeg.js → TrendWithTransactions-DgAw_8CI-31-F3YNz.js} +1 -1
  177. package/dist/assets/{UncategorizedAccountsMappingPage-CrzbFGOi-B7V18O6N.js → UncategorizedAccountsMappingPage-B9EziB6Q-B5XRflrD.js} +5 -5
  178. package/dist/assets/{UnitIntegrationPage-XZY6zJa7-Cq4xbYW7.js → UnitIntegrationPage-DGWNyWV1-DDxjCVGo.js} +1 -1
  179. package/dist/assets/{UploadAdditionalDocumentOverlay-eqwSLigx-Ci9eqDqb.js → UploadAdditionalDocumentOverlay-DWmMz_8y-CvLWvP9X.js} +1 -1
  180. package/dist/assets/{Vendor2FAPopup-BHDivuPB-Cn8-yps4.js → Vendor2FAPopup-dh2g8kqu-CdLofAYR.js} +1 -1
  181. package/dist/assets/VendorACHDetailsPage-C0vIRpRW-Bl9ig0z-.js +1 -0
  182. package/dist/assets/{VendorDetailPage-DEu-yS8w-DNet96B_.js → VendorDetailPage-CGqoIODq-VSGzsMrn.js} +10 -10
  183. package/dist/assets/VendorDomesticWireDetailsPage-BVXSOMiH-B_RQPHLo.js +1 -0
  184. package/dist/assets/{VendorFiling1099EditablePage-C461SzO0-BVUWElpF.js → VendorFiling1099EditablePage-CsnlHrCl-AUunsfoG.js} +1 -1
  185. package/dist/assets/{VendorFirstReviewPage-klbCHS04-BFjy2m5_.js → VendorFirstReviewPage-DC1j2sO_-CtBZ5OYr.js} +1 -1
  186. package/dist/assets/{VendorInternationalWireDetailsPage-DY0V-VbO-C2xJ0CsJ.js → VendorInternationalWireDetailsPage-Drr00a6C-CQ1ZShGA.js} +8 -8
  187. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CZ5N8G2o-BqZ7DdzL.js +1 -0
  188. package/dist/assets/{VendorsAccountsSection-Cqcr-ArD-DAAwd5Iw.js → VendorsAccountsSection-BtdwR8u4-DTioiVZE.js} +1 -1
  189. package/dist/assets/{VerifyDevice-Dhu5iywf-HX-kw30c.js → VerifyDevice-Bhr_yHpE-BbGiRxv5.js} +3 -3
  190. package/dist/assets/{VideoPlayer-ZGjx_Hp7-Nomi0VD9.js → VideoPlayer-wlJX6lEq-D6dTvqn0.js} +2 -2
  191. package/dist/assets/{VideoPopup-R3u0N_if-DgVn2CAl.js → VideoPopup-BPptwR51-COhEr58N.js} +1 -1
  192. package/dist/assets/{WarningsDrawerPage-TerLFC4m-C5ptwy3N.js → WarningsDrawerPage-CHDMmfGz-BXafaQFq.js} +1 -1
  193. package/dist/assets/{ZeniAccountDetailPage-DQB7sXU9-CETOq0EN.js → ZeniAccountDetailPage-CSsu44ls-BwOj8KvI.js} +9 -9
  194. package/dist/assets/{ZeniAccountListViewPage-BwXKgf6g-DrDKS22-.js → ZeniAccountListViewPage-BZwGCrzx-Dpx7_w7g.js} +22 -22
  195. package/dist/assets/{ZeniAccountNavBarPieces-CHUTFAWG-DBX2rB9H.js → ZeniAccountNavBarPieces-CrNjnkNS-DjQVooJA.js} +5 -5
  196. package/dist/assets/{ZeniAccountPromoPage-BkfJuMNV-DSkmb6Z5.js → ZeniAccountPromoPage-CahV-Rmf-B4cDQ_nu.js} +1 -1
  197. package/dist/assets/{ZeniAccountSetupPage-C3drM4Zs-D-HaFV-S.js → ZeniAccountSetupPage-DSNDNKZr-CY5M0A2Q.js} +1 -1
  198. package/dist/assets/{ZeniCopyright-CznSgVJF-iBl18n1m.js → ZeniCopyright-BNGdkMOa-Bn4hiDwJ.js} +1 -1
  199. package/dist/assets/{ZeniTransferAmountSlider-C77DEl-C-CZljZWCZ.js → ZeniTransferAmountSlider-DuD1JtSv-FE9AJrcw.js} +1 -1
  200. package/dist/assets/{add-to-wallet-DgdBD8_G-CM6IrCpv.js → add-to-wallet-DgdBD8_G-OZ5gpoAM.js} +1 -1
  201. package/dist/assets/{analytics-B_VWX-BQ.js → analytics-TwdLweES.js} +1 -1
  202. package/dist/assets/{analyticsHelper-Bh8o1v3y-C4Sojiq_.js → analyticsHelper-DjQYjslY-DBXj-dJs.js} +1 -1
  203. package/dist/assets/{analyticsHelper-B8fd42um.js → analyticsHelper-iTM7ZfDG.js} +1 -1
  204. package/dist/assets/{arrow-south-east-round-PEovUgvH-CQGzMyhs.js → arrow-south-east-round-PEovUgvH-q2OU5IkV.js} +1 -1
  205. package/dist/assets/{auto-transfer-rule-mbafm5D3-Ba30im8q.js → auto-transfer-rule-mbafm5D3-BEBK8d08.js} +1 -1
  206. package/dist/assets/{chartTypes-C14YY2Rq-DHigu710.js → chartTypes-BGl-YMiu-WdB5HF6p.js} +1 -1
  207. package/dist/assets/{commonDimensions-CVpc-NCw-D6CVEqC_.js → commonDimensions-CuKo3wam-CITxsF7B.js} +1 -1
  208. package/dist/assets/{commonTypes-Ec-PxfpT-Dj2109B_.js → commonTypes-CfAg6Jvv-D6_uVQ3i.js} +1 -1
  209. package/dist/assets/{constants-DgwGHN1r.js → constants-BRyQqmbK.js} +1 -1
  210. package/dist/assets/{core-Cjh03OPu.js → core-C_RwbDgZ.js} +1 -1
  211. package/dist/assets/{dash.all.min-CCSNDyIp.js → dash.all.min-BXIjGNzm.js} +1 -1
  212. package/dist/assets/{downloadPdf-BuPJ6cfr-Dyz4TLVR.js → downloadPdf-Dcd8BY_9-DevbEgfI.js} +1 -1
  213. package/dist/assets/{empty-iTJcp-B8.js → empty-CN54c-dU.js} +1 -1
  214. package/dist/assets/{empty-DlGh28fD.js → empty-D7p7xixl.js} +1 -1
  215. package/dist/assets/{epic-hN0N_N79.js → epic-CThn8LAI.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-TbiyaSAn.js → gift-box-Cmt9OgIZ-oia6LvJT.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CxIH_dl6.js → graphic-no-data-l-DU4J8fDt-DCjrEnAk.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CUkTpFd-.js → graphic-no-data-net-burn-l-CzmycA0m-Db_-34x6.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-Dbtylvfc.js → handshake-BPg58FML-Dcowt3IG.js} +1 -1
  220. package/dist/assets/{helper-AgH8nJln-Bk3G7LVh.js → helper-DkzA3y2L-C_9Y7_ic.js} +1 -1
  221. package/dist/assets/{index-C4Fispms.js → index-B-ek68tb.js} +1 -1
  222. package/dist/assets/{index-aCBnCBoN.js → index-B8J3c9-k.js} +7 -7
  223. package/dist/assets/{index-ChCGry2d.js → index-BC4cjDzB.js} +1 -1
  224. package/dist/assets/{index-DAwCqq2t.js → index-C7AzBAhT.js} +1 -1
  225. package/dist/assets/{index-DFowIMIZ.js → index-CJXgYa1j.js} +1 -1
  226. package/dist/assets/{index-B5cuJQnR.js → index-DvYI3iXJ.js} +1 -1
  227. package/dist/assets/{index-Bk7UJBjY.js → index-hPlkpvne.js} +1 -1
  228. package/dist/assets/{lexical-9REae7LV.js → lexical-DZ4skawM.js} +1 -1
  229. package/dist/assets/{liveblocks-CEY7tsth.js → liveblocks-CN5hALk7.js} +1 -1
  230. package/dist/assets/{lottie-BmLFYENY.js → lottie-B-zs781A.js} +1 -1
  231. package/dist/assets/mapLoadingInProgressToTreeNode-lABm-2N9-B58RPCeu.js +1 -0
  232. package/dist/assets/mapSectionWithAcOnlyToTreeNode-COcUb2pF-kcDRUVhM.js +1 -0
  233. package/dist/assets/mapSpacerToTreeNode-BDjo5N-i-mJOJcAn8.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-CvVUjW74-DDD8EZiJ.js +1 -0
  235. package/dist/assets/{mapTimeframeBalancesToTreeNode-Drhl_lnP-CrhrR0QG.js → mapTimeframeBalancesToTreeNode-CwHF76sn-r5bNXF3q.js} +1 -1
  236. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-B7LYTZXQ-71mHcXTa.js +1 -0
  237. package/dist/assets/{mui-BosmckWV.js → mui-B_fu8zAT.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-C2A7RuXG.js → page-detail-CWX5S47F-CvAL0hAO.js} +1 -1
  239. package/dist/assets/{panelSelectedMixin-Cddsb26L-CWVsp72I.js → panelSelectedMixin-Cddsb26L-DRHuamSe.js} +1 -1
  240. package/dist/assets/{radio-default-CiSgisfh-Dhw9u_Vt.js → radio-default-CiSgisfh-BgsJfXrp.js} +1 -1
  241. package/dist/assets/{react-CLFAbS9n.js → react-B3oFwy7V.js} +2 -2
  242. package/dist/assets/{react-DT8qkoNX.js → react-BG0GUKse.js} +1 -1
  243. package/dist/assets/{react-ddvEC0y3.js → react-Bcm_MkQe.js} +1 -1
  244. package/dist/assets/{react-DSh5n3Dg.js → react-CWuBuyxj.js} +1 -1
  245. package/dist/assets/{react-DAXSMqh2.js → react-DJ0zzqQv.js} +1 -1
  246. package/dist/assets/{react-D8DqvAAs.js → react-PE1K_DTb.js} +1 -1
  247. package/dist/assets/{react-DxfKP-TY.js → react-rwxEP-9P.js} +1 -1
  248. package/dist/assets/{react-DTZ405nF.js → react-uUMjmJkq.js} +1 -1
  249. package/dist/assets/{recharts-CimMNwCJ.js → recharts-BkmpOx_p.js} +1 -1
  250. package/dist/assets/{sentry-DzaNjvx0.js → sentry-xNvKSthz.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-Cva3YFBn.js → shield-DOlUxcFf-BV2AyAgf.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-CGYYTIjt-D5mv6_v1.js +1 -0
  253. package/dist/assets/{toChartData-G5y-N82I-BBptd2Gk.js → toChartData-B4ligi4c-D4j3IIGd.js} +1 -1
  254. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-CMjD_kCZ.js → upload-reimbursement-receipt-O2N8vcO7-Deu8S236.js} +1 -1
  255. package/dist/assets/{uploadAttachment-RbkIBMGO-TVHnian4.js → uploadAttachment-DgPDimcm-DyuT8s2S.js} +5 -5
  256. package/dist/assets/{uploadReceipts-CIgkuVpu-Dil-Qv4Z.js → uploadReceipts-CIgkuVpu-CmRP4shz.js} +1 -1
  257. package/dist/assets/{url-ymOv7sCf.js → url-CPrPdBBS.js} +1 -1
  258. package/dist/assets/{url-KRGewpHH.js → url-DN9fcrN3.js} +1 -1
  259. package/dist/assets/{useLongPress-GCK2COYQ-BgaoTE4k.js → useLongPress-GCK2COYQ-DMOFKAWg.js} +1 -1
  260. package/dist/assets/{usp-line-BBd1wKwW-Bnk1sVWO.js → usp-line-BBd1wKwW-Bx4ltDgD.js} +1 -1
  261. package/dist/assets/{utils-THjX-QSp.js → utils-4bW-VyLb.js} +1 -1
  262. package/dist/assets/{zeni-epic-state-BNpJ2txa.js → zeni-epic-state-SAYXyeZn.js} +3 -3
  263. package/dist/index.html +1 -1
  264. package/package.json +2 -2
  265. package/dist/assets/AccountInfoPage-pEEhPqOb-CuwSCEbu.js +0 -18
  266. package/dist/assets/AccountLockedInfoModal-jYWr_8TD-BpvSTyB8.js +0 -59
  267. package/dist/assets/BalancesInsightWithToolTip-DE6gDjGA-D3lvmUPJ.js +0 -38
  268. package/dist/assets/ChargeCardPromoPage-D4canPX9-DuNs-QpK.js +0 -222
  269. package/dist/assets/CustomerOnboardingContainerPage-DV3z4pR--Dxqq0QJL.js +0 -1
  270. package/dist/assets/EntityDetailPage-DPTSSZdS-B-VW2ygZ.js +0 -18
  271. package/dist/assets/MagicLinkACHDetailsPage-eq8wlXQr-DtgQBKXr.js +0 -1
  272. package/dist/assets/MagicLinkInternationalWireDetailsPage-Df8XYlkg-BRWnjp0l.js +0 -1
  273. package/dist/assets/MailingDetailsSection-NdwWGQ88-D7MwCKtI.js +0 -21
  274. package/dist/assets/RoleWithToolTip-CqLxmtj6-BNUOWMRG.js +0 -22
  275. package/dist/assets/TreasuryTaxLetterPage-BsJn-BgX-CQZpySFF.js +0 -58
  276. package/dist/assets/VendorACHDetailsPage-DJ4Crnr0-adpyH1RD.js +0 -1
  277. package/dist/assets/VendorDomesticWireDetailsPage-WFcOmpiN-CHE49l9v.js +0 -1
  278. package/dist/assets/VendorInternationalWireSwiftDetailsPage-B8sx02I_-CE29O6S4.js +0 -1
  279. package/dist/assets/mapLoadingInProgressToTreeNode-DTyQHWMc-CfKVg64X.js +0 -1
  280. package/dist/assets/mapSectionWithAcOnlyToTreeNode-D7pjBGp6-Bef-KTrw.js +0 -1
  281. package/dist/assets/mapSpacerToTreeNode-Cd4FCXAf-BQ_XhzIu.js +0 -1
  282. package/dist/assets/mapTimeframeBalancesToTreeNode-UsawmMLa-_s__LV61.js +0 -1
  283. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-B-aNuSSK-BvCkLSPj.js +0 -1
  284. package/dist/assets/toCOABalancesWithID-wh35N3no-ClXxioRe.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as Ee,e as Ve,aS as N,aa as qe,cQ as Ge,O as Ie,aX as Ce,V as t,fr as Je,d as J,x as s,bE as Ze,L as Qe,ae as Xe,fI as ve,e1 as Ye,fJ as Ke,by as et,dS as tt,aT as it,o as a,fL as nt,u as n,cq as ot,cU as at,eJ as lt,fU as ke,fV as $e,gu as st,a as rt,ac as Pe,N as Ae,bO as dt,ak as ct,bv as ut}from"./index-aCBnCBoN.js";import{a as o}from"./sentry-DzaNjvx0.js";import{n as i}from"./mui-BosmckWV.js";import{bJ as mt}from"./zeni-epic-state-BNpJ2txa.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-eqwSLigx-Ci9eqDqb.js";import"./liveblocks-CEY7tsth.js";import"./core-Cjh03OPu.js";import"./recharts-CimMNwCJ.js";import"./lottie-BmLFYENY.js";import"./analytics-B_VWX-BQ.js";import"./lexical-9REae7LV.js";import"./utils-THjX-QSp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="a06cb9e1-1b72-4754-a290-ef2528ed9750",e._sentryDebugIdIdentifier="sentry-dbid-a06cb9e1-1b72-4754-a290-ef2528ed9750")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:Q},trigger:X}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Q,E),{localData:d,updateStatus:U,mileageStatus:b}=p,F=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:Y,spendManagement:K}=Ie.getLocalizedStrings(),{reimbursement:ee}=K,[S,V]=o.useState(F),[te,W]=o.useState(!1);o.useEffect(()=>{x||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=Y,ne=S===!1||U.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(bt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:$e(b.code)}):null]}),t.jsxs(wt,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:b.name,textColor:$e(b.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:d?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:I=>I!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Tt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&F&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:U.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:I=>{I.stopPropagation(),V(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(It,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
1
+ import{g as Ee,e as Ve,aS as N,aa as qe,cQ as Ge,O as Ie,aX as Ce,V as t,fr as Je,d as J,x as s,bE as Ze,L as Qe,ae as Xe,fI as ve,e1 as Ye,fJ as Ke,by as et,dS as tt,aT as it,o as a,fL as nt,u as n,cq as ot,cU as at,eJ as lt,fU as ke,fV as $e,gu as st,a as rt,ac as Pe,N as Ae,bO as dt,ak as ct,bv as ut}from"./index-B8J3c9-k.js";import{a as o}from"./sentry-xNvKSthz.js";import{n as i}from"./mui-B_fu8zAT.js";import{bJ as mt}from"./zeni-epic-state-SAYXyeZn.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-DWmMz_8y-CvLWvP9X.js";import"./liveblocks-CN5hALk7.js";import"./core-C_RwbDgZ.js";import"./recharts-BkmpOx_p.js";import"./lottie-B-zs781A.js";import"./analytics-TwdLweES.js";import"./lexical-DZ4skawM.js";import"./utils-4bW-VyLb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="abad0a07-ed22-454f-8137-81b921e82594",e._sentryDebugIdIdentifier="sentry-dbid-abad0a07-ed22-454f-8137-81b921e82594")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:Q},trigger:X}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Q,E),{localData:d,updateStatus:U,mileageStatus:b}=p,F=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:Y,spendManagement:K}=Ie.getLocalizedStrings(),{reimbursement:ee}=K,[S,V]=o.useState(F),[te,W]=o.useState(!1);o.useEffect(()=>{x||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=Y,ne=S===!1||U.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(bt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:$e(b.code)}):null]}),t.jsxs(wt,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:b.name,textColor:$e(b.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:d?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:I=>I!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Tt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&F&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:U.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:I=>{I.stopPropagation(),V(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(It,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -1 +1 @@
1
- import{ay as M,g6 as z,V as _,cy as W,cz as H,cA as J,kq as K,a_ as X,O as G}from"./index-aCBnCBoN.js";import{a as f}from"./sentry-DzaNjvx0.js";import{Ha as Q}from"./zeni-epic-state-BNpJ2txa.js";import{u as Y}from"./ReviewOverlay-Cxkp85Kw-C7d3vwBi.js";import"./liveblocks-CEY7tsth.js";import"./core-Cjh03OPu.js";import"./recharts-CimMNwCJ.js";import"./mui-BosmckWV.js";import"./lottie-BmLFYENY.js";import"./analytics-B_VWX-BQ.js";import"./lexical-9REae7LV.js";import"./utils-THjX-QSp.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]="b08138be-54e2-4f34-b7eb-de993821b534",e._sentryDebugIdIdentifier="sentry-dbid-b08138be-54e2-4f34-b7eb-de993821b534")}catch{}})();const{common:a,spendManagement:{reimbursement:B}}=G.getLocalizedStrings(),n=B.bulkActions;let R;const _e=({remisReviewView:e,isAdmin:o,analytics:s,onProceedForBulkActionClick:d,onCloseReviewItem:u,onCloseOverlay:t})=>{const{fetchState:i,bulkSubmissionFetchState:p,bulkOperationTypeSelected:r,currentTab:b,currentSubTab:y}=e,g=!1,T=M(),l=z(T),[v,m]=f.useState(!1),[h,A]=f.useState(j(e,g,o,l)),[w,D]=f.useState(g),[P,te]=f.useState(0),[S,$]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(P===h.length&&w&&(D(!1),clearInterval(R)),e.fetchState==="Completed"&&A(j(e,!1,o,l)),()=>{clearInterval(R)}),[h.length,P,w,e.fetchState,g,e,o,l]);const E=h.length,x=h.filter(c=>c.reviewStatus.code!=="error").length,F=()=>{const{title:c,description:k}=Z(x);$({type:"reject",title:c,description:k,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),s.trackReimbursementBulkSubmit(r,b,y),m(!0)},L={onOkClick:c=>{m(!1);const k=e.remisForReview.map(I=>I.reimbursement);s.trackReimbursementBulkPopupConfirm(r,b,y,Q(k.map(I=>I?.reimbursementTypesIncluded??[]))),d("reject",c)},onCancelClick:()=>{m(!1)}},{title:O,description:U}=ee(i,x,E,w),C=e.fetchState==="Completed"&&x===0,N=()=>{s.trackReimbursementBulkSubmit(r,b,y),d(r)},V=()=>{let c=a.footer.approve;return C?c=a.texts.close:r==="send_for_approval"&&(c=a.footer.submit),{label:c,isDisabled:i!=="Completed"||r==="reject"&&p==="In-Progress",isLoading:p==="In-Progress"&&(r==="send_for_approval"||r==="approve"),onClick:C?t:N,style:r==="send_for_approval"?{minWidth:"92px"}:{}}},q={label:r==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:r!=="reject"&&p==="In-Progress",isLoading:r==="reject"&&p==="In-Progress",reverseSpinnerColor:!1,onClick:r==="send_for_approval"?t:F,style:r==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[v?_.jsx(W,{titleComponent:_.jsx(J,{children:S.title}),descriptionComponent:_.jsx(H,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:L,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(Y,{title:O,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:h,onCloseReviewItem:u,onCloseOverlay:t,showFooter:e.fetchState==="Completed"&&!w,footerProps:{primaryButton:V(),cancelButton:q,hideCancel:C}})]})},j=(e,o,s,d)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(t=>{const i=K(s,t.submittedBy,d);return{id:t.transactionId,leftSideText:{title:t.reimbursement?.reportTitle!=null?t.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:i!=null?`${a.by} ${i?.firstName} ${i?.lastName}`:a.strings.empty},rightSideText:{title:X("0,0.[00]",t.reimbursement?.amount?.amount,t.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:t.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:t.reviewStatus??""}}})},Z=e=>{const{this_:o,these:s,report:d,reports:u,payment:t,payments:i}=a.texts;return e>1?{title:n.popUps.reject.title.replace("__report__",n.reports),description:n.popUps.reject.description.replaceAll("<_this_>",s).replaceAll("<_payment_>",i).replaceAll("__report__",u)}:{title:n.popUps.reject.title.replace("__report__",n.report),description:n.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",t).replaceAll("__report__",d)}},ee=(e,o,s,d)=>{const{has:u,have:t,report:i,reports:p,are:r,is:b,do_:y,does:g}=a.texts,T=o>1,l=s>1;let v="",m="";return e==="Completed"&&!d?(v=n.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:n.report).replace("<_has_>",l?t:u),o===0?m=n.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?p:i).replace("<_do_>",l?y:g):m=`${o}/${s} ${n.reviewPage.reportsReviewed.description.replace("__report__",s>1?p:i).replace("<_is_>",T?r:b)}`):(v=n.reviewPage.reportsReviewing.title.replace("__report__",l?p:i),m=n.reviewPage.reportsReviewing.description.replace("__report__",l?p:i)),{title:v,description:m}};export{_e as default};
1
+ import{ay as M,g6 as z,V as _,cy as W,cz as H,cA as J,kq as K,a_ as X,O as G}from"./index-B8J3c9-k.js";import{a as f}from"./sentry-xNvKSthz.js";import{Ha as Q}from"./zeni-epic-state-SAYXyeZn.js";import{u as Y}from"./ReviewOverlay-ClQg7d2j-j91vCn0m.js";import"./liveblocks-CN5hALk7.js";import"./core-C_RwbDgZ.js";import"./recharts-BkmpOx_p.js";import"./mui-B_fu8zAT.js";import"./lottie-B-zs781A.js";import"./analytics-TwdLweES.js";import"./lexical-DZ4skawM.js";import"./utils-4bW-VyLb.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]="53e9e259-50de-4362-a138-a8d899e585ce",e._sentryDebugIdIdentifier="sentry-dbid-53e9e259-50de-4362-a138-a8d899e585ce")}catch{}})();const{common:a,spendManagement:{reimbursement:B}}=G.getLocalizedStrings(),n=B.bulkActions;let R;const _e=({remisReviewView:e,isAdmin:o,analytics:s,onProceedForBulkActionClick:d,onCloseReviewItem:u,onCloseOverlay:t})=>{const{fetchState:i,bulkSubmissionFetchState:p,bulkOperationTypeSelected:r,currentTab:b,currentSubTab:y}=e,g=!1,T=M(),l=z(T),[v,m]=f.useState(!1),[h,A]=f.useState(j(e,g,o,l)),[w,D]=f.useState(g),[P,te]=f.useState(0),[S,$]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(P===h.length&&w&&(D(!1),clearInterval(R)),e.fetchState==="Completed"&&A(j(e,!1,o,l)),()=>{clearInterval(R)}),[h.length,P,w,e.fetchState,g,e,o,l]);const E=h.length,x=h.filter(c=>c.reviewStatus.code!=="error").length,F=()=>{const{title:c,description:k}=Z(x);$({type:"reject",title:c,description:k,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),s.trackReimbursementBulkSubmit(r,b,y),m(!0)},L={onOkClick:c=>{m(!1);const k=e.remisForReview.map(I=>I.reimbursement);s.trackReimbursementBulkPopupConfirm(r,b,y,Q(k.map(I=>I?.reimbursementTypesIncluded??[]))),d("reject",c)},onCancelClick:()=>{m(!1)}},{title:O,description:U}=ee(i,x,E,w),C=e.fetchState==="Completed"&&x===0,N=()=>{s.trackReimbursementBulkSubmit(r,b,y),d(r)},V=()=>{let c=a.footer.approve;return C?c=a.texts.close:r==="send_for_approval"&&(c=a.footer.submit),{label:c,isDisabled:i!=="Completed"||r==="reject"&&p==="In-Progress",isLoading:p==="In-Progress"&&(r==="send_for_approval"||r==="approve"),onClick:C?t:N,style:r==="send_for_approval"?{minWidth:"92px"}:{}}},q={label:r==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:r!=="reject"&&p==="In-Progress",isLoading:r==="reject"&&p==="In-Progress",reverseSpinnerColor:!1,onClick:r==="send_for_approval"?t:F,style:r==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[v?_.jsx(W,{titleComponent:_.jsx(J,{children:S.title}),descriptionComponent:_.jsx(H,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:L,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(Y,{title:O,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:h,onCloseReviewItem:u,onCloseOverlay:t,showFooter:e.fetchState==="Completed"&&!w,footerProps:{primaryButton:V(),cancelButton:q,hideCancel:C}})]})},j=(e,o,s,d)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(t=>{const i=K(s,t.submittedBy,d);return{id:t.transactionId,leftSideText:{title:t.reimbursement?.reportTitle!=null?t.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:i!=null?`${a.by} ${i?.firstName} ${i?.lastName}`:a.strings.empty},rightSideText:{title:X("0,0.[00]",t.reimbursement?.amount?.amount,t.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:t.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:t.reviewStatus??""}}})},Z=e=>{const{this_:o,these:s,report:d,reports:u,payment:t,payments:i}=a.texts;return e>1?{title:n.popUps.reject.title.replace("__report__",n.reports),description:n.popUps.reject.description.replaceAll("<_this_>",s).replaceAll("<_payment_>",i).replaceAll("__report__",u)}:{title:n.popUps.reject.title.replace("__report__",n.report),description:n.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",t).replaceAll("__report__",d)}},ee=(e,o,s,d)=>{const{has:u,have:t,report:i,reports:p,are:r,is:b,do_:y,does:g}=a.texts,T=o>1,l=s>1;let v="",m="";return e==="Completed"&&!d?(v=n.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:n.report).replace("<_has_>",l?t:u),o===0?m=n.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?p:i).replace("<_do_>",l?y:g):m=`${o}/${s} ${n.reviewPage.reportsReviewed.description.replace("__report__",s>1?p:i).replace("<_is_>",T?r:b)}`):(v=n.reviewPage.reportsReviewing.title.replace("__report__",l?p:i),m=n.reviewPage.reportsReviewing.description.replace("__report__",l?p:i)),{title:v,description:m}};export{_e as default};
@@ -1,4 +1,4 @@
1
- import{g as l,V as r,aP as a,b4 as f,O as m,ac as y,aU as h,bG as g,ak as u,o as c,b5 as w}from"./index-aCBnCBoN.js";import{n as s}from"./mui-BosmckWV.js";import{a as d}from"./sentry-DzaNjvx0.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]="9ed483a1-2499-4b50-b63c-0088e23eec04",e._sentryDebugIdIdentifier="sentry-dbid-9ed483a1-2499-4b50-b63c-0088e23eec04")}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 x=s(h)`
1
+ import{g as l,V as r,aP as a,b4 as f,O as m,ac as y,aU as h,bG as g,ak as u,o as c,b5 as w}from"./index-B8J3c9-k.js";import{n as s}from"./mui-B_fu8zAT.js";import{a as d}from"./sentry-xNvKSthz.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]="9ed483a1-2499-4b50-b63c-0088e23eec04",e._sentryDebugIdIdentifier="sentry-dbid-9ed483a1-2499-4b50-b63c-0088e23eec04")}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 x=s(h)`
2
2
  justify-content: flex-start;
3
3
  `;function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{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,4 +1,4 @@
1
- import{g as oe,e as he,cl as ye,aa as _e,V as o,aq as we,cm as se,ae as $e,x as S,aT as ve,o as r,O as te,cn as ke,co as Ce,cp as je,cq as Ne,cr as Ie,ao as ue,cs as Se,ak as Pe,aG as ee,bG as Oe,u as f,aX as De,an as Fe,av as Te}from"./index-aCBnCBoN.js";import{a as u,P as pe}from"./sentry-DzaNjvx0.js";import{n as d}from"./mui-BosmckWV.js";import{t as P,n as Ae}from"./CollapsableReportTable-gy7Ue_fk-D4P0G-Lp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="52fa64d0-e9ef-4ad6-852b-f403d5a471ca",e._sentryDebugIdIdentifier="sentry-dbid-52fa64d0-e9ef-4ad6-852b-f403d5a471ca")}catch{}})();const R=te.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Ee=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Le=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Be(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(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Ee(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Le(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed,class_view_layout:e.accountViewMode==="classes"?e.classViewLayout:void 0}}async function uo(e,i,a){const t=te.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Be(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:i,fileType:a.statementFileType});if(h.ok){const y=Ce(h.headers,t.defaultFileName),_=await h.arrayBuffer();je(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const He=d.div`
1
+ import{g as oe,e as he,cl as ye,aa as _e,V as o,aq as we,cm as se,ae as $e,x as S,aT as ve,o as r,O as te,cn as ke,co as Ce,cp as je,cq as Ne,cr as Ie,ao as ue,cs as Se,ak as Pe,aG as ee,bG as Oe,u as f,aX as De,an as Fe,av as Te}from"./index-B8J3c9-k.js";import{a as u,P as pe}from"./sentry-xNvKSthz.js";import{n as d}from"./mui-B_fu8zAT.js";import{t as P,n as Ae}from"./CollapsableReportTable-ClHwXtCj-D8daRiWx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="f5c741a4-b8ad-47fa-9931-c3695c37c3eb",e._sentryDebugIdIdentifier="sentry-dbid-f5c741a4-b8ad-47fa-9931-c3695c37c3eb")}catch{}})();const R=te.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Ee=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Le=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Be(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(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Ee(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Le(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed,class_view_layout:e.accountViewMode==="classes"?e.classViewLayout:void 0}}async function uo(e,i,a){const t=te.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Be(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:i,fileType:a.statementFileType});if(h.ok){const y=Ce(h.headers,t.defaultFileName),_=await h.arrayBuffer();je(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const He=d.div`
2
2
  padding: 0 ${r.sp3} 0 ${r.sp3};
3
3
  border: 1px solid ${e=>e.theme.colors.primary};
4
4
  background: ${e=>e.theme.colors.grey5};
@@ -1,7 +1,7 @@
1
- import{e as le,g as ce,ay as et,bQ as tt,bR as st,bS as ot,O as T,V as o,bT as nt,ac as F,bF as at,bq as it,bE as rt,bU as lt,o as _,aV as ct,L as dt,bV as pt,x as U,bW as ut,u as L,aq as me,K as D,bX as ge,ak as de,bY as Te,aG as Ae,W as ht,aX as ft,an as Be,au as mt,bN as gt}from"./index-aCBnCBoN.js";import{a as C,P as ke}from"./sentry-DzaNjvx0.js";import{n as h}from"./mui-BosmckWV.js";import{a as bt}from"./liveblocks-CEY7tsth.js";import{bg as be,FD as _t,FM as yt,FN as xt,FO as X,FP as wt,FQ as St,FR as Ct,FS as Rt,FT as Ot,FU as pe,FV as ue,FW as $e}from"./zeni-epic-state-BNpJ2txa.js";import{j as vt,z as he}from"./mapTimeframeBalancesToTreeNode-UsawmMLa-_s__LV61.js";import{m as K,l as ae}from"./analyticsHelper-Bh8o1v3y-C4Sojiq_.js";import{b as Tt}from"./ReportTableViewSelector-DTk1dNWC-B6Y4EDN-.js";import{S as J,y as At,M as Bt,$ as kt,v as $t}from"./TimeRangeSwitcher-SqY2MHGs-Bpa_mFEa.js";import{X as Lt}from"./TimeframeSwitcherWithToggle-Dgc1odUH-CNwpIwWb.js";import{DownloadOverlayButton as Nt}from"./DownloadOverlay-Cmd727bN-BHplNe_3.js";import{Z as jt,n as Mt,t as V,j as Le}from"./CollapsableReportTable-gy7Ue_fk-D4P0G-Lp.js";import{D as Ne,T as je,C as ee,L as It,g as Me}from"./mapSectionWithAcOnlyToTreeNode-D7pjBGp6-Bef-KTrw.js";import{d as Ft,l as Pt}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-B-aNuSSK-BvCkLSPj.js";import{d as Vt}from"./mapLoadingInProgressToTreeNode-DTyQHWMc-CfKVg64X.js";import"./core-Cjh03OPu.js";import"./lottie-BmLFYENY.js";import"./recharts-CimMNwCJ.js";import"./analytics-B_VWX-BQ.js";import"./lexical-9REae7LV.js";import"./utils-THjX-QSp.js";import"./TimeframeSwitcher-BlJ2fuHy-8yHS99Lr.js";import"./page-detail-CWX5S47F-C2A7RuXG.js";import"./AccountRow-CdgvnPG8-BbJV8Q8M.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]="77b696f1-6864-4826-8a55-b2e7e8e47f07",e._sentryDebugIdIdentifier="sentry-dbid-77b696f1-6864-4826-8a55-b2e7e8e47f07")}catch{}})();const Et=h.div`
1
+ import{e as le,g as ce,ay as Je,bQ as et,bR as tt,bS as st,O as T,V as o,bT as ot,ac as F,bF as nt,bq as at,bE as it,bU as rt,o as _,aV as lt,L as ct,bV as dt,x as U,bW as pt,u as L,aq as me,K as D,bX as ge,bY as ut,ak as de,av as ht,bZ as ft,aG as Te,W as mt,aX as gt,an as Ae,au as bt,bN as _t}from"./index-B8J3c9-k.js";import{a as C,P as Be}from"./sentry-xNvKSthz.js";import{n as h}from"./mui-B_fu8zAT.js";import{a as yt}from"./liveblocks-CN5hALk7.js";import{bg as be,FD as xt,FM as wt,FN as St,FO as X,FP as Ct,FQ as Rt,FR as Ot,FS as vt,FT as Tt,FU as pe,FV as ue,FW as ke}from"./zeni-epic-state-SAYXyeZn.js";import{j as At,z as he}from"./mapTimeframeBalancesToTreeNode-CvVUjW74-DDD8EZiJ.js";import{m as K,l as ae}from"./analyticsHelper-DjQYjslY-DBXj-dJs.js";import{b as Bt}from"./ReportTableViewSelector-DvCk55Hn-CTarIpK9.js";import{S as J,y as kt,M as $t,$ as Lt,v as Nt}from"./TimeRangeSwitcher-DpUOmqiR-DjFTIpwn.js";import{X as jt}from"./TimeframeSwitcherWithToggle-DECnQIMT-Cmt_c04c.js";import{DownloadOverlayButton as Mt}from"./DownloadOverlay-B7M2VI7K-8UWWddqd.js";import{Z as It,n as Ft,t as V,j as $e}from"./CollapsableReportTable-ClHwXtCj-D8daRiWx.js";import{D as Le,T as Ne,C as ee,L as Pt,g as je}from"./mapSectionWithAcOnlyToTreeNode-COcUb2pF-kcDRUVhM.js";import{d as Vt,l as Et}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-B7LYTZXQ-71mHcXTa.js";import{d as Dt}from"./mapLoadingInProgressToTreeNode-lABm-2N9-B58RPCeu.js";import"./core-C_RwbDgZ.js";import"./lottie-B-zs781A.js";import"./recharts-BkmpOx_p.js";import"./analytics-TwdLweES.js";import"./lexical-DZ4skawM.js";import"./utils-4bW-VyLb.js";import"./TimeframeSwitcher-BKEtsv_r-DfkM31PQ.js";import"./page-detail-CWX5S47F-CvAL0hAO.js";import"./AccountRow-Dczx5rSu-C_XsKKay.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]="aa9cfc6d-24c7-4ef8-8863-ab5cf22ed82a",e._sentryDebugIdIdentifier="sentry-dbid-aa9cfc6d-24c7-4ef8-8863-ab5cf22ed82a")}catch{}})();const zt=h.div`
2
2
  position: relative;
3
3
  width: 100%;
4
- `,Dt=h.div`
4
+ `,Ut=h.div`
5
5
  display: flex;
6
6
  width: 100%;
7
7
  flex-direction: row;
@@ -11,18 +11,22 @@ import{e as le,g as ce,ay as et,bQ as tt,bR as st,bS as ot,O as T,V as o,bT as n
11
11
  box-sizing: content-box;
12
12
  border-top: 1px solid ${e=>e.theme.colors.grey3};
13
13
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
14
- `,zt=h.div`
14
+ `,Wt=h.div`
15
15
  position: relative;
16
16
  width: auto;
17
17
  max-width: 100%;
18
- `,Ut=h(de)`
18
+ `,Yt=h(de)`
19
19
  color: ${e=>e.theme.colors.primary};
20
- `,Yt=h(Te)`
21
- color: ${e=>e.theme.colors.hero};
20
+ `,Gt=h(ut)`
21
+ color: ${e=>e.theme.colors.primary};
22
+ width: ${_.sp3};
23
+ height: ${_.sp3};
24
+ flex-shrink: 0;
25
+ `,Ht=h(ht)`
22
26
  width: 12px;
23
27
  height: 12px;
24
28
  flex-shrink: 0;
25
- `,Wt=h.div`
29
+ `,qt=h.div`
26
30
  display: flex;
27
31
  align-items: center;
28
32
  justify-content: center;
@@ -31,14 +35,21 @@ import{e as le,g as ce,ay as et,bQ as tt,bR as st,bS as ot,O as T,V as o,bT as n
31
35
  padding: 0 ${_.sp3};
32
36
  box-sizing: border-box;
33
37
  cursor: pointer;
38
+ /* When the calendar popup is open, highlight the chevron */
39
+ .reports-period-slider-chevron {
40
+ color: ${e=>e.$isOpen===!0?e.theme.colors.primary:e.theme.colors.hero};
41
+ }
34
42
  /* Class-based hover targets: nested styled component refs need @emotion/babel-plugin in app builds */
43
+ &:hover .reports-period-slider-icon {
44
+ color: ${e=>e.theme.colors.primary};
45
+ }
35
46
  &:hover .reports-period-slider-label {
36
47
  color: ${e=>e.theme.colors.primary};
37
48
  }
38
49
  &:hover .reports-period-slider-chevron {
39
50
  color: ${e=>e.theme.colors.primary};
40
51
  }
41
- `,Gt=h.div`
52
+ `,Zt=h.div`
42
53
  display: flex;
43
54
  align-items: center;
44
55
  height: ${_.sp5};
@@ -54,17 +65,17 @@ import{e as le,g as ce,ay as et,bQ as tt,bR as st,bS as ot,O as T,V as o,bT as n
54
65
  &:hover {
55
66
  border-color: ${e=>e.theme.colors.primary};
56
67
  }
57
- `,Ht=h(de)`
68
+ `,Xt=h(de)`
58
69
  color: ${e=>e.theme.colors.hero};
59
70
  overflow: hidden;
60
71
  text-overflow: ellipsis;
61
72
  white-space: nowrap;
62
- `,qt=h(Te)`
73
+ `,Kt=h(ft)`
63
74
  color: ${e=>e.theme.colors.hero};
64
75
  width: 12px;
65
76
  height: 12px;
66
77
  flex-shrink: 0;
67
- `,Ie=h.div`
78
+ `,Me=h.div`
68
79
  position: absolute;
69
80
  top: calc(100% + ${_.sp1});
70
81
  left: 0;
@@ -74,14 +85,14 @@ import{e as le,g as ce,ay as et,bQ as tt,bR as st,bS as ot,O as T,V as o,bT as n
74
85
  border-radius: ${_.sp1};
75
86
  padding: ${_.sp3};
76
87
  min-width: 260px;
77
- `,Zt=h(Ie)`
88
+ `,Qt=h(Me)`
78
89
  left: 50%;
79
90
  transform: translateX(-50%);
80
- `,Xt=h.div`
91
+ `,Jt=h.div`
81
92
  display: flex;
82
93
  flex-direction: column;
83
94
  gap: ${_.sp3};
84
- `,Kt=h.div`
95
+ `,es=h.div`
85
96
  display: flex;
86
97
  align-items: center;
87
98
  gap: ${_.sp2};
@@ -99,37 +110,37 @@ import{e as le,g as ce,ay as et,bQ as tt,bR as st,bS as ot,O as T,V as o,bT as n
99
110
  background: ${e=>e.active?e.theme.colors.background:"transparent"};
100
111
  `,ye=h(de)`
101
112
  color: ${e=>e.theme.colors.hero};
102
- `,xe=h(Be)`
113
+ `,xe=h(Ae)`
103
114
  color: ${e=>e.theme.colors.primary};
104
- `,Qt=h(Be)`
115
+ `,ts=h(Ae)`
105
116
  color: ${e=>e.theme.colors.hero};
106
117
  flex-shrink: 0;
107
- `,Jt=h.div`
118
+ `,ss=h.div`
108
119
  display: flex;
109
120
  flex-direction: column;
110
121
  `,we=h.div`
111
122
  display: flex;
112
123
  flex-wrap: wrap;
113
- `,es=h.div`
124
+ `,os=h.div`
114
125
  border-top: 1px solid ${e=>e.theme.colors.grey3};
115
126
  width: 100%;
116
127
  margin: ${_.sp2} 0;
117
- `;function Q(e){const{dateFormat:{analytics:t}}=T.getLocalizedStrings();return e.startDate.format(t.YYYYFormat)}function H(e,t,s){return jt(s,e,t)}function ts(e,t,s,n){return t==="month"?e.startDate.format(n):H(e,t,s)}const ss=({allTimeframeTicks:e,bookCloseDate:t,firstMonthOfFY:s,fromIndex:n,selectedTimeframe:a,toIndex:c,onFromSelected:u,onToSelected:l})=>{const{dateFormat:{analytics:r}}=T.getLocalizedStrings(),d=T.getLocalizedStrings().reports,[f,g]=C.useState("from"),i=[...new Set(e.map(Q))],[p,S]=C.useState(()=>Q(e[n]??e[0])),R=w=>{g(w),S(Q(e[w==="from"?n:c]))},j=w=>{f==="from"?u(w):l(w)},$=e.map((w,k)=>({tick:w,index:k})).filter(({tick:w})=>Q(w)===p),b=e.length-1,y=b>=0&&xt(e[b]),B=H(e[n],a,s),N=H(e[c],a,s);return o.jsxs(Xt,{children:[o.jsxs(Kt,{children:[o.jsxs(_e,{active:f==="from",onClick:()=>R("from"),children:[o.jsx(ye,{children:d.periodRangeFrom}),o.jsx(xe,{children:B})]}),o.jsx(Qt,{children:"→"}),o.jsxs(_e,{active:f==="to",onClick:()=>R("to"),children:[o.jsx(ye,{children:d.periodRangeTo}),o.jsx(xe,{children:N})]})]}),o.jsxs(Jt,{children:[o.jsx(we,{children:i.map(w=>o.jsx(ge,{id:w,text:w,checked:w===p,textVariant:"small",onClick:k=>S(k)},w))}),o.jsx(es,{}),o.jsx(we,{children:$.map(({tick:w,index:k})=>{const I=ts(w,a,s,r.MMMFormat),O=f==="from"?k===n:k===c,A=t!=null&&w.startDate.isAfter(t),m=k===b,x=A&&!(y&&m),M=A&&y&&m;return o.jsx(ge,{id:String(k),text:I,checked:O,starred:x,doubleStarred:M,textVariant:"small",onClick:P=>j(Number.parseInt(P,10))},k)})})]})]})};function os(e){const{allTimeframeTicks:t,bookCloseDate:s,firstMonthOfFY:n,onCOABalancesRangeChanged:a,onDateRangeAnalytics:c,isCompareMode:u,referrer:l,selectedCOABalancesRange:r,selectedTimeframe:d,variant:f="default"}=e,[g,i]=C.useState(!1),p=t??[];if(d==="week"||d==="free_range"||p.length===0)return null;const S=Bt(p,r),R=r.numberOfPeriods??1,j=S.startIndex,$=Math.max(0,Math.min(j,p.length-1)),b=Math.min(Math.max($+S.length-1,0),p.length-1),y=H(p[$],d,n),B=H(p[b],d,n),N=(O,A)=>{const m=A-O+1,x={offsetFromEnd:p.length-1-A,length:m},M={startIndex:O,length:m},P=kt(p,x),Y=$t(p,M);P.thisPeriod!=null&&c!=null&&c(l,u,ae(n,d,P.thisPeriod)),a(P,Y),i(!1)},w=O=>{const A=O,m=Math.min(A+R-1,p.length-1);N(A,m)},k=O=>{const A=Math.min($,O),m=Math.max($,O);N(A,m)},I=g&&p.length>0?o.jsx(ss,{allTimeframeTicks:p,bookCloseDate:s,firstMonthOfFY:n,selectedTimeframe:d,fromIndex:$,toIndex:b,onFromSelected:w,onToSelected:k}):null;return f==="timeRangeSlider"?o.jsx(Dt,{children:o.jsx(me,{onClickAway:()=>i(!1),children:o.jsxs(zt,{"data-testid":F("reports-period-range-calendar"),children:[o.jsxs(Wt,{onClick:()=>i(O=>!O),children:[o.jsxs(Ut,{className:"reports-period-slider-label",children:[y," – ",B]}),o.jsx(Yt,{className:"reports-period-slider-chevron"})]}),I!=null?o.jsx(Zt,{children:I}):null]})})}):o.jsx(me,{onClickAway:()=>i(!1),children:o.jsxs(Et,{"data-testid":F("reports-period-range-calendar"),children:[o.jsxs(Gt,{onClick:()=>i(O=>!O),children:[o.jsxs(Ht,{children:[y," – ",B]}),o.jsx(qt,{})]}),I!=null?o.jsx(Ie,{children:I}):null]})})}function Fe({section:e,sectionId:t,numOfBalances:s,config:n}){return Le("no_filter",n.filterAccountsWithNilBalances,n.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(a=>ns({accountGroup:a,sectionType:t,numOfBalances:s,title:a.accountGroupName,isLastNode:!0,config:n}))}function ns({accountGroup:e,sectionType:t,numOfBalances:s,title:n,isLastNode:a,config:c}){const u=V("section",[],n+t),l={children:[],id:u,isLastNode:a,reportElementData:{element:{kind:"section",title:n,sectionType:t,data:e,numOfBalances:s},config:c}},r=Le("no_filter",c.filterAccountsWithNilBalances,c.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),d=r.map((f,g)=>Me({account:f,sectionType:t,numOfBalances:s,title:f.account.accountName,config:c,isLastNode:g===r.length-1,parentNodeIDs:[u],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:r.length>1,hasChildren:f.children.length>0,isLastNode:g===r.length-1}]}}));return l.children.push(...d),l}function Pe({sectionWithAcOnly:e,sectionType:t,numOfBalances:s,config:n}){return e.accounts.map((a,c)=>Me({account:a,sectionType:t,numOfBalances:s,title:a.account.accountName,config:n,isLastNode:c===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:a.children.length>0,isLastNode:c===e.accounts.length-1}]}}))}function Ve({balances:e,config:t,nodeId:s}){return{children:[],id:s??V("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 as(e){return e.reportId==="profit_and_loss_by_classes"&&"headerBalances"in e&&Array.isArray(e.headerBalances)}function ie(e,t){for(const s of e)s.reportElementData={...s.reportElementData,config:t},ie(s.children,t)}function is(e,t,s,n=!0){if(Object.assign(e.config,t),as(s))return ie(e.headerNodes,t),ie(e.contentNodes,t),{config:t,headerNodes:e.headerNodes,contentNodes:e.contentNodes};const a=Ee(s),c=he({balances:a,config:t});return{config:t,headerNodes:n?[c]:[],contentNodes:[c,...e.contentNodes.slice(1)]}}const Ee=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,s=t.sections?.expenses?.balances,n=t.sections?.income?.balances,a=t.sections?.expenses?.additionalBalances??[],c=t.sections?.income?.additionalBalances??[];return(s?.length??0)>0?[...s,...a]:(n?.length??0)>0?[...n,...c]:[]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let s=[];return Object.keys(t.sections).forEach(n=>{t.sections[n].balances.length>0&&(s=[...t.sections[n].balances,...t.sections[n].additionalBalances])}),s}default:return[]}};function rs(e,t,s=!0){const n=T.getLocalizedStrings().reports.sections,a=T.getLocalizedStrings().reports.balanceSheet,c=Ee(e),u=t.mode!=null&&t.mode==="this_period_vs_period_before"&&c.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=Ve({balances:c,config:t}),r=[];return r.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(d=>{const f=V("title_string_only",[],d),g={children:[],id:f,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:n[d],data:void 0,numOfBalances:0},config:t}};r.push(g),e.rootSectionsWithSubSectionIds[d].forEach(i=>{if(wt(i)===!0)if(e.sections[i].accountGroups.length>0)if(i==="equity"){const p=Fe({sectionId:i,section:e.sections[i],numOfBalances:u,config:t});r.push(...p)}else r.push(Ne({section:e.sections[i],sectionType:i,numOfBalances:u,title:a[i],isLastNode:!0,config:t}));else if(i==="equity"){const p=Pe({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:u,config:t});r.push(...p)}else{const p=e.sections[i];r.push(je({sectionWithAcOnly:p,sectionType:i,numOfBalances:u,title:a[i],isLastNode:!0,config:t}))}else St(i)===!0&&r.push(ee({calculatedSection:e.calculatedSections[i],numOfBalances:u,title:a[i],isLastNode:!0,config:t}))})}),{config:t,headerNodes:s?[l]:[],contentNodes:r}}function ls({calculatedSection:e,numOfBalances:t,title:s,isLastNode:n,config:a}){return{children:[],id:V("calculated_section_type1",[],s),isLastNode:n,reportElementData:{element:{kind:"calculated_section_type1",title:s,data:e,numOfBalances:t},config:a}}}function cs(e,t,s=!0){const n=T.getLocalizedStrings().reports.sections,a=T.getLocalizedStrings().reports.cashFlow,c=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],u=t.mode!=null&&t.mode==="this_period_vs_period_before"&&c.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=Ve({balances:c,config:t}),r=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(d=>{const f=V("title_string_only",[],d),g={children:[],id:f,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:n[d],data:void 0,numOfBalances:0},config:t}};r.push(g),e.rootSectionsWithSubSectionIds[d].forEach(i=>{if(Ct(i)===!0)if(e.sections[i].accountGroups.length>0){const p=Fe({sectionId:i,section:e.sections[i],numOfBalances:u,config:t});r.push(...p)}else{const p=Pe({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:u,config:t});r.push(...p)}else Rt(i)===!0?r.push(ls({calculatedSection:e.calculatedSections[i],numOfBalances:u,title:a[i],isLastNode:!0,config:t})):Ot(i)===!0&&r.push(ee({calculatedSection:e.calculatedSections[i],numOfBalances:u,title:a[i],isLastNode:!0,config:t}))})}),{config:t,headerNodes:s?[l]:[],contentNodes:[l,...r]}}function ds(e,t){const s=[];let n=[];const a=e.classColumns.length+1,c={children:[],id:V("class_headers",[]),isLastNode:!1,reportElementData:{element:{kind:"class_headers",title:"",data:e.classColumns,numOfBalances:a},config:t}};return s.push(c),n=[c],e.idsInOrder.forEach(u=>{if(pe(u)){const l=e.sections[u];l!=null&&s.push(ps(l,u,a,t,e))}else if(ue(u)){const l=e.calculatedSections[u];l!=null&&s.push(us(l,a,t,e))}}),{config:t,headerNodes:n,contentNodes:s}}function ps(e,t,s,n,a){const c=V("section",[],e.title),u=e.treeLayout,l=e.sectionHeaderBalancesSlice??$e(a.firstMonthOfFY),r={children:[],id:c,isLastNode:!0,reportElementData:{element:{kind:"section",title:e.title,sectionType:t,data:l,numOfBalances:s},config:n}};if(u==null)return r;const d=new Map;for(const[f,g]of Object.entries(u.childrenRowIndicesByParent))d.set(Number(f),g);return u.rootAccountRowIndices.forEach((f,g)=>{r.children.push(De(f,e.accounts,d,s,n,[c],g===u.rootAccountRowIndices.length-1))}),r}function De(e,t,s,n,a,c,u){const l=t[e],r=l.accountReportData,d=s.get(e)??[],f=V("ac_report",c,l.accountId);return{children:d.map((g,i)=>De(g,t,s,n,a,[...c,f],i===d.length-1)),id:f,isLastNode:u,reportElementData:{element:{kind:"ac_report",title:l.accountName,data:r,numOfBalances:n},config:a}}}function us(e,t,s,n){const a=e.sectionHeaderBalancesSlice??$e(n.firstMonthOfFY);return{children:[],id:V("calculated_section",[],e.title),isLastNode:!0,reportElementData:{element:{kind:"calculated_section",title:e.title,data:a,numOfBalances:t},config:s}}}function hs(e,t,s=!0,n=!1){const a=T.getLocalizedStrings().reports,c=T.getLocalizedStrings().common;let u=[];const l=[];let r=[];if(n===!0){const d=Ft({title:c.loading,balances:[],config:t});d.reportElementData.element.numOfBalances=6,s&&(r=[d]),l.push(d),[...Array(8)].forEach((f,g)=>{const i=g%4;let p=Pt[i];const S=Vt({title:`${g}+${p}`,balances:u,config:t});S.reportElementData.element.numOfBalances=6,l.push(S)})}else{const d=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]:[],f=he({balances:d,config:t}),g=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(f),s&&(r=[f]),e.idsInOrder.forEach(i=>{if(pe(i)===!0){const p=e.sections[i];p!=null&&l.push(It({section:p,sectionType:i,numOfBalances:g,title:a.sections[i],isLastNode:!0,config:t}))}else if(ue(i)===!0){const p=e.calculatedSections[i];p!=null&&l.push(ee({calculatedSection:p,numOfBalances:g,title:a.sections[i],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:r,contentNodes:l}}function fs(e,t,s=!0){const n=T.getLocalizedStrings().reports,a=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]:[],c=t.mode!=null&&t.mode==="this_period_vs_period_before"&&a.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,u=he({balances:a,config:t}),l=[];return l.push(u),e.idsInOrder.forEach(r=>{if(pe(r)===!0&&(e.sections[r].accountGroups.length>0?l.push(Ne({section:e.sections[r],sectionType:r,numOfBalances:c,title:n.sections[r],isLastNode:!0,config:t})):l.push(je({sectionWithAcOnly:e.sections[r],sectionType:r,numOfBalances:c,title:n.sections[r],isLastNode:!0,config:t}))),ue(r)===!0){const d=e.calculatedSections[r];d!=null&&l.push(ee({calculatedSection:d,numOfBalances:c,title:n.sections[r],isLastNode:!0,config:t}))}}),{config:t,headerNodes:s?[u]:[],contentNodes:l}}const Se={contentPaddingLeft:new U(L[0],L[0],L[0]),contentPaddingRight:new U(L[3],L[3],L[8])},ms=h.div`
128
+ `;function Q(e){const{dateFormat:{analytics:t}}=T.getLocalizedStrings();return e.startDate.format(t.YYYYFormat)}function H(e,t,s){return It(s,e,t)}function ns(e,t,s,n){return t==="month"?e.startDate.format(n):H(e,t,s)}const as=({allTimeframeTicks:e,bookCloseDate:t,firstMonthOfFY:s,fromIndex:n,selectedTimeframe:a,toIndex:c,onFromSelected:u,onToSelected:l})=>{const{dateFormat:{analytics:r}}=T.getLocalizedStrings(),d=T.getLocalizedStrings().reports,[f,g]=C.useState("from"),i=[...new Set(e.map(Q))],[p,S]=C.useState(()=>Q(e[n]??e[0])),R=w=>{g(w),S(Q(e[w==="from"?n:c]))},j=w=>{f==="from"?u(w):l(w)},$=e.map((w,k)=>({tick:w,index:k})).filter(({tick:w})=>Q(w)===p),b=e.length-1,y=b>=0&&St(e[b]),B=H(e[n],a,s),N=H(e[c],a,s);return o.jsxs(Jt,{children:[o.jsxs(es,{children:[o.jsxs(_e,{active:f==="from",onClick:()=>R("from"),children:[o.jsx(ye,{children:d.periodRangeFrom}),o.jsx(xe,{children:B})]}),o.jsx(ts,{children:"→"}),o.jsxs(_e,{active:f==="to",onClick:()=>R("to"),children:[o.jsx(ye,{children:d.periodRangeTo}),o.jsx(xe,{children:N})]})]}),o.jsxs(ss,{children:[o.jsx(we,{children:i.map(w=>o.jsx(ge,{id:w,text:w,checked:w===p,textVariant:"small",onClick:k=>S(k)},w))}),o.jsx(os,{}),o.jsx(we,{children:$.map(({tick:w,index:k})=>{const I=ns(w,a,s,r.MMMFormat),O=f==="from"?k===n:k===c,A=t!=null&&w.startDate.isAfter(t),m=k===b,x=A&&!(y&&m),M=A&&y&&m;return o.jsx(ge,{id:String(k),text:I,checked:O,starred:x,doubleStarred:M,textVariant:"small",onClick:P=>j(Number.parseInt(P,10))},k)})})]})]})};function is(e){const{allTimeframeTicks:t,bookCloseDate:s,firstMonthOfFY:n,onCOABalancesRangeChanged:a,onDateRangeAnalytics:c,isCompareMode:u,referrer:l,selectedCOABalancesRange:r,selectedTimeframe:d,variant:f="default"}=e,[g,i]=C.useState(!1),p=t??[];if(d==="week"||d==="free_range"||p.length===0)return null;const S=$t(p,r),R=r.numberOfPeriods??1,j=S.startIndex,$=Math.max(0,Math.min(j,p.length-1)),b=Math.min(Math.max($+S.length-1,0),p.length-1),y=H(p[$],d,n),B=H(p[b],d,n),N=(O,A)=>{const m=A-O+1,x={offsetFromEnd:p.length-1-A,length:m},M={startIndex:O,length:m},P=Lt(p,x),W=Nt(p,M);P.thisPeriod!=null&&c!=null&&c(l,u,ae(n,d,P.thisPeriod)),a(P,W),i(!1)},w=O=>{const A=O,m=Math.min(A+R-1,p.length-1);N(A,m)},k=O=>{const A=Math.min($,O),m=Math.max($,O);N(A,m)},I=g&&p.length>0?o.jsx(as,{allTimeframeTicks:p,bookCloseDate:s,firstMonthOfFY:n,selectedTimeframe:d,fromIndex:$,toIndex:b,onFromSelected:w,onToSelected:k}):null;return f==="timeRangeSlider"?o.jsx(Ut,{children:o.jsx(me,{onClickAway:()=>i(!1),children:o.jsxs(Wt,{"data-testid":F("reports-period-range-calendar"),children:[o.jsxs(qt,{$isOpen:g,onClick:()=>i(O=>!O),children:[o.jsx(Gt,{className:"reports-period-slider-icon"}),o.jsxs(Yt,{className:"reports-period-slider-label",children:[y," – ",B]}),o.jsx(Ht,{className:"reports-period-slider-chevron"})]}),I!=null?o.jsx(Qt,{children:I}):null]})})}):o.jsx(me,{onClickAway:()=>i(!1),children:o.jsxs(zt,{"data-testid":F("reports-period-range-calendar"),children:[o.jsxs(Zt,{onClick:()=>i(O=>!O),children:[o.jsxs(Xt,{children:[y," – ",B]}),o.jsx(Kt,{})]}),I!=null?o.jsx(Me,{children:I}):null]})})}function Ie({section:e,sectionId:t,numOfBalances:s,config:n}){return $e("no_filter",n.filterAccountsWithNilBalances,n.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(a=>rs({accountGroup:a,sectionType:t,numOfBalances:s,title:a.accountGroupName,isLastNode:!0,config:n}))}function rs({accountGroup:e,sectionType:t,numOfBalances:s,title:n,isLastNode:a,config:c}){const u=V("section",[],n+t),l={children:[],id:u,isLastNode:a,reportElementData:{element:{kind:"section",title:n,sectionType:t,data:e,numOfBalances:s},config:c}},r=$e("no_filter",c.filterAccountsWithNilBalances,c.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),d=r.map((f,g)=>je({account:f,sectionType:t,numOfBalances:s,title:f.account.accountName,config:c,isLastNode:g===r.length-1,parentNodeIDs:[u],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:r.length>1,hasChildren:f.children.length>0,isLastNode:g===r.length-1}]}}));return l.children.push(...d),l}function Fe({sectionWithAcOnly:e,sectionType:t,numOfBalances:s,config:n}){return e.accounts.map((a,c)=>je({account:a,sectionType:t,numOfBalances:s,title:a.account.accountName,config:n,isLastNode:c===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:a.children.length>0,isLastNode:c===e.accounts.length-1}]}}))}function Pe({balances:e,config:t,nodeId:s}){return{children:[],id:s??V("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 ls(e){return e.reportId==="profit_and_loss_by_classes"&&"headerBalances"in e&&Array.isArray(e.headerBalances)}function ie(e,t){for(const s of e)s.reportElementData={...s.reportElementData,config:t},ie(s.children,t)}function cs(e,t,s,n=!0){if(Object.assign(e.config,t),ls(s))return ie(e.headerNodes,t),ie(e.contentNodes,t),{config:t,headerNodes:e.headerNodes,contentNodes:e.contentNodes};const a=Ve(s),c=he({balances:a,config:t});return{config:t,headerNodes:n?[c]:[],contentNodes:[c,...e.contentNodes.slice(1)]}}const Ve=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,s=t.sections?.expenses?.balances,n=t.sections?.income?.balances,a=t.sections?.expenses?.additionalBalances??[],c=t.sections?.income?.additionalBalances??[];return(s?.length??0)>0?[...s,...a]:(n?.length??0)>0?[...n,...c]:[]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let s=[];return Object.keys(t.sections).forEach(n=>{t.sections[n].balances.length>0&&(s=[...t.sections[n].balances,...t.sections[n].additionalBalances])}),s}default:return[]}};function ds(e,t,s=!0){const n=T.getLocalizedStrings().reports.sections,a=T.getLocalizedStrings().reports.balanceSheet,c=Ve(e),u=t.mode!=null&&t.mode==="this_period_vs_period_before"&&c.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=Pe({balances:c,config:t}),r=[];return r.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(d=>{const f=V("title_string_only",[],d),g={children:[],id:f,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:n[d],data:void 0,numOfBalances:0},config:t}};r.push(g),e.rootSectionsWithSubSectionIds[d].forEach(i=>{if(Ct(i)===!0)if(e.sections[i].accountGroups.length>0)if(i==="equity"){const p=Ie({sectionId:i,section:e.sections[i],numOfBalances:u,config:t});r.push(...p)}else r.push(Le({section:e.sections[i],sectionType:i,numOfBalances:u,title:a[i],isLastNode:!0,config:t}));else if(i==="equity"){const p=Fe({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:u,config:t});r.push(...p)}else{const p=e.sections[i];r.push(Ne({sectionWithAcOnly:p,sectionType:i,numOfBalances:u,title:a[i],isLastNode:!0,config:t}))}else Rt(i)===!0&&r.push(ee({calculatedSection:e.calculatedSections[i],numOfBalances:u,title:a[i],isLastNode:!0,config:t}))})}),{config:t,headerNodes:s?[l]:[],contentNodes:r}}function ps({calculatedSection:e,numOfBalances:t,title:s,isLastNode:n,config:a}){return{children:[],id:V("calculated_section_type1",[],s),isLastNode:n,reportElementData:{element:{kind:"calculated_section_type1",title:s,data:e,numOfBalances:t},config:a}}}function us(e,t,s=!0){const n=T.getLocalizedStrings().reports.sections,a=T.getLocalizedStrings().reports.cashFlow,c=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],u=t.mode!=null&&t.mode==="this_period_vs_period_before"&&c.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=Pe({balances:c,config:t}),r=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(d=>{const f=V("title_string_only",[],d),g={children:[],id:f,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:n[d],data:void 0,numOfBalances:0},config:t}};r.push(g),e.rootSectionsWithSubSectionIds[d].forEach(i=>{if(Ot(i)===!0)if(e.sections[i].accountGroups.length>0){const p=Ie({sectionId:i,section:e.sections[i],numOfBalances:u,config:t});r.push(...p)}else{const p=Fe({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:u,config:t});r.push(...p)}else vt(i)===!0?r.push(ps({calculatedSection:e.calculatedSections[i],numOfBalances:u,title:a[i],isLastNode:!0,config:t})):Tt(i)===!0&&r.push(ee({calculatedSection:e.calculatedSections[i],numOfBalances:u,title:a[i],isLastNode:!0,config:t}))})}),{config:t,headerNodes:s?[l]:[],contentNodes:[l,...r]}}function hs(e,t){const s=[];let n=[];const a=e.classColumns.length+1,c={children:[],id:V("class_headers",[]),isLastNode:!1,reportElementData:{element:{kind:"class_headers",title:"",data:e.classColumns,numOfBalances:a},config:t}};return s.push(c),n=[c],e.idsInOrder.forEach(u=>{if(pe(u)){const l=e.sections[u];l!=null&&s.push(fs(l,u,a,t,e))}else if(ue(u)){const l=e.calculatedSections[u];l!=null&&s.push(ms(l,a,t,e))}}),{config:t,headerNodes:n,contentNodes:s}}function fs(e,t,s,n,a){const c=V("section",[],e.title),u=e.treeLayout,l=e.sectionHeaderBalancesSlice??ke(a.firstMonthOfFY),r={children:[],id:c,isLastNode:!0,reportElementData:{element:{kind:"section",title:e.title,sectionType:t,data:l,numOfBalances:s},config:n}};if(u==null)return r;const d=new Map;for(const[f,g]of Object.entries(u.childrenRowIndicesByParent))d.set(Number(f),g);return u.rootAccountRowIndices.forEach((f,g)=>{r.children.push(Ee(f,e.accounts,d,s,n,[c],g===u.rootAccountRowIndices.length-1))}),r}function Ee(e,t,s,n,a,c,u){const l=t[e],r=l.accountReportData,d=s.get(e)??[],f=V("ac_report",c,l.accountId);return{children:d.map((g,i)=>Ee(g,t,s,n,a,[...c,f],i===d.length-1)),id:f,isLastNode:u,reportElementData:{element:{kind:"ac_report",title:l.accountName,data:r,numOfBalances:n},config:a}}}function ms(e,t,s,n){const a=e.sectionHeaderBalancesSlice??ke(n.firstMonthOfFY);return{children:[],id:V("calculated_section",[],e.title),isLastNode:!0,reportElementData:{element:{kind:"calculated_section",title:e.title,data:a,numOfBalances:t},config:s}}}function gs(e,t,s=!0,n=!1){const a=T.getLocalizedStrings().reports,c=T.getLocalizedStrings().common;let u=[];const l=[];let r=[];if(n===!0){const d=Vt({title:c.loading,balances:[],config:t});d.reportElementData.element.numOfBalances=6,s&&(r=[d]),l.push(d),[...Array(8)].forEach((f,g)=>{const i=g%4;let p=Et[i];const S=Dt({title:`${g}+${p}`,balances:u,config:t});S.reportElementData.element.numOfBalances=6,l.push(S)})}else{const d=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]:[],f=he({balances:d,config:t}),g=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(f),s&&(r=[f]),e.idsInOrder.forEach(i=>{if(pe(i)===!0){const p=e.sections[i];p!=null&&l.push(Pt({section:p,sectionType:i,numOfBalances:g,title:a.sections[i],isLastNode:!0,config:t}))}else if(ue(i)===!0){const p=e.calculatedSections[i];p!=null&&l.push(ee({calculatedSection:p,numOfBalances:g,title:a.sections[i],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:r,contentNodes:l}}function bs(e,t,s=!0){const n=T.getLocalizedStrings().reports,a=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]:[],c=t.mode!=null&&t.mode==="this_period_vs_period_before"&&a.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,u=he({balances:a,config:t}),l=[];return l.push(u),e.idsInOrder.forEach(r=>{if(pe(r)===!0&&(e.sections[r].accountGroups.length>0?l.push(Le({section:e.sections[r],sectionType:r,numOfBalances:c,title:n.sections[r],isLastNode:!0,config:t})):l.push(Ne({sectionWithAcOnly:e.sections[r],sectionType:r,numOfBalances:c,title:n.sections[r],isLastNode:!0,config:t}))),ue(r)===!0){const d=e.calculatedSections[r];d!=null&&l.push(ee({calculatedSection:d,numOfBalances:c,title:n.sections[r],isLastNode:!0,config:t}))}}),{config:t,headerNodes:s?[u]:[],contentNodes:l}}const Se={contentPaddingLeft:new U(L[0],L[0],L[0]),contentPaddingRight:new U(L[3],L[3],L[8])},_s=h.div`
118
129
  height: ${e=>e.height}px;
119
130
  width: 99.9%;
120
131
  margin-top: ${_.sp2};
121
132
  background-color: ${e=>e.theme.colors.grey4};
122
- `;function gs({report:e,displayOrder:t,reportFormat:s,analytics:n,isZeniUser:a,onAdditionalBalanceSelectionChanged:c,onAccountBalanceClick:u,onTableScroll:l,onElementCollapseStateChanged:r,isCompareModeOn:d,isPageFetchInProgress:f=!1,onTreeNodesReady:g,treeRef:i}){const p=le(),S=ce(),[R,j]=C.useState(void 0),[$,b]=C.useState(void 0),y=!(p==="small"||p==="medium-compact"),B="name+balances_actual",N=d===!0?"this_period_vs_period_before":"none",w=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const x=e;m=(x.sections.expenses.balances.length>0?x.sections.expenses:x.sections.income).additionalBalances.map(M=>X(M));break}case"profit_and_loss_by_classes":{const x=e,M=(x.sections.expenses?.balances?.length??0)>0?x.sections.expenses:null,P=(x.sections.income?.balances?.length??0)>0?x.sections.income:null,Y=M??P;Y?.additionalBalances!=null&&(m=Y.additionalBalances.map(q=>X(q)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(x=>X(x));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(x=>X(x));break}}return m.length>0&&m.find(x=>x.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};C.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:N,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:s,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:gt(),showClassAccountNumber:a};if(R==null||!Ae($,e)||f===!0){const x=bs(e,m,y,f);b(e),j(x)}else{const x=is(R,m,e,y);j(x)}},[d,e,f]),C.useEffect(()=>{R?.contentNodes!=null&&g?.(R.contentNodes)},[R,g]);const[k,I]=C.useState(5),O=m=>{const x=m+135;I(x)},A=m=>m?.trackPageLoaded(_s(e));return R!=null?o.jsxs(o.Fragment,{children:[o.jsx(ht,{analytics:n,onLoad:A}),o.jsx(ms,{height:k,children:o.jsx(Mt,{backgroundColor:new ft(S.colors.grey4),rootNodes:R,type:B,compareMode:w(),isSticky:{isStickyHeader:y,isStickyName:y},treeNodePadding:{left:Se.contentPaddingLeft.value(p),right:Se.contentPaddingRight.value(p)},treeRef:i,onAccountClick:u==null?void 0:(m,x,M)=>{u(m,x,M)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>c?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,x)=>r?.(e.reportId,m,x),onReportTableHeightChanged:O,onScroll:m=>l?.(e.reportId,m)})})]}):null}const bs=(e,t,s=!0,n=!1)=>{switch(e.reportId){case"profit_and_loss":return fs(e,t,s);case"profit_and_loss_by_classes":{const a=e;return a.classColumns!=null&&a.reportTitle==="Profit and Loss by Class"?ds(a,t):hs(e,t,s,n)}case"cash_flow":return cs(e,t,s);case"balance_sheet":return rs(e,t,s);default:return}},_s=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return D.Event.profitAndLoss;case"cash_flow":return D.Event.cashFlow;case"balance_sheet":return D.Event.balanceSheet;default:return D.Event.reports}},ys=h.div`
133
+ `;function ys({report:e,displayOrder:t,reportFormat:s,analytics:n,isZeniUser:a,onAdditionalBalanceSelectionChanged:c,onAccountBalanceClick:u,onTableScroll:l,onElementCollapseStateChanged:r,isCompareModeOn:d,isPageFetchInProgress:f=!1,onTreeNodesReady:g,treeRef:i}){const p=le(),S=ce(),[R,j]=C.useState(void 0),[$,b]=C.useState(void 0),y=!(p==="small"||p==="medium-compact"),B="name+balances_actual",N=d===!0?"this_period_vs_period_before":"none",w=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const x=e;m=(x.sections.expenses.balances.length>0?x.sections.expenses:x.sections.income).additionalBalances.map(M=>X(M));break}case"profit_and_loss_by_classes":{const x=e,M=(x.sections.expenses?.balances?.length??0)>0?x.sections.expenses:null,P=(x.sections.income?.balances?.length??0)>0?x.sections.income:null,W=M??P;W?.additionalBalances!=null&&(m=W.additionalBalances.map(q=>X(q)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(x=>X(x));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(x=>X(x));break}}return m.length>0&&m.find(x=>x.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};C.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:N,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:s,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:_t(),showClassAccountNumber:a};if(R==null||!Te($,e)||f===!0){const x=xs(e,m,y,f);b(e),j(x)}else{const x=cs(R,m,e,y);j(x)}},[d,e,f]),C.useEffect(()=>{R?.contentNodes!=null&&g?.(R.contentNodes)},[R,g]);const[k,I]=C.useState(5),O=m=>{const x=m+135;I(x)},A=m=>m?.trackPageLoaded(ws(e));return R!=null?o.jsxs(o.Fragment,{children:[o.jsx(mt,{analytics:n,onLoad:A}),o.jsx(_s,{height:k,children:o.jsx(Ft,{backgroundColor:new gt(S.colors.grey4),rootNodes:R,type:B,compareMode:w(),isSticky:{isStickyHeader:y,isStickyName:y},treeNodePadding:{left:Se.contentPaddingLeft.value(p),right:Se.contentPaddingRight.value(p)},treeRef:i,onAccountClick:u==null?void 0:(m,x,M)=>{u(m,x,M)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>c?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,x)=>r?.(e.reportId,m,x),onReportTableHeightChanged:O,onScroll:m=>l?.(e.reportId,m)})})]}):null}const xs=(e,t,s=!0,n=!1)=>{switch(e.reportId){case"profit_and_loss":return bs(e,t,s);case"profit_and_loss_by_classes":{const a=e;return a.classColumns!=null&&a.reportTitle==="Profit and Loss by Class"?hs(a,t):gs(e,t,s,n)}case"cash_flow":return us(e,t,s);case"balance_sheet":return ds(e,t,s);default:return}},ws=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return D.Event.profitAndLoss;case"cash_flow":return D.Event.cashFlow;case"balance_sheet":return D.Event.balanceSheet;default:return D.Event.reports}},Ss=h.div`
123
134
  display: flex;
124
135
  flex-direction: row;
125
136
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
126
137
  justify-content: center;
127
138
  width: 100%;
128
139
  align-items: center;
129
- `,xs=h.div`
140
+ `,Cs=h.div`
130
141
  display: flex;
131
142
  position: relative;
132
- `,ws=h(mt)`
143
+ `,Rs=h(bt)`
133
144
  padding: 12px;
134
145
  color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
135
146
  cursor: ${e=>e.isSelected?"default":"pointer"};
@@ -140,7 +151,7 @@ import{e as le,g as ce,ay as et,bQ as tt,bR as st,bS as ot,O as T,V as o,bT as n
140
151
  &:hover {
141
152
  color: ${e=>e.theme.colors.primary};
142
153
  }
143
- `,Ss=h.div`
154
+ `,Os=h.div`
144
155
  height: 2px;
145
156
  background-color: ${e=>e.theme.colors.primary};
146
157
  border-radius: 1px;
@@ -165,19 +176,19 @@ import{e as le,g as ce,ay as et,bQ as tt,bR as st,bS as ot,O as T,V as o,bT as n
165
176
  width: 160px;
166
177
  left: 63%;
167
178
  }
168
- `,Cs=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return T.getLocalizedStrings().reportTitleById[e];default:throw new Error("Unsupported report")}};function Rs({reportId:e,isSelected:t,onClick:s}){return o.jsx(ws,{"data-testid":F("reportSwitcher",e),onClick:()=>{t===!1&&s(e)},isSelected:t,spaceAround:e==="balance_sheet",children:Cs(e)})}function Os({reportIds:e,selectedReport:t,onReportSelectionChanged:s}){const n=a=>{s?.(a)};return o.jsx(ys,{"data-testid":F("report-switcher-container"),children:o.jsx(xs,{"data-testid":F("report-switcher-content"),children:e.map(a=>a!=="profit_and_loss_by_classes"&&o.jsxs("div",{children:[o.jsx(Rs,{reportId:a,isSelected:t===a,onClick:n}),o.jsx(Ss,{className:`Slider ${t}`})]},`reportSegment-${a}`))})})}const G={contentContainerLeftRightMargin:new U(L[3],L[3],L[8]),contentRightPadding:new U(L[3],L[3],L[8]),tickSkeletonContainerWidth:new U(343,600,905,1240)},{collaboration:{threads:{placeholder:Ce,tooltip:Re,title:{comments:vs}}}}=T.getLocalizedStrings(),Ts=new U(4,4),As=new U(4,4),Bs={selectedNumberOfPeriods:(e,t)=>e?As.value(t):Ts.value(t)},ks=h.div`
179
+ `,vs=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return T.getLocalizedStrings().reportTitleById[e];default:throw new Error("Unsupported report")}};function Ts({reportId:e,isSelected:t,onClick:s}){return o.jsx(Rs,{"data-testid":F("reportSwitcher",e),onClick:()=>{t===!1&&s(e)},isSelected:t,spaceAround:e==="balance_sheet",children:vs(e)})}function As({reportIds:e,selectedReport:t,onReportSelectionChanged:s}){const n=a=>{s?.(a)};return o.jsx(Ss,{"data-testid":F("report-switcher-container"),children:o.jsx(Cs,{"data-testid":F("report-switcher-content"),children:e.map(a=>a!=="profit_and_loss_by_classes"&&o.jsxs("div",{children:[o.jsx(Ts,{reportId:a,isSelected:t===a,onClick:n}),o.jsx(Os,{className:`Slider ${t}`})]},`reportSegment-${a}`))})})}const G={contentContainerLeftRightMargin:new U(L[3],L[3],L[8]),contentRightPadding:new U(L[3],L[3],L[8]),tickSkeletonContainerWidth:new U(343,600,905,1240)},{collaboration:{threads:{placeholder:Ce,tooltip:Re,title:{comments:Bs}}}}=T.getLocalizedStrings(),ks=new U(4,4),$s=new U(4,4),Ls={selectedNumberOfPeriods:(e,t)=>e?$s.value(t):ks.value(t)},Ns=h.div`
169
180
  display: flex;
170
181
  flex: 1 1 auto;
171
182
  min-height: 100%;
172
183
  flex-direction: column;
173
184
  background-color: ${e=>e.theme.colors.grey4};
174
- `,$s=h.div`
185
+ `,js=h.div`
175
186
  display: flex;
176
187
  flex: 1 1 auto;
177
188
  flex-direction: column;
178
189
  height: calc(100vh - ${_.sp10});
179
190
  margin: ${e=>`${_.sp2} ${_.sp0} ${_.sp0} ${G.contentContainerLeftRightMargin.valuePx(e.windowSize)}`};
180
- `,Ls=h.div`
191
+ `,Ms=h.div`
181
192
  display: flex;
182
193
  width: 100%;
183
194
  height: 100%;
@@ -185,18 +196,18 @@ import{e as le,g as ce,ay as et,bQ as tt,bR as st,bS as ot,O as T,V as o,bT as n
185
196
  justify-content: center;
186
197
  align-items: center;
187
198
  background-color: ${e=>e.theme.colors.grey4};
188
- `,Ns=h.div`
199
+ `,Is=h.div`
189
200
  position: absolute;
190
201
  margin-top: ${e=>e.windowSize==="small"?"230px":"195px"};
191
202
  background-color: ${e=>e.theme.colors.grey4};
192
- `,js=h.div`
203
+ `,Fs=h.div`
193
204
  display: flex;
194
205
  width: 100%;
195
206
  height: calc(100% - 60px);
196
207
  flex-direction: column;
197
208
  justify-content: center;
198
209
  align-items: center;
199
- `,Ms=h.div`
210
+ `,Ps=h.div`
200
211
  height: 96px;
201
212
  width: 96px;
202
213
  background: ${e=>e.theme.colors.background};
@@ -211,18 +222,18 @@ import{e as le,g as ce,ay as et,bQ as tt,bR as st,bS as ot,O as T,V as o,bT as n
211
222
  color: ${e=>e.theme.colors.primary};
212
223
  }
213
224
  }
214
- `,Is=h(ct)`
225
+ `,Vs=h(lt)`
215
226
  margin-top: ${_.sp3};
216
227
  color: ${e=>e.theme.colors.hero};
217
- `,ze=({style:e,isLoading:t})=>t?o.jsx(Ls,{style:e,children:o.jsx(dt,{size:"ExtraLarge",start:!0})}):null,W=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},Ue=e=>{if(e.selectedReport==="profit_and_loss_by_classes"&&e.profitAndLossClassesViewReport?.uiState.classViewLayout==="horizontal"){const t=e.profitAndLossByClassHorizontalReport;return t.selectedPeriod!=null?t:W(e)}return W(e)},re=({selectedReport:e,isCompareModeOn:t,windowSize:s})=>{const n=e.availableNumberOfPeriods;let a=Bs.selectedNumberOfPeriods(t,s);return n!=null&&(a=Math.min(a,n)),a};function xo(e){const t=le(),s=ce(),n=et(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:c,onAdditionalBalanceSelectionChanged:u,onTimeframeSelectionChanged:l,isCompareMode:r,selectedReportAndTimeframeFetchState:d,onClickMenuIcon:f,isReportsCommentingEnabled:g,initialOpenThreadRequest:i}=e,p=e.isZeniUser??!1,S=n?.currentTenant?.companyId,R=n?.currentTenant?.companyName??"",j=g===!0&&S!=null,$=`dashboard_${S}`,b=p?tt:st,{threads:y,isLoading:B,requestToOpenThread:N,setRequestToOpenThread:w,setOpenThread:k}=C.useContext(b);C.useEffect(()=>{i?.threadId!=null&&i?.companyId!=null&&i?.entityType!=null&&w(i)},[i,w]);const[I,O]=C.useState(!1),A=C.useMemo(()=>({application:"dashboard",companyId:S,tab:"standard_report",isGlobalComment:!1}),[S]),m=C.useMemo(()=>{const v=ot(y,A,"both");return Array.from(v.values())},[y,A]),x=C.useMemo(()=>m.filter(v=>v.resolved===!1),[m]).length,M=C.useCallback((v,E)=>{O(!1),w({threadId:E,companyId:v.companyId,entityType:v.entityType,threadMetadata:v})},[w]),[P,Y]=C.useState(void 0),q=C.useRef(null),We=C.useCallback(v=>{Y(v)},[]),Ge=C.useCallback(v=>{q.current?.scrollToItem(v,"center")},[]);vt({requestToOpenThread:N,setRequestToOpenThread:w,setOpenThread:k,allThreads:m,selectedReport:e.selectedReport,onReportSelectionChanged:e.onReportSelectionChanged,reportTreeRootNodes:P,nodeCollapseState:Ue(e).uiState.nodeCollapseState,onExpandNode:e.onElementCollapseStateChanged,scrollToNode:Ge});const He=C.useMemo(()=>({companyId:S??"",companyName:R,entityType:"standard_report.details",entityId:S??"",isGlobalComment:!1,application:"dashboard",tab:"standard_report",url:window.location.href}),[S,R]),qe=(v,E)=>{v!==Z?.accountViewMode&&a?.(v),E&&c?.(E)};C.useEffect(()=>{const v=e.selectedReport==="profit_and_loss_by_classes"&&e.profitAndLossClassesViewReport?.uiState?.classViewLayout==="horizontal";if(e.fetchState==="Completed"&&!v){const E=W(e).filter?.additionalBalances??[];e.onUpdateHighlightedNumberOfPeriods?.(E,e.isCompareMode,re({selectedReport:W(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe??[])}},[t,e.fetchState]);const Z=Vs(e),Ze=T.getLocalizedStrings().reports.common,Xe=n!=null&&be(n.loggedInUserRole)?"detailed":"more_detailed",te=n!=null&&be(n.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&Z?.accountViewMode==="account_group"&&te.push("detailed");const[Ke,Qe]=ke.useState(te.includes("more_detailed")?"detailed":"more_detailed"),Je={selectedFormat:Ke,disabledFormatForRole:te,roleBasedClassesSelectedFormat:Xe,setSelectedFormat:Qe};if(d.fetchState==="Error"||e.fetchState==="Error")return o.jsxs(js,{"data-testid":F("report-page-error-reload-page"),children:[o.jsx(Ms,{"data-testid":F("report-page-error-reload-icon"),onClick:e.onReloadReport,children:o.jsx(nt,{})}),o.jsx(Is,{children:Ze.failed})]});const fe=e.fetchState;if(d.fetchState!=="Completed"&&(fe==="In-Progress"||fe==="Not-Started"))return o.jsx(ze,{isLoading:!0});{const v=o.jsx(at,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:Z!=null&&e.dataAvailable!=null?o.jsx(Nt,{defaultOptions:Z,analytics:e.analytics,referrer:z(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:Je,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:qe,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(se,oe,ne)=>{u(r,se,oe,ne)},onTimeframeSelectionChanged:(se,oe,ne)=>{l?.(se,oe,ne)}}):o.jsx(o.Fragment,{})}}}),E=o.jsxs(Gs,{children:[j?o.jsxs(Hs,{onClick:()=>O(!0),"data-testid":F("reports-page-comment-button"),children:[o.jsx(it,{count:B?void 0:x,isLoading:B,style:{left:"12px"}}),o.jsx(qs,{})]}):null,v]});return o.jsxs(o.Fragment,{children:[o.jsxs(ks,{children:[o.jsx(rt,{title:T.getLocalizedStrings().reports.title,backgroundColor:s.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:f,rightSideComponent:E,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),o.jsx(Fs,{...e,onTreeNodesReady:We,treeRef:q})]}),j?o.jsx(bt,{id:$,children:o.jsx(lt,{isDrawerOpen:I,allowComposer:!0,drawerTitle:vs,threads:m,filter:A,autoExpand:!0,autoFocus:!1,isLoading:B,textOverrides:{composerPlaceholder:Ce.addANewComment,replyComposerPlaceholder:Ce.replyAComment,threadResolve:Re.resolveComment,threadUnResolve:Re.unResolveComment},threadMetadata:He,onThreadClick:M,onCloseAllThreadsDrawer:()=>O(!1),drawerSectionStyle:{width:t==="small"?"100%":"400px",boxSizing:t==="small"?"border-box":"content-box"},collapsibleThreadStyle:{width:t==="small"?"100%":"360px"}})}):null]})}}function Fs(e){const t=le(),s=ce(),n=C.useRef(null),{selectedReportAndTimeframeFetchState:a}=e,c=["month","quarter","year"],u=(b,y)=>{b!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(b),y&&e.onUpdateClassesToFilterOut?.(y)},l=W(e),r=n.current?.clientWidth??G.tickSkeletonContainerWidth.value(t),d=_t([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",f=a.fetchState==="In-Progress",g=e.profitAndLossClassesViewReport?.uiState,i=e.isHorizontalClassReportSwitchEnabled!==!1&&e.selectedReport==="profit_and_loss_by_classes"&&g?.accountViewMode==="classes",p=i&&g?.classViewLayout==="horizontal"&&e.onCOABalancesRangeChanged!=null&&a.fetchState==="Completed",S=i&&g?.classViewLayout==="horizontal",R=(b,y)=>{e.analytics?.trackCompareFilterChange(b==="this_period_vs_last_period_percent"?"percentage":"amount",z(e.selectedReport),K(e.selectedTimeframe),y);const B=Array.from(new Set(b==="this_period_vs_last_period_percent"?[...l.filter.additionalBalances,"this_period_vs_last_period_percent"].filter(N=>N!=="this_period_vs_last_period"):[...l.filter.additionalBalances,"this_period_vs_last_period"].filter(N=>N!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,B,re({selectedReport:l,isCompareModeOn:e.isCompareMode,windowSize:t}))},j=T.getLocalizedStrings().reports,$=e.analytics!=null?(b,y,B)=>{y===!0&&e.analytics?.trackCompareFilterTimeFrame(b,K(e.selectedTimeframe),"range filter",B),e.analytics?.trackDateRangeFilterChange(b,"range filter",y,B)}:void 0;return o.jsxs($s,{windowSize:t,"data-testid":F("reports-page-content-container"),children:[o.jsx(zs,{windowSize:t,ref:n,children:o.jsx(Lt,{timeframe:{allowedTimeframes:c,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:b=>{e.analytics?.trackTimeframeSwitch(K(b),z(e.selectedReport)),e.onTimeframeSelectionChanged?.(b,!0)}},toggle:{label:T.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,isToggleDisabled:S,onValueChanged:b=>{e.analytics?.trackCompareMode(b,z(e.selectedReport),K(e.selectedTimeframe));const y=l.filter;e.onAdditionalBalanceSelectionChanged?.(b,y.additionalBalances,y.balancesRange.numberOfPeriods)}},secondaryToggle:i?{label:j.horizontalClassLayoutSwitch,isOn:g?.classViewLayout==="horizontal",onValueChanged:b=>{e.onUpdateClassViewLayout?.(b?"horizontal":"vertical")}}:void 0,secondaryToggleDataTestId:F("reports-horizontal-class-layout-switch")})}),a.fetchState==="Not-Started"||a.fetchState==="In-Progress"?o.jsx(Us,{windowSize:t,children:o.jsx(Ys,{children:o.jsx(ut,{width:r,height:J-L[2],backgroundColor:s.colors.grey3,style:{borderRadius:_.sp2}})})}):p&&e.onCOABalancesRangeChanged!=null?o.jsx(ve,{windowSize:t,children:o.jsx(os,{allTimeframeTicks:e.allTimeframeTicks,bookCloseDate:l.bookCloseDate,firstMonthOfFY:l.firstMonthOfFY,onCOABalancesRangeChanged:e.onCOABalancesRangeChanged,onDateRangeAnalytics:$,isCompareMode:e.isCompareMode,referrer:z(e.selectedReport),selectedCOABalancesRange:e.selectedCOABalancesRange,selectedTimeframe:e.selectedTimeframe,variant:"timeRangeSlider"})}):o.jsx(ve,{windowSize:t,children:o.jsx(At,{firstMonthOfFY:l.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Oe(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Oe(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(b,y)=>{e.analytics?.trackDateRangeFilterChange(z(e.selectedReport),"range filter",e.isCompareMode,ae(l.firstMonthOfFY,e.selectedTimeframe,y)),e.onThisPeriodChanged?.(y,re({selectedReport:l,isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:b=>{const y=Ps(e.allTimeframeTicks,b.fromEnd);e.analytics?.trackDateRangeFilterChange(z(e.selectedReport),"range filter",e.isCompareMode,ae(l.firstMonthOfFY,e.selectedTimeframe,y.thisPeriod)),e.onCOABalancesRangeChanged?.(y)}})}),o.jsx(Ws,{windowSize:t,children:o.jsx(Os,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:b=>{e.analytics?.trackPageLoaded(Es(b)),b==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(b)}})}),a.fetchState==="Not-Started"||a.fetchState==="In-Progress"?o.jsx(ze,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:f}):o.jsxs(o.Fragment,{children:[o.jsx(Ye,{report:Ue(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:R,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:d,onTreeNodesReady:e.onTreeNodesReady,treeRef:e.treeRef}),yt(e.selectedReport)?o.jsx(Ns,{windowSize:t,children:o.jsx(Tt,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:u,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:d,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const Oe=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let s=e.length-1;return t.thisPeriod!=null&&(s=e.findIndex(n=>n.startDate.isSame(t.thisPeriod.startDate,"date")&&n.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(s+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},Ps=(e,t)=>{const s=e.length-1-t.offsetFromEnd;return{thisPeriod:e[s],numberOfPeriods:t.length,orderBy:"ascending_date"}};function Vs(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const l=e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes"&&e.profitAndLossClassesViewReport.uiState.classViewLayout==="horizontal",r=e.profitAndLossByClassHorizontalReport.headerBalances[0];if(l===!0&&r!=null)t=r;else{const d=e.displayOrder,f=e.profitAndLossReport.sections.expenses,g=e.profitAndLossReport.sections.income,i=f?.balances?.length??0,p=f!=null&&i>0?f:g;if(p!=null&&(p.balances?.length??0)>0){const S=p.balances??[],R=d==="ascending_date"?S.length-1:0;t=S[R]}}}const s=W(e),n=s.firstMonthOfFY,a=s.bookCloseDate,c=s.dataAvailable,u=s.filter.additionalBalances;if(t!=null)return{localeId:T.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:n,bookCloseDate:a,dataAvailable:c,timeframe:e.selectedTimeframe,additionalBalances:u,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed,classViewLayout:e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes"?e.profitAndLossClassesViewReport.uiState.classViewLayout:"vertical"}}const z=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},Es=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return D.Event.profitAndLoss;case"cash_flow":return D.Event.cashFlow;case"balance_sheet":return D.Event.balanceSheet;default:return D.Event.reports}},Ye=ke.memo(gs,(e,t)=>Ds(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));Ye.displayName="Reports table";const Ds=(e,t,s)=>s.reduce((n,a)=>n===!0&&Ae(e[`${a}`],t[`${a}`]),!0),zs=h.div`
228
+ `,De=({style:e,isLoading:t})=>t?o.jsx(Ms,{style:e,children:o.jsx(ct,{size:"ExtraLarge",start:!0})}):null,Y=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},ze=e=>{if(e.selectedReport==="profit_and_loss_by_classes"&&e.profitAndLossClassesViewReport?.uiState.classViewLayout==="horizontal"){const t=e.profitAndLossByClassHorizontalReport;return t.selectedPeriod!=null?t:Y(e)}return Y(e)},re=({selectedReport:e,isCompareModeOn:t,windowSize:s})=>{const n=e.availableNumberOfPeriods;let a=Ls.selectedNumberOfPeriods(t,s);return n!=null&&(a=Math.min(a,n)),a};function Co(e){const t=le(),s=ce(),n=Je(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:c,onAdditionalBalanceSelectionChanged:u,onTimeframeSelectionChanged:l,isCompareMode:r,selectedReportAndTimeframeFetchState:d,onClickMenuIcon:f,isReportsCommentingEnabled:g,initialOpenThreadRequest:i}=e,p=e.isZeniUser??!1,S=n?.currentTenant?.companyId,R=n?.currentTenant?.companyName??"",j=g===!0&&S!=null,$=`dashboard_${S}`,b=p?et:tt,{threads:y,isLoading:B,requestToOpenThread:N,setRequestToOpenThread:w,setOpenThread:k}=C.useContext(b);C.useEffect(()=>{i?.threadId!=null&&i?.companyId!=null&&i?.entityType!=null&&w(i)},[i,w]);const[I,O]=C.useState(!1),A=C.useMemo(()=>({application:"dashboard",companyId:S,tab:"standard_report",isGlobalComment:!1}),[S]),m=C.useMemo(()=>{const v=st(y,A,"both");return Array.from(v.values())},[y,A]),x=C.useMemo(()=>m.filter(v=>v.resolved===!1),[m]).length,M=C.useCallback((v,E)=>{O(!1),w({threadId:E,companyId:v.companyId,entityType:v.entityType,threadMetadata:v})},[w]),[P,W]=C.useState(void 0),q=C.useRef(null),We=C.useCallback(v=>{W(v)},[]),Ye=C.useCallback(v=>{q.current?.scrollToItem(v,"center")},[]);At({requestToOpenThread:N,setRequestToOpenThread:w,setOpenThread:k,allThreads:m,selectedReport:e.selectedReport,onReportSelectionChanged:e.onReportSelectionChanged,reportTreeRootNodes:P,nodeCollapseState:ze(e).uiState.nodeCollapseState,onExpandNode:e.onElementCollapseStateChanged,scrollToNode:Ye});const Ge=C.useMemo(()=>({companyId:S??"",companyName:R,entityType:"standard_report.details",entityId:S??"",isGlobalComment:!1,application:"dashboard",tab:"standard_report",url:window.location.href}),[S,R]),He=(v,E)=>{v!==Z?.accountViewMode&&a?.(v),E&&c?.(E)};C.useEffect(()=>{const v=e.selectedReport==="profit_and_loss_by_classes"&&e.profitAndLossClassesViewReport?.uiState?.classViewLayout==="horizontal";if(e.fetchState==="Completed"&&!v){const E=Y(e).filter?.additionalBalances??[];e.onUpdateHighlightedNumberOfPeriods?.(E,e.isCompareMode,re({selectedReport:Y(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe??[])}},[t,e.fetchState]);const Z=zs(e),qe=T.getLocalizedStrings().reports.common,Ze=n!=null&&be(n.loggedInUserRole)?"detailed":"more_detailed",te=n!=null&&be(n.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&Z?.accountViewMode==="account_group"&&te.push("detailed");const[Xe,Ke]=Be.useState(te.includes("more_detailed")?"detailed":"more_detailed"),Qe={selectedFormat:Xe,disabledFormatForRole:te,roleBasedClassesSelectedFormat:Ze,setSelectedFormat:Ke};if(d.fetchState==="Error"||e.fetchState==="Error")return o.jsxs(Fs,{"data-testid":F("report-page-error-reload-page"),children:[o.jsx(Ps,{"data-testid":F("report-page-error-reload-icon"),onClick:e.onReloadReport,children:o.jsx(ot,{})}),o.jsx(Vs,{children:qe.failed})]});const fe=e.fetchState;if(d.fetchState!=="Completed"&&(fe==="In-Progress"||fe==="Not-Started"))return o.jsx(De,{isLoading:!0});{const v=o.jsx(nt,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:Z!=null&&e.dataAvailable!=null?o.jsx(Mt,{defaultOptions:Z,analytics:e.analytics,referrer:z(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:Qe,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:He,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(se,oe,ne)=>{u(r,se,oe,ne)},onTimeframeSelectionChanged:(se,oe,ne)=>{l?.(se,oe,ne)}}):o.jsx(o.Fragment,{})}}}),E=o.jsxs(Zs,{children:[j?o.jsxs(Xs,{onClick:()=>O(!0),"data-testid":F("reports-page-comment-button"),children:[o.jsx(at,{count:B?void 0:x,isLoading:B,style:{left:"12px"}}),o.jsx(Ks,{})]}):null,v]});return o.jsxs(o.Fragment,{children:[o.jsxs(Ns,{children:[o.jsx(it,{title:T.getLocalizedStrings().reports.title,backgroundColor:s.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:f,rightSideComponent:E,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),o.jsx(Es,{...e,onTreeNodesReady:We,treeRef:q})]}),j?o.jsx(yt,{id:$,children:o.jsx(rt,{isDrawerOpen:I,allowComposer:!0,drawerTitle:Bs,threads:m,filter:A,autoExpand:!0,autoFocus:!1,isLoading:B,textOverrides:{composerPlaceholder:Ce.addANewComment,replyComposerPlaceholder:Ce.replyAComment,threadResolve:Re.resolveComment,threadUnResolve:Re.unResolveComment},threadMetadata:Ge,onThreadClick:M,onCloseAllThreadsDrawer:()=>O(!1),drawerSectionStyle:{width:t==="small"?"100%":"400px",boxSizing:t==="small"?"border-box":"content-box"},collapsibleThreadStyle:{width:t==="small"?"100%":"360px"}})}):null]})}}function Es(e){const t=le(),s=ce(),n=C.useRef(null),{selectedReportAndTimeframeFetchState:a}=e,c=["month","quarter","year"],u=(b,y)=>{b!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(b),y&&e.onUpdateClassesToFilterOut?.(y)},l=Y(e),r=n.current?.clientWidth??G.tickSkeletonContainerWidth.value(t),d=xt([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",f=a.fetchState==="In-Progress",g=e.profitAndLossClassesViewReport?.uiState,i=e.isHorizontalClassReportSwitchEnabled!==!1&&e.selectedReport==="profit_and_loss_by_classes"&&g?.accountViewMode==="classes",p=i&&g?.classViewLayout==="horizontal"&&e.onCOABalancesRangeChanged!=null&&a.fetchState==="Completed",S=i&&g?.classViewLayout==="horizontal",R=(b,y)=>{e.analytics?.trackCompareFilterChange(b==="this_period_vs_last_period_percent"?"percentage":"amount",z(e.selectedReport),K(e.selectedTimeframe),y);const B=Array.from(new Set(b==="this_period_vs_last_period_percent"?[...l.filter.additionalBalances,"this_period_vs_last_period_percent"].filter(N=>N!=="this_period_vs_last_period"):[...l.filter.additionalBalances,"this_period_vs_last_period"].filter(N=>N!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,B,re({selectedReport:l,isCompareModeOn:e.isCompareMode,windowSize:t}))},j=T.getLocalizedStrings().reports,$=e.analytics!=null?(b,y,B)=>{y===!0&&e.analytics?.trackCompareFilterTimeFrame(b,K(e.selectedTimeframe),"range filter",B),e.analytics?.trackDateRangeFilterChange(b,"range filter",y,B)}:void 0;return o.jsxs(js,{windowSize:t,"data-testid":F("reports-page-content-container"),children:[o.jsx(Ys,{windowSize:t,ref:n,children:o.jsx(jt,{timeframe:{allowedTimeframes:c,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:b=>{e.analytics?.trackTimeframeSwitch(K(b),z(e.selectedReport)),e.onTimeframeSelectionChanged?.(b,!0)}},toggle:{label:T.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,isToggleDisabled:S,onValueChanged:b=>{e.analytics?.trackCompareMode(b,z(e.selectedReport),K(e.selectedTimeframe));const y=l.filter;e.onAdditionalBalanceSelectionChanged?.(b,y.additionalBalances,y.balancesRange.numberOfPeriods)}},secondaryToggle:i?{label:j.horizontalClassLayoutSwitch,isOn:g?.classViewLayout==="horizontal",onValueChanged:b=>{e.onUpdateClassViewLayout?.(b?"horizontal":"vertical")}}:void 0,secondaryToggleDataTestId:F("reports-horizontal-class-layout-switch")})}),a.fetchState==="Not-Started"||a.fetchState==="In-Progress"?o.jsx(Gs,{windowSize:t,children:o.jsx(Hs,{children:o.jsx(pt,{width:r,height:J-L[2],backgroundColor:s.colors.grey3,style:{borderRadius:_.sp2}})})}):p&&e.onCOABalancesRangeChanged!=null?o.jsx(ve,{windowSize:t,children:o.jsx(is,{allTimeframeTicks:e.allTimeframeTicks,bookCloseDate:l.bookCloseDate,firstMonthOfFY:l.firstMonthOfFY,onCOABalancesRangeChanged:e.onCOABalancesRangeChanged,onDateRangeAnalytics:$,isCompareMode:e.isCompareMode,referrer:z(e.selectedReport),selectedCOABalancesRange:e.selectedCOABalancesRange,selectedTimeframe:e.selectedTimeframe,variant:"timeRangeSlider"})}):o.jsx(ve,{windowSize:t,children:o.jsx(kt,{firstMonthOfFY:l.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Oe(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Oe(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(b,y)=>{e.analytics?.trackDateRangeFilterChange(z(e.selectedReport),"range filter",e.isCompareMode,ae(l.firstMonthOfFY,e.selectedTimeframe,y)),e.onThisPeriodChanged?.(y,re({selectedReport:l,isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:b=>{const y=Ds(e.allTimeframeTicks,b.fromEnd);e.analytics?.trackDateRangeFilterChange(z(e.selectedReport),"range filter",e.isCompareMode,ae(l.firstMonthOfFY,e.selectedTimeframe,y.thisPeriod)),e.onCOABalancesRangeChanged?.(y)}})}),o.jsx(qs,{windowSize:t,children:o.jsx(As,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:b=>{e.analytics?.trackPageLoaded(Us(b)),b==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(b)}})}),a.fetchState==="Not-Started"||a.fetchState==="In-Progress"?o.jsx(De,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:f}):o.jsxs(o.Fragment,{children:[o.jsx(Ue,{report:ze(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:R,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:d,onTreeNodesReady:e.onTreeNodesReady,treeRef:e.treeRef}),wt(e.selectedReport)?o.jsx(Is,{windowSize:t,children:o.jsx(Bt,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:u,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:d,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const Oe=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let s=e.length-1;return t.thisPeriod!=null&&(s=e.findIndex(n=>n.startDate.isSame(t.thisPeriod.startDate,"date")&&n.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(s+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},Ds=(e,t)=>{const s=e.length-1-t.offsetFromEnd;return{thisPeriod:e[s],numberOfPeriods:t.length,orderBy:"ascending_date"}};function zs(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const l=e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes"&&e.profitAndLossClassesViewReport.uiState.classViewLayout==="horizontal",r=e.profitAndLossByClassHorizontalReport.headerBalances[0];if(l===!0&&r!=null)t=r;else{const d=e.displayOrder,f=e.profitAndLossReport.sections.expenses,g=e.profitAndLossReport.sections.income,i=f?.balances?.length??0,p=f!=null&&i>0?f:g;if(p!=null&&(p.balances?.length??0)>0){const S=p.balances??[],R=d==="ascending_date"?S.length-1:0;t=S[R]}}}const s=Y(e),n=s.firstMonthOfFY,a=s.bookCloseDate,c=s.dataAvailable,u=s.filter.additionalBalances;if(t!=null)return{localeId:T.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:n,bookCloseDate:a,dataAvailable:c,timeframe:e.selectedTimeframe,additionalBalances:u,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed,classViewLayout:e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes"?e.profitAndLossClassesViewReport.uiState.classViewLayout:"vertical"}}const z=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},Us=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return D.Event.profitAndLoss;case"cash_flow":return D.Event.cashFlow;case"balance_sheet":return D.Event.balanceSheet;default:return D.Event.reports}},Ue=Be.memo(ys,(e,t)=>Ws(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));Ue.displayName="Reports table";const Ws=(e,t,s)=>s.reduce((n,a)=>n===!0&&Te(e[`${a}`],t[`${a}`]),!0),Ys=h.div`
218
229
  padding-right: ${e=>G.contentRightPadding.valuePx(e.windowSize)};
219
230
  `,ve=h.div`
220
231
  margin-top: ${_.sp3};
221
232
  padding-right: ${e=>G.contentRightPadding.valuePx(e.windowSize)};
222
- `,Us=h.div`
233
+ `,Gs=h.div`
223
234
  margin-top: ${_.sp3};
224
235
  padding-right: ${e=>G.contentRightPadding.valuePx(e.windowSize)};
225
- `,Ys=h.div`
236
+ `,Hs=h.div`
226
237
  display: flex;
227
238
  flex-direction: row;
228
239
  justify-content: flex-start;
@@ -231,15 +242,15 @@ import{e as le,g as ce,ay as et,bQ as tt,bR as st,bS as ot,O as T,V as o,bT as n
231
242
  width: 100%;
232
243
  align-items: center;
233
244
  justify-content: center;
234
- `,Ws=h.div`
245
+ `,qs=h.div`
235
246
  margin-top: ${_.sp4};
236
247
  padding-right: ${e=>G.contentRightPadding.valuePx(e.windowSize)};
237
- `,Gs=h.div`
248
+ `,Zs=h.div`
238
249
  display: flex;
239
250
  flex-direction: row;
240
251
  align-items: center;
241
252
  gap: ${_.sp5};
242
- `,Hs=h.div`
253
+ `,Xs=h.div`
243
254
  display: flex;
244
255
  align-items: center;
245
256
  justify-content: center;
@@ -249,10 +260,10 @@ import{e as le,g as ce,ay as et,bQ as tt,bR as st,bS as ot,O as T,V as o,bT as n
249
260
  &:hover {
250
261
  color: ${e=>e.theme.colors.primary};
251
262
  }
252
- `,qs=h(pt)`
263
+ `,Ks=h(dt)`
253
264
  display: flex;
254
265
  width: ${_.sp4};
255
266
  height: ${_.sp4};
256
267
  align-items: center;
257
268
  justify-content: center;
258
- `;export{xo as default};
269
+ `;export{Co as default};
@@ -1,4 +1,4 @@
1
- import{g as A,V as a,O as D,e as de,b5 as Q,u as I,w as M,a_ as J,o as m,ac as Ae,d as g,aG as Ve,x as xe,bO as ge,an as R,bP as V,bc as F}from"./index-aCBnCBoN.js";import{a as P,P as ee}from"./sentry-DzaNjvx0.js";import{n as x}from"./mui-BosmckWV.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-C14YY2Rq-DHigu710.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-wh35N3no-ClXxioRe.js";import{V as Z}from"./toChartData-G5y-N82I-BBptd2Gk.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-CimMNwCJ.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]="9118fe46-25e1-4d35-9a9b-0aa491173300",e._sentryDebugIdIdentifier="sentry-dbid-9118fe46-25e1-4d35-9a9b-0aa491173300")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
1
+ import{g as A,V as a,O as D,e as de,b5 as Q,u as I,w as M,a_ as J,o as m,ac as Ae,d as g,aG as Ve,x as xe,bO as ge,an as R,bP as V,bc as F}from"./index-B8J3c9-k.js";import{a as P,P as ee}from"./sentry-xNvKSthz.js";import{n as x}from"./mui-B_fu8zAT.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-BGl-YMiu-WdB5HF6p.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-CGYYTIjt-D5mv6_v1.js";import{V as Z}from"./toChartData-B4ligi4c-D4j3IIGd.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-BkmpOx_p.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]="c298f25e-f0ef-4f2f-a674-d802ef2db1f5",e._sentryDebugIdIdentifier="sentry-dbid-c298f25e-f0ef-4f2f-a674-d802ef2db1f5")}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};