PageSourceSearch

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

js fta.ca collected 2026-10-02 06:59:28 UTC 9,931 bytes, 1 lines download raw bytes

1import Ze from"./HO1f4SJw.js";import{u as De,a as et,b as tt,c as ot,f as st,h as nt,t as it,w as lt,x as N,y as rt,z as _t,A as ct,B as ht,s as ze,i as ut,g as dt,p as wt,e as St,C as mt,D as at,q as ft,_ as yt}from"./DiZhURkQ.js";import kt from"./BGOpUK2A.js";import gt from"./BUnMSPm3.js";import vt from"./BPN76dFU.js";import bt from"./tw_D2U3Z.js";import $t from"./CL3WBgAU.js";import Tt from"./BVWrXi5j.js";import pt from"./D0TiX4PW.js";import Bt from"./DaNAfGCD.js";import{L as Ct}from"./tPfcr-VY.js";import{u as C}from"./CnPw-Vbe.js";import{u as Rt}from"./BtMQSKak.js";import{c as Lt,H as xt,k as At,B as Vt,n as Mt,J as s,U as V,a1 as G,G as g,O as n,N as _,u as i,L as c,F as $,W as T,R as S,a2 as Ne,M as Et,X as Pt,_ as It,I as o}from"./wbHSvHwd.js";import"./DVSctDo7.js";import"./krnTi6gS.js";import"./CvCWV199.js";import"./CsdgI--S.js";import"./osxQiXZR.js";import"./Cz_jrJQY.js";import"./BSB8CBEi.js";import"./Ca8_VzZe.js";import"./6TrgeK19.js";const zt={class:"SingleShow__content transition"},Nt={class:"SingleShow__content-left"},Gt={key:0,class:"SingleShow__text"},Ft={key:1,class:"SingleShow__links"},Ht={key:2,class:"SingleShow__logos"},Ut={key:3,class:"SingleShow__informations"},jt={class:"SingleShow__informations-title"},qt={class:"SingleShow__informations-ul"},Wt={key:0,class:"SingleShow__information-title"},Jt={key:1,class:"SingleShow__information-tables"},Ot={key:0,class:"SingleShow__information-table-title"},Yt={key:1,class:"SingleShow__information-table-text"},Xt={key:4,class:"SingleShow__gallery"},Kt={key:5,class:"SingleShow__artists"},Qt={key:0,class:"SingleShow__artists-title"},Zt={class:"SingleShow__artists-repeater"},Dt={key:6,class:"SingleShow__interview"},eo={class:"SingleShow__interview-title"},to={key:7,class:"SingleShow__media"},oo={key:8,class:"SingleShow__related"},so={key:0,class:"SingleShow__related-title"},no={class:"SingleShow__related-list"},io={key:0,class:"SingleShow__content-right"},lo={class:"SingleShow__shows"},ro={class:"SingleShow__shows-title"},_o={key:0,class:"SingleShow__shows-title__year"},co={class:"SingleShow__shows-ul"},ho={key:1,id:"show-credits",class:"SingleShow__credits"},uo={key:2,class:"SingleShow__program"},zo={__name:"singleShow",async setup(wo){var D,ee,te,oe,se,ne,ie,le,re,_e,ce,he,ue,de,we,Se,me,ae,fe,ye,ke,ge,ve,be,$e,Te,pe,Be;let R,F;const p=De(),M=et(),H=tt(),{scrollTo:Ge}=ot(),Fe=H.params.slug,{lang:v}=H.meta,E=Lt(!1),{data:P}=([R,F]=xt(()=>St({operation:"getSingleShow",variables:{site:v,slug:Fe}})),R=await R,F(),R),U=t=>{var r,d,h,f,y,k;if((t==null?void 0:t.length)===1)return{start:(d=C({date:(r=t[0])==null?void 0:r.date,lang:v}))==null?void 0:d.dayMonthYear,end:null};if((t==null?void 0:t.length)>1)return{start:(f=C({date:(h=t[0])==null?void 0:h.date,lang:v}))==null?void 0:f.dayMonth,end:(k=C({date:(y=t[t.length-1])==null?void 0:y.date,lang:v}))==null?void 0:k.dayMonthYear}},e=(D=P==null?void 0:P.value)==null?void 0:D.entry;if(!e)throw st({statusCode:404,message:"Page not found",fatal:!0});const j=e==null?void 0:e.seo,I=(oe=nt((te=(ee=e==null?void 0:e.localized)==null?void 0:ee[0])==null?void 0:te.url))==null?void 0:oe.path,q=(ne=(se=e==null?void 0:e.showEdition)==null?void 0:se[0])==null?void 0:ne.title,z=(le=(ie=e==null?void 0:e.showEdition)==null?void 0:ie[0])==null?void 0:le.archived,W=(_e=(re=e==null?void 0:e.brandingColor)==null?void 0:re[0])==null?void 0:_e.color,He=At(()=>[{"--show-bg-color":W||"#ffffff"}]),J={image:it(e==null?void 0:e.imageElement),video:lt((ce=e==null?void 0:e.videoComponent)==null?void 0:ce[0]),mediaType:e!=null&&e.toggleMediaElement?"video":"false",date:U(e==null?void 0:e.showRepresentations),title:e==null?void 0:e.title,subtitle:e==null?void 0:e.subtitleElement,text:e==null?void 0:e.subsubtitleElement,links:N(e==null?void 0:e.link1Element),tags:[...e==null?void 0:e.showDisciplines,...e==null?void 0:e.showCategories].sort(t=>t.slug==="gratuit"||t.slug==="free"?-1:1),isArchive:z},O=(he=e==null?void 0:e.showRepresentations)==null?void 0:he.map(t=>{var r;return{title:t.title,date:C({date:t.datetime,lang:v}),hour:C({date:t.hour,lang:v}),location:{title:t.location,url:t.locationUrl},note:t.note,link:N((r=t.link1Element)==null?void 0:r[0]),isArchive:z}}),Y=e==null?void 0:e.showDescription,m={title:(e==null?void 0:e.creditsTitle)??p.$translate("Voir les crédits"),subtitle:e==null?void 0:e.creditsSubtitle,content:e==null?void 0:e.creditsContent},B=N(e==null?void 0:e.introLinks);m!=null&&m.content&&(B==null||B.unshift({url:"#show-credits",label:p.$translate("Voir les crédits"),linkStyle:"btn-secondary"}));const X=rt(e==null?void 0:e.logosGroups),K=_t(e==null?void 0:e.showInformation),Q=ct(e),a={title:e==null?void 0:e.showArtistsTitle,repeater:e==null?void 0:e.showArtists};let b=null;(ue=e==null?void 0:e.interview)!=null&&ue[0]&&(b={title:(we=(de=e==null?void 0:e.interview)==null?void 0:de[0])==null?void 0:we.title,text:(me=(Se=e==null?void 0:e.interview)==null?void 0:Se[0])==null?void 0:me.wysiwygSimpleElement,link:{label:p.$translate("single_show_interview_button_label"),url:(fe=(ae=e==null?void 0:e.interview)==null?void 0:ae[0])==null?void 0:fe.url,linkStyle:"btn-secondary"}});const L={title:p.$translate("single_show_media_echo_title"),stories:ht(e==null?void 0:e.quoteComponent)},u={title:e==null?void 0:e.linkedTitle,representations:e==null?void 0:e.showsSelector};u.representations&&(u.representations=u.representations.slice().sort((t,r)=>{var f,y,k,x;const d=new Date(((y=(f=t.showRepresentations)==null?void 0:f[0])==null?void 0:y.date)||1/0),h=new Date(((x=(k=r.showRepresentations)==null?void 0:k[0])==null?void 0:x.date)||1/0);return d-h}
1));const Z={title:e!=null&&e.linkedShowsTitle?e.linkedShowsTitle:(ke=(ye=M.value.globalInfos)==null?void 0:ye.options)==null?void 0:ke.linkedProgTitle,description:(ve=(ge=M.value.globalInfos)==null?void 0:ge.options)==null?void 0:ve.linkedProgDescription,shows:(be=e==null?void 0:e.linkedShows)!=null&&be.length?ze(e.linkedShows):ze(e==null?void 0:e.linkedShowsFiller),link:[{label:p.$translate("program_all_button_label"),url:(Te=($e=M.value.globalInfos)==null?void 0:$e.options)==null?void 0:Te.showsListingLink,linkStyle:"btn-secondary"}]},Ue={categories:e==null?void 0:e.showCategories.map(t=>t.title).join(", "),disciplines:e==null?void 0:e.showDisciplines.map(t=>t.title).join(", "),type:(e==null?void 0:e.showType)=="playground"?"Terrain de jeu":"Spectacle",edition:(Be=(pe=e==null?void 0:e.showEdition)==null?void 0:pe[0])==null?void 0:Be.title};return I&&ut(I),j&&Rt(j,I),Vt(()=>{E.value=!0,Mt(()=>{var r,d,h;Ge({to:0,immediate:!0});const t=(r=e==null?void 0:e.seo)!=null&&r.metaTitleContainer?JSON.parse((d=e==null?void 0:e.seo)==null?void 0:d.metaTitleContainer):null;dt((h=t==null?void 0:t.title)==null?void 0:h.title,Ue)})}),wt(()=>{E.value=!1}),(t,r)=>{var Ce,Re,Le,xe,Ae,Ve,Me,Ee,Pe;const d=Ze,h=mt,f=at,y=kt,k=gt,x=vt,je=ft,qe=bt,We=$t,Je=Tt,Oe=pt,Ye=Bt,Xe=yt,Ke=Ct;return o(),s("div",{class:Pt(["SingleShow",{"SingleShow--appear":i(E)}]),style:It(i(He))},[J?(o(),V(d,G(g({key:0},J)),null,16)):n("",!0),_("div",zt,[_("div",Nt,[i(Y)?(o(),s("div",Gt,[c(h,{wysiwyg:i(Y)},null,8,["wysiwyg"])])):n("",!0),(Ce=i(B))!=null&&Ce.length?(o(),s("div",Ft,[c(f,{links:i(B)},null,8,["links"])])):n("",!0),(Re=i(X))!=null&&Re.length?(o(),s("div",Ht,[(o(!0),s($,null,T(i(X),(l,w)=>(o(),V(y,g({key:`SingleShowGroupLogo-${w}`,class:"SingleShow__logos-group",ref_for:!0},l),null,16))),128))])):n("",!0),(Le=i(K))!=null&&Le.length?(o(),s("div",Ut,[_("h3",jt,S(t.$translate("single_show_informations_label")),1),_("ul",qt,[(o(!0),s($,null,T(i(K),(l,w)=>{var Ie;return o(),s("li",{key:`SingleShowInformation-${w}`,class:"SingleShow__information"}
1,[l.title?(o(),s("h4",Wt,S(l.title),1)):n("",!0),(Ie=l.table)!=null&&Ie.length?(o(),s("ul",Jt,[(o(!0),s($,null,T(l.table,(A,Qe)=>(o(),s("li",{key:`SingleShowInformationTable-${Qe}`,class:"SingleShow__information-table"},[A.label?(o(),s("p",Ot,S(A.label),1)):n("",!0),A.value?(o(),s("p",Yt,S(A.value),1)):n("",!0)]))),128))])):n("",!0)])}),128))])])):n("",!0),i(Q)?(o(),s("div",Xt,[c(k,g({class:"SingleShow__gallery-component"},i(Q),{slideBreakpoints:{0:{slidesPerView:1.1,spaceBetween:16},481:{slidesPerView:2.2,spaceBetween:16},900:{slidesPerView:2.2,spaceBetween:24}}}),null,16)])):n("",!0),(xe=a==null?void 0:a.repeater)!=null&&xe.length?(o(),s("div",Kt,[a!=null&&a.title?(o(),s("h2",Qt,S(a.title),1)):n("",!0),_("ul",Zt,[(o(!0),s($,null,T(a.repeater,(l,w)=>(o(),s("li",{key:`SingleShowArtist-${w}`,class:"SingleShow__artist"},[c(x,g({ref_for:!0},l),null,16)]))),128))])])):n("",!0),i(b)?(o(),s("div",Dt,[_("h2",eo,S(t.$translate("interview_title")),1),i(b).text?(o(),V(h,{key:0,class:"SingleShow__interview-text",wysiwyg:i(b).text},null,8,["wysiwyg"])):n("",!0),(Ae=i(b).link)!=null&&Ae.url?(o(),V(je,g({key:1,class:"SingleShow__interview-button"},i(b).link),null,16)):n("",!0)])):n("",!0),(Ve=L==null?void 0:L.stories)!=null&&Ve.length?(o(),s("div",to,[c(qe,G(Ne(L)),null,16)])):n("",!0),(Me=u==null?void 0:u.representations)!=null&&Me.length?(o(),s("div",oo,[u.title?(o(),s("h2",so,S(u.title),1)):n("",!0),_("ul",no,[(o(!0),s($,null,T(u.representations,(l,w)=>(o(),s("li",{key:`SingleShowRelatedRep-${w}`,class:"SingleShow__related-item"},[c(We,g({ref_for:!0},l,{date:U(l.showRepresentations)}),null,16,["date"])]))),128))])])):n("",!0)]),(Ee=i(O))!=null&&Ee.length?(o(),s("div",io,[_("div",lo,[_("h2",ro,[_("span",null,S(t.$translate("single_show_representations_label")),1),i(q)?(o(),s("span",_o,S(i(q)),1)):n("",!0)]),_("ul",co,[(o(!0),s($,null,T(i(O),(l,w)=>(o(),s("li",{key:`SingleShowRepresentation-${w}`,class:"SingleShow__show"},[c(Je,g({ref_for:!0},l),null,16)]))),128))])])])):n("",!0)]),m&&(m!=null&&m.content)?(o(),s("div",ho,[c(Oe,{credits:[m]},null,8,["credits"])])):n("",!0),(Pe=Z.shows)!=null&&Pe.length&&!i(z)?(o(),s("div",uo,[c(Ye,G(Ne(Z)),null,16)])):n("",!0),c(Ke,{"when-idle":""},{default:Et(()=>[c(Xe)]),_:1})],6)}}};export{zo 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.