1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[346],{35071:(function(h,g,s){"use strict";s.r(g),s.d(g,{default:function(){return y}});var I=s(81365),T=s(46613),C=s(42860),i=s(59562),D=s(70048),L=s.n(D),N=s(71583),z=s.n(N),f=s(14041),H=s(94731);class W{constructor(t,o){this.player=t,this.playerInstance=o}player;playerInstance;variant(){return this.player.props.variant}pagePosition(){return this.player.props.pagePosition}wasAutoplayed(){return this.player.props.autoplayHasCompleted}currentVideo(){return this.player.props.currentVideoMetadata}currentPlaylistType(){return this.player.props.playlistType}currentPosition(){return this.player.props.currentVideoPosition}getOffsetWidth(){return this.playerInstance.el_.offsetWidth}currentTime(){return this.playerInstance.currentTime()}duration(){return this.playerInstance.duration()}muted(){return this.playerInstance.muted()}adMuted(){return this.playerInstance.ima3.adPlayer.muted()}error(){return this.playerInstance.error()}isFullscreen(){return this.playerInstance.isFullscreen()}on(t,o){return this.playerInstance.on(t,o)}off(t,o){return this.playerInstance.off(t,o)}ready(t){return this.playerInstance.ready(t)}volume(){return this.playerInstance.volume()}paused(){return this.playerInstance.paused()}}var B=s(2182),M=s(42577),d=s(19108),w=s(87244),b=s(53417),p=s(43329),e=s(63533),$=s(83490),j=s(65143),U=s(7876),F=s(80461),E=s(95779);const X=s(91756),Y=s(84292),G=s(67924),Q=s(98276),K=s(81373),J=s(27198),Z=s(93240),q=s(99502),P=40,A=52,k=52,{spacing:u}=E.metricsPN,{text:_,fill:ee}=E.colorsPN,te=(0,B.A)("video",{target:"e1kaet40",label:"StyledBrightcoveVideo"})(({theme:a,mediaFit:t})=>({[`.${M.LS} &`]:[{position:"absolute",top:0,bottom:0,right:0,left:0,display:"block",verticalAlign:"top",boxSizing:"border-box",color:d.T.white,background:d.T.black,width:"auto",height:"auto","&:not(.vjs-controls-enabled)":{width:"100%",height:"100%",position:"absolute"},"& .vjs-poster":{...t?{backgroundColor:d.T.black,backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:t}:{}},"video&":{display:"none"},"& video.vjs-tech":{width:"100%",height:"100%",minHeight:"140px",position:"absolute",...t?{objectFit:t,backgroundColor:d.T.black}:{}},"& .vjs-control-bar":[{height:(0,e.g)(45),bottom:"-1px",zIndex:b.f.common.videoControlBar,color:(0,j.P)(a,{perthnow:d.T.white,fallback:void 0}),background:(0,j.P)(a,{sevennews:(0,$.zX)(d.T.black,.7),perthnow:d.T.perthnow.greyBasalt90,fallback:void 0})},a.kind==="sevennews"&&{fontFamily:w.l.sevennews.sansSerifCond,fontWeight:300,padding:(0,e.g)(0,20)},a.kind==="thenightly"&&{fontFamily:w.l.thenightly.sansSerif}],"& .vjs-menu":{zIndex:b.f.common.videoContextMenu},"&.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-control-bar, &.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-control-bar, &.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-control-bar, &.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar, &.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar":{transform:`translateY(${(0,e.g)(44)})`},"& .vjs-button > .vjs-icon-placeholder::before":{lineHeight:"2"},"& .vjs-control.vjs-button":{outline:"none"},"& .vjs-control.vjs-button:hover, & .vjs-control:hover .vjs-button":{textShadow:`0 0 1em ${d.T.white}`},"& .vjs-play-control .vjs-icon-placeholder::before, & .vjs-mute-control .vjs-icon-placeholder::before, & .vjs-fullscreen-control .vjs-icon-placeholder::before":{fontSize:(0,e.g)(22),width:(0,e.g)(45)},"& .vjs-live-display":{fontSize:(0,e.g)(15),padding:(0,e.g)(7,22),fontWeight:500},"& .vjs-fullscreen-control .vjs-icon-placeholder::before":{fontSize:(0,e.g)(25)},"& .vjs-volume-menu-button-horizontal:hover":{".vjs-menu .vjs-menu-content":{width:(0,e.g)(49),[(0,p.C9)("sm")]:{width:(0,e.g)(59)}}},"& .vjs-volume-bar.vjs-slider-horizontal":{margin:`${(0,e.g)(21)} 0 ${(0,e.g)(20)}`,width:(0,e.g)(49),height:(0,e.g)(4),background:(0,j.P)(a,{sevennews:d.T.sevennews.midGray,fallback:void 0}),[(0,p.C9)("sm")]:{width:(0,e.g)(59)}},"& .vjs-volume-bar.vjs-slider-horizontal:hover .vjs-menu":{width:(0,e.g)(49),[(0,p.C9)("sm")]:{width:(0,e.g)(59)}},"& .vjs-menu-button-inline":{"&:hover, &:focus":{width:(0,e.g)(94),[(0,p.C9)("sm")]:{width:(0,e.g)(104)}}},"& .vjs-menu-button-inline .vjs-menu":{left:(0,e.g)(45),width:(0,e.g)(49),[(0,p.C9)("sm")]:{width:(0,e.g)(59)}},"& .vjs-menu-button-inline.vjs-slider-active":{width:(0,e.g)(94),[(0,p.C9)("sm")]:{width:(0,e.g)(104)}},"& .vjs-slider-horizontal .vjs-volume-level":{height:(0,e.g)(4)},"& .vjs-time-control":{lineHeight:(0,e.g)(46),fontSize:(0,e.g)(16),padding:0,minWidth:(0,e.g)(32),fontWeight:700,color:(0,j.P)(a,{perthnow:d.T.white,fallback:void 0})},"& .vjs-time-control.vjs-time-divider":{minWidth:0},"& .vjs-texttrack-settings":{display:"none"},"& .vjs-play-progress, .vjs-volume-level":{background:(0,j.P)(a,{perthnow:d.T.perthnow.pinkThulite,sevennews:o=>o.video.primaryColor,thenightly:d.T.thenightly.neutral[0],fallback:void 0})}},a.kind==="sevennews"&&{"&.vjs-ad-playing .vjs-play-progress":{backgroundColor:d.T.sevennews.turbo},"& .vjs-slider":{background:"none"},"& .vjs-load-progress":{background:"none"},"& .vjs-load-progress div":{background:d.T.white30},"& .vjs-progress-control:hover":{paddingTop:0},"& .vjs-fullscreen-control, & .vjs-volume-panel, & .vjs-play-control":{width:"5em"},".vjs-fullscreen-control .vjs-icon-placeholder::before, .vjs-subs-caps-button .vjs-icon-placeholder::before, .vjs-play-control .vjs-icon-placeholder::before, .vjs-mute-control .vjs-icon-placeholder::before":{fontSize:"1.625rem",lineHeight:1.7},"& .vjs-time-control":{fontSize:(0,e.g)(15),fontWeight:500,padding:(0,e.g)(0,8)},"& .vjs-progress-control .vjs-mouse-display":{cursor:"pointer"}},a.kind==="thenightly"&&{"&.vjs-ad-playing .vjs-play-progress":{backgroundColor:d.T.thenightly.video.adPlaying},"& .vjs-time-control":{fontWeight:400}}],[`.${M.BI} &`]:[{position:"absolute",top:0,bottom:0,right:0,left:0,display:"block",verticalAlign:"top",boxSizing:"border-box",color:d.T.white,background:"transparent",width:"auto",height:"auto","&:not(.vjs-controls-enabled)":{width:"100%",height:"100%",position:"absolute"},"& .vjs-poster":{...t?{backgroundColor:d.T.black,backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:t}:{}},"video&":{display:"none"},"& video.vjs-tech":{width:"100%",height:"auto",minHeight:"140px",position:"absolute",...t?{objectFit:t,backgroundColor:d.T.black}:{}},"& .vjs-control-bar":[{background:"linear-gradient(180deg, rgba(0, 0, 0, 0.24) -8.06%, rgba(0, 0, 0, 0.8) 74.07%);",height:(0,e.g)(P),bottom:(0,e.g)(-1),zIndex:b.f.common.videoControlBar,color:d.T.white,padding:(0,e.g)(0,u.S),"& .vjs-current-time, & .vjs-time-divider, & .vjs-duration ":{...U.A["3XS"].tag},"& .vjs-control .vjs-icon-placeholder":{"&:before":{lineHeight:(0,e.g)(P)}},[(0,p.C9)("sm")]:{height:(0,e.g)(A),padding:(0,e.g)(0,u.XS),"& .vjs-control .vjs-icon-placeholder":{"&:before":{lineHeight:(0,e.g)(A)}}},[(0,p.C9)("lg")]:{height:(0,e.g)(k),"& .vjs-control .vjs-icon-placeholder":{"&:before":{lineHeight:(0,e.g)(k)}}}}],"& .vjs-menu":{zIndex:b.f.common.videoContextMenu},"& .vjs-volume-panel, & .vjs-volume-control, & .vjs-current-time, & .vjs-time-divider, & .vjs-duration":{alignItems:"center",height:"100%"},"&.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-control-bar, &.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-control-bar, &.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-control-bar, &.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar":{transform:"translateY(0)"},"& .vjs-button > .vjs-icon-placeholder::before":{lineHeight:"2"},"& .vjs-control.vjs-button":{outline:"none"},"& .vjs-control.vjs-volume-panel":{width:(0,e.g)(u["3XL"]),"&:hover, &:active, &:has(.vjs-volume-bar.vjs-slider-horizontal:focus)":{width:(0,e.g)(92)},[(0,p.C9)("sm")]:{"&:hover, .&:active":{width:(0,e.g)(92)}}},"& .vjs-control-bar button.vjs-play-control, & .vjs-control-bar button.vjs-mute-control":{width:(0,e.g)(u["3XL"]),display:"flex",justifyContent:"center",alignItems:"center",[(0,p.C9)("sm")]:{width:(0,e.g)(u["3XL"])}},"& .vjs-play-control .vjs-icon-placeholder, & .vjs-mute-control .vjs-icon-placeholder ":{display:"block",height:(0,e.g)(u.S),width:(0,e.g)(u["3XL"]),backgroundRepeat:"no-repeat",backgroundSize:"contain","&:before":{content:"none"},[(0,p.C9)("sm")]:{height:(0,e.g)(u.L),width:(0,e.g)(u.L)}},"& .vjs-play-control.vjs-paused .vjs-icon-placeholder":{backgroundImage:`url(${X})`},"& .vjs-play-control.vjs-playing .vjs-icon-placeholder":{backgroundImage:`url(${Y})`},"& .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder":{backgroundImage:`url(${G})`},"& .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder":{backgroundImage:`url(${Q})`},"& .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder":{backgroundImage:`url(${K})`},"& .vjs-mute-control.vjs-vol-3 .vjs-icon-placeholder":{backgroundImage:`url(${J})`},"& .vjs-fullscreen-control .vjs-icon-placeholder":{backgroundImage:`url(${Z})`},"&.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder":{backgroundImage:`url(${q})`,marginLeft:"auto",marginRight:0},"& .vjs-current-time.vjs-time-control":{marginLeft:(0,e.g)(u["2XS"])},"& .vjs-fullscreen-control":{width:(0,e.g)(u["3XL"])},"& .vjs-loading-spinner":{display:"none"},"& .vjs-live-display":{fontSize:(0,e.g)(15),padding:(0,e.g)(7,22),fontWeight:500},"& .vjs-fullscreen-control .vjs-icon-placeholder::before":{fontSize:(0,e.g)(25)},"& .vjs-volume-menu-button-horizontal:hover":{".vjs-menu .vjs-menu-content":{width:(0,e.g)(49),[(0,p.C9)("sm")]:{width:(0,e.g)(59)}}},"& .vjs-volume-bar.vjs-slider-horizontal":{margin:`${(0,e.g)(21)} 0 ${(0,e.g)(20)}`,width:(0,e.g)(49),height:(0,e.g)(4),[(0,p.C9)("sm")]:{width:(0,e.g)(59)}},"& .vjs-volume-bar.vjs-slider-horizontal:hover .vjs-menu":{width:(0,e.g)(49),[(0,p.C9)("sm")]:{width:(0,e.g)(59)}},"& .vjs-menu-button-inline":{"&:hover, &:focus":{width:(0,e.g)(94),[(0,p.C9)("sm")]:{width:(0,e.g)(104)}}},"& .vjs-menu-button-inline .vjs-menu":{left:(0,e.g)(45),width:(0,e.g)(49),[(0,p.C9)("sm")]:{width:(0,e.g)(59)}},"& .vjs-menu-button-inline.vjs-slider-active":{width:(0,e.g)(94),[(0,p.C9)("sm")]:{width:(0,e.g)(104)}},"& .vjs-slider-horizontal .vjs-volume-level":{height:(0,e.g)(4)},"& .vjs-time-control":{lineHeight:(0,e.g)(46),fontSize:(0,e.g)(16),padding:0,minWidth:(0,e.g)(32),fontWeight:700,color:_.inverse},"& .vjs-time-control.vjs-time-divider":{minWidth:0},"& .vjs-texttrack-settings":{display:"none"},"& .vjs-play-progress, .vjs-volume-level":{background:ee.brand.strong},"& .vjs-ad-control-bar .vjs-progress-control":{"& .vjs-play-progress.vjs-slider-bar":{backgroundColor:"#FFE400"},"&:hover, &:active":{height:(0,e.g)(12),top:(0,e.g)(-12)}},"& .vjs-control.vjs-button:focus-visible, & .vjs-control:focus-visible .vjs-button":{outline:"revert",outlineOffset:(0,e.g)(-2),borderRadius:(0,e.g)(E.metricsPN.radius.S)}},{"& .vjs-progress-control":{height:(0,e.g)(8),top:(0,e.g)(-8)},"&.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-progress-control, &.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-progress-control, &.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-progress-control, &.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control, &.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-progress-control, &.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control":{height:(0,e.g)(8),top:(0,e.g)(-8),"&:active":{height:(0,e.g)(12)}}}],[`.${F.ZC} &`]:{".vjs-control-bar:not(:has(:focus-visible)), .vjs-ad-control-bar:not(:has(:focus-visible))":{transform:`translateY(${(0,e.g)(P-1)}) !important`,transition:"transform 1s ease 0s",[(0,p.C9)("sm")]:{transform:`translateY(${(0,e.g)(A-1)}) !important`},[(0,p.C9)("lg")]:{transform:`translateY(${(0,e.g)(k-1)}) !important`},".vjs-progress-control:not(:has(:focus-visible))":{top:(0,e.g)(-4)}},".vjs-progress-control:focus-within":{opacity:1}}}),"");var se=s(694),oe=s(2299),v=s(4422);const O=["beforepluginsetup:$name","abort","beforepluginsetup","canplay","canplaythrough","componentresize","controlsdisabled","controlsenabled","dispose","durationchange","emptied","ended","enterFullWindow","enterpictureinpicture","error","exitFullWindow","firstplay","fullscreenchange","languagechange","leavepictureinpicture","loadeddata","loadeddata","loadedmetadata","loadedmetadata","loadstart","pause","play","playbackrateschange","playerresize","playing","pluginsetup","posterchange","progress","ratechange","ready","resize","seeked","seeking","sourceset","stalled","suspend","tap","textdata","texttrackchange","timeupdate","timeupdate","useractive","userinactive","usingcustomcontrols","usingnativecontrols","volumechange","volumechange","waiting","pluginsetup:$name","
1ima3-ready","ima3error","ima3-ad-error","ads-request","ads-load","ads-ad-started","ads-ad-ended","ads-pause","ads-play","ads-ad-skipped","ads-first-quartile","ads-midpoint","ads-third-quartile","ads-click","ads-volumechange","ads-pod-started","ads-pod-ended","ads-allpods-completed","ima3-ad-error","ima3-ads-manager-loaded","ima3-all-ads-completed","ima3-click","ima3-complete","ima3-content-pause-requested","ima3-first-quartile","ima3-hardtimeout","ima3-loaded","ima3-log","ima3-midpoint","ima3-paused","ima3-ready","ima3-resumed","ima3-started","ima3-third-quartile","ima3-volume-changed"],ae=typeof document!="object";function n(){return{timeStamp:Date.now(),originator:"player-event"}}class re{constructor(t){this.props=t,!ae&&(this.handlers=[{key:"ready",action:this.handleReady},{key:"ads-request",action:this.handleAdRequest},{key:"ads-load",action:this.handleAdLoad},{key:"ima3-ad-error",action:this.handleAdError.bind(this,"ima3-ad-error")},{key:"ima3error",action:this.handleAdError.bind(this,"ima3error")},{key:"ad-hard-timeout",action:this.handleAdError.bind(this,"ad-hard-timeout")},{key:"ima3-hard-timeout",action:this.handleAdError.bind(this,"ima3-hard-timeout")},{key:"ads-ad-started",action:this.handleAdStart},{key:"ads-first-quartile",action:this.handleAdFirstQuartile},{key:"ads-midpoint",action:this.handleAdMidpoint},{key:"ads-third-quartile",action:this.handleAdThirdQuartile},{key:"ads-ad-ended",action:this.handleAdEnded},{key:"ads-allpods-completed",action:this.handleAdPodsComplete},{key:"ads-click",action:this.handleAdClick},{key:"ads-pause",action:this.handleAdPause},{key:"ads-play",action:this.handleAdPlay},{key:"timeupdate",action:this.handleProgress},{key:"play",action:this.handlePlay},{key:"ended",action:this.handleComplete},{key:"error",action:this.handleError},{key:"fullscreenchange",action:this.handleFullscreenChange},{key:"useractive",action:this.handleUserActive},{key:"userinactive",action:this.handleUserInactive},{key:"volumechange",action:this.handleVolumeChange},{key:"ads-volumechange",action:this.handleAdVolumeChange},{key:"playing",action:this.handleStart},{key:"pause",action:this.handlePause},{key:"ima3-log",action:this.handleImaLog}],this.adBlockEnabled=t.adBlockEnabled,this.adState=this.getInitialAdState(),this.subscribe(this.handlers))}props;currentVideoId;trackedMilestones=[];adState;started=!1;adRequestStartTime;handlers=[];adBlockEnabled;getInitialAdState(){return this.props.hasAdUnitPath?this.adBlockEnabled&&this.adBlockEnabled()?"blocked":"pre-request":"no-ads"}shouldTrackAdEvents(){return this.props.hasAdUnitPath}handleVolumeChange=()=>{this.props.onEvent({type:i.b.videoVolumeChange,...n(),payload:{...l(this.props.player),volume:this.props.player.volume(),muted:this.props.player.muted()}})};handleAdVolumeChange=()=>{this.shouldTrackAdEvents()&&this.props.onEvent({type:i.b.adVolumeChange,...n(),payload:{...l(this.props.player),volume:this.props.player.volume(),muted:this.props.player.adMuted()}})};videoChanged(){this.adState=this.getInitialAdState(),this.started=!1,this.trackedMilestones=[],this.props.onEvent({type:i.b.videoAvailable,...n(),payload:l(this.props.player)})}handlePlay=()=>{this.props.onEvent({type:i.b.videoPlay,...n(),payload:{...l(this.props.player),autoplayed:this.props.player.wasAutoplayed()}}),this.currentVideoId=this.props.player.currentVideo().id};handleStart=()=>{this.started||(this.adState==="pre-request"&&(this.adState="no-ads"),this.started=!0,this.props.onEvent({type:i.b.videoStart,...n(),payload:{...l(this.props.player),autoplayed:this.props.player.wasAutoplayed()}}))};handlePause=()=>{this.props.onEvent({type:i.b.videoPause,...n(),payload:{...l(this.props.player)}})};handleReady=()=>{this.props.onEvent({type:i.b.playerReady,...n(),payload:l(this.props.player)})};handleProgress=()=>{const t=Math.round(this.props.player.currentTime()),o=this.props.player.duration(),r=Math.round(100/o*t),c=this.currentVideoId&&this.currentVideoId!==this.props.player.currentVideo().id;this.adState==="blocked"&&!c&&(this.adState="no-ads"),this.raiseProcessMilestoneIfPassed(25,r),this.raiseProcessMilestoneIfPassed(50,r),this.raiseProcessMilestoneIfPassed(75,r)};raiseProcessMilestoneIfPassed(t,o){o<t||this.trackedMilestones.indexOf(t)!==-1||(this.trackedMilestones.push(t),this.props.onEvent({type:`video.milestone.${t}`,...n(),payload:l(this.props.player)}))}handleComplete=()=>{this.props.onEvent({type:i.b.videoEnd,...n(),payload:l(this.props.player)})};handleError=()=>{(0,v.e)("handlng player error");const t=x(this.props.player.currentVideo(),this.props.player.getOffsetWidth()),o=this.props.player.error();if(!o||o===null){this.props.onEvent({type:i.b.playerError,...n(),payload:{video:t,error:{message:"Error event triggered but no error object exists",code:0}}});return}this.props.onEvent({type:i.b.playerError,...n(),payload:{video:t,error:{message:o.message,type:o.type,code:o.code}}})};handleAdRequest=()=>{this.shouldTrackAdEvents()&&(this.adRequestStartTime=Date.now(),this.adState="requested",this.props.onEvent({type:i.b.adRequest,...n(),payload:l(this.props.player)}))};handleAdLoad=()=>
1{if(!this.shouldTrackAdEvents())return;this.adState="loaded";const t=this.adRequestStartTime?(Date.now()-this.adRequestStartTime)/1e3:0;this.props.onEvent({type:i.b.adLoad,...n(),payload:{...l(this.props.player),ad:{loadDuration:t}}})};handleAdError=t=>{this.shouldTrackAdEvents()&&((0,v.e)("handlng adError error"),this.adState="complete",this.props.onEvent({type:i.b.adError,...n(),payload:{...l(this.props.player),errorType:t}}))};handleAdStart=()=>{this.shouldTrackAdEvents()&&(this.adState="started",this.props.onEvent({type:i.b.adStart,...n(),payload:l(this.props.player)}))};handleAdFirstQuartile=()=>this.shouldTrackAdEvents()&&this.props.onEvent({type:i.b.adMilestone25,...n(),payload:l(this.props.player)});handleAdMidpoint=()=>this.shouldTrackAdEvents()&&this.props.onEvent({type:i.b.adMilestone50,...n(),payload:l(this.props.player)});handleAdThirdQuartile=()=>this.shouldTrackAdEvents()&&this.props.onEvent({type:i.b.adMilestone75,...n(),payload:l(this.props.player)});handleAdEnded=()=>{this.shouldTrackAdEvents()&&(this.adState="complete",this.props.onEvent({type:i.b.adEnd,...n(),payload:l(this.props.player)}))};handleAdPodsComplete=()=>{this.shouldTrackAdEvents()&&(this.adState="complete",this.props.onEvent({type:i.b.adPodComplete,...n(),payload:l(this.props.player)}))};handleAdClick=()=>this.shouldTrackAdEvents()&&this.props.onEvent({type:i.b.adClick,...n(),payload:l(this.props.player)});handleAdPause=()=>this.shouldTrackAdEvents()&&this.props.onEvent({type:i.b.adPause,...n(),payload:l(this.props.player)});handleAdPlay=()=>this.shouldTrackAdEvents()&&this.props.onEvent({type:i.b.adPlay,...n(),payload:l(this.props.player)});handleActive=()=>this.props.onEvent({type:i.b.adPause,...n(),payload:l(this.props.player)});handleUserActive=()=>this.props.onEvent({type:i.b.playerUserActive,...n(),payload:l(this.props.player)});handleUserInactive=()=>this.props.onEvent({type:i.b.playerUserInactive,...n(),payload:l(this.props.player)});handleFullscreenChange=()=>this.props.player.isFullscreen()?this.props.onEvent({type:i.b.playerFullscreenEnter,...n(),payload:l(this.props.player)}):this.props.onEvent({type:i.b.playerFullscreenExit,...n(),payload:l(this.props.player)});handleImaLog=t=>{if((0,v.e)("handlng imaLog error"),t?.originalEvent?.g?.adError?.g?.innerError?.errorCode===1205)return(0,v.e)("raising playToPause error"),this.props.onEvent({type:i.b.playToPauseError,...n(),payload:{...l(this.props.player)}})};dispose=()=>{this.unsubscribe(this.handlers)};subscribe(t){for(const o of t){const r=o.action;o.key==="ready"?this.props.player.ready(r):this.props.player.on(o.key,r)}if(v.e.enabled)for(const o of O)this.props.player.on(o,r=>(0,v.e)(o,r))}unsubscribe(t){for(const o of t){const r=o.action;this.props.player.off(o.key,r)}for(const o of O)this.props.player.off(o,()=>(0,v.e)(o))}}function x(a,t){return{source:a.source||void 0,displaySource:(0,oe.o1)(a.source,a.sourceExtra),sourceExtra:a.sourceExtra||void 0,primaryTopic:a.primaryTopic,secondaryTopic:a.secondaryTopics.join(","),videoContentType:a.videoContentType||void 0,videoType:a.videoType||void 0,producer:a.producer[0]||void 0,byline:a.byline||void 0,id:a.id,name:a.name||void 0,duration:a.duration?a.duration/1e3:0,width:t,height:Math.floor(t/(16/9)),season:a.seriesInfo?.season,episode:a.seriesInfo?.episode,series:a.seriesInfo?.series,pubdate:a.publicationDate}}function l(a){return{playlistType:a.currentPlaylistType(),position:a.currentPosition(),muted:a.muted(),volume:a.volume(),pagePosition:a.pagePosition(),video:x(a.currentVideo(),a.getOffsetWidth()),videoPlayerVariant:a.variant(),paused:a.paused()}}var ne=s(73251),V=s(37165),ie=s(31787),le=s(65976),R=s(64507);let de=0;function S(a,t,o){const r=(0,le.F)(a),c=(0,R.q)(t);let m;return r&&(r.reference?m=(0,T.s)(r.reference,c,!1):o.posterImage&&(m=(0,T.s)(o.posterImage.reference,c,!1))),m}class y extends f.Component{static displayName="SwmPlayerProvider";static swmPlayer;playerInstance=null;playerInstanceEventsHandler=null;playerInstanceRef=f.createRef();videoElementId;mounted=!1;constructor(t){if(super(t),this.state={errorEncountered:void 0},this.videoElementId=(0,ne.J)(`bc-video-${t.currentVideo.id}-${de++}`),typeof document<"u"&&!y.swmPlayer){const o=(0,se.u)({noCustParamsLabel:!0,adUnitPath:t.playerOptions.adUnitPath}),r={IMA3_REQUEST_MODE:t.playerOptions.adRequestMode||"onplay",DFP_
1CUST_PARAMS:o,IMA3_TIMEOUT:1e4,IMA3_VPAID_MODE:"ENABLED",IMA3_SHOW_VPAID_CONTROLS:!0,IMA3_DEBUG:!1,DISABLE_POSTCODE_FETCH:!0,DISABLE_SNOWPLOW:!t.playerOptions.enableSnowplow,DISABLE_PREBID:!t.playerOptions.enablePrebid,PARSELY_API_KEY:this.props.config.parselyApikey,PREBID_DEBUG:this.props.config.prebidDebug,PREBID_APPNEXUS_PLACEMENT_ID:this.props.config.prebidAppNexusId,PREBID_IX_SITE_ID:this.props.config.prebidIxId,IMA3_AD_TECH_ORDER:["html5"],SNOWPLOW_APP_ID:this.props.config.snowPlowAppId,SNOWPLOW_APP_NAME:this.props.config.snowPlowAppName,INTEGRAL_AN_ID:this.props.config.iasClientId,INTEGRAL_CHAN_ID:this.props.playerOptions.adUnitPath,NIELSEN_API_KEY:this.props.config.nielsenApid,NIELSEN_PROGRAM_NAME:(0,R.y)(this.props.product),GDPR_MODE:this.props.playerOptions.gdprMode};(0,v.e)("swmPlayerParams",r),y.swmPlayer=new(L())(r);const c=s(72737).A,m=s(95959).A,pe=s(24221).A;y.swmPlayer.plugins([c,m,pe,...this.props.playerOptions.isMagniteEnabled?[]:[s(81382).default]]),y.swmPlayer.init(!1)}}get isMobileAutoPlayEnabled(){const{product:t,autoplayOptions:o}=this.props,r=t===C.Y.SevenNews,c=t===C.Y.PerthNow;return!!((r||c)&&(0,ie.$)()&&o)}getOffsetWidth(){if(this.playerInstance)return this.playerInstance.el_.offsetWidth}componentDidMount(){this.mounted=!0,this.playerInstanceRef.current&&this.mountVideoPlayer(this.playerInstanceRef.current)}componentWillUnmount(){try{if(this.mounted=!1,this.playerInstanceEventsHandler&&(this.playerInstanceEventsHandler.dispose(),this.playerInstanceEventsHandler=null),this.playerInstance){this.playerInstance.off("mouseover",this.playerOnMouseOver),this.playerInstance.off("loadedmetadata",this.enforceMuteState),this.playerInstance.off("ima3-started",this.enforceMuteState),this.playerInstance.off("playing",this.enforceMuteState),V.Fr.iOS()&&this.playerInstance.off("ima3-started",this.resetAdPlayerVolume);const t=this.playerInstance;setTimeout(()=>t.dispose()),this.playerInstance=null}}catch(t){const o=(0,I.f)(t);this.props.logger.error({err:o},"Error unmounting video component, player is null")}}componentDidUpdate(t){if(!(this.playerInstance===null||this.playerInstance===void 0)){if(t.currentVideo.id!==this.props.currentVideo.id&&this.updateVideo(),!t.play&&this.props.play){const o=this.playerInstance,r=this.playerInstance.play();(0,v.e)("play() response",r),(0,v.e)("playerInstance.el_",o.el_),r&&r.catch(c=>{(0,v.e)("Play state change failed",c),this.props.onEvent({type:i.b.playToPauseError,...n(),payload:{muted:this.playerInstance.muted(),volume:this.playerInstance.volume(),paused:this.playerInstance.paused()}})})}(t.isMuted!==this.props.isMuted||t.adPlaying!==this.props.adPlaying)&&this.enforceMuteState(),t.pause!==this.props.pause&&(this.props.pause===!0?this.props.adPlaying?this.playerInstance.ima3.adPlayer.pause():this.playerInstance.pause():this.props.adPlaying?this.playerInstance.ima3.adPlayer.play():this.playerInstance.play())}}enforceMuteState=()=>{!this.mounted||!this.playerInstance||(this.props.adPlaying&&this.playerInstance.ima3?.adPlayer?this.playerInstance.ima3.adPlayer.muted(this.props.isMuted):this.playerInstance.muted(this.props.isMuted))};updateVideo=async()=>{try{if(this.playerInstance===null||this.playerInstanceEventsHandler===null||!this.playerInstanceRef.current)return;const{currentVideo:t,currentVideoMetadata:o,product:r}=this.props;if(t===void 0||o===void 0||!y.swmPlayer)return;const c=await y.swmPlayer.fetchMetadata(this.playerInstanceRef.current.id,{videoId:o.id,accountId:o.accountId});if(!this.mounted)return;if(y.swmPlayer.loadFromMetadata(this.playerInstanceRef.current.id,c),!this.props.playerOptions.hidePoster&&o.posterImage){const m=S(t,r,o);this.playerInstance.poster(m??o.posterImage.reference)}this.enforceMuteState(),this.playerInstanceEventsHandler.videoChanged()}catch(t){const o=(0,I.f)(t);this.setState({errorEncountered:o}),this.props.logger.error({err:o},"SwmPlayer update video error")}};mountVideoPlayer=async t=>{try{if(!this.playerInstanceRef||!y.swmPlayer||this.props.currentVideo===void 0||this.props.currentVideoMetadata===void 0||(await y.swmPlayer.initPlayer(t,{adChoice:this.props.currentVideo.videoType==="live"?"csai":this.props.playerOptions.adUnitPath?void 0:"ssaibeacon",textTrackSettings:!1,autoplay:this.props.play,disableNielsen:!0,nielsenInstanceName:`
1SWM_PLAYER_${z()()}`}),!this.mounted))return;this.playerInstance=videojs.getPlayer(t);const o=this.props.playerOptions.hidePoster?void 0:S(this.props.currentVideo,this.props.product,this.props.currentVideoMetadata);o&&this.playerInstance.poster(o),this.playerInstanceEventsHandler=new re({player:new W(this,this.playerInstance),onEvent:this.props.onEvent,adBlockEnabled:H.o,hasAdUnitPath:!!this.props.playerOptions.adUnitPath}),this.playerInstanceEventsHandler.videoChanged(),this.props.playerOptions.preloadOption&&this.playerInstance.preload(this.props.playerOptions.preloadOption),this.playerInstance.on("mouseover",this.playerOnMouseOver),this.playerInstance.on("loadedmetadata",this.enforceMuteState),this.playerInstance.on("ima3-started",this.enforceMuteState),this.playerInstance.on("playing",this.enforceMuteState),V.Fr.iOS()&&this.playerInstance.on("ima3-started",this.resetAdPlayerVolume)}catch(o){const r=(0,I.f)(o);this.setState({errorEncountered:r}),this.props.logger.error({err:r},"SwmPlayer mount video error")}};playerOnMouseOver=()=>{this.playerInstance&&this.playerInstance.userActive(!0)};resetAdPlayerVolume=()=>{const t=this.playerInstance;!t||!t.ima3||!t.ima3.adPlayer||(t.ima3.volume=t.volume(),t.muted()?t.ima3.adPlayer.muted(!0):t.ima3.adPlayer.volume(t.volume()||t.ads.preAdVolume_))};render(){if(this.state.errorEncountered)throw this.state.errorEncountered;if(this.props.currentVideoMetadata===void 0)return null;const t=this.props.playerOptions.adUnitPath.split("/"),[,,...o]=t,r=this.props.playerOptions.hidePoster?void 0:S(this.props.currentVideo,this.props.product,this.props.currentVideoMetadata);return f.createElement(f.Fragment,null,f.createElement(te,{ref:this.playerInstanceRef,id:this.videoElementId,mediaFit:this.props.playerOptions.mediaFit,playsInline:!0,"data-account":this.props.currentVideo.accountId,"data-application-id":o.length?o.join("/"):"WAN","data-embed":"default","data-player":this.props.playerOptions.brightcovePlayerId,"data-video-embed-id":this.props.currentVideo.id,poster:r,className:"video-js",preload:this.props.playerOptions.preloadOption,muted:this.props.isMuted,controls:!0,autoPlay:this.isMobileAutoPlayEnabled}))}}}),93240:(function(h,g,s){"use strict";h.exports=s.p+"static/media/maximize.d41907b0..svg"}),99502:(function(h,g,s){"use strict";h.exports=s.p+"static/media/minimize.483571e5..svg"}),84292:(function(h,g,s){"use strict";h.exports=s.p+"static/media/pause.417dbfef..svg"}),91756:(function(h,g,s){"use strict";h.exports=s.p+"static/media/play.c60b462f..svg"}),98276:(function(h,g,s){"use strict";h.exports=s.p+"static/media/volume.44c077f2..svg"}),81373:(function(h,g,s){"use strict";h.exports=s.p+"static/media/volume1.6497c327..svg"}),27198:(function(h,g,s){"use strict";h.exports=s.p+"static/media/volume2.a71d37e3..svg"}),67924:(function(h,g,s){"use strict";h.exports=s.p+"static/media/volumex.3165fc0a..svg"}),26632:(function(){})}]); 2 3//# sourceMappingURL=SwmPlayerProvider_99057fc743699db266c6.js.map
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.