@zeniai/web-cockpit-ui 1.15.30-dev → 1.15.31-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 (320) hide show
  1. package/dist/assets/ACHDetailsPage-CxpLuJpQ-JKcW_L_F.js +21 -0
  2. package/dist/assets/{AIPerformancePage-DncCC-Dz-D3G6sKpR.js → AIPerformancePage-BtDuOBey-R_FrOwFb.js} +104 -104
  3. package/dist/assets/AccountInfoPage-DkpBGfrR-CwURNe8d.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-D-dwMWkI-Dbq4xdEd.js → AccountInfoPageContent-BLF92_vF-BcSKCd1r.js} +18 -18
  5. package/dist/assets/AccountLockedInfoModal-AsMkXu1I-DpSC039N.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BL7C23h8-C0V-huzv.js → AccountReconDetailsDrawerPage-CkaBrm5K-DMOtTL8X.js} +12 -12
  7. package/dist/assets/AccountRow-aEmcYP8T-BckNDPBQ.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-BqyCa3EH-C6VYK7eB.js → AccountsPromoCardStack-C0At5pn8-DZihjHYv.js} +26 -26
  9. package/dist/assets/AddAddressForCardDrawer-CbjThbsA-Djr5aTMV.js +6 -0
  10. package/dist/assets/{AddToWalletPage-tRVFR3Rw-CIboPJdI.js → AddToWalletPage-CMJwUbgf-rFPYYVSy.js} +47 -47
  11. package/dist/assets/{AgingReportsPage-BO9qovKL-m3dKXsEf.js → AgingReportsPage-B_BSfude-DWyamJwj.js} +15 -15
  12. package/dist/assets/{AllUserItems-C5uzbqu0-OYaG4ozf.js → AllUserItems-CGlWa60t-EoZjozXY.js} +11 -11
  13. package/dist/assets/{ApAgingDetailPage-Dw4d844_-DnXvQrmX.js → ApAgingDetailPage-DT3vkmLG-BsDDXbrZ.js} +4 -4
  14. package/dist/assets/AppBasePage-CDy7wPlv-CsB4iu-c.js +71 -0
  15. package/dist/assets/{AppDrawerContent-C5KqoZ6_-DSRTCara.js → AppDrawerContent-CEsXm_i6-DCe9idAB.js} +4 -4
  16. package/dist/assets/{ApprovalRulesSettingsPage-nEW4hufu-LHTAH2YF.js → ApprovalRulesSettingsPage-CB2_4-2f-JTvT_FnG.js} +6 -6
  17. package/dist/assets/{ArAgingChart-2eGhMrCs-DnvN-laJ.js → ArAgingChart-qxhWsIQb-D_1Ue9xU.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-CE_nDD48-CIv1_heH.js → ArAgingDetailPage-BbzQryp_-Babiy5ST.js} +4 -4
  19. package/dist/assets/{AttachmentView-DdX3DEyN-D4xdrOUi.js → AttachmentView-duTVxc9g-BoSNnqkS.js} +4 -4
  20. package/dist/assets/{BankAccountSection-Db8KCDjh-7fAQc6F_.js → BankAccountSection-CAwAf9xK-BTGyBjUJ.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-DLKyK-pN-WvpV5xZt.js → BankAccountWarningSection-CaDnP9_--BOTeyp6n.js} +11 -11
  22. package/dist/assets/{BankConnectionsSettingsPage-BcMQdf1D-C4cSmkMm.js → BankConnectionsSettingsPage-CDV7O8cl-CQv6ub4_.js} +10 -10
  23. package/dist/assets/{BillDetailPage-BOoE3r9n-C_-O6tkI.js → BillDetailPage-DJxh2CIc-BeHpC_ZG.js} +13 -13
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-C-M8i0tF-ErR7MbAL.js → BillPayApprovalRuleDetailPage-B2ZPbqtr-CXCcZzHB.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-cqq9M7pi-CM1gLpvJ.js → BillPayApprovalRulesPage-MM7v8ZMx-B1_OO9dS.js} +15 -15
  26. package/dist/assets/{BillPayPromoPage-CHu-sh9I-b6nXHlbY.js → BillPayPromoPage-JK-VOx4W-BEeCN8sy.js} +8 -8
  27. package/dist/assets/{BillPaySetUpPage-ICbZgQZR-DcttrcBB.js → BillPaySetUpPage-h0uoCWMl-D8aqE5Rg.js} +2 -2
  28. package/dist/assets/BillingSettingsPage-gJG9OxD6-Cdnv1hFG.js +44 -0
  29. package/dist/assets/{BillsBulkReviewDrawerPage-Cr-JmUCA-LZ1I5uJ7.js → BillsBulkReviewDrawerPage-CPPDFsZt-C0sV8yKV.js} +1 -1
  30. package/dist/assets/{BoxItem-ChtGcSH1-BjQod1Sp.js → BoxItem-CYe_gTmA-rmtQXiBP.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-Dos8Bnvb-EV3QIoHL.js +138 -0
  32. package/dist/assets/{CardNumberSubText-Dxhe-tx2-BQPvyrmB.js → CardNumberSubText-CFDhtij8-BmUW8oI1.js} +3 -3
  33. package/dist/assets/{CashbackDetailPage-BTR9tfZP-DZBth57E.js → CashbackDetailPage-BBGGzKh7-Bts6uMDO.js} +13 -13
  34. package/dist/assets/{ChargeCardDetailPage-D_dF0Nv_-Dp_tBUAA.js → ChargeCardDetailPage-BQhago53-D_FFt-oF.js} +18 -18
  35. package/dist/assets/{ChargeCardListPage-wA3_NOPD-DpPgkdeF.js → ChargeCardListPage-B0E-C3RH-CrU64eoy.js} +23 -23
  36. package/dist/assets/{ChargeCardListTable-8Bgd9bzh-yIMe5GBQ.js → ChargeCardListTable-ByGv0xWl-rSJFMbd2.js} +46 -46
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-mcW9jr2k-CIwmXpSr.js → ChargeCardPaymentHistoryPage-LCY9rFqO-CkY1nhYn.js} +12 -12
  38. package/dist/assets/ChargeCardPromoPage-CKEnOseD-DuGq7XTO.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-BxAJ2HVU-UIApVhks.js → ChargeCardSetupPage-BHv2VOdc-Bv0dAghh.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-CZzDSv5y-C_fNd-Va.js → ChargeCardStatementsPage-UpRXyPTS-DcNMglcu.js} +5 -5
  41. package/dist/assets/{CheckDepositDrawerPage-iPcp79Wu-DjNqRhvh.js → CheckDepositDrawerPage-0zbTQ3Fa-Edy7R6vj.js} +21 -21
  42. package/dist/assets/{CollapsableReportTable-Ck29YUyD-C4PUByzW.js → CollapsableReportTable-DlYIKSlQ-COjE28P7.js} +93 -93
  43. package/dist/assets/CompanyOfficerDetailsSection-Ck0xqZ0d-C5sOytCr.js +260 -0
  44. package/dist/assets/{CompanyPassportCard-CCfVNfP0-D2OWbLG1.js → CompanyPassportCard-DeVPuuje-B4Kq9zLA.js} +3 -3
  45. package/dist/assets/CompanyPassportPage-F_GUET9a-DWgtD9ML.js +574 -0
  46. package/dist/assets/{CompleteProfile-C0Qk6P6p-B7DE2SVz.js → CompleteProfile-Y6HwKtpz-CsUQDLc6.js} +2 -2
  47. package/dist/assets/ConfettiBurst-BGE3Okwr-B_KCfg_0.js +1 -0
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-XcmcSCP3.js → ConstrainedInnerElement-BeIpAPjB-Dx2Q69aJ.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-CmnpkgTu-B-wx5zV_.js → CreateOrEditVendorPage-BlZe6gmh-DxGvfsZR.js} +16 -16
  50. package/dist/assets/{CreditCardPaymentDrawerPage-wPiHCF7z-Dzpo3z2e.js → CreditCardPaymentDrawerPage-flPmyCaF-D3mVRIQk.js} +11 -11
  51. package/dist/assets/{CurrencySelectField-CxIflyKX-BGGnxKIK.js → CurrencySelectField-RiKAivD8-Dz6NASLd.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-CE5B6BET-BPLeksRp.js → CustomerOnboardingActivationPage-B7dLMk4g-D_eaYsMZ.js} +5 -5
  53. package/dist/assets/CustomerOnboardingContainerPage-BHPDhC3d-BBqvBSFY.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton--jL1SUOo-DgoL19Wk.js → CustomerOnboardingDetailPageSkeleton-AWsst0XH-Df3wynLD.js} +14 -14
  55. package/dist/assets/CustomerOnboardingNoStepsPage-Bqid4-rH-CmXil69t.js +66 -0
  56. package/dist/assets/CustomerOnboardingPage-B5LrMzZS-Bw_YjaWD.js +107 -0
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-IUm6QKOQ-BgC9YDnn.js → CustomerOnboardingProductSuitePage-DqgoBLWp-D2XUuLJm.js} +6 -6
  58. package/dist/assets/{Dashboard-CeBbTIiJ-BKwU5QeJ.js → Dashboard-D0KlujCx-D0HvooTT.js} +66 -66
  59. package/dist/assets/{DashboardReportPage-DVIwO5-L-pH5FWjLZ.js → DashboardReportPage-bxKyMsG7-Bb1y4PVD.js} +13 -13
  60. package/dist/assets/DashboardSidebarBackgroundAnimation-Ch0OiH1g-CbEVCb1f.js +12 -0
  61. package/dist/assets/{DepositAccTransactionItem-B7ErTe-9-ClHyxdVn.js → DepositAccTransactionItem-BdZVCAx--BEQtPnX0.js} +6 -6
  62. package/dist/assets/{DepositAccTransactionListPage-Czm5uOxb-BGyjwBM2.js → DepositAccTransactionListPage-LU0QMdSV-Bfh4B_mk.js} +6 -6
  63. package/dist/assets/{DomesticWireDetailsPage-B3Cib987-CARF9i1d.js → DomesticWireDetailsPage-CFt5GgZ1-Co98r5Ek.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-CS_4lZDV-DTBvhOHI.js → DownloadOverlay-CH_bA3On-bfSkm5Nl.js} +11 -11
  65. package/dist/assets/{DrawerPage-CrCkJ_bE-fj3woT0N.js → DrawerPage-Cpdp-IFb-BRc12KLa.js} +14 -14
  66. package/dist/assets/EditPeoplePage-BYnuNojX-B1GcGpQ9.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-DisSqLai-DnOSaIlo.js → EditReimbursementDetailPage-DnyyPZ26-CeObB7v0.js} +67 -67
  68. package/dist/assets/EntityDetailPage-DSfZZ1JW-Dd0uW0uD.js +18 -0
  69. package/dist/assets/{EntitySummarySection-CmVlq7pY-umvtllpK.js → EntitySummarySection-BFpgAYAM-D1hJybsA.js} +8 -8
  70. package/dist/assets/{ExpenseAutomationOverviewPage-DuWbC5EZ-DbINW0ra.js → ExpenseAutomationOverviewPage-YjOVm_Bw-p-cnIw4N.js} +56 -56
  71. package/dist/assets/ExpenseAutomationPage-DlhH-R-e-C1M6QNQ4.js +1700 -0
  72. package/dist/assets/{ExpressPayPage-DZHOM942-BLmAB792.js → ExpressPayPage-CKqPEfbR-CGYA64IG.js} +14 -14
  73. package/dist/assets/{FeaturePreviewPage-DHomR4Oi-DzHHPfTu.js → FeaturePreviewPage-Cs1Y3nP0-IoYZsFaa.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-C8Zv_X5E-BSPaXUZH.js → FollowStepsSection-BCyL8Jdr-B2UM5UTK.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-BFR_WZdE-jG6gei6c.js → GlobalReviewListPage-CBQFcVHd-Cv9-dFGG.js} +16 -16
  76. package/dist/assets/{InformationCardStack-C39QsHiY-B_SVxEcf.js → InformationCardStack-nFMetrAy-CQVo7xoK.js} +6 -6
  77. package/dist/assets/{InsightsCardStack-Bi2tusdE-DhrD945r.js → InsightsCardStack-CEMeGJXy-CBEUbPAA.js} +7 -7
  78. package/dist/assets/InsightsSection-BYiN2xB7-DRSyBaKY.js +27 -0
  79. package/dist/assets/{IntegrationsSettingsPage-Bj9lE3dy-C8DRNLeo.js → IntegrationsSettingsPage-BQ7g3a3K-BolFhxmH.js} +3 -3
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-HPxS_eP2-Bi_9u824.js → InternationalWireSwiftDetailsPage-BHRYsZgm-D9-8cqjd.js} +20 -20
  81. package/dist/assets/InternationalWireVerificationPage-tJbVtzQP-CBXNZ9Tt.js +292 -0
  82. package/dist/assets/{InviteFormPage-DyUgmNt6-yyWn8Yk_.js → InviteFormPage-BVXte8w8-LmKOVXja.js} +23 -23
  83. package/dist/assets/{InvitePageListView-PbTTJA74-w58xk_rt.js → InvitePageListView-DFPyLLrA-8Qu-82aZ.js} +55 -55
  84. package/dist/assets/InvitePeoplePage-B-uxjkke-hqYTwKtm.js +12 -0
  85. package/dist/assets/InvoiceUploadSection-B9q7nIs0-DaXZuZIR.js +140 -0
  86. package/dist/assets/{IssueChargeCardPage-WeFAdE9k-BxW4fu66.js → IssueChargeCardPage-BuLj1bOl-CrhI2RvS.js} +19 -19
  87. package/dist/assets/{LabeledAddressValue-BEiVNwJh-6EnDaIvC.js → LabeledAddressValue-D2t8ti-C-DZj4ysSt.js} +2 -2
  88. package/dist/assets/LabeledAddressValueField-DMcor_I8-1VjKhx0I.js +45 -0
  89. package/dist/assets/LabeledControlledCheckBoxField-B6w2HGJK-UqsSfRFN.js +16 -0
  90. package/dist/assets/{LabeledCreatableSingleSelectField-B-KMzhH--CvW70JID.js → LabeledCreatableSingleSelectField-DHNAX5Pu-BPCw1so2.js} +13 -17
  91. package/dist/assets/LabeledDocumentField-Bx1u7vv_-CXDoMBrK.js +41 -0
  92. package/dist/assets/LabeledDropDownFormattedTextField-BBS4da2b-DZkQmKIJ.js +59 -0
  93. package/dist/assets/{LabeledText-B1BxC4mo-CDiqUP7l.js → LabeledText-zjKn4Cw--KApo6LBw.js} +5 -5
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-D0OTplnZ-ClcTuuYx.js → LabeledUserSingleSelectWithSubtitlesField-CIofqRT6-DSUwJJwR.js} +18 -18
  95. package/dist/assets/{LabeledZeniRolesDropDownField-DruyoV6I-gDHLkFnU.js → LabeledZeniRolesDropDownField-DiBtAWQ3-CBaCEhEP.js} +38 -38
  96. package/dist/assets/{LinkJETransactionPage-_GJ-x5FQ-BvKwuUsJ.js → LinkJETransactionPage-D66bzDh_-CkE3r5Fj.js} +14 -14
  97. package/dist/assets/{LockCardPage-BiembyjL-BQgtTNap.js → LockCardPage-B1g2TZWL-BB9OEQ3a.js} +23 -23
  98. package/dist/assets/{LowBalancePopup-DF0W3ZsB-DXIPCFb8.js → LowBalancePopup-DbtHeVY--C1kZvBgV.js} +6 -6
  99. package/dist/assets/MagicLinkACHDetailsPage-X1pXkZYT-BwbjH03_.js +1 -0
  100. package/dist/assets/MagicLinkDomesticWireDetailsPage-BDl8k_bB-CowCmii0.js +1 -0
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-BohPD43K-CrX6QPLC.js → MagicLinkInternationalWireDetailsPage-Q4lIsHtG-Cz_o6Fdm.js} +1 -1
  102. package/dist/assets/MagicLinkSuccessPage-BkxuITX--Dm_WsIEN.js +31 -0
  103. package/dist/assets/{MagicLinkTitleSection-Dlvzbcxc-07YJ3nz_.js → MagicLinkTitleSection-CqkZ9wOf-Bw_OwXxB.js} +4 -4
  104. package/dist/assets/{MailingDetailsSection-BT5P_beR-Chn0pdYc.js → MailingDetailsSection-DRFGCM2W-BZiRRBi6.js} +1 -1
  105. package/dist/assets/{MyBankConnectionsSettingsPage-BSErzm4Y-BPCz_uBa.js → MyBankConnectionsSettingsPage-CE2ZqHBJ-BgvQaaTM.js} +9 -9
  106. package/dist/assets/{MyPendingActivationChargeCardListPage-CC02lTyz-CeD7DjCL.js → MyPendingActivationChargeCardListPage-BffxXDZg-ByY1n8i6.js} +2 -2
  107. package/dist/assets/MyProfileSettingsPage-DrsAlesY-hN8LUcXX.js +85 -0
  108. package/dist/assets/{NavBarWithPicker-BsrNGnWt-CVqlkT83.js → NavBarWithPicker-C4VfP_Kw-CBhRZ97T.js} +5 -5
  109. package/dist/assets/{NavigationArrow-BXIVh8h9-DmlDNFK6.js → NavigationArrow-DCCxx6H7-W7U95qs4.js} +7 -7
  110. package/dist/assets/{NavigationDots-CqAMUVd8-DlLV84YV.js → NavigationDots-tWCw6Bpk-CuIUDxge.js} +4 -4
  111. package/dist/assets/{NewGlobalMerchantPage-BJ5efhOX-45v-8VWf.js → NewGlobalMerchantPage-UIA8zAjd-D8vToc6n.js} +36 -36
  112. package/dist/assets/{NoDataChart-YIESVuNz-DxR56cWr.js → NoDataChart-Bvetk9za-0wt6JdBt.js} +2 -2
  113. package/dist/assets/NoDataTable-9xF1_3XS-DsLBD4Qa.js +8 -0
  114. package/dist/assets/{NotFoundPage-DsvOs3ie-CxEfyKrP.js → NotFoundPage-CdH-3upl-C_fcZJin.js} +5 -5
  115. package/dist/assets/{NotificationSettingsPage-DVfgPnm5-C-9LCnBN.js → NotificationSettingsPage-DP2gGIz1-CLjjU0Sc.js} +17 -17
  116. package/dist/assets/{NotificationsListConfig-DpYbR8ec-BZk6IMbB.js → NotificationsListConfig-DG-DH2Aj-CKXowXh2.js} +1 -1
  117. package/dist/assets/{NotificationsPage-DvWc70qe-CLGgDCba.js → NotificationsPage-CgFMmR2X-Be5cEQ7m.js} +24 -24
  118. package/dist/assets/{OpExByVendorPage-H76M8qaf-DmH_-lZf.js → OpExByVendorPage-eUvIAWzt-PZY_Xas_.js} +20 -20
  119. package/dist/assets/OverlayContainerPage-D4QU0p4o-3r3Bw7Lg.js +11 -0
  120. package/dist/assets/{PandLWithForecastPage-sw9N690f-DE9ix_Dt.js → PandLWithForecastPage-8S06Nyi5-BhQGG0da.js} +11 -11
  121. package/dist/assets/PaymentAccountSetupBillingAddressSection-DQtrANhI-9ZSRDZH6.js +107 -0
  122. package/dist/assets/PeoplePage-D1BLHtO0-sla4AS_t.js +675 -0
  123. package/dist/assets/{Preview-CTKmuGb_.js → Preview-CU8d2zan.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-BcFZaXQq-D-hD1KoW.js → ProductsCarousel-BKSXWnFR-DXZOy7zR.js} +5 -5
  125. package/dist/assets/{PromoBaseCards-BglIl0tN-CTFaf0_7.js → PromoBaseCards-BYT9nEJT-CqAOmcFY.js} +17 -17
  126. package/dist/assets/{QBOConnectionDialog-D9BGyyB3-D-hyd18h.js → QBOConnectionDialog-C2-omQMZ-zbiv02JV.js} +3 -3
  127. package/dist/assets/{QBOSetupSection-C6L-OXzd-Cy1MLcyD.js → QBOSetupSection-lgv5wVlg-y58Hyzd-.js} +16 -16
  128. package/dist/assets/{ReimbursementApprovalRuleDetailPage-tKu15I_o-BXX_iX2c.js → ReimbursementApprovalRuleDetailPage-CbJViS3x-D3aK08AA.js} +2 -2
  129. package/dist/assets/{ReimbursementApprovalRulesPage-r2WRV6kv-kJbuC_Ut.js → ReimbursementApprovalRulesPage-BuNt-Bmb-C78e8kMC.js} +8 -8
  130. package/dist/assets/{ReimbursementDetailPage-jJxS8CSo-DCuxr8dd.js → ReimbursementDetailPage-CK3-Jqkd-CgZiOEYV.js} +8 -8
  131. package/dist/assets/{ReimbursementPromoPage-CrKB_OxS-Ba_Ei159.js → ReimbursementPromoPage-fptOAJna-IPM14XMn.js} +20 -20
  132. package/dist/assets/{ReimbursementSetUpPage-COWnzuHW-C1onmBtq.js → ReimbursementSetUpPage-CidrpT2g-Ln_h8FTr.js} +12 -12
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-jpGSx2Pg-BNjvse6f.js → ReimbursementsBulkReviewDrawerPage-Cy_Hediw-DgBEVXGU.js} +1 -1
  134. package/dist/assets/{ReloadCard-Dl1P55OC-PqG6EjQo.js → ReloadCard-C81rGzOp-DJ3imZKo.js} +5 -5
  135. package/dist/assets/{ReportTableViewSelector-CPU5qvuC-D9eIuNWz.js → ReportTableViewSelector-neRSjrhV-Ren0yuJI.js} +9 -9
  136. package/dist/assets/{ReportsPage-FhO_9i3v-BqM0631G.js → ReportsPage-BhzQVaer-_PFG_SDT.js} +5 -5
  137. package/dist/assets/{RevenueChart-Bju5kT8K-CLZ32HGB.js → RevenueChart-x7uTbFlm-De__t5uZ.js} +18 -18
  138. package/dist/assets/{ReviewDetailsPage-CaEI-TGi-Bc73PbER.js → ReviewDetailsPage-jXZCylzg-CxWQeENN.js} +52 -52
  139. package/dist/assets/{ReviewOverlay-l69rpwr7-Dr7rxtnO.js → ReviewOverlay-nlm2HnGw-CrtXVWUE.js} +18 -18
  140. package/dist/assets/RoleWithToolTip-C29QOzxS-Flc5rF91.js +22 -0
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BRsO23kh-dDbnlnbP.js → ScheduleDetailsFixedAssetsPage-CkPzofLN-DIX9LFTM.js} +8 -8
  142. package/dist/assets/ScheduleDetailsPage-BSZefKOh-8kI1Do_y.js +37 -0
  143. package/dist/assets/{ScheduleSequenceTable-CeHDyMVV-BA7tEH_s.js → ScheduleSequenceTable-BW5M7Zfq-BxUxwc-r.js} +42 -42
  144. package/dist/assets/{ScreenRoutes-D50KKBnw.js → ScreenRoutes-CLhWgWVO.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-rRjmVlU7-VDyxWMzU.js → SetUpAccountSection-C703iFL6-CB7BMbY7.js} +5 -5
  146. package/dist/assets/SignIn-D9K5FklU-DoHIITb_.js +491 -0
  147. package/dist/assets/SignInScreen-BUCf8qGW.js +1 -0
  148. package/dist/assets/{SpendManagementListViewPage-B452IhbL-TWCl13gF.js → SpendManagementListViewPage-CBNtC74m-BtgixD4n.js} +12 -12
  149. package/dist/assets/{SpendManagementPerTabPage-BDYtqf0E-ik6oQrCv.js → SpendManagementPerTabPage-D_sa7WRd-BkE5ihPf.js} +23 -23
  150. package/dist/assets/{SpendManagementSection-BBotB3Xj-DXZ-WUxC.js → SpendManagementSection-DpZUTV6m-Dxy1NGgK.js} +25 -25
  151. package/dist/assets/{StatementItem-hqxspUme-BUYqqJPu.js → StatementItem-DvdSsb8I-Yc2t3LwG.js} +6 -6
  152. package/dist/assets/{StatementsPage-CL35o_9R-TfMK-pd1.js → StatementsPage-73jGj5P2-39XE15IE.js} +1 -1
  153. package/dist/assets/{StatusSwitcher-LSy5NlOs-Cp5AKxg-.js → StatusSwitcher-hKYgwNLC-CdIzFF5N.js} +2 -2
  154. package/dist/assets/{SubTabSwitcher-BB80NFhP-2jy_qhgj.js → SubTabSwitcher-aeDd9xiF-cMszftZd.js} +2 -2
  155. package/dist/assets/{SummaryCard-wJqTtNFt-BsTr0JdI.js → SummaryCard-CK8Gxbiu-D9gdCQ60.js} +1 -1
  156. package/dist/assets/TaskManagementPage-D2Ooq8DR-BCLu8T25.js +508 -0
  157. package/dist/assets/{TimeRangeSwitcher-B1jJf76U-DtYpu1mK.js → TimeRangeSwitcher-DEqlZxa6-CbVp5G_Z.js} +11 -11
  158. package/dist/assets/{TimeframeSwitcher-CTyaOUPX-CUY8xGFr.js → TimeframeSwitcher-BppC6giF-B4vl7lp6.js} +6 -6
  159. package/dist/assets/TimeframeSwitcherWithToggle-CbX9ElMN-CKuHpWeL.js +31 -0
  160. package/dist/assets/{TopExCard-D-0SNihe-ZpE9qsPN.js → TopExCard-Cy6tPVSx-DoueUq-S.js} +6 -6
  161. package/dist/assets/{TopExDetailPage-2Wo3VpBY-DOpuhpkX.js → TopExDetailPage-Rtrcdkcp-Bee2kIbH.js} +11 -11
  162. package/dist/assets/{TransactionActivityLogPage-Bh3D2NmZ-DXQUHRmX.js → TransactionActivityLogPage-DbwSsjPJ-Duhd9ppW.js} +15 -15
  163. package/dist/assets/TransactionDetailPage-D-vXAAB7-K9QSYBJd.js +903 -0
  164. package/dist/assets/{TransactionList-DUgCrZWV-BsOtXGXL.js → TransactionList-BruCNjQg-Bs3Zye0k.js} +16 -16
  165. package/dist/assets/{TransactionListBig-BXR8xSqt-DS-QLlyN.js → TransactionListBig-bp7q3prH-DtAaFzgB.js} +13 -13
  166. package/dist/assets/TransactionListPage-ZfJsaVb8-DDRcg9yh.js +35 -0
  167. package/dist/assets/{TransactionVendorDetailPage-D0ZIWPbx-BQMZxgAV.js → TransactionVendorDetailPage-CldkuO2--BwneqCS_.js} +15 -15
  168. package/dist/assets/{TransferDrawerPage-BP4KhD5c-DNhK3jLa.js → TransferDrawerPage-DswS6KZf-lfQEHAd_.js} +35 -35
  169. package/dist/assets/{TreasuryOverviewPage-CrYY5MJP-CSAwDWYp.js → TreasuryOverviewPage-DWo7iRpO-DwVZc_ol.js} +15 -15
  170. package/dist/assets/{TreasuryPromoPage-DZ4Kyqzq-C0Hayxbd.js → TreasuryPromoPage-DQxCF3-4-CSmOO24g.js} +131 -131
  171. package/dist/assets/{TreasuryStatementsPage-BaId882i-TGXLFLOt.js → TreasuryStatementsPage-CYkPtmaT-DN6XWXk4.js} +2 -2
  172. package/dist/assets/{TreasuryTaxLetterPage-BD36dset-CgUwGPhz.js → TreasuryTaxLetterPage-DH3su_rX-KVvmjWUc.js} +2 -2
  173. package/dist/assets/{TrendChart-CS2cE4wE-BAjN56AW.js → TrendChart-BMHDaOeh-Buv1h9ol.js} +3 -3
  174. package/dist/assets/{TrendWithTransactions-BNti0lYr-CupF-ouh.js → TrendWithTransactions-DDLrmIrt-fNUGa6rL.js} +3 -3
  175. package/dist/assets/{UncategorizedAccountsMappingPage-BsRepV5l-CqKwtcl-.js → UncategorizedAccountsMappingPage-3SW8Gj0Z-BU7ZjTMQ.js} +12 -12
  176. package/dist/assets/{UnitIntegrationPage-DqzH4Opa-DVf3e9Kc.js → UnitIntegrationPage-DPMy8dXP-BZ-cXQsX.js} +7 -7
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-BIzKt99W-DhZCGDG3.js → UploadAdditionalDocumentOverlay-BHpT2al--BnkxVa5e.js} +1 -1
  178. package/dist/assets/Vendor2FAPopup-C6gEOhUv-evnz1t4i.js +1 -0
  179. package/dist/assets/VendorACHDetailsPage-LNCcubjL-C8VaJhNx.js +1 -0
  180. package/dist/assets/{VendorDetailPage-C9YSL-3_-DZGykXKE.js → VendorDetailPage-BC1FhaQA-CueuZtdN.js} +12 -12
  181. package/dist/assets/{VendorDomesticWireDetailsPage-CqnTEv1M-BPuNMFYE.js → VendorDomesticWireDetailsPage-CLudahOt-Y_vODi9v.js} +1 -1
  182. package/dist/assets/{VendorFiling1099EditablePage-CmnR7Dwc-DgLszr9z.js → VendorFiling1099EditablePage-DYyPOA8D-CMg58Qh3.js} +32 -32
  183. package/dist/assets/{VendorFirstReviewPage-CAjuo6H2-DZOfU9yk.js → VendorFirstReviewPage-Cpmk7rDk-DktpXCT6.js} +8 -8
  184. package/dist/assets/{VendorInternationalWireDetailsPage-Ca1voldE-HFASmH_V.js → VendorInternationalWireDetailsPage-CWAWq6kq-vjVbUdxz.js} +9 -9
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CUtums8t-ChJiB8Jl.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-BY-jWDwa-DAUUORK8.js → VendorsAccountsSection-CGQ35Mhp-Bs7nzLpL.js} +2 -2
  187. package/dist/assets/{VerifyDevice-DSN3CxFh-Bi-kGmEN.js → VerifyDevice-CfMJW1Vh-pAakXHUa.js} +9 -9
  188. package/dist/assets/{VideoPlayer-BzBvO4D1-DXw1tjxz.js → VideoPlayer-BNBpjXJk-CNvH9RBW.js} +2 -2
  189. package/dist/assets/{VideoPopup-BB6qYshg-Jl0GqeqK.js → VideoPopup-BF6lmB7l-BYaaNsYn.js} +4 -4
  190. package/dist/assets/{WarningsDrawerPage-B4NIhdau-CF-G0BuB.js → WarningsDrawerPage-Crj70lnR-KEtM2APc.js} +3 -3
  191. package/dist/assets/{ZeniAccountDetailPage-CbMnZZXn-CK0OqnqL.js → ZeniAccountDetailPage-CaA6m3tQ-CEYZpiUC.js} +10 -10
  192. package/dist/assets/{ZeniAccountListViewPage-DuuiC_LT-D_lNPUTn.js → ZeniAccountListViewPage-x_51gDs1-Avk4qZ_6.js} +9 -9
  193. package/dist/assets/ZeniAccountNavBarPieces-Csr24dri-DksQYhl9.js +14 -0
  194. package/dist/assets/{ZeniAccountPromoPage-Bce5rHc6-vVu4g89P.js → ZeniAccountPromoPage-lxKBk2r5-B5zalg2W.js} +13 -13
  195. package/dist/assets/{ZeniAccountSetupPage-Cwr7kLE1-CoBt9y0X.js → ZeniAccountSetupPage-DUI4-2Zw-DRlq62qF.js} +3 -3
  196. package/dist/assets/{ZeniCopyright-CPV8cCJj-JmJFcE0S.js → ZeniCopyright-DxEZ4DiK-hTA8S1dS.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-CSJnweYQ-CLfwGJf8.js → ZeniTransferAmountSlider-4Nq4Sm9J-DVwizo2l.js} +11 -11
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-Bh5GmIs8.js → add-to-wallet-DgdBD8_G-DYxovDvY.js} +1 -1
  199. package/dist/assets/{analytics-C7qRceeD.js → analytics-Cmcqa01V.js} +1 -1
  200. package/dist/assets/{analyticsHelper-CeIe3crh-ruFTPZIn.js → analyticsHelper-CL-t3Y2i-BWhNt6sH.js} +1 -1
  201. package/dist/assets/analyticsHelper-DVKjUmRh.js +1 -0
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-DKJtOEDh.js → arrow-south-east-round-PEovUgvH-Cg10bY7L.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-BtLYBoTe.js → auto-transfer-rule-mbafm5D3-BzGzQRiq.js} +1 -1
  204. package/dist/assets/{chartTypes-Cpjk7Uyr-BFVm6fL4.js → chartTypes-B3501CSI-EaJM1gmS.js} +1 -1
  205. package/dist/assets/{commonDimensions-BiY7_JPE-DvdrP9mk.js → commonDimensions-YcBBlmYP-Djn7MvQY.js} +1 -1
  206. package/dist/assets/{constants-BSSpHQLd.js → constants-CO0CvGHR.js} +1 -1
  207. package/dist/assets/{core-BdfL-uia.js → core-MmJvanAX.js} +1 -1
  208. package/dist/assets/{dash.all.min-BHbNWZhu.js → dash.all.min-BtkViWW9.js} +1 -1
  209. package/dist/assets/{detailCommon-C7usWt5l-CDexfvl6.js → detailCommon-C19MYPnq-K0CC_UYn.js} +2 -2
  210. package/dist/assets/downloadPdf-DPAqxw6u-DNPeICgY.js +1 -0
  211. package/dist/assets/{empty-B_wp4jbR.js → empty-B8yNMhy_.js} +1 -1
  212. package/dist/assets/{empty-BfoY8avI.js → empty-wbHL4fCk.js} +1 -1
  213. package/dist/assets/epic-cC-V8fqP.js +2 -0
  214. package/dist/assets/{gift-box-Cmt9OgIZ-CTA3oEEm.js → gift-box-Cmt9OgIZ-mKGEn6_z.js} +1 -1
  215. package/dist/assets/{graphic-no-data-l-DU4J8fDt-B-BNuWuf.js → graphic-no-data-l-DU4J8fDt-DL4eASZx.js} +1 -1
  216. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BKSa_BmO.js → graphic-no-data-net-burn-l-CzmycA0m-CPdXbVAf.js} +1 -1
  217. package/dist/assets/{handshake-BPg58FML-BspGwKvx.js → handshake-BPg58FML-D9DqrV5o.js} +1 -1
  218. package/dist/assets/{index-DQGwrG6i.js → index-B2COPa4J.js} +1 -1
  219. package/dist/assets/{index-97wdo8qZ.js → index-BALzBmnK.js} +1 -1
  220. package/dist/assets/{index-CLP97b5b.js → index-BMz5TN4Z.js} +1 -1
  221. package/dist/assets/{index-2U9XpSIT.js → index-BZrvYCMV.js} +1 -1
  222. package/dist/assets/{index-BE47hrTe.js → index-Bj85L4uf.js} +1 -1
  223. package/dist/assets/{index-Blb3rESX.js → index-BmeBEa4W.js} +1 -1
  224. package/dist/assets/{index-BPZ0_UEx.js → index-DK3PYuee.js} +4083 -4077
  225. package/dist/assets/{lexical-CNiclLj0.js → lexical-DyUba00B.js} +1 -1
  226. package/dist/assets/{liveblocks-Lf8LVeH9.js → liveblocks-DzWLGwR5.js} +1 -1
  227. package/dist/assets/{lottie-BAIk2ri4.js → lottie-C8IpdMqp.js} +1 -1
  228. package/dist/assets/mapLoadingInProgressToTreeNode-D2u9MDI--B6CSGc2J.js +1 -0
  229. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-COWbEMKO-BV9EavoR.js → mapSectionWithAcOnlyToTreeNode-BDWD3x8r-BZO45bNY.js} +1 -1
  230. package/dist/assets/mapSpacerToTreeNode-Blr3egSm-BptZuVYf.js +1 -0
  231. package/dist/assets/mapTimeframeBalancesToTreeNode-3Hd8QHr2-BTUA7CSo.js +1 -0
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-D-LTfKnD-DSTIJ2iA.js +1 -0
  233. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-mmJVrGj0-CganeL6g.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CffU-RPP-Dqp5HT1g.js} +1 -1
  234. package/dist/assets/{mui-Dg-yyLd1.js → mui-CgqbPqeT.js} +1 -1
  235. package/dist/assets/{page-detail-CWX5S47F-C9V7NZCx.js → page-detail-CWX5S47F-CWr90kJa.js} +1 -1
  236. package/dist/assets/panelSelectedMixin-CzfD5-Zs-DRCw2iu0.js +4 -0
  237. package/dist/assets/{radio-default-CiSgisfh-7Dm34YkL.js → radio-default-CiSgisfh-BEZqUVYK.js} +1 -1
  238. package/dist/assets/{react-afxvtM8P.js → react-BE0WbgXK.js} +2 -2
  239. package/dist/assets/{react-BYCJSJzc.js → react-BWJsSx2R.js} +2 -2
  240. package/dist/assets/{react-XQWanSnz.js → react-BgXIf4f3.js} +1 -1
  241. package/dist/assets/{react-CmD2oDdV.js → react-C4LlJL88.js} +1 -1
  242. package/dist/assets/{react-CLIsPthr.js → react-CMcqnen6.js} +1 -1
  243. package/dist/assets/{react-CK1-HLiI.js → react-COyNmpZ3.js} +1 -1
  244. package/dist/assets/{react-CXimFM-A.js → react-DsUgK5BV.js} +1 -1
  245. package/dist/assets/{react-RbEMA7cG.js → react-DzUY3cKk.js} +1 -1
  246. package/dist/assets/{recharts-DVyIhUUu.js → recharts-CcfvjpA4.js} +1 -1
  247. package/dist/assets/{sentry-nVlxguQq.js → sentry-DS5py-mq.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-DoCKBSgZ.js → shield-DOlUxcFf-BF58Ag0p.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-D35Fk0m2-B_xF911W.js +1 -0
  250. package/dist/assets/toChartData-DzatRnt8-DoRfMwGl.js +1 -0
  251. package/dist/assets/{uploadAttachment-B3eC-lyz-B0nHI4xk.js → uploadAttachment-Bq8dk-Sm-D_5FZVYa.js} +18 -18
  252. package/dist/assets/{uploadReceipts-Dge0cNF1-dwFMCGnO.js → uploadReceipts-Dge0cNF1-v2Zp1kxY.js} +1 -1
  253. package/dist/assets/{url-3XfBQAPr.js → url-B1m04Aj9.js} +1 -1
  254. package/dist/assets/{url-A_ZszWlu.js → url-rEq3bn1J.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-BmH9C_mp.js → useLongPress-GCK2COYQ-BbRZopJb.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-iPZVfl3G.js → usp-line-BBd1wKwW-C_HT3NYA.js} +1 -1
  257. package/dist/assets/{utils-Bn_xI0qf.js → utils-C5WTobSB.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-DwXlACp-.js → zeni-epic-state-QRf7TPA6.js} +18 -18
  259. package/dist/index.html +1 -1
  260. package/package.json +4 -4
  261. package/dist/assets/ACHDetailsPage-BR3rG--e-D2_LFn30.js +0 -21
  262. package/dist/assets/AccountInfoPage-CD5N14l8-POhlTbPm.js +0 -18
  263. package/dist/assets/AccountLockedInfoModal-Bu3jEa0r-DRCGU_-r.js +0 -59
  264. package/dist/assets/AccountRow-B5Gqqqtn-B2ab5e7e.js +0 -298
  265. package/dist/assets/AddAddressForCardDrawer-BwmafnJT-Ba-xRLW9.js +0 -6
  266. package/dist/assets/AppBasePage-BMHvSY21-DiAzqDoX.js +0 -71
  267. package/dist/assets/BillingSettingsPage-DYdJ7J5w-nKMt_tqW.js +0 -44
  268. package/dist/assets/BusinessVerificationPage-CyDHfWqO-s-eVbnix.js +0 -138
  269. package/dist/assets/ChargeCardPromoPage-BPyHy6jq-EG0Y0jIo.js +0 -222
  270. package/dist/assets/CompanyOfficerDetailsSection-CEpMwx3h-D1MF6UPf.js +0 -331
  271. package/dist/assets/CompanyPassportPage-S00SGN0f-DChjXEwN.js +0 -417
  272. package/dist/assets/ConfettiBurst-BFSc4yf1-Bb3-1CUU.js +0 -1
  273. package/dist/assets/CustomerOnboardingContainerPage-CyY14sjC-U3ET6sDq.js +0 -1
  274. package/dist/assets/CustomerOnboardingNoStepsPage-DtAEP0LR-BBA3-H-1.js +0 -66
  275. package/dist/assets/CustomerOnboardingPage-8fLLsJWV-Cl7RVN5-.js +0 -107
  276. package/dist/assets/DashboardSidebarBackgroundAnimation-CntzllmW-BTAOBj42.js +0 -12
  277. package/dist/assets/EditPeoplePage-CbH2FQwr-Dc9u9Y3N.js +0 -55
  278. package/dist/assets/EntityDetailPage-CPfVH0Qx-DTuhKWD_.js +0 -18
  279. package/dist/assets/ExpenseAutomationPage-DBW9Urqw-BLqr1_km.js +0 -1794
  280. package/dist/assets/InsightsSection-CKYv2Mnk-CMDaS26i.js +0 -27
  281. package/dist/assets/InternationalWireVerificationPage-0DjZSpXZ-BFgqlc0H.js +0 -65
  282. package/dist/assets/InvitePeoplePage-CD1AM3Js-2Vxumr-a.js +0 -12
  283. package/dist/assets/InvoiceUploadSection-DPN2hpHj-BXu1QXvI.js +0 -140
  284. package/dist/assets/LabeledAddressValueField-CeyT4xDd-BvfbCZea.js +0 -45
  285. package/dist/assets/LabeledControlledCheckBoxField-9wqNy7sL-BEJkWulK.js +0 -16
  286. package/dist/assets/LabeledCountryMultiSelectField-S16_1kXP-UlJPnrtq.js +0 -237
  287. package/dist/assets/LabeledDocumentField-9m7Nhuth-CkOtgSAA.js +0 -41
  288. package/dist/assets/LabeledDropDownFormattedTextField-B_jJYbeK-PbQrO6eI.js +0 -59
  289. package/dist/assets/MagicLinkACHDetailsPage-p0Nwa4g8-DTvViT4t.js +0 -1
  290. package/dist/assets/MagicLinkDomesticWireDetailsPage-B_wnHSrq-Cz4K_Hkr.js +0 -1
  291. package/dist/assets/MagicLinkSuccessPage-RJUcSgy8-CnQ9391t.js +0 -31
  292. package/dist/assets/MyProfileSettingsPage-BM5j8vuZ-D6xmAoOb.js +0 -85
  293. package/dist/assets/NoDataTable-CHeZXDKw-DlmRPcbA.js +0 -8
  294. package/dist/assets/OverlayContainerPage-D4QU0p4o-COyWocbB.js +0 -11
  295. package/dist/assets/PaymentAccountSetupBillingAddressSection-D_rfYltd-BrO8Jg79.js +0 -107
  296. package/dist/assets/PeoplePage-D0ePO3d9-CxNhgJ1D.js +0 -727
  297. package/dist/assets/RoleWithToolTip-C4vCwcT8-C6dR3RYf.js +0 -22
  298. package/dist/assets/ScheduleDetailsPage-pKJSKheu-CETheSQx.js +0 -37
  299. package/dist/assets/SignIn-zX3S7vuf-B6rD6GnF.js +0 -491
  300. package/dist/assets/SignInScreen-BiRGIzoF.js +0 -1
  301. package/dist/assets/TaskManagementPage-CnB395ci-B2Pevaa4.js +0 -508
  302. package/dist/assets/TimeframeSwitcherWithToggle-D48PqfUX-BOxnTPru.js +0 -31
  303. package/dist/assets/TransactionDetailPage-NZEjiM1T-BGAbWz8k.js +0 -903
  304. package/dist/assets/TransactionListPage-BhY1YX8v-D8gtIhpi.js +0 -35
  305. package/dist/assets/Vendor2FAPopup-BzQXTs0l-BcKh-GwF.js +0 -1
  306. package/dist/assets/VendorACHDetailsPage-D1DvwT9e-H_zR5eA1.js +0 -1
  307. package/dist/assets/VendorInternationalWireSwiftDetailsPage-B17rmnsI-xxPWVLYY.js +0 -1
  308. package/dist/assets/ZeniAccountNavBarPieces-CLNviNEx-Ct9cJGJf.js +0 -14
  309. package/dist/assets/analyticsHelper-DdyBOS3c.js +0 -1
  310. package/dist/assets/commonTypes-B1ylXa_P-CHogy7bq.js +0 -1
  311. package/dist/assets/downloadPdf-DRVFJQsk-Cc-9O8x2.js +0 -1
  312. package/dist/assets/epic-BcpbmT-B.js +0 -2
  313. package/dist/assets/helper-Bwr_8pRi-BezSaeYe.js +0 -223
  314. package/dist/assets/mapLoadingInProgressToTreeNode-DkvfU-AQ-BbnpqVZY.js +0 -1
  315. package/dist/assets/mapSpacerToTreeNode-Csr6iLbE-BUQp66A_.js +0 -1
  316. package/dist/assets/mapTimeframeBalancesToTreeNode-DWah9nq--BLW1ZcCy.js +0 -1
  317. package/dist/assets/mapTimeframeBalancesToTreeNode-KUx30-z6-BBnKHsqs.js +0 -1
  318. package/dist/assets/panelSelectedMixin-Cddsb26L-BcWH15GY.js +0 -3
  319. package/dist/assets/toCOABalancesWithID-BOdn6oVS-6ioKjlBn.js +0 -1
  320. package/dist/assets/toChartData--znXzhow-CzN3PXN2.js +0 -1
@@ -1,8 +1,8 @@
1
- import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,aa as ye,F as P,h7 as ti,y as R,i9 as ii,b as Ne,m as oi,az as tt,cn as it,b4 as ot,dq as st,cv as at,k6 as rt,u as w,i as si,k7 as ai,dn as he,a_ as ri,H as ni,a as nt,p as S,aj as li,bQ as _,cL as ue,gb as pe,k8 as fe,ax as lt,a8 as dt,dw as U,fw as ct,gl as di,am as ee,ip as ci,an as H,fK as hi,aW as $e,bb as me,k9 as ui,bN as ht,ka as Re,bw as pi}from"./index-BPZ0_UEx.js";import{a as g}from"./sentry-nVlxguQq.js";import{n as r,c as O}from"./mui-Dg-yyLd1.js";import{Gn as fi,Go as mi,bL as X,bh as $,Ed as ut}from"./zeni-epic-state-DwXlACp-.js";import{k as gi}from"./SubTabSwitcher-BB80NFhP-2jy_qhgj.js";import{d as pt}from"./useLongPress-GCK2COYQ-BmH9C_mp.js";import{A as ft,t as mt,a as gt,E as xt,L as bt,I as wt}from"./NotificationsListConfig-DpYbR8ec-BZk6IMbB.js";import"./liveblocks-Lf8LVeH9.js";import"./core-BdfL-uia.js";import"./recharts-DVyIhUUu.js";import"./lottie-BAIk2ri4.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./utils-Bn_xI0qf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="03c16cd2-eefc-43cc-a5fc-a5d2faf22f28",e._sentryDebugIdIdentifier="sentry-dbid-03c16cd2-eefc-43cc-a5fc-a5d2faf22f28")}catch{}})();function xi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:h}){const u=v(),p=Z(),m=g.useCallback(x=>{d(x.id)},[d]),f=g.useCallback(x=>{h(x.id)},[h]);return e.length===0?null:t.jsxs(bi,{windowSize:u,children:[t.jsx(ii,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${p.colors.grey3}`},onTabChange:m}),t.jsx(gi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:f})]})}const bi=r.div`
1
+ import{e as Z,J as v,a9 as Qt,cG as Kt,V as t,bD as Xt,ac as Zt,aS as ei,o as i,aa as ye,F as P,h4 as ti,y as R,i7 as ii,b as Ne,T as oi,ay as tt,cn as it,b4 as ot,dq as st,cu as at,k4 as rt,u as w,i as si,k5 as ai,dn as he,a_ as ri,N as ni,a as nt,p as S,ai as li,bQ as _,cT as ue,g8 as pe,k6 as fe,aw as lt,a8 as dt,dx as E,ft as ct,gi as di,al as ee,im as ci,am as H,fH as hi,aW as $e,bb as me,k7 as ui,bN as ht,k8 as Re,bw as pi}from"./index-DK3PYuee.js";import{a as g}from"./sentry-DS5py-mq.js";import{n as r,c as O}from"./mui-CgqbPqeT.js";import{Gf as fi,Gg as mi,bL as X,bh as $,Eb as ut}from"./zeni-epic-state-QRf7TPA6.js";import{k as gi}from"./SubTabSwitcher-aeDd9xiF-cMszftZd.js";import{d as pt}from"./useLongPress-GCK2COYQ-BbRZopJb.js";import{A as ft,t as mt,a as gt,E as xt,L as bt,I as wt}from"./NotificationsListConfig-DG-DH2Aj-CKXowXh2.js";import"./liveblocks-DzWLGwR5.js";import"./core-MmJvanAX.js";import"./recharts-CcfvjpA4.js";import"./lottie-C8IpdMqp.js";import"./analytics-Cmcqa01V.js";import"./lexical-DyUba00B.js";import"./utils-C5WTobSB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="94ad2fc1-68a9-479d-9bd7-6d6f583ca614",e._sentryDebugIdIdentifier="sentry-dbid-94ad2fc1-68a9-479d-9bd7-6d6f583ca614")}catch{}})();function xi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:h}){const u=v(),p=Z(),m=g.useCallback(x=>{d(x.id)},[d]),f=g.useCallback(x=>{h(x.id)},[h]);return e.length===0?null:t.jsxs(bi,{windowSize:u,children:[t.jsx(ii,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${p.colors.grey3}`},onTabChange:m}),t.jsx(gi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:f})]})}const bi=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
5
- `,{common:{timeStrings:yt,strings:wi},dateFormat:Ie,timeFormat:yi}=P.getLocalizedStrings(),$t=["today","yesterday","last_7_days_this_month","earlier_this_month","earlier_that_month"],le=e=>e.type.concat(wi.underscore).concat(e.start.format(Ie.visual.DdashMMdashYYYYFormat)),ge=e=>{switch(e.type){case"today":case"yesterday":case"earlier_this_month":case"last_7_days_this_month":return yt[e.type];case"earlier_that_month":return e.start.format(Ie.visual.MMMYYYYFormat)}},jt=e=>{const o=X(e.toUTCString()),s=$(),a=s.diff(o,"minutes"),n=s.diff(o,"seconds"),l=60,c=24*60;return n<=l?yt.justNow:a<c&&ui(o,0)?o.format(yi.hhmmAFormat):o.format(Ie.visual.MMMDFormat)},_e=e=>{switch(e.code){case"todo":return S.important;case"in_progress":return S.info;case"on_hold":return S.alert;case"done":return S.championLight;case"resolved":return S.successDark;default:return S.neutralGrey2Light}},{commentsAndNotifications:{notifications:{actionStrings:{comments:$i}}}}=P.getLocalizedStrings(),kt=e=>{e.sort((n,l)=>X(n.inboxNotification.notifiedAt.toUTCString()).isAfter(X(l.inboxNotification.notifiedAt.toUTCString()))===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of $t){let l=0,c=0,d=$().subtract(Math.min($().date(),l),"d").startOf("d"),h=$().subtract(Math.min($().date(),c),"d").endOf("d"),u=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=$().subtract(Math.min($().date(),l),"d").startOf("d"),h=$().subtract(Math.min($().date(),c),"d").endOf("d"),a=oe(o,d,h),o=a.remainingData,s.push({start:d,end:h,type:n,notifications:a.singleGroup});break;case"last_7_days_this_month":o.length>0&&$().date()>2&&(d=$().subtract(Math.min($().date()-1,8),"d").startOf("d"),h=$().subtract(2,"d").endOf("d"),a=oe(o,d,h),o=a.remainingData,s.push({start:d,end:h,type:n,notifications:a.singleGroup}));break;case"earlier_this_month":o.length>0&&$().date()>9&&(d=$().startOf("M").startOf("d"),h=$().subtract(9,"d").endOf("d"),a=oe(o,d,h),o=a.remainingData,s.push({start:d,end:h,type:n,notifications:a.singleGroup}));break;case"earlier_that_month":for(;o.length>0;){const p=$().subtract(u,"month").startOf("M").startOf("d"),m=$().subtract(u,"month").endOf("M").endOf("d");u++,a=oe(o,p,m),o=a.remainingData,s.push({start:p,end:m,type:n,notifications:a.singleGroup})}break}}return s},oe=(e,o,s)=>{const a=[],n=e.map(l=>rt(o,s,X(l.inboxNotification.notifiedAt.toUTCString()))?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>X(l.inboxNotification.notifiedAt.toUTCString()).isAfter(X(c.inboxNotification.notifiedAt.toUTCString()))===!0?-1:1),{singleGroup:a,remainingData:n}},ji=e=>{const{thread:o}=e,{newRepliesAdded:s,newCommentAdded:a}=$i;return o.comments.length===1?a:s},St=new R(3,2,1,1,1),vt=new R(w[8],w[6],35,35,w[6]),de={lineClamp:St,sectionWidth:vt},{common:{texts:ze,timeStrings:ki,strings:te},commentsAndNotifications:{notifications:{strings:{newMessage:Si},actionStrings:{comments:{newCommentAdded:vi}}}}}=P.getLocalizedStrings(),Ci=({notificationData:e,users:o,isHighlighted:s=!1,style:a,onNotificationTileClick:n})=>{const l=lt(),c=dt().analytics,{inboxNotification:{id:d,readAt:h,notifiedAt:u},thread:p}=e,{setRequestToOpenThread:m}=g.useContext(di),f=h!=null?"read":"unread",{metadata:{url:x,companyId:k,entityType:B},id:z}=p;return t.jsxs(zi,{readStatus:f,isClickable:!!x,isHighlighted:s,style:a,onClick:()=>{x&&(n(d,ut(x),f),(p.metadata.tab==="bill"||p.metadata.tab==="reimbursement")&&m({threadId:z,companyId:k,entityType:B})),p.metadata.application!=="cockpit"&&c.trackCommentActivity("notification","clicked",p.metadata.companyName,l.controllersList.controllers.map(N=>U(N)),p.resolved?"resolved":"open",{name:ct(l.loggedInUser),email:l.loggedInUser?.userEmail??""},"db notification")},children:[t.jsx(Ti,{notificationData:e,users:o}),t.jsx(Ii,{...e}),t.jsx(Li,{timestamp:u,readStatus:f})]})},Ct=({notificationData:e,users:o})=>{const{thread:s}=e,{comments:a}=s,n=a[0];return a.length===0||n.body==null?t.jsx(je,{children:Si}):t.jsx(je,{children:n.body.content.map(l=>{switch(l.type){case"paragraph":return l.children.map((c,d)=>{if(Ri(c)){const u=o.find(p=>p.userId===c.id);return c.id?t.jsx(Ni,{notificationData:e,user:u},`${c.id}${te.underscore}${d}`):null}if(_i(c)){const u=ci(c.url)??c.url;return t.jsx(Gi,{href:u,target:"_blank",rel:"noopener noreferrer nofollow",children:c.text??c.url},d)}let h=c.text;return c.bold===!0&&(h=t.jsx(Ai,{children:h},d)),c.italic===!0&&(h=t.jsx(Pi,{children:h},d)),c.strikethrough===!0&&(h=t.jsx(Bi,{children:h},d)),c.code===!0&&(h=t.jsx(Oi,{children:h},d)),t.jsx(Fi,{children:h},d)});default:return t.jsx(je,{children:vi})}})})},Ti=({notificationData:e,users:o})=>{const s=v();return t.jsx(Ei,{windowSize:s,children:t.jsx(Ct,{notificationData:e,users:o})})},Ni=({notificationData:e,user:o})=>{const{inboxNotification:{readAt:s}}=e,a=s!=null?"read":"unread";let n=t.jsxs(De,{className:"userText",readStatus:a,children:[te.atTheRate,ze.zeniAI,te.space]});if(o!=null){const l=U(o,!1);n=t.jsx(t.Fragment,{children:t.jsxs(De,{className:"userText",readStatus:a,children:[te.atTheRate,l||ze.zeniAI,te.space]})})}return n},Tt=e=>{const o=ji(e);return t.jsx(t.Fragment,{children:o})},Ii=e=>{const o=v();return t.jsx(Mi,{windowSize:o,children:t.jsx(Tt,{...e})})},Nt=e=>{const{timestamp:o,readStatus:s}=e,a=jt(o);return t.jsxs(t.Fragment,{children:[t.jsx(Ui,{isNewNotification:a===ki.justNow,children:a}),t.jsx(Hi,{readStatus:s})]})},Li=e=>{const o=v();return t.jsx(Di,{windowSize:o,children:t.jsx(Nt,{...e})})};function Ri(e){return"type"in e&&e.type==="mention"}function _i(e){return"type"in e&&e.type==="link"}const zi=r.div`
5
+ `,{common:{timeStrings:yt,strings:wi},dateFormat:Ie,timeFormat:yi}=P.getLocalizedStrings(),$t=["today","yesterday","last_7_days_this_month","earlier_this_month","earlier_that_month"],le=e=>e.type.concat(wi.underscore).concat(e.start.format(Ie.visual.DdashMMdashYYYYFormat)),ge=e=>{switch(e.type){case"today":case"yesterday":case"earlier_this_month":case"last_7_days_this_month":return yt[e.type];case"earlier_that_month":return e.start.format(Ie.visual.MMMYYYYFormat)}},jt=e=>{const o=X(e.toUTCString()),s=$(),a=s.diff(o,"minutes"),n=s.diff(o,"seconds"),l=60,c=24*60;return n<=l?yt.justNow:a<c&&ui(o,0)?o.format(yi.hhmmAFormat):o.format(Ie.visual.MMMDFormat)},_e=e=>{switch(e.code){case"todo":return S.important;case"in_progress":return S.info;case"on_hold":return S.alert;case"done":return S.championLight;case"resolved":return S.successDark;default:return S.neutralGrey2Light}},{commentsAndNotifications:{notifications:{actionStrings:{comments:$i}}}}=P.getLocalizedStrings(),kt=e=>{e.sort((n,l)=>X(n.inboxNotification.notifiedAt.toUTCString()).isAfter(X(l.inboxNotification.notifiedAt.toUTCString()))===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of $t){let l=0,c=0,d=$().subtract(Math.min($().date(),l),"d").startOf("d"),h=$().subtract(Math.min($().date(),c),"d").endOf("d"),u=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=$().subtract(Math.min($().date(),l),"d").startOf("d"),h=$().subtract(Math.min($().date(),c),"d").endOf("d"),a=oe(o,d,h),o=a.remainingData,s.push({start:d,end:h,type:n,notifications:a.singleGroup});break;case"last_7_days_this_month":o.length>0&&$().date()>2&&(d=$().subtract(Math.min($().date()-1,8),"d").startOf("d"),h=$().subtract(2,"d").endOf("d"),a=oe(o,d,h),o=a.remainingData,s.push({start:d,end:h,type:n,notifications:a.singleGroup}));break;case"earlier_this_month":o.length>0&&$().date()>9&&(d=$().startOf("M").startOf("d"),h=$().subtract(9,"d").endOf("d"),a=oe(o,d,h),o=a.remainingData,s.push({start:d,end:h,type:n,notifications:a.singleGroup}));break;case"earlier_that_month":for(;o.length>0;){const p=$().subtract(u,"month").startOf("M").startOf("d"),m=$().subtract(u,"month").endOf("M").endOf("d");u++,a=oe(o,p,m),o=a.remainingData,s.push({start:p,end:m,type:n,notifications:a.singleGroup})}break}}return s},oe=(e,o,s)=>{const a=[],n=e.map(l=>rt(o,s,X(l.inboxNotification.notifiedAt.toUTCString()))?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>X(l.inboxNotification.notifiedAt.toUTCString()).isAfter(X(c.inboxNotification.notifiedAt.toUTCString()))===!0?-1:1),{singleGroup:a,remainingData:n}},ji=e=>{const{thread:o}=e,{newRepliesAdded:s,newCommentAdded:a}=$i;return o.comments.length===1?a:s},St=new R(3,2,1,1,1),vt=new R(w[8],w[6],35,35,w[6]),de={lineClamp:St,sectionWidth:vt},{common:{texts:ze,timeStrings:ki,strings:te},commentsAndNotifications:{notifications:{strings:{newMessage:Si},actionStrings:{comments:{newCommentAdded:vi}}}}}=P.getLocalizedStrings(),Ci=({notificationData:e,users:o,isHighlighted:s=!1,style:a,onNotificationTileClick:n})=>{const l=lt(),c=dt().analytics,{inboxNotification:{id:d,readAt:h,notifiedAt:u},thread:p}=e,{setRequestToOpenThread:m}=g.useContext(di),f=h!=null?"read":"unread",{metadata:{url:x,companyId:k,entityType:B},id:z}=p;return t.jsxs(zi,{readStatus:f,isClickable:!!x,isHighlighted:s,style:a,onClick:()=>{x&&(n(d,ut(x),f),(p.metadata.tab==="bill"||p.metadata.tab==="reimbursement")&&m({threadId:z,companyId:k,entityType:B})),p.metadata.application!=="cockpit"&&c.trackCommentActivity("notification","clicked",p.metadata.companyName,l.controllersList.controllers.map(N=>E(N)),p.resolved?"resolved":"open",{name:ct(l.loggedInUser),email:l.loggedInUser?.userEmail??""},"db notification")},children:[t.jsx(Ti,{notificationData:e,users:o}),t.jsx(Ii,{...e}),t.jsx(Li,{timestamp:u,readStatus:f})]})},Ct=({notificationData:e,users:o})=>{const{thread:s}=e,{comments:a}=s,n=a[0];return a.length===0||n.body==null?t.jsx(je,{children:Si}):t.jsx(je,{children:n.body.content.map(l=>{switch(l.type){case"paragraph":return l.children.map((c,d)=>{if(Ri(c)){const u=o.find(p=>p.userId===c.id);return c.id?t.jsx(Ni,{notificationData:e,user:u},`${c.id}${te.underscore}${d}`):null}if(_i(c)){const u=ci(c.url)??c.url;return t.jsx(Gi,{href:u,target:"_blank",rel:"noopener noreferrer nofollow",children:c.text??c.url},d)}let h=c.text;return c.bold===!0&&(h=t.jsx(Ai,{children:h},d)),c.italic===!0&&(h=t.jsx(Pi,{children:h},d)),c.strikethrough===!0&&(h=t.jsx(Bi,{children:h},d)),c.code===!0&&(h=t.jsx(Oi,{children:h},d)),t.jsx(Fi,{children:h},d)});default:return t.jsx(je,{children:vi})}})})},Ti=({notificationData:e,users:o})=>{const s=v();return t.jsx(Ui,{windowSize:s,children:t.jsx(Ct,{notificationData:e,users:o})})},Ni=({notificationData:e,user:o})=>{const{inboxNotification:{readAt:s}}=e,a=s!=null?"read":"unread";let n=t.jsxs(De,{className:"userText",readStatus:a,children:[te.atTheRate,ze.zeniAI,te.space]});if(o!=null){const l=E(o,!1);n=t.jsx(t.Fragment,{children:t.jsxs(De,{className:"userText",readStatus:a,children:[te.atTheRate,l||ze.zeniAI,te.space]})})}return n},Tt=e=>{const o=ji(e);return t.jsx(t.Fragment,{children:o})},Ii=e=>{const o=v();return t.jsx(Mi,{windowSize:o,children:t.jsx(Tt,{...e})})},Nt=e=>{const{timestamp:o,readStatus:s}=e,a=jt(o);return t.jsxs(t.Fragment,{children:[t.jsx(Ei,{isNewNotification:a===ki.justNow,children:a}),t.jsx(Hi,{readStatus:s})]})},Li=e=>{const o=v();return t.jsx(Di,{windowSize:o,children:t.jsx(Nt,{...e})})};function Ri(e){return"type"in e&&e.type==="mention"}function _i(e){return"type"in e&&e.type==="link"}const zi=r.div`
6
6
  display: flex;
