PageSourceSearch

https://cineville.nl/_next/static/chunks/pages/films/[...slug]-b602912e69b13221.js

js cineville.nl collected 2026-10-02 02:31:41 UTC 13,941 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[811],{12339:(e,i,t)=>{"use strict";t.d(i,{p:()=>d});var s=t(35858),n=t(89099),a=t(7030),l=t(55729),r=t(88987);function d(e){let{locale:i}=(0,n.useRouter)(),{t}=(0,a.Bd)("filters"),d=(0,r.M)();return(0,l.useMemo)(()=>(0,s.T_)((0,s.BM)(e),t,i,d),[e,t,i,d])}},15220:(e,i,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/films/[...slug]",function(){return t(65987)}])},22078:(e,i,t)=>{"use strict";t.d(i,{I:()=>r});var s=t(35858),n=t(7030),a=t(55729),l=t(88987);function r(e=!0){let{t:i,i18n:{language:t}}=(0,n.Bd)("filters");return(0,a.useMemo)(()=>[...e?[{label:i("days"),value:""}]:[],...(0,s.KN)(new Date,t,(0,l.M)())],[e,t,i])}},65987:(e,i,t)=>{"use strict";t.r(i),t.d(i,{__N_SSG:()=>eo,default:()=>eh,fetchAllCollectionsOfProductionEvents:()=>ec});var s=t(6029),n=t(65911),a=t(48230),l=t.n(a),r=t(89099),d=t(10553),o=t(7030),c=t(55729),u=t(8836),h=t(96068),m=t(5341),g=t(40830),x=t(57497),j=t(89478),p=t(33421),v=t(39220),f=t(52438),y=t(26354),I=t(92634),b=t(85068),w=t(2543),$=t(35858),C=t(77659),B=t(51838),F=t(27497),D=t(63628),S=t(27295);let k=({averageRating:e,numberOfRatings:i,...t})=>{let{t:n}=(0,o.Bd)("films");return(0,s.jsxs)(v.s,{gap:"2",align:"end",...t,children:[(0,s.jsx)(M,{rating:e}),(0,s.jsx)(S.E,{variant:"body5",css:{color:"$zorroA2"},children:n("rating votes",{count:i})})]})},M=({rating:e,maxRating:i=D.XG})=>{let{t}=(0,o.Bd)("films");return(0,s.jsx)("div",{title:t("rating",{rating:e.toFixed(2),maxRating:i}),role:"meter","aria-valuenow":e,"aria-valuemax":i,"aria-valuemin":0,children:(0,s.jsx)("span",{"aria-hidden":!0,children:Array.from({length:i}).map((i,t)=>{let n=Math.min(Math.max(e-t,0),1);return(0,s.jsx)(D.XP,{percentage:n,width:16,height:16},`star-${t}`)})})})};var _=t(88161),P=t(78868),N=t(47040),O=t(98506),V=t(53204),E=t(18674),R=t(9794),T=t(54521);let H=(0,R.I4)("div",{marginY:"$6",borderBottom:"1px solid $zorro"}),A=({coverFallbackImage:e,film:{title:i,cover:t,trailer:n,description:a,shortDescription:l,editorsNote:r,spokenLanguages:d,releaseYear:c,duration:u,directors:h,cast:m,highlights:g,defaultHighlight:x,contentRatingMinimumAge:j},averageRating:p,numberOfRatings:I=0,isOnWatchlist:b,onClickWatchlistToggle:w,isLoadingWatchlistItem:$=!1,isOnVisitHistory:C,onClickVisitHistoryToggle:D,isLoadingVisitHistoryItems:S=!1,rating:M,onRate:P,isLoadingRating:N,festivals:V,asideContent:R,...A})=>{let{t:L}=(0,o.Bd)("films"),z=(0,T.a)();return(0,s.jsxs)(_.a,{as:"article",...A,children:[z&&R?(0,s.jsx)(_.a,{as:"aside",css:{gridArea:"aside",position:"sticky",top:"var(---navigationHeight, 0px)",alignSelf:"start",width:"100%",zIndex:10},children:R}):null,t||e?(0,s.jsx)(E.C,{cover:t||void 0,fallbackCover:e,trailer:n||void 0}):null,(0,s.jsxs)(y.w,{dense:!0,css:{display:"flex",flexDirection:"column",marginBottom:0,gap:"$14","@lg":{display:"grid",columnGap:"$5",rowGap:"$20",gridTemplateColumns:"50% 1fr 356px",gridTemplateAreas:'"main gap aside"'}},children:[(0,s.jsxs)(v.s,{as:"main",direction:"column",css:{gridArea:"main"},children:[I>=10&&void 0!==p&&(0,s.jsx)(k,{averageRating:p,numberOfRatings:I}),(0,s.jsx)(f._,{css:{marginBottom:"$6","@md":{marginBottom:"$4"}},children:i}),(0,s.jsxs)(v.s,{justify:"between",css:{flexDirection:"column",gap:"$6","@md":{flexDirection:"row"}},children:[w||w?(0,s.jsxs)(v.s,{gap:"2",children:[!!w&&(0,s.jsx)(F.O,{isSelected:b,disabled:$,onClick:w}),!!w&&(0,s.jsx)(B.q,{isSelected:C,disabled:S||N,onClick:D,rating:M,onRate:P})]}):null,(0,s.jsx)(O.S,{buttonLabel:L("share film"),title:i})]}),(0,s.jsx)(H,{css:{marginBottom:"$4"}}),(0,s.jsx)(W,{cast:m||void 0,directors:h||void 0,duration:u||void 0,releaseYear:c||void 0,spokenLanguages:d||void 0,contentRatingMinimumAge:j||void 0,css:{marginBottom:"$6","@md":{marginBottom:"$10"}}}),(0,s.jsx)(G,{title:i,shortDescription:l||void 0,description:a||void 0,editorsNote:r||void 0,highlights:g||[],defaultHighlight:x||void 0}),V.length?(0,s.jsx)(v.s,{direction:"column",css:{marginTop:"$12",gap:"$4"},children:V.map(e=>(0,s.jsx)(X,{title:i,festival:e},e.attributes.slug))}):null]}),!z&&R?(0,s.jsx)(_.a,{as:"aside",css:{gridArea:"aside"},children:R}):null]})]})},G=({title:e,description:i,editorsNote:t,highlights:n,defaultHighlight:a})=>{let{t:l}=(0,o.Bd)("common"),{filmOfTheWeek:r,tip:d}=(0,$.PW)(n),c=t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(H,{}),(0,s.jsx)(f.DZ,{as:"h3",variant:"heading5",css:{color:"$dumbo8",marginBottom:"$1"},children:l("note from the editors")}),(0,s.jsx)(V.c,{variant:"small",children:t})]}):null;if(r?.description&&r.active)return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(_.a,{children:[(0,s.jsx)(P.W,{children:r.label}),(0,s.jsx)(V.c,{variant:"body2",allowedElements:["p","em","a","strong"],children:`\u2018${r.description}\u2019`})]}),i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(H,{}),(0,s.jsx)(V.c,{children:i})]}):null,c]});let u=r?.description?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(H,{}),(0,s.jsxs)(_.a,{children:[(0,s.jsx)(P.W,{children:r.author?(0,s.jsxs)(o.x6,{t:l,i18nKey:"the author about title",values:{author:r.author,title:e},children:[r.author," about",(0,s.jsx)("span",{style:{fontStyle:"italic"},children:e})]}):(0,s.jsxs)(o.x6,{t:l,i18nKey:"the editors about title",values:{title:e},children:["The Cineville editors about",(0,s.jsx)("span",{style:{fontStyle:"italic"},children:e})]})}),(0,s.jsx)(V.c,{variant:"body2",allowedElements:["p","em","a","strong"],children:`\u2018${r.description}\u2019`})]})]}):null;return d?.description?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(_.a,{css:{marginBottom:"$6","@md":{marginBottom:"$10"}},children:[(0,s.jsx)(P.W,{children:d.label}),(0,s.jsx)(V.c,{variant:"body1",allowedElements:["p","em"],children:`\u2018${d.description}\u2019`})]}),i?(0,s.jsx)(V.c,{children:i}):null,u,c]}):(0,s.jsxs)(s.Fragment,{children:[a&&i?(0,s.jsx)(P.W,{children:a}):null,i?(0,s.jsx)(V.c,{children:i}):null,u,c]})},W=({directors:e,cast:i,duration:t,releaseYear:n,spokenLanguages:a=[],contentRatingMinimumAge:l,...r})=>{let{t:d,i18n:{language:u}}=(0,o.Bd)("films"),h=(0,C.c)(u),m=(0,c.useMemo)(()=>a.map(e=>h(e)),[a,h]);return(0,s.jsxs)(L,{...r,children:[e&&e.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z,{children:d`directed by`}),(0,s.jsx)(K,{children:e.join(", ")})]}):null,i&&i.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z,{children:d`starring`}),(0,s.jsx)(K,{children:i.join(", ")})]}):null,void 0!==t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z,{children:d`duration`}),(0,s.jsx)(K,{children:d("duration in minutes",{duration:t})})]}):null,void 0!==n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z,{children:d`release year`}),(0,s.jsx)(K,{children:n})]}):null,m&&m.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z,{children:d`spoken language`}),(0,s.jsx)(K,{children:m.join(", ")})]}):null,void 0!==l?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z,{children:d`content rating`}),(0,s.jsx)(K,{children:l})]}):null]})},L=(0,R.I4)("dl",{">:after":{display:"inline",content:" "}}),z=(0,R.I4)("dt",{display:"inline",fontFamily:"$averta",fontSize:"$14",lineHeight:"$body",fontWeight:"$semibold"}),K=(0,R.I4)("dd",{display:"inline",fontFamily:"$averta",fontSize:"$14",lineHeight:"$body"}),X=({title:e,festival:i,...t})=>{let{locale:n}=(0,r.useRouter)(),{t:a}=(0,o.Bd)("films");return(0,s.jsx)(N.n,{title:a`festival`,description:(0,s.jsxs)(o.x6,{t:a,i18nKey:"film plays at",values:{film:e,festival:i.attributes.title},children:[(0,s.jsx)("span",{style:{fontStyle:"italic"},children:e})," plays at",(0,s.jsx)("span",{style:{fontStyle:"italic"},children:i.attributes.title})]}),url:(0,j.O)(`/festivals/${i.attributes.slug}`,n),...t})};var q=t(29978),Z=t(51742),Y=t(40197),Q=t(22078),J=t(70219),U=t(12339);
1let ee=({onChange:e,filters:i,cities:t,theaters:n,children:a})=>{let{t:l}=(0,o.Bd)("films"),r=(0,Z.I)(e),d=(0,Y.z)(t),c=(0,J.p)(n),u=(0,Q.I)(),h=(0,U.p)(i.day);return(0,s.jsx)(q.Kq,{children:(0,s.jsxs)(q.lV,{children:[(0,s.jsx)(q.DZ,{children:l`filters heading`}),(0,s.jsxs)(q.NQ,{children:[d.length?(0,s.jsx)(q.wn,{children:(0,s.jsx)(q.ac,{options:d,value:i.cityIds||[],onChange:e=>r({...i,cityIds:e||void 0})})}):null,c.length?(0,s.jsx)(q.wn,{children:(0,s.jsx)(q.oD,{options:c,value:i.venueIds||[],onChange:e=>r({...i,venueIds:e||void 0})})}):null,(0,s.jsxs)(q.wn,{children:[(0,s.jsx)(q.vC,{options:u,value:i.day,onChange:e=>r({...i,day:e})}),(0,s.jsx)(q.Ci,{options:h,value:i.time,onChange:e=>r({...i,time:e})})]}),a]})]})})};var ei=t(58271);let et=({filters:e,onFiltersChange:i,showtimes:t,cities:n,theaters:a,openShowtime:l,isLoading:r,isError:d=!1,isFetchingNextPage:c=!1,fetchNextPage:u,reserveDisclaimer:h})=>{let{t:m}=(0,o.Bd)(["showtimes","common"]);return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(ee,{filters:e,cities:n,theaters:a,onChange:i,children:(0,s.jsx)(q.nB,{isLoading:r,isFetchingNextPage:c,isError:d,isNotFound:!t.length,errorMessage:m("showtimes loading error"),loadingDescription:m("loading",{ns:"common"}),notFoundDescription:m("no showtimes found"),children:(0,s.jsx)(ei.d,{showtimes:t,openShowtime:l,onEndReached:u,shouldAlwaysShowDayHeading:!e.day,itemDisplayInfo:"venue",reserveDisclaimer:h})})})})};var es=t(95785),en=t(4560),ea=t(34877),el=t(19143),er=t(48545),ed=t(32397),eo=!0;let ec=async(e,i)=>(await eu(async()=>await e.schedule.events.list({startDate:{gte:new Date().toISOString()},productionId:{eq:i},embed:{collections:!0},page:{limit:999}}))).filter((e,i,t)=>t.findIndex(i=>e.collectionGroupId===i.collectionGroupId&&e.collectionId===i.collectionId)===i),eu=async e=>{let i=await e();if(i.error)throw i.error;let t=i.rawData._embedded.events.flatMap(({_embedded:e})=>e.collections).flatMap(e=>e?[{collectionGroupId:e.collectionGroupId,collectionId:e.id}]:[]);return i.next?[...t,...await eu(i.next)]:t},eh=({settings:e,film:i,filmRating:t,films:a,festivals:$,relatedArticles:C,cities:B,theaters:F})=>{let D=e?.titleTemplate,S=e?.fallbackCover,k=e?.defaultBanner,M=e?.defaultImage,_=e?.reserveDisclaimer,{t:P}=(0,o.Bd)(),{locale:N}=(0,r.useRouter)(),{parameters:O}=(0,h.y)(),{isReady:V,filters:E,setFilters:R}=(0,g.G)({productionId:i.id}),T=(0,m.T)(),H=(0,d.useSession)(),G=(0,u.DB)(),{data:W,isFetching:L}=(0,n.PV)({userId:H.data?.user?.id,filmId:i.id}),z=W?.watchlistItem,K=W?.rating,X=W?.visitHistoryItems,{mutate:q,isPending:Z}=(0,n.rp)({userId:H.data?.user?.id,filmId:i.id}),{mutate:Y,isPending:Q}=(0,n.Ex)({userId:H.data?.user?.id,filmId:i.id,watchlistItemId:z?.id}),J=(0,c.useMemo)(()=>!!z,[z]),U=(0,c.useMemo)(()=>L||Z||Q,[L,Z,Q]),ee=(0,c.useCallback)(()=>{T(x.V.ChangeWatchlist,{props:{action:J?"remove":"add"}}),J?Y():q()},[J,q,Y,T]),[ei,eo]=(0,c.useState)(!1),{mutate:ec,isPending:eu}=(0,n.LP)({userId:H.data?.user?.id,filmId:i.id}),{mutate:eh,isPending:em}=(0,n.VV)({userId:H.data?.user?.id,visits:X?.map(({id:e})=>({id:e,filmId:i.id}))||[]}),eg=(0,c.useMemo)(()=>!!X?.length,[X]),ex=(0,c.useMemo)(()=>L||eu||em,[L,eu,em]),ej=(0,c.useCallback)(()=>{eg?eo(!0):(T(x.V.ChangeVisitHistory,{props:{action:"add"}}),ec())},[eg,ec,T]),{mutate:ep,isPending:ev}=(0,n.eX)({userId:H.data?.user?.id,filmId:i.id}),{mutate:ef,isPending:ey}=(0,n.OS)({userId:H.data?.user?.id,ratingId:K?.id,filmId:i.id}),{mutate:eI,isPending:eb}=(0,n.j3)({userId:H.data?.user?.id,ratingId:K?.id,filmId:i.id}),ew=(0,c.useMemo)(()=>L||ev||ey||eb,[L,ev,eb,ey]),e$=(0,c.useCallback)(e=>{T(x.V.RateFilm,{props:{action:"add"}}),K?ef({rating:e}):ep({rating:e})},[K,ep,ef,T]),{query:eC}=(0,er.h)({...E,productionId:i.id},B),eB=(0,ed.ZR)(E.cityIds,B),{data:eF=[]}=(0,n.rV)({collection:(0,er.d)(eB)},{initialData:F}),{data:eD,error:eS,hasNextPage:ek,fetchNextPage:eM,isFetchingNextPage:e_,isLoading:eP}=(0,n.NK)({...eC,page:{limit:20},locale:N,country:"NL"},{enabled:V}),eN=(0,n.TK)(eD),eO=(0,c.useMemo)(()=>eN?.find(e=>e.id===O.showtimeId),[eN,O]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b.Q,{title:i.title,template:D||void 0}
1),(0,s.jsx)(I.g,{titleForSeo:i.title,description:i.shortDescription||"",image:i.cover||M?.data?.attributes,video:i.trailer||void 0}),(0,s.jsx)(A,{css:{marginBottom:"$10","@md":{marginBottom:"$20"}},film:i,averageRating:t?.rating||void 0,numberOfRatings:t?.count,isOnWatchlist:J,onClickWatchlistToggle:G?ee:void 0,isLoadingWatchlistItem:U,isOnVisitHistory:eg,onClickVisitHistoryToggle:G?ej:void 0,isLoadingVisitHistoryItems:ex,rating:K?.rating,onRate:e$,isLoadingRating:ew,festivals:$,coverFallbackImage:S?.data?.attributes,asideContent:(0,s.jsx)(et,{filters:E,onFiltersChange:R,showtimes:eN,cities:B,theaters:eF,openShowtime:eO,isLoading:eP,isError:!!eS,isFetchingNextPage:e_,fetchNextPage:ek?eM:void 0,reserveDisclaimer:_})}),C.length?(0,s.jsxs)(y.w,{dense:!0,children:[(0,s.jsx)(ea.Y,{title:P`related articles`,articles:C}),(0,s.jsx)(v.s,{css:{justifyContent:"center",marginTop:"$10"},children:(0,s.jsx)(l(),{prefetch:!1,href:(0,j.O)("/magazine",N),passHref:!0,legacyBehavior:!0,children:(0,s.jsx)(p.$,{as:"a",variant:"secondary",children:P("to all articles")})})})]}):null,k?.data?.attributes?(0,s.jsx)(y.w,{dense:!0,children:(0,s.jsx)(en.M,{color:k.data.attributes.color,direction:{"@initial":"column","@md":"row"},image:k.data.attributes.image.data?.attributes||void 0,href:k.data.attributes.link,title:k.data.attributes.title,description:k.data.attributes.description})}):null,a.length?(0,s.jsxs)(y.w,{dense:!0,children:[(0,s.jsx)(f.fV,{css:{marginBottom:"$8"},children:P("now screening")}),(0,s.jsx)(w.f,{films:a,fallbackCover:S?.data?.attributes,userId:H.data?.user?.id}),(0,s.jsx)(v.s,{css:{justifyContent:"center",marginTop:"$10"},children:(0,s.jsx)(l(),{prefetch:!1,href:(0,j.O)("/films",N),passHref:!0,legacyBehavior:!0,children:(0,s.jsx)(p.$,{as:"a",variant:"secondary",children:P("to all films",{ns:"films"})})})})]}):null,(0,s.jsx)(es.G,{reserveDisclaimer:_}),X?(0,s.jsx)(el.Z,{deletesAll:!0,isOpen:ei,onOpenChange:eo,onDelete:()=>{T(x.V.ChangeVisitHistory,{props:{action:"remove"}}),eh(),eI(),ej(),eo(!1)}}):null]})}}},e=>{e.O(0,[593,584,216,613,394,697,175,403,275,636,792],()=>e(e.s=15220)),_N_E=e.O()}]);

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.