1import{d as f,o as a,f as s,g as b,an as U,i as d,I as o,A as r,ak as W,al as I,j as n,_ as N,n as $,ao as Y,c as Z,h as C,ap as G,F as x,r as S,k as j,Z as J,u as K,ah as Q,ai as X,v as B,aq as ee,ar as A,as as ae,Y as te,x as L,at as H}from"./CHz7KWu6.js";import{A as ne}from"./B7kRK2Lv.js";import{A as z}from"./DaAvCaVS.js";import{E as ie}from"./CY05TT2u.js";const se={class:"news-article-card__content"},le={class:"news-article-card__header"},re={class:"news-article-card__body"},ce=["textContent"],oe=f({name:"news-article-card-block",__name:"news-article-card-block",props:{card:{},variant:{}},setup(e){return(c,i)=>(a(),s(Y,{class:$(["news-article-card",e.variant?`news-article-card--${e.variant}`:""]),link:e.card.link},{default:b(()=>[e.card.asset?(a(),s(U,{key:0,class:"news-article-card__asset",asset:e.card.asset,"image-sizes":"lg:50vw xl:50vw 2xl:33vw 3xl:33vw 4xl:33vw 5xl:33vw","mobile-image-sizes":"xs:100vw sm:100vw md:100vw",threshold:"lg","img-attrs":{class:"news-article-card__image",loading:"lazy",decoding:"async"},"picture-class":"news-article-card__image-holder",ref:"asset"},null,8,["asset"])):d("",!0),o("div",se,[o("div",le,[e.card.articleTags?(a(),s(ne,{key:0,class:"news-article-card__tags",block:e.card.articleTags},null,8,["block"])):d("",!0),r(W,{class:"news-article-card__arrow"})]),o("div",re,[e.card.headline?(a(),s(I,{key:0,class:"news-article-card__heading",heading:{type:"h3",style:"h3",text:e.card.headline}},null,8,["heading"])):d("",!0),e.card.author?(a(),s(z,{key:1,class:"news-article-card__author",author:e.card.author},null,8,["author"])):d("",!0),e.card.author?(a(),n("p",{key:2,class:"article-feed-card__author-small",textContent:N(e.card.author.name)},null,8,ce)):d("",!0),e.card.eventInfo?(a(),s(ie,{key:3,class:"article-feed-card__event-info",block:e.card.eventInfo},null,8,["block"])):d("",!0)])])]),_:1},8,["class","link"]))}}),ge=Object.assign(oe,{__name:"BlocksCardsNewsArticleCardBlock"}),ue={class:"skeleton-animation"},de=f({name:"skeleton-animation",__name:"skeleton-animation",setup(e){return(c,i)=>(a(),n("div",ue))}}),p=Object.assign(de,{__name:"ElementsSkeletonAnimation"}),he={class:"article-card-skeleton__body"},me=f({name:"article-card-skeleton",__name:"article-card-skeleton",props:{variant:{}},setup(e){return(c,i)=>(a(),n("div",{class:$(["article-card-skeleton",e.variant?`article-card-skeleton--${e.variant}`:""]),"aria-hidden":"true"},[r(p,{class:"article-card-skeleton__image"}),o("div",he,[r(p,{class:"article-card-skeleton__tag"}),r(p,{class:"article-card-skeleton__title"}),r(p,{class:"article-card-skeleton__title article-card-skeleton__title--short"}),r(p,{class:"article-card-skeleton__meta"})])],2))}}),ve=Object.assign(me,{__name:"BlocksArticleCardSkeleton"}),_e=f({name:"chevron-left",__name:"chevron-left-svg",props:{colour:{default:"dark"}},setup(e){return(c,i)=>(a(),n("svg",{class:$(["chevron-left",`chevron-left--${e.colour}`]),width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...i[0]||(i[0]=[o("path",{class:"chevron-left__path",d:"M6.70703 0.353516L0.707031 6.35352L6.70703 12.3535"},null,-1)])],2))}}),R=Object.assign(_e,{__name:"SvgsChevronLeftSvg"}),fe=f({name:"chevron-right",__name:"chevron-right-svg",props:{colour:{default:"dark"}},setup(e){return(c,i)=>(a(),n("svg",{class:$(["chevron-right",`chevron-right--${e.colour}`]),width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...i[0]||(i[0]=[o("path",{class:"chevron-right__path",d:"M0.353516 0.353516L6.35352 6.35352L0.353516 12.3535"},null,-1)])],2))}}),O=Object.assign(fe,{__name:"SvgsChevronRightSvg"}),ke=["aria-label"],we={key:1,class:"pagination__nav pagination__nav--disabled","aria-hidden":"true"},ye=["textContent"],pe={key:2,class:"pagination__ellipsis","aria-hidden":"true"},be={key:3,class:"pagination__nav pagination__nav--disabled","aria-hidden":"true"},xe=f({name:"pagination",__name:"pagination-element",props:{currentPage:{},totalPages:{},pageHref:{type:Function},siblingCount:{default:2}},setup(e){const{t:c}=Z(),i=j(()=>{const v=e.siblingCount*2+1;if(e.totalPages<=v+2)return Array.from({length:e.totalPages},(u,w)=>({type:"page",page:w+1,id:`page-${w+1}`}));let g=Math.max(1,e.currentPage-e.siblingCount),l=g+v-1;l>e.totalPages&&(l=e.totalPages,g=Math.max(1,l-v+1));const t=[];g>1&&(t.push({type:"page",page:1,id:"page-1"}),g>2&&t.push({type:"ellipsis",id:"ellipsis-start"}));for(let u=g;u<=l;u++)t.push({type:"page",page:u,id:`page-${u}`});return l<e.totalPages&&(l<e.totalPages-1&&t.push({type:"ellipsis",id:"ellipsis-end"}),t.push({type:"page",page:e.totalPages,id:`page-${e.totalPages}`})),t});return(v,g)=>{const l=G;return e.totalPages>1?(a(),n("nav",{key:0,class:"pagination","aria-label":C(c)("Pagination")},[e.currentPage>1?(a(),s(l,{key:0,class:"pagination__nav",to:e.pageHref(e.currentPage-1),rel:"prev","aria-label":C(c)("Previous page")},{default:b(()=>[r(R,{class:"pagination__nav-icon"})]),_:1},8,["to","aria-label"])):(a(),n("span",we,[r(R,{class:"pagination__nav-icon"})])),(a(!0),n(x,null,S(i.value,t=>(a(),n(x,{key:t.id},[t.type==="page"&&t.page===e.currentPage?(a(),n("span",{key:0,class:"pagination__item pagination__item--current","aria-current":"page",textContent:N(t.page)},null,8,ye)):t.type==="page"?(a(),s(l,{key:1,class:"pagination__item",to:e.pageHref(t.page),"aria-label":C(c)("Page {page}",{page:t.page})},{default:b(()=>[J(N(t.page),1)]),_:2},1032,["to","aria-label"])):(a(),n("span",pe,[...g[0]||(g[0]=[o("span",{class:"pagination__ellipsis-dot"},null,-1),o("span",{class:"pagination__ellipsis-dot"},null,-1),o("span",{class:"pagination__ellipsis-dot"},null,-1)])]))],64))),128)),e.currentPage<e.totalPages?(a(),s(l,{key:2,class:"pagination__nav",to:e.pageHref(e.currentPage+1),rel:"next","aria-label":C(c)("Next page")},{default:b(()=>[r(O,{class:"pagination__nav-icon"})]),_:1},8,["to","aria-label"])):(a(),n("span",be,[r(O,{class:"pagination__nav-icon"})]))],8,ke)):d("",!0)}}}),$e=Object.assign(xe,{__name:"ElementsPaginationElement"}),Pe=["id"],Ce=["aria-busy"],Ae={class:"article-listing__author-listing-list"},Le=f({name:"article-listing",__name:"article-listing-module",props:{module:{},pagination:{},pending:{type:Boolean,default:!1}},setup(e){const{$gsap:c,$screen:i,$ScrollTrigger:v,$scrollToHash:g}=K(),l=Q(),{firstLoadComplete:t}=X(l),u=L(null),w=L(null),E=L(null);let y=null;const M=L(!1),P=j(()=>e.pending&&M.value),F=j(()=>e.module.articles?.length||9),V=()=>{H().width<i.lg},D=()=>{H().width>=i.lg&&q()};function q(){const _=w.value,h=E.value;if(!h||!_)return;const m=h.offsetHeight,k=100;H().height>=m+k?v.create({trigger:h,endTrigger:_,pin:!0,start:`top ${k}px`,end:"bottom bottom"}):v.create({trigger:h,endTrigger:_,pin:!0,start:"bottom bottom",end:"bottom bottom"})}const T=()=>{!t.value||!u.value||(y&&y.revert(),y=c.context(()=>{V(),D()},u.value))};return B(t,()=>{A(()=>{T()})}),B([()=>e.module.articles?.length,P],()=>{A(()=>{T()})}),B(()=>e.pagination?.currentPage,(_,h)=>{_==null||h==null||_===h||A(()=>g(e.module.id))}),ee(()=>{M.value=!0,A(()=>{T()})}),ae(()=>{y&&y.revert()}),(_,h)=>(a(),n("section",{class:$(["article-listing module",e.module.variant?`article-listing--${e.module.variant}`:""]),id:e.module.id,ref_key:"moduleRef",ref:u},[r(te,{class:"article-listing__container"},{default:b(()=>[o("div",{class:"article-listing__articles",ref_key:"articlesRef",ref:w,"aria-busy":P.value},[P.value?(a(!0),n(x,{key:0},S(F.value,m=>(a(),s(ve,{class:"article-listing__card",variant:e.module.variant,key:`skeleton-${m}`},null,8,["variant"]))),128)):(a(!0),n(x,{key:1},S(e.module.articles,(m,k)=>(a(),s(ge,{class:"article-listing__card",card:m,variant:e.module.variant,key:m.link?.url??k},null,8,["card","variant"]))),128))],8,Ce),e.module.variant==="stack"&&e.module.authorListing&&e.module.authorListing?.authors?.length?(a(),n("div",{key:0,class:"article-listing__author-listing",ref_key:"authorListing",ref:E},[r(I,{class:"article-listing__author-listing-heading",heading:{type:"h2",style:"h3",text:e.module.authorListing.heading}},null,8,["heading"]),o("div",Ae,[(a(!0),n(x,null,S(e.module.authorListing.authors,(m,k)=>(a(),s(z,{class:"article-listing__author-listing-author",key:k,author:m},null,8,["author"]))),128))])],512)):d("",!0),e.pagination&&!P.value?(a(),s($e,{key:1,class:"article-listing__pagination","current-page":e.pagination.currentPage,"total-pages":e.pagination.totalPages,"page-href":e.pagination.pageHref},null,8,["current-page","total-pages","page-href"])):d("",!0)]),_:1})],10,Pe))}}),Ne=Object.assign(Le,{__name:"ArticleListingModule"});export{Ne 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.