1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9514],{59796:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/notice/following",function(){return e(50373)}])},50373:function(n,t,e){"use strict";e.r(t),e.d(t,{__N_SSG:function(){return b}});var r=e(47568),i=e(29815),u=e(20414),o=e(85893),c=e(67294),a=e(9008),s=e.n(a),l=e(11163),f=e(60253),h=e(8936),d=e(49384),v=e(13048),g=e(11173),p=e(92674),Z=e(62415),x=e(62284),_=e(86263),j=e(92882),m=e(73844),k=e(10129),w=e(3526),y=e(37648),N=e(92025),b=!0;t.default=function(){var n,t=(0,l.useRouter)(),e=(0,g.Z)((function(n,t){if(!n)return"/auth/notification?last_id=0&group=post";if(!(null===t||void 0===t?void 0:t.length))return null;var e=t[t.length-1].ID;return e?"/auth/notification?last_id=".concat(e,"&group=post"):null})),a=e.data,b=e.mutate,C=e.size,E=e.setSize,I=(0,v.Z)("/auth/notification/count").mutate,S=(0,f.$G)().t,D=(0,p.Z)(),T=((null===a||void 0===a?void 0:a.length)||0)<C,A=0===(null===a||void 0===a||null===(n=a[0])||void 0===n?void 0:n.length),F=null===a||void 0===a?void 0:a[(null===a||void 0===a?void 0:a.length)-1],P=A||F&&F.length<25,z=c.useMemo((function(){var n;if(!a)return[];var t=a.filter((function(n){return!!n}));return(n=[]).concat.apply(n,(0,i.Z)(t))}),[a]);c.useEffect((function(){var n=function(n){n.includes("/auth/notice")||(D("/auth/notification",{method:"PUT"}).catch((function(n){return(0,d.kg)(n)})),I(0,!1).catch((function(n){return(0,d.kg)(n)})))};return t.events.on("routeChangeStart",n),function(){t.events.off("routeChangeStart",n)}}),[D,I,t]);var G=c.useCallback(function(){var n=(0,r.Z)((function(n){var t;return(0,u.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,b((function(t){if(!t)return t;for(var e=(0,i.Z)(t),r=0;r<e.length;r+=1)for(var u=(0,i.Z)(e[r]||[]),o=0;o<u.length;o+=1)if(u[o].ID===n.ID){u.splice(o,1,n),e.splice(r,1,u);break}return e}),!1)];case 1:return e.sent(),[3,3];case 2:return t=e.sent(),(0,d.kg)(t),[3,3];case 3:return[2]}}
1))}));return function(t){return n.apply(this,arguments)}}(),[b]),O=c.useCallback((function(){return E((function(n){return n+1}))}),[E]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s(),{children:(0,o.jsx)("title",{children:"Baskadia"})}),(0,o.jsx)(x.Z,{component:"main",style:{marginTop:"16px",overflowAnchor:"none"},children:(0,o.jsxs)(_.Z,{children:[(0,o.jsx)(m.Z,{children:(0,o.jsx)(Z.Z,{})}),A&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(m.Z,{children:(0,o.jsx)(h.Z,{severity:"info",children:S("no-notifications-yet")})}),(0,o.jsx)(m.Z,{children:(0,o.jsx)(N.Z,{})})]}),z.map((function(n,t){return(0,o.jsxs)(c.Fragment,{children:[0===t&&(0,o.jsx)(j.Z,{}),(0,o.jsx)(k.Z,{notice:n,onNoticeUpdate:G})]},n.ID)})),T&&Array.from(Array(8).keys()).map((function(n){return(0,o.jsx)(w.Z,{},n)})),(0,o.jsx)(m.Z,{children:(0,o.jsx)(y.Z,{loading:T,completed:!!P,onIntersect:O})})]})})]})}}},function(n){n.O(0,[8652,3576,868,4116,5749,5467,6405,9358,4165,9774,2888,179],(function(){return t=59796,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
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.