@zeniai/web-cockpit-ui 1.14.18-qa → 1.14.19-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 (249) hide show
  1. package/dist/assets/{ACHDetailsPage-DDccOBrQ-DAFloIR7.js → ACHDetailsPage-BahbefPk-CJUwOp-5.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-u3qF__mF-C2rQdAUj.js → AIPerformancePage-BuQApbEf-iP9bvKhu.js} +53 -53
  3. package/dist/assets/AccountInfoPage-TD30edES-B2dxCd6A.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-0PqU7bCV-DjyLxVjc.js → AccountInfoPageContent-DQJFmREl-DoaILqqU.js} +16 -16
  5. package/dist/assets/{AccountReconDetailsDrawerPage-DEqtU-rh-DShYSkdD.js → AccountReconDetailsDrawerPage-D2B9Na3--BPjptdtd.js} +18 -18
  6. package/dist/assets/{AccountRow-DTQ6Qoyr-BWLnnP7O.js → AccountRow-ZcS_RTJN-DNHX6IR1.js} +36 -36
  7. package/dist/assets/{AccountsPromoCardStack-DkYqKp1i-DIQYZHkX.js → AccountsPromoCardStack-Bh2D-mXh-Yx4rUExR.js} +37 -37
  8. package/dist/assets/{AddAddressForCardDrawer-DB3HtvgV-CtFYoq0c.js → AddAddressForCardDrawer-Ds2V5DyG-D2Tq6L1d.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-DvgM0-kj-DdLn-yYb.js → AddToWalletPage-DQ_gwAcu-Bv5nxp9i.js} +29 -29
  10. package/dist/assets/{AgingReportsPage-BP6-oG6W-Zw_sJROa.js → AgingReportsPage-BU_tqV13-C2Yi_y38.js} +8 -8
  11. package/dist/assets/{AllUserItems-w6M8k5yU-YJIh_rl6.js → AllUserItems-DBXzXO61-sIPVSbAT.js} +5 -5
  12. package/dist/assets/ApAgingDetailPage-Crv9EDe5-Dm92urnR.js +46 -0
  13. package/dist/assets/AppBasePage-BK_b0fFf-DXr3P5KV.js +70 -0
  14. package/dist/assets/{AppDrawerContent-_gInVeZf-BQim72zX.js → AppDrawerContent-rw39Hn3s-Aoghs5SQ.js} +20 -19
  15. package/dist/assets/{ApprovalRulesSettingsPage-CKRde9he-xNULn6j9.js → ApprovalRulesSettingsPage-C6jxuvhu-S4p-j-Jr.js} +7 -7
  16. package/dist/assets/{ArAgingChart-Dg0oBo5K-D_U-_y14.js → ArAgingChart-DVMlvNTF-DuCGC2Pt.js} +1 -1
  17. package/dist/assets/{ArAgingDetailPage-CNizMSbt-Dth0_YLs.js → ArAgingDetailPage-CbmOL5tx-Bg8YQJ9n.js} +1 -1
  18. package/dist/assets/{AttachmentView-B8hloBca-B7H5OHbd.js → AttachmentView-BTAMhgXU-BizBD4c6.js} +9 -9
  19. package/dist/assets/{BankAccountSection-4HNC0ypd-C0gSDf56.js → BankAccountSection-DVO3xzgl-BbF3_Xvy.js} +7 -7
  20. package/dist/assets/{BankAccountWarningSection-BqgTMjDy-D19_f5S8.js → BankAccountWarningSection-CQsqUFKg-CEwje_vW.js} +10 -10
  21. package/dist/assets/{BankConnectionsSettingsPage-BBQh1oT8-CZV3CN6h.js → BankConnectionsSettingsPage-CEyhk8v--D1MZcFK5.js} +22 -22
  22. package/dist/assets/{BillDetailPage-R4oRrdsm-BEresB8F.js → BillDetailPage-CP6QCrla-C-q234bH.js} +18 -18
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-d_A1-Gv_-3RrpKEuO.js → BillPayApprovalRuleDetailPage-Bem5LvtY-ByYY2uP-.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-5q5b2drs-IWViHE-L.js → BillPayApprovalRulesPage-DhDaCfQa-cqstNfVf.js} +8 -8
  25. package/dist/assets/{BillPayPromoPage-Dz_R3Vd_--yvJrLJn.js → BillPayPromoPage-BjH9lvnR-7aNAb2i3.js} +10 -10
  26. package/dist/assets/{BillPaySetUpPage-CwTRrElO-CydqQ4Hb.js → BillPaySetUpPage-X8X9gq1a-DvsjYi7w.js} +2 -2
  27. package/dist/assets/{BillingSettingsPage-_XJCl2yq-PULazhmD.js → BillingSettingsPage-CyyR8GW1-3x2HPXEj.js} +6 -6
  28. package/dist/assets/{BillsBulkReviewDrawerPage-B_S35aKX-BEOZeSq9.js → BillsBulkReviewDrawerPage-D_xxZjcU-M0WKN8pE.js} +1 -1
  29. package/dist/assets/{BoxItem-9JmA6QqI-COQbCWSM.js → BoxItem-BL-UVx2X-CDUWJCC4.js} +4 -4
  30. package/dist/assets/{BusinessVerificationPage-DJKOIC1M-LiFEkQgk.js → BusinessVerificationPage-Tr-N_rHo-BFVLh_Kq.js} +8 -8
  31. package/dist/assets/{CardNumberSubText-CewmMWju-DvCOWAQW.js → CardNumberSubText-CNMNL0y--CRLH2YxV.js} +2 -2
  32. package/dist/assets/{CashbackDetailPage-HtjAmPa8-CinbzV-Y.js → CashbackDetailPage-Cj26I5CB-DNKm6NdF.js} +27 -27
  33. package/dist/assets/{ChargeCardDetailPage-D_5vb_92-Du3sCUPX.js → ChargeCardDetailPage-herJK06r-Jj0sML3r.js} +40 -40
  34. package/dist/assets/{ChargeCardListPage-BT-8bueF-06vjr20X.js → ChargeCardListPage-LYVKm-0u-CGVPXLUW.js} +26 -26
  35. package/dist/assets/{ChargeCardListTable-oJTQcOkc-BWmgu2hA.js → ChargeCardListTable-DxE-nRR4-Dc_afx90.js} +38 -38
  36. package/dist/assets/ChargeCardPromoPage-LVuaSVsQ-xG3b-_Ag.js +222 -0
  37. package/dist/assets/{ChargeCardSetupPage-cqydgFPZ-BGlawUmi.js → ChargeCardSetupPage-CWoHclOr-CLs_UkHN.js} +2 -2
  38. package/dist/assets/{ChargeCardStatementsPage-URwhXATj-CKBPOOuu.js → ChargeCardStatementsPage-DkCHd5c6-y_ZysAG_.js} +8 -8
  39. package/dist/assets/{ChargeCardUtils-DBEgXAMc-CCKJwoXw.js → ChargeCardUtils-6kq_92Ri-BhC-mlU5.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-HTpWDuLt-DX0UAuYL.js → ChaseOverlay-N7gGQaMQ-Bh9lkzpe.js} +7 -7
  41. package/dist/assets/{CheckDepositDrawerPage-DLc3qfVH-D8HoFLZB.js → CheckDepositDrawerPage-w7IziUHI-DeTxsGVS.js} +20 -20
  42. package/dist/assets/{CollapsableReportTable-PpQgBBRC-ZGrGfaoO.js → CollapsableReportTable-NSlKGCNZ-9GlkRzVX.js} +59 -59
  43. package/dist/assets/{CompanyOfficerDetailsSection-C1aPsDga-CZMmYqn7.js → CompanyOfficerDetailsSection-C1IpMsWw-4riCbcJi.js} +33 -33
  44. package/dist/assets/{CompanyPassportCard-DMKqBgwh-BK9jAm1s.js → CompanyPassportCard-D5gkzDNU-DdCNWaie.js} +4 -4
  45. package/dist/assets/{CompanyPassportPage-CHHPIqN_-DmQdYIKs.js → CompanyPassportPage-6_6yWHxX-BzKkvM2X.js} +31 -31
  46. package/dist/assets/CompleteProfile-1xeOWkGT-CSILrADl.js +52 -0
  47. package/dist/assets/{ConfettiBurst-14a5kaEE-GS9xo-rd.js → ConfettiBurst-b1-NNKbl-Dk_0sV_i.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-K5rhe_y3-N41MtjES.js → CreateOrEditVendorPage-DQW4Wobx-CiIXGaQB.js} +13 -13
  49. package/dist/assets/{CreditCardPaymentDrawerPage-LQ--HUI9-Cc_Sa5wy.js → CreditCardPaymentDrawerPage-BEpQXn9g-DzfCHeLI.js} +21 -21
  50. package/dist/assets/{CreditCardPaymentPlgSection-BM05WC-i-DNDbbaSP.js → CreditCardPaymentPlgSection-BGh2TJeK-DFQxSPk-.js} +8 -8
  51. package/dist/assets/{CurrencySelectField-bhkJTNUW-BRZe_YtM.js → CurrencySelectField-C2if0NUa-ChKY5K5U.js} +4 -4
  52. package/dist/assets/{CustomerOnboardingActivationPage-BHD1irjF-CTeUMMCT.js → CustomerOnboardingActivationPage-_zjv9RZY-5MkPCW8D.js} +9 -9
  53. package/dist/assets/CustomerOnboardingContainerPage-BXSxGbv8-CIUqDhfe.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B--kAA3i-MPsa0cdA.js → CustomerOnboardingDetailPageSkeleton-CXApNm6A-BSR-PhTi.js} +11 -11
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-sHKAos8m-Db1Asz6M.js → CustomerOnboardingNoStepsPage-BaBxG1Yn-DqlQrhK_.js} +5 -5
  56. package/dist/assets/{CustomerOnboardingPage-B_S5G-6o-ioTtf7qq.js → CustomerOnboardingPage-CWpmMXrh-CRkiPpz7.js} +8 -8
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-CVi8WuQY-DhCHrYf_.js → CustomerOnboardingProductSuitePage-CGYRoz3v-BhEGdWj7.js} +11 -11
  58. package/dist/assets/{Dashboard-CIMiF6eU-Bh4A-kwo.js → Dashboard-Dyt4nvyG-CkNduEQV.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-6z6qBQSB-DtM_VyEZ.js → DashboardReportPage-BSbTlRwW-gHAkcokq.js} +20 -20
  60. package/dist/assets/{DepositAccTransactionItem-BQYFrzDW-BcHBCoaK.js → DepositAccTransactionItem-CuTp6qxI-Ce2SFbUX.js} +10 -10
  61. package/dist/assets/{DepositAccTransactionListPage-xSNsUwS4-CqhIj9_l.js → DepositAccTransactionListPage-CrQrOyrm-LYbEgddo.js} +8 -8
  62. package/dist/assets/{DomesticWireDetailsPage-b1iB1HBM-DQ1jdhWC.js → DomesticWireDetailsPage-C5hxxGsr-D-EvElMb.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-C3oy6eq7-DGj-h14-.js → DownloadOverlay-B9O7jf-4-BeIpOSC8.js} +1 -1
  64. package/dist/assets/{DrawerPage-DLVTld-y-ocrEwuzh.js → DrawerPage-Dpd6lRf7-l9nV_5N2.js} +15 -15
  65. package/dist/assets/EditPeoplePage-C7uOWg9F-BdboEEOc.js +55 -0
  66. package/dist/assets/{EditReimbursementDetailPage-zgUt303N-DNfD2_Hk.js → EditReimbursementDetailPage-BL-W1hPs-D4iR-8Yt.js} +55 -55
  67. package/dist/assets/{EntityDetailPage-DY4i6GZK-BLVHMR98.js → EntityDetailPage-BsQ9bSpC-Do5rjOCb.js} +2 -2
  68. package/dist/assets/{EntitySummarySection-BbxeYdm8-BY7Iv_Z9.js → EntitySummarySection-eNxIwvHt-CkeObU85.js} +9 -9
  69. package/dist/assets/{ExpenseAutomationOverviewPage-D3x3XpmU-C_l3U2ns.js → ExpenseAutomationOverviewPage-CKBACgsI-pcAU6Tzl.js} +29 -29
  70. package/dist/assets/{ExpenseAutomationPage-BTAjM6yZ-DWdHw-Sn.js → ExpenseAutomationPage-LPWPrpwm-T8iyqKP1.js} +56 -56
  71. package/dist/assets/{ExpressPayPage-C30-lVTo-6WY6w68k.js → ExpressPayPage-COQrt-KL-sn6b2-XB.js} +11 -11
  72. package/dist/assets/FeaturePreviewPage-Coe53hoK-Doq3zPCz.js +11 -0
  73. package/dist/assets/{FollowStepsSection-B171fPtM-BriP7ojJ.js → FollowStepsSection-BJFJzQrz-CGmrm9Lr.js} +12 -12
  74. package/dist/assets/{GlobalReviewListPage-BaZx32sB-DX_UXvHY.js → GlobalReviewListPage-DDQb-plt-B7MJAdcL.js} +17 -17
  75. package/dist/assets/HelpButton-BT_HyQ5k-B4E1vZtk.js +28 -0
  76. package/dist/assets/{InformationCardStack-BtxneVKK-5zmgZr81.js → InformationCardStack-B9E29_zj-DokGK6g8.js} +4 -4
  77. package/dist/assets/{InsightsCardStack-CCee6pLA-BiJYSmPO.js → InsightsCardStack-7XbkZ-A3-BxqeB-iN.js} +8 -8
  78. package/dist/assets/InsightsSection-DtBq9eII-CGUvYjY9.js +27 -0
  79. package/dist/assets/{IntegrationsSettingsPage-CsY38-LI-c3uW4I03.js → IntegrationsSettingsPage-TjdF0ahh-BOCCfb_h.js} +11 -11
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-sSSgjYdh-f5YlyKlr.js → InternationalWireSwiftDetailsPage-BeSYu2Dm-y3Tu_Xyi.js} +12 -12
  81. package/dist/assets/{InternationalWireVerificationPage-zv0FIhUz-C7apQHs9.js → InternationalWireVerificationPage-Ctcaggen-Cihfrd35.js} +15 -15
  82. package/dist/assets/{InviteFormPage-DxszbbOJ-zBQSU0hV.js → InviteFormPage-DEDBu0OO-Dsi8hwhI.js} +24 -24
  83. package/dist/assets/{InvitePageListView-BYVWTwTc-Bc4HhTKp.js → InvitePageListView-BMMOpM9O-B8oUxVru.js} +41 -41
  84. package/dist/assets/InvitePeoplePage-BzPRCgA6-C4LT3zxO.js +12 -0
  85. package/dist/assets/InvoiceUploadSection-C6Dx8Web-CBeOBAnd.js +140 -0
  86. package/dist/assets/{IssueChargeCardPage-CPmj_trJ-DaakIEW8.js → IssueChargeCardPage-DWRhiOzj-DCnENqBq.js} +72 -72
  87. package/dist/assets/LabeledAddressValue-CSb0EGEx-owkgfzr7.js +49 -0
  88. package/dist/assets/LabeledAddressValueField-DJHY_wPN-ChfMLz4N.js +45 -0
  89. package/dist/assets/{LabeledControlledCheckBoxField-BnfJ3gKr-BPIj9243.js → LabeledControlledCheckBoxField-rRmtlmRJ-ZOoy4ee7.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-CJT-CuQl-CtkVdb8Y.js → LabeledCreatableSingleSelectField-CTwToXIo-Cle-L6Nt.js} +5 -5
  91. package/dist/assets/LabeledDocumentField-sIz4Fhet-CBqe5ksA.js +41 -0
  92. package/dist/assets/LabeledDropDownFormattedTextField-mOxkCT-G-CFeF0x5h.js +59 -0
  93. package/dist/assets/{LabeledText-DhZgeQqu-CywDQAlQ.js → LabeledText-CExeogkg-361xlNV7.js} +1 -1
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-D63Z4SE5-CnyU9bGi.js → LabeledUserSingleSelectWithSubtitlesField-DrloYoze-DB50WeN3.js} +16 -16
  95. package/dist/assets/{LabeledZeniRolesDropDownField-MwrQ9tKT-DoYqkoGc.js → LabeledZeniRolesDropDownField-BZKMSlzI-B3-a-Sde.js} +7 -7
  96. package/dist/assets/LinkJETransactionPage-D9Kae7Qd-CXNveZ-N.js +98 -0
  97. package/dist/assets/{LowBalancePopup-DPbr0gUO-CxEILVy0.js → LowBalancePopup-DqY0lHvk-Bg-BhJJe.js} +7 -7
  98. package/dist/assets/{MagicLinkACHDetailsPage-D11FRh9u-BBPz7AfC.js → MagicLinkACHDetailsPage-BctRnNGY-DEYW76Ne.js} +1 -1
  99. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CG7yqz6X-BMCdaHEj.js → MagicLinkDomesticWireDetailsPage-UjO7TGNI-jNwBg57q.js} +1 -1
  100. package/dist/assets/{MagicLinkInternationalWireDetailsPage-PkDENzkO-CQ6x4AIV.js → MagicLinkInternationalWireDetailsPage-ex7nPlxc-Cv717ajH.js} +1 -1
  101. package/dist/assets/{MagicLinkSuccessPage-BS9ddhQA-C5O3E-9t.js → MagicLinkSuccessPage-D3ORpbmL-DiCQcMcn.js} +1 -1
  102. package/dist/assets/MagicLinkTitleSection-Di20DmsJ-Dweea4Ge.js +17 -0
  103. package/dist/assets/{MailingDetailsSection-Cx1s77og-9yNUNzNW.js → MailingDetailsSection-D7d7fV5j-Cs19YBt0.js} +1 -1
  104. package/dist/assets/{MeetingCalenderPopup-DNthMj1J-CXzPKXlg.js → MeetingCalenderPopup-C-Ca0puH-BuYhTZNY.js} +1 -1
  105. package/dist/assets/{Menu-CIjXHu3p-Cmalcvja.js → Menu-FcKyIIWS-5DaRICk4.js} +1 -1
  106. package/dist/assets/{MyBankConnectionsSettingsPage-D77Axpyj-Ai6fCxsi.js → MyBankConnectionsSettingsPage-B4NuqJVI-C5C-Tkbz.js} +13 -13
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-CnZZJsMY-C0kXy7DL.js → MyPendingActivationChargeCardListPage-C4eMpxAr-CvtH5135.js} +2 -2
  108. package/dist/assets/{MyProfileSettingsPage-iXkYV9nQ-CFM1P4s_.js → MyProfileSettingsPage-D0ALOEls-D9BtQ_Rr.js} +9 -9
  109. package/dist/assets/{NavBarWithPicker-D8Mx-0SS-Bw0IYR8x.js → NavBarWithPicker-Bu03gVw7-BBANsf51.js} +6 -6
  110. package/dist/assets/{NavigationArrow-DOvptaEZ-Bf-QMj_h.js → NavigationArrow-D7Eb-FlF-DFK_OGPD.js} +2 -2
  111. package/dist/assets/{NavigationDots-HukimDRY-D9Wp9S6c.js → NavigationDots-CFjUchuX-BbVX67wD.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-BlOMnHda-BUDWmT_6.js → NewGlobalMerchantPage-rhhm0o-f-DpBge9cX.js} +9 -9
  113. package/dist/assets/{NoDataChart-DyGfwFNo-CLQrerWr.js → NoDataChart-D5DKMqIS-BEaaizBY.js} +5 -5
  114. package/dist/assets/{NoDataTable-CJseWuln-Cygckdm_.js → NoDataTable-CPEKYH-4-ChRW7vff.js} +1 -1
  115. package/dist/assets/{NotFoundPage-UG00-OBF-CdRsamc6.js → NotFoundPage-Cfk62GPw-D375IgXA.js} +3 -3
  116. package/dist/assets/{NotificationSettingsPage-COyRIY7z-Dbyjp6us.js → NotificationSettingsPage-BZtsKPBO-AXQQWsyF.js} +19 -19
  117. package/dist/assets/NotificationsListConfig-DiJLl-YW-Be2lRZvs.js +1 -0
  118. package/dist/assets/{NotificationsPage-DNSiZHw_-Bj3dzmk_.js → NotificationsPage-CgABP7O1-BFGmWSCt.js} +39 -39
  119. package/dist/assets/{OpExByVendorPage-DmSYppgo-COjO13JB.js → OpExByVendorPage-CMEokGbw-5aOd51kS.js} +8 -8
  120. package/dist/assets/{OverlayContainerPage-DB42kFLd-pwzAAum1.js → OverlayContainerPage-9K5jaX8Z-DmDVJorJ.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-Cvpj3Rx7-B_X_y6oD.js → PandLWithForecastPage-IizA8WJN-C3H0uMBf.js} +10 -10
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CsldB-k7-f3lPV-NL.js → PaymentAccountSetupBillingAddressSection-D6cW0hFS-DO3Osr4s.js} +9 -9
  123. package/dist/assets/{PeoplePage-CZhJF86l-D_AEtRE4.js → PeoplePage-lD4QPAkF-28PZT7ir.js} +29 -29
  124. package/dist/assets/{PortfolioAllocationFormPage-9GM9dOrM-BT7Q_b3W.js → PortfolioAllocationFormPage-pynkIQMX-BFz04Oo7.js} +11 -11
  125. package/dist/assets/{PortfolioDetails-BmAHjCVw-VXiwUltt.js → PortfolioDetails-Cs8o8xzm-bO5l1T7Z.js} +22 -22
  126. package/dist/assets/{ProductsCarousel-DnbMUIHf-CDI2aSn4.js → ProductsCarousel-vPy7zk53-DjiVBmpl.js} +7 -7
  127. package/dist/assets/{PromoBaseCards-BC5rOok_-CryGPY7g.js → PromoBaseCards-CWGpTa57-Bj-bRm1l.js} +3 -3
  128. package/dist/assets/{QBOConnectionDialog-Ci5zNza5-BQubclq5.js → QBOConnectionDialog-66XnPKaW-8EXYy72U.js} +10 -10
  129. package/dist/assets/QBOSetupSection-T0b8qjoq-C3lySFCv.js +79 -0
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BfU-6jeB-CaKrx3Ua.js → ReimbursementApprovalRuleDetailPage-BSI9Lg6a-wX6i8H_B.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-M8JZSUOE-Bppvfizw.js → ReimbursementApprovalRulesPage-XxC6pXqt-Bzz5uq1t.js} +33 -33
  132. package/dist/assets/{ReimbursementDetailPage-D54RyrP4-azFGfBxO.js → ReimbursementDetailPage-BwtY21D5-BOkbylET.js} +15 -15
  133. package/dist/assets/ReimbursementPromoPage-CmO1DP-8-DpBTbSy4.js +112 -0
  134. package/dist/assets/{ReimbursementSetUpPage-DgZLqhEv-BzIv1edv.js → ReimbursementSetUpPage-CrCsRxAy-Bpo-Mk0A.js} +9 -9
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DdaqWcd4-DN-OLQO2.js → ReimbursementsBulkReviewDrawerPage-Ct-lvcR1-DC9qwxGH.js} +1 -1
  136. package/dist/assets/{ReloadCard-Brl4XdzV-K0dTBTCK.js → ReloadCard-CJfjUA_Q-iqgRrGxj.js} +5 -5
  137. package/dist/assets/{ReportTableViewSelector-BUwsckE_-BLN_c3vd.js → ReportTableViewSelector-CkuvvlJm-btt9uZlN.js} +9 -9
  138. package/dist/assets/{ReportsPage-B_p1fu0v-Bun8YYap.js → ReportsPage-BJqldqjR-p6MwUSO1.js} +5 -5
  139. package/dist/assets/{RevenueChart-Wm8uOprY-CA_G3fH9.js → RevenueChart-BUnSkoUN-CWdeY5GO.js} +8 -8
  140. package/dist/assets/{ReviewDetailsPage-KBHsF8bJ-BOtPONmS.js → ReviewDetailsPage-8I09Puca-B9BkrydV.js} +23 -23
  141. package/dist/assets/{ReviewOverlay-Dw0qj7TA-DnC9Iul5.js → ReviewOverlay-Czmj4HG0-BLH60HLe.js} +25 -25
  142. package/dist/assets/{RoleWithToolTip-XfK92pcD-CVavs0oL.js → RoleWithToolTip-CNQZHC7h-LUv0Jw-2.js} +4 -4
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BWlIEli5-DBxUekBG.js → ScheduleDetailsFixedAssetsPage-1Y1ZylI7-BDsLy1RB.js} +8 -8
  144. package/dist/assets/{ScheduleDetailsPage-C1xCJX3o-CIdul5TY.js → ScheduleDetailsPage-BcRuA_7y-mmMtrxsU.js} +3 -3
  145. package/dist/assets/{ScheduleSequenceTable-BprYPV37-Cl2LrpiB.js → ScheduleSequenceTable-DC75D2Dx-BSdJrIG_.js} +17 -17
  146. package/dist/assets/{ScreenRoutes-IGwGtJ0n.js → ScreenRoutes-DRpA2l4T.js} +62 -62
  147. package/dist/assets/{SetUpAccountSection-Dr1TfnG_-5hIyS4v7.js → SetUpAccountSection-CaLxl4l3-BRnWdFeV.js} +15 -15
  148. package/dist/assets/{SetUpDefaultSection-Be5NU_Em-B29pYDRY.js → SetUpDefaultSection-a6NTauck-C-i38hil.js} +7 -7
  149. package/dist/assets/{SignIn-CE6RYJOs-CikIV0Hp.js → SignIn-_ZPdER_K-0cn49L67.js} +1 -1
  150. package/dist/assets/{SignInScreen-CKme_DxL.js → SignInScreen-BGUfMUqo.js} +1 -1
  151. package/dist/assets/{SpendManagementListViewPage-BESddx6p-BLBMNf4m.js → SpendManagementListViewPage-Cvev9izU-BZzSvbIK.js} +4 -4
  152. package/dist/assets/{SpendManagementPerTabPage-BzOooEMS-B_EkXhuq.js → SpendManagementPerTabPage-CbjC0IBF-BthyUtDp.js} +54 -54
  153. package/dist/assets/{SpendManagementSection-CczioNZH-Dkreg46Z.js → SpendManagementSection-BKTkeRK6-DIa3Rn7O.js} +12 -12
  154. package/dist/assets/{SpendMgmtSetupAccountSection-CVFRXVhZ-C1yMf9ET.js → SpendMgmtSetupAccountSection-D8Yv-Jng-D3WoppPf.js} +20 -20
  155. package/dist/assets/{StatementItem-Cptht91w-wlq1UAzv.js → StatementItem-DSJvKpAv-DV7N47r3.js} +8 -8
  156. package/dist/assets/StatementsPage-Bhk6u845-C7EltSZm.js +58 -0
  157. package/dist/assets/{StatusSwitcher-B3gZD4Xk-D9MKHZL1.js → StatusSwitcher-CTDNbKqC-Bv4PZo8C.js} +4 -4
  158. package/dist/assets/{SubTabSwitcher-ymwMdmPQ-B96M_uuA.js → SubTabSwitcher-D33kV-tw-BTeEHhHa.js} +2 -2
  159. package/dist/assets/{SummaryCard-CVO_hW5i-CSuBy2D2.js → SummaryCard-tsJZnge3-DE5AVV4x.js} +1 -1
  160. package/dist/assets/{TaskManagementPage-C8FiHas2-D3TuTHD7.js → TaskManagementPage-BW9M6AQs-DyLPADr6.js} +19 -19
  161. package/dist/assets/{TimeRangeSwitcher-CPklgWMn-BOlT7YwO.js → TimeRangeSwitcher-CkXysnFa-BxX2v8T-.js} +2 -2
  162. package/dist/assets/{TimeframeSwitcher-Do-13K0C-BsEeofAL.js → TimeframeSwitcher-B-S09J4A-MdxeQVLH.js} +1 -1
  163. package/dist/assets/{TimeframeSwitcherWithToggle-CtVJiYRA-CJwvNUHv.js → TimeframeSwitcherWithToggle-B9Lo2-pD-oHueEdHK.js} +2 -2
  164. package/dist/assets/{TopExCard-CAbVMarX-BxCf3Zb4.js → TopExCard-DwP8Cppq-BA7R-fYL.js} +5 -5
  165. package/dist/assets/{TopExDetailPage-CN49s925-DmkXyXHQ.js → TopExDetailPage-CIMSDSxd-DWJg2Rhe.js} +8 -8
  166. package/dist/assets/{TransactionDetailPage-Q9XC1VgP-BVFfsWva.js → TransactionDetailPage-rwzAZT-Q-kE9Vj_Gw.js} +34 -34
  167. package/dist/assets/{TransactionList-Pn-voMDJ-DGAqnABY.js → TransactionList-CFYj7bYL-GEiFuum0.js} +12 -12
  168. package/dist/assets/{TransactionListBig-D4U1VfMP-DdNYiwzY.js → TransactionListBig-BidYBgz3-mdU3i6TS.js} +24 -24
  169. package/dist/assets/{TransactionListPage-Dcr5n_hs-DFnT8O1f.js → TransactionListPage-CImIYabg-BI9Hn9ZN.js} +3 -3
  170. package/dist/assets/{TransactionVendorDetailPage-DxDXndQ6-D-9aHV7e.js → TransactionVendorDetailPage-LzIzQGZ1-NlBjctZ1.js} +6 -6
  171. package/dist/assets/TransferDrawerPage-CztFCYxm-CBCCBWte.js +362 -0
  172. package/dist/assets/{TreasuryOverviewPage-BDYqKBrS-_o9rtQse.js → TreasuryOverviewPage-E5E5Gr3g-D2CrCBTV.js} +55 -57
  173. package/dist/assets/{TreasuryPromoPage-CTkEFZ57-BquHIsOx.js → TreasuryPromoPage-D2F4Y8gV-CYlJ3kU9.js} +20 -19
  174. package/dist/assets/{TreasurySetupPage-KI_5DQnD-DtRdjcAX.js → TreasurySetupPage-Dxa4l6Ec-D8eLBdo9.js} +8 -8
  175. package/dist/assets/TreasuryStatementsPage-DEhWu0S0-CbB6wAo4.js +58 -0
  176. package/dist/assets/TreasuryTaxLetterPage-CEMU2CI9-BGxkDpux.js +58 -0
  177. package/dist/assets/TreasuryTransferOrReviewPage-BfReLw_V-7MLhWFB6.js +506 -0
  178. package/dist/assets/{TrendChart-Ck4SVLtn-CXi992Ul.js → TrendChart-D1gtjDe3-DWpkP03z.js} +4 -4
  179. package/dist/assets/{TrendWithTransactions-BiWHzfIf-h_PZkaTI.js → TrendWithTransactions-BslpnJTN-CCs7L3oP.js} +7 -7
  180. package/dist/assets/{UncategorizedAccountsMappingPage-BEbiQMPB-BE67gz9h.js → UncategorizedAccountsMappingPage-Brm7fcuy-1WMghiUv.js} +9 -9
  181. package/dist/assets/{UnitIntegrationPage-DghvgER8-DUjp5v9z.js → UnitIntegrationPage-DhiEmm9g-CyoCc7wN.js} +5 -5
  182. package/dist/assets/{UploadAdditionalDocumentOverlay-BasudeQ3-WkwupeXg.js → UploadAdditionalDocumentOverlay-Dq1ToFCn-BQjCguyB.js} +2 -2
  183. package/dist/assets/Vendor2FAPopup-Brg14-Cw-BfoPqsuP.js +1 -0
  184. package/dist/assets/{VendorACHDetailsPage-DYwQERlH-u-_TPYjg.js → VendorACHDetailsPage-mk0vAyqE-BSy-kLup.js} +1 -1
  185. package/dist/assets/{VendorDetailPage-D-Mcnqod-DRjHRl2g.js → VendorDetailPage-CRhCXEsq-qmv0EtV4.js} +13 -13
  186. package/dist/assets/{VendorDomesticWireDetailsPage-sx958z_p-DGjTvY13.js → VendorDomesticWireDetailsPage-DhWkYV9N-CfYo0l4g.js} +1 -1
  187. package/dist/assets/{VendorFiling1099EditablePage-D0AAdqa3-Dbu0eezS.js → VendorFiling1099EditablePage-Bp5FgSiJ-DJr2e5wU.js} +32 -32
  188. package/dist/assets/{VendorFirstReviewPage-DS7Qb6O_-CtRrPKLj.js → VendorFirstReviewPage-XHOyQIOp-D3qnz2ww.js} +16 -16
  189. package/dist/assets/{VendorInternationalWireDetailsPage-CUw0lbm5-Ds_S2bsN.js → VendorInternationalWireDetailsPage-B13qu8u3-XGuYC0bw.js} +12 -12
  190. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-2BGGr3aV-Cm02ZRRr.js → VendorInternationalWireSwiftDetailsPage-Dtgusj3r-lncQfKmQ.js} +1 -1
  191. package/dist/assets/{VendorsAccountsSection-D5-r6xWp-Bb2HvHxE.js → VendorsAccountsSection-B-qorJ8x-D7fZrn7B.js} +4 -4
  192. package/dist/assets/VerifyDevice-CBO1Uzra-0Sdb0n5n.js +67 -0
  193. package/dist/assets/{WarningsDrawerPage-BEuiclea-DGE4v0Hu.js → WarningsDrawerPage-B4Nic3gX-jDmAJMW0.js} +10 -10
  194. package/dist/assets/{ZeniAccountDetailPage-DvUTbTBC-B58XYLhH.js → ZeniAccountDetailPage-IDGYSZVs-DmZJYRcm.js} +15 -15
  195. package/dist/assets/{ZeniAccountListViewPage-BpAa6XZc-sSA5NycY.js → ZeniAccountListViewPage-IlPP8Yit-dH-QXkwU.js} +26 -26
  196. package/dist/assets/ZeniAccountNavBarPieces-2j-ZQRIF-DhfLCa9V.js +14 -0
  197. package/dist/assets/{ZeniAccountPromoPage-BDzkOGum-Ddw-sKos.js → ZeniAccountPromoPage-BhFf42Fz-TRhbuR-7.js} +15 -15
  198. package/dist/assets/{ZeniAccountSetupPage-B6ExD1mo-DtoMVKCB.js → ZeniAccountSetupPage-DcYDO3x8-DOdNLBlO.js} +4 -4
  199. package/dist/assets/{ZeniCopyright-BcpJPWHG-aqipC7iB.js → ZeniCopyright-C4Ze2E8o-C33E_V5I.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-BQDqgNKJ-D3Rx0t-C.js → ZeniTransferAmountSlider-DFB0ntiR-IB41czFT.js} +2 -2
  201. package/dist/assets/{analyticsHelper-DxAemT72.js → analyticsHelper-BuNdZ9jh.js} +1 -1
  202. package/dist/assets/{analyticsHelper-BP6myd2z-IG6G9Q9p.js → analyticsHelper-CsfdC0kT-BpVlkMRS.js} +1 -1
  203. package/dist/assets/{chartTypes-BU-pRq_m-BNABrIt4.js → chartTypes-CPj7oOMJ-Cv2ANOse.js} +1 -1
  204. package/dist/assets/{commonDimensions-BpaqG_u8-bPBJ7BtU.js → commonDimensions-CKs-7p-V-CmlPem1Z.js} +1 -1
  205. package/dist/assets/{detailCommon-dG26UIR2-Du_tf-0V.js → detailCommon-BJ8iCchG-CdCS4VPM.js} +6 -6
  206. package/dist/assets/{downloadPdf-B5Tb5dp_-C4780vVv.js → downloadPdf-hPck-AA1-CD5ZG46J.js} +1 -1
  207. package/dist/assets/{index-CbZTLtvs.js → index-CyJdCOlu.js} +4480 -4253
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-DOBKyY4b-y1aUwiix.js → mapLoadingInProgressToTreeNode-R394S2in-pIplKgrn.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Bja0zC1h-BFJxO5iY.js → mapSectionWithAcOnlyToTreeNode-B20NECa8-DENXzcIZ.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-BnX1Qa3P-bqHYhPP-.js → mapSpacerToTreeNode-CLYF1Foh-BkgQTnh2.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-BTMBlZfj-DW7k0pyS.js → mapTimeframeBalancesToTreeNode-B-iRb2_j-BOYVHL5U.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-DRU0rg28-CTqFcFWx.js → mapTimeframeBalancesToTreeNode-fLAswzPX-uvgKr4WV.js} +1 -1
  213. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CafUd-oV-M5D8OIRq.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CTmIxkdn-rpNZ4fKa.js} +1 -1
  214. package/dist/assets/{play-icon-CwzVvYsB-DjoVXxSh.js → play-icon-BZYr9mDs-DofqQFSd.js} +1 -1
  215. package/dist/assets/{toCOABalancesWithID-CTIZoP69-DhP0PBP-.js → toCOABalancesWithID-Dsa-tGTi-Bmzakp6x.js} +1 -1
  216. package/dist/assets/{toChartData-yWFIkpKX-iU9RbLET.js → toChartData-Cp_80Bi6-Dfd3dSx4.js} +1 -1
  217. package/dist/assets/{treasuryColorHelper-I90KNlm_-OeAa3kjr.js → treasuryColorHelper-CnKoJBRW-CDwAxole.js} +1 -1
  218. package/dist/assets/{uploadAttachment-BIyTb3QF-BJprEnkX.js → uploadAttachment-Cx3LGzsg-DDC6BFL5.js} +32 -32
  219. package/dist/assets/{uploadReceipts-CB79ouJi-DqMpy5A5.js → uploadReceipts-CwjPukNh-BNp5wSMb.js} +1 -1
  220. package/dist/index.html +1 -1
  221. package/package.json +4 -4
  222. package/dist/assets/AccountInfoPage-vDWC6AMf-Yo7vRxFj.js +0 -18
  223. package/dist/assets/ApAgingDetailPage-BZuNGMx_-Hc9KiYIG.js +0 -46
  224. package/dist/assets/AppBasePage-l_TUUps8-BdZGta7w.js +0 -68
  225. package/dist/assets/ChargeCardPromoPage-Dp01F4cn-BGnAP75r.js +0 -222
  226. package/dist/assets/CompleteProfile-D6jHfaC2-BAjYhWRD.js +0 -36
  227. package/dist/assets/CustomerOnboardingContainerPage-BhS5NmVt-ePZ8Lp4k.js +0 -1
  228. package/dist/assets/EditPeoplePage-DKJNf1oJ-DT58GFah.js +0 -55
  229. package/dist/assets/FeaturePreviewPage-BRqSxk9H-C5uU9wQY.js +0 -11
  230. package/dist/assets/HelpButton-ewiNuwlj-DtcvmbFW.js +0 -28
  231. package/dist/assets/InsightsSection-BZNwdoG4-DFSwQ90v.js +0 -27
  232. package/dist/assets/InvitePeoplePage-CJ4KyyxI-DVCbKs7n.js +0 -12
  233. package/dist/assets/InvoiceUploadSection-Dy_H9a8Y-Dv2LW-0K.js +0 -140
  234. package/dist/assets/LabeledAddressValue-BVpwGdA2-CIuUAEcq.js +0 -49
  235. package/dist/assets/LabeledAddressValueField-Eka4fXzu-BBxiflEl.js +0 -45
  236. package/dist/assets/LabeledDocumentField-BoraKtTI-BrK0QicB.js +0 -41
  237. package/dist/assets/LabeledDropDownFormattedTextField-elNvxcOB-BMj7fmh2.js +0 -59
  238. package/dist/assets/LinkJETransactionPage-BpQXs8JH-Bjzy2XV-.js +0 -98
  239. package/dist/assets/MagicLinkTitleSection-CBYkZ8RD-OqnDMduv.js +0 -17
  240. package/dist/assets/NotificationsListConfig-BR7QDiGp-C9AjhN7a.js +0 -1
  241. package/dist/assets/QBOSetupSection-BTOCiyES-cJZzoBZX.js +0 -79
  242. package/dist/assets/ReimbursementPromoPage-B2uVT4md-0og62qKp.js +0 -112
  243. package/dist/assets/StatementsPage-Bk_DWBsO-oO_5pc2Z.js +0 -58
  244. package/dist/assets/TransferDrawerPage-CuQct69A-CI2Fs3ur.js +0 -362
  245. package/dist/assets/TreasuryStatementsPage-DB1KkguP-Bjz83PUL.js +0 -58
  246. package/dist/assets/TreasuryTaxLetterPage-DbHBl6-e-BaDM3AA5.js +0 -58
  247. package/dist/assets/TreasuryTransferOrReviewPage-CLJ2x2M1-C0G9A0-P.js +0 -506
  248. package/dist/assets/Vendor2FAPopup-BVYQk2Yt-CFXnylIF.js +0 -1
  249. package/dist/assets/ZeniAccountNavBarPieces-CBRZuAIU-8yMtgWMI.js +0 -14
