1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3332],{89255:function(n,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/comment",function(){return r(55839)}])},55839:function(n,e,r){"use strict";r.r(e),r.d(e,{__N_SSG:function(){return x}});var t=r(47568),u=r(29815),i=r(20414),c=r(85893),o=r(67294),a=r(9008),s=r.n(a),l=r(60253),f=r(8936),h=r(49384),d=r(11173),v=r(62284),p=r(66158),m=r(86263),_=r(73844),Z=r(37648),g=r(13125),x=!0;e.default=function(){var n,e=(0,d.Z)((function(n){return"/auth/comment?offset=".concat(20*n)})),r=e.data,a=e.mutate,x=e.size,j=e.setSize,k=(0,l.$G)().t,y=((null===r||void 0===r?void 0:r.length)||0)<x,b=0===(null===r||void 0===r||null===(n=r[0])||void 0===n?void 0:n.length),w=null===r||void 0===r?void 0:r[(null===r||void 0===r?void 0:r.length)-1],C=b||w&&w.length<20,D=o.useMemo((function(){var n;if(!r)return[];var e=r.filter((function(n){return!!n}));return(0,h.D8)((n=[]).concat.apply(n,(0,u.Z)(e)))}),[r]),I=o.useCallback(function(){var n=(0,t.Z)((function(n){var e;return(0,i.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,a((function(e){if(!e)return e;for(var r=(0,u.Z)(e),t=0;t<r.length;t+=1)for(var i=(0,u.Z)(r[t]||[]),c=0;c<i.length;c+=1)if(i[c].ID===n.ID){i.splice(c,1),r.splice(t,1,i);break}return r}),!1)];case 1:return r.sent(),[3,3];case 2:return e=r.sent(),(0,h.kg)(e),[3,3];case 3:return[2]}}
1))}));return function(e){return n.apply(this,arguments)}}(),[a]),N=o.useCallback(function(){var n=(0,t.Z)((function(n){var e;return(0,i.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,a((function(e){if(!e)return e;for(var r=(0,u.Z)(e),t=0;t<r.length;t+=1)for(var i=(0,u.Z)(r[t]||[]),c=0;c<i.length;c+=1)if(i[c].ID===n.ID){i.splice(c,1,n),r.splice(t,1,i);break}return r}),!1)];case 1:return r.sent(),[3,3];case 2:return e=r.sent(),(0,h.kg)(e),[3,3];case 3:return[2]}}))}));return function(e){return n.apply(this,arguments)}}(),[a]),E=o.useCallback((function(){return j((function(n){return n+1}))}),[j]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s(),{children:(0,c.jsx)("title",{children:"Baskadia"})}),(0,c.jsx)(v.Z,{component:"main",style:{marginTop:"16px",overflowAnchor:"none"},children:(0,c.jsxs)(m.Z,{children:[b&&(0,c.jsx)(_.Z,{children:(0,c.jsx)(f.Z,{severity:"info",variant:"filled",children:k("there-are-no-comments")})}),D.map((function(n){return(0,c.jsx)(_.Z,{children:(0,c.jsx)(p.Z,{comment:n,onCommentDelete:I,onCommentUpdate:N})},n.ID)})),y&&Array.from(Array(20).keys()).map((function(n){return(0,c.jsx)(_.Z,{children:(0,c.jsx)(g.Z,{})},n)})),(0,c.jsx)(_.Z,{children:(0,c.jsx)(Z.Z,{loading:y,completed:!!C,onIntersect:E})})]})})]})}}},function(n){n.O(0,[8652,3138,2387,4794,9803,3322,9413,6267,6352,9774,2888,179],(function(){return e=89255,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
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.