1import{An as e,Bn as t,Mn as n,an as r,cn as i,dn as a,en as o,in as s,ln as c,n as l,on as u,pn as d,sn as f,sr as p,ut as m}from"./BruWuFq9.js";import{t as h}from"./bkRREei7.js";import{t as g}from"./DvtqIoc9.js";import{t as _}from"./BDNMzG2s.js";import{t as v}from"./DHuz2-St.js";import{t as y}from"./B2Pjv-IR.js";import{t as b}from"./_BLrV4Y2.js";import{t as x}from"./C7C9aDlT.js";import{t as S}from"./ByeSSlHl.js";var C={},w={role:`status`,class:`animate-pulse space-y-8`};function T(t,n){return e(),i(`div`,w,[...n[0]||=[c(`<div class="bg-secondary-100 rounded-base flex h-48 w-full items-center justify-center"><svg class="text-fg-disabled h-11 w-11" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m3 16 5-7 6 6.5m6.5 2.5L16 13l-4.286 6M14 10h.01M4 19h16a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1Z"></path></svg></div><div class="w-full"><div class="bg-secondary-100 mb-4 h-6 w-full rounded-full"></div><div class="bg-secondary-100 mb-4 h-6 w-1/3 rounded-full"></div></div><span class="sr-only">NahrávánÃ...</span>`,3)]])}var E=Object.assign(_(C,[[`render`,T]]),{__name:`PostSecondarySkeleton`}),D={key:0,class:`bg-clouds-50 mt-8 p-6`},O={key:0,class:`divide-clouds-200 space-y-4 divide-y`},k={key:1,class:`grid grid-cols-1 gap-4 max-md:space-y-4 sm:grid-cols-2 md:grid-cols-3 md:gap-6 md:gap-y-10`},A={key:2},j={key:3},M=Object.assign(d({__name:`Related`,async setup(c){let d,_,C=m(),w=x(`category`),T=x(`slug`),M=s(()=>C.name===`category-slug`),{getPostsByCategory:N}=y(),{getPostRoute:P}=h(),F=S().smaller(`sm`),{data:I,status:L}=([d,_]=t(()=>l(`related-${w.value}`,()=>C.name===`category-slug`?N(String(w.value),{page:1,limit:7}):Promise.resolve(null),{watch:[w,()=>C.name]})),d=await d,_(),d),R=s(()=>I.value?.posts?I.value.posts.filter(e=>{let t=P(e);if(typeof t==`string`||!t||typeof t!=`object`)return!0;let n=`params`in t?t.params:null;return!n||n.slug!==T.value}).slice(0,6):[]);return(t,s)=>{let c=v,l=g,d=E,m=b;return p(M)?(e(),i(`section`,D,[s[0]||=r(`h2`,{class:`text-asphalt-900 mb-4 border-b border-gray-200 pb-2 text-2xl font-black tracking-tight sm:text-3xl`},` SouvisejÃcà Älánky `,-1),p(L)!==`pending`&&p(F)?(e(),i(`div`,O,[(e(!0),i(o,null,n(p(R),t=>(e(),u(c,{key:t.id,post:t,class:`pb-4`},null,8,[`post`]))),128))])):p(L)!==`pending`&&!p(F)?(e(),i(`div`,k,[(e(!0),i(o,null,n(p(R),t=>(e(),u(l,{key:t.id,post:t},null,8,[`post`]))),128))])):p(L)===`pending`&&!p(F)?(e(),i(`div`,A,[(e(),i(o,null,n(3,e=>a(d,{key:e})),64))])):p(L)===`pending`&&p(F)?(e(),i(`div`,j,[(e(),i(o,null,n(3,e=>a(m,{key:e})),64))])):f(``,!0)])):f(``,!0)}}}),{__name:`WidgetRelated`});export{M 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.