1import{_ as $}from"./C8-g6wJo.js";import{_ as P}from"./BJPquKqJ.js";import{u as S,_ as D}from"./BIGTPaBr.js";import{_ as N}from"./Dj2Q1hu9.js";import{u as M,w as V,a as B,b as C,d,e as x,f as o,g as n,t as T,F as U,r as H,m as I,k as L,o as i,h as O,l as A,i as t}from"./mQK-qArP.js";const F={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"},K={class:"text-4xl md:text-5xl font-black text-zinc-900 dark:text-white tracking-tight capitalize"},q={key:0,class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-8 gap-y-12"},E={key:1,class:"py-20 text-center"},k=12,m="https://srbodroid.com",Z={__name:"index",async setup(R){let r,h;const l=M(),{data:_}=([r,h]=V(()=>S("/api/posts",{query:{category:l.params.slug,limit:k,offset:0}},"$uXA6IUlLJx")),r=await r,h(),r),g=t(()=>_.value?.posts??[]),v=t(()=>Math.max(1,Math.ceil((_.value?.total??0)/k))),c=t(()=>l.params.slug.replace(/-/g," ").replace(/\b\w/g,e=>e.toUpperCase())),b=t(()=>`/category/${l.params.slug}`),s=t(()=>`${m}${b.value}`),u=t(()=>`Kategorija: ${c.value} - SrboDroid`),p=t(()=>`Sve objave iz kategorije ${c.value} na SrboDroid portalu.`);return B({title:()=>u.value,description:()=>p.value,ogTitle:()=>u.value,ogDescription:()=>p.value,ogUrl:()=>s.value,twitterTitle:()=>u.value,twitterDescription:()=>p.value,twitterUrl:()=>s.value}),C({link:t(()=>{const e=[{rel:"canonical",href:s.value}];return v.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:u.value,url:s.value,description:p.value,publisher:{"@type":"Organization",name:"SrboDroid",url:m,logo:{"@type":"ImageObject",url:`${m}/images-theme/logo500.png`,width:500,height:60}},hasPart:g.value.slice(0,12).map(e=>({"@type":"Article",headline:e.post_title,url:`${m}/${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 w=$,y=P,z=D,j=N;return i(),d("div",F,[x(w,{items:[{name:o(c)}]},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"},"Kategorija",-1)),n("h1",K,T(o(c)||o(l).params.slug.replace(/-/g," ")),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?(i(),d("section",q,[(i(!0),d(U,null,H(o(g),f=>(i(),O(y,{key:f.id,post:f},null,8,["post"]))),128))])):(i(),d("div",E,[a[3]||(a[3]=I('<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="M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"></path></svg></div><h3 class="text-xl font-bold text-zinc-900 dark:text-zinc-300">Nema objava u ovoj kategoriji</h3><p class="text-zinc-700 mt-2">PokuÅ¡ajte ponovo kasnije ili istražite druge teme.</p>',3)),x(z,{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:L(()=>[...a[2]||(a[2]=[A(" Nazad na poÄetnu ",-1)])]),_:1})])),x(j,{"current-page":1,"total-pages":o(v),"base-path":o(b)},null,8,["total-pages","base-path"])])}}};export{Z 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.