1import{_ as v}from"./5XSATRc4.js";import{_ as h}from"./O4wWmkz0.js";import{d as k,r as c,c as a,o as n,u as _,e as b,F as B,z as x,B as I}from"./BxdW20Ub.js";import{u as w}from"./CUBleYSJ.js";import{b as d}from"./teMtHUYD.js";import"./C-z3kiwg.js";import"./BTjMOjAX.js";import"./CQ2nXzyS.js";import"./51z2yfQf.js";const A={key:0,class:"text-center"},C={key:1,class:"row position-relative h-20"},p=4,M={__name:"RelatedArticles",props:{content:{type:Object,required:!0}},setup(f){const{locale:y}=k(),i=c(null),l=c(!0),u=c([]),o=f;async function g(){let e=o.content.mainCategory.id;const s=o.content.categories.filter(t=>t.id!=o.content.mainCategory.id);s.length>0&&(e=s[0].id);const{data:r}=await w("/api/content",{query:{categoryId:e,lang:y.value,size:p+1}},"$1bsJtB_vbH");return l.value=!1,r.value.items.filter(t=>t.id!==o.content.id).slice(0,Math.min(p,r.value.total))}return d(i,async([{isIntersecting:e}])=>{e&&(u.value=await g())},{}),d(),(e,s)=>{const r=v,t=h;return n(),a("div",{ref_key:"el",ref:i},[_(l)?(n(),a("div",A,[b(r)])):(n(),a("div",C,[(n(!0),a(B,null,x(_(u),m=>(n(),I(t,{key:m.id,article:m},null,8,["article"]))),128))]))],512)}}};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.