1import{_ as U}from"./occ9TgVQ.js";import{f as Z,r as q,o as z,g as W,h as J,w as N,b as K,k as A,c as t,l as d,d as r,m as _,q as T,p as i,y as u,F as f,D as k,P as Q,x as X,E as I,S as Y,j as B,u as ee,e,n as te,G as ae,z as se,A as p,H as w,t as E}from"./D6kZnXXN.js";import{_ as ne}from"./xQv8JrSA.js";import{g as C}from"./CB87Sc6I.js";import{S as ie}from"./Cv03IO65.js";import{c as oe}from"./DexT7Mrr.js";const re={class:"page-body"},ce={key:0,class:"no-posts"},de={key:1},le={key:0,class:"news-feature"},ue={class:"news-feature--content spacerSM"},_e={class:"news-feature--tag-group"},pe={key:0},ge={key:1},me={key:2},he={key:3},ye={key:4},fe={key:5},ke={key:6},we={key:7},ve={class:"news-feature--header"},Se={key:0},be={class:"news-feature--body"},Pe={key:0},Te={class:"news-standard slice"},Ce={class:"news-card--content"},$e={class:"news-card--header"},xe={key:0},Fe={class:"news-card--body"},Me={key:0},Ne={class:"news-card--tag-group"},Ae={key:0},Ie={key:1},Be={key:2},Ee={key:3},He={key:4},Oe={key:5},Ve={key:6},je={key:7},ze=Z({__name:"index",async setup(De){let c,m;C.registerPlugin(ie);const H=q();let $;z(()=>{$=C.context(a=>{C.from(".page-body",{y:20,opacity:0,delay:.8})},H.value)}),W(()=>{$.revert()});const{locale:l}=J(),x=ee(),{data:o}=([c,m]=N(()=>B("news",()=>x.client.getSingle("news_updates_home",{lang:l.value}),{watch:[l]})),c=await c,m(),c),{data:h}=([c,m]=N(()=>B("posts",()=>x.client.getAllByType("news_updates_page",{lang:l.value}),{watch:[l]})),c=await c,m(),c);K({htmlAttrs:{lang:l.value.slice(0,2)},title:o.value?.data.meta_title,meta:[{name:"description",content:o.value?.data.meta_description},{name:"og:description",content:o.value?.data.meta_description}]});function y(a,g,S=" "){return a.length<=g?a:a.substr(0,a.lastIndexOf(S,g))}function O(){return h.value?.filter(a=>a.data.tags.some(g=>g.tag==="Featured"))}let v=O();return A(o,()=>{E().value=o.value?.alternate_languages||[]},{immediate:!0}),A(h,()=>{E().value=o.value?.alternate_languages||[]},{immediate:!0}),(a,g)=>{const S=U,V=te,j=ne,D=X,F=se,M=ae,G=I("SwiperSlide"),L=I("Swiper"),R=Y;return e(),t("div",null,[d(j,{position:"top"},{default:_(()=>[d(V,{container:"section"},{default:_(()=>[d(S,{heading:i(o)?.data.page_heading,subheading:i(o)?.data.page_subheading,body:i(o)?.data.page_introduction_copy},null,8,["heading","subheading","body"])]),_:1})]),_:1}),r("main",re,[i(h).length===0?(e(),t("div",ce,[d(D,{field:i(o)?.data.no_posts_disclaimer},null,8,["field"])])):(e(),t("div",de,[i(v)?.length>=1||i(v)?.length===void 0?(e(),t("section",le,[d(L,{modules:[a.SwiperAutoplay,a.SwiperPagination],"slides-per-view":1,loop:!0,direction:"vertical",pagination:{clickable:!0},autoplay:{delay:8e3,disableOnInteraction:!0},class:"news-feature--slider"},{default:_(()=>[(e(!0),t(f,null,k(i(v),(n,b)=>(e(),T(G,{class:"news-feature--slide",key:b},{default:_(()=>[d(M,{field:n,class:"news-feature--link"},{default:_(()=>[d(F,{field:n.data.thumbnail_image,class:"news-feature--img"},null,8,["field"]),r("div",ue,[r("ul",_e,[(e(!0),t(f,null,k(n.data.tags,(s,P)=>(e(),t("li",{class:"tag",key:P},[i(l)!=="fr-ca"?(e(),t("span",pe,p(s.tag),1)):s.tag==="Product Update"?(e(),t("span",ge," Mise à jour des produits ")):s.tag==="Charity"?(e(),t("span",me," Organismes de bienfaisance ")):s.tag==="Featured"?(e(),t("span",he," En vedette ")):s.tag==="Fundraising"?(e(),t("span",ye," Collecte de fonds ")):s.tag==="Grants Strategy"?(e(),t("span",fe," Stratégie relative aux subventions ")):s.tag==="Industry News"?(e(),t("span",ke," Nouvelles du secteur ")):s.tag==="Marketing"?(e(),t("span",we," Marketing ")):u("",!0)]))),128))]),r("h3",ve,[w(p(y(a.$prismic.asText(n.data.page_heading),40)),1),a.$prismic.asText(n.data.page_heading).length>=40?(e(),t("span",Se,"...")):u("",!0)]),r("p",be,[w(p(y(a.$prismic.asText(n.data.page_introduction_copy),170)),1),a.$prismic.asText(n.data.page_introduction_copy).length>=170?(e(),t("span",Pe,"...")):u("",!0)])])]),_:2},1032,["field"])]),_:2},1024))),128))]),_:1},8,["modules"])])):u("",!0),r("section",Te,[(e(!0),t(f,null,k(i(h),(n,b)=>(e(),T(M,{field:n,class:"news-card",key:b},{default:_(()=>[d(F,{field:n.data.thumbnail_image,class:"news-card--img"},null,8,["field"]),r("div",Ce,[r("h3",$e,[w(p(y(a.$prismic.asText(n.data.page_heading),56)),1),a.$prismic.asText(n.data.page_heading).length>=56?(e(),t("span",xe,"...")):u("",!0)]),r("p",Fe,[w(p(y(a.$prismic.asText(n.data.page_introduction_copy),156)),1),a.$prismic.asText(n.data.page_introduction_copy).length>=156?(e(),t("span",Me,"...")):u("",!0)]),r("ul",Ne,[(e(!0),t(f,null,k(n.data.tags,(s,P)=>(e(),t("li",{class:"tag",key:P},[i(l)!=="fr-ca"?(e(),t("span",Ae,p(s.tag),1)):s.tag==="Product Update"?(e(),t("span",Ie," Mise à jour des produits ")):s.tag==="Charity"?(e(),t("span",Be," Organismes de bienfaisance ")):s.tag==="Featured"?(e(),t("span",Ee," En vedette ")):s.tag==="Fundraising"?(e(),t("span",He," Collecte de fonds ")):s.tag==="Grants Strategy"?(e(),t("span",Oe," Stratég
1ie relative aux subventions ")):s.tag==="Industry News"?(e(),t("span",Ve," Nouvelles du secteur ")):s.tag==="Marketing"?(e(),t("span",je," Marketing ")):u("",!0)]))),128))])])]),_:2},1032,["field"]))),128))])])),(e(),T(R,{key:(a._.provides[Q]||a.$route).fullPath,slices:i(o)?.data.slices??[],components:i(oe)},null,8,["slices","components"]))])])}}});export{ze 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.