1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[23],{"1OyB":function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},JX7q:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},Ji7U:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}n.d(e,"a",(function(){return o}))},O30E:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("1OyB"),o=n("vuIU"),i=function(){function t(e){var n=e.elements;Object(r.a)(this,t),this.setup(n),this.setupEvents()}return Object(o.a)(t,[{key:"setup",value:function(t){this.elements=t,this.inc=-1,this.nextEl=this.getNextEl(),this.onScroll=this.onScrollEvent.bind(this)}},{key:"setupEvents",value:function(){this.onLoad(),window.addEventListener("scroll",this.onScroll)}},{key:"onScrollEvent",value:function(t){return this.nextEl?!!this.isInview()&&this.showElement():this.destroy()}},{key:"onLoad",value:function(){if(this.isInview()&&(this.showElement(),this.nextEl))return this.onLoad()}},{key:"showElement",value:function(){this.nextEl.setAttribute("data-reveal","show"),this.nextEl=this.getNextEl()}},{key:"getNextEl",value:function(){return this.inc+=1,this.elements[this.inc]}},{key:"isInview",value:function(){return this.nextEl.getBoundingClientRect().top-window.innerHeight/1.1<0}},{key:"destroy",value:function(){return window.removeEventListener("scroll",this.onScroll)}},{key:"reset",value:function(t){var e=t.elements;this.setup(e),this.onLoad()}}]),t}()},OqZo:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/films",function(){return n("pp/x")}])},YFqc:function(t,e,n){t.exports=n("cTJO")},cTJO:function(t,e,n){"use strict";var r=n("zoAU"),o=n("7KCV");e.__esModule=!0,e.default=void 0;var i,a=o(n("q1tI")),s=n("elyg"),c=n("nOHt"),u=new Map,l=window.IntersectionObserver,f={};var h=function(t,e){var n=i||(l?i=new l((function(t){t.forEach((function(t){if(u.has(t.target)){var e=u.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&(i.unobserve(t.target),u.delete(t.target),e())}}))}),{rootMargin:"200px"}):void 0);return n?(n.observe(t),u.set(t,e),function(){try{n.unobserve(t)}catch(e){console.error(e)}u.delete(t)}):function(){}};function p(t,e,n,r){(0,s.isLocalURL)(e)&&(t.prefetch(e,n,r).catch((function(t){0})),f[e+"%"+n]=!0)}var d=function(t){var e=!1!==t.prefetch,n=a.default.useState(),o=r(n,2),i=o[0],u=o[1],d=(0,c.useRouter)(),v=d&&d.pathname||"/",y=a.default.useMemo((function(){var e=(0,s.resolveHref)(v,t.href);return{href:e,as:t.as?(0,s.resolveHref)(v,t.as):e}}),[v,t.href,t.as]),m=y.href,g=y.as;a.default.useEffect((function(){if(e&&l&&i&&i.tagName&&(0,s.isLocalURL)(m)&&!f[m+"%"+g])return h(i,(function(){p(d,m,g)}))}),[e,i,m,g,d]);var w=t.children,b=t.replace,E=t.shallow,L=t.scroll;"string"===typeof w&&(w=a.default.createElement("a",null,w));var O=a.Children.only(w),x={ref:function(t){t&&u(t),O&&"object"===typeof O&&O.ref&&("function"===typeof O.ref?O.ref(t):"object"===typeof O.ref&&(O.ref.current=t))},onClick:function(t){O.props&&"function"===typeof O.props.onClick&&O.props.onClick(t),t.defaultPrevented||function(t,e,n,r,o,i,a){("A"!==t.currentTarget.nodeName||!function(t){var e=t.currentTarget.target;return e&&"_self"!==e||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}(t)&&(0,s.isLocalURL)(n))&&(t.preventDefault(),null==a&&(a=r.indexOf("#")<0),e[o?"replace":"push"](n,r,{shallow:i}).then((function(t){t&&a&&(window.scrollTo(0,0),document.body.focus())})))}(t,d,m,g,b,E,L)}};return e&&(x.onMouseEnter=function(t){(0,s.isLocalURL)(m)&&(O.props&&"function"===typeof O.props.onMouseEnter&&O.props.onMouseEnter(t),p(d,m,g,{priority:!0}))}),(t.passHref||"a"===O.type&&!("href"in O.props))&&(x.href=(0,s.addBasePath)(g)),a.default.cloneElement(O,x)};e.default=d},foSv:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},md7G:function(t,e,n){"use strict";function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return(o="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}n.d(e,"a",(function(){return a}));var i=n("JX7q");function a(t,e){return!e||"object"!==o(e)&&"function"!==typeof e?Object(i.a)(t):e}},"pp/x":function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return O}));var r=n("HaE+"),o=n("1OyB"),i=n("vuIU"),a=n("JX7q"),s=n("Ji7U"),c=n("md7G"),u=n("foSv"),l=n("rePB"),f=n("q1tI"),h=n.n(f),p=(n("YFqc"),n("O30E")),d=n("bfiD"),v=n("ggML"),y=h.a.createElement,m=function(t){var e=t.item,n=(t.index,e.fields),r=e.sys.contentType.sys.id,o=n.externalUrl&&!n.content,i=n.internalVideo&&n.internalVideo.fields&&n.internalVideo.fields.file?"".concat(n.internalVideo.fields.file.url):null,a=n.image&&n.image.fields&&n.image.fields.file?"".concat(n.image.fields.file.url,"?w=500"):null,s=n.category?n.category[0]:null,c=o?n.externalUrl:i;return y("article",{"data-reveal":"hidden"},c?y(h.a.Fragment,null,a&&y("div",{className:"film-thumbnail"},y("img",{src:a,alt:""}),y("div",{onClick:function(){return t.handleOpen(n.title,c)}},y("svg",{width:"7",height:"10",viewBox:"0 0 7 10",xmlns:"https://www.w3.org/2000/svg"},y("path",{d:"M0.75 1.57303L6.06735 4.95L0.75 8.32697L0.75 1.57303Z"})),y("span",null,"Watch Full Video"))),y("span",{className:"type text--small-caps text--grey-light"},s||r),y("span",{className:"title"},n.title),n.excerpt?y("span",{className:"excerpt"},n.excerpt):null):null)},g=h.a.createElement;function w(t){return g("section",{className:"popup"},g("div",{className:"content"},g("div",{className:"popup-text"},g("div",{className:"video-header"},g("span",{className:"video-title"},t.videoTitle),g("button",{className:"btn__close",onClick:t.handleClose},g("i",{className:"material-icons"},"close"))),g("video",{width:"320",height:"240",controls:!0,autoPlay:!0},g("source",{src:t.videoLink,type:"video/mp4"}),"Your browser does not support the video tag."))))}var b=h.a.createElement;function E(){E=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(j){c=function(t,e,n){return t[e]=n}}function u(t,e,n,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),s=new _(o||[]);return r(a,"_invoke",{value:L(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(j){return{type:"throw",arg:j}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(N([])));m&&m!==e&&n.call(m,i)&&(v=m);var g=d.prototype=h.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var o;r(this,"_invoke",{value:function(r,i){function a(){return new e((function(o,a){!function r(o,i,a,s){var c=l(t[o],t,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}(r,i,o,a)}))}return o=o?o.then(a,a):a()}})}function L(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function O(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&
vendor: 5,420 bytes, line 1
1(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function N(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return p.prototype=d,r(g,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:p,configurable:!0}),p.displayName=c(d,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},w(b.prototype),c(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=N,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:N(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function L(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(u.a)(t);if(e){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var O=function(t){Object(s.a)(n,t);var e=L(n);function n(){var t;Object(o.a)(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return t=e.call.apply(e,[this].concat(i)),Object(l.a)(Object(a.a)(t),"state",{worksReveal:null,isLoading:!1,allItemsLoaded:!1,arrangeBy:"all",sortBy:"all",filmCategories:t.getCategories(),items:t.props.content.items,content:t.props.content,showPopup:!1,videoTitle:"",videoLink:""}),Object(l.a)(Object(a.a)(t),"handleOpen",(function(e,n){t.setState({showPopup:!0,videoTitle:e,videoLink:n})})),Object(l.a)(Object(a.a)(t),"handleClose",(function(){t.setState({showPopup:!1,title:"",popupLink:""})})),t}
1return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.setupReveal({})}},{key:"componentDidUpdate",value:function(){}},{key:"render",value:function(){var t=this;return b(h.a.Fragment,null,b("main",{className:"archive-news"},b(v.a,{title:"Films"}),b("div",{className:"wrap--reg"},b("div",{className:"masthead"},b("h1",{className:"masthead__title text--small-caps"},"Films"),b("h2",{className:"masthead__subtitle"},"Films")),b("section",{className:"feed-item-list"},this.state.items.map((function(e,n){return b(m,{key:n,index:n,item:e,handleClose:t.handleClose,handleOpen:t.handleOpen})}))),b("aside",{className:"sidebar"},b("nav",{onClick:this.changeCategoryFilter.bind(this)},b("span",{className:"title"},"Film Category"),b("button",{rel:"all",className:"active"},"All"),this.state.filmCategories.map((function(t,e){return b("button",{key:e,rel:t},t)})))))),this.state.showPopup&&this.state.videoLink?b(w,{videoTitle:this.state.videoTitle,videoLink:this.state.videoLink,handleClose:this.handleClose}):null)}},{key:"changeArrangeByFilter",value:function(t){var e=this;if("BUTTON"!==t.target.nodeName)return!1;var n=t.target;this.setState({isLoading:!0,arrangeBy:n.innerText},(function(){e.getItems({}).then((function(t){return e.setItems({res:t})}))}))}},{key:"changeCategoryFilter",value:function(t){var e=this;if("BUTTON"!==t.target.nodeName)return!1;var n=t.target.getAttribute("rel");this.updateDOM(t),this.setState({isLoading:!0,sortBy:n},(function(){e.getItems({}).then((function(t){return e.setItems({res:t})}))}))}},{key:"getCategories",value:function(){return this.props.model.fields.filter((function(t){return"category"===t.id}))[0].items.validations[0].in}},{key:"setItems",value:function(t){var e=this,n=t.res;return this.setState({isLoading:!1,items:n.items,content:n},(function(){e.state.content.total>0&&e.setupReveal({reset:!0}),e.checkTotalVsLoadedItems()}))}},{key:"checkTotalVsLoadedItems",value:function(){this.state.content.total===this.state.items.length?this.setState({allItemsLoaded:!0}):this.setState({allItemsLoaded:!1})}},{key:"setupReveal",value:function(t){var e=t.reset;void 0!==e&&e&&this.setState({worksReveal:null}),this.setState({worksReveal:new p.a({elements:document.querySelectorAll(".archive-news article")})})}},{key:"updateDOM",value:function(t){var e=t.currentTarget,n=t.target;e.querySelector(".active").classList.remove("active"),n.classList.add("active"),window.scrollTo(0,0)}},{key:"getItems",value:function(){var t=Object(r.a)(E().mark((function t(e){var n,r;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.skip,void 0===n?0:n,r={content_type:"films"},"all"!==this.state.sortBy&&(r["fields.category[match]"]=this.state.sortBy),t.next=5,Object(d.b)().getEntries(r);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}],[{key:"getInitialProps",value:function(){var t=Object(r.a)(E().mark((function t(){var e,n,r;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=Object(d.b)(),t.next=3,e.getEntries({content_type:"films"});case 3:return n=t.sent,t.next=6,e.getContentType("films");case 6:return r=t.sent,t.abrupt("return",{content:n,model:r});case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}]),n}(f.Component)},vuIU:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return o}))}},[["OqZo",0,1,2,3]]]);
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.