1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[424],{8213:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var a=r(2676);r(5271);let n={raspberry:"bg-raspberry",purple:"bg-purple"},l={raspberry:"text-raspberry",purple:"text-purple"};function o(t){let{color:e}=t;return(0,a.jsxs)("div",{className:"flex rounded-xl bg-white h-12 sm:h-full py-3 px-3 lg:py-5 lg:px-9 md:py-3 md:px-5",children:[(0,a.jsx)("div",{className:"flex justify-center items-center",children:(0,a.jsx)("div",{className:"h-3 w-3 mr-2 lg:w-5 lg:h-5 lg:mr-5 md:w-3 md:h-3 md:mr-2 ".concat(n[e]," rounded-full")})}),(0,a.jsx)("div",{className:"font-extrabold lg:text-4xl md:text-2xl ".concat(l[e]),children:"LIVE"})]})}},8104:function(t,e,r){"use strict";r.d(e,{Z:function(){return b}});var a=r(2676),n=r(5271),l=r(6698),o=r.n(l),i=r(4217),s=r(874),c=r.n(s);function u(t){let{item:e}=t;return(0,a.jsxs)("div",{className:"bg-white flex flex-col justify-between w-72 sm:w-96 lg:w-80 shadow-xl rounded-xl",children:[(0,a.jsx)(o(),{className:"rounded-t-xl",height:213,width:384,src:(0,i.i)(e.image).height(213).width(384).fit("crop").url(),layout:"intrinsic",alt:e.text}),(0,a.jsxs)("div",{className:"px-4 lg:px-6 pt-4 lg:pt-6",children:[(0,a.jsx)("div",{className:"text-purple font-extrabold text-xs lg:text-lg",children:null==e?void 0:e.category}),(0,a.jsx)("h3",{className:"font-extrabold lg:text-2xl pb-4",children:null==e?void 0:e.title}),(0,a.jsx)("p",{className:"mb-4 text-sm lg:text-lg line-clamp-3",children:null==e?void 0:e.description})]}),(0,a.jsx)("div",{className:"px-4 pb-4 lg:px-6 lg:pb-6 ",children:(0,a.jsx)(c(),{href:(null==e?void 0:e.href)||"/play-space",className:"w-fit max-w-full truncate whitespace-nowrap block overflow-hidden text-xs lg:text-lg lg:pl-6 pr-12 py-3 px-3 bg-purple-light hover:bg-yellow-light bg-icon-arrow bg-no-repeat bg-1 bg-right-5 font-extrabold text-purple rounded-full",children:(null==e?void 0:e.linkText)||"Get ready"})})]})}var d=function(t,e){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function h(t){var e,r,a,l,o,i,s,c=t.className,u=t.counterClockwise,d=t.dashRatio,h=t.pathRadius,p=t.strokeWidth,x=t.style;return(0,n.createElement)("path",{className:c,style:Object.assign({},x,(r=(e={pathRadius:h,dashRatio:d,counterClockwise:u}).counterClockwise,l=(1-e.dashRatio)*(a=2*Math.PI*e.pathRadius),{strokeDasharray:a+"px "+a+"px",strokeDashoffset:(r?-l:l)+"px"})),d:"\n M 50,50\n m 0,-"+(i=(o={pathRadius:h,counterClockwise:u}).pathRadius)+"\n a "+i+","+i+" "+(s=o.counterClockwise?1:0)+" 1 1 0,"+2*i+"\n a "+i+","+i+" "+s+" 1 1 0,-"+2*i+"\n ",strokeWidth:p,fillOpacity:0})}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return!function(t,e){function r(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},e.prototype.getPathRadius=function(){return 50-this.props.strokeWidth/2-this.getBackgroundPadding()},e.prototype.getPathRatio=function(){var t=this.props,e=t.value,r=t.minValue,a=t.maxValue;return(Math.min(Math.max(e,r),a)-r)/(a-r)},e.prototype.render=function(){var t=this.props,e=t.circleRatio,r=t.className,a=t.classes,l=t.counterClockwise,o=t.styles,i=t.strokeWidth,s=t.text,c=this.getPathRadius(),u=this.getPathRatio();return(0,n.createElement)("svg",{className:a.root+" "+r,style:o.root,viewBox:"0 0 100 100","data-test-id":"CircularProgressbar"},this.props.background?(0,n.createElement)("circle",{className:a.background,style:o.background,cx:50,cy:50,r:50}):null,(0,n.createElement)(h,{className:a.trail,counterClockwise:l,dashRatio:e,pathRadius:c,strokeWidth:i,style:o.trail}),(0,n.createElement)(h,{className:a.path,counterClockwise:l,dashRatio:u*e,pathRadius:c,strokeWidth:i,style:o.path}),s?(0,n.createElement)("text",{className:a.text,style:o.text,x:50,y:50},s):null)},e.defaultProps={background:!1,backgroundPadding:0,circleRatio:1,classes:{root:"CircularProgressbar",trail:"CircularProgressbar-trail",path:"CircularProgressbar-path",text:"CircularProgressbar-text",background:"CircularProgressbar-background"},counterClockwise:!1,className:"",maxValue:100,minValue:0,strokeWidth:8,styles:{root:{},trail:{},path:{},text:{},background:{}},text:""},e}(n.Component);function x(t){return Object.keys(t).forEach(function(e){null==t[e]&&delete t[e]}),t}function g(t){var e,r,l,o,i,s,c,u,d,h,g,m,f;let{schedule:v,status:b}
1=t,[w,y]=(0,n.useState)(""),[k,N]=(0,n.useState)(Date.parse(null===(e=v[0])||void 0===e?void 0:e.dt)-new Date().getTime()),[j,D]=(0,n.useState)(100);return(0,n.useEffect)(()=>{let t=setInterval(()=>{var t;return N(Date.parse(null===(t=v[0])||void 0===t?void 0:t.dt)-Date.now())},1e4);return()=>clearInterval(t)},[v,b]),(0,n.useEffect)(()=>{let t=k/1e3/60/60,e=k/1e3/60;D(Math.min(Math.max(Math.abs(e/60/12*100),5),95)),t<1?y("".concat(Math.max(Math.floor(e),0),"m")):t>=1&&t<12?y("".concat(Math.floor(t),"h ").concat(Math.floor(e%60),"m")):t>=12&&t<24?y("Tomorrow"):t>=24&&y(new Date(v[0].dt).toLocaleDateString("en-AU",{weekday:"long"}))},[v,b,k]),(0,a.jsxs)("div",{className:"flex items-center rounded-xl bg-white h-fit p-3",children:[(0,a.jsx)("div",{className:"w-3 sm:w-4 md:w-6 lg:w-10 flex justify-center items-center",children:(0,a.jsx)(p,{value:j,counterClockwise:!0,strokeWidth:50,styles:(l=(r={pathColor:"#442176",trailColor:"#ededeb",strokeLinecap:"butt"}).rotation,o=r.strokeLinecap,i=r.textColor,s=r.textSize,c=r.pathColor,u=r.pathTransition,d=r.pathTransitionDuration,h=r.trailColor,g=r.backgroundColor,{root:{},path:x({stroke:c,strokeLinecap:o,transform:m=null==l?void 0:"rotate("+l+"turn)",transformOrigin:f=null==l?void 0:"center center",transition:u,transitionDuration:null==d?void 0:d+"s"}),trail:x({stroke:h,strokeLinecap:o,transform:m,transformOrigin:f}),text:x({fill:i,fontSize:s}),background:x({fill:g})})})}),(0,a.jsx)("div",{className:"w-fit pl-3 font-extrabold text-xs md:text-lg lg:text-3xl text-raspberry align-middle whitespace-nowrap",children:w})]})}r(4487);var m=r(8213),f=r(8837),v=r(3905);function b(t){let{items:e,content:r=null,colour:n,className:l="",isStreamLive:o=!1,isGameLive:i=!1,liveVideoSnippet:s=v.W.liveVideoSnippet,liveGameSnippet:c=v.W.liveGameSnippet,nextLiveShowBlockHeading:d=v.W.nextLiveShowBlockHeading,nextLiveShowBlockSubheading:h=v.W.nextLiveShowBlockSubheading}=t,p={background:"mint"==n?"bg-mint":"",heading:"mint"==n?"text-white":"text-purple",subheading:"mint"==n?"text-white":"text-purple",roundedBottom:"mint"==n?"":"rounded-b-2xl"},{schedule:x,status:b}=(0,f.Z)();return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"flex-col p-8 lg:p-11 relative ".concat(p.background," rounded-t-2xl ").concat(p.roundedBottom," bg-page-stars-2 bg-cover ").concat(l),children:[(0,a.jsxs)("div",{className:"flex pb-4 content-center items-center",children:[(0,a.jsx)("h2",{className:"".concat(p.heading," text-2xl xl:text-5xl lg:text-4xl md:text-3xl font-extrabold pb-0 mr-auto mb-0 block"),children:o?s:i?c:d}),o&&(0,a.jsx)(m.Z,{color:"raspberry"}),!o&&i&&(0,a.jsx)(m.Z,{color:"purple"}),!o&&!i&&b==f.Q.LOADED&&x.length>0&&(0,a.jsx)(g,{schedule:x,status:b})]}),(0,a.jsx)("h3",{className:"".concat(p.subheading," text-xl lg:text-3xl w-max mt-4 mx-auto md:text-2xl font-extrabold pb-0 mr-auto mb-0 block"),children:h}),(0,a.jsx)("div",{className:"flex flex-col items-stretch space-y-5 md:space-y-0 md:flex-row lg:flex-row justify-center md:space-x-7 mt-8",children:null==e?void 0:e.map(t=>(0,a.jsx)(u,{item:t},t._key))})]})})}},3278:function(t,e,r){"use strict";var a=r(2676);r(5271),e.Z=function(t){let{className:e=""}=t;return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"45",height:"43",fill:"none",viewBox:"0 0 45 43",className:"".concat(e),children:(0,a.jsx)("path",{d:"M20.4 1.9a2 2 0 013.6 0l3.8 12a2 2 0 001.8 1.3h12.6a2 2 0 011.1 3.5l-10.2 7.4a2 2 0 00-.7 2l3.8 12a2 2 0 01-3 2.2l-10-7.5a2 2 0 00-2.3 0l-10.2 7.4a2 2 0 01-3-2.2l4-12a2 2 0 00-.7-2L1 18.4A2 2 0 012 15l12.6.1a2 2 0 001.8-1.3l4-12z"})})}},2036:function(t,e,r){"use strict";r.d(e,{O:function(){return n},V:function(){return a}});let a=(0,r(3491).eI)("https://ujovkqlizfepuqnehdak.supabase.co","sb_publishable_Y0kx8_S2Zw4z91-pgnoa7A_CgvP24Sf"),n=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{data:r,error:n}=await a.functions.invoke("virtual-starlight",{headers:{"x-starlight-path":t},body:e});if(n)throw n;return r}},821:function(t,e,r){"use strict";var a=r(5271),n=r(2036),l=r(1744);e.Z=()=>{let[t,e]=(0,a.useState)(!1);return(0,l.U)(async()=>{try{let{data:t,error:r}=await n.V.functions.invoke("virtual-starlight",{headers:{"x-starlight-path":"options/get"}});if(r){console.error(r);return}let a=JSON.parse(null==t?void 0:t.value);e(!!(null==a?void 0:a.isGameLive))}catch(t){}}),t}},1350:function(t,e,r){"use strict";var a=r(5271),n=r(2036),l=r(1744);e.Z=()=>{let[t,e]=(0,a.useState)(!1);return(0,l.U)(async()=>{try{let{data:t,error:r}=await n.V.functions.invoke("virtual-starlight",{headers:{"x-starlight-path":"options/get"}});if(r){console.error(r);return}let a=JSON.parse(null==t?void 0:t.value);e(!!(null==a?void 0:a.isStreamLive))}catch(t){}}),t}},8837:function(t,e,r){"use strict";r.d(e,{Q:function(){return n}});var a=r(5271);let n=Object.freeze({INIT:"INIT",LOADING:"LOADING",LOADED:"LOADED",ERROR:"ERROR"}),l=()=>{let t=new Date,e=t.toLocaleDateString(void 0),r=t.toLocaleDateString(void 0,{timeZoneName:"long"}),a=r.indexOf(e);return a>=0?(r.substring(0,a)+r.substring(a+e.length)).replace(/^[\s,.\-:;]+|[\s,.\-:;]+$/g,""):r};e.Z=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,[e,r]=(0,a.useState)(n.INIT),[o,i]=(0,a.useState)();return(0,a.useEffect)(()=>{let e=!0;return r(n.LOADING),(async()=>{try{let a=new Date,o=await fetch("/api/schedule"),s=await o.json();if((null==s?void 0:s.length)===0)throw Error("No schedule found");s=s.filter(t=>{let{dt:e}=t;return new Date(e)>=a}).slice(0,t).map(t=>
1{let e=new Date(t.dt),r=e.toLocaleString(void 0,{dateStyle:"short"}),n=e.toLocaleString(void 0,{timeStyle:"short"}),o=l(),i=o.split(" ").map(t=>t[0]).join("");return{...t,dt:e,dateLocal:r,timeLocal:n,tzName:o,tzAcronym:i,humanDay:e.toDateString()===a.toDateString()?"Today":"Tomorrow"}}),e&&(r(n.LOADED),i(s))}catch(t){console.error("Error fetching schedule: ".concat(t.message)),e&&r(n.ERROR)}})(),()=>{e=!1}},[t]),{schedule:o,status:e}}},1744:function(t,e,r){"use strict";r.d(e,{U:function(){return n}});var a=r(5271);function n(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e4,r=(0,a.useRef)(t);(0,a.useEffect)(()=>{r.current=t},[t]),(0,a.useEffect)(()=>{let t;let a=()=>{t=setInterval(()=>{r.current()},e),r.current()};"visible"===document.visibilityState&&a();let n=()=>{t&&clearInterval(t),"visible"===document.visibilityState&&a()};return document.addEventListener("visibilitychange",n),()=>{t&&clearInterval(t),document.removeEventListener("visibilitychange",n)}},[r,e])}},4487:function(){}}]);
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.