1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[984],{47286:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/whats-on/[slug]",function(){return t(15522)}])},15522:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return f},default:function(){return d}});var r=t(85893),i=t(21597),s=t(39332),u=t(84873);function o(e){var n,t;const{preview:o,loading:c,event:l,settings:a}=e;(null===(n=l)||void 0===n?void 0:n.slug)||o||(0,s.notFound)();const f=(null===(t=l)||void 0===t?void 0:t.pageBuilderBlocks)||[];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Z,{data:l,settings:a}),o&&!l?(0,r.jsx)("div",{children:"Loading\u2026"}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(u.Z,{title:l.title,slug:l.slug,blocks:[l,...f]})})]})}var c=t(93134),l=t(74356);function a(e){const[n,t]=(0,l.yR)(e.event,c._R,{slug:e.event.slug}),[i,s]=(0,l.yR)(e.settings,c.GL);return(0,r.jsx)(o,{preview:!0,loading:t||s,event:n||{},settings:i||{}})}var f=!0;function d(e){const{settings:n,event:t,draftMode:i}=e;return i?(0,r.jsx)(a,{event:t,settings:n}):(0,r.jsx)(o,{event:t,settings:n})}},34329:function(e,n,t){"use strict";t.d(n,{Kq:function(){return o},Ts:function(){return f},iS:function(){return a},nW:function(){return i},pm:function(){return u},tT:function(){return s}});var r=t(67294);function i(e,n){return"".concat(e,"-").concat(JSON.stringify(n))}function s(e){const[n,t]=(0,r.useReducer)((e=>e+1),0),i=(0,r.useRef)(!0),s=(0,r.useCallback)((()=>{i.current&&(0,r.startTransition)((()=>t()))}),[]);(0,r.useEffect)((()=>(i.current=!0,s(),()=>{i.current=!1})),[s]);return[(0,r.useMemo)((()=>n?[...e]:[]),[e,n]),s]}const u=3e3,o="sanity.preview-kit",c=new Map,l=new Map,a=(0,r.createContext)((function(e,n,t){const r=i(n,t);c.set(r,e),l.has(r)||l.set(r,0);return{subscribe:()=>(l.set(r,l.get(r)+1),()=>{l.set(r,l.get(r)-1),0===l.get(r)&&c.delete(r)}),getSnapshot:()=>c.has(r)?c.get(r):e}})),f=(0,r.createContext)(null)},74356:function(e,n,t){"use strict";t.d(n,{Ji:function(){return h},yR:function(){return c}});var r=t(67294),i=t(69590),s=t(31103),u=t(34329),o=t(85893);function c(e,n,t,o){const{isEqual:c=i}=o||{},f=(0,r.useContext)(u.iS),d=a(t),h=(0,r.useMemo)((()=>f(e,n,d)),[f,e,d,n]),[g]=(0,r.useState)((()=>{if(void 0===e)throw new Error("initialSnapshot can't be undefined, if you don't want an initial value use null instead");try{return JSON.parse(JSON.stringify(e))}catch(n){return console.warn("Failed to deep clone initialSnapshot, this is likely an error and an indication that the snapshot isn't JSON serializable",{initialSnapshot:e,error:n}),e}})),p=(0,r.useCallback)((()=>g),[g]),v=(0,r.useCallback)((e=>e),[]);return[(0,s.useSyncExternalStoreWithSelector)(h.subscribe,h.getSnapshot,p,v,c),l(n,d)]}function l(e,n){const t=(0,r.useContext)(u.Ts),i=(0,r.useMemo)((()=>(0,u.nW)(e,n)),[n,e]);return(0,r.useMemo)((()=>!!Array.isArray(t)&&!t.includes(i)),[i,t])}function a(e){const n=(0,r.useMemo)((()=>JSON.stringify(e||{})),[e]);return(0,r.useMemo)((()=>JSON.parse(n)),[n])}const f=(0,r.lazy)((()=>Promise.all([t.e(702),t.e(699),t.e(986)]).then(t.bind(t,61986)))),d=(0,r.lazy)((()=>t.e(260).then(t.bind(t,14260)))),h=(0,r.memo)((function(e){const{children:n,refreshInterval:t=1e4}=e;if(!e.client)throw new Error("Missing a `client` prop with a configured Sanity client instance");const[i]=(0,r.useState)((()=>e.client.withConfig({requestTagPrefix:e.client.config().requestTagPrefix||u.Kq}))),[s]=(0,r.useState)((()=>e.cache)),[c]=(0,r.useState)((()=>e.logger)),l=(0,r.useMemo)((()=>{var n;return null!=(n=e.turboSourceMap)?n:i.config().resultSourceMap}),[i,e.turboSourceMap]);return l?(0,o.jsx)(r.Suspense,{fallback:n,children:(0,o.jsx)(d,{client:i,logger:c,refreshInterval:t,turboSourceMap:l,children:n})}):(0,o.jsx)(g,{client:i,cache:s,logger:c,refreshInterval:t,children:n})})),g=(0,r.memo)((function(e){var n;const{children:t,refreshInterval:i,client:s,cache:c,logger:l}=e,a=null!=(n=null==c?void 0:c.maxDocuments)?n:u.pm,[f,h]=(0,r.useState)(null),[g,v]=(0,r.useState)(null),[m]=(0,r.useState)((()=>{var e;return null!=(e=null==c?void 0:c.includeTypes)?e:[]}));if(g)throw g;if((0,r.useEffect)((()=>
1{if(null!==f)return;null==l||l.log("[@sanity/preview-kit]: fetch documents count");const e=new AbortController;return s.fetch(m.length>0?"count(*[_type in $includeTypes])":"count(*)",{includeTypes:m},{filterResponse:!0,signal:e.signal}).then((e=>{null==l||l.log("[@sanity/preview-kit]: documents count",e),h(e)})).catch((e=>{"AbortError"!==e.name&&v(e)})),()=>{e.abort()}}),[s,f,m,l]),null===f)return t;if(i&&f>=a)return(0,o.jsx)(r.Suspense,{fallback:t,children:(0,o.jsx)(d,{client:s,refreshInterval:i,turboSourceMap:!1,logger:l,children:t})});if(f>=a)throw new Error("[@sanity/preview-kit]: You have ".concat(f," documents in your dataset, which is more than the maximum of ").concat(a," documents. Please reduce the number of documents in your dataset or increase the limit."));return(0,o.jsx)(r.Suspense,{fallback:t,children:(0,o.jsx)(p,{...e,children:t})})})),p=(0,r.memo)((function(e){var n;const{children:t,client:i,cache:s,logger:u}=e,{projectId:c,dataset:l,token:a,perspective:d="previewDrafts",requestTagPrefix:h}=(0,r.useMemo)((()=>i.config()),[i]);return(0,o.jsx)(f,{projectId:c,dataset:l,token:a,logger:u,listen:null==(n=null==s?void 0:s.listen)||n,documentLimit:null==s?void 0:s.maxDocuments,overlayDrafts:"previewDrafts"===d,includeTypes:null==s?void 0:s.includeTypes,requestTagPrefix:h,children:t})}))},82729:function(e,n,t){"use strict";function r(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}t.d(n,{_:function(){return r}})}},function(e){e.O(0,[864,955,774,888,179],(function(){return n=47286,e(e.s=n);var n}));var n=e.O();_N_E=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.