@@ -1,8 +1,8 @@
1
- import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 as ei,o as i,T as we,gn as ti,C as R,ho as ii,f as Ne,c as oi,z as et,bM as tt,aj as it,dj as ot,bU as st,j7 as at,q as w,K as si,j8 as ai,dh as ce,ae as ri,Q as ni,h as rt,g as S,v as li,bg as z,ch as ue,fA as he,j9 as pe,w as nt,d3 as lt,dr as V,c_ as dt,fJ as di,e as X,hC as ci,m as H,eZ as ui,a8 as ye,ap as fe,ja as hi,bd as ct,jb as Ie,aR as pi}from"./index-CbZTLtvs.js";import{b as x,n as r,j as O}from"./vendor-CnQcJ2Lu.js";import{k as fi}from"./SubTabSwitcher-ymwMdmPQ-B96M_uuA.js";import{d as ut}from"./useLongPress-GCK2COYQ-gxLtL5O4.js";import{A as ht,t as pt,a as ft,E as mt,L as gt,I as xt}from"./NotificationsListConfig-BR7QDiGp-C9AjhN7a.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";function mi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:u}){const h=v(),f=Q(),m=x.useCallback(b=>{d(b.id)},[d]),p=x.useCallback(b=>{u(b.id)},[u]);return e.length===0?null:t.jsxs(gi,{windowSize:h,children:[t.jsx(ii,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${f.colors.grey3}`},onTabChange:m}),t.jsx(fi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:p})]})}const gi=r.div`
1
+ import{u as Q,e as v,a as Zt,M as B,c7 as Xt,j as t,aW as Qt,l as g,F as Kt,a4 as ei,o as i,T as we,gq as ti,C as R,hr as ii,v as Ne,m as oi,y as et,bP as tt,aj as it,dm as ot,bX as st,ja as at,q as w,k as si,jb as ai,dk as ce,ae as ri,b as ni,h as rt,c as S,d as li,bg as z,ck as ue,fC as he,jc as pe,Y as nt,d6 as lt,du as H,d1 as dt,fL as di,n as K,hF as ci,B as V,e$ as ui,a8 as ye,ap as fe,jd as hi,bd as ct,je as Ie,aR as pi}from"./index-CyJdCOlu.js";import{b as x,n as r,j as O}from"./vendor-CnQcJ2Lu.js";import{k as fi}from"./SubTabSwitcher-D33kV-tw-BTeEHhHa.js";import{d as ut}from"./useLongPress-GCK2COYQ-gxLtL5O4.js";import{A as ht,t as pt,a as ft,E as mt,L as gt,I as xt}from"./NotificationsListConfig-DiJLl-YW-Be2lRZvs.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";function mi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:u}){const h=v(),f=Q(),m=x.useCallback(b=>{d(b.id)},[d]),p=x.useCallback(b=>{u(b.id)},[u]);return e.length===0?null:t.jsxs(gi,{windowSize:h,children:[t.jsx(ii,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${f.colors.grey3}`},onTabChange:m}),t.jsx(fi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:p})]})}const gi=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
5
- `,{common:{timeStrings:bt,strings:xi},dateFormat:Te,timeFormat:bi}=P.getLocalizedStrings(),wt=["today","yesterday","last_7_days_this_month","earlier_this_month","earlier_that_month"],ne=e=>e.type.concat(xi.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&&hi(o,0)?o.format(bi.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:wi}}}}=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 f=g.dateNow().subtract(h,"month").startOf("M").startOf("d"),m=g.dateNow().subtract(h,"month").endOf("M").endOf("d");h++,a=ie(o,f,m),o=a.remainingData,s.push({start:f,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}},yi=e=>{const{thread:o}=e,{newRepliesAdded:s,newCommentAdded:a}=wi;return o.comments.length===1?a:s},jt=new R(3,2,1,1,1),kt=new R(w[8],w[6],35,35,w[6]),le={lineClamp:jt,sectionWidth:kt},{common:{texts:ze,timeStrings:$i,strings:ee},commentsAndNotifications:{notifications:{strings:{newMessage:ji},actionStrings:{comments:{newCommentAdded:ki}}}}}=P.getLocalizedStrings(),Si=({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:f}=e,{setRequestToOpenThread:m}=x.useContext(di),p=u!=null?"read":"unread",{metadata:{url:b,companyId:k,entityType:B},id:G}=f;return t.jsxs(Ri,{readStatus:p,isClickable:!!b,isHighlighted:s,style:a,onClick:()=>{b&&(n(d,g.toZeniUrl(b),p),(f.metadata.tab==="bill"||f.metadata.tab==="reimbursement")&&m({threadId:G,companyId:k,entityType:B})),f.metadata.application!=="cockpit"&&c.trackCommentActivity("notification","clicked",f.metadata.companyName,l.controllersList.controllers.map(T=>V(T)),f.resolved?"resolved":"open",{name:dt(l.loggedInUser),email:l.loggedInUser?.userEmail??""},"db notification")},children:[t.jsx(vi,{notificationData:e,users:o}),t.jsx(Ni,{...e}),t.jsx(Ti,{timestamp:h,readStatus:p})]})},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:ji}):t.jsx($e,{children:n.body.content.map(l=>{switch(l.type){case"paragraph":return l.children.map((c,d)=>{if(Li(c)){const h=o.find(f=>f.userId===c.id);return c.id?t.jsx(Ci,{notificationData:e,user:h},`${c.id}${ee.underscore}${d}`):null}if(Ii(c)){const h=ci(c.url)??c.url;return t.jsx(Bi,{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(Di,{children:u},d)),c.italic===!0&&(u=t.jsx(Ai,{children:u},d)),c.strikethrough===!0&&(u=t.jsx(Oi,{children:u},d)),c.code===!0&&(u=t.jsx(Mi,{children:u},d)),t.jsx(Pi,{children:u},d)});default:return t.jsx($e,{children:ki})}})})},vi=({notificationData:e,users:o})=>{const s=v();return t.jsx(Fi,{windowSize:s,children:t.jsx(St,{notificationData:e,users:o})})},Ci=({notificationData:e,user:o})=>{const{inboxNotification:{readAt:s}}=e,a=s!=null?"read":"unread";let n=t.jsxs(_e,{className:"userText",readStatus:a,children:[ee.atTheRate,ze.user,ee.space]});if(o!=null){const l=V(o,!1);n=t.jsx(t.Fragment,{children:t.jsxs(_e,{className:"userText",readStatus:a,children:[ee.atTheRate,l||ze.user,ee.space]})})}return n},vt=e=>{const o=yi(e);return t.jsx(t.Fragment,{children:o})},Ni=e=>{const o=v();return t.jsx(_i,{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(Gi,{isNewNotification:a===$i.justNow,children:a}),t.jsx(Ui,{readStatus:s})]})},Ti=e=>{const o=v();return t.jsx(zi,{windowSize:o,children:t.jsx(Ct,{...e})})};function Li(e){return"type"in e&&e.type==="mention"}function Ii(e){return"type"in e&&e.type==="link"}const Ri=r.div`
5
+ `,{common:{timeStrings:bt,strings:xi},dateFormat:Te,timeFormat:bi}=B.getLocalizedStrings(),wt=["today","yesterday","last_7_days_this_month","earlier_this_month","earlier_that_month"],ne=e=>e.type.concat(xi.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&&hi(o,0)?o.format(bi.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:wi}}}}=B.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 f=g.dateNow().subtract(h,"month").startOf("M").startOf("d"),m=g.dateNow().subtract(h,"month").endOf("M").endOf("d");h++,a=ie(o,f,m),o=a.remainingData,s.push({start:f,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}},yi=e=>{const{thread:o}=e,{newRepliesAdded:s,newCommentAdded:a}=wi;return o.comments.length===1?a:s},jt=new R(3,2,1,1,1),kt=new R(w[8],w[6],35,35,w[6]),le={lineClamp:jt,sectionWidth:kt},{common:{texts:ze,timeStrings:$i,strings:ee},commentsAndNotifications:{notifications:{strings:{newMessage:ji},actionStrings:{comments:{newCommentAdded:ki}}}}}=B.getLocalizedStrings(),Si=({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:f}=e,{setRequestToOpenThread:m}=x.useContext(di),p=u!=null?"read":"unread",{metadata:{url:b,companyId:k,entityType:P},id:G}=f;return t.jsxs(Ri,{readStatus:p,isClickable:!!b,isHighlighted:s,style:a,onClick:()=>{b&&(n(d,g.toZeniUrl(b),p),(f.metadata.tab==="bill"||f.metadata.tab==="reimbursement")&&m({threadId:G,companyId:k,entityType:P})),f.metadata.application!=="cockpit"&&c.trackCommentActivity("notification","clicked",f.metadata.companyName,l.controllersList.controllers.map(T=>H(T)),f.resolved?"resolved":"open",{name:dt(l.loggedInUser),email:l.loggedInUser?.userEmail??""},"db notification")},children:[t.jsx(vi,{notificationData:e,users:o}),t.jsx(Ni,{...e}),t.jsx(Ti,{timestamp:h,readStatus:p})]})},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:ji}):t.jsx($e,{children:n.body.content.map(l=>{switch(l.type){case"paragraph":return l.children.map((c,d)=>{if(Li(c)){const h=o.find(f=>f.userId===c.id);return c.id?t.jsx(Ci,{notificationData:e,user:h},`${c.id}${ee.underscore}${d}`):null}if(Ii(c)){const h=ci(c.url)??c.url;return t.jsx(Pi,{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(Di,{children:u},d)),c.italic===!0&&(u=t.jsx(Ai,{children:u},d)),c.strikethrough===!0&&(u=t.jsx(Oi,{children:u},d)),c.code===!0&&(u=t.jsx(Mi,{children:u},d)),t.jsx(Bi,{children:u},d)});default:return t.jsx($e,{children:ki})}})})},vi=({notificationData:e,users:o})=>{const s=v();return t.jsx(Fi,{windowSize:s,children:t.jsx(St,{notificationData:e,users:o})})},Ci=({notificationData:e,user:o})=>{const{inboxNotification:{readAt:s}}=e,a=s!=null?"read":"unread";let n=t.jsxs(_e,{className:"userText",readStatus:a,children:[ee.atTheRate,ze.user,ee.space]});if(o!=null){const l=H(o,!1);n=t.jsx(t.Fragment,{children:t.jsxs(_e,{className:"userText",readStatus:a,children:[ee.atTheRate,l||ze.user,ee.space]})})}return n},vt=e=>{const o=yi(e);return t.jsx(t.Fragment,{children:o})},Ni=e=>{const o=v();return t.jsx(_i,{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(Gi,{isNewNotification:a===$i.justNow,children:a}),t.jsx(Ui,{readStatus:s})]})},Ti=e=>{const o=v();return t.jsx(zi,{windowSize:o,children:t.jsx(Ct,{...e})})};function Li(e){return"type"in e&&e.type==="mention"}function Ii(e){return"type"in e&&e.type==="link"}const Ri=r.div`
6
6
  display: flex;
7
7
  flex-direction: row;
8
8
  align-items: center;
@@ -54,21 +54,21 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
54
54
  }
55
55
  }
56
56
  `:null};
