PageSourceSearch

https://fta.ca/_nuxt/Ds6m2_N_.js

js fta.ca collected 2026-10-02 06:59:27 UTC 4,228 bytes, 1 lines download raw bytes

1import K from"./caji1Q1F.js";import Q from"./thCve5UW.js";import X from"./DcxXNzYh.js";import Y from"./DoauIaPG.js";import{u as Z,b as D,a as ee,c as te,f as se,h as oe,i as ie,t as re,o as ne,g as le,e as me,q as ae,_ as ce}from"./DiZhURkQ.js";import{L as _e}from"./tPfcr-VY.js";import{u as pe}from"./BtMQSKak.js";import{c as ue,H as de,B as fe,n as we,o as he,J as r,U as ye,a1 as H,G as P,O as c,u as z,L as m,N as I,R as ge,F as Ne,W as Se,a2 as ke,M as ve,I as o}from"./wbHSvHwd.js";import"./rixmnj5l.js";import"./BZGl1JDy.js";import"./osxQiXZR.js";import"./BPFXbn_u.js";import"./BbmBqaWU.js";import"./BBJDXOia.js";import"./VvvrcWUu.js";import"./DsMxXTCe.js";import"./DVSctDo7.js";import"./krnTi6gS.js";import"./CvCWV199.js";import"./CsdgI--S.js";import"./Cz_jrJQY.js";import"./BSB8CBEi.js";import"./gehiHP48.js";import"./C3hoKj5U.js";import"./BFo1EsTN.js";import"./BaGLYqCv.js";import"./BjurnKc_.js";import"./tWSSi59N.js";import"./CUoNHiIR.js";import"./wixJqBR8.js";import"./ByDl0eFc.js";import"./BKpVvSy8.js";import"./H3USUgE-.js";import"./DTeMkQz8.js";import"./QDpPpdkU.js";import"./Ca8_VzZe.js";import"./BUnMSPm3.js";import"./BqYn3KOw.js";import"./CL6-sq-h.js";import"./DQM2DQp7.js";import"./DDaeBxLT.js";import"./J0FCo2wo.js";import"./D0H2jLoD.js";import"./DiTe7_C0.js";import"./C31xhS-f.js";import"./D4_GH-o4.js";import"./yLbR-gqo.js";import"./BWkfxqxY.js";import"./DaNAfGCD.js";import"./6TrgeK19.js";import"./CnPw-Vbe.js";import"./BmCEMEtR.js";import"./D4dw6ou8.js";import"./BGGBiqyv.js";const xe={class:"SingleNews"},be={key:1,class:"SingleNews__flexible"},Te={class:"SingleNews__share"},$e={key:2,class:"SingleNews__related"},Ee={key:0,class:"SingleNews__related-title"},Le={key:1,class:"SingleNews__related-link"},Bt={__name:"singleNews",async setup(Ae){var S,k,v,x,b,T,$,E,L;let _,h;const u=Z(),n=D(),q=ee(),{scrollTo:F}=te(),M=(S=n==null?void 0:n.params)==null?void 0:S.slug,{lang:R}=n==null?void 0:n.meta,a=ue(null),{data:d}=([_,h]=de(()=>me({operation:"getSingleNews",variables:{site:R,slug:M}})),_=await _,h(),_),e=(k=d==null?void 0:d.value)==null?void 0:k.entry;if(!e)throw se({statusCode:404,message:"Page not found",fatal:!0});const y=e==null?void 0:e.seo,f=(b=oe((x=(v=e==null?void 0:e.localized)==null?void 0:v[0])==null?void 0:x.url))==null?void 0:b.path;f&&ie(f),y&&pe(y,f);const g={title:e==null?void 0:e.title,displayMedia:(T=e==null?void 0:e.imageElement)==null?void 0:T.length,mediaType:!0,image:re(e==null?void 0:e.imageElement)};e==null||e.wysiwygSimpleElement;const N=e==null?void 0:e.flexible,l={title:u.$translate("single_news_related_title"),news:($=e==null?void 0:e.relatedNews)==null?void 0:$.map(t=>ne({data:t,buttonTitle:u.$translate("news_card_link_label")})),link:{title:u.$translate("news_all_button_label"),url:(L=(E=q.value.globalInfos)==null?void 0:E.options)==null?void 0:L.newsListingLink,linkStyle:"btn-secondary"}},w=()=>
1{if(a.value&&a.value.querySelectorAll(".SingleNews__related-item").forEach(i=>i.style.height="auto"),a.value){const t=a.value.querySelectorAll(".SingleNews__related-item"),i=Math.max(...Array.from(t).map(s=>s.offsetHeight));t.forEach(s=>s.style.height=`${i}px`)}};return fe(()=>{we(()=>{var i,s,p;F({to:0,immediate:!0});const t=(i=e==null?void 0:e.seo)!=null&&i.metaTitleContainer?JSON.parse((s=e==null?void 0:e.seo)==null?void 0:s.metaTitleContainer):null;le((p=t==null?void 0:t.title)==null?void 0:p.title),w()}),window.addEventListener("resize",w)}),he(()=>{window.removeEventListener("resize",w)}),(t,i)=>{var A,B,C;const s=K,p=Q,U=X,V=Y,G=ae,J=ce,O=_e;return o(),r("div",xe,[g?(o(),ye(s,H(P({key:0},g)),null,16)):c("",!0),(A=z(N))!=null&&A.length?(o(),r("div",be,[m(p,{data:z(N)},null,8,["data"])])):c("",!0),I("div",Te,[m(U)]),(B=l.news)!=null&&B.length?(o(),r("div",$e,[l.title?(o(),r("h2",Ee,ge(l.title),1)):c("",!0),I("ul",{class:"SingleNews__related-list",ref_key:"listThumbs",ref:a},[(o(!0),r(Ne,null,Se(l.news,(W,j)=>(o(),r("li",{key:`SingleNewsRelated-${j}`,class:"SingleNews__related-item"},[m(V,P({ref_for:!0},W,{trackingContext:"Single News"}),null,16)]))),128))],512),(C=l.link)!=null&&C.url?(o(),r("div",Le,[m(G,H(ke(l.link)),null,16)])):c("",!0)])):c("",!0),m(O,{"when-idle":""},{default:ve(()=>[m(J)]),_:1})])}}};export{Bt 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.