1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3787],{24910:(e,t,s)=>{"use strict";s.r(t),s.d(t,{AllArticles:()=>A,default:()=>m});var l=s(37876),i=s(14232),n=s(65422),r=s(13734),a=s(89099),u=s.n(a),c=s(92972),d=s(17074),o=s(94380),g=s(2602),h=s(22464),x=s(27250),_=s(64177),f=s(76319),p=s(69779),j=s(7776);function A(e){let{router:t}=e,{data:s}=(0,x.IT)(g.iC),[a,c]=(0,i.useState)(),[d,A]=(0,i.useState)(!1),m=s?.externuses||[],[E,N]=(0,i.useState)(1),[v,w]=(0,i.useState)([]),[y,C]=(0,i.useState)(!1);(0,i.useEffect)(()=>{w(m.slice(0,15)),N(1),C(!1)},[m]);let O=v.length<m.length,[S,{loading:b}]=(0,_.n)(h.jE,{onCompleted({deleteArticle:e}){r.oR.success(e.message)},refetchQueries:[{query:g.iC}]}),k=(e,t)=>{if(c(e),"edit"===t)"Externus"===e.__typename?A(!0):u().push(j.A.editArticle+"/"+e.slug);else if("delete"==t){if(b)return;S({variables:{slug:e.slug}})}};return(0,l.jsx)(o.O,{currentUrl:t.asPath,isFooterVisible:!1,isReadingPage:!0,children:(0,l.jsxs)("div",{children:[(0,l.jsx)(n.A,{dataLength:v.length,next:()=>{if(y||!O)return;C(!0);let e=E+1,t=m.slice((e-1)*15,15*e);setTimeout(()=>{w(e=>[...e,...t]),N(e),C(!1)},600)},hasMore:O,loader:v.length>=10?(0,l.jsx)("div",{className:"text-center py-4 text-gray-600",children:"Loading more articles..."}):(0,l.jsx)("div",{className:"text-center py-4 text-gray-600",children:"Loading..."}),children:v?.map((e,t)=>(0,l.jsx)(f.e,{article:e,onArticleAction:k},e?.slug||t))}),(0,l.jsx)("div",{children:(0,l.jsx)(p.A,{isModalOpen:d,setIsModalOpen:A,nextCursor:null,externus:a})})]})})}A.guards=[c.g.ADMIN];let m=(0,d.J)(A)},91082:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/all-articles",function(){return s(24910)}])}},e=>{e.O(0,[8319,3081,9338,4029,8070,7615,1274,508,3630,1799,7673,8121,8263,8779,563,6203,8405,1680,8313,6335,3238,4908,9290,5019,5367,3269,4269,6321,7366,5030,465,3719,9173,8612,5092,6960,4083,6682,2769,7438,3699,9219,7300,5917,6231,6611,6933,2964,9656,1813,3043,9976,8189,1687,428,369,443,6835,8422,2308,9184,9006,7244,7585,8066,8374,8209,6979,8311,3735,8792],()=>e(e.s=91082)),_N_E=e.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.