1import{c as N,e as C,r as $,f as B,T as L,_ as M}from"./app.42a98c89.js";import{d as b,r as p,g as T,F as V,az as A,o as e,c as t,h as u,a as f,u as s,M as y,N as D,n as v,z as I,i as g,m as x,f as z}from"./vendor.ab7d7e0e.js";const F={class:"latest-posts latest-posts--archive"},R={class:"container"},E={key:0,class:"latest-posts__list"},O={key:1,class:"container my-10"},q=b({__name:"TeamNewsIndex",props:{team:{}},setup(h){const n=h,l=p(),k=p(n.team.id),w={types:T(()=>n.team.news_types?n.team.news_types:[L.Default]).value,limit:63,teamId:k},{articles:i,loadData:r,loading:c,isLastPage:d}=N(w,!1,!1);return V(()=>{r()}),A(l,([{isIntersecting:a}])=>{a&&!d.value&&r()}),(a,m)=>{var _;return e(),t(y,null,[u(C,{title:`${a.team.name} Latest News`,"featured-image":(_=a.team)==null?void 0:_.news_header_banner,"show-gradient":a.team.news_header_banner_gradient_overlay},null,8,["title","featured-image","show-gradient"]),f("section",F,[f("div",R,[s(i).length>0?(e(),t("div",E,[(e(!0),t(y,null,D(s(i),o=>(e(),v(I(s($)(o)),{key:`news-article-${String(o.id)}`,article:o,class:"latest-posts__item"},null,8,["article"]))),128))])):s(c)?g("",!0):(e(),t("div",O,"No articles to display")),s(c)?(e(),v(M,{key:2,class:"py-10"})):s(d)?g("",!0):(e(),t("div",{key:3,ref_key:"loadMoreRef",ref:l,class:"latest-posts__load-more"},[u(B,{class:"btn-primary",onClick:m[0]||(m[0]=o=>s(r)())},{default:x(()=>[z(" Load More")]),_:1})],512))])])],64)}}});export{q 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.