57
- `,zi=r(H)`
57
+ `,zi=r(V)`
58
58
  width: ${e=>e.windowSize==="small"?"unset":"10%"};
59
59
  gap: ${i.sp2};
60
60
  display: flex;
61
61
  align-items: center;
62
62
  flex-shrink: 0;
63
63
  justify-content: end;
64
- `,_i=r(X)`
64
+ `,_i=r(K)`
65
65
  color: inherit;
66
66
  display: -webkit-box;
67
67
  overflow: hidden;
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
- `,Di=r.strong``,Mi=r.code``,Ai=r.em``,Oi=r.s``,Pi=r.span``,Bi=r.a``,Fi=r(X)`
71
+ `,Di=r.strong``,Mi=r.code``,Ai=r.em``,Oi=r.s``,Bi=r.span``,Pi=r.a``,Fi=r(K)`
72
72
  color: inherit;
73
73
  display: -webkit-box;
74
74
  overflow: hidden;
@@ -89,7 +89,7 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
89
89
  border-radius: ${i.sp2};
90
90
  flex-shrink: 0;
91
91
  background-color: ${e=>e.readStatus==="unread"?S.info:"transparent"};
92
- `,je={emptyRowItemSectionWidth:new R(120,200,250,330,400),emptyLastRowItemSectionWidth:new R(w[6],50,60,w[11],120)},Ei=()=>{const e=v();return t.jsxs(Vi,{windowSize:e,children:[t.jsx(ke,{windowSize:e,isLastItem:!1,children:t.jsx(z,{width:je.emptyRowItemSectionWidth.value(e),height:w[4]})}),t.jsx(ke,{windowSize:e,isLastItem:!1,children:t.jsx(z,{width:je.emptyRowItemSectionWidth.value(e),height:w[4]})}),t.jsx(ke,{windowSize:e,isLastItem:!0,children:t.jsx(z,{width:je.emptyLastRowItemSectionWidth.value(e),height:18})})]})},Vi=r.div`
92
+ `,je={emptyRowItemSectionWidth:new R(120,200,250,330,400),emptyLastRowItemSectionWidth:new R(w[6],50,60,w[11],120)},Ei=()=>{const e=v();return t.jsxs(Hi,{windowSize:e,children:[t.jsx(ke,{windowSize:e,isLastItem:!1,children:t.jsx(z,{width:je.emptyRowItemSectionWidth.value(e),height:w[4]})}),t.jsx(ke,{windowSize:e,isLastItem:!1,children:t.jsx(z,{width:je.emptyRowItemSectionWidth.value(e),height:w[4]})}),t.jsx(ke,{windowSize:e,isLastItem:!0,children:t.jsx(z,{width:je.emptyLastRowItemSectionWidth.value(e),height:18})})]})},Hi=r.div`
93
93
  display: flex;
