1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3051],{83022:function(t,e,n){"use strict";n.d(e,{m:function(){return i}});var a=n(67294),i=function(t){var e=t.totalPage,n=t.currentPage,i=t.siblingsSize,u=void 0===i?2:i,l=t.boundarySize,r=void 0===l?2:l,s=[].concat(Array(e)).fill(1).map(function(t,e){return e+1}),c=(0,a.useState)([]),o=c[0],d=c[1],f=2*u+1,g=(0,a.useCallback)(function(){return n<=u},[n,u]),_=(0,a.useCallback)(function(){return n+u>=e},[n,u,e]),h=(0,a.useCallback)(function(){return g()?d(s.slice(0,f)):_()?d(s.slice(-f)):d(s.slice(n-u-1,n+u))},[g,_,n,u,f]),p=(0,a.useCallback)(function(){return n>1},[n]),y=(0,a.useCallback)(function(){return e>n},[e,n]),b=s.slice(0,o[0]-1),x=s.slice(o[o.length-1],s[s.length]),k=(0,a.useCallback)(function(){return g()||b.length<1?[]:s.slice(0,r).filter(function(t){return!o.includes(t)})},[r,g,o,b.length,s]),m=(0,a.useCallback)(function(){return _()||x.length<1?[]:s.slice(s.length-r,s.length).filter(function(t){return!o.includes(t)})},[r,_,x.length,o,s]),C=b.filter(function(t){return!k().includes(t)&&!o.includes(t)}).length>0,j=x.filter(function(t){return!m().includes(t)&&!o.includes(t)}).length>0;return(0,a.useEffect)(function(){h()},[e,n,h]),{pages:o,hasPrev:p,hasNext:y,getFirstBoundary:k,getLastBoundary:m,isPrevTruncated:C,isNextTruncated:j,totalPage:e,currentPage:n}}},85948:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/gotha/page/[page]",function(){return n(97061)}])},97061:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSG:function(){return h}});var a=n(85893),i=n(51526),u=n(47311),l=n(9008),r=n.n(l),s=n(11163),c=n(67294),o=n(45852),d=n(21985),f=n(76993),g=n(97444),_=n(41109),h=!0;e.default=t=>{let{staticContent:e,dynamicContent:n,page:l}=t,h=(0,s.useRouter)(),{tLink:p}=(0,o.Z)();(0,c.useEffect)(()=>{"1"===l&&h.push(p("/gotha"))},[l,h]);let y=(0,c.useMemo)(()=>(0,u.ZP)((null==e?void 0:e.yoast_head)||""),[null==e?void 0:e.yoast_head]),b=(0,c.useMemo)(()=>{let t=[];if(n&&n.data){let e=n.data.ads.find(t=>"1547"===t.group_id),a=n.data.ads.find(t=>"1548"===t.group_id);t.push(e||{no_ad_to_display:!0}),t.push(a||{no_ad_to_display:!0})}return t},[n]);return h.isFallback?(0,a.jsx)(i.M,{mode:"wait",children:(0,a.jsx)(f.Z,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},children:(0,a.jsx)(_.Z,{categorySlug:"gotha"})},"listingArticlesSkeleton")}):(0,a.jsx)(i.M,{mode:"wait",children:(0,a.jsxs)(f.Z,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[(0,a.jsx)(r(),{children:y}),!b[0].no_ad_to_display&&(0,a.jsx)(g.Z,{content:b[0],mt:4}),(0,a.jsx)(d.Z,{category:e.data.category,subCategories:e.data.sub_categories,articles:e.data.articles,total_pages:e.data.total_pages,taxonomy:"gotha",py:8}),!b[1].no_ad_to_display&&(0,a.jsx)(g.Z,{content:b[1],mb:8})]},"listingArticlesContent")})}}},function(t){t.O(0,[7311,6492,997,8337,1109,2888,9774,179],function(){return t(t.s=85948)}),_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.