@zeniai/web-cockpit-ui 1.15.6-qa → 1.15.7-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 (304) hide show
  1. package/dist/assets/{ACHDetailsPage-DDuW5spI-ugZGssMG.js → ACHDetailsPage-CGG2Hx4v-BW7Ihkof.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-Bbk-pUwz-BlxRToKD.js → AIPerformancePage-XDCygRgj-CEqrEuBs.js} +32 -32
  3. package/dist/assets/AccountInfoPage-CSf3J58F-DCyXpiFs.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-BA3WBfD4-S2IoqbBC.js → AccountInfoPageContent-wjaeVokT-CiNOfJ02.js} +9 -9
  5. package/dist/assets/{AccountLockedInfoModal-Bs1ImO2L-Cd1E5lWq.js → AccountLockedInfoModal-DJnj--uc-BJgnvrcM.js} +4 -4
  6. package/dist/assets/{AccountReconDetailsDrawerPage-Ci_Eb0_d-BTFVE0QR.js → AccountReconDetailsDrawerPage-a2stjcsR-Ds8R_X-n.js} +19 -19
  7. package/dist/assets/{AccountRow-BWclqiQh-ChNK56Ur.js → AccountRow-DlccmtgU-foUdbmvG.js} +24 -24
  8. package/dist/assets/{AccountsPromoCardStack-BHgGIeBG-BvmrVWEy.js → AccountsPromoCardStack-BE0vjkiK-DEN0OmWn.js} +14 -14
  9. package/dist/assets/AddAddressForCardDrawer-D3mMFgO8-8PMwaa8Q.js +6 -0
  10. package/dist/assets/{AddToWalletPage-Dllxg_0u-Cin7qPiV.js → AddToWalletPage-6OCJaNcg-EoATwn7j.js} +19 -19
  11. package/dist/assets/{AgingReportsPage-CBHhfTKI-XOHkAEGk.js → AgingReportsPage-hgg1L3pv-DEJ_mF4m.js} +1 -1
  12. package/dist/assets/{AllUserItems-Bdv9AIQ9-AUnGqfQg.js → AllUserItems-BmNtc-69-BsLa0Y8T.js} +14 -14
  13. package/dist/assets/{ApAgingDetailPage-EE3MrY5l-DjneR2md.js → ApAgingDetailPage-DAZAnfcs-zxr1sXnX.js} +5 -5
  14. package/dist/assets/{AppBasePage-02I6V3Np-B6lYTPsK.js → AppBasePage-D7_krMlm-D-9wFTdh.js} +9 -9
  15. package/dist/assets/{AppDrawerContent-DbBd9m20-ns8GH0Pa.js → AppDrawerContent-DWL57wUk-DZ6AAyNy.js} +6 -6
  16. package/dist/assets/ApprovalRulesSettingsPage-CiX2Xx3--YCvl1YZm.js +47 -0
  17. package/dist/assets/{ArAgingChart-BqBx1Gj1-B1AT15np.js → ArAgingChart-CeaYIqlX-BUR2NiTJ.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-D9rI5yue-C7eLkZEj.js → ArAgingDetailPage-Is5kv2-P-CDH0tn0m.js} +1 -1
  19. package/dist/assets/{AttachmentView-CeblaMyI-DBGFvosS.js → AttachmentView-BsNhULL3-C-ca695p.js} +4 -4
  20. package/dist/assets/{BankAccountSection-B3v3BDPK-B_DOigwY.js → BankAccountSection-ZWR_hXjD-mYMACSQd.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-DCi9o7_J-w-3jN6e4.js → BankAccountWarningSection-C-2eE9pL-BhkH4zkd.js} +5 -5
  22. package/dist/assets/{BankConnectionsSettingsPage-Csbc7IYe-dwO5wQN1.js → BankConnectionsSettingsPage-CjbaVbou-BNqlym9z.js} +17 -17
  23. package/dist/assets/{BillDetailPage-ByPP2r-L-DYJrFGG4.js → BillDetailPage-B_zbQLLp-Dsf72rKA.js} +8 -8
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-GDOnscxH-wu_5dYsT.js → BillPayApprovalRuleDetailPage-CtJLn_JO-BVtB6sJH.js} +4 -4
  25. package/dist/assets/{BillPayApprovalRulesPage-BqDyhnz3-B_wXxPzU.js → BillPayApprovalRulesPage-vvgGBmoM-C7iW15VO.js} +5 -5
  26. package/dist/assets/{BillPayPromoPage-B1_ugFQw-DrmfvS7a.js → BillPayPromoPage-DkyMRquU-6vAZUzNc.js} +7 -7
  27. package/dist/assets/{BillPaySetUpPage-Cx2vQIL8-ngc-DjEe.js → BillPaySetUpPage-m15SlV0c-C_W7-nyr.js} +9 -9
  28. package/dist/assets/BillingSettingsPage-C4P_B31U-Dbv-0XdG.js +44 -0
  29. package/dist/assets/{BillsBulkReviewDrawerPage-B8KhD0xH-CKIRXjIs.js → BillsBulkReviewDrawerPage-C_Nmv34F-s0EetHC0.js} +1 -1
  30. package/dist/assets/{BoxItem-CqsCCOrk-Dekq2mMN.js → BoxItem-Cmrt_yxF-Cr2cxrKm.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-Dr_YFkLN-5SYND8JY.js +138 -0
  32. package/dist/assets/{CardNumberSubText-ByPbO0F8-BLrI1gTW.js → CardNumberSubText-B6Fprh6S-CEzRIr67.js} +8 -8
  33. package/dist/assets/{CashbackDetailPage-Ve3JZpeP-D5oSvHQU.js → CashbackDetailPage-CWExYaIT-BmImExjs.js} +20 -20
  34. package/dist/assets/{ChargeCardDetailPage-D7zLKDQo-DG3fl-Wi.js → ChargeCardDetailPage-B3hr0WBI-X68NSBCl.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-Cnm7GqIj-Fc3uHPEU.js → ChargeCardListPage-g9gCfpoh-BTqPP-pZ.js} +15 -15
  36. package/dist/assets/{ChargeCardListTable-bTR8Mmj4-CI38yG68.js → ChargeCardListTable-BoDSmzn_-CpSnyHh2.js} +38 -38
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-Cufm-hgn-Cqrd5ERh.js → ChargeCardPaymentHistoryPage-xs346JMC-CvFrTbeZ.js} +28 -28
  38. package/dist/assets/ChargeCardPromoPage-DwiDNiRF-BfEfjZd3.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-B-jcdCNM-ernLwEHq.js → ChargeCardSetupPage-Dbz_GdRL-ClxdYJ_F.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-CyVlO8hd-CIP5xUta.js → ChargeCardStatementsPage-Da9NY51a-ChevXKmL.js} +5 -5
  41. package/dist/assets/{CheckDepositDrawerPage-BmG5ma6K-DHrUrYJa.js → CheckDepositDrawerPage-CcSRXOv7-DM7Ey8xT.js} +8 -8
  42. package/dist/assets/{CollapsableReportTable-LB-wYzj1-DaCyOKB5.js → CollapsableReportTable-D1b80h2R-CMeyXG6i.js} +41 -41
  43. package/dist/assets/CompanyOfficerDetailsSection-BMYQ8Qcq-vyiocP81.js +260 -0
  44. package/dist/assets/{CompanyPassportCard-BwHjmTyn-CWXWGUYt.js → CompanyPassportCard-vAocVa7X-Bg4vrJh5.js} +4 -4
  45. package/dist/assets/CompanyPassportPage-Dva5Le3j-D1jREPm8.js +574 -0
  46. package/dist/assets/{CompleteProfile-H7UexvAo-sZKr-j3R.js → CompleteProfile-B-Hhosch-DRCiMIXe.js} +1 -1
  47. package/dist/assets/ConfettiBurst-BV8M1GTR-DJjoIhlI.js +1 -0
  48. package/dist/assets/{CreateOrEditVendorPage-Bt2itRHK-CCLBzSRT.js → CreateOrEditVendorPage-Bgc7zC_D-CfO9iUSb.js} +11 -11
  49. package/dist/assets/{CreditCardPaymentDrawerPage-B8eb8Q0G-D7xI54mJ.js → CreditCardPaymentDrawerPage-Bs5RpFes-CgklXCqv.js} +11 -11
  50. package/dist/assets/{CurrencySelectField-DIh7_ile-Ch5w8ptc.js → CurrencySelectField-BC9QkDwI-BEtmNe90.js} +5 -5
  51. package/dist/assets/{CustomerOnboardingActivationPage-B3t4tiur-DzW0AY2p.js → CustomerOnboardingActivationPage-Br4RFzGo-DgY7VWoB.js} +5 -5
  52. package/dist/assets/CustomerOnboardingContainerPage-BRs0LPZ0-y5fJ25mS.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-JE_MoyoU-BqMNWAeW.js → CustomerOnboardingDetailPageSkeleton-DLKJINnV-B2tg0XBT.js} +18 -18
  54. package/dist/assets/CustomerOnboardingNoStepsPage-CjvQ3PFZ-BN9B2AZm.js +66 -0
  55. package/dist/assets/CustomerOnboardingPage-3ECCqY1a-CL7QxZ3D.js +107 -0
  56. package/dist/assets/{CustomerOnboardingProductSuitePage-DZLKr3qq-ClvLyM4I.js → CustomerOnboardingProductSuitePage-Dx3FU6Fe-CAm2edHR.js} +4 -4
  57. package/dist/assets/{Dashboard-z7EuNcjw-wBhbzCb7.js → Dashboard-EWWj1Uby-C8-SPpUF.js} +21 -21
  58. package/dist/assets/{DashboardReportPage-BX2xSgwt-BTs5yweV.js → DashboardReportPage-D4kzdnvI-BKOw_sqx.js} +10 -10
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-fiNmHYV3-CEwDJ7_M.js → DashboardSidebarBackgroundAnimation-BSwRgXFk-CJAI0MPE.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-CmlUJZgz-LioQcDUg.js → DepositAccTransactionItem-xvCtIj9v-7jCouOnq.js} +2 -2
  61. package/dist/assets/DepositAccTransactionListPage-B8UpFh_9-DlvHxyY3.js +66 -0
  62. package/dist/assets/{DomesticWireDetailsPage-D-SBQqbR-C8ovHvyA.js → DomesticWireDetailsPage-DF8bLeDL-Be0QfLbt.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-DznbXeUZ-Cp9A0E8f.js → DownloadOverlay-wlAXZwF0-B68SEe8G.js} +30 -30
  64. package/dist/assets/{DrawerPage-8d8mdD3v-DOGRNriH.js → DrawerPage-DroW95LB-DgRu7-up.js} +18 -18
  65. package/dist/assets/{EditPeoplePage-CTwY7ePr-BHVb3TK3.js → EditPeoplePage-CgUM9UYI-_7L-v32x.js} +3 -3
  66. package/dist/assets/{EditReimbursementDetailPage-DVg6dH7p-p4ImlM0s.js → EditReimbursementDetailPage-BgcII79s-qEpt9Cs6.js} +61 -61
  67. package/dist/assets/EntityDetailPage-ByHvXL2c-DbNraeh4.js +18 -0
  68. package/dist/assets/{EntitySummarySection-CloCPwyO-BkWlGttQ.js → EntitySummarySection-D6HekhK7-CEx8SebE.js} +9 -9
  69. package/dist/assets/{ExpenseAutomationOverviewPage-dHZEdK4L-Cfk-AEiv.js → ExpenseAutomationOverviewPage-VN-P6f2z-D9XayAVC.js} +16 -16
  70. package/dist/assets/{ExpenseAutomationPage-CWyP8ETl-Buoi-mX4.js → ExpenseAutomationPage-CvnkIuMf-BzVTKngy.js} +66 -66
  71. package/dist/assets/{ExpressPayPage-liflPa6J-d_gsBVue.js → ExpressPayPage-C_yRTeDh-CXT1jZ8h.js} +15 -15
  72. package/dist/assets/{FeaturePreviewPage-DhSoy4IL-BFzihstG.js → FeaturePreviewPage-BLRhajFn-BfH5LrVG.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-DW5HuzRR-C2pFSUm_.js → FollowStepsSection-DhiGIylh-dcsWOGAc.js} +49 -49
  74. package/dist/assets/{GlobalReviewListPage-CGCdgQFw-2bH6uNqV.js → GlobalReviewListPage-Tg986b2s-BcraUWMG.js} +6 -6
  75. package/dist/assets/{InformationCardStack-D6xiRsRy-DeDzkULA.js → InformationCardStack-3Lmn6LJr-BzzpUQZE.js} +1 -1
  76. package/dist/assets/{InsightsCardStack-D1eIlMkU-DAOP4NpT.js → InsightsCardStack-Dc6OL9Od-D89joaRU.js} +2 -2
  77. package/dist/assets/InsightsSection-Drr3r1BL-BjPy8A4H.js +27 -0
  78. package/dist/assets/{IntegrationsSettingsPage-CRZfnPIT-CqWmWxBy.js → IntegrationsSettingsPage-DACHBlEm-DaFs14XG.js} +8 -8
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-DouGaVny-Dv_WELpr.js → InternationalWireSwiftDetailsPage-BaqSqvWh-BwJgPcJE.js} +17 -17
  80. package/dist/assets/InternationalWireVerificationPage-Daxni4YY-BKNsaA95.js +292 -0
  81. package/dist/assets/{InviteFormPage-dCGpLoBC-B7oqyaD4.js → InviteFormPage-CXcHy9Sz-C3-iU8eM.js} +24 -24
  82. package/dist/assets/{InvitePageListView-DhV6Pw56-C4-16sSD.js → InvitePageListView-tu82Q2y6-CzjWJAgY.js} +54 -54
  83. package/dist/assets/{InvitePeoplePage-J-HYw9MC-UjYYlzHC.js → InvitePeoplePage-Bbv2pjhR-BZJHvIvS.js} +2 -2
  84. package/dist/assets/{InvoiceUploadSection-BJLLf4x5-DFydS2Od.js → InvoiceUploadSection-CO34IhU8-1rxbAjFS.js} +4 -4
  85. package/dist/assets/{IssueChargeCardPage-hEaegmyi-D821vf9d.js → IssueChargeCardPage-DuqGEs5b-DVXuxnuF.js} +23 -23
  86. package/dist/assets/{LabeledAddressValue-PXtKo31O-p0vkJLZ_.js → LabeledAddressValue-D0Gu5Mgp-CuHBod6j.js} +2 -2
  87. package/dist/assets/{LabeledAddressValueField-D0Ow_UPE-D2ZZ_G49.js → LabeledAddressValueField-DPisU2iY-3oGO3c9v.js} +3 -3
  88. package/dist/assets/{LabeledControlledCheckBoxField-DVOeaKu0-CpyOiqej.js → LabeledControlledCheckBoxField-BKqCiNdy-CKGxo72C.js} +1 -1
  89. package/dist/assets/{LabeledCreatableSingleSelectField-Dqt1M07c-DY3asbo7.js → LabeledCreatableSingleSelectField-DLVxVffe-RkcfyIgp.js} +5 -5
  90. package/dist/assets/{LabeledDocumentField-D2n9ry_0-D2DNLpw5.js → LabeledDocumentField-DtOCNiEg-DdNet_Ri.js} +5 -5
  91. package/dist/assets/{LabeledDropDownFormattedTextField-BfpPbI2T-BknUycVk.js → LabeledDropDownFormattedTextField-CsbwG9At-Cie_r1vg.js} +6 -6
  92. package/dist/assets/{LabeledText-BHQeQs6Z-DYOqW74l.js → LabeledText-C4GeOHM8-ChfVujh4.js} +3 -3
  93. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CnwVXq2g-BfCQlTRV.js → LabeledUserSingleSelectWithSubtitlesField-gwRpED7x-BzoJSlO5.js} +15 -15
  94. package/dist/assets/{LabeledZeniRolesDropDownField-Dpdlc1DB-aTk_GR-I.js → LabeledZeniRolesDropDownField-Bj8qcvuK-mHT__PRC.js} +12 -12
  95. package/dist/assets/{LinkJETransactionPage-CWOfaAhz-sHHDjXdg.js → LinkJETransactionPage-CdWWV_7u-CTynd4m9.js} +3 -3
  96. package/dist/assets/{LockCardPage-BMt1zujT-Ch-0yiFY.js → LockCardPage-BTxCWQ6_-bPbvvlRf.js} +65 -65
  97. package/dist/assets/{LowBalancePopup-BN2RBNOV-CkWXHs8U.js → LowBalancePopup-Dt9KCWOU-CfGVa0nY.js} +1 -1
  98. package/dist/assets/MagicLinkACHDetailsPage-C2z4VD4x-yC-7xafy.js +1 -0
  99. package/dist/assets/MagicLinkDomesticWireDetailsPage-Dxd73sj8-Dnp7p7eT.js +1 -0
  100. package/dist/assets/MagicLinkInternationalWireDetailsPage-Ct-REVbS-CPUlXtmL.js +1 -0
  101. package/dist/assets/{MagicLinkSuccessPage-DQbdgFhH-acLMYQDQ.js → MagicLinkSuccessPage-D45Lu2cc-Co6kTR8X.js} +4 -4
  102. package/dist/assets/{MagicLinkTitleSection-BYkzInkY-HyU6V8sj.js → MagicLinkTitleSection-BdiSVi0V-B1KEw-n6.js} +3 -3
  103. package/dist/assets/{MailingDetailsSection-DiSohByM-B0LpnqFx.js → MailingDetailsSection-CjO5OVZN-CsIdvq8c.js} +1 -1
  104. package/dist/assets/{Menu-TzNY4ajT-CMR-yX-w.js → Menu-C_kotivE-FvhfNRdu.js} +2 -2
  105. package/dist/assets/{MyBankConnectionsSettingsPage-Bk4Hdapv-vgoL826T.js → MyBankConnectionsSettingsPage-CN9EKlOy-B7KFdOdn.js} +4 -4
  106. package/dist/assets/{MyPendingActivationChargeCardListPage-C5Q5p5zq-HjmaMbpp.js → MyPendingActivationChargeCardListPage-rmpT6HFS-CAP6sOzW.js} +1 -1
  107. package/dist/assets/{MyProfileSettingsPage-BxiofsK0-BXkFCNOu.js → MyProfileSettingsPage-CTmDuFNJ-KfiZ2ouo.js} +5 -5
  108. package/dist/assets/{NavBarWithPicker-DX31nlvR-iKhmwyP2.js → NavBarWithPicker-VzNJnXX3-D_mYpcQU.js} +4 -4
  109. package/dist/assets/{NavigationArrow-BDdBEJFM-ByEm_T8f.js → NavigationArrow-B9ZEhJdg-DZDpNuL-.js} +1 -1
  110. package/dist/assets/{NavigationDots-BZOdXVhR-J922kz3s.js → NavigationDots-C_N16I15-CgfbbWpb.js} +1 -1
  111. package/dist/assets/{NewGlobalMerchantPage-qOuBGJ6w-PqI-s75M.js → NewGlobalMerchantPage-DICWFjCu-B9FIBlfd.js} +8 -8
  112. package/dist/assets/NoDataChart-CCCkzfa4-CZ1VHThr.js +26 -0
  113. package/dist/assets/NoDataTable-DVW_simO-CiETBp14.js +8 -0
  114. package/dist/assets/{NotFoundPage-B31SyO4w-DnMJV9Nw.js → NotFoundPage-BHrUY910-CB4emWh9.js} +8 -8
  115. package/dist/assets/{NotificationSettingsPage-3GoJDHjY-CmERm1Eo.js → NotificationSettingsPage-alUKfWWf-BIIzsf_j.js} +12 -12
  116. package/dist/assets/NotificationsListConfig-QOeX1KBS-BXuzGZYq.js +1 -0
  117. package/dist/assets/{NotificationsPage-Cuz_KDD8-Br1syqiZ.js → NotificationsPage-BjhHCUzl-CL_1S-pu.js} +22 -22
  118. package/dist/assets/{OpExByVendorPage-B2CQ-hT1-DgzOnglp.js → OpExByVendorPage-h_QozoZk-rvk-4kbQ.js} +20 -20
  119. package/dist/assets/OverlayContainerPage-Daz3A7cI-DZnbS2el.js +11 -0
  120. package/dist/assets/{PandLWithForecastPage-Dkcy07sC-HdbdrtMY.js → PandLWithForecastPage-DdiEIHC--BvKI5oME.js} +4 -4
  121. package/dist/assets/PaymentAccountSetupBillingAddressSection-CIlQ-MgM-D9smrX3o.js +107 -0
  122. package/dist/assets/{PeoplePage-yzYfizds-CxYPe3s5.js → PeoplePage-BaOppi8Y-C-YATJdW.js} +34 -34
  123. package/dist/assets/{Preview-CoWxE6yB.js → Preview-yiJBApzl.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-DRfZ_sZ_-CLK0bly7.js → ProductsCarousel-E65X4lGB-DH2SteEv.js} +9 -9
  125. package/dist/assets/{PromoBaseCards-CbPywvj2-cL15_Lku.js → PromoBaseCards-O66NGGWD-BKbCdKhK.js} +4 -4
  126. package/dist/assets/{QBOConnectionDialog-DLuBxOXr-ChTwBVFO.js → QBOConnectionDialog-BrMv7xjB-DlUN7Kz1.js} +2 -2
  127. package/dist/assets/{QBOSetupSection-CxLynYFq-BCq79mPl.js → QBOSetupSection-B5D4uUOv-CGhKBwg7.js} +16 -16
  128. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CDK4q7B4-K_MvSiez.js → ReimbursementApprovalRuleDetailPage-DJNl2oqj-B4OdqkFs.js} +1 -1
  129. package/dist/assets/{ReimbursementApprovalRulesPage-DFmZm1Qr-KN8xudqI.js → ReimbursementApprovalRulesPage-tnc2z3Es-yyigySmO.js} +17 -17
  130. package/dist/assets/ReimbursementDetailPage-CO8Wv5-c-qlCsVXqq.js +314 -0
  131. package/dist/assets/{ReimbursementPromoPage-DENI6dAX-B3ip0p99.js → ReimbursementPromoPage-04Cqe8zH--NCi_DFM.js} +6 -6
  132. package/dist/assets/{ReimbursementSetUpPage-BJoFNAQR-COWxA7Kg.js → ReimbursementSetUpPage-2VrhpV75-Bv2sY3Y4.js} +6 -6
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C0a107hB-2TKc5O3B.js → ReimbursementsBulkReviewDrawerPage-CEZlRH0_-CC2d3Iit.js} +1 -1
  134. package/dist/assets/{ReloadCard-BCuJkAqw-CDSljNn0.js → ReloadCard-BakyoznA-DmnMlohL.js} +6 -6
  135. package/dist/assets/{ReportTableViewSelector-CEo0z4A2-DOQ_EfJ4.js → ReportTableViewSelector-C7w_WVnY-C6Okt0Gv.js} +4 -4
  136. package/dist/assets/{ReportsPage-gMt_l_Aa-C-pMgAcv.js → ReportsPage-BeZqGQ2i-2BlXIjgp.js} +5 -5
  137. package/dist/assets/{RevenueChart-JLdzi3aQ-CYETDjQg.js → RevenueChart-BcRkSSWz-D5XPPSEX.js} +1 -1
  138. package/dist/assets/{ReviewDetailsPage-WBKwpVad-ChCuaJ93.js → ReviewDetailsPage-CA5CBeB7-DN9fIS4d.js} +52 -52
  139. package/dist/assets/{ReviewOverlay-DqOXHkMM-1Yn1edNo.js → ReviewOverlay-DNjbv6Ir-BYUbQDSw.js} +12 -12
  140. package/dist/assets/RoleWithToolTip-CSoHoT3u-vTwGI01K.js +22 -0
  141. package/dist/assets/ScheduleDetailsFixedAssetsPage-CLjpednn-81YU8z_r.js +37 -0
  142. package/dist/assets/{ScheduleDetailsPage-_Ag36lXG-j5tYZL01.js → ScheduleDetailsPage-MEVdw-l_-gtCnaFgw.js} +3 -3
  143. package/dist/assets/{ScheduleSequenceTable-axweBiV5-DG58qOyk.js → ScheduleSequenceTable-BGx2un0o-CTi3pu3D.js} +52 -52
  144. package/dist/assets/{ScreenRoutes-DfcN59qq.js → ScreenRoutes-DUbNYmu4.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-CerAAia_-BHtxUnyV.js → SetUpAccountSection-Blriup16-W2fx2DgC.js} +14 -14
  146. package/dist/assets/{SignIn-B1yQ5XWH-B0qhoH5M.js → SignIn-DqVQU08d-BerCpw9H.js} +15 -15
  147. package/dist/assets/{SignInScreen-Cqy7lnQW.js → SignInScreen-B5Y03mpU.js} +1 -1
  148. package/dist/assets/{SpendManagementListViewPage-BL77zVeL-B2bOM6nq.js → SpendManagementListViewPage-Cd88asmE-CB759VbW.js} +8 -8
  149. package/dist/assets/{SpendManagementPerTabPage-B82q9yMk-DhUjeST3.js → SpendManagementPerTabPage-DyPyPQjh-CeHpfSNV.js} +26 -26
  150. package/dist/assets/{SpendManagementSection-Bcex-9e7-BSKprzB6.js → SpendManagementSection-C5fvFmdh-D7vZlQqH.js} +21 -21
  151. package/dist/assets/StatementItem-CBGi9f9C-DW_QCJ6P.js +31 -0
  152. package/dist/assets/StatementsPage-De1wPDzS-BpyLzEUf.js +58 -0
  153. package/dist/assets/{StatusSwitcher-Cw0Sq3bY-Dbm7BDCm.js → StatusSwitcher-BS4h8SJh-CcRGAnPy.js} +2 -2
  154. package/dist/assets/{SubTabSwitcher-DmGRgMQe-DIYYgIi-.js → SubTabSwitcher-vsehXtEO-aHnk9ME_.js} +3 -3
  155. package/dist/assets/SummaryCard-gehzCCsW-cRlcrWMR.js +1 -0
  156. package/dist/assets/{TaskManagementPage-CAX0yrep-CSjDDqkF.js → TaskManagementPage-DlzHdHSu-DMSrvQ05.js} +31 -31
  157. package/dist/assets/{TimeRangeSwitcher-2AXHoZ8f-Cgeq5dRL.js → TimeRangeSwitcher-CFZq5KoG-DvA1T4tX.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcher-DJiKd_tL-BdEO97Xk.js → TimeframeSwitcher-Bb7JwirM-DT_nE5Dd.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcherWithToggle-5W1Xu4QM-CuZ3Yom9.js → TimeframeSwitcherWithToggle-BXIevpvE-CV8LNwYU.js} +1 -1
  160. package/dist/assets/{TopExCard-8RRaMY7F-1AcJ6ae5.js → TopExCard-BQIHsi_z-CJAyN5Zr.js} +10 -10
  161. package/dist/assets/{TopExDetailPage-D2KlaBXx-CrnYkF9C.js → TopExDetailPage-BYCn9hZ2-DC2P4FKF.js} +2 -2
  162. package/dist/assets/{TransactionDetailPage-DdyFRxld-DnZZ8KzJ.js → TransactionDetailPage-BMYeFZH7-BFKwH-pD.js} +34 -34
  163. package/dist/assets/{TransactionList-CLVkETBe-C6Sys-PQ.js → TransactionList-BMfwxUes-i8oCJgrA.js} +12 -12
  164. package/dist/assets/{TransactionListBig-BRCiFBKB-BqQRPoZI.js → TransactionListBig-CSjliLzH-5P3TN04x.js} +6 -6
  165. package/dist/assets/{TransactionListPage-D0OgwsUo-LU1vJ-Dw.js → TransactionListPage-C2Iz7CDJ-CDbQhMhs.js} +2 -2
  166. package/dist/assets/TransactionVendorDetailPage-OXcpSTxA-ogeFkWo8.js +80 -0
  167. package/dist/assets/{TransferDrawerPage-DdDRqsyR-DMAPk7th.js → TransferDrawerPage-4lrBrmvC-BzHEhXmo.js} +1 -1
  168. package/dist/assets/{TreasuryOverviewPage-BcIRsLLj-DCm6-KYB.js → TreasuryOverviewPage-DNUrwQ-l-CtbTN09Y.js} +37 -37
  169. package/dist/assets/{TreasuryPromoPage-qbltxtYj-CW-CYLuB.js → TreasuryPromoPage-CjjmLEyR-Jw9_r6c2.js} +16 -16
  170. package/dist/assets/TreasuryStatementsPage-CGax-FVg-CB9f88VO.js +58 -0
  171. package/dist/assets/{TreasuryTaxLetterPage-C2-SmkNZ-D-j8G4aE.js → TreasuryTaxLetterPage-DapKFecA-Ckfl6mTT.js} +2 -2
  172. package/dist/assets/{TrendChart-Cot9LFNh-kn3CmpPt.js → TrendChart-t_2mlnuR-C3EpG69G.js} +2 -2
  173. package/dist/assets/{TrendWithTransactions-BKxxRKGE-IUCrWYsQ.js → TrendWithTransactions-BjQX1uvO-CXSH8SoK.js} +6 -6
  174. package/dist/assets/{UncategorizedAccountsMappingPage-C7Z3q75s-CkVCyXIl.js → UncategorizedAccountsMappingPage-C9DJ4P_n-Da3On2ZP.js} +11 -11
  175. package/dist/assets/{UnitIntegrationPage-DV9q3Nzs-B6vgPVOV.js → UnitIntegrationPage-CzfmBBVs-ea0q-ics.js} +11 -11
  176. package/dist/assets/UploadAdditionalDocumentOverlay-BJiBj5mg-Cktdlkx4.js +38 -0
  177. package/dist/assets/Vendor2FAPopup-Jhuzv3Fs-CDaFjIcb.js +1 -0
  178. package/dist/assets/VendorACHDetailsPage-BRmIiet8-C_w2yQJy.js +1 -0
  179. package/dist/assets/{VendorDetailPage-CH1L4UZF-BsVioyb_.js → VendorDetailPage-D_ia0GnG-EjDxeWPl.js} +10 -10
  180. package/dist/assets/VendorDomesticWireDetailsPage-DTx8HL4V-ypi2AXXw.js +1 -0
  181. package/dist/assets/{VendorFiling1099EditablePage-BaX4ACXz-2JAer4Dh.js → VendorFiling1099EditablePage-6mV7WBuT-BWwNGaDM.js} +9 -9
  182. package/dist/assets/{VendorFirstReviewPage-DAZJMUR3-DNxGnCTD.js → VendorFirstReviewPage-BIh28s7e-DSbo4VGu.js} +20 -20
  183. package/dist/assets/{VendorInternationalWireDetailsPage-CPnjLrDQ-DMs_PuTr.js → VendorInternationalWireDetailsPage-CXmAXDcB-BBI1eBRw.js} +25 -25
  184. package/dist/assets/VendorInternationalWireSwiftDetailsPage-DITo3td6-DtabXm0e.js +1 -0
  185. package/dist/assets/{VendorsAccountsSection-DsgK37WB-aox7OqvX.js → VendorsAccountsSection-kJAKmxCN-DLYMQH1s.js} +3 -3
  186. package/dist/assets/{VerifyDevice-BPAsHKLY-Cz_qYix0.js → VerifyDevice-Cclxcvod-LionuPr6.js} +6 -6
  187. package/dist/assets/{VideoPlayer-Bwg_8KIq-BdYMo354.js → VideoPlayer-B0jJK498-Bbxsuaup.js} +2 -2
  188. package/dist/assets/{VideoPopup-CxjbzbjP-BNEaMqCr.js → VideoPopup-BUq4CaWy-BN4RkIzc.js} +2 -2
  189. package/dist/assets/{WarningsDrawerPage-BBc3-y8F-BZEfDhck.js → WarningsDrawerPage-B7Pmv7_n-DMtwZsM9.js} +5 -5
  190. package/dist/assets/{ZeniAccountDetailPage-VB4JoNYE-BFAmjkJH.js → ZeniAccountDetailPage-l5IuVidF-9qcHcEDf.js} +14 -14
  191. package/dist/assets/{ZeniAccountListViewPage-CMjCtqT0-DlchsqGp.js → ZeniAccountListViewPage-CtOCukoi-BrJGMSMd.js} +14 -14
  192. package/dist/assets/{ZeniAccountNavBarPieces-C89nBJ6j--_uql9Y3.js → ZeniAccountNavBarPieces-DHpWht7s-DoN45Kif.js} +2 -2
  193. package/dist/assets/{ZeniAccountPromoPage-C1_qLOdH-DnXsp_Yv.js → ZeniAccountPromoPage-DhuZowvX-C0CMafiM.js} +6 -6
  194. package/dist/assets/{ZeniAccountSetupPage-DWEVvvHh-FILqo9Qu.js → ZeniAccountSetupPage-DXmdPnU2-Od8qQEgW.js} +1 -1
  195. package/dist/assets/{ZeniCopyright-COx-CtZK-D8sb71fE.js → ZeniCopyright-CxIm7c5S-BQ5EemJ1.js} +1 -1
  196. package/dist/assets/{ZeniTransferAmountSlider-DfOF_MH1-CdGJRA77.js → ZeniTransferAmountSlider-7nRSeYbl-qFHjxePx.js} +1 -1
  197. package/dist/assets/{add-to-wallet-DgdBD8_G-0XGXXyET.js → add-to-wallet-DgdBD8_G-DTqFjlvW.js} +1 -1
  198. package/dist/assets/{analytics-DKo_M1pl.js → analytics-nCDopMZa.js} +1 -1
  199. package/dist/assets/{analyticsHelper-CcmV6wHp-Ds3S8ZrP.js → analyticsHelper-BXN2EdPH-DXUFohOz.js} +1 -1
  200. package/dist/assets/{analyticsHelper-CIahkACa.js → analyticsHelper-DFj-3TWh.js} +1 -1
  201. package/dist/assets/{arrow-south-east-round-PEovUgvH-BXV4c0YJ.js → arrow-south-east-round-PEovUgvH-C9v2daeL.js} +1 -1
  202. package/dist/assets/{auto-transfer-rule-mbafm5D3-CaqR_Fs7.js → auto-transfer-rule-mbafm5D3-C9ojomBW.js} +1 -1
  203. package/dist/assets/{chartTypes-YlZX4WLs-vwClst_9.js → chartTypes-qqLvT6t1-BAzagmMG.js} +1 -1
  204. package/dist/assets/{commonDimensions-IG4iGJ-6-COy8LjzW.js → commonDimensions-CDU138wy-0KaFqMmK.js} +1 -1
  205. package/dist/assets/{constants-fG1bibDB.js → constants-CiSoUYAy.js} +1 -1
  206. package/dist/assets/{core-CpHpZW9N.js → core-B8o5Jj6O.js} +1 -1
  207. package/dist/assets/{dash.all.min-CVRHLeuD.js → dash.all.min-D-Z5Ee1V.js} +1 -1
  208. package/dist/assets/{detailCommon-lUFqcp_3-D6_iWrpG.js → detailCommon-DP02lgW9-DwZYcDAj.js} +5 -5
  209. package/dist/assets/{downloadPdf-DYME892p-CFdivUKB.js → downloadPdf-Dl5UuOv_-DcSCv9vJ.js} +1 -1
  210. package/dist/assets/{empty-BHQsFmmb.js → empty-CGwQB5sP.js} +1 -1
  211. package/dist/assets/{empty-_FQjEKMH.js → empty-dVLDjrZY.js} +1 -1
  212. package/dist/assets/epic-gk6U9kCP.js +2 -0
  213. package/dist/assets/{gift-box-Cmt9OgIZ-Dy2FFAHX.js → gift-box-Cmt9OgIZ-C7uoRs4g.js} +1 -1
  214. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BYD1Ec66.js → graphic-no-data-l-DU4J8fDt-DxQEyL6u.js} +1 -1
  215. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DyCtYJXL.js → graphic-no-data-net-burn-l-CzmycA0m-BeDfyPz6.js} +1 -1
  216. package/dist/assets/{handshake-BPg58FML-Ck4T6x8r.js → handshake-BPg58FML-C6I69X2f.js} +1 -1
  217. package/dist/assets/{index-DMxZ-F2f.js → index-2UT2PoLz.js} +1 -1
  218. package/dist/assets/{index-snZI7Ejp.js → index-B62kMDsj.js} +1 -1
  219. package/dist/assets/{index-gQkYKWh4.js → index-BlhMiimg.js} +1 -1
  220. package/dist/assets/{index-CdjgwxSA.js → index-CJSgchrb.js} +1 -1
  221. package/dist/assets/{index-CXEWvwRf.js → index-CofZqiyy.js} +1 -1
  222. package/dist/assets/{index-B_cddanf.js → index-l9FViNoO.js} +1044 -1048
  223. package/dist/assets/{index--v5kH7eI.js → index-mRKAcklk.js} +1 -1
  224. package/dist/assets/{lexical-DVClH-hg.js → lexical-B19SDutg.js} +1 -1
  225. package/dist/assets/{liveblocks-DKD_-8rq.js → liveblocks-BKCvXoiA.js} +1 -1
  226. package/dist/assets/{lottie-DPQlys-3.js → lottie-CTuuushW.js} +1 -1
  227. package/dist/assets/mapLoadingInProgressToTreeNode-DL4wGcX6-qKcz8o_r.js +1 -0
  228. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BNXHaV-x-8h6T4NE0.js → mapSectionWithAcOnlyToTreeNode-DLeyrCPV-CBeUvfG-.js} +1 -1
  229. package/dist/assets/mapSpacerToTreeNode-Bl4MSBc9-DsaOHsUd.js +1 -0
  230. package/dist/assets/{mapTimeframeBalancesToTreeNode-LxIEmBdX-Bxr9xNOi.js → mapTimeframeBalancesToTreeNode-BNP8a_pF-DA-Kt9CP.js} +1 -1
  231. package/dist/assets/mapTimeframeBalancesToTreeNode-Cx4O7W7V-C8qea7Z2.js +1 -0
  232. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BvxVvq-i-B7P1WFjn.js +1 -0
  233. package/dist/assets/{mui-vQToN2qW.js → mui-cKt0zt2w.js} +1 -1
  234. package/dist/assets/{page-detail-CWX5S47F-BDbvQ5nZ.js → page-detail-CWX5S47F-hDrW8rOj.js} +1 -1
  235. package/dist/assets/{radio-default-CiSgisfh-n0U7H3Pg.js → radio-default-CiSgisfh-D4wl_ybJ.js} +1 -1
  236. package/dist/assets/{react-Hb_TE8am.js → react-3b8QVeng.js} +1 -1
  237. package/dist/assets/{react-D4TXMxQv.js → react-85WN45Y4.js} +1 -1
  238. package/dist/assets/{react-DSNCIi97.js → react-BcpaDQXf.js} +1 -1
  239. package/dist/assets/{react-BP7HcSTu.js → react-CUDeH5fw.js} +1 -1
  240. package/dist/assets/{react-DkBDh8Z0.js → react-D2QCQuEO.js} +1 -1
  241. package/dist/assets/{react-DoQr6jZT.js → react-D811AKIl.js} +3 -3
  242. package/dist/assets/{react-BoeZM2US.js → react-Drezwue3.js} +1 -1
  243. package/dist/assets/{react-4R0im3o1.js → react-DycPsf8e.js} +1 -1
  244. package/dist/assets/{recharts-jo6oNEJ1.js → recharts-DKlDhqpA.js} +1 -1
  245. package/dist/assets/{sentry-CiC6rduJ.js → sentry-DWELwT5u.js} +1 -1
  246. package/dist/assets/{shield-DOlUxcFf-B-y5Gt68.js → shield-DOlUxcFf-DcDDcztl.js} +1 -1
  247. package/dist/assets/toCOABalancesWithID-BM2RMkm6-8ztVlUAS.js +1 -0
  248. package/dist/assets/{toChartData-CuSN9vUZ-CBCyKcms.js → toChartData-xURa2wgf-D5Tvqegg.js} +1 -1
  249. package/dist/assets/{uploadAttachment-CRI5U1f4-BNbLH2xC.js → uploadAttachment-DfTOIWsX-DQL7CPp6.js} +17 -17
  250. package/dist/assets/{uploadReceipts-CPw64UYa-rrnBgQHD.js → uploadReceipts-CPw64UYa-BXgFs59O.js} +1 -1
  251. package/dist/assets/{url-Cptp4ROd.js → url-BO73xRx2.js} +1 -1
  252. package/dist/assets/{url-D2MARgat.js → url-dLu3i57y.js} +1 -1
  253. package/dist/assets/{useLongPress-GCK2COYQ-DI7_2uJq.js → useLongPress-GCK2COYQ-BJatk2tg.js} +1 -1
  254. package/dist/assets/{usp-line-BBd1wKwW-COeXcH05.js → usp-line-BBd1wKwW-DG080FPi.js} +1 -1
  255. package/dist/assets/{utils-CM3T2Iks.js → utils-Db67jZaM.js} +1 -1
  256. package/dist/assets/{zeni-epic-state-Ce8CP8e3.js → zeni-epic-state-atBaoFS-.js} +17 -17
  257. package/dist/index.html +1 -1
  258. package/package.json +3 -3
  259. package/dist/assets/AccountInfoPage-D0Kzx5mY-4RCW-gma.js +0 -18
  260. package/dist/assets/AddAddressForCardDrawer-C_QsOhGT-sPCk5dFw.js +0 -6
  261. package/dist/assets/ApprovalRulesSettingsPage-5bJIKss7-Y9SQffD9.js +0 -47
  262. package/dist/assets/BillingSettingsPage-BiKaSV4T-Clmey8ds.js +0 -44
  263. package/dist/assets/BusinessVerificationPage-8tFxbXGC-u7kE13ru.js +0 -138
  264. package/dist/assets/ChargeCardPromoPage-BUGGPnco-B8DmSz9X.js +0 -222
  265. package/dist/assets/CompanyOfficerDetailsSection-CMl5cDNs-ClxHSaX5.js +0 -330
  266. package/dist/assets/CompanyPassportPage-BlDBD5EG-Ms4tKiHb.js +0 -347
  267. package/dist/assets/ConfettiBurst-nOkNOTPr-BBZuvmiJ.js +0 -1
  268. package/dist/assets/CustomerOnboardingContainerPage-Dq7dnrBC-CLzw6d0Z.js +0 -1
  269. package/dist/assets/CustomerOnboardingNoStepsPage-D1XU-7jk-U96sx-zJ.js +0 -66
  270. package/dist/assets/CustomerOnboardingPage-DFky4iQx-DXMpG3E5.js +0 -107
  271. package/dist/assets/DepositAccTransactionListPage-MLQJ9urd-DG1x-GzH.js +0 -66
  272. package/dist/assets/EntityDetailPage-Bj5lQ0PH-DoSc2vhw.js +0 -18
  273. package/dist/assets/InsightsSection-BT0lHMo3-BUbRW235.js +0 -27
  274. package/dist/assets/InternationalWireVerificationPage-B0ha4dEA-C8DDegxT.js +0 -65
  275. package/dist/assets/LabeledCountryMultiSelectField-CJud_Lwc-CMmFxHh7.js +0 -234
  276. package/dist/assets/LabeledMultiSelectField-DH6iG4SR-Dp-VUwax.js +0 -220
  277. package/dist/assets/MagicLinkACHDetailsPage-CRVp5zpz-Bv9MRMFe.js +0 -1
  278. package/dist/assets/MagicLinkDomesticWireDetailsPage-Cc9jW4rg-CJBdK_v_.js +0 -1
  279. package/dist/assets/MagicLinkInternationalWireDetailsPage-COHy_2Nv-CRrVgpWZ.js +0 -1
  280. package/dist/assets/NoDataChart-DxwqqeoI-DkdOoSHp.js +0 -26
  281. package/dist/assets/NoDataTable-DOZy5UAM-CLNkMXvt.js +0 -8
  282. package/dist/assets/NotificationsListConfig-C-OlC5S6-DRk_Uldo.js +0 -1
  283. package/dist/assets/OverlayContainerPage-Daz3A7cI-DMUnjjcT.js +0 -11
  284. package/dist/assets/PaymentAccountSetupBillingAddressSection-Dnw0APJu-4xS9nSQN.js +0 -107
  285. package/dist/assets/ReimbursementDetailPage-DOCRkpPT-AvgWK7pn.js +0 -314
  286. package/dist/assets/RoleWithToolTip-BYuFXi4d-CSVDcI3W.js +0 -22
  287. package/dist/assets/ScheduleDetailsFixedAssetsPage-BU--t7Cu-DFGGgkNo.js +0 -37
  288. package/dist/assets/StatementItem-CL4KzNeN-CTh4IsrB.js +0 -31
  289. package/dist/assets/StatementsPage-ECVGrRXi-Dgi1qAAg.js +0 -58
  290. package/dist/assets/SummaryCard-OvE5BRYP-lMLGP1wc.js +0 -1
  291. package/dist/assets/TransactionVendorDetailPage-BLCUqZvL-V1txeeOu.js +0 -80
  292. package/dist/assets/TreasuryStatementsPage-CLFal4Qu-Bi5NNgyx.js +0 -58
  293. package/dist/assets/UploadAdditionalDocumentOverlay-B37gdjRF-D7Y_EFQG.js +0 -38
  294. package/dist/assets/Vendor2FAPopup-BZQXt_G4-B9AtIVBH.js +0 -1
  295. package/dist/assets/VendorACHDetailsPage-WS3d8TF6-BTnrLXkh.js +0 -1
  296. package/dist/assets/VendorDomesticWireDetailsPage-Brom_Sf_-Bln1Phsj.js +0 -1
  297. package/dist/assets/VendorInternationalWireSwiftDetailsPage-C4XEeSs2-CiauNbGU.js +0 -1
  298. package/dist/assets/commonTypes-ByC4Sd87-BqJ29CNI.js +0 -1
  299. package/dist/assets/epic-DRq35BIa.js +0 -2
  300. package/dist/assets/mapLoadingInProgressToTreeNode-B7Tq4sxB-DXX1rvvB.js +0 -1
  301. package/dist/assets/mapSpacerToTreeNode-DpgQIqP_-d7FgPe5u.js +0 -1
  302. package/dist/assets/mapTimeframeBalancesToTreeNode-fxn51zxe-ArPj_MwE.js +0 -1
  303. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-opvjldHo-DvfSG3SI.js +0 -1
  304. package/dist/assets/toCOABalancesWithID-BAw7mDDs-4dn7cu8D.js +0 -1
@@ -1,8 +1,8 @@
1
- import{d as Q,q as v,a9 as Zt,cC as Xt,V as t,bA as Kt,ac as Qt,aP as ei,o as i,aa as ye,F as P,h0 as ti,y as R,i2 as ii,b as Ne,k as oi,ay as tt,ck as it,b2 as ot,di as st,cr as at,j$ as rt,c as w,n as si,k0 as ai,dg as ue,aY as ri,R as ni,M as nt,p as S,ai as li,bN as _,cP as he,g3 as pe,k1 as fe,aw as lt,a8 as dt,dq as U,fo as ct,gf as di,al as ee,ih as ci,am as H,fC as ui,aT as $e,b9 as me,k2 as hi,bK as ut,k3 as Re,bu as pi}from"./index-B_cddanf.js";import{a as g}from"./sentry-CiC6rduJ.js";import{n as r,c as A}from"./mui-vQToN2qW.js";import{Gb as fi,Gc as mi,bL as K,bh as $,E7 as ht}from"./zeni-epic-state-Ce8CP8e3.js";import{k as gi}from"./SubTabSwitcher-DmGRgMQe-DIYYgIi-.js";import{d as pt}from"./useLongPress-GCK2COYQ-DI7_2uJq.js";import{A as ft,t as mt,a as gt,E as xt,L as bt,I as wt}from"./NotificationsListConfig-C-OlC5S6-DRk_Uldo.js";import"./liveblocks-DKD_-8rq.js";import"./core-CpHpZW9N.js";import"./recharts-jo6oNEJ1.js";import"./lottie-DPQlys-3.js";import"./analytics-DKo_M1pl.js";import"./lexical-DVClH-hg.js";import"./utils-CM3T2Iks.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]="3a524fc7-61df-4f88-9ecd-29a81ec49398",e._sentryDebugIdIdentifier="sentry-dbid-3a524fc7-61df-4f88-9ecd-29a81ec49398")}catch{}})();function xi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:u}){const h=v(),p=Q(),m=g.useCallback(x=>{d(x.id)},[d]),f=g.useCallback(x=>{u(x.id)},[u]);return e.length===0?null:t.jsxs(bi,{windowSize:h,children:[t.jsx(ii,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${p.colors.grey3}`},onTabChange:m}),t.jsx(gi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:f})]})}const bi=r.div`
1
+ import{e as Q,q as v,a9 as Zt,cC as Xt,V as t,bA as Kt,ac as Qt,aP as ei,o as i,aa as ye,F as P,g_ as ti,y as R,i0 as ii,b as Ne,A as oi,ay as tt,ck as it,b2 as ot,dk as st,cr as at,jZ as rt,d as w,n as si,j_ as ai,di as ue,aY as ri,M as ni,a as nt,p as S,ai as li,bN as _,cP as he,g3 as pe,j$ as fe,aw as lt,a8 as dt,ds as U,fo as ct,gd as di,al as ee,ie as ci,am as H,fC as ui,aT as $e,b9 as me,k0 as hi,bK as ut,k1 as Re,bu as pi}from"./index-l9FViNoO.js";import{a as g}from"./sentry-DWELwT5u.js";import{n as r,c as O}from"./mui-cKt0zt2w.js";import{Gb as fi,Gc as mi,bL as K,bh as $,E7 as ht}from"./zeni-epic-state-atBaoFS-.js";import{k as gi}from"./SubTabSwitcher-vsehXtEO-aHnk9ME_.js";import{d as pt}from"./useLongPress-GCK2COYQ-BJatk2tg.js";import{A as ft,t as mt,a as gt,E as xt,L as bt,I as wt}from"./NotificationsListConfig-QOeX1KBS-BXuzGZYq.js";import"./liveblocks-BKCvXoiA.js";import"./core-B8o5Jj6O.js";import"./recharts-DKlDhqpA.js";import"./lottie-CTuuushW.js";import"./analytics-nCDopMZa.js";import"./lexical-B19SDutg.js";import"./utils-Db67jZaM.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]="66eacbbd-68b7-4d06-9ece-7e5376ac48e5",e._sentryDebugIdIdentifier="sentry-dbid-66eacbbd-68b7-4d06-9ece-7e5376ac48e5")}catch{}})();function xi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:u}){const h=v(),p=Q(),m=g.useCallback(x=>{d(x.id)},[d]),f=g.useCallback(x=>{u(x.id)},[u]);return e.length===0?null:t.jsxs(bi,{windowSize:h,children:[t.jsx(ii,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${p.colors.grey3}`},onTabChange:m}),t.jsx(gi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:f})]})}const bi=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
5
- `,{common:{timeStrings:yt,strings:wi},dateFormat:Ie,timeFormat:yi}=P.getLocalizedStrings(),$t=["today","yesterday","last_7_days_this_month","earlier_this_month","earlier_that_month"],le=e=>e.type.concat(wi.underscore).concat(e.start.format(Ie.visual.DdashMMdashYYYYFormat)),ge=e=>{switch(e.type){case"today":case"yesterday":case"earlier_this_month":case"last_7_days_this_month":return yt[e.type];case"earlier_that_month":return e.start.format(Ie.visual.MMMYYYYFormat)}},jt=e=>{const o=K(e.toUTCString()),s=$(),a=s.diff(o,"minutes"),n=s.diff(o,"seconds"),l=60,c=24*60;return n<=l?yt.justNow:a<c&&hi(o,0)?o.format(yi.hhmmAFormat):o.format(Ie.visual.MMMDFormat)},_e=e=>{switch(e.code){case"todo":return S.important;case"in_progress":return S.info;case"on_hold":return S.alert;case"done":return S.championLight;case"resolved":return S.successDark;default:return S.neutralGrey2Light}},{commentsAndNotifications:{notifications:{actionStrings:{comments:$i}}}}=P.getLocalizedStrings(),kt=e=>{e.sort((n,l)=>K(n.inboxNotification.notifiedAt.toUTCString()).isAfter(K(l.inboxNotification.notifiedAt.toUTCString()))===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of $t){let l=0,c=0,d=$().subtract(Math.min($().date(),l),"d").startOf("d"),u=$().subtract(Math.min($().date(),c),"d").endOf("d"),h=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=$().subtract(Math.min($().date(),l),"d").startOf("d"),u=$().subtract(Math.min($().date(),c),"d").endOf("d"),a=oe(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup});break;case"last_7_days_this_month":o.length>0&&$().date()>2&&(d=$().subtract(Math.min($().date()-1,8),"d").startOf("d"),u=$().subtract(2,"d").endOf("d"),a=oe(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_this_month":o.length>0&&$().date()>9&&(d=$().startOf("M").startOf("d"),u=$().subtract(9,"d").endOf("d"),a=oe(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_that_month":for(;o.length>0;){const p=$().subtract(h,"month").startOf("M").startOf("d"),m=$().subtract(h,"month").endOf("M").endOf("d");h++,a=oe(o,p,m),o=a.remainingData,s.push({start:p,end:m,type:n,notifications:a.singleGroup})}break}}return s},oe=(e,o,s)=>{const a=[],n=e.map(l=>rt(o,s,K(l.inboxNotification.notifiedAt.toUTCString()))?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>K(l.inboxNotification.notifiedAt.toUTCString()).isAfter(K(c.inboxNotification.notifiedAt.toUTCString()))===!0?-1:1),{singleGroup:a,remainingData:n}},ji=e=>{const{thread:o}=e,{newRepliesAdded:s,newCommentAdded:a}=$i;return o.comments.length===1?a:s},St=new R(3,2,1,1,1),vt=new R(w[8],w[6],35,35,w[6]),de={lineClamp:St,sectionWidth:vt},{common:{texts:ze,timeStrings:ki,strings:te},commentsAndNotifications:{notifications:{strings:{newMessage:Si},actionStrings:{comments:{newCommentAdded:vi}}}}}=P.getLocalizedStrings(),Ci=({notificationData:e,users:o,isHighlighted:s=!1,style:a,onNotificationTileClick:n})=>{const l=lt(),c=dt().analytics,{inboxNotification:{id:d,readAt:u,notifiedAt:h},thread:p}=e,{setRequestToOpenThread:m}=g.useContext(di),f=u!=null?"read":"unread",{metadata:{url:x,companyId:k,entityType:B},id:z}=p;return t.jsxs(zi,{readStatus:f,isClickable:!!x,isHighlighted:s,style:a,onClick:()=>{x&&(n(d,ht(x),f),(p.metadata.tab==="bill"||p.metadata.tab==="reimbursement")&&m({threadId:z,companyId:k,entityType:B})),p.metadata.application!=="cockpit"&&c.trackCommentActivity("notification","clicked",p.metadata.companyName,l.controllersList.controllers.map(N=>U(N)),p.resolved?"resolved":"open",{name:ct(l.loggedInUser),email:l.loggedInUser?.userEmail??""},"db notification")},children:[t.jsx(Ti,{notificationData:e,users:o}),t.jsx(Ii,{...e}),t.jsx(Li,{timestamp:h,readStatus:f})]})},Ct=({notificationData:e,users:o})=>{const{thread:s}=e,{comments:a}=s,n=a[0];return a.length===0||n.body==null?t.jsx(je,{children:Si}):t.jsx(je,{children:n.body.content.map(l=>{switch(l.type){case"paragraph":return l.children.map((c,d)=>{if(Ri(c)){const h=o.find(p=>p.userId===c.id);return c.id?t.jsx(Ni,{notificationData:e,user:h},`${c.id}${te.underscore}${d}`):null}if(_i(c)){const h=ci(c.url)??c.url;return t.jsx(Gi,{href:h,target:"_blank",rel:"noopener noreferrer nofollow",children:c.text??c.url},d)}let u=c.text;return c.bold===!0&&(u=t.jsx(Oi,{children:u},d)),c.italic===!0&&(u=t.jsx(Pi,{children:u},d)),c.strikethrough===!0&&(u=t.jsx(Bi,{children:u},d)),c.code===!0&&(u=t.jsx(Ai,{children:u},d)),t.jsx(Fi,{children:u},d)});default:return t.jsx(je,{children:vi})}})})},Ti=({notificationData:e,users:o})=>{const s=v();return t.jsx(Ei,{windowSize:s,children:t.jsx(Ct,{notificationData:e,users:o})})},Ni=({notificationData:e,user:o})=>{const{inboxNotification:{readAt:s}}=e,a=s!=null?"read":"unread";let n=t.jsxs(De,{className:"userText",readStatus:a,children:[te.atTheRate,ze.user,te.space]});if(o!=null){const l=U(o,!1);n=t.jsx(t.Fragment,{children:t.jsxs(De,{className:"userText",readStatus:a,children:[te.atTheRate,l||ze.user,te.space]})})}return n},Tt=e=>{const o=ji(e);return t.jsx(t.Fragment,{children:o})},Ii=e=>{const o=v();return t.jsx(Mi,{windowSize:o,children:t.jsx(Tt,{...e})})},Nt=e=>{const{timestamp:o,readStatus:s}=e,a=jt(o);return t.jsxs(t.Fragment,{children:[t.jsx(Ui,{isNewNotification:a===ki.justNow,children:a}),t.jsx(Hi,{readStatus:s})]})},Li=e=>{const o=v();return t.jsx(Di,{windowSize:o,children:t.jsx(Nt,{...e})})};function Ri(e){return"type"in e&&e.type==="mention"}function _i(e){return"type"in e&&e.type==="link"}const zi=r.div`
5
+ `,{common:{timeStrings:yt,strings:wi},dateFormat:Ie,timeFormat:yi}=P.getLocalizedStrings(),$t=["today","yesterday","last_7_days_this_month","earlier_this_month","earlier_that_month"],le=e=>e.type.concat(wi.underscore).concat(e.start.format(Ie.visual.DdashMMdashYYYYFormat)),ge=e=>{switch(e.type){case"today":case"yesterday":case"earlier_this_month":case"last_7_days_this_month":return yt[e.type];case"earlier_that_month":return e.start.format(Ie.visual.MMMYYYYFormat)}},jt=e=>{const o=K(e.toUTCString()),s=$(),a=s.diff(o,"minutes"),n=s.diff(o,"seconds"),l=60,c=24*60;return n<=l?yt.justNow:a<c&&hi(o,0)?o.format(yi.hhmmAFormat):o.format(Ie.visual.MMMDFormat)},_e=e=>{switch(e.code){case"todo":return S.important;case"in_progress":return S.info;case"on_hold":return S.alert;case"done":return S.championLight;case"resolved":return S.successDark;default:return S.neutralGrey2Light}},{commentsAndNotifications:{notifications:{actionStrings:{comments:$i}}}}=P.getLocalizedStrings(),kt=e=>{e.sort((n,l)=>K(n.inboxNotification.notifiedAt.toUTCString()).isAfter(K(l.inboxNotification.notifiedAt.toUTCString()))===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of $t){let l=0,c=0,d=$().subtract(Math.min($().date(),l),"d").startOf("d"),u=$().subtract(Math.min($().date(),c),"d").endOf("d"),h=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=$().subtract(Math.min($().date(),l),"d").startOf("d"),u=$().subtract(Math.min($().date(),c),"d").endOf("d"),a=oe(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup});break;case"last_7_days_this_month":o.length>0&&$().date()>2&&(d=$().subtract(Math.min($().date()-1,8),"d").startOf("d"),u=$().subtract(2,"d").endOf("d"),a=oe(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_this_month":o.length>0&&$().date()>9&&(d=$().startOf("M").startOf("d"),u=$().subtract(9,"d").endOf("d"),a=oe(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_that_month":for(;o.length>0;){const p=$().subtract(h,"month").startOf("M").startOf("d"),m=$().subtract(h,"month").endOf("M").endOf("d");h++,a=oe(o,p,m),o=a.remainingData,s.push({start:p,end:m,type:n,notifications:a.singleGroup})}break}}return s},oe=(e,o,s)=>{const a=[],n=e.map(l=>rt(o,s,K(l.inboxNotification.notifiedAt.toUTCString()))?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>K(l.inboxNotification.notifiedAt.toUTCString()).isAfter(K(c.inboxNotification.notifiedAt.toUTCString()))===!0?-1:1),{singleGroup:a,remainingData:n}},ji=e=>{const{thread:o}=e,{newRepliesAdded:s,newCommentAdded:a}=$i;return o.comments.length===1?a:s},St=new R(3,2,1,1,1),vt=new R(w[8],w[6],35,35,w[6]),de={lineClamp:St,sectionWidth:vt},{common:{texts:ze,timeStrings:ki,strings:te},commentsAndNotifications:{notifications:{strings:{newMessage:Si},actionStrings:{comments:{newCommentAdded:vi}}}}}=P.getLocalizedStrings(),Ci=({notificationData:e,users:o,isHighlighted:s=!1,style:a,onNotificationTileClick:n})=>{const l=lt(),c=dt().analytics,{inboxNotification:{id:d,readAt:u,notifiedAt:h},thread:p}=e,{setRequestToOpenThread:m}=g.useContext(di),f=u!=null?"read":"unread",{metadata:{url:x,companyId:k,entityType:B},id:z}=p;return t.jsxs(zi,{readStatus:f,isClickable:!!x,isHighlighted:s,style:a,onClick:()=>{x&&(n(d,ht(x),f),(p.metadata.tab==="bill"||p.metadata.tab==="reimbursement")&&m({threadId:z,companyId:k,entityType:B})),p.metadata.application!=="cockpit"&&c.trackCommentActivity("notification","clicked",p.metadata.companyName,l.controllersList.controllers.map(N=>U(N)),p.resolved?"resolved":"open",{name:ct(l.loggedInUser),email:l.loggedInUser?.userEmail??""},"db notification")},children:[t.jsx(Ti,{notificationData:e,users:o}),t.jsx(Ii,{...e}),t.jsx(Li,{timestamp:h,readStatus:f})]})},Ct=({notificationData:e,users:o})=>{const{thread:s}=e,{comments:a}=s,n=a[0];return a.length===0||n.body==null?t.jsx(je,{children:Si}):t.jsx(je,{children:n.body.content.map(l=>{switch(l.type){case"paragraph":return l.children.map((c,d)=>{if(Ri(c)){const h=o.find(p=>p.userId===c.id);return c.id?t.jsx(Ni,{notificationData:e,user:h},`${c.id}${te.underscore}${d}`):null}if(_i(c)){const h=ci(c.url)??c.url;return t.jsx(Gi,{href:h,target:"_blank",rel:"noopener noreferrer nofollow",children:c.text??c.url},d)}let u=c.text;return c.bold===!0&&(u=t.jsx(Ai,{children:u},d)),c.italic===!0&&(u=t.jsx(Pi,{children:u},d)),c.strikethrough===!0&&(u=t.jsx(Bi,{children:u},d)),c.code===!0&&(u=t.jsx(Oi,{children:u},d)),t.jsx(Fi,{children:u},d)});default:return t.jsx(je,{children:vi})}})})},Ti=({notificationData:e,users:o})=>{const s=v();return t.jsx(Ei,{windowSize:s,children:t.jsx(Ct,{notificationData:e,users:o})})},Ni=({notificationData:e,user:o})=>{const{inboxNotification:{readAt:s}}=e,a=s!=null?"read":"unread";let n=t.jsxs(De,{className:"userText",readStatus:a,children:[te.atTheRate,ze.user,te.space]});if(o!=null){const l=U(o,!1);n=t.jsx(t.Fragment,{children:t.jsxs(De,{className:"userText",readStatus:a,children:[te.atTheRate,l||ze.user,te.space]})})}return n},Tt=e=>{const o=ji(e);return t.jsx(t.Fragment,{children:o})},Ii=e=>{const o=v();return t.jsx(Mi,{windowSize:o,children:t.jsx(Tt,{...e})})},Nt=e=>{const{timestamp:o,readStatus:s}=e,a=jt(o);return t.jsxs(t.Fragment,{children:[t.jsx(Ui,{isNewNotification:a===ki.justNow,children:a}),t.jsx(Hi,{readStatus:s})]})},Li=e=>{const o=v();return t.jsx(Di,{windowSize:o,children:t.jsx(Nt,{...e})})};function Ri(e){return"type"in e&&e.type==="mention"}function _i(e){return"type"in e&&e.type==="link"}const zi=r.div`
6
6
  display: flex;
7
7
  flex-direction: row;
8
8
  align-items: center;
@@ -33,7 +33,7 @@ import{d as Q,q as v,a9 as Zt,cC as Xt,V as t,bA as Kt,ac as Qt,aP as ei,o as i,
33
33
  border-bottom-right-radius: inherit;
34
34
  }
35
35
 
36
- ${e=>e.isHighlighted?A`
36
+ ${e=>e.isHighlighted?O`
37
37
  z-index: 1;
38
38
  color: ${e.theme.colors.primary};
39
39
  border: 1px solid ${e.theme.colors.primary};
@@ -43,7 +43,7 @@ import{d as Q,q as v,a9 as Zt,cC as Xt,V as t,bA as Kt,ac as Qt,aP as ei,o as i,
43
43
  }
44
44
  `:null};
45
45
 
46
- ${e=>e.isClickable?A`
46
+ ${e=>e.isClickable?O`
47
47
  &:hover {
48
48
  z-index: 1;
49
49
  color: ${e.theme.colors.primary};
@@ -68,7 +68,7 @@ import{d as Q,q as v,a9 as Zt,cC as Xt,V as t,bA as Kt,ac as Qt,aP as ei,o as i,
68
68
  -webkit-line-clamp: ${e=>de.lineClamp.value(e.windowSize)};
69
69
  -webkit-box-orient: vertical;
70
70
  width: ${e=>de.sectionWidth.valuePercentage(e.windowSize)};
71
- `,Oi=r.strong``,Ai=r.code``,Pi=r.em``,Bi=r.s``,Fi=r.span``,Gi=r.a``,Ei=r(ee)`
71
+ `,Ai=r.strong``,Oi=r.code``,Pi=r.em``,Bi=r.s``,Fi=r.span``,Gi=r.a``,Ei=r(ee)`
72
72
  color: inherit;
73
73
  display: -webkit-box;
74
74
  overflow: hidden;
@@ -207,7 +207,7 @@ import{d as Q,q as v,a9 as Zt,cC as Xt,V as t,bA as Kt,ac as Qt,aP as ei,o as i,
207
207
  border-bottom-right-radius: inherit;
208
208
  }
209
209
 
210
- ${e=>e.isHighlighted?A`
210
+ ${e=>e.isHighlighted?O`
211
211
  z-index: 1;
212
212
  color: ${e.theme.colors.primary};
213
213
  border: 1px solid ${e.theme.colors.primary};
@@ -217,7 +217,7 @@ import{d as Q,q as v,a9 as Zt,cC as Xt,V as t,bA as Kt,ac as Qt,aP as ei,o as i,
217
217
  }
218
218
  `:null};
219
219
 
220
- ${e=>e.isClickable?A`
220
+ ${e=>e.isClickable?O`
221
221
  &:hover {
222
222
  z-index: 1;
223
223
  color: ${e.theme.colors.primary};
@@ -253,11 +253,11 @@ import{d as Q,q as v,a9 as Zt,cC as Xt,V as t,bA as Kt,ac as Qt,aP as ei,o as i,
253
253
  align-items: flex-start;
254
254
  width: 100%;
255
255
  padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp0};
256
- `,{common:{all:Oe}}=P.getLocalizedStrings(),mo=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=Q(),{getValues:u}=he(),h=u(s),p=g.useRef([]);return g.useEffect(()=>{p.current=p.current.slice(0,e.notifications.length)},[e.notifications.length]),t.jsx(go,{style:n,children:t.jsx(pe,{mode:a,checkBoxes:[{label:t.jsx(Ae,{htmlFor:`${s}.${Oe.toLocaleLowerCase()}`,style:{color:d.colors.primary,marginLeft:i.sp2},children:ge(e)}),value:Oe.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((m,f)=>{const x=f===0,k=e.notifications.length-1===f;return{label:t.jsx(Ae,{ref:B=>p.current[f]=B,htmlFor:`${s}.${m.inboxNotification.id}`,style:{padding:i.sp0},children:t.jsx(xo,{notificationData:m,users:o,style:{borderTopLeftRadius:x?i.sp2:void 0,borderTopRightRadius:x?i.sp2:void 0,borderBottomLeftRadius:k?i.sp2:void 0,borderBottomRightRadius:k?i.sp2:void 0,marginLeft:i.sp2},isHighlighted:h?.includes(m.inboxNotification.id)===!0,isSelectionMode:a==="always_on",onNotificationTileClick:c,onNotificationTileLongPress:()=>{p.current[f]?.click()}})}),value:m.inboxNotification.id,defaultChecked:!1,groupLabel:!1}})],name:s,isDisabled:l,style:{width:"100%",position:"relative"},checkBoxStyle:{padding:i.sp1,zIndex:2,left:`-${i.sp1}`,position:"absolute"},checkBoxIconStyle:{backgroundColor:d.colors.grey5}})})},go=r.div`
256
+ `,{common:{all:Ae}}=P.getLocalizedStrings(),mo=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=Q(),{getValues:u}=he(),h=u(s),p=g.useRef([]);return g.useEffect(()=>{p.current=p.current.slice(0,e.notifications.length)},[e.notifications.length]),t.jsx(go,{style:n,children:t.jsx(pe,{mode:a,checkBoxes:[{label:t.jsx(Oe,{htmlFor:`${s}.${Ae.toLocaleLowerCase()}`,style:{color:d.colors.primary,marginLeft:i.sp2},children:ge(e)}),value:Ae.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((m,f)=>{const x=f===0,k=e.notifications.length-1===f;return{label:t.jsx(Oe,{ref:B=>p.current[f]=B,htmlFor:`${s}.${m.inboxNotification.id}`,style:{padding:i.sp0},children:t.jsx(xo,{notificationData:m,users:o,style:{borderTopLeftRadius:x?i.sp2:void 0,borderTopRightRadius:x?i.sp2:void 0,borderBottomLeftRadius:k?i.sp2:void 0,borderBottomRightRadius:k?i.sp2:void 0,marginLeft:i.sp2},isHighlighted:h?.includes(m.inboxNotification.id)===!0,isSelectionMode:a==="always_on",onNotificationTileClick:c,onNotificationTileLongPress:()=>{p.current[f]?.click()}})}),value:m.inboxNotification.id,defaultChecked:!1,groupLabel:!1}})],name:s,isDisabled:l,style:{width:"100%",position:"relative"},checkBoxStyle:{padding:i.sp1,zIndex:2,left:`-${i.sp1}`,position:"absolute"},checkBoxIconStyle:{backgroundColor:d.colors.grey5}})})},go=r.div`
257
257
  display: flex;
258
258
  align-items: center;
259
259
  width: 100%;
260
- `,Ae=r(fe)`
260
+ `,Oe=r(fe)`
261
261
  display: flex;
262
262
  align-items: flex-start;
263
263
  width: 100%;
@@ -279,7 +279,7 @@ import{d as Q,q as v,a9 as Zt,cC as Xt,V as t,bA as Kt,ac as Qt,aP as ei,o as i,
279
279
  top: ${i.sp0};
280
280
  left: ${i.sp0};
281
281
  box-sizing: border-box;
282
- `,{common:{in:vo,strings:Rt},dateFormat:Co,commentsAndNotifications:{notifications:{actionStrings:{notifications:O}}}}=P.getLocalizedStrings(),_t=e=>{e.sort((n,l)=>n.createTime.isAfter(l.createTime)===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of $t){let l=0,c=0,d=$().subtract(Math.min($().date(),l),"d").startOf("d"),u=$().subtract(Math.min($().date(),c),"d").endOf("d"),h=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=$().subtract(Math.min($().date(),l),"d").startOf("d"),u=$().subtract(Math.min($().date(),c),"d").endOf("d"),a=se(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup});break;case"last_7_days_this_month":o.length>0&&$().date()>2&&(d=$().subtract(Math.min($().date()-1,8),"d").startOf("d"),u=$().subtract(2,"d").endOf("d"),a=se(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_this_month":o.length>0&&$().date()>9&&(d=$().startOf("M").startOf("d"),u=$().subtract(9,"d").endOf("d"),a=se(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_that_month":for(;o.length>0;){const p=$().subtract(h,"month").startOf("M").startOf("d"),m=$().subtract(h,"month").endOf("M").endOf("d");h++,a=se(o,p,m),o=a.remainingData,s.push({start:p,end:m,type:n,notifications:a.singleGroup})}break}}return s},se=(e,o,s)=>{const a=[],n=e.map(l=>rt(o,s,l.createTime)?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>l.createTime.isAfter(c.createTime)===!0?-1:1),{singleGroup:a,remainingData:n}},To=e=>{let o=O.newActivity;return e.code==="in_progress"?o=O.due.replace("__task_status__",Re(e.name.toLocaleLowerCase())):o=O.due.replace("__task_status__",vo.toLocaleLowerCase().concat(Rt.space,Re(e.name.toLocaleLowerCase()))),o},No=e=>{const{eventData:{activities:o}}=e;let s=O.newActivity;if(o.length>0){const a=o[0].activityType,n=o[0].metadata.eventStatus;switch(a){case"task_archived":s=O.archive;break;case"task_deleted":s=O.delete;break;case"task_activities":s=O.activities;break;case"task_assigned":s=O.assign;break;case"task_created":s=O.create;break;case"task_due":s=n!=null?To(n):O.dueTomorrow;break;case"task_overdue":s=O.overdue.replace("__date__",o[0].metadata.additionalInfo?.dueDate.format(Co.visual.MMMDFormat)??Rt.empty);break;case"task_status_updated":s=O.statusUpdate;break}}return s},zt=new R(3,2,1,1,1),Dt=new R(w[8],33,33,33,35),ce={lineClamp:zt,sectionWidth:Dt},{common:{and:Fe,other:Io,others:Lo,texts:Ro,timeStrings:_o,strings:M,tags:zo}}=P.getLocalizedStrings(),Do=({notificationData:e,isHighlighted:o=!1,style:s,onNotificationTileClick:a})=>{const{status:n,notificationId:l,eventData:{entitiyId:c,activities:d},createTime:u}=e;return t.jsxs(Go,{notificationStatus:n,isHighlighted:o,style:s,onClick:()=>{a(l,c,n,d.length>0?d[0].activityType:void 0)},children:[t.jsx(Mo,{...e}),t.jsx(Po,{...e}),t.jsx(Fo,{...e}),t.jsx(Bo,{createTime:u,notificationStatus:n})]})},Mt=e=>{const{status:o,eventData:{title:s}}=e;return t.jsx(Yo,{notificationStatus:o,children:s||M.hyphen})},Mo=e=>{const o=v();return t.jsx(Vo,{windowSize:o,children:t.jsx(Mt,{...e})})},Oo=e=>{const{eventData:{activities:o}}=e;if(o.length>0&&o[0].activityType==="task_status_updated"){const s=o[0].metadata.updates.find(a=>a.type==="code_name_pair"&&a.field==="status");if(s?.oldValue.codeNamePair!=null&&s.newValue.codeNamePair!=null)return t.jsxs(Jo,{children:[t.jsx(Ge,{backgroundColor:_e(s.oldValue.codeNamePair),children:s.oldValue.codeNamePair.name}),t.jsx(qo,{}),t.jsx(Ge,{backgroundColor:_e(s.newValue.codeNamePair),children:s.newValue.codeNamePair.name})]})}return null},Ao=e=>{const{status:o,eventData:{authors:s,activities:a}}=e,n=s.length;if(a[0].activityType==="task_due"||a[0].activityType==="task_overdue"||a[0].activityType==="task_status_updated")return null;let l=t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,Ro.user,M.space]});return n>0&&(n>2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,U(s[0],!1),M.space]}),Fe,t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.space,n-1,M.space,Lo,M.space]})]}):n===2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,U(s[0],!1),M.space]}),Fe,t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.space,s.length===2?M.atTheRate+U(s[1],!1):Io,M.space]})]}):l=t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,U(s[0],!1),M.space]})),l},Ot=e=>t.jsxs(t.Fragment,{children:[t.jsx(Ao,{...e}),No(e),t.jsx(Oo,{...e})]}),Po=e=>{const o=v(),{eventData:{activities:s}}=e;return t.jsx(Ho,{windowSize:o,statusUpdate:s.length>0&&s[0].activityType==="task_status_updated"&&s[0].metadata.updates.find(a=>a.field==="status")!=null,children:t.jsx(Ot,{...e})})},At=e=>{const{createTime:o,notificationStatus:s}=e,a=jt(o.toDate());return t.jsxs(t.Fragment,{children:[t.jsx(Wo,{isNewNotification:a===_o.justNow,children:a}),t.jsx(Xo,{notificationStatus:s})]})},Bo=e=>{const o=v();return t.jsx(Eo,{windowSize:o,children:t.jsx(At,{...e})})},Pt=e=>{const{eventData:{activities:o}}=e;return o[0].activityType==="task_overdue"?t.jsx(ui,{tagTitle:zo.overdue,textColor:{color:new $e(S.alert),backgroundColor:new $e("transparent"),borderColor:new $e(S.alert)},showLoader:!1}):t.jsx(Zo,{})},Fo=e=>{const o=v();return t.jsx(Uo,{windowSize:o,children:t.jsx(Pt,{...e})})},Go=r.div`
282
+ `,{common:{in:vo,strings:Rt},dateFormat:Co,commentsAndNotifications:{notifications:{actionStrings:{notifications:A}}}}=P.getLocalizedStrings(),_t=e=>{e.sort((n,l)=>n.createTime.isAfter(l.createTime)===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of $t){let l=0,c=0,d=$().subtract(Math.min($().date(),l),"d").startOf("d"),u=$().subtract(Math.min($().date(),c),"d").endOf("d"),h=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=$().subtract(Math.min($().date(),l),"d").startOf("d"),u=$().subtract(Math.min($().date(),c),"d").endOf("d"),a=se(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup});break;case"last_7_days_this_month":o.length>0&&$().date()>2&&(d=$().subtract(Math.min($().date()-1,8),"d").startOf("d"),u=$().subtract(2,"d").endOf("d"),a=se(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_this_month":o.length>0&&$().date()>9&&(d=$().startOf("M").startOf("d"),u=$().subtract(9,"d").endOf("d"),a=se(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_that_month":for(;o.length>0;){const p=$().subtract(h,"month").startOf("M").startOf("d"),m=$().subtract(h,"month").endOf("M").endOf("d");h++,a=se(o,p,m),o=a.remainingData,s.push({start:p,end:m,type:n,notifications:a.singleGroup})}break}}return s},se=(e,o,s)=>{const a=[],n=e.map(l=>rt(o,s,l.createTime)?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>l.createTime.isAfter(c.createTime)===!0?-1:1),{singleGroup:a,remainingData:n}},To=e=>{let o=A.newActivity;return e.code==="in_progress"?o=A.due.replace("__task_status__",Re(e.name.toLocaleLowerCase())):o=A.due.replace("__task_status__",vo.toLocaleLowerCase().concat(Rt.space,Re(e.name.toLocaleLowerCase()))),o},No=e=>{const{eventData:{activities:o}}=e;let s=A.newActivity;if(o.length>0){const a=o[0].activityType,n=o[0].metadata.eventStatus;switch(a){case"task_archived":s=A.archive;break;case"task_deleted":s=A.delete;break;case"task_activities":s=A.activities;break;case"task_assigned":s=A.assign;break;case"task_created":s=A.create;break;case"task_due":s=n!=null?To(n):A.dueTomorrow;break;case"task_overdue":s=A.overdue.replace("__date__",o[0].metadata.additionalInfo?.dueDate.format(Co.visual.MMMDFormat)??Rt.empty);break;case"task_status_updated":s=A.statusUpdate;break}}return s},zt=new R(3,2,1,1,1),Dt=new R(w[8],33,33,33,35),ce={lineClamp:zt,sectionWidth:Dt},{common:{and:Fe,other:Io,others:Lo,texts:Ro,timeStrings:_o,strings:M,tags:zo}}=P.getLocalizedStrings(),Do=({notificationData:e,isHighlighted:o=!1,style:s,onNotificationTileClick:a})=>{const{status:n,notificationId:l,eventData:{entitiyId:c,activities:d},createTime:u}=e;return t.jsxs(Go,{notificationStatus:n,isHighlighted:o,style:s,onClick:()=>{a(l,c,n,d.length>0?d[0].activityType:void 0)},children:[t.jsx(Mo,{...e}),t.jsx(Po,{...e}),t.jsx(Fo,{...e}),t.jsx(Bo,{createTime:u,notificationStatus:n})]})},Mt=e=>{const{status:o,eventData:{title:s}}=e;return t.jsx(Yo,{notificationStatus:o,children:s||M.hyphen})},Mo=e=>{const o=v();return t.jsx(Vo,{windowSize:o,children:t.jsx(Mt,{...e})})},Ao=e=>{const{eventData:{activities:o}}=e;if(o.length>0&&o[0].activityType==="task_status_updated"){const s=o[0].metadata.updates.find(a=>a.type==="code_name_pair"&&a.field==="status");if(s?.oldValue.codeNamePair!=null&&s.newValue.codeNamePair!=null)return t.jsxs(Jo,{children:[t.jsx(Ge,{backgroundColor:_e(s.oldValue.codeNamePair),children:s.oldValue.codeNamePair.name}),t.jsx(qo,{}),t.jsx(Ge,{backgroundColor:_e(s.newValue.codeNamePair),children:s.newValue.codeNamePair.name})]})}return null},Oo=e=>{const{status:o,eventData:{authors:s,activities:a}}=e,n=s.length;if(a[0].activityType==="task_due"||a[0].activityType==="task_overdue"||a[0].activityType==="task_status_updated")return null;let l=t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,Ro.user,M.space]});return n>0&&(n>2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,U(s[0],!1),M.space]}),Fe,t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.space,n-1,M.space,Lo,M.space]})]}):n===2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,U(s[0],!1),M.space]}),Fe,t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.space,s.length===2?M.atTheRate+U(s[1],!1):Io,M.space]})]}):l=t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,U(s[0],!1),M.space]})),l},At=e=>t.jsxs(t.Fragment,{children:[t.jsx(Oo,{...e}),No(e),t.jsx(Ao,{...e})]}),Po=e=>{const o=v(),{eventData:{activities:s}}=e;return t.jsx(Ho,{windowSize:o,statusUpdate:s.length>0&&s[0].activityType==="task_status_updated"&&s[0].metadata.updates.find(a=>a.field==="status")!=null,children:t.jsx(At,{...e})})},Ot=e=>{const{createTime:o,notificationStatus:s}=e,a=jt(o.toDate());return t.jsxs(t.Fragment,{children:[t.jsx(Wo,{isNewNotification:a===_o.justNow,children:a}),t.jsx(Xo,{notificationStatus:s})]})},Bo=e=>{const o=v();return t.jsx(Eo,{windowSize:o,children:t.jsx(Ot,{...e})})},Pt=e=>{const{eventData:{activities:o}}=e;return o[0].activityType==="task_overdue"?t.jsx(ui,{tagTitle:zo.overdue,textColor:{color:new $e(S.alert),backgroundColor:new $e("transparent"),borderColor:new $e(S.alert)},showLoader:!1}):t.jsx(Zo,{})},Fo=e=>{const o=v();return t.jsx(Uo,{windowSize:o,children:t.jsx(Pt,{...e})})},Go=r.div`
283
283
  display: flex;
284
284
  flex-direction: row;
285
285
  align-items: center;
@@ -310,7 +310,7 @@ import{d as Q,q as v,a9 as Zt,cC as Xt,V as t,bA as Kt,ac as Qt,aP as ei,o as i,
310
310
  border-bottom-right-radius: inherit;
311
311
  }
312
312
 
313
- ${e=>e.isHighlighted?A`
313
+ ${e=>e.isHighlighted?O`
314
314
  z-index: 1;
315
315
  color: ${e.theme.colors.primary};
316
316
  border: 1px solid ${e.theme.colors.primary};
@@ -345,11 +345,11 @@ import{d as Q,q as v,a9 as Zt,cC as Xt,V as t,bA as Kt,ac as Qt,aP as ei,o as i,
345
345
  `,Ho=r(ee)`
346
346
  color: inherit;
347
347
 
348
- ${e=>e.statusUpdate?A`
348
+ ${e=>e.statusUpdate?O`
349
349
  display: flex;
350
350
  flex-wrap: wrap;
351
351
  gap: ${i.sp1};
352
- `:A`
352
+ `:O`
353
353
  display: -webkit-box;
354
354
  overflow: hidden;
355
355
  -webkit-line-clamp: ${ce.lineClamp.value(e.windowSize)};
@@ -479,7 +479,7 @@ import{d as Q,q as v,a9 as Zt,cC as Xt,V as t,bA as Kt,ac as Qt,aP as ei,o as i,
479
479
  `,ls=r.div`
480
480
  display: flex;
481
481
  padding: ${i.sp3} ${i.sp0};
482
- `,ds=({notificationData:e,isSelectionMode:o=!1,isHighlighted:s=!1,style:a,onNotificationTileClick:n,onNotificationTileLongPress:l})=>{const{status:c,createTime:d,eventData:{entitiyId:u,activities:h},notificationId:p}=e,m=g.useCallback(()=>{l?.()},[l]),f=g.useCallback(k=>{k.stopPropagation(),k.cancelable&&k.preventDefault(),o?l?.():n(p,u,c,h.length>0?h[0].activityType:void 0)},[p,u,c,h,o,l,n]),x=pt({onLongPress:m},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(fs,{notificationStatus:c,isHighlighted:s,style:a,...x,onClick:f,children:[t.jsxs(Ue,{children:[t.jsx(cs,{...e}),t.jsx(hs,{createTime:d,notificationStatus:c})]}),t.jsxs(Ue,{children:[t.jsx(us,{...e}),h.length>0&&h[0].activityType==="task_status_updated"?null:t.jsx(ps,{...e})]})]})},cs=e=>t.jsx(Bt,{statusUpdate:!1,children:t.jsx(Mt,{...e})}),us=e=>{const{eventData:{activities:o}}=e;return t.jsx(Bt,{statusUpdate:o.length>0&&o[0].activityType==="task_status_updated"&&o[0].metadata.updates.find(s=>s.field==="status")!=null,children:t.jsx(Ot,{...e})})},hs=e=>t.jsx(ms,{children:t.jsx(At,{...e})}),ps=e=>t.jsx(gs,{children:t.jsx(Pt,{...e})}),fs=r.div`
482
+ `,ds=({notificationData:e,isSelectionMode:o=!1,isHighlighted:s=!1,style:a,onNotificationTileClick:n,onNotificationTileLongPress:l})=>{const{status:c,createTime:d,eventData:{entitiyId:u,activities:h},notificationId:p}=e,m=g.useCallback(()=>{l?.()},[l]),f=g.useCallback(k=>{k.stopPropagation(),k.cancelable&&k.preventDefault(),o?l?.():n(p,u,c,h.length>0?h[0].activityType:void 0)},[p,u,c,h,o,l,n]),x=pt({onLongPress:m},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(fs,{notificationStatus:c,isHighlighted:s,style:a,...x,onClick:f,children:[t.jsxs(Ue,{children:[t.jsx(cs,{...e}),t.jsx(hs,{createTime:d,notificationStatus:c})]}),t.jsxs(Ue,{children:[t.jsx(us,{...e}),h.length>0&&h[0].activityType==="task_status_updated"?null:t.jsx(ps,{...e})]})]})},cs=e=>t.jsx(Bt,{statusUpdate:!1,children:t.jsx(Mt,{...e})}),us=e=>{const{eventData:{activities:o}}=e;return t.jsx(Bt,{statusUpdate:o.length>0&&o[0].activityType==="task_status_updated"&&o[0].metadata.updates.find(s=>s.field==="status")!=null,children:t.jsx(At,{...e})})},hs=e=>t.jsx(ms,{children:t.jsx(Ot,{...e})}),ps=e=>t.jsx(gs,{children:t.jsx(Pt,{...e})}),fs=r.div`
483
483
  display: flex;
484
484
  flex-direction: column;
485
485
  align-items: baseline;
@@ -511,7 +511,7 @@ import{d as Q,q as v,a9 as Zt,cC as Xt,V as t,bA as Kt,ac as Qt,aP as ei,o as i,
511
511
  border-bottom-right-radius: inherit;
512
512
  }
513
513
 
514
- ${e=>e.isHighlighted?A`
514
+ ${e=>e.isHighlighted?O`
515
515
  z-index: 1;
516
516
  color: ${e.theme.colors.primary};
517
517
  border: 1px solid ${e.theme.colors.primary};
@@ -552,11 +552,11 @@ import{d as Q,q as v,a9 as Zt,cC as Xt,V as t,bA as Kt,ac as Qt,aP as ei,o as i,
552
552
  align-items: start;
553
553
  `,Bt=r(ee)`
554
554
  color: inherit;
555
- ${e=>e.statusUpdate?A`
555
+ ${e=>e.statusUpdate?O`
556
556
  display: flex;
557
557
  flex-wrap: wrap;
558
558
  gap: ${i.sp2};
559
- `:A`
559
+ `:O`
560
560
  display: -webkit-box;
561
561
  -webkit-box-orient: horizontal;
562
562
  gap: ${i.sp1};
@@ -596,13 +596,13 @@ import{d as Q,q as v,a9 as Zt,cC as Xt,V as t,bA as Kt,ac as Qt,aP as ei,o as i,
596
596
  top: ${i.sp0};
597
597
  left: ${i.sp0};
598
598
  box-sizing: border-box;
599
- `,{common:{all:Te,texts:ne,footer:Ls,strings:{plus:Rs},numbers:{maximumCount:qe}},commentsAndNotifications:{notifications:{title:_s,texts:Gt,strings:Ze}}}=P.getLocalizedStrings(),ie={tableContainerLeftPadding:new R(w[2],w[2],w[2]),tableContainerRightPadding:new R(w[3],w[6],w[8]),tabsContainerLeftRightPadding:new R(w[3],w[6],w[8]),selectedNotificationsTextMarginLeft:new R(w[0],w[6],w[6])},zs={selectedNotificationsText:new ni("smallRegular","standardRegular")},Xe="notificationsPage",Z="commentsNotificationsTable",X="notificationsTable",Et=20,ua=({notificationView:e,users:o,isNotificationSettingsVisible:s,isDisabled:a,onNotificationClick:n,onCommentNotificationClick:l,onUpdateNotificationViewUIState:c,onUpdateNotificationTabState:d,onUpdateNotificationViewCurrentTabAndSubTab:u,onUpdateNotificationViewSubTab:h,onFetchMoreNotifications:p,onUpdateNotificationStatus:m,onSettingsClick:f,onBackClick:x,onMarkAllNotificationsAsRead:k})=>{const B=Q(),z=v(),N=Zt({mode:"all",reValidateMode:"onChange",defaultValues:g.useMemo(()=>et(e),[e]),values:g.useMemo(()=>et(e),[e])}),{currentTab:b,currentSubTab:I,notificationDetailsByTab:j,allSubTabs:V,allNotifications:L,allExternalNotifications:C,notificationsForCurrentTabAndSubTab:G,externalNotificationsForCurrentTabAndSubTab:Y}=e,E=g.useMemo(()=>Object.keys(j).map(y=>({label:ne[y],id:ne[y].toLocaleLowerCase(),countDetails:{count:j[y].uiState.unreadCount,isFetching:j[y].fetchCountState.fetchState==="In-Progress"}})),[j]),W=g.useMemo(()=>V.map(y=>({label:y==="all"?Te:ne[y],id:y})),[V]),Ut=g.useMemo(()=>kt(Y).filter(y=>y.notifications.length>0),[Y]),Ht=g.useMemo(()=>_t(G).filter(y=>y.notifications.length>0),[G]),Vt=async(y,T)=>{const F=y.split(".")[0],J=[];F!=null&&(F===Z||F===X)&&(Object.values(T[F]).forEach(D=>{J.push(...D.filter(qt=>qt.includes(Te.toLowerCase())===!1))}),d({selectedNotificationIds:J},b))};g.useEffect(()=>{const y=N.watch((T,{name:F})=>{F!=null&&T!=null&&Xt(()=>Vt(F,T))});return()=>{y.unsubscribe()}});const xe=g.useCallback(()=>{const y=[],T=j[b].selectedNotificationIdsForSubTab,F="read";if(b==="comments"){const J=C.filter(D=>D.inboxNotification.readAt==null).map(D=>D.inboxNotification.id);T.forEach(D=>{J.includes(D)&&y.push(D)})}else{const J=L.filter(D=>D.status!==F).map(D=>D.notificationId);T.forEach(D=>{J.includes(D)&&y.push(D)})}return y},[C,L,b,j]),Yt=xe().length>Et?"disabled":a,be=N.watch(Z),we=N.watch(X),Le=g.useCallback(()=>{p(b,I)},[p,b,I]),Wt=g.useCallback(()=>{if(b==="comments"){const y={};Object.keys(be).forEach(T=>{y[T]=[]}),N.reset({[Z]:y,[X]:we},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}else{const y={};Object.keys(we).forEach(T=>{y[T]=[]}),N.reset({[X]:y,[Z]:be},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}d({selectedNotificationIds:[]},b)},[we,be]),Jt=g.useCallback(()=>{const y=j[b].selectedNotificationIdsForSubTab,T="read",F=xe();m(b,y,T,F)},[b,j,xe,m]);return t.jsxs(Ms,{children:[t.jsx(Kt,{source:"NotificationsPage",title:_s.notifications,backgroundColor:B.colors.grey4,onBackClick:x,rightSideComponent:s===!0?t.jsx(Zs,{onClick:f}):t.jsx(qs,{})}),t.jsx(Ps,{}),t.jsx(As,{windowSize:z,children:t.jsx(xi,{tabs:E,selectedTab:b,onTabChange:y=>{const T=mi(y);T!=null&&u(T)},subTabs:W,selectedSubTab:I,onSubTabChange:y=>{const T=fi(y);T!=null&&h(T)},subTabRightComponent:t.jsx(Ds,{notificationCount:j[b].uiState.unreadCount,markAsAllReadUpdateState:j[b].markAsAllReadState.fetchState,markAsReadUpdateState:j[b].markAsReadState.fetchState,onMarkAsAllReadClick:()=>{k(b)}})})}),t.jsx(Os,{windowSize:z,children:t.jsx(Qt,{...N,children:t.jsx("form",{id:Qe(Xe),onSubmit:N.handleSubmit(Jt),style:{width:"100%"},children:b==="comments"?t.jsx(yo,{users:o,hasMore:j[b].uiState.hasMore,isFetching:j[b].fetchState==="In-Progress",scrollYOffset:j[b].uiState.scrollYOffset[I],currentSubTab:I,checkBoxMode:j[b].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Ut,sectionId:Z,onFetchNotificationGroups:Le,onUpdateScrollYOffset:y=>c({scrollYOffset:{...j[b].uiState.scrollYOffset,[I]:y}},b),onNotificationClick:l}):t.jsx(vs,{hasMore:j[b].uiState.hasMore,isFetching:j[b].fetchState==="In-Progress",scrollYOffset:j[b].uiState.scrollYOffset[I],currentSubTab:I,checkBoxMode:j[b].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Ht,sectionId:X,onFetchNotificationGroups:Le,onUpdateScrollYOffset:y=>c({scrollYOffset:{...j[b].uiState.scrollYOffset,[I]:y}},b),onNotificationClick:n})})})}),j[b].selectedNotificationIdsForSubTab.length?t.jsx(ei,{formId:Qe(Xe),primaryBtn:{label:Gt.markAsRead,isLoading:j[b].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},isDisabled:Yt!=null},cancelBtn:{label:Ls.cancel,isDisabled:j[b].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},onClick:Wt},helperContainerStyle:z==="small"?{width:"100%"}:{rowGap:i.sp0},footerContentStyle:{gap:i.sp2},leftSideComponent:t.jsx(ye,{controller:z!=="small",children:t.jsx(Ke,{selectedNotificationsCount:j[b].selectedNotificationIdsForSubTab.length})}),topComponent:t.jsx(ye,{controller:z==="small",children:t.jsx(Ke,{selectedNotificationsCount:j[b].selectedNotificationIdsForSubTab.length})}),rightSideComponent:t.jsx(ye,{controller:z!=="small",children:t.jsx(Gs,{})})}):null]})},Ds=({markAsAllReadUpdateState:e,markAsReadUpdateState:o,notificationCount:s,onMarkAsAllReadClick:a})=>{const n=s===0,l=g.useCallback(()=>{e!=="In-Progress"&&o!=="In-Progress"&&!n&&a()},[e,o,n,a]);return t.jsx(Bs,{variant:"tertiary",size:"small",label:Gt.markAllAsRead,onClick:l,prefixIcon:e==="In-Progress"?t.jsx(oi,{size:"Small",start:!0}):t.jsx(Fs,{className:"mark-as-read"}),disabled:n,textStyle:{fontWeight:Ne.smallRegular.fontWeight},style:{borderRadius:i.sp1,border:"none",backgroundColor:"transparent",flexShrink:0,padding:i.sp0,cursor:o==="In-Progress"||e==="In-Progress"||n?"default":"pointer"}})},Ke=({selectedNotificationsCount:e})=>{const o=v();return t.jsxs(Es,{windowSize:o,children:[t.jsx(Hs,{children:t.jsx(Us,{isCircular:e<10,children:t.jsx(Vs,{children:e>qe?`${qe}${Rs}`:e})})}),t.jsxs(Js,{windowSize:o,children:[t.jsx(Ys,{children:e>1?Ze.notificationsSelected:Ze.notificationSelected}),e>Et?t.jsx(Ws,{children:ne.maxLimit}):null]})]})},Ms=r.div`
599
+ `,{common:{all:Te,texts:ne,footer:Ls,strings:{plus:Rs},numbers:{maximumCount:qe}},commentsAndNotifications:{notifications:{title:_s,texts:Gt,strings:Ze}}}=P.getLocalizedStrings(),ie={tableContainerLeftPadding:new R(w[2],w[2],w[2]),tableContainerRightPadding:new R(w[3],w[6],w[8]),tabsContainerLeftRightPadding:new R(w[3],w[6],w[8]),selectedNotificationsTextMarginLeft:new R(w[0],w[6],w[6])},zs={selectedNotificationsText:new ni("smallRegular","standardRegular")},Xe="notificationsPage",Z="commentsNotificationsTable",X="notificationsTable",Et=20,ua=({notificationView:e,users:o,isNotificationSettingsVisible:s,isDisabled:a,onNotificationClick:n,onCommentNotificationClick:l,onUpdateNotificationViewUIState:c,onUpdateNotificationTabState:d,onUpdateNotificationViewCurrentTabAndSubTab:u,onUpdateNotificationViewSubTab:h,onFetchMoreNotifications:p,onUpdateNotificationStatus:m,onSettingsClick:f,onBackClick:x,onMarkAllNotificationsAsRead:k})=>{const B=Q(),z=v(),N=Zt({mode:"all",reValidateMode:"onChange",defaultValues:g.useMemo(()=>et(e),[e]),values:g.useMemo(()=>et(e),[e])}),{currentTab:b,currentSubTab:I,notificationDetailsByTab:j,allSubTabs:V,allNotifications:L,allExternalNotifications:C,notificationsForCurrentTabAndSubTab:G,externalNotificationsForCurrentTabAndSubTab:Y}=e,E=g.useMemo(()=>Object.keys(j).map(y=>({label:ne[y],id:ne[y].toLocaleLowerCase(),countDetails:{count:j[y].uiState.unreadCount,isFetching:j[y].fetchCountState.fetchState==="In-Progress"}})),[j]),W=g.useMemo(()=>V.map(y=>({label:y==="all"?Te:ne[y],id:y})),[V]),Ut=g.useMemo(()=>kt(Y).filter(y=>y.notifications.length>0),[Y]),Ht=g.useMemo(()=>_t(G).filter(y=>y.notifications.length>0),[G]),Vt=async(y,T)=>{const F=y.split(".")[0],J=[];F!=null&&(F===Z||F===X)&&(Object.values(T[F]).forEach(D=>{J.push(...D.filter(qt=>qt.includes(Te.toLowerCase())===!1))}),d({selectedNotificationIds:J},b))};g.useEffect(()=>{const y=N.watch((T,{name:F})=>{F!=null&&T!=null&&Xt(()=>Vt(F,T))});return()=>{y.unsubscribe()}});const xe=g.useCallback(()=>{const y=[],T=j[b].selectedNotificationIdsForSubTab,F="read";if(b==="comments"){const J=C.filter(D=>D.inboxNotification.readAt==null).map(D=>D.inboxNotification.id);T.forEach(D=>{J.includes(D)&&y.push(D)})}else{const J=L.filter(D=>D.status!==F).map(D=>D.notificationId);T.forEach(D=>{J.includes(D)&&y.push(D)})}return y},[C,L,b,j]),Yt=xe().length>Et?"disabled":a,be=N.watch(Z),we=N.watch(X),Le=g.useCallback(()=>{p(b,I)},[p,b,I]),Wt=g.useCallback(()=>{if(b==="comments"){const y={};Object.keys(be).forEach(T=>{y[T]=[]}),N.reset({[Z]:y,[X]:we},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}else{const y={};Object.keys(we).forEach(T=>{y[T]=[]}),N.reset({[X]:y,[Z]:be},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}d({selectedNotificationIds:[]},b)},[we,be]),Jt=g.useCallback(()=>{const y=j[b].selectedNotificationIdsForSubTab,T="read",F=xe();m(b,y,T,F)},[b,j,xe,m]);return t.jsxs(Ms,{children:[t.jsx(Kt,{source:"NotificationsPage",title:_s.notifications,backgroundColor:B.colors.grey4,onBackClick:x,rightSideComponent:s===!0?t.jsx(Zs,{onClick:f}):t.jsx(qs,{})}),t.jsx(Ps,{}),t.jsx(Os,{windowSize:z,children:t.jsx(xi,{tabs:E,selectedTab:b,onTabChange:y=>{const T=mi(y);T!=null&&u(T)},subTabs:W,selectedSubTab:I,onSubTabChange:y=>{const T=fi(y);T!=null&&h(T)},subTabRightComponent:t.jsx(Ds,{notificationCount:j[b].uiState.unreadCount,markAsAllReadUpdateState:j[b].markAsAllReadState.fetchState,markAsReadUpdateState:j[b].markAsReadState.fetchState,onMarkAsAllReadClick:()=>{k(b)}})})}),t.jsx(As,{windowSize:z,children:t.jsx(Qt,{...N,children:t.jsx("form",{id:Qe(Xe),onSubmit:N.handleSubmit(Jt),style:{width:"100%"},children:b==="comments"?t.jsx(yo,{users:o,hasMore:j[b].uiState.hasMore,isFetching:j[b].fetchState==="In-Progress",scrollYOffset:j[b].uiState.scrollYOffset[I],currentSubTab:I,checkBoxMode:j[b].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Ut,sectionId:Z,onFetchNotificationGroups:Le,onUpdateScrollYOffset:y=>c({scrollYOffset:{...j[b].uiState.scrollYOffset,[I]:y}},b),onNotificationClick:l}):t.jsx(vs,{hasMore:j[b].uiState.hasMore,isFetching:j[b].fetchState==="In-Progress",scrollYOffset:j[b].uiState.scrollYOffset[I],currentSubTab:I,checkBoxMode:j[b].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Ht,sectionId:X,onFetchNotificationGroups:Le,onUpdateScrollYOffset:y=>c({scrollYOffset:{...j[b].uiState.scrollYOffset,[I]:y}},b),onNotificationClick:n})})})}),j[b].selectedNotificationIdsForSubTab.length?t.jsx(ei,{formId:Qe(Xe),primaryBtn:{label:Gt.markAsRead,isLoading:j[b].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},isDisabled:Yt!=null},cancelBtn:{label:Ls.cancel,isDisabled:j[b].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},onClick:Wt},helperContainerStyle:z==="small"?{width:"100%"}:{rowGap:i.sp0},footerContentStyle:{gap:i.sp2},leftSideComponent:t.jsx(ye,{controller:z!=="small",children:t.jsx(Ke,{selectedNotificationsCount:j[b].selectedNotificationIdsForSubTab.length})}),topComponent:t.jsx(ye,{controller:z==="small",children:t.jsx(Ke,{selectedNotificationsCount:j[b].selectedNotificationIdsForSubTab.length})}),rightSideComponent:t.jsx(ye,{controller:z!=="small",children:t.jsx(Gs,{})})}):null]})},Ds=({markAsAllReadUpdateState:e,markAsReadUpdateState:o,notificationCount:s,onMarkAsAllReadClick:a})=>{const n=s===0,l=g.useCallback(()=>{e!=="In-Progress"&&o!=="In-Progress"&&!n&&a()},[e,o,n,a]);return t.jsx(Bs,{variant:"tertiary",size:"small",label:Gt.markAllAsRead,onClick:l,prefixIcon:e==="In-Progress"?t.jsx(oi,{size:"Small",start:!0}):t.jsx(Fs,{className:"mark-as-read"}),disabled:n,textStyle:{fontWeight:Ne.smallRegular.fontWeight},style:{borderRadius:i.sp1,border:"none",backgroundColor:"transparent",flexShrink:0,padding:i.sp0,cursor:o==="In-Progress"||e==="In-Progress"||n?"default":"pointer"}})},Ke=({selectedNotificationsCount:e})=>{const o=v();return t.jsxs(Es,{windowSize:o,children:[t.jsx(Hs,{children:t.jsx(Us,{isCircular:e<10,children:t.jsx(Vs,{children:e>qe?`${qe}${Rs}`:e})})}),t.jsxs(Js,{windowSize:o,children:[t.jsx(Ys,{children:e>1?Ze.notificationsSelected:Ze.notificationSelected}),e>Et?t.jsx(Ws,{children:ne.maxLimit}):null]})]})},Ms=r.div`
600
600
  display: flex;
601
601
  height: 100vh;
602
602
  width: 100%;
603
603
  flex-direction: column;
604
604
  background-color: ${e=>e.theme.colors.grey4};
605
- `,Os=r.div`
605
+ `,As=r.div`
606
606
  display: flex;
607
607
  height: 100%;
608
608
  overflow: auto;
@@ -610,7 +610,7 @@ import{d as Q,q as v,a9 as Zt,cC as Xt,V as t,bA as Kt,ac as Qt,aP as ei,o as i,
610
610
  padding-bottom: ${i.sp0};
611
611
  padding-left: ${e=>ie.tableContainerLeftPadding.valuePx(e.windowSize)};
612
612
  padding-right: ${e=>ie.tableContainerRightPadding.valuePx(e.windowSize)};
613
- `,As=r.div`
613
+ `,Os=r.div`
614
614
  padding-top: ${i.sp0};
615
615
  padding-bottom: ${i.sp0};
616
616
  padding-left: ${e=>ie.tabsContainerLeftRightPadding.valuePx(e.windowSize)};
@@ -637,11 +637,11 @@ import{d as Q,q as v,a9 as Zt,cC as Xt,V as t,bA as Kt,ac as Qt,aP as ei,o as i,
637
637
  gap: ${i.sp2};
638
638
  margin-left: ${e=>ie.selectedNotificationsTextMarginLeft.valuePx(e.windowSize)};
639
639
  `,Us=r.div`
640
- ${e=>e.isCircular?A`
640
+ ${e=>e.isCircular?O`
641
641
  height: ${i.sp3};
642
642
  width: ${i.sp3};
643
643
  padding: ${i.sp0};
644
- `:A`
644
+ `:O`
645
645
  height: 18px;
646
646
  min-width: ${i.sp3};
647
647
  padding: ${i.sp0} ${i.sp1};
@@ -1,6 +1,6 @@
1
- import{q as H,i1 as Ce,F as B,d as q,cb as _e,ay as xe,V as t,bM as Se,aN as we,i0 as ke,bB as ve,bA as Be,i2 as Oe,i3 as Pe,o as u,aR as Te,k as je,y as F,b2 as le,aB as ie,aT as $e,c as O,cd as De,ce as Ne,cf as Ie,bJ as Ee,p as a,al as ce,b as Z,aW as Ae}from"./index-B_cddanf.js";import{a as C,S as Me}from"./sentry-CiC6rduJ.js";import{n as h}from"./mui-vQToN2qW.js";import{FX as Le}from"./zeni-epic-state-Ce8CP8e3.js";import{p as Fe,d as Ve,y as G,b as de,u as ee}from"./chartTypes-YlZX4WLs-vwClst_9.js";import{V as Re}from"./toChartData-CuSN9vUZ-CBCyKcms.js";import{m as V}from"./analyticsHelper-CcmV6wHp-Ds3S8ZrP.js";import{p as ze}from"./TimeRangeSwitcher-2AXHoZ8f-Cgeq5dRL.js";import{M as We}from"./TimeframeSwitcherWithToggle-5W1Xu4QM-CuZ3Yom9.js";import{C as Ke}from"./NoDataChart-DxwqqeoI-DkdOoSHp.js";import{d as Ye}from"./NoDataTable-DOZy5UAM-CLNkMXvt.js";import{H as Ge,Q as oe}from"./detailCommon-lUFqcp_3-D6_iWrpG.js";import{n as R}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{I as He,R as J}from"./CollapsableReportTable-LB-wYzj1-DaCyOKB5.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-fxn51zxe-ArPj_MwE.js";import{d as re}from"./mapLoadingInProgressToTreeNode-B7Tq4sxB-DXX1rvvB.js";import{l as qe}from"./mapSpacerToTreeNode-DpgQIqP_-d7FgPe5u.js";import{N as Je,I as Ue,X as Xe,Y as Qe,J as Ze,K as eo}from"./recharts-jo6oNEJ1.js";import"./liveblocks-DKD_-8rq.js";import"./core-CpHpZW9N.js";import"./lottie-DPQlys-3.js";import"./analytics-DKo_M1pl.js";import"./lexical-DVClH-hg.js";import"./utils-CM3T2Iks.js";import"./TimeframeSwitcher-DJiKd_tL-BdEO97Xk.js";import"./graphic-no-data-l-DU4J8fDt-BYD1Ec66.js";import"./AccountRow-BWclqiQh-ChNK56Ur.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]="38d293ec-a707-4d27-9023-076c1a110b83",e._sentryDebugIdIdentifier="sentry-dbid-38d293ec-a707-4d27-9023-076c1a110b83")}catch{}})();const oo=h.div`
1
+ import{q as H,h$ as Ce,F as B,e as q,cb as _e,ay as xe,V as t,bM as Se,aN as we,h_ as ke,bB as ve,bA as Be,i0 as Oe,i1 as Pe,o as u,aR as Te,A as $e,y as F,b2 as le,aB as ie,aT as je,d as O,cd as De,ce as Ne,cf as Ie,bJ as Ee,p as a,al as ce,b as Z,aW as Ae}from"./index-l9FViNoO.js";import{a as C,S as Me}from"./sentry-DWELwT5u.js";import{n as m}from"./mui-cKt0zt2w.js";import{FX as Le}from"./zeni-epic-state-atBaoFS-.js";import{p as Fe,d as Ve,y as G,b as de,u as ee}from"./chartTypes-qqLvT6t1-BAzagmMG.js";import{V as Re}from"./toChartData-xURa2wgf-D5Tvqegg.js";import{m as V}from"./analyticsHelper-BXN2EdPH-DXUFohOz.js";import{p as ze}from"./TimeRangeSwitcher-CFZq5KoG-DvA1T4tX.js";import{M as We}from"./TimeframeSwitcherWithToggle-BXIevpvE-CV8LNwYU.js";import{C as Ke}from"./NoDataChart-CCCkzfa4-CZ1VHThr.js";import{d as Ye}from"./NoDataTable-DVW_simO-CiETBp14.js";import{H as Ge,Q as oe}from"./detailCommon-DP02lgW9-DwZYcDAj.js";import{n as R}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{I as He,R as J}from"./CollapsableReportTable-D1b80h2R-CMeyXG6i.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-Cx4O7W7V-C8qea7Z2.js";import{d as re}from"./mapLoadingInProgressToTreeNode-DL4wGcX6-qKcz8o_r.js";import{l as qe}from"./mapSpacerToTreeNode-Bl4MSBc9-DsaOHsUd.js";import{N as Je,I as Ue,X as Xe,Y as Qe,J as Ze,K as eo}from"./recharts-DKlDhqpA.js";import"./liveblocks-BKCvXoiA.js";import"./core-B8o5Jj6O.js";import"./lottie-CTuuushW.js";import"./analytics-nCDopMZa.js";import"./lexical-B19SDutg.js";import"./utils-Db67jZaM.js";import"./TimeframeSwitcher-Bb7JwirM-DT_nE5Dd.js";import"./graphic-no-data-l-DU4J8fDt-DxQEyL6u.js";import"./AccountRow-DlccmtgU-foUdbmvG.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]="980d1e1f-59d4-40d2-9f99-3ee117a41ab0",e._sentryDebugIdIdentifier="sentry-dbid-980d1e1f-59d4-40d2-9f99-3ee117a41ab0")}catch{}})();const oo=m.div`
2
2
  display: flex;
3
- `,ro=h.div`
3
+ `,ro=m.div`
4
4
  flex: display;
5
5
  opacity: 0.85;
6
6
  width: 320px;
@@ -8,24 +8,24 @@ import{q as H,i1 as Ce,F as B,d as q,cb as _e,ay as xe,V as t,bM as Se,aN as we,
8
8
  flex-direction: column;
9
9
  padding: ${u.sp3};
10
10
  background-color: ${e=>e.theme.colors.black};
11
- `,ae=h.div`
11
+ `,ae=m.div`
12
12
  display: flex;
13
13
  justify-content: space-between;
14
- `,te=h(ce)`
14
+ `,te=m(ce)`
15
15
  color: ${e=>e.color??a.neutralGrey2Light};
16
16
  text-align: left;
17
- `,ne=h(ce)`
17
+ `,ne=m(ce)`
18
18
  color: ${e=>e.color??a.neutralGrey2Light};
19
19
  text-align: right;
20
- `,ao=h.div`
20
+ `,ao=m.div`
21
21
  margin: ${u.sp2} ${u.sp0} ${u.sp2} ${u.sp0};
22
22
  width: 100%;
23
23
  height: 1px;
24
24
  background-color: ${a.neutralGrey3Dark};
25
- `,to=({active:e,payload:r,barName:o})=>{const s=[];if(r!==void 0&&e===!0){const l=r.filter(y=>y.name==o)[0],i=l.payload,m=l.color,n={amount:i.record[o].amount?.amount??0,currencyCode:i.record[o].amount?.currencyCode??"",currencySymbol:i.record[o].amount?.currencySymbol??""},p={amount:0,currencyCode:"",currencySymbol:""};let g=0,c;for(c in i.record)c.endsWith("_actual")&&(g+=i.record[c].amount?.amount??0);p.amount=g,p.currencyCode=n.currencyCode,p.currencySymbol=n.currencySymbol,s.push({barName:de(o),actual:n,color:m,total:p,timeframeTick:i.timeLabel})}return s},no=({barLabelsWithValues:e,getVendorName:r})=>t.jsx(oo,{children:t.jsxs(ro,{children:[t.jsxs(ae,{children:[t.jsx(te,{color:e[0].color,children:`${r(e[0].timeframeTick,e[0].barName)}`}),t.jsx(ne,{color:e[0].color,children:`${ee(e[0].actual)}`})]}),t.jsx(ao,{}),t.jsxs(ae,{children:[t.jsx(te,{color:a.primaryDark,children:`${B.getLocalizedStrings().chartCard.total}`}),t.jsx(ne,{children:`${ee(e[0].total)}`})]})]})}),so=e=>{const r=to({...e});return r.length===0?null:t.jsx(no,{barLabelsWithValues:r,getVendorName:e.getVendorName})},lo=Me.memo(so),se=[a.graphColor34,a.graphColor05,a.graphColor08,a.graphColor11,a.graphColor13,a.graphColor19,a.graphColor29,a.graphColor28,a.graphColor20,a.graphColor21,a.graphColor22,a.graphColor14,a.graphColor35,a.graphColor31,a.graphColor33,a.graphColor32,a.graphColor36,a.graphColor02,a.graphColor06,a.graphColor04,a.graphColor10,a.graphColor12,a.graphColor15,a.graphColor18,a.graphColor17,a.graphColor07,a.graphColor34Dark,a.graphColor05Dark,a.graphColor08Dark,a.graphColor11Dark,a.graphColor13Dark,a.graphColor19Dark,a.graphColor29Dark,a.graphColor28Dark,a.graphColor20Dark,a.graphColor21Dark,a.graphColor22Dark,a.graphColor14Dark,a.graphColor35Dark,a.graphColor31Dark,a.graphColor33Dark,a.graphColor32Dark,a.graphColor36Dark,a.graphColor02Dark,a.graphColor06Dark,a.graphColor04Dark,a.graphColor10Dark,a.graphColor12Dark,a.graphColor15Dark,a.graphColor18Dark,a.graphColor17Dark,a.graphColor07Dark];class N{_barColors;_barColorsKeyWise;_defaultColor;constructor(){this._defaultColor=a.graphColor34,this._barColors=se.slice(),this._barColorsKeyWise=new Map}static#e=new N;getBarColor(r){const o=N.instance();return o._barColorsKeyWise.has(r)||(o._barColors.length===0&&(o._barColors=se.slice()),o._barColorsKeyWise.set(r,o._barColors.shift()??o._defaultColor)),o._barColorsKeyWise.get(r)}shouldUpdate(r){const o=N.instance(),s=Array.from(o._barColorsKeyWise.keys()).sort();return!ie(s,r)}static init(){return this.#e=new N,this.#e}static instance(){return this.#e}}const io=N.instance(),co=(e,r)=>{const o=new Set,s={};let l;const i=r.top4VendorsAndOthers;return Object.keys(i).length>0&&Object.keys(i).forEach(m=>{i[m].forEach((n,p)=>{const g=`vendor_${p}`,c=Fe(g,"actual");o.add(c),l==null&&n.balance!=null&&(l=c),s[c]!=null?s[c].push({key:c,balance:n.balance}):s[c]=[{key:c,balance:n.balance}]})}),l!=null?Re(e,[...o],l,s):void 0},po=h.div`
25
+ `,to=({active:e,payload:r,barName:o})=>{const s=[];if(r!==void 0&&e===!0){const l=r.filter(y=>y.name==o)[0],i=l.payload,h=l.color,n={amount:i.record[o].amount?.amount??0,currencyCode:i.record[o].amount?.currencyCode??"",currencySymbol:i.record[o].amount?.currencySymbol??""},p={amount:0,currencyCode:"",currencySymbol:""};let g=0,c;for(c in i.record)c.endsWith("_actual")&&(g+=i.record[c].amount?.amount??0);p.amount=g,p.currencyCode=n.currencyCode,p.currencySymbol=n.currencySymbol,s.push({barName:de(o),actual:n,color:h,total:p,timeframeTick:i.timeLabel})}return s},no=({barLabelsWithValues:e,getVendorName:r})=>t.jsx(oo,{children:t.jsxs(ro,{children:[t.jsxs(ae,{children:[t.jsx(te,{color:e[0].color,children:`${r(e[0].timeframeTick,e[0].barName)}`}),t.jsx(ne,{color:e[0].color,children:`${ee(e[0].actual)}`})]}),t.jsx(ao,{}),t.jsxs(ae,{children:[t.jsx(te,{color:a.primaryDark,children:`${B.getLocalizedStrings().chartCard.total}`}),t.jsx(ne,{children:`${ee(e[0].total)}`})]})]})}),so=e=>{const r=to({...e});return r.length===0?null:t.jsx(no,{barLabelsWithValues:r,getVendorName:e.getVendorName})},lo=Me.memo(so),se=[a.graphColor34,a.graphColor05,a.graphColor08,a.graphColor11,a.graphColor13,a.graphColor19,a.graphColor29,a.graphColor28,a.graphColor20,a.graphColor21,a.graphColor22,a.graphColor14,a.graphColor35,a.graphColor31,a.graphColor33,a.graphColor32,a.graphColor36,a.graphColor02,a.graphColor06,a.graphColor04,a.graphColor10,a.graphColor12,a.graphColor15,a.graphColor18,a.graphColor17,a.graphColor07,a.graphColor34Dark,a.graphColor05Dark,a.graphColor08Dark,a.graphColor11Dark,a.graphColor13Dark,a.graphColor19Dark,a.graphColor29Dark,a.graphColor28Dark,a.graphColor20Dark,a.graphColor21Dark,a.graphColor22Dark,a.graphColor14Dark,a.graphColor35Dark,a.graphColor31Dark,a.graphColor33Dark,a.graphColor32Dark,a.graphColor36Dark,a.graphColor02Dark,a.graphColor06Dark,a.graphColor04Dark,a.graphColor10Dark,a.graphColor12Dark,a.graphColor15Dark,a.graphColor18Dark,a.graphColor17Dark,a.graphColor07Dark];class N{_barColors;_barColorsKeyWise;_defaultColor;constructor(){this._defaultColor=a.graphColor34,this._barColors=se.slice(),this._barColorsKeyWise=new Map}static#e=new N;getBarColor(r){const o=N.instance();return o._barColorsKeyWise.has(r)||(o._barColors.length===0&&(o._barColors=se.slice()),o._barColorsKeyWise.set(r,o._barColors.shift()??o._defaultColor)),o._barColorsKeyWise.get(r)}shouldUpdate(r){const o=N.instance(),s=Array.from(o._barColorsKeyWise.keys()).sort();return!ie(s,r)}static init(){return this.#e=new N,this.#e}static instance(){return this.#e}}const io=N.instance(),co=(e,r)=>{const o=new Set,s={};let l;const i=r.top4VendorsAndOthers;return Object.keys(i).length>0&&Object.keys(i).forEach(h=>{i[h].forEach((n,p)=>{const g=`vendor_${p}`,c=Fe(g,"actual");o.add(c),l==null&&n.balance!=null&&(l=c),s[c]!=null?s[c].push({key:c,balance:n.balance}):s[c]=[{key:c,balance:n.balance}]})}),l!=null?Re(e,[...o],l,s):void 0},po=m.div`
26
26
  width: ${e=>e.width}px;
27
27
  height: ${e=>e.height}px;
28
- `;function mo({selectedRangeReport:e,width:r,height:o,showBarHoverBackground:s=!1,isDetailPage:l=!1}){const i=C.useRef(!1),m=io,[n,p]=C.useState(void 0);C.useEffect(()=>{i.current=!0},[]);const g=co(e.firstMonthOfFY,e),c=()=>{const d=[];return g?.orderedKeys.forEach(_=>{const S=l===!0&&!i.current;d.push(y(_,S))}),d},y=(d,_)=>t.jsx(eo,{name:d,animationDuration:_?500:void 0,style:{cursor:"pointer"},dataKey:S=>{const v=S.record;return(v[d]?.amount!=null?v[d].amount:void 0)?.amount??0},stackId:"chartByTimeSeries",fill:m.getBarColor(de(d)),onMouseEnter:()=>{n!==d&&p(d)},onMouseLeave:()=>{n!=null&&p(void 0)}},d),x=({active:d,payload:_})=>_?.find(S=>S.name===n)!=null&&n!=null&&d===!0?t.jsx(lo,{active:d,payload:_,barName:n,getVendorName:f}):null,f=(d,_)=>{const S=Le(d);try{const v=_.split("_")[1];return e.top4VendorsAndOthers[S][parseInt(v)].vendor.name}catch(v){return console.warn("Was not able to parse vendor index for tooltip ",v),""}};return g==null?null:t.jsx(ho,{chartData:g,showBarHoverBackground:s,barElements:c(),customToolTipContent:t.jsx(x,{}),width:r,height:o,isDetailPage:l===!0})}const ho=({chartData:e,barElements:r,customToolTipContent:o,width:s,height:l,showBarHoverBackground:i=!1,isDetailPage:m})=>{const n=q(),p=Ve(e),g=i!==!1,c=m?(s-60)/G.operating_expenses_by_vendor*(G.operating_expenses_by_vendor-e.timeseries.length):20;return t.jsx(po,{width:s,height:l,children:t.jsx(le,{children:({height:y,width:x})=>t.jsxs(Je,{width:x,height:y,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:m?O[5]:30,margin:{top:5,right:c,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[t.jsx(Ue,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:n.colors.grey3}),t.jsx(Xe,{dataKey:f=>f.timeLabel.label,type:"category",axisLine:{stroke:n.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:n.colors.hero,...Z.extraSmallRegular.cssObject}}),t.jsx(Qe,{type:"number",axisLine:!1,tickLine:!1,tick:{color:n.colors.hero,...Z.extraSmallRegular.cssObject},tickFormatter:f=>Ae("0,0.[00]a",f,p)}),t.jsx(Ze,{wrapperStyle:{zIndex:2},cursor:g?{stroke:n.colors.background,strokeWidth:(x-120)/G.operating_expenses_by_vendor,fill:n.colors.background}:!1,content:o,allowEscapeViewBox:{x:!1,y:!0}}),r]})})})};function go(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,company_name:e.companyName,statement_file_type:e.statementFileType,timeframe:e.timeframe,timezone:e.timezone,additional_balances:e.additionalBalances,format:e.format,sort_key:e.sortKey,sort_order:e.sortOrder,is_compare_mode_on:e.isCompareModeOn,search_string:e.searchString}}function uo(e){const{isCompareModeOn:r,report:o,currentTenantCompanyName:s}=e,l=[];if(r&&(l.push("this_period_vs_last_period_percent"),l.push("this_period_vs_last_period")),o.dataAvailable!=null)return{localeId:B.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",companyName:s,statementFileType:"excel",timeframe:e.timeframe,timezone:e.timezone,additionalBalances:l,format:e.reportType,sortKey:e.sortKey,sortOrder:e.sortOrder,isCompareModeOn:e.isCompareModeOn,searchString:e.searchString}}function fo(e){const r=uo(e);if(r!=null)return yo(e.statementEndPoint,e.authParams,r)}async function yo(e,r,o){const s=B.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(go(o)))}`;try{const i=await De({urlEndPoint:l,authParams:r,fileType:o.statementFileType});if(i.ok){const m=Ne(i.headers,s.defaultFileName),n=await i.arrayBuffer();Ie(n,m)}else console.error(`${s.reportErrorMessage} ${i.statusText}`)}catch(i){console.error(`${s.reportErrorMessage} ${JSON.stringify(i)}`)}}function bo({title:e,balances:r,config:o,nodeId:s}){return{children:[],id:s??J("title_string_only",[]),isLastNode:!1,reportElementData:{element:{kind:"title_string_only",title:e,data:r,numOfBalances:r.length},config:o}}}function Co({opExByVendor:e,numOfBalances:r,title:o,isLastNode:s,config:l}){const i=e.account?.accountName??"-",m=e.classBase?.className??"-",n=J("vendor_row",[],o+i+m);return{children:[],id:n,isLastNode:s,reportElementData:{element:{kind:"vendor_row",title:o,data:e,numOfBalances:r},config:l}}}function _o({title:e,balances:r,config:o,numOfBalances:s,nodeId:l}){return{children:[],id:l??J("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:r,numOfBalances:s},config:o}}}const xo=(e,r,o,s=!0)=>{const l=o.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+1:e.filter.balancesRange.numberOfPeriods,i=e.totalBalances!=null?[...e.totalBalances.balances,...e.totalBalances.additionalBalances]:[];e.totalBalances?.totalBalance!=null&&i.push(e.totalBalances.totalBalance);const m=pe({balances:i,config:o}),n=[];n.push(m);const p=B.getLocalizedStrings().vendors.opExByVendor,g=o.opexByVendorConfig?.sortOrSearchInProgress??!1,c=o.opexByVendorConfig?.pageFetchInProgress??!1;if(g===!0)[...Array(10)].forEach((y,x)=>{n.push(re({title:`${x}+${p.loading}`,balances:i,config:o}))});else if(e.opexBalances.length>0){if(!r.searchString){const f=_o({title:B.getLocalizedStrings().chartCard.total,balances:e.totalBalances,config:o,numOfBalances:l});n.push(f)}const y=r.pageToken[r.timeframe],x=e.opexBalances.map((f,d)=>Co({opExByVendor:f,title:f.vendor.name,numOfBalances:l,isLastNode:d===e.opexBalances.length-1&&y==null,config:o}));n.push(...x),c===!0&&[...Array(1)].forEach((f,d)=>{n.push(re({title:`${d}+${p.loading}`,balances:i,config:o}))}),[...Array(1)].forEach((f,d)=>{n.push(qe({title:`${d}+${p.loading}`,balances:[],config:o}))})}return e.opexBalances.length===0&&g!==!0&&n.push(bo({title:B.getLocalizedStrings().vendors.opExByVendor.noResultsFound,balances:i,config:o})),{config:o,headerNodes:s?[m]:[],contentNodes:n}};function So(e,r,o,s=!0){Object.assign(e.config,r);const l=wo(o),i=pe({balances:l,config:r});return{config:r,headerNodes:s?[i]:[],contentNodes:[i,...e.contentNodes.slice(1)]}}const wo=e=>e.totalBalances!=null?[...e.totalBalances.balances,...e.totalBalances.additionalBalances]:[],I={chartHeight:new F(288,360),wrapperPadding:new F(O[3],O[3],O[8]),contentPaddingLeft:new F(O[0],O[0],O[0]),contentPaddingRight:new F(O[3],O[3],O[8])},ko=h.div`
28
+ `;function ho({selectedRangeReport:e,width:r,height:o,showBarHoverBackground:s=!1,isDetailPage:l=!1}){const i=C.useRef(!1),h=io,[n,p]=C.useState(void 0);C.useEffect(()=>{i.current=!0},[]);const g=co(e.firstMonthOfFY,e),c=()=>{const d=[];return g?.orderedKeys.forEach(_=>{const S=l===!0&&!i.current;d.push(y(_,S))}),d},y=(d,_)=>t.jsx(eo,{name:d,animationDuration:_?500:void 0,style:{cursor:"pointer"},dataKey:S=>{const v=S.record;return(v[d]?.amount!=null?v[d].amount:void 0)?.amount??0},stackId:"chartByTimeSeries",fill:h.getBarColor(de(d)),onMouseEnter:()=>{n!==d&&p(d)},onMouseLeave:()=>{n!=null&&p(void 0)}},d),x=({active:d,payload:_})=>_?.find(S=>S.name===n)!=null&&n!=null&&d===!0?t.jsx(lo,{active:d,payload:_,barName:n,getVendorName:f}):null,f=(d,_)=>{const S=Le(d);try{const v=_.split("_")[1];return e.top4VendorsAndOthers[S][parseInt(v)].vendor.name}catch(v){return console.warn("Was not able to parse vendor index for tooltip ",v),""}};return g==null?null:t.jsx(mo,{chartData:g,showBarHoverBackground:s,barElements:c(),customToolTipContent:t.jsx(x,{}),width:r,height:o,isDetailPage:l===!0})}const mo=({chartData:e,barElements:r,customToolTipContent:o,width:s,height:l,showBarHoverBackground:i=!1,isDetailPage:h})=>{const n=q(),p=Ve(e),g=i!==!1,c=h?(s-60)/G.operating_expenses_by_vendor*(G.operating_expenses_by_vendor-e.timeseries.length):20;return t.jsx(po,{width:s,height:l,children:t.jsx(le,{children:({height:y,width:x})=>t.jsxs(Je,{width:x,height:y,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:h?O[5]:30,margin:{top:5,right:c,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[t.jsx(Ue,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:n.colors.grey3}),t.jsx(Xe,{dataKey:f=>f.timeLabel.label,type:"category",axisLine:{stroke:n.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:n.colors.hero,...Z.extraSmallRegular.cssObject}}),t.jsx(Qe,{type:"number",axisLine:!1,tickLine:!1,tick:{color:n.colors.hero,...Z.extraSmallRegular.cssObject},tickFormatter:f=>Ae("0,0.[00]a",f,p)}),t.jsx(Ze,{wrapperStyle:{zIndex:2},cursor:g?{stroke:n.colors.background,strokeWidth:(x-120)/G.operating_expenses_by_vendor,fill:n.colors.background}:!1,content:o,allowEscapeViewBox:{x:!1,y:!0}}),r]})})})};function go(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,company_name:e.companyName,statement_file_type:e.statementFileType,timeframe:e.timeframe,timezone:e.timezone,additional_balances:e.additionalBalances,format:e.format,sort_key:e.sortKey,sort_order:e.sortOrder,is_compare_mode_on:e.isCompareModeOn,search_string:e.searchString}}function uo(e){const{isCompareModeOn:r,report:o,currentTenantCompanyName:s}=e,l=[];if(r&&(l.push("this_period_vs_last_period_percent"),l.push("this_period_vs_last_period")),o.dataAvailable!=null)return{localeId:B.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",companyName:s,statementFileType:"excel",timeframe:e.timeframe,timezone:e.timezone,additionalBalances:l,format:e.reportType,sortKey:e.sortKey,sortOrder:e.sortOrder,isCompareModeOn:e.isCompareModeOn,searchString:e.searchString}}function fo(e){const r=uo(e);if(r!=null)return yo(e.statementEndPoint,e.authParams,r)}async function yo(e,r,o){const s=B.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(go(o)))}`;try{const i=await De({urlEndPoint:l,authParams:r,fileType:o.statementFileType});if(i.ok){const h=Ne(i.headers,s.defaultFileName),n=await i.arrayBuffer();Ie(n,h)}else console.error(`${s.reportErrorMessage} ${i.statusText}`)}catch(i){console.error(`${s.reportErrorMessage} ${JSON.stringify(i)}`)}}function bo({title:e,balances:r,config:o,nodeId:s}){return{children:[],id:s??J("title_string_only",[]),isLastNode:!1,reportElementData:{element:{kind:"title_string_only",title:e,data:r,numOfBalances:r.length},config:o}}}function Co({opExByVendor:e,numOfBalances:r,title:o,isLastNode:s,config:l}){const i=e.account?.accountName??"-",h=e.classBase?.className??"-",n=J("vendor_row",[],o+i+h);return{children:[],id:n,isLastNode:s,reportElementData:{element:{kind:"vendor_row",title:o,data:e,numOfBalances:r},config:l}}}function _o({title:e,balances:r,config:o,numOfBalances:s,nodeId:l}){return{children:[],id:l??J("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:r,numOfBalances:s},config:o}}}const xo=(e,r,o,s=!0)=>{const l=o.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+1:e.filter.balancesRange.numberOfPeriods,i=e.totalBalances!=null?[...e.totalBalances.balances,...e.totalBalances.additionalBalances]:[];e.totalBalances?.totalBalance!=null&&i.push(e.totalBalances.totalBalance);const h=pe({balances:i,config:o}),n=[];n.push(h);const p=B.getLocalizedStrings().vendors.opExByVendor,g=o.opexByVendorConfig?.sortOrSearchInProgress??!1,c=o.opexByVendorConfig?.pageFetchInProgress??!1;if(g===!0)[...Array(10)].forEach((y,x)=>{n.push(re({title:`${x}+${p.loading}`,balances:i,config:o}))});else if(e.opexBalances.length>0){if(!r.searchString){const f=_o({title:B.getLocalizedStrings().chartCard.total,balances:e.totalBalances,config:o,numOfBalances:l});n.push(f)}const y=r.pageToken[r.timeframe],x=e.opexBalances.map((f,d)=>Co({opExByVendor:f,title:f.vendor.name,numOfBalances:l,isLastNode:d===e.opexBalances.length-1&&y==null,config:o}));n.push(...x),c===!0&&[...Array(1)].forEach((f,d)=>{n.push(re({title:`${d}+${p.loading}`,balances:i,config:o}))}),[...Array(1)].forEach((f,d)=>{n.push(qe({title:`${d}+${p.loading}`,balances:[],config:o}))})}return e.opexBalances.length===0&&g!==!0&&n.push(bo({title:B.getLocalizedStrings().vendors.opExByVendor.noResultsFound,balances:i,config:o})),{config:o,headerNodes:s?[h]:[],contentNodes:n}};function So(e,r,o,s=!0){Object.assign(e.config,r);const l=wo(o),i=pe({balances:l,config:r});return{config:r,headerNodes:s?[i]:[],contentNodes:[i,...e.contentNodes.slice(1)]}}const wo=e=>e.totalBalances!=null?[...e.totalBalances.balances,...e.totalBalances.additionalBalances]:[],I={chartHeight:new F(288,360),wrapperPadding:new F(O[3],O[3],O[8]),contentPaddingLeft:new F(O[0],O[0],O[0]),contentPaddingRight:new F(O[3],O[3],O[8])},ko=m.div`
29
29
  display: flex;
30
30
  flex: 1 1 auto;
31
31
  min-height: 100%;
@@ -34,13 +34,13 @@ import{q as H,i1 as Ce,F as B,d as q,cb as _e,ay as xe,V as t,bM as Se,aN as we,
34
34
  background-color: ${e=>e.theme.colors.grey5};
35
35
  padding: ${u.sp0};
36
36
  gap: 2px;
37
- `,vo=h.div`
37
+ `,vo=m.div`
38
38
  position: relative;
39
39
  box-shadow: ${e=>`2px 2px ${u.sp1} ${e.theme.colors.dropShadowNormal}`};
40
40
  background-color: ${e=>e.theme.colors.grey5};
41
41
  padding-left: ${e=>I.wrapperPadding.valuePx(e.windowSize)};
42
42
  padding-right: ${e=>I.wrapperPadding.valuePx(e.windowSize)};
43
- `,Bo=h.div`
43
+ `,Bo=m.div`
44
44
  display: flex;
45
45
  width: 100%;
46
46
  height: 100vh;
@@ -48,14 +48,14 @@ import{q as H,i1 as Ce,F as B,d as q,cb as _e,ay as xe,V as t,bM as Se,aN as we,
48
48
  justify-content: center;
49
49
  align-items: center;
50
50
  background-color: ${e=>e.theme.colors.grey5};
51
- `,Oo=h.div`
51
+ `,Oo=m.div`
52
52
  display: flex;
53
53
  width: 100%;
54
54
  height: 100vh;
55
55
  flex-direction: column;
56
56
  justify-content: center;
57
57
  align-items: center;
58
- `,Po=h.div`
58
+ `,Po=m.div`
59
59
  height: 96px;
60
60
  width: 96px;
61
61
  background: ${e=>e.theme.colors.background};
@@ -70,31 +70,31 @@ import{q as H,i1 as Ce,F as B,d as q,cb as _e,ay as xe,V as t,bM as Se,aN as we,
70
70
  color: ${e=>e.theme.colors.primary};
71
71
  }
72
72
  }
73
- `,To=h(Te)`
73
+ `,To=m(Te)`
74
74
  margin-top: ${u.sp3};
75
75
  color: ${e=>e.theme.colors.hero};
76
- `,jo=h.div`
76
+ `,$o=m.div`
77
77
  display: flex;
78
78
  padding: ${u.sp2} ${u.sp0} ${u.sp4} ${u.sp0};
79
- `,$o=h.div``,Do=h.div``,No=h.div`
79
+ `,jo=m.div``,Do=m.div``,No=m.div`
80
80
  display: flex;
81
81
  flex: 1 1 auto;
82
82
  flex-direction: column;
83
83
  height: ${e=>I.chartHeight.valuePx(e.windowSize)};
84
84
  padding-bottom: ${u.sp6};
85
- `,Io=h.div`
85
+ `,Io=m.div`
86
86
  display: flex;
87
- `,Eo=h.div`
87
+ `,Eo=m.div`
88
88
  margin-top: ${u.sp5};
89
89
  margin-bottom: ${u.sp6};
90
- `,Ao=h.div`
90
+ `,Ao=m.div`
91
91
  display: flex;
92
92
  position: sticky;
93
93
  justify-content: center;
94
94
  padding-top: ${u.sp8};
95
95
  padding-left: ${e=>I.wrapperPadding.valuePx(e.windowSize)};
96
96
  background-color: ${e=>e.theme.colors.grey4};
97
- `,Mo=h.div`
97
+ `,Mo=m.div`
98
98
  width: 100%;
99
99
  height: calc(100vh - ${u.sp11});
100
- `,Lo=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?t.jsx(Bo,{children:t.jsx(je,{size:"ExtraLarge",start:!0})}):null,fr=({report:e,vendorTabsToShow:r,uiState:o,downloadParams:s,onVendorTabSelectionChanged:l,onReloadReport:i,onBackClick:m,onFetchOpExByVendors:n,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:g,onSortOrderChanged:c,onSortOrSearchStarted:y,onVendorNameAndBalanceClicked:x,onPageFetchStarted:f,previousTabPosition:d,setPreviousTabPosition:_,updateDownloadStateHandler:S,onClearSearch:v,analytics:P,onClickMenuIcon:z})=>{const[j,E]=C.useState(o.searchString[o.timeframe]),[A,M]=C.useState(!1),w=H(),$=C.useRef(null),W=Ce(r),me=W.length>1,he=B.getLocalizedStrings().reports.common,U=B.getLocalizedStrings().vendors,X=q(),ge=["month","quarter"],ue=e.availableNumberOfPeriods!=null&&e.availableNumberOfPeriods<2,L=o.mode==="compare_mode"&&!ue,K=e.allTimeframeTicks.length===0,{timeframe:T}=o,D=o.searchString[T];_e({componentName:"vendors.opex_by_vendor.list"});const fe=C.useCallback(k=>{n(T,D,k)},[T,D,n]),ye=C.useCallback((k,b)=>{window.scrollTo({top:$.current?.offsetTop,behavior:"smooth"}),k.length>0?(y(!0),n(b,k,!1)):(y(!1),v(b))},[v,n,y]),Q=C.useRef(xe((k,b)=>ye(k,b),500,{trailing:!0})).current,be=(k,b)=>{c(k,b,T),y(!0),n(T,D,!1)};if(C.useEffect(()=>{async function k(){await fo({report:e,isCompareModeOn:L,downloadState:o.downloadState,reportType:"more_detailed",timeframe:o.timeframe,sortKey:o.sortKey[o.timeframe],sortOrder:o.sortOrder[o.timeframe],searchString:o.searchString[T],...s}),P?.trackDownload(R("operating_expenses_by_vendor"),V(o.timeframe),"excel",L),S("Completed")}A&&o.downloadState!=="In-Progress"&&(M(!1),S("In-Progress"),k())},[e,o,L,s,o.downloadState,A]),C.useEffect(()=>{E(D)},[D]),e.fetchState==="Error")return t.jsxs(Oo,{children:[t.jsx(Po,{"data-testid":we("op-ex-by-vendor-reload-page"),onClick:i,children:t.jsx(Se,{})}),t.jsx(To,{children:he.failed})]});const Y=e.totalBalances?.totalBalance;if(o.sortOrSearchInProgress===!1&&o.pageFetchInProgress===!1&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"))return t.jsx(Lo,{fetchState:e.fetchState});if((e.fetchState==="Completed"||o.sortOrSearchInProgress===!0||o.pageFetchInProgress===!0)&&e.isReportGenerated===!0){const k=t.jsxs(t.Fragment,{children:[t.jsx(ke,{isSearchOpen:(D?.length??0)>0,searchPlaceHolder:U.common.searchPlaceholder,searchText:j??"",onSearchTextChanged:b=>{E(b),b.trim().length>=2?Q(b,T):b.trim().length==0&&Q("",T)},downloadPresent:!0}),t.jsx(ve,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:K,isDownloading:o.downloadState==="In-Progress"}],onDownloadClick:async b=>{if(b==="excel")if(o.downloadState==="In-Progress"){console.log("Download is already in progress!");return}else M(!0)}}}})]});return t.jsxs(ko,{windowSize:w,children:[t.jsx(Be,{title:U.common.navBarTitle,subTitle:e.lastRefreshSuccessTime!=null?e.lastRefreshSuccessTime.utc(!0).fromNow():"",backgroundColor:X.colors.grey5,onBackClick:m,rightSideComponent:k,showMenuIcon:w==="medium-compact"||w==="small",downloadPresent:!0,onClickMenuIcon:z,source:"OpExByVendorPage"}),t.jsxs(vo,{windowSize:w,children:[me?t.jsx(Oe,{allTabs:W,selectedTab:W[1].id,containerStyle:{borderBottom:`2px solid ${X.colors.grey3}`},onTabChange:b=>l(Pe(b.id)),previousTabPosition:d,setPreviousTabPosition:_}):null,t.jsx(Fo,{timeframes:ge,isCompareModeOn:L,firstMonthOfFY:e.firstMonthOfFY,allTimeframeTicks:e.allTimeframeTicks,selectedTimeframe:o.timeframe,selectedCOABalancesRange:e.filter.balancesRange,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:g,mode:o.mode,analytics:P}),Y!=null?t.jsx(Eo,{children:t.jsx(Ge,{balance:Y,dateText:zo(Y)})}):null,t.jsx(Vo,{report:e,isEmptyPeriod:K})]}),t.jsx(Ro,{reference:$,report:e,uiState:o,isEmptyPeriod:K,onAdditionalBalanceSelectionChanged:p,onVendorNameAndBalanceClicked:x,onSortOrderChanged:be,handleFetchOpExByVendor:fe,onPageFetchStarted:f,analytics:P})]})}return t.jsx(t.Fragment,{})},Fo=({timeframes:e,firstMonthOfFY:r,allTimeframeTicks:o,selectedCOABalancesRange:s,selectedTimeframe:l,onTimeframeSelectionChanged:i,onAdditionalBalanceSelectionChanged:m,mode:n,isCompareModeOn:p,analytics:g})=>t.jsx(Do,{children:t.jsxs($o,{children:[t.jsx(jo,{children:t.jsx(We,{timeframe:{allowedTimeframes:e,selectedTimeframe:l,onTimeframeSelectionChanged:c=>{g?.trackTimeframeSwitch(V(c),R("operating_expenses_by_vendor")),(c==="month"||c==="quarter")&&i(c),n==="compare_mode"&&!p&&m(p,p?["this_period_vs_last_period_percent"]:[])}},toggle:{label:B.getLocalizedStrings().compareSwitchLabel,isOn:p,isToggleDisabled:!1,onValueChanged:c=>{g?.trackCompareMode(c,R("operating_expenses_by_vendor"),V(l)),m(c,c?["this_period_vs_last_period_percent"]:[])}}})}),t.jsx(ze,{firstMonthOfFY:r,timeframe:l,timeframeTicks:o,selection:{selectedTicks:oe(o,s),highlightedOfSelectedTicks:oe(o,s)}})]})}),Vo=({isEmptyPeriod:e,report:r})=>{const o=H();return e?t.jsx(Io,{children:t.jsx(Ke,{title:B.getLocalizedStrings().chartCard.no_data_available})}):t.jsx(No,{windowSize:o,children:t.jsx(le,{children:({height:s,width:l})=>t.jsx(mo,{selectedRangeReport:r,width:l,height:s,isDetailPage:!0,showBarHoverBackground:!1})})})},Ro=({report:e,uiState:r,isEmptyPeriod:o,reference:s,onAdditionalBalanceSelectionChanged:l,onTableScroll:i,onSortOrderChanged:m,onVendorNameAndBalanceClicked:n,handleFetchOpExByVendor:p,onPageFetchStarted:g,analytics:c})=>{const y=r.mode==="compare_mode",x=w=>{c?.trackCompareFilterChange(w==="compare_mode_percent"?"percentage":"amount",R("operating_expenses_by_vendor"),V(r.timeframe),"dropdown"),l(y,[w==="compare_mode_percent"?"this_period_vs_last_period_percent":"this_period_vs_last_period"])},f=r.selectedAdditionalBalances.includes("this_period_vs_last_period_percent")?"compare_mode_percent":"compare_mode_amount",[d,_]=C.useState(void 0),[S,v]=C.useState(void 0),P=H(),z=q(),j=!(P==="small"||P==="medium-compact");C.useEffect(()=>{const w={reportId:e.reportId,mode:r.mode==="compare_mode"?"this_period_vs_period_before":"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:Ee(),dataAvailable:e.dataAvailable,opexByVendorConfig:{sortKey:r.sortKey[r.timeframe],sortOrder:r.sortOrder[r.timeframe],isCompareModeOn:r.mode==="compare_mode",isAccountColumnShown:!0,isClassColumnShown:!0,onSortOrderChanged:m,sortOrSearchInProgress:r.sortOrSearchInProgress,pageFetchInProgress:r.pageFetchInProgress,onVendorNameAndBalanceClicked:n}};if(d==null||!ie(S,e)){const $=xo(e,r,w,j);v(e),_($)}else{const $=So(d,w,e,j);_($)}},[r.mode,e]);const E=w=>w<e.opexBalances.length,A=()=>{r.pageToken[r.timeframe]!=null&&e.fetchState==="Completed"&&(g(),p(!0))},M=e.opexBalances.length;return t.jsx(Ao,{windowSize:P,ref:s,children:o?t.jsx(Ye,{}):d!=null?t.jsx(Mo,{children:t.jsx(He,{backgroundColor:new $e(z.colors.grey4),rootNodes:d,type:"name+balances_actual",compareMode:f,isSticky:{isStickyHeader:j,isStickyName:j},treeNodePadding:{left:I.contentPaddingLeft.value(P),right:I.contentPaddingRight.value(P)},nodeOpenStatus:{},scrollPosition:r.scrollPosition,onCompareModeChanged:x,onScroll:i,infiniteLoadingProps:{isItemLoaded:E,itemCount:M,loadMoreItems:A}})}):null})},zo=e=>{const r=e.startDate,o=e.endDate,{vendors:s,dateFormat:l}=B.getLocalizedStrings();return`${s.opExByVendor.in} ${r.format(l.visual.MMMYYFormat)} - ${o.format(l.visual.MMMYYFormat)}`};export{fr as default};
100
+ `,Lo=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?t.jsx(Bo,{children:t.jsx($e,{size:"ExtraLarge",start:!0})}):null,fr=({report:e,vendorTabsToShow:r,uiState:o,downloadParams:s,onVendorTabSelectionChanged:l,onReloadReport:i,onBackClick:h,onFetchOpExByVendors:n,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:g,onSortOrderChanged:c,onSortOrSearchStarted:y,onVendorNameAndBalanceClicked:x,onPageFetchStarted:f,previousTabPosition:d,setPreviousTabPosition:_,updateDownloadStateHandler:S,onClearSearch:v,analytics:P,onClickMenuIcon:z})=>{const[$,E]=C.useState(o.searchString[o.timeframe]),[A,M]=C.useState(!1),w=H(),j=C.useRef(null),W=Ce(r),he=W.length>1,me=B.getLocalizedStrings().reports.common,U=B.getLocalizedStrings().vendors,X=q(),ge=["month","quarter"],ue=e.availableNumberOfPeriods!=null&&e.availableNumberOfPeriods<2,L=o.mode==="compare_mode"&&!ue,K=e.allTimeframeTicks.length===0,{timeframe:T}=o,D=o.searchString[T];_e({componentName:"vendors.opex_by_vendor.list"});const fe=C.useCallback(k=>{n(T,D,k)},[T,D,n]),ye=C.useCallback((k,b)=>{window.scrollTo({top:j.current?.offsetTop,behavior:"smooth"}),k.length>0?(y(!0),n(b,k,!1)):(y(!1),v(b))},[v,n,y]),Q=C.useRef(xe((k,b)=>ye(k,b),500,{trailing:!0})).current,be=(k,b)=>{c(k,b,T),y(!0),n(T,D,!1)};if(C.useEffect(()=>{async function k(){await fo({report:e,isCompareModeOn:L,downloadState:o.downloadState,reportType:"more_detailed",timeframe:o.timeframe,sortKey:o.sortKey[o.timeframe],sortOrder:o.sortOrder[o.timeframe],searchString:o.searchString[T],...s}),P?.trackDownload(R("operating_expenses_by_vendor"),V(o.timeframe),"excel",L),S("Completed")}A&&o.downloadState!=="In-Progress"&&(M(!1),S("In-Progress"),k())},[e,o,L,s,o.downloadState,A]),C.useEffect(()=>{E(D)},[D]),e.fetchState==="Error")return t.jsxs(Oo,{children:[t.jsx(Po,{"data-testid":we("op-ex-by-vendor-reload-page"),onClick:i,children:t.jsx(Se,{})}),t.jsx(To,{children:me.failed})]});const Y=e.totalBalances?.totalBalance;if(o.sortOrSearchInProgress===!1&&o.pageFetchInProgress===!1&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"))return t.jsx(Lo,{fetchState:e.fetchState});if((e.fetchState==="Completed"||o.sortOrSearchInProgress===!0||o.pageFetchInProgress===!0)&&e.isReportGenerated===!0){const k=t.jsxs(t.Fragment,{children:[t.jsx(ke,{isSearchOpen:(D?.length??0)>0,searchPlaceHolder:U.common.searchPlaceholder,searchText:$??"",onSearchTextChanged:b=>{E(b),b.trim().length>=2?Q(b,T):b.trim().length==0&&Q("",T)},downloadPresent:!0}),t.jsx(ve,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:K,isDownloading:o.downloadState==="In-Progress"}],onDownloadClick:async b=>{if(b==="excel")if(o.downloadState==="In-Progress"){console.log("Download is already in progress!");return}else M(!0)}}}})]});return t.jsxs(ko,{windowSize:w,children:[t.jsx(Be,{title:U.common.navBarTitle,subTitle:e.lastRefreshSuccessTime!=null?e.lastRefreshSuccessTime.utc(!0).fromNow():"",backgroundColor:X.colors.grey5,onBackClick:h,rightSideComponent:k,showMenuIcon:w==="medium-compact"||w==="small",downloadPresent:!0,onClickMenuIcon:z,source:"OpExByVendorPage"}),t.jsxs(vo,{windowSize:w,children:[he?t.jsx(Oe,{allTabs:W,selectedTab:W[1].id,containerStyle:{borderBottom:`2px solid ${X.colors.grey3}`},onTabChange:b=>l(Pe(b.id)),previousTabPosition:d,setPreviousTabPosition:_}):null,t.jsx(Fo,{timeframes:ge,isCompareModeOn:L,firstMonthOfFY:e.firstMonthOfFY,allTimeframeTicks:e.allTimeframeTicks,selectedTimeframe:o.timeframe,selectedCOABalancesRange:e.filter.balancesRange,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:g,mode:o.mode,analytics:P}),Y!=null?t.jsx(Eo,{children:t.jsx(Ge,{balance:Y,dateText:zo(Y)})}):null,t.jsx(Vo,{report:e,isEmptyPeriod:K})]}),t.jsx(Ro,{reference:j,report:e,uiState:o,isEmptyPeriod:K,onAdditionalBalanceSelectionChanged:p,onVendorNameAndBalanceClicked:x,onSortOrderChanged:be,handleFetchOpExByVendor:fe,onPageFetchStarted:f,analytics:P})]})}return t.jsx(t.Fragment,{})},Fo=({timeframes:e,firstMonthOfFY:r,allTimeframeTicks:o,selectedCOABalancesRange:s,selectedTimeframe:l,onTimeframeSelectionChanged:i,onAdditionalBalanceSelectionChanged:h,mode:n,isCompareModeOn:p,analytics:g})=>t.jsx(Do,{children:t.jsxs(jo,{children:[t.jsx($o,{children:t.jsx(We,{timeframe:{allowedTimeframes:e,selectedTimeframe:l,onTimeframeSelectionChanged:c=>{g?.trackTimeframeSwitch(V(c),R("operating_expenses_by_vendor")),(c==="month"||c==="quarter")&&i(c),n==="compare_mode"&&!p&&h(p,p?["this_period_vs_last_period_percent"]:[])}},toggle:{label:B.getLocalizedStrings().compareSwitchLabel,isOn:p,isToggleDisabled:!1,onValueChanged:c=>{g?.trackCompareMode(c,R("operating_expenses_by_vendor"),V(l)),h(c,c?["this_period_vs_last_period_percent"]:[])}}})}),t.jsx(ze,{firstMonthOfFY:r,timeframe:l,timeframeTicks:o,selection:{selectedTicks:oe(o,s),highlightedOfSelectedTicks:oe(o,s)}})]})}),Vo=({isEmptyPeriod:e,report:r})=>{const o=H();return e?t.jsx(Io,{children:t.jsx(Ke,{title:B.getLocalizedStrings().chartCard.no_data_available})}):t.jsx(No,{windowSize:o,children:t.jsx(le,{children:({height:s,width:l})=>t.jsx(ho,{selectedRangeReport:r,width:l,height:s,isDetailPage:!0,showBarHoverBackground:!1})})})},Ro=({report:e,uiState:r,isEmptyPeriod:o,reference:s,onAdditionalBalanceSelectionChanged:l,onTableScroll:i,onSortOrderChanged:h,onVendorNameAndBalanceClicked:n,handleFetchOpExByVendor:p,onPageFetchStarted:g,analytics:c})=>{const y=r.mode==="compare_mode",x=w=>{c?.trackCompareFilterChange(w==="compare_mode_percent"?"percentage":"amount",R("operating_expenses_by_vendor"),V(r.timeframe),"dropdown"),l(y,[w==="compare_mode_percent"?"this_period_vs_last_period_percent":"this_period_vs_last_period"])},f=r.selectedAdditionalBalances.includes("this_period_vs_last_period_percent")?"compare_mode_percent":"compare_mode_amount",[d,_]=C.useState(void 0),[S,v]=C.useState(void 0),P=H(),z=q(),$=!(P==="small"||P==="medium-compact");C.useEffect(()=>{const w={reportId:e.reportId,mode:r.mode==="compare_mode"?"this_period_vs_period_before":"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:Ee(),dataAvailable:e.dataAvailable,opexByVendorConfig:{sortKey:r.sortKey[r.timeframe],sortOrder:r.sortOrder[r.timeframe],isCompareModeOn:r.mode==="compare_mode",isAccountColumnShown:!0,isClassColumnShown:!0,onSortOrderChanged:h,sortOrSearchInProgress:r.sortOrSearchInProgress,pageFetchInProgress:r.pageFetchInProgress,onVendorNameAndBalanceClicked:n}};if(d==null||!ie(S,e)){const j=xo(e,r,w,$);v(e),_(j)}else{const j=So(d,w,e,$);_(j)}},[r.mode,e]);const E=w=>w<e.opexBalances.length,A=()=>{r.pageToken[r.timeframe]!=null&&e.fetchState==="Completed"&&(g(),p(!0))},M=e.opexBalances.length;return t.jsx(Ao,{windowSize:P,ref:s,children:o?t.jsx(Ye,{}):d!=null?t.jsx(Mo,{children:t.jsx(He,{backgroundColor:new je(z.colors.grey4),rootNodes:d,type:"name+balances_actual",compareMode:f,isSticky:{isStickyHeader:$,isStickyName:$},treeNodePadding:{left:I.contentPaddingLeft.value(P),right:I.contentPaddingRight.value(P)},nodeOpenStatus:{},scrollPosition:r.scrollPosition,onCompareModeChanged:x,onScroll:i,infiniteLoadingProps:{isItemLoaded:E,itemCount:M,loadMoreItems:A}})}):null})},zo=e=>{const r=e.startDate,o=e.endDate,{vendors:s,dateFormat:l}=B.getLocalizedStrings();return`${s.opExByVendor.in} ${r.format(l.visual.MMMYYFormat)} - ${o.format(l.visual.MMMYYFormat)}`};export{fr as default};
@@ -0,0 +1,11 @@
1
+ import{e as i,V as d}from"./index-l9FViNoO.js";import{n}from"./mui-cKt0zt2w.js";import"./sentry-DWELwT5u.js";import"./liveblocks-BKCvXoiA.js";import"./core-B8o5Jj6O.js";import"./recharts-DKlDhqpA.js";import"./zeni-epic-state-atBaoFS-.js";import"./lottie-CTuuushW.js";import"./analytics-nCDopMZa.js";import"./lexical-B19SDutg.js";import"./utils-Db67jZaM.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]="13dccc4e-0472-42fa-ac40-eb92d32b816d",e._sentryDebugIdIdentifier="sentry-dbid-13dccc4e-0472-42fa-ac40-eb92d32b816d")}catch{}})();const r=n.div`
2
+ display: ${({isOpen:e})=>e?"block":"none"};
3
+ position: fixed;
4
+ top: 0;
5
+ left: 0;
6
+ width: 100%;
7
+ height: 100%;
8
+ background-color: ${({theme:e})=>e.colors.background};
9
+ overflow-y: auto;
10
+ z-index: 10;
11
+ `,h=({isOpen:e,children:o})=>{const t=i();return d.jsx(r,{isOpen:e,theme:t,children:o})};export{h as default};
@@ -1,4 +1,4 @@
1
- import{V as o,H as M,d as I,q as v,bA as ne,F as c,n as re,aN as F,k as ae,b as ie,y as W,o as s,cb as ce,aB as le,aT as de,a as ge,cA as pe,bx as me,c as $,cB as he,aR as fe,aS as ue,b9 as xe,bJ as we}from"./index-B_cddanf.js";import{a as N}from"./sentry-CiC6rduJ.js";import{n as r}from"./mui-vQToN2qW.js";import{R as Se}from"./NavBarWithPicker-DX31nlvR-iKhmwyP2.js";import{m as je}from"./analyticsHelper-CcmV6wHp-Ds3S8ZrP.js";import{M as be}from"./TimeframeSwitcherWithToggle-5W1Xu4QM-CuZ3Yom9.js";import{I as ye,a as $e}from"./CollapsableReportTable-LB-wYzj1-DaCyOKB5.js";import{M as V}from"./usp-line-BBd1wKwW-COeXcH05.js";import{F1 as Ce,F2 as Pe}from"./zeni-epic-state-Ce8CP8e3.js";import{D as ke,T as ze,C as ve}from"./mapSectionWithAcOnlyToTreeNode-BNXHaV-x-8h6T4NE0.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-LxIEmBdX-Bxr9xNOi.js";import"./liveblocks-DKD_-8rq.js";import"./core-CpHpZW9N.js";import"./recharts-jo6oNEJ1.js";import"./lottie-DPQlys-3.js";import"./analytics-DKo_M1pl.js";import"./lexical-DVClH-hg.js";import"./utils-CM3T2Iks.js";import"./TimeframeSwitcher-DJiKd_tL-BdEO97Xk.js";import"./AccountRow-BWclqiQh-ChNK56Ur.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]="3ae1df04-6d6a-45aa-825a-d0fbd4c8e3b6",e._sentryDebugIdIdentifier="sentry-dbid-3ae1df04-6d6a-45aa-825a-d0fbd4c8e3b6")}catch{}})();const Y="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",q="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",Te=r.div`
1
+ import{V as o,I as M,e as I,q as v,bA as ne,F as c,n as re,aN as F,A as ie,b as ae,y as W,o as s,cb as ce,aB as le,aT as de,c as ge,cA as pe,bx as me,d as $,cB as he,aR as fe,aS as ue,b9 as xe,bJ as we}from"./index-l9FViNoO.js";import{a as N}from"./sentry-DWELwT5u.js";import{n as r}from"./mui-cKt0zt2w.js";import{R as Se}from"./NavBarWithPicker-VzNJnXX3-D_mYpcQU.js";import{m as je}from"./analyticsHelper-BXN2EdPH-DXUFohOz.js";import{M as be}from"./TimeframeSwitcherWithToggle-BXIevpvE-CV8LNwYU.js";import{I as ye,a as $e}from"./CollapsableReportTable-D1b80h2R-CMeyXG6i.js";import{M as V}from"./usp-line-BBd1wKwW-DG080FPi.js";import{F1 as Ce,F2 as Pe}from"./zeni-epic-state-atBaoFS-.js";import{D as ke,T as ze,C as ve}from"./mapSectionWithAcOnlyToTreeNode-DLeyrCPV-CBeUvfG-.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-BNP8a_pF-DA-Kt9CP.js";import"./liveblocks-BKCvXoiA.js";import"./core-B8o5Jj6O.js";import"./recharts-DKlDhqpA.js";import"./lottie-CTuuushW.js";import"./analytics-nCDopMZa.js";import"./lexical-B19SDutg.js";import"./utils-Db67jZaM.js";import"./TimeframeSwitcher-Bb7JwirM-DT_nE5Dd.js";import"./AccountRow-DlccmtgU-foUdbmvG.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]="3107665e-804d-4d76-90f1-25ac4aa32873",e._sentryDebugIdIdentifier="sentry-dbid-3107665e-804d-4d76-90f1-25ac4aa32873")}catch{}})();const Y="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",q="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",Te=r.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -70,7 +70,7 @@ import{V as o,H as M,d as I,q as v,bA as ne,F as c,n as re,aN as F,k as ae,b as
70
70
  margin: ${s.sp3} auto;
71
71
  max-width: 422px;
72
72
  color: ${e=>e.theme.colors.hero};
73
- `,Ne=()=>{const e=I(),t=v();return o.jsxs(J,{windowSize:t,children:[o.jsx(Q,{windowSize:t,children:o.jsx(X,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:q,alt:"forecast-promo",style:{width:"100%",height:"auto"}}):o.jsx("img",{src:Y,alt:"forecast-promo",style:{width:"100%",height:"auto"}})})}),o.jsxs(K,{windowSize:t,children:[o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(Z,{})}),o.jsxs(k,{children:[o.jsx(R,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(ee,{})}),o.jsxs(k,{children:[o.jsx(R,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(oe,{})}),o.jsxs(k,{children:[o.jsx(R,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]})]})},_e=()=>{const e=I(),t=v();return o.jsxs(J,{windowSize:t,children:[o.jsxs(K,{windowSize:t,children:[o.jsxs(C,{windowSize:t,style:{width:"408px"},children:[o.jsx(P,{children:o.jsx(Z,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(C,{windowSize:t,style:{width:"275px",alignSelf:"end"},children:[o.jsx(P,{children:o.jsx(ee,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(C,{windowSize:t,style:{width:"408px"},children:[o.jsx(P,{children:o.jsx(oe,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]}),o.jsx(Q,{windowSize:t,children:o.jsx(X,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:q,alt:"forecast-promo",style:{width:"640px",height:"402px"}}):o.jsx("img",{src:Y,alt:"forecast-promo",style:{width:"640px",height:"402px"}})})})]})},Be=({meetingUrl:e,onBackClick:t,onClickMenuIcon:n})=>{const i=I(),l=v(),d=()=>{window.open(e.toString(),"_blank")};return o.jsxs(Te,{"data-testid":F("forecast-promo-page"),children:[o.jsx(ne,{title:c.getLocalizedStrings().forecastPromoPage.title,backgroundColor:i.colors.grey4,onBackClick:t,showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:n,source:"ForecastPromoPage"}),o.jsxs(Le,{"data-testid":F("forecast-promo-container"),windowSize:l,children:[l==="small"?o.jsx(Ae,{children:c.getLocalizedStrings().forecastPromoPage.promoText}):o.jsx(Ie,{children:c.getLocalizedStrings().forecastPromoPage.promoText}),l==="small"?o.jsx(Ne,{}):o.jsx(_e,{}),o.jsxs(Me,{"data-testid":F("forecast-promo-bottom-container"),children:[o.jsx(re,{variant:"primary",label:c.getLocalizedStrings().forecastPromoPage.meetingButton,onClick:d}),o.jsx(Fe,{children:c.getLocalizedStrings().forecastPromoPage.forecastUpload})]})]})]})};function Oe(e,t,n=!0){const i=c.getLocalizedStrings().reports,l=e.filter.balancesRange.numberOfPeriods,d=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?e.sections.expenses.balances:e.sections.income!=null?e.sections.income.balances:[],m=H({balances:d,config:t}),p=[];return p.push(m),e.idsInOrder.forEach(a=>{if(Ce(a)===!0){const u=e.sections[a];if(u==null)return;u.accountGroups.length>0?p.push(ke({section:e.sections[a],sectionType:a,numOfBalances:l,title:i.sections[a],isLastNode:!0,config:t})):p.push(ze({sectionWithAcOnly:e.sections[a],sectionType:a,numOfBalances:l,title:i.sections[a],isLastNode:!0,config:t}))}else Pe(a)===!0&&p.push(ve({calculatedSection:e.calculatedSections[a],numOfBalances:l,title:i.sections[a],isLastNode:!0,config:t}))}),{config:t,headerNodes:n?[m]:[],contentNodes:p}}function Re(e,t,n,i=!0){Object.assign(e.config,t);const l=n.sections.expenses.balances.length>0?[...n.sections.expenses.balances,...n.sections.expenses.additionalBalances]:[...n.sections.income.balances,...n.sections.income.additionalBalances],d=H({balances:l,config:t,nodeId:e.contentNodes[0].id}),m=e.contentNodes.slice(1);return m.forEach(p=>te(p,t)),{config:t,headerNodes:i?[d]:[],contentNodes:[d,...m]}}function te(e,t){Object.assign(e.reportElementData.config,t),e.children.forEach(n=>te(n,t))}const L={contentPaddingLeft:new W($[3],$[3],$[8]),contentPaddingRight:new W($[3],$[3],$[8])},Ve=r.div`
73
+ `,Ne=()=>{const e=I(),t=v();return o.jsxs(J,{windowSize:t,children:[o.jsx(Q,{windowSize:t,children:o.jsx(X,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:q,alt:"forecast-promo",style:{width:"100%",height:"auto"}}):o.jsx("img",{src:Y,alt:"forecast-promo",style:{width:"100%",height:"auto"}})})}),o.jsxs(K,{windowSize:t,children:[o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(Z,{})}),o.jsxs(k,{children:[o.jsx(R,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(ee,{})}),o.jsxs(k,{children:[o.jsx(R,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(oe,{})}),o.jsxs(k,{children:[o.jsx(R,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]})]})},_e=()=>{const e=I(),t=v();return o.jsxs(J,{windowSize:t,children:[o.jsxs(K,{windowSize:t,children:[o.jsxs(C,{windowSize:t,style:{width:"408px"},children:[o.jsx(P,{children:o.jsx(Z,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(C,{windowSize:t,style:{width:"275px",alignSelf:"end"},children:[o.jsx(P,{children:o.jsx(ee,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(C,{windowSize:t,style:{width:"408px"},children:[o.jsx(P,{children:o.jsx(oe,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]}),o.jsx(Q,{windowSize:t,children:o.jsx(X,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:q,alt:"forecast-promo",style:{width:"640px",height:"402px"}}):o.jsx("img",{src:Y,alt:"forecast-promo",style:{width:"640px",height:"402px"}})})})]})},Be=({meetingUrl:e,onBackClick:t,onClickMenuIcon:n})=>{const a=I(),l=v(),d=()=>{window.open(e.toString(),"_blank")};return o.jsxs(Te,{"data-testid":F("forecast-promo-page"),children:[o.jsx(ne,{title:c.getLocalizedStrings().forecastPromoPage.title,backgroundColor:a.colors.grey4,onBackClick:t,showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:n,source:"ForecastPromoPage"}),o.jsxs(Le,{"data-testid":F("forecast-promo-container"),windowSize:l,children:[l==="small"?o.jsx(Ae,{children:c.getLocalizedStrings().forecastPromoPage.promoText}):o.jsx(Ie,{children:c.getLocalizedStrings().forecastPromoPage.promoText}),l==="small"?o.jsx(Ne,{}):o.jsx(_e,{}),o.jsxs(Me,{"data-testid":F("forecast-promo-bottom-container"),children:[o.jsx(re,{variant:"primary",label:c.getLocalizedStrings().forecastPromoPage.meetingButton,onClick:d}),o.jsx(Fe,{children:c.getLocalizedStrings().forecastPromoPage.forecastUpload})]})]})]})};function Oe(e,t,n=!0){const a=c.getLocalizedStrings().reports,l=e.filter.balancesRange.numberOfPeriods,d=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?e.sections.expenses.balances:e.sections.income!=null?e.sections.income.balances:[],m=H({balances:d,config:t}),p=[];return p.push(m),e.idsInOrder.forEach(i=>{if(Ce(i)===!0){const u=e.sections[i];if(u==null)return;u.accountGroups.length>0?p.push(ke({section:e.sections[i],sectionType:i,numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t})):p.push(ze({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t}))}else Pe(i)===!0&&p.push(ve({calculatedSection:e.calculatedSections[i],numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t}))}),{config:t,headerNodes:n?[m]:[],contentNodes:p}}function Re(e,t,n,a=!0){Object.assign(e.config,t);const l=n.sections.expenses.balances.length>0?[...n.sections.expenses.balances,...n.sections.expenses.additionalBalances]:[...n.sections.income.balances,...n.sections.income.additionalBalances],d=H({balances:l,config:t,nodeId:e.contentNodes[0].id}),m=e.contentNodes.slice(1);return m.forEach(p=>te(p,t)),{config:t,headerNodes:a?[d]:[],contentNodes:[d,...m]}}function te(e,t){Object.assign(e.reportElementData.config,t),e.children.forEach(n=>te(n,t))}const L={contentPaddingLeft:new W($[3],$[3],$[8]),contentPaddingRight:new W($[3],$[3],$[8])},Ve=r.div`
74
74
  display: flex;
75
75
  flex: 1 1 auto;
76
76
  min-height: 100%;
@@ -92,7 +92,7 @@ import{V as o,H as M,d as I,q as v,bA as ne,F as c,n as re,aN as F,k as ae,b as
92
92
  justify-content: center;
93
93
  align-items: center;
94
94
  background-color: ${e=>e.theme.colors.grey4};
95
- `,U=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?o.jsx(De,{children:o.jsx(ae,{size:"ExtraLarge",start:!0})}):null,We=r.div`
95
+ `,U=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?o.jsx(De,{children:o.jsx(ie,{size:"ExtraLarge",start:!0})}):null,We=r.div`
96
96
  display: flex;
97
97
  width: 100%;
98
98
  flex-direction: column;
@@ -104,4 +104,4 @@ import{V as o,H as M,d as I,q as v,bA as ne,F as c,n as re,aN as F,k as ae,b as
104
104
  align-items: center;
105
105
  justify-content: center;
106
106
  margin-bottom: ${s.sp3};
107
- `,Ge=({forecastList:e,selectedForecastIndex:t,onForecastSelectionChanged:n,vsActualOn:i,onVsActualChanged:l,selectedTimeframe:d,onTimeframeChanged:m,onBackClick:p,isPandLReportFetching:a,onClickMenuIcon:u})=>{const h=v(),f=[];for(let g=0;g<e.length;++g)f.push(`${g}`);const x={backgroundColor:"transparent",picker:{backgroundColor:"transparent",pickerValues:f,valueToLabel:g=>e[parseInt(g)]?.name??"",selectedValue:`${t}`,titleTextStyle:ie.largeMedium,onPickerSelectionChanged:g=>{if(g!=null){const z=e[parseInt(g)];n?.(z.id,parseInt(g))}},styles:{justifyContent:h==="small"?"left":"center"},isPickerDisabled:a},onBackClick:p,showMenuIcon:h==="medium-compact"||h==="small",onClickMenuIcon:u},b={toggle:{label:c.getLocalizedStrings().reports.forecast.vsActual,isOn:i,onValueChanged:l},timeframe:{allowedTimeframes:["month","quarter","year"],selectedTimeframe:d,onTimeframeSelectionChanged:g=>m?.(g)}};return o.jsxs(We,{paddingLeft:L.contentPaddingLeft.value(h),paddingRight:L.contentPaddingRight.value(h),children:[o.jsx(Se,{...x}),a?"":o.jsx(Ue,{children:o.jsx(be,{...b})})]})},He=({report:e,type:t,isActualVsForecastOn:n,compareMode:i,onAccountBalanceClick:l,onCompareModeChanged:d,scrollPosition:m,onTableScroll:p,nodeOpenStatus:a,onNodeCollapseToggled:u})=>{const h=I(),f=v(),[x,b]=N.useState(void 0),[g,z]=N.useState(void 0),y=!(f==="small"||f==="medium-compact"),A=n===!0?"actual_vs_forecast":"none",T=`forecast.${e.reportId}`;return ce({componentName:T,enabled:e.fetchState==="Completed"}),N.useEffect(()=>{const S={reportId:`${e.reportId}+${e.forecast?.id}`,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:A,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:$e(t)===!0&&n===!1?"filter_forecast_nil_balances":"filter_actual_forecast_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:we()};if(x==null||!le(g,e)){const w=Oe(e,S,y);z(e),b(w)}else{const w=Re(x,S,e,y);b(w)}},[t,n,e]),x!=null?o.jsx(ye,{backgroundColor:new de(h.colors.grey4),rootNodes:x,type:t,compareMode:i,isSticky:{isStickyHeader:y,isStickyName:y},treeNodePadding:{left:L.contentPaddingLeft.value(f),right:L.contentPaddingRight.value(f)},onAccountClick:l==null?void 0:(S,w)=>{l(S,w)},onCompareModeChanged:d,scrollPosition:m,onScroll:p,nodeOpenStatus:a,onNodeCollapseToggled:u}):null};function uo({selectedTimeframe:e,isForecastVsActualOn:t,compareMode:n,forecastList:i,selectedForecast:l,pandLreport:d,type:m,meetingUrl:p,analytics:a,onForecastSelectionChanged:u,onTimeframeChanged:h,onForecastVsActualsCompareToggle:f,onAccountBalanceClick:x,onCompareModeChanged:b,scrollPosition:g,onTableScroll:z,nodeOpenStatus:y,onNodeCollapseToggled:A,onBackClick:T,onClickMenuIcon:S}){const w=[i.fetchState,d.fetchState],E=l?.index??-1;return se(w)===!0||i.fetchState==="Completed"&&i.forecasts.length===0?o.jsx(Be,{meetingUrl:p,onBackClick:T,onClickMenuIcon:S}):G([i.fetchState])===!0?o.jsx(U,{fetchState:qe(w)}):o.jsxs(Ve,{children:[o.jsx(Ge,{forecastList:i.forecasts,selectedForecastIndex:E,onForecastSelectionChanged:(j,D)=>{a?.trackForecastSwitch(M.Event.profitAndLossWithForecast,i.forecasts[D].name),u?.(j,D)},vsActualOn:t,onVsActualChanged:j=>{a?.trackForecastVsActualMode(M.Event.profitAndLossWithForecast,i.forecasts[E].name,j),f?.(j)},selectedTimeframe:e,onTimeframeChanged:j=>{a?.trackTimeframeSwitch(je(j),M.Event.profitAndLossWithForecast),h?.(j)},onBackClick:T,isPandLReportFetching:G([d.fetchState]),onClickMenuIcon:S}),d.fetchState==="In-Progress"?o.jsx(U,{fetchState:"In-Progress"}):o.jsx(Ee,{children:o.jsx(He,{report:d,type:m,isActualVsForecastOn:t,compareMode:n,onAccountBalanceClick:x,onCompareModeChanged:b,scrollPosition:g,onTableScroll:z,nodeOpenStatus:y,onNodeCollapseToggled:A})})]})}const Ye=e=>e.reduce((t,n)=>t===!0&&n==="Completed",!0),se=e=>e.reduce((t,n)=>t===!0||n==="Error",!1),G=e=>e.reduce((t,n)=>t===!0||n==="Not-Started"||n==="In-Progress",!1),qe=e=>Ye(e)===!0?"Completed":se(e)===!0?"Error":"In-Progress";export{uo as default,G as isAnyInProgress};
107
+ `,Ge=({forecastList:e,selectedForecastIndex:t,onForecastSelectionChanged:n,vsActualOn:a,onVsActualChanged:l,selectedTimeframe:d,onTimeframeChanged:m,onBackClick:p,isPandLReportFetching:i,onClickMenuIcon:u})=>{const h=v(),f=[];for(let g=0;g<e.length;++g)f.push(`${g}`);const x={backgroundColor:"transparent",picker:{backgroundColor:"transparent",pickerValues:f,valueToLabel:g=>e[parseInt(g)]?.name??"",selectedValue:`${t}`,titleTextStyle:ae.largeMedium,onPickerSelectionChanged:g=>{if(g!=null){const z=e[parseInt(g)];n?.(z.id,parseInt(g))}},styles:{justifyContent:h==="small"?"left":"center"},isPickerDisabled:i},onBackClick:p,showMenuIcon:h==="medium-compact"||h==="small",onClickMenuIcon:u},b={toggle:{label:c.getLocalizedStrings().reports.forecast.vsActual,isOn:a,onValueChanged:l},timeframe:{allowedTimeframes:["month","quarter","year"],selectedTimeframe:d,onTimeframeSelectionChanged:g=>m?.(g)}};return o.jsxs(We,{paddingLeft:L.contentPaddingLeft.value(h),paddingRight:L.contentPaddingRight.value(h),children:[o.jsx(Se,{...x}),i?"":o.jsx(Ue,{children:o.jsx(be,{...b})})]})},He=({report:e,type:t,isActualVsForecastOn:n,compareMode:a,onAccountBalanceClick:l,onCompareModeChanged:d,scrollPosition:m,onTableScroll:p,nodeOpenStatus:i,onNodeCollapseToggled:u})=>{const h=I(),f=v(),[x,b]=N.useState(void 0),[g,z]=N.useState(void 0),y=!(f==="small"||f==="medium-compact"),A=n===!0?"actual_vs_forecast":"none",T=`forecast.${e.reportId}`;return ce({componentName:T,enabled:e.fetchState==="Completed"}),N.useEffect(()=>{const S={reportId:`${e.reportId}+${e.forecast?.id}`,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:A,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:$e(t)===!0&&n===!1?"filter_forecast_nil_balances":"filter_actual_forecast_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:we()};if(x==null||!le(g,e)){const w=Oe(e,S,y);z(e),b(w)}else{const w=Re(x,S,e,y);b(w)}},[t,n,e]),x!=null?o.jsx(ye,{backgroundColor:new de(h.colors.grey4),rootNodes:x,type:t,compareMode:a,isSticky:{isStickyHeader:y,isStickyName:y},treeNodePadding:{left:L.contentPaddingLeft.value(f),right:L.contentPaddingRight.value(f)},onAccountClick:l==null?void 0:(S,w)=>{l(S,w)},onCompareModeChanged:d,scrollPosition:m,onScroll:p,nodeOpenStatus:i,onNodeCollapseToggled:u}):null};function uo({selectedTimeframe:e,isForecastVsActualOn:t,compareMode:n,forecastList:a,selectedForecast:l,pandLreport:d,type:m,meetingUrl:p,analytics:i,onForecastSelectionChanged:u,onTimeframeChanged:h,onForecastVsActualsCompareToggle:f,onAccountBalanceClick:x,onCompareModeChanged:b,scrollPosition:g,onTableScroll:z,nodeOpenStatus:y,onNodeCollapseToggled:A,onBackClick:T,onClickMenuIcon:S}){const w=[a.fetchState,d.fetchState],E=l?.index??-1;return se(w)===!0||a.fetchState==="Completed"&&a.forecasts.length===0?o.jsx(Be,{meetingUrl:p,onBackClick:T,onClickMenuIcon:S}):G([a.fetchState])===!0?o.jsx(U,{fetchState:qe(w)}):o.jsxs(Ve,{children:[o.jsx(Ge,{forecastList:a.forecasts,selectedForecastIndex:E,onForecastSelectionChanged:(j,D)=>{i?.trackForecastSwitch(M.Event.profitAndLossWithForecast,a.forecasts[D].name),u?.(j,D)},vsActualOn:t,onVsActualChanged:j=>{i?.trackForecastVsActualMode(M.Event.profitAndLossWithForecast,a.forecasts[E].name,j),f?.(j)},selectedTimeframe:e,onTimeframeChanged:j=>{i?.trackTimeframeSwitch(je(j),M.Event.profitAndLossWithForecast),h?.(j)},onBackClick:T,isPandLReportFetching:G([d.fetchState]),onClickMenuIcon:S}),d.fetchState==="In-Progress"?o.jsx(U,{fetchState:"In-Progress"}):o.jsx(Ee,{children:o.jsx(He,{report:d,type:m,isActualVsForecastOn:t,compareMode:n,onAccountBalanceClick:x,onCompareModeChanged:b,scrollPosition:g,onTableScroll:z,nodeOpenStatus:y,onNodeCollapseToggled:A})})]})}const Ye=e=>e.reduce((t,n)=>t===!0&&n==="Completed",!0),se=e=>e.reduce((t,n)=>t===!0||n==="Error",!1),G=e=>e.reduce((t,n)=>t===!0||n==="Not-Started"||n==="In-Progress",!1),qe=e=>Ye(e)===!0?"Completed":se(e)===!0?"Error":"In-Progress";export{uo as default,G as isAnyInProgress};