94
94
  align-items: center;
95
95
  justify-content: space-between;
@@ -120,7 +120,7 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
120
120
  flex: 1 1 auto;
121
121
  justify-content: ${e=>e.isLastItem?"flex-end":"start"};
122
122
  width: ${e=>e.isLastItem?"10%":kt.valuePercentage(e.windowSize)};
123
- `,Hi=()=>{const e=v();return t.jsxs(Yi,{windowSize:e,children:[t.jsxs(Wi,{children:[t.jsx(z,{width:180,height:w[4]}),t.jsx(z,{width:180,height:w[4]})]}),t.jsx(Ji,{children:t.jsx(z,{width:60,height:18})})]})},Yi=r.div`
123
+ `,Vi=()=>{const e=v();return t.jsxs(Yi,{windowSize:e,children:[t.jsxs(Wi,{children:[t.jsx(z,{width:180,height:w[4]}),t.jsx(z,{width:180,height:w[4]})]}),t.jsx(Ji,{children:t.jsx(z,{width:60,height:18})})]})},Yi=r.div`
124
124
  display: flex;
125
125
  align-items: baseline;
126
126
  justify-content: space-between;
@@ -158,12 +158,12 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
158
158
  align-items: baseline;
159
159
  flex-direction: row;
160
160
  justify-content: end;
161
- `,qi=()=>v()==="small"?t.jsx(Hi,{}):t.jsx(Ei,{}),Zi={marginLeft:new R(w[2],w[5],w[7])},Ki=()=>t.jsxs(Qi,{children:[t.jsx(Se,{numberOfRows:5}),t.jsx(Se,{numberOfRows:3})]}),Se=({numberOfRows:e})=>{const o=v();return t.jsxs(Xi,{windowSize:o,children:[t.jsx(to,{children:t.jsx(z,{width:w[12],height:Ne.standardRegular.lineHeightValue})}),t.jsx(eo,{children:[...Array(e)].map(s=>t.jsx(qi,{},ce()))})]})},Qi=r.div`
161
+ `,qi=()=>v()==="small"?t.jsx(Vi,{}):t.jsx(Ei,{}),Zi={marginLeft:new R(w[2],w[5],w[7])},Xi=()=>t.jsxs(Qi,{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(to,{children:t.jsx(z,{width:w[12],height:Ne.standardRegular.lineHeightValue})}),t.jsx(eo,{children:[...Array(e)].map(s=>t.jsx(qi,{},ce()))})]})},Qi=r.div`
162
162
  display: block;
163
163
  min-height: 100%;
164
164
  flex-direction: column;
165
165
  width: 100%;
166
- `,Xi=r.div`
166
+ `,Ki=r.div`
167
167
  display: flex;
168
168
  flex-direction: column;
169
169
  margin-bottom: ${i.sp5};
@@ -175,7 +175,7 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
175
175
  `,to=r.div`
176
176
  display: flex;
177
177
  padding: ${i.sp3} ${i.sp0};
178
- `,io=({notificationData:e,users:o,isSelectionMode:s=!1,isHighlighted:a=!1,style:n,onNotificationTileClick:l,onNotificationTileLongPress:c})=>{const d=nt(),u=lt().analytics,{inboxNotification:{id:h,readAt:f,notifiedAt:m},thread:p}=e,b=f!=null?"read":"unread",k=p.metadata.url,B=x.useCallback(()=>{c?.()},[c]),G=x.useCallback(L=>{L.stopPropagation(),L.cancelable&&L.preventDefault(),s?c?.():k!=null&&(l(h,g.toZeniUrl(p.metadata.url),b),p.metadata.application!=="cockpit"&&u.trackCommentActivity("notification","clicked",p.metadata.companyName,d.controllersList.controllers.map(y=>V(y)),p.resolved?"resolved":"open",{name:dt(d.loggedInUser),email:d.loggedInUser?.userEmail??""},"db notification"))},[s,k,c,l,h,p.metadata.url,p.metadata.application,b,d.controllersList,d.loggedInUser,u,p.metadata.companyName,p.resolved]),T=ut({onLongPress:B},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(ro,{readStatus:b,isClickable:k!=null,isHighlighted:a,style:n,...T,onClick:G,children:[t.jsxs(lo,{children:[t.jsx(oo,{notificationData:e,users:o}),t.jsx(so,{...e})]}),t.jsx(ao,{timestamp:m,readStatus:b})]})},oo=({notificationData:e,users:o})=>t.jsx(Nt,{children:t.jsx(St,{notificationData:e,users:o})}),so=e=>t.jsx(Nt,{children:t.jsx(vt,{...e})}),ao=e=>t.jsx(no,{children:t.jsx(Ct,{...e})}),ro=r.div`
178
+ `,io=({notificationData:e,users:o,isSelectionMode:s=!1,isHighlighted:a=!1,style:n,onNotificationTileClick:l,onNotificationTileLongPress:c})=>{const d=nt(),u=lt().analytics,{inboxNotification:{id:h,readAt:f,notifiedAt:m},thread:p}=e,b=f!=null?"read":"unread",k=p.metadata.url,P=x.useCallback(()=>{c?.()},[c]),G=x.useCallback(L=>{L.stopPropagation(),L.cancelable&&L.preventDefault(),s?c?.():k!=null&&(l(h,g.toZeniUrl(p.metadata.url),b),p.metadata.application!=="cockpit"&&u.trackCommentActivity("notification","clicked",p.metadata.companyName,d.controllersList.controllers.map(y=>H(y)),p.resolved?"resolved":"open",{name:dt(d.loggedInUser),email:d.loggedInUser?.userEmail??""},"db notification"))},[s,k,c,l,h,p.metadata.url,p.metadata.application,b,d.controllersList,d.loggedInUser,u,p.metadata.companyName,p.resolved]),T=ut({onLongPress:P},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(ro,{readStatus:b,isClickable:k!=null,isHighlighted:a,style:n,...T,onClick:G,children:[t.jsxs(lo,{children:[t.jsx(oo,{notificationData:e,users:o}),t.jsx(so,{...e})]}),t.jsx(ao,{timestamp:m,readStatus:b})]})},oo=({notificationData:e,users:o})=>t.jsx(Nt,{children:t.jsx(St,{notificationData:e,users:o})}),so=e=>t.jsx(Nt,{children:t.jsx(vt,{...e})}),ao=e=>t.jsx(no,{children:t.jsx(Ct,{...e})}),ro=r.div`
179
179
  display: flex;
180
180
  flex-direction: row;
181
181
  align-items: baseline;
@@ -228,7 +228,7 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
228
228
  }
229
229
  }
230
230
  `:null};
231
- `,no=r(H)`
231
+ `,no=r(V)`
232
232
  width: 25%;
233
233
  gap: ${i.sp2};
234
234
  display: flex;
@@ -239,12 +239,12 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
239
239
  display: flex;
240
240
  flex-direction: column;
241
241
  gap: ${i.sp2};
242
- `,Nt=r(X)`
242
+ `,Nt=r(K)`
243
243
  color: inherit;
244
244
  display: -webkit-box;
245
245
  overflow: hidden;
246
246
  -webkit-box-orient: vertical;
247
- `,Tt=e=>v()==="small"?t.jsx(io,{...e}):t.jsx(Si,{...e}),{common:{all:De}}=P.getLocalizedStrings(),co=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=Q(),{getValues:u}=ue(),h=u(s);return t.jsx(uo,{style:n,children:t.jsx(he,{mode:a,checkBoxes:[{label:t.jsx(ho,{htmlFor:`${s}.${De.toLocaleLowerCase()}`,style:{color:d.colors.primary},children:me(e)}),value:De.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((f,m)=>{const p=m===0,b=e.notifications.length-1===m;return{label:t.jsx(Tt,{notificationData:f,users:o,style:{borderTopLeftRadius:p?i.sp2:void 0,borderTopRightRadius:p?i.sp2:void 0,borderBottomLeftRadius:b?i.sp2:void 0,borderBottomRightRadius:b?i.sp2:void 0},isHighlighted:h?.includes(f.inboxNotification.id)===!0,onNotificationTileClick:c}),value:f.inboxNotification.id,defaultChecked:!1,groupLabel:!1}})],name:s,isDisabled:l,style:{width:"100%"},checkBoxStyle:{padding:i.sp3},labelCheckBoxStyle:{padding:i.sp3}})})},uo=r.div`
247
+ `,Tt=e=>v()==="small"?t.jsx(io,{...e}):t.jsx(Si,{...e}),{common:{all:De}}=B.getLocalizedStrings(),co=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=Q(),{getValues:u}=ue(),h=u(s);return t.jsx(uo,{style:n,children:t.jsx(he,{mode:a,checkBoxes:[{label:t.jsx(ho,{htmlFor:`${s}.${De.toLocaleLowerCase()}`,style:{color:d.colors.primary},children:me(e)}),value:De.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((f,m)=>{const p=m===0,b=e.notifications.length-1===m;return{label:t.jsx(Tt,{notificationData:f,users:o,style:{borderTopLeftRadius:p?i.sp2:void 0,borderTopRightRadius:p?i.sp2:void 0,borderBottomLeftRadius:b?i.sp2:void 0,borderBottomRightRadius:b?i.sp2:void 0},isHighlighted:h?.includes(f.inboxNotification.id)===!0,onNotificationTileClick:c}),value:f.inboxNotification.id,defaultChecked:!1,groupLabel:!1}})],name:s,isDisabled:l,style:{width:"100%"},checkBoxStyle:{padding:i.sp3},labelCheckBoxStyle:{padding:i.sp3}})})},uo=r.div`
248
248
  display: flex;
249
249
  align-items: center;
250
250
  width: 100%;
@@ -253,7 +253,7 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,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(),po=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=Q(),{getValues:u}=ue(),h=u(s),f=x.useRef([]);return x.useEffect(()=>{f.current=f.current.slice(0,e.notifications.length)},[e.notifications.length]),t.jsx(fo,{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,p)=>{const b=p===0,k=e.notifications.length-1===p;return{label:t.jsx(Ae,{ref:B=>f.current[p]=B,htmlFor:`${s}.${m.inboxNotification.id}`,style:{padding:i.sp0},children:t.jsx(mo,{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:()=>{f.current[p]?.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}})})},fo=r.div`
256
+ `,{common:{all:Me}}=B.getLocalizedStrings(),po=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=Q(),{getValues:u}=ue(),h=u(s),f=x.useRef([]);return x.useEffect(()=>{f.current=f.current.slice(0,e.notifications.length)},[e.notifications.length]),t.jsx(fo,{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,p)=>{const b=p===0,k=e.notifications.length-1===p;return{label:t.jsx(Ae,{ref:P=>f.current[p]=P,htmlFor:`${s}.${m.inboxNotification.id}`,style:{padding:i.sp0},children:t.jsx(mo,{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:()=>{f.current[p]?.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}})})},fo=r.div`
257
257
  display: flex;
258
258
  align-items: center;
259
259
  width: 100%;
@@ -262,7 +262,7 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
262
262
  align-items: flex-start;
263
263
  width: 100%;
264
264
  padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp0};
265
- `,mo=r(Tt)``,go=e=>v()==="small"?t.jsx(po,{...e}):t.jsx(co,{...e}),{commentsAndNotifications:{notifications:{message:xo}}}=P.getLocalizedStrings(),Oe={rowGap:new R(w[0],w[5],w[5])},bo=({notificationGroups:e,users:o,isFetching:s,hasMore:a,sectionId:n,checkBoxMode:l,scrollYOffset:c,currentSubTab:d,isDisabled:u,onUpdateScrollYOffset:h,onFetchNotificationGroups:f,onNotificationClick:m})=>{const p=v(),b=x.useRef(null),k=x.useRef({});x.useEffect(()=>{b.current?.resetAfterIndex(0,!0)},[p,b,e]),x.useEffect(()=>{b.current?.scrollTo(c)},[d]);const B=x.useCallback(N=>{if(k.current?.[N]!=null){const U=p==="small"&&a===!1&&N===e.length-1?Oe.rowGap.value("medium-regular"):Oe.rowGap.value(p);return k.current[N]+U}return(ht*jt.value(p)+pt)*3+ft+mt},[p,k,e]),G=x.useCallback((N,U)=>{k.current={...k.current,[N]:U},b.current?.resetAfterIndex(0,!0)},[p,b,e]),T=x.useCallback(()=>{f()},[f]),L=x.useCallback(()=>{},[]),y=et(N=>h(N),1e3,{trailing:!0}),M=N=>!a||N<e.length,j=x.useCallback(()=>a&&!s?T():L(),[a,s,T,L]),I=a?e.length+1:e.length;return t.jsx(yo,{children:t.jsx($o,{windowSize:p,children:s&&e.length===0?t.jsx(Ki,{}):s===!1&&e.length===0?t.jsx(tt,{message:xo.noNotificationsMessage,style:{padding:i.sp0}}):t.jsx(jo,{windowSize:p,children:t.jsx(it,{children:({height:N,width:U})=>t.jsx(ot,{isItemLoaded:M,itemCount:gt,loadMoreItems:j,children:({onItemsRendered:Y,ref:E})=>t.jsx(st,{ref:W=>{E(W),b.current=W},height:N,itemCount:I,itemData:{notificationGroups:e,users:o,sectionId:n,checkBoxMode:l,isDisabled:u,isItemLoaded:M,setRowHeight:G,onNotificationClick:m},onItemsRendered:Y,itemSize:B,width:U,style:{willChange:"auto"},overscanCount:xt,onScroll:({scrollOffset:W})=>{y(W)},initialScrollOffset:c,children:wo})})})})})})},wo=({index:e,style:o,data:s})=>{const{notificationGroups:a,users:n,sectionId:l,checkBoxMode:c,isItemLoaded:d,isDisabled:u,setRowHeight:h,onNotificationClick:f}=s,m=x.useRef(null),p=v();if(x.useEffect(()=>{m.current?.firstElementChild!=null&&h(e,m.current.firstElementChild.clientHeight)},[e,m,p,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(go,{notificationGroup:b,sectionId:`${l}.${k}`,checkBoxMode:c,isDisabled:u,users:n,onNotificationTileClick:f})},k)}return t.jsx(Pe,{ref:m,style:{...o,paddingBottom:i.sp0},children:t.jsx(Se,{numberOfRows:3})},ce())},yo=r.div`
265
+ `,mo=r(Tt)``,go=e=>v()==="small"?t.jsx(po,{...e}):t.jsx(co,{...e}),{commentsAndNotifications:{notifications:{message:xo}}}=B.getLocalizedStrings(),Oe={rowGap:new R(w[0],w[5],w[5])},bo=({notificationGroups:e,users:o,isFetching:s,hasMore:a,sectionId:n,checkBoxMode:l,scrollYOffset:c,currentSubTab:d,isDisabled:u,onUpdateScrollYOffset:h,onFetchNotificationGroups:f,onNotificationClick:m})=>{const p=v(),b=x.useRef(null),k=x.useRef({});x.useEffect(()=>{b.current?.resetAfterIndex(0,!0)},[p,b,e]),x.useEffect(()=>{b.current?.scrollTo(c)},[d]);const P=x.useCallback(N=>{if(k.current?.[N]!=null){const U=p==="small"&&a===!1&&N===e.length-1?Oe.rowGap.value("medium-regular"):Oe.rowGap.value(p);return k.current[N]+U}return(ht*jt.value(p)+pt)*3+ft+mt},[p,k,e]),G=x.useCallback((N,U)=>{k.current={...k.current,[N]:U},b.current?.resetAfterIndex(0,!0)},[p,b,e]),T=x.useCallback(()=>{f()},[f]),L=x.useCallback(()=>{},[]),y=et(N=>h(N),1e3,{trailing:!0}),M=N=>!a||N<e.length,j=x.useCallback(()=>a&&!s?T():L(),[a,s,T,L]),I=a?e.length+1:e.length;return t.jsx(yo,{children:t.jsx($o,{windowSize:p,children:s&&e.length===0?t.jsx(Xi,{}):s===!1&&e.length===0?t.jsx(tt,{message:xo.noNotificationsMessage,style:{padding:i.sp0}}):t.jsx(jo,{windowSize:p,children:t.jsx(it,{children:({height:N,width:U})=>t.jsx(ot,{isItemLoaded:M,itemCount:gt,loadMoreItems:j,children:({onItemsRendered:Y,ref:E})=>t.jsx(st,{ref:W=>{E(W),b.current=W},height:N,itemCount:I,itemData:{notificationGroups:e,users:o,sectionId:n,checkBoxMode:l,isDisabled:u,isItemLoaded:M,setRowHeight:G,onNotificationClick:m},onItemsRendered:Y,itemSize:P,width:U,style:{willChange:"auto"},overscanCount:xt,onScroll:({scrollOffset:W})=>{y(W)},initialScrollOffset:c,children:wo})})})})})})},wo=({index:e,style:o,data:s})=>{const{notificationGroups:a,users:n,sectionId:l,checkBoxMode:c,isItemLoaded:d,isDisabled:u,setRowHeight:h,onNotificationClick:f}=s,m=x.useRef(null),p=v();if(x.useEffect(()=>{m.current?.firstElementChild!=null&&h(e,m.current.firstElementChild.clientHeight)},[e,m,p,a[e]?.notifications]),d(e)===!0){const b=a[e],k=ne(b);return t.jsx(Be,{style:{...o,paddingBottom:i.sp0,width:"100%"},ref:m,children:t.jsx(go,{notificationGroup:b,sectionId:`${l}.${k}`,checkBoxMode:c,isDisabled:u,users:n,onNotificationTileClick:f})},k)}return t.jsx(Be,{ref:m,style:{...o,paddingBottom:i.sp0},children:t.jsx(Se,{numberOfRows:3})},ce())},yo=r.div`
266
266
  display: block;
