@zeniai/web-cockpit-ui 1.14.22-qa → 1.14.23-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 (244) hide show
  1. package/dist/assets/{ACHDetailsPage-Csc8UPGK-3Hzrt8sv.js → ACHDetailsPage-DZv7I3Jm-zPHhT4Vj.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-BNK1zghX-BOagkgDU.js → AIPerformancePage-DCq95N_N-DO8MzOBI.js} +26 -26
  3. package/dist/assets/{AccountInfoPage-WoQj1Knu-C0NqBhcm.js → AccountInfoPage-wfDS5ToF-BkRJ-lxL.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-BsiMZrTm-CTTq-Yc2.js → AccountInfoPageContent-dgeBtGlm-BSaBGsXw.js} +15 -15
  5. package/dist/assets/{AccountLockedInfoModal-CaIpZQOZ-CNfkV6iH.js → AccountLockedInfoModal-CqjvVPUE-Cma-cVvt.js} +3 -3
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BQTm9Igh-DHBcdmQI.js → AccountReconDetailsDrawerPage-BJ1TTvni-CnFKI7ya.js} +11 -11
  7. package/dist/assets/{AccountRow-mHhwnvVT-DlSD5_cv.js → AccountRow-99zfxKet-iP3hUTyF.js} +19 -19
  8. package/dist/assets/{AccountsPromoCardStack-jk87J-uY-BgOkj47K.js → AccountsPromoCardStack-CZwrQBcr-BLPwkeVU.js} +8 -8
  9. package/dist/assets/{AddAddressForCardDrawer-BY-ABNiB-C2mfRuV9.js → AddAddressForCardDrawer-BcOX27nY-CA-KCO8n.js} +2 -2
  10. package/dist/assets/{AddToWalletPage-BmaqhQ_z-CCkQvzoH.js → AddToWalletPage-CoW0Ppg4-WAfWgl1v.js} +14 -14
  11. package/dist/assets/{AgingReportsPage-B2tfefId-BASbPXl4.js → AgingReportsPage-Dgi5oFl4-Cao6O7NF.js} +10 -10
  12. package/dist/assets/{AllUserItems-C5jB4yc_-CbjMIbTC.js → AllUserItems-6iESftSq-BBGiJxHd.js} +9 -9
  13. package/dist/assets/{ApAgingDetailPage-B-ZHX3JJ-BApKFP0l.js → ApAgingDetailPage-jEL75hOV-BLy4yEPM.js} +3 -3
  14. package/dist/assets/{AppBasePage-DOXcrTCE-gk9eXfPv.js → AppBasePage-CMHbFdBh-DTT6hgO7.js} +3 -3
  15. package/dist/assets/{AppDrawerContent-Cav4Sy09-DQ-THdyv.js → AppDrawerContent-NAyrnDCL-B7ak2Xor.js} +40 -19
  16. package/dist/assets/{ApprovalRulesSettingsPage-rzr9k2jA-BmNSi22b.js → ApprovalRulesSettingsPage-BWraRVsT-BRbAilw6.js} +5 -5
  17. package/dist/assets/{ArAgingChart-B3NtEWh--BOlmxwm1.js → ArAgingChart-DPrIHwSE-ym_zT_Xu.js} +9 -9
  18. package/dist/assets/{ArAgingDetailPage-uX2oVxj4-C7e2SNBe.js → ArAgingDetailPage-CdNiD7uR-DccUXEIa.js} +4 -4
  19. package/dist/assets/{AttachmentView-BQMzs_UT-BMIgc-Op.js → AttachmentView-Cmh726Zl-C82E74gy.js} +3 -3
  20. package/dist/assets/{BankAccountSection-MWGcLsKa-Dl-WZeBC.js → BankAccountSection-jRnEB-Ut-BpoXdxMl.js} +4 -4
  21. package/dist/assets/{BankAccountWarningSection-CBlOG9xN-Bzq_eEtP.js → BankAccountWarningSection-KznYA-cf-CV3aOKhB.js} +3 -3
  22. package/dist/assets/{BankConnectionsSettingsPage-PagAlxUn-CiGjimFc.js → BankConnectionsSettingsPage-BXrsOxcg-CZU1wEnM.js} +15 -15
  23. package/dist/assets/{BillDetailPage-DU3KKWCI-BZd_KVnK.js → BillDetailPage-glKjF2MJ-CxnS8ehW.js} +5 -5
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DzfhQmLn-CV1bwFpI.js → BillPayApprovalRuleDetailPage-DyH2jp6G-BgnVnU6E.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-B051t9Mv-B6BIB1S2.js → BillPayApprovalRulesPage-jctlpXwj-sMvcDhpz.js} +11 -11
  26. package/dist/assets/{BillPayPromoPage-DvBp9dFZ-Ck3Ntivw.js → BillPayPromoPage-DGyWwW1t-B2E2k4g7.js} +32 -32
  27. package/dist/assets/{BillPaySetUpPage-D7335PCo-DjOfSrPK.js → BillPaySetUpPage-UfM6FOqW-wZRanfNP.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-PsWVXatK-GSxyAYxr.js → BillingSettingsPage-BfMIxeqM-C_WtlbYK.js} +5 -5
  29. package/dist/assets/{BillsBulkReviewDrawerPage-Dkq-bCpf-Dsb-J7KQ.js → BillsBulkReviewDrawerPage-DhoLC2aT-Cih70QQk.js} +1 -1
  30. package/dist/assets/{BoxItem-Bf9DDBGl-CQKtUhxk.js → BoxItem-CIOib-WX-Cvut8WLk.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-DZpS0b_1-CT7CCzj9.js → BusinessVerificationPage-Czf-y16x-BBZA7C_w.js} +14 -14
  32. package/dist/assets/{CardNumberSubText-8FNDlBHV-CNyFCSaC.js → CardNumberSubText-B8CivrXd-CzHZkmhR.js} +2 -2
  33. package/dist/assets/{CashbackDetailPage-CUc07auE-C19Doku1.js → CashbackDetailPage-BOTxd8DW-CNmZsYqR.js} +17 -17
  34. package/dist/assets/{ChargeCardDetailPage-D84v0WwQ-DhVPYQn7.js → ChargeCardDetailPage-DbtvRfDc-CRGJceoy.js} +40 -40
  35. package/dist/assets/{ChargeCardListPage-BFssQAQg-DEX46cKA.js → ChargeCardListPage-Q1zat_TQ-BbazZeau.js} +18 -18
  36. package/dist/assets/{ChargeCardListTable-BuI0T0Bn-D8Xh4Bma.js → ChargeCardListTable-CKH-EZW4-CiPC1KQt.js} +28 -28
  37. package/dist/assets/{ChargeCardPromoPage-CRqyciNL-BVrnHPJ6.js → ChargeCardPromoPage-BRkny-dl-BA8MhBiS.js} +30 -30
  38. package/dist/assets/ChargeCardSetupPage-DM15gWD1-rI_IQnGw.js +36 -0
  39. package/dist/assets/{ChargeCardStatementsPage-BtImi0Pc-o0pjefqQ.js → ChargeCardStatementsPage-xedf3XEE-CzGfRvhd.js} +7 -7
  40. package/dist/assets/{ChargeCardUtils-DQztOSYJ-CLG3pIYt.js → ChargeCardUtils-D4KmVUMt-Bgc7_40s.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-BaGgoJZk-DWWls_0t.js → ChaseOverlay-IbWtzNzT-CiTCJc7A.js} +10 -10
  42. package/dist/assets/{CheckDepositDrawerPage-90KwCes_-CnbI6CmC.js → CheckDepositDrawerPage-BCIvt4pQ-BUO3GGvc.js} +6 -6
  43. package/dist/assets/{CollapsableReportTable-dCUjgg1X-Djm0gH1n.js → CollapsableReportTable-jOFcWQi9-BD7j44zD.js} +109 -109
  44. package/dist/assets/{CompanyOfficerDetailsSection-B5d06n1B-D-gHI0TC.js → CompanyOfficerDetailsSection-DMCZTk1e-CevbfEQw.js} +20 -20
  45. package/dist/assets/{CompanyPassportCard-BOuhptIV-BgTFJUhX.js → CompanyPassportCard-BbJLMFqe-CAuk2TxY.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-CPxR1IKu-C3d76QPp.js → CompanyPassportPage-BwCMcjB9-C5l65FSQ.js} +25 -25
  47. package/dist/assets/{CompleteProfile-BIN-sI3M-DNy4fSuu.js → CompleteProfile-Dz4laW45-D0LCAfKu.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-nTrV9Xfw-Dk9LJSUX.js → ConfettiBurst-B2j3QxzW-BoOT7g5H.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-CQH4Gfy0-1OZpFxN1.js → CreateOrEditVendorPage-z2chPZUl-moxdaTde.js} +12 -12
  50. package/dist/assets/{CreditCardPaymentDrawerPage-C3PvfNmm-DcQwewDZ.js → CreditCardPaymentDrawerPage-Z9RiL1h7-BimNMSu_.js} +17 -17
  51. package/dist/assets/{CreditCardPaymentPlgSection-Cz-CSdKg-DXgZPZoJ.js → CreditCardPaymentPlgSection-Cg-oo7DU-CbeaX1ko.js} +10 -10
  52. package/dist/assets/{CurrencySelectField-ltt1zExP-DAkE7-Ko.js → CurrencySelectField-CxNprN2u-CPSD5Bje.js} +2 -2
  53. package/dist/assets/{CustomerOnboardingActivationPage-Cst56yLP-B_YzYJ6X.js → CustomerOnboardingActivationPage-diAJ07bX-sBysngto.js} +4 -4
  54. package/dist/assets/CustomerOnboardingContainerPage-BZzvupuA-CSzku5k4.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-H59MLCwU-BgPsJzDd.js → CustomerOnboardingDetailPageSkeleton--8DBjaCm-B9kNPkv6.js} +11 -11
  56. package/dist/assets/CustomerOnboardingNoStepsPage-Ccq8kI-v-D3QEvGB2.js +66 -0
  57. package/dist/assets/{CustomerOnboardingPage-1o2R-ghV-Dhqb3SU1.js → CustomerOnboardingPage-s3GNwP8c-p7WLMkGR.js} +6 -6
  58. package/dist/assets/CustomerOnboardingProductSuitePage-C-tToXNK-4Ab_CkNQ.js +202 -0
  59. package/dist/assets/{Dashboard-CptSiho6-BwvD4p7k.js → Dashboard-BtcnzaY6-gJck50nw.js} +230 -230
  60. package/dist/assets/{DashboardReportPage-G32NOQFe-CKy1nC1v.js → DashboardReportPage-C6jLfLtF-BPfMWD5H.js} +9 -8
  61. package/dist/assets/DashboardSidebarBackgroundAnimation-s8Nl8CmH-Dm61fSUI.js +12 -0
  62. package/dist/assets/{DepositAccTransactionItem-CQX9MBK--CWCsAg_Q.js → DepositAccTransactionItem-Bm63W_1e-5FIgWMcL.js} +1 -1
  63. package/dist/assets/DepositAccTransactionListPage-D4QcTw4n-1uhB2yjw.js +66 -0
  64. package/dist/assets/{DomesticWireDetailsPage-Bgm_YYHM-DgP66AFx.js → DomesticWireDetailsPage-DX0BA5i3-Ea2aCTYV.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DN4zwFl5-BEzbatXT.js → DownloadOverlay-BcH72YTL-B8MaexAj.js} +1 -1
  66. package/dist/assets/{DrawerPage-B-jrvyA1-CKA5TJxq.js → DrawerPage-CzHhh0IP-BIFSEwpr.js} +10 -10
  67. package/dist/assets/{EditPeoplePage-BTXEd5bm-_7IRpStx.js → EditPeoplePage-Z5btEDax-BKTta_xp.js} +7 -7
  68. package/dist/assets/{EditReimbursementDetailPage-5-BeM3DC-Dvvb6wio.js → EditReimbursementDetailPage-D_FsqRgU-DhM4BWkK.js} +74 -74
  69. package/dist/assets/{EntityDetailPage-CCTwe1iu-C-sJ83i-.js → EntityDetailPage-Bc4YVpPC-DWs1zPrx.js} +3 -3
  70. package/dist/assets/{EntitySummarySection-B7uoP2ou-CTFdZL_q.js → EntitySummarySection-Ba6AWxNi-BdQCQZ3F.js} +4 -4
  71. package/dist/assets/ExpenseAutomationOverviewPage-Cg0sM_PI-vkhdPOgy.js +222 -0
  72. package/dist/assets/{ExpenseAutomationPage-o8ox1q0R-CHZ8rQmT.js → ExpenseAutomationPage-EjI20a6v-rIac0d4o.js} +90 -90
  73. package/dist/assets/{ExpressPayPage-BdUERste-DCzQgqA4.js → ExpressPayPage-562vstqT-BTrZQzDN.js} +10 -10
  74. package/dist/assets/{FeaturePreviewPage-B6_exSoS-BqYYdx51.js → FeaturePreviewPage-eUvRNjsx-D93wu9_Y.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-BoA-EzkO-d1Bp0uLs.js → FollowStepsSection-D60JM8h_-WgnL9DSD.js} +11 -11
  76. package/dist/assets/{GlobalReviewListPage-CYjobk5Y-BAd8-MIV.js → GlobalReviewListPage-BpXEtrb4-CJJjyGfo.js} +6 -6
  77. package/dist/assets/HelpButton-hflpTkYP-BxxKYxfC.js +28 -0
  78. package/dist/assets/{InformationCardStack-Dvu4sQsc-C3V_rhfP.js → InformationCardStack-BsxmscQq-CSrArWRb.js} +3 -3
  79. package/dist/assets/{InsightsCardStack-DffcRWuM-DdMPB19q.js → InsightsCardStack-5JDl2mCA-CZ5TshWK.js} +7 -7
  80. package/dist/assets/{InsightsSection-C8Oi6wcZ-BTvSiRSk.js → InsightsSection-DsO5tfQL-CBUNqXt7.js} +4 -4
  81. package/dist/assets/{IntegrationsSettingsPage-C0VZQfG_-DdjKQOAK.js → IntegrationsSettingsPage-MQDeidS6-BKVTNE0x.js} +6 -6
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-SAcvo9BB-DcOwGqfC.js → InternationalWireSwiftDetailsPage-CpT4WPn3-b0nQCCWc.js} +14 -14
  83. package/dist/assets/{InternationalWireVerificationPage-8Ff3v4gu-Cv5Opxe0.js → InternationalWireVerificationPage-DlBFLwxy-BIViCBlF.js} +5 -5
  84. package/dist/assets/InviteFormPage-D0QCEMkX-DZr12vmY.js +312 -0
  85. package/dist/assets/{InvitePageListView-DG91-L1w-Ccb2SPnd.js → InvitePageListView-CVf8HrhY-cBhycZNO.js} +24 -24
  86. package/dist/assets/{InvitePeoplePage-6ANmf4z2-Gjpd5Nlk.js → InvitePeoplePage-Dg7iuq2i-Cx5QFhMU.js} +4 -4
  87. package/dist/assets/{InvoiceUploadSection-C4O7GGrv-DmRrXww6.js → InvoiceUploadSection-BuwWumE2-CTijWOqK.js} +5 -5
  88. package/dist/assets/{IssueChargeCardPage-gohjPIRu-CyjyM7F6.js → IssueChargeCardPage-DL23WAiQ-CCNHr1-9.js} +26 -26
  89. package/dist/assets/{LabeledAddressValue-C6EUPzNB-QLBvt6jx.js → LabeledAddressValue-CnL_9Mgq-C1-zs_ut.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-DLou-2Lm-30_LmoCw.js +45 -0
  91. package/dist/assets/{LabeledControlledCheckBoxField-TB_2rc3R-D1lghLfJ.js → LabeledControlledCheckBoxField-DqrqiFhz-GyWAbp3D.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-CdgNcgTu-BM53pRh3.js → LabeledCreatableSingleSelectField-CxnC4AFe-BOkJ5-5r.js} +8 -8
  93. package/dist/assets/{LabeledDocumentField-CzTqgS97-DgW-cOWG.js → LabeledDocumentField-By7zV2VD-Deh87JH9.js} +4 -4
  94. package/dist/assets/{LabeledDropDownFormattedTextField-CVzL0J5a-CG2mVZcx.js → LabeledDropDownFormattedTextField-BF37XlAJ-B3ToXjDJ.js} +6 -6
  95. package/dist/assets/{LabeledText-BICN3vpf-j9xXYGac.js → LabeledText-D4fC1Hz2-Cxv5m94v.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-VeWNep8c-5ZbgY5UP.js → LabeledUserSingleSelectWithSubtitlesField-DMxSLbjX-B9c0Mx1N.js} +7 -7
  97. package/dist/assets/{LabeledZeniRolesDropDownField--Jr1KizL-C9drclxV.js → LabeledZeniRolesDropDownField-CTA3JLz4-D4MXXizm.js} +17 -17
  98. package/dist/assets/{LinkJETransactionPage-BNWOmBHj-7bLiUwjm.js → LinkJETransactionPage-CLAyFAJh-Dm40KZjj.js} +5 -5
  99. package/dist/assets/{LowBalancePopup-Dhrtsv_E-CHi-1sQp.js → LowBalancePopup-TCSP5zrD-BmN6CG0D.js} +7 -7
  100. package/dist/assets/{MagicLinkACHDetailsPage-Brt9q6YZ-BF1Po-XI.js → MagicLinkACHDetailsPage-C9sNEDPT-D6e_XUAG.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CkSEgmKP-CnsVUDeG.js → MagicLinkDomesticWireDetailsPage-D4C-a5QY-DOB7ds5g.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-CqYC7uu7-CBxvvvyS.js → MagicLinkInternationalWireDetailsPage-oKAXWkRz-ICvIdgn3.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-VR-HSAYZ-ekYBsb2w.js → MagicLinkSuccessPage-DTKe1Hxk-D3l_qzGn.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-T6m2zH4A-BfT3nCUx.js → MagicLinkTitleSection-BZ9PbTY5-DGA-Kfl0.js} +4 -4
  105. package/dist/assets/{MailingDetailsSection-B6ZCAac5-cPG_LVX_.js → MailingDetailsSection-DOuPh_kK-CJdFvtR9.js} +6 -6
  106. package/dist/assets/{MeetingCalenderPopup-CgzTeE14-B1g5YUjL.js → MeetingCalenderPopup-Bn5picNg-BZadZTcq.js} +1 -1
  107. package/dist/assets/{Menu-DOJJ_REW-BCRwc2vM.js → Menu-D_vf2LDo-39KwK8wM.js} +3 -3
  108. package/dist/assets/{MyBankConnectionsSettingsPage-C_NrRV7T-Q0JyO2hZ.js → MyBankConnectionsSettingsPage-DJZVD_j4-CYkcPYeU.js} +14 -14
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-CNHCZPs--CWT-l6Ro.js → MyPendingActivationChargeCardListPage-DyhXBMCi-DtFEW_4I.js} +1 -1
  110. package/dist/assets/{MyProfileSettingsPage-CIfFufvo-DTHqDNHT.js → MyProfileSettingsPage-gPNoKP10-gCIICwqR.js} +10 -10
  111. package/dist/assets/{NavBarWithPicker-CvhnGryh-DdhjHjGJ.js → NavBarWithPicker-BlYfbDi0-BiD5rNBH.js} +5 -5
  112. package/dist/assets/{NavigationArrow-CXkUidH6-2_3iCUtc.js → NavigationArrow-CQ_K0Bon-C-8VFiTg.js} +1 -1
  113. package/dist/assets/{NavigationDots-hBq7kHVj-BCo98sBw.js → NavigationDots-CI0cjpQA-B6oVaxeu.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-DORHvz4D-BRtrbYV8.js → NewGlobalMerchantPage-BHQiRWO8-or4Uc_HY.js} +6 -6
  115. package/dist/assets/{NoDataChart-C4KqN3ua-9QC86ow3.js → NoDataChart-Dg1_sU_O-flEThGvM.js} +1 -1
  116. package/dist/assets/{NoDataTable-DaX07HI0-DUwVgUQv.js → NoDataTable-qTYBbL2H-BGrSHe_q.js} +1 -1
  117. package/dist/assets/{NotFoundPage-BIh20jzm-sVTg_rO_.js → NotFoundPage-DYjrSF7l-D7C6Z_Gh.js} +1 -1
  118. package/dist/assets/{NotificationSettingsPage-gU3g8rJ2-Dg6_eEe0.js → NotificationSettingsPage-DZHlnrbH-D8paihJx.js} +13 -13
  119. package/dist/assets/NotificationsListConfig-BSBZHM3y-CGdVXHfi.js +1 -0
  120. package/dist/assets/{NotificationsPage-oy3LHVU2-JTZhFwYV.js → NotificationsPage-QgnztPHs-CnFUIBHp.js} +35 -35
  121. package/dist/assets/{OpExByVendorPage-D8jXzTd6-OW9DyZtS.js → OpExByVendorPage-_AMvFFwS-DGSt9CNm.js} +7 -7
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-BNCWaeLU.js → OverlayContainerPage-Bmu909Fo-CI9x-FUu.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-BQW2_QDB-jLVVbQw5.js → PandLWithForecastPage-D_3EfFjd-JoBuR2Ry.js} +10 -10
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CY9QJXXs-DuCBh-5g.js → PaymentAccountSetupBillingAddressSection-Ch5yJBuG-Czoqfz5V.js} +5 -5
  125. package/dist/assets/{PeoplePage-B7s3mjRX-C_HkK47k.js → PeoplePage-DZr3Lusf-M76DhnJE.js} +23 -23
  126. package/dist/assets/PortfolioAllocationFormPage-Byu_8Js7-CWAHnet9.js +207 -0
  127. package/dist/assets/{PortfolioDetails-BFqRNjFs-B16IZ_Hj.js → PortfolioDetails-BH-sfG9j-CdKUfZw3.js} +19 -19
  128. package/dist/assets/{ProductsCarousel-BaTq9uMB-BdtwLLGf.js → ProductsCarousel-C4J19mb--DcgR5jdw.js} +5 -5
  129. package/dist/assets/{PromoBaseCards-Bf3Dizji-CUuhVAFC.js → PromoBaseCards-Bj4SLu8_-CC7a127A.js} +7 -7
  130. package/dist/assets/{QBOConnectionDialog-DhOSSZ5O-Cmx6oO5C.js → QBOConnectionDialog-Bx6ZDEvY-BRYqXjwh.js} +7 -7
  131. package/dist/assets/{QBOSetupSection-BWJoUKzu-D4FI2JWK.js → QBOSetupSection-BCdoUjwK-BF2gwacX.js} +9 -9
  132. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CiebC6vq-7wS_9PV2.js → ReimbursementApprovalRuleDetailPage-DsTMXav9-B1Ngpniy.js} +2 -2
  133. package/dist/assets/{ReimbursementApprovalRulesPage-gKLkrIyV-Ct61U8sq.js → ReimbursementApprovalRulesPage-CJLcH9Ov--aMB2wIm.js} +9 -9
  134. package/dist/assets/{ReimbursementDetailPage-BF4vlfIm-CveG64HT.js → ReimbursementDetailPage-Ctgt3Dcz-Bah5s5HT.js} +11 -11
  135. package/dist/assets/{ReimbursementPromoPage-BFwztEak-DRUSiKPZ.js → ReimbursementPromoPage-DCmevd5G-RVnIiUe8.js} +14 -14
  136. package/dist/assets/{ReimbursementSetUpPage-D1AVnqd4-Bl9OuMjF.js → ReimbursementSetUpPage-Dc9xJUbM-BRgUtgcr.js} +4 -4
  137. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BsqdpOS_-C8Evgmpl.js → ReimbursementsBulkReviewDrawerPage-CKjHGxjw-DAh9TKrH.js} +1 -1
  138. package/dist/assets/{ReloadCard-BmYf1NZf-CKjtyagc.js → ReloadCard-DxJMY9If-DFVN_BWj.js} +1 -1
  139. package/dist/assets/{ReportTableViewSelector-yTxheyC3-DiW7eeSj.js → ReportTableViewSelector-lMBROmrI-C57N0Ev_.js} +11 -11
  140. package/dist/assets/{ReportsPage-DZtCp9CP-CW3zHRvy.js → ReportsPage-DMYLnwc7-C986BuH8.js} +10 -10
  141. package/dist/assets/{RevenueChart-CXSh5l_p-Cvtb1pE9.js → RevenueChart-DD8vb3zi-DI64DZjn.js} +1 -1
  142. package/dist/assets/ReviewDetailsPage-C-6hNb3q-Bs8iB-Q6.js +290 -0
  143. package/dist/assets/{ReviewOverlay-B2jf6tfG-DrMTBexr.js → ReviewOverlay-sqbjCjkE-BYmWnWTV.js} +10 -10
  144. package/dist/assets/{RoleWithToolTip-DHdLJcWR-BIiBiCaf.js → RoleWithToolTip-BpMhPbAJ-D4xuhbtR.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CY0i2n7i-Dy9Fl63v.js → ScheduleDetailsFixedAssetsPage-D1uRcS4p-n5wC_akR.js} +8 -8
  146. package/dist/assets/{ScheduleDetailsPage-CVh8-Sc9-BWH1TrGv.js → ScheduleDetailsPage-D8Cvxd7m-bSm3GRae.js} +4 -4
  147. package/dist/assets/{ScheduleSequenceTable-8qqeMhAk-DxeA_i7k.js → ScheduleSequenceTable-CvqXlh31-iJzQjEX9.js} +50 -50
  148. package/dist/assets/{ScreenRoutes-Dmbs-WC7.js → ScreenRoutes-CG3ALmQe.js} +1 -1
  149. package/dist/assets/SetUpAccountSection-CDXmRiGQ-DykmFmYq.js +378 -0
  150. package/dist/assets/{SetUpDefaultSection-BM57n5BV-DVG6pZDR.js → SetUpDefaultSection-VPie4JZS-CUUkgLvy.js} +6 -6
  151. package/dist/assets/SignIn-9DfCxy9Q-D5TOW1KJ.js +407 -0
  152. package/dist/assets/{SignInScreen-D9xxiCVL.js → SignInScreen-C5ZC9m_8.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-BphSarNr-Cl92vHkt.js → SpendManagementListViewPage-Q5bQb3hk-BwLto-DN.js} +4 -4
  154. package/dist/assets/{SpendManagementPerTabPage-DCkS4HuZ-BBuwXYWk.js → SpendManagementPerTabPage-CD-kDdxa-BPnAzojr.js} +26 -26
  155. package/dist/assets/{SpendManagementSection-DKqHikhq-hB-bTkoV.js → SpendManagementSection-DGGOMGEz-BERrqLUW.js} +6 -6
  156. package/dist/assets/{SpendMgmtSetupAccountSection-BF7bb5O_-CZUZZ_7E.js → SpendMgmtSetupAccountSection-CjqaRCUW-DdnBx9W6.js} +21 -21
  157. package/dist/assets/{StatementItem-Ki_Mzpf9-FWP9W3D7.js → StatementItem-1vBLASxl-Bg-WCzCW.js} +4 -4
  158. package/dist/assets/{StatementsPage-B6XMWWpt-CfSSyoxA.js → StatementsPage-cCluGN33-CUSb15rA.js} +1 -1
  159. package/dist/assets/{StatusSwitcher-BkAnAbyd-DhZFTaVL.js → StatusSwitcher-efLzDuyw-yZjEoNnl.js} +2 -2
  160. package/dist/assets/{SubTabSwitcher-Au3snima-KoDMUDJP.js → SubTabSwitcher-BfYlJKJ6-0yeg6J8n.js} +1 -1
  161. package/dist/assets/{SummaryCard-B-IXQpJ7-Bb42YLKq.js → SummaryCard-BsPejHZG-DSp7yYcI.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-BPNEy-p0-BA-MVkpi.js → TaskManagementPage-CkdITpbn-BnN3mtBv.js} +31 -31
  163. package/dist/assets/{TimeRangeSwitcher-DpDC0FGn-BeYaJEn7.js → TimeRangeSwitcher-DVB0vP5W-Bka-ygDj.js} +5 -5
  164. package/dist/assets/{TimeframeSwitcher-D1cuigpc-Cz5nqZB9.js → TimeframeSwitcher-BmhH741X-Bq2UrAGM.js} +2 -2
  165. package/dist/assets/{TimeframeSwitcherWithToggle-_2U17Wg0-DGs87cY3.js → TimeframeSwitcherWithToggle-B1bMIGal-PXrqXkjU.js} +1 -1
  166. package/dist/assets/{TopExCard-BWOozDK3-DDnX9T6b.js → TopExCard-DBuo1QUF-Bqy_yS0O.js} +6 -6
  167. package/dist/assets/{TopExDetailPage-DpYLakrO-DvZBg7fP.js → TopExDetailPage-CGPgaWRb-BefBmW9C.js} +20 -20
  168. package/dist/assets/TransactionDetailPage-BUP-dxVE-Bluz2ZEA.js +912 -0
  169. package/dist/assets/TransactionList-DP9cEVya-Dnf5dIML.js +147 -0
  170. package/dist/assets/{TransactionListBig-CefZbd83-DMzncjPA.js → TransactionListBig-B_s15U1P-DxO9dvuT.js} +15 -15
  171. package/dist/assets/{TransactionListPage-CM319tsV-zDExAxeI.js → TransactionListPage-DpYLFl8A-CtiLL9up.js} +6 -6
  172. package/dist/assets/{TransactionVendorDetailPage-Z7O-juRN-BW7z7Azf.js → TransactionVendorDetailPage-DqqSV533-DMSzEnyq.js} +4 -4
  173. package/dist/assets/{TransferDrawerPage-0vQtF6ID-D9OzOZ5A.js → TransferDrawerPage-CxdQzo0m-DrhEn9ys.js} +79 -79
  174. package/dist/assets/{TreasuryOverviewPage-DaCuL9FX-DYMVFkUe.js → TreasuryOverviewPage-D7vqj60i-DA26_cse.js} +22 -22
  175. package/dist/assets/{TreasuryPromoPage-BQ6Cuqoa-BaiGRfzl.js → TreasuryPromoPage-BuxEHMpT-BDwacXK1.js} +12 -12
  176. package/dist/assets/{TreasurySetupPage-BJRBNCvY-D5jIb5sO.js → TreasurySetupPage-BIfbbeL3-V_YXLN-n.js} +4 -4
  177. package/dist/assets/{TreasuryStatementsPage-z6cg-MO_-CmmWNkYy.js → TreasuryStatementsPage-BeUdQZBc-XNPULVYt.js} +1 -1
  178. package/dist/assets/{TreasuryTaxLetterPage-DP-c4Sqo-C_l8Gxih.js → TreasuryTaxLetterPage-uFRMjqLn-CGfm28c4.js} +1 -1
  179. package/dist/assets/{TreasuryTransferOrReviewPage-BGfIlPXx-BehP5Xwy.js → TreasuryTransferOrReviewPage-BWybwqhc-Cp5gifXq.js} +27 -27
  180. package/dist/assets/{TrendChart-BAMRDfp7-C3XYi6nw.js → TrendChart-7kPgcETh-CZhHOMVt.js} +4 -4
  181. package/dist/assets/{TrendWithTransactions-CgbouMHP-DZBB4tt9.js → TrendWithTransactions-DPby1I5u-yXfJ3Iyk.js} +8 -8
  182. package/dist/assets/{UncategorizedAccountsMappingPage-DUVjNpg2-BHgtmgBi.js → UncategorizedAccountsMappingPage-DEkSWWRY-BWS3cZYH.js} +11 -11
  183. package/dist/assets/{UnitIntegrationPage-DSWbn8gm-B4Ou25f_.js → UnitIntegrationPage-B5yzIJDg-DXMgkfWr.js} +3 -3
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-BFn9gixM-BNf1qOT4.js → UploadAdditionalDocumentOverlay-Deu0hM2I-3QkNgcQ9.js} +8 -8
  185. package/dist/assets/{Vendor2FAPopup-CA-cVVNX-if5nT9kw.js → Vendor2FAPopup-DUyiI_-r-CLW3sS1X.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-Hdw6gHNB-Dbljblmv.js → VendorACHDetailsPage-DycUU3MN-Bh437Vzf.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-CceVHonS-Pq3jkMrt.js → VendorDetailPage-B9pWIvXP-p9O1B1Vq.js} +21 -21
  188. package/dist/assets/{VendorDomesticWireDetailsPage-ChF-hj1o-BZmPD8iA.js → VendorDomesticWireDetailsPage-Cs35uQOp-DDOAIhlv.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-BnMmu8g4-BrMoF3qX.js → VendorFiling1099EditablePage-BeuSWFCY-Ca6Gux7v.js} +11 -11
  190. package/dist/assets/{VendorFirstReviewPage-C9LNBxKs-F-MIWQgi.js → VendorFirstReviewPage-ANhBsl69-D02KU5IA.js} +63 -63
  191. package/dist/assets/{VendorInternationalWireDetailsPage-B8F_1TYL-Bsx2kP_t.js → VendorInternationalWireDetailsPage-BShiEKaz-BZSIpE6n.js} +31 -31
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-HuCjhvn4-Cqo_E_R0.js → VendorInternationalWireSwiftDetailsPage-B_NlK1ak-UtHTf4LD.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-Cj3NFdKN-CZGZ3lbp.js → VendorsAccountsSection-BclWgEaB-DOMr50bF.js} +4 -4
  194. package/dist/assets/VerifyDevice-CRrOo66b-ZlA7gEbg.js +97 -0
  195. package/dist/assets/{VideoPopup-0LSxcyRX-Dg1obuHI.js → VideoPopup-qS-ig_U0-VKyag34q.js} +3 -3
  196. package/dist/assets/{WarningsDrawerPage-DR9oeIuj-BGAzKYV3.js → WarningsDrawerPage-DgRtxLoa-C9d8WcDP.js} +2 -2
  197. package/dist/assets/{ZeniAccountDetailPage-DHl0vyQ0-QUKSLtDI.js → ZeniAccountDetailPage-B66nIr0V-6bf8tksW.js} +21 -21
  198. package/dist/assets/{ZeniAccountListViewPage-BC1yUQbd-DvE1_-3Q.js → ZeniAccountListViewPage-CWhZKmoP-42K6r0wR.js} +10 -10
  199. package/dist/assets/{ZeniAccountNavBarPieces-CpKh4Vxw-C7ZAIazr.js → ZeniAccountNavBarPieces-C6MQhfnU-CnbDnx7e.js} +2 -2
  200. package/dist/assets/{ZeniAccountPromoPage-BaRzPlIW-KoQmtnm_.js → ZeniAccountPromoPage-C-oF3-HO-DisOzRKq.js} +16 -16
  201. package/dist/assets/{ZeniAccountSetupPage-CveI2__B-D63zX7um.js → ZeniAccountSetupPage-DY-nCuiT-B3gBHMad.js} +4 -4
  202. package/dist/assets/{ZeniCopyright-D6e3OekQ-DUr2raAa.js → ZeniCopyright-rY1T9xhh-Dfov-yky.js} +1 -1
  203. package/dist/assets/{ZeniTransferAmountSlider-BqyHxYBn-BeVNGkCh.js → ZeniTransferAmountSlider-Bh5zkWst-Bed32C-4.js} +1 -1
  204. package/dist/assets/analytics-B3n5JGPc.js +7 -0
  205. package/dist/assets/{analyticsHelper-kBY_WnuZ.js → analyticsHelper-B0L0ncmN.js} +1 -1
  206. package/dist/assets/{analyticsHelper-CYiy63P3-ZsDfu10l.js → analyticsHelper-BcJgRhqY-D6z677ff.js} +1 -1
  207. package/dist/assets/chartTypes-BoblEsVF-BVffEXCf.js +1 -0
  208. package/dist/assets/{commonDimensions-DbTYS1hy-q1OJGzej.js → commonDimensions-CFd7y7qU-C7Jvc2Ks.js} +1 -1
  209. package/dist/assets/{detailCommon-BeqWtSZF-DN5q8hn4.js → detailCommon-MYixZ3RD-BFmVTLGA.js} +6 -6
  210. package/dist/assets/{downloadPdf-CLTp2aZt-ev2v3-yy.js → downloadPdf-CgupyHRa-D9AEGU0d.js} +1 -1
  211. package/dist/assets/{index-NilHeiJu.js → index-B8OsEhOZ.js} +753 -749
  212. package/dist/assets/{mapLoadingInProgressToTreeNode-Dl_IFb2l-Cq8XhJtM.js → mapLoadingInProgressToTreeNode-B8Y_euQR-DOx1e8cj.js} +1 -1
  213. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BAhSN9Et-CnYxsg0R.js → mapSectionWithAcOnlyToTreeNode-jBSc45Na-BDZbXmNV.js} +1 -1
  214. package/dist/assets/{mapSpacerToTreeNode-3b46l63c-CMjlOqUe.js → mapSpacerToTreeNode-COy8gZAM-BaCmq5hE.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-3pTXOISe-UJZDjMX_.js → mapTimeframeBalancesToTreeNode-BodkMcFj-QmE2hfm4.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-DJqcH4tL-dBteZqAP.js → mapTimeframeBalancesToTreeNode-DXla81BF-zj0mJKeb.js} +1 -1
  217. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-yhbtLbK2-B3XLpQv_.js → mapTimeframeHeaderLoadingInProgressToTreeNode-XVJ2Hm74-BHeVK-te.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-D49XFhoj-p77KsEJK.js → toCOABalancesWithID-CndsNNsv-CWYFJv_O.js} +1 -1
  219. package/dist/assets/{toChartData-C9pHl0xA-peeaxrwr.js → toChartData-B9eYLI57-CKqynvrs.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-CkjbPhqI-DTu39-tM.js → treasuryColorHelper-D4iDeX95-DVOhzALi.js} +1 -1
  221. package/dist/assets/{uploadAttachment-BniS82zn-CRjJ8eJB.js → uploadAttachment-C2I6mBBB-CPoUzWwI.js} +14 -14
  222. package/dist/assets/{uploadReceipts-dxsKhm9I-D4Vuwibk.js → uploadReceipts-dxsKhm9I-YtN4h-4H.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +4 -4
  225. package/dist/assets/ChargeCardSetupPage-BzqdaEET-DBBXZ-n5.js +0 -36
  226. package/dist/assets/CustomerOnboardingContainerPage-B9rA9JXM-BcEPhc3o.js +0 -1
  227. package/dist/assets/CustomerOnboardingNoStepsPage-B8cf9wWc-C5L0Tki4.js +0 -66
  228. package/dist/assets/CustomerOnboardingProductSuitePage-Dfv86gVc-09rPr3CW.js +0 -202
  229. package/dist/assets/DashboardSidebarBackgroundAnimation-DTkdczBR-v_i9-lwP.js +0 -12
  230. package/dist/assets/DepositAccTransactionListPage-C6lB4Qyv-CuZ8nnnO.js +0 -66
  231. package/dist/assets/ExpenseAutomationOverviewPage-Bz-2JPdW-Do3fJYNG.js +0 -222
  232. package/dist/assets/HelpButton-DEwtg0Ez-DdlPkijU.js +0 -28
  233. package/dist/assets/InviteFormPage-CRRvruND-CnzFaBAu.js +0 -312
  234. package/dist/assets/LabeledAddressValueField-CC4nYBb8-CaZARfW3.js +0 -45
  235. package/dist/assets/NotificationsListConfig-C14JCaD1-htQ299sQ.js +0 -1
  236. package/dist/assets/PortfolioAllocationFormPage-eonsRKDg-D0R6dTFQ.js +0 -207
  237. package/dist/assets/ReviewDetailsPage-DG7ms5Hy-CwXT2Ca2.js +0 -290
  238. package/dist/assets/SetUpAccountSection-CKdSkMBO-RvUBOtno.js +0 -378
  239. package/dist/assets/SignIn-BMjCrrGx-B6jW8hme.js +0 -407
  240. package/dist/assets/TransactionDetailPage-Bxzam_ho-ytwgKMhn.js +0 -878
  241. package/dist/assets/TransactionList-CEfjoVPA-Fnrm73eH.js +0 -147
  242. package/dist/assets/VerifyDevice-dg83_W2W-db8vxgEO.js +0 -96
  243. package/dist/assets/analytics-CBL_L82S.js +0 -7
  244. package/dist/assets/chartTypes-sx4859ds-DQIhaauj.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as t,fE as ne,o as i,bf as se,M as I,a5 as re,u as Y,e as J,a as le,c9 as ae,l as P,aW as ce,F as de,b as w,a3 as pe,C as B,f9 as me,fF as ue,eG as he,fG as fe,fH as ge,ae as xe,q as S,an as K,i as Q,n as X,B as $e}from"./index-NilHeiJu.js";import{n as o,b as E}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const{common:be}=I.getLocalizedStrings(),U={notePadding:new B(S[3],S[4]),noteGap:new B(S[0],6)},M=(e,n)=>`${e}.${n}`,ye=o.div`
1
+ import{j as t,fE as ne,o as i,bg as se,M as I,a6 as re,u as X,e as Y,a as le,ca as ae,m as P,aX as ce,F as de,b as w,a4 as pe,C as B,f9 as me,fF as ue,eG as he,fG as fe,fH as ge,af as xe,s as S,ao as J,i as K,p as Q,B as $e}from"./index-B8OsEhOZ.js";import{n as o,b as E}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const{common:be}=I.getLocalizedStrings(),U={notePadding:new B(S[3],S[4]),noteGap:new B(S[0],6)},M=(e,n)=>`${e}.${n}`,ye=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${i.sp3};
@@ -6,7 +6,7 @@ import{j as t,fE as ne,o as i,bf as se,M as I,a5 as re,u as Y,e as J,a as le,c9
6
6
  display: flex;
7
7
  justify-content: space-between;
8
8
  align-items: center;
9
- `,we=o(K)`
9
+ `,we=o(J)`
10
10
  color: ${e=>e.theme.colors.primary};
11
11
  `,Se=o.div`
12
12
  border-radius: ${i.sp2};
@@ -55,11 +55,11 @@ import{j as t,fE as ne,o as i,bf as se,M as I,a5 as re,u as Y,e as J,a as le,c9
55
55
  color: ${e=>e.theme.colors.primary};
56
56
  }
57
57
  }
58
- `,A=o.div`
58
+ `,F=o.div`
59
59
  flex: 1;
60
- `,F=o(X)`
60
+ `,A=o(Q)`
61
61
  color: ${e=>e.theme.colors.hero};
62
- `,Ee=o(Q)`
62
+ `,Ee=o(K)`
63
63
  color: ${e=>e.theme.colors.primary};
64
64
  flex: 1;
65
65
  width: 120px;
@@ -74,7 +74,7 @@ import{j as t,fE as ne,o as i,bf as se,M as I,a5 as re,u as Y,e as J,a as le,c9
74
74
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
75
75
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
76
76
  gap: ${e=>U.noteGap.valuePx(e.windowSize)};
77
- `,Ce=o.div``,Pe=o.span``;function Oe({sectionId:e,monthEndInsightsNotificationLocalData:n,monthEndInsightsNotificationSettings:s,managersList:a,allUsers:f,classList:m,controllersList:x}){const u=Y(),c=J(),{sectionTitle:$,monthEndInsights:l,mode:b}=be.settings.notifications,h=x[0],O=x.slice(1).reduce((d,r)=>d.concat(`${r.email},`),"");return t.jsxs(ye,{children:[t.jsxs(je,{children:[t.jsx(we,{children:$.monthEndInsights}),t.jsx(Ce,{children:t.jsx(Ee,{children:b.email})})]}),t.jsxs(Se,{children:[t.jsxs(ve,{disabled:s.enabled==null,children:[t.jsx(F,{children:l.labels.notifyMe}),t.jsx(he,{defaultChecked:n.notify,checkBoxValue:M(e,"notify"),name:M(e,"notify"),checkedIconColor:s.enabled==null?u.colors.grey2:void 0})]}),t.jsx(w,{controller:s.enabled!=null,children:t.jsxs(Ie,{children:[t.jsx(A,{children:t.jsx(F,{children:l.labels.notifyOthers})}),t.jsx(A,{children:t.jsx(fe,{hideEmailTooltip:!1,showBackgroundColorIfHasAnySelectedOption:!1,shouldHaveBackgroundColor:!1,value:{allUsers:f,selectedUsers:f.filter(d=>n.recipientEmailIds.includes(d.email)),allNonUsers:[],selectedNonUsers:[]},hideMultiValueOnBlur:!1,valueToSubtitle:d=>{const r=a.findIndex(p=>p.userId===d),y=[];if(r!==-1){const p=a[r],j=ge(p.userRole.userRoles);j.length>0&&y.push(j);const N=m.find(L=>L.classId===p.userRole.accountingClassIDs[0]);return N!=null&&y.push(N.className),y}else return[]},name:M(e,"recipientEmailIds"),placeholderLabel:l.userFieldPlaceholder,customStyleConfig:{valueContainer:(d,{selectProps:r})=>({justifyContent:r.menuIsOpen===!1?"flex-end":"flex-start"}),input:(d,{selectProps:r})=>({display:r.menuIsOpen===!1?"none":"inline-grid"}),control:(d,{selectProps:r})=>({backgroundColor:r.menuIsOpen===!0?u.colors.background:"unset"}),container:(d,{selectProps:r})=>({backgroundColor:r.menuIsOpen===!0?u.colors.background:"unset"}),multiValue:(d,{selectProps:r})=>({outline:r.menuIsOpen===!1?"unset":`1px solid ${u.colors.primary}`})}})})]})}),t.jsx(w,{controller:s.enabled==null,children:t.jsxs(ke,{windowSize:c,children:[l.stopReceivingEmailsText,h?t.jsxs(Ne,{href:`mailto:${h.email}?cc=${O}&subject=${encodeURIComponent(l.stopReceivingMonthEndInsightsSubject)}`,children:[t.jsx(Pe,{children:`${h.firstName} ${h.lastName}`}),t.jsx(xe,{className:"arrowIcon"})]}):null]})})]})]})}const q=(e,n,s)=>`${e}.${n}.${s}`,Le=o.div`
77
+ `,Ce=o.div``,Pe=o.span``;function Oe({sectionId:e,monthEndInsightsNotificationLocalData:n,monthEndInsightsNotificationSettings:s,managersList:a,allUsers:f,classList:m,controllersList:x}){const u=X(),c=Y(),{sectionTitle:$,monthEndInsights:l,mode:b}=be.settings.notifications,h=x[0],O=x.slice(1).reduce((d,r)=>d.concat(`${r.email},`),"");return t.jsxs(ye,{children:[t.jsxs(je,{children:[t.jsx(we,{children:$.monthEndInsights}),t.jsx(Ce,{children:t.jsx(Ee,{children:b.email})})]}),t.jsxs(Se,{children:[t.jsxs(ve,{disabled:s.enabled==null,children:[t.jsx(A,{children:l.labels.notifyMe}),t.jsx(he,{defaultChecked:n.notify,checkBoxValue:M(e,"notify"),name:M(e,"notify"),checkedIconColor:s.enabled==null?u.colors.grey2:void 0})]}),t.jsx(w,{controller:s.enabled!=null,children:t.jsxs(Ie,{children:[t.jsx(F,{children:t.jsx(A,{children:l.labels.notifyOthers})}),t.jsx(F,{children:t.jsx(fe,{hideEmailTooltip:!1,showBackgroundColorIfHasAnySelectedOption:!1,shouldHaveBackgroundColor:!1,value:{allUsers:f,selectedUsers:f.filter(d=>n.recipientEmailIds.includes(d.email)),allNonUsers:[],selectedNonUsers:[]},hideMultiValueOnBlur:!1,valueToSubtitle:d=>{const r=a.findIndex(p=>p.userId===d),y=[];if(r!==-1){const p=a[r],j=ge(p.userRole.userRoles);j.length>0&&y.push(j);const N=m.find(L=>L.classId===p.userRole.accountingClassIDs[0]);return N!=null&&y.push(N.className),y}else return[]},name:M(e,"recipientEmailIds"),placeholderLabel:l.userFieldPlaceholder,customStyleConfig:{valueContainer:(d,{selectProps:r})=>({justifyContent:r.menuIsOpen===!1?"flex-end":"flex-start"}),input:(d,{selectProps:r})=>({display:r.menuIsOpen===!1?"none":"inline-grid"}),control:(d,{selectProps:r})=>({backgroundColor:r.menuIsOpen===!0?u.colors.background:"unset"}),container:(d,{selectProps:r})=>({backgroundColor:r.menuIsOpen===!0?u.colors.background:"unset"}),multiValue:(d,{selectProps:r})=>({outline:r.menuIsOpen===!1?"unset":`1px solid ${u.colors.primary}`})}})})]})}),t.jsx(w,{controller:s.enabled==null,children:t.jsxs(ke,{windowSize:c,children:[l.stopReceivingEmailsText,h?t.jsxs(Ne,{href:`mailto:${h.email}?cc=${O}&subject=${encodeURIComponent(l.stopReceivingMonthEndInsightsSubject)}`,children:[t.jsx(Pe,{children:`${h.firstName} ${h.lastName}`}),t.jsx(xe,{className:"arrowIcon"})]}):null]})})]})]})}const D=(e,n,s)=>`${e}.${n}.${s}`,Le=o.div`
78
78
  display: flex;
79
79
  flex-direction: column;
80
80
  row-gap: ${i.sp3};
@@ -82,11 +82,11 @@ import{j as t,fE as ne,o as i,bf as se,M as I,a5 as re,u as Y,e as J,a as le,c9
82
82
  display: flex;
83
83
  justify-content: space-between;
84
84
  align-items: center;
85
- `,Me=o(K)`
85
+ `,Me=o(J)`
86
86
  color: ${e=>e.theme.colors.primary};
87
- `,D=o.div`
87
+ `,q=o.div`
88
88
  display: flex;
89
- `,V=o(Q)`
89
+ `,V=o(K)`
90
90
  color: ${e=>e.theme.colors.primary};
91
91
  flex: 1;
92
92
  width: 120px;
@@ -98,13 +98,13 @@ import{j as t,fE as ne,o as i,bf as se,M as I,a5 as re,u as Y,e as J,a as le,c9
98
98
  width: 120px;
99
99
  display: flex;
100
100
  padding-right: 12px;
101
- `,Te=o(X)`
101
+ `,Te=o(Q)`
102
102
  color: ${e=>e.theme.colors.hero};
103
103
  `,Ue=o.div`
104
104
  border-radius: ${i.sp2};
105
105
  border: 1px solid ${e=>e.theme.colors.grey3};
106
106
  box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
107
- `,Ae=o.div`
107
+ `,Fe=o.div`
108
108
  display: flex;
109
109
  justify-content: space-between;
110
110
  align-items: center;
@@ -118,7 +118,7 @@ import{j as t,fE as ne,o as i,bf as se,M as I,a5 as re,u as Y,e as J,a as le,c9
118
118
  border-bottom-left-radius: ${e=>e.lastElement===!0?i.sp2:i.sp0};
119
119
  border-bottom-right-radius: ${e=>e.lastElement===!0?i.sp2:i.sp0};
120
120
  }
121
- `;function Fe({sectionId:e,remindersLocalData:n,reminderNotificationSettings:s}){const{texts:a,settings:f}=I.getLocalizedStrings().common,{notifications:m}=f,x=P.NOTIFICATION_MODES.slice(0,1),u=P.REMINDER_NOTIFICATION_TYPES.filter(c=>s[c]!=null);return t.jsxs(Le,{children:[t.jsxs(Re,{children:[t.jsx(Me,{children:m.sectionTitle.reminders}),t.jsxs(D,{children:[t.jsx(V,{children:a.frequency}),t.jsx(V,{children:m.mode.email})]})]}),t.jsx(Ue,{children:u.map((c,$)=>t.jsxs(Ae,{firstElement:$===0,lastElement:$===u.length-1,children:[t.jsx(Te,{children:m.reminders[c]}),t.jsxs(D,{children:[t.jsx(Be,{children:t.jsx(me,{defaultValue:{allOptions:m.reminderFrequencyOptions,selectedOption:n[c].frequency},name:q(e,c,"frequency")})}),t.jsx(ze,{children:t.jsx(ue,{mode:"always_on",checkBoxes:x.map(l=>({label:"",value:l,defaultChecked:n[c].preferredMode.includes(l),groupLabel:!1})),name:q(e,c,"preferredMode"),style:{flexDirection:"row"},checkBoxContainerStyle:{justifyContent:"center"}})})]})]},c))})]})}const z={contentPadding:new B(S[3],S[8])},g="reminders",v="monthEndInsights",_="notificationSettingsPage",G=e=>`${e}_form`,{settings:Z,reloadPage:qe}=I.getLocalizedStrings().common,De=e=>{const n=Y(),s=J(),{notificationSettingsView:a,signedInUser:f,onFormDataChange:m,resetUpdateStatus:x,onSave:u,onCancel:c,onClickMenuIcon:$}=e,{notificationSettingsLocalData:l,allUsers:b,notificationSettings:h,classList:O,managersList:d,updateStatus:r,controllersList:y}=a,p=le({defaultValues:W(l,b)}),j=E.useCallback(R=>{m(Ye(R))},[m]),N=p.handleSubmit(()=>{u()}),L=E.useCallback(()=>{p.reset(),c()},[c]);E.useEffect(()=>{a.updateStatus.fetchState==="Completed"&&(p.reset(W(l,b)),x())},[l,a.updateStatus.fetchState,b]),E.useEffect(()=>{const R=p.watch((T,{name:oe})=>{oe!=null&&T!=null&&ae(()=>j(T))});return()=>{R.unsubscribe()}},[p,j]);const ee=Object.keys(p.formState.dirtyFields).length>0,te=f.userEmail!=null?P.isMonthEndNotificationsSectionVisibleOnSettingsPage(h.monthEndInsightsNotificationSettings,f.userEmail):!1,ie=P.isRemindersSectionVisibleOnSettingsPage(h.reminderNotificationSettings);return t.jsxs(t.Fragment,{children:[t.jsxs(Ve,{children:[t.jsx(ce,{source:"NotificationSettingsPage",title:Z.title.notifications,backgroundColor:n.colors.grey4,showBackButton:!1,showMenuIcon:s==="medium-compact"||s==="small",onClickMenuIcon:$}),t.jsx(_e,{windowSize:s,children:t.jsx(de,{...p,children:t.jsx("form",{id:G(_),onSubmit:N,children:t.jsxs(Ge,{children:[t.jsx(w,{controller:ie,children:t.jsx(Fe,{reminderNotificationSettings:h.reminderNotificationSettings,remindersLocalData:l.reminders,sectionId:g})}),t.jsx(w,{controller:te,children:t.jsx(Oe,{monthEndInsightsNotificationLocalData:l.monthEndInsights,monthEndInsightsNotificationSettings:h.monthEndInsightsNotificationSettings,sectionId:v,allUsers:b,classList:O,managersList:d,controllersList:y})})]})})})})]}),t.jsx(w,{controller:ee,children:t.jsx(pe,{style:{width:"100%"},formId:G(_),primaryBtn:{label:I.getLocalizedStrings().common.footer.save,isLoading:r.fetchState==="In-Progress",style:{width:"82px"}},cancelBtn:{label:I.getLocalizedStrings().common.footer.cancel,onClick:L,style:{width:"82px"}}})})]})};function nt(e){const{notificationSettingsView:n,onRefresh:s}=e,{fetchState:a}=n;return a==="Not-Started"||a==="In-Progress"?t.jsx(H,{children:t.jsx(ne,{fetchState:a,styles:{margin:i.sp0}})}):a==="Error"?t.jsxs(H,{children:[t.jsx(He,{onClick:s,children:t.jsx(se,{})}),t.jsx(We,{children:qe.label})]}):t.jsx(De,{...e})}const Ve=o.div`
121
+ `;function Ae({sectionId:e,remindersLocalData:n,reminderNotificationSettings:s}){const{texts:a,settings:f}=I.getLocalizedStrings().common,{notifications:m}=f,x=P.NOTIFICATION_MODES.slice(0,1),u=P.REMINDER_NOTIFICATION_TYPES.filter(c=>s[c]!=null);return t.jsxs(Le,{children:[t.jsxs(Re,{children:[t.jsx(Me,{children:m.sectionTitle.reminders}),t.jsxs(q,{children:[t.jsx(V,{children:a.frequency}),t.jsx(V,{children:m.mode.email})]})]}),t.jsx(Ue,{children:u.map((c,$)=>t.jsxs(Fe,{firstElement:$===0,lastElement:$===u.length-1,children:[t.jsx(Te,{children:m.reminders[c]}),t.jsxs(q,{children:[t.jsx(Be,{children:t.jsx(me,{defaultValue:{allOptions:m.reminderFrequencyOptions,selectedOption:n[c].frequency},name:D(e,c,"frequency")})}),t.jsx(ze,{children:t.jsx(ue,{mode:"always_on",checkBoxes:x.map(l=>({label:"",value:l,defaultChecked:n[c].preferredMode.includes(l),groupLabel:!1})),name:D(e,c,"preferredMode"),style:{flexDirection:"row"},checkBoxContainerStyle:{justifyContent:"center"}})})]})]},c))})]})}const z={contentPadding:new B(S[3],S[8])},g="reminders",v="monthEndInsights",_="notificationSettingsPage",G=e=>`${e}_form`,{settings:Z,reloadPage:De}=I.getLocalizedStrings().common,qe=e=>{const n=X(),s=Y(),{notificationSettingsView:a,signedInUser:f,onFormDataChange:m,resetUpdateStatus:x,onSave:u,onCancel:c,onClickMenuIcon:$}=e,{notificationSettingsLocalData:l,allUsers:b,notificationSettings:h,classList:O,managersList:d,updateStatus:r,controllersList:y}=a,p=le({defaultValues:W(l,b)}),j=E.useCallback(R=>{m(Xe(R))},[m]),N=p.handleSubmit(()=>{u()}),L=E.useCallback(()=>{p.reset(),c()},[c]);E.useEffect(()=>{a.updateStatus.fetchState==="Completed"&&(p.reset(W(l,b)),x())},[l,a.updateStatus.fetchState,b]),E.useEffect(()=>{const R=p.watch((T,{name:oe})=>{oe!=null&&T!=null&&ae(()=>j(T))});return()=>{R.unsubscribe()}},[p,j]);const ee=Object.keys(p.formState.dirtyFields).length>0,te=f.userEmail!=null?P.isMonthEndNotificationsSectionVisibleOnSettingsPage(h.monthEndInsightsNotificationSettings,f.userEmail):!1,ie=P.isRemindersSectionVisibleOnSettingsPage(h.reminderNotificationSettings);return t.jsxs(t.Fragment,{children:[t.jsxs(Ve,{children:[t.jsx(ce,{source:"NotificationSettingsPage",title:Z.title.notifications,backgroundColor:n.colors.grey4,showBackButton:!1,showMenuIcon:s==="medium-compact"||s==="small",onClickMenuIcon:$}),t.jsx(_e,{windowSize:s,children:t.jsx(de,{...p,children:t.jsx("form",{id:G(_),onSubmit:N,children:t.jsxs(Ge,{children:[t.jsx(w,{controller:ie,children:t.jsx(Ae,{reminderNotificationSettings:h.reminderNotificationSettings,remindersLocalData:l.reminders,sectionId:g})}),t.jsx(w,{controller:te,children:t.jsx(Oe,{monthEndInsightsNotificationLocalData:l.monthEndInsights,monthEndInsightsNotificationSettings:h.monthEndInsightsNotificationSettings,sectionId:v,allUsers:b,classList:O,managersList:d,controllersList:y})})]})})})})]}),t.jsx(w,{controller:ee,children:t.jsx(pe,{style:{width:"100%"},formId:G(_),primaryBtn:{label:I.getLocalizedStrings().common.footer.save,isLoading:r.fetchState==="In-Progress",style:{width:"82px"}},cancelBtn:{label:I.getLocalizedStrings().common.footer.cancel,onClick:L,style:{width:"82px"}}})})]})};function nt(e){const{notificationSettingsView:n,onRefresh:s}=e,{fetchState:a}=n;return a==="Not-Started"||a==="In-Progress"?t.jsx(H,{children:t.jsx(ne,{fetchState:a,styles:{margin:i.sp0}})}):a==="Error"?t.jsxs(H,{children:[t.jsx(He,{onClick:s,children:t.jsx(se,{})}),t.jsx(We,{children:De.label})]}):t.jsx(qe,{...e})}const Ve=o.div`
122
122
  display: flex;
123
123
  width: 100%;
124
124
  min-height: 100vh;
@@ -160,4 +160,4 @@ import{j as t,fE as ne,o as i,bf as se,M as I,a5 as re,u as Y,e as J,a as le,c9
160
160
  `,We=o(re)`
161
161
  margin-top: ${i.sp3};
162
162
  color: ${e=>e.theme.colors.hero};
163
- `;function k(e){const n=Z.notifications.reminderFrequencyOptions;return{preferredMode:e.preferredMode,frequency:{selectedOption:e.frequency,allOptions:n}}}function W(e,n){return{[g]:{missingReceiptNotification:k(e.reminders.missingReceiptNotification),uncategorizedTransactionNotification:k(e.reminders.uncategorizedTransactionNotification),pendingBillApprovalNotification:k(e.reminders.pendingBillApprovalNotification),pendingReimbursementApprovalNotification:k(e.reminders.pendingReimbursementApprovalNotification)},[v]:{notify:e.monthEndInsights.notify,recipientEmailIds:{allNonUsers:[],selectedNonUsers:[],allUsers:n,selectedUsers:n.filter(s=>e.monthEndInsights.recipientEmailIds.includes(s.email))}}}}function C(e){return{preferredMode:e.preferredMode,frequency:e.frequency.selectedOption}}function Ye(e){return{[g]:{missingReceiptNotification:C(e[g].missingReceiptNotification),uncategorizedTransactionNotification:C(e[g].uncategorizedTransactionNotification),pendingBillApprovalNotification:C(e[g].pendingBillApprovalNotification),pendingReimbursementApprovalNotification:C(e[g].pendingReimbursementApprovalNotification)},[v]:{...e[v],recipientEmailIds:e[v].recipientEmailIds.selectedUsers.map(n=>n.email)}}}export{nt as default,G as uniqueName};
163
+ `;function k(e){const n=Z.notifications.reminderFrequencyOptions;return{preferredMode:e.preferredMode,frequency:{selectedOption:e.frequency,allOptions:n}}}function W(e,n){return{[g]:{missingReceiptNotification:k(e.reminders.missingReceiptNotification),uncategorizedTransactionNotification:k(e.reminders.uncategorizedTransactionNotification),pendingBillApprovalNotification:k(e.reminders.pendingBillApprovalNotification),pendingReimbursementApprovalNotification:k(e.reminders.pendingReimbursementApprovalNotification)},[v]:{notify:e.monthEndInsights.notify,recipientEmailIds:{allNonUsers:[],selectedNonUsers:[],allUsers:n,selectedUsers:n.filter(s=>e.monthEndInsights.recipientEmailIds.includes(s.email))}}}}function C(e){return{preferredMode:e.preferredMode,frequency:e.frequency.selectedOption}}function Xe(e){return{[g]:{missingReceiptNotification:C(e[g].missingReceiptNotification),uncategorizedTransactionNotification:C(e[g].uncategorizedTransactionNotification),pendingBillApprovalNotification:C(e[g].pendingBillApprovalNotification),pendingReimbursementApprovalNotification:C(e[g].pendingReimbursementApprovalNotification)},[v]:{...e[v],recipientEmailIds:e[v].recipientEmailIds.selectedUsers.map(n=>n.email)}}}export{nt as default,G as uniqueName};
@@ -0,0 +1 @@
1
+ import{v as e,s as a}from"./index-B8OsEhOZ.js";const r=a[5],o=59,s=a[5],i=e.standardRegular.lineHeightValue,l=1,n=1e3;export{i as A,s as E,l as I,n as L,o as a,r as t};
@@ -1,8 +1,8 @@
1
- import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 as Xt,o as i,b as we,gt as Qt,C as R,ht as ei,v as Ne,m as ti,A as et,bR as tt,ai as it,dl as ot,bZ as st,jc as at,q as y,J as ii,jd as oi,dj as ce,ad as si,X as ai,h as rt,g as S,i as ri,bg as z,cm as he,fF as ue,je as pe,Y as nt,d5 as lt,dt as E,d3 as dt,fO as ni,n as Q,hH as li,B as H,f2 as di,a7 as ye,ao as fe,jf as ci,bd as ct,jg as Ie,aQ as hi}from"./index-NilHeiJu.js";import{b as x,n as r,j as O}from"./vendor-rkTZJa59.js";import{k as ui}from"./SubTabSwitcher-Au3snima-KoDMUDJP.js";import{d as ht}from"./useLongPress-GCK2COYQ-BoJXFS3o.js";import{A as ut,t as pt,a as ft,E as mt,L as gt,I as xt}from"./NotificationsListConfig-C14JCaD1-htQ299sQ.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";function pi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:h}){const u=v(),p=X(),m=x.useCallback(b=>{d(b.id)},[d]),f=x.useCallback(b=>{h(b.id)},[h]);return e.length===0?null:t.jsxs(fi,{windowSize:u,children:[t.jsx(ei,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${p.colors.grey3}`},onTabChange:m}),t.jsx(ui,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:f})]})}const fi=r.div`
1
+ import{u as K,e as v,a as Jt,M as P,ca as qt,j as t,aX as Xt,m as g,F as Zt,a4 as Kt,o as i,b as we,gt as Qt,C as R,ht as ei,v as Ne,n as ti,E as et,bS as tt,aj as it,dl as ot,b_ as st,jc as at,s as y,J as ii,jd as oi,dj as ce,ae as si,X as ai,h as rt,g as S,i as ri,bh as z,cn as he,fF as ue,je as pe,Y as nt,x as lt,dt as E,d4 as dt,fO as ni,p as Q,hH as li,B as H,f2 as di,a8 as ye,ap as fe,jf as ci,be as ct,jg as Ie,aR as hi}from"./index-B8OsEhOZ.js";import{b as x,n as r,j as A}from"./vendor-rkTZJa59.js";import{k as ui}from"./SubTabSwitcher-BfYlJKJ6-0yeg6J8n.js";import{d as ht}from"./useLongPress-GCK2COYQ-BoJXFS3o.js";import{A as ut,t as pt,a as ft,E as mt,L as gt,I as xt}from"./NotificationsListConfig-BSBZHM3y-CGdVXHfi.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";function pi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:h}){const u=v(),p=K(),m=x.useCallback(b=>{d(b.id)},[d]),f=x.useCallback(b=>{h(b.id)},[h]);return e.length===0?null:t.jsxs(fi,{windowSize:u,children:[t.jsx(ei,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${p.colors.grey3}`},onTabChange:m}),t.jsx(ui,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:f})]})}const fi=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
5
- `,{common:{timeStrings:bt,strings:mi},dateFormat:Te,timeFormat:gi}=P.getLocalizedStrings(),wt=["today","yesterday","last_7_days_this_month","earlier_this_month","earlier_that_month"],ne=e=>e.type.concat(mi.underscore).concat(e.start.format(Te.visual.DdashMMdashYYYYFormat)),me=e=>{switch(e.type){case"today":case"yesterday":case"earlier_this_month":case"last_7_days_this_month":return bt[e.type];case"earlier_that_month":return e.start.format(Te.visual.MMMYYYYFormat)}},yt=e=>{const o=g.zeniDate(e.toUTCString()),s=g.dateNow(),a=s.diff(o,"minutes"),n=s.diff(o,"seconds"),l=60,c=24*60;return n<=l?bt.justNow:a<c&&ci(o,0)?o.format(gi.hhmmAFormat):o.format(Te.visual.MMMDFormat)},Re=e=>{switch(e.code){case"todo":return S.important;case"in_progress":return S.info;case"on_hold":return S.alert;case"done":return S.championLight;case"resolved":return S.successDark;default:return S.neutralGrey2Light}},{commentsAndNotifications:{notifications:{actionStrings:{comments:xi}}}}=P.getLocalizedStrings(),$t=e=>{e.sort((n,l)=>g.zeniDate(n.inboxNotification.notifiedAt.toUTCString()).isAfter(g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()))===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of wt){let l=0,c=0,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),h=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),u=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),h=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),a=ie(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&&g.dateNow().date()>2&&(d=g.dateNow().subtract(Math.min(g.dateNow().date()-1,8),"d").startOf("d"),h=g.dateNow().subtract(2,"d").endOf("d"),a=ie(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&&g.dateNow().date()>9&&(d=g.dateNow().startOf("M").startOf("d"),h=g.dateNow().subtract(9,"d").endOf("d"),a=ie(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=g.dateNow().subtract(u,"month").startOf("M").startOf("d"),m=g.dateNow().subtract(u,"month").endOf("M").endOf("d");u++,a=ie(o,p,m),o=a.remainingData,s.push({start:p,end:m,type:n,notifications:a.singleGroup})}break}}return s},ie=(e,o,s)=>{const a=[],n=e.map(l=>at(o,s,g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()))?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()).isAfter(g.zeniDate(c.inboxNotification.notifiedAt.toUTCString()))===!0?-1:1),{singleGroup:a,remainingData:n}},bi=e=>{const{thread:o}=e,{newRepliesAdded:s,newCommentAdded:a}=xi;return o.comments.length===1?a:s},jt=new R(3,2,1,1,1),kt=new R(y[8],y[6],35,35,y[6]),le={lineClamp:jt,sectionWidth:kt},{common:{texts:ze,timeStrings:wi,strings:ee},commentsAndNotifications:{notifications:{strings:{newMessage:yi},actionStrings:{comments:{newCommentAdded:$i}}}}}=P.getLocalizedStrings(),ji=({notificationData:e,users:o,isHighlighted:s=!1,style:a,onNotificationTileClick:n})=>{const l=nt(),c=lt().analytics,{inboxNotification:{id:d,readAt:h,notifiedAt:u},thread:p}=e,{setRequestToOpenThread:m}=x.useContext(ni),f=h!=null?"read":"unread",{metadata:{url:b,companyId:k,entityType:B},id:D}=p;return t.jsxs(Li,{readStatus:f,isClickable:!!b,isHighlighted:s,style:a,onClick:()=>{b&&(n(d,g.toZeniUrl(b),f),(p.metadata.tab==="bill"||p.metadata.tab==="reimbursement")&&m({threadId:D,companyId:k,entityType:B})),p.metadata.application!=="cockpit"&&c.trackCommentActivity("notification","clicked",p.metadata.companyName,l.controllersList.controllers.map(T=>E(T)),p.resolved?"resolved":"open",{name:dt(l.loggedInUser),email:l.loggedInUser?.userEmail??""},"db notification")},children:[t.jsx(ki,{notificationData:e,users:o}),t.jsx(vi,{...e}),t.jsx(Ci,{timestamp:u,readStatus:f})]})},St=({notificationData:e,users:o})=>{const{thread:s}=e,{comments:a}=s,n=a[0];return a.length===0||n.body==null?t.jsx($e,{children:yi}):t.jsx($e,{children:n.body.content.map(l=>{switch(l.type){case"paragraph":return l.children.map((c,d)=>{if(Ni(c)){const u=o.find(p=>p.userId===c.id);return c.id?t.jsx(Si,{notificationData:e,user:u},`${c.id}${ee.underscore}${d}`):null}if(Ti(c)){const u=li(c.url)??c.url;return t.jsx(Oi,{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(zi,{children:h},d)),c.italic===!0&&(h=t.jsx(_i,{children:h},d)),c.strikethrough===!0&&(h=t.jsx(Mi,{children:h},d)),c.code===!0&&(h=t.jsx(Di,{children:h},d)),t.jsx(Ai,{children:h},d)});default:return t.jsx($e,{children:$i})}})})},ki=({notificationData:e,users:o})=>{const s=v();return t.jsx(Pi,{windowSize:s,children:t.jsx(St,{notificationData:e,users:o})})},Si=({notificationData:e,user:o})=>{const{inboxNotification:{readAt:s}}=e,a=s!=null?"read":"unread";let n=t.jsxs(De,{className:"userText",readStatus:a,children:[ee.atTheRate,ze.user,ee.space]});if(o!=null){const l=E(o,!1);n=t.jsx(t.Fragment,{children:t.jsxs(De,{className:"userText",readStatus:a,children:[ee.atTheRate,l||ze.user,ee.space]})})}return n},vt=e=>{const o=bi(e);return t.jsx(t.Fragment,{children:o})},vi=e=>{const o=v();return t.jsx(Ri,{windowSize:o,children:t.jsx(vt,{...e})})},Ct=e=>{const{timestamp:o,readStatus:s}=e,a=yt(o);return t.jsxs(t.Fragment,{children:[t.jsx(Bi,{isNewNotification:a===wi.justNow,children:a}),t.jsx(Fi,{readStatus:s})]})},Ci=e=>{const o=v();return t.jsx(Ii,{windowSize:o,children:t.jsx(Ct,{...e})})};function Ni(e){return"type"in e&&e.type==="mention"}function Ti(e){return"type"in e&&e.type==="link"}const Li=r.div`
5
+ `,{common:{timeStrings:bt,strings:mi},dateFormat:Te,timeFormat:gi}=P.getLocalizedStrings(),wt=["today","yesterday","last_7_days_this_month","earlier_this_month","earlier_that_month"],ne=e=>e.type.concat(mi.underscore).concat(e.start.format(Te.visual.DdashMMdashYYYYFormat)),me=e=>{switch(e.type){case"today":case"yesterday":case"earlier_this_month":case"last_7_days_this_month":return bt[e.type];case"earlier_that_month":return e.start.format(Te.visual.MMMYYYYFormat)}},yt=e=>{const o=g.zeniDate(e.toUTCString()),s=g.dateNow(),a=s.diff(o,"minutes"),n=s.diff(o,"seconds"),l=60,c=24*60;return n<=l?bt.justNow:a<c&&ci(o,0)?o.format(gi.hhmmAFormat):o.format(Te.visual.MMMDFormat)},Re=e=>{switch(e.code){case"todo":return S.important;case"in_progress":return S.info;case"on_hold":return S.alert;case"done":return S.championLight;case"resolved":return S.successDark;default:return S.neutralGrey2Light}},{commentsAndNotifications:{notifications:{actionStrings:{comments:xi}}}}=P.getLocalizedStrings(),$t=e=>{e.sort((n,l)=>g.zeniDate(n.inboxNotification.notifiedAt.toUTCString()).isAfter(g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()))===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of wt){let l=0,c=0,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),h=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),u=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),h=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),a=ie(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&&g.dateNow().date()>2&&(d=g.dateNow().subtract(Math.min(g.dateNow().date()-1,8),"d").startOf("d"),h=g.dateNow().subtract(2,"d").endOf("d"),a=ie(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&&g.dateNow().date()>9&&(d=g.dateNow().startOf("M").startOf("d"),h=g.dateNow().subtract(9,"d").endOf("d"),a=ie(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=g.dateNow().subtract(u,"month").startOf("M").startOf("d"),m=g.dateNow().subtract(u,"month").endOf("M").endOf("d");u++,a=ie(o,p,m),o=a.remainingData,s.push({start:p,end:m,type:n,notifications:a.singleGroup})}break}}return s},ie=(e,o,s)=>{const a=[],n=e.map(l=>at(o,s,g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()))?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()).isAfter(g.zeniDate(c.inboxNotification.notifiedAt.toUTCString()))===!0?-1:1),{singleGroup:a,remainingData:n}},bi=e=>{const{thread:o}=e,{newRepliesAdded:s,newCommentAdded:a}=xi;return o.comments.length===1?a:s},jt=new R(3,2,1,1,1),kt=new R(y[8],y[6],35,35,y[6]),le={lineClamp:jt,sectionWidth:kt},{common:{texts:ze,timeStrings:wi,strings:ee},commentsAndNotifications:{notifications:{strings:{newMessage:yi},actionStrings:{comments:{newCommentAdded:$i}}}}}=P.getLocalizedStrings(),ji=({notificationData:e,users:o,isHighlighted:s=!1,style:a,onNotificationTileClick:n})=>{const l=nt(),c=lt().analytics,{inboxNotification:{id:d,readAt:h,notifiedAt:u},thread:p}=e,{setRequestToOpenThread:m}=x.useContext(ni),f=h!=null?"read":"unread",{metadata:{url:b,companyId:k,entityType:B},id:D}=p;return t.jsxs(Li,{readStatus:f,isClickable:!!b,isHighlighted:s,style:a,onClick:()=>{b&&(n(d,g.toZeniUrl(b),f),(p.metadata.tab==="bill"||p.metadata.tab==="reimbursement")&&m({threadId:D,companyId:k,entityType:B})),p.metadata.application!=="cockpit"&&c.trackCommentActivity("notification","clicked",p.metadata.companyName,l.controllersList.controllers.map(T=>E(T)),p.resolved?"resolved":"open",{name:dt(l.loggedInUser),email:l.loggedInUser?.userEmail??""},"db notification")},children:[t.jsx(ki,{notificationData:e,users:o}),t.jsx(vi,{...e}),t.jsx(Ci,{timestamp:u,readStatus:f})]})},St=({notificationData:e,users:o})=>{const{thread:s}=e,{comments:a}=s,n=a[0];return a.length===0||n.body==null?t.jsx($e,{children:yi}):t.jsx($e,{children:n.body.content.map(l=>{switch(l.type){case"paragraph":return l.children.map((c,d)=>{if(Ni(c)){const u=o.find(p=>p.userId===c.id);return c.id?t.jsx(Si,{notificationData:e,user:u},`${c.id}${ee.underscore}${d}`):null}if(Ti(c)){const u=li(c.url)??c.url;return t.jsx(Ai,{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(zi,{children:h},d)),c.italic===!0&&(h=t.jsx(_i,{children:h},d)),c.strikethrough===!0&&(h=t.jsx(Mi,{children:h},d)),c.code===!0&&(h=t.jsx(Di,{children:h},d)),t.jsx(Oi,{children:h},d)});default:return t.jsx($e,{children:$i})}})})},ki=({notificationData:e,users:o})=>{const s=v();return t.jsx(Pi,{windowSize:s,children:t.jsx(St,{notificationData:e,users:o})})},Si=({notificationData:e,user:o})=>{const{inboxNotification:{readAt:s}}=e,a=s!=null?"read":"unread";let n=t.jsxs(De,{className:"userText",readStatus:a,children:[ee.atTheRate,ze.user,ee.space]});if(o!=null){const l=E(o,!1);n=t.jsx(t.Fragment,{children:t.jsxs(De,{className:"userText",readStatus:a,children:[ee.atTheRate,l||ze.user,ee.space]})})}return n},vt=e=>{const o=bi(e);return t.jsx(t.Fragment,{children:o})},vi=e=>{const o=v();return t.jsx(Ri,{windowSize:o,children:t.jsx(vt,{...e})})},Ct=e=>{const{timestamp:o,readStatus:s}=e,a=yt(o);return t.jsxs(t.Fragment,{children:[t.jsx(Bi,{isNewNotification:a===wi.justNow,children:a}),t.jsx(Fi,{readStatus:s})]})},Ci=e=>{const o=v();return t.jsx(Ii,{windowSize:o,children:t.jsx(Ct,{...e})})};function Ni(e){return"type"in e&&e.type==="mention"}function Ti(e){return"type"in e&&e.type==="link"}const Li=r.div`
6
6
  display: flex;
