1import{a as ne,O as re,p as z,u as m,v as x,C as ie,w as R,q as le,h as e,c,b as g,e as F,y as s,i as f,j as u,G as ce,I as ue,J as de,t as d,F as C,f as b,r as G,H as _e,_ as pe,o as r,z as J,P as me,g as K,l as W,n as X,T as ge,M as he}from"./entry.467af7bd.js";import we from"./Filters.8da407ee.js";import fe from"./Loader.4e770454.js";import ve from"./Article.4ff2b1fe.js";import ye from"./PaginationAnchor.731e1429.js";import{p as be}from"./news.4b586710.js";import{p as ke}from"./posts.ee5e1639.js";import{u as Ae}from"./index.7be1994d.js";import"./icon-chevron-down.f628afd8.js";import"./ShareButton.dd85af51.js";const xe={key:0,class:"news"},Pe={class:"o-flexible-module"},Ie={class:"c-window-banner c-window-banner--monte-alabaster"},De={class:"grid-container"},Se={class:"grid-x grid-margin-x"},Te={class:"small-12 cell"},ze=s("h1",{class:"c-window-banner__pretitle"},"News & Opinions",-1),Fe={key:0,class:"c-window-banner__media js-parallax__wrapper"},Ce=["src","srcset","sizes","alt","title"],Me={class:"c-window-banner__content-wrapper"},Ne={class:"c-window-banner__title"},Ue={class:"c-window-banner__author"},$e={key:0,class:"c-window-banner__author-media"},Be=["srcset","sizes","src","alt","title"],Qe={key:1,class:"c-window-banner__author-details"},je={class:"c-window-banner__author-name"},qe={key:0},Le={key:1},Ve={class:"c-window-banner__date"},Ee=["src","srcset","sizes","alt","title"],He={class:"c-window-banner__content-wrapper"},Oe={class:"c-window-banner__title"},Re={class:"c-window-banner__author"},Ge={key:0,class:"c-window-banner__author-media"},Je=["srcset","sizes","src","alt","title"],Ke={key:1,class:"c-window-banner__author-details"},We={class:"c-window-banner__author-name"},Xe={key:0},Ye={key:1},Ze={class:"c-window-banner__date"},et={class:"news__listing"},tt={class:"news__search"},st={class:"grid-container"},at={class:"grid-x grid-margin-x"},ot={class:"small-12 medium-9 medium-offset-3 cell"},nt={class:"grid-container"},rt={class:"grid-x grid-margin-x"},it={class:"small-12 medium-3 cell"},lt={class:"c-filters__sticky-wrapper"},ct={class:"c-filters__count"},ut={class:"small-12 medium-9 cell"},dt={class:"news__items"},_t={key:0,class:"news__loading"},xt={__name:"[page]",async setup(pt){let P,I;const j=ne(),Y=re(),M=Ae("(max-width: 767px)"),q=z(null),t=m("pageData",()=>null),h=m("postsData",()=>null),o=m("latestPost",()=>null),N=m("isLoading",()=>!1),U=m("isSearchQuery",()=>!1);m("loadingTimeout",()=>null);const v=m("activeFilters",()=>[]),$=m("isFiltering",()=>!1),L=m("isClearingFilters",()=>!1),D=m("search",()=>""),Z=x().globalData.globalContent.globalContent.categories.filter(n=>n.parentCategories.applicablePostTypes.includes("post")),ee=m("terms",()=>[]),V=x().globalData.readingSettings.postsPerPage,y=z(""),k=z(parseInt(j.params.page));let E=z({current:parseInt(j.params.page),visible:5});const H={slug:"cms/news-blog"};ie([k,$,L],async([n,a,_],[l,p,w])=>{!w&&_?me():!p&&a?(k.value=1,$.value=!1,U.value=!1,D.value="",await S(),B(1)):n!==l&&(await S(),B(n))});const te=async()=>{const n=K(be),{data:a,error:_}=await W(n,{...H});if(!(a&&a.value&&a.value.nodeByUri))throw X({statusCode:404,statusMessage:"Page Not Found"});t.value=a.value.nodeByUri,q.value=a.value.nodeByUri.pageOptions.headerStyle},S=async()=>{N.value=!0,U.value=!1;const n=(k.value-1)*V,a=K(ke(V,n,JSON.stringify(v.value).replace(/"([^"]+)":/g,"$1:"))),{data:_,error:l}=await W(a,{...H});if(!(_&&_.value&&_.value.posts))throw X({statusCode:404,statusMessage:"Page Not Found"});h.value=_.value.posts,y.value=h.value.pageInfo.total,!o.value&&h.value.edges.length>0&&(o.value=h.value.edges[0]),setTimeout(()=>{N.value=!1},1500)},B=n=>{let a={current:n,visible:_(n-2,n+2,Math.ceil(y.value/x().globalData.readingSettings.postsPerPage))};function _(l,p,w){l=l<1?1:l,p=p>w?w:p,l>p&&([l,p]=[p,l]);const T=[];for(let A=l;A<=p;A++)T.push(A);return T}E.value=a},se=async n=>{const a=n.target.value;if(a&&a!==""){Y.push({path:"/news-blog/",query:{search:a}});return}await S()},ae=n=>{v.value.filter(a=>a==n).length?v.value=v.value.filter(a=>a!==n):v.value.push(n)};return[P,I]=R(()=>te()),await P,I(),[P,I]=R(()=>S()),await P,I(),le(async()=>
1{if(x().setHeaderTheme(q.value),M.value==!1){const n=document.getElementsByClassName("js-parallax");new simpleParallax(n,{delay:.6,transition:"cubic-bezier(0,0,0,1)"})}B(k.value)}),(n,a)=>{const _=ge,l=he,p=_e,w=pe,T=we,A=fe,O=ve,oe=ye;return e(t)&&e(h)?(r(),c("main",xe,[g(p,null,{default:F(()=>[g(_,null,{default:F(()=>[b(d(e(t).seo.title),1)]),_:1}),g(l,{name:"description",content:e(t).seo.metaDesc},null,8,["content"]),g(l,{name:"og:title",content:e(t).seo.opengraphTitle},null,8,["content"]),g(l,{name:"og:description",content:e(t).seo.opengraphDescription},null,8,["content"]),e(t).seo.opengraphImage?(r(),f(l,{key:0,name:"og:image",content:e(t).seo.opengraphImage.sourceUrl},null,8,["content"])):u("",!0),g(l,{name:"twitter:title",content:e(t).seo.twitterTitle},null,8,["content"]),g(l,{name:"twitter:description",content:e(t).seo.twitterDescription},null,8,["content"]),e(t).seo.twitterImage?(r(),f(l,{key:1,name:"twitter:image",content:e(t).seo.twitterImage.sourceUrl},null,8,["content"])):u("",!0)]),_:1}),s("section",Pe,[s("div",Ie,[s("div",De,[s("div",Se,[s("div",Te,[ze,e(t).news.featuredArticle?(r(),f(w,{key:0,to:`/news-blog/${e(t).news.featuredArticle.slug}/`,class:"c-window-banner__wrapper","data-aos":"fade-up"},{default:F(()=>[e(t).news.featuredArticle.post.featuredImage?(r(),c("div",Fe,[s("img",{class:"js-parallax",src:e(t).news.featuredArticle.post.featuredImage.sourceUrl,srcset:e(t).news.featuredArticle.post.featuredImage.srcSet,sizes:e(t).news.featuredArticle.post.featuredImage.sizes,alt:e(t).news.featuredArticle.title,title:e(t).news.featuredArticle.title},null,8,Ce)])):u("",!0),s("div",Me,[s("div",Ne,d(e(t).news.featuredArticle.title),1),s("div",Ue,[e(t).news.featuredArticle.post.author&&e(t).news.featuredArticle.post.author.author.featuredImage?(r(),c("div",$e,[s("img",{srcset:e(t).news.featuredArticle.post.author.author.featuredImage.srcSet,sizes:e(t).news.featuredArticle.post.author.author.featuredImage.sizes,src:e(t).news.featuredArticle.post.author.author.featuredImage.sourceUrl,alt:e(t).news.featuredArticle.title,title:e(t).news.featuredArticle.title},null,8,Be)])):u("",!0),e(t).news.featuredArticle.post.author?(r(),c("div",Qe,[s("div",je,[b(d(e(t).news.featuredArticle.post.author.title),1),e(t).news.featuredArticle.post.author.author.position?(r(),c("span",qe," | "+d(e(t).news.featuredArticle.post.author.author.position),1)):u("",!0),e(t).news.featuredArticle.post.author.author.company?(r(),c("span",Le,", "+d(e(t).news.featuredArticle.post.author.author.company),1)):u("",!0)]),s("div",Ve,d(n.$formatDate(e(t).news.featuredArticle.date).value),1)])):u("",!0)])])]),_:1},8,["to"])):e(o)?(r(),f(w,{key:1,to:`/news-blog/${e(o).node.slug}/`,class:"c-window-banner__wrapper","data-aos":"fade-up"},{default:F(()=>[e(o).node.post.featuredImage?(r(),c("div",{key:0,class:J(["c-window-banner__media",[{"js-parallax__wrapper":!e(M)}]])},[s("img",{class:J([{"js-parallax":!e(M)}]),src:e(o).node.post.featuredImage.sourceUrl,srcset:e(o).node.post.featuredImage.srcSet,sizes:e(o).node.post.featuredImage.sizes,alt:e(o).node.title,title:e(o).title},null,10,Ee)],2)):u("",!0),s("div",He,[s("div",Oe,d(e(o).node.title),1),s("div",Re,[e(o).node.post.author&&e(o).node.post.author.author.featuredImage?(r(),c("div",Ge,[s("img",{srcset:e(o).node.post.author.author.featuredImage.srcSet,sizes:e(o).node.post.author.author.featuredImage.sizes,src:e(o).node.post.author.author.featuredImage.sourceUrl,alt:e(o).node.title,title:e(o).node.title},null,8,Je)])):u("",!0),e(o).node.post.author?(r(),c("div",Ke,[s("div",We,[b(d(e(o).node.post.author.title),1),e(o).node.post.author.author.position?(r(),c("span",Xe," | "+d(e(o).node.post.author.author.position),1)):u("",!0),e(o).node.post.author.author.company?(r(),c("span",Ye,", "+d(e(o).node.post.author.author.company),1)):u("",!0)]),s("div",Ze,d(n.$formatDate(e(o).node.date).value),1)])):u("",!0)])])]),_:1},8,["to"])):u("",!0)])])])])]),s("div",et,[s("div",tt,[s("div",st,[s("div",at,[s("div",ot,[s("form",null,[ce(s("input",{"onUpdate:modelValue":a[0]||(a[0]=i=>de(D)?D.value=i:null),onInput:se,type:"search",placeholder:"Search"}
1,null,544),[[ue,e(D)]])])])])])]),s("div",nt,[s("div",rt,[s("div",it,[s("div",lt,[g(T,{showPastEvents:!1,postType:"post",taxonomies:e(Z),terms:e(ee),activeFilters:e(v),onToggleTerm:ae,onClearFilters:a[1]||(a[1]=i=>L.value=!0),onApplyFilters:a[2]||(a[2]=i=>$.value=!0)},null,8,["taxonomies","terms","activeFilters"]),s("div",ct,[s("b",null,d(e(y)),1),e(y)==1?(r(),c(C,{key:0},[b(" result")],64)):(r(),c(C,{key:1},[b(" results")],64)),b(" found ")])])]),s("div",ut,[s("div",dt,[e(N)?(r(),c("div",_t,[g(A)])):e(U)?(r(!0),c(C,{key:1},G(e(h),(i,Q)=>(r(),f(O,{key:Q,permalink:i.link,name:i.data.post_title,excerpt:i.data.post_excerpt,date:i.data.post_date,author:i.data.author,image:i.image,video:i.data.video},null,8,["permalink","name","excerpt","date","author","image","video"]))),128)):(r(!0),c(C,{key:2},G(e(h).edges,(i,Q)=>(r(),f(O,{key:Q,permalink:`/news-blog/${i.node.slug}`,name:i.node.title,excerpt:i.node.post.excerpt,date:i.node.date,author:i.node.post.author,image:i.node.post.featuredImage,video:i.node.post.video},null,8,["permalink","name","excerpt","date","author","image","video"]))),128))])])])])]),e(y)>5?(r(),f(oe,{key:0,pages:Math.ceil(e(y)/e(x)().globalData.readingSettings.postsPerPage),visiblePages:e(E),currentPage:e(k)},null,8,["pages","visiblePages","currentPage"])):u("",!0)])):u("",!0)}}};export{xt as default}; 2//# sourceMappingURL=_page_.1946e21f.js.map
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.