267
267
  background-color: ${e=>e.theme.colors.grey4};
268
268
  height: 100%;
@@ -275,11 +275,11 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
275
275
  display: flex;
276
276
  flex-direction: column;
277
277
  max-width: 99.9%;
278
- `,Pe=r.div`
278
+ `,Be=r.div`
279
279
  top: ${i.sp0};
280
280
  left: ${i.sp0};
281
281
  box-sizing: border-box;
282
- `,{common:{in:ko,strings:Lt},dateFormat:So,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 f=g.dateNow().subtract(h,"month").startOf("M").startOf("d"),m=g.dateNow().subtract(h,"month").endOf("M").endOf("d");h++,a=oe(o,f,m),o=a.remainingData,s.push({start:f,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}},vo=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__",ko.toLocaleLowerCase().concat(Lt.space,Ie(e.name.toLocaleLowerCase()))),o},Co=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?vo(n):A.dueTomorrow;break;case"task_overdue":s=A.overdue.replace("__date__",o[0].metadata.additionalInfo?.dueDate.format(So.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(w[8],33,33,33,35),de={lineClamp:Rt,sectionWidth:zt},{common:{and:Be,other:No,others:To,texts:Lo,timeStrings:Io,strings:D,tags:Ro}}=P.getLocalizedStrings(),zo=({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(Bo,{notificationStatus:n,isHighlighted:o,style:s,onClick:()=>{a(l,c,n,d.length>0?d[0].activityType:void 0)},children:[t.jsx(_o,{...e}),t.jsx(Ao,{...e}),t.jsx(Po,{...e}),t.jsx(Oo,{createTime:u,notificationStatus:n})]})},_t=e=>{const{status:o,eventData:{title:s}}=e;return t.jsx(Vo,{notificationStatus:o,children:s||D.hyphen})},_o=e=>{const o=v();return t.jsx(Eo,{windowSize:o,children:t.jsx(_t,{...e})})},Do=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(Yo,{children:[t.jsx(Fe,{backgroundColor:Re(s.oldValue.codeNamePair),children:s.oldValue.codeNamePair.name}),t.jsx(Wo,{}),t.jsx(Fe,{backgroundColor:Re(s.newValue.codeNamePair),children:s.newValue.codeNamePair.name})]})}return null},Mo=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:[D.atTheRate,Lo.user,D.space]});return n>0&&(n>2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[D.atTheRate,V(s[0],!1),D.space]}),Be,t.jsxs(q,{className:"userText",notificationStatus:o,children:[D.space,n-1,D.space,To,D.space]})]}):n===2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[D.atTheRate,V(s[0],!1),D.space]}),Be,t.jsxs(q,{className:"userText",notificationStatus:o,children:[D.space,s.length===2?D.atTheRate+V(s[1],!1):No,D.space]})]}):l=t.jsxs(q,{className:"userText",notificationStatus:o,children:[D.atTheRate,V(s[0],!1),D.space]})),l},Dt=e=>t.jsxs(t.Fragment,{children:[t.jsx(Mo,{...e}),Co(e),t.jsx(Do,{...e})]}),Ao=e=>{const o=v(),{eventData:{activities:s}}=e;return t.jsx(Uo,{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(Dt,{...e})})},Mt=e=>{const{createTime:o,notificationStatus:s}=e,a=yt(o.toDate());return t.jsxs(t.Fragment,{children:[t.jsx(Ho,{isNewNotification:a===Io.justNow,children:a}),t.jsx(qo,{notificationStatus:s})]})},Oo=e=>{const o=v();return t.jsx(Fo,{windowSize:o,children:t.jsx(Mt,{...e})})},At=e=>{const{eventData:{activities:o}}=e;return o[0].activityType==="task_overdue"?t.jsx(ui,{tagTitle:Ro.overdue,textColor:{color:new ye(S.alert),backgroundColor:new ye("transparent"),borderColor:new ye(S.alert)},showLoader:!1}):t.jsx(Jo,{})},Po=e=>{const o=v();return t.jsx(Go,{windowSize:o,children:t.jsx(At,{...e})})},Bo=r.div`
282
+ `,{common:{in:ko,strings:Lt},dateFormat:So,commentsAndNotifications:{notifications:{actionStrings:{notifications:A}}}}=B.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 f=g.dateNow().subtract(h,"month").startOf("M").startOf("d"),m=g.dateNow().subtract(h,"month").endOf("M").endOf("d");h++,a=oe(o,f,m),o=a.remainingData,s.push({start:f,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}},vo=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__",ko.toLocaleLowerCase().concat(Lt.space,Ie(e.name.toLocaleLowerCase()))),o},Co=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?vo(n):A.dueTomorrow;break;case"task_overdue":s=A.overdue.replace("__date__",o[0].metadata.additionalInfo?.dueDate.format(So.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(w[8],33,33,33,35),de={lineClamp:Rt,sectionWidth:zt},{common:{and:Pe,other:No,others:To,texts:Lo,timeStrings:Io,strings:D,tags:Ro}}=B.getLocalizedStrings(),zo=({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(Po,{notificationStatus:n,isHighlighted:o,style:s,onClick:()=>{a(l,c,n,d.length>0?d[0].activityType:void 0)},children:[t.jsx(_o,{...e}),t.jsx(Ao,{...e}),t.jsx(Bo,{...e}),t.jsx(Oo,{createTime:u,notificationStatus:n})]})},_t=e=>{const{status:o,eventData:{title:s}}=e;return t.jsx(Ho,{notificationStatus:o,children:s||D.hyphen})},_o=e=>{const o=v();return t.jsx(Eo,{windowSize:o,children:t.jsx(_t,{...e})})},Do=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(Yo,{children:[t.jsx(Fe,{backgroundColor:Re(s.oldValue.codeNamePair),children:s.oldValue.codeNamePair.name}),t.jsx(Wo,{}),t.jsx(Fe,{backgroundColor:Re(s.newValue.codeNamePair),children:s.newValue.codeNamePair.name})]})}return null},Mo=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:[D.atTheRate,Lo.user,D.space]});return n>0&&(n>2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[D.atTheRate,H(s[0],!1),D.space]}),Pe,t.jsxs(q,{className:"userText",notificationStatus:o,children:[D.space,n-1,D.space,To,D.space]})]}):n===2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[D.atTheRate,H(s[0],!1),D.space]}),Pe,t.jsxs(q,{className:"userText",notificationStatus:o,children:[D.space,s.length===2?D.atTheRate+H(s[1],!1):No,D.space]})]}):l=t.jsxs(q,{className:"userText",notificationStatus:o,children:[D.atTheRate,H(s[0],!1),D.space]})),l},Dt=e=>t.jsxs(t.Fragment,{children:[t.jsx(Mo,{...e}),Co(e),t.jsx(Do,{...e})]}),Ao=e=>{const o=v(),{eventData:{activities:s}}=e;return t.jsx(Uo,{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(Dt,{...e})})},Mt=e=>{const{createTime:o,notificationStatus:s}=e,a=yt(o.toDate());return t.jsxs(t.Fragment,{children:[t.jsx(Vo,{isNewNotification:a===Io.justNow,children:a}),t.jsx(qo,{notificationStatus:s})]})},Oo=e=>{const o=v();return t.jsx(Fo,{windowSize:o,children:t.jsx(Mt,{...e})})},At=e=>{const{eventData:{activities:o}}=e;return o[0].activityType==="task_overdue"?t.jsx(ui,{tagTitle:Ro.overdue,textColor:{color:new ye(S.alert),backgroundColor:new ye("transparent"),borderColor:new ye(S.alert)},showLoader:!1}):t.jsx(Jo,{})},Bo=e=>{const o=v();return t.jsx(Go,{windowSize:o,children:t.jsx(At,{...e})})},Po=r.div`
283
283
  display: flex;
284
284
  flex-direction: row;
285
285
  align-items: center;
@@ -329,20 +329,20 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
329
329
  color: ${S.brandColorJade};
330
330
  }
331
331
  }
332
- `,Fo=r(H)`
332
+ `,Fo=r(V)`
333
333
  width: ${e=>e.windowSize==="small"?"unset":"10%"};
334
334
  gap: ${i.sp2};
335
335
  display: flex;
336
336
  align-items: center;
337
337
  flex-shrink: 0;
338
338
  justify-content: end;
339
- `,Go=r(H)`
339
+ `,Go=r(V)`
340
340
  width: ${e=>e.windowSize==="small"?"unset":"10%"};
341
341
  display: flex;
342
342
  align-items: center;
343
343
  flex-shrink: 0;
344
344
  justify-content: end;
345
- `,Uo=r(X)`
345
+ `,Uo=r(K)`
346
346
  color: inherit;
347
347
 
348
348
  ${e=>e.statusUpdate?O`
@@ -357,7 +357,7 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
357
357
  -webkit-box-orient: vertical;
358
358
  `};
359
359
  width: ${e=>de.sectionWidth.valuePercentage(e.windowSize)};
360
- `,Eo=r(X)`
360
+ `,Eo=r(K)`
361
361
  color: inherit;
362
362
  display: -webkit-box;
363
363
  overflow: hidden;
@@ -366,9 +366,9 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
366
366
  width: ${e=>de.sectionWidth.valuePercentage(e.windowSize)};
367
367
  `,q=r(fe)`
368
368
  color: ${e=>e.notificationStatus==="read"?e.theme.colors.grey1:S.brandColorJade};
369
- `,Vo=r(fe)`
369
+ `,Ho=r(fe)`
370
370
  color: inherit;
371
- `,Ho=r(ct)`
371
+ `,Vo=r(ct)`
372
372
  flex-shrink: 0;
373
373
  color: ${e=>e.isNewNotification?e.theme.colors.primary:"inherit"};
374
374
  `,Yo=r.div`
@@ -377,7 +377,7 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
377
377
  flex-direction: row;
378
378
  gap: ${i.sp2};
379
379
  flex-wrap: wrap;
380
- `,Fe=r(H)`
380
+ `,Fe=r(V)`
381
381
  color: ${S.neutralGrey5Light};
382
382
  background: ${e=>e.backgroundColor};
383
383
  border: 1px solid ${e=>e.backgroundColor};
@@ -397,7 +397,7 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
397
397
  border-radius: ${i.sp2};
398
398
  flex-shrink: 0;
399
399
  background-color: ${e=>e.notificationStatus==="unread"?S.info:"transparent"};
400
- `,se={emptyRowItemSectionWidth:new R(120,200,280,330,400),emptyLastRowItemSectionWidth:new R(w[6],50,60,w[11],120)},Zo=()=>{const e=v();return t.jsxs(Ko,{windowSize:e,children:[t.jsx(ae,{windowSize:e,isLastItem:!1,children:t.jsx(z,{width:se.emptyRowItemSectionWidth.value(e),height:w[4]})}),t.jsx(ae,{windowSize:e,isLastItem:!1,children:t.jsx(z,{width:se.emptyRowItemSectionWidth.value(e),height:w[4]})}),t.jsx(ae,{windowSize:e,isLastItem:!0,children:t.jsx(z,{width:se.emptyLastRowItemSectionWidth.value(e),height:18})}),t.jsx(ae,{windowSize:e,isLastItem:!0,children:t.jsx(z,{width:se.emptyLastRowItemSectionWidth.value(e),height:18})})]})},Ko=r.div`
400
+ `,se={emptyRowItemSectionWidth:new R(120,200,280,330,400),emptyLastRowItemSectionWidth:new R(w[6],50,60,w[11],120)},Zo=()=>{const e=v();return t.jsxs(Xo,{windowSize:e,children:[t.jsx(ae,{windowSize:e,isLastItem:!1,children:t.jsx(z,{width:se.emptyRowItemSectionWidth.value(e),height:w[4]})}),t.jsx(ae,{windowSize:e,isLastItem:!1,children:t.jsx(z,{width:se.emptyRowItemSectionWidth.value(e),height:w[4]})}),t.jsx(ae,{windowSize:e,isLastItem:!0,children:t.jsx(z,{width:se.emptyLastRowItemSectionWidth.value(e),height:18})}),t.jsx(ae,{windowSize:e,isLastItem:!0,children:t.jsx(z,{width:se.emptyLastRowItemSectionWidth.value(e),height:18})})]})},Xo=r.div`
401
401
  display: flex;
402
402
  align-items: center;
403
403
  justify-content: space-between;
@@ -428,7 +428,7 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,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
- `,Qo=()=>{const e=v();return t.jsxs(Xo,{windowSize:e,children:[t.jsxs(Ge,{children:[t.jsx(z,{width:180,height:w[4]}),t.jsx(z,{width:60,height:18})]}),t.jsxs(Ge,{children:[t.jsx(z,{width:180,height:w[4]}),t.jsx(z,{width:60,height:18})]})]})},Xo=r.div`
431
+ `,Qo=()=>{const e=v();return t.jsxs(Ko,{windowSize:e,children:[t.jsxs(Ge,{children:[t.jsx(z,{width:180,height:w[4]}),t.jsx(z,{width:60,height:18})]}),t.jsxs(Ge,{children:[t.jsx(z,{width:180,height:w[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;
@@ -530,14 +530,14 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
530
530
  color: ${S.brandColorJade};
531
531
  }
532
532
  }
533
- `,ps=r(H)`
533
+ `,ps=r(V)`
534
534
  width: 25%;
535
535
  gap: ${i.sp2};
536
536
  display: flex;
537
537
  align-items: center;
538
538
  flex-shrink: 0;
539
539
  justify-content: end;
540
- `,fs=r(H)`
540
+ `,fs=r(V)`
541
541
  width: 25%;
542
542
  display: flex;
543
543
  align-items: center;
@@ -550,7 +550,7 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
550
550
  width: 100%;
551
551
  justify-content: space-between;
552
552
  align-items: start;
553
- `,Ot=r(X)`
553
+ `,Ot=r(K)`
554
554
  color: inherit;
555
555
  ${e=>e.statusUpdate?O`
556
556
  display: flex;
@@ -561,7 +561,7 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
561
561
  -webkit-box-orient: horizontal;
562
562
  gap: ${i.sp1};