7
7
  flex-direction: row;
8
8
  align-items: center;
@@ -33,7 +33,7 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
33
33
  border-bottom-right-radius: inherit;
34
34
  }
35
35
 
36
- ${e=>e.isHighlighted?O`
36
+ ${e=>e.isHighlighted?A`
37
37
  z-index: 1;
38
38
  color: ${e.theme.colors.primary};
39
39
  border: 1px solid ${e.theme.colors.primary};
@@ -43,7 +43,7 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
43
43
  }
44
44
  `:null};
45
45
 
46
- ${e=>e.isClickable?O`
46
+ ${e=>e.isClickable?A`
47
47
  &:hover {
48
48
  z-index: 1;
49
49
  color: ${e.theme.colors.primary};
@@ -68,7 +68,7 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
68
68
  -webkit-line-clamp: ${e=>le.lineClamp.value(e.windowSize)};
69
69
  -webkit-box-orient: vertical;
70
70
  width: ${e=>le.sectionWidth.valuePercentage(e.windowSize)};
71
- `,zi=r.strong``,Di=r.code``,_i=r.em``,Mi=r.s``,Ai=r.span``,Oi=r.a``,Pi=r(Q)`
71
+ `,zi=r.strong``,Di=r.code``,_i=r.em``,Mi=r.s``,Oi=r.span``,Ai=r.a``,Pi=r(Q)`
72
72
  color: inherit;
73
73
  display: -webkit-box;
74
74
  overflow: hidden;
@@ -158,17 +158,17 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
158
158
  align-items: baseline;
159
159
  flex-direction: row;
160
160
  justify-content: end;
161
- `,Wi=()=>v()==="small"?t.jsx(Ei,{}):t.jsx(Gi,{}),Ji={marginLeft:new R(y[2],y[5],y[7])},Zi=()=>t.jsxs(qi,{children:[t.jsx(Se,{numberOfRows:5}),t.jsx(Se,{numberOfRows:3})]}),Se=({numberOfRows:e})=>{const o=v();return t.jsxs(Ki,{windowSize:o,children:[t.jsx(Qi,{children:t.jsx(z,{width:y[12],height:Ne.standardRegular.lineHeightValue})}),t.jsx(Xi,{children:[...Array(e)].map(s=>t.jsx(Wi,{},ce()))})]})},qi=r.div`
161
+ `,Wi=()=>v()==="small"?t.jsx(Ei,{}):t.jsx(Gi,{}),Ji={marginLeft:new R(y[2],y[5],y[7])},qi=()=>t.jsxs(Xi,{children:[t.jsx(Se,{numberOfRows:5}),t.jsx(Se,{numberOfRows:3})]}),Se=({numberOfRows:e})=>{const o=v();return t.jsxs(Zi,{windowSize:o,children:[t.jsx(Qi,{children:t.jsx(z,{width:y[12],height:Ne.standardRegular.lineHeightValue})}),t.jsx(Ki,{children:[...Array(e)].map(s=>t.jsx(Wi,{},ce()))})]})},Xi=r.div`
162
162
  display: block;
163
163
  min-height: 100%;
164
164
  flex-direction: column;
165
165
  width: 100%;
166
- `,Ki=r.div`
166
+ `,Zi=r.div`
167
167
  display: flex;
168
168
  flex-direction: column;
169
169
  margin-bottom: ${i.sp5};
170
170
  margin-left: ${e=>Ji.marginLeft.valuePx(e.windowSize)};
171
- `,Xi=r.div`
171
+ `,Ki=r.div`
172
172
  display: flex;
173
173
  flex-direction: column;
174
174
  border-radius: ${i.sp2};
@@ -207,7 +207,7 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
207
207
  border-bottom-right-radius: inherit;
208
208
  }
209
209
 
210
- ${e=>e.isHighlighted?O`
210
+ ${e=>e.isHighlighted?A`
211
211
  z-index: 1;
212
212
  color: ${e.theme.colors.primary};
213
213
  border: 1px solid ${e.theme.colors.primary};
@@ -217,7 +217,7 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
217
217
  }
218
218
  `:null};
219
219
 
220
- ${e=>e.isClickable?O`
220
+ ${e=>e.isClickable?A`
221
221
  &:hover {
222
222
  z-index: 1;
223
223
  color: ${e.theme.colors.primary};
@@ -244,7 +244,7 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
244
244
  display: -webkit-box;
245
245
  overflow: hidden;
246
246
  -webkit-box-orient: vertical;
247
- `,Tt=e=>v()==="small"?t.jsx(eo,{...e}):t.jsx(ji,{...e}),{common:{all:_e}}=P.getLocalizedStrings(),no=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=X(),{getValues:h}=he(),u=h(s);return t.jsx(lo,{style:n,children:t.jsx(ue,{mode:a,checkBoxes:[{label:t.jsx(co,{htmlFor:`${s}.${_e.toLocaleLowerCase()}`,style:{color:d.colors.primary},children:me(e)}),value:_e.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((p,m)=>{const f=m===0,b=e.notifications.length-1===m;return{label:t.jsx(Tt,{notificationData:p,users:o,style:{borderTopLeftRadius:f?i.sp2:void 0,borderTopRightRadius:f?i.sp2:void 0,borderBottomLeftRadius:b?i.sp2:void 0,borderBottomRightRadius:b?i.sp2:void 0},isHighlighted:u?.includes(p.inboxNotification.id)===!0,onNotificationTileClick:c}),value:p.inboxNotification.id,defaultChecked:!1,groupLabel:!1}})],name:s,isDisabled:l,style:{width:"100%"},checkBoxStyle:{padding:i.sp3},labelCheckBoxStyle:{padding:i.sp3}})})},lo=r.div`
247
+ `,Tt=e=>v()==="small"?t.jsx(eo,{...e}):t.jsx(ji,{...e}),{common:{all:_e}}=P.getLocalizedStrings(),no=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=K(),{getValues:h}=he(),u=h(s);return t.jsx(lo,{style:n,children:t.jsx(ue,{mode:a,checkBoxes:[{label:t.jsx(co,{htmlFor:`${s}.${_e.toLocaleLowerCase()}`,style:{color:d.colors.primary},children:me(e)}),value:_e.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((p,m)=>{const f=m===0,b=e.notifications.length-1===m;return{label:t.jsx(Tt,{notificationData:p,users:o,style:{borderTopLeftRadius:f?i.sp2:void 0,borderTopRightRadius:f?i.sp2:void 0,borderBottomLeftRadius:b?i.sp2:void 0,borderBottomRightRadius:b?i.sp2:void 0},isHighlighted:u?.includes(p.inboxNotification.id)===!0,onNotificationTileClick:c}),value:p.inboxNotification.id,defaultChecked:!1,groupLabel:!1}})],name:s,isDisabled:l,style:{width:"100%"},checkBoxStyle:{padding:i.sp3},labelCheckBoxStyle:{padding:i.sp3}})})},lo=r.div`
248
248
  display: flex;
249
249
  align-items: center;
250
250
  width: 100%;
@@ -253,16 +253,16 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
253
253
  align-items: flex-start;
254
254
  width: 100%;
255
255
  padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp0};
256
- `,{common:{all:Me}}=P.getLocalizedStrings(),ho=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=X(),{getValues:h}=he(),u=h(s),p=x.useRef([]);return x.useEffect(()=>{p.current=p.current.slice(0,e.notifications.length)},[e.notifications.length]),t.jsx(uo,{style:n,children:t.jsx(ue,{mode:a,checkBoxes:[{label:t.jsx(Ae,{htmlFor:`${s}.${Me.toLocaleLowerCase()}`,style:{color:d.colors.primary,marginLeft:i.sp2},children:me(e)}),value:Me.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((m,f)=>{const b=f===0,k=e.notifications.length-1===f;return{label:t.jsx(Ae,{ref:B=>p.current[f]=B,htmlFor:`${s}.${m.inboxNotification.id}`,style:{padding:i.sp0},children:t.jsx(po,{notificationData:m,users:o,style:{borderTopLeftRadius:b?i.sp2:void 0,borderTopRightRadius:b?i.sp2:void 0,borderBottomLeftRadius:k?i.sp2:void 0,borderBottomRightRadius:k?i.sp2:void 0,marginLeft:i.sp2},isHighlighted:u?.includes(m.inboxNotification.id)===!0,isSelectionMode:a==="always_on",onNotificationTileClick:c,onNotificationTileLongPress:()=>{p.current[f]?.click()}})}),value:m.inboxNotification.id,defaultChecked:!1,groupLabel:!1}})],name:s,isDisabled:l,style:{width:"100%",position:"relative"},checkBoxStyle:{padding:i.sp1,zIndex:2,left:`-${i.sp1}`,position:"absolute"},checkBoxIconStyle:{backgroundColor:d.colors.grey5}})})},uo=r.div`
256
+ `,{common:{all:Me}}=P.getLocalizedStrings(),ho=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=K(),{getValues:h}=he(),u=h(s),p=x.useRef([]);return x.useEffect(()=>{p.current=p.current.slice(0,e.notifications.length)},[e.notifications.length]),t.jsx(uo,{style:n,children:t.jsx(ue,{mode:a,checkBoxes:[{label:t.jsx(Oe,{htmlFor:`${s}.${Me.toLocaleLowerCase()}`,style:{color:d.colors.primary,marginLeft:i.sp2},children:me(e)}),value:Me.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((m,f)=>{const b=f===0,k=e.notifications.length-1===f;return{label:t.jsx(Oe,{ref:B=>p.current[f]=B,htmlFor:`${s}.${m.inboxNotification.id}`,style:{padding:i.sp0},children:t.jsx(po,{notificationData:m,users:o,style:{borderTopLeftRadius:b?i.sp2:void 0,borderTopRightRadius:b?i.sp2:void 0,borderBottomLeftRadius:k?i.sp2:void 0,borderBottomRightRadius:k?i.sp2:void 0,marginLeft:i.sp2},isHighlighted:u?.includes(m.inboxNotification.id)===!0,isSelectionMode:a==="always_on",onNotificationTileClick:c,onNotificationTileLongPress:()=>{p.current[f]?.click()}})}),value:m.inboxNotification.id,defaultChecked:!1,groupLabel:!1}})],name:s,isDisabled:l,style:{width:"100%",position:"relative"},checkBoxStyle:{padding:i.sp1,zIndex:2,left:`-${i.sp1}`,position:"absolute"},checkBoxIconStyle:{backgroundColor:d.colors.grey5}})})},uo=r.div`
257
257
  display: flex;
258
258
  align-items: center;
259
259
  width: 100%;
260
- `,Ae=r(pe)`
260
+ `,Oe=r(pe)`
261
261
  display: flex;
262
262
  align-items: flex-start;
263
263
  width: 100%;
264
264
  padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp0};
265
- `,po=r(Tt)``,fo=e=>v()==="small"?t.jsx(ho,{...e}):t.jsx(no,{...e}),{commentsAndNotifications:{notifications:{message:mo}}}=P.getLocalizedStrings(),Oe={rowGap:new R(y[0],y[5],y[5])},go=({notificationGroups:e,users:o,isFetching:s,hasMore:a,sectionId:n,checkBoxMode:l,scrollYOffset:c,currentSubTab:d,isDisabled:h,onUpdateScrollYOffset:u,onFetchNotificationGroups:p,onNotificationClick:m})=>{const f=v(),b=x.useRef(null),k=x.useRef({});x.useEffect(()=>{b.current?.resetAfterIndex(0,!0)},[f,b,e]),x.useEffect(()=>{b.current?.scrollTo(c)},[d]);const B=x.useCallback(C=>{if(k.current?.[C]!=null){const G=f==="small"&&a===!1&&C===e.length-1?Oe.rowGap.value("medium-regular"):Oe.rowGap.value(f);return k.current[C]+G}return(ut*jt.value(f)+pt)*3+ft+mt},[f,k,e]),D=x.useCallback((C,G)=>{k.current={...k.current,[C]:G},b.current?.resetAfterIndex(0,!0)},[f,b,e]),T=x.useCallback(()=>{p()},[p]),w=x.useCallback(()=>{},[]),L=et(C=>u(C),1e3,{trailing:!0}),j=C=>!a||C<e.length,Y=x.useCallback(()=>a&&!s?T():w(),[a,s,T,w]),I=a?e.length+1:e.length;return t.jsx(bo,{children:t.jsx(wo,{windowSize:f,children:s&&e.length===0?t.jsx(Zi,{}):s===!1&&e.length===0?t.jsx(tt,{message:mo.noNotificationsMessage,style:{padding:i.sp0}}):t.jsx(yo,{windowSize:f,children:t.jsx(it,{children:({height:C,width:G})=>t.jsx(ot,{isItemLoaded:j,itemCount:gt,loadMoreItems:Y,children:({onItemsRendered:V,ref:U})=>t.jsx(st,{ref:W=>{U(W),b.current=W},height:C,itemCount:I,itemData:{notificationGroups:e,users:o,sectionId:n,checkBoxMode:l,isDisabled:h,isItemLoaded:j,setRowHeight:D,onNotificationClick:m},onItemsRendered:V,itemSize:B,width:G,style:{willChange:"auto"},overscanCount:xt,onScroll:({scrollOffset:W})=>{L(W)},initialScrollOffset:c,children:xo})})})})})})},xo=({index:e,style:o,data:s})=>{const{notificationGroups:a,users:n,sectionId:l,checkBoxMode:c,isItemLoaded:d,isDisabled:h,setRowHeight:u,onNotificationClick:p}=s,m=x.useRef(null),f=v();if(x.useEffect(()=>{m.current?.firstElementChild!=null&&u(e,m.current.firstElementChild.clientHeight)},[e,m,f,a[e]?.notifications]),d(e)===!0){const b=a[e],k=ne(b);return t.jsx(Pe,{style:{...o,paddingBottom:i.sp0,width:"100%"},ref:m,children:t.jsx(fo,{notificationGroup:b,sectionId:`${l}.${k}`,checkBoxMode:c,isDisabled:h,users:n,onNotificationTileClick:p})},k)}return t.jsx(Pe,{ref:m,style:{...o,paddingBottom:i.sp0},children:t.jsx(Se,{numberOfRows:3})},ce())},bo=r.div`
265
+ `,po=r(Tt)``,fo=e=>v()==="small"?t.jsx(ho,{...e}):t.jsx(no,{...e}),{commentsAndNotifications:{notifications:{message:mo}}}=P.getLocalizedStrings(),Ae={rowGap:new R(y[0],y[5],y[5])},go=({notificationGroups:e,users:o,isFetching:s,hasMore:a,sectionId:n,checkBoxMode:l,scrollYOffset:c,currentSubTab:d,isDisabled:h,onUpdateScrollYOffset:u,onFetchNotificationGroups:p,onNotificationClick:m})=>{const f=v(),b=x.useRef(null),k=x.useRef({});x.useEffect(()=>{b.current?.resetAfterIndex(0,!0)},[f,b,e]),x.useEffect(()=>{b.current?.scrollTo(c)},[d]);const B=x.useCallback(C=>{if(k.current?.[C]!=null){const G=f==="small"&&a===!1&&C===e.length-1?Ae.rowGap.value("medium-regular"):Ae.rowGap.value(f);return k.current[C]+G}return(ut*jt.value(f)+pt)*3+ft+mt},[f,k,e]),D=x.useCallback((C,G)=>{k.current={...k.current,[C]:G},b.current?.resetAfterIndex(0,!0)},[f,b,e]),T=x.useCallback(()=>{p()},[p]),w=x.useCallback(()=>{},[]),L=et(C=>u(C),1e3,{trailing:!0}),j=C=>!a||C<e.length,Y=x.useCallback(()=>a&&!s?T():w(),[a,s,T,w]),I=a?e.length+1:e.length;return t.jsx(bo,{children:t.jsx(wo,{windowSize:f,children:s&&e.length===0?t.jsx(qi,{}):s===!1&&e.length===0?t.jsx(tt,{message:mo.noNotificationsMessage,style:{padding:i.sp0}}):t.jsx(yo,{windowSize:f,children:t.jsx(it,{children:({height:C,width:G})=>t.jsx(ot,{isItemLoaded:j,itemCount:gt,loadMoreItems:Y,children:({onItemsRendered:V,ref:U})=>t.jsx(st,{ref:W=>{U(W),b.current=W},height:C,itemCount:I,itemData:{notificationGroups:e,users:o,sectionId:n,checkBoxMode:l,isDisabled:h,isItemLoaded:j,setRowHeight:D,onNotificationClick:m},onItemsRendered:V,itemSize:B,width:G,style:{willChange:"auto"},overscanCount:xt,onScroll:({scrollOffset:W})=>{L(W)},initialScrollOffset:c,children:xo})})})})})})},xo=({index:e,style:o,data:s})=>{const{notificationGroups:a,users:n,sectionId:l,checkBoxMode:c,isItemLoaded:d,isDisabled:h,setRowHeight:u,onNotificationClick:p}=s,m=x.useRef(null),f=v();if(x.useEffect(()=>{m.current?.firstElementChild!=null&&u(e,m.current.firstElementChild.clientHeight)},[e,m,f,a[e]?.notifications]),d(e)===!0){const b=a[e],k=ne(b);return t.jsx(Pe,{style:{...o,paddingBottom:i.sp0,width:"100%"},ref:m,children:t.jsx(fo,{notificationGroup:b,sectionId:`${l}.${k}`,checkBoxMode:c,isDisabled:h,users:n,onNotificationTileClick:p})},k)}return t.jsx(Pe,{ref:m,style:{...o,paddingBottom:i.sp0},children:t.jsx(Se,{numberOfRows:3})},ce())},bo=r.div`
266
266
  display: block;
267
267
  background-color: ${e=>e.theme.colors.grey4};
268
268
  height: 100%;
@@ -279,7 +279,7 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
279
279
  top: ${i.sp0};
280
280
  left: ${i.sp0};
281
281
  box-sizing: border-box;
282
- `,{common:{in:$o,strings:Lt},dateFormat:jo,commentsAndNotifications:{notifications:{actionStrings:{notifications:A}}}}=P.getLocalizedStrings(),It=e=>{e.sort((n,l)=>n.createTime.isAfter(l.createTime)===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of wt){let l=0,c=0,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),h=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),u=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),h=g.dateNow().subtract(Math.min(g.dateNow().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&&g.dateNow().date()>2&&(d=g.dateNow().subtract(Math.min(g.dateNow().date()-1,8),"d").startOf("d"),h=g.dateNow().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&&g.dateNow().date()>9&&(d=g.dateNow().startOf("M").startOf("d"),h=g.dateNow().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=g.dateNow().subtract(u,"month").startOf("M").startOf("d"),m=g.dateNow().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=>at(o,s,l.createTime)?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>l.createTime.isAfter(c.createTime)===!0?-1:1),{singleGroup:a,remainingData:n}},ko=e=>{let o=A.newActivity;return e.code==="in_progress"?o=A.due.replace("__task_status__",Ie(e.name.toLocaleLowerCase())):o=A.due.replace("__task_status__",$o.toLocaleLowerCase().concat(Lt.space,Ie(e.name.toLocaleLowerCase()))),o},So=e=>{const{eventData:{activities:o}}=e;let s=A.newActivity;if(o.length>0){const a=o[0].activityType,n=o[0].metadata.eventStatus;switch(a){case"task_archived":s=A.archive;break;case"task_deleted":s=A.delete;break;case"task_activities":s=A.activities;break;case"task_assigned":s=A.assign;break;case"task_created":s=A.create;break;case"task_due":s=n!=null?ko(n):A.dueTomorrow;break;case"task_overdue":s=A.overdue.replace("__date__",o[0].metadata.additionalInfo?.dueDate.format(jo.visual.MMMDFormat)??Lt.empty);break;case"task_status_updated":s=A.statusUpdate;break}}return s},Rt=new R(3,2,1,1,1),zt=new R(y[8],33,33,33,35),de={lineClamp:Rt,sectionWidth:zt},{common:{and:Be,other:vo,others:Co,texts:No,timeStrings:To,strings:M,tags:Lo}}=P.getLocalizedStrings(),Io=({notificationData:e,isHighlighted:o=!1,style:s,onNotificationTileClick:a})=>{const{status:n,notificationId:l,eventData:{entitiyId:c,activities:d},createTime:h}=e;return t.jsxs(Oo,{notificationStatus:n,isHighlighted:o,style:s,onClick:()=>{a(l,c,n,d.length>0?d[0].activityType:void 0)},children:[t.jsx(Ro,{...e}),t.jsx(_o,{...e}),t.jsx(Ao,{...e}),t.jsx(Mo,{createTime:h,notificationStatus:n})]})},Dt=e=>{const{status:o,eventData:{title:s}}=e;return t.jsx(Uo,{notificationStatus:o,children:s||M.hyphen})},Ro=e=>{const o=v();return t.jsx(Go,{windowSize:o,children:t.jsx(Dt,{...e})})},zo=e=>{const{eventData:{activities:o}}=e;if(o.length>0&&o[0].activityType==="task_status_updated"){const s=o[0].metadata.updates.find(a=>a.type==="code_name_pair"&&a.field==="status");if(s?.oldValue.codeNamePair!=null&&s.newValue.codeNamePair!=null)return t.jsxs(Ho,{children:[t.jsx(Fe,{backgroundColor:Re(s.oldValue.codeNamePair),children:s.oldValue.codeNamePair.name}),t.jsx(Yo,{}),t.jsx(Fe,{backgroundColor:Re(s.newValue.codeNamePair),children:s.newValue.codeNamePair.name})]})}return null},Do=e=>{const{status:o,eventData:{authors:s,activities:a}}=e,n=s.length;if(a[0].activityType==="task_due"||a[0].activityType==="task_overdue"||a[0].activityType==="task_status_updated")return null;let l=t.jsxs(Z,{className:"userText",notificationStatus:o,children:[M.atTheRate,No.user,M.space]});return n>0&&(n>2?l=t.jsxs(t.Fragment,{children:[t.jsxs(Z,{className:"userText",notificationStatus:o,children:[M.atTheRate,E(s[0],!1),M.space]}),Be,t.jsxs(Z,{className:"userText",notificationStatus:o,children:[M.space,n-1,M.space,Co,M.space]})]}):n===2?l=t.jsxs(t.Fragment,{children:[t.jsxs(Z,{className:"userText",notificationStatus:o,children:[M.atTheRate,E(s[0],!1),M.space]}),Be,t.jsxs(Z,{className:"userText",notificationStatus:o,children:[M.space,s.length===2?M.atTheRate+E(s[1],!1):vo,M.space]})]}):l=t.jsxs(Z,{className:"userText",notificationStatus:o,children:[M.atTheRate,E(s[0],!1),M.space]})),l},_t=e=>t.jsxs(t.Fragment,{children:[t.jsx(Do,{...e}),So(e),t.jsx(zo,{...e})]}),_o=e=>{const o=v(),{eventData:{activities:s}}=e;return t.jsx(Fo,{windowSize:o,statusUpdate:s.length>0&&s[0].activityType==="task_status_updated"&&s[0].metadata.updates.find(a=>a.field==="status")!=null,children:t.jsx(_t,{...e})})},Mt=e=>{const{createTime:o,notificationStatus:s}=e,a=yt(o.toDate());return t.jsxs(t.Fragment,{children:[t.jsx(Eo,{isNewNotification:a===To.justNow,children:a}),t.jsx(Wo,{notificationStatus:s})]})},Mo=e=>{const o=v();return t.jsx(Po,{windowSize:o,children:t.jsx(Mt,{...e})})},At=e=>{const{eventData:{activities:o}}=e;return o[0].activityType==="task_overdue"?t.jsx(di,{tagTitle:Lo.overdue,textColor:{color:new ye(S.alert),backgroundColor:new ye("transparent"),borderColor:new ye(S.alert)},showLoader:!1}):t.jsx(Vo,{})},Ao=e=>{const o=v();return t.jsx(Bo,{windowSize:o,children:t.jsx(At,{...e})})},Oo=r.div`
282
+ `,{common:{in:$o,strings:Lt},dateFormat:jo,commentsAndNotifications:{notifications:{actionStrings:{notifications:O}}}}=P.getLocalizedStrings(),It=e=>{e.sort((n,l)=>n.createTime.isAfter(l.createTime)===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of wt){let l=0,c=0,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),h=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),u=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),h=g.dateNow().subtract(Math.min(g.dateNow().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&&g.dateNow().date()>2&&(d=g.dateNow().subtract(Math.min(g.dateNow().date()-1,8),"d").startOf("d"),h=g.dateNow().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&&g.dateNow().date()>9&&(d=g.dateNow().startOf("M").startOf("d"),h=g.dateNow().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=g.dateNow().subtract(u,"month").startOf("M").startOf("d"),m=g.dateNow().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=>at(o,s,l.createTime)?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>l.createTime.isAfter(c.createTime)===!0?-1:1),{singleGroup:a,remainingData:n}},ko=e=>{let o=O.newActivity;return e.code==="in_progress"?o=O.due.replace("__task_status__",Ie(e.name.toLocaleLowerCase())):o=O.due.replace("__task_status__",$o.toLocaleLowerCase().concat(Lt.space,Ie(e.name.toLocaleLowerCase()))),o},So=e=>{const{eventData:{activities:o}}=e;let s=O.newActivity;if(o.length>0){const a=o[0].activityType,n=o[0].metadata.eventStatus;switch(a){case"task_archived":s=O.archive;break;case"task_deleted":s=O.delete;break;case"task_activities":s=O.activities;break;case"task_assigned":s=O.assign;break;case"task_created":s=O.create;break;case"task_due":s=n!=null?ko(n):O.dueTomorrow;break;case"task_overdue":s=O.overdue.replace("__date__",o[0].metadata.additionalInfo?.dueDate.format(jo.visual.MMMDFormat)??Lt.empty);break;case"task_status_updated":s=O.statusUpdate;break}}return s},Rt=new R(3,2,1,1,1),zt=new R(y[8],33,33,33,35),de={lineClamp:Rt,sectionWidth:zt},{common:{and:Be,other:vo,others:Co,texts:No,timeStrings:To,strings:M,tags:Lo}}=P.getLocalizedStrings(),Io=({notificationData:e,isHighlighted:o=!1,style:s,onNotificationTileClick:a})=>{const{status:n,notificationId:l,eventData:{entitiyId:c,activities:d},createTime:h}=e;return t.jsxs(Ao,{notificationStatus:n,isHighlighted:o,style:s,onClick:()=>{a(l,c,n,d.length>0?d[0].activityType:void 0)},children:[t.jsx(Ro,{...e}),t.jsx(_o,{...e}),t.jsx(Oo,{...e}),t.jsx(Mo,{createTime:h,notificationStatus:n})]})},Dt=e=>{const{status:o,eventData:{title:s}}=e;return t.jsx(Uo,{notificationStatus:o,children:s||M.hyphen})},Ro=e=>{const o=v();return t.jsx(Go,{windowSize:o,children:t.jsx(Dt,{...e})})},zo=e=>{const{eventData:{activities:o}}=e;if(o.length>0&&o[0].activityType==="task_status_updated"){const s=o[0].metadata.updates.find(a=>a.type==="code_name_pair"&&a.field==="status");if(s?.oldValue.codeNamePair!=null&&s.newValue.codeNamePair!=null)return t.jsxs(Ho,{children:[t.jsx(Fe,{backgroundColor:Re(s.oldValue.codeNamePair),children:s.oldValue.codeNamePair.name}),t.jsx(Yo,{}),t.jsx(Fe,{backgroundColor:Re(s.newValue.codeNamePair),children:s.newValue.codeNamePair.name})]})}return null},Do=e=>{const{status:o,eventData:{authors:s,activities:a}}=e,n=s.length;if(a[0].activityType==="task_due"||a[0].activityType==="task_overdue"||a[0].activityType==="task_status_updated")return null;let l=t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,No.user,M.space]});return n>0&&(n>2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,E(s[0],!1),M.space]}),Be,t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.space,n-1,M.space,Co,M.space]})]}):n===2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,E(s[0],!1),M.space]}),Be,t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.space,s.length===2?M.atTheRate+E(s[1],!1):vo,M.space]})]}):l=t.jsxs(q,{className:"userText",notificationStatus:o,children:[M.atTheRate,E(s[0],!1),M.space]})),l},_t=e=>t.jsxs(t.Fragment,{children:[t.jsx(Do,{...e}),So(e),t.jsx(zo,{...e})]}),_o=e=>{const o=v(),{eventData:{activities:s}}=e;return t.jsx(Fo,{windowSize:o,statusUpdate:s.length>0&&s[0].activityType==="task_status_updated"&&s[0].metadata.updates.find(a=>a.field==="status")!=null,children:t.jsx(_t,{...e})})},Mt=e=>{const{createTime:o,notificationStatus:s}=e,a=yt(o.toDate());return t.jsxs(t.Fragment,{children:[t.jsx(Eo,{isNewNotification:a===To.justNow,children:a}),t.jsx(Wo,{notificationStatus:s})]})},Mo=e=>{const o=v();return t.jsx(Po,{windowSize:o,children:t.jsx(Mt,{...e})})},Ot=e=>{const{eventData:{activities:o}}=e;return o[0].activityType==="task_overdue"?t.jsx(di,{tagTitle:Lo.overdue,textColor:{color:new ye(S.alert),backgroundColor:new ye("transparent"),borderColor:new ye(S.alert)},showLoader:!1}):t.jsx(Vo,{})},Oo=e=>{const o=v();return t.jsx(Bo,{windowSize:o,children:t.jsx(Ot,{...e})})},Ao=r.div`
283
283
  display: flex;
284
284
  flex-direction: row;
285
285
  align-items: center;
@@ -310,7 +310,7 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
310
310
  border-bottom-right-radius: inherit;
311
311
  }
