vendor: 4,946 bytes, lines 1-2
1/*! For license information please see 8511.9f23fe97d9558d1b1429.js.LICENSE.txt */ 2"use strict";(self.webpackChunkiffr=self.webpackChunkiffr||[]).push([[8511,6540,4848,8503,4159,3573,4976,2467,9838,7378,3355,4160],{1020:function(e,t,r){var n=r(6540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var n,i={},s=null,l=null;for(n in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(l=t.ref),t)a.call(t,n)&&!u.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:s,ref:l,props:i,_owner:c.current}}t.Fragment=i,t.jsx=s,t.jsxs=s},5287:function(e,t){var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,v={};function m(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||h}function b(){}function g(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var w=g.prototype=new b;w.constructor=g,y(w,m.prototype),w.isPureReactComponent=!0;var _=Array.isArray,E=Object.prototype.hasOwnProperty,S={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function $(e,t,n){var o,i={},a=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,o)&&!j.hasOwnProperty(o)&&(i[o]=t[o]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var s=Array(u),l=0;l<u;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:r,type:e,key:a,ref:c,props:i,_owner:S.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var x=/\/+/g;function k(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,o,i,a){var c=typeof e;"undefined"!==c&&"boolean"!==c||(e=null);var u=!1;if(null===e)u=!0;else switch(c){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case r:case n:u=!0}}if(u)return a=a(u=e),e=""===i?"."+k(u,0):i,_(a)?(o="",null!=e&&(o=e.replace(x,"$&/")+"/"),C(a,t,o,"",(function(e){return e}))):null!=a&&(A(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(x,"$&/")+"/")+e)),t.push(a)),1;if(u=0,i=""===i?".":i+":",_(e))for(var s=0;s<e.length;s++){var l=i+k(c=e[s],s);u+=C(c,t,o,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),s=0;!(c=e.next()).done;)u+=C(c=c.value,t,o,l=i+k(c,s++),a);else if("object"===c)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function O(e,t,r){if(null==e)return e;var n=[],o=0;return C(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},N={transition:null},P={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:N,ReactCurrentOwner:S};function L(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:O,forEach:function(e,t,r){O(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=a,t.PureComponent=g,t.StrictMode=i,t.Suspense=l,t.__SECRET_INT
2ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.act=L,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=y({},e.props),i=e.key,a=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,c=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)E.call(t,s)&&!j.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==u?u[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){u=Array(s);for(var l=0;l<s;l++)u[l]=arguments[l+2];o.children=u}return{$$typeof:r,type:e.type,key:i,ref:a,props:o,_owner:c}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=$,t.createFactory=function(e){var t=$.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=L,t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,r){return I.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,r){return I.current.useReducer(e,t,r)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return I.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.1"},6540:function(e,t,r){e.exports=r(5287)},4848:function(e,t,r){e.exports=r(1020)},8503:function(e,t,r){r.r(t),r.d(t,{fetchDashboard:function(){return s},fetchEditions:function(){return c},fetchFestival:function(){return i},fetchNarrowcast:function(){return l},fetchProConnect:function(){return u},fetchProgramOverviewData:function(){return o},fetchShowStatus:function(){return a}});var n=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function c(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}u((n=n.apply(e,t||[])).next())}))};const o=e=>n(void 0,void 0,void 0,(function*(){try{const t=yield fetch(`${theme.fileUrl}/${e}.json`);if(!t.ok){const e=`An error has occured: ${t.status}`;throw new Error(e)}const{data:r}=yield t.json();return"video-library"===e?r.videoLibraryFilms.nodes:r.edition.items.nodes}catch(e){console.error(`Fetch error: ${e}`)}})),i=()=>n(void 0,void 0,void 0,(function*(){try{const e=yield fetch(`${theme.fileUrl}/festival.json`);if(!e.ok){const t=`An error has occured: ${e.status}`;throw new Error(t)}const{data:t}=yield e.json();return t.allIffrShow.edges}catch(e){console.error(`Fetch error: ${e}`)}})),a=()=>n(void 0,void 0,void 0,(function*(){try{const e=yield fetch(`${theme.fileUrl}/ticket_sales.json`);if(!e.ok){const t=`An error has occured: ${e.status}`;throw new Error(t)}const{data:t}=yield e.json();return t}catch(e){console.error(`Fetch error: ${e}`)}})),c=(...e)=>n(void 0,[...e],void 0,(function*(e="editions.json"){try{const t=yield fetch(`${theme.fileUrl}/${e}`);if(!t.ok){const e=`An error has occured: ${t.status}`;throw new Error(e)}const{data:r}=yield t.json();return r.editions.nodes}catch(e){console.error(`Fetch error: ${e}`)}})),u=()=>n(void 0,void 0,void 0,(function*(){try{const e=yield fetch(`${theme.proConnectUrl}`,{headers:{"X-WP-Nonce":theme.proConnectNonce}});if(!e.ok){const t=`An error has occured: ${e.status}`;throw new Error(t)}const t=yield e.json();return Object.values(t)}catch(e){console.error(`Fetch error: ${e}`)}})),s=e=>n(void 0,void 0,void 0,(function*(){try{if(!navigator.onLine)return void console.log("Dashboard is offline");const t=yield fetch(`${theme.fileUrl}/dashboards/${e}.json`);if(!t.ok){const e=`An error has occured: ${t.status}`;throw new Error(e)}const{data:r}=yield t.json();return r}catch(e){console.error(`Fetch error: ${e}`)}})),l=e=>n(void 0,void 0,void 0,(function*(){try{if(!navigator.onLine)return void console.log("Narrowcast is offline");const t=yield fetch(`${theme.fileUrl}/narrowcasts/${e}.json`);if(!t.ok){const e=`An error has occured: ${t.status}`;throw new Error(e)}const{data:r}=yield t.json();return r}catch(e){console.error(`Fetch error: ${e}`)}}))},8511:function(e,t,r){r.r(t),r.d(t,{default:function(){return d}});var n=r(4848),o=r(4976),i=r(3360),a=r(6221),c=r(710),u=r(7378),s=r(9914),l=r(9838),f=r(3355);const d=()=>{const e=(0,i.useDashboardStore)((0,s.k)((e=>
2e.widgetArticles))),t=(0,u.default)(e);return e&&0!==e.length?(0,n.jsx)(a.N,{children:(0,n.jsx)(c.P.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.3},className:"relative h-full overflow-hidden rounded-lg",children:(0,n.jsx)(l.default,{options:{speed:3e3,loop:!0,spaceBetween:32,autoplay:{delay:f.CONFIG.NEWS_PAGES_DELAY}},children:e.map(((e,t)=>{var r;return(0,n.jsx)(o.default,{label:e.label,title:e.title,image:null===(r=e.image)||void 0===r?void 0:r.url,excerpt:e.excerpt},t)}))})})},t):null}},3573:function(e,t,r){r.r(t),r.d(t,{default:function(){return o}});var n=r(4848);const o=({title:e})=>(0,n.jsx)("span",{className:"inline-block p-3 leading-none rounded-md festival:bg-festival-background festival:text-festival-text bg-base-50 text-base-900 font-heading text-md",children:e})},4976:function(e,t,r){r.r(t),r.d(t,{default:function(){return i}});var n=r(4848),o=r(3573);const i=({label:e,title:t,image:r,excerpt:i})=>(0,n.jsxs)("div",{className:"relative h-full rounded-lg bg-base-800",children:[(0,n.jsx)("img",{src:r,alt:"",width:"430",height:"242",className:"object-cover w-full rounded-t-lg aspect-square max-h-[221px]"}),(0,n.jsxs)("div",{className:"p-8 space-y-2",children:[(0,n.jsx)("h2",{className:"text-xl leading-none font-heading",children:t}),(0,n.jsx)("div",{className:"text-md",dangerouslySetInnerHTML:{__html:i}})]}),e&&(0,n.jsx)("div",{className:"absolute top-4 left-4",children:(0,n.jsx)(o.default,{title:e})})]})},9838:function(e,t,r){r.r(t),r.d(t,{default:function(){return c}});var n=r(4848),o=r(6540),i=r(3325),a=r(8193);const c=({children:e,options:t})=>{const r={effect:"",spaceBetween:0,slidesPerView:1,loop:!0,speed:300,autoplay:{delay:3500,disableOnInteraction:!1}},c=Object.assign(Object.assign(Object.assign({},r),t),{autoplay:Object.assign(Object.assign({},r.autoplay),t.autoplay)});return(0,n.jsx)(i.RC,{effect:c.effect,slidesPerView:c.slidesPerView,spaceBetween:c.spaceBetween,speed:c.speed,loop:c.loop,autoplay:c.autoplay,modules:[a.Ij,a._R],children:o.Children.map(e,((e,t)=>(0,n.jsx)(i.qr,{children:e},t)))})}},7378:function(e,t,r){r.r(t),r.d(t,{default:function(){return o}});var n=r(6540);const o=e=>{const[t,r]=(0,n.useState)(0),[o,i]=(0,n.useState)(e);return(0,n.useEffect)((()=>{JSON.stringify(e)!==JSON.stringify(o)&&(r((e=>e+1)),i(e))}),[e,o]),t}},3360:function(e,t,r){r.r(t),r.d(t,{useDashboardStore:function(){return i}});var n=r(1621),o=r(8503);const i=(0,n.vt)()((e=>({data:{},fallbackImage:{},widgetImage:{},widgetArticles:[],widgetComingUp:[],widgetLaterStillAvailable:[],widgetAdvertisement:[],widgetAudienceAwards:[],footer:[],setData:t=>e({data:t}),fetch:t=>{return r=void 0,n=void 0,a=function*(){const r=yield(0,o.fetchDashboard)(t);void 0!==r&&(e({data:r}),e({fallbackImage:null==r?void 0:r.fallbackImage}),e({widgetImage:null==r?void 0:r.widgetImage}
2),e({widgetArticles:null==r?void 0:r.widgetArticles}),e({widgetComingUp:null==r?void 0:r.widgetComingUp}),e({widgetLaterStillAvailable:null==r?void 0:r.widgetLaterStillAvailable}),e({widgetAdvertisement:null==r?void 0:r.widgetAdvertisement}),e({widgetAudienceAwards:null==r?void 0:r.widgetAudienceAwards}),e({footer:null==r?void 0:r.footer}))},new((i=void 0)||(i=Promise))((function(e,t){function o(e){try{u(a.next(e))}catch(e){t(e)}}function c(e){try{u(a.throw(e))}catch(e){t(e)}}function u(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(o,c)}u((a=a.apply(r,n||[])).next())}));var r,n,i,a}})))},3355:function(e,t,r){r.r(t),r.d(t,{CONFIG:function(){return n}});const n={ADVERTISEMENT_DELAY:dashboard.timings?1e3*+dashboard.timings.ad:5e3,COMINGUP_DELAY:dashboard.timings?1e3*+dashboard.timings.coming_up:7e3,AUDIENCE_AWARDS_DELAY:dashboard.timings?1e3*+dashboard.timings.coming_up+2e3:9e3,LATER_STILL_AVAILABLE_DELAY:dashboard.timings?1e3*+dashboard.timings.still_available:7e3,NEWS_PAGES_DELAY:dashboard.timings?1e3*+dashboard.timings.news_pages:1e4,FETCH_INTERVAL:6e4}}}]);
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.