563
563
  `};
564
- `,Pt=e=>v()==="small"?t.jsx(ns,{...e}):t.jsx(zo,{...e}),{common:{all:Ee}}=P.getLocalizedStrings(),ms=({notificationGroup:e,sectionId:o,checkBoxMode:s,style:a,isDisabled:n,onNotificationTileClick:l})=>{const c=Q(),{getValues:d}=ue(),u=d(o);return t.jsx(gs,{style:a,children:t.jsx(he,{mode:s,checkBoxes:[{label:t.jsx(xs,{htmlFor:`${o}.${Ee.toLocaleLowerCase()}`,style:{color:c.colors.primary},children:me(e)}),value:Ee.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((h,f)=>{const m=f===0,p=e.notifications.length-1===f;return{label:t.jsx(Pt,{notificationData:h,style:{borderTopLeftRadius:m?i.sp2:void 0,borderTopRightRadius:m?i.sp2:void 0,borderBottomLeftRadius:p?i.sp2:void 0,borderBottomRightRadius:p?i.sp2:void 0},isHighlighted:u?.includes(h.notificationId)===!0,onNotificationTileClick:l}),value:h.notificationId,defaultChecked:!1,groupLabel:!1}})],name:o,isDisabled:n,style:{width:"100%"},checkBoxStyle:{padding:i.sp3},labelCheckBoxStyle:{padding:i.sp3}})})},gs=r.div`
564
+ `,Bt=e=>v()==="small"?t.jsx(ns,{...e}):t.jsx(zo,{...e}),{common:{all:Ee}}=B.getLocalizedStrings(),ms=({notificationGroup:e,sectionId:o,checkBoxMode:s,style:a,isDisabled:n,onNotificationTileClick:l})=>{const c=Q(),{getValues:d}=ue(),u=d(o);return t.jsx(gs,{style:a,children:t.jsx(he,{mode:s,checkBoxes:[{label:t.jsx(xs,{htmlFor:`${o}.${Ee.toLocaleLowerCase()}`,style:{color:c.colors.primary},children:me(e)}),value:Ee.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((h,f)=>{const m=f===0,p=e.notifications.length-1===f;return{label:t.jsx(Bt,{notificationData:h,style:{borderTopLeftRadius:m?i.sp2:void 0,borderTopRightRadius:m?i.sp2:void 0,borderBottomLeftRadius:p?i.sp2:void 0,borderBottomRightRadius:p?i.sp2:void 0},isHighlighted:u?.includes(h.notificationId)===!0,onNotificationTileClick:l}),value:h.notificationId,defaultChecked:!1,groupLabel:!1}})],name:o,isDisabled:n,style:{width:"100%"},checkBoxStyle:{padding:i.sp3},labelCheckBoxStyle:{padding:i.sp3}})})},gs=r.div`
565
565
  display: flex;
566
566
  align-items: center;
567
567
  width: 100%;
@@ -570,16 +570,16 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
570
570
  align-items: flex-start;
571
571
  width: 100%;
572
572
  padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp0};
573
- `,{common:{all:Ve}}=P.getLocalizedStrings(),bs=({notificationGroup:e,sectionId:o,checkBoxMode:s,style:a,isDisabled:n,onNotificationTileClick:l})=>{const c=Q(),{getValues:d}=ue(),u=d(o),h=x.useRef([]);return x.useEffect(()=>{h.current=h.current.slice(0,e.notifications.length)},[e.notifications.length]),t.jsx(ws,{style:a,children:t.jsx(he,{mode:s,checkBoxes:[{label:t.jsx(He,{htmlFor:`${o}.${Ve.toLocaleLowerCase()}`,style:{color:c.colors.primary,marginLeft:i.sp2},children:me(e)}),value:Ve.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((f,m)=>{const p=m===0,b=e.notifications.length-1===m;return{label:t.jsx(He,{ref:k=>h.current[m]=k,htmlFor:`${o}.${f.notificationId}`,style:{padding:i.sp0},children:t.jsx(ys,{notificationData:f,style:{borderTopLeftRadius:p?i.sp2:void 0,borderTopRightRadius:p?i.sp2:void 0,borderBottomLeftRadius:b?i.sp2:void 0,borderBottomRightRadius:b?i.sp2:void 0,marginLeft:i.sp2},isHighlighted:u?.includes(f.notificationId)===!0,isSelectionMode:s==="always_on",onNotificationTileClick:l,onNotificationTileLongPress:()=>{h.current[m]?.click()}})}),value:f.notificationId,defaultChecked:!1,groupLabel:!1}})],name:o,isDisabled:n,style:{width:"100%",position:"relative"},checkBoxStyle:{padding:i.sp1,zIndex:2,left:`-${i.sp1}`,position:"absolute"},checkBoxIconStyle:{backgroundColor:c.colors.grey5}})})},ws=r.div`
573
+ `,{common:{all:He}}=B.getLocalizedStrings(),bs=({notificationGroup:e,sectionId:o,checkBoxMode:s,style:a,isDisabled:n,onNotificationTileClick:l})=>{const c=Q(),{getValues:d}=ue(),u=d(o),h=x.useRef([]);return x.useEffect(()=>{h.current=h.current.slice(0,e.notifications.length)},[e.notifications.length]),t.jsx(ws,{style:a,children:t.jsx(he,{mode:s,checkBoxes:[{label:t.jsx(Ve,{htmlFor:`${o}.${He.toLocaleLowerCase()}`,style:{color:c.colors.primary,marginLeft:i.sp2},children:me(e)}),value:He.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((f,m)=>{const p=m===0,b=e.notifications.length-1===m;return{label:t.jsx(Ve,{ref:k=>h.current[m]=k,htmlFor:`${o}.${f.notificationId}`,style:{padding:i.sp0},children:t.jsx(ys,{notificationData:f,style:{borderTopLeftRadius:p?i.sp2:void 0,borderTopRightRadius:p?i.sp2:void 0,borderBottomLeftRadius:b?i.sp2:void 0,borderBottomRightRadius:b?i.sp2:void 0,marginLeft:i.sp2},isHighlighted:u?.includes(f.notificationId)===!0,isSelectionMode:s==="always_on",onNotificationTileClick:l,onNotificationTileLongPress:()=>{h.current[m]?.click()}})}),value:f.notificationId,defaultChecked:!1,groupLabel:!1}})],name:o,isDisabled:n,style:{width:"100%",position:"relative"},checkBoxStyle:{padding:i.sp1,zIndex:2,left:`-${i.sp1}`,position:"absolute"},checkBoxIconStyle:{backgroundColor:c.colors.grey5}})})},ws=r.div`
574
574
  display: flex;
575
575
  align-items: center;
576
576
  width: 100%;
577
- `,He=r(pe)`
577
+ `,Ve=r(pe)`
578
578
  display: flex;
579
579
  align-items: flex-start;
580
580
  width: 100%;
581
581
  padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp0};
582
- `,ys=r(Pt)``,$s=e=>v()==="small"?t.jsx(bs,{...e}):t.jsx(ms,{...e}),{commentsAndNotifications:{notifications:{message:js}}}=P.getLocalizedStrings(),Ye={rowGap:new R(w[0],w[5],w[5])},ks=({notificationGroups:e,isFetching:o,hasMore:s,sectionId:a,checkBoxMode:n,scrollYOffset:l,currentSubTab:c,isDisabled:d,onUpdateScrollYOffset:u,onFetchNotificationGroups:h,onNotificationClick:f})=>{const m=v(),p=x.useRef(null),b=x.useRef({});x.useEffect(()=>{p.current?.resetAfterIndex(0,!0)},[m,p,e]),x.useEffect(()=>{p.current?.scrollTo(l)},[c]);const k=x.useCallback(I=>{if(b.current?.[I]!=null){const N=m==="small"&&s===!1&&I===e.length-1?Ye.rowGap.value("medium-regular"):Ye.rowGap.value(m);return b.current[I]+N}return(ht*Rt.value(m)+pt)*3+ft+mt},[m,b,e]),B=x.useCallback((I,N)=>{b.current={...b.current,[I]:N},p.current?.resetAfterIndex(0,!0)},[m,p,e]),G=x.useCallback(()=>{h()},[h]),T=x.useCallback(()=>{},[]),L=et(I=>u(I),1e3,{trailing:!0}),y=I=>!s||I<e.length,M=x.useCallback(()=>s&&!o?G():T(),[s,o,G,T]),j=s?e.length+1:e.length;return t.jsx(vs,{children:t.jsx(Cs,{windowSize:m,children:o&&e.length===0?t.jsx(is,{}):o===!1&&e.length===0?t.jsx(tt,{message:js.noNotificationsMessage,style:{padding:i.sp0}}):t.jsx(Ns,{windowSize:m,children:t.jsx(it,{children:({height:I,width:N})=>t.jsx(ot,{isItemLoaded:y,itemCount:gt,loadMoreItems:M,children:({onItemsRendered:U,ref:Y})=>t.jsx(st,{ref:E=>{Y(E),p.current=E},height:I,itemCount:j,itemData:{notificationGroups:e,sectionId:a,checkBoxMode:n,isDisabled:d,isItemLoaded:y,setRowHeight:B,onNotificationClick:f},onItemsRendered:U,itemSize:k,width:N,style:{willChange:"auto"},overscanCount:xt,onScroll:({scrollOffset:E})=>{L(E)},initialScrollOffset:l,children:Ss})})})})})})},Ss=({index:e,style:o,data:s})=>{const{notificationGroups:a,sectionId:n,checkBoxMode:l,isItemLoaded:c,isDisabled:d,setRowHeight:u,onNotificationClick:h}=s,f=x.useRef(null),m=v();if(x.useEffect(()=>{f.current?.firstElementChild!=null&&u(e,f.current.firstElementChild.clientHeight)},[e,f,m,a[e]?.notifications]),c(e)===!0){const p=a[e],b=ne(p);return t.jsx(We,{style:{...o,paddingBottom:i.sp0,width:"100%"},ref:f,children:t.jsx($s,{notificationGroup:p,sectionId:`${n}.${b}`,checkBoxMode:l,isDisabled:d,onNotificationTileClick:h})},b)}return t.jsx(We,{ref:f,style:{...o,paddingBottom:i.sp0},children:t.jsx(ve,{numberOfRows:3})},ce())},vs=r.div`
582
+ `,ys=r(Bt)``,$s=e=>v()==="small"?t.jsx(bs,{...e}):t.jsx(ms,{...e}),{commentsAndNotifications:{notifications:{message:js}}}=B.getLocalizedStrings(),Ye={rowGap:new R(w[0],w[5],w[5])},ks=({notificationGroups:e,isFetching:o,hasMore:s,sectionId:a,checkBoxMode:n,scrollYOffset:l,currentSubTab:c,isDisabled:d,onUpdateScrollYOffset:u,onFetchNotificationGroups:h,onNotificationClick:f})=>{const m=v(),p=x.useRef(null),b=x.useRef({});x.useEffect(()=>{p.current?.resetAfterIndex(0,!0)},[m,p,e]),x.useEffect(()=>{p.current?.scrollTo(l)},[c]);const k=x.useCallback(I=>{if(b.current?.[I]!=null){const N=m==="small"&&s===!1&&I===e.length-1?Ye.rowGap.value("medium-regular"):Ye.rowGap.value(m);return b.current[I]+N}return(ht*Rt.value(m)+pt)*3+ft+mt},[m,b,e]),P=x.useCallback((I,N)=>{b.current={...b.current,[I]:N},p.current?.resetAfterIndex(0,!0)},[m,p,e]),G=x.useCallback(()=>{h()},[h]),T=x.useCallback(()=>{},[]),L=et(I=>u(I),1e3,{trailing:!0}),y=I=>!s||I<e.length,M=x.useCallback(()=>s&&!o?G():T(),[s,o,G,T]),j=s?e.length+1:e.length;return t.jsx(vs,{children:t.jsx(Cs,{windowSize:m,children:o&&e.length===0?t.jsx(is,{}):o===!1&&e.length===0?t.jsx(tt,{message:js.noNotificationsMessage,style:{padding:i.sp0}}):t.jsx(Ns,{windowSize:m,children:t.jsx(it,{children:({height:I,width:N})=>t.jsx(ot,{isItemLoaded:y,itemCount:gt,loadMoreItems:M,children:({onItemsRendered:U,ref:Y})=>t.jsx(st,{ref:E=>{Y(E),p.current=E},height:I,itemCount:j,itemData:{notificationGroups:e,sectionId:a,checkBoxMode:n,isDisabled:d,isItemLoaded:y,setRowHeight:P,onNotificationClick:f},onItemsRendered:U,itemSize:k,width:N,style:{willChange:"auto"},overscanCount:xt,onScroll:({scrollOffset:E})=>{L(E)},initialScrollOffset:l,children:Ss})})})})})})},Ss=({index:e,style:o,data:s})=>{const{notificationGroups:a,sectionId:n,checkBoxMode:l,isItemLoaded:c,isDisabled:d,setRowHeight:u,onNotificationClick:h}=s,f=x.useRef(null),m=v();if(x.useEffect(()=>{f.current?.firstElementChild!=null&&u(e,f.current.firstElementChild.clientHeight)},[e,f,m,a[e]?.notifications]),c(e)===!0){const p=a[e],b=ne(p);return t.jsx(We,{style:{...o,paddingBottom:i.sp0,width:"100%"},ref:f,children:t.jsx($s,{notificationGroup:p,sectionId:`${n}.${b}`,checkBoxMode:l,isDisabled:d,onNotificationTileClick:h})},b)}return t.jsx(We,{ref:f,style:{...o,paddingBottom:i.sp0},children:t.jsx(ve,{numberOfRows:3})},ce())},vs=r.div`
583
583
  display: block;
584
584
  background-color: ${e=>e.theme.colors.grey4};
585
585
  height: 100%;
@@ -596,7 +596,7 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,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:Ts,strings:{plus:Ls},numbers:{maximumCount:Je}},commentsAndNotifications:{notifications:{title:Is,texts:Bt,strings:qe}}}=P.getLocalizedStrings(),te={tableContainerLeftPadding:new R(w[2],w[2],w[2]),tableContainerRightPadding:new R(w[3],w[6],w[8]),tabsContainerLeftRightPadding:new R(w[3],w[6],w[8]),selectedNotificationsTextMarginLeft:new R(w[0],w[6],w[6])},Rs={selectedNotificationsText:new ni("smallRegular","standardRegular")},Ze="notificationsPage",Z="commentsNotificationsTable",K="notificationsTable",Ft=20,na=({notificationView:e,users:o,isNotificationSettingsVisible:s,isZeniUser:a,isDisabled:n,onNotificationClick:l,onCommentNotificationClick:c,onUpdateNotificationViewUIState:d,onUpdateNotificationTabState:u,onUpdateNotificationViewCurrentTabAndSubTab:h,onUpdateNotificationViewSubTab:f,onFetchMoreNotifications:m,onUpdateNotificationStatus:p,onSettingsClick:b,onBackClick:k,onMarkAllNotificationsAsRead:B})=>{const G=Q(),T=v(),L=Zt({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Xe(e),[e]),values:x.useMemo(()=>Xe(e),[e])}),{currentTab:y,currentSubTab:M,notificationDetailsByTab:j,allSubTabs:I,allNotifications:N,allExternalNotifications:U,notificationsForCurrentTabAndSubTab:Y,externalNotificationsForCurrentTabAndSubTab:E}=e,W=($,C)=>$||C==="comments",Gt=x.useMemo(()=>Object.keys(j).map($=>({label:re[$],id:re[$].toLocaleLowerCase(),countDetails:{count:j[$].uiState.unreadCount,isFetching:j[$].fetchCountState.fetchState==="In-Progress"}})).filter($=>W(a,$.id)),[j,a]),Ut=x.useMemo(()=>I.map($=>({label:$==="all"?Ce:re[$],id:$})),[I]),Et=x.useMemo(()=>$t(E).filter($=>$.notifications.length>0),[E]),Vt=x.useMemo(()=>It(Y).filter($=>$.notifications.length>0),[Y]),Ht=async($,C)=>{const F=$.split(".")[0],J=[];F!=null&&(F===Z||F===K)&&(Object.values(C[F]).forEach(_=>{J.push(..._.filter(qt=>qt.includes(Ce.toLowerCase())===!1))}),u({selectedNotificationIds:J},y))};x.useEffect(()=>{const $=L.watch((C,{name:F})=>{F!=null&&C!=null&&Kt(()=>Ht(F,C))});return()=>{$.unsubscribe()}});const ge=x.useCallback(()=>{const $=[],C=j[y].selectedNotificationIdsForSubTab,F="read";if(y==="comments"){const J=U.filter(_=>_.inboxNotification.readAt==null).map(_=>_.inboxNotification.id);C.forEach(_=>{J.includes(_)&&$.push(_)})}else{const J=N.filter(_=>_.status!==F).map(_=>_.notificationId);C.forEach(_=>{J.includes(_)&&$.push(_)})}return $},[U,N,y,j]),Yt=ge().length>Ft?"disabled":n,xe=L.watch(Z),be=L.watch(K),Le=x.useCallback(()=>{m(y,M)},[m,y,M]),Wt=x.useCallback(()=>{if(y==="comments"){const $={};Object.keys(xe).forEach(C=>{$[C]=[]}),L.reset({[Z]:$,[K]:be},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}else{const $={};Object.keys(be).forEach(C=>{$[C]=[]}),L.reset({[K]:$,[Z]:xe},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}u({selectedNotificationIds:[]},y)},[be,xe]),Jt=x.useCallback(()=>{const $=j[y].selectedNotificationIdsForSubTab,C="read",F=ge();p(y,$,C,F)},[y,j,ge,p]);return t.jsxs(_s,{children:[t.jsx(Qt,{source:"NotificationsPage",title:Is.notifications,backgroundColor:G.colors.grey4,onBackClick:k,rightSideComponent:s===!0?t.jsx(Js,{onClick:b}):t.jsx(Ws,{})}),t.jsx(As,{}),t.jsx(Ms,{windowSize:T,children:t.jsx(mi,{tabs:Gt,selectedTab:y,onTabChange:$=>{const C=g.toNotificationTabTypeStrict($);C!=null&&h(C)},subTabs:Ut,selectedSubTab:M,onSubTabChange:$=>{const C=g.toNotificationSubTabTypeStrict($);C!=null&&f(C)},subTabRightComponent:t.jsx(zs,{notificationCount:j[y].uiState.unreadCount,markAsAllReadUpdateState:j[y].markAsAllReadState.fetchState,markAsReadUpdateState:j[y].markAsReadState.fetchState,onMarkAsAllReadClick:()=>{B(y)}})})}),t.jsx(Ds,{windowSize:T,children:t.jsx(Xt,{...L,children:t.jsx("form",{id:Qe(Ze),onSubmit:L.handleSubmit(Jt),style:{width:"100%"},children:y==="comments"?t.jsx(bo,{users:o,hasMore:j[y].uiState.hasMore,isFetching:j[y].fetchState==="In-Progress",scrollYOffset:j[y].uiState.scrollYOffset[M],currentSubTab:M,checkBoxMode:j[y].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Et,sectionId:Z,onFetchNotificationGroups:Le,onUpdateScrollYOffset:$=>d({scrollYOffset:{...j[y].uiState.scrollYOffset,[M]:$}},y),onNotificationClick:c}):t.jsx(ks,{hasMore:j[y].uiState.hasMore,isFetching:j[y].fetchState==="In-Progress",scrollYOffset:j[y].uiState.scrollYOffset[M],currentSubTab:M,checkBoxMode:j[y].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Vt,sectionId:K,onFetchNotificationGroups:Le,onUpdateScrollYOffset:$=>d({scrollYOffset:{...j[y].uiState.scrollYOffset,[M]:$}},y),onNotificationClick:l})})})}),j[y].selectedNotificationIdsForSubTab.length?t.jsx(ei,{formId:Qe(Ze),primaryBtn:{label:Bt.markAsRead,isLoading:j[y].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},isDisabled:Yt!=null},cancelBtn:{label:Ts.cancel,isDisabled:j[y].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},onClick:Wt},helperContainerStyle:T==="small"?{width:"100%"}:{rowGap:i.sp0},footerContentStyle:{gap:i.sp2},leftSideComponent:t.jsx(we,{controller:T!=="small",children:t.jsx(Ke,{selectedNotificationsCount:j[y].selectedNotificationIdsForSubTab.length})}),topComponent:t.jsx(we,{controller:T==="small",children:t.jsx(Ke,{selectedNotificationsCount:j[y].selectedNotificationIdsForSubTab.length})}),rightSideComponent:t.jsx(we,{controller:T!=="small",children:t.jsx(Bs,{})})}):null]})},zs=({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(Os,{variant:"tertiary",size:"small",label:Bt.markAllAsRead,onClick:l,prefixIcon:e==="In-Progress"?t.jsx(oi,{size:"Small",start:!0}):t.jsx(Ps,{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(Fs,{windowSize:o,children:[t.jsx(Us,{children:t.jsx(Gs,{isCircular:e<10,children:t.jsx(Es,{children:e>Je?`${Je}${Ls}`:e})})}),t.jsxs(Ys,{windowSize:o,children:[t.jsx(Vs,{children:e>1?qe.notificationsSelected:qe.notificationSelected}),e>Ft?t.jsx(Hs,{children:re.maxLimit}):null]})]})},_s=r.div`
599
+ `,{common:{all:Ce,texts:re,footer:Ts,strings:{plus:Ls},numbers:{maximumCount:Je}},commentsAndNotifications:{notifications:{title:Is,texts:Pt,strings:qe}}}=B.getLocalizedStrings(),te={tableContainerLeftPadding:new R(w[2],w[2],w[2]),tableContainerRightPadding:new R(w[3],w[6],w[8]),tabsContainerLeftRightPadding:new R(w[3],w[6],w[8]),selectedNotificationsTextMarginLeft:new R(w[0],w[6],w[6])},Rs={selectedNotificationsText:new ni("smallRegular","standardRegular")},Ze="notificationsPage",Z="commentsNotificationsTable",X="notificationsTable",Ft=20,na=({notificationView:e,users:o,isNotificationSettingsVisible:s,isZeniUser:a,isDisabled:n,onNotificationClick:l,onCommentNotificationClick:c,onUpdateNotificationViewUIState:d,onUpdateNotificationTabState:u,onUpdateNotificationViewCurrentTabAndSubTab:h,onUpdateNotificationViewSubTab:f,onFetchMoreNotifications:m,onUpdateNotificationStatus:p,onSettingsClick:b,onBackClick:k,onMarkAllNotificationsAsRead:P})=>{const G=Q(),T=v(),L=Zt({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Ke(e),[e]),values:x.useMemo(()=>Ke(e),[e])}),{currentTab:y,currentSubTab:M,notificationDetailsByTab:j,allSubTabs:I,allNotifications:N,allExternalNotifications:U,notificationsForCurrentTabAndSubTab:Y,externalNotificationsForCurrentTabAndSubTab:E}=e,W=($,C)=>$||C==="comments",Gt=x.useMemo(()=>Object.keys(j).map($=>({label:re[$],id:re[$].toLocaleLowerCase(),countDetails:{count:j[$].uiState.unreadCount,isFetching:j[$].fetchCountState.fetchState==="In-Progress"}})).filter($=>W(a,$.id)),[j,a]),Ut=x.useMemo(()=>I.map($=>({label:$==="all"?Ce:re[$],id:$})),[I]),Et=x.useMemo(()=>$t(E).filter($=>$.notifications.length>0),[E]),Ht=x.useMemo(()=>It(Y).filter($=>$.notifications.length>0),[Y]),Vt=async($,C)=>{const F=$.split(".")[0],J=[];F!=null&&(F===Z||F===X)&&(Object.values(C[F]).forEach(_=>{J.push(..._.filter(qt=>qt.includes(Ce.toLowerCase())===!1))}),u({selectedNotificationIds:J},y))};x.useEffect(()=>{const $=L.watch((C,{name:F})=>{F!=null&&C!=null&&Xt(()=>Vt(F,C))});return()=>{$.unsubscribe()}});const ge=x.useCallback(()=>{const $=[],C=j[y].selectedNotificationIdsForSubTab,F="read";if(y==="comments"){const J=U.filter(_=>_.inboxNotification.readAt==null).map(_=>_.inboxNotification.id);C.forEach(_=>{J.includes(_)&&$.push(_)})}else{const J=N.filter(_=>_.status!==F).map(_=>_.notificationId);C.forEach(_=>{J.includes(_)&&$.push(_)})}return $},[U,N,y,j]),Yt=ge().length>Ft?"disabled":n,xe=L.watch(Z),be=L.watch(X),Le=x.useCallback(()=>{m(y,M)},[m,y,M]),Wt=x.useCallback(()=>{if(y==="comments"){const $={};Object.keys(xe).forEach(C=>{$[C]=[]}),L.reset({[Z]:$,[X]:be},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}else{const $={};Object.keys(be).forEach(C=>{$[C]=[]}),L.reset({[X]:$,[Z]:xe},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}u({selectedNotificationIds:[]},y)},[be,xe]),Jt=x.useCallback(()=>{const $=j[y].selectedNotificationIdsForSubTab,C="read",F=ge();p(y,$,C,F)},[y,j,ge,p]);return t.jsxs(_s,{children:[t.jsx(Qt,{source:"NotificationsPage",title:Is.notifications,backgroundColor:G.colors.grey4,onBackClick:k,rightSideComponent:s===!0?t.jsx(Js,{onClick:b}):t.jsx(Ws,{})}),t.jsx(As,{}),t.jsx(Ms,{windowSize:T,children:t.jsx(mi,{tabs:Gt,selectedTab:y,onTabChange:$=>{const C=g.toNotificationTabTypeStrict($);C!=null&&h(C)},subTabs:Ut,selectedSubTab:M,onSubTabChange:$=>{const C=g.toNotificationSubTabTypeStrict($);C!=null&&f(C)},subTabRightComponent:t.jsx(zs,{notificationCount:j[y].uiState.unreadCount,markAsAllReadUpdateState:j[y].markAsAllReadState.fetchState,markAsReadUpdateState:j[y].markAsReadState.fetchState,onMarkAsAllReadClick:()=>{P(y)}})})}),t.jsx(Ds,{windowSize:T,children:t.jsx(Kt,{...L,children:t.jsx("form",{id:Qe(Ze),onSubmit:L.handleSubmit(Jt),style:{width:"100%"},children:y==="comments"?t.jsx(bo,{users:o,hasMore:j[y].uiState.hasMore,isFetching:j[y].fetchState==="In-Progress",scrollYOffset:j[y].uiState.scrollYOffset[M],currentSubTab:M,checkBoxMode:j[y].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Et,sectionId:Z,onFetchNotificationGroups:Le,onUpdateScrollYOffset:$=>d({scrollYOffset:{...j[y].uiState.scrollYOffset,[M]:$}},y),onNotificationClick:c}):t.jsx(ks,{hasMore:j[y].uiState.hasMore,isFetching:j[y].fetchState==="In-Progress",scrollYOffset:j[y].uiState.scrollYOffset[M],currentSubTab:M,checkBoxMode:j[y].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Ht,sectionId:X,onFetchNotificationGroups:Le,onUpdateScrollYOffset:$=>d({scrollYOffset:{...j[y].uiState.scrollYOffset,[M]:$}},y),onNotificationClick:l})})})}),j[y].selectedNotificationIdsForSubTab.length?t.jsx(ei,{formId:Qe(Ze),primaryBtn:{label:Pt.markAsRead,isLoading:j[y].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},isDisabled:Yt!=null},cancelBtn:{label:Ts.cancel,isDisabled:j[y].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},onClick:Wt},helperContainerStyle:T==="small"?{width:"100%"}:{rowGap:i.sp0},footerContentStyle:{gap:i.sp2},leftSideComponent:t.jsx(we,{controller:T!=="small",children:t.jsx(Xe,{selectedNotificationsCount:j[y].selectedNotificationIdsForSubTab.length})}),topComponent:t.jsx(we,{controller:T==="small",children:t.jsx(Xe,{selectedNotificationsCount:j[y].selectedNotificationIdsForSubTab.length})}),rightSideComponent:t.jsx(we,{controller:T!=="small",children:t.jsx(Ps,{})})}):null]})},zs=({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(Os,{variant:"tertiary",size:"small",label:Pt.markAllAsRead,onClick:l,prefixIcon:e==="In-Progress"?t.jsx(oi,{size:"Small",start:!0}):t.jsx(Bs,{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"}})},Xe=({selectedNotificationsCount:e})=>{const o=v();return t.jsxs(Fs,{windowSize:o,children:[t.jsx(Us,{children:t.jsx(Gs,{isCircular:e<10,children:t.jsx(Es,{children:e>Je?`${Je}${Ls}`:e})})}),t.jsxs(Ys,{windowSize:o,children:[t.jsx(Hs,{children:e>1?qe.notificationsSelected:qe.notificationSelected}),e>Ft?t.jsx(Vs,{children:re.maxLimit}):null]})]})},_s=r.div`
600
600
  display: flex;
601
601
  height: 100vh;
602
602
  width: 100%;
@@ -627,10 +627,10 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
627
627
  color: ${e=>e.disabled===!0?e.theme.colors.grey2:e.theme.colors.primary};
628
628
  }
629
629
  }
630
- `,Ps=r(ai)`
630
+ `,Bs=r(ai)`
631
631
  width: ${i.sp3};
632
632
  height: ${i.sp3};
633
- `,Bs=r.div``,Fs=r.div`
633
+ `,Ps=r.div``,Fs=r.div`
634
634
  display: flex;
635
635
  align-items: center;
636
636
  flex-direction: row;
@@ -659,9 +659,9 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
659
659
  align-items: center;
660
660
  justify-content: center;
661
661
  color: ${e=>e.theme.colors.hero};
662
- `,Vs=r(rt)`
662
+ `,Hs=r(rt)`
663
663
  display: flex;
664
- `,Hs=r(li)`
664
+ `,Vs=r(li)`
665
665
  display: flex;
666
666
  color: ${S.important};
667
667
  margin-left: ${i.sp1};
@@ -682,4 +682,4 @@ import{u as Q,X as v,a as Zt,M as P,c4 as Kt,j as t,aW as Qt,l as g,F as Xt,a4 a
682
682
  &:hover {
683
683
  color: ${e=>e.theme.colors.primary};
684
684
  }
685
- `,Qe=e=>`${e}_form`,Xe=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}},la=(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{na as default,la as getSelectedNotificationIds,Qe as uniqueFormName};
685
+ `,Qe=e=>`${e}_form`,Ke=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,[X]:l}},la=(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{na as default,la as getSelectedNotificationIds,Qe as uniqueFormName};
@@ -1,4 +1,4 @@
1
- import{X as G,hn as ye,M as B,u as q,z as be,j as t,_ as _e,bf as Se,hm as ke,aY as we,aW as ve,ho as Be,hp as Oe,o as u,a6 as $e,c as je,C as F,aj as le,H as ie,a8 as Pe,q as O,a$ as Te,bF as De,bG as Ne,bH as Ee,g as a,e as ce,bc as Ie,b7 as Me,aw as Ae,f as Z,av as Le,ab as Fe,b8 as Ve,ba as ze,l as Re}from"./index-CbZTLtvs.js";import{b as y,n as m,f as We}from"./vendor-CnQcJ2Lu.js";import{p as Ke,d as Ye,y as H,b as de,u as ee}from"./chartTypes-BU-pRq_m-BNABrIt4.js";import{V as He}from"./toChartData-yWFIkpKX-iU9RbLET.js";import{m as V}from"./analyticsHelper-BP6myd2z-IG6G9Q9p.js";import{p as Ge}from"./TimeRangeSwitcher-CPklgWMn-BOlT7YwO.js";import{M as qe}from"./TimeframeSwitcherWithToggle-CtVJiYRA-CJwvNUHv.js";import{C as Je}from"./NoDataChart-DyGfwFNo-CLQrerWr.js";import{d as Ue}from"./NoDataTable-CJseWuln-Cygckdm_.js";import{H as Xe,k as oe}from"./detailCommon-dG26UIR2-Du_tf-0V.js";import{n as z}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{R as Qe,W as J}from"./CollapsableReportTable-PpQgBBRC-ZGrGfaoO.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-BTMBlZfj-DW7k0pyS.js";import{d as re}from"./mapLoadingInProgressToTreeNode-DOBKyY4b-y1aUwiix.js";import{l as Ze}from"./mapSpacerToTreeNode-BnX1Qa3P-bqHYhPP-.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-Do-13K0C-BsEeofAL.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";import"./AccountRow-DTQ6Qoyr-BWLnnP7O.js";const eo=m.div`
1
+ import{e as H,hq as xe,M as B,u as q,y as be,j as t,_ as _e,bf as Se,hp as ke,aY as we,aW as ve,hr as Be,hs as je,o as u,a6 as Oe,m as $e,C as F,aj as le,E as ie,a8 as Pe,q as j,a$ as Te,bI as De,bJ as Ne,bK as Ee,c as a,n as ce,bc as Ie,b7 as Ae,aw as Me,v as Z,av as Le,ab as Fe,b8 as Ve,ba as Re,l as ze}from"./index-CyJdCOlu.js";import{b as x,n as m,f as We}from"./vendor-CnQcJ2Lu.js";import{p as Ke,d as Ye,y as G,b as de,u as ee}from"./chartTypes-CPj7oOMJ-Cv2ANOse.js";import{V as Ge}from"./toChartData-Cp_80Bi6-Dfd3dSx4.js";import{m as V}from"./analyticsHelper-CsfdC0kT-BpVlkMRS.js";import{p as He}from"./TimeRangeSwitcher-CkXysnFa-BxX2v8T-.js";import{M as qe}from"./TimeframeSwitcherWithToggle-B9Lo2-pD-oHueEdHK.js";import{C as Je}from"./NoDataChart-D5DKMqIS-BEaaizBY.js";import{d as Ue}from"./NoDataTable-CPEKYH-4-ChRW7vff.js";import{H as Qe,k as oe}from"./detailCommon-BJ8iCchG-CdCS4VPM.js";import{n as R}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{R as Xe,W as J}from"./CollapsableReportTable-NSlKGCNZ-9GlkRzVX.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-B-iRb2_j-BOYVHL5U.js";import{d as re}from"./mapLoadingInProgressToTreeNode-R394S2in-pIplKgrn.js";import{l as Ze}from"./mapSpacerToTreeNode-CLYF1Foh-BkgQTnh2.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-B-S09J4A-MdxeQVLH.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";import"./AccountRow-ZcS_RTJN-DNHX6IR1.js";const eo=m.div`
2
2
  display: flex;
3
3
  `,oo=m.div`
4
4
  flex: display;
@@ -22,10 +22,10 @@ import{X as G,hn as ye,M as B,u as q,z as be,j as t,_ as _e,bf as Se,hm as ke,aY
22
22
  width: 100%;
23
23
  height: 1px;
24
24
  background-color: ${a.neutralGrey3Dark};
25
- `,ao=({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},to=({barLabelsWithValues:e,getVendorName:r})=>t.jsx(eo,{children:t.jsxs(oo,{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(ro,{}),t.jsxs(ae,{children:[t.jsx(te,{color:a.primaryDark,children:`${B.getLocalizedStrings().chartCard.total}`}),t.jsx(ne,{children:`${ee(e[0].total)}`})]})]})}),no=e=>{const r=ao({...e});return r.length===0?null:t.jsx(to,{barLabelsWithValues:r,getVendorName:e.getVendorName})},so=We.memo(no),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 lo=N.instance(),io=(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=Ke(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},co=m.div`
25
+ `,ao=({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},to=({barLabelsWithValues:e,getVendorName:r})=>t.jsx(eo,{children:t.jsxs(oo,{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(ro,{}),t.jsxs(ae,{children:[t.jsx(te,{color:a.primaryDark,children:`${B.getLocalizedStrings().chartCard.total}`}),t.jsx(ne,{children:`${ee(e[0].total)}`})]})]})}),no=e=>{const r=ao({...e});return r.length===0?null:t.jsx(to,{barLabelsWithValues:r,getVendorName:e.getVendorName})},so=We.memo(no),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 lo=N.instance(),io=(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=Ke(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},co=m.div`
26
26
  width: ${e=>e.width}px;
27
27
  height: ${e=>e.height}px;
28
- `;function po({selectedRangeReport:e,width:r,height:o,showBarHoverBackground:s=!1,isDetailPage:l=!1}){const i=y.useRef(!1),h=lo,[n,p]=y.useState(void 0);y.useEffect(()=>{i.current=!0},[]);const g=io(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(so,{active:d,payload:b,barName:n,getVendorName:f}):null,f=(d,b)=>{const S=Re.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(ho,{chartData:g,showBarHoverBackground:s,barElements:c(),customToolTipContent:t.jsx(_,{}),width:r,height:o,isDetailPage:l===!0})}const ho=({chartData:e,barElements:r,customToolTipContent:o,width:s,height:l,showBarHoverBackground:i=!1,isDetailPage:h})=>{const n=q(),p=Ye(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(co,{width:s,height:l,children:t.jsx(le,{children:({height:C,width:_})=>t.jsxs(Ie,{width:_,height:C,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:h?O[5]:30,margin:{top:5,right:c,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[t.jsx(Me,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:n.colors.grey3}),t.jsx(Ae,{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(Le,{type:"number",axisLine:!1,tickLine:!1,tick:{color:n.colors.hero,...Z.extraSmallRegular.cssObject},tickFormatter:f=>Fe("0,0.[00]a",f,p)}),t.jsx(Ve,{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 mo(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 go(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 uo(e){const r=go(e);if(r!=null)return fo(e.statementEndPoint,e.authParams,r)}async function fo(e,r,o){const s=B.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(mo(o)))}`;try{const i=await De({urlEndPoint:l,authParams:r,fileType:o.statementFileType});if(i.ok){const h=Ne(i.headers,s.defaultFileName),n=await i.arrayBuffer();Ee(n,h)}else console.error(`${s.reportErrorMessage} ${i.statusText}`)}catch(i){console.error(`${s.reportErrorMessage} ${JSON.stringify(i)}`)}}function Co({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 yo({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 bo=(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=yo({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(Ze({title:`${d}+${p.loading}`,balances:[],config:o}))})}return e.opexBalances.length===0&&g!==!0&&n.push(Co({title:B.getLocalizedStrings().vendors.opExByVendor.noResultsFound,balances:i,config:o})),{config:o,headerNodes:s?[h]:[],contentNodes:n}};function _o(e,r,o,s=!0){Object.assign(e.config,r);const l=So(o),i=pe({balances:l,config:r});return{config:r,headerNodes:s?[i]:[],contentNodes:[i,...e.contentNodes.slice(1)]}}const So=e=>e.totalBalances!=null?[...e.totalBalances.balances,...e.totalBalances.additionalBalances]:[],E={chartHeight:new F(288,360),wrapperPadding:new F(O[3],O[3],O[8]),contentPaddingLeft:new F(O[0],O[0],O[0]),contentPaddingRight:new F(O[3],O[3],O[8])},ko=m.div`
28
+ `;function po({selectedRangeReport:e,width:r,height:o,showBarHoverBackground:s=!1,isDetailPage:l=!1}){const i=x.useRef(!1),h=lo,[n,p]=x.useState(void 0);x.useEffect(()=>{i.current=!0},[]);const g=io(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(Re,{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(so,{active:d,payload:b,barName:n,getVendorName:f}):null,f=(d,b)=>{const S=ze.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(ho,{chartData:g,showBarHoverBackground:s,barElements:c(),customToolTipContent:t.jsx(_,{}),width:r,height:o,isDetailPage:l===!0})}const ho=({chartData:e,barElements:r,customToolTipContent:o,width:s,height:l,showBarHoverBackground:i=!1,isDetailPage:h})=>{const n=q(),p=Ye(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(co,{width:s,height:l,children:t.jsx(le,{children:({height:C,width:_})=>t.jsxs(Ie,{width:_,height:C,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:h?j[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(Me,{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(Le,{type:"number",axisLine:!1,tickLine:!1,tick:{color:n.colors.hero,...Z.extraSmallRegular.cssObject},tickFormatter:f=>Fe("0,0.[00]a",f,p)}),t.jsx(Ve,{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 mo(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 go(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 uo(e){const r=go(e);if(r!=null)return fo(e.statementEndPoint,e.authParams,r)}async function fo(e,r,o){const s=B.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(mo(o)))}`;try{const i=await De({urlEndPoint:l,authParams:r,fileType:o.statementFileType});if(i.ok){const h=Ne(i.headers,s.defaultFileName),n=await i.arrayBuffer();Ee(n,h)}else console.error(`${s.reportErrorMessage} ${i.statusText}`)}catch(i){console.error(`${s.reportErrorMessage} ${JSON.stringify(i)}`)}}function Co({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 xo({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 bo=(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=xo({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(Ze({title:`${d}+${p.loading}`,balances:[],config:o}))})}return e.opexBalances.length===0&&g!==!0&&n.push(Co({title:B.getLocalizedStrings().vendors.opExByVendor.noResultsFound,balances:i,config:o})),{config:o,headerNodes:s?[h]:[],contentNodes:n}};function _o(e,r,o,s=!0){Object.assign(e.config,r);const l=So(o),i=pe({balances:l,config:r});return{config:r,headerNodes:s?[i]:[],contentNodes:[i,...e.contentNodes.slice(1)]}}const So=e=>e.totalBalances!=null?[...e.totalBalances.balances,...e.totalBalances.additionalBalances]:[],E={chartHeight:new F(288,360),wrapperPadding:new F(j[3],j[3],j[8]),contentPaddingLeft:new F(j[0],j[0],j[0]),contentPaddingRight:new F(j[3],j[3],j[8])},ko=m.div`
29
29
  display: flex;
30
30
  flex: 1 1 auto;
31
31
  min-height: 100%;
@@ -55,7 +55,7 @@ import{X as G,hn as ye,M as B,u as q,z as be,j as t,_ as _e,bf as Se,hm as ke,aY
55
55
  flex-direction: column;
56
56
  justify-content: center;
57
57
  align-items: center;
58
- `,Oo=m.div`
58
+ `,jo=m.div`
59
59
  height: 96px;
60
60
  width: 96px;
61
61
  background: ${e=>e.theme.colors.background};
@@ -70,10 +70,10 @@ import{X as G,hn as ye,M as B,u as q,z as be,j as t,_ as _e,bf as Se,hm as ke,aY
70
70
  color: ${e=>e.theme.colors.primary};
71
71
  }
72
72
  }
73
- `,$o=m($e)`
73
+ `,Oo=m(Oe)`
74
74
  margin-top: ${u.sp3};
75
75
  color: ${e=>e.theme.colors.hero};
76
- `,jo=m.div`
76
+ `,$o=m.div`
77
77
  display: flex;
78
78
  padding: ${u.sp2} ${u.sp0} ${u.sp4} ${u.sp0};
79
79
  `,Po=m.div``,To=m.div``,Do=m.div`
@@ -94,7 +94,7 @@ import{X as G,hn as ye,M as B,u as q,z as be,j as t,_ as _e,bf as Se,hm as ke,aY
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
- `,Mo=m.div`
97
+ `,Ao=m.div`
98
98
  width: 100%;
99
99
  height: calc(100vh - ${u.sp11});
100
- `,Ao=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?t.jsx(vo,{children:t.jsx(je,{size:"ExtraLarge",start:!0})}):null,mr=({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:$,onClickMenuIcon:R})=>{const[P,I]=y.useState(o.searchString[o.timeframe]),[M,A]=y.useState(!1),k=G(),T=y.useRef(null),W=ye(r),he=W.length>1,me=B.getLocalizedStrings().reports.common,U=B.getLocalizedStrings().vendors,X=q(),ge=["month","quarter"],ue=e.availableNumberOfPeriods!=null&&e.availableNumberOfPeriods<2,L=o.mode==="compare_mode"&&!ue,K=e.allTimeframeTicks.length===0,{timeframe:j}=o,D=o.searchString[j],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]),Q=y.useRef(be((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 uo({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}),$?.trackDownload(z("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]),y.useEffect(()=>{I(D)},[D]),e.fetchState==="Error")return t.jsxs(Bo,{children:[t.jsx(Oo,{"data-testid":_e("op-ex-by-vendor-reload-page"),onClick:i,children:t.jsx(Se,{})}),t.jsx($o,{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(Ao,{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(ke,{isSearchOpen:(D?.length??0)>0,searchPlaceHolder:U.common.searchPlaceholder,searchText:P??"",onSearchTextChanged:x=>{I(x),x.trim().length>=2?Q(x,j):x.trim().length==0&&Q("",j)},downloadPresent:!0}),t.jsx(we,{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 A(!0)}}}})]});return t.jsxs(ko,{windowSize:k,children:[t.jsx(ve,{title:U.common.navBarTitle,subTitle:e.lastRefreshSuccessTime!=null?e.lastRefreshSuccessTime.utc(!0).fromNow():"",backgroundColor:X.colors.grey5,onBackClick:h,rightSideComponent:w,showMenuIcon:k==="medium-compact"||k==="small",downloadPresent:!0,onClickMenuIcon:R,source:"OpExByVendorPage"}),t.jsxs(wo,{windowSize:k,children:[he?t.jsx(Be,{allTabs:W,selectedTab:W[1].id,containerStyle:{borderBottom:`2px solid ${X.colors.grey3}`},onTabChange:x=>l(Oe(x.id)),previousTabPosition:d,setPreviousTabPosition:b}):null,t.jsx(Lo,{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:$}),Y!=null?t.jsx(Eo,{children:t.jsx(Xe,{balance:Y,dateText:zo(Y)})}):null,t.jsx(Fo,{report:e,isEmptyPeriod:K})]}),t.jsx(Vo,{reference:T,report:e,uiState:o,isEmptyPeriod:K,onAdditionalBalanceSelectionChanged:p,onVendorNameAndBalanceClicked:_,onSortOrderChanged:xe,handleFetchOpExByVendor:fe,onPageFetchStarted:f,analytics:$})]})}return t.jsx(t.Fragment,{})},Lo=({timeframes:e,firstMonthOfFY:r,allTimeframeTicks:o,selectedCOABalancesRange:s,selectedTimeframe:l,onTimeframeSelectionChanged:i,onAdditionalBalanceSelectionChanged:h,mode:n,isCompareModeOn:p,analytics:g})=>t.jsx(To,{children:t.jsxs(Po,{children:[t.jsx(jo,{children:t.jsx(qe,{timeframe:{allowedTimeframes:e,selectedTimeframe:l,onTimeframeSelectionChanged:c=>{g?.trackTimeframeSwitch(V(c),z("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,z("operating_expenses_by_vendor"),V(l)),h(c,c?["this_period_vs_last_period_percent"]:[])}}})}),t.jsx(Ge,{firstMonthOfFY:r,timeframe:l,timeframeTicks:o,selection:{selectedTicks:oe(o,s),highlightedOfSelectedTicks:oe(o,s)}})]})}),Fo=({isEmptyPeriod:e,report:r})=>{const o=G();return e?t.jsx(No,{children:t.jsx(Je,{title:B.getLocalizedStrings().chartCard.no_data_available})}):t.jsx(Do,{windowSize:o,children:t.jsx(le,{children:({height:s,width:l})=>t.jsx(po,{selectedRangeReport:r,width:l,height:s,isDetailPage:!0,showBarHoverBackground:!1})})})},Vo=({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",z("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),$=G(),R=q(),P=!($==="small"||$==="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:Te(),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=bo(e,r,k,P);v(e),b(T)}else{const T=_o(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(Io,{windowSize:$,ref:s,children:o?t.jsx(Ue,{}):d!=null?t.jsx(Mo,{children:t.jsx(Qe,{backgroundColor:new Pe(R.colors.grey4),rootNodes:d,type:"name+balances_actual",compareMode:f,isSticky:{isStickyHeader:P,isStickyName:P},treeNodePadding:{left:E.contentPaddingLeft.value($),right:E.contentPaddingRight.value($)},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{mr as default};
100
+ `,Mo=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?t.jsx(vo,{children:t.jsx($e,{size:"ExtraLarge",start:!0})}):null,mr=({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]),[A,M]=x.useState(!1),k=H(),T=x.useRef(null),W=xe(r),he=W.length>1,me=B.getLocalizedStrings().reports.common,U=B.getLocalizedStrings().vendors,Q=q(),ge=["month","quarter"],ue=e.availableNumberOfPeriods!=null&&e.availableNumberOfPeriods<2,L=o.mode==="compare_mode"&&!ue,K=e.allTimeframeTicks.length===0,{timeframe:$}=o,D=o.searchString[$],fe=x.useCallback(w=>{n($,D,w)},[$,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(be((w,y)=>Ce(w,y),500,{trailing:!0})).current,ye=(w,y)=>{c(w,y,$),C(!0),n($,D,!1)};if(x.useEffect(()=>{async function w(){await uo({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[$],...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]),x.useEffect(()=>{I(D)},[D]),e.fetchState==="Error")return t.jsxs(Bo,{children:[t.jsx(jo,{"data-testid":_e("op-ex-by-vendor-reload-page"),onClick:i,children:t.jsx(Se,{})}),t.jsx(Oo,{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(Mo,{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(ke,{isSearchOpen:(D?.length??0)>0,searchPlaceHolder:U.common.searchPlaceholder,searchText:P??"",onSearchTextChanged:y=>{I(y),y.trim().length>=2?X(y,$):y.trim().length==0&&X("",$)},downloadPresent:!0}),t.jsx(we,{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 M(!0)}}}})]});return t.jsxs(ko,{windowSize:k,children:[t.jsx(ve,{title:U.common.navBarTitle,subTitle:e.lastRefreshSuccessTime!=null?e.lastRefreshSuccessTime.utc(!0).fromNow():"",backgroundColor:Q.colors.grey5,onBackClick:h,rightSideComponent:w,showMenuIcon:k==="medium-compact"||k==="small",downloadPresent:!0,onClickMenuIcon:z,source:"OpExByVendorPage"}),t.jsxs(wo,{windowSize:k,children:[he?t.jsx(Be,{allTabs:W,selectedTab:W[1].id,containerStyle:{borderBottom:`2px solid ${Q.colors.grey3}`},onTabChange:y=>l(je(y.id)),previousTabPosition:d,setPreviousTabPosition:b}):null,t.jsx(Lo,{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(Eo,{children:t.jsx(Qe,{balance:Y,dateText:Ro(Y)})}):null,t.jsx(Fo,{report:e,isEmptyPeriod:K})]}),t.jsx(Vo,{reference:T,report:e,uiState:o,isEmptyPeriod:K,onAdditionalBalanceSelectionChanged:p,onVendorNameAndBalanceClicked:_,onSortOrderChanged:ye,handleFetchOpExByVendor:fe,onPageFetchStarted:f,analytics:O})]})}return t.jsx(t.Fragment,{})},Lo=({timeframes:e,firstMonthOfFY:r,allTimeframeTicks:o,selectedCOABalancesRange:s,selectedTimeframe:l,onTimeframeSelectionChanged:i,onAdditionalBalanceSelectionChanged:h,mode:n,isCompareModeOn:p,analytics:g})=>t.jsx(To,{children:t.jsxs(Po,{children:[t.jsx($o,{children:t.jsx(qe,{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(He,{firstMonthOfFY:r,timeframe:l,timeframeTicks:o,selection:{selectedTicks:oe(o,s),highlightedOfSelectedTicks:oe(o,s)}})]})}),Fo=({isEmptyPeriod:e,report:r})=>{const o=H();return e?t.jsx(No,{children:t.jsx(Je,{title:B.getLocalizedStrings().chartCard.no_data_available})}):t.jsx(Do,{windowSize:o,children:t.jsx(le,{children:({height:s,width:l})=>t.jsx(po,{selectedRangeReport:r,width:l,height:s,isDetailPage:!0,showBarHoverBackground:!1})})})},Vo=({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:Te(),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=bo(e,r,k,P);v(e),b(T)}else{const T=_o(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(Io,{windowSize:O,ref:s,children:o?t.jsx(Ue,{}):d!=null?t.jsx(Ao,{children:t.jsx(Xe,{backgroundColor:new Pe(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})},Ro=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{mr as default};
@@ -1,4 +1,4 @@
1
- import{u as i,j as r}from"./index-CbZTLtvs.js";import{n}from"./vendor-CnQcJ2Lu.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";const p=n.div`
1
+ import{u as i,j as r}from"./index-CyJdCOlu.js";import{n}from"./vendor-CnQcJ2Lu.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";const p=n.div`
2
2
  display: ${({isOpen:o})=>o?"block":"none"};
3
3
  position: fixed;
4
4
  top: 0;