1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3494],{15313:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/notifications",function(){return t(27605)}])},27605:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>w});var s=t(6029),a=t(16972),n=t(55729),i=t(11211),r=t(73210);let c=n.forwardRef((e,l)=>n.createElement(i.A,{ref:l,...e,weights:r.A}));c.displayName="BellSlashIcon";var d=t(73492),u=t(65403),x=t(39794),o=t(50761),p=t(40334),f=t(79823),h=t(81239);let m=e=>{var l;let{notification:t,navigateTo:a}=e,{mutate:n}=(0,d.qQ)(),{getFileUrl:i}=(0,p.Co)();return(0,s.jsxs)(u.$,{variant:"null",className:(0,x.cn)("flex h-fit w-full items-start gap-4 rounded-none px-3.5 py-3 focus:border-transparent focus:outline-none focus:ring-0",{"bg-[#ECEEF0]":t.read,"bg-white":!t.read}),onClick:()=>(e=>{n(e.id),e.url&&a(e.url)})(t),children:[t.picture&&(0,s.jsx)("div",{className:"flex h-full cursor-pointer justify-center gap-4 rounded-full",children:(0,s.jsx)(o.A,{imgUrl:i(null==(l=t.picture)?void 0:l.key,"media"),className:"size-[32px]",pellet:!t.read})}),(0,s.jsxs)("div",{className:"flex flex-1 flex-col items-start",children:[(0,s.jsx)("p",{className:"whitespace-pre-wrap text-start text-[14px] leading-[21px] ",children:t.description}),(0,s.jsxs)("p",{className:"text-[12px] leading-[18px] text-[#667085]",children:["il y a"," ",(0,f.m)(new Date(t.createdAt),{locale:h.fr})]})]})]})};var g=t(7026),j=t(81278),v=t(43072);let w=function(){var e,l,t,i,r,d;let{notifications:u,fetchNextPage:x,isLoading:o}=(0,g.M)(),{ref:p,inView:f}=(0,v.Wx)();(0,n.useEffect)(()=>{f&&!o&&x()},[x,f]);let h=(0,j.useRouter)();return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{children:[(null==u||null==(t=u.pages)||null==(l=t[0])||null==(e=l.data)?void 0:e.length)===0&&(0,s.jsxs)("div",{className:"flex h-32 flex-col items-center justify-center gap-2 px-6",children:[(0,s.jsx)(c,{width:24,height:24,fill:"#98A2B3"}),(0,s.jsx)("div",{className:"text-center text-[16px] font-semibold leading-[24px] text-[#667085]",children:"Aucune notification"})]}),u&&(null==u||null==(d=u.pages)||null==(r=d[0])||null==(i=r.data)?void 0:i.length)>0&&(0,s.jsxs)(s.Fragment,{children:[u.pages.map(e=>(0,s.jsx)(n.Fragment,{children:e.data.map(e=>(0,s.jsxs)("li",{className:"contents",children:[(0,s.jsx)(m,{notification:e,navigateTo:h.push},e.id),(0,s.jsx)(a.w,{})]},e.id))},e.pageIndex)),!o&&(0,s.jsx)("div",{ref:p})]})]})})}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=15313)),_N_E=e.O()}]); 2//# sourceMappingURL=notifications-4a0808b4031e5bee.js.map
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.