7
7
  flex-direction: row;
8
8
  align-items: center;
@@ -68,7 +68,7 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
68
68
  -webkit-line-clamp: ${e=>de.lineClamp.value(e.windowSize)};
69
69
  -webkit-box-orient: vertical;
70
70
  width: ${e=>de.sectionWidth.valuePercentage(e.windowSize)};
71
- `,Ai=r.strong``,Oi=r.code``,Pi=r.em``,Bi=r.s``,Fi=r.span``,Gi=r.a``,Ei=r(ee)`
71
+ `,Ai=r.strong``,Oi=r.code``,Pi=r.em``,Bi=r.s``,Fi=r.span``,Gi=r.a``,Ui=r(ee)`
72
72
  color: inherit;
73
73
  display: -webkit-box;
74
74
  overflow: hidden;
@@ -79,7 +79,7 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
79
79
  color: ${e=>e.readStatus==="read"?e.theme.colors.grey1:S.brandColorJade};
80
80
  `,je=r(me)`
81
81
  color: inherit;
82
- `,Ui=r(ht)`
82
+ `,Ei=r(ht)`
83
83
  flex-shrink: 0;
84
84
  color: ${e=>e.isNewNotification?e.theme.colors.primary:"inherit"};
85
85
  `,Hi=r.div`
