1import{_ as j}from"./C8-g6wJo.js";import{_ as D}from"./BJPquKqJ.js";import{u as N,_ as T}from"./BIGTPaBr.js";import{_ as M}from"./Dj2Q1hu9.js";import{u as B,w as O,a as C,b as L,d,e as x,f as o,g as n,t as V,F as I,r as U,m as A,k as F,o as l,h as H,l as E,i as t}from"./mQK-qArP.js";const q={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12"},J={class:"flex justify-between items-end mb-12"},R={class:"text-4xl md:text-5xl font-black text-zinc-900 dark:text-white tracking-tight capitalize"},G={key:0,class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-8 gap-y-12"},K={key:1,class:"py-20 text-center"},w=12,p="https://srbodroid.com",et={__name:"index",async setup(Q){let i,_;const m=B(),{data:h}=([i,_]=O(()=>N("/api/posts",{query:{tag:m.params.slug,limit:w,offset:0}},"$LE48aTPc3H")),i=await i,_(),i),g=t(()=>h.value?.posts??[]),v=t(()=>h.value?.total??0),b=t(()=>Math.max(1,Math.ceil(v.value/w))),z=t(()=>v.value<5),r=t(()=>`#${m.params.slug.replace(/-/g," ")}`),f=t(()=>`/tag/${m.params.slug}`),s=t(()=>`${p}${f.value}`),c=t(()=>`Oznaka: ${r.value} - SrboDroid`),u=t(()=>`Sve objave oznaÄene sa ${r.value} na SrboDroid portalu.`);return C({title:()=>c.value,description:()=>u.value,ogTitle:()=>c.value,ogDescription:()=>u.value,ogUrl:()=>s.value,twitterTitle:()=>c.value,twitterDescription:()=>u.value,twitterUrl:()=>s.value,robots:()=>z.value?"noindex, follow":"index, follow"}),L({link:t(()=>{const e=[{rel:"canonical",href:s.value}];return b.value>1&&e.push({rel:"next",href:`${s.value}/page/2`}),e}),script:t(()=>[{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"https://schema.org","@type":"CollectionPage",name:c.value,url:s.value,description:u.value,publisher:{"@type":"Organization",name:"SrboDroid",url:p,logo:{"@type":"ImageObject",url:`${p}/images-theme/logo500.png`,width:500,height:60}},hasPart:g.value.slice(0,12).map(e=>({"@type":"Article",headline:e.post_title,url:`${p}/${e.post_name}`,image:e.featured_image_url||void 0,datePublished:new Date(e.post_date).toISOString(),author:{"@type":"Person",name:e.author_name}}))})}])}),(e,a)=>{const y=j,$=D,P=T,S=M;return l(),d("div",q,[x(y,{items:[{name:o(r)}]},null,8,["items"]),n("div",J,[n("div",null,[a[0]||(a[0]=n("p",{class:"text-xs font-bold text-blue-600 dark:text-blue-500 uppercase tracking-[0.2em] mb-3"},"Oznaka",-1)),n("h1",R,V(o(r)),1),a[1]||(a[1]=n("div",{class:"h-1.5 w-24 bg-blue-600 mt-4 rounded-full"},null,-1))])]),o(g).length?(l(),d("section",G,[(l(!0),d(I,null,U(o(g),k=>(l(),H($,{key:k.id,post:k},null,8,["post"]))),128))])):(l(),d("div",K,[a[3]||(a[3]=A('<div class="inline-flex items-center justify-center w-20 h-20 rounded-full bg-zinc-100 dark:bg-zinc-900 mb-6"><svg xmlns="http://www.w3.org/2000/svg" class="h-10 w-10 text-zinc-700 dark:text-zinc-400" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"></path></svg></div><h3 class="text-xl font-bold text-zinc-900 dark:text-zinc-300">Nema objava sa ovom oznakom</h3><p class="text-zinc-700 mt-2">PokuÅ¡ajte ponovo kasnije ili istražite druge teme.</p>',3)),x(P,{to:"/",class:"mt-8 inline-block px-6 py-2.5 bg-zinc-100 dark:bg-zinc-900 hover:bg-zinc-200 dark:hover:bg-zinc-800 text-zinc-900 dark:text-white rounded-full text-sm font-bold transition-all border border-zinc-200 dark:border-zinc-800"},{default:F(()=>[...a[2]||(a[2]=[E(" Nazad na poÄetnu ",-1)])]),_:1})])),x(S,{"current-page":1,"total-pages":o(b),"base-path":o(f)},null,8,["total-pages","base-path"])])}}};export{et as default};
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.