1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,29303,e=>{"use strict";var t=e.i(43476),a=e.i(71645),r=e.i(91918),l=e.i(25913),i=e.i(47163);let s=(0,l.cva)("inline-flex items-center justify-center rounded-none text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background",{variants:{variant:{default:"bg-black text-white hover:bg-black/90 dark:bg-white dark:text-black dark:hover:bg-white/90",destructive:"bg-crimson-500 text-white hover:bg-crimson-600",outline:"border border-input bg-background hover:bg-almostblack dark:hover:bg-white hover:text-white dark:hover:text-almostblack",secondary:"bg-gray-100 text-gray-900 hover:bg-gray-200 dark:bg-gray-800 dark:text-gray-100 dark:hover:bg-gray-700",ghost:"hover:bg-almostblack dark:hover:bg-white hover:text-white dark:hover:text-almostblack",link:"underline-offset-4 hover:underline text-primary",inverted:"bg-almostblack text-white border-1 hover:bg-white hover:text-almostblack hover:border-1 hover:border-almostblack"},size:{default:"h-10 py-2 px-4",sm:"h-9 px-3",lg:"h-11 px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),o=a.forwardRef(({className:e,variant:a,size:l,asChild:o=!1,renderAs:n="button",href:c,target:d,iconRight:m,...u},h)=>{if(o)return(0,t.jsx)(r.Slot,{className:(0,i.cn)(s({variant:a,size:l,className:e})),ref:h,...u,children:u.children});let x=c?"a":n;return(0,t.jsxs)(x,{className:(0,i.cn)(s({variant:a,size:l,className:e})),ref:h,...u,..."a"===x?{href:c,target:d}:{},children:[u.children,m&&(0,t.jsx)("span",{className:"relative -top-px ml-1",children:m})]})});o.displayName="Button",e.s(["Button",0,o])},4967,e=>{"use strict";let t={thumbnail:55,card:60,featured:70,hero:75,gallery:70,video:60,placeholder:20};function a(e){return!!e&&e.includes("imgix.cosmicjs.com")}function r(e){return a(e)?e:e&&e.includes("cdn.cosmicjs.com")?e.replace("cdn.cosmicjs.com","imgix.cosmicjs.com"):e}function l(e,l){if(!e)return"/image-placeholder.png";let i=r(e);if(!a(i))return e;let{width:s,height:o,quality:n=t.card,fit:c="crop",dpr:d=1,blur:m,format:u="auto"}=l,h=new URLSearchParams;h.set("w",String(s)),o&&h.set("h",String(o)),h.set("fit",c),h.set("auto","format,compress"),h.set("q",String(n)),d>1&&h.set("dpr",String(Math.min(d,1.5))),h.set("cs","strip"),m&&h.set("blur",String(m)),h.set("fm","auto"===u?"jpg":u),h.set("auto","format,compress");let x=i.includes("?")?"&":"?";return`${i}${x}${h.toString()}`}e.s(["QUALITY_PRESETS",0,t,"SRCSET_CONFIGS",0,{card:[400,600,800],thumbnail:[100,200,300],hero:[480,768,1024,1200,1400,1920],video:[320,640,1280],featured:[600,900,1200]},"buildImgixUrl",0,l,"convertToImgixUrl",0,r,"generateSrcSet",0,function(e,i){if(!e||!a(r(e)))return"";let{widths:s,quality:o=t.card,fit:n="crop",aspectRatio:c}=i;return s.map(t=>{let a=c?Math.round(t*c):void 0,r=l(e,{width:t,height:a,quality:o,fit:n});return`${r} ${t}w`}).join(", ")},"isImgixUrl",0,a])},45626,e=>{"use strict";var t=e.i(43476),a=e.i(47163),r=e.i(22016);e.s(["GenreTag",0,({children:e,className:l="",variant:i="default",href:s,onClick:o})=>{let n=(0,a.cn)("border-1 rounded-full px-1.5 py-0.5 text-[9px] font-mono uppercase",{default:"border-almostblack dark:border-white text-almostblack dark:text-white",white:"border-white text-white",transparent:"border-almostblack dark:border-white text-almostblack dark:text-white bg-transparent",light:"border-black text-black",large:"border-almostblack dark:border-white text-almostblack dark:text-white text-[11px]"}[i],l);return s?(0,t.jsx)(r.default,{href:s,className:(0,a.cn)(n,"hover:bg-almostblack hover:text-white dark:hover:bg-white dark:hover:text-almostblack transition-colors cursor-pointer"),onClick:o,children:e}):(0,t.jsx)("span",{className:(0,a.cn)(n,o&&"hover:bg-almostblack hover:text-white dark:hover:bg-white dark:hover:text-almostblack transition-colors cursor-pointer"),onClick:o,children:e})}])},52678,e=>{"use strict";var t=e.i(43476),a=e.i(71645);function r(e){let r=(0,a.useRef)(null),[l,i]=(0,a.useState)(!1),s="eager"===e.loading;return((0,a.useEffect)(()=>
1{if(s||l)return;if(!("IntersectionObserver"in window))return void i(!0);let e=new IntersectionObserver(t=>{t.some(e=>e.isIntersecting)&&(i(!0),e.disconnect())},{rootMargin:"300px"});return r.current&&e.observe(r.current),()=>e.disconnect()},[s,l]),s)?(0,t.jsx)("img",{...e}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("img",{...e,ref:r,src:l?e.src:'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="1" height="1"/%3E',srcSet:l?e.srcSet:void 0,"data-deferred-image":l?void 0:"true",onLoad:l?e.onLoad:void 0,onError:l?e.onError:void 0}),(0,t.jsx)("noscript",{children:(0,t.jsx)("img",{...e})})]})}var l=e.i(4967);e.s(["HeroImage",0,function({src:e,alt:r,className:i="",priority:s=!0,aspectRatio:o,sizes:n="100vw",mobileMaxWidth:c,onError:d}){let[m,u]=(0,a.useState)(!1);if(!e||m)return(0,t.jsx)("img",{src:"/image-placeholder.png",alt:r,className:i,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}});let h=(0,l.convertToImgixUrl)(e),x=(0,l.isImgixUrl)(h),g=l.SRCSET_CONFIGS.hero,p=g[g.length-1],f=o?Math.round(p*o):void 0,b=x?(0,l.buildImgixUrl)(h,{width:p,height:f,quality:l.QUALITY_PRESETS.hero,fit:"crop"}):e,v=x?(0,l.generateSrcSet)(h,{widths:g,quality:l.QUALITY_PRESETS.hero,aspectRatio:o,fit:"crop"}):void 0;return(0,t.jsxs)("picture",{children:[x&&c&&(0,t.jsx)("source",{media:"(max-width: 440px)",srcSet:(0,l.generateSrcSet)(h,{widths:[480,c],quality:l.QUALITY_PRESETS.hero,aspectRatio:o,fit:"crop"}),sizes:n}),x&&v&&(0,t.jsx)("source",{type:"image/webp",srcSet:v,sizes:n}),(0,t.jsx)("img",{src:b,alt:r,className:i,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"},loading:s?"eager":"lazy",decoding:s?"sync":"async",fetchPriority:s?"high":"low",onError:()=>{u(!0),d?.()}})]})},"ResponsiveCardImage",0,function({src:e,alt:i,className:s="",priority:o=!1,aspectRatio:n="square",sizes:c="(max-width: 640px) 50vw, (max-width: 1024px) 33vw, 25vw",onError:d}){let[m,u]=(0,a.useState)(!1),h={square:1,video:9/16,portrait:4/3}[n];if(!e||m)return(0,t.jsx)("img",{src:"/image-placeholder.png",alt:i,className:s,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}});let x=(0,l.convertToImgixUrl)(e),g=(0,l.isImgixUrl)(x),p=l.SRCSET_CONFIGS.card,f=p[p.length-1],b=Math.round(f*h),v=g?(0,l.buildImgixUrl)(x,{width:f,height:b,quality:l.QUALITY_PRESETS.card,fit:"crop"}):e,w=g?(0,l.generateSrcSet)(x,{widths:p,quality:l.QUALITY_PRESETS.card,aspectRatio:h,fit:"crop"}):void 0;return(0,t.jsx)(r,{srcSet:w,sizes:c,src:v,alt:i,className:s,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"},loading:o?"eager":"lazy",decoding:o?"sync":"async",fetchPriority:o?"high":"low",onError:()=>{u(!0),d?.()}})},"VideoThumbnailImage",0,function({src:e,alt:r,className:i="",priority:s=!1,large:o=!1,onError:n}){let[c,d]=(0,a.useState)(!1);if(!e||c)return(0,t.jsx)("img",{src:"/image-placeholder.png",alt:r,className:i,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}});let m=(0,l.convertToImgixUrl)(e),u=(0,l.isImgixUrl)(m),h=9/16,x=l.SRCSET_CONFIGS.video,g=o?x[x.length-1]:x[1],p=Math.round(g*h),f=u?(0,l.buildImgixUrl)(m,{width:g,height:p,quality:l.QUALITY_PRESETS.card,fit:"crop"}):e,b=u?(0,l.generateSrcSet)(m,{widths:x,quality:l.QUALITY_PRESETS.card,aspectRatio:h,fit:"crop"}):void 0;return(0,t.jsxs)("picture",{children:[u&&b&&(0,t.jsx)("source",{type:"image/webp",srcSet:b,sizes:o?"(max-width: 768px) 100vw, 50vw":"(max-width: 640px) 100vw, 33vw"}),(0,t.jsx)("img",{src:f,alt:r,className:i,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"},loading:s?"eager":"lazy",decoding:s?"sync":"async",fetchPriority:s?"high":"low",onError:()=>{d(!0),n?.()}})]})}],52678)},71930,e=>{"use strict";let t=(0,e.i(75254).default)("bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);e.s(["Bookmark",0,t],71930)},19160,e=>{"use strict";var t=e.i(43476),a=e.i(31343),r=e.i(95242),l=e.i(71930),i=e.i(22016),s=e.i(18566),o=e.i(71645),n=e.i(31005),c=e.i(45626),d=e.i(52678),m=e.i(6113);e.s(["ShowCard",0,({show:e,slug:u,className:h="",playable:x=!0,variant:g="default",canonicalGenres:p=[],isSaved:f=!1,priority:b=!1,sizes:v="(max-width: 767px) calc((100vw - 72px) / 2), (max-width: 1023px) 50vw, 25vw"})=>{let w=(0,s.useRouter)(),[j,y]=(0,o.useState)(!1),k=e?.__source==="episode"||e?.episodeData||e?.type==="episode",N=e?.url||e?.player||e?.metadata?.player,S=x&&e?.metadata?.player,{playShow:_,pauseShow:C,selectedShow:T,isArchivePlaying:E}=(0,n.useMediaPlayer)();(0,o.useEffect)(()=>{y(!0)},[]);let P=T?.key===e.key,I=P&&E,R=e.metadata?.external_image_url?e.metadata.external_image_url:e.metadata?.image?.imgix_url||e.metadata?.image?.url||"/image-placeholder.png",$=e.metadata?.genres&&Array.isArray(e.metadata.genres)?e.metadata.genres.filter(e=>e.id&&e.title).slice(0,3).map(e=>({id:e.id,title:e.title})):e.enhanced_genres&&Array.isArray(e.enhanced_genres)?e.enhanced_genres.filter(e=>e.id&&e.title).slice(0,3).map(e=>({id:e.id,title:e.title})):e.genres&&Array.isArray(e.genres)?e.genres.filter(e=>e.id&&e.title).slice(0,3).map(e=>({id:e.id,title:e.title})):e.tags&&Array.isArray(e.tags)?e.tags.filter(e=>e.name?.toLowerCase()!=="worldwide fm").slice(0,3).map(e=>({id:e.key||e.slug||e.name||e.title||e,title:e.name||e.title||e})):[],U=e.broadcast_date||e.metadata?.broadcast_date||e.date,z=e.metadata?.broadcast_time,L=e.name||e.title||"Untitled Show",A=e.user?.name||e.host||"",F=((e,t)=>{if(!e)return null;let a=null;return!(!(a=e.includes("T")?new Date(e):/^\d{4}-\d{2}-\d{2}$/.test(e)?(0,m.parseLondonDateTime)(e,t||"00:00"):new Date(e))||isNaN(a.getTime()))&&isFinite(a.getTime())?(0,m.formatLondonBroadcastTime)(a):null})(U,z),D=U?(()=>{let e;if(isNaN((e=new Date(/^\d{4}-\d{2}-\d{2}$/.test(U)?`${U}T00:00:00Z`:U)).getTime())||!isFinite(e.getTime()))return null;let t=e.getUTCDate().toString().padStart(2,"0"),a=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e.getUTCMonth()],r=e.getUTCFullYear();return`${t} ${a} ${r}`})():null,B=e.location?.name||e.location?.title||e.metadata?.location?.name||e.metadata?.location?.title||e.metadata?.locations?.[0]?.title||e.metadata?.locations?.[0]?.name||e.locations?.[0]?.title||e.locations?.[0]?.name,[q,...M]=L.split(":"),H=M.length>0?M.join(":").trim():A;H.toLowerCase()===q.trim().toLowerCase()&&(H="");let O="light"===g?"text-black":"text-almostblack dark:text-white",Y="text-white",Q="light"===g?"light":void 0;return(0,t.jsxs)("div",{className:`${"light"===g?"border-black":"border-almostblack dark:border-white"} border p-2 ${h}`,children:[(0,t.jsx)(i.default,{href:u,className:"block",children:(0,t.jsxs)("div",{className:"group relative aspect-square cursor-pointer",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black opacity-0 group-hover:opacity-50 transition-opacity pointer-events-none z-10"}),(0,t.jsx)(d.ResponsiveCardImage,{src:R,alt:L,className:`object-cover border ${"light"===g?"border-black":"border-almostblack dark:border-0"} hover:cursor-pointer`,sizes:v,priority:b,aspectRatio:"square"}),f&&(0,t.jsx)("div",{className:"absolute top-2 right-2 z-20 bg-almostblack/80 dark:bg-white/80 p-1.5 rounded-full",children:(0,t.jsx)(l.Bookmark,{className:"w-3 h-3 text-white dark:text-almostblack fill-current"})}),j&&S&&(0,t.jsx)("div",{className:"absolute bottom-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity z-20",children:(0,t.jsx)("button",{className:`${"light"===g?"bg-black hover:bg-black/80 border-black":"bg-almostblack hover:bg-almostblack/80 dark:border-white"} rounded-full w-10 h-10 flex items-center justify-center transition-colors cursor-pointer`,style:{minWidth:40,minHeight:40},onClick:t=>{t.preventDefault(),t.stopPropagation(),(k||N)&&(P&&I?C():_(e))},"aria-label":I?"Pause show":"Play show",children:I?(0,t.jsx)(r.Pause,{fill:"white",className:`w-4 h-4 ${Y}`}):(0,t.jsx)(a.Play,{fill:"white",className:`w-4 h-4 ${Y} pl-0.5`})})})]})}),(0,t.jsxs)("div",{className:"flex flex-col justify-between pt-3 pb-1 h-30",children:[(0,t.jsx)(i.default,{href:u,className:"block",children:(0,t.jsxs)("div",{className:"w-auto h-auto flex-1 gap-1 flex flex-col cursor-pointer",children:[(0,t.jsxs)("div",{className:`font-mono text-m8 sm:text-m6 uppercase w-full line-clamp-2 wrap-break-word pr-10 ${O}`,children:[q,H?`: ${H}`:""]}),(D||F||B)&&(0,t.jsx)("span",{className:`block overflow-hidden text-ellipsis whitespace-nowrap font-mono text-m8 uppercase pt-1 ${O}
1`,children:[D,F,B].filter(Boolean).join(" | ")})]})}),(0,t.jsx)("div",{className:"flex flex-row w-full pr-1",children:(0,t.jsx)("div",{className:"flex flex-row flex-wrap",children:$.map((e,a)=>{let r=(e=>{if(!p.length)return;let t=p.find(t=>t.id===e);return t?`/genre/${t.slug}`:void 0})(e.id);return(0,t.jsx)(c.GenreTag,{variant:Q,onClick:t=>{r?w.push(r):console.warn("No genre link found for tag:",e)},children:e.title},e.id+a)})})})]})]})}])},70065,e=>{"use strict";var t=e.i(43476),a=e.i(71645),r=e.i(47163);let l=a.forwardRef(({className:e,...a},l)=>(0,t.jsx)("div",{ref:l,className:(0,r.cn)("rounded-none text-card-foreground",e),...a}));l.displayName="Card",a.forwardRef(({className:e,...a},l)=>(0,t.jsx)("div",{ref:l,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",e),...a})).displayName="CardHeader",a.forwardRef(({className:e,...a},l)=>(0,t.jsx)("h3",{ref:l,className:(0,r.cn)("text-h8 font-display uppercase font-normal text-almostblack dark:text-white leading-none tracking-tight",e),...a})).displayName="CardTitle",a.forwardRef(({className:e,...a},l)=>(0,t.jsx)("p",{ref:l,className:(0,r.cn)("text-sm text-muted-foreground",e),...a})).displayName="CardDescription";let i=a.forwardRef(({className:e,...a},l)=>(0,t.jsx)("div",{ref:l,className:(0,r.cn)("p-6 pt-0",e),...a}));i.displayName="CardContent",a.forwardRef(({className:e,...a},l)=>(0,t.jsx)("div",{ref:l,className:(0,r.cn)("flex items-center p-6 pt-0",e),...a})).displayName="CardFooter",e.s(["Card",0,l,"CardContent",0,i])},28203,e=>{"use strict";var t=e.i(43476),a=e.i(47163);e.s(["HighlightedText",0,({children:e,className:r="",variant:l="default",backgroundColor:i,textColor:s})=>{let o={default:{backgroundColor:"var(--color-almostblack)",color:"var(--color-white)"},white:{backgroundColor:"var(--color-white)",color:"var(--color-almostblack)"},custom:{backgroundColor:i||"var(--color-almostblack)",color:s||"var(--color-white)"}}[l];return(0,t.jsx)("span",{className:(0,a.cn)("inline",r),style:{padding:"0.15em 0.1em 0.15em 0.1em",backgroundColor:o.backgroundColor,outline:"1px solid var(--color-almostblack)",color:o.color,lineHeight:"1",display:"inline",boxDecorationBreak:"clone",WebkitBoxDecorationBreak:"clone"},children:e})}])},75380,e=>{"use strict";var t=e.i(43476),a=e.i(22016),r=e.i(70065),l=e.i(6113),i=e.i(47163),s=e.i(67881),o=e.i(31343),n=e.i(95242),c=e.i(31005),d=e.i(4712);function m({label:e=!1,show:a,variant:r="default",size:l="default",className:u}){let{selectedShow:h,playShow:x,pauseShow:g,isArchivePlaying:p}=(0,c.useMediaPlayer)(),f=(0,d.usePlausible)(),b=h?.key===a.key,v=b&&p;return(0,t.jsxs)(s.Button,{variant:r,size:l,onClick:()=>{b?v?(f("Episode Paused",{props:{show:a.name||a.title||"Unknown",slug:a.slug||""}}),g()):(f("Episode Resumed",{props:{show:a.name||a.title||"Unknown",slug:a.slug||""}}),x(a)):(f("Episode Play Button Clicked",{props:{show:a.name||a.title||"Unknown",slug:a.slug||""}}),x(a))},className:(0,i.cn)(u,"px-0"),"aria-label":v?`Pause ${a.name}`:`Play ${a.name}`,children:[v?(0,t.jsx)(n.Pause,{fill:"white",className:"lg"===l?"h-6 w-6":"h-4 w-4"}):(0,t.jsx)(o.Play,{fill:"white",className:"lg"===l?"h-6 w-6":"h-4 w-4"}),"icon"!==l&&e&&(0,t.jsx)("span",{className:"ml-2",children:v?"Pause":"Play"})]})}var u=e.i(28203),h=e.i(52678);let x=({item:e,isPriority:s,sizes:o})=>{let n,{playShow:d,pauseShow:m,selectedShow:x,isArchivePlaying:g}=(0,c.useMediaPlayer)(),p={episode:`/episode/${e.slug}`,episodes:`/episode/${e.slug}`,posts:`/editorial/${e.slug}`,hosts:`/hosts/${e.slug}`,takeovers:`/takeovers/${e.slug}`,videos:`/videos/${e.slug}`}[e.type]??"#",f="episode"===e.type||"episodes"===e.type,b=e.url||e.metadata?.player,v=g&&x?.slug===e.slug,w=e.metadata?.broadcast_date&&e.metadata?.broadcast_time?(n=(0,l.parseBroadcastDateTime)(e.metadata.broadcast_date,e.metadata.broadcast_time,e.metadata.broadcast_date_old))?(0,l.formatLondonBroadcastTime)(n):e.metadata.broadcast_time:e.metadata?.broadcast_time??null;return(0,t.jsx)(r.Card,{className:"overflow-hidden shadow-none rounded-none relative cursor-pointer m-0 h-full flex flex-col group",children:(0,t.jsx)(a.default,{href:p,className:"flex flex-col h-full",children:(0,t.jsxs)(r.CardContent,{className:"p-0 grow flex flex-col",children:[(0,t.jsxs)("div",{className:"relative w-full aspect-square flex items-center justify-center",children:[(0,t.jsx)(h.HeroImage,{src:e.metadata?.external_image_url||e.metadata?.image?.imgix_url||e.metadata?.image?.url||"/image-placeholder.png",alt:e.title||"Hero item",className:"object-cover",priority:s,sizes:o,aspectRatio:1,mobileMaxWidth:800}),f&&b&&(0,t.jsx)("div",{className:"absolute bottom-4 right-4 z-30 opacity-0 group-hover:opacity-100 transition-opacity",children:(0,t.jsx)("button",{onClick:t=>{t.preventDefault(),t.stopPropagation(),v?m():d(e)},className:"text-white bg-almostblack rounded-full w-12 h-12 flex items-center justify-center transition-colors hover:bg-almostblack/80","aria-label":v?"Pause":"Play",children:v?(0,t.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"})}):(0,t.jsx)("svg",{className:"w-5 h-5 ml-0.5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M8 5v14l11-7z"})})})})]}),(0,t.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex bg-linear-to-t from-almostblack to-transparent h-1/2 flex-col p-4 flex-1 justify-end",children:[(0,t.jsx)("div",{className:"bg-almostblack uppercase text-white w-fit text-h8 leading-none font-display pt-1 px-1 text-left",children:e.metadata?.date&&(0,i.formatDateShort)(e.metadata.date)||e.metadata?.broadcast_date&&(0,i.formatDateShort)(e.metadata.broadcast_date)}),(0,t.jsx)("h3",{className:"text-h7 max-w-2xl leading-none font-display w-fit",children:(0,t.jsx)(u.HighlightedText,{variant:"white",children:(()=>{let[t,...a]=(e.title||"").split(":"),r=a.length>0?a.join(":").trim():"";return r&&r.toLowerCase()===t.trim().toLowerCase()?t.trim():e.title})()})}),w&&(0,t.jsx)("p",{className:"text-m5 font-mono text-white max-w-xl mt-2 line-clamp-3 text-left",children:w}),e.metadata?.genres&&(0,t.jsx)("div",{className:"flex items-center",children:e.metadata.genres.map(e=>(0,t.jsx)("p",{className:"text-m7 font-mono uppercase text-white border border-white rounded-full px-2 py-1 max-w-xl mt-2 line-clamp-3 text-left",children:e.title},e.id))})]})]})})},e.slug)},g=(e,a,r="100vw")=>(0,t.jsx)(x,{item:e,isPriority:a,sizes:r});e.s(["EpisodeHero",0,({displayName:e,displayImage:a,showDate:r,show:l})=>
1{if(!a||!e)return null;let i=l?.__source==="episode"||l?.episodeData||l?.type==="episode",s=l?.url||l?.player||l?.metadata?.player;return(0,t.jsxs)("div",{className:"relative w-full h-[80vh] sm:h-200 aspect-2/1 flex flex-col justify-center overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute inset-0 w-full h-full z-10 bg-blend-multiply backdrop-blur-[20px] pointer-events-none"}),(0,t.jsx)("div",{className:"absolute inset-0 w-full h-full z-20 pointer-events-none",children:(0,t.jsx)("div",{className:"w-full h-full",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E\")",backgroundSize:"200px 200px",mixBlendMode:"color-burn",opacity:"50%"}})}),(0,t.jsx)(h.ResponsiveCardImage,{src:a,alt:"",className:"object-cover object-center w-full h-full select-none pointer-events-none",priority:!0,aspectRatio:"square",sizes:"(max-width: 640px) 80vw, (max-width: 768px) 400px, (max-width: 1024px) 450px, 600px"}),(0,t.jsx)("div",{className:"relative inset-0 flex justify-center pt-5 z-30",children:(0,t.jsxs)("div",{className:"flex flex-col md:max-w-full md:flex-row gap-10 px-10 items-start md:items-center ",children:[(0,t.jsxs)("div",{className:"relative w-[80vw] sm:w-[400px] md:w-[450px] lg:w-[600px] aspect-square border border-almostblack z-30",children:[(0,t.jsx)(h.ResponsiveCardImage,{src:a,alt:e,className:"object-cover object-center w-full h-full select-none pointer-events-none",priority:!0,aspectRatio:"square",sizes:"(max-width: 640px) 80vw, (max-width: 768px) 400px, (max-width: 1024px) 450px, 600px"}),(i||s)&&l?.metadata?.player&&(0,t.jsx)(m,{show:l,variant:"default",className:"z-50 absolute bottom-0 right-0 m-5 rounded-full shadow-xl h-13 aspect-square flex items-center justify-center text-white bg-almostblack/90 hover:bg-almostblack hover:cursor-pointer",label:!1})]}),(0,t.jsxs)("div",{className:"flex flex-col pb-2 md:flex-1 w-[80vw] sm:w-[400px] md:w-[500px]",children:[r&&(0,t.jsx)("span",{className:"inline-block bg-almostblack text-white font-display text-h8 leading-none uppercase w-fit px-1 text-left shadow-lg border border-almostblack",children:r}),(0,t.jsx)("span",{className:"text-h7 leading-none font-display w-fit uppercase font-bold ",children:(0,t.jsx)(u.HighlightedText,{variant:"white",children:(()=>{let[t,...a]=e.split(":"),r=a.length>0?a.join(":").trim():"";return r&&r.toLowerCase()===t.trim().toLowerCase()?t.trim():e})()})})]})]})})]})},"default",0,({heroLayout:e,heroItems:a})=>{if(!a||0===a.length)return null;if("Split"===e){let e=a[0],r=a.length>1?a[1]:null;return(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 pt-5 px-5 relative z-10",children:[(0,t.jsx)("div",{className:"flex flex-col h-full",children:e&&g(e,!0,"(max-width: 767px) calc(100vw - 40px), calc((100vw - 52px) / 2)")}),(0,t.jsx)("div",{className:"h-full",children:(0,t.jsx)("div",{className:"flex flex-col h-full",children:r&&g(r,!0,"(max-width: 767px) calc(100vw - 40px), calc((100vw - 52px) / 2)")})})]})}if("Full Width"===e||"FullWidth"===e){let e=a[0];return e?(0,t.jsx)("div",{className:"relative z-10 w-full",children:g(e,!0)}):null}return console.warn(`HomepageHero: Encountered an unexpected or not-yet-implemented heroLayout: "${e}"`),(0,t.jsxs)("div",{children:[(0,t.jsxs)("h2",{className:"text-h7 font-display uppercase text-almostblack dark:text-white mb-2",children:["Hero Section (Layout: ",e,")"]}),(0,t.jsxs)("p",{className:"text-red-500 font-semibold",children:["Warning: Layout '",e,"' is not recognized or fully implemented for the Hero section."]})]})}],75380)},63059,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],63059)},71689,e=>{"use strict";let t=(0,e.i(75254).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],71689)},35804,e=>{"use strict";var t=e.i(71645),a=e.i(34620);function r(e){let[r,l]=t.useState(void 0);return(0,a.useLayoutEffect)(()=>
1{if(e){l({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let a,r;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,r=t.blockSize}else a=e.offsetWidth,r=e.offsetHeight;l({width:a,height:r})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}l(void 0)},[e]),r}(0,Object.defineProperty)(r,"name",{value:"useSize",configurable:!0}),e.s(["useSize",0,r])},86318,e=>{"use strict";var t=e.i(71645),a=(e.i(43476),Object.defineProperty),r=t.createContext(void 0);function l(e){let a=t.useContext(r);return e||a||"ltr"}a(l,"name",{value:"useDirection",configurable:!0}),e.s(["useDirection",0,l])},71428,e=>{"use strict";var t=e.i(43476),a=e.i(47163);e.s(["Skeleton",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-none bg-muted",e),...r})}])},70152,e=>{"use strict";function t(e,[a,r]){return Math.min(r,Math.max(a,e))}(0,Object.defineProperty)(t,"name",{value:"clamp",configurable:!0}),e.s(["clamp",0,t])},7222,e=>{"use strict";var t=e.i(43476),a=e.i(71428);function r(){return(0,t.jsxs)("div",{className:"border-almostblack dark:border-white border p-2",children:[(0,t.jsx)("div",{className:"group relative aspect-square",children:(0,t.jsx)(a.Skeleton,{className:"absolute inset-0 w-full h-full border border-almostblack dark:border-0 rounded-none"})}),(0,t.jsxs)("div",{className:"flex flex-col justify-between pt-3 pb-1 h-30",children:[(0,t.jsxs)("div",{className:"w-auto h-auto flex-1 gap-1 flex flex-col",children:[(0,t.jsx)(a.Skeleton,{className:"h-4 w-full rounded-none font-mono text-m8 sm:text-m6"}),(0,t.jsx)(a.Skeleton,{className:"h-3 w-3/4 rounded-none pt-1"})]}),(0,t.jsx)("div",{className:"flex flex-row w-full pr-1",children:(0,t.jsxs)("div",{className:"flex flex-row flex-wrap gap-1",children:[(0,t.jsx)(a.Skeleton,{className:"rounded-full px-1.5 py-0.5 h-[18px] w-14"}),(0,t.jsx)(a.Skeleton,{className:"rounded-full px-1.5 py-0.5 h-[18px] w-16"})]})})]})]})}e.s(["ShowsGridSkeleton",0,function({count:e=20}){return(0,t.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3 w-full h-auto",children:Array.from({length:e}).map((e,a)=>(0,t.jsx)(r,{},a))})}])},82771,e=>{"use strict";var t=e.i(43476),a=e.i(47163),r=e.i(18566);e.s(["CategoryTag",0,({children:e,className:l="",variant:i="default",categorySlug:s,onClick:o})=>{let n=(0,r.useRouter)(),c=(0,a.cn)("border-1 rounded-full px-2 py-0.5 text-[9px] md:text-[10px] font-mono uppercase",{default:"border-almostblack dark:border-white text-almostblack dark:text-white",white:"border-white text-white",transparent:"border-almostblack dark:border-white text-almostblack dark:text-white bg-transparent",light:"border-black text-black"}[i],l);return(0,t.jsx)("span",{className:(0,a.cn)(c,"hover:bg-almostblack hover:text-white dark:hover:bg-white dark:hover:text-almostblack transition-colors cursor-pointer"),onClick:e=>{e.preventDefault(),e.stopPropagation(),o?o(e):s&&n.push(`/editorial?categories=${s}`)},children:e})}])},35620,55427,e=>{"use strict";var t=e.i(43476),a=e.i(22016),r=e.i(82771),l=e.i(4967);e.s(["ArticleCard",0,function({title:e,slug:i,image:s,excerpt:o,date:n,tags:c,categories:d,variant:m="default",href:u,aspectRatio:h}){let x="1_1"===h,g="featured"===m,p=d||(c?c.map(e=>({slug:e.toLowerCase().replace(/\s+/g,"-"),title:e})):[]),f=u||`/editorial/${i}`,b=u?.startsWith("http");return(0,t.jsx)(a.default,{href:f,className:`block group ${g?"w-full":""}`,...b?{target:"_blank",rel:"noopener noreferrer"}:{},children:(0,t.jsxs)("div",{className:`relative w-full ${!g?"":x?"flex flex-col md:flex-row gap-6 md:gap-10 items-start":"flex flex-col gap-6 items-start"}`,children:[(0,t.jsx)("div",{className:`flex-1 relative ${!g?"":x?"w-full md:w-1/2 h-auto":"w-full md:max-w-[75vw] h-auto"}`,children:(0,t.jsx)("img",{src:(0,l.isImgixUrl)((0,l.convertToImgixUrl)(s))?(0,l.buildImgixUrl)(s,{width:g?1200:600,quality:g?l.QUALITY_PRESETS.featured:l.QUALITY_PRESETS.card}):s,alt:e,className:`w-full ${g?"h-auto object-contain":"h-full object-fill"} border ${"white"===m?"":"border-black"}`,loading:"lazy"})}),(0,t.jsxs)("div",{className:`pt-4 pb-4 ${!g?"w-[90%]":x?"w-full md:w-1/2 flex flex-col justify-center":"w-full lg:w-2/3 flex flex-col justify-center"}`,children:[(0,t.jsx)("div",{className:`pl-1 pb-6 font-sans ${g?"text-[28px] md:text-[40px] lg:text-[50px] leading-none":"text-b2"}`,children:e}),g&&o&&(0,t.jsx)("p",{className:"pl-1 pb-3 text-b3 font-sans text-almostblack dark:text-white",children:o}),n&&(0,t.jsx)("p",{className:`pl-1 pb-3 text-m8 font-mono dark:text-white ${"white"===m?"text-white":"text-almostblack"}`,children:new Date(n).toLocaleDateString("en-GB",{day:"2-digit",month:"2-digit",year:"2-digit"}).replace(/\//g,".")}),p&&p.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap",children:p.map(e=>(0,t.jsx)(r.CategoryTag,{categorySlug:e.slug,variant:"white"===m?"white":"default",children:e.title},e.slug))})]})]})})}],35620),e.s(["EventCard",0,function({title:e,slug:r,image:i,eventDate:s,location:o,ticketLink:n,description:c}){return(0,t.jsx)(a.default,{href:`/editorial/${r}`,className:"block group",children:(0,t.jsxs)("div",{className:"relative w-full flex flex-col md:flex-row gap-6 items-start",children:[(0,t.jsx)("div",{className:"flex-1 relative h-auto",children:(0,t.jsx)("img",{src:(0,l.isImgixUrl)((0,l.convertToImgixUrl)(i))?(0,l.buildImgixUrl)(i,{width:800,quality:l.QUALITY_PRESETS.card}):i,alt:e,className:"w-full max-h-100 h-full object-cover border border-black",loading:"lazy"})}),(0,t.jsxs)("div",{className:"pt-4 pb-4 flex-1 flex flex-col justify-center",children:[(0,t.jsx)("div",{className:"pl-1 pb-6 font-mono uppercase text-b1 md:text-b1 leading-none",children:e}),s&&(0,t.jsx)("p",{className:"pl-1 pb-3 text-m8 font-mono text-almostblack",children:new Date(s).toLocaleDateString("en-GB",{day:"2-digit",month:"long",year:"numeric"})}),o&&(0,t.jsx)("p",{className:"pl-1 pb-3 text-m8 font-mono text-almostblack",children:o}),c&&(0,t.jsx)("p",{className:"pl-1 pb-3 text-sans text-b4",children:c}),n&&(0,t.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),className:"mt-4 inline-block px-6 py-3 bg-almostblack text-white hover:bg-almostblack/80 transition-colors uppercase font-mono text-sm",children:"Get Tickets"})]})]})})}],55427)},15835,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("7f9624437a724d6e2b7fb584f098c327a0cb28b3b8",t.callServer,void 0,t.findSourceMapURL,"getPostsWithFilters");e.s(["getPostsWithFilters",0,a])},68341,e=>{"use strict";var t=e.i(4967);function a(e){let t,a=(t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/))&&11===t[2].length?t[2]:null;return a?`https://img.youtube.com/vi/${a}/maxresdefault.jpg`:""}function r(e){let t,a=(t=e.match(/(?:vimeo\.com\/|player\.vimeo\.com\/video\/)([0-9]+)/))?t[1]:null;return a?`https://vumbnail.com/${a}.jpg`:""}function l(e,a=600){if(!e)return"/image-placeholder.png";let r=(0,t.convertToImgixUrl)(e);return(0,t.isImgixUrl)(r)?(0,t.buildImgixUrl)(e,{width:a,quality:t.QUALITY_PRESETS.card}):e}e.s(["getPostThumbnail",0,function(e,t){let i=t??600,s=e.metadata;if(!s)return l(e.thumbnail?.imgix_url,i);let o=s.video_url||s.youtube_video,n=s.video;
1if(o){let e=s.youtube_video_thumbnail?.imgix_url||s.video_thumbnail?.imgix_url;if(e)return l(e,i);let t=a(o);if(t)return t;let n=r(o);if(n)return n}if(n){let e=s.video_thumbnail?.imgix_url;if(e)return l(e,i);if("object"==typeof n&&n.imgix_url)return l(n.imgix_url,i)}return s.external_image_url?s.external_image_url:l(e.thumbnail?.imgix_url||s.image?.imgix_url,i)},"getPostVideoThumbnail",0,function(e,t=1280){let i=e.metadata;if(!i)return null;let s=i.video_url||i.youtube_video,o=i.video;if(s){let e=i.youtube_video_thumbnail?.imgix_url||i.video_thumbnail?.imgix_url;if(e)return l(e,t);let o=a(s);if(o)return o;let n=r(s);if(n)return n}if(o){let e=i.video_thumbnail?.imgix_url;if(e)return l(e,t);if("object"==typeof o&&o.imgix_url)return l(o.imgix_url,t)}return null},"getPostVideoUrl",0,function(e){let t=e.metadata;if(!t)return null;let a=t.video_url||t.youtube_video;if(a)return a;if(t.video){if("object"==typeof t.video)return t.video.url||t.video.imgix_url||null;if("string"==typeof t.video)return t.video}return null}])},81222,e=>{"use strict";var t=e.i(43476),a=e.i(31278),r=e.i(63059),l=e.i(35620),i=e.i(55427),s=e.i(15835),o=e.i(47163),n=e.i(71645),c=e.i(67881),d=e.i(68341),m=e.i(22016);e.s(["default",0,function({title:e,posts:u,events:h=[],className:x,isHomepage:g=!1,currentFilters:p,availableFilters:f}){let[b,v]=(0,n.useState)(u),[w,j]=(0,n.useState)(!1),[y,k]=(0,n.useState)(!1),[N,S]=(0,n.useState)(0),_=(0,n.useMemo)(()=>[...u.map(e=>({type:"post",data:e,date:e.metadata?.date})),...h.map(e=>({type:"event",data:e,date:e.metadata?.event_date}))].sort((e,t)=>new Date(t.date||"").getTime()-new Date(e.date||"").getTime()),[u,h]);async function C(){try{j(!0),console.log("Loading more posts with offset:",N,"current posts:",b.length);let e=p?.categories?.map(e=>{let t=f?.categories.find(t=>t.slug===e);return t?.id}).filter(Boolean)||[],t=await (0,s.getPostsWithFilters)({limit:20,offset:N,searchTerm:p?.searchTerm||"",categories:e,postType:p?.postType});if(console.log("Received",t.posts.length,"new posts, total offset will be:",N+t.posts.length),t.posts.length>0){let e=new Set(b.map(e=>e.id)),a=t.posts.filter(t=>!e.has(t.id));console.log("Filtered out",t.posts.length-a.length,"duplicate posts, adding",a.length,"new posts"),a.length>0?(v(e=>[...e,...a]),S(e=>e+a.length),k(a.length>=20)):k(!1)}else k(!1)}catch(e){console.error("Error loading more posts:",e)}finally{j(!1)}}return(0,n.useEffect)(()=>{v(u),S(u.length),k(u.length>=20)},[u]),(0,t.jsxs)("section",{className:(0,o.cn)("",x),children:[!g&&(0,t.jsx)("div",{className:"flex items-center justify-between mb-4 mt-4",children:(0,t.jsx)("h2",{className:"text-[40px] tracking-tight font-display uppercase font-normal text-almostblack dark:text-white",children:e})}),g?(0,t.jsxs)("div",{className:"px-5",children:[(0,t.jsxs)("div",{className:"flex w-full justify-between items-end mb-2",children:[(0,t.jsx)("h2",{className:"text-h8 md:text-h7 font-bold tracking-tight",children:e}),(0,t.jsxs)(m.default,{href:"/editorial",className:"inline-flex items-center font-mono uppercase hover:underline transition-all text-sm",children:["See All",(0,t.jsx)(r.ChevronRight,{className:"ml-1 h-4 w-4"})]})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6",children:u.slice(0,3).map(e=>{let a=(e.metadata?.categories||[]).map(e=>"string"==typeof e?e:e&&"object"==typeof e&&"string"==typeof e.title?e.title:"").filter(e=>!!e),r={key:e.slug,name:e.title,url:`/editorial/${e.slug}`,slug:e.slug,pictures:{large:(0,d.getPostThumbnail)(e)},created_time:e.metadata?.date||"",tags:a,categories:e.metadata?.categories||[],excerpt:e.metadata?.excerpt||""};return(0,t.jsx)(l.ArticleCard,{title:r.name,slug:r.slug,image:r.pictures.large,excerpt:r.excerpt,date:r.created_time,tags:a,categories:r.categories},e.id)})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-10",children:_.map((e,a)=>{if("event"===e.type){let a=e.data;return(0,t.jsx)(i.EventCard,{title:a.title,slug:a.slug,image:a.metadata?.external_image_url||a.metadata?.image?.imgix_url||"/image-placeholder.png",eventDate:a.metadata.event_date,location:a.metadata.location,ticketLink:a.metadata.ticket_link,description:a.metadata.description},`event-${a.id}`)}{let a=e.data,r=(a.metadata?.categories||[]).map(e=>"string"==typeof e?e:e&&"object"==typeof e&&"string"==typeof e.title?e.title:"").filter(e=>!!e);return(0,t.jsx)(l.ArticleCard,{title:a.title,slug:a.slug,image:(0,d.getPostThumbnail)(a),date:a.metadata?.date||"",tags:r,categories:a.metadata?.categories||[]},`post-${a.id}`)}})}),y&&(0,t.jsx)("div",{className:"w-full flex items-center justify-center mt-8",children:(0,t.jsx)(c.Button,{onClick:C,disabled:w,variant:"outline",className:"border-almostblack dark:border-white hover:bg-almostblack hover:text-white dark:hover:bg-white dark:hover:text-almostblack",children:w?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Loader2,{className:"h-4 w-4 animate-spin mr-2"}),"Loading..."]}):"Load More"})})]})]})}])},73375,e=>{"use strict";
1let t=(0,e.i(75254).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],73375)}]);
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.