@@ -120,7 +120,7 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
120
120
  flex: 1 1 auto;
121
121
  justify-content: ${e=>e.isLastItem?"flex-end":"start"};
122
122
  width: ${e=>e.isLastItem?"10%":vt.valuePercentage(e.windowSize)};
123
- `,Yi=()=>{const e=v();return t.jsxs(Ji,{windowSize:e,children:[t.jsxs(qi,{children:[t.jsx(_,{width:180,height:w[4]}),t.jsx(_,{width:180,height:w[4]})]}),t.jsx(Ki,{children:t.jsx(_,{width:60,height:18})})]})},Ji=r.div`
123
+ `,Yi=()=>{const e=v();return t.jsxs(Ji,{windowSize:e,children:[t.jsxs(qi,{children:[t.jsx(_,{width:180,height:w[4]}),t.jsx(_,{width:180,height:w[4]})]}),t.jsx(Qi,{children:t.jsx(_,{width:60,height:18})})]})},Ji=r.div`
124
124
  display: flex;
125
125
  align-items: baseline;
126
126
  justify-content: space-between;
@@ -153,12 +153,12 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
153
153
  gap: ${i.sp2};
154
154
  flex: 1 1 auto;
155
155
  justify-content: start;
156
- `,Ki=r.div`
156
+ `,Qi=r.div`
157
157
  display: flex;
