PageSourceSearch

https://tuforums.com/assets/NotificationsPage.Bz7f211v.js

js tuforums.com collected 2026-09-24 14:20:07 UTC 2,044 bytes, 1 lines download raw bytes

1import{dC as u,j as t,dD as p}from"./index.CHvzgvcl.js";import{r as m}from"./reactRouter.DIJDf_PU.js";import{u as g}from"./i18n.CnDgzqyN.js";import"./recharts.CxMvZdXo.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"9285efe8a8dce1f690960d89b06301901087e606"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(i){for(var o=1;o<arguments.length;o++){var n=arguments[o];if(n!=null)for(var a in n)n.hasOwnProperty(a)&&(i[a]=n[a])}return i}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:tuf-website":!0});var s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="699ed813-9b24-4bcd-a299-753ebfcc6829",e._sentryDebugIdIdentifier="sentry-dbid-699ed813-9b24-4bcd-a299-753ebfcc6829")}catch{}})();const x=()=>{const{t:e}=g("pages"),{items:s,unreadCount:i,nextCursor:o,loading:n,refresh:a,loadMore:d,markRead:l,markAllRead:c,hide:f}=u();return m.useEffect(()=>{a()},[a]),t.jsxs("div",{className:"notifications-page page-content-70rem",children:[t.jsxs("div",{className:"notifications-page__header",children:[t.jsxs("div",{className:"notifications-page__heading",children:[t.jsx("h1",{className:"notifications-page__title",children:e("notifications.title")}),t.jsx("p",{className:"notifications-page__subtitle",children:i>0?e("notifications.unread",{count:i}):e("notifications.subtitle")})]}),i>0?t.jsx("button",{type:"button",className:"notifications-page__mark-all",onClick:c,children:e("notifications.markAllRead")}):null]}),t.jsx("div",{className:"notifications-page__list",children:s.length?s.map(r=>t.jsx(p,{notification:r,onRead:l,onHide:f},r.id)):t.jsx("p",{className:"notifications-page__empty",children:e(n?"notifications.loading":"notifications.empty")})}),o?t.jsx("button",{type:"button",className:"notifications-page__more",onClick:d,disabled:n,children:e("notifications.loadMore")}):null]})};export{x as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.