312
312
 
313
- ${e=>e.isHighlighted?O`
313
+ ${e=>e.isHighlighted?A`
314
314
  z-index: 1;
315
315
  color: ${e.theme.colors.primary};
316
316
  border: 1px solid ${e.theme.colors.primary};
@@ -345,11 +345,11 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
345
345
  `,Fo=r(Q)`
346
346
  color: inherit;
347
347
 
348
- ${e=>e.statusUpdate?O`
348
+ ${e=>e.statusUpdate?A`
349
349
  display: flex;
350
350
  flex-wrap: wrap;
351
351
  gap: ${i.sp1};
352
- `:O`
352
+ `:A`
353
353
  display: -webkit-box;
354
354
  overflow: hidden;
355
355
  -webkit-line-clamp: ${de.lineClamp.value(e.windowSize)};
@@ -364,7 +364,7 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
364
364
  -webkit-line-clamp: ${e=>de.lineClamp.value(e.windowSize)};
365
365
  -webkit-box-orient: vertical;
366
366
  width: ${e=>de.sectionWidth.valuePercentage(e.windowSize)};
367
- `,Z=r(fe)`
367
+ `,q=r(fe)`
368
368
  color: ${e=>e.notificationStatus==="read"?e.theme.colors.grey1:S.brandColorJade};
369
369
  `,Uo=r(fe)`
370
370
  color: inherit;
@@ -397,7 +397,7 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
397
397
  border-radius: ${i.sp2};
398
398
  flex-shrink: 0;
399
399
  background-color: ${e=>e.notificationStatus==="unread"?S.info:"transparent"};
400
- `,se={emptyRowItemSectionWidth:new R(120,200,280,330,400),emptyLastRowItemSectionWidth:new R(y[6],50,60,y[11],120)},Jo=()=>{const e=v();return t.jsxs(Zo,{windowSize:e,children:[t.jsx(ae,{windowSize:e,isLastItem:!1,children:t.jsx(z,{width:se.emptyRowItemSectionWidth.value(e),height:y[4]})}),t.jsx(ae,{windowSize:e,isLastItem:!1,children:t.jsx(z,{width:se.emptyRowItemSectionWidth.value(e),height:y[4]})}),t.jsx(ae,{windowSize:e,isLastItem:!0,children:t.jsx(z,{width:se.emptyLastRowItemSectionWidth.value(e),height:18})}),t.jsx(ae,{windowSize:e,isLastItem:!0,children:t.jsx(z,{width:se.emptyLastRowItemSectionWidth.value(e),height:18})})]})},Zo=r.div`
400
+ `,se={emptyRowItemSectionWidth:new R(120,200,280,330,400),emptyLastRowItemSectionWidth:new R(y[6],50,60,y[11],120)},Jo=()=>{const e=v();return t.jsxs(qo,{windowSize:e,children:[t.jsx(ae,{windowSize:e,isLastItem:!1,children:t.jsx(z,{width:se.emptyRowItemSectionWidth.value(e),height:y[4]})}),t.jsx(ae,{windowSize:e,isLastItem:!1,children:t.jsx(z,{width:se.emptyRowItemSectionWidth.value(e),height:y[4]})}),t.jsx(ae,{windowSize:e,isLastItem:!0,children:t.jsx(z,{width:se.emptyLastRowItemSectionWidth.value(e),height:18})}),t.jsx(ae,{windowSize:e,isLastItem:!0,children:t.jsx(z,{width:se.emptyLastRowItemSectionWidth.value(e),height:18})})]})},qo=r.div`
401
401
  display: flex;
402
402
  align-items: center;
403
403
  justify-content: space-between;
@@ -428,7 +428,7 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
428
428
  flex: 1 1 auto;
429
429
  justify-content: ${e=>e.isLastItem?"flex-end":"start"};
430
430
  width: ${e=>e.isLastItem?"10%":zt.valuePercentage(e.windowSize)};
431
- `,qo=()=>{const e=v();return t.jsxs(Ko,{windowSize:e,children:[t.jsxs(Ge,{children:[t.jsx(z,{width:180,height:y[4]}),t.jsx(z,{width:60,height:18})]}),t.jsxs(Ge,{children:[t.jsx(z,{width:180,height:y[4]}),t.jsx(z,{width:60,height:18})]})]})},Ko=r.div`
431
+ `,Xo=()=>{const e=v();return t.jsxs(Zo,{windowSize:e,children:[t.jsxs(Ge,{children:[t.jsx(z,{width:180,height:y[4]}),t.jsx(z,{width:60,height:18})]}),t.jsxs(Ge,{children:[t.jsx(z,{width:180,height:y[4]}),t.jsx(z,{width:60,height:18})]})]})},Zo=r.div`
432
432
  display: flex;
433
433
  flex-direction: column;
434
434
  align-items: baseline;
@@ -462,7 +462,7 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
462
462
  gap: ${i.sp2};
463
463
  flex: 1 1 auto;
464
464
  width: 100%;
465
- `,Xo=()=>v()==="small"?t.jsx(qo,{}):t.jsx(Jo,{}),Qo={marginLeft:new R(y[2],y[5],y[7])},es=()=>t.jsxs(ts,{children:[t.jsx(ve,{numberOfRows:5}),t.jsx(ve,{numberOfRows:3})]}),ve=({numberOfRows:e})=>{const o=v();return t.jsxs(is,{windowSize:o,children:[t.jsx(ss,{children:t.jsx(z,{width:y[12],height:Ne.standardRegular.lineHeightValue})}),t.jsx(os,{children:[...Array(e)].map(s=>t.jsx(Xo,{},ce()))})]})},ts=r.div`
465
+ `,Ko=()=>v()==="small"?t.jsx(Xo,{}):t.jsx(Jo,{}),Qo={marginLeft:new R(y[2],y[5],y[7])},es=()=>t.jsxs(ts,{children:[t.jsx(ve,{numberOfRows:5}),t.jsx(ve,{numberOfRows:3})]}),ve=({numberOfRows:e})=>{const o=v();return t.jsxs(is,{windowSize:o,children:[t.jsx(ss,{children:t.jsx(z,{width:y[12],height:Ne.standardRegular.lineHeightValue})}),t.jsx(os,{children:[...Array(e)].map(s=>t.jsx(Ko,{},ce()))})]})},ts=r.div`
466
466
  display: block;
467
467
  min-height: 100%;
468
468
  flex-direction: column;
@@ -479,7 +479,7 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
479
479
  `,ss=r.div`
480
480
  display: flex;
481
481
  padding: ${i.sp3} ${i.sp0};
482
- `,as=({notificationData:e,isSelectionMode:o=!1,isHighlighted:s=!1,style:a,onNotificationTileClick:n,onNotificationTileLongPress:l})=>{const{status:c,createTime:d,eventData:{entitiyId:h,activities:u},notificationId:p}=e,m=x.useCallback(()=>{l?.()},[l]),f=x.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]),b=ht({onLongPress:m},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(cs,{notificationStatus:c,isHighlighted:s,style:a,...b,onClick:f,children:[t.jsxs(Ue,{children:[t.jsx(rs,{...e}),t.jsx(ls,{createTime:d,notificationStatus:c})]}),t.jsxs(Ue,{children:[t.jsx(ns,{...e}),u.length>0&&u[0].activityType==="task_status_updated"?null:t.jsx(ds,{...e})]})]})},rs=e=>t.jsx(Ot,{statusUpdate:!1,children:t.jsx(Dt,{...e})}),ns=e=>{const{eventData:{activities:o}}=e;return t.jsx(Ot,{statusUpdate:o.length>0&&o[0].activityType==="task_status_updated"&&o[0].metadata.updates.find(s=>s.field==="status")!=null,children:t.jsx(_t,{...e})})},ls=e=>t.jsx(hs,{children:t.jsx(Mt,{...e})}),ds=e=>t.jsx(us,{children:t.jsx(At,{...e})}),cs=r.div`
482
+ `,as=({notificationData:e,isSelectionMode:o=!1,isHighlighted:s=!1,style:a,onNotificationTileClick:n,onNotificationTileLongPress:l})=>{const{status:c,createTime:d,eventData:{entitiyId:h,activities:u},notificationId:p}=e,m=x.useCallback(()=>{l?.()},[l]),f=x.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]),b=ht({onLongPress:m},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(cs,{notificationStatus:c,isHighlighted:s,style:a,...b,onClick:f,children:[t.jsxs(Ue,{children:[t.jsx(rs,{...e}),t.jsx(ls,{createTime:d,notificationStatus:c})]}),t.jsxs(Ue,{children:[t.jsx(ns,{...e}),u.length>0&&u[0].activityType==="task_status_updated"?null:t.jsx(ds,{...e})]})]})},rs=e=>t.jsx(At,{statusUpdate:!1,children:t.jsx(Dt,{...e})}),ns=e=>{const{eventData:{activities:o}}=e;return t.jsx(At,{statusUpdate:o.length>0&&o[0].activityType==="task_status_updated"&&o[0].metadata.updates.find(s=>s.field==="status")!=null,children:t.jsx(_t,{...e})})},ls=e=>t.jsx(hs,{children:t.jsx(Mt,{...e})}),ds=e=>t.jsx(us,{children:t.jsx(Ot,{...e})}),cs=r.div`
483
483
  display: flex;
484
484
  flex-direction: column;
485
485
  align-items: baseline;
@@ -511,7 +511,7 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
511
511
  border-bottom-right-radius: inherit;
512
512
  }
513
513
 
514
- ${e=>e.isHighlighted?O`
514
+ ${e=>e.isHighlighted?A`
515
515
  z-index: 1;
516
516
  color: ${e.theme.colors.primary};
517
517
  border: 1px solid ${e.theme.colors.primary};
@@ -550,18 +550,18 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
550
550
  width: 100%;
551
551
  justify-content: space-between;
552
552
  align-items: start;
553
- `,Ot=r(Q)`
553
+ `,At=r(Q)`
554
554
  color: inherit;
555
- ${e=>e.statusUpdate?O`
555
+ ${e=>e.statusUpdate?A`
556
556
  display: flex;
557
557
  flex-wrap: wrap;
558
558
  gap: ${i.sp2};
559
- `:O`
559
+ `:A`
560
560
  display: -webkit-box;
561
561
  -webkit-box-orient: horizontal;
562
562
  gap: ${i.sp1};
563
563
  `};
564
- `,Pt=e=>v()==="small"?t.jsx(as,{...e}):t.jsx(Io,{...e}),{common:{all:Ee}}=P.getLocalizedStrings(),ps=({notificationGroup:e,sectionId:o,checkBoxMode:s,style:a,isDisabled:n,onNotificationTileClick:l})=>{const c=X(),{getValues:d}=he(),h=d(o);return t.jsx(fs,{style:a,children:t.jsx(ue,{mode:s,checkBoxes:[{label:t.jsx(ms,{htmlFor:`${o}.${Ee.toLocaleLowerCase()}`,style:{color:c.colors.primary},children:me(e)}),value:Ee.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((u,p)=>{const m=p===0,f=e.notifications.length-1===p;return{label:t.jsx(Pt,{notificationData:u,style:{borderTopLeftRadius:m?i.sp2:void 0,borderTopRightRadius:m?i.sp2:void 0,borderBottomLeftRadius:f?i.sp2:void 0,borderBottomRightRadius:f?i.sp2:void 0},isHighlighted:h?.includes(u.notificationId)===!0,onNotificationTileClick:l}),value:u.notificationId,defaultChecked:!1,groupLabel:!1}})],name:o,isDisabled:n,style:{width:"100%"},checkBoxStyle:{padding:i.sp3},labelCheckBoxStyle:{padding:i.sp3}})})},fs=r.div`
564
+ `,Pt=e=>v()==="small"?t.jsx(as,{...e}):t.jsx(Io,{...e}),{common:{all:Ee}}=P.getLocalizedStrings(),ps=({notificationGroup:e,sectionId:o,checkBoxMode:s,style:a,isDisabled:n,onNotificationTileClick:l})=>{const c=K(),{getValues:d}=he(),h=d(o);return t.jsx(fs,{style:a,children:t.jsx(ue,{mode:s,checkBoxes:[{label:t.jsx(ms,{htmlFor:`${o}.${Ee.toLocaleLowerCase()}`,style:{color:c.colors.primary},children:me(e)}),value:Ee.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((u,p)=>{const m=p===0,f=e.notifications.length-1===p;return{label:t.jsx(Pt,{notificationData:u,style:{borderTopLeftRadius:m?i.sp2:void 0,borderTopRightRadius:m?i.sp2:void 0,borderBottomLeftRadius:f?i.sp2:void 0,borderBottomRightRadius:f?i.sp2:void 0},isHighlighted:h?.includes(u.notificationId)===!0,onNotificationTileClick:l}),value:u.notificationId,defaultChecked:!1,groupLabel:!1}})],name:o,isDisabled:n,style:{width:"100%"},checkBoxStyle:{padding:i.sp3},labelCheckBoxStyle:{padding:i.sp3}})})},fs=r.div`
565
565
  display: flex;
566
566
  align-items: center;
567
567
  width: 100%;
@@ -570,7 +570,7 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
570
570
  align-items: flex-start;
571
571
  width: 100%;
572
572
  padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp0};
573
- `,{common:{all:He}}=P.getLocalizedStrings(),gs=({notificationGroup:e,sectionId:o,checkBoxMode:s,style:a,isDisabled:n,onNotificationTileClick:l})=>{const c=X(),{getValues:d}=he(),h=d(o),u=x.useRef([]);return x.useEffect(()=>{u.current=u.current.slice(0,e.notifications.length)},[e.notifications.length]),t.jsx(xs,{style:a,children:t.jsx(ue,{mode:s,checkBoxes:[{label:t.jsx(Ye,{htmlFor:`${o}.${He.toLocaleLowerCase()}`,style:{color:c.colors.primary,marginLeft:i.sp2},children:me(e)}),value:He.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((p,m)=>{const f=m===0,b=e.notifications.length-1===m;return{label:t.jsx(Ye,{ref:k=>u.current[m]=k,htmlFor:`${o}.${p.notificationId}`,style:{padding:i.sp0},children:t.jsx(bs,{notificationData:p,style:{borderTopLeftRadius:f?i.sp2:void 0,borderTopRightRadius:f?i.sp2:void 0,borderBottomLeftRadius:b?i.sp2:void 0,borderBottomRightRadius:b?i.sp2:void 0,marginLeft:i.sp2},isHighlighted:h?.includes(p.notificationId)===!0,isSelectionMode:s==="always_on",onNotificationTileClick:l,onNotificationTileLongPress:()=>{u.current[m]?.click()}})}),value:p.notificationId,defaultChecked:!1,groupLabel:!1}})],name:o,isDisabled:n,style:{width:"100%",position:"relative"},checkBoxStyle:{padding:i.sp1,zIndex:2,left:`-${i.sp1}`,position:"absolute"},checkBoxIconStyle:{backgroundColor:c.colors.grey5}})})},xs=r.div`
573
+ `,{common:{all:He}}=P.getLocalizedStrings(),gs=({notificationGroup:e,sectionId:o,checkBoxMode:s,style:a,isDisabled:n,onNotificationTileClick:l})=>{const c=K(),{getValues:d}=he(),h=d(o),u=x.useRef([]);return x.useEffect(()=>{u.current=u.current.slice(0,e.notifications.length)},[e.notifications.length]),t.jsx(xs,{style:a,children:t.jsx(ue,{mode:s,checkBoxes:[{label:t.jsx(Ye,{htmlFor:`${o}.${He.toLocaleLowerCase()}`,style:{color:c.colors.primary,marginLeft:i.sp2},children:me(e)}),value:He.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((p,m)=>{const f=m===0,b=e.notifications.length-1===m;return{label:t.jsx(Ye,{ref:k=>u.current[m]=k,htmlFor:`${o}.${p.notificationId}`,style:{padding:i.sp0},children:t.jsx(bs,{notificationData:p,style:{borderTopLeftRadius:f?i.sp2:void 0,borderTopRightRadius:f?i.sp2:void 0,borderBottomLeftRadius:b?i.sp2:void 0,borderBottomRightRadius:b?i.sp2:void 0,marginLeft:i.sp2},isHighlighted:h?.includes(p.notificationId)===!0,isSelectionMode:s==="always_on",onNotificationTileClick:l,onNotificationTileLongPress:()=>{u.current[m]?.click()}})}),value:p.notificationId,defaultChecked:!1,groupLabel:!1}})],name:o,isDisabled:n,style:{width:"100%",position:"relative"},checkBoxStyle:{padding:i.sp1,zIndex:2,left:`-${i.sp1}`,position:"absolute"},checkBoxIconStyle:{backgroundColor:c.colors.grey5}})})},xs=r.div`
574
574
  display: flex;
575
575
  align-items: center;
576
576
  width: 100%;
@@ -596,7 +596,7 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
596
596
  top: ${i.sp0};
597
597
  left: ${i.sp0};
598
598
  box-sizing: border-box;
599
- `,{common:{all:Ce,texts:re,footer:Cs,strings:{plus:Ns},numbers:{maximumCount:Je}},commentsAndNotifications:{notifications:{title:Ts,texts:Bt,strings:Ze}}}=P.getLocalizedStrings(),te={tableContainerLeftPadding:new R(y[2],y[2],y[2]),tableContainerRightPadding:new R(y[3],y[6],y[8]),tabsContainerLeftRightPadding:new R(y[3],y[6],y[8]),selectedNotificationsTextMarginLeft:new R(y[0],y[6],y[6])},Ls={selectedNotificationsText:new ai("smallRegular","standardRegular")},qe="notificationsPage",q="commentsNotificationsTable",K="notificationsTable",Ft=20,aa=({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:b,onMarkAllNotificationsAsRead:k})=>{const B=X(),D=v(),T=Jt({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Qe(e),[e]),values:x.useMemo(()=>Qe(e),[e])}),{currentTab:w,currentSubTab:L,notificationDetailsByTab:j,allSubTabs:Y,allNotifications:I,allExternalNotifications:C,notificationsForCurrentTabAndSubTab:G,externalNotificationsForCurrentTabAndSubTab:V}=e,U=x.useMemo(()=>Object.keys(j).map($=>({label:re[$],id:re[$].toLocaleLowerCase(),countDetails:{count:j[$].uiState.unreadCount,isFetching:j[$].fetchCountState.fetchState==="In-Progress"}})),[j]),W=x.useMemo(()=>Y.map($=>({label:$==="all"?Ce:re[$],id:$})),[Y]),Gt=x.useMemo(()=>$t(V).filter($=>$.notifications.length>0),[V]),Ut=x.useMemo(()=>It(G).filter($=>$.notifications.length>0),[G]),Et=async($,N)=>{const F=$.split(".")[0],J=[];F!=null&&(F===q||F===K)&&(Object.values(N[F]).forEach(_=>{J.push(..._.filter(Wt=>Wt.includes(Ce.toLowerCase())===!1))}),d({selectedNotificationIds:J},w))};x.useEffect(()=>{const $=T.watch((N,{name:F})=>{F!=null&&N!=null&&Zt(()=>Et(F,N))});return()=>{$.unsubscribe()}});const ge=x.useCallback(()=>{const $=[],N=j[w].selectedNotificationIdsForSubTab,F="read";if(w==="comments"){const J=C.filter(_=>_.inboxNotification.readAt==null).map(_=>_.inboxNotification.id);N.forEach(_=>{J.includes(_)&&$.push(_)})}else{const J=I.filter(_=>_.status!==F).map(_=>_.notificationId);N.forEach(_=>{J.includes(_)&&$.push(_)})}return $},[C,I,w,j]),Ht=ge().length>Ft?"disabled":a,xe=T.watch(q),be=T.watch(K),Le=x.useCallback(()=>{p(w,L)},[p,w,L]),Yt=x.useCallback(()=>{if(w==="comments"){const $={};Object.keys(xe).forEach(N=>{$[N]=[]}),T.reset({[q]:$,[K]:be},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}else{const $={};Object.keys(be).forEach(N=>{$[N]=[]}),T.reset({[K]:$,[q]:xe},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}d({selectedNotificationIds:[]},w)},[be,xe]),Vt=x.useCallback(()=>{const $=j[w].selectedNotificationIdsForSubTab,N="read",F=ge();m(w,$,N,F)},[w,j,ge,m]);return t.jsxs(Rs,{children:[t.jsx(qt,{source:"NotificationsPage",title:Ts.notifications,backgroundColor:B.colors.grey4,onBackClick:b,rightSideComponent:s===!0?t.jsx(Vs,{onClick:f}):t.jsx(Ys,{})}),t.jsx(_s,{}),t.jsx(Ds,{windowSize:D,children:t.jsx(pi,{tabs:U,selectedTab:w,onTabChange:$=>{const N=g.toNotificationTabTypeStrict($);N!=null&&h(N)},subTabs:W,selectedSubTab:L,onSubTabChange:$=>{const N=g.toNotificationSubTabTypeStrict($);N!=null&&u(N)},subTabRightComponent:t.jsx(Is,{notificationCount:j[w].uiState.unreadCount,markAsAllReadUpdateState:j[w].markAsAllReadState.fetchState,markAsReadUpdateState:j[w].markAsReadState.fetchState,onMarkAsAllReadClick:()=>{k(w)}})})}),t.jsx(zs,{windowSize:D,children:t.jsx(Kt,{...T,children:t.jsx("form",{id:Xe(qe),onSubmit:T.handleSubmit(Vt),style:{width:"100%"},children:w==="comments"?t.jsx(go,{users:o,hasMore:j[w].uiState.hasMore,isFetching:j[w].fetchState==="In-Progress",scrollYOffset:j[w].uiState.scrollYOffset[L],currentSubTab:L,checkBoxMode:j[w].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Gt,sectionId:q,onFetchNotificationGroups:Le,onUpdateScrollYOffset:$=>c({scrollYOffset:{...j[w].uiState.scrollYOffset,[L]:$}},w),onNotificationClick:l}):t.jsx($s,{hasMore:j[w].uiState.hasMore,isFetching:j[w].fetchState==="In-Progress",scrollYOffset:j[w].uiState.scrollYOffset[L],currentSubTab:L,checkBoxMode:j[w].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Ut,sectionId:K,onFetchNotificationGroups:Le,onUpdateScrollYOffset:$=>c({scrollYOffset:{...j[w].uiState.scrollYOffset,[L]:$}},w),onNotificationClick:n})})})}),j[w].selectedNotificationIdsForSubTab.length?t.jsx(Xt,{formId:Xe(qe),primaryBtn:{label:Bt.markAsRead,isLoading:j[w].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},isDisabled:Ht!=null},cancelBtn:{label:Cs.cancel,isDisabled:j[w].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},onClick:Yt},helperContainerStyle:D==="small"?{width:"100%"}:{rowGap:i.sp0},footerContentStyle:{gap:i.sp2},leftSideComponent:t.jsx(we,{controller:D!=="small",children:t.jsx(Ke,{selectedNotificationsCount:j[w].selectedNotificationIdsForSubTab.length})}),topComponent:t.jsx(we,{controller:D==="small",children:t.jsx(Ke,{selectedNotificationsCount:j[w].selectedNotificationIdsForSubTab.length})}),rightSideComponent:t.jsx(we,{controller:D!=="small",children:t.jsx(Os,{})})}):null]})},Is=({markAsAllReadUpdateState:e,markAsReadUpdateState:o,notificationCount:s,onMarkAsAllReadClick:a})=>{const n=s===0,l=x.useCallback(()=>{e!=="In-Progress"&&o!=="In-Progress"&&!n&&a()},[e,o,n,a]);return t.jsx(Ms,{variant:"tertiary",size:"small",label:Bt.markAllAsRead,onClick:l,prefixIcon:e==="In-Progress"?t.jsx(ti,{size:"Small",start:!0}):t.jsx(As,{className:"mark-as-read"}),disabled:n,textStyle:{fontWeight:Ne.smallRegular.fontWeight},style:{borderRadius:i.sp1,border:"none",backgroundColor:"transparent",flexShrink:0,padding:i.sp0,cursor:o==="In-Progress"||e==="In-Progress"||n?"default":"pointer"}})},Ke=({selectedNotificationsCount:e})=>{const o=v();return t.jsxs(Ps,{windowSize:o,children:[t.jsx(Fs,{children:t.jsx(Bs,{isCircular:e<10,children:t.jsx(Gs,{children:e>Je?`${Je}${Ns}`:e})})}),t.jsxs(Hs,{windowSize:o,children:[t.jsx(Us,{children:e>1?Ze.notificationsSelected:Ze.notificationSelected}),e>Ft?t.jsx(Es,{children:re.maxLimit}):null]})]})},Rs=r.div`
599
+ `,{common:{all:Ce,texts:re,footer:Cs,strings:{plus:Ns},numbers:{maximumCount:Je}},commentsAndNotifications:{notifications:{title:Ts,texts:Bt,strings:qe}}}=P.getLocalizedStrings(),te={tableContainerLeftPadding:new R(y[2],y[2],y[2]),tableContainerRightPadding:new R(y[3],y[6],y[8]),tabsContainerLeftRightPadding:new R(y[3],y[6],y[8]),selectedNotificationsTextMarginLeft:new R(y[0],y[6],y[6])},Ls={selectedNotificationsText:new ai("smallRegular","standardRegular")},Xe="notificationsPage",X="commentsNotificationsTable",Z="notificationsTable",Ft=20,aa=({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:b,onMarkAllNotificationsAsRead:k})=>{const B=K(),D=v(),T=Jt({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Qe(e),[e]),values:x.useMemo(()=>Qe(e),[e])}),{currentTab:w,currentSubTab:L,notificationDetailsByTab:j,allSubTabs:Y,allNotifications:I,allExternalNotifications:C,notificationsForCurrentTabAndSubTab:G,externalNotificationsForCurrentTabAndSubTab:V}=e,U=x.useMemo(()=>Object.keys(j).map($=>({label:re[$],id:re[$].toLocaleLowerCase(),countDetails:{count:j[$].uiState.unreadCount,isFetching:j[$].fetchCountState.fetchState==="In-Progress"}})),[j]),W=x.useMemo(()=>Y.map($=>({label:$==="all"?Ce:re[$],id:$})),[Y]),Gt=x.useMemo(()=>$t(V).filter($=>$.notifications.length>0),[V]),Ut=x.useMemo(()=>It(G).filter($=>$.notifications.length>0),[G]),Et=async($,N)=>{const F=$.split(".")[0],J=[];F!=null&&(F===X||F===Z)&&(Object.values(N[F]).forEach(_=>{J.push(..._.filter(Wt=>Wt.includes(Ce.toLowerCase())===!1))}),d({selectedNotificationIds:J},w))};x.useEffect(()=>{const $=T.watch((N,{name:F})=>{F!=null&&N!=null&&qt(()=>Et(F,N))});return()=>{$.unsubscribe()}});const ge=x.useCallback(()=>{const $=[],N=j[w].selectedNotificationIdsForSubTab,F="read";if(w==="comments"){const J=C.filter(_=>_.inboxNotification.readAt==null).map(_=>_.inboxNotification.id);N.forEach(_=>{J.includes(_)&&$.push(_)})}else{const J=I.filter(_=>_.status!==F).map(_=>_.notificationId);N.forEach(_=>{J.includes(_)&&$.push(_)})}return $},[C,I,w,j]),Ht=ge().length>Ft?"disabled":a,xe=T.watch(X),be=T.watch(Z),Le=x.useCallback(()=>{p(w,L)},[p,w,L]),Yt=x.useCallback(()=>{if(w==="comments"){const $={};Object.keys(xe).forEach(N=>{$[N]=[]}),T.reset({[X]:$,[Z]:be},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}else{const $={};Object.keys(be).forEach(N=>{$[N]=[]}),T.reset({[Z]:$,[X]:xe},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}d({selectedNotificationIds:[]},w)},[be,xe]),Vt=x.useCallback(()=>{const $=j[w].selectedNotificationIdsForSubTab,N="read",F=ge();m(w,$,N,F)},[w,j,ge,m]);return t.jsxs(Rs,{children:[t.jsx(Xt,{source:"NotificationsPage",title:Ts.notifications,backgroundColor:B.colors.grey4,onBackClick:b,rightSideComponent:s===!0?t.jsx(Vs,{onClick:f}):t.jsx(Ys,{})}),t.jsx(_s,{}),t.jsx(Ds,{windowSize:D,children:t.jsx(pi,{tabs:U,selectedTab:w,onTabChange:$=>{const N=g.toNotificationTabTypeStrict($);N!=null&&h(N)},subTabs:W,selectedSubTab:L,onSubTabChange:$=>{const N=g.toNotificationSubTabTypeStrict($);N!=null&&u(N)},subTabRightComponent:t.jsx(Is,{notificationCount:j[w].uiState.unreadCount,markAsAllReadUpdateState:j[w].markAsAllReadState.fetchState,markAsReadUpdateState:j[w].markAsReadState.fetchState,onMarkAsAllReadClick:()=>{k(w)}})})}),t.jsx(zs,{windowSize:D,children:t.jsx(Zt,{...T,children:t.jsx("form",{id:Ke(Xe),onSubmit:T.handleSubmit(Vt),style:{width:"100%"},children:w==="comments"?t.jsx(go,{users:o,hasMore:j[w].uiState.hasMore,isFetching:j[w].fetchState==="In-Progress",scrollYOffset:j[w].uiState.scrollYOffset[L],currentSubTab:L,checkBoxMode:j[w].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Gt,sectionId:X,onFetchNotificationGroups:Le,onUpdateScrollYOffset:$=>c({scrollYOffset:{...j[w].uiState.scrollYOffset,[L]:$}},w),onNotificationClick:l}):t.jsx($s,{hasMore:j[w].uiState.hasMore,isFetching:j[w].fetchState==="In-Progress",scrollYOffset:j[w].uiState.scrollYOffset[L],currentSubTab:L,checkBoxMode:j[w].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Ut,sectionId:Z,onFetchNotificationGroups:Le,onUpdateScrollYOffset:$=>c({scrollYOffset:{...j[w].uiState.scrollYOffset,[L]:$}},w),onNotificationClick:n})})})}),j[w].selectedNotificationIdsForSubTab.length?t.jsx(Kt,{formId:Ke(Xe),primaryBtn:{label:Bt.markAsRead,isLoading:j[w].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},isDisabled:Ht!=null},cancelBtn:{label:Cs.cancel,isDisabled:j[w].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},onClick:Yt},helperContainerStyle:D==="small"?{width:"100%"}:{rowGap:i.sp0},footerContentStyle:{gap:i.sp2},leftSideComponent:t.jsx(we,{controller:D!=="small",children:t.jsx(Ze,{selectedNotificationsCount:j[w].selectedNotificationIdsForSubTab.length})}),topComponent:t.jsx(we,{controller:D==="small",children:t.jsx(Ze,{selectedNotificationsCount:j[w].selectedNotificationIdsForSubTab.length})}),rightSideComponent:t.jsx(we,{controller:D!=="small",children:t.jsx(As,{})})}):null]})},Is=({markAsAllReadUpdateState:e,markAsReadUpdateState:o,notificationCount:s,onMarkAsAllReadClick:a})=>{const n=s===0,l=x.useCallback(()=>{e!=="In-Progress"&&o!=="In-Progress"&&!n&&a()},[e,o,n,a]);return t.jsx(Ms,{variant:"tertiary",size:"small",label:Bt.markAllAsRead,onClick:l,prefixIcon:e==="In-Progress"?t.jsx(ti,{size:"Small",start:!0}):t.jsx(Os,{className:"mark-as-read"}),disabled:n,textStyle:{fontWeight:Ne.smallRegular.fontWeight},style:{borderRadius:i.sp1,border:"none",backgroundColor:"transparent",flexShrink:0,padding:i.sp0,cursor:o==="In-Progress"||e==="In-Progress"||n?"default":"pointer"}})},Ze=({selectedNotificationsCount:e})=>{const o=v();return t.jsxs(Ps,{windowSize:o,children:[t.jsx(Fs,{children:t.jsx(Bs,{isCircular:e<10,children:t.jsx(Gs,{children:e>Je?`${Je}${Ns}`:e})})}),t.jsxs(Hs,{windowSize:o,children:[t.jsx(Us,{children:e>1?qe.notificationsSelected:qe.notificationSelected}),e>Ft?t.jsx(Es,{children:re.maxLimit}):null]})]})},Rs=r.div`
600
600
  display: flex;
601
601
  height: 100vh;
602
602
  width: 100%;
@@ -627,21 +627,21 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
627
627
  color: ${e=>e.disabled===!0?e.theme.colors.grey2:e.theme.colors.primary};
628
628
  }
629
629
  }
630
- `,As=r(oi)`
630
+ `,Os=r(oi)`
631
631
  width: ${i.sp3};
632
632
  height: ${i.sp3};
633
- `,Os=r.div``,Ps=r.div`
633
+ `,As=r.div``,Ps=r.div`
634
634
  display: flex;
635
635
  align-items: center;
636
636
  flex-direction: row;
637
637
  gap: ${i.sp2};
638
638
  margin-left: ${e=>te.selectedNotificationsTextMarginLeft.valuePx(e.windowSize)};
639
639
  `,Bs=r.div`
640
- ${e=>e.isCircular?O`
640
+ ${e=>e.isCircular?A`
641
641
  height: ${i.sp3};
642
642
  width: ${i.sp3};
643
643
  padding: ${i.sp0};
644
- `:O`
644
+ `:A`
645
645
  height: 18px;
646
646
  min-width: ${i.sp3};
647
647
  padding: ${i.sp0} ${i.sp1};
@@ -682,4 +682,4 @@ import{u as X,e as v,a as Jt,M as P,c9 as Zt,j as t,aW as qt,l as g,F as Kt,a3 a
682
682
  &:hover {
683
683
  color: ${e=>e.theme.colors.primary};
684
684
  }
685
- `,Xe=e=>`${e}_form`,Qe=e=>{const{allNotifications:o,allExternalNotifications:s,notificationDetailsByTab:{tasks:{selectedNotificationIds:a},comments:{selectedNotificationIds:n}}}=e,l={};It(o).filter(d=>d.notifications.length>0).forEach(d=>{const h=d.notifications.map(u=>u.notificationId);l[ne(d)]=a.filter(u=>h.includes(u))});const c={};return $t(s).filter(d=>d.notifications.length>0).forEach(d=>{const h=d.notifications.map(u=>u.inboxNotification.id);c[ne(d)]=n.filter(u=>h.includes(u))}),{[q]:c,[K]:l}},ra=(e,o)=>{const s=[];return Object.values(e).forEach(a=>{a.forEach(n=>{n.includes(Ce.toLocaleLowerCase())===!1&&o.includes(n)&&s.push(n)})}),s};export{aa as default,ra as getSelectedNotificationIds,Xe as uniqueFormName};
685
+ `,Ke=e=>`${e}_form`,Qe=e=>{const{allNotifications:o,allExternalNotifications:s,notificationDetailsByTab:{tasks:{selectedNotificationIds:a},comments:{selectedNotificationIds:n}}}=e,l={};It(o).filter(d=>d.notifications.length>0).forEach(d=>{const h=d.notifications.map(u=>u.notificationId);l[ne(d)]=a.filter(u=>h.includes(u))});const c={};return $t(s).filter(d=>d.notifications.length>0).forEach(d=>{const h=d.notifications.map(u=>u.inboxNotification.id);c[ne(d)]=n.filter(u=>h.includes(u))}),{[X]:c,[Z]:l}},ra=(e,o)=>{const s=[];return Object.values(e).forEach(a=>{a.forEach(n=>{n.includes(Ce.toLocaleLowerCase())===!1&&o.includes(n)&&s.push(n)})}),s};export{aa as default,ra as getSelectedNotificationIds,Ke as uniqueFormName};