vendor: 4,487 bytes, lines 1-2
1/*! For license information please see 65.a39e277d58feb4e74025.js.LICENSE.txt */ 2"use strict";(self.webpackChunkiffr=self.webpackChunkiffr||[]).push([[65,6540,4848,8503,4159,2467,3360],{1020:function(e,t,r){var n=r(6540),o=Symbol.for("react.element"),u=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var n,u={},s=null,f=null;for(n in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(f=t.ref),t)i.call(t,n)&&!a.hasOwnProperty(n)&&(u[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===u[n]&&(u[n]=t[n]);return{$$typeof:o,type:e,key:s,ref:f,props:u,_owner:c.current}}t.Fragment=u,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"),u=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),y=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,v={};function b(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||p}function w(){}function m(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||p}b.prototype.isReactComponent={},b.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")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=b.prototype;var g=m.prototype=new w;g.constructor=m,h(g,b.prototype),g.isPureReactComponent=!0;var S=Array.isArray,_=Object.prototype.hasOwnProperty,E={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function $(e,t,n){var o,u={},i=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(i=""+t.key),t)_.call(t,o)&&!j.hasOwnProperty(o)&&(u[o]=t[o]);var a=arguments.length-2;if(1===a)u.children=n;else if(1<a){for(var s=Array(a),f=0;f<a;f++)s[f]=arguments[f+2];u.children=s}if(e&&e.defaultProps)for(o in a=e.defaultProps)void 0===u[o]&&(u[o]=a[o]);return{$$typeof:r,type:e,key:i,ref:c,props:u,_owner:E.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var O=/\/+/g;function A(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,u,i){var c=typeof e;"undefined"!==c&&"boolean"!==c||(e=null);var a=!1;if(null===e)a=!0;else switch(c){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case r:case n:a=!0}}if(a)return i=i(a=e),e=""===u?"."+A(a,0):u,S(i)?(o="",null!=e&&(o=e.replace(O,"$&/")+"/"),C(i,t,o,"",(function(e){return e}))):null!=i&&(k(i)&&(i=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(O,"$&/")+"/")+e)),t.push(i)),1;if(a=0,u=""===u?".":u+":",S(e))for(var s=0;s<e.length;s++){var f=u+A(c=e[s],s);a+=C(c,t,o,f,i)}else if(f=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=y&&e[y]||e["@@iterator"])?e:null}(e),"function"==typeof f)for(e=f.call(e),s=0;!(c=e.next()).done;)a+=C(c=c.value,t,o,f=u+A(c,s++),i);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 a}function R(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 x(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 P={current:null},I={transition:null},D={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:I,ReactCurrentOwner:E};function U(){throw Error("act(...) is not supported in production builds of React.")}
2t.Children={map:R,forEach:function(e,t,r){R(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=o,t.Profiler=i,t.PureComponent=m,t.StrictMode=u,t.Suspense=f,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=U,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=h({},e.props),u=e.key,i=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,c=E.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)_.call(t,s)&&!j.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==a?a[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){a=Array(s);for(var f=0;f<s;f++)a[f]=arguments[f+2];o.children=a}return{$$typeof:r,type:e.type,key:u,ref:i,props:o,_owner:c}},t.createContext=function(e){return(e={$$typeof:a,_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=k,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:x}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=U,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,r){return P.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,r){return P.current.useReducer(e,t,r)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return P.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return P.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 u},fetchNarrowcast:function(){return f},fetchProConnect:function(){return a},fetchProgramOverviewData:function(){return o},fetchShowStatus:function(){return i}});var n=function(e,t,r,n){return new(r||(r=Promise))((function(o,u){function i(e){try{a(n.next(e))}catch(e){u(e)}}function c(e){try{a(n.throw(e))}catch(e){u(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}a((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}`)}})),u=()=>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}`)}})),i=()=>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}`)}})),a=()=>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}`)}})),f=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}`)}}))},65:function(e,t,r){r.r(t),r.d(t,{default:function(){return i}});var n=r(4848),o=r(3360),u=r(9914);const i=()=>{const e=(0,o.useDashboardStore)((0,u.k)((e=>e.fallbackImage)));return e&&e.url?(0,n.jsx)("img",{className:"object-cover w-full h-full rounded-lg",src:e.url,alt:"",width:"436",height:"507"}):null}},3360:function(e,t,r){r.r(t),r.d(t,{useDashboardStore:function(){return u}});var n=r(1621),o=r(8503);const u=(0,n.vt)()((e=>({data:{},fallbackImage:{},widgetImage:{}
2,widgetArticles:[],widgetComingUp:[],widgetLaterStillAvailable:[],widgetAdvertisement:[],widgetAudienceAwards:[],footer:[],setData:t=>e({data:t}),fetch:t=>{return r=void 0,n=void 0,i=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}),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((u=void 0)||(u=Promise))((function(e,t){function o(e){try{a(i.next(e))}catch(e){t(e)}}function c(e){try{a(i.throw(e))}catch(e){t(e)}}function a(t){var r;t.done?e(t.value):(r=t.value,r instanceof u?r:new u((function(e){e(r)}))).then(o,c)}a((i=i.apply(r,n||[])).next())}));var r,n,u,i}})))},1063:function(e,t,r){var n=r(6540),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},u=n.useState,i=n.useEffect,c=n.useLayoutEffect,a=n.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=u({inst:{value:r,getSnapshot:t}}),o=n[0].inst,f=n[1];return c((function(){o.value=r,o.getSnapshot=t,s(o)&&f({inst:o})}),[e,r,t]),i((function(){return s(o)&&f({inst:o}),e((function(){s(o)&&f({inst:o})}))}),[e]),a(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:f},8940:function(e,t,r){var n=r(6540),o=r(9888),u="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=n.useRef,a=n.useEffect,s=n.useMemo,f=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var l=c(null);if(null===l.current){var d={hasValue:!1,value:null};l.current=d}else d=l.current;l=s((function(){function e(e){if(!a){if(a=!0,i=e,e=n(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return c=t}return c=e}if(t=c,u(i,e))return t;var r=n(e);return void 0!==o&&o(t,r)?t:(i=e,c=r)}var i,c,a=!1,s=void 0===r?null:r;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,r,n,o]);var y=i(e,l[0],l[1]);return a((function(){d.hasValue=!0,d.value=y}),[y]),f(y),y}},9888:function(e,t,r){e.exports=r(1063)},9242:function(e,t,r){e.exports=r(8940)},1621:function(e,t,r){r.d(t,{vt:function(){return l}});const n=e=>{let t;const r=new Set,n=(e,n)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=n?n:"object"!=typeof o||null===o)?o:Object.assign({},t,o),r.forEach((r=>r(t,e)))}},o=()=>t,u={setState:n,getState:o,getInitialState:()=>i,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},i=t=e(n,o,u);return u};var o=r(6540),u=r(9242);const{useDebugValue:i}=o,{useSyncExternalStoreWithSelector:c}=u;let a=!1;const s=e=>e,f=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?n(e):n)(e):e,r=(e,r)=>function(e,t=s,r){r&&!a&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),a=!0);const n=c(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return i(n),n}(t,e,r);return Object.assign(r,t),r},l=e=>e?f(e):f},9914:function(e,t,r){r.d(t,{k:function(){return u}});var n=r(6540);const{useRef:o}=n;function u(e){const t=o();return r=>{const n=e(r);return function(e,t){if(Object.is(e,t))return!0;
2if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,n]of e)if(!Object.is(n,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(const n of r)if(!Object.prototype.hasOwnProperty.call(t,n)||!Object.is(e[n],t[n]))return!1;return!0}(t.current,n)?t.current:t.current=n}}}}]);
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.