1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6856],{0:(e,a,t)=>{t.d(a,{A:()=>s});let s=async({page:e,setItems:a,setPage:t,setShowLoadMoreButton:s,options:l})=>{let n=JSON.stringify({page:e+1,...l}),i=await fetch("/api/articles",{method:"POST",headers:{"Content-Type":"application/json"},body:n});if(i.ok){let e=await i.json(),{currentPage:l,pagesCount:n}=e.metadata.aggregate;a(a=>[...a,...e.items]),t(l),l>=n&&s(!1)}}},6228:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(5155),l=t(2115);let n=({onClick:e,loading:a})=>(0,s.jsxs)("button",{className:"btn btn--load center",onClick:e,disabled:a,children:[(0,s.jsx)("span",{className:"btn__spin"}),"UÄitaj joÅ¡"]}),i=({onLoadMore:e})=>{let[a,t]=(0,l.useState)(!1),i=async()=>{t(!0),await e(),t(!1)};return(0,s.jsx)("div",{children:(0,s.jsx)(n,{onClick:i,loading:a})})}},6856:(e,a,t)=>{t.r(a),t.d(a,{default:()=>m});var s=t(5155),l=t(2115),n=t(4932),i=t(9831),c=t(912),d=t(6228),r=t(0),o=t(4871);let m=({data:e,listMost:a})=>{let t=e.metadata.aggregate.pagesCount,[m,g]=(0,l.useState)(e.items),[j,u]=(0,l.useState)(1),[h,p]=(0,l.useState)(t>1),[{name:x}={}]=e.tag;return(0,s.jsx)(i.default,{children:(0,s.jsx)("div",{className:"mainCols marginTop20",children:(0,s.jsxs)(n.default,{type:"tag",name:x,className:"main--left",children:[(0,s.jsxs)("h2",{className:"section__hdl",children:["Tag: ",x]}),(0,s.jsx)(l.Suspense,{fallback:(0,s.jsx)(o.A,{message:"Loading tag articles..."}),children:(0,s.jsx)(c.A,{items:m,allSmall:!0})}),h&&(0,s.jsx)(d.A,{onLoadMore:()=>(0,r.A)({page:j,setItems:g,setPage:u,setShowLoadMoreButton:p,options:{tagName:x}})})]})})})}}}]);
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.