1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8047],{20694:e=>{e.exports={liveVideoCTA:"style_liveVideoCTA__B5vbk",container:"style_container__JQd2j",buttonOpen:"style_buttonOpen__wvQZo",videoIcon:"style_videoIcon__zyEbI",buttonClose:"style_buttonClose__XetHl",closeIcon:"style_closeIcon__VnaFz",contracted:"style_contracted__AAj8H",maximised:"style_maximised__t48O6",overlay:"style_overlay__E3WeL"}},22380:e=>{e.exports={backgroundImage:"styles_backgroundImage__nT37a"}},40223:e=>{e.exports={videoError:"style_videoError__TaUvN",image:"style_image__2KPcy",wrapper:"style_wrapper__5UD0y",small:"style_small__G6OSm",title:"style_title__bbu1t",message:"style_message__SvbTZ",logo:"style_logo__XTXxk"}},44410:e=>{e.exports={liveVideoCtaMinimised:"live-radio_liveVideoCtaMinimised__ij5WA",radioPageContainer:"live-radio_radioPageContainer__uWCBi",previousNextTracks:"live-radio_previousNextTracks__yXyVd",globalplayerBackground:"live-radio_globalplayerBackground__Pusk8",backgroundImage:"live-radio_backgroundImage__BgfAW",gradient:"live-radio_gradient__N_2Zl",content:"live-radio_content__Wj_Q9",metadataContainer:"live-radio_metadataContainer__L7Mix",column:"live-radio_column__lm9UX",trackContainer:"live-radio_trackContainer__UTrWd",showInfoBadgeMain:"live-radio_showInfoBadgeMain__aWqMN",showInfoWithBadge:"live-radio_showInfoWithBadge__NJMyq",presenter:"live-radio_presenter__N4Dvk",showInfoCard:"live-radio_showInfoCard__dzb0G",track:"live-radio_track__OtqlV",showInfoGradient:"live-radio_showInfoGradient__Ra9A0",cardFrame:"live-radio_cardFrame__r_PNt",capital:"live-radio_capital__PzTWe",capitalanthems:"live-radio_capitalanthems__CsQQV",capitalchill:"live-radio_capitalchill__syyfm",capitaldance:"live-radio_capitaldance____cOy",capitalscotland:"live-radio_capitalscotland__PwM0l",capitaltaylorsversion:"live-radio_capitaltaylorsversion__Y8CQ4",capitalxtra:"live-radio_capitalxtra___D52f",capitalxtrareloaded:"live-radio_capitalxtrareloaded__sOLQg",classicfm:"live-radio_classicfm__TAhH0",classicfmcalm:"live-radio_classicfmcalm__eUKT5",classicfmmovies:"live-radio_classicfmmovies__JvmGf",gold:"live-radio_gold__7jJ_T",heart:"live-radio_heart__MUnr_",heart00s:"live-radio_heart00s__5yI64",heart10s:"live-radio_heart10s__gDuTI",heart70s:"live-radio_heart70s__H_hAa",heart80s:"live-radio_heart80s__9ODSI",heart90s:"live-radio_heart90s__9RcYt",heartdance:"live-radio_heartdance__RM6sw",heartlove:"live-radio_heartlove__yc_Iv",heartmusicals:"live-radio_heartmusicals__FY0fZ",heartscotland:"live-radio_heartscotland__mIQrd",heartxmas:"live-radio_heartxmas__Waj_M",lbc:"live-radio_lbc__cDQJS",lbcnews:"live-radio_lbcnews___XQ1Z",radiox:"live-radio_radiox__S_m6M",radiox00s:"live-radio_radiox00s__6_BrX",radiox90s:"live-radio_radiox90s__U8eTz",radioxchilled:"live-radio_radioxchilled__aFl3R",radioxclassicrock:"live-radio_radioxclassicrock__CRXid",radioxoasis:"live-radio_radioxoasis__H2EHh",smooth:"live-radio_smooth__3e6AB",smooth70s:"live-radio_smooth70s__xtprz",smooth80s:"live-radio_smooth80s__ecTWZ",smoothchill:"live-radio_smoothchill__LSb_u",smoothchristmas:"live-radio_smoothchristmas__zgaXD",smoothcountry:"live-radio_smoothcountry__RzYQB",smoothrelax:"live-radio_smoothrelax__s_CGH",smoothsoul:"live-radio_smoothsoul__LHO_9",wsqk:"live-radio_wsqk__scm_9",rivieraradio:"live-radio_rivieraradio__NDSnO",footerContainer:"live-radio_footerContainer__0qHuV"}},62122:(e,a,i)=>{"use strict";i.d(a,{B:()=>t,l:()=>s});
1let t={error:{noLiveVideo:{title:"Currently no live video",message:"Check back later"},noLiveVideoDefaultErr:"There is currently an issue trying to play this video, please try again later."}},s={wide:"vertical",grid:"vertical",linear:"horizontal"}},68041:(e,a,i)=>{"use strict";i.r(a),i.d(a,{__N_SSP:()=>ei,default:()=>et});var t=i(37876),s=i(14232),o=i(89099),r=i(17230),l=i(963),n=i(38845),d=i(90802),_=i(35351),c=i(62122),h=i(98531),m=i(43503),v=i(47169),p=i(49595),u=i(54921),g=i(97191),x=i(22905),b=i(94288),w=i.n(b),y=i(40223),k=i.n(y);function f({title:e,message:a,showLogo:i=!1,size:s="large"}){let o=(0,m.t4)([k().videoError,"small"===s?k().small:""]);return(0,t.jsxs)("div",{className:o,children:[(0,t.jsx)(x.A,{width:16,height:9,className:k().image,src:"/_next/static/media/video-error-background.f6914906.png",alt:"video error background"}),(0,t.jsxs)("div",{className:k().wrapper,children:[i&&(0,t.jsx)(u.A,{className:k().logo,title:"GlobalPlayer logo",icon:w()}),(0,t.jsx)("h4",{className:k().title,children:e}),a?(0,t.jsx)("h5",{className:k().message,children:a}):null]})]})}var C=i(35965),j=i(20694),N=i.n(j);let I="liveVideoCTAPlayer";class S extends s.Component{static getDerivedStateFromProps(e,a){return a.maximised===e.show||e.show?null:{maximised:!1}}componentDidUpdate(e){this.props.show&&this.props.show!==e.show&&this.props.onVideoLoad()}render(){let e,a={playerName:I,jwSetup:{file:this.props.file,width:"100%",height:"100%",aspectratio:"1:1",stretching:"fill",autostart:!0,controls:!1,mute:!0},addKeyHandlers:this.props.addKeyHandlers,onError:this.onError};return e=this.state.hasError?this.state.error?.code===220001||this.state.error?.code===230001?(0,t.jsx)(f,{showLogo:this.state.maximised,size:this.state.maximised?"large":"small",title:c.B.error.noLiveVideo.title,message:c.B.error.noLiveVideo.message}):(0,t.jsx)(f,{size:this.state.maximised?"large":"small",showLogo:this.state.maximised,title:c.B.error.noLiveVideoDefaultErr}):(0,t.jsx)(C.A,{...a,file:this.props.file}),(0,t.jsx)(g.A,{in:this.props.show,children:(0,t.jsxs)("div",{className:(0,m.t4)([this.props.className,N().liveVideoCTA,this.props.contracted?N().contracted:"",this.state.maximised?N().maximised:"",this.state.maximised?"":this.props.minimisedClassName||""]),children:[this.state.maximised?(0,t.jsx)(p.A,{className:N().overlay,in:!0,backdrop:this.state.maximised,dismissible:this.state.maximised,onClose:this.closeMaximisation,closeButton:M,children:(0,t.jsx)(v.v,{className:N().container,onClick:this.openMaximisation,children:e})}):(0,t.jsx)(p.A,{className:N().overlay,in:!0,backdrop:this.state.maximised,onClose:this.closeMaximisation,children:(0,t.jsx)(v.v,{className:N().container,onClick:this.openMaximisation,children:e})}),(0,t.jsxs)(v.v,{onClick:this.openMaximisation,className:N().buttonOpen,"data-testid":"live-video-cta__button-open",children:[(0,t.jsx)(u.A,{className:N().videoIcon,iconColour:"white",icon:h.A.VideoIcon})," Live"]})]})})}constructor(...e){super(...e),this.state={maximised:!1,hasError:!1,error:null},this.openMaximisation=()=>{let e=()=>{if(!this.state.maximised&&(this.setState({maximised:!0}),window.jwplayer&&!this.state.hasError)){let e=window.jwplayer(I).getQualityLevels();if(e?.length){let a=e.sort((e,a)=>(a.height??0)-(e.height??0));window.jwplayer(I).setCurrentQuality(a[0])}window.jwplayer(I).setConfig({aspectratio:"16:9",stretching:"uniform",width:"100%",height:"100%"}),window.jwplayer(I).setControls(!0).setMute(!1).play()}};this.props.onVideoModalOpen?this.props.onVideoModalOpen(e):e()},this.closeMaximisation=()=>{this.setState({maximised:!1,hasError:!1,error:null}),window.jwplayer&&!this.state.hasError&&(window.jwplayer(I).setControls(!1).setMute(!0).play(),window.jwplayer(I).setConfig({stretching:"fill",width:"100%",height:"100%"})),this.props.onVideoModalClose()},this.onError=e=>{this.setState({hasError:!0,error:e}),this.props.onVideoError(e)}}}let M=e=>(0,t.jsx)(v.v,{"aria-label":"Close","data-testid":"live-video-cta__button-close",className:N().buttonClose,...e,children:(0,t.jsx)(u.A,{className:N().closeIcon,icon:h.A.Cross})});var A=i(40430),E=i(64328),T=i(72754);let L=function(e){let{station:{brandId:a,brandSlug:i}}=(0,s.useContext)(n.F),{play:o,pause:r,isPlaying:l,isMuted:c}=(0,s.useContext)(A.T),{isLoggedIn:h,showAccountGate:m}=(0,_.As)(),{NowPlayingByStation:v}=(0,_.Me)(),p=(0,s.useRef)(l),u=v.get(e.heraldId)?.go_live?.title,g=v.get(e.heraldId)?.go_live?.link?.href||"",x=v.get(e.heraldId)?.go_live?.status==="active";return(0,t.jsx)(S,{minimisedClassName:e.minimisedClassName,show:x,file:g,onVideoLoad:()=>{d.Ft.trackEvent("brand_hub_go_live",`${i}_brand_hub_go_live_preview_served`,u),d.Ft.track(E.iM.VideoGoLiveServed,{item_id:a})},onVideoModalOpen:e=>{let t=T.pG.MAXIMISE_LIVE_VIDEO.requiresLogin;(0,T.$_)({action:()=>{e(),d.Ft.trackEvent("brand_hub_go_live",`${i}_brand_hub_go_live_tapped`,u),d.Ft.track(E.iM.VideoGoLiveTapped,{item_id:a}),p.current=l,r?.()},isLoggedIn:h,requiresLogin:t,performActionOnDismiss:!1,showModal:()=>m("brand_hub_go_live")}
1)},onVideoModalClose:()=>{d.Ft.trackEvent("brand_hub_go_live",`${i}_brand_hub_go_live_closed`,u),d.Ft.track(E.iM.VideoGoLiveClosed,{item_id:a}),window&&!c&&window.localStorage.removeItem("jwplayer.mute"),p.current&&o?.()},onVideoError:e=>console.error(e),contracted:!1,addKeyHandlers:!1},i)};var V=i(35063),B=i(67063),P=i(38751),O=i(81128),$=i(91207),D=i(90878),F=i(46936),G=i(41082),H=i(72065),W=i(44410),z=i.n(W);let Q=()=>{let{station:e}=(0,s.useContext)(n.F),[a,i]=(0,s.useState)(!1),o=(0,_.Ji)(),l=(0,_.Me)().NowPlayingByStation.get(e.heraldId)||new O.ZT,{playContentById:d}=(0,$.F)(),{isPlayingItem:c,isItemBuffering:h,error:m,playlist:v,currentPlayingIndex:p}=(0,s.useContext)(A.T),u=c(e.id),g=r.r[e.brandSlug].track_placeholder,x=`Play ${e.name}`,b=(e=>{let{now_playing:a}=e;return"show"===a.type?a.artwork_with_background:"track"===a.type?a.proxied_artwork:a.artwork})(l),[w,y]=(0,s.useState)(!1),k=v?.[p],f=k?.id===e.id||k?.heraldId===e.heraldId,C=!!h&&h(e.id),j=(0,s.useCallback)(()=>{y(!0),d(e.id,{autostart:!0})},[e,d]),N=(0,s.useMemo)(()=>!!e.isPremiumPlaybackSupportedExpression&&(0,P.O)(e.isPremiumPlaybackSupportedExpression,o),[o,e.isPremiumPlaybackSupportedExpression]);(0,s.useEffect)(()=>{i(N)},[N]),(0,s.useEffect)(()=>{m||u?y(!1):y(!!C)},[u,e.id,C,m]);let I=l.now_playing;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:z().column,children:(0,t.jsx)(F.A,{title:l.current_show.name?l.current_show.name:e.name,subtitle:(0,H.Dh)(l.current_show),badgeText:u?"live":"on air",className:z().showInfoBadgeMain,showPlusBadge:a,children:(0,t.jsx)(D.A,{theme:"light",brand:e.brandSlug,withText:!1,style:{marginTop:"20px"}})})}),(0,t.jsx)("div",{className:(0,H.t4)([z().column,z().trackContainer]),children:(0,t.jsx)(G.A,{fallbackImage:g,image:b||g,imageHeight:380,imageWidth:380,title:(0,H.Xz)(I),subtitle:(0,H.Dh)(I),cardClassName:z().cardFrame,equaliserStateOn:u,isLoading:w&&f,playButtonShow:!u,playButtonOnClick:j,badgeText:u?"live":"on air",showPlusBadge:a,className:(0,H.t4)([z().showInfoCard,I?.type==="show"?"":z().track]),appleMusicUrl:I?.type==="track"?I?.apple_music:"",brandSlug:e.brandSlug,playIconLabel:x,showInfoBadgeClassName:(0,H.t4)([z().showInfoWithBadge,I?.type==="show"?z().presenter:""]),gradientClassName:I?.type==="show"?z().showInfoGradient:""})}),(0,t.jsx)("div",{className:z().column})]})};var X=i(12701);let R=({brandData:e,onBrandSelect:a})=>(0,t.jsxs)("div",{children:[(0,t.jsx)(X.A,{variant:"live",stationData:e,onBrandSelect:a}),(0,t.jsx)("div",{tabIndex:0,className:z().metadataContainer,children:(0,t.jsx)(Q,{})})]});var q=i(86954),U=i(30270),Z=i(22380),J=i.n(Z);let K=e=>{let a={backgroundImage:e.image?"url("+e.image+")":null,...e.style??{}};return(0,t.jsx)("div",{className:(0,m.t4)([J().backgroundImage,e.className??""]),style:a,children:e.children})};var Y=i(97440),ee=i(91653),ea=i(91737),ei=!0;let et=e=>{let a,i=(0,s.useContext)(n.F),d=(0,o.useRouter)(),_=(0,s.useRef)(d.query);(0,s.useEffect)(()=>{(0,H.MH)({trackingTitle:`Live Radio | ${e.station?.name}`})},[]),(0,s.useEffect)(()=>{let a=d.query;if(a.station!==_.current.station||a.brand!==_.current.brand){let i=e.brands.find(e=>e.brandSlug===a.brand);(0,H.MH)({trackingTitle:`Live Radio | ${i.name}`})}},[d.query,e.brands]);let c=async e=>{let a=U.A.live(e.brandSlug,e.slug);d.push(a.href,a.as)},h=U.A.live(i.station.brandSlug,i.station.slug),m={"@context":"http://schema.org","@type":"RadioBroadcastService",logo:i.station.brandLogo,broadcastDisplayName:i.station.name,broadcaster:{"@type":"Organization",name:"Global"},brand:{"@type":"Brand",name:i.station.brandName},url:`${ea.A.openGraph.url}${h.as}`,slogan:i.station.tagline},v={shareTitle:i.station.brandName,image:i.station.brandLogo,brand:i.station.brandName,id:i.station.id,parentId:i.station.brandId,contentType:"radio"};return(0,t.jsxs)("div",{"data-testid":"live-radio-page",className:z().radioPageContainer,children:[(0,t.jsx)(V.A,{title:`${i.station.name} - Listen Live on Global Player`,description:`${i.station.tagline}. Access your favourite ${i.station.brandName} shows now!`,canonical:`${ea.A.openGraph.url}${h.as}`,openGraph:{title:`${i.station.name} - Listen Live | Global Player`,description:`${i.station.tagline}. Access your favourite ${i.station.brandName} shows now!`,url:`${ea.A.openGraph.url}${h.as}`,images:[{url:`${H.pc}${r.r[i.station.brandSlug].track_placeholder}`,width:600,height:600,alt:`${i.station.name}`}]}}),(a=e.breakpoints,(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(K,{className:(0,H.t4)([z().globalplayerBackgroun
1d,z().backgroundImage,z().gradient,z()[i.station.brandSlug]])}),(0,t.jsxs)("div",{children:[(0,t.jsx)("section",{id:"main-content",className:z().content,children:(0,t.jsx)(R,{breakpoints:a,brandData:e.brands,onBrandSelect:c})}),(0,t.jsx)(L,{minimisedClassName:z().liveVideoCtaMinimised,fallbackImage:r.r[i.station.brandSlug].track_placeholder,heraldId:i.station.heraldId.toString()}),(0,t.jsx)(B.L,{className:z().previousNextTracks,fallbackImage:r.r[i.station.brandSlug].track_placeholder,heraldId:i.station.heraldId.toString()}),(0,t.jsx)("div",{className:z().footerContainer,children:(0,t.jsx)(ee.A,{})})]})]})),(0,t.jsx)(l.A,{data:m}),(0,t.jsx)(q.Z,{shareContent:v,modalTitle:"Share",buttons:["x","facebook","whatsapp","clipboard"],children:(0,t.jsx)(Y.p8,{contentType:"radio",station:i.station,title:i.station.brandName})})]})}},84022:(e,a,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/live/[brand]/[station]",function(){return i(68041)}])}},e=>{e.O(0,[9357,6688,7420,5414,2701,636,6593,8792],()=>e(e.s=84022)),_N_E=e.O()}]);
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.