PageSourceSearch

https://www.cinoche.com/_nuxt/DBp8MNCM.js

js cinoche.com collected 2026-10-02 06:15:13 UTC 13,685 bytes, 1 lines download raw bytes

1import{_ as Ne}from"./WOKVY4Bm.js";import{u as xe,b as re,_ as Le}from"./D7k8x637.js";import{_ as Ve}from"./D3QLMyYL.js";import{_ as Ue,a as ze}from"./Ci2I8nSJ.js";import{_ as Oe}from"./C2SIkDhL.js";import{aS as Be,b8 as le,bh as je,b9 as Fe,ba as We,bu as qe,bl as Je,bY as Ge,bm as Ye,aY as H,aZ as w,b4 as _,b1 as D,bi as ce,aU as o,aT as e,aV as i,a$ as l,a_ as a,bv as ue,b0 as d,b2 as p,bj as O,b3 as B,ck as Ke,aW as T,aX as I,bd as M,bK as de,bL as Ze,b5 as Qe,bf as Xe,b6 as et}from"./CaADW_W0.js";import{_ as tt}from"./DVNSSss-.js";import{I as st,_ as nt}from"./DTMdpa5t.js";import{s as j,a as ot}from"./lsFprwdU.js";import{I as at}from"./LtjVNHOA.js";import{I as it}from"./fpaiomlP.js";import{I as rt}from"./CukjVPBo.js";import{a as lt,_ as ct}from"./DRbaD_Va.js";import{D as ut}from"./DCJ9b1LL.js";import{I as dt}from"./BJrfJZnC.js";import{I as _e}from"./D2IIw4kN.js";import{u as _t}from"./CAcGATqf.js";import{a as mt}from"./fZOTakI4.js";import{u as pt}from"./P1BvsJPl.js";import{u as me}from"./i0IpOKno.js";import{u as vt}from"./keMahGrA.js";import{u as gt}from"./nRc-Iuuq.js";import{u as pe}from"./BPXYUA9Q.js";import"./Dt7ADQEH.js";import"./DUmcU6WY.js";import"./Csjios5D.js";import"./B6XTSGTF.js";import"./DF7qhdFr.js";import"./DKrJWiIH.js";import"./DBef17bF.js";import"./CUZ6Oa4w.js";import"./CJd2DaN1.js";import"./DB-93O7m.js";(function(){try{var f=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};f.SENTRY_RELEASE={id:"1.3.8"};var b=new f.Error().stack;b&&(f._sentryDebugIds=f._sentryDebugIds||{},f._sentryDebugIds[b]="e108cf6d-c269-47f0-85fc-2a6a11f97ced",f._sentryDebugIdIdentifier="sentry-dbid-e108cf6d-c269-47f0-85fc-2a6a11f97ced")}catch{}})();const ht={key:0,class:"theater"},ft={class:"theater__header"},bt=["src","alt"],yt={class:"theater__content"},kt={class:"theater__header-main"},wt=["src","alt"],Tt={class:"theater__title"},It={class:"theater__header-details"},Mt={class:"theater__tags"},$t={key:0},Ct={key:1},Dt={key:2},At={class:"theater__header-actions"},Pt={class:"theater__meta-toggle-icon"},St={key:0,class:"theater__footer"},Ht={class:"theater__meta-wrapper"},Rt={class:"theater__meta-panel"},Et={key:0,class:"theater__meta-block"},Nt={class:"theater__meta-address"},xt=["href"],Lt={key:0,class:"theater__meta-block"},Vt={key:0,class:"pricing-sections"},Ut={class:"theater__meta-section-title"},zt={class:"theater__meta-section-price"},Ot={key:0,class:"pricing-notes"},Bt=["innerHTML"],jt=["innerHTML"],Ft={key:0,class:"theater__info-message"},Wt=["innerHTML"],qt={key:1,class:"movies"},Jt={key:0,class:"movie-screenings-group__label"},Gt={key:0,class:"movie-screenings__featured-banner"},Yt={class:"movie-screenings__content"},Kt={class:"movie-screenings__poster-wrapper"},Zt={class:"movie-screenings__details"},Qt={class:"movie-screenings__header"},Xt=["title"],es={class:"movie-screenings__tags"},ts={class:"movie-screenings__reviews"},ss={class:"movie-screenings__review"},ns={key:0},os={key:1},as={key:2},is={key:3},rs=Be({__name:"index",async setup(f){let b,R;const{$api:F}=le(),W=je(),E=_(()=>W.params.slug),{data:q,error:J}=([b,R]=Fe(async()=>_t(()=>`theater-${E.value}`,async()=>{const[t,s]=await Promise.all([F(`/api/theaters/${E.value}`),F(`/api/theaters/${E.value}/screenings?with_featured=true`)]);return{theater:t.data,screenings:s.data}},"$HL9ZeuN7Go")),b=await b,R(),b);if(J.value)throw We(J.value);const A=ce(!1),u=ce(),n=_(()=>q.value?.theater),$=_(()=>q.value?.screenings??{}),y=_(()=>Object.keys($.value)),ve=_(()=>u.value?$.value[u.value]:[]);qe(()=>{!u.value&&y.value.length&&(u.value=y.value[0])});const v=_(()=>n.value?.name.toUpperCase()),ge=_(()=>`${v.value} - Horaire Cinéma`),N=_(()=>`Horaire des représentations au cinéma ${n.value?.name.toUpperCase()}`);mt({title:ge,ogTitle:n.value?.name.toUpperCase(),description:N,ogDescription:N,twitterTitle:n.value?.name.toUpperCase(),twitterDescription:N});const he=_(()=>Object.values($.value).flat()),{normalized:fe}=re(he),{normalized:x}=re(ve),{filteredEntries:C,sections:G,state:k,reset:Y}=xe(x,["sort","versions","types","ratings","genres"],["title","release_date"],void 0,fe),P=_(()=>{if(!u.value)return null;const t=y.value.indexOf(u.value);return y.value.slice(t+1).find(s=>$.value[s]?.length)??null}),L=_(()=>{if(!u.value)return null;const t=y.value.indexOf(u.value);return y.value.slice(0,t).reverse().find(s=>!ee(s,"day")&&$.value[s]?.length)}),be=()=>{A.value=!A.value},K=_(()=>`${n.value?.location.postal_address}, ${n.value?.location.city}, ${n.value?.location.province} ${n.value?.location.postal_code}`),Z=_(()=>pt(n.value?.id)),{$absoluteUrl:Q}=le(),{cdnMedia:ye}=me(),{toIsoDateTime:ke,formatWeekdayFullDate:X,isPast:ee}=vt(),we=Je(),{buildBreadcrumbList:Te,buildImageObject:Ie}=gt(),V=t=>{if(!n.value?.is_drivein)return null;const s=t.movies.length;return s<=1?null:s===2?"Programme double":s===3?"Programme triple":s===4?"Programme quadruple":"Programme multiple"},te=(t,s)=>!n.value?.is_drivein||t.movies.length<=1?t.screening_groups??[]:t.screening_groups?.filter(m=>m.movie_id===s)??[],Me=(t,s)=>{const m=te(t,s.id)[0];return s.versions?.find(g=>g.type.id===m?.type.id)?.poster??s.poster},se=t=>({"@type":"Movie",name:D(t),alternateName:t.original_title&&t.original_title!==D(t)?t.original_title:void 0,url:Q(we.resolve({name:"movies-slug",params:{slug:t.slug}}).href),image:Ie(t.poster?ye(t.poster,"1200x1200",{crop:!1}):void 0,D(t))}),$e=t=>u.value?!t||t==="AT_DUSK"?n.value?.is_drivein?{"@type":"ScreeningEvent",description:"Projection débutant au crépuscule"}:null:{"@type":"ScreeningEvent",startDate:ke(u.value,t),offers:ee(u.value,t)?void 0:{"@type":"Offer",availability:"https://schema.org/InStock"}}:null,Ce=t=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(t):setTimeout(t,0)},ne=()=>C.value.map(t=>{const s=t.screening_groups?.flatMap(m=>m.screenings).map(m=>
1$e(m)).filter(Boolean)??[];return t.movies.length>1?{"@type":"ScreeningEvent",name:V(t),location:{"@type":"MovieTheater",name:v.value},workPresented:t.movies.map(se),subEvent:s.length?s:void 0}:{"@type":"ScreeningEvent",name:D(t.movies[0]),location:{"@type":"MovieTheater",name:v.value},workPresented:se(t.movies[0]),subEvent:s.length?s:void 0}}),oe=Ge(ne());let U=!1;Ye(C,()=>{U||(U=!0,Ce(()=>{U=!1,oe.value=ne()}))}),pe(()=>({"@context":"https://schema.org","@type":"MovieTheater",name:v.value,url:Q(W.path),description:n.value?.info_message?j(n.value.info_message):`${n.value?.name} - Horaire des films et séances cinéma`,address:n.value?.location?{"@type":"PostalAddress",streetAddress:n.value.location.postal_address,addressLocality:n.value.location.city,addressRegion:n.value.location.province,postalCode:n.value.location.postal_code,addressCountry:"CA"}:void 0,geo:n.value?.location?.lat&&n.value?.location?.lng?{"@type":"GeoCoordinates",latitude:n.value.location.lat,longitude:n.value.location.lng}:void 0,keywords:[v.value,n.value?.chain?.name,n.value?.location?.city,"cinéma","horaire cinéma","films au cinéma","bande-annonce","séances cinéma","cinéma Québec"].filter(
1Boolean),hasPart:oe.value})),pe(()=>Te([{name:"Accueil",to:"/"},{name:"Cinémas",to:"/cinemas"},{name:n.value?.name}]));const De=t=>{const s=t.reviews?.press?.reviews??[],m=s.length?s.reduce((g,z)=>g+(z.rating??0),0)/s.length:void 0;return[{label:"Cinoche.com",note:t.reviews?.cinoche?.[0]?.review?.note.value},{label:"Presse",note:m?Math.round(m):void 0},{label:"Membres",note:t.reviews?.users?.avg}].filter(g=>g.note)},{cinocheApiImageUrl:ae}=me(),S=_(()=>n.value?.logo||n.value?.chain?.logo);return(t,s)=>{const m=Ne,g=Le,z=Ve,Ae=Ue,Pe=Oe,ie=Qe,Se=tt,He=nt,Re=ze;return o(),H(ut,null,{default:w(()=>[e(n)?(o(),i("div",ht,[l(m,{title:"Retour à tous les cinémas",to:{name:"theaters"}}),a("section",ft,[e(S)?(o(),i("img",{key:0,src:e(ae)(e(S)),alt:`Logo du cinéma ${e(v)}`,class:"theater__logo tablet-desktop"},null,8,bt)):(o(),H(ue(e(Z)),{key:1,class:"theater__logo tablet-desktop"})),a("div",yt,[a("div",kt,[e(S)?(o(),i("img",{key:0,src:e(ae)(e(S)),alt:`Logo du cinéma ${e(v)}`,class:"theater__logo small-mobile"},null,8,wt)):(o(),H(ue(e(Z)),{key:1,class:"theater__logo small-mobile"})),a("h1",Tt,d(e(v)),1)]),a("div",It,[a("ul",Mt,[e(n).chain?(o(),i("li",$t,d(e(n).chain?.name),1)):p("",!0),e(n).is_drivein?(o(),i("li",Ct,d(t.$pluralize("{n} écran | {n} écrans",e(n).screen_count)),1)):(o(),i("li",Dt,d(t.$pluralize("{n} salle | {n} salles",e(n).screen_count))+" de cinéma",1))]),a("div",At,[l(g,{modelValue:e(k),"onUpdate:modelValue":s[0]||(s[0]=r=>O(k)?k.value=r:null),sections:e(G),mode:"button",class:"filter-button tablet-desktop",onReset:e(Y)},null,8,["modelValue","sections","onReset"]),a("button",{type:"button",class:"theater__meta-toggle",onClick:be},[s[5]||(s[5]=a("span",null,"Prix et adresse",-1)),a("div",Pt,[l(e(dt),{class:B(["theater__icon",{open:e(A)}])},null,8,["class"])])])])])]),l(Ke,{name:"theater-meta"},{default:w(()=>[e(A)?(o(),i("div",St,[a("div",Ht,[a("aside",Rt,[e(n).location?(o(),i("div",Et,[s[6]||(s[6]=a("h2",{class:"theater__meta-title"},"Adresse",-1)),a("div",Nt,[l(e(rt),{class:"theater__meta-address-icon"}),a("a",{href:`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e(K))}`,target:"_blank"},d(e(K)),9,xt)])])):p("",!0),s[8]||(s[8]=a("div",{class:"theater__meta-divider"},null,-1)),l(z,null,{default:w(()=>[e(n).formatted_pricing_info||e(n).pricing_info?(o(),i("div",Lt,[s[7]||(s[7]=a("h2",{class:"theater__meta-title"},"Tarifs",-1)),e(n).formatted_pricing_info?(o(),i("div",Vt,[(o(!0),i(T,null,I(e(n).formatted_pricing_info.sections,r=>(o(),i("div",{key:r.key,class:"pricing-section"},[a("h3",Ut,d(r.category),1),a("ul",{class:B(["theater__meta-section-prices",{"theater__meta-section-prices--two-columns":r.items.length>11}])},[(o(!0),i(T,null,I(r.items,c=>(o(),i("li",{key:c.key},[a("span",null,d(c.type)+" : ",1),a("span",zt,d(c.price?.toFixed(2))+"$ ",1)]))),128))],2)]))),128)),e(n).formatted_pricing_info.notes?.length?(o(),i("ul",Ot,[(o(!0),i(T,null,I(e(n).formatted_pricing_info.notes,r=>(o(),i("li",{key:r.key,innerHTML:t.$sanitizeHtml(r.text)},null,8,Bt))),128))])):p("",!0)])):(o(),i("div",{key:1,class:"theater__meta-section-prices",innerHTML:("sanitizeHtml"in t?t.sanitizeHtml:e(ot))(e(n).pricing_info)},null,8,jt))])):p("",!0)]),_:1})])])])):p("",!0)]),_:1}),l(g,{modelValue:e(k),"onUpdate:modelValue":s[1]||(s[1]=r=>O(k)?k.value=r:null),sections:e(G),mode:"button",class:"filter-button small-mobile",onReset:e(Y)},null,8,["modelValue","sections","onReset"])]),e(n).info_message&&("stripHtmlTags"in t?t.stripHtmlTags:e(j))(e(n).info_message)?(o(),i("p",Ft,[l(e(st)),a("span",{innerHTML:("stripHtmlTags"in t?t.stripHtmlTags:e(j))(e(n).info_message)},null,8,Wt)])):p("",!0),l(Ae,{modelValue:e(u),"onUpdate:modelValue":s[2]||(s[2]=r=>O(u)?u.value=r:null),dates:e(y),class:"dates-slider"},null,8,["modelValue","dates"]),e(C).length?(o(),i("section",qt,[(o(!0),i(T,null,I(e(C),r=>(o(),i("div",{key:r.movie.id,class:"movie-screenings-group"},[V(r)?(o(),i("div",Jt,d(V(r)),1)):p("",!0),(o(!0),i(T,null,I(r.movies,(c,Ee)=>(o(),i("div",{key:c.id,class:B(["movie-screenings",{"movie-screenings--grouped":r.movies.length>1,"movie-screenings--featured":c.featured}])},[c.featured?(o(),i("div",Gt,[l(e(it),{width:"16",height:"16"}),M(" "+d(("isMovieNewThisWeek"in t?t.isMovieNewThisWeek:e(de))(c)?"Nouveauté":"Film")+" en vedette ",1)])):p("",!0),a("div",Yt,[a("div",Kt,[l(Pe,{movie:c,poster:Me(r,c),"hide-datas":"","featured-section-suffix":"-theater",class:"movie-screenings__poster"},Ze({_:2},[("isMovieNewThisWeek"in t?t.isMovieNewThisWeek:e(de))(c)?{name:"bottom-center",fn:w(()=>[s[9]||(s[9]=a("span",null,"Nouveauté",-1))]),key:"0"}:void 0]),1032,["movie","poster"])]),a("div",Zt,[a("div",Qt,[l(ie,{to:{name:"movies-slug",params:{slug:c.slug}},class:"movie-screenings__title"},{default:w(()=>[M(d(("movieTitle"in t?t.movieTitle:e(D))(c)),1)]),_:2},1032,["to"]),(o(!0),i(T,null,I(("movieOtherVersions"in t?t.movieOtherVersions:e(Xe))(c),h=>(o(),i("h4",{key:h.id,class:"movie-screenings__versions"},[a("abbr",{title:h.type.name},d(h.type.abbreviation)+" :",9,Xt),a("span",null,d(h.title),1)]))),128))]),a("div",es,[l(lt,{movie:c,"hide-year":""},null,8,["movie"]),l(ct,{ratings:c.ratings,"show-full":!0},null,8,["ratings"])]),a("div",ts,[(o(!0),i(T,null,I(De(c),h=>(o(),i("span",{key:h.label},[a("span",ss,[M(d(h.label)+" ",1),l(Se,{note:h.note,"show-digit":""},null,8,["note"])])]))),128))]),l(ie,{to:{name:"movies-slug-videos-id",params:{slug:c.slug}},class:"button button--primary arrow"},{default:w(()=>[s[10]||(s[10]=a("span",null,"Voir la bande-annonce",-1)),l(e(at))]),_:1},8,["to"])])]),l(He,{"screening-groups":te(r,c.id),"selected-date":e(u),"selected-versions":e(k).versions,theater:e(n),"movie-index":Ee+1,class:"screenings-times"},null,8,["screening-groups","selected-date","selected-versions","theater","movie-index"])],2))),128))]))),128))])):(o(),H(Re,{key:2,title:!e(P)&&e(x).length===0?"Aucune projection prévue à ce cinéma":void 0,class:"movies"},{default:w(()=>[e(C).length===0&&e(x).length>0?(o(),i("p",ns," Essayez de modifier les filtres sélectionnés ")):e(L)?(o(),i("p",os,[s[11]||(s[11]=M(" Date précédente avec des projections : ",-1)),a("button",{type:"button",onClick:s[3]||(s[3]=r=>u.value=e(L))},[M(d(e(X)(e(L)))+" ",1),l(e(_e))])])):e(P)?(o(),i("p",as,[s[12]||(s[12]=M(" Prochaine date avec des projections : ",-1)),a("button",{type:"button",onClick:s[4]||(s[4]=r=>u.value=e(P))},[M(d(e(X)(e(P)))+" ",1),l(e(_e))])])):(o(),i("p",is,"Revenez plus tard pour consulter les futurs horaires"))]),_:1},8,["title"]))])):p("",!0)]),_:1})}}}),Os=et(rs,[["__scopeId","data-v-52ca23fd"]]);export{Os 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.