1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[411],{18660:(e,t,i)=>{"use strict";i.d(t,{U:()=>o});var r=i(39220);let o=(0,i(9794).I4)(r.s,{paddingX:"$5",marginX:"auto",maxWidth:"$maxWidth",width:"100%","@md":{paddingX:"$12"},"@xl":{paddingX:0}})},18683:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,i,r,o){return(i=i||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e)?Object.keys(e).map(function(o){var n=encodeURIComponent(t(o))+r;return Array.isArray(e[o])?e[o].map(function(e){return n+encodeURIComponent(t(e))}).join(i):n+encodeURIComponent(t(e[o]))}).filter(Boolean).join(i):o?encodeURIComponent(t(o))+r+encodeURIComponent(t(e)):""}},19115:(e,t,i)=>{"use strict";i.d(t,{O:()=>d});var r=i(6029),o=i(5452),n=i(55729),s=i(18103),a=i(21058),l=i(9794);let d=(0,n.forwardRef)(({id:e,label:t,colorScheme:i,...l},d)=>{let{inputId:m}=(0,n.useContext)(s._);if(!e&&!m)throw Error("Could not set id. It should either be provided through FieldContext or using prop `id`.");return(0,r.jsxs)(c,{colorScheme:i,children:[(0,r.jsx)(o.s6,{asChild:!0,children:(0,r.jsx)("input",{ref:d,type:"checkbox",id:m||e,...l})}),(0,r.jsx)(u,{colorScheme:i,...l,children:(0,r.jsx)(a.Jl,{})}),t]})});d.displayName="CheckboxInput";let c=(0,l.I4)("label",{userSelect:"none",fontFamily:"$averta",fontSize:"$14",variants:{colorScheme:{dark:{color:"$scream"},light:{color:"$zorro"}}}}),u=(0,l.I4)("span",{display:"inline-block",verticalAlign:"sub",height:"$4",width:"$4",border:"1px solid",borderRadius:"3px",marginRight:"$2",svg:{display:"none",color:"$scream"},"&:hover, label:hover > &":{transition:"0.2s all"},"input:checked + &":{backgroundColor:"$avatar5",borderColor:"$avatar5"},"input:checked + & svg":{display:"block"},variants:{colorScheme:{dark:{borderColor:"$screamA3","&:hover, label:hover > input:not(:checked) + &":{backgroundColor:"$screamA4"}},light:{borderColor:"$zorroA3","&:hover, label:hover > input:not(:checked) + &":{backgroundColor:"$zorroA4"}}}},defaultVariants:{colorScheme:"light"}})},20994:(e,t,i)=>{"use strict";i.d(t,{b:()=>c});var r=i(6029),o=i(55729),n=i(40197),s=i(29978),a=i(88161);let l=(0,i(9794).I4)(a.a,{"@md":{paddingX:"$10"},"@xl":{paddingX:0},borderTop:"1px solid $zorroA4",borderBottom:"1px solid $zorroA4",cursor:"pointer",variants:{isOpen:{true:{},false:{}},color:{dune:{backgroundColor:"$dune5","&:hover":{backgroundColor:"$dune4"}},mandy:{backgroundColor:"$mandy1","&:hover":{backgroundColor:"$mandy2"}}}},compoundVariants:[{color:"dune",isOpen:!0,css:{backgroundColor:"$dune4"}},{color:"mandy",isOpen:!0,css:{backgroundColor:"$mandy2"}}],defaultVariants:{color:"mandy"}}),d=({children:e,isOpen:t=!1,...i})=>(0,r.jsx)(l,{isOpen:t,...i,children:(0,r.jsx)(s.Kq,{children:(0,r.jsx)(s.lV,{css:{color:"$zorro",maxWidth:"calc($maxWidth + $sizes$10)",backgroundColor:"transparent",margin:"auto"},children:e})})}),c=({cities:e=[],value:t=[],open:i=!1,onChange:a,children:l,...c})=>{let[u,m]=(0,o.useState)(i),p=(0,n.z)(e);return(0,r.jsx)(d,{...c,isOpen:u,onClick:()=>m(!u),children:(0,r.jsx)(s.ac,{options:p,value:t,colorScheme:"light",onCh
1ange:a,open:u,children:l})})}},22944:(e,t,i)=>{"use strict";i.d(t,{R:()=>b,Y:()=>f});var r=i(6029),o=i(48555),n=i(35858),s=i(89099),a=i(7600),l=i(89478),d=i(56381),c=i(48230),u=i.n(c),m=i(87412),p=i(74555),g=i(14370),h=i(53204),x=i(32809);let v=({title:e,description:t,formattedDate:i,imagePath:o,imageAlt:n,url:s,direction:a="row",sizes:l=(0,x.o)("@xl 400px, @sm 50vw, 100vw")})=>(0,r.jsxs)(m.bL,{direction:a,css:"row"===a?{position:"relative",display:"grid",gridTemplateAreas:'"media" "body"',"@md":{gridTemplateColumns:"34% 1fr",gridTemplateAreas:'"body media"'}}:{position:"relative"},children:[(0,r.jsx)(m.$U,{css:{gridArea:"media"},children:(0,r.jsx)(g._,{image:o,alt:n||"",width:16,height:9,sizes:l,style:{width:"100%",height:"auto",objectFit:"cover",aspectRatio:16/9}})}),(0,r.jsxs)(m.nB,{css:{gridArea:"body",justifyContent:"center"},children:[(0,r.jsx)(m.f4,{children:i}),(0,r.jsx)(m.hE,{css:"row"===a?{fontSize:"$18","@md":{fontSize:"$32"}}:{},children:(0,r.jsx)(u(),{prefetch:!1,href:s,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(p.I,{css:{transition:"color 0.2s ease-in-out","&:hover":{color:"$dumbo7"}},children:e})})}),t?(0,r.jsx)(h.c,{variant:"body2",allowedElements:["p","em"],children:t}):null]})]});var $=i(9794);let f=({festivals:e})=>(0,r.jsx)(d.x,{as:"ol",flow:"row",children:e.map(e=>(0,r.jsx)(y,{children:(0,r.jsx)(b,{festival:e})},e.id))}),y=(0,$.I4)("li",{paddingY:"$6","@md":{paddingY:"$12"},borderBottom:"1px solid $zorro","&:first-child":{paddingTop:0},"&:last-child":{border:"none",paddingBottom:0}}),b=({festival:e,cardDirection:t="row"})=>{let{locale:i,query:d}=(0,s.useRouter)(),c=e.attributes.mainImage.data?.attributes,u=(0,l.O)(`/festivals/${e.attributes.slug}${d&&Object.keys(d).length?`?${(0,o.stringify)(d)}`:""}`,i);return c?(0,r.jsx)(v,{direction:t,formattedDate:(0,n.UO)(e.attributes.startDate,e.attributes.endDate,i),title:e.attributes.title,description:e.attributes.shortDescription||void 0,imagePath:(0,a.tx)(c),imageAlt:c.alternativeText||void 0,url:u,sizes:(0,x.o)("@xl 1000px, @lg 60vw, @md 100vw")}):null}},26354:(e,t,i)=>{"use strict";i.d(t,{w:()=>l});var r=i(6029),o=i(18660),n=i(9794);let s=(0,n.I4)("section",{display:"flex",flexDirection:"column",variants:{color:{dune:{backgroundColor:"$dune2"},shrek:{backgroundColor:"$shrek2"},avatar:{backgroundColor:"$avatar9"},suspiria:{backgroundColor:"$suspiria5"},mandy:{backgroundColor:"$mandy9"}}}}),a=(0,n.I4)(o.U,{marginTop:"$10",marginBottom:"$14","@md":{marginY:"$24"},variants:{dense:{true:{"@md":{marginTop:"$14"}}}}}),l=({color:e,...t})=>e?(0,r.jsx)(s,{color:e,children:(0,r.jsx)(a,{direction:"column",...t})}):(0,r.jsx)(a,{as:"section",direction:"column",...t})},29926:(e,t,i)=>{"use strict";i.d(t,{b:()=>r.b});var r=i(20994)},32809:(e,t,i)=>{"use strict";i.d(t,{o:()=>o});var r=i(9794);function o(e,t=r.$W){return e=n(e,"@",t?.media),e=n(e,"\\$",t?.theme?.sizes)}function n(e,t,i){return i?Object.entries(i).reduce((e,[i,r])=>e.replace(RegExp(`${t}${i}`,"g"),r.toString()),e):e}},33809:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSG:()=>j,default:()=>w});var r=i(6029),o=i(65911),n=i(78811),s=i(89099),a=i(7030),l=i(55729),d=i(88161),c=i(39220),u=i(19115),m=i(52129),p=i(12873),g=i(47822),h=i(26354),x=i(85068),v=i(29926),$=i(69805),f=i(22944),y=i(43926),b=i(99114),j=!0;let w=({page:{title:e,seo:t},settings:i,cities:j,festivalResults:w})=>{let{t:C}=(0,a.Bd)("festivals"),{locale:k,query:I,asPath:z,replace:S}=(0,s.useRouter)(),[A,E]=(0,l.useState)(!1),{cityIds:_,setGlobalFilters:R}=(0,b.A)(({cityIds:e,setGlobalFilters:t})=>({cityIds:e,setGlobalFilters:t})),O=(0,l.useMemo)(()=>_?.map(e=>{let t=j.find(t=>t.attributes.collection?.collectionId===e);return t?.id||""}).filter(e=>""!==e)||[],[j,_]),T=(0,l.useMemo)(()=>({..._?.length?{cities:{id:{$in:O}}}:{},...I.isCinevilleEvent?{isCinevilleEvent:{$eq:!0}}:{},...I.isNowPlaying?{startDate:{$lte:(0,n.A)(new Date,"yyyy-MM-dd")}}:{},endDate:{$gte:(0,n.A)(new Date,"yyyy-MM-dd")}}),[_,O,I.isCinevilleEvent,I.isNowPlaying]),{data:N,isFetching:D,fetchNextPage:F,hasNextPage:P,isFetchingNextPage:B}
1=(0,o.Pz)({filters:T,sort:["isPinned:desc","endDate:asc"],locale:k,pagination:{pageSize:20}},{initialData:w}),U=(0,o.TK)(N);(0,l.useEffect)(()=>{D||E(!1)},[D]),(0,l.useEffect)(()=>{(_?.length||I.isCinevilleEvent||I.isNowPlaying)&&E(!0)},[]);let V=({cityIds:e,isCinevilleEvent:t,isNowPlaying:i})=>{E(!0),R({cityIds:e?Array.isArray(e)?e:[e]:void 0});let r={...I};e?r.cityIds=e:delete r.cityIds,t?r.isCinevilleEvent="true":delete r.isCinevilleEvent,i?r.isNowPlaying="true":delete r.isNowPlaying,S({pathname:z.split("?")[0],query:r},void 0,{shallow:!0})};return(0,r.jsxs)(d.a,{children:[(0,r.jsx)(x.Q,{title:e,template:i?.titleTemplate||void 0}),(0,r.jsx)(y.d,{seo:t||void 0,defaultImage:i?.defaultImage.data?.attributes}),(0,r.jsx)($.z,{color:"mandy",children:e}),j.length?(0,r.jsx)(v.b,{cities:j,value:I.cityIds?Array.isArray(I.cityIds)?I.cityIds:[I.cityIds]:_||[],onChange:e=>V({...I,cityIds:e}),children:(0,r.jsxs)(c.s,{css:{paddingTop:"$5"},gap:6,onClick:e=>e.stopPropagation(),children:[(0,r.jsx)(u.O,{label:C("show only cineville events"),checked:!!I.isCinevilleEvent,onChange:e=>V({...I,isCinevilleEvent:e.currentTarget.checked})}),(0,r.jsx)(u.O,{label:C("show only now playing"),checked:!!I.isNowPlaying,onChange:e=>V({...I,isNowPlaying:e.currentTarget.checked})})]})}):null,(0,r.jsxs)(h.w,{dense:!0,children:[A?(0,r.jsx)(p.R,{message:C("looking for festivals")}):U.length?(0,r.jsx)(f.Y,{festivals:U}):(0,r.jsx)(g.c,{title:C("no festivals found")}),A||!P||B?null:(0,r.jsx)(m.p,{onInView:F}),B?(0,r.jsx)(p.R,{}):null]})]})}},35097:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/festivals",function(){return i(33809)}])},40197:(e,t,i)=>{"use strict";i.d(t,{z:()=>r});let r=e=>e.filter(e=>!!e.attributes.collection).map(({attributes:{name:e,collection:t}})=>({label:e,value:t?.collectionId||""}))},43926:(e,t,i)=>{"use strict";i.d(t,{d:()=>n});var r=i(6029),o=i(92634);let n=({seo:e,defaultImage:t,...i})=>{let{titleForSeo:n,description:s,image:a,canonicalUrl:l,shouldIndex:d=!0}=e||{},c=a?.data?.attributes||t;return(0,r.jsx)(o.g,{titleForSeo:n||void 0,description:s||void 0,image:c,canonicalUrl:l||void 0,shouldIndex:d||void 0,...i})}},47822:(e,t,i)=>{"use strict";i.d(t,{c:()=>d});var r=i(6029),o=i(88161),n=i(39220),s=i(52438),a=i(27295),l=i(21058);let d=({title:e,description:t})=>(0,r.jsxs)(o.a,{children:[(0,r.jsxs)(n.s,{gap:"5",align:"center",children:[(0,r.jsx)(l.bL,{css:{square:"$fontSizes$32",flexShrink:0},children:(0,r.jsx)(l.tZ,{})}),(0,r.jsx)(s.fV,{children:e})]}),t?(0,r.jsx)(a.E,{as:"p",variant:"body3",css:{marginTop:"$5"},children:t}):null]})},48555:(e,t,i)=>{"use strict";i(65295),t.stringify=i(18683)},65295:e=>{"use strict";e.exports=function(e,t,i,r){t=t||"&",i=i||"=";var o={};if("string"!=typeof e||0===e.length)return o;var n=/\+/g;e=e.split(t);var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var a=e.length;s>0&&a>s&&(a=s);for(var l=0;l<a;++l){var d,c,u,m,p=e[l].replace(n,"%20"),g=p.indexOf(i);(g>=0?(d=p.substr(0,g),c=p.substr(g+1)):(d=p,c=""),u=decodeURIComponent(d),m=decodeURIComponent(c),Object.prototype.hasOwnProperty.call(o,u))?Array.isArray(o[u])?o[u].push(m):o[u]=[o[u],m]:o[u]=m}return o}},69805:(e,t,i)=>{"use strict";i.d(t,{z:()=>s});var r=i(6029),o=i(52438);let n=(0,i(9794).I4)("div",{textAlign:"center",variants:{size:{small:{padding:"$12 $5"},large:{padding:"$24"}},color:{dune:{backgroundColor:"$dune5",color:"$suspiria9"},mandy:{backgroundColor:"$mandy1",color:"$mandy5"},shrek:{backgroundColor:"$shrek2",color:"$shrek8"},avatar:{backgroundColor:"$avatar1",color:"$avatar8"}}},defaultVariants:{size:"large",color:"dune"}}),s=({color:e,children:t,...i})=>(0,r.jsx)(n,{size:{"@initial":"small","@md":"large"},color:e,...i,children:(0,r.jsx)(o._,{css:{color:"inherit"},children:t})})},87412:(e,t,i)=>{"use strict";i.d(t,{$U:()=>l,B_:()=>v,GJ:()=>$,L9:()=>m,VY:()=>g,bL:()=>y,f4:()=>x,hE:()=>h,nB:()=>p});var r=i(6029),o=i(5452),n=i(39220),s=i(21058),a=i(9794);let l=(0,a.I4)("div",{position:"relative",flexShrink:0}),d=(0,a.I4)("div",{position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",opacity:0,transition:"opacity 0.2s ease-in-out",backgroundColor:"$zorro"}),c=(0,a.I4)(n.s,{position:"relative",opacity:0,transition:"opacity 0.2s ease-in-out",zIndex:2}),u=(0,a.I4)("div",{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:2,[`&:hover ${d}`]:{opacity:.2},[` &:hover ${c}`]:{opacity:1}}),m=e=>(0,r.jsxs)(u,{children:[(0,r.jsx)(c,{...e}),(0,r.jsx)(d,{})]}),p=(0,a.I4)("div",{display:"flex",flexDirection:"column",gap:"$2"}),g=(0,a.I4)("p",{fontFamily:"$averta",fontSize:"$16",fontWeight:"400",lineHeight:"150%"}),h=(0,a.I4)("h3",{fontFamily:"$averta",fontSize:"$20",fontWeight:"$semibold",lineHeight:"125%"}),x=(0,a.I4)("p",{fontFamily:"$averta",fontSize:"$14",fontWeight:"$semibold",lineHeight:"150%",color:"$suspiria5"}),v=(0,a.I4)("dl",{display:"flex",flexDirection:"column",rowGap:"$2"}),$=({label:e,icon:t,children:i,...a})=>(0,r.jsxs)(n.s,{gap:2,align:"center",...a,children:[(0,r.jsxs)("dt",{children:[t?(0,r.jsx)(s.bL,{children:(0,r.jsx)(t,{})}):null,(0,r.jsx)(o.s6,{children:e})]}),(0,r.jsx)(f,{children:i})]}),f=(0,a.I4)("dd",{fontFamily:"$averta",fontWeight:"$semibold",fontSize:"$14",lineHeight:"150%"}),y=(0,a.I4)("div",{width:"100%",display:"flex",position:"relative",variants:{direction:{row:{flexDirection:"row",gap:"$5",[`& > ${l}`]:{alignSelf:"flex-start"}},column:{flexDirection:"column",gap:"$4"}},size:{large:{[`${h}`]:{fontSize:"$32"}},medium:{},small:{[`${h}`]:{fontSize:"$16"}}},colorScheme:{light:{[`${h}, ${g}, ${f}`]:{color:"$zorro"}},dark:{[`${h}, ${g}, ${f}`]:{color:"$scream"}}}},compoundVariants:[{size:"large",direction:"row",css:{[`${l}`]:{flexBasis:"66%"}}},{size:"medium",direction:"row",css:{[`${l}`]:{flexBasis:"50%"}}},{size:"small",direction:"row",css:{[`${l}`]:{flexBasis:"50%"}}}],defaultVariants:{direction:"column",size:"medium"}})},92634:(e,t,i)=>{"use strict";i.d(t,{g:()=>d});var r=i(6029),o=i(77328),n=i.n(o),s=i(89099),a=i(7600);let l=e=>!!e&&"mime"in e,d=({titleForSeo:e,description:t,image:i,video:o,canonicalUrl:d,shouldIndex:c=!0})=>{let u=(0,s.useRouter)(),m=((e,t)=>{if(/^https?:\/\//.test(e))return e;let i="nl-NL,en-GB".split(","),r="https://cineville.nl",o=i&&i.length>0?RegExp(`^/?(${i.join("|")})(/|$)`):/^\/?[a-z]{2}(\/|$)/,n=e.startsWith("/")?e:`/${e}`;return o.test(e)?`${r}${n}`:`${r}/${t||"nl-NL"}${n}`})(d||u.asPath,u.locale),p=l(i)?(0,a.tx)(i):i?.url;return(0,r.jsxs)(n(),{children:[c?null:(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"og:title",content:e}),(0,r.jsx)("meta",{name:"twitter:title",content:e})]}):null,t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{name:"description",content:t}),(0,r.jsx)("meta",{property:"og:description",content:t}),(0,r.jsx)("meta",{name:"twitter:description",content:t})]}):null,i?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"og:image",content:p}),(0,r.jsx)("meta",{property:"og:image:url",content:p}),(0,r.jsx)("meta",{property:"og:image:secure_url",content:p}),(0,r.jsx)("meta",{property:"og:image:type",content:i.mime||""}),i.alternativeText?(0,r.jsx)("meta",{property:"og:image:alt",content:i.alternativeText}):null,l(i)&&i.width?(0,r.jsx)("meta",{property:"og:image:width",content:i.width.toString()}):null,l(i)&&i.height?(0,r.jsx)("meta",{property:"og:image:height",content:i.height.toString()}):null,(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:image",content:p})]}):null,o?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"og:video",content:o.url}),(0,r.jsx)("meta",{property:"og:video:type",content:o.mime||""})]}):null,(0,r.jsx)("meta",{property:"og:url",content:m}),(0,r.jsx)("link",{rel:"canonical",href:m})]})}},99114:(e,t,i)=>{"use strict";i.d(t,{A:()=>s,g:()=>n});var r=i(29784),o=i(46334);let n=(0,r.vt)((0,o.Zr)(e=>({setGlobalFilters:t=>e(t)}),{name:"global-filters",version:1})),s=(0,r.vt)((0,o.Zr)(e=>({setGlobalFilters:t=>e(t)}),{name:"festival-filters"}))}},e=>{e.O(0,[216,697,636,593,792],()=>e(e.s=35097)),_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.