158
158
  align-items: baseline;
159
159
  flex-direction: row;
160
160
  justify-content: end;
161
- `,Qi=()=>v()==="small"?t.jsx(Yi,{}):t.jsx(Vi,{}),Xi={marginLeft:new R(w[2],w[5],w[7])},Zi=()=>t.jsxs(eo,{children:[t.jsx(ve,{numberOfRows:5}),t.jsx(ve,{numberOfRows:3})]}),ve=({numberOfRows:e})=>{const o=v();return t.jsxs(to,{windowSize:o,children:[t.jsx(oo,{children:t.jsx(_,{width:w[12],height:Ne.standardRegular.lineHeightValue})}),t.jsx(io,{children:[...Array(e)].map(s=>t.jsx(Qi,{},he()))})]})},eo=r.div`
161
+ `,Ki=()=>v()==="small"?t.jsx(Yi,{}):t.jsx(Vi,{}),Xi={marginLeft:new R(w[2],w[5],w[7])},Zi=()=>t.jsxs(eo,{children:[t.jsx(ve,{numberOfRows:5}),t.jsx(ve,{numberOfRows:3})]}),ve=({numberOfRows:e})=>{const o=v();return t.jsxs(to,{windowSize:o,children:[t.jsx(oo,{children:t.jsx(_,{width:w[12],height:Ne.standardRegular.lineHeightValue})}),t.jsx(io,{children:[...Array(e)].map(s=>t.jsx(Ki,{},he()))})]})},eo=r.div`
162
162
  display: block;
163
163
  min-height: 100%;
164
164
  flex-direction: column;
@@ -175,7 +175,7 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
175
175
  `,oo=r.div`
176
176
  display: flex;
177
177
  padding: ${i.sp3} ${i.sp0};
178
- `,so=({notificationData:e,users:o,isSelectionMode:s=!1,isHighlighted:a=!1,style:n,onNotificationTileClick:l,onNotificationTileLongPress:c})=>{const d=lt(),h=dt().analytics,{inboxNotification:{id:u,readAt:p,notifiedAt:m},thread:f}=e,x=p!=null?"read":"unread",k=f.metadata.url,B=g.useCallback(()=>{c?.()},[c]),z=g.useCallback(b=>{b.stopPropagation(),b.cancelable&&b.preventDefault(),s?c?.():k!=null&&(l(u,ut(f.metadata.url),x),f.metadata.application!=="cockpit"&&h.trackCommentActivity("notification","clicked",f.metadata.companyName,d.controllersList.controllers.map(I=>U(I)),f.resolved?"resolved":"open",{name:ct(d.loggedInUser),email:d.loggedInUser?.userEmail??""},"db notification"))},[s,k,c,l,u,f.metadata.url,f.metadata.application,x,d.controllersList,d.loggedInUser,h,f.metadata.companyName,f.resolved]),N=pt({onLongPress:B},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(lo,{readStatus:x,isClickable:k!=null,isHighlighted:a,style:n,...N,onClick:z,children:[t.jsxs(ho,{children:[t.jsx(ao,{notificationData:e,users:o}),t.jsx(ro,{...e})]}),t.jsx(no,{timestamp:m,readStatus:x})]})},ao=({notificationData:e,users:o})=>t.jsx(It,{children:t.jsx(Ct,{notificationData:e,users:o})}),ro=e=>t.jsx(It,{children:t.jsx(Tt,{...e})}),no=e=>t.jsx(co,{children:t.jsx(Nt,{...e})}),lo=r.div`
178
+ `,so=({notificationData:e,users:o,isSelectionMode:s=!1,isHighlighted:a=!1,style:n,onNotificationTileClick:l,onNotificationTileLongPress:c})=>{const d=lt(),h=dt().analytics,{inboxNotification:{id:u,readAt:p,notifiedAt:m},thread:f}=e,x=p!=null?"read":"unread",k=f.metadata.url,B=g.useCallback(()=>{c?.()},[c]),z=g.useCallback(b=>{b.stopPropagation(),b.cancelable&&b.preventDefault(),s?c?.():k!=null&&(l(u,ut(f.metadata.url),x),f.metadata.application!=="cockpit"&&h.trackCommentActivity("notification","clicked",f.metadata.companyName,d.controllersList.controllers.map(I=>E(I)),f.resolved?"resolved":"open",{name:ct(d.loggedInUser),email:d.loggedInUser?.userEmail??""},"db notification"))},[s,k,c,l,u,f.metadata.url,f.metadata.application,x,d.controllersList,d.loggedInUser,h,f.metadata.companyName,f.resolved]),N=pt({onLongPress:B},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(lo,{readStatus:x,isClickable:k!=null,isHighlighted:a,style:n,...N,onClick:z,children:[t.jsxs(ho,{children:[t.jsx(ao,{notificationData:e,users:o}),t.jsx(ro,{...e})]}),t.jsx(no,{timestamp:m,readStatus:x})]})},ao=({notificationData:e,users:o})=>t.jsx(It,{children:t.jsx(Ct,{notificationData:e,users:o})}),ro=e=>t.jsx(It,{children:t.jsx(Tt,{...e})}),no=e=>t.jsx(co,{children:t.jsx(Nt,{...e})}),lo=r.div`
179
179
  display: flex;
180
180
  flex-direction: row;
181
181
  align-items: baseline;
@@ -262,7 +262,7 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
262
262
  align-items: flex-start;
263
263
  width: 100%;
264
264
  padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp0};
265
- `,xo=r(Lt)``,bo=e=>v()==="small"?t.jsx(mo,{...e}):t.jsx(uo,{...e}),{commentsAndNotifications:{notifications:{message:wo}}}=P.getLocalizedStrings(),Pe={rowGap:new R(w[0],w[5],w[5])},yo=({notificationGroups:e,users:o,isFetching:s,hasMore:a,sectionId:n,checkBoxMode:l,scrollYOffset:c,currentSubTab:d,isDisabled:h,onUpdateScrollYOffset:u,onFetchNotificationGroups:p,onNotificationClick:m})=>{const f=v(),x=g.useRef(null),k=g.useRef({});g.useEffect(()=>{x.current?.resetAfterIndex(0,!0)},[f,x,e]),g.useEffect(()=>{x.current?.scrollTo(c)},[d]);const B=g.useCallback(C=>{if(k.current?.[C]!=null){const G=f==="small"&&a===!1&&C===e.length-1?Pe.rowGap.value("medium-regular"):Pe.rowGap.value(f);return k.current[C]+G}return(ft*St.value(f)+mt)*3+gt+xt},[f,k,e]),z=g.useCallback((C,G)=>{k.current={...k.current,[C]:G},x.current?.resetAfterIndex(0,!0)},[f,x,e]),N=g.useCallback(()=>{p()},[p]),b=g.useCallback(()=>{},[]),I=tt(C=>u(C),1e3,{trailing:!0}),j=C=>!a||C<e.length,V=g.useCallback(()=>a&&!s?N():b(),[a,s,N,b]),L=a?e.length+1:e.length;return t.jsx(jo,{children:t.jsx(ko,{windowSize:f,children:s&&e.length===0?t.jsx(Zi,{}):s===!1&&e.length===0?t.jsx(it,{message:wo.noNotificationsMessage,style:{padding:i.sp0}}):t.jsx(So,{windowSize:f,children:t.jsx(ot,{children:({height:C,width:G})=>t.jsx(st,{isItemLoaded:j,itemCount:bt,loadMoreItems:V,children:({onItemsRendered:W,ref:E})=>t.jsx(at,{ref:Y=>{E(Y),x.current=Y},height:C,itemCount:L,itemData:{notificationGroups:e,users:o,sectionId:n,checkBoxMode:l,isDisabled:h,isItemLoaded:j,setRowHeight:z,onNotificationClick:m},onItemsRendered:W,itemSize:B,width:G,style:{willChange:"auto"},overscanCount:wt,onScroll:({scrollOffset:Y})=>{I(Y)},initialScrollOffset:c,children:$o})})})})})})},$o=({index:e,style:o,data:s})=>{const{notificationGroups:a,users:n,sectionId:l,checkBoxMode:c,isItemLoaded:d,isDisabled:h,setRowHeight:u,onNotificationClick:p}=s,m=g.useRef(null),f=v();if(g.useEffect(()=>{m.current?.firstElementChild!=null&&u(e,m.current.firstElementChild.clientHeight)},[e,m,f,a[e]?.notifications]),d(e)===!0){const x=a[e],k=le(x);return t.jsx(Be,{style:{...o,paddingBottom:i.sp0,width:"100%"},ref:m,children:t.jsx(bo,{notificationGroup:x,sectionId:`${l}.${k}`,checkBoxMode:c,isDisabled:h,users:n,onNotificationTileClick:p})},k)}return t.jsx(Be,{ref:m,style:{...o,paddingBottom:i.sp0},children:t.jsx(ve,{numberOfRows:3})},he())},jo=r.div`
265
+ `,xo=r(Lt)``,bo=e=>v()==="small"?t.jsx(mo,{...e}):t.jsx(uo,{...e}),{commentsAndNotifications:{notifications:{message:wo}}}=P.getLocalizedStrings(),Pe={rowGap:new R(w[0],w[5],w[5])},yo=({notificationGroups:e,users:o,isFetching:s,hasMore:a,sectionId:n,checkBoxMode:l,scrollYOffset:c,currentSubTab:d,isDisabled:h,onUpdateScrollYOffset:u,onFetchNotificationGroups:p,onNotificationClick:m})=>{const f=v(),x=g.useRef(null),k=g.useRef({});g.useEffect(()=>{x.current?.resetAfterIndex(0,!0)},[f,x,e]),g.useEffect(()=>{x.current?.scrollTo(c)},[d]);const B=g.useCallback(C=>{if(k.current?.[C]!=null){const G=f==="small"&&a===!1&&C===e.length-1?Pe.rowGap.value("medium-regular"):Pe.rowGap.value(f);return k.current[C]+G}return(ft*St.value(f)+mt)*3+gt+xt},[f,k,e]),z=g.useCallback((C,G)=>{k.current={...k.current,[C]:G},x.current?.resetAfterIndex(0,!0)},[f,x,e]),N=g.useCallback(()=>{p()},[p]),b=g.useCallback(()=>{},[]),I=tt(C=>u(C),1e3,{trailing:!0}),j=C=>!a||C<e.length,V=g.useCallback(()=>a&&!s?N():b(),[a,s,N,b]),L=a?e.length+1:e.length;return t.jsx(jo,{children:t.jsx(ko,{windowSize:f,children:s&&e.length===0?t.jsx(Zi,{}):s===!1&&e.length===0?t.jsx(it,{message:wo.noNotificationsMessage,style:{padding:i.sp0}}):t.jsx(So,{windowSize:f,children:t.jsx(ot,{children:({height:C,width:G})=>t.jsx(st,{isItemLoaded:j,itemCount:bt,loadMoreItems:V,children:({onItemsRendered:W,ref:U})=>t.jsx(at,{ref:Y=>{U(Y),x.current=Y},height:C,itemCount:L,itemData:{notificationGroups:e,users:o,sectionId:n,checkBoxMode:l,isDisabled:h,isItemLoaded:j,setRowHeight:z,onNotificationClick:m},onItemsRendered:W,itemSize:B,width:G,style:{willChange:"auto"},overscanCount:wt,onScroll:({scrollOffset:Y})=>{I(Y)},initialScrollOffset:c,children:$o})})})})})})},$o=({index:e,style:o,data:s})=>{const{notificationGroups:a,users:n,sectionId:l,checkBoxMode:c,isItemLoaded:d,isDisabled:h,setRowHeight:u,onNotificationClick:p}=s,m=g.useRef(null),f=v();if(g.useEffect(()=>{m.current?.firstElementChild!=null&&u(e,m.current.firstElementChild.clientHeight)},[e,m,f,a[e]?.notifications]),d(e)===!0){const x=a[e],k=le(x);return t.jsx(Be,{style:{...o,paddingBottom:i.sp0,width:"100%"},ref:m,children:t.jsx(bo,{notificationGroup:x,sectionId:`${l}.${k}`,checkBoxMode:c,isDisabled:h,users:n,onNotificationTileClick:p})},k)}return t.jsx(Be,{ref:m,style:{...o,paddingBottom:i.sp0},children:t.jsx(ve,{numberOfRows:3})},he())},jo=r.div`
266
266
  display: block;
267
267
  background-color: ${e=>e.theme.colors.grey4};
268
268
  height: 100%;
@@ -279,7 +279,7 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
279
279
  top: ${i.sp0};
280
280
  left: ${i.sp0};
281
281
  box-sizing: border-box;
282
- `,{common:{in:vo,strings:Rt},dateFormat:Co,commentsAndNotifications:{notifications:{actionStrings:{notifications:A}}}}=P.getLocalizedStrings(),_t=e=>{e.sort((n,l)=>n.createTime.isAfter(l.createTime)===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of $t){let l=0,c=0,d=$().subtract(Math.min($().date(),l),"d").startOf("d"),h=$().subtract(Math.min($().date(),c),"d").endOf("d"),u=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=$().subtract(Math.min($().date(),l),"d").startOf("d"),h=$().subtract(Math.min($().date(),c),"d").endOf("d"),a=se(o,d,h),o=a.remainingData,s.push({start:d,end:h,type:n,notifications:a.singleGroup});break;case"last_7_days_this_month":o.length>0&&$().date()>2&&(d=$().subtract(Math.min($().date()-1,8),"d").startOf("d"),h=$().subtract(2,"d").endOf("d"),a=se(o,d,h),o=a.remainingData,s.push({start:d,end:h,type:n,notifications:a.singleGroup}));break;case"earlier_this_month":o.length>0&&$().date()>9&&(d=$().startOf("M").startOf("d"),h=$().subtract(9,"d").endOf("d"),a=se(o,d,h),o=a.remainingData,s.push({start:d,end:h,type:n,notifications:a.singleGroup}));break;case"earlier_that_month":for(;o.length>0;){const p=$().subtract(u,"month").startOf("M").startOf("d"),m=$().subtract(u,"month").endOf("M").endOf("d");u++,a=se(o,p,m),o=a.remainingData,s.push({start:p,end:m,type:n,notifications:a.singleGroup})}break}}return s},se=(e,o,s)=>{const a=[],n=e.map(l=>rt(o,s,l.createTime)?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>l.createTime.isAfter(c.createTime)===!0?-1:1),{singleGroup:a,remainingData:n}},To=e=>{let o=A.newActivity;return e.code==="in_progress"?o=A.due.replace("__task_status__",Re(e.name.toLocaleLowerCase())):o=A.due.replace("__task_status__",vo.toLocaleLowerCase().concat(Rt.space,Re(e.name.toLocaleLowerCase()))),o},No=e=>{const{eventData:{activities:o}}=e;let s=A.newActivity;if(o.length>0){const a=o[0].activityType,n=o[0].metadata.eventStatus;switch(a){case"task_archived":s=A.archive;break;case"task_deleted":s=A.delete;break;case"task_activities":s=A.activities;break;case"task_assigned":s=A.assign;break;case"task_created":s=A.create;break;case"task_due":s=n!=null?To(n):A.dueTomorrow;break;case"task_overdue":s=A.overdue.replace("__date__",o[0].metadata.additionalInfo?.dueDate.format(Co.visual.MMMDFormat)??Rt.empty);break;case"task_status_updated":s=A.statusUpdate;break}}return s},zt=new R(3,2,1,1,1),Dt=new R(w[8],33,33,33,35),ce={lineClamp:zt,sectionWidth:Dt},{common:{and:Fe,other:Io,others:Lo,texts:Ro,timeStrings:_o,strings:M,tags:zo}}=P.getLocalizedStrings(),Do=({notificationData:e,isHighlighted:o=!1,style:s,onNotificationTileClick:a})=>{const{status:n,notificationId:l,eventData:{entitiyId:c,activities:d},createTime:h}=e;return t.jsxs(Go,{notificationStatus:n,isHighlighted:o,style:s,onClick:()=>{a(l,c,n,d.length>0?d[0].activityType:void 0)},children:[t.jsx(Mo,{...e}),t.jsx(Po,{...e}),t.jsx(Fo,{...e}),t.jsx(Bo,{createTime:h,notificationStatus:n})]})},Mt=e=>{const{status:o,eventData:{title:s}}=e;return t.jsx(Wo,{notificationStatus:o,children:s||M.hyphen})},Mo=e=>{const o=v();return t.jsx(Vo,{windowSize:o,children:t.jsx(Mt,{...e})})},Ao=e=>{const{eventData:{activities:o}}=e;if(o.length>0&&o[0].activityType==="task_status_updated"){const s=o[0].metadata.updates.find(a=>a.type==="code_name_pair"&&a.field==="status");if(s?.oldValue.codeNamePair!=null&&s.newValue.codeNamePair!=null)return t.jsxs(Jo,{children:[t.jsx(Ge,{backgroundColor:_e(s.oldValue.codeNamePair),children:s.oldValue.codeNamePair.name}),t.jsx(qo,{}),t.jsx(Ge,{backgroundColor:_e(s.newValue.codeNamePair),children:s.newValue.codeNamePair.name})]})}return null},Oo=e=>{const{status:o,eventData:{authors:s,activities:a}}=e,n=s.length;if(a[0].activityType==="task_due"||a[0].activityType==="task_overdue"||a[0].activityType==="task_status_updated")return null;let l=t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,Ro.zeniAI,M.space]});return n>0&&(n>2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,U(s[0],!1),M.space]}),Fe,t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.space,n-1,M.space,Lo,M.space]})]}):n===2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,U(s[0],!1),M.space]}),Fe,t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.space,s.length===2?M.atTheRate+U(s[1],!1):Io,M.space]})]}):l=t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,U(s[0],!1),M.space]})),l},At=e=>t.jsxs(t.Fragment,{children:[t.jsx(Oo,{...e}),No(e),t.jsx(Ao,{...e})]}),Po=e=>{const o=v(),{eventData:{activities:s}}=e;return t.jsx(Ho,{windowSize:o,statusUpdate:s.length>0&&s[0].activityType==="task_status_updated"&&s[0].metadata.updates.find(a=>a.field==="status")!=null,children:t.jsx(At,{...e})})},Ot=e=>{const{createTime:o,notificationStatus:s}=e,a=jt(o.toDate());return t.jsxs(t.Fragment,{children:[t.jsx(Yo,{isNewNotification:a===_o.justNow,children:a}),t.jsx(Qo,{notificationStatus:s})]})},Bo=e=>{const o=v();return t.jsx(Eo,{windowSize:o,children:t.jsx(Ot,{...e})})},Pt=e=>{const{eventData:{activities:o}}=e;return o[0].activityType==="task_overdue"?t.jsx(hi,{tagTitle:zo.overdue,textColor:{color:new $e(S.alert),backgroundColor:new $e("transparent"),borderColor:new $e(S.alert)},showLoader:!1}):t.jsx(Ko,{})},Fo=e=>{const o=v();return t.jsx(Uo,{windowSize:o,children:t.jsx(Pt,{...e})})},Go=r.div`
282
+ `,{common:{in:vo,strings:Rt},dateFormat:Co,commentsAndNotifications:{notifications:{actionStrings:{notifications:A}}}}=P.getLocalizedStrings(),_t=e=>{e.sort((n,l)=>n.createTime.isAfter(l.createTime)===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of $t){let l=0,c=0,d=$().subtract(Math.min($().date(),l),"d").startOf("d"),h=$().subtract(Math.min($().date(),c),"d").endOf("d"),u=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=$().subtract(Math.min($().date(),l),"d").startOf("d"),h=$().subtract(Math.min($().date(),c),"d").endOf("d"),a=se(o,d,h),o=a.remainingData,s.push({start:d,end:h,type:n,notifications:a.singleGroup});break;case"last_7_days_this_month":o.length>0&&$().date()>2&&(d=$().subtract(Math.min($().date()-1,8),"d").startOf("d"),h=$().subtract(2,"d").endOf("d"),a=se(o,d,h),o=a.remainingData,s.push({start:d,end:h,type:n,notifications:a.singleGroup}));break;case"earlier_this_month":o.length>0&&$().date()>9&&(d=$().startOf("M").startOf("d"),h=$().subtract(9,"d").endOf("d"),a=se(o,d,h),o=a.remainingData,s.push({start:d,end:h,type:n,notifications:a.singleGroup}));break;case"earlier_that_month":for(;o.length>0;){const p=$().subtract(u,"month").startOf("M").startOf("d"),m=$().subtract(u,"month").endOf("M").endOf("d");u++,a=se(o,p,m),o=a.remainingData,s.push({start:p,end:m,type:n,notifications:a.singleGroup})}break}}return s},se=(e,o,s)=>{const a=[],n=e.map(l=>rt(o,s,l.createTime)?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>l.createTime.isAfter(c.createTime)===!0?-1:1),{singleGroup:a,remainingData:n}},To=e=>{let o=A.newActivity;return e.code==="in_progress"?o=A.due.replace("__task_status__",Re(e.name.toLocaleLowerCase())):o=A.due.replace("__task_status__",vo.toLocaleLowerCase().concat(Rt.space,Re(e.name.toLocaleLowerCase()))),o},No=e=>{const{eventData:{activities:o}}=e;let s=A.newActivity;if(o.length>0){const a=o[0].activityType,n=o[0].metadata.eventStatus;switch(a){case"task_archived":s=A.archive;break;case"task_deleted":s=A.delete;break;case"task_activities":s=A.activities;break;case"task_assigned":s=A.assign;break;case"task_created":s=A.create;break;case"task_due":s=n!=null?To(n):A.dueTomorrow;break;case"task_overdue":s=A.overdue.replace("__date__",o[0].metadata.additionalInfo?.dueDate.format(Co.visual.MMMDFormat)??Rt.empty);break;case"task_status_updated":s=A.statusUpdate;break}}return s},zt=new R(3,2,1,1,1),Dt=new R(w[8],33,33,33,35),ce={lineClamp:zt,sectionWidth:Dt},{common:{and:Fe,other:Io,others:Lo,texts:Ro,timeStrings:_o,strings:M,tags:zo}}=P.getLocalizedStrings(),Do=({notificationData:e,isHighlighted:o=!1,style:s,onNotificationTileClick:a})=>{const{status:n,notificationId:l,eventData:{entitiyId:c,activities:d},createTime:h}=e;return t.jsxs(Go,{notificationStatus:n,isHighlighted:o,style:s,onClick:()=>{a(l,c,n,d.length>0?d[0].activityType:void 0)},children:[t.jsx(Mo,{...e}),t.jsx(Po,{...e}),t.jsx(Fo,{...e}),t.jsx(Bo,{createTime:h,notificationStatus:n})]})},Mt=e=>{const{status:o,eventData:{title:s}}=e;return t.jsx(Wo,{notificationStatus:o,children:s||M.hyphen})},Mo=e=>{const o=v();return t.jsx(Vo,{windowSize:o,children:t.jsx(Mt,{...e})})},Ao=e=>{const{eventData:{activities:o}}=e;if(o.length>0&&o[0].activityType==="task_status_updated"){const s=o[0].metadata.updates.find(a=>a.type==="code_name_pair"&&a.field==="status");if(s?.oldValue.codeNamePair!=null&&s.newValue.codeNamePair!=null)return t.jsxs(Jo,{children:[t.jsx(Ge,{backgroundColor:_e(s.oldValue.codeNamePair),children:s.oldValue.codeNamePair.name}),t.jsx(qo,{}),t.jsx(Ge,{backgroundColor:_e(s.newValue.codeNamePair),children:s.newValue.codeNamePair.name})]})}return null},Oo=e=>{const{status:o,eventData:{authors:s,activities:a}}=e,n=s.length;if(a[0].activityType==="task_due"||a[0].activityType==="task_overdue"||a[0].activityType==="task_status_updated")return null;let l=t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,Ro.zeniAI,M.space]});return n>0&&(n>2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,E(s[0],!1),M.space]}),Fe,t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.space,n-1,M.space,Lo,M.space]})]}):n===2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,E(s[0],!1),M.space]}),Fe,t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.space,s.length===2?M.atTheRate+E(s[1],!1):Io,M.space]})]}):l=t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,E(s[0],!1),M.space]})),l},At=e=>t.jsxs(t.Fragment,{children:[t.jsx(Oo,{...e}),No(e),t.jsx(Ao,{...e})]}),Po=e=>{const o=v(),{eventData:{activities:s}}=e;return t.jsx(Ho,{windowSize:o,statusUpdate:s.length>0&&s[0].activityType==="task_status_updated"&&s[0].metadata.updates.find(a=>a.field==="status")!=null,children:t.jsx(At,{...e})})},Ot=e=>{const{createTime:o,notificationStatus:s}=e,a=jt(o.toDate());return t.jsxs(t.Fragment,{children:[t.jsx(Yo,{isNewNotification:a===_o.justNow,children:a}),t.jsx(Ko,{notificationStatus:s})]})},Bo=e=>{const o=v();return t.jsx(Uo,{windowSize:o,children:t.jsx(Ot,{...e})})},Pt=e=>{const{eventData:{activities:o}}=e;return o[0].activityType==="task_overdue"?t.jsx(hi,{tagTitle:zo.overdue,textColor:{color:new $e(S.alert),backgroundColor:new $e("transparent"),borderColor:new $e(S.alert)},showLoader:!1}):t.jsx(Qo,{})},Fo=e=>{const o=v();return t.jsx(Eo,{windowSize:o,children:t.jsx(Pt,{...e})})},Go=r.div`
283
283
  display: flex;
