1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2570],{14762:(t,i,n)=>{"use strict";n.r(i),n.d(i,{default:()=>x});var o=n(37876);n(14232);var e=n(97719),a=n(60929),l=n(7001),c=n(74613),s=n(56720),d=n(88916),r=n.n(d),_=n(6226),u=n(26435),m=n(10841),f=n.n(m),p=n(17063),v=n(89099),h=n(31777),N=n(85610);function x(t){let{notifications:i=[],selected:n,handleSelect:d,handleMarkRead:m,handleDelete:x}=t,{user:b}=(0,h.d4)(t=>{var i;return null!=(i=null==t?void 0:t.auth)?i:{}}),j=(0,v.useRouter)(),k=t=>{var i;j.push("/profile?memberId=".concat(null==t||null==(i=t.actionUser)?void 0:i.id))};return(0,o.jsx)(o.Fragment,{children:null==i?void 0:i.map(t=>{var i,v,h;return(0,o.jsxs)(e.A,{className:r().item,children:[(0,o.jsx)(a.A,{xs:"auto",children:(0,o.jsx)(l.A.Check,{type:"checkbox",checked:!!n[t.id],onChange:()=>d(t.id)})}),(null==t||null==(i=t.actionUser)?void 0:i.image)?(0,o.jsx)(a.A,{xs:"auto",children:(0,o.jsx)(p.A,{src:(0,N.VG)(null==t||null==(v=t.actionUser)?void 0:v.image)||"https://www.gravatar.com/avatar/51fefc699e3a16fbe3ae563031abd48a?s=200&r=g&d=identicon",alt:null==t?void 0:t.title,width:40,height:40,padding:0,rounded:!0,className:r().avatar,onClick:()=>k(t)})}):(0,o.jsx)(a.A,{xs:"auto",children:(0,o.jsx)("div",{className:r().avatarFallback,onClick:()=>k(t)})}),(0,o.jsxs)(a.A,{children:[(0,o.jsx)("p",{className:r().msg,onClick:(null==t||null==(h=t.content)?void 0:h.type)=="connection_request"?()=>k(t):()=>(t=>{var i,n,o,e,a,l,c,s,d,r,_;if((null==t||null==(i=t.content)?void 0:i.type)=="connection_request")j.push("/profile/connections/?tab=requests&memberId=".concat(null==b||null==(e=b.data)?void 0:e.id));else if((null==t||null==(n=t.content)?void 0:n.type)=="topic"){let i=encodeURIComponent(null==t||null==(a=t.content)?void 0:a.title);j.push({pathname:"/forums/".concat(i,"/topic/").concat(null==t||null==(l=t.content)?void 0:l.topicId),query:{subForumId:null==t||null==(c=t.content)?void 0:c.subForumId}})}else if((null==t||null==(o=t.content)?void 0:o.type)=="comment"){let i=encodeURIComponent(null==t||null==(s=t.content)?void 0:s.title);j.push({pathname:"/forums/".concat(i,"/topic/").concat(null==t||null==(d=t.content)?void 0:d.topicId),query:{subForumId:null==t||null==(r=t.content)?void 0:r.subForumId,commentId:null==t||null==(_=t.content)?void 0:_.commentId}})}})(t),children:t.message}),(0,o.jsx)("small",{className:r().time,children:f()(t.created_at||t.time).fromNow()})]}),(0,o.jsxs)(a.A,{xs:"auto",className:"".concat(r().actions," d-flex gap-2"),children:[(0,o.jsx)(c.A,{placement:"top",overlay:(0,o.jsx)(s.A,{id:"mark-read-".concat(t.id),children:"Mark Read"}),children:(0,o.jsx)("div",{children:(0,o.jsx)(u.q6e,{style:{cursor:"pointer",color:"#939597"},onClick:()=>m(t)})})}),(0,o.jsx)(c.A,{placement:"top",overlay:(0,o.jsx)(s.A,{id:"delete-".concat(t.id),children:"Delete"}),children:(0,o.jsx)("div",{children:(0,o.jsx)(_.Ku6,{className:r().deleteIcon,onClick:()=>x(t.id)})})})]})]},t.id)})})}},32565:(t,i,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/unread",function(){return n(14762)}])},88916:t=>{t.exports={wrapper:"Notifications_wrapper__fFSnz",heading:"Notifications_heading__v7Ed4",topRow:"Notifications_topRow__qDk_H",list:"Notifications_list__n_BIO",listScroll:"Notifications_listScroll__l2GBa",item:"Notifications_item__ED0ew",msg:"Notifications_msg__cyGDh",time:"Notifications_time__8KVya",actions:"Notifications_actions__vwi50",emptyBox:"Notifications_emptyBox__Kc443",tabBtn:"Notifications_tabBtn__k4ANO",activeTab:"Notifications_activeTab__g2v_U",avatarFallback:"Notifications_avatarFallback__qeYOM",popup:"Notifications_popup__gfUCs",header:"Notifications_header__KNvaI",body:"Notifications_body__HZZYW",notificationItem:"Notifications_notificationItem__PqD3c",deleteIcon:"Notifications_deleteIcon__4vWYd",unread:"Notifications_unread__MGCfv",avatar:"Notifications_avatar__YSpBx",content:"Notifications_content__ClHCV",title:"Notifications_title__95HB9",footer:"Notifications_footer__4AMSb",noCaret:"Notifications_noCaret__ff1e1"}}},t=>{t.O(0,[2768,636,6593,8792],()=>t(t.s=32565)),_N_E=t.O()}]);
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.