@zeniai/web-cockpit-ui 1.14.36-qa → 1.14.37-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 (242) hide show
  1. package/dist/assets/{ACHDetailsPage-3oKbHC1_-CPH8w5qf.js → ACHDetailsPage-B-YGNgNu-Bmzj5VCx.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-Cn2skpeY-CCjJ368o.js → AIPerformancePage-BtD_7Ftm-Dc6s17nv.js} +26 -26
  3. package/dist/assets/{AccountInfoPage-Dxnr3s2C-mYTnutAU.js → AccountInfoPage-BtnzwNNq-dHfnRP44.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-CMT1vJ_n-DQ3BhCnz.js → AccountInfoPageContent-B4wK76bm-bje-d7jv.js} +30 -30
  5. package/dist/assets/{AccountLockedInfoModal-2GuYlOQJ-BX3E8P3K.js → AccountLockedInfoModal-4JAQCp4H-oFdcTD1v.js} +4 -4
  6. package/dist/assets/{AccountReconDetailsDrawerPage-Cu_lsw9T-BWyP2J7P.js → AccountReconDetailsDrawerPage-Ddi5U4Ae-yt2cu51z.js} +13 -13
  7. package/dist/assets/{AccountRow-BcSPuOPF-Bl8Vk7p2.js → AccountRow-m99usqft-CVwqPSiA.js} +14 -14
  8. package/dist/assets/{AccountsPromoCardStack-Ch88Cvn8-CEnh-d4e.js → AccountsPromoCardStack-D-dhzSE8-DDW4X8m8.js} +30 -30
  9. package/dist/assets/{AddAddressForCardDrawer-Df4OROTJ-roa6Kbp7.js → AddAddressForCardDrawer-Bc7FcxQ9-CPCqNMQu.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-DgVLkIkz-DR75t9Mp.js → AddToWalletPage-y4kvtUka-DDEooDf0.js} +19 -19
  11. package/dist/assets/{AgingReportsPage-M1xr5QPt-DIjA9-NT.js → AgingReportsPage-DrNIGwGn-SYUURrNK.js} +15 -15
  12. package/dist/assets/{AllUserItems-CzMARJS5-Dr-Osj3i.js → AllUserItems-B7zg_GaP-Be7aIkSs.js} +11 -11
  13. package/dist/assets/{ApAgingDetailPage-C3YN724_-8hos2jUo.js → ApAgingDetailPage-DnnUrY0w-YKhaNkmF.js} +3 -3
  14. package/dist/assets/{AppBasePage-CP4BX_QO-DtNH4Uku.js → AppBasePage-Bk7AUQvW-DewGDFAI.js} +16 -16
  15. package/dist/assets/{AppDrawerContent-Dc3UorVz-B203bUTM.js → AppDrawerContent-BoIqLCcg-DSqSJb6O.js} +8 -8
  16. package/dist/assets/{ApprovalRulesSettingsPage-DHw_cGEb-FeAB5p5Z.js → ApprovalRulesSettingsPage-C9F_rLkj-CMuUFv_Y.js} +1 -1
  17. package/dist/assets/ArAgingChart-DIwVIc---JSQnHbrf.js +24 -0
  18. package/dist/assets/{ArAgingDetailPage-BU6gubOU-Cwybk5ti.js → ArAgingDetailPage-DxW2xm-N-C3cyEzON.js} +1 -1
  19. package/dist/assets/{AttachmentView-Cjq9bT2R-ChfqxVCP.js → AttachmentView-BlhBiGC5-BQVXVdi4.js} +6 -6
  20. package/dist/assets/{BankAccountSection-DcBAe_nk-BDZiyC0N.js → BankAccountSection-A8IfSLFo-DZ6IsEkG.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-CgdNj2lq-DYMBafFn.js → BankAccountWarningSection-DFi3iK9n-Bwv6p1-d.js} +19 -19
  22. package/dist/assets/{BankConnectionsSettingsPage-DN-l_MKN-D93nWaHf.js → BankConnectionsSettingsPage-CKGG85vp-aivbIsnx.js} +10 -10
  23. package/dist/assets/{BillDetailPage-DSNj9dZa-DtxuLV4-.js → BillDetailPage-BOVwHvyV-BfaeR7sU.js} +11 -11
  24. package/dist/assets/BillPayApprovalRuleDetailPage-BVdiHMjx-H3-_-QUF.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-3E7Zb7Tv-DCFzCAOs.js → BillPayApprovalRulesPage-Dl45oEp5-Bp4yjfcf.js} +7 -7
  26. package/dist/assets/{BillPayPromoPage-iqi-3PsJ-DMCZpJDo.js → BillPayPromoPage-CEX8Udbv-Bz1WZJJS.js} +32 -32
  27. package/dist/assets/{BillPaySetUpPage-DkBnCNVT-CNLCohDg.js → BillPaySetUpPage-CSfEFV18-C8fnmfrq.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-Bxl_rTxp-Dt1R5WU3.js → BillingSettingsPage-hu1pz4dA-DIqnmxGS.js} +4 -4
  29. package/dist/assets/{BillsBulkReviewDrawerPage-BAQfge2H-D02R2KEO.js → BillsBulkReviewDrawerPage-DIY4Aa7i-DWQniSAN.js} +1 -1
  30. package/dist/assets/{BoxItem-BiXktaUJ-Dx4UpZnl.js → BoxItem-BnivUbj--D0CHtSbc.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-BvtQdbIO-C-4HEjnu.js → BusinessVerificationPage-BZB4KFum-B7vFGHC7.js} +7 -7
  32. package/dist/assets/CardNumberSubText-CIysZ6zp-BeRdb8DH.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-CKSxtvZL-DMy_1ncD.js → CashbackDetailPage-C-MPq54h-Di99A_id.js} +17 -17
  34. package/dist/assets/{ChargeCardDetailPage-Dwb3MwPx-Cyo9oIdd.js → ChargeCardDetailPage-CGyuANsu-BXb0v708.js} +40 -40
  35. package/dist/assets/{ChargeCardListPage-CQ3lUqTC-mqawFLzr.js → ChargeCardListPage-BbzjzgAv-D6IqTZDO.js} +27 -27
  36. package/dist/assets/{ChargeCardListTable-B2MUmgfU-D_shYqbL.js → ChargeCardListTable-D-wd0edv-Ccs8wgch.js} +14 -14
  37. package/dist/assets/{ChargeCardPromoPage-DNZ_qrk1-DBSQWDn9.js → ChargeCardPromoPage-Cs-Xlghn-TDUeeTRa.js} +14 -14
  38. package/dist/assets/{ChargeCardSetupPage-DX4VlcBt-D2BsEuJx.js → ChargeCardSetupPage-CfCGkFxz-Ba3kpJjD.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-DlVfCfY8-DacvUnhN.js → ChargeCardStatementsPage-Jc6k_2Gg-C9xm6yF8.js} +6 -6
  40. package/dist/assets/ChargeCardUtils-Vw0LoIey-LQKRCzhH.js +1 -0
  41. package/dist/assets/{ChaseOverlay-DYQYE0RM-BNyyunYf.js → ChaseOverlay-Cm-3BKNK-ByPesCFg.js} +8 -8
  42. package/dist/assets/{CheckDepositDrawerPage-C653BICE-kqu99eF3.js → CheckDepositDrawerPage-BAwg3duC-unpJ_-VW.js} +11 -11
  43. package/dist/assets/{CollapsableReportTable-KGZROyWO-Db0w9Rdn.js → CollapsableReportTable-C_qcwMWq-DwhvFgWQ.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-WlKm-fM0-BGoXAhO_.js → CompanyOfficerDetailsSection-_m4C7Xgf-B3wASBKA.js} +30 -30
  45. package/dist/assets/{CompanyPassportCard-BXQt77bL-75HeNLig.js → CompanyPassportCard-BiuPML3b-oaTBtIaM.js} +5 -5
  46. package/dist/assets/{CompanyPassportPage-CdM9x1g7-CU7hHuy1.js → CompanyPassportPage-BHf1pHbJ-Buj_TW7B.js} +29 -29
  47. package/dist/assets/{CompleteProfile-g0ErQlZA-CH_f-t16.js → CompleteProfile-DKEFybHA-C1kFizxR.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-Cu0ce9ZQ-B-O04vC2.js → ConfettiBurst-BvcmPG2b-ZMa2QlEG.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-Zn--1Mu0-D9gWbjtv.js → CreateOrEditVendorPage-EpWC9Uuv-Dc0tZPg8.js} +8 -8
  50. package/dist/assets/{CreditCardPaymentDrawerPage-BSS4YcVE-CgX6IwV-.js → CreditCardPaymentDrawerPage-DI-za1T2-bRyqVvzT.js} +19 -19
  51. package/dist/assets/{CreditCardPaymentPlgSection-QKLSnyR5-CcwitUra.js → CreditCardPaymentPlgSection-BGu0Am-e-aYbEN-hH.js} +8 -8
  52. package/dist/assets/{CurrencySelectField-DxrwSaJK-CtUHanPt.js → CurrencySelectField-DL628Rog-Bmtvp9OQ.js} +4 -4
  53. package/dist/assets/{CustomerOnboardingActivationPage-BbfI4g9k-BQ3KiLNv.js → CustomerOnboardingActivationPage-DzuWnPaH-_LvR1atL.js} +2 -2
  54. package/dist/assets/CustomerOnboardingContainerPage-BLgcij7A-B0ZyZA5y.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DyIeAi4x-sDf2KJmg.js → CustomerOnboardingDetailPageSkeleton-Bx_rpQHj-BvbC0CJP.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-BbHZQvuH-Cs54P_au.js → CustomerOnboardingNoStepsPage-CSI_jqkM-BvTSxYdS.js} +2 -2
  57. package/dist/assets/{CustomerOnboardingPage-BGKjRruK-l9abCt_I.js → CustomerOnboardingPage-CuS2FfSh--tD5QTKd.js} +6 -6
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-Cmwfbh1x-CqTz3Oek.js → CustomerOnboardingProductSuitePage-B4HtoU9G-k9fDWiOr.js} +1 -1
  59. package/dist/assets/{Dashboard-DCbGYUNO-Ba0gdUJ8.js → Dashboard-bFhMc4h1-CwTlVIc3.js} +114 -114
  60. package/dist/assets/{DashboardReportPage-7sacscjb-DQsdps8x.js → DashboardReportPage-B1pKZHaH-C002ABtg.js} +19 -19
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-CcQR2lMq-CdazmDjf.js → DashboardSidebarBackgroundAnimation-CLaTbvuZ-DTILeRgb.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-u7kiVxu3-kPzkE3jM.js → DepositAccTransactionItem-DnzXR7B4-BzeCDAAx.js} +3 -3
  63. package/dist/assets/DepositAccTransactionListPage-C0F0N3XK-CpXVyO43.js +66 -0
  64. package/dist/assets/{DomesticWireDetailsPage-CjliTPRp-DDFMQRln.js → DomesticWireDetailsPage-BS3N4ATj-Z9M0LUQc.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-LzyYQ7X7-C1kfy2nO.js → DownloadOverlay-yXed0RbK-CILknCuS.js} +1 -1
  66. package/dist/assets/{DrawerPage-DVu3OGym-CoS-_2wf.js → DrawerPage-LV8__F8R-DnqAUVKa.js} +5 -5
  67. package/dist/assets/{EditPeoplePage-COZuksUu-COZ99MkR.js → EditPeoplePage-GBNK0lo_-DOfo7pqS.js} +5 -5
  68. package/dist/assets/{EditReimbursementDetailPage-P7gybbTe-DoN5gC4Y.js → EditReimbursementDetailPage-COApDpVm-BQmgcdfZ.js} +59 -59
  69. package/dist/assets/{EntityDetailPage-CMAFiXng-5jgc6gJM.js → EntityDetailPage-DdZmhyPX-DWJHl4Bk.js} +2 -2
  70. package/dist/assets/{EntitySummarySection-BezHSTT7-44jzqjl2.js → EntitySummarySection-Cn7rnQeI-CBO7wVuQ.js} +5 -5
  71. package/dist/assets/{ExpenseAutomationOverviewPage-CX5wpbbp-BFiisz1L.js → ExpenseAutomationOverviewPage-ipXT_MCO-bp6l5ftT.js} +17 -17
  72. package/dist/assets/ExpenseAutomationPage-BXyGtnBz-BNGaSmRn.js +1650 -0
  73. package/dist/assets/{ExpressPayPage-KpzY-AC4-MUf8Bliz.js → ExpressPayPage-C0J3X657-nQamsxue.js} +9 -9
  74. package/dist/assets/{FeaturePreviewPage-T7VgNi57-DfDILGAW.js → FeaturePreviewPage-lIDKDiwy-ByXy-FSZ.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-BffVXexb-D3pEbTc3.js → FollowStepsSection-CtCRMD2R-CbwNNmmr.js} +23 -23
  76. package/dist/assets/{GlobalReviewListPage-DPJug-7p-Dl-cd64S.js → GlobalReviewListPage-DXPuMshX-BcxIk4p1.js} +14 -14
  77. package/dist/assets/{HelpButton-BkxT0f9t-BbQSDGRC.js → HelpButton-Dmp2RZDD-B2Rab4OD.js} +4 -4
  78. package/dist/assets/{InformationCardStack-CiO7p4bX-Do2a1fQI.js → InformationCardStack-bpQXbFWJ-Cm38YEZv.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-CCx4eRv0-CLWY9RSw.js → InsightsCardStack-BzyYnnH_-BColy9W-.js} +9 -9
  80. package/dist/assets/{InsightsSection-CQRpIy9c-Cv1jNfx6.js → InsightsSection-BVjjBkzp-DdtTOhLh.js} +4 -4
  81. package/dist/assets/{IntegrationsSettingsPage-CDHIF3ky-DtZ5IA9g.js → IntegrationsSettingsPage-DjMaGIv9-C8FJSTfl.js} +3 -3
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-BTB0YTLP-n6XtyIV1.js → InternationalWireSwiftDetailsPage-DXYaOaYh-D23V0HqY.js} +13 -13
  83. package/dist/assets/{InternationalWireVerificationPage-DZAa5CXK-DbY47A1b.js → InternationalWireVerificationPage-yPrzoGA9-BxdDeF-a.js} +10 -10
  84. package/dist/assets/{InviteFormPage-CVIA_4cc-eg7gJ7Ox.js → InviteFormPage-xQ6xN_gt-BMpnhTIU.js} +20 -20
  85. package/dist/assets/{InvitePageListView-BapkK9dR-BVEYyyQ6.js → InvitePageListView-BmkX934z-BfZaFs-7.js} +40 -40
  86. package/dist/assets/InvitePeoplePage-BxxEjVs5-CabY1R7G.js +12 -0
  87. package/dist/assets/{InvoiceUploadSection-CfoxMKse-CDjglzly.js → InvoiceUploadSection-BxfSI49h-Brw0wgV3.js} +6 -6
  88. package/dist/assets/{IssueChargeCardPage-DoNxoxCV-CmM-tr_7.js → IssueChargeCardPage-ByK_ayX6-rSu6Sks_.js} +22 -22
  89. package/dist/assets/{LabeledAddressValue-DzKLuwO0-DH63jMra.js → LabeledAddressValue-Bk-opSoh-CfhrR6VE.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-RFI4bpOj-V_HSBjtL.js +45 -0
  91. package/dist/assets/{LabeledControlledCheckBoxField-BsXmJGaz-sGVdJyTH.js → LabeledControlledCheckBoxField-DtVQoSev-CxGQ4PV5.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-CNcoKtBi-Bc2UKXaN.js → LabeledCreatableSingleSelectField-BFmP_-GA-Dc6F7WMx.js} +2 -2
  93. package/dist/assets/{LabeledDocumentField-DB-XX9hy-mKhff6Yn.js → LabeledDocumentField-CyW3tPI--BGc7rzmx.js} +3 -3
  94. package/dist/assets/{LabeledDropDownFormattedTextField-ChF-tfZl-DZO5Gtru.js → LabeledDropDownFormattedTextField-_b5VDmOJ-XXRUXuQU.js} +3 -3
  95. package/dist/assets/{LabeledText-DQjY46zj-up0sQhsW.js → LabeledText-Bc8QavrT-DRMQG5Fd.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dg_jyvIT-oTL0jcAw.js → LabeledUserSingleSelectWithSubtitlesField-CE-MxVSk-Bf2C7jq-.js} +7 -7
  97. package/dist/assets/{LabeledZeniRolesDropDownField-qeHXm7K1-C_80YZK_.js → LabeledZeniRolesDropDownField-BqlbDyA1-Z63nBo8a.js} +6 -6
  98. package/dist/assets/{LinkJETransactionPage-DWq96C-C-DRgB8kQY.js → LinkJETransactionPage-DE8ch_W7-BbSoAkGH.js} +6 -6
  99. package/dist/assets/{LowBalancePopup-DIu4EJtv-rczMO9N_.js → LowBalancePopup-DWXEyi2S-BS-B0i1n.js} +4 -4
  100. package/dist/assets/{MagicLinkACHDetailsPage-0uTQmYPp-BzrnVjRN.js → MagicLinkACHDetailsPage-CJ57XAxp-B8DWH8Pe.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CtkSDg_U-DAUSWNXX.js → MagicLinkDomesticWireDetailsPage-Ba1gbLAX-C3b71Pt2.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-qNEvVVcm-BLVdFllq.js → MagicLinkInternationalWireDetailsPage-U3ygf3uO-B8lQWMEo.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-D4C3XF4W-CxC7T2yq.js → MagicLinkSuccessPage-CGjxH6Hl-BGgftVAk.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-DXZCLfIM-Kc9li2Mz.js → MagicLinkTitleSection-Dzfctx8H-BBKMnm9G.js} +9 -9
  105. package/dist/assets/{MailingDetailsSection-7_w5PfFQ-l-Ms2dZv.js → MailingDetailsSection-N-M1JzkW-CJwTbRpR.js} +6 -6
  106. package/dist/assets/{MeetingCalenderPopup-2P6uhLqh-Bv6Y7JYF.js → MeetingCalenderPopup-BJgsd-6e-BVSiedfG.js} +1 -1
  107. package/dist/assets/{Menu-Ya9EH9T1-PA0M0_dJ.js → Menu-DCl4YiCd-B0YQHXqY.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-Bz9BP12B-DFEjaiEQ.js → MyBankConnectionsSettingsPage-BZP3Dbes-DmpNjSAQ.js} +11 -11
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-BxFFCBYU-J7pq_dIc.js → MyPendingActivationChargeCardListPage-Cc8Onh73-CbDOi7oK.js} +2 -2
  110. package/dist/assets/{MyProfileSettingsPage-BRTEYBf1-CImsulwL.js → MyProfileSettingsPage-7YrgIr-M-ZiI_qPOd.js} +11 -11
  111. package/dist/assets/{NavBarWithPicker-Cx1ldzdT-DvbtCcQI.js → NavBarWithPicker-Bbu7_9sU-Drz87Xca.js} +4 -4
  112. package/dist/assets/{NavigationArrow-Cic_S7sL-ckG0aVUi.js → NavigationArrow-DNJkGq5e-CFURJ7Q6.js} +1 -1
  113. package/dist/assets/{NavigationDots-BnqdhDar-Cev6ZyTd.js → NavigationDots-BDhrBzmw-D1HC0qJi.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-BMLnV68V-BCfbjcR4.js → NewGlobalMerchantPage-DSyitl-a-Cmd_Uf-_.js} +11 -11
  115. package/dist/assets/{NoDataChart-CyIzcvzb-Dem0-EFr.js → NoDataChart-Bww-GG_z-Bc_skb_f.js} +3 -3
  116. package/dist/assets/{NoDataTable-Cf9Qv-ms-CRyA81-u.js → NoDataTable-DRSEE7HT-D9jhDjAA.js} +1 -1
  117. package/dist/assets/{NotFoundPage-BP2jA51O-CIcxo9pO.js → NotFoundPage-BepvWGxk-DxNfmeBZ.js} +4 -4
  118. package/dist/assets/{NotificationSettingsPage-Bhj72XzL-DVOSzeQy.js → NotificationSettingsPage-CR6XVZlL-wDdA0j9g.js} +17 -17
  119. package/dist/assets/NotificationsListConfig-CBjTcLzj-jvVy89VO.js +1 -0
  120. package/dist/assets/{NotificationsPage-DEQ0muyV-Bv0NHOnt.js → NotificationsPage-BgUc61wf-BZgONaPK.js} +29 -29
  121. package/dist/assets/{OpExByVendorPage-BPvIdjMh-TNiWMr5D.js → OpExByVendorPage-BkgsQ4lY-7o0GC3_0.js} +6 -6
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo--5yg6Tax.js → OverlayContainerPage-Bmu909Fo-C009NgjC.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-CgMYDel--CkSNRDaI.js → PandLWithForecastPage-B0pUD9U8-DO8PheB4.js} +6 -6
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CfUpfrt6-BW_SKK1b.js → PaymentAccountSetupBillingAddressSection-YvYPpyzH-C8eu7aCq.js} +12 -12
  125. package/dist/assets/{PeoplePage-BrL4O-03-DC4TJAlL.js → PeoplePage-mobCML9r-CoCd3iyK.js} +18 -18
  126. package/dist/assets/{PortfolioAllocationFormPage-C24sa7Lv-CS9exMuD.js → PortfolioAllocationFormPage-CB9lfs6z-DLoszR7s.js} +7 -7
  127. package/dist/assets/{PortfolioDetails-wAtPiO4w-DtXhftWz.js → PortfolioDetails-zYYGkoC--vz6_lm4y.js} +23 -23
  128. package/dist/assets/{ProductsCarousel-B8KxzJsX-D-U3TnaP.js → ProductsCarousel-B4zdUn5q-DoM0qjnT.js} +5 -5
  129. package/dist/assets/{PromoBaseCards-DKu8lmMb-BIMtIVy2.js → PromoBaseCards-CgGg3lpk-Dz6RYIDW.js} +3 -3
  130. package/dist/assets/{QBOConnectionDialog-CSRVcpvB-C3IWq6r8.js → QBOConnectionDialog-BBVBEJWA-dgJxEpfC.js} +9 -9
  131. package/dist/assets/{QBOSetupSection-CwO2OwTA-lgs-jkrv.js → QBOSetupSection-pBOQk_mE-Dd7Gnjqf.js} +10 -10
  132. package/dist/assets/ReimbursementApprovalRuleDetailPage-Ck2KbJ_R-BX6Ge_l2.js +26 -0
  133. package/dist/assets/{ReimbursementApprovalRulesPage-CWZIqbqf-BTn_SLR-.js → ReimbursementApprovalRulesPage-D7LTvUrz-DlssbBj8.js} +32 -32
  134. package/dist/assets/{ReimbursementDetailPage-DaiOed8i-DwZH8KtK.js → ReimbursementDetailPage-CbgWCawo-C7_BdWis.js} +8 -8
  135. package/dist/assets/{ReimbursementPromoPage-CTpCa9C7-DXsIPlPa.js → ReimbursementPromoPage-DmV5eoIo-DOkiivOI.js} +6 -6
  136. package/dist/assets/{ReimbursementSetUpPage-Cd0w6zdZ-DGtqM3KM.js → ReimbursementSetUpPage-kAlaG5Ag-CleK9Kyi.js} +3 -3
  137. package/dist/assets/ReimbursementsBulkReviewDrawerPage-70qXVn3v-C1moxDIU.js +1 -0
  138. package/dist/assets/{ReloadCard-D8XT-nw--BV8bnUyY.js → ReloadCard-DoOxxK_q-CpkIPzoZ.js} +5 -5
  139. package/dist/assets/{ReportTableViewSelector-kf12PTIw-DworDG8i.js → ReportTableViewSelector-7OJVsL-G-DHAAlp0N.js} +10 -10
  140. package/dist/assets/{ReportsPage-D0dEACVc-DgIJNvPU.js → ReportsPage-29ims7Ks-DeqwxbGw.js} +9 -9
  141. package/dist/assets/{RevenueChart-D67Egnoj-BPCWUSxJ.js → RevenueChart-CLtUUYr5-BiKK-4fc.js} +14 -14
  142. package/dist/assets/{ReviewDetailsPage-DX3JdY2D-D3dyGngD.js → ReviewDetailsPage-DNDzoyA5-DEPI6irg.js} +5 -5
  143. package/dist/assets/{ReviewOverlay-BUmIoEZp-D2ymNLjK.js → ReviewOverlay-VleZWRhn-92ozUwMn.js} +4 -4
  144. package/dist/assets/{RoleWithToolTip-QUDWRgyn-CpllGBka.js → RoleWithToolTip-DsEos8I_-DRhh0Kxb.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-ffFbqWqR-CjimSP3l.js → ScheduleDetailsFixedAssetsPage-Cv84NP5--DgtnhyGw.js} +4 -4
  146. package/dist/assets/{ScheduleDetailsPage-Btyinpxx-BEc7XiII.js → ScheduleDetailsPage-D4IKW5z6-Dgpd_Bt3.js} +3 -3
  147. package/dist/assets/{ScheduleSequenceTable-nubG9ZPF-BREfUXr4.js → ScheduleSequenceTable-qHcZL82y-hvYO0uf8.js} +17 -17
  148. package/dist/assets/{ScreenRoutes-Dgea21fw.js → ScreenRoutes-BMiRN1n5.js} +1 -1
  149. package/dist/assets/SetUpAccountSection-CjOOpWa2-DlvlGnwo.js +378 -0
  150. package/dist/assets/{SetUpDefaultSection-D54P9sLQ-BDnsJt2v.js → SetUpDefaultSection-Ax1FuH_A-CyAf_lFy.js} +9 -9
  151. package/dist/assets/{SignIn-DQERofSd-oBlnYa-P.js → SignIn-Bj2czf21-DLn_5Hl2.js} +11 -11
  152. package/dist/assets/{SignInScreen-B2EaGJl8.js → SignInScreen-EkV2uFui.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-B9iJVZhK-CRCiUJ6M.js → SpendManagementListViewPage-7oQurX8D-Btm2dsFE.js} +10 -10
  154. package/dist/assets/{SpendManagementPerTabPage-DiduNPFx-D9oqLhbJ.js → SpendManagementPerTabPage-DG8qRSeQ-DkldK9oK.js} +12 -12
  155. package/dist/assets/{SpendManagementSection-BPJDk9AQ-DYJYXq75.js → SpendManagementSection-CzGLKJ01-CMEY5Je9.js} +5 -5
  156. package/dist/assets/{SpendMgmtSetupAccountSection-BVOwbOVv-DBEGxYJg.js → SpendMgmtSetupAccountSection-BSuY_zqo-DgJtGLqh.js} +6 -6
  157. package/dist/assets/StatementItem-teWYG-k5-DINRmcX_.js +31 -0
  158. package/dist/assets/{StatementsPage-BzG0fWr9-C2WmykTu.js → StatementsPage-Kqug4TjC-i8j_G7aT.js} +6 -6
  159. package/dist/assets/{StatusSwitcher-aZiGS6I4-SJleRIpV.js → StatusSwitcher-BXzanE6h-DMj6aTv0.js} +4 -4
  160. package/dist/assets/{SubTabSwitcher-BPzCR9_G-BHHHtmm3.js → SubTabSwitcher-Dc78MPYF-BBOjByHP.js} +1 -1
  161. package/dist/assets/{SummaryCard-DE3DiW4z-Ob-uwEAE.js → SummaryCard-DDpG4vry-B5U4mOGE.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-bmYzZzlx-CIXVz4DA.js → TaskManagementPage-DQXNMGNK-CKRAR0zh.js} +14 -14
  163. package/dist/assets/{TimeRangeSwitcher-D10b_iT0-jUwxoenx.js → TimeRangeSwitcher-BQL2dhVh-BEcsPUsE.js} +3 -3
  164. package/dist/assets/{TimeframeSwitcher-w4308CL0-DnYzOk2-.js → TimeframeSwitcher-CXvrXTdI-C26WdHZR.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcherWithToggle-DP7dCTZ--DkJE5OK1.js → TimeframeSwitcherWithToggle-C_hQ5Vj--Bx-1-ivl.js} +1 -1
  166. package/dist/assets/{TopExCard-C9Dwe5gi-LPUiisav.js → TopExCard-CmajFYfY-r8AKz4at.js} +6 -6
  167. package/dist/assets/{TopExDetailPage-Ch4gEAFc-jqF5sDN8.js → TopExDetailPage-DNfBQfSC-C7SERVmo.js} +14 -14
  168. package/dist/assets/TransactionDetailPage-DZPHVxna-gW9ty_N8.js +912 -0
  169. package/dist/assets/{TransactionList-Dy4LSOLF-B2cK80Yz.js → TransactionList-DifBTNrV-XDxlPwJi.js} +5 -5
  170. package/dist/assets/{TransactionListBig-BOmqcsRt-D39HjkKA.js → TransactionListBig-Bjmt3Xib-2_W_aEC_.js} +13 -13
  171. package/dist/assets/{TransactionListPage-D1XobIP_-DbIWZvtt.js → TransactionListPage-CpFiD4Aw-CR2PsPHW.js} +4 -4
  172. package/dist/assets/TransactionVendorDetailPage-BSZ4IBis-BYhm_gdm.js +80 -0
  173. package/dist/assets/{TransferDrawerPage-DEK-tLwC-BhvXBxPn.js → TransferDrawerPage-CiGIqLHQ-D46lOtpY.js} +19 -19
  174. package/dist/assets/{TreasuryOverviewPage-Bv8YOcOu-C7TfPiOx.js → TreasuryOverviewPage-C21g82G6-DYbFAWwM.js} +45 -45
  175. package/dist/assets/{TreasuryPromoPage-BpJ4G2tW-DW2PWamd.js → TreasuryPromoPage-lNMQil_1-N_uS5Aq-.js} +21 -21
  176. package/dist/assets/{TreasurySetupPage-DmXhUnJ2-Cr-EQ97Y.js → TreasurySetupPage-CHjK0p7r-CRu0aFPY.js} +2 -2
  177. package/dist/assets/{TreasuryStatementsPage-iOhX7bQX-BrrdMHEz.js → TreasuryStatementsPage-CKAdFoHY-CmvodGfK.js} +3 -3
  178. package/dist/assets/{TreasuryTaxLetterPage-SKYFef4J-CF457mMz.js → TreasuryTaxLetterPage-DPdcmb53-THnCfe4J.js} +3 -3
  179. package/dist/assets/{TreasuryTransferOrReviewPage-BAQy6UbF-BsouYAgP.js → TreasuryTransferOrReviewPage-DmGpNvWn-BuegZV7_.js} +42 -42
  180. package/dist/assets/{TrendChart-DrNmAOxp-CpCLfpDT.js → TrendChart-BJF_aBUS-9NcnnooQ.js} +4 -4
  181. package/dist/assets/{TrendWithTransactions-CFapbjqF-Br032y4x.js → TrendWithTransactions-DXSMdecG-qeajZlKV.js} +5 -5
  182. package/dist/assets/{UncategorizedAccountsMappingPage-BjyEIyD--CJ52UqmE.js → UncategorizedAccountsMappingPage-DMiXdRb9-CRgBjITM.js} +15 -15
  183. package/dist/assets/{UnitIntegrationPage-CMRuNXKH-CCL29gsJ.js → UnitIntegrationPage-Dqakwr1P-QWF0IWfi.js} +2 -2
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-BJNFsBN7-BRmVDWYA.js → UploadAdditionalDocumentOverlay-DOy8Wvxm-COI977Ym.js} +2 -2
  185. package/dist/assets/{Vendor2FAPopup-Dk_XUHkP-B8kBbJMI.js → Vendor2FAPopup-DR_Uif4s-CCjiwhTD.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-DS1-IldK-9pon97Cr.js → VendorACHDetailsPage-_nmRyuvM-BAqZ8tTf.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-CzECD1Tt-BN9kblu_.js → VendorDetailPage-DYhBGXTe-B5kyd9_T.js} +8 -8
  188. package/dist/assets/{VendorDomesticWireDetailsPage-Bd-dOP2Q-CLGAbLU-.js → VendorDomesticWireDetailsPage-OzrrojiZ-CWHL3BiA.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-C7D_fWCV-Bw_MeqVp.js → VendorFiling1099EditablePage-C6i7dipR-DmIuqd6b.js} +14 -14
  190. package/dist/assets/{VendorFirstReviewPage-B4YffYJO-FqqXdwEH.js → VendorFirstReviewPage-DrelrPYn-CtZKswhg.js} +10 -10
  191. package/dist/assets/{VendorInternationalWireDetailsPage-D1i4RwUe-FAsqO0N8.js → VendorInternationalWireDetailsPage-BglZ4_v2-DWh5FNhJ.js} +7 -7
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-QqA8DADQ-BBMTCc4u.js → VendorInternationalWireSwiftDetailsPage-MKHHcDL4-D4F7IynK.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-C8qo0vKx-DHEG4Ulc.js → VendorsAccountsSection-COwLgrG_-BeiJbKgP.js} +2 -2
  194. package/dist/assets/{VerifyDevice-Cku9_tdW-DHMIA102.js → VerifyDevice-FO7331hS-BHG8lbd_.js} +1 -1
  195. package/dist/assets/{VideoPlayer-DqxblGWn-CC-4yIuC.js → VideoPlayer-C7GWTYSG-C3qJA87L.js} +1 -1
  196. package/dist/assets/{VideoPopup-8253nBrT-C3Ehghs3.js → VideoPopup-CB0BXhOA-BgnE8vln.js} +5 -5
  197. package/dist/assets/{WarningsDrawerPage-B08Au4yQ-DzAdN-8l.js → WarningsDrawerPage-B081ksn8-BvnCWJxm.js} +7 -7
  198. package/dist/assets/{ZeniAccountDetailPage-Dx-w2w6D-B6oW0HxJ.js → ZeniAccountDetailPage-Bbx7ge3Z-BwrSFwiV.js} +16 -16
  199. package/dist/assets/{ZeniAccountListViewPage-DH4BnQ7k-BNii6Mpd.js → ZeniAccountListViewPage-CgOxwjk1-Cy-Kh2JX.js} +13 -13
  200. package/dist/assets/ZeniAccountNavBarPieces-BkN8_5Zi-BtKjHrnJ.js +14 -0
  201. package/dist/assets/{ZeniAccountPromoPage-D4J2Yoil-tLr0vhWS.js → ZeniAccountPromoPage-DrMHkTuM-DZxJwu1v.js} +9 -9
  202. package/dist/assets/{ZeniAccountSetupPage-DTkO1ASr-DqUJFMW_.js → ZeniAccountSetupPage-BCpKadR1-BZqzR_uG.js} +3 -3
  203. package/dist/assets/{ZeniCopyright-BiSq0yhI-CxxSPrfu.js → ZeniCopyright-juRAWlbw-DJRbuiIq.js} +1 -1
  204. package/dist/assets/ZeniTransferAmountSlider-BtI1L6UN-f_1E8Iwf.js +63 -0
  205. package/dist/assets/{analyticsHelper-B0gC8iX8.js → analyticsHelper-Bgft_1pJ.js} +1 -1
  206. package/dist/assets/{analyticsHelper-Dc3DtVTm-BSgNWv9S.js → analyticsHelper-DQQo4LQc-Dpi2pZTl.js} +1 -1
  207. package/dist/assets/{chartTypes-C7uaeRCc-CF1IJ0Zr.js → chartTypes-eqxFaFS5-B43Gm107.js} +1 -1
  208. package/dist/assets/{commonDimensions-MaxjMSVa-DDS6Yz-X.js → commonDimensions-C2hbzHZW-OFUCUhbG.js} +1 -1
  209. package/dist/assets/{detailCommon-OK9JA2hc-D4iEvwhr.js → detailCommon-fC811KkH-D6H3c8Ux.js} +6 -6
  210. package/dist/assets/{downloadPdf-QtapKpnq-DihLy_-C.js → downloadPdf-CgcD1OYw-ZvBiL7F-.js} +1 -1
  211. package/dist/assets/{index-DHx5ymlr.js → index-Du1ejFtI.js} +3415 -3415
  212. package/dist/assets/{mapLoadingInProgressToTreeNode-pvoDlh5w-C7nLUjSw.js → mapLoadingInProgressToTreeNode-CM7N02af-DstULqSu.js} +1 -1
  213. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CVUpGQKE-BV5TzbPA.js → mapSectionWithAcOnlyToTreeNode-MzhgtFpc-aX7osQA1.js} +1 -1
  214. package/dist/assets/{mapSpacerToTreeNode-P_HzYMUQ-Kk9cgUyq.js → mapSpacerToTreeNode-C7hklF---Dg7CM6wp.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-CB6RE8w9-D9jDxGg8.js → mapTimeframeBalancesToTreeNode-CEJ9v-Q3-B6zmleAa.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-B8xJouuF-CcCEjtJw.js → mapTimeframeBalancesToTreeNode-D36HLTqR-CiOqATy_.js} +1 -1
  217. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BAAatv-Y-B059Dtrr.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BhdfWhpd-Diyt9jMU.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-JkvOa9nR-BYwMYYAo.js → toCOABalancesWithID-DCFbumLL-BUL3FzIP.js} +1 -1
  219. package/dist/assets/{toChartData-CEfu5Lvp-DjmLr2R6.js → toChartData-Dh9v_zba-IkjT0Y7p.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-Bvcahv9r-BlMw_nJe.js → treasuryColorHelper-ZXa62meg-C9-TrKv9.js} +1 -1
  221. package/dist/assets/{uploadAttachment-DNrYcaTL-Cholr_W4.js → uploadAttachment-DOhn3y-C-AUYll2HA.js} +14 -14
  222. package/dist/assets/{uploadReceipts-dxsKhm9I-ArZe3dEq.js → uploadReceipts-dxsKhm9I-Cdyoe2Us.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +4 -4
  225. package/dist/assets/ArAgingChart-D6396NAQ-D9EGzoVz.js +0 -24
  226. package/dist/assets/BillPayApprovalRuleDetailPage-Bn_93mxC-D5SkQUAQ.js +0 -27
  227. package/dist/assets/CardNumberSubText-usoiubBx-QXbkZUhG.js +0 -21
  228. package/dist/assets/ChargeCardUtils-i4In9Us5-C9THFfoq.js +0 -1
  229. package/dist/assets/CustomerOnboardingContainerPage-DkXWw44M-CKyWwY0E.js +0 -1
  230. package/dist/assets/DepositAccTransactionListPage-BTMDl7KO-CpgQjnLH.js +0 -66
  231. package/dist/assets/ExpenseAutomationPage-CaeVli6J-D_RBOInw.js +0 -1650
  232. package/dist/assets/InvitePeoplePage-ChM26gAd-tkyY1YVT.js +0 -12
  233. package/dist/assets/LabeledAddressValueField-C-fJPbDr-si3fj6mD.js +0 -45
  234. package/dist/assets/NotificationsListConfig-BcRqz3T--_kCrOUBW.js +0 -1
  235. package/dist/assets/ReimbursementApprovalRuleDetailPage-DWAgRWah-B-JT-bmK.js +0 -26
  236. package/dist/assets/ReimbursementsBulkReviewDrawerPage-D_IG6Yzl-Bw_bWRdV.js +0 -1
  237. package/dist/assets/SetUpAccountSection-C9PPpmcc-BwjqbpIO.js +0 -378
  238. package/dist/assets/StatementItem-DPiBruWm-BYcMr1Ax.js +0 -31
  239. package/dist/assets/TransactionDetailPage-y3Jwxln6-XqloTW5v.js +0 -912
  240. package/dist/assets/TransactionVendorDetailPage-DNbFFCAy-BUiP7F5k.js +0 -80
  241. package/dist/assets/ZeniAccountNavBarPieces-ce5jAGIl-aolww07f.js +0 -14
  242. package/dist/assets/ZeniTransferAmountSlider-B-iWjIM--DoQjJC_n.js +0 -63
@@ -1,8 +1,8 @@
1
- import{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 as Xt,o as i,b as we,gu as Qt,C as R,hu as ei,v as Ne,m as ti,A as et,bS as tt,aj as it,dl as ot,b_ as st,jd as at,r as y,K as ii,je as oi,dj as ce,ae as si,J as ai,g as rt,f as S,w as ri,bh as z,cn as ue,fG as he,jf as pe,Y as nt,x as lt,dt as E,d4 as dt,fP as ni,y as Q,hI as li,B as H,f3 as di,a8 as ye,ap as fe,jg as ci,be as ct,jh as Ie,aR as ui}from"./index-DHx5ymlr.js";import{b as x,n as r,j as O}from"./vendor-rkTZJa59.js";import{k as hi}from"./SubTabSwitcher-BPzCR9_G-BHHHtmm3.js";import{d as ut}from"./useLongPress-GCK2COYQ-BoJXFS3o.js";import{A as ht,t as pt,a as ft,E as mt,L as gt,I as xt}from"./NotificationsListConfig-BcRqz3T--_kCrOUBW.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";function pi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:u}){const h=v(),p=X(),m=x.useCallback(b=>{d(b.id)},[d]),f=x.useCallback(b=>{u(b.id)},[u]);return e.length===0?null:t.jsxs(fi,{windowSize:h,children:[t.jsx(ei,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${p.colors.grey3}`},onTabChange:m}),t.jsx(hi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:f})]})}const fi=r.div`
1
+ import{u as X,e as v,a as Jt,B as P,ca as qt,j as t,aX as Zt,l as g,F as Kt,a4 as Xt,o as i,b as we,gt as Qt,C as R,ht as ei,v as Ne,m as ti,H as et,bS as tt,aj as it,dl as ot,b_ as st,jc as at,q as y,K as ii,jd as oi,dj as ce,ae as si,J as ai,y as rt,g as S,w as ri,bh as z,cn as ue,fF as he,je as pe,Y as nt,x as lt,dt as E,d4 as dt,fO as ni,t as Q,hH as li,n as H,f2 as di,a8 as ye,ap as fe,jf as ci,be as ct,jg as Ie,aR as ui}from"./index-Du1ejFtI.js";import{b as x,n as r,j as A}from"./vendor-rkTZJa59.js";import{k as hi}from"./SubTabSwitcher-Dc78MPYF-BBOjByHP.js";import{d as ut}from"./useLongPress-GCK2COYQ-BoJXFS3o.js";import{A as ht,t as pt,a as ft,E as mt,L as gt,I as xt}from"./NotificationsListConfig-CBjTcLzj-jvVy89VO.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";function pi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:u}){const h=v(),p=X(),m=x.useCallback(b=>{d(b.id)},[d]),f=x.useCallback(b=>{u(b.id)},[u]);return e.length===0?null:t.jsxs(fi,{windowSize:h,children:[t.jsx(ei,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${p.colors.grey3}`},onTabChange:m}),t.jsx(hi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:f})]})}const fi=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
5
- `,{common:{timeStrings:bt,strings:mi},dateFormat:Te,timeFormat:gi}=P.getLocalizedStrings(),wt=["today","yesterday","last_7_days_this_month","earlier_this_month","earlier_that_month"],ne=e=>e.type.concat(mi.underscore).concat(e.start.format(Te.visual.DdashMMdashYYYYFormat)),me=e=>{switch(e.type){case"today":case"yesterday":case"earlier_this_month":case"last_7_days_this_month":return bt[e.type];case"earlier_that_month":return e.start.format(Te.visual.MMMYYYYFormat)}},yt=e=>{const o=g.zeniDate(e.toUTCString()),s=g.dateNow(),a=s.diff(o,"minutes"),n=s.diff(o,"seconds"),l=60,c=24*60;return n<=l?bt.justNow:a<c&&ci(o,0)?o.format(gi.hhmmAFormat):o.format(Te.visual.MMMDFormat)},Re=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:xi}}}}=P.getLocalizedStrings(),$t=e=>{e.sort((n,l)=>g.zeniDate(n.inboxNotification.notifiedAt.toUTCString()).isAfter(g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()))===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of wt){let l=0,c=0,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),h=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),a=ie(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&&g.dateNow().date()>2&&(d=g.dateNow().subtract(Math.min(g.dateNow().date()-1,8),"d").startOf("d"),u=g.dateNow().subtract(2,"d").endOf("d"),a=ie(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&&g.dateNow().date()>9&&(d=g.dateNow().startOf("M").startOf("d"),u=g.dateNow().subtract(9,"d").endOf("d"),a=ie(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=g.dateNow().subtract(h,"month").startOf("M").startOf("d"),m=g.dateNow().subtract(h,"month").endOf("M").endOf("d");h++,a=ie(o,p,m),o=a.remainingData,s.push({start:p,end:m,type:n,notifications:a.singleGroup})}break}}return s},ie=(e,o,s)=>{const a=[],n=e.map(l=>at(o,s,g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()))?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()).isAfter(g.zeniDate(c.inboxNotification.notifiedAt.toUTCString()))===!0?-1:1),{singleGroup:a,remainingData:n}},bi=e=>{const{thread:o}=e,{newRepliesAdded:s,newCommentAdded:a}=xi;return o.comments.length===1?a:s},jt=new R(3,2,1,1,1),kt=new R(y[8],y[6],35,35,y[6]),le={lineClamp:jt,sectionWidth:kt},{common:{texts:ze,timeStrings:wi,strings:ee},commentsAndNotifications:{notifications:{strings:{newMessage:yi},actionStrings:{comments:{newCommentAdded:$i}}}}}=P.getLocalizedStrings(),ji=({notificationData:e,users:o,isHighlighted:s=!1,style:a,onNotificationTileClick:n})=>{const l=nt(),c=lt().analytics,{inboxNotification:{id:d,readAt:u,notifiedAt:h},thread:p}=e,{setRequestToOpenThread:m}=x.useContext(ni),f=u!=null?"read":"unread",{metadata:{url:b,companyId:k,entityType:B},id:D}=p;return t.jsxs(Li,{readStatus:f,isClickable:!!b,isHighlighted:s,style:a,onClick:()=>{b&&(n(d,g.toZeniUrl(b),f),(p.metadata.tab==="bill"||p.metadata.tab==="reimbursement")&&m({threadId:D,companyId:k,entityType:B})),p.metadata.application!=="cockpit"&&c.trackCommentActivity("notification","clicked",p.metadata.companyName,l.controllersList.controllers.map(T=>E(T)),p.resolved?"resolved":"open",{name:dt(l.loggedInUser),email:l.loggedInUser?.userEmail??""},"db notification")},children:[t.jsx(ki,{notificationData:e,users:o}),t.jsx(vi,{...e}),t.jsx(Ci,{timestamp:h,readStatus:f})]})},St=({notificationData:e,users:o})=>{const{thread:s}=e,{comments:a}=s,n=a[0];return a.length===0||n.body==null?t.jsx($e,{children:yi}):t.jsx($e,{children:n.body.content.map(l=>{switch(l.type){case"paragraph":return l.children.map((c,d)=>{if(Ni(c)){const h=o.find(p=>p.userId===c.id);return c.id?t.jsx(Si,{notificationData:e,user:h},`${c.id}${ee.underscore}${d}`):null}if(Ti(c)){const h=li(c.url)??c.url;return t.jsx(Oi,{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(zi,{children:u},d)),c.italic===!0&&(u=t.jsx(_i,{children:u},d)),c.strikethrough===!0&&(u=t.jsx(Mi,{children:u},d)),c.code===!0&&(u=t.jsx(Di,{children:u},d)),t.jsx(Ai,{children:u},d)});default:return t.jsx($e,{children:$i})}})})},ki=({notificationData:e,users:o})=>{const s=v();return t.jsx(Pi,{windowSize:s,children:t.jsx(St,{notificationData:e,users:o})})},Si=({notificationData:e,user:o})=>{const{inboxNotification:{readAt:s}}=e,a=s!=null?"read":"unread";let n=t.jsxs(De,{className:"userText",readStatus:a,children:[ee.atTheRate,ze.user,ee.space]});if(o!=null){const l=E(o,!1);n=t.jsx(t.Fragment,{children:t.jsxs(De,{className:"userText",readStatus:a,children:[ee.atTheRate,l||ze.user,ee.space]})})}return n},vt=e=>{const o=bi(e);return t.jsx(t.Fragment,{children:o})},vi=e=>{const o=v();return t.jsx(Ri,{windowSize:o,children:t.jsx(vt,{...e})})},Ct=e=>{const{timestamp:o,readStatus:s}=e,a=yt(o);return t.jsxs(t.Fragment,{children:[t.jsx(Bi,{isNewNotification:a===wi.justNow,children:a}),t.jsx(Fi,{readStatus:s})]})},Ci=e=>{const o=v();return t.jsx(Ii,{windowSize:o,children:t.jsx(Ct,{...e})})};function Ni(e){return"type"in e&&e.type==="mention"}function Ti(e){return"type"in e&&e.type==="link"}const Li=r.div`
5
+ `,{common:{timeStrings:bt,strings:mi},dateFormat:Te,timeFormat:gi}=P.getLocalizedStrings(),wt=["today","yesterday","last_7_days_this_month","earlier_this_month","earlier_that_month"],ne=e=>e.type.concat(mi.underscore).concat(e.start.format(Te.visual.DdashMMdashYYYYFormat)),me=e=>{switch(e.type){case"today":case"yesterday":case"earlier_this_month":case"last_7_days_this_month":return bt[e.type];case"earlier_that_month":return e.start.format(Te.visual.MMMYYYYFormat)}},yt=e=>{const o=g.zeniDate(e.toUTCString()),s=g.dateNow(),a=s.diff(o,"minutes"),n=s.diff(o,"seconds"),l=60,c=24*60;return n<=l?bt.justNow:a<c&&ci(o,0)?o.format(gi.hhmmAFormat):o.format(Te.visual.MMMDFormat)},Re=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:xi}}}}=P.getLocalizedStrings(),$t=e=>{e.sort((n,l)=>g.zeniDate(n.inboxNotification.notifiedAt.toUTCString()).isAfter(g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()))===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of wt){let l=0,c=0,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),h=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),a=ie(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&&g.dateNow().date()>2&&(d=g.dateNow().subtract(Math.min(g.dateNow().date()-1,8),"d").startOf("d"),u=g.dateNow().subtract(2,"d").endOf("d"),a=ie(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&&g.dateNow().date()>9&&(d=g.dateNow().startOf("M").startOf("d"),u=g.dateNow().subtract(9,"d").endOf("d"),a=ie(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=g.dateNow().subtract(h,"month").startOf("M").startOf("d"),m=g.dateNow().subtract(h,"month").endOf("M").endOf("d");h++,a=ie(o,p,m),o=a.remainingData,s.push({start:p,end:m,type:n,notifications:a.singleGroup})}break}}return s},ie=(e,o,s)=>{const a=[],n=e.map(l=>at(o,s,g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()))?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()).isAfter(g.zeniDate(c.inboxNotification.notifiedAt.toUTCString()))===!0?-1:1),{singleGroup:a,remainingData:n}},bi=e=>{const{thread:o}=e,{newRepliesAdded:s,newCommentAdded:a}=xi;return o.comments.length===1?a:s},jt=new R(3,2,1,1,1),kt=new R(y[8],y[6],35,35,y[6]),le={lineClamp:jt,sectionWidth:kt},{common:{texts:ze,timeStrings:wi,strings:ee},commentsAndNotifications:{notifications:{strings:{newMessage:yi},actionStrings:{comments:{newCommentAdded:$i}}}}}=P.getLocalizedStrings(),ji=({notificationData:e,users:o,isHighlighted:s=!1,style:a,onNotificationTileClick:n})=>{const l=nt(),c=lt().analytics,{inboxNotification:{id:d,readAt:u,notifiedAt:h},thread:p}=e,{setRequestToOpenThread:m}=x.useContext(ni),f=u!=null?"read":"unread",{metadata:{url:b,companyId:k,entityType:B},id:D}=p;return t.jsxs(Li,{readStatus:f,isClickable:!!b,isHighlighted:s,style:a,onClick:()=>{b&&(n(d,g.toZeniUrl(b),f),(p.metadata.tab==="bill"||p.metadata.tab==="reimbursement")&&m({threadId:D,companyId:k,entityType:B})),p.metadata.application!=="cockpit"&&c.trackCommentActivity("notification","clicked",p.metadata.companyName,l.controllersList.controllers.map(T=>E(T)),p.resolved?"resolved":"open",{name:dt(l.loggedInUser),email:l.loggedInUser?.userEmail??""},"db notification")},children:[t.jsx(ki,{notificationData:e,users:o}),t.jsx(vi,{...e}),t.jsx(Ci,{timestamp:h,readStatus:f})]})},St=({notificationData:e,users:o})=>{const{thread:s}=e,{comments:a}=s,n=a[0];return a.length===0||n.body==null?t.jsx($e,{children:yi}):t.jsx($e,{children:n.body.content.map(l=>{switch(l.type){case"paragraph":return l.children.map((c,d)=>{if(Ni(c)){const h=o.find(p=>p.userId===c.id);return c.id?t.jsx(Si,{notificationData:e,user:h},`${c.id}${ee.underscore}${d}`):null}if(Ti(c)){const h=li(c.url)??c.url;return t.jsx(Ai,{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(zi,{children:u},d)),c.italic===!0&&(u=t.jsx(_i,{children:u},d)),c.strikethrough===!0&&(u=t.jsx(Mi,{children:u},d)),c.code===!0&&(u=t.jsx(Di,{children:u},d)),t.jsx(Oi,{children:u},d)});default:return t.jsx($e,{children:$i})}})})},ki=({notificationData:e,users:o})=>{const s=v();return t.jsx(Pi,{windowSize:s,children:t.jsx(St,{notificationData:e,users:o})})},Si=({notificationData:e,user:o})=>{const{inboxNotification:{readAt:s}}=e,a=s!=null?"read":"unread";let n=t.jsxs(De,{className:"userText",readStatus:a,children:[ee.atTheRate,ze.user,ee.space]});if(o!=null){const l=E(o,!1);n=t.jsx(t.Fragment,{children:t.jsxs(De,{className:"userText",readStatus:a,children:[ee.atTheRate,l||ze.user,ee.space]})})}return n},vt=e=>{const o=bi(e);return t.jsx(t.Fragment,{children:o})},vi=e=>{const o=v();return t.jsx(Ri,{windowSize:o,children:t.jsx(vt,{...e})})},Ct=e=>{const{timestamp:o,readStatus:s}=e,a=yt(o);return t.jsxs(t.Fragment,{children:[t.jsx(Bi,{isNewNotification:a===wi.justNow,children:a}),t.jsx(Fi,{readStatus:s})]})},Ci=e=>{const o=v();return t.jsx(Ii,{windowSize:o,children:t.jsx(Ct,{...e})})};function Ni(e){return"type"in e&&e.type==="mention"}function Ti(e){return"type"in e&&e.type==="link"}const Li=r.div`
6
6
  display: flex;
7
7
  flex-direction: row;
8
8
  align-items: center;
@@ -33,7 +33,7 @@ import{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
33
33
  border-bottom-right-radius: inherit;
34
34
  }
35
35
 
36
- ${e=>e.isHighlighted?O`
36
+ ${e=>e.isHighlighted?A`
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{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
43
43
  }
44
44
  `:null};
45
45
 
46
- ${e=>e.isClickable?O`
46
+ ${e=>e.isClickable?A`
47
47
  &:hover {
48
48
  z-index: 1;
49
49
  color: ${e.theme.colors.primary};
@@ -68,7 +68,7 @@ import{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
68
68
  -webkit-line-clamp: ${e=>le.lineClamp.value(e.windowSize)};
69
69
  -webkit-box-orient: vertical;
70
70
  width: ${e=>le.sectionWidth.valuePercentage(e.windowSize)};
71
- `,zi=r.strong``,Di=r.code``,_i=r.em``,Mi=r.s``,Ai=r.span``,Oi=r.a``,Pi=r(Q)`
71
+ `,zi=r.strong``,Di=r.code``,_i=r.em``,Mi=r.s``,Oi=r.span``,Ai=r.a``,Pi=r(Q)`
72
72
  color: inherit;
73
73
  display: -webkit-box;
74
74
  overflow: hidden;
@@ -158,12 +158,12 @@ import{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
158
158
  align-items: baseline;
159
159
  flex-direction: row;
160
160
  justify-content: end;
161
- `,Wi=()=>v()==="small"?t.jsx(Ei,{}):t.jsx(Gi,{}),Ji={marginLeft:new R(y[2],y[5],y[7])},qi=()=>t.jsxs(Ki,{children:[t.jsx(Se,{numberOfRows:5}),t.jsx(Se,{numberOfRows:3})]}),Se=({numberOfRows:e})=>{const o=v();return t.jsxs(Zi,{windowSize:o,children:[t.jsx(Qi,{children:t.jsx(z,{width:y[12],height:Ne.standardRegular.lineHeightValue})}),t.jsx(Xi,{children:[...Array(e)].map(s=>t.jsx(Wi,{},ce()))})]})},Ki=r.div`
161
+ `,Wi=()=>v()==="small"?t.jsx(Ei,{}):t.jsx(Gi,{}),Ji={marginLeft:new R(y[2],y[5],y[7])},qi=()=>t.jsxs(Zi,{children:[t.jsx(Se,{numberOfRows:5}),t.jsx(Se,{numberOfRows:3})]}),Se=({numberOfRows:e})=>{const o=v();return t.jsxs(Ki,{windowSize:o,children:[t.jsx(Qi,{children:t.jsx(z,{width:y[12],height:Ne.standardRegular.lineHeightValue})}),t.jsx(Xi,{children:[...Array(e)].map(s=>t.jsx(Wi,{},ce()))})]})},Zi=r.div`
162
162
  display: block;
163
163
  min-height: 100%;
164
164
  flex-direction: column;
165
165
  width: 100%;
166
- `,Zi=r.div`
166
+ `,Ki=r.div`
167
167
  display: flex;
168
168
  flex-direction: column;
169
169
  margin-bottom: ${i.sp5};
@@ -207,7 +207,7 @@ import{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
207
207
  border-bottom-right-radius: inherit;
208
208
  }
209
209
 
210
- ${e=>e.isHighlighted?O`
210
+ ${e=>e.isHighlighted?A`
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{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
217
217
  }
218
218
  `:null};
219
219
 
220
- ${e=>e.isClickable?O`
220
+ ${e=>e.isClickable?A`
221
221
  &:hover {
222
222
  z-index: 1;
223
223
  color: ${e.theme.colors.primary};
@@ -253,16 +253,16 @@ import{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
253
253
  align-items: flex-start;
254
254
  width: 100%;
255
255
  padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp0};
256
- `,{common:{all:Me}}=P.getLocalizedStrings(),uo=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=X(),{getValues:u}=ue(),h=u(s),p=x.useRef([]);return x.useEffect(()=>{p.current=p.current.slice(0,e.notifications.length)},[e.notifications.length]),t.jsx(ho,{style:n,children:t.jsx(he,{mode:a,checkBoxes:[{label:t.jsx(Ae,{htmlFor:`${s}.${Me.toLocaleLowerCase()}`,style:{color:d.colors.primary,marginLeft:i.sp2},children:me(e)}),value:Me.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((m,f)=>{const b=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(po,{notificationData:m,users:o,style:{borderTopLeftRadius:b?i.sp2:void 0,borderTopRightRadius:b?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}})})},ho=r.div`
256
+ `,{common:{all:Me}}=P.getLocalizedStrings(),uo=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=X(),{getValues:u}=ue(),h=u(s),p=x.useRef([]);return x.useEffect(()=>{p.current=p.current.slice(0,e.notifications.length)},[e.notifications.length]),t.jsx(ho,{style:n,children:t.jsx(he,{mode:a,checkBoxes:[{label:t.jsx(Oe,{htmlFor:`${s}.${Me.toLocaleLowerCase()}`,style:{color:d.colors.primary,marginLeft:i.sp2},children:me(e)}),value:Me.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((m,f)=>{const b=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(po,{notificationData:m,users:o,style:{borderTopLeftRadius:b?i.sp2:void 0,borderTopRightRadius:b?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}})})},ho=r.div`
257
257
  display: flex;
258
258
  align-items: center;
259
259
  width: 100%;
260
- `,Ae=r(pe)`
260
+ `,Oe=r(pe)`
261
261
  display: flex;
262
262
  align-items: flex-start;
263
263
  width: 100%;
264
264
  padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp0};
265
- `,po=r(Tt)``,fo=e=>v()==="small"?t.jsx(uo,{...e}):t.jsx(no,{...e}),{commentsAndNotifications:{notifications:{message:mo}}}=P.getLocalizedStrings(),Oe={rowGap:new R(y[0],y[5],y[5])},go=({notificationGroups:e,users:o,isFetching:s,hasMore:a,sectionId:n,checkBoxMode:l,scrollYOffset:c,currentSubTab:d,isDisabled:u,onUpdateScrollYOffset:h,onFetchNotificationGroups:p,onNotificationClick:m})=>{const f=v(),b=x.useRef(null),k=x.useRef({});x.useEffect(()=>{b.current?.resetAfterIndex(0,!0)},[f,b,e]),x.useEffect(()=>{b.current?.scrollTo(c)},[d]);const B=x.useCallback(C=>{if(k.current?.[C]!=null){const G=f==="small"&&a===!1&&C===e.length-1?Oe.rowGap.value("medium-regular"):Oe.rowGap.value(f);return k.current[C]+G}return(ht*jt.value(f)+pt)*3+ft+mt},[f,k,e]),D=x.useCallback((C,G)=>{k.current={...k.current,[C]:G},b.current?.resetAfterIndex(0,!0)},[f,b,e]),T=x.useCallback(()=>{p()},[p]),w=x.useCallback(()=>{},[]),L=et(C=>h(C),1e3,{trailing:!0}),j=C=>!a||C<e.length,Y=x.useCallback(()=>a&&!s?T():w(),[a,s,T,w]),I=a?e.length+1:e.length;return t.jsx(bo,{children:t.jsx(wo,{windowSize:f,children:s&&e.length===0?t.jsx(qi,{}):s===!1&&e.length===0?t.jsx(tt,{message:mo.noNotificationsMessage,style:{padding:i.sp0}}):t.jsx(yo,{windowSize:f,children:t.jsx(it,{children:({height:C,width:G})=>t.jsx(ot,{isItemLoaded:j,itemCount:gt,loadMoreItems:Y,children:({onItemsRendered:V,ref:U})=>t.jsx(st,{ref:W=>{U(W),b.current=W},height:C,itemCount:I,itemData:{notificationGroups:e,users:o,sectionId:n,checkBoxMode:l,isDisabled:u,isItemLoaded:j,setRowHeight:D,onNotificationClick:m},onItemsRendered:V,itemSize:B,width:G,style:{willChange:"auto"},overscanCount:xt,onScroll:({scrollOffset:W})=>{L(W)},initialScrollOffset:c,children:xo})})})})})})},xo=({index:e,style:o,data:s})=>{const{notificationGroups:a,users:n,sectionId:l,checkBoxMode:c,isItemLoaded:d,isDisabled:u,setRowHeight:h,onNotificationClick:p}=s,m=x.useRef(null),f=v();if(x.useEffect(()=>{m.current?.firstElementChild!=null&&h(e,m.current.firstElementChild.clientHeight)},[e,m,f,a[e]?.notifications]),d(e)===!0){const b=a[e],k=ne(b);return t.jsx(Pe,{style:{...o,paddingBottom:i.sp0,width:"100%"},ref:m,children:t.jsx(fo,{notificationGroup:b,sectionId:`${l}.${k}`,checkBoxMode:c,isDisabled:u,users:n,onNotificationTileClick:p})},k)}return t.jsx(Pe,{ref:m,style:{...o,paddingBottom:i.sp0},children:t.jsx(Se,{numberOfRows:3})},ce())},bo=r.div`
265
+ `,po=r(Tt)``,fo=e=>v()==="small"?t.jsx(uo,{...e}):t.jsx(no,{...e}),{commentsAndNotifications:{notifications:{message:mo}}}=P.getLocalizedStrings(),Ae={rowGap:new R(y[0],y[5],y[5])},go=({notificationGroups:e,users:o,isFetching:s,hasMore:a,sectionId:n,checkBoxMode:l,scrollYOffset:c,currentSubTab:d,isDisabled:u,onUpdateScrollYOffset:h,onFetchNotificationGroups:p,onNotificationClick:m})=>{const f=v(),b=x.useRef(null),k=x.useRef({});x.useEffect(()=>{b.current?.resetAfterIndex(0,!0)},[f,b,e]),x.useEffect(()=>{b.current?.scrollTo(c)},[d]);const B=x.useCallback(C=>{if(k.current?.[C]!=null){const G=f==="small"&&a===!1&&C===e.length-1?Ae.rowGap.value("medium-regular"):Ae.rowGap.value(f);return k.current[C]+G}return(ht*jt.value(f)+pt)*3+ft+mt},[f,k,e]),D=x.useCallback((C,G)=>{k.current={...k.current,[C]:G},b.current?.resetAfterIndex(0,!0)},[f,b,e]),T=x.useCallback(()=>{p()},[p]),w=x.useCallback(()=>{},[]),L=et(C=>h(C),1e3,{trailing:!0}),j=C=>!a||C<e.length,Y=x.useCallback(()=>a&&!s?T():w(),[a,s,T,w]),I=a?e.length+1:e.length;return t.jsx(bo,{children:t.jsx(wo,{windowSize:f,children:s&&e.length===0?t.jsx(qi,{}):s===!1&&e.length===0?t.jsx(tt,{message:mo.noNotificationsMessage,style:{padding:i.sp0}}):t.jsx(yo,{windowSize:f,children:t.jsx(it,{children:({height:C,width:G})=>t.jsx(ot,{isItemLoaded:j,itemCount:gt,loadMoreItems:Y,children:({onItemsRendered:V,ref:U})=>t.jsx(st,{ref:W=>{U(W),b.current=W},height:C,itemCount:I,itemData:{notificationGroups:e,users:o,sectionId:n,checkBoxMode:l,isDisabled:u,isItemLoaded:j,setRowHeight:D,onNotificationClick:m},onItemsRendered:V,itemSize:B,width:G,style:{willChange:"auto"},overscanCount:xt,onScroll:({scrollOffset:W})=>{L(W)},initialScrollOffset:c,children:xo})})})})})})},xo=({index:e,style:o,data:s})=>{const{notificationGroups:a,users:n,sectionId:l,checkBoxMode:c,isItemLoaded:d,isDisabled:u,setRowHeight:h,onNotificationClick:p}=s,m=x.useRef(null),f=v();if(x.useEffect(()=>{m.current?.firstElementChild!=null&&h(e,m.current.firstElementChild.clientHeight)},[e,m,f,a[e]?.notifications]),d(e)===!0){const b=a[e],k=ne(b);return t.jsx(Pe,{style:{...o,paddingBottom:i.sp0,width:"100%"},ref:m,children:t.jsx(fo,{notificationGroup:b,sectionId:`${l}.${k}`,checkBoxMode:c,isDisabled:u,users:n,onNotificationTileClick:p})},k)}return t.jsx(Pe,{ref:m,style:{...o,paddingBottom:i.sp0},children:t.jsx(Se,{numberOfRows:3})},ce())},bo=r.div`
266
266
  display: block;
267
267
  background-color: ${e=>e.theme.colors.grey4};
268
268
  height: 100%;
@@ -279,7 +279,7 @@ import{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
279
279
  top: ${i.sp0};
280
280
  left: ${i.sp0};
281
281
  box-sizing: border-box;
282
- `,{common:{in:$o,strings:Lt},dateFormat:jo,commentsAndNotifications:{notifications:{actionStrings:{notifications:A}}}}=P.getLocalizedStrings(),It=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 wt){let l=0,c=0,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),h=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().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&&g.dateNow().date()>2&&(d=g.dateNow().subtract(Math.min(g.dateNow().date()-1,8),"d").startOf("d"),u=g.dateNow().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&&g.dateNow().date()>9&&(d=g.dateNow().startOf("M").startOf("d"),u=g.dateNow().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=g.dateNow().subtract(h,"month").startOf("M").startOf("d"),m=g.dateNow().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=>at(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}},ko=e=>{let o=A.newActivity;return e.code==="in_progress"?o=A.due.replace("__task_status__",Ie(e.name.toLocaleLowerCase())):o=A.due.replace("__task_status__",$o.toLocaleLowerCase().concat(Lt.space,Ie(e.name.toLocaleLowerCase()))),o},So=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?ko(n):A.dueTomorrow;break;case"task_overdue":s=A.overdue.replace("__date__",o[0].metadata.additionalInfo?.dueDate.format(jo.visual.MMMDFormat)??Lt.empty);break;case"task_status_updated":s=A.statusUpdate;break}}return s},Rt=new R(3,2,1,1,1),zt=new R(y[8],33,33,33,35),de={lineClamp:Rt,sectionWidth:zt},{common:{and:Be,other:vo,others:Co,texts:No,timeStrings:To,strings:M,tags:Lo}}=P.getLocalizedStrings(),Io=({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(Oo,{notificationStatus:n,isHighlighted:o,style:s,onClick:()=>{a(l,c,n,d.length>0?d[0].activityType:void 0)},children:[t.jsx(Ro,{...e}),t.jsx(_o,{...e}),t.jsx(Ao,{...e}),t.jsx(Mo,{createTime:u,notificationStatus:n})]})},Dt=e=>{const{status:o,eventData:{title:s}}=e;return t.jsx(Uo,{notificationStatus:o,children:s||M.hyphen})},Ro=e=>{const o=v();return t.jsx(Go,{windowSize:o,children:t.jsx(Dt,{...e})})},zo=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(Ho,{children:[t.jsx(Fe,{backgroundColor:Re(s.oldValue.codeNamePair),children:s.oldValue.codeNamePair.name}),t.jsx(Yo,{}),t.jsx(Fe,{backgroundColor:Re(s.newValue.codeNamePair),children:s.newValue.codeNamePair.name})]})}return null},Do=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,No.user,M.space]});return n>0&&(n>2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,E(s[0],!1),M.space]}),Be,t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.space,n-1,M.space,Co,M.space]})]}):n===2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,E(s[0],!1),M.space]}),Be,t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.space,s.length===2?M.atTheRate+E(s[1],!1):vo,M.space]})]}):l=t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,E(s[0],!1),M.space]})),l},_t=e=>t.jsxs(t.Fragment,{children:[t.jsx(Do,{...e}),So(e),t.jsx(zo,{...e})]}),_o=e=>{const o=v(),{eventData:{activities:s}}=e;return t.jsx(Fo,{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(_t,{...e})})},Mt=e=>{const{createTime:o,notificationStatus:s}=e,a=yt(o.toDate());return t.jsxs(t.Fragment,{children:[t.jsx(Eo,{isNewNotification:a===To.justNow,children:a}),t.jsx(Wo,{notificationStatus:s})]})},Mo=e=>{const o=v();return t.jsx(Po,{windowSize:o,children:t.jsx(Mt,{...e})})},At=e=>{const{eventData:{activities:o}}=e;return o[0].activityType==="task_overdue"?t.jsx(di,{tagTitle:Lo.overdue,textColor:{color:new ye(S.alert),backgroundColor:new ye("transparent"),borderColor:new ye(S.alert)},showLoader:!1}):t.jsx(Vo,{})},Ao=e=>{const o=v();return t.jsx(Bo,{windowSize:o,children:t.jsx(At,{...e})})},Oo=r.div`
282
+ `,{common:{in:$o,strings:Lt},dateFormat:jo,commentsAndNotifications:{notifications:{actionStrings:{notifications:O}}}}=P.getLocalizedStrings(),It=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 wt){let l=0,c=0,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),h=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().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&&g.dateNow().date()>2&&(d=g.dateNow().subtract(Math.min(g.dateNow().date()-1,8),"d").startOf("d"),u=g.dateNow().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&&g.dateNow().date()>9&&(d=g.dateNow().startOf("M").startOf("d"),u=g.dateNow().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=g.dateNow().subtract(h,"month").startOf("M").startOf("d"),m=g.dateNow().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=>at(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}},ko=e=>{let o=O.newActivity;return e.code==="in_progress"?o=O.due.replace("__task_status__",Ie(e.name.toLocaleLowerCase())):o=O.due.replace("__task_status__",$o.toLocaleLowerCase().concat(Lt.space,Ie(e.name.toLocaleLowerCase()))),o},So=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?ko(n):O.dueTomorrow;break;case"task_overdue":s=O.overdue.replace("__date__",o[0].metadata.additionalInfo?.dueDate.format(jo.visual.MMMDFormat)??Lt.empty);break;case"task_status_updated":s=O.statusUpdate;break}}return s},Rt=new R(3,2,1,1,1),zt=new R(y[8],33,33,33,35),de={lineClamp:Rt,sectionWidth:zt},{common:{and:Be,other:vo,others:Co,texts:No,timeStrings:To,strings:M,tags:Lo}}=P.getLocalizedStrings(),Io=({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(Ao,{notificationStatus:n,isHighlighted:o,style:s,onClick:()=>{a(l,c,n,d.length>0?d[0].activityType:void 0)},children:[t.jsx(Ro,{...e}),t.jsx(_o,{...e}),t.jsx(Oo,{...e}),t.jsx(Mo,{createTime:u,notificationStatus:n})]})},Dt=e=>{const{status:o,eventData:{title:s}}=e;return t.jsx(Uo,{notificationStatus:o,children:s||M.hyphen})},Ro=e=>{const o=v();return t.jsx(Go,{windowSize:o,children:t.jsx(Dt,{...e})})},zo=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(Ho,{children:[t.jsx(Fe,{backgroundColor:Re(s.oldValue.codeNamePair),children:s.oldValue.codeNamePair.name}),t.jsx(Yo,{}),t.jsx(Fe,{backgroundColor:Re(s.newValue.codeNamePair),children:s.newValue.codeNamePair.name})]})}return null},Do=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,No.user,M.space]});return n>0&&(n>2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,E(s[0],!1),M.space]}),Be,t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.space,n-1,M.space,Co,M.space]})]}):n===2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,E(s[0],!1),M.space]}),Be,t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.space,s.length===2?M.atTheRate+E(s[1],!1):vo,M.space]})]}):l=t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,E(s[0],!1),M.space]})),l},_t=e=>t.jsxs(t.Fragment,{children:[t.jsx(Do,{...e}),So(e),t.jsx(zo,{...e})]}),_o=e=>{const o=v(),{eventData:{activities:s}}=e;return t.jsx(Fo,{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(_t,{...e})})},Mt=e=>{const{createTime:o,notificationStatus:s}=e,a=yt(o.toDate());return t.jsxs(t.Fragment,{children:[t.jsx(Eo,{isNewNotification:a===To.justNow,children:a}),t.jsx(Wo,{notificationStatus:s})]})},Mo=e=>{const o=v();return t.jsx(Po,{windowSize:o,children:t.jsx(Mt,{...e})})},Ot=e=>{const{eventData:{activities:o}}=e;return o[0].activityType==="task_overdue"?t.jsx(di,{tagTitle:Lo.overdue,textColor:{color:new ye(S.alert),backgroundColor:new ye("transparent"),borderColor:new ye(S.alert)},showLoader:!1}):t.jsx(Vo,{})},Oo=e=>{const o=v();return t.jsx(Bo,{windowSize:o,children:t.jsx(Ot,{...e})})},Ao=r.div`
283
283
  display: flex;
284
284
  flex-direction: row;
285
285
  align-items: center;
@@ -310,7 +310,7 @@ import{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
310
310
  border-bottom-right-radius: inherit;
311
311
  }
312
312
 
313
- ${e=>e.isHighlighted?O`
313
+ ${e=>e.isHighlighted?A`
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{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
345
345
  `,Fo=r(Q)`
346
346
  color: inherit;
347
347
 
348
- ${e=>e.statusUpdate?O`
348
+ ${e=>e.statusUpdate?A`
349
349
  display: flex;
350
350
  flex-wrap: wrap;
351
351
  gap: ${i.sp1};
352
- `:O`
352
+ `:A`
353
353
  display: -webkit-box;
354
354
  overflow: hidden;
355
355
  -webkit-line-clamp: ${de.lineClamp.value(e.windowSize)};
@@ -428,7 +428,7 @@ import{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
428
428
  flex: 1 1 auto;
429
429
  justify-content: ${e=>e.isLastItem?"flex-end":"start"};
430
430
  width: ${e=>e.isLastItem?"10%":zt.valuePercentage(e.windowSize)};
431
- `,Ko=()=>{const e=v();return t.jsxs(Zo,{windowSize:e,children:[t.jsxs(Ge,{children:[t.jsx(z,{width:180,height:y[4]}),t.jsx(z,{width:60,height:18})]}),t.jsxs(Ge,{children:[t.jsx(z,{width:180,height:y[4]}),t.jsx(z,{width:60,height:18})]})]})},Zo=r.div`
431
+ `,Zo=()=>{const e=v();return t.jsxs(Ko,{windowSize:e,children:[t.jsxs(Ge,{children:[t.jsx(z,{width:180,height:y[4]}),t.jsx(z,{width:60,height:18})]}),t.jsxs(Ge,{children:[t.jsx(z,{width:180,height:y[4]}),t.jsx(z,{width:60,height:18})]})]})},Ko=r.div`
432
432
  display: flex;
433
433
  flex-direction: column;
434
434
  align-items: baseline;
@@ -462,7 +462,7 @@ import{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
462
462
  gap: ${i.sp2};
463
463
  flex: 1 1 auto;
464
464
  width: 100%;
465
- `,Xo=()=>v()==="small"?t.jsx(Ko,{}):t.jsx(Jo,{}),Qo={marginLeft:new R(y[2],y[5],y[7])},es=()=>t.jsxs(ts,{children:[t.jsx(ve,{numberOfRows:5}),t.jsx(ve,{numberOfRows:3})]}),ve=({numberOfRows:e})=>{const o=v();return t.jsxs(is,{windowSize:o,children:[t.jsx(ss,{children:t.jsx(z,{width:y[12],height:Ne.standardRegular.lineHeightValue})}),t.jsx(os,{children:[...Array(e)].map(s=>t.jsx(Xo,{},ce()))})]})},ts=r.div`
465
+ `,Xo=()=>v()==="small"?t.jsx(Zo,{}):t.jsx(Jo,{}),Qo={marginLeft:new R(y[2],y[5],y[7])},es=()=>t.jsxs(ts,{children:[t.jsx(ve,{numberOfRows:5}),t.jsx(ve,{numberOfRows:3})]}),ve=({numberOfRows:e})=>{const o=v();return t.jsxs(is,{windowSize:o,children:[t.jsx(ss,{children:t.jsx(z,{width:y[12],height:Ne.standardRegular.lineHeightValue})}),t.jsx(os,{children:[...Array(e)].map(s=>t.jsx(Xo,{},ce()))})]})},ts=r.div`
466
466
  display: block;
467
467
  min-height: 100%;
468
468
  flex-direction: column;
@@ -479,7 +479,7 @@ import{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
479
479
  `,ss=r.div`
480
480
  display: flex;
481
481
  padding: ${i.sp3} ${i.sp0};
482
- `,as=({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=x.useCallback(()=>{l?.()},[l]),f=x.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]),b=ut({onLongPress:m},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(cs,{notificationStatus:c,isHighlighted:s,style:a,...b,onClick:f,children:[t.jsxs(Ue,{children:[t.jsx(rs,{...e}),t.jsx(ls,{createTime:d,notificationStatus:c})]}),t.jsxs(Ue,{children:[t.jsx(ns,{...e}),h.length>0&&h[0].activityType==="task_status_updated"?null:t.jsx(ds,{...e})]})]})},rs=e=>t.jsx(Ot,{statusUpdate:!1,children:t.jsx(Dt,{...e})}),ns=e=>{const{eventData:{activities:o}}=e;return t.jsx(Ot,{statusUpdate:o.length>0&&o[0].activityType==="task_status_updated"&&o[0].metadata.updates.find(s=>s.field==="status")!=null,children:t.jsx(_t,{...e})})},ls=e=>t.jsx(us,{children:t.jsx(Mt,{...e})}),ds=e=>t.jsx(hs,{children:t.jsx(At,{...e})}),cs=r.div`
482
+ `,as=({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=x.useCallback(()=>{l?.()},[l]),f=x.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]),b=ut({onLongPress:m},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(cs,{notificationStatus:c,isHighlighted:s,style:a,...b,onClick:f,children:[t.jsxs(Ue,{children:[t.jsx(rs,{...e}),t.jsx(ls,{createTime:d,notificationStatus:c})]}),t.jsxs(Ue,{children:[t.jsx(ns,{...e}),h.length>0&&h[0].activityType==="task_status_updated"?null:t.jsx(ds,{...e})]})]})},rs=e=>t.jsx(At,{statusUpdate:!1,children:t.jsx(Dt,{...e})}),ns=e=>{const{eventData:{activities:o}}=e;return t.jsx(At,{statusUpdate:o.length>0&&o[0].activityType==="task_status_updated"&&o[0].metadata.updates.find(s=>s.field==="status")!=null,children:t.jsx(_t,{...e})})},ls=e=>t.jsx(us,{children:t.jsx(Mt,{...e})}),ds=e=>t.jsx(hs,{children:t.jsx(Ot,{...e})}),cs=r.div`
483
483
  display: flex;
484
484
  flex-direction: column;
485
485
  align-items: baseline;
@@ -511,7 +511,7 @@ import{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
511
511
  border-bottom-right-radius: inherit;
512
512
  }
513
513
 
514
- ${e=>e.isHighlighted?O`
514
+ ${e=>e.isHighlighted?A`
515
515
  z-index: 1;
516
516
  color: ${e.theme.colors.primary};
517
517
  border: 1px solid ${e.theme.colors.primary};
@@ -550,13 +550,13 @@ import{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
550
550
  width: 100%;
551
551
  justify-content: space-between;
552
552
  align-items: start;
553
- `,Ot=r(Q)`
553
+ `,At=r(Q)`
554
554
  color: inherit;
555
- ${e=>e.statusUpdate?O`
555
+ ${e=>e.statusUpdate?A`
556
556
  display: flex;
557
557
  flex-wrap: wrap;
558
558
  gap: ${i.sp2};
559
- `:O`
559
+ `:A`
560
560
  display: -webkit-box;
561
561
  -webkit-box-orient: horizontal;
562
562
  gap: ${i.sp1};
@@ -596,7 +596,7 @@ import{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
596
596
  top: ${i.sp0};
597
597
  left: ${i.sp0};
598
598
  box-sizing: border-box;
599
- `,{common:{all:Ce,texts:re,footer:Cs,strings:{plus:Ns},numbers:{maximumCount:Je}},commentsAndNotifications:{notifications:{title:Ts,texts:Bt,strings:qe}}}=P.getLocalizedStrings(),te={tableContainerLeftPadding:new R(y[2],y[2],y[2]),tableContainerRightPadding:new R(y[3],y[6],y[8]),tabsContainerLeftRightPadding:new R(y[3],y[6],y[8]),selectedNotificationsTextMarginLeft:new R(y[0],y[6],y[6])},Ls={selectedNotificationsText:new ai("smallRegular","standardRegular")},Ke="notificationsPage",K="commentsNotificationsTable",Z="notificationsTable",Ft=20,aa=({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:b,onMarkAllNotificationsAsRead:k})=>{const B=X(),D=v(),T=Jt({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Qe(e),[e]),values:x.useMemo(()=>Qe(e),[e])}),{currentTab:w,currentSubTab:L,notificationDetailsByTab:j,allSubTabs:Y,allNotifications:I,allExternalNotifications:C,notificationsForCurrentTabAndSubTab:G,externalNotificationsForCurrentTabAndSubTab:V}=e,U=x.useMemo(()=>Object.keys(j).map($=>({label:re[$],id:re[$].toLocaleLowerCase(),countDetails:{count:j[$].uiState.unreadCount,isFetching:j[$].fetchCountState.fetchState==="In-Progress"}})),[j]),W=x.useMemo(()=>Y.map($=>({label:$==="all"?Ce:re[$],id:$})),[Y]),Gt=x.useMemo(()=>$t(V).filter($=>$.notifications.length>0),[V]),Ut=x.useMemo(()=>It(G).filter($=>$.notifications.length>0),[G]),Et=async($,N)=>{const F=$.split(".")[0],J=[];F!=null&&(F===K||F===Z)&&(Object.values(N[F]).forEach(_=>{J.push(..._.filter(Wt=>Wt.includes(Ce.toLowerCase())===!1))}),d({selectedNotificationIds:J},w))};x.useEffect(()=>{const $=T.watch((N,{name:F})=>{F!=null&&N!=null&&qt(()=>Et(F,N))});return()=>{$.unsubscribe()}});const ge=x.useCallback(()=>{const $=[],N=j[w].selectedNotificationIdsForSubTab,F="read";if(w==="comments"){const J=C.filter(_=>_.inboxNotification.readAt==null).map(_=>_.inboxNotification.id);N.forEach(_=>{J.includes(_)&&$.push(_)})}else{const J=I.filter(_=>_.status!==F).map(_=>_.notificationId);N.forEach(_=>{J.includes(_)&&$.push(_)})}return $},[C,I,w,j]),Ht=ge().length>Ft?"disabled":a,xe=T.watch(K),be=T.watch(Z),Le=x.useCallback(()=>{p(w,L)},[p,w,L]),Yt=x.useCallback(()=>{if(w==="comments"){const $={};Object.keys(xe).forEach(N=>{$[N]=[]}),T.reset({[K]:$,[Z]:be},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}else{const $={};Object.keys(be).forEach(N=>{$[N]=[]}),T.reset({[Z]:$,[K]:xe},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}d({selectedNotificationIds:[]},w)},[be,xe]),Vt=x.useCallback(()=>{const $=j[w].selectedNotificationIdsForSubTab,N="read",F=ge();m(w,$,N,F)},[w,j,ge,m]);return t.jsxs(Rs,{children:[t.jsx(Kt,{source:"NotificationsPage",title:Ts.notifications,backgroundColor:B.colors.grey4,onBackClick:b,rightSideComponent:s===!0?t.jsx(Vs,{onClick:f}):t.jsx(Ys,{})}),t.jsx(_s,{}),t.jsx(Ds,{windowSize:D,children:t.jsx(pi,{tabs:U,selectedTab:w,onTabChange:$=>{const N=g.toNotificationTabTypeStrict($);N!=null&&u(N)},subTabs:W,selectedSubTab:L,onSubTabChange:$=>{const N=g.toNotificationSubTabTypeStrict($);N!=null&&h(N)},subTabRightComponent:t.jsx(Is,{notificationCount:j[w].uiState.unreadCount,markAsAllReadUpdateState:j[w].markAsAllReadState.fetchState,markAsReadUpdateState:j[w].markAsReadState.fetchState,onMarkAsAllReadClick:()=>{k(w)}})})}),t.jsx(zs,{windowSize:D,children:t.jsx(Zt,{...T,children:t.jsx("form",{id:Xe(Ke),onSubmit:T.handleSubmit(Vt),style:{width:"100%"},children:w==="comments"?t.jsx(go,{users:o,hasMore:j[w].uiState.hasMore,isFetching:j[w].fetchState==="In-Progress",scrollYOffset:j[w].uiState.scrollYOffset[L],currentSubTab:L,checkBoxMode:j[w].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Gt,sectionId:K,onFetchNotificationGroups:Le,onUpdateScrollYOffset:$=>c({scrollYOffset:{...j[w].uiState.scrollYOffset,[L]:$}},w),onNotificationClick:l}):t.jsx($s,{hasMore:j[w].uiState.hasMore,isFetching:j[w].fetchState==="In-Progress",scrollYOffset:j[w].uiState.scrollYOffset[L],currentSubTab:L,checkBoxMode:j[w].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Ut,sectionId:Z,onFetchNotificationGroups:Le,onUpdateScrollYOffset:$=>c({scrollYOffset:{...j[w].uiState.scrollYOffset,[L]:$}},w),onNotificationClick:n})})})}),j[w].selectedNotificationIdsForSubTab.length?t.jsx(Xt,{formId:Xe(Ke),primaryBtn:{label:Bt.markAsRead,isLoading:j[w].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},isDisabled:Ht!=null},cancelBtn:{label:Cs.cancel,isDisabled:j[w].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},onClick:Yt},helperContainerStyle:D==="small"?{width:"100%"}:{rowGap:i.sp0},footerContentStyle:{gap:i.sp2},leftSideComponent:t.jsx(we,{controller:D!=="small",children:t.jsx(Ze,{selectedNotificationsCount:j[w].selectedNotificationIdsForSubTab.length})}),topComponent:t.jsx(we,{controller:D==="small",children:t.jsx(Ze,{selectedNotificationsCount:j[w].selectedNotificationIdsForSubTab.length})}),rightSideComponent:t.jsx(we,{controller:D!=="small",children:t.jsx(Os,{})})}):null]})},Is=({markAsAllReadUpdateState:e,markAsReadUpdateState:o,notificationCount:s,onMarkAsAllReadClick:a})=>{const n=s===0,l=x.useCallback(()=>{e!=="In-Progress"&&o!=="In-Progress"&&!n&&a()},[e,o,n,a]);return t.jsx(Ms,{variant:"tertiary",size:"small",label:Bt.markAllAsRead,onClick:l,prefixIcon:e==="In-Progress"?t.jsx(ti,{size:"Small",start:!0}):t.jsx(As,{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"}})},Ze=({selectedNotificationsCount:e})=>{const o=v();return t.jsxs(Ps,{windowSize:o,children:[t.jsx(Fs,{children:t.jsx(Bs,{isCircular:e<10,children:t.jsx(Gs,{children:e>Je?`${Je}${Ns}`:e})})}),t.jsxs(Hs,{windowSize:o,children:[t.jsx(Us,{children:e>1?qe.notificationsSelected:qe.notificationSelected}),e>Ft?t.jsx(Es,{children:re.maxLimit}):null]})]})},Rs=r.div`
599
+ `,{common:{all:Ce,texts:re,footer:Cs,strings:{plus:Ns},numbers:{maximumCount:Je}},commentsAndNotifications:{notifications:{title:Ts,texts:Bt,strings:qe}}}=P.getLocalizedStrings(),te={tableContainerLeftPadding:new R(y[2],y[2],y[2]),tableContainerRightPadding:new R(y[3],y[6],y[8]),tabsContainerLeftRightPadding:new R(y[3],y[6],y[8]),selectedNotificationsTextMarginLeft:new R(y[0],y[6],y[6])},Ls={selectedNotificationsText:new ai("smallRegular","standardRegular")},Ze="notificationsPage",Z="commentsNotificationsTable",K="notificationsTable",Ft=20,aa=({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:b,onMarkAllNotificationsAsRead:k})=>{const B=X(),D=v(),T=Jt({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Qe(e),[e]),values:x.useMemo(()=>Qe(e),[e])}),{currentTab:w,currentSubTab:L,notificationDetailsByTab:j,allSubTabs:Y,allNotifications:I,allExternalNotifications:C,notificationsForCurrentTabAndSubTab:G,externalNotificationsForCurrentTabAndSubTab:V}=e,U=x.useMemo(()=>Object.keys(j).map($=>({label:re[$],id:re[$].toLocaleLowerCase(),countDetails:{count:j[$].uiState.unreadCount,isFetching:j[$].fetchCountState.fetchState==="In-Progress"}})),[j]),W=x.useMemo(()=>Y.map($=>({label:$==="all"?Ce:re[$],id:$})),[Y]),Gt=x.useMemo(()=>$t(V).filter($=>$.notifications.length>0),[V]),Ut=x.useMemo(()=>It(G).filter($=>$.notifications.length>0),[G]),Et=async($,N)=>{const F=$.split(".")[0],J=[];F!=null&&(F===Z||F===K)&&(Object.values(N[F]).forEach(_=>{J.push(..._.filter(Wt=>Wt.includes(Ce.toLowerCase())===!1))}),d({selectedNotificationIds:J},w))};x.useEffect(()=>{const $=T.watch((N,{name:F})=>{F!=null&&N!=null&&qt(()=>Et(F,N))});return()=>{$.unsubscribe()}});const ge=x.useCallback(()=>{const $=[],N=j[w].selectedNotificationIdsForSubTab,F="read";if(w==="comments"){const J=C.filter(_=>_.inboxNotification.readAt==null).map(_=>_.inboxNotification.id);N.forEach(_=>{J.includes(_)&&$.push(_)})}else{const J=I.filter(_=>_.status!==F).map(_=>_.notificationId);N.forEach(_=>{J.includes(_)&&$.push(_)})}return $},[C,I,w,j]),Ht=ge().length>Ft?"disabled":a,xe=T.watch(Z),be=T.watch(K),Le=x.useCallback(()=>{p(w,L)},[p,w,L]),Yt=x.useCallback(()=>{if(w==="comments"){const $={};Object.keys(xe).forEach(N=>{$[N]=[]}),T.reset({[Z]:$,[K]:be},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}else{const $={};Object.keys(be).forEach(N=>{$[N]=[]}),T.reset({[K]:$,[Z]:xe},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}d({selectedNotificationIds:[]},w)},[be,xe]),Vt=x.useCallback(()=>{const $=j[w].selectedNotificationIdsForSubTab,N="read",F=ge();m(w,$,N,F)},[w,j,ge,m]);return t.jsxs(Rs,{children:[t.jsx(Zt,{source:"NotificationsPage",title:Ts.notifications,backgroundColor:B.colors.grey4,onBackClick:b,rightSideComponent:s===!0?t.jsx(Vs,{onClick:f}):t.jsx(Ys,{})}),t.jsx(_s,{}),t.jsx(Ds,{windowSize:D,children:t.jsx(pi,{tabs:U,selectedTab:w,onTabChange:$=>{const N=g.toNotificationTabTypeStrict($);N!=null&&u(N)},subTabs:W,selectedSubTab:L,onSubTabChange:$=>{const N=g.toNotificationSubTabTypeStrict($);N!=null&&h(N)},subTabRightComponent:t.jsx(Is,{notificationCount:j[w].uiState.unreadCount,markAsAllReadUpdateState:j[w].markAsAllReadState.fetchState,markAsReadUpdateState:j[w].markAsReadState.fetchState,onMarkAsAllReadClick:()=>{k(w)}})})}),t.jsx(zs,{windowSize:D,children:t.jsx(Kt,{...T,children:t.jsx("form",{id:Xe(Ze),onSubmit:T.handleSubmit(Vt),style:{width:"100%"},children:w==="comments"?t.jsx(go,{users:o,hasMore:j[w].uiState.hasMore,isFetching:j[w].fetchState==="In-Progress",scrollYOffset:j[w].uiState.scrollYOffset[L],currentSubTab:L,checkBoxMode:j[w].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Gt,sectionId:Z,onFetchNotificationGroups:Le,onUpdateScrollYOffset:$=>c({scrollYOffset:{...j[w].uiState.scrollYOffset,[L]:$}},w),onNotificationClick:l}):t.jsx($s,{hasMore:j[w].uiState.hasMore,isFetching:j[w].fetchState==="In-Progress",scrollYOffset:j[w].uiState.scrollYOffset[L],currentSubTab:L,checkBoxMode:j[w].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Ut,sectionId:K,onFetchNotificationGroups:Le,onUpdateScrollYOffset:$=>c({scrollYOffset:{...j[w].uiState.scrollYOffset,[L]:$}},w),onNotificationClick:n})})})}),j[w].selectedNotificationIdsForSubTab.length?t.jsx(Xt,{formId:Xe(Ze),primaryBtn:{label:Bt.markAsRead,isLoading:j[w].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},isDisabled:Ht!=null},cancelBtn:{label:Cs.cancel,isDisabled:j[w].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},onClick:Yt},helperContainerStyle:D==="small"?{width:"100%"}:{rowGap:i.sp0},footerContentStyle:{gap:i.sp2},leftSideComponent:t.jsx(we,{controller:D!=="small",children:t.jsx(Ke,{selectedNotificationsCount:j[w].selectedNotificationIdsForSubTab.length})}),topComponent:t.jsx(we,{controller:D==="small",children:t.jsx(Ke,{selectedNotificationsCount:j[w].selectedNotificationIdsForSubTab.length})}),rightSideComponent:t.jsx(we,{controller:D!=="small",children:t.jsx(As,{})})}):null]})},Is=({markAsAllReadUpdateState:e,markAsReadUpdateState:o,notificationCount:s,onMarkAsAllReadClick:a})=>{const n=s===0,l=x.useCallback(()=>{e!=="In-Progress"&&o!=="In-Progress"&&!n&&a()},[e,o,n,a]);return t.jsx(Ms,{variant:"tertiary",size:"small",label:Bt.markAllAsRead,onClick:l,prefixIcon:e==="In-Progress"?t.jsx(ti,{size:"Small",start:!0}):t.jsx(Os,{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(Ps,{windowSize:o,children:[t.jsx(Fs,{children:t.jsx(Bs,{isCircular:e<10,children:t.jsx(Gs,{children:e>Je?`${Je}${Ns}`:e})})}),t.jsxs(Hs,{windowSize:o,children:[t.jsx(Us,{children:e>1?qe.notificationsSelected:qe.notificationSelected}),e>Ft?t.jsx(Es,{children:re.maxLimit}):null]})]})},Rs=r.div`
600
600
  display: flex;
601
601
  height: 100vh;
602
602
  width: 100%;
@@ -627,21 +627,21 @@ import{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
627
627
  color: ${e=>e.disabled===!0?e.theme.colors.grey2:e.theme.colors.primary};
628
628
  }
629
629
  }
630
- `,As=r(oi)`
630
+ `,Os=r(oi)`
631
631
  width: ${i.sp3};
632
632
  height: ${i.sp3};
633
- `,Os=r.div``,Ps=r.div`
633
+ `,As=r.div``,Ps=r.div`
634
634
  display: flex;
635
635
  align-items: center;
636
636
  flex-direction: row;
637
637
  gap: ${i.sp2};
638
638
  margin-left: ${e=>te.selectedNotificationsTextMarginLeft.valuePx(e.windowSize)};
639
639
  `,Bs=r.div`
640
- ${e=>e.isCircular?O`
640
+ ${e=>e.isCircular?A`
641
641
  height: ${i.sp3};
642
642
  width: ${i.sp3};
643
643
  padding: ${i.sp0};
644
- `:O`
644
+ `:A`
645
645
  height: 18px;
646
646
  min-width: ${i.sp3};
647
647
  padding: ${i.sp0} ${i.sp1};
@@ -682,4 +682,4 @@ import{u as X,e as v,a as Jt,M as P,ca as qt,j as t,aX as Kt,l as g,F as Zt,a4 a
682
682
  &:hover {
683
683
  color: ${e=>e.theme.colors.primary};
684
684
  }
685
- `,Xe=e=>`${e}_form`,Qe=e=>{const{allNotifications:o,allExternalNotifications:s,notificationDetailsByTab:{tasks:{selectedNotificationIds:a},comments:{selectedNotificationIds:n}}}=e,l={};It(o).filter(d=>d.notifications.length>0).forEach(d=>{const u=d.notifications.map(h=>h.notificationId);l[ne(d)]=a.filter(h=>u.includes(h))});const c={};return $t(s).filter(d=>d.notifications.length>0).forEach(d=>{const u=d.notifications.map(h=>h.inboxNotification.id);c[ne(d)]=n.filter(h=>u.includes(h))}),{[K]:c,[Z]:l}},ra=(e,o)=>{const s=[];return Object.values(e).forEach(a=>{a.forEach(n=>{n.includes(Ce.toLocaleLowerCase())===!1&&o.includes(n)&&s.push(n)})}),s};export{aa as default,ra as getSelectedNotificationIds,Xe as uniqueFormName};
685
+ `,Xe=e=>`${e}_form`,Qe=e=>{const{allNotifications:o,allExternalNotifications:s,notificationDetailsByTab:{tasks:{selectedNotificationIds:a},comments:{selectedNotificationIds:n}}}=e,l={};It(o).filter(d=>d.notifications.length>0).forEach(d=>{const u=d.notifications.map(h=>h.notificationId);l[ne(d)]=a.filter(h=>u.includes(h))});const c={};return $t(s).filter(d=>d.notifications.length>0).forEach(d=>{const u=d.notifications.map(h=>h.inboxNotification.id);c[ne(d)]=n.filter(h=>u.includes(h))}),{[Z]:c,[K]:l}},ra=(e,o)=>{const s=[];return Object.values(e).forEach(a=>{a.forEach(n=>{n.includes(Ce.toLocaleLowerCase())===!1&&o.includes(n)&&s.push(n)})}),s};export{aa as default,ra as getSelectedNotificationIds,Xe as uniqueFormName};
@@ -1,4 +1,4 @@
1
- import{e as H,ht as xe,M as B,u as q,bJ as be,A as _e,j as t,_ as Se,bg as ke,hs as we,aZ as ve,aX as Be,hu as $e,hv as Oe,o as u,a6 as je,m as Pe,C as F,aj as le,L as ie,a8 as Te,r as $,b0 as De,bL as Ne,bM as Ee,bN as Ie,f as a,y as ce,bd as Me,b8 as Ae,aw as Le,v as Z,av as Fe,ab as Ve,b9 as Re,bb as ze,l as We}from"./index-DHx5ymlr.js";import{b as x,n as m,f as Ke}from"./vendor-rkTZJa59.js";import{p as Ye,d as Ge,y as G,b as de,u as ee}from"./chartTypes-C7uaeRCc-CF1IJ0Zr.js";import{V as He}from"./toChartData-CEfu5Lvp-DjmLr2R6.js";import{m as V}from"./analyticsHelper-Dc3DtVTm-BSgNWv9S.js";import{p as qe}from"./TimeRangeSwitcher-D10b_iT0-jUwxoenx.js";import{M as Je}from"./TimeframeSwitcherWithToggle-DP7dCTZ--DkJE5OK1.js";import{C as Qe}from"./NoDataChart-CyIzcvzb-Dem0-EFr.js";import{d as Ue}from"./NoDataTable-Cf9Qv-ms-CRyA81-u.js";import{H as Xe,N as oe}from"./detailCommon-OK9JA2hc-D4iEvwhr.js";import{n as R}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{R as Ze,W as J}from"./CollapsableReportTable-KGZROyWO-Db0w9Rdn.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-CB6RE8w9-D9jDxGg8.js";import{d as re}from"./mapLoadingInProgressToTreeNode-pvoDlh5w-C7nLUjSw.js";import{l as eo}from"./mapSpacerToTreeNode-P_HzYMUQ-Kk9cgUyq.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./TimeframeSwitcher-w4308CL0-DnYzOk2-.js";import"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";import"./AccountRow-BcSPuOPF-Bl8Vk7p2.js";const oo=m.div`
1
+ import{e as G,hs as ye,B,u as q,bJ as be,H as _e,j as t,$ as Se,bg as ke,hr as we,aZ as ve,aX as Be,ht as $e,hu as Oe,o as u,a6 as je,m as Pe,C as F,aj as le,O as ie,a8 as Te,q as $,b0 as De,bL as Ne,bM as Ee,bN as Ie,g as a,t as ce,bd as Ae,b8 as Me,aw as Le,v as Z,av as Fe,ab as Ve,b9 as Re,bb as ze,l as We}from"./index-Du1ejFtI.js";import{b as y,n as m,f as Ke}from"./vendor-rkTZJa59.js";import{p as Ye,d as He,y as H,b as de,u as ee}from"./chartTypes-eqxFaFS5-B43Gm107.js";import{V as Ge}from"./toChartData-Dh9v_zba-IkjT0Y7p.js";import{m as V}from"./analyticsHelper-DQQo4LQc-Dpi2pZTl.js";import{p as qe}from"./TimeRangeSwitcher-BQL2dhVh-BEcsPUsE.js";import{M as Je}from"./TimeframeSwitcherWithToggle-C_hQ5Vj--Bx-1-ivl.js";import{C as Qe}from"./NoDataChart-Bww-GG_z-Bc_skb_f.js";import{d as Ue}from"./NoDataTable-DRSEE7HT-D9jhDjAA.js";import{H as Xe,N as oe}from"./detailCommon-fC811KkH-D6H3c8Ux.js";import{n as R}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{R as Ze,W as J}from"./CollapsableReportTable-C_qcwMWq-DwhvFgWQ.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-CEJ9v-Q3-B6zmleAa.js";import{d as re}from"./mapLoadingInProgressToTreeNode-CM7N02af-DstULqSu.js";import{l as eo}from"./mapSpacerToTreeNode-C7hklF---Dg7CM6wp.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./TimeframeSwitcher-CXvrXTdI-C26WdHZR.js";import"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";import"./AccountRow-m99usqft-CVwqPSiA.js";const oo=m.div`
2
2
  display: flex;
3
3
  `,ro=m.div`
4
4
  flex: display;
@@ -22,10 +22,10 @@ import{e as H,ht as xe,M as B,u as q,bJ as be,A as _e,j as t,_ as Se,bg as ke,hs
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(C=>C.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=Ke.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=Ye(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?He(e,[...o],l,s):void 0},po=m.div`
25
+ `,to=({active:e,payload:r,barName:o})=>{const s=[];if(r!==void 0&&e===!0){const l=r.filter(C=>C.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=Ke.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=Ye(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?Ge(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 ho({selectedRangeReport:e,width:r,height:o,showBarHoverBackground:s=!1,isDetailPage:l=!1}){const i=x.useRef(!1),h=io,[n,p]=x.useState(void 0);x.useEffect(()=>{i.current=!0},[]);const g=co(e.firstMonthOfFY,e),c=()=>{const d=[];return g?.orderedKeys.forEach(b=>{const S=l===!0&&!i.current;d.push(C(b,S))}),d},C=(d,b)=>t.jsx(ze,{name:d,animationDuration:b?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),_=({active:d,payload:b})=>b?.find(S=>S.name===n)!=null&&n!=null&&d===!0?t.jsx(lo,{active:d,payload:b,barName:n,getVendorName:f}):null,f=(d,b)=>{const S=We.getOpexVendorTimeframeKey(d);try{const v=b.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(_,{}),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=Ge(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:C,width:_})=>t.jsxs(Me,{width:_,height:C,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:h?$[5]:30,margin:{top:5,right:c,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[t.jsx(Ae,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:n.colors.grey3}),t.jsx(Le,{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(Fe,{type:"number",axisLine:!1,tickLine:!1,tick:{color:n.colors.hero,...Z.extraSmallRegular.cssObject},tickFormatter:f=>Ve("0,0.[00]a",f,p)}),t.jsx(Re,{wrapperStyle:{zIndex:2},cursor:g?{stroke:n.colors.background,strokeWidth:(_-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 Co(e.statementEndPoint,e.authParams,r)}async function Co(e,r,o){const s=B.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(go(o)))}`;try{const i=await Ne({urlEndPoint:l,authParams:r,fileType:o.statementFileType});if(i.ok){const h=Ee(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 yo({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 xo({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 bo({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 _o=(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((C,_)=>{n.push(re({title:`${_}+${p.loading}`,balances:i,config:o}))});else if(e.opexBalances.length>0){if(!r.searchString){const f=bo({title:B.getLocalizedStrings().chartCard.total,balances:e.totalBalances,config:o,numOfBalances:l});n.push(f)}const C=r.pageToken[r.timeframe],_=e.opexBalances.map((f,d)=>xo({opExByVendor:f,title:f.vendor.name,numOfBalances:l,isLastNode:d===e.opexBalances.length-1&&C==null,config:o}));n.push(..._),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(eo({title:`${d}+${p.loading}`,balances:[],config:o}))})}return e.opexBalances.length===0&&g!==!0&&n.push(yo({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=ko(o),i=pe({balances:l,config:r});return{config:r,headerNodes:s?[i]:[],contentNodes:[i,...e.contentNodes.slice(1)]}}const ko=e=>e.totalBalances!=null?[...e.totalBalances.balances,...e.totalBalances.additionalBalances]:[],E={chartHeight:new F(288,360),wrapperPadding:new F($[3],$[3],$[8]),contentPaddingLeft:new F($[0],$[0],$[0]),contentPaddingRight:new F($[3],$[3],$[8])},wo=m.div`
28
+ `;function ho({selectedRangeReport:e,width:r,height:o,showBarHoverBackground:s=!1,isDetailPage:l=!1}){const i=y.useRef(!1),h=io,[n,p]=y.useState(void 0);y.useEffect(()=>{i.current=!0},[]);const g=co(e.firstMonthOfFY,e),c=()=>{const d=[];return g?.orderedKeys.forEach(b=>{const S=l===!0&&!i.current;d.push(C(b,S))}),d},C=(d,b)=>t.jsx(ze,{name:d,animationDuration:b?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),_=({active:d,payload:b})=>b?.find(S=>S.name===n)!=null&&n!=null&&d===!0?t.jsx(lo,{active:d,payload:b,barName:n,getVendorName:f}):null,f=(d,b)=>{const S=We.getOpexVendorTimeframeKey(d);try{const v=b.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(_,{}),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=He(e),g=i!==!1,c=h?(s-60)/H.operating_expenses_by_vendor*(H.operating_expenses_by_vendor-e.timeseries.length):20;return t.jsx(po,{width:s,height:l,children:t.jsx(le,{children:({height:C,width:_})=>t.jsxs(Ae,{width:_,height:C,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:h?$[5]:30,margin:{top:5,right:c,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[t.jsx(Me,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:n.colors.grey3}),t.jsx(Le,{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(Fe,{type:"number",axisLine:!1,tickLine:!1,tick:{color:n.colors.hero,...Z.extraSmallRegular.cssObject},tickFormatter:f=>Ve("0,0.[00]a",f,p)}),t.jsx(Re,{wrapperStyle:{zIndex:2},cursor:g?{stroke:n.colors.background,strokeWidth:(_-120)/H.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 Co(e.statementEndPoint,e.authParams,r)}async function Co(e,r,o){const s=B.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(go(o)))}`;try{const i=await Ne({urlEndPoint:l,authParams:r,fileType:o.statementFileType});if(i.ok){const h=Ee(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 xo({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 yo({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 bo({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 _o=(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((C,_)=>{n.push(re({title:`${_}+${p.loading}`,balances:i,config:o}))});else if(e.opexBalances.length>0){if(!r.searchString){const f=bo({title:B.getLocalizedStrings().chartCard.total,balances:e.totalBalances,config:o,numOfBalances:l});n.push(f)}const C=r.pageToken[r.timeframe],_=e.opexBalances.map((f,d)=>yo({opExByVendor:f,title:f.vendor.name,numOfBalances:l,isLastNode:d===e.opexBalances.length-1&&C==null,config:o}));n.push(..._),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(eo({title:`${d}+${p.loading}`,balances:[],config:o}))})}return e.opexBalances.length===0&&g!==!0&&n.push(xo({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=ko(o),i=pe({balances:l,config:r});return{config:r,headerNodes:s?[i]:[],contentNodes:[i,...e.contentNodes.slice(1)]}}const ko=e=>e.totalBalances!=null?[...e.totalBalances.balances,...e.totalBalances.additionalBalances]:[],E={chartHeight:new F(288,360),wrapperPadding:new F($[3],$[3],$[8]),contentPaddingLeft:new F($[0],$[0],$[0]),contentPaddingRight:new F($[3],$[3],$[8])},wo=m.div`
29
29
  display: flex;
30
30
  flex: 1 1 auto;
31
31
  min-height: 100%;
@@ -87,14 +87,14 @@ import{e as H,ht as xe,M as B,u as q,bJ as be,A as _e,j as t,_ as Se,bg as ke,hs
87
87
  `,Io=m.div`
88
88
  margin-top: ${u.sp5};
89
89
  margin-bottom: ${u.sp6};
90
- `,Mo=m.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=>E.wrapperPadding.valuePx(e.windowSize)};
96
96
  background-color: ${e=>e.theme.colors.grey4};
97
- `,Ao=m.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(Pe,{size:"ExtraLarge",start:!0})}):null,gr=({report:e,vendorTabsToShow:r,uiState:o,downloadParams:s,onVendorTabSelectionChanged:l,onReloadReport:i,onBackClick:h,onFetchOpExByVendors:n,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:g,onSortOrderChanged:c,onSortOrSearchStarted:C,onVendorNameAndBalanceClicked:_,onPageFetchStarted:f,previousTabPosition:d,setPreviousTabPosition:b,updateDownloadStateHandler:S,onClearSearch:v,analytics:O,onClickMenuIcon:z})=>{const[P,I]=x.useState(o.searchString[o.timeframe]),[M,A]=x.useState(!1),k=H(),T=x.useRef(null),W=xe(r),he=W.length>1,me=B.getLocalizedStrings().reports.common,Q=B.getLocalizedStrings().vendors,U=q(),ge=["month","quarter"],ue=e.availableNumberOfPeriods!=null&&e.availableNumberOfPeriods<2,L=o.mode==="compare_mode"&&!ue,K=e.allTimeframeTicks.length===0,{timeframe:j}=o,D=o.searchString[j];be({componentName:"vendors.opex_by_vendor.list"});const fe=x.useCallback(w=>{n(j,D,w)},[j,D,n]),Ce=x.useCallback((w,y)=>{window.scrollTo({top:T.current?.offsetTop,behavior:"smooth"}),w.length>0?(C(!0),n(y,w,!1)):(C(!1),v(y))},[v,n,C]),X=x.useRef(_e((w,y)=>Ce(w,y),500,{trailing:!0})).current,ye=(w,y)=>{c(w,y,j),C(!0),n(j,D,!1)};if(x.useEffect(()=>{async function w(){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[j],...s}),O?.trackDownload(R("operating_expenses_by_vendor"),V(o.timeframe),"excel",L),S("Completed")}M&&o.downloadState!=="In-Progress"&&(A(!1),S("In-Progress"),w())},[e,o,L,s,o.downloadState,M]),x.useEffect(()=>{I(D)},[D]),e.fetchState==="Error")return t.jsxs($o,{children:[t.jsx(Oo,{"data-testid":Se("op-ex-by-vendor-reload-page"),onClick:i,children:t.jsx(ke,{})}),t.jsx(jo,{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 w=t.jsxs(t.Fragment,{children:[t.jsx(we,{isSearchOpen:(D?.length??0)>0,searchPlaceHolder:Q.common.searchPlaceholder,searchText:P??"",onSearchTextChanged:y=>{I(y),y.trim().length>=2?X(y,j):y.trim().length==0&&X("",j)},downloadPresent:!0}),t.jsx(ve,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:K,isDownloading:o.downloadState==="In-Progress"}],onDownloadClick:async y=>{if(y==="excel")if(o.downloadState==="In-Progress"){console.log("Download is already in progress!");return}else A(!0)}}}})]});return t.jsxs(wo,{windowSize:k,children:[t.jsx(Be,{title:Q.common.navBarTitle,subTitle:e.lastRefreshSuccessTime!=null?e.lastRefreshSuccessTime.utc(!0).fromNow():"",backgroundColor:U.colors.grey5,onBackClick:h,rightSideComponent:w,showMenuIcon:k==="medium-compact"||k==="small",downloadPresent:!0,onClickMenuIcon:z,source:"OpExByVendorPage"}),t.jsxs(vo,{windowSize:k,children:[he?t.jsx($e,{allTabs:W,selectedTab:W[1].id,containerStyle:{borderBottom:`2px solid ${U.colors.grey3}`},onTabChange:y=>l(Oe(y.id)),previousTabPosition:d,setPreviousTabPosition:b}):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:O}),Y!=null?t.jsx(Io,{children:t.jsx(Xe,{balance:Y,dateText:zo(Y)})}):null,t.jsx(Vo,{report:e,isEmptyPeriod:K})]}),t.jsx(Ro,{reference:T,report:e,uiState:o,isEmptyPeriod:K,onAdditionalBalanceSelectionChanged:p,onVendorNameAndBalanceClicked:_,onSortOrderChanged:ye,handleFetchOpExByVendor:fe,onPageFetchStarted:f,analytics:O})]})}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(To,{children:[t.jsx(Po,{children:t.jsx(Je,{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(qe,{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(Eo,{children:t.jsx(Qe,{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 C=r.mode==="compare_mode",_=k=>{c?.trackCompareFilterChange(k==="compare_mode_percent"?"percentage":"amount",R("operating_expenses_by_vendor"),V(r.timeframe),"dropdown"),l(C,[k==="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,b]=x.useState(void 0),[S,v]=x.useState(void 0),O=H(),z=q(),P=!(O==="small"||O==="medium-compact");x.useEffect(()=>{const k={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:De(),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 T=_o(e,r,k,P);v(e),b(T)}else{const T=So(d,k,e,P);b(T)}},[r.mode,e]);const I=k=>k<e.opexBalances.length,M=()=>{r.pageToken[r.timeframe]!=null&&e.fetchState==="Completed"&&(g(),p(!0))},A=e.opexBalances.length;return t.jsx(Mo,{windowSize:O,ref:s,children:o?t.jsx(Ue,{}):d!=null?t.jsx(Ao,{children:t.jsx(Ze,{backgroundColor:new Te(z.colors.grey4),rootNodes:d,type:"name+balances_actual",compareMode:f,isSticky:{isStickyHeader:P,isStickyName:P},treeNodePadding:{left:E.contentPaddingLeft.value(O),right:E.contentPaddingRight.value(O)},nodeOpenStatus:{},scrollPosition:r.scrollPosition,onCompareModeChanged:_,onScroll:i,infiniteLoadingProps:{isItemLoaded:I,itemCount:A,loadMoreItems:M}})}):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{gr as default};
100
+ `,Lo=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?t.jsx(Bo,{children:t.jsx(Pe,{size:"ExtraLarge",start:!0})}):null,gr=({report:e,vendorTabsToShow:r,uiState:o,downloadParams:s,onVendorTabSelectionChanged:l,onReloadReport:i,onBackClick:h,onFetchOpExByVendors:n,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:g,onSortOrderChanged:c,onSortOrSearchStarted:C,onVendorNameAndBalanceClicked:_,onPageFetchStarted:f,previousTabPosition:d,setPreviousTabPosition:b,updateDownloadStateHandler:S,onClearSearch:v,analytics:O,onClickMenuIcon:z})=>{const[P,I]=y.useState(o.searchString[o.timeframe]),[A,M]=y.useState(!1),k=G(),T=y.useRef(null),W=ye(r),he=W.length>1,me=B.getLocalizedStrings().reports.common,Q=B.getLocalizedStrings().vendors,U=q(),ge=["month","quarter"],ue=e.availableNumberOfPeriods!=null&&e.availableNumberOfPeriods<2,L=o.mode==="compare_mode"&&!ue,K=e.allTimeframeTicks.length===0,{timeframe:j}=o,D=o.searchString[j];be({componentName:"vendors.opex_by_vendor.list"});const fe=y.useCallback(w=>{n(j,D,w)},[j,D,n]),Ce=y.useCallback((w,x)=>{window.scrollTo({top:T.current?.offsetTop,behavior:"smooth"}),w.length>0?(C(!0),n(x,w,!1)):(C(!1),v(x))},[v,n,C]),X=y.useRef(_e((w,x)=>Ce(w,x),500,{trailing:!0})).current,xe=(w,x)=>{c(w,x,j),C(!0),n(j,D,!1)};if(y.useEffect(()=>{async function w(){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[j],...s}),O?.trackDownload(R("operating_expenses_by_vendor"),V(o.timeframe),"excel",L),S("Completed")}A&&o.downloadState!=="In-Progress"&&(M(!1),S("In-Progress"),w())},[e,o,L,s,o.downloadState,A]),y.useEffect(()=>{I(D)},[D]),e.fetchState==="Error")return t.jsxs($o,{children:[t.jsx(Oo,{"data-testid":Se("op-ex-by-vendor-reload-page"),onClick:i,children:t.jsx(ke,{})}),t.jsx(jo,{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 w=t.jsxs(t.Fragment,{children:[t.jsx(we,{isSearchOpen:(D?.length??0)>0,searchPlaceHolder:Q.common.searchPlaceholder,searchText:P??"",onSearchTextChanged:x=>{I(x),x.trim().length>=2?X(x,j):x.trim().length==0&&X("",j)},downloadPresent:!0}),t.jsx(ve,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:K,isDownloading:o.downloadState==="In-Progress"}],onDownloadClick:async x=>{if(x==="excel")if(o.downloadState==="In-Progress"){console.log("Download is already in progress!");return}else M(!0)}}}})]});return t.jsxs(wo,{windowSize:k,children:[t.jsx(Be,{title:Q.common.navBarTitle,subTitle:e.lastRefreshSuccessTime!=null?e.lastRefreshSuccessTime.utc(!0).fromNow():"",backgroundColor:U.colors.grey5,onBackClick:h,rightSideComponent:w,showMenuIcon:k==="medium-compact"||k==="small",downloadPresent:!0,onClickMenuIcon:z,source:"OpExByVendorPage"}),t.jsxs(vo,{windowSize:k,children:[he?t.jsx($e,{allTabs:W,selectedTab:W[1].id,containerStyle:{borderBottom:`2px solid ${U.colors.grey3}`},onTabChange:x=>l(Oe(x.id)),previousTabPosition:d,setPreviousTabPosition:b}):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:O}),Y!=null?t.jsx(Io,{children:t.jsx(Xe,{balance:Y,dateText:zo(Y)})}):null,t.jsx(Vo,{report:e,isEmptyPeriod:K})]}),t.jsx(Ro,{reference:T,report:e,uiState:o,isEmptyPeriod:K,onAdditionalBalanceSelectionChanged:p,onVendorNameAndBalanceClicked:_,onSortOrderChanged:xe,handleFetchOpExByVendor:fe,onPageFetchStarted:f,analytics:O})]})}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(To,{children:[t.jsx(Po,{children:t.jsx(Je,{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(qe,{firstMonthOfFY:r,timeframe:l,timeframeTicks:o,selection:{selectedTicks:oe(o,s),highlightedOfSelectedTicks:oe(o,s)}})]})}),Vo=({isEmptyPeriod:e,report:r})=>{const o=G();return e?t.jsx(Eo,{children:t.jsx(Qe,{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 C=r.mode==="compare_mode",_=k=>{c?.trackCompareFilterChange(k==="compare_mode_percent"?"percentage":"amount",R("operating_expenses_by_vendor"),V(r.timeframe),"dropdown"),l(C,[k==="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,b]=y.useState(void 0),[S,v]=y.useState(void 0),O=G(),z=q(),P=!(O==="small"||O==="medium-compact");y.useEffect(()=>{const k={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:De(),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 T=_o(e,r,k,P);v(e),b(T)}else{const T=So(d,k,e,P);b(T)}},[r.mode,e]);const I=k=>k<e.opexBalances.length,A=()=>{r.pageToken[r.timeframe]!=null&&e.fetchState==="Completed"&&(g(),p(!0))},M=e.opexBalances.length;return t.jsx(Ao,{windowSize:O,ref:s,children:o?t.jsx(Ue,{}):d!=null?t.jsx(Mo,{children:t.jsx(Ze,{backgroundColor:new Te(z.colors.grey4),rootNodes:d,type:"name+balances_actual",compareMode:f,isSticky:{isStickyHeader:P,isStickyName:P},treeNodePadding:{left:E.contentPaddingLeft.value(O),right:E.contentPaddingRight.value(O)},nodeOpenStatus:{},scrollPosition:r.scrollPosition,onCompareModeChanged:_,onScroll:i,infiniteLoadingProps:{isItemLoaded:I,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{gr as default};
@@ -1,4 +1,4 @@
1
- import{u as i,j as r}from"./index-DHx5ymlr.js";import{n}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const p=n.div`
1
+ import{u as i,j as r}from"./index-Du1ejFtI.js";import{n}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const p=n.div`
2
2
  display: ${({isOpen:o})=>o?"block":"none"};
3
3
  position: fixed;
4
4
  top: 0;
@@ -1,4 +1,4 @@
1
- import{j as o,I as M,u as T,e as z,_ as A,aX as re,M as c,K as ie,m as ae,C as D,v as ce,o as s,L as le,a8 as de,c7 as ge,c8 as me,aU as pe,r as C,l as U,b0 as he,c9 as ue,a6 as fe,a7 as xe,ap as we}from"./index-DHx5ymlr.js";import{n as r,b as F}from"./vendor-rkTZJa59.js";import{L as Se}from"./NavBarWithPicker-Cx1ldzdT-DvbtCcQI.js";import{m as je}from"./analyticsHelper-Dc3DtVTm-BSgNWv9S.js";import{M as $e}from"./TimeframeSwitcherWithToggle-DP7dCTZ--DkJE5OK1.js";import{R as be,a as Ce}from"./CollapsableReportTable-KGZROyWO-Db0w9Rdn.js";import{M as E}from"./usp-line-BBd1wKwW-u-VMxix8.js";import{T as Pe,I as ke,L as ye}from"./mapSectionWithAcOnlyToTreeNode-CVUpGQKE-BV5TzbPA.js";import{s as G}from"./mapTimeframeBalancesToTreeNode-B8xJouuF-CcCEjtJw.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./TimeframeSwitcher-w4308CL0-DnYzOk2-.js";import"./AccountRow-BcSPuOPF-Bl8Vk7p2.js";const H="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",Y="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",ve=r.div`
1
+ import{j as o,N as M,u as T,e as z,$ as A,aX as re,B as c,K as ie,m as ae,C as D,v as ce,o as s,O as le,a8 as de,c7 as ge,c8 as me,aU as pe,q as C,l as U,b0 as he,c9 as ue,a6 as fe,a7 as xe,ap as we}from"./index-Du1ejFtI.js";import{n as r,b as F}from"./vendor-rkTZJa59.js";import{L as Se}from"./NavBarWithPicker-Bbu7_9sU-Drz87Xca.js";import{m as je}from"./analyticsHelper-DQQo4LQc-Dpi2pZTl.js";import{M as $e}from"./TimeframeSwitcherWithToggle-C_hQ5Vj--Bx-1-ivl.js";import{R as be,a as Ce}from"./CollapsableReportTable-C_qcwMWq-DwhvFgWQ.js";import{M as E}from"./usp-line-BBd1wKwW-u-VMxix8.js";import{T as Pe,I as ke,L as ye}from"./mapSectionWithAcOnlyToTreeNode-MzhgtFpc-aX7osQA1.js";import{s as G}from"./mapTimeframeBalancesToTreeNode-D36HLTqR-CiOqATy_.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./TimeframeSwitcher-CXvrXTdI-C26WdHZR.js";import"./AccountRow-m99usqft-CVwqPSiA.js";const H="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",Y="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",ve=r.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -52,11 +52,11 @@ import{j as o,I as M,u as T,e as z,_ as A,aX as re,M as c,K as ie,m as ae,C as D
52
52
  box-sizing: border-box;
53
53
  `,N=r(we)`
54
54
  color: ${e=>e.theme.colors.champion};
55
- `,O=r(xe)`
55
+ `,B=r(xe)`
56
56
  color: ${e=>e.theme.colors.champion};
57
- `,_=r(fe)`
57
+ `,O=r(fe)`
58
58
  color: ${e=>e.theme.colors.champion};
59
- `,B=r(ue)`
59
+ `,_=r(ue)`
60
60
  color: ${e=>e.theme.colors.champion};
61
61
  `,k=r.div``,y=r.div`
62
62
  padding-left: ${s.sp3};
@@ -70,7 +70,7 @@ import{j as o,I as M,u as T,e as z,_ as A,aX as re,M as c,K as ie,m as ae,C as D
70
70
  margin: ${s.sp3} auto;
71
71
  max-width: 422px;
72
72
  color: ${e=>e.theme.colors.hero};
73
- `,Ae=()=>{const e=T(),t=z();return o.jsxs(Q,{windowSize:t,children:[o.jsx(Z,{windowSize:t,children:o.jsx(J,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:Y,alt:"forecast-promo",style:{width:"100%",height:"auto"}}):o.jsx("img",{src:H,alt:"forecast-promo",style:{width:"100%",height:"auto"}})})}),o.jsxs(X,{windowSize:t,children:[o.jsxs(P,{windowSize:t,children:[o.jsx(k,{children:o.jsx(ee,{})}),o.jsxs(y,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(P,{windowSize:t,children:[o.jsx(k,{children:o.jsx(oe,{})}),o.jsxs(y,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(P,{windowSize:t,children:[o.jsx(k,{children:o.jsx(te,{})}),o.jsxs(y,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]})]})},Fe=()=>{const e=T(),t=z();return o.jsxs(Q,{windowSize:t,children:[o.jsxs(X,{windowSize:t,children:[o.jsxs(P,{windowSize:t,style:{width:"408px"},children:[o.jsx(k,{children:o.jsx(ee,{})}),o.jsxs(y,{children:[o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(P,{windowSize:t,style:{width:"275px",alignSelf:"end"},children:[o.jsx(k,{children:o.jsx(oe,{})}),o.jsxs(y,{children:[o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(P,{windowSize:t,style:{width:"408px"},children:[o.jsx(k,{children:o.jsx(te,{})}),o.jsxs(y,{children:[o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]}),o.jsx(Z,{windowSize:t,children:o.jsx(J,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:Y,alt:"forecast-promo",style:{width:"640px",height:"402px"}}):o.jsx("img",{src:H,alt:"forecast-promo",style:{width:"640px",height:"402px"}})})})]})},Ne=({meetingUrl:e,onBackClick:t,onClickMenuIcon:n})=>{const a=T(),l=z(),d=()=>{window.open(e.toString(),"_blank")};return o.jsxs(ve,{"data-testid":A("forecast-promo-page"),children:[o.jsx(re,{title:c.getLocalizedStrings().forecastPromoPage.title,backgroundColor:a.colors.grey4,onBackClick:t,showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:n,source:"ForecastPromoPage"}),o.jsxs(ze,{"data-testid":A("forecast-promo-container"),windowSize:l,children:[l==="small"?o.jsx(Te,{children:c.getLocalizedStrings().forecastPromoPage.promoText}):o.jsx(Le,{children:c.getLocalizedStrings().forecastPromoPage.promoText}),l==="small"?o.jsx(Ae,{}):o.jsx(Fe,{}),o.jsxs(Ie,{"data-testid":A("forecast-promo-bottom-container"),children:[o.jsx(ie,{variant:"primary",label:c.getLocalizedStrings().forecastPromoPage.meetingButton,onClick:d}),o.jsx(Me,{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:[],p=G({balances:d,config:t}),m=[];return m.push(p),e.idsInOrder.forEach(i=>{if(U.isPandLReportViewSectionID(i)===!0){const f=e.sections[i];if(f==null)return;f.accountGroups.length>0?m.push(Pe({section:e.sections[i],sectionType:i,numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t})):m.push(ke({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t}))}else U.isPandLReportViewCalculatedSectionID(i)===!0&&m.push(ye({calculatedSection:e.calculatedSections[i],numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t}))}),{config:t,headerNodes:n?[p]:[],contentNodes:m}}function _e(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=G({balances:l,config:t,nodeId:e.contentNodes[0].id}),p=e.contentNodes.slice(1);return p.forEach(m=>se(m,t)),{config:t,headerNodes:a?[d]:[],contentNodes:[d,...p]}}function se(e,t){Object.assign(e.reportElementData.config,t),e.children.forEach(n=>se(n,t))}const L={contentPaddingLeft:new D(C[3],C[3],C[8]),contentPaddingRight:new D(C[3],C[3],C[8])},Be=r.div`
73
+ `,Ae=()=>{const e=T(),t=z();return o.jsxs(Q,{windowSize:t,children:[o.jsx(Z,{windowSize:t,children:o.jsx(J,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:Y,alt:"forecast-promo",style:{width:"100%",height:"auto"}}):o.jsx("img",{src:H,alt:"forecast-promo",style:{width:"100%",height:"auto"}})})}),o.jsxs(X,{windowSize:t,children:[o.jsxs(P,{windowSize:t,children:[o.jsx(k,{children:o.jsx(ee,{})}),o.jsxs(y,{children:[o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(P,{windowSize:t,children:[o.jsx(k,{children:o.jsx(oe,{})}),o.jsxs(y,{children:[o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(P,{windowSize:t,children:[o.jsx(k,{children:o.jsx(te,{})}),o.jsxs(y,{children:[o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]})]})},Fe=()=>{const e=T(),t=z();return o.jsxs(Q,{windowSize:t,children:[o.jsxs(X,{windowSize:t,children:[o.jsxs(P,{windowSize:t,style:{width:"408px"},children:[o.jsx(k,{children:o.jsx(ee,{})}),o.jsxs(y,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(P,{windowSize:t,style:{width:"275px",alignSelf:"end"},children:[o.jsx(k,{children:o.jsx(oe,{})}),o.jsxs(y,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(P,{windowSize:t,style:{width:"408px"},children:[o.jsx(k,{children:o.jsx(te,{})}),o.jsxs(y,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]}),o.jsx(Z,{windowSize:t,children:o.jsx(J,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:Y,alt:"forecast-promo",style:{width:"640px",height:"402px"}}):o.jsx("img",{src:H,alt:"forecast-promo",style:{width:"640px",height:"402px"}})})})]})},Ne=({meetingUrl:e,onBackClick:t,onClickMenuIcon:n})=>{const a=T(),l=z(),d=()=>{window.open(e.toString(),"_blank")};return o.jsxs(ve,{"data-testid":A("forecast-promo-page"),children:[o.jsx(re,{title:c.getLocalizedStrings().forecastPromoPage.title,backgroundColor:a.colors.grey4,onBackClick:t,showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:n,source:"ForecastPromoPage"}),o.jsxs(ze,{"data-testid":A("forecast-promo-container"),windowSize:l,children:[l==="small"?o.jsx(Te,{children:c.getLocalizedStrings().forecastPromoPage.promoText}):o.jsx(Le,{children:c.getLocalizedStrings().forecastPromoPage.promoText}),l==="small"?o.jsx(Ae,{}):o.jsx(Fe,{}),o.jsxs(Ie,{"data-testid":A("forecast-promo-bottom-container"),children:[o.jsx(ie,{variant:"primary",label:c.getLocalizedStrings().forecastPromoPage.meetingButton,onClick:d}),o.jsx(Me,{children:c.getLocalizedStrings().forecastPromoPage.forecastUpload})]})]})]})};function Be(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:[],p=G({balances:d,config:t}),m=[];return m.push(p),e.idsInOrder.forEach(i=>{if(U.isPandLReportViewSectionID(i)===!0){const f=e.sections[i];if(f==null)return;f.accountGroups.length>0?m.push(Pe({section:e.sections[i],sectionType:i,numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t})):m.push(ke({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t}))}else U.isPandLReportViewCalculatedSectionID(i)===!0&&m.push(ye({calculatedSection:e.calculatedSections[i],numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t}))}),{config:t,headerNodes:n?[p]:[],contentNodes:m}}function Oe(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=G({balances:l,config:t,nodeId:e.contentNodes[0].id}),p=e.contentNodes.slice(1);return p.forEach(m=>se(m,t)),{config:t,headerNodes:a?[d]:[],contentNodes:[d,...p]}}function se(e,t){Object.assign(e.reportElementData.config,t),e.children.forEach(n=>se(n,t))}const L={contentPaddingLeft:new D(C[3],C[3],C[8]),contentPaddingRight:new D(C[3],C[3],C[8])},_e=r.div`
74
74
  display: flex;
75
75
  flex: 1 1 auto;
76
76
  min-height: 100%;
@@ -104,4 +104,4 @@ import{j as o,I as M,u as T,e as z,_ as A,aX as re,M as c,K as ie,m as ae,C as D
104
104
  align-items: center;
105
105
  justify-content: center;
106
106
  margin-bottom: ${s.sp3};
107
- `,De=({forecastList:e,selectedForecastIndex:t,onForecastSelectionChanged:n,vsActualOn:a,onVsActualChanged:l,selectedTimeframe:d,onTimeframeChanged:p,onBackClick:m,isPandLReportFetching:i,onClickMenuIcon:f})=>{const h=z(),u=[];for(let g=0;g<e.length;++g)u.push(`${g}`);const x={backgroundColor:"transparent",picker:{backgroundColor:"transparent",pickerValues:u,valueToLabel:g=>e[parseInt(g)]?.name??"",selectedValue:`${t}`,titleTextStyle:ce.largeMedium,onPickerSelectionChanged:g=>{if(g!=null){const v=e[parseInt(g)];n?.(v.id,parseInt(g))}},styles:{justifyContent:h==="small"?"left":"center"},isPickerDisabled:i},onBackClick:m,showMenuIcon:h==="medium-compact"||h==="small",onClickMenuIcon:f},$={toggle:{label:c.getLocalizedStrings().reports.forecast.vsActual,isOn:a,onValueChanged:l},timeframe:{allowedTimeframes:["month","quarter","year"],selectedTimeframe:d,onTimeframeSelectionChanged:g=>p?.(g)}};return o.jsxs(Ve,{paddingLeft:L.contentPaddingLeft.value(h),paddingRight:L.contentPaddingRight.value(h),children:[o.jsx(Se,{...x}),i?"":o.jsx(We,{children:o.jsx($e,{...$})})]})},Ue=({report:e,type:t,isActualVsForecastOn:n,compareMode:a,onAccountBalanceClick:l,onCompareModeChanged:d,scrollPosition:p,onTableScroll:m,nodeOpenStatus:i,onNodeCollapseToggled:f})=>{const h=T(),u=z(),[x,$]=F.useState(void 0),[g,v]=F.useState(void 0),b=!(u==="small"||u==="medium-compact"),I=n===!0?"actual_vs_forecast":"none";return F.useEffect(()=>{const S={reportId:`${e.reportId}+${e.forecast?.id}`,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:I,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:Ce(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:he()};if(x==null||!le(g,e)){const w=Oe(e,S,b);v(e),$(w)}else{const w=_e(x,S,e,b);$(w)}},[t,n,e]),x!=null?o.jsx(be,{backgroundColor:new de(h.colors.grey4),rootNodes:x,type:t,compareMode:a,isSticky:{isStickyHeader:b,isStickyName:b},treeNodePadding:{left:L.contentPaddingLeft.value(u),right:L.contentPaddingRight.value(u)},onAccountClick:l==null?void 0:(S,w)=>{l(S,w)},onCompareModeChanged:d,scrollPosition:p,onScroll:m,nodeOpenStatus:i,onNodeCollapseToggled:f}):null};function mo({selectedTimeframe:e,isForecastVsActualOn:t,compareMode:n,forecastList:a,selectedForecast:l,pandLreport:d,type:p,meetingUrl:m,analytics:i,onForecastSelectionChanged:f,onTimeframeChanged:h,onForecastVsActualsCompareToggle:u,onAccountBalanceClick:x,onCompareModeChanged:$,scrollPosition:g,onTableScroll:v,nodeOpenStatus:b,onNodeCollapseToggled:I,onBackClick:S,onClickMenuIcon:w}){const R=[a.fetchState,d.fetchState],V=l?.index??-1;return ne(R)===!0||a.fetchState==="Completed"&&a.forecasts.length===0?o.jsx(Ne,{meetingUrl:m,onBackClick:S,onClickMenuIcon:w}):K([a.fetchState])===!0?o.jsx(q,{fetchState:Ke(R)}):o.jsxs(Be,{children:[o.jsx(De,{forecastList:a.forecasts,selectedForecastIndex:V,onForecastSelectionChanged:(j,W)=>{i?.trackForecastSwitch(M.Event.profitAndLossWithForecast,a.forecasts[W].name),f?.(j,W)},vsActualOn:t,onVsActualChanged:j=>{i?.trackForecastVsActualMode(M.Event.profitAndLossWithForecast,a.forecasts[V].name,j),u?.(j)},selectedTimeframe:e,onTimeframeChanged:j=>{i?.trackTimeframeSwitch(je(j),M.Event.profitAndLossWithForecast),h?.(j)},onBackClick:S,isPandLReportFetching:K([d.fetchState]),onClickMenuIcon:w}),d.fetchState==="In-Progress"?o.jsx(q,{fetchState:"In-Progress"}):o.jsx(Ee,{children:o.jsx(Ue,{report:d,type:p,isActualVsForecastOn:t,compareMode:n,onAccountBalanceClick:x,onCompareModeChanged:$,scrollPosition:g,onTableScroll:v,nodeOpenStatus:b,onNodeCollapseToggled:I})})]})}const qe=e=>e.reduce((t,n)=>t===!0&&n==="Completed",!0),ne=e=>e.reduce((t,n)=>t===!0||n==="Error",!1),K=e=>e.reduce((t,n)=>t===!0||n==="Not-Started"||n==="In-Progress",!1),Ke=e=>qe(e)===!0?"Completed":ne(e)===!0?"Error":"In-Progress";export{mo as default,K as isAnyInProgress};
107
+ `,De=({forecastList:e,selectedForecastIndex:t,onForecastSelectionChanged:n,vsActualOn:a,onVsActualChanged:l,selectedTimeframe:d,onTimeframeChanged:p,onBackClick:m,isPandLReportFetching:i,onClickMenuIcon:f})=>{const h=z(),u=[];for(let g=0;g<e.length;++g)u.push(`${g}`);const x={backgroundColor:"transparent",picker:{backgroundColor:"transparent",pickerValues:u,valueToLabel:g=>e[parseInt(g)]?.name??"",selectedValue:`${t}`,titleTextStyle:ce.largeMedium,onPickerSelectionChanged:g=>{if(g!=null){const v=e[parseInt(g)];n?.(v.id,parseInt(g))}},styles:{justifyContent:h==="small"?"left":"center"},isPickerDisabled:i},onBackClick:m,showMenuIcon:h==="medium-compact"||h==="small",onClickMenuIcon:f},$={toggle:{label:c.getLocalizedStrings().reports.forecast.vsActual,isOn:a,onValueChanged:l},timeframe:{allowedTimeframes:["month","quarter","year"],selectedTimeframe:d,onTimeframeSelectionChanged:g=>p?.(g)}};return o.jsxs(Ve,{paddingLeft:L.contentPaddingLeft.value(h),paddingRight:L.contentPaddingRight.value(h),children:[o.jsx(Se,{...x}),i?"":o.jsx(We,{children:o.jsx($e,{...$})})]})},Ue=({report:e,type:t,isActualVsForecastOn:n,compareMode:a,onAccountBalanceClick:l,onCompareModeChanged:d,scrollPosition:p,onTableScroll:m,nodeOpenStatus:i,onNodeCollapseToggled:f})=>{const h=T(),u=z(),[x,$]=F.useState(void 0),[g,v]=F.useState(void 0),b=!(u==="small"||u==="medium-compact"),I=n===!0?"actual_vs_forecast":"none";return F.useEffect(()=>{const S={reportId:`${e.reportId}+${e.forecast?.id}`,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:I,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:Ce(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:he()};if(x==null||!le(g,e)){const w=Be(e,S,b);v(e),$(w)}else{const w=Oe(x,S,e,b);$(w)}},[t,n,e]),x!=null?o.jsx(be,{backgroundColor:new de(h.colors.grey4),rootNodes:x,type:t,compareMode:a,isSticky:{isStickyHeader:b,isStickyName:b},treeNodePadding:{left:L.contentPaddingLeft.value(u),right:L.contentPaddingRight.value(u)},onAccountClick:l==null?void 0:(S,w)=>{l(S,w)},onCompareModeChanged:d,scrollPosition:p,onScroll:m,nodeOpenStatus:i,onNodeCollapseToggled:f}):null};function mo({selectedTimeframe:e,isForecastVsActualOn:t,compareMode:n,forecastList:a,selectedForecast:l,pandLreport:d,type:p,meetingUrl:m,analytics:i,onForecastSelectionChanged:f,onTimeframeChanged:h,onForecastVsActualsCompareToggle:u,onAccountBalanceClick:x,onCompareModeChanged:$,scrollPosition:g,onTableScroll:v,nodeOpenStatus:b,onNodeCollapseToggled:I,onBackClick:S,onClickMenuIcon:w}){const R=[a.fetchState,d.fetchState],V=l?.index??-1;return ne(R)===!0||a.fetchState==="Completed"&&a.forecasts.length===0?o.jsx(Ne,{meetingUrl:m,onBackClick:S,onClickMenuIcon:w}):K([a.fetchState])===!0?o.jsx(q,{fetchState:Ke(R)}):o.jsxs(_e,{children:[o.jsx(De,{forecastList:a.forecasts,selectedForecastIndex:V,onForecastSelectionChanged:(j,W)=>{i?.trackForecastSwitch(M.Event.profitAndLossWithForecast,a.forecasts[W].name),f?.(j,W)},vsActualOn:t,onVsActualChanged:j=>{i?.trackForecastVsActualMode(M.Event.profitAndLossWithForecast,a.forecasts[V].name,j),u?.(j)},selectedTimeframe:e,onTimeframeChanged:j=>{i?.trackTimeframeSwitch(je(j),M.Event.profitAndLossWithForecast),h?.(j)},onBackClick:S,isPandLReportFetching:K([d.fetchState]),onClickMenuIcon:w}),d.fetchState==="In-Progress"?o.jsx(q,{fetchState:"In-Progress"}):o.jsx(Ee,{children:o.jsx(Ue,{report:d,type:p,isActualVsForecastOn:t,compareMode:n,onAccountBalanceClick:x,onCompareModeChanged:$,scrollPosition:g,onTableScroll:v,nodeOpenStatus:b,onNodeCollapseToggled:I})})]})}const qe=e=>e.reduce((t,n)=>t===!0&&n==="Completed",!0),ne=e=>e.reduce((t,n)=>t===!0||n==="Error",!1),K=e=>e.reduce((t,n)=>t===!0||n==="Not-Started"||n==="In-Progress",!1),Ke=e=>qe(e)===!0?"Completed":ne(e)===!0?"Error":"In-Progress";export{mo as default,K as isAnyInProgress};