284
284
  flex-direction: row;
285
285
  align-items: center;
@@ -329,14 +329,14 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
329
329
  color: ${S.brandColorJade};
330
330
  }
331
331
  }
332
- `,Eo=r(H)`
332
+ `,Uo=r(H)`
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
- `,Uo=r(H)`
339
+ `,Eo=r(H)`
340
340
  width: ${e=>e.windowSize==="small"?"unset":"10%"};
341
341
  display: flex;
342
342
  align-items: center;
@@ -387,10 +387,10 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
387
387
  width: ${i.sp3};
388
388
  height: ${i.sp3};
389
389
  color: ${e=>e.theme.colors.hero};
390
- `,Ko=r.div`
390
+ `,Qo=r.div`
391
391
  display: flex;
392
392
  flex: 1 1 auto;
393
- `,Qo=r.div`
393
+ `,Ko=r.div`
394
394
  display: flex;
395
395
  height: ${i.sp2};
396
396
  width: ${i.sp2};
@@ -428,7 +428,7 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
428
428
  flex: 1 1 auto;
429
429
  justify-content: ${e=>e.isLastItem?"flex-end":"start"};
430
430
  width: ${e=>e.isLastItem?"10%":Dt.valuePercentage(e.windowSize)};
431
- `,es=()=>{const e=v();return t.jsxs(ts,{windowSize:e,children:[t.jsxs(Ee,{children:[t.jsx(_,{width:180,height:w[4]}),t.jsx(_,{width:60,height:18})]}),t.jsxs(Ee,{children:[t.jsx(_,{width:180,height:w[4]}),t.jsx(_,{width:60,height:18})]})]})},ts=r.div`
431
+ `,es=()=>{const e=v();return t.jsxs(ts,{windowSize:e,children:[t.jsxs(Ue,{children:[t.jsx(_,{width:180,height:w[4]}),t.jsx(_,{width:60,height:18})]}),t.jsxs(Ue,{children:[t.jsx(_,{width:180,height:w[4]}),t.jsx(_,{width:60,height:18})]})]})},ts=r.div`
432
432
  display: flex;
433
433
  flex-direction: column;
434
434
  align-items: baseline;
@@ -454,7 +454,7 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
454
454
  border-bottom-left-radius: ${i.sp2};
455
455
  border-bottom-right-radius: ${i.sp2};
456
456
  }
457
- `,Ee=r.div`
457
+ `,Ue=r.div`
458
458
  display: flex;
459
459
  flex-direction: row;
460
460
  align-items: start;
@@ -479,7 +479,7 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
479
479
  `,ls=r.div`
480
480
  display: flex;
481
481
  padding: ${i.sp3} ${i.sp0};
482
- `,ds=({notificationData:e,isSelectionMode:o=!1,isHighlighted:s=!1,style:a,onNotificationTileClick:n,onNotificationTileLongPress:l})=>{const{status:c,createTime:d,eventData:{entitiyId:h,activities:u},notificationId:p}=e,m=g.useCallback(()=>{l?.()},[l]),f=g.useCallback(k=>{k.stopPropagation(),k.cancelable&&k.preventDefault(),o?l?.():n(p,h,c,u.length>0?u[0].activityType:void 0)},[p,h,c,u,o,l,n]),x=pt({onLongPress:m},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(fs,{notificationStatus:c,isHighlighted:s,style:a,...x,onClick:f,children:[t.jsxs(Ue,{children:[t.jsx(cs,{...e}),t.jsx(us,{createTime:d,notificationStatus:c})]}),t.jsxs(Ue,{children:[t.jsx(hs,{...e}),u.length>0&&u[0].activityType==="task_status_updated"?null:t.jsx(ps,{...e})]})]})},cs=e=>t.jsx(Bt,{statusUpdate:!1,children:t.jsx(Mt,{...e})}),hs=e=>{const{eventData:{activities:o}}=e;return t.jsx(Bt,{statusUpdate:o.length>0&&o[0].activityType==="task_status_updated"&&o[0].metadata.updates.find(s=>s.field==="status")!=null,children:t.jsx(At,{...e})})},us=e=>t.jsx(ms,{children:t.jsx(Ot,{...e})}),ps=e=>t.jsx(gs,{children:t.jsx(Pt,{...e})}),fs=r.div`
482
+ `,ds=({notificationData:e,isSelectionMode:o=!1,isHighlighted:s=!1,style:a,onNotificationTileClick:n,onNotificationTileLongPress:l})=>{const{status:c,createTime:d,eventData:{entitiyId:h,activities:u},notificationId:p}=e,m=g.useCallback(()=>{l?.()},[l]),f=g.useCallback(k=>{k.stopPropagation(),k.cancelable&&k.preventDefault(),o?l?.():n(p,h,c,u.length>0?u[0].activityType:void 0)},[p,h,c,u,o,l,n]),x=pt({onLongPress:m},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(fs,{notificationStatus:c,isHighlighted:s,style:a,...x,onClick:f,children:[t.jsxs(Ee,{children:[t.jsx(cs,{...e}),t.jsx(us,{createTime:d,notificationStatus:c})]}),t.jsxs(Ee,{children:[t.jsx(hs,{...e}),u.length>0&&u[0].activityType==="task_status_updated"?null:t.jsx(ps,{...e})]})]})},cs=e=>t.jsx(Bt,{statusUpdate:!1,children:t.jsx(Mt,{...e})}),hs=e=>{const{eventData:{activities:o}}=e;return t.jsx(Bt,{statusUpdate:o.length>0&&o[0].activityType==="task_status_updated"&&o[0].metadata.updates.find(s=>s.field==="status")!=null,children:t.jsx(At,{...e})})},us=e=>t.jsx(ms,{children:t.jsx(Ot,{...e})}),ps=e=>t.jsx(gs,{children:t.jsx(Pt,{...e})}),fs=r.div`
483
483
  display: flex;
484
484
  flex-direction: column;
485
485
  align-items: baseline;
@@ -543,7 +543,7 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
543
543
  align-items: center;
544
544
  flex-shrink: 0;
545
545
  justify-content: end;
546
- `,Ue=r.div`
546
+ `,Ee=r.div`
547
547
  display: flex;
548
548
  flex-direction: row;
549
549
  gap: ${i.sp3};
@@ -579,7 +579,7 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
579
579
  align-items: flex-start;
580
580
  width: 100%;
581
581
  padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp0};
582
- `,js=r(Ft)``,ks=e=>v()==="small"?t.jsx(ys,{...e}):t.jsx(xs,{...e}),{commentsAndNotifications:{notifications:{message:Ss}}}=P.getLocalizedStrings(),Ye={rowGap:new R(w[0],w[5],w[5])},vs=({notificationGroups:e,isFetching:o,hasMore:s,sectionId:a,checkBoxMode:n,scrollYOffset:l,currentSubTab:c,isDisabled:d,onUpdateScrollYOffset:h,onFetchNotificationGroups:u,onNotificationClick:p})=>{const m=v(),f=g.useRef(null),x=g.useRef({});g.useEffect(()=>{f.current?.resetAfterIndex(0,!0)},[m,f,e]),g.useEffect(()=>{f.current?.scrollTo(l)},[c]);const k=g.useCallback(L=>{if(x.current?.[L]!=null){const C=m==="small"&&s===!1&&L===e.length-1?Ye.rowGap.value("medium-regular"):Ye.rowGap.value(m);return x.current[L]+C}return(ft*zt.value(m)+mt)*3+gt+xt},[m,x,e]),B=g.useCallback((L,C)=>{x.current={...x.current,[L]:C},f.current?.resetAfterIndex(0,!0)},[m,f,e]),z=g.useCallback(()=>{u()},[u]),N=g.useCallback(()=>{},[]),b=tt(L=>h(L),1e3,{trailing:!0}),I=L=>!s||L<e.length,j=g.useCallback(()=>s&&!o?z():N(),[s,o,z,N]),V=s?e.length+1:e.length;return t.jsx(Ts,{children:t.jsx(Ns,{windowSize:m,children:o&&e.length===0?t.jsx(ss,{}):o===!1&&e.length===0?t.jsx(it,{message:Ss.noNotificationsMessage,style:{padding:i.sp0}}):t.jsx(Is,{windowSize:m,children:t.jsx(ot,{children:({height:L,width:C})=>t.jsx(st,{isItemLoaded:I,itemCount:bt,loadMoreItems:j,children:({onItemsRendered:G,ref:W})=>t.jsx(at,{ref:E=>{W(E),f.current=E},height:L,itemCount:V,itemData:{notificationGroups:e,sectionId:a,checkBoxMode:n,isDisabled:d,isItemLoaded:I,setRowHeight:B,onNotificationClick:p},onItemsRendered:G,itemSize:k,width:C,style:{willChange:"auto"},overscanCount:wt,onScroll:({scrollOffset:E})=>{b(E)},initialScrollOffset:l,children:Cs})})})})})})},Cs=({index:e,style:o,data:s})=>{const{notificationGroups:a,sectionId:n,checkBoxMode:l,isItemLoaded:c,isDisabled:d,setRowHeight:h,onNotificationClick:u}=s,p=g.useRef(null),m=v();if(g.useEffect(()=>{p.current?.firstElementChild!=null&&h(e,p.current.firstElementChild.clientHeight)},[e,p,m,a[e]?.notifications]),c(e)===!0){const f=a[e],x=le(f);return t.jsx(Je,{style:{...o,paddingBottom:i.sp0,width:"100%"},ref:p,children:t.jsx(ks,{notificationGroup:f,sectionId:`${n}.${x}`,checkBoxMode:l,isDisabled:d,onNotificationTileClick:u})},x)}return t.jsx(Je,{ref:p,style:{...o,paddingBottom:i.sp0},children:t.jsx(Ce,{numberOfRows:3})},he())},Ts=r.div`
582
+ `,js=r(Ft)``,ks=e=>v()==="small"?t.jsx(ys,{...e}):t.jsx(xs,{...e}),{commentsAndNotifications:{notifications:{message:Ss}}}=P.getLocalizedStrings(),Ye={rowGap:new R(w[0],w[5],w[5])},vs=({notificationGroups:e,isFetching:o,hasMore:s,sectionId:a,checkBoxMode:n,scrollYOffset:l,currentSubTab:c,isDisabled:d,onUpdateScrollYOffset:h,onFetchNotificationGroups:u,onNotificationClick:p})=>{const m=v(),f=g.useRef(null),x=g.useRef({});g.useEffect(()=>{f.current?.resetAfterIndex(0,!0)},[m,f,e]),g.useEffect(()=>{f.current?.scrollTo(l)},[c]);const k=g.useCallback(L=>{if(x.current?.[L]!=null){const C=m==="small"&&s===!1&&L===e.length-1?Ye.rowGap.value("medium-regular"):Ye.rowGap.value(m);return x.current[L]+C}return(ft*zt.value(m)+mt)*3+gt+xt},[m,x,e]),B=g.useCallback((L,C)=>{x.current={...x.current,[L]:C},f.current?.resetAfterIndex(0,!0)},[m,f,e]),z=g.useCallback(()=>{u()},[u]),N=g.useCallback(()=>{},[]),b=tt(L=>h(L),1e3,{trailing:!0}),I=L=>!s||L<e.length,j=g.useCallback(()=>s&&!o?z():N(),[s,o,z,N]),V=s?e.length+1:e.length;return t.jsx(Ts,{children:t.jsx(Ns,{windowSize:m,children:o&&e.length===0?t.jsx(ss,{}):o===!1&&e.length===0?t.jsx(it,{message:Ss.noNotificationsMessage,style:{padding:i.sp0}}):t.jsx(Is,{windowSize:m,children:t.jsx(ot,{children:({height:L,width:C})=>t.jsx(st,{isItemLoaded:I,itemCount:bt,loadMoreItems:j,children:({onItemsRendered:G,ref:W})=>t.jsx(at,{ref:U=>{W(U),f.current=U},height:L,itemCount:V,itemData:{notificationGroups:e,sectionId:a,checkBoxMode:n,isDisabled:d,isItemLoaded:I,setRowHeight:B,onNotificationClick:p},onItemsRendered:G,itemSize:k,width:C,style:{willChange:"auto"},overscanCount:wt,onScroll:({scrollOffset:U})=>{b(U)},initialScrollOffset:l,children:Cs})})})})})})},Cs=({index:e,style:o,data:s})=>{const{notificationGroups:a,sectionId:n,checkBoxMode:l,isItemLoaded:c,isDisabled:d,setRowHeight:h,onNotificationClick:u}=s,p=g.useRef(null),m=v();if(g.useEffect(()=>{p.current?.firstElementChild!=null&&h(e,p.current.firstElementChild.clientHeight)},[e,p,m,a[e]?.notifications]),c(e)===!0){const f=a[e],x=le(f);return t.jsx(Je,{style:{...o,paddingBottom:i.sp0,width:"100%"},ref:p,children:t.jsx(ks,{notificationGroup:f,sectionId:`${n}.${x}`,checkBoxMode:l,isDisabled:d,onNotificationTileClick:u})},x)}return t.jsx(Je,{ref:p,style:{...o,paddingBottom:i.sp0},children:t.jsx(Ce,{numberOfRows:3})},he())},Ts=r.div`
583
583
  display: block;
584
584
  background-color: ${e=>e.theme.colors.grey4};
585
585
  height: 100%;
@@ -596,7 +596,7 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
596
596
  top: ${i.sp0};
597
597
  left: ${i.sp0};
598
598
  box-sizing: border-box;
599
- `,{common:{all:Te,texts:ne,footer:Ls,strings:{plus:Rs},numbers:{maximumCount:qe}},commentsAndNotifications:{notifications:{title:_s,texts:Gt,strings:Ke}}}=P.getLocalizedStrings(),ie={tableContainerLeftPadding:new R(w[2],w[2],w[2]),tableContainerRightPadding:new R(w[3],w[6],w[8]),tabsContainerLeftRightPadding:new R(w[3],w[6],w[8]),selectedNotificationsTextMarginLeft:new R(w[0],w[6],w[6])},zs={selectedNotificationsText:new ni("smallRegular","standardRegular")},Qe="notificationsPage",K="commentsNotificationsTable",Q="notificationsTable",Et=20,ha=({notificationView:e,users:o,isNotificationSettingsVisible:s,isDisabled:a,onNotificationClick:n,onCommentNotificationClick:l,onUpdateNotificationViewUIState:c,onUpdateNotificationTabState:d,onUpdateNotificationViewCurrentTabAndSubTab:h,onUpdateNotificationViewSubTab:u,onFetchMoreNotifications:p,onUpdateNotificationStatus:m,onSettingsClick:f,onBackClick:x,onMarkAllNotificationsAsRead:k})=>{const B=Z(),z=v(),N=Kt({mode:"all",reValidateMode:"onChange",defaultValues:g.useMemo(()=>et(e),[e]),values:g.useMemo(()=>et(e),[e])}),{currentTab:b,currentSubTab:I,notificationDetailsByTab:j,allSubTabs:V,allNotifications:L,allExternalNotifications:C,notificationsForCurrentTabAndSubTab:G,externalNotificationsForCurrentTabAndSubTab:W}=e,E=g.useMemo(()=>Object.keys(j).map(y=>({label:ne[y],id:ne[y].toLocaleLowerCase(),countDetails:{count:j[y].uiState.unreadCount,isFetching:j[y].fetchCountState.fetchState==="In-Progress"}})),[j]),Y=g.useMemo(()=>V.map(y=>({label:y==="all"?Te:ne[y],id:y})),[V]),Ut=g.useMemo(()=>kt(W).filter(y=>y.notifications.length>0),[W]),Ht=g.useMemo(()=>_t(G).filter(y=>y.notifications.length>0),[G]),Vt=async(y,T)=>{const F=y.split(".")[0],J=[];F!=null&&(F===K||F===Q)&&(Object.values(T[F]).forEach(D=>{J.push(...D.filter(qt=>qt.includes(Te.toLowerCase())===!1))}),d({selectedNotificationIds:J},b))};g.useEffect(()=>{const y=N.watch((T,{name:F})=>{F!=null&&T!=null&&Qt(()=>Vt(F,T))});return()=>{y.unsubscribe()}});const xe=g.useCallback(()=>{const y=[],T=j[b].selectedNotificationIdsForSubTab,F="read";if(b==="comments"){const J=C.filter(D=>D.inboxNotification.readAt==null).map(D=>D.inboxNotification.id);T.forEach(D=>{J.includes(D)&&y.push(D)})}else{const J=L.filter(D=>D.status!==F).map(D=>D.notificationId);T.forEach(D=>{J.includes(D)&&y.push(D)})}return y},[C,L,b,j]),Wt=xe().length>Et?"disabled":a,be=N.watch(K),we=N.watch(Q),Le=g.useCallback(()=>{p(b,I)},[p,b,I]),Yt=g.useCallback(()=>{if(b==="comments"){const y={};Object.keys(be).forEach(T=>{y[T]=[]}),N.reset({[K]:y,[Q]:we},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}else{const y={};Object.keys(we).forEach(T=>{y[T]=[]}),N.reset({[Q]:y,[K]:be},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}d({selectedNotificationIds:[]},b)},[we,be]),Jt=g.useCallback(()=>{const y=j[b].selectedNotificationIdsForSubTab,T="read",F=xe();m(b,y,T,F)},[b,j,xe,m]);return t.jsxs(Ms,{children:[t.jsx(Xt,{source:"NotificationsPage",title:_s.notifications,backgroundColor:B.colors.grey4,onBackClick:x,rightSideComponent:s===!0?t.jsx(Ks,{onClick:f}):t.jsx(qs,{})}),t.jsx(Ps,{}),t.jsx(Os,{windowSize:z,children:t.jsx(xi,{tabs:E,selectedTab:b,onTabChange:y=>{const T=mi(y);T!=null&&h(T)},subTabs:Y,selectedSubTab:I,onSubTabChange:y=>{const T=fi(y);T!=null&&u(T)},subTabRightComponent:t.jsx(Ds,{notificationCount:j[b].uiState.unreadCount,markAsAllReadUpdateState:j[b].markAsAllReadState.fetchState,markAsReadUpdateState:j[b].markAsReadState.fetchState,onMarkAsAllReadClick:()=>{k(b)}})})}),t.jsx(As,{windowSize:z,children:t.jsx(Zt,{...N,children:t.jsx("form",{id:Ze(Qe),onSubmit:N.handleSubmit(Jt),style:{width:"100%"},children:b==="comments"?t.jsx(yo,{users:o,hasMore:j[b].uiState.hasMore,isFetching:j[b].fetchState==="In-Progress",scrollYOffset:j[b].uiState.scrollYOffset[I],currentSubTab:I,checkBoxMode:j[b].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Ut,sectionId:K,onFetchNotificationGroups:Le,onUpdateScrollYOffset:y=>c({scrollYOffset:{...j[b].uiState.scrollYOffset,[I]:y}},b),onNotificationClick:l}):t.jsx(vs,{hasMore:j[b].uiState.hasMore,isFetching:j[b].fetchState==="In-Progress",scrollYOffset:j[b].uiState.scrollYOffset[I],currentSubTab:I,checkBoxMode:j[b].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Ht,sectionId:Q,onFetchNotificationGroups:Le,onUpdateScrollYOffset:y=>c({scrollYOffset:{...j[b].uiState.scrollYOffset,[I]:y}},b),onNotificationClick:n})})})}),j[b].selectedNotificationIdsForSubTab.length?t.jsx(ei,{formId:Ze(Qe),primaryBtn:{label:Gt.markAsRead,isLoading:j[b].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},isDisabled:Wt!=null},cancelBtn:{label:Ls.cancel,isDisabled:j[b].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},onClick:Yt},helperContainerStyle:z==="small"?{width:"100%"}:{rowGap:i.sp0},footerContentStyle:{gap:i.sp2},leftSideComponent:t.jsx(ye,{controller:z!=="small",children:t.jsx(Xe,{selectedNotificationsCount:j[b].selectedNotificationIdsForSubTab.length})}),topComponent:t.jsx(ye,{controller:z==="small",children:t.jsx(Xe,{selectedNotificationsCount:j[b].selectedNotificationIdsForSubTab.length})}),rightSideComponent:t.jsx(ye,{controller:z!=="small",children:t.jsx(Gs,{})})}):null]})},Ds=({markAsAllReadUpdateState:e,markAsReadUpdateState:o,notificationCount:s,onMarkAsAllReadClick:a})=>{const n=s===0,l=g.useCallback(()=>{e!=="In-Progress"&&o!=="In-Progress"&&!n&&a()},[e,o,n,a]);return t.jsx(Bs,{variant:"tertiary",size:"small",label:Gt.markAllAsRead,onClick:l,prefixIcon:e==="In-Progress"?t.jsx(oi,{size:"Small",start:!0}):t.jsx(Fs,{className:"mark-as-read"}),disabled:n,textStyle:{fontWeight:Ne.smallRegular.fontWeight},style:{borderRadius:i.sp1,border:"none",backgroundColor:"transparent",flexShrink:0,padding:i.sp0,cursor:o==="In-Progress"||e==="In-Progress"||n?"default":"pointer"}})},Xe=({selectedNotificationsCount:e})=>{const o=v();return t.jsxs(Es,{windowSize:o,children:[t.jsx(Hs,{children:t.jsx(Us,{isCircular:e<10,children:t.jsx(Vs,{children:e>qe?`${qe}${Rs}`:e})})}),t.jsxs(Js,{windowSize:o,children:[t.jsx(Ws,{children:e>1?Ke.notificationsSelected:Ke.notificationSelected}),e>Et?t.jsx(Ys,{children:ne.maxLimit}):null]})]})},Ms=r.div`
599
+ `,{common:{all:Te,texts:ne,footer:Ls,strings:{plus:Rs},numbers:{maximumCount:qe}},commentsAndNotifications:{notifications:{title:_s,texts:Gt,strings:Qe}}}=P.getLocalizedStrings(),ie={tableContainerLeftPadding:new R(w[2],w[2],w[2]),tableContainerRightPadding:new R(w[3],w[6],w[8]),tabsContainerLeftRightPadding:new R(w[3],w[6],w[8]),selectedNotificationsTextMarginLeft:new R(w[0],w[6],w[6])},zs={selectedNotificationsText:new ni("smallRegular","standardRegular")},Ke="notificationsPage",Q="commentsNotificationsTable",K="notificationsTable",Ut=20,ha=({notificationView:e,users:o,isNotificationSettingsVisible:s,isDisabled:a,onNotificationClick:n,onCommentNotificationClick:l,onUpdateNotificationViewUIState:c,onUpdateNotificationTabState:d,onUpdateNotificationViewCurrentTabAndSubTab:h,onUpdateNotificationViewSubTab:u,onFetchMoreNotifications:p,onUpdateNotificationStatus:m,onSettingsClick:f,onBackClick:x,onMarkAllNotificationsAsRead:k})=>{const B=Z(),z=v(),N=Qt({mode:"all",reValidateMode:"onChange",defaultValues:g.useMemo(()=>et(e),[e]),values:g.useMemo(()=>et(e),[e])}),{currentTab:b,currentSubTab:I,notificationDetailsByTab:j,allSubTabs:V,allNotifications:L,allExternalNotifications:C,notificationsForCurrentTabAndSubTab:G,externalNotificationsForCurrentTabAndSubTab:W}=e,U=g.useMemo(()=>Object.keys(j).map(y=>({label:ne[y],id:ne[y].toLocaleLowerCase(),countDetails:{count:j[y].uiState.unreadCount,isFetching:j[y].fetchCountState.fetchState==="In-Progress"}})),[j]),Y=g.useMemo(()=>V.map(y=>({label:y==="all"?Te:ne[y],id:y})),[V]),Et=g.useMemo(()=>kt(W).filter(y=>y.notifications.length>0),[W]),Ht=g.useMemo(()=>_t(G).filter(y=>y.notifications.length>0),[G]),Vt=async(y,T)=>{const F=y.split(".")[0],J=[];F!=null&&(F===Q||F===K)&&(Object.values(T[F]).forEach(D=>{J.push(...D.filter(qt=>qt.includes(Te.toLowerCase())===!1))}),d({selectedNotificationIds:J},b))};g.useEffect(()=>{const y=N.watch((T,{name:F})=>{F!=null&&T!=null&&Kt(()=>Vt(F,T))});return()=>{y.unsubscribe()}});const xe=g.useCallback(()=>{const y=[],T=j[b].selectedNotificationIdsForSubTab,F="read";if(b==="comments"){const J=C.filter(D=>D.inboxNotification.readAt==null).map(D=>D.inboxNotification.id);T.forEach(D=>{J.includes(D)&&y.push(D)})}else{const J=L.filter(D=>D.status!==F).map(D=>D.notificationId);T.forEach(D=>{J.includes(D)&&y.push(D)})}return y},[C,L,b,j]),Wt=xe().length>Ut?"disabled":a,be=N.watch(Q),we=N.watch(K),Le=g.useCallback(()=>{p(b,I)},[p,b,I]),Yt=g.useCallback(()=>{if(b==="comments"){const y={};Object.keys(be).forEach(T=>{y[T]=[]}),N.reset({[Q]:y,[K]:we},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}else{const y={};Object.keys(we).forEach(T=>{y[T]=[]}),N.reset({[K]:y,[Q]:be},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}d({selectedNotificationIds:[]},b)},[we,be]),Jt=g.useCallback(()=>{const y=j[b].selectedNotificationIdsForSubTab,T="read",F=xe();m(b,y,T,F)},[b,j,xe,m]);return t.jsxs(Ms,{children:[t.jsx(Xt,{source:"NotificationsPage",title:_s.notifications,backgroundColor:B.colors.grey4,onBackClick:x,rightSideComponent:s===!0?t.jsx(Qs,{onClick:f}):t.jsx(qs,{})}),t.jsx(Ps,{}),t.jsx(Os,{windowSize:z,children:t.jsx(xi,{tabs:U,selectedTab:b,onTabChange:y=>{const T=mi(y);T!=null&&h(T)},subTabs:Y,selectedSubTab:I,onSubTabChange:y=>{const T=fi(y);T!=null&&u(T)},subTabRightComponent:t.jsx(Ds,{notificationCount:j[b].uiState.unreadCount,markAsAllReadUpdateState:j[b].markAsAllReadState.fetchState,markAsReadUpdateState:j[b].markAsReadState.fetchState,onMarkAsAllReadClick:()=>{k(b)}})})}),t.jsx(As,{windowSize:z,children:t.jsx(Zt,{...N,children:t.jsx("form",{id:Ze(Ke),onSubmit:N.handleSubmit(Jt),style:{width:"100%"},children:b==="comments"?t.jsx(yo,{users:o,hasMore:j[b].uiState.hasMore,isFetching:j[b].fetchState==="In-Progress",scrollYOffset:j[b].uiState.scrollYOffset[I],currentSubTab:I,checkBoxMode:j[b].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Et,sectionId:Q,onFetchNotificationGroups:Le,onUpdateScrollYOffset:y=>c({scrollYOffset:{...j[b].uiState.scrollYOffset,[I]:y}},b),onNotificationClick:l}):t.jsx(vs,{hasMore:j[b].uiState.hasMore,isFetching:j[b].fetchState==="In-Progress",scrollYOffset:j[b].uiState.scrollYOffset[I],currentSubTab:I,checkBoxMode:j[b].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Ht,sectionId:K,onFetchNotificationGroups:Le,onUpdateScrollYOffset:y=>c({scrollYOffset:{...j[b].uiState.scrollYOffset,[I]:y}},b),onNotificationClick:n})})})}),j[b].selectedNotificationIdsForSubTab.length?t.jsx(ei,{formId:Ze(Ke),primaryBtn:{label:Gt.markAsRead,isLoading:j[b].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},isDisabled:Wt!=null},cancelBtn:{label:Ls.cancel,isDisabled:j[b].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},onClick:Yt},helperContainerStyle:z==="small"?{width:"100%"}:{rowGap:i.sp0},footerContentStyle:{gap:i.sp2},leftSideComponent:t.jsx(ye,{controller:z!=="small",children:t.jsx(Xe,{selectedNotificationsCount:j[b].selectedNotificationIdsForSubTab.length})}),topComponent:t.jsx(ye,{controller:z==="small",children:t.jsx(Xe,{selectedNotificationsCount:j[b].selectedNotificationIdsForSubTab.length})}),rightSideComponent:t.jsx(ye,{controller:z!=="small",children:t.jsx(Gs,{})})}):null]})},Ds=({markAsAllReadUpdateState:e,markAsReadUpdateState:o,notificationCount:s,onMarkAsAllReadClick:a})=>{const n=s===0,l=g.useCallback(()=>{e!=="In-Progress"&&o!=="In-Progress"&&!n&&a()},[e,o,n,a]);return t.jsx(Bs,{variant:"tertiary",size:"small",label:Gt.markAllAsRead,onClick:l,prefixIcon:e==="In-Progress"?t.jsx(oi,{size:"Small",start:!0}):t.jsx(Fs,{className:"mark-as-read"}),disabled:n,textStyle:{fontWeight:Ne.smallRegular.fontWeight},style:{borderRadius:i.sp1,border:"none",backgroundColor:"transparent",flexShrink:0,padding:i.sp0,cursor:o==="In-Progress"||e==="In-Progress"||n?"default":"pointer"}})},Xe=({selectedNotificationsCount:e})=>{const o=v();return t.jsxs(Us,{windowSize:o,children:[t.jsx(Hs,{children:t.jsx(Es,{isCircular:e<10,children:t.jsx(Vs,{children:e>qe?`${qe}${Rs}`:e})})}),t.jsxs(Js,{windowSize:o,children:[t.jsx(Ws,{children:e>1?Qe.notificationsSelected:Qe.notificationSelected}),e>Ut?t.jsx(Ys,{children:ne.maxLimit}):null]})]})},Ms=r.div`
600
600
  display: flex;
601
601
  height: 100vh;
602
602
  width: 100%;
@@ -630,13 +630,13 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
630
630
  `,Fs=r(ai)`
631
631
  width: ${i.sp3};
632
632
  height: ${i.sp3};
633
- `,Gs=r.div``,Es=r.div`
633
+ `,Gs=r.div``,Us=r.div`
634
634
  display: flex;
635
635
  align-items: center;
636
636
  flex-direction: row;
637
637
  gap: ${i.sp2};
638
638
  margin-left: ${e=>ie.selectedNotificationsTextMarginLeft.valuePx(e.windowSize)};
639
- `,Us=r.div`
639
+ `,Es=r.div`
640
640
  ${e=>e.isCircular?O`
641
641
  height: ${i.sp3};
642
642
  width: ${i.sp3};
@@ -674,7 +674,7 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
674
674
  `,qs=r.div`
675
675
  width: ${i.sp4};
676
676
  height: ${i.sp4};
677
- `,Ks=r(ti)`
677
+ `,Qs=r(ti)`
678
678
  color: ${e=>e.theme.colors.hero};
679
679
  width: ${i.sp4};
680
680
  height: ${i.sp4};
@@ -682,4 +682,4 @@ import{d as Z,J as v,a9 as Kt,cH as Qt,V as t,bD as Xt,ad as Zt,aS as ei,o as i,
682
682
  &:hover {
683
683
  color: ${e=>e.theme.colors.primary};
684
684
  }
685
- `,Ze=e=>`${e}_form`,et=e=>{const{allNotifications:o,allExternalNotifications:s,notificationDetailsByTab:{tasks:{selectedNotificationIds:a},comments:{selectedNotificationIds:n}}}=e,l={};_t(o).filter(d=>d.notifications.length>0).forEach(d=>{const h=d.notifications.map(u=>u.notificationId);l[le(d)]=a.filter(u=>h.includes(u))});const c={};return kt(s).filter(d=>d.notifications.length>0).forEach(d=>{const h=d.notifications.map(u=>u.inboxNotification.id);c[le(d)]=n.filter(u=>h.includes(u))}),{[K]:c,[Q]:l}},ua=(e,o)=>{const s=[];return Object.values(e).forEach(a=>{a.forEach(n=>{n.includes(Te.toLocaleLowerCase())===!1&&o.includes(n)&&s.push(n)})}),s};export{ha as default,ua as getSelectedNotificationIds,Ze as uniqueFormName};
685
+ `,Ze=e=>`${e}_form`,et=e=>{const{allNotifications:o,allExternalNotifications:s,notificationDetailsByTab:{tasks:{selectedNotificationIds:a},comments:{selectedNotificationIds:n}}}=e,l={};_t(o).filter(d=>d.notifications.length>0).forEach(d=>{const h=d.notifications.map(u=>u.notificationId);l[le(d)]=a.filter(u=>h.includes(u))});const c={};return kt(s).filter(d=>d.notifications.length>0).forEach(d=>{const h=d.notifications.map(u=>u.inboxNotification.id);c[le(d)]=n.filter(u=>h.includes(u))}),{[Q]:c,[K]:l}},ua=(e,o)=>{const s=[];return Object.values(e).forEach(a=>{a.forEach(n=>{n.includes(Te.toLocaleLowerCase())===!1&&o.includes(n)&&s.push(n)})}),s};export{ha as default,ua as getSelectedNotificationIds,Ze as uniqueFormName};
@@ -1,6 +1,6 @@
1
- import{J as H,i8 as Ce,F as B,d as J,ce as _e,az as xe,V as t,bP as Se,ab as we,i7 as ke,bE as ve,bD as Be,i9 as Pe,ia as Oe,o as u,aU as Te,m as $e,y as F,b4 as ie,aF as le,aW as je,u as P,cg as De,ch as Ie,ci as Ne,bM as Ee,p as a,am as ce,b as Q,aZ as Me}from"./index-BPZ0_UEx.js";import{a as C,P as Ae}from"./sentry-nVlxguQq.js";import{n as h}from"./mui-Dg-yyLd1.js";import{G7 as Le}from"./zeni-epic-state-DwXlACp-.js";import{p as Fe,d as Ve,y as G,b as de,u as ee}from"./chartTypes-Cpjk7Uyr-BFVm6fL4.js";import{V as ze}from"./toChartData--znXzhow-CzN3PXN2.js";import{m as V}from"./analyticsHelper-CeIe3crh-ruFTPZIn.js";import{p as Re}from"./TimeRangeSwitcher-B1jJf76U-DtYpu1mK.js";import{M as We}from"./TimeframeSwitcherWithToggle-D48PqfUX-BOxnTPru.js";import{C as Ke}from"./NoDataChart-YIESVuNz-DxR56cWr.js";import{d as Ye}from"./NoDataTable-CHeZXDKw-DlmRPcbA.js";import{H as Ge,k as oe}from"./detailCommon-C7usWt5l-CDexfvl6.js";import{n as z}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{I as He,R as U}from"./CollapsableReportTable-Ck29YUyD-C4PUByzW.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-DWah9nq--BLW1ZcCy.js";import{d as re}from"./mapLoadingInProgressToTreeNode-DkvfU-AQ-BbnpqVZY.js";import{l as Je}from"./mapSpacerToTreeNode-Csr6iLbE-BUQp66A_.js";import{N as Ue,I as qe,X as Xe,Y as Ze,J as Qe,K as eo}from"./recharts-DVyIhUUu.js";import"./liveblocks-Lf8LVeH9.js";import"./core-BdfL-uia.js";import"./lottie-BAIk2ri4.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./utils-Bn_xI0qf.js";import"./TimeframeSwitcher-CTyaOUPX-CUY8xGFr.js";import"./graphic-no-data-l-DU4J8fDt-B-BNuWuf.js";import"./AccountRow-B5Gqqqtn-B2ab5e7e.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="538159af-75b5-45bd-960f-ff6312605e44",e._sentryDebugIdIdentifier="sentry-dbid-538159af-75b5-45bd-960f-ff6312605e44")}catch{}})();const oo=h.div`
1
+ import{J as H,i6 as Ce,F as B,e as J,ce as _e,ay as xe,V as t,bP as Se,aQ as ke,i4 as we,bE as ve,bD as Be,i7 as Pe,i8 as Oe,o as u,aU as Te,T as $e,y as F,b4 as ie,aE as le,aW as je,u as P,cg as De,ch as Ie,ci as Ne,bM as Ee,p as a,al as ce,b as Z,aZ as Me}from"./index-DK3PYuee.js";import{a as C,P as Ae}from"./sentry-DS5py-mq.js";import{n as m}from"./mui-CgqbPqeT.js";import{F$ as Le}from"./zeni-epic-state-QRf7TPA6.js";import{p as Fe,d as Ve,y as G,b as de,u as ee}from"./chartTypes-B3501CSI-EaJM1gmS.js";import{V as Re}from"./toChartData-DzatRnt8-DoRfMwGl.js";import{m as V}from"./analyticsHelper-CL-t3Y2i-BWhNt6sH.js";import{p as ze}from"./TimeRangeSwitcher-DEqlZxa6-CbVp5G_Z.js";import{M as We}from"./TimeframeSwitcherWithToggle-CbX9ElMN-CKuHpWeL.js";import{C as Ke}from"./NoDataChart-Bvetk9za-0wt6JdBt.js";import{d as Ye}from"./NoDataTable-9xF1_3XS-DsLBD4Qa.js";import{H as Ge,k as oe}from"./detailCommon-C19MYPnq-K0CC_UYn.js";import{n as R}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{I as He,R as U}from"./CollapsableReportTable-DlYIKSlQ-COjE28P7.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-3Hd8QHr2-BTUA7CSo.js";import{d as re}from"./mapLoadingInProgressToTreeNode-D2u9MDI--B6CSGc2J.js";import{l as Je}from"./mapSpacerToTreeNode-Blr3egSm-BptZuVYf.js";import{N as Ue,I as qe,X as Qe,Y as Xe,J as Ze,K as eo}from"./recharts-CcfvjpA4.js";import"./liveblocks-DzWLGwR5.js";import"./core-MmJvanAX.js";import"./lottie-C8IpdMqp.js";import"./analytics-Cmcqa01V.js";import"./lexical-DyUba00B.js";import"./utils-C5WTobSB.js";import"./TimeframeSwitcher-BppC6giF-B4vl7lp6.js";import"./graphic-no-data-l-DU4J8fDt-DL4eASZx.js";import"./AccountRow-aEmcYP8T-BckNDPBQ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="aba8584a-f3a9-4547-ace1-e1107e65ba45",e._sentryDebugIdIdentifier="sentry-dbid-aba8584a-f3a9-4547-ace1-e1107e65ba45")}catch{}})();const oo=m.div`
2
2
  display: flex;
3
- `,ro=h.div`
3
+ `,ro=m.div`
4
4
  flex: display;
5
5
  opacity: 0.85;
6
6
  width: 320px;
@@ -8,24 +8,24 @@ import{J as H,i8 as Ce,F as B,d as J,ce as _e,az as xe,V as t,bP as Se,ab as we,
8
8
  flex-direction: column;
9
9
  padding: ${u.sp3};
10
10
  background-color: ${e=>e.theme.colors.black};
11
- `,ae=h.div`
11
+ `,ae=m.div`
12
12
  display: flex;
13
13
  justify-content: space-between;
14
- `,te=h(ce)`
14
+ `,te=m(ce)`
15
15
  color: ${e=>e.color??a.neutralGrey2Light};
16
16
  text-align: left;
17
- `,ne=h(ce)`
17
+ `,ne=m(ce)`
18
18
  color: ${e=>e.color??a.neutralGrey2Light};
19
19
  text-align: right;
20
- `,ao=h.div`
20
+ `,ao=m.div`
21
21
  margin: ${u.sp2} ${u.sp0} ${u.sp2} ${u.sp0};
22
22
  width: 100%;
23
23
  height: 1px;
24
24
  background-color: ${a.neutralGrey3Dark};
25
- `,to=({active:e,payload:r,barName:o})=>{const s=[];if(r!==void 0&&e===!0){const i=r.filter(y=>y.name==o)[0],l=i.payload,m=i.color,n={amount:l.record[o].amount?.amount??0,currencyCode:l.record[o].amount?.currencyCode??"",currencySymbol:l.record[o].amount?.currencySymbol??""},p={amount:0,currencyCode:"",currencySymbol:""};let g=0,c;for(c in l.record)c.endsWith("_actual")&&(g+=l.record[c].amount?.amount??0);p.amount=g,p.currencyCode=n.currencyCode,p.currencySymbol=n.currencySymbol,s.push({barName:de(o),actual:n,color:m,total:p,timeframeTick:l.timeLabel})}return s},no=({barLabelsWithValues:e,getVendorName:r})=>t.jsx(oo,{children:t.jsxs(ro,{children:[t.jsxs(ae,{children:[t.jsx(te,{color:e[0].color,children:`${r(e[0].timeframeTick,e[0].barName)}`}),t.jsx(ne,{color:e[0].color,children:`${ee(e[0].actual)}`})]}),t.jsx(ao,{}),t.jsxs(ae,{children:[t.jsx(te,{color:a.primaryDark,children:`${B.getLocalizedStrings().chartCard.total}`}),t.jsx(ne,{children:`${ee(e[0].total)}`})]})]})}),so=e=>{const r=to({...e});return r.length===0?null:t.jsx(no,{barLabelsWithValues:r,getVendorName:e.getVendorName})},io=Ae.memo(so),se=[a.graphColor34,a.graphColor05,a.graphColor08,a.graphColor11,a.graphColor13,a.graphColor19,a.graphColor29,a.graphColor28,a.graphColor20,a.graphColor21,a.graphColor22,a.graphColor14,a.graphColor35,a.graphColor31,a.graphColor33,a.graphColor32,a.graphColor36,a.graphColor02,a.graphColor06,a.graphColor04,a.graphColor10,a.graphColor12,a.graphColor15,a.graphColor18,a.graphColor17,a.graphColor07,a.graphColor34Dark,a.graphColor05Dark,a.graphColor08Dark,a.graphColor11Dark,a.graphColor13Dark,a.graphColor19Dark,a.graphColor29Dark,a.graphColor28Dark,a.graphColor20Dark,a.graphColor21Dark,a.graphColor22Dark,a.graphColor14Dark,a.graphColor35Dark,a.graphColor31Dark,a.graphColor33Dark,a.graphColor32Dark,a.graphColor36Dark,a.graphColor02Dark,a.graphColor06Dark,a.graphColor04Dark,a.graphColor10Dark,a.graphColor12Dark,a.graphColor15Dark,a.graphColor18Dark,a.graphColor17Dark,a.graphColor07Dark];class I{_barColors;_barColorsKeyWise;_defaultColor;constructor(){this._defaultColor=a.graphColor34,this._barColors=se.slice(),this._barColorsKeyWise=new Map}static#e=new I;getBarColor(r){const o=I.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=I.instance(),s=Array.from(o._barColorsKeyWise.keys()).sort();return!le(s,r)}static init(){return this.#e=new I,this.#e}static instance(){return this.#e}}const lo=I.instance(),co=(e,r)=>{const o=new Set,s={};let i;const l=r.top4VendorsAndOthers;return Object.keys(l).length>0&&Object.keys(l).forEach(m=>{l[m].forEach((n,p)=>{const g=`vendor_${p}`,c=Fe(g,"actual");o.add(c),i==null&&n.balance!=null&&(i=c),s[c]!=null?s[c].push({key:c,balance:n.balance}):s[c]=[{key:c,balance:n.balance}]})}),i!=null?ze(e,[...o],i,s):void 0},po=h.div`
25
+ `,to=({active:e,payload:r,barName:o})=>{const s=[];if(r!==void 0&&e===!0){const i=r.filter(y=>y.name==o)[0],l=i.payload,h=i.color,n={amount:l.record[o].amount?.amount??0,currencyCode:l.record[o].amount?.currencyCode??"",currencySymbol:l.record[o].amount?.currencySymbol??""},p={amount:0,currencyCode:"",currencySymbol:""};let g=0,c;for(c in l.record)c.endsWith("_actual")&&(g+=l.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:l.timeLabel})}return s},no=({barLabelsWithValues:e,getVendorName:r})=>t.jsx(oo,{children:t.jsxs(ro,{children:[t.jsxs(ae,{children:[t.jsx(te,{color:e[0].color,children:`${r(e[0].timeframeTick,e[0].barName)}`}),t.jsx(ne,{color:e[0].color,children:`${ee(e[0].actual)}`})]}),t.jsx(ao,{}),t.jsxs(ae,{children:[t.jsx(te,{color:a.primaryDark,children:`${B.getLocalizedStrings().chartCard.total}`}),t.jsx(ne,{children:`${ee(e[0].total)}`})]})]})}),so=e=>{const r=to({...e});return r.length===0?null:t.jsx(no,{barLabelsWithValues:r,getVendorName:e.getVendorName})},io=Ae.memo(so),se=[a.graphColor34,a.graphColor05,a.graphColor08,a.graphColor11,a.graphColor13,a.graphColor19,a.graphColor29,a.graphColor28,a.graphColor20,a.graphColor21,a.graphColor22,a.graphColor14,a.graphColor35,a.graphColor31,a.graphColor33,a.graphColor32,a.graphColor36,a.graphColor02,a.graphColor06,a.graphColor04,a.graphColor10,a.graphColor12,a.graphColor15,a.graphColor18,a.graphColor17,a.graphColor07,a.graphColor34Dark,a.graphColor05Dark,a.graphColor08Dark,a.graphColor11Dark,a.graphColor13Dark,a.graphColor19Dark,a.graphColor29Dark,a.graphColor28Dark,a.graphColor20Dark,a.graphColor21Dark,a.graphColor22Dark,a.graphColor14Dark,a.graphColor35Dark,a.graphColor31Dark,a.graphColor33Dark,a.graphColor32Dark,a.graphColor36Dark,a.graphColor02Dark,a.graphColor06Dark,a.graphColor04Dark,a.graphColor10Dark,a.graphColor12Dark,a.graphColor15Dark,a.graphColor18Dark,a.graphColor17Dark,a.graphColor07Dark];class I{_barColors;_barColorsKeyWise;_defaultColor;constructor(){this._defaultColor=a.graphColor34,this._barColors=se.slice(),this._barColorsKeyWise=new Map}static#e=new I;getBarColor(r){const o=I.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=I.instance(),s=Array.from(o._barColorsKeyWise.keys()).sort();return!le(s,r)}static init(){return this.#e=new I,this.#e}static instance(){return this.#e}}const lo=I.instance(),co=(e,r)=>{const o=new Set,s={};let i;const l=r.top4VendorsAndOthers;return Object.keys(l).length>0&&Object.keys(l).forEach(h=>{l[h].forEach((n,p)=>{const g=`vendor_${p}`,c=Fe(g,"actual");o.add(c),i==null&&n.balance!=null&&(i=c),s[c]!=null?s[c].push({key:c,balance:n.balance}):s[c]=[{key:c,balance:n.balance}]})}),i!=null?Re(e,[...o],i,s):void 0},po=m.div`
26
26
  width: ${e=>e.width}px;
27
27
  height: ${e=>e.height}px;
28
- `;function mo({selectedRangeReport:e,width:r,height:o,showBarHoverBackground:s=!1,isDetailPage:i=!1}){const l=C.useRef(!1),m=lo,[n,p]=C.useState(void 0);C.useEffect(()=>{l.current=!0},[]);const g=co(e.firstMonthOfFY,e),c=()=>{const d=[];return g?.orderedKeys.forEach(_=>{const S=i===!0&&!l.current;d.push(y(_,S))}),d},y=(d,_)=>t.jsx(eo,{name:d,animationDuration:_?500:void 0,style:{cursor:"pointer"},dataKey:S=>{const v=S.record;return(v[d]?.amount!=null?v[d].amount:void 0)?.amount??0},stackId:"chartByTimeSeries",fill:m.getBarColor(de(d)),onMouseEnter:()=>{n!==d&&p(d)},onMouseLeave:()=>{n!=null&&p(void 0)}},d),x=({active:d,payload:_})=>_?.find(S=>S.name===n)!=null&&n!=null&&d===!0?t.jsx(io,{active:d,payload:_,barName:n,getVendorName:f}):null,f=(d,_)=>{const S=Le(d);try{const v=_.split("_")[1];return e.top4VendorsAndOthers[S][parseInt(v)].vendor.name}catch(v){return console.warn("Was not able to parse vendor index for tooltip ",v),""}};return g==null?null:t.jsx(ho,{chartData:g,showBarHoverBackground:s,barElements:c(),customToolTipContent:t.jsx(x,{}),width:r,height:o,isDetailPage:i===!0})}const ho=({chartData:e,barElements:r,customToolTipContent:o,width:s,height:i,showBarHoverBackground:l=!1,isDetailPage:m})=>{const n=J(),p=Ve(e),g=l!==!1,c=m?(s-60)/G.operating_expenses_by_vendor*(G.operating_expenses_by_vendor-e.timeseries.length):20;return t.jsx(po,{width:s,height:i,children:t.jsx(ie,{children:({height:y,width:x})=>t.jsxs(Ue,{width:x,height:y,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:m?P[5]:30,margin:{top:5,right:c,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[t.jsx(qe,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:n.colors.grey3}),t.jsx(Xe,{dataKey:f=>f.timeLabel.label,type:"category",axisLine:{stroke:n.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:n.colors.hero,...Q.extraSmallRegular.cssObject}}),t.jsx(Ze,{type:"number",axisLine:!1,tickLine:!1,tick:{color:n.colors.hero,...Q.extraSmallRegular.cssObject},tickFormatter:f=>Me("0,0.[00]a",f,p)}),t.jsx(Qe,{wrapperStyle:{zIndex:2},cursor:g?{stroke:n.colors.background,strokeWidth:(x-120)/G.operating_expenses_by_vendor,fill:n.colors.background}:!1,content:o,allowEscapeViewBox:{x:!1,y:!0}}),r]})})})};function go(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,company_name:e.companyName,statement_file_type:e.statementFileType,timeframe:e.timeframe,timezone:e.timezone,additional_balances:e.additionalBalances,format:e.format,sort_key:e.sortKey,sort_order:e.sortOrder,is_compare_mode_on:e.isCompareModeOn,search_string:e.searchString}}function uo(e){const{isCompareModeOn:r,report:o,currentTenantCompanyName:s}=e,i=[];if(r&&(i.push("this_period_vs_last_period_percent"),i.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:i,format:e.reportType,sortKey:e.sortKey,sortOrder:e.sortOrder,isCompareModeOn:e.isCompareModeOn,searchString:e.searchString}}function fo(e){const r=uo(e);if(r!=null)return yo(e.statementEndPoint,e.authParams,r)}async function yo(e,r,o){const s=B.getLocalizedStrings().downloadReport,i=`${e}?query=${encodeURIComponent(JSON.stringify(go(o)))}`;try{const l=await De({urlEndPoint:i,authParams:r,fileType:o.statementFileType});if(l.ok){const m=Ie(l.headers,s.defaultFileName),n=await l.arrayBuffer();Ne(n,m)}else console.error(`${s.reportErrorMessage} ${l.statusText}`)}catch(l){console.error(`${s.reportErrorMessage} ${JSON.stringify(l)}`)}}function bo({title:e,balances:r,config:o,nodeId:s}){return{children:[],id:s??U("title_string_only",[]),isLastNode:!1,reportElementData:{element:{kind:"title_string_only",title:e,data:r,numOfBalances:r.length},config:o}}}function Co({opExByVendor:e,numOfBalances:r,title:o,isLastNode:s,config:i}){const l=e.account?.accountName??"-",m=e.classBase?.className??"-",n=U("vendor_row",[],o+l+m);return{children:[],id:n,isLastNode:s,reportElementData:{element:{kind:"vendor_row",title:o,data:e,numOfBalances:r},config:i}}}function _o({title:e,balances:r,config:o,numOfBalances:s,nodeId:i}){return{children:[],id:i??U("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:r,numOfBalances:s},config:o}}}const xo=(e,r,o,s=!0)=>{const i=o.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+1:e.filter.balancesRange.numberOfPeriods,l=e.totalBalances!=null?[...e.totalBalances.balances,...e.totalBalances.additionalBalances]:[];e.totalBalances?.totalBalance!=null&&l.push(e.totalBalances.totalBalance);const m=pe({balances:l,config:o}),n=[];n.push(m);const p=B.getLocalizedStrings().vendors.opExByVendor,g=o.opexByVendorConfig?.sortOrSearchInProgress??!1,c=o.opexByVendorConfig?.pageFetchInProgress??!1;if(g===!0)[...Array(10)].forEach((y,x)=>{n.push(re({title:`${x}+${p.loading}`,balances:l,config:o}))});else if(e.opexBalances.length>0){if(!r.searchString){const f=_o({title:B.getLocalizedStrings().chartCard.total,balances:e.totalBalances,config:o,numOfBalances:i});n.push(f)}const y=r.pageToken[r.timeframe],x=e.opexBalances.map((f,d)=>Co({opExByVendor:f,title:f.vendor.name,numOfBalances:i,isLastNode:d===e.opexBalances.length-1&&y==null,config:o}));n.push(...x),c===!0&&[...Array(1)].forEach((f,d)=>{n.push(re({title:`${d}+${p.loading}`,balances:l,config:o}))}),[...Array(1)].forEach((f,d)=>{n.push(Je({title:`${d}+${p.loading}`,balances:[],config:o}))})}return e.opexBalances.length===0&&g!==!0&&n.push(bo({title:B.getLocalizedStrings().vendors.opExByVendor.noResultsFound,balances:l,config:o})),{config:o,headerNodes:s?[m]:[],contentNodes:n}};function So(e,r,o,s=!0){Object.assign(e.config,r);const i=wo(o),l=pe({balances:i,config:r});return{config:r,headerNodes:s?[l]:[],contentNodes:[l,...e.contentNodes.slice(1)]}}const wo=e=>e.totalBalances!=null?[...e.totalBalances.balances,...e.totalBalances.additionalBalances]:[],N={chartHeight:new F(288,360),wrapperPadding:new F(P[3],P[3],P[8]),contentPaddingLeft:new F(P[0],P[0],P[0]),contentPaddingRight:new F(P[3],P[3],P[8])},ko=h.div`
28
+ `;function ho({selectedRangeReport:e,width:r,height:o,showBarHoverBackground:s=!1,isDetailPage:i=!1}){const l=C.useRef(!1),h=lo,[n,p]=C.useState(void 0);C.useEffect(()=>{l.current=!0},[]);const g=co(e.firstMonthOfFY,e),c=()=>{const d=[];return g?.orderedKeys.forEach(_=>{const S=i===!0&&!l.current;d.push(y(_,S))}),d},y=(d,_)=>t.jsx(eo,{name:d,animationDuration:_?500:void 0,style:{cursor:"pointer"},dataKey:S=>{const v=S.record;return(v[d]?.amount!=null?v[d].amount:void 0)?.amount??0},stackId:"chartByTimeSeries",fill:h.getBarColor(de(d)),onMouseEnter:()=>{n!==d&&p(d)},onMouseLeave:()=>{n!=null&&p(void 0)}},d),x=({active:d,payload:_})=>_?.find(S=>S.name===n)!=null&&n!=null&&d===!0?t.jsx(io,{active:d,payload:_,barName:n,getVendorName:f}):null,f=(d,_)=>{const S=Le(d);try{const v=_.split("_")[1];return e.top4VendorsAndOthers[S][parseInt(v)].vendor.name}catch(v){return console.warn("Was not able to parse vendor index for tooltip ",v),""}};return g==null?null:t.jsx(mo,{chartData:g,showBarHoverBackground:s,barElements:c(),customToolTipContent:t.jsx(x,{}),width:r,height:o,isDetailPage:i===!0})}const mo=({chartData:e,barElements:r,customToolTipContent:o,width:s,height:i,showBarHoverBackground:l=!1,isDetailPage:h})=>{const n=J(),p=Ve(e),g=l!==!1,c=h?(s-60)/G.operating_expenses_by_vendor*(G.operating_expenses_by_vendor-e.timeseries.length):20;return t.jsx(po,{width:s,height:i,children:t.jsx(ie,{children:({height:y,width:x})=>t.jsxs(Ue,{width:x,height:y,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:h?P[5]:30,margin:{top:5,right:c,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[t.jsx(qe,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:n.colors.grey3}),t.jsx(Qe,{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(Xe,{type:"number",axisLine:!1,tickLine:!1,tick:{color:n.colors.hero,...Z.extraSmallRegular.cssObject},tickFormatter:f=>Me("0,0.[00]a",f,p)}),t.jsx(Ze,{wrapperStyle:{zIndex:2},cursor:g?{stroke:n.colors.background,strokeWidth:(x-120)/G.operating_expenses_by_vendor,fill:n.colors.background}:!1,content:o,allowEscapeViewBox:{x:!1,y:!0}}),r]})})})};function go(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,company_name:e.companyName,statement_file_type:e.statementFileType,timeframe:e.timeframe,timezone:e.timezone,additional_balances:e.additionalBalances,format:e.format,sort_key:e.sortKey,sort_order:e.sortOrder,is_compare_mode_on:e.isCompareModeOn,search_string:e.searchString}}function uo(e){const{isCompareModeOn:r,report:o,currentTenantCompanyName:s}=e,i=[];if(r&&(i.push("this_period_vs_last_period_percent"),i.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:i,format:e.reportType,sortKey:e.sortKey,sortOrder:e.sortOrder,isCompareModeOn:e.isCompareModeOn,searchString:e.searchString}}function fo(e){const r=uo(e);if(r!=null)return yo(e.statementEndPoint,e.authParams,r)}async function yo(e,r,o){const s=B.getLocalizedStrings().downloadReport,i=`${e}?query=${encodeURIComponent(JSON.stringify(go(o)))}`;try{const l=await De({urlEndPoint:i,authParams:r,fileType:o.statementFileType});if(l.ok){const h=Ie(l.headers,s.defaultFileName),n=await l.arrayBuffer();Ne(n,h)}else console.error(`${s.reportErrorMessage} ${l.statusText}`)}catch(l){console.error(`${s.reportErrorMessage} ${JSON.stringify(l)}`)}}function bo({title:e,balances:r,config:o,nodeId:s}){return{children:[],id:s??U("title_string_only",[]),isLastNode:!1,reportElementData:{element:{kind:"title_string_only",title:e,data:r,numOfBalances:r.length},config:o}}}function Co({opExByVendor:e,numOfBalances:r,title:o,isLastNode:s,config:i}){const l=e.account?.accountName??"-",h=e.classBase?.className??"-",n=U("vendor_row",[],o+l+h);return{children:[],id:n,isLastNode:s,reportElementData:{element:{kind:"vendor_row",title:o,data:e,numOfBalances:r},config:i}}}function _o({title:e,balances:r,config:o,numOfBalances:s,nodeId:i}){return{children:[],id:i??U("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:r,numOfBalances:s},config:o}}}const xo=(e,r,o,s=!0)=>{const i=o.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+1:e.filter.balancesRange.numberOfPeriods,l=e.totalBalances!=null?[...e.totalBalances.balances,...e.totalBalances.additionalBalances]:[];e.totalBalances?.totalBalance!=null&&l.push(e.totalBalances.totalBalance);const h=pe({balances:l,config:o}),n=[];n.push(h);const p=B.getLocalizedStrings().vendors.opExByVendor,g=o.opexByVendorConfig?.sortOrSearchInProgress??!1,c=o.opexByVendorConfig?.pageFetchInProgress??!1;if(g===!0)[...Array(10)].forEach((y,x)=>{n.push(re({title:`${x}+${p.loading}`,balances:l,config:o}))});else if(e.opexBalances.length>0){if(!r.searchString){const f=_o({title:B.getLocalizedStrings().chartCard.total,balances:e.totalBalances,config:o,numOfBalances:i});n.push(f)}const y=r.pageToken[r.timeframe],x=e.opexBalances.map((f,d)=>Co({opExByVendor:f,title:f.vendor.name,numOfBalances:i,isLastNode:d===e.opexBalances.length-1&&y==null,config:o}));n.push(...x),c===!0&&[...Array(1)].forEach((f,d)=>{n.push(re({title:`${d}+${p.loading}`,balances:l,config:o}))}),[...Array(1)].forEach((f,d)=>{n.push(Je({title:`${d}+${p.loading}`,balances:[],config:o}))})}return e.opexBalances.length===0&&g!==!0&&n.push(bo({title:B.getLocalizedStrings().vendors.opExByVendor.noResultsFound,balances:l,config:o})),{config:o,headerNodes:s?[h]:[],contentNodes:n}};function So(e,r,o,s=!0){Object.assign(e.config,r);const i=ko(o),l=pe({balances:i,config:r});return{config:r,headerNodes:s?[l]:[],contentNodes:[l,...e.contentNodes.slice(1)]}}const ko=e=>e.totalBalances!=null?[...e.totalBalances.balances,...e.totalBalances.additionalBalances]:[],N={chartHeight:new F(288,360),wrapperPadding:new F(P[3],P[3],P[8]),contentPaddingLeft:new F(P[0],P[0],P[0]),contentPaddingRight:new F(P[3],P[3],P[8])},wo=m.div`
29
29
  display: flex;
30
30
  flex: 1 1 auto;
31
31
  min-height: 100%;
@@ -34,13 +34,13 @@ import{J as H,i8 as Ce,F as B,d as J,ce as _e,az as xe,V as t,bP as Se,ab as we,
34
34
  background-color: ${e=>e.theme.colors.grey5};
35
35
  padding: ${u.sp0};
36
36
  gap: 2px;
37
- `,vo=h.div`
37
+ `,vo=m.div`
38
38
  position: relative;
39
39
  box-shadow: ${e=>`2px 2px ${u.sp1} ${e.theme.colors.dropShadowNormal}`};
40
40
  background-color: ${e=>e.theme.colors.grey5};
41
41
  padding-left: ${e=>N.wrapperPadding.valuePx(e.windowSize)};
42
42
  padding-right: ${e=>N.wrapperPadding.valuePx(e.windowSize)};
43
- `,Bo=h.div`
43
+ `,Bo=m.div`
44
44
  display: flex;
45
45
  width: 100%;
46
46
  height: 100vh;
@@ -48,14 +48,14 @@ import{J as H,i8 as Ce,F as B,d as J,ce as _e,az as xe,V as t,bP as Se,ab as we,
48
48
  justify-content: center;
49
49
  align-items: center;
50
50
  background-color: ${e=>e.theme.colors.grey5};
51
- `,Po=h.div`
51
+ `,Po=m.div`
52
52
  display: flex;
53
53
  width: 100%;
54
54
  height: 100vh;
55
55
  flex-direction: column;
56
56
  justify-content: center;
57
57
  align-items: center;
58
- `,Oo=h.div`
58
+ `,Oo=m.div`
59
59
  height: 96px;
60
60
  width: 96px;
61
61
  background: ${e=>e.theme.colors.background};
@@ -70,31 +70,31 @@ import{J as H,i8 as Ce,F as B,d as J,ce as _e,az as xe,V as t,bP as Se,ab as we,
70
70
  color: ${e=>e.theme.colors.primary};
71
71
  }
72
72
  }
73
- `,To=h(Te)`
73
+ `,To=m(Te)`
74
74
  margin-top: ${u.sp3};
75
75
  color: ${e=>e.theme.colors.hero};
76
- `,$o=h.div`
76
+ `,$o=m.div`
77
77
  display: flex;
78
78
  padding: ${u.sp2} ${u.sp0} ${u.sp4} ${u.sp0};
79
- `,jo=h.div``,Do=h.div``,Io=h.div`
79
+ `,jo=m.div``,Do=m.div``,Io=m.div`
80
80
  display: flex;
81
81
  flex: 1 1 auto;
82
82
  flex-direction: column;
83
83
  height: ${e=>N.chartHeight.valuePx(e.windowSize)};
84
84
  padding-bottom: ${u.sp6};
85
- `,No=h.div`
85
+ `,No=m.div`
86
86
  display: flex;
87
- `,Eo=h.div`
87
+ `,Eo=m.div`
88
88
  margin-top: ${u.sp5};
89
89
  margin-bottom: ${u.sp6};
90
- `,Mo=h.div`
90
+ `,Mo=m.div`
91
91
  display: flex;
92
92
  position: sticky;
93
93
  justify-content: center;
94
94
  padding-top: ${u.sp8};
95
95
  padding-left: ${e=>N.wrapperPadding.valuePx(e.windowSize)};
96
96
  background-color: ${e=>e.theme.colors.grey4};
97
- `,Ao=h.div`
97
+ `,Ao=m.div`
98
98
  width: 100%;
99
99
  height: calc(100vh - ${u.sp11});
100
- `,Lo=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?t.jsx(Bo,{children:t.jsx($e,{size:"ExtraLarge",start:!0})}):null,fr=({report:e,vendorTabsToShow:r,uiState:o,downloadParams:s,onVendorTabSelectionChanged:i,onReloadReport:l,onBackClick:m,onFetchOpExByVendors:n,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:g,onSortOrderChanged:c,onSortOrSearchStarted:y,onVendorNameAndBalanceClicked:x,onPageFetchStarted:f,previousTabPosition:d,setPreviousTabPosition:_,updateDownloadStateHandler:S,onClearSearch:v,analytics:O,onClickMenuIcon:R})=>{const[$,E]=C.useState(o.searchString[o.timeframe]),[M,A]=C.useState(!1),w=H(),j=C.useRef(null),W=Ce(r),me=W.length>1,he=B.getLocalizedStrings().reports.common,q=B.getLocalizedStrings().vendors,X=J(),ge=["month","quarter"],ue=e.availableNumberOfPeriods!=null&&e.availableNumberOfPeriods<2,L=o.mode==="compare_mode"&&!ue,K=e.allTimeframeTicks.length===0,{timeframe:T}=o,D=o.searchString[T];_e({componentName:"vendors.opex_by_vendor.list"});const fe=C.useCallback(k=>{n(T,D,k)},[T,D,n]),ye=C.useCallback((k,b)=>{window.scrollTo({top:j.current?.offsetTop,behavior:"smooth"}),k.length>0?(y(!0),n(b,k,!1)):(y(!1),v(b))},[v,n,y]),Z=C.useRef(xe((k,b)=>ye(k,b),500,{trailing:!0})).current,be=(k,b)=>{c(k,b,T),y(!0),n(T,D,!1)};if(C.useEffect(()=>{async function k(){await fo({report:e,isCompareModeOn:L,downloadState:o.downloadState,reportType:"more_detailed",timeframe:o.timeframe,sortKey:o.sortKey[o.timeframe],sortOrder:o.sortOrder[o.timeframe],searchString:o.searchString[T],...s}),O?.trackDownload(z("operating_expenses_by_vendor"),V(o.timeframe),"excel",L),S("Completed")}M&&o.downloadState!=="In-Progress"&&(A(!1),S("In-Progress"),k())},[e,o,L,s,o.downloadState,M]),C.useEffect(()=>{E(D)},[D]),e.fetchState==="Error")return t.jsxs(Po,{children:[t.jsx(Oo,{"data-testid":we("op-ex-by-vendor-reload-page"),onClick:l,children:t.jsx(Se,{})}),t.jsx(To,{children:he.failed})]});const Y=e.totalBalances?.totalBalance;if(o.sortOrSearchInProgress===!1&&o.pageFetchInProgress===!1&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"))return t.jsx(Lo,{fetchState:e.fetchState});if((e.fetchState==="Completed"||o.sortOrSearchInProgress===!0||o.pageFetchInProgress===!0)&&e.isReportGenerated===!0){const k=t.jsxs(t.Fragment,{children:[t.jsx(ke,{isSearchOpen:(D?.length??0)>0,searchPlaceHolder:q.common.searchPlaceholder,searchText:$??"",onSearchTextChanged:b=>{E(b),b.trim().length>=2?Z(b,T):b.trim().length==0&&Z("",T)},downloadPresent:!0}),t.jsx(ve,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:K,isDownloading:o.downloadState==="In-Progress"}],onDownloadClick:async b=>{if(b==="excel")if(o.downloadState==="In-Progress"){console.log("Download is already in progress!");return}else A(!0)}}}})]});return t.jsxs(ko,{windowSize:w,children:[t.jsx(Be,{title:q.common.navBarTitle,subTitle:e.lastRefreshSuccessTime!=null?e.lastRefreshSuccessTime.utc(!0).fromNow():"",backgroundColor:X.colors.grey5,onBackClick:m,rightSideComponent:k,showMenuIcon:w==="medium-compact"||w==="small",downloadPresent:!0,onClickMenuIcon:R,source:"OpExByVendorPage"}),t.jsxs(vo,{windowSize:w,children:[me?t.jsx(Pe,{allTabs:W,selectedTab:W[1].id,containerStyle:{borderBottom:`2px solid ${X.colors.grey3}`},onTabChange:b=>i(Oe(b.id)),previousTabPosition:d,setPreviousTabPosition:_}):null,t.jsx(Fo,{timeframes:ge,isCompareModeOn:L,firstMonthOfFY:e.firstMonthOfFY,allTimeframeTicks:e.allTimeframeTicks,selectedTimeframe:o.timeframe,selectedCOABalancesRange:e.filter.balancesRange,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:g,mode:o.mode,analytics:O}),Y!=null?t.jsx(Eo,{children:t.jsx(Ge,{balance:Y,dateText:Ro(Y)})}):null,t.jsx(Vo,{report:e,isEmptyPeriod:K})]}),t.jsx(zo,{reference:j,report:e,uiState:o,isEmptyPeriod:K,onAdditionalBalanceSelectionChanged:p,onVendorNameAndBalanceClicked:x,onSortOrderChanged:be,handleFetchOpExByVendor:fe,onPageFetchStarted:f,analytics:O})]})}return t.jsx(t.Fragment,{})},Fo=({timeframes:e,firstMonthOfFY:r,allTimeframeTicks:o,selectedCOABalancesRange:s,selectedTimeframe:i,onTimeframeSelectionChanged:l,onAdditionalBalanceSelectionChanged:m,mode:n,isCompareModeOn:p,analytics:g})=>t.jsx(Do,{children:t.jsxs(jo,{children:[t.jsx($o,{children:t.jsx(We,{timeframe:{allowedTimeframes:e,selectedTimeframe:i,onTimeframeSelectionChanged:c=>{g?.trackTimeframeSwitch(V(c),z("operating_expenses_by_vendor")),(c==="month"||c==="quarter")&&l(c),n==="compare_mode"&&!p&&m(p,p?["this_period_vs_last_period_percent"]:[])}},toggle:{label:B.getLocalizedStrings().compareSwitchLabel,isOn:p,isToggleDisabled:!1,onValueChanged:c=>{g?.trackCompareMode(c,z("operating_expenses_by_vendor"),V(i)),m(c,c?["this_period_vs_last_period_percent"]:[])}}})}),t.jsx(Re,{firstMonthOfFY:r,timeframe:i,timeframeTicks:o,selection:{selectedTicks:oe(o,s),highlightedOfSelectedTicks:oe(o,s)}})]})}),Vo=({isEmptyPeriod:e,report:r})=>{const o=H();return e?t.jsx(No,{children:t.jsx(Ke,{title:B.getLocalizedStrings().chartCard.no_data_available})}):t.jsx(Io,{windowSize:o,children:t.jsx(ie,{children:({height:s,width:i})=>t.jsx(mo,{selectedRangeReport:r,width:i,height:s,isDetailPage:!0,showBarHoverBackground:!1})})})},zo=({report:e,uiState:r,isEmptyPeriod:o,reference:s,onAdditionalBalanceSelectionChanged:i,onTableScroll:l,onSortOrderChanged:m,onVendorNameAndBalanceClicked:n,handleFetchOpExByVendor:p,onPageFetchStarted:g,analytics:c})=>{const y=r.mode==="compare_mode",x=w=>{c?.trackCompareFilterChange(w==="compare_mode_percent"?"percentage":"amount",z("operating_expenses_by_vendor"),V(r.timeframe),"dropdown"),i(y,[w==="compare_mode_percent"?"this_period_vs_last_period_percent":"this_period_vs_last_period"])},f=r.selectedAdditionalBalances.includes("this_period_vs_last_period_percent")?"compare_mode_percent":"compare_mode_amount",[d,_]=C.useState(void 0),[S,v]=C.useState(void 0),O=H(),R=J(),$=!(O==="small"||O==="medium-compact");C.useEffect(()=>{const w={reportId:e.reportId,mode:r.mode==="compare_mode"?"this_period_vs_period_before":"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:Ee(),dataAvailable:e.dataAvailable,opexByVendorConfig:{sortKey:r.sortKey[r.timeframe],sortOrder:r.sortOrder[r.timeframe],isCompareModeOn:r.mode==="compare_mode",isAccountColumnShown:!0,isClassColumnShown:!0,onSortOrderChanged:m,sortOrSearchInProgress:r.sortOrSearchInProgress,pageFetchInProgress:r.pageFetchInProgress,onVendorNameAndBalanceClicked:n}};if(d==null||!le(S,e)){const j=xo(e,r,w,$);v(e),_(j)}else{const j=So(d,w,e,$);_(j)}},[r.mode,e]);const E=w=>w<e.opexBalances.length,M=()=>{r.pageToken[r.timeframe]!=null&&e.fetchState==="Completed"&&(g(),p(!0))},A=e.opexBalances.length;return t.jsx(Mo,{windowSize:O,ref:s,children:o?t.jsx(Ye,{}):d!=null?t.jsx(Ao,{children:t.jsx(He,{backgroundColor:new je(R.colors.grey4),rootNodes:d,type:"name+balances_actual",compareMode:f,isSticky:{isStickyHeader:$,isStickyName:$},treeNodePadding:{left:N.contentPaddingLeft.value(O),right:N.contentPaddingRight.value(O)},nodeOpenStatus:{},scrollPosition:r.scrollPosition,onCompareModeChanged:x,onScroll:l,infiniteLoadingProps:{isItemLoaded:E,itemCount:A,loadMoreItems:M}})}):null})},Ro=e=>{const r=e.startDate,o=e.endDate,{vendors:s,dateFormat:i}=B.getLocalizedStrings();return`${s.opExByVendor.in} ${r.format(i.visual.MMMYYFormat)} - ${o.format(i.visual.MMMYYFormat)}`};export{fr as default};
100
+ `,Lo=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?t.jsx(Bo,{children:t.jsx($e,{size:"ExtraLarge",start:!0})}):null,fr=({report:e,vendorTabsToShow:r,uiState:o,downloadParams:s,onVendorTabSelectionChanged:i,onReloadReport:l,onBackClick:h,onFetchOpExByVendors:n,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:g,onSortOrderChanged:c,onSortOrSearchStarted:y,onVendorNameAndBalanceClicked:x,onPageFetchStarted:f,previousTabPosition:d,setPreviousTabPosition:_,updateDownloadStateHandler:S,onClearSearch:v,analytics:O,onClickMenuIcon:z})=>{const[$,E]=C.useState(o.searchString[o.timeframe]),[M,A]=C.useState(!1),k=H(),j=C.useRef(null),W=Ce(r),he=W.length>1,me=B.getLocalizedStrings().reports.common,q=B.getLocalizedStrings().vendors,Q=J(),ge=["month","quarter"],ue=e.availableNumberOfPeriods!=null&&e.availableNumberOfPeriods<2,L=o.mode==="compare_mode"&&!ue,K=e.allTimeframeTicks.length===0,{timeframe:T}=o,D=o.searchString[T];_e({componentName:"vendors.opex_by_vendor.list"});const fe=C.useCallback(w=>{n(T,D,w)},[T,D,n]),ye=C.useCallback((w,b)=>{window.scrollTo({top:j.current?.offsetTop,behavior:"smooth"}),w.length>0?(y(!0),n(b,w,!1)):(y(!1),v(b))},[v,n,y]),X=C.useRef(xe((w,b)=>ye(w,b),500,{trailing:!0})).current,be=(w,b)=>{c(w,b,T),y(!0),n(T,D,!1)};if(C.useEffect(()=>{async function w(){await fo({report:e,isCompareModeOn:L,downloadState:o.downloadState,reportType:"more_detailed",timeframe:o.timeframe,sortKey:o.sortKey[o.timeframe],sortOrder:o.sortOrder[o.timeframe],searchString:o.searchString[T],...s}),O?.trackDownload(R("operating_expenses_by_vendor"),V(o.timeframe),"excel",L),S("Completed")}M&&o.downloadState!=="In-Progress"&&(A(!1),S("In-Progress"),w())},[e,o,L,s,o.downloadState,M]),C.useEffect(()=>{E(D)},[D]),e.fetchState==="Error")return t.jsxs(Po,{children:[t.jsx(Oo,{"data-testid":ke("op-ex-by-vendor-reload-page"),onClick:l,children:t.jsx(Se,{})}),t.jsx(To,{children:me.failed})]});const Y=e.totalBalances?.totalBalance;if(o.sortOrSearchInProgress===!1&&o.pageFetchInProgress===!1&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"))return t.jsx(Lo,{fetchState:e.fetchState});if((e.fetchState==="Completed"||o.sortOrSearchInProgress===!0||o.pageFetchInProgress===!0)&&e.isReportGenerated===!0){const w=t.jsxs(t.Fragment,{children:[t.jsx(we,{isSearchOpen:(D?.length??0)>0,searchPlaceHolder:q.common.searchPlaceholder,searchText:$??"",onSearchTextChanged:b=>{E(b),b.trim().length>=2?X(b,T):b.trim().length==0&&X("",T)},downloadPresent:!0}),t.jsx(ve,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:K,isDownloading:o.downloadState==="In-Progress"}],onDownloadClick:async b=>{if(b==="excel")if(o.downloadState==="In-Progress"){console.log("Download is already in progress!");return}else A(!0)}}}})]});return t.jsxs(wo,{windowSize:k,children:[t.jsx(Be,{title:q.common.navBarTitle,subTitle:e.lastRefreshSuccessTime!=null?e.lastRefreshSuccessTime.utc(!0).fromNow():"",backgroundColor:Q.colors.grey5,onBackClick:h,rightSideComponent:w,showMenuIcon:k==="medium-compact"||k==="small",downloadPresent:!0,onClickMenuIcon:z,source:"OpExByVendorPage"}),t.jsxs(vo,{windowSize:k,children:[he?t.jsx(Pe,{allTabs:W,selectedTab:W[1].id,containerStyle:{borderBottom:`2px solid ${Q.colors.grey3}`},onTabChange:b=>i(Oe(b.id)),previousTabPosition:d,setPreviousTabPosition:_}):null,t.jsx(Fo,{timeframes:ge,isCompareModeOn:L,firstMonthOfFY:e.firstMonthOfFY,allTimeframeTicks:e.allTimeframeTicks,selectedTimeframe:o.timeframe,selectedCOABalancesRange:e.filter.balancesRange,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:g,mode:o.mode,analytics:O}),Y!=null?t.jsx(Eo,{children:t.jsx(Ge,{balance:Y,dateText:zo(Y)})}):null,t.jsx(Vo,{report:e,isEmptyPeriod:K})]}),t.jsx(Ro,{reference:j,report:e,uiState:o,isEmptyPeriod:K,onAdditionalBalanceSelectionChanged:p,onVendorNameAndBalanceClicked:x,onSortOrderChanged:be,handleFetchOpExByVendor:fe,onPageFetchStarted:f,analytics:O})]})}return t.jsx(t.Fragment,{})},Fo=({timeframes:e,firstMonthOfFY:r,allTimeframeTicks:o,selectedCOABalancesRange:s,selectedTimeframe:i,onTimeframeSelectionChanged:l,onAdditionalBalanceSelectionChanged:h,mode:n,isCompareModeOn:p,analytics:g})=>t.jsx(Do,{children:t.jsxs(jo,{children:[t.jsx($o,{children:t.jsx(We,{timeframe:{allowedTimeframes:e,selectedTimeframe:i,onTimeframeSelectionChanged:c=>{g?.trackTimeframeSwitch(V(c),R("operating_expenses_by_vendor")),(c==="month"||c==="quarter")&&l(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(i)),h(c,c?["this_period_vs_last_period_percent"]:[])}}})}),t.jsx(ze,{firstMonthOfFY:r,timeframe:i,timeframeTicks:o,selection:{selectedTicks:oe(o,s),highlightedOfSelectedTicks:oe(o,s)}})]})}),Vo=({isEmptyPeriod:e,report:r})=>{const o=H();return e?t.jsx(No,{children:t.jsx(Ke,{title:B.getLocalizedStrings().chartCard.no_data_available})}):t.jsx(Io,{windowSize:o,children:t.jsx(ie,{children:({height:s,width:i})=>t.jsx(ho,{selectedRangeReport:r,width:i,height:s,isDetailPage:!0,showBarHoverBackground:!1})})})},Ro=({report:e,uiState:r,isEmptyPeriod:o,reference:s,onAdditionalBalanceSelectionChanged:i,onTableScroll:l,onSortOrderChanged:h,onVendorNameAndBalanceClicked:n,handleFetchOpExByVendor:p,onPageFetchStarted:g,analytics:c})=>{const y=r.mode==="compare_mode",x=k=>{c?.trackCompareFilterChange(k==="compare_mode_percent"?"percentage":"amount",R("operating_expenses_by_vendor"),V(r.timeframe),"dropdown"),i(y,[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,_]=C.useState(void 0),[S,v]=C.useState(void 0),O=H(),z=J(),$=!(O==="small"||O==="medium-compact");C.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:Ee(),dataAvailable:e.dataAvailable,opexByVendorConfig:{sortKey:r.sortKey[r.timeframe],sortOrder:r.sortOrder[r.timeframe],isCompareModeOn:r.mode==="compare_mode",isAccountColumnShown:!0,isClassColumnShown:!0,onSortOrderChanged:h,sortOrSearchInProgress:r.sortOrSearchInProgress,pageFetchInProgress:r.pageFetchInProgress,onVendorNameAndBalanceClicked:n}};if(d==null||!le(S,e)){const j=xo(e,r,k,$);v(e),_(j)}else{const j=So(d,k,e,$);_(j)}},[r.mode,e]);const E=k=>k<e.opexBalances.length,M=()=>{r.pageToken[r.timeframe]!=null&&e.fetchState==="Completed"&&(g(),p(!0))},A=e.opexBalances.length;return t.jsx(Mo,{windowSize:O,ref:s,children:o?t.jsx(Ye,{}):d!=null?t.jsx(Ao,{children:t.jsx(He,{backgroundColor:new je(z.colors.grey4),rootNodes:d,type:"name+balances_actual",compareMode:f,isSticky:{isStickyHeader:$,isStickyName:$},treeNodePadding:{left:N.contentPaddingLeft.value(O),right:N.contentPaddingRight.value(O)},nodeOpenStatus:{},scrollPosition:r.scrollPosition,onCompareModeChanged:x,onScroll:l,infiniteLoadingProps:{isItemLoaded:E,itemCount:A,loadMoreItems:M}})}):null})},zo=e=>{const r=e.startDate,o=e.endDate,{vendors:s,dateFormat:i}=B.getLocalizedStrings();return`${s.opExByVendor.in} ${r.format(i.visual.MMMYYFormat)} - ${o.format(i.visual.MMMYYFormat)}`};export{fr as default};
@@ -0,0 +1,11 @@
1
+ import{e as i,V as d}from"./index-DK3PYuee.js";import{n}from"./mui-CgqbPqeT.js";import"./sentry-DS5py-mq.js";import"./liveblocks-DzWLGwR5.js";import"./core-MmJvanAX.js";import"./recharts-CcfvjpA4.js";import"./zeni-epic-state-QRf7TPA6.js";import"./lottie-C8IpdMqp.js";import"./analytics-Cmcqa01V.js";import"./lexical-DyUba00B.js";import"./utils-C5WTobSB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="13dccc4e-0472-42fa-ac40-eb92d32b816d",e._sentryDebugIdIdentifier="sentry-dbid-13dccc4e-0472-42fa-ac40-eb92d32b816d")}catch{}})();const r=n.div`
2
+ display: ${({isOpen:e})=>e?"block":"none"};
3
+ position: fixed;
4
+ top: 0;
5
+ left: 0;
6
+ width: 100%;
7
+ height: 100%;
8
+ background-color: ${({theme:e})=>e.colors.background};
9
+ overflow-y: auto;
10
+ z-index: 10;
11
+ `,h=({isOpen:e,children:o})=>{const t=i();return d.jsx(r,{isOpen:e,theme:t,children:o})};export{h as default};