PageSourceSearch

https://www.pilbaranews.com.au/static/js/ArticleVideo-web_b9fd2c934fb1cf15811c.js

js pilbaranews.com.au collected 2026-09-24 22:55:57 UTC 98,658 bytes, 33 lines download raw bytes

1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2861],{692:(function(C,x,e){"use strict";e.d(x,{C:function(){return Fe}});var v=e(30668),p=e(36683),f=e(68472),S=e(50183),t=e(14041),h=e(47583),w=e(31697),I=e(22502),a=e(59562),s={clearInterval(i){window.clearInterval(i)},setInterval(i,n){return window.setInterval(i,n)}},y=e(72981),g=e(37165),l=e(2299),b=e(4422);class W extends t.Component{mounted=!1;playerOffsetWidth=0;autoplayInterval;constructor(n){super(n),this.state={adPlayed:!1,adPlaying:!1,autoplayHasCompleted:!1,isFullscreen:!1,currentVideo:this.props.videoDetails,currentVideoMetadata:void 0,initialVideoMetadata:void 0,currentVideoPlaylistType:"not-playlist-video",showTopBar:!1,playWhenReady:n.playWhenReady||!1,videoPlayable:!1,showInternalPlayButton:!0,isMuted:this.props.forcedMuted??!0,canAutoplay:!1,videoQueue:{type:"not-playlist-video",items:[]},queuePosition:n.isVideoHub?1:0,playerState:{type:"other"},pauseVideo:!!(n.autoplayOptions&&n.autoplayOptions.pauseWhenOutOfView===!0),isSwitchingVideo:!1}}async componentDidMount(){try{this.mounted=!0;const n=await(0,l.yb)(this.state.currentVideo.id,this.state.currentVideo.accountId,this.props.config,this.props.logger);if(!this.mounted)return;const c=await(0,g.v)({forceEnableAutoplay:this.props.isVideoHub||this.props.canAutoPlay});if(!this.mounted)return;const u=c!==g.On.CannotAutoplay,d=this.props.autoplayOptions!==!1&&u;d&&this.props.autoplayOptions!==!1&&this.state.playWhenReady===!1&&this.initAutoplay(this.props.autoplayOptions);const R={...this.state.currentVideo,source:(0,l.o1)(n.source,n.sourceExtra)};this.setState({currentVideo:R,currentVideoMetadata:n,initialVideoMetadata:n,isMuted:this.props.forcedMuted??!0,canAutoplay:u,showTopBar:!1,showInternalPlayButton:!d&&!this.state.playWhenReady||!1})}catch(n){this.props.logger.error({err:n},"metadata get failed")}}isPlaylistDifferent(n,c){return JSON.stringify([...c].sort((u,d)=>u.id-d.id))!==JSON.stringify([...n].sort((u,d)=>u.id-d.id))}async componentDidUpdate(n){if(n.videoDetails?.id!==this.props.videoDetails.id){const c=await(0,l.yb)(this.props.videoDetails.id,this.props.videoDetails.accountId,this.props.config,this.props.logger),u={...this.props.videoDetails,source:(0,l.o1)(c.source,c.sourceExtra)};this.setState({currentVideo:u,currentVideoMetadata:c,initialVideoMetadata:c})}if(this.props.isVideoHubPlayListFixEnabled&&this.props.isVideoHub){const c=await this.props.getVideoQueue();this.isPlaylistDifferent(this.state.videoQueue.items,c.items)&&this.setState({videoQueue:c})}!n.playWhenReady&&this.props.playWhenReady&&!this.state.playWhenReady&&this.playVideo(),this.props.autoplayOptions&&this.props.autoplayOptions.pauseWhenOutOfView&&((n.inViewport>=50&&this.props.inViewport<50||document.hidden&&!this.state.pauseVideo)&&this.pauseVideo(),n.inViewport<50&&this.props.inViewport>=50&&this.resumeVideo()),this.props.forcedMuted!==void 0&&this.props.forcedMuted!==n.forcedMuted&&this.props.forcedMuted!==this.state.isMuted&&this.setState({isMuted:this.props.forcedMuted})}componentWillUnmount(){this.mounted=!1,this.autoplayInterval!==void 0&&s.clearInterval(this.autoplayInterval)}initAutoplay=n=>{this.mounted&&this.setState({playerState:{type:"autoplay-countdown",autoplayOptions:n,remainingTime:n&&n.delayDuration?n.delayDuration:0}},()=>{this.autoplayInterval=s.setInterval(this.updateAutoplayTime,1e3)})};updateAutoplayTime=()=>{if(this.state.playerState.type!=="autoplay-countdown"){this.props.logger.error({playerState:this.state.playerState},"Received updateAutoplayTime event when not in autoplay-countdown state");return}const n=this.props.inViewport>50;if(!(this.state.playerState.autoplayOptions.pauseCountdownOutsideViewport&&(n===!1||document.hidden))){if(this.state.playerState.remainingTime>0){const c=this.state.playerState.remainingTime-1;return this.setState(u=>({playerState:{...u.playerState,remainingTime:c}}))}this.autoplayComplete()}};autoplayComplete=()=>{this.autoplayInterval!==void 0&&s.clearInterval(this.autoplayInterval),this.setState({playerState:{type:"other"},showTopBar:!1,playWhenReady:!0,autoplayHasCompleted:!0,showInternalPlayButton:!1})};cancelAutoplay=()=>{this.autoplayInterval!==void 0&&s.clearInterval(this.autoplayInterval),this.setState({playerState:{type:"other"}})};stopAutoplay=()=>{this.cancelAutoplay(),this.setState({showTopBar:!1,autoplayHasCompleted:!1,showInternalPlayButton:!0})};closeStickyVideo=()=>{this.setState({pauseVideo:!0})};playerReady=async()=>
1{if(this.props.autoplayNextOptions)try{const n=await this.props.getVideoQueue();this.setState({videoQueue:n})}catch(n){this.props.logger.error({err:n},"getVideoQueue() failed!")}};videoCompleted=async()=>{const n=this.state.videoQueue.items[this.state.queuePosition];n&&(this.playNextVideo(n),(0,b.e)(`Starting autoplay countdown for: ${n.id}`),this.props.autoplayNextOptions!==!1&&this.initAutoplay(this.props.autoplayNextOptions))};playNextVideo=(n,c=!1)=>{if(!this.mounted)return;this.props.onPlayNextVideo&&this.props.onPlayNextVideo(n);const u={id:n.id,accountId:n.accountId,source:(0,l.o1)(n.source,n.sourceExtra),heading:n.name||n.description,videoType:n.videoType};if(n.posterImage&&n.posterImage.reference.indexOf("https")>=0){const R={altText:n.posterImage.altText||n.posterImage.captionText,crops:typeof n.posterImage.ratio=="string"?{[n.posterImage.ratio]:{reference:n.posterImage.src,width:n.posterImage.width,height:n.posterImage.height}}:{original:{reference:n.posterImage.src,width:n.posterImage.width,height:n.posterImage.height,ratio:n.posterImage.ratio}}};u.posterImage=R}const d=this.state.videoQueue.items.findIndex(R=>R.id===n.id);this.setState({autoplayHasCompleted:!1,currentVideo:u,currentVideoMetadata:n,currentVideoPlaylistType:this.state.videoQueue.type,playWhenReady:!1,showInternalPlayButton:!this.props.isVideoHub,showTopBar:!1,isSwitchingVideo:!0},()=>{this.setState({queuePosition:d+1,playWhenReady:c}),c&&this.cancelAutoplay()})};variant=()=>this.props.videoOptions.canAutoplayVideos?"Autoplay":"Default-BigPlayButton";handleMuteToggle=()=>{this.setState(n=>{const c=!n.isMuted;return this.props.onMuteChange?.(c),{isMuted:c}})};onPlayerEvent=async n=>{switch((0,b.e)("Video event raised",n),n.type){case a.b.playToPauseError:this.setState({showInternalPlayButton:!this.props.isVideoHub,playWhenReady:!1,adPlaying:!1,adPlayed:!0});break;case a.b.playbackError:this.setState({videoPlayable:!0});break;case a.b.playerReady:await this.playerReady(),this.setState({videoPlayable:!0});break;case a.b.videoAvailable:this.state.playWhenReady&&this.playVideo();break;case a.b.videoPlay:this.cancelAutoplay(),this.setState({showInternalPlayButton:!1,playWhenReady:!1}),this.props.onUserInteraction(n);return;case a.b.videoStart:this.setState({showInternalPlayButton:!1,adPlayed:!0,isSwitchingVideo:!1});break;case a.b.videoEnd:this.videoCompleted();break;case a.b.adStart:this.cancelAutoplay(),this.setState({showInternalPlayButton:!1,adPlayed:!1,adPlaying:!0,isSwitchingVideo:!1});break;case a.b.adEnd:this.setState({adPlayed:!0,adPlaying:!1});break;case a.b.adPodComplete:this.setState({adPlayed:!0,adPlaying:!1});break;case a.b.adError:this.setState({isSwitchingVideo:!1});break;case a.b.playerFullscreenEnter:this.setState({isFullscreen:!0});break;case a.b.playerFullscreenExit:this.setState({isFullscreen:!1});break;case a.b.playerUserInactive:this.setState({showTopBar:!1});break;case a.b.adVolumeChange:case a.b.videoVolumeChange:if(!this.state.isSwitchingVideo){const c=n.payload.muted;c!==this.state.isMuted&&(this.setState({isMuted:c}),this.props.onMuteChange?.(c))}break}this.props.onEvent(n)};handleMouseEnter=n=>{this.setState({showTopBar:!0})};handleMouseMove=n=>{this.state.showTopBar||this.setState({showTopBar:!0})};handleMouseLeave=n=>{this.setState({showTopBar:!1})};handleTouchStart=n=>{this.setState({showTopBar:!0})};handleTouchEnd=n=>{this.setState({showTopBar:!1})};handlePlaylistSelect=n=>{this.playNextVideo(n,!0),this.props.onUserInteraction({type:a.b.playlistSelect,originator:"playlist-event",payload:{video:n}})};handlePlaylistScroll=()=>{this.props.onUserInteraction({type:a.b.playlistScroll,originator:"playlist-event",payload:{}})};setRef=n=>{n&&(this.playerOffsetWidth=n.offsetWidth),this.props.innerRef(n)};playVideo=()=>{this.setState({playWhenReady:!1,pauseVideo:!1},()=>{this.setState({playWhenReady:!0,pauseVideo:!1,showInternalPlayButton:!1})})};pauseVideo=()=>{this.setState({pauseVideo:!0})};resumeVideo=()=>{this.setState(()=>{this.setState({pauseVideo:!1,playWhenReady:!0})})};render(){const{videoOptions:n}=this.props,c=this.props.playerProvider();return this.props.renderPlayer({theme:this.props.theme,playerActions:{handleMuteToggle:this.handleMuteToggle,playVideo:this.playVideo,stopAutoplay:this.stopAutoplay,closeStickyVideo:this.closeStickyVideo,pauseVideo:this.pauseVideo,resumeVideo:this.resumeVideo},playerOptions:n,playerState:{isMuted:this.state.isMuted,adPlayed:this.state.adPlayed,adPlaying:this.state.adPlaying,canAutoplay:this.state.canAutoplay,currentVideo:this.state.currentVideo,currentVideoMetadata:this.state.currentVideoMetadata,currentVideoPlaylistType:this.state.currentVideoPlaylistType,isFullscreen:this.state.isFullscreen,showInternalPlayButton:this.state.showInternalPlayButton,showTitleOverlay:this.state.playerState.type==="autoplay-countdown",showTopBar:this.state.showTopBar,inViewport:this.props.inViewport,currentState:this.state.playerState},wrapperElProps:{innerRef:this.setRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onMouseMove:this.handleMouseMove,onTouchEnd:this.handleTouchEnd,onTouchStart:this.handleTouchStart},playlistProps:this.props.showPlaylist?{currentVideoId:this.state.currentVideo.id,videoQueue:this.state.videoQueue,initialVideoMetadata:this.state.initialVideoMetadata,handlePlaylistScroll:this.handlePlaylistScroll,handlePlaylistSelect:this.handlePlaylistSelect}:void 0,videoElement:this.state.currentVideoMetadata?t.createElement("div",null,t.createElement(c,{logger:this.props.logger,config:this.props.config,playerOptions:{...n,brightcovePlayerId:y._}
1,isMuted:this.state.isMuted,adPlaying:this.state.adPlaying,autoplayOptions:this.props.autoplayOptions,autoplayHasCompleted:this.state.autoplayHasCompleted,play:this.state.videoPlayable&&this.state.playWhenReady,pause:this.state.pauseVideo,currentVideo:this.state.currentVideo,currentVideoMetadata:this.state.currentVideoMetadata,currentVideoPosition:this.state.queuePosition,playlistType:this.state.currentVideoPlaylistType,isFullscreen:this.state.isFullscreen,onEvent:this.onPlayerEvent,pagePosition:this.props.pagePosition,variant:this.variant(),product:this.props.theme.kind,pathname:this.props.pathname,isVideoHub:this.props.isVideoHub})):null})}}var r=e(26228),B=e(2537),N=e(69346),ne=e(83487),ye=e(73384),j=e(42860),de=e(46613),pe=e(33764),fe=e(3529),ee=e(67380),Q=e(19108);const Ie=()=>t.createElement("svg",{width:"18",height:"13",viewBox:"0 0 18 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{opacity:"0.7",d:"M10.2308 4V1L17 6L10.2308 11V7.5C6.81538 7.5 3.67692 8.1 1 12C1.35692 9.68421 1.71385 4.57895 10.2308 4Z",stroke:Q.T.sevennews.red,strokeWidth:"1.2",strokeMiterlimit:"16",strokeLinejoin:"round"}));var xe=e(91408),m=e(19609),E=e(42577),U=e(53139),_=e(76403),ae=e(90817),te=e(19494),Ae=e(95054),me=e(65976),_e=e(64507),Me=e(72326),Re=e(86402),Ke=e(59044),et=e(75886),Ge=e(67853),tt=e(25292),Xe=e(16318),Pe=e(80719),ke=e(18617);const rt=({containerWidthRatios:i,onEvent:n,isCurrentlyPlaying:c,item:u,handleCarouselSelection:d,handleSwipperSelection:R,onSelect:$,itemMeta:J})=>{const Y=(0,v.u)(),X=(0,t.useRef)(null);if((0,t.useEffect)(()=>{c&&(d(X.current?.offsetTop),R())},[c]),u.loaded&&(0,Re.isPublicationCardItem)(u.result)){const L=()=>{$(J),d(X.current?.offsetTop)},K=he=>{he.key==="Enter"&&($(J),d(X.current?.offsetTop))};return t.createElement(ke.M8,{isCurrentlyPlaying:c,onClick:L,onKeyDown:K,ref:X,tabIndex:0},t.createElement(ke.nq,null,t.createElement(ke.ls,null,t.createElement(ke.Qf,null,Y.kind==="thewest"?t.createElement(Pe.Fz,null,u.result.primaryTopic.title,t.createElement(Pe.QH,null,t.createElement(Ge.N,{width:14,height:9,horizontalSpacing:6,className:Xe.qs}))):t.createElement(Pe.Fz,null,u.result.primaryTopic.title),t.createElement(ke.vf,{item:{loaded:!0,result:u.result},onEvent:n,teaserMode:"hidden",fontScale:1,kickerMode:"hidden",isCurrentlyPlaying:c}),c&&t.createElement(tt.lq,null,"Now Playing")),t.createElement(ke.sc,{item:{loaded:!0,result:u.result},onEvent:n,imageWidths:(0,et.b)(i,{mobile:"100vw",tablet:"100vw",desktop:`${Y.siteMetrics.mainContentWidth}px`,fallbackWidth:Y.siteMetrics.mainContentWidth}),fixedRatio:"16:9"}))))}return null};var nt=e(5817),at=e(78643);const ht=()=>t.createElement("svg",{width:"8",height:"11",viewBox:"0 0 8 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M3.80781 1.49164L3.80781 9.43164M3.80781 9.43164L1.32656 6.95039M3.80781 9.43164L6.28906 6.95039",stroke:"#E6011F",strokeWidth:"1.48875",strokeLinecap:"round",strokeLinejoin:"round"}));var ot=e(69452);function pt(i,n=1.02){const c=i.image?.crops?.original;return!c||!(c.height>c.width*n)||i.image?.crops?.["16:9"]?.reference?i:{...i,image:{...i.image,crops:{...i.image.crops,"16:9":{reference:c.reference,width:c.width,height:c.height,ratio:{width:16,height:9}}}}}}var P=e(2182),ce=e(95779),ue=e(83490),A=e(63533),T=e(43329),ge=e(87244),oe=e(86990),Ee=e(71908);function We(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}const it=e(90391),je=(0,P.A)("div",{target:"e1o5l8yg6",label:"StyledVideoCard"})({...ue.DH,position:"relative",width:"100%",height:"auto",cursor:"pointer",padding:(0,A.g)(5,0),marginBottom:0,display:"flex",flexWrap:"wrap",flexGrow:"initial",alignItems:"flex-start",flexDirection:"column",[(0,T.C9)("md")]:{marginBottom:(0,A.g)(15),height:"unset",flexDirection:"row",alignItems:"center"}},""),Qe=(0,P.A)("div",{target:"e1o5l8yg5",label:"StyledVideoCardMediaWrapper"})({display:"flex",flex:1,marginRight:(0,A.g)(at.q.sevennews.margins.md),width:"100%",position:"relative"},""),Oe=(0,P.A)("div",{target:"e1o5l8yg4",label:"StyledUpNextCopy"})({display:"flex",alignItems:"center",position:"absolute",left:0,bottom:0,background:Q.T.black,color:ce.tokens.sevennews.colors.palette.red,fontSize:(0,A.g)(12),padding:(0,A.g)(6),gap:(0,A.g)(4)},""),we=(0,P.A)(oe.V,{target:"e1o5l8yg3",label:"StyledVideoCardMedia"})({name:"1c5gm2a",styles:'margin-bottom:0;width:100%;& [class*="StyledPlayIcon"], & [class*="StyledMediaIndicator"]{display:none;}'}),ve=(0,P.A)("div",{target:"e1o5l8yg2",label:"StyledVideoCardTextWrapper"})({display:"block",flexWrap:"wrap",flex:1,marginTop:(0,A.g)(5),[(0,T.C9)("md")]:{marginTop:0}},""),Se=(0,P.A)("span",{target:"e1o5l8yg1",label:"StyledVideoLength"})({position:"absolute",right:(0,A.g)(6),bottom:(0,A.g)(6),color:Q.T.white,fontSize:(0,A.g)(12),fontWeight:700},""),Te=(0,P.A)(Ee.c,{target:"e1o5l8yg0",label:"StyledVideoCardText"})(({theme:i})=>({display:"flex",margin:0,'& [class*="Card-Headline"]':{fontSize:(0,A.g)(13),fontFamily:ge.l.sevennews.sansSerif,[(0,T.C9)("md")]:{fontSize:(0,A.g)(14)}},'& [class*="StyledHeadlineText"]':{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",lineClamp:3,color:ce.tokens.sevennews.colors.palette.white,"-webkit-line-clamp":"3","-webkit-box-orient":"vertical"}}),""),Ve=({containerWidthRatios:i,onEvent:n,displayUpNextCopy:c,item:u,handleCarouselSelection:d,handleSwipperSelection:R,onSelect:$,itemMeta:J,setNextVideo:Y,index:X})=>{const L=(0,t.useRef)(null);if((0,t.useEffect)(()=>{c&&(d(L.current?.offsetTop),R())},[c]),u.loaded&&(0,Re.isPublicationCardItem)(u.result)){const K=()=>{$(J),d(L.current?.offsetTop),Y()},he=H=>{H.key==="Enter"&&($(J),d(L.current?.offsetTop))},O=pt(u.result);return t.createElement(je,{onClick:K,onKeyDown:he,ref:L,tabIndex:X},t.createElement(Qe,null,t.createElement(we,{item:{loaded:!0,result:O},onEvent:n,imageWidths:(0,et.b)(i,{mobile:"100vw",tablet:"100vw",desktop:`${at.q.sevennews.siteMetrics.mainContentWidth}px`,fallbackWidth:at.q.sevennews.siteMetrics.mainContentWidth}
1),fixedRatio:"16:9"}),t.createElement(Se,null,(0,ot.P)(u.result.video.duration)),c&&t.createElement(Oe,null,t.createElement(ht,null),t.createElement("span",null,"Up Next"))),t.createElement(ve,null,t.createElement(Te,{item:{loaded:!0,result:u.result},onEvent:n,teaserMode:"hidden",fontScale:1,kickerMode:"hidden",headlineAs:"div"})))}return null};var ie=e(63e3);const Le=({onEvent:i,currentVideo:n,onSelect:c,itemMeta:u,isLoading:d,isSevenNewsV2:R})=>{const $=(0,t.useRef)(null),J=(0,t.useRef)(),[Y,X]=(0,t.useState)(1),L=(0,t.useMemo)(()=>(0,nt.c)({loaded:!0,result:(u||[]).map(O=>(0,Me._)(O,{publicUrl:""}))},11),[u]);if((0,t.useEffect)(()=>{L.forEach((O,H)=>{O.loaded&&O.result.id===n.id&&L.length>H+1&&X(H+1)})},[n.id,L]),!u||u.length===0)return null;const K=O=>{$.current&&O&&($.current.scrollTop=O-3)},he=O=>{J.current&&O&&J.current.slideTo(O)};return L[0].loaded&&(0,Re.isPublicationCardItem)(L[0].result)?t.createElement(t.Fragment,null,t.createElement(mt,{isSevenNewsV2:R},t.createElement(ie.Ep,{ref:$,onScroll:()=>{typeof window>"u"||typeof document>"u"||window.dispatchEvent(new CustomEvent("scroll"))}},L.map((O,H)=>{if(O.loaded&&(0,Re.isPublicationCardItem)(O.result)&&n){const se=u.find(Ye=>O.result.id===Ye.id);if(se)return d?t.createElement(ee.E,{height:120,key:H}):R?t.createElement(Ve,{key:H,item:O,onEvent:i,displayUpNextCopy:H===Y,handleCarouselSelection:K,handleSwipperSelection:()=>he(H),onSelect:c,itemMeta:se,setNextVideo:()=>{},index:H}):t.createElement(rt,{key:H,item:O,onEvent:i,isCurrentlyPlaying:O.result.id===n.id,handleCarouselSelection:K,handleSwipperSelection:()=>he(H),onSelect:c,itemMeta:se})}}))),t.createElement(ie.Bo,{isSevenNewsV2:R},t.createElement(Ke.RC,{slidesPerView:"auto",slidesPerGroup:1,spaceBetween:15,loop:!1,watchOverflow:!0,slideToClickedSlide:!0,onBeforeInit:O=>{J.current=O}},L.map((O,H)=>{if(O.loaded&&(0,Re.isPublicationCardItem)(O.result)){const se=u.find(Ye=>O.result.id===Ye.id);if(se)return t.createElement(Ke.qr,{key:H,virtualIndex:H},d?t.createElement(ee.E,{width:304,height:160,key:H}):R?t.createElement(Ve,{key:H,item:O,onEvent:i,displayUpNextCopy:H===Y,handleCarouselSelection:K,handleSwipperSelection:()=>he(H),onSelect:c,itemMeta:se,setNextVideo:()=>X(H+1),index:H}):t.createElement(rt,{item:O,onEvent:i,isCurrentlyPlaying:O.result.id===n.id,handleCarouselSelection:K,handleSwipperSelection:()=>he(H),onSelect:c,itemMeta:se}))}})))):null},mt=({children:i,isSevenNewsV2:n})=>(0,fe.B)()===j.Y.SevenNews?t.createElement(ie.Lo,{isSevenNewsV2:n},i):t.createElement(t.Fragment,null,i);var Ue=e(56006),De=e(60814),Z=e(21232);const He="video-wrapper",ze=({theme:i,wrapperElProps:n,videoElement:c,playlistProps:u,playerState:d,playerOptions:R,playerActions:$,hideSticky:J,publicUrl:Y,isLoading:X,adElement:L,withH1:K})=>{const[he,O]=(0,t.useState)(!0),[H,se]=(0,t.useState)(!1),{isTabletOrMobile:Ye}=(0,m.k)(),Ce=(0,fe.B)();(0,t.useEffect)(()=>{O(!0)},[d.currentVideo]);const gt=!d.canAutoplay&&d.showInternalPlayButton&&!R.playButtonText&&i.kind===j.Y.SevenNews,bt=async()=>{if(Ye)if(navigator&&typeof navigator.share<"u")try{await navigator.share({url:Y,text:"test"}),se(!1)}catch(re){se(!1),console.error(re,"Error while sharing")}else se(re=>!re);else se(re=>!re)},Pt=d.isMuted&&!d.showTitleOverlay&&(i.kind===j.Y.SevenNews?!0:!d.showInternalPlayButton)&&t.createElement(ae.P,{positionState:{alignToTop:R.compactMode,isLowered:i.kind===j.Y.SevenNews?!1:!d.showTopBar&&d.adPlayed||!d.showTopBar&&d.adPlaying},action:$.handleMuteToggle}),ut=d.showInternalPlayButton?t.createElement(U.z,{play:$.playVideo,isCentered:!0,isSmall:R.smallPlayButton}):!1,q=(gt||d.showTitleOverlay)&&t.createElement(_.Z,{showVideoTitle:gt,play:$.playVideo,cancelAutoplay:$.stopAutoplay,videoDuration:d.currentVideoMetadata?(0,te.c)(d.currentVideoMetadata.duration):void 0,compactMode:R.compactMode||!1,videoDetails:d.currentVideo,autoplayRemainingTime:d.currentState.type==="autoplay-countdown"?d.currentState.remainingTime:void 0}),{innerRef:lt,...vt}=n,qe=(0,me.F)(d.currentVideo);let le;if(qe&&(le=(0,de.s)(qe.reference,(0,_e.q)(i.kind),!1)),u&&d.currentVideoMetadata){const re=(0,pe._)(d.currentVideoMetadata,{publicUrl:Y??""});return t.createElement(t.Fragment,null,le&&t.createElement("style",{dangerouslySetInnerHTML:{__html:`
2                                @media print {
3                                    .${E.LS}::before {
4                                        content: url("${le}");
5                                        max-width: 600px;
6                                    }
7                                }`}}),t.createElement(Z.d4,{className:He,compactMode:R.compactMode,hide:J&&R.compactMode,isShowMore:he,isVideoHub:!0},t.createElement(Z.Uf,null,t.createElement(Ue.X,{isSevenNewsV2:!0},X?t.createElement(ee.E,null):t.createElement(t.Fragment,null,t.createElement(E.Rw,{...vt,ref:lt,posterImage:le},ut,q,c,Pt))),u&&u.initialVideoMetadata&&d.currentVideoMetadata&&t.createElement(Le,{onEvent:()=>{},itemMeta:u.videoQueue.items?u.videoQueue.items:[],currentVideo:re,currentPath:"/",onSelect:u.handlePlaylistSelect,isLoading:X,isSevenNewsV2:!0}))),t.createElement(Z.Yw,{style:Ce!==j.Y.SevenNews?{}:{marginBottom:16}},t.createElement(Z.ji,null,t.createElement(Z.s2,null,t.createElement(Z.TQ,null),t.createElement(Z.Ki,{isOpened:H},t.createElement(xe.S,{videoItem:re,onEvent:()=>{}})),t.createElement(Z.px,{isOpened:H,onClick:bt},t.createElement(Ie,null))),t.createElement(Z.wV,{as:K?"h1":"h2"},re.headline),t.createElement(De.r,{description:re.teaser,showMore:he,showMoreHandler:()=>O(Et=>!Et)}),Ce!==j.Y.SevenNews&&t.createElement(Z.zT,null,t.createElement(Ae.a,{profiles:re.profiles,byline:re.byline,hasBackgroun
7d:!0,source:re.source}))),L&&t.createElement(Z.qK,null,L)))}else return null};var dt=e(29008);const st=(0,dt.Ay)({resolved:{},chunkName(){return"SwmPlayerProvider"},isReady(i){const n=this.resolve(i);return this.resolved[n]!==!0?!1:!!e.m[n]},importAsync:()=>Promise.all([e.e(3503),e.e(4346)]).then(e.bind(e,35071)),requireAsync(i){const n=this.resolve(i);return this.resolved[n]=!1,this.importAsync(i).then(c=>(this.resolved[n]=!0,c))},requireSync(i){const n=this.resolve(i);return e(n)},resolve(){return 35071}});var yt=e(22683),ct=e(81487),Ne=e(65143),Je=e(42247),Ze=e(98203),St,Be;const ft=null,$e=(0,P.A)("span",{shouldForwardProp:(0,Je.q)()(["className"]),target:"e1yzats31",label:"StyledSharingWrap"})(({theme:i})=>({color:i.sectionValues.primaryColor,fontWeight:500,fontSize:(0,A.g)(12),display:"flex",justifyContent:"flex-start",[`${Ze.sG}`]:{"&::before":{display:"none"}},[(0,T.C9)("md")]:{marginBottom:(0,A.g)(0)},".BauhausCardSharing":{marginBottom:(0,A.g)(0),".gtm-facebook-share-button svg":{top:"50%",transform:"translate(-57%, -50%)"},".gtm-facebook-share-button, .gtm-twitter-share-button, .gtm-email-share-button, .gtm-clipboard-share-button":{svg:{fill:Q.T.white}}}}),""),o=(0,P.A)("div",{target:"e1yzats30",label:"StyledVideoPlayerByline"})(({theme:i})=>({fontSize:(0,A.g)(12),fontFamily:ge.l.sevennews.sansSerif,marginTop:0,position:"relative",display:i.kind===j.Y.SevenNews?void 0:"none",fontWeight:400,[(0,T.C9)("md")]:i.kind===j.Y.PerthNow?void 0:{position:"absolute",bottom:0},span:{color:Q.T.sevennews.dustyGray,margin:(0,A.g)(0,3)},[`${$e}`]:{display:"inline-block",position:"absolute",bottom:(0,Ne.P)(i,{fallback:(0,A.g)(-24),sevennews:(0,A.g)(-32)}),[(0,T.C9)("sm")]:{position:"unset",verticalAlign:"middle"},[`${Ze.sG}`]:{marginLeft:0,"&::before":{display:"none"},"& > button":{marginRight:(0,A.g)(10),marginLeft:0},"& > button.gtm-clipboard-share-button:active:before":{opacity:1,transition:"0s"},"& > button.gtm-clipboard-share-button:before":{position:"absolute",top:(0,A.g)(-35),left:(0,A.g)(-31),width:(0,A.g)(98),opacity:0,padding:(0,A.g)(6),content:'"\u2713 Link Copied "',transition:"opacity 1.7s cubic-bezier(.0,.05,1,-0.24)",fontFamily:i.fonts.sansSerif,fontSize:(0,A.g)(12),fontWeight:600,background:i.colors.palette.black,color:i.colors.palette.white,pointerEvents:"none"}}}}),""),V="video-wrapper",M=i=>{const c=[...new DOMParser().parseFromString(i,"text/html").body.childNodes].map((u,d)=>{if(u.nodeName==="A"){const R=u;return t.createElement(ct.Y,{key:d,href:R.href,openInNewWindow:!0},R.textContent)}else return u.textContent});return t.createElement(t.Fragment,null,c)},F=({theme:i,wrapperElProps:n,videoElement:c,playlistProps:u,playerState:d,playerOptions:R,playerActions:$,hideSticky:J,setHideSticky:Y,publicUrl:X,onPlayNextVideo:L,isLoading:K,withH1:he})=>{const[O,H]=(0,t.useState)(!0),{isMobile:se}=(0,m.k)(),Ye=d.showInternalPlayButton&&se;(0,t.useEffect)(()=>{H(!0)},[d.currentVideo]);const Ce=!d.canAutoplay&&d.showInternalPlayButton&&!R.playButtonText&&i.kind===j.Y.SevenNews,gt=Ye||Ce,bt=d.isMuted&&!d.showTitleOverlay&&(i.kind===j.Y.SevenNews?!0:!d.showInternalPlayButton)&&t.createElement(ae.P,{positionState:{alignToTop:R.compactMode,isLowered:i.kind===j.Y.SevenNews?!1:!d.showTopBar&&d.adPlayed||!d.showTopBar&&d.adPlaying},action:$.handleMuteToggle}),Pt=d.showInternalPlayButton?t.createElement(U.z,{play:$.playVideo,isCentered:!0,isSmall:R.smallPlayButton}):!1,ut=(gt||d.showTitleOverlay)&&t.createElement(_.Z,{showVideoTitle:gt,play:$.playVideo,cancelAutoplay:$.stopAutoplay,videoDuration:d.currentVideoMetadata?(0,te.c)(d.currentVideoMetadata.duration):void 0,compactMode:R.compactMode||!1,videoDetails:d.currentVideo,autoplayRemainingTime:d.currentState.type==="autoplay-countdown"?d.currentState.remainingTime:void 0}),{innerRef:q,...lt}=n,vt=(0,me.F)(d.currentVideo);let qe;if(vt&&(qe=(0,de.s)(vt.reference,(0,_e.q)(i.kind),!1)),u&&d.currentVideoMetadata){const le=(0,Me._)(d.currentVideoMetadata,{publicUrl:X??""});return t.createElement(t.Fragment,null,qe&&t.createElement("style",{dangerouslySetInnerHTML:{__html:`
8                                @media print {
9                                    .${E.LS}::before {
10                                        content: url("${qe}");
11                                        max-width: 600px;
12                                    }
13                                }`}}),t.createElement(E.d4,{className:V,compactMode:R.compactMode,hide:J&&R.compactMode,isShowMore:O,isVideoHub:!0},t.createElement(Ue.X,null,K?t.createElement(ee.E,null):t.createElement(t.Fragment,null,t.createElement(E.Rw,{...lt,ref:q,posterImage:qe},Pt,ut,c,bt),t.createElement(Ue.o8,null,i.kind==="perthnow"&&t.createElement(Pe.Fz,{style:{textTransform:"capitalize"},size:"large"},le.primaryTopic.title),i.kind==="thewest"&&t.createElement(Pe.Fz,{style:{textTransform:"uppercase"},size:"large"},le.primaryTopic.title,t.createElement(Pe.QH,null,t.createElement(Ge.N,{width:14,height:14,horizontalSpacing:6,className:Xe.qs}))),i.kind==="sevennews"&&t.createElement(Pe.Fz,null,le.primaryTopic.title),t.createElement(Ue.wV,{as:he?"h1":"h2"},le.headline),i.kind==="sevennews"?t.createElement(De.r,{description:le.teaser,showMore:O,showMoreHandler:()=>H(re=>!re)}):t.createElement(Ue.G1,null,M(le.teaser)),t.createElement(o,null,i.kind==="sevennews"&&t.createElement(De.M,{profiles:le.profiles}),t.createElement($e,{className:"StyledSharingWrap"},t.createElement(yt.r,{className:"BauhausCardSharing",url:le._self,text:le.headline,isGhostStyle:!0,onEvent:()=>{},shareOptions:["facebook","twitter","clipboard"],isBauhaus:!0})))))),u&&u.initialVideoMetadata&&d.currentVideoMetadata&&t.createElement(Le,{onEvent:()=>{},itemMeta:u.videoQueue.items?u.videoQueue.items:[],currentVideo:le,currentPath:"/",onSelect:u.handlePlaylistSelect,isLoading:K})))}else return null};var k=e(80461);const D=(0,P.A)("div",{target:"e1dhcnxc0",label:"VerticalVideoWrapper"})(({theme:i})=>({position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:(0,Ne.P)(i,{sevennews:Q.T.black,fallback:Q.T.black}),display:"flex",justifyContent:"center",alignItems:"center","::before":{content:'""',position:"absolute",top:0,left:0,width:"100%",height:(0,A.g)(57),pointerEvents:"none",zIndex:2,background:"linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0))"},".video-js":{width:"100%"},".video-specificity .video-js video.vjs-tech":{backgroundColor:Q.T.black,height:"100%",left:"50%",objectFit:"cover",transform:"translateX(-50%)",[(0,T.SE)("sm")]:{"@media (max-aspect-ratio: 9/16)":{objectFit:"contain",transform:"translateX(-50%)"}}},'.video-specificity [class*="StyledBrightcoveVideo"] .vjs-control-bar':{background:"transparent",bottom:"-39px !important",transform:"translateY(0) !important",zIndex:16,padding:"0 !important","& .vjs-time-control":{display:"none"},"& > :not(.vjs-progress-control)":{display:"none"},"& .vjs-progress-control":{display:"block",flex:"1 1 auto",top:"0 !important",height:(0,A.g)(6)}},'.video-specificity [class*="StyledBrightcoveVideo"] .vjs-custom-control-spacer'
13:{display:"none"},".VerticalVideoTapOverlay":{position:"absolute",inset:0,zIndex:2,cursor:"pointer"},".Play-Overlay:hover":{background:"transparent"},'& [class*="StyledUnmuteButton"] ':{top:(0,A.g)(10)+"!important",left:"auto",right:(0,A.g)(16),zIndex:3}}),""),G=({theme:i,wrapperElProps:n,videoElement:c,playerState:u,playerOptions:d,playerActions:R,hideSticky:$})=>{const[J,Y]=(0,t.useState)(!1),[X,L]=(0,t.useState)(!1),K=(0,t.useRef)(null),he=(0,t.useRef)(null);(0,t.useEffect)(()=>{Y(!1),L(!1)},[u.currentVideo.id]),(0,t.useEffect)(()=>{const q=K.current?.querySelector("video");if(!q)return;he.current=q;let lt=!0;const vt=()=>{lt&&Y(!1)},qe=()=>{lt&&Y(!1)},le=()=>{lt&&Y(!0)},re=()=>{lt&&(L(!0),Y(q.paused))};return q.readyState>0&&(L(!0),Y(q.paused)),q.addEventListener("play",vt),q.addEventListener("playing",qe),q.addEventListener("pause",le),q.addEventListener("loadedmetadata",re),()=>{lt=!1,q.removeEventListener("play",vt),q.removeEventListener("playing",qe),q.removeEventListener("pause",le),q.removeEventListener("loadedmetadata",re)}},[u.currentVideo.id,c]);const O=()=>{R.handleMuteToggle()},H=()=>{if(u.adPlaying)return;const q=K.current?.querySelector("video");q&&(q.paused?(Y(!1),R.playVideo(),q.play().catch(()=>{})):(R.pauseVideo(),q.pause(),Y(!0)))},se=()=>{},Ye=u.showTitleOverlay?null:t.createElement(ae.P,{variant:"vertical",positionState:{alignToTop:!0},isMuted:u.isMuted,action:O}),{innerRef:Ce,onTouchEnd:gt,...bt}=n,Pt=ut=>{Ce(ut),K.current=ut};return t.createElement(E.d4,{...bt,compactMode:d.compactMode,hide:$&&d.compactMode,onTouchEnd:gt,ref:Pt},t.createElement(D,null,t.createElement(E.Rw,null,t.createElement("div",{className:"VerticalVideoTapOverlay",onClick:H,style:{pointerEvents:u.adPlaying?"none":"auto"}},J&&X&&u.currentVideoMetadata&&t.createElement(U.z,{play:se,isCentered:!0,isSmall:d.smallPlayButton})),c,Ye)))};class z extends t.Component{mounted=!1;playerOffsetWidth=0;autoplayInterval;constructor(n){super(n),this.state={adStarted:!1,adPlayed:!1,adPlaying:!1,adPaused:!1,videoStarted:!1,videoPlaying:!1,videoPaused:!1,autoplayHasCompleted:!1,isFullscreen:!1,currentVideo:this.props.videoDetails,currentVideoMetadata:void 0,initialVideoMetadata:void 0,currentVideoPlaylistType:"not-playlist-video",showTopBar:!0,playWhenReady:n.playWhenReady||!1,videoPlayable:!1,showInternalPlayButton:!0,isMuted:!0,canAutoplay:!1,videoQueue:{type:"not-playlist-video",items:[]},queuePosition:n.isVideoHub?1:0,playerState:{type:"other"}}}async componentDidMount(){try{this.mounted=!0;const n=await(0,l.yb)(this.state.currentVideo.id,this.state.currentVideo.accountId,this.props.config,this.props.logger);if(!this.mounted)return;const c=await(0,g.v)({forceEnableAutoplay:this.props.isVideoHub||this.props.canAutoPlay});if(!this.mounted)return;const u=c!==g.On.CannotAutoplay,d=this.props.autoplayOptions!==!1&&u;d&&this.props.autoplayOptions!==!1&&this.state.playWhenReady===!1&&this.initAutoplay(this.props.autoplayOptions);const R={...this.state.currentVideo,source:(0,l.o1)(n.source,n.sourceExtra)};this.setState({currentVideo:R,currentVideoMetadata:n,initialVideoMetadata:n,isMuted:!0,canAutoplay:u,showTopBar:!0,showInternalPlayButton:!d&&!this.state.playWhenReady||!1})}catch(n){this.props.logger.error({err:n},"metadata get failed")}}isPlaylistDifferent(n,c){return JSON.stringify([...c].sort((u,d)=>u.id-d.id))!==JSON.stringify([...n].sort((u,d)=>u.id-d.id))}async componentDidUpdate(n){if(n.videoDetails?.id!==this.props.videoDetails.id){const c=await(0,l.yb)(this.props.videoDetails.id,this.props.videoDetails.accountId,this.props.config,this.props.logger),u={...this.props.videoDetails,source:(0,l.o1)(c.source,c.sourceExtra)};this.setState({currentVideo:u,currentVideoMetadata:c,initialVideoMetadata:c})}if(this.props.isVideoHubPlayListFixEnabled&&this.props.isVideoHub){const c=await this.props.getVideoQueue();this.isPlaylistDifferent(this.state.videoQueue.items,c.items)&&this.setState({videoQueue:c})}!n.playWhenReady&&this.props.playWhenReady&&!this.state.playWhenReady&&this.playVideo(),this.props.autoplayOptions&&this.props.autoplayOptions.pauseWhenOutOfView&&((n.inViewport>=50&&this.props.inViewport<50||document.hidden&&!this.state.videoPaused)&&this.pauseVideo(),n.inViewport<50&&this.props.inViewport>=50&&this.resumeVideo())}componentWillUnmount(){this.mounted=!1,this.autoplayInterval!==void 0&&s.clearInterval(this.autoplayInterval)}initAutoplay=n=>{this.mounted&&this.setState({playerState:{type:"autoplay-countdown",auto
13playOptions:n,remainingTime:n&&n.delayDuration?n.delayDuration:0}},()=>{this.autoplayInterval=s.setInterval(this.updateAutoplayTime,1e3)})};updateAutoplayTime=()=>{if(this.state.playerState.type!=="autoplay-countdown"){this.props.logger.error({playerState:this.state.playerState},"Received updateAutoplayTime event when not in autoplay-countdown state");return}const n=this.props.inViewport>50;if(!(this.state.playerState.autoplayOptions.pauseCountdownOutsideViewport&&(n===!1||document.hidden))){if(this.state.playerState.remainingTime>0){const c=this.state.playerState.remainingTime-1;return this.setState(u=>({playerState:{...u.playerState,remainingTime:c}}))}this.autoplayComplete()}};autoplayComplete=()=>{this.autoplayInterval!==void 0&&s.clearInterval(this.autoplayInterval),this.setState({playerState:{type:"other"},showTopBar:!0,playWhenReady:!0,autoplayHasCompleted:!0,showInternalPlayButton:!1})};cancelAutoplay=()=>{this.autoplayInterval!==void 0&&s.clearInterval(this.autoplayInterval),this.setState({playerState:{type:"other"}})};stopAutoplay=()=>{this.cancelAutoplay(),this.setState({autoplayHasCompleted:!1,showInternalPlayButton:!0})};playerReady=async()=>{if(this.props.autoplayNextOptions)try{const n=await this.props.getVideoQueue();this.setState({videoQueue:n})}catch(n){this.props.logger.error({err:n},"getVideoQueue() failed!")}};videoCompleted=async()=>{this.state.videoQueue.items[this.state.queuePosition]&&((0,b.e)("Video play completed"),this.props.autoplayNextOptions!==!1&&this.initAutoplay(this.props.autoplayNextOptions))};variant=()=>this.props.videoOptions.canAutoplayVideos?"Autoplay":"Default-BigPlayButton";handleMuteToggle=()=>{this.setState({isMuted:!this.state.isMuted})};onPlayerEvent=async n=>{switch((0,b.e)("Video event raised",n),n.type){case a.b.playToPauseError:this.setState({showInternalPlayButton:!this.props.isVideoHub,playWhenReady:!1,adPlaying:!1,adPlayed:!0});break;case a.b.playbackError:this.setState({videoPlayable:!0});break;case a.b.playerReady:await this.playerReady(),this.setState({videoPlayable:!0});break;case a.b.videoAvailable:this.state.playWhenReady&&this.playVideo();break;case a.b.videoPlay:this.cancelAutoplay(),this.setState({showInternalPlayButton:!1,playWhenReady:!1,videoPlaying:!0}),this.props.onUserInteraction(n);return;case a.b.videoStart:this.setState({showInternalPlayButton:!1,videoStarted:!0,adPlayed:!0,adPlaying:!1,adPaused:!1,videoPlaying:!0,videoPaused:!1});break;case a.b.videoPause:this.setState({showInternalPlayButton:!1,adPlayed:!0,videoPlaying:!1,showTopBar:!0});break;case a.b.videoEnd:this.videoCompleted();break;case a.b.adError:break;case a.b.adStart:this.cancelAutoplay(),this.setState({showInternalPlayButton:!1,adStarted:!0,adPlayed:!1,adPlaying:!0,adPaused:!1,showTopBar:!0});break;case a.b.adPause:this.setState({adPlayed:!1,adPlaying:!1,adPaused:!0});break;case a.b.adPlay:this.setState({adPlayed:!1,adPlaying:!0,adPaused:!1});break;case a.b.adEnd:this.setState({adPlayed:!0,adPaused:!1,adPlaying:!1});break;case a.b.adPodComplete:this.setState({adPlayed:!0,adPlaying:!1,adPaused:!1});break;case a.b.playerFullscreenEnter:this.setState({isFullscreen:!0});break;case a.b.playerFullscreenExit:this.setState({isFullscreen:!1});break;case a.b.playerUserInactive:!this.state.videoPaused&&this.setState({showTopBar:!1});break;case a.b.playerUserActive:this.setState({showTopBar:!0});break;case a.b.videoVolumeChange:n.payload.muted||this.setState({isMuted:!1});break;case a.b.adVolumeChange:n.payload.muted||this.setState({isMuted:!1});break}this.props.onEvent(n)};handleMouseEnter=n=>{this.setState({showTopBar:!0})};handleMouseMove=n=>{this.state.showTopBar||this.setState({showTopBar:!0})};handleMouseLeave=n=>{(this.state.adPlayed||this.state.videoStarted)&&this.setState({showTopBar:!1})};handlePlaylistScroll=()=>{this.props.onUserInteraction({type:a.b.playlistScroll,originator:"playlist-event",payload:{}})};setRef=n=>{n&&(this.playerOffsetWidth=n.offsetWidth),this.props.innerRef(n)};playVideo=()=>{this.setState({playWhenReady:!1},()=>{this.setState({playWhenReady:!0,showInternalPlayButton:!1,videoPaused:!1,videoPlaying:!!this.state.adPlayed,adPlaying:!!this.state.adPlayed,adPaused:!1})})};pauseVideo=()=>{this.setState({videoPaused:!!this.state.adPlayed,videoPlaying:!1,adPlaying:!1,adPaused:!!this.state.adPlayed})};resumeVideo=()=>{this.setState(()=>{this.setState({videoPaused:!1,videoPlaying:!0,playWhenReady:!0})})};handleUserInactive=()=>{this.setState({showTopBar:!1})};render(){const{videoOptions:n}=this.props,c=this.props.playerProvider(),u={isMuted:this.state.isMuted,adStarted:this.state.adStarted,adPlayed:this.state.adPlayed,adPlaying:this.state.adPlaying,adPaused:this.state.adPaused,videoStarted:this.state.videoStarted,videoPlaying:this.state.videoPlaying,videoPaused:this.state.videoPaused,canAutoplay:this.state.canAutoplay,currentVideo:this.state.currentVideo,currentVideoMetadata:this.state.currentVideoMetadata,currentVideoPlaylistType:this.state.currentVideoPlaylistType,isFullscreen:this.state.isFullscreen,showInternalPlayButton:this.state.showInternalPlayButton,showTitleOverlay:this.state.playerState.type==="autoplay-countdown",showTopBar:this.state.showTopBar,inViewport:this.props.inViewport,currentState:this.state.playerState};return this.props.renderPlayer({theme:this.props.theme,playerActions:{handleMuteToggle:this.handleMuteToggle,playVideo:this.playVideo,stopAutoplay:this.stopAutoplay,pauseVideo:this.pauseVideo,resumeVideo:this.resumeVideo,handleUserInactive:this.handleUserInactive},playerOptions:n,playerState:u,wrapperElProps:{innerRef:this.setRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onMouseMove:this.handleMouseMove},videoElement:this.state.currentVideoMetadata?t.createElement("div",null,t.createElement(c,{logger:this.props.logger,config:this.props.config,playerOptions:{...n,brightcovePlayerId:y._}
13,isMuted:this.state.isMuted,adPlaying:this.state.adPlaying,autoplayOptions:this.props.autoplayOptions,autoplayHasCompleted:this.state.autoplayHasCompleted,play:this.state.videoPlayable&&this.state.playWhenReady,pause:this.state.videoPaused,currentVideo:this.state.currentVideo,currentVideoMetadata:this.state.currentVideoMetadata,currentVideoPosition:this.state.queuePosition,playlistType:this.state.currentVideoPlaylistType,isFullscreen:this.state.isFullscreen,onEvent:this.onPlayerEvent,pagePosition:this.props.pagePosition,variant:this.variant(),product:this.props.theme.kind,pathname:this.props.pathname,isVideoHub:this.props.isVideoHub})):null})}}const be=t.createContext(i=>{const n=typeof bc<"u";return n||i.warn("Global brightcove object does not exist"),n?st:()=>null}),Fe=(0,ne.K)(i=>{const n=(0,v.u)(),c=(0,t.useContext)(be),u=(0,t.useContext)(B.Y),d=(0,t.useContext)(p.Q),R=(0,ye.C)(),{error:$,loading:J}=(0,w.n)({src:e(40120)}),Y=(0,t.useContext)(f.R),[X,L]=(0,t.useState)(!0),K=(0,h.zy)(),he=(0,S.iT)("7-news-video-hub-playlist-fix",!1),O=n.kind==="perthnow",H=n.kind==="sevennews"&&(0,S.iT)("7-news-2-video-hub",!1),se=O?k.R5:r.r,Ye=O&&!i.videoDetails.isVerticalVideo?z:W;return(Y||J||$||!X)&&!i.isVideoHub?t.createElement(se,{theme:n,playerActions:{playVideo:()=>{L(!0)},handleMuteToggle:()=>{},stopAutoplay:()=>{},closeStickyVideo:()=>{},pauseVideo:()=>{},resumeVideo:()=>{},handleUserInactive:()=>{}},playerOptions:{compactMode:i.videoOptions.compactMode,playButtonText:i.playButtonText,mediaFit:i.videoOptions.mediaFit},playerState:{adStarted:!1,adPlayed:!1,adPlaying:!1,adPaused:!1,videoStarted:!1,videoPlaying:!1,videoPaused:!1,canAutoplay:!1,currentState:{type:"other"},currentVideo:i.videoDetails,currentVideoMetadata:void 0,currentVideoPlaylistType:"not-playlist-video",inViewport:i.inViewport,isFullscreen:!1,isMuted:i.forcedMuted??!1,showInternalPlayButton:!0,showTitleOverlay:!1,showTopBar:!1},videoElement:null,wrapperElProps:{onMouseEnter:()=>{},onMouseLeave:()=>{},onMouseMove:()=>{},onTouchEnd:()=>{},onTouchStart:()=>{},innerRef:()=>{}},hideSticky:i.hideSticky,setHideSticky:i.setHideSticky}):t.createElement(N.t,{log:u,renderError:Ce=>t.createElement(E.rK,null,t.createElement("p",null,"An error has occurred with this video."),t.createElement(I.$,{onClick:()=>Ce()},"Click here to retry"))},t.createElement(Ye,{...i,theme:n,config:{...d,nielsenApid:R},logger:u,playerProvider:()=>c(u),renderPlayer:Ce=>i.isVideoHub?H?t.createElement(ze,{...Ce,hideSticky:i.hideSticky,setHideSticky:i.setHideSticky,publicUrl:i.publicUrl,currentPath:i.currentPath,onPlayNextVideo:i.onPlayNextVideo,isLoading:J,adElement:i.adElement,withH1:i?.currentPath?.match(/bc-[0-9]+$/)!==null}):t.createElement(F,{...Ce,hideSticky:i.hideSticky,setHideSticky:i.setHideSticky,publicUrl:i.publicUrl,currentPath:i.currentPath,onPlayNextVideo:i.onPlayNextVideo,isLoading:J,withH1:i?.currentPath?.match(/bc-[0-9]+$/)!==null}):i.videoDetails.isVerticalVideo===!0?t.createElement(G,{...Ce}):O?t.createElement(k.R5,{...Ce,canAutoPlay:i.canAutoPlay,isVideoSticky:i.isStickyVideo}):t.createElement(r.r,{...Ce,hideSticky:i.hideSticky,setHideSticky:i.setHideSticky}),pathname:K.pathname,isVideoHubPlayListFixEnabled:he,isPerthNow:O}))});Fe.displayName="Video"}),26228:(function(C,x,e){"use strict";e.d(x,{r:function(){return $e},e:function(){return ft}});var v=e(42860),p=e(46613),f=e(30072),S=e.n(f),t=e(14041),h=e(42577),w=e(53139),I=e(76403),a=e(2182),s=e(86146),y=e(19108),g=e(87244),l=e(78643),b=e(53417),W=e(43329),r=e(63533),B=e(83490),N=e(65143);function ne(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}const ye=(0,a.A)("div",{target:"eqlq6nf4",label:"StyledTopBar"})({position:"absolute",zIndex:b.f.common.videoTopBar,width:"100%",padding:(0,r.g)(10),transition:"transform 100ms ease, opacity 100ms ease",pointerEvents:"none"},({theme:o,compactMode:V})=>({padding:(0,N.P)(o,{thewest:(0,r.g)(10,10,10,56),sevennews:V?0:(0,r.g)(10,10,10,l.q.sevennews.margins.md),thenightly:V?0:(0,r.g)(10,10,10,l.q.thenightly.margins.md),fallback:`${(0,r.g)(10)}`}),fontFamily:(0,N.P)(o,{thewest:g.l.thewest.sansSerif,perthnow:g.l.perthnow.sansSerifCond,sevennews:g.l.sevennews.sansSerifCond,thenightly:g.l.thenightly.sansSerif,fallback:void 0}),background:(0,N.P)(o,{perthnow:y.T.black80,thewest:"rgba(255,255,255,0.9)",sevennews:`linear-gradient(to top, ${(0,B.zX)(y.T.black,0)}, ${y.T.black35} 80%)`,thenightly:`linear-gradient(to top, ${(0,B.zX)(y.T.black,0)}, ${y.T.black35} 80%)`,fallback:void 0}
13),color:(0,N.P)(o,{perthnow:y.T.white,thewest:y.T.black,sevennews:y.T.white,thenightly:y.T.white,fallback:void 0}),height:(0,N.P)(o,{sevennews:"100%",thenightly:"100%",fallback:void 0})}),({isVisible:o,theme:V})=>o===!1&&V.kind!=="sevennews"&&V.kind!=="thenightly"&&{transition:"transform 1000ms ease",transform:"translateY(-100%)"},({isVisible:o,theme:V})=>o===!1&&(V.kind==="sevennews"||V.kind==="thenightly")&&{transition:"opacity 1000ms ease",opacity:0},{"& .video-js__logo":{width:(0,r.g)(36),height:(0,r.g)(33),fill:y.T.black,position:"absolute",top:(0,r.g)(11),left:(0,r.g)(11)}},""),j=(0,a.A)("div",{target:"eqlq6nf3",label:"StyledInset"})("line-height:1;",({theme:o})=>(o.kind==="sevennews"||o.kind==="thenightly")&&{display:"flex",alignItems:"center",justifyContent:"space-between"},""),de=(0,a.A)("div",{target:"eqlq6nf2",label:"StyledHeadingAndLogoContainer"})({name:"s5xdrg",styles:"display:flex;align-items:center"}),pe=(0,a.A)("h3",{target:"eqlq6nf1",label:"StyledHeading"})({fontSize:(0,r.g)(16),overflow:"hidden",margin:0,marginBottom:(0,r.g)(3),width:"100%",textOverflow:"ellipsis",whiteSpace:"nowrap",lineHeight:1.15},({theme:o})=>[{fontSize:(0,N.P)(o,{sevennews:(0,r.g)(17),perthnow:(0,r.g)(18),fallback:(0,r.g)(16)})},o.kind==="sevennews"&&{fontWeight:500,color:y.T.white,whiteSpace:"normal",padding:(0,r.g)(l.q.sevennews.margins.sm),width:"auto",marginBottom:0},o.kind==="thenightly"&&{fontWeight:400},{[(0,W.C9)("sm")]:{fontSize:(0,N.P)(o,{perthnow:(0,r.g)(28),fallback:(0,r.g)(16)})}}],""),fe=(0,a.A)(s.X,{target:"eqlq6nf0",label:"StyledVideoMetadata"})({fontSize:(0,r.g)(12),overflow:"hidden",margin:0,width:"100%",textOverflow:"ellipsis",whiteSpace:"nowrap"},"");var ee=e(57599);const Q=(0,a.A)("img",{target:"eoa92oq1",label:"StyledSourceLogo"})({marginRight:(0,r.g)(8),width:(0,r.g)(70)},""),Ie=(0,a.A)("span",{target:"eoa92oq0",label:"StyledSourceFallback"})({whiteSpace:"nowrap",padding:(0,r.g)(l.q.sevennews.margins.sm)},"");var xe=e(77192);const m=o=>t.createElement(ye,{className:"video-js__overlay video-js__overlay--pause",isVisible:o.isVisible},t.createElement(j,{className:"video-js__metadata"},t.createElement(pe,{className:"video-js__heading"},o.videoDetails.heading),o.theme.kind==="thewest"&&t.createElement(ee.Y,{className:"video-js__logo"}),t.createElement(fe,{duration:o.theme.kind==="thewest"?o.videoDuration:void 0,source:o.videoDetails.source,type:o.videoDetails.videoType}))),E=({isVisible:o,videoDetails:V,compactMode:M})=>{const{source:F}=V;return t.createElement(ye,{compactMode:M,className:"video-js__overlay video-js__overlay--pause",isVisible:o},t.createElement(j,{className:"video-js__metadata"},t.createElement(de,null,t.createElement(pe,{className:"video-js__heading"},V.heading)),F&&t.createElement(Ie,null,"(Source: ",F,")")))},U=o=>t.createElement(xe.k,{sevennews:()=>t.createElement(E,{...o}),thewest:()=>t.createElement(m,{...o}),perthnow:()=>t.createElement(m,{...o}),thenightly:()=>t.createElement(E,{...o})});U.displayName="TopBar";var _=e(90817),ae=e(19494),te=e(30668),Ae=e(80719),me=e(13133),_e=e(31358);const Me=(0,a.A)(me.A,{target:"eibdpt53",label:"RestyledPlayIcon"})(({height:o})=>({height:(0,r.g)(o),width:(0,r.g)(1.5*o),fill:y.T.white,paddingRight:(0,r.g)(o*2/3)}),""),Re=(0,a.A)(Ae.Fz,{target:"eibdpt52",label:"RestyledKicker"})(({theme:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",top:"auto",bottom:(0,r.g)(6),"&:hover, &:active, &:focus":{background:(0,N.P)(o,{sevennews:V=>V.flyoutNav.hoverColour,fallback:void 0})},[(0,W.SE)("xs")]:{display:"flex"}}),""),Ke=(0,a.A)(_e.Ey,{target:"eibdpt51",label:"StyledLive"})({marginLeft:(0,r.g)(9)},""),et=(0,a.A)("span",{target:"eibdpt50",label:"StyledDuration"})(({iconHeight:o})=>({paddingLeft:(0,r.g)(o*2/3),fontWeight:400,minWidth:"2.5em"}),""),Ge="KickerPlayButton",tt=16,Xe=({text:o,duration:V="",play:M,playable:F,type:k})=>{const D=(0,te.u)(),G=k==="live"?t.createElement(Ke,null):t.createElement(et,{iconHeight:tt},V);return t.createElement(Re,{className:Ge,kickerPosition:"bottomleftinset-herovideo",kickerType:"block",theme:D,iconHeight:tt,onClick:z=>{F&&(z.preventDefault(),M())}},t.createElement(Me,{height:tt}),t.createElement("span",null,o),G)};Xe.displayName=Ge;const Pe=({className:o})=>t.createElement("svg",{className:o,width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M13.4558 1.11713c.3549-.360802.9998-.301938 1.4405.13148.4406.43342.5102 1.07726.1553 1.43807L2.20038 15.7526c-.35488.3608-.99978.3019-1.440443-.1315-.440658-.4334-.510197-1.0772-.15532-1.438L13.4558 1.11713z",fill:"#fff"}),t.createElement("path",{d:"M15.1416 14.0573c.3605.3546.3012.9995-.1325 1.4405-.4338.441-1.0777.511-1.4382.1564L.514634 2.81248c-.360539-.35462-.301199-.99958.13254-1.44056C1.08091.930933 1.7248.860917 2.08534 1.21553L15.1416 14.0573z",fill:"#fff"}));var ke=e(97331),rt=e.n(ke),nt=e(39827);const at=(0,nt.L)()?!1:/Edge\/\d./i.test(navigator.userAgent);function ht(){const[o,V]=(0,t.useState)({x:{percentage:0,value:0,total:0,className:""},y:{percentage:0,value:0,total:0,className:""}}),M=(0,t.useRef)(null),F=500;function k(){const z=M.current;if(!z)return;let be=z.scrollHeight-z.clientHeight;const Fe=z.scrollWidth-z.clientWidth;at&&be===1&&z.scrollTop===0&&(be=0);const i=be!==0?z.scrollTop/be:null,n=Fe!==0?z.scrollLeft/Fe:null;
13let c="no-scroll-y";i===0?c="scroll-top":i===1?c="scroll-bottom":i&&(c="scroll-middle-y");let u="no-scroll-x";n===0?u="scroll-left":n===1?u="scroll-right":n&&(u="scroll-middle-x");const d={x:{percentage:n,value:z.scrollLeft,total:Fe,className:u},y:{percentage:i,value:z.scrollTop,total:be,className:c}};V(d)}const D=rt()(k,F),G=(0,t.useCallback)(z=>{z?(z.addEventListener("scroll",D),window.addEventListener("resize",D),M.current=z,D()):M.current&&(M.current.removeEventListener("scroll",D),window.removeEventListener("resize",D))},[]);return[o,G,M]}var ot=e(50291),pt=e(69555),P=e(38953),ce=e(67380),ue=e(4637);const A=({className:o,title:V})=>t.createElement("svg",{viewBox:"0 0 16 29",className:o,xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,V||"Chevron Left Icon"),t.createElement("path",{transform:"rotate(-180 6.599999904632568,14.133500099182129) ",d:"m0.79,0.236l3.5,0l8.12,13.727l-8.11,14.068l-3.51,0l8.149,-14.049l-8.149,-13.746z"}));var T=e(84397);function ge(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}const oe=98,Ee=180,We=28,it=(0,a.A)("span",{target:"e5denmy15",label:"StyledUpNextText"})(({theme:o})=>({fontSize:(0,r.g)(14),fontWeight:700,lineHeight:(0,r.g)(20),marginBottom:(0,r.g)(5),fontFamily:o.fonts.sansSerifCond,color:y.T.white,textTransform:"uppercase"}),""),je=(0,a.A)("div",{target:"e5denmy14",label:"StyledPlaylistWrapper"})(({theme:o,upNextVisible:V,compactMode:M,hide:F})=>{let k=M?oe:Ee;return M||(k=V?Ee:Ee-We),{display:F?"none":"grid",height:(0,N.P)(o,{thewest:k+5,fallback:k}),position:"relative",backgroundColor:y.T.black,paddingTop:o.margins.sm,paddingLeft:(0,N.P)(o,{perthnow:o.margins.sm,fallback:void 0}),paddingRight:(0,N.P)(o,{perthnow:o.margins.sm,fallback:void 0}),[(0,W.C9)("sm")]:{paddingBottom:(0,N.P)(o,{thewest:o.margins.md,fallback:o.margins.sm}),paddingLeft:M?o.margins.sm:o.margins.md,paddingRight:M?o.margins.sm:o.margins.md}}},""),Qe=(0,a.A)("ul",{target:"e5denmy13",label:"StyledVideoPlaylist"})({name:"19zjb4u",styles:"display:flex;position:relative;list-style:none;padding:0;margin:0;scroll-snap-type:x mandatory;scroll-snap-stop:always;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar{display:none;}"}),Oe=(0,a.A)("div",{target:"e5denmy12",label:"StyledPlaylistActions"})({position:"absolute",width:"100%",left:0,top:0,display:"none",[(0,W.C9)("sm")]:{display:"block"}},""),we=(o,V)=>({position:"absolute",padding:(0,r.g)(0,22),height:(0,r.g)(151),border:"none",background:"none",cursor:"pointer",color:y.T.white,marginTop:o?(0,r.g)(29):0,...(0,B.kY)({properties:["opacity"],speed:"med"}),"&:hover, &:active":{color:(0,N.P)(V,{sevennews:M=>M.video.focusColor,perthnow:y.T.perthnow.pinkThulite,thewest:void 0,fallback:void 0}),"& > svg":{left:"50%"}},"&:focus":{outline:"none"}}),ve={content:"''",position:"absolute",left:0,right:0,top:0,bottom:0,pointerEvents:"none"},Se=(0,a.A)("button",{target:"e5denmy11",label:"StyledRotateLeftButton"})(({visible:o,upNextVisible:V,theme:M})=>({...we(V,M),left:0,opacity:o?1:0,pointerEvents:o?"auto":"none","&::before":{...ve,right:"-30%",...(0,ue.qy)({colorStops:["transparent",y.T.black],fallback:"transparent",toDirection:"270deg"})}}),""),Te=(0,a.A)("button",{target:"e5denmy10",label:"StyledRotateRightButton"})(({visible:o,upNextVisible:V,theme:M})=>({...we(V,M),right:0,opacity:o?1:0,pointerEvents:o?"auto":"none","&::before":{...ve,left:"-30%",...(0,ue.qy)({colorStops:["transparent",y.T.black],fallback:"transparent",toDirection:"90deg"})}}),""),Ve=(0,a.A)(T.I,{target:"e5denmy9",label:"StyledIconChevronRight"})({position:"absolute",top:(0,r.g)(79),left:"40%",width:(0,r.g)(12),height:(0,r.g)(20),color:"inherit",fill:"currentColor",transform:"translate(-50%, -50%)",...(0,B.kY)({properties:["left","color"],speed:"med"})},""),ie=(0,a.A)(A,{target:"e5denmy8",label:"StyledIconChevronLeft"})({position:"absolute",top:(0,r.g)(79),left:"50%",width:(0,r.g)(12),height:(0,r.g)(20),color:"inherit",fill:"
13currentColor",transform:"translate(-50%, -50%)",...(0,B.kY)({properties:["left","color"],speed:"med"})},""),Le=(0,a.A)("li",{target:"e5denmy7",label:"StyledVideoPlaylistItem"})({position:"relative",marginRight:(0,r.g)(22),flexBasis:(0,r.g)(140),flexGrow:0,flexShrink:0,scrollSnapAlign:"start"},""),mt=(0,a.A)("button",{target:"e5denmy6",label:"StyledVideoPlaylistButton"})(({active:o})=>({background:"none",border:"none",padding:0,margin:0,width:"100%",textAlign:"left",cursor:"pointer",opacity:o?1:.9,...(0,B.kY)({properties:["opacity"],speed:"fast"}),"&:hover, &:focus":{outline:"none",opacity:1,h2:{textDecoration:"underline"}}}),""),Ue=(0,a.A)("figure",{target:"e5denmy5",label:"StyledPlaylistItemMedia"})({position:"relative",width:"100%",height:(0,r.g)(80)},""),De=(0,a.A)("img",{target:"e5denmy4",label:"StyledPlaylistItemImage"})({name:"17y86f6",styles:"position:absolute;margin:auto;width:140px;height:80px;left:50%;top:100%;bottom:0;transform:translate(-50%, -50%);object-fit:cover"}),Z=(0,a.A)("div",{target:"e5denmy3",label:"StyledPlaylistItemDetails"})(({theme:o,active:V})=>({position:"absolute",bottom:0,width:"100%",height:80,padding:(0,r.g)(60,10,10),color:y.T.white,fontSize:(0,r.g)(12),fontFamily:o.fonts.sansSerif,...(0,ue.qy)({colorStops:["transparent",y.T.sevennews.charade],fallback:"transparent",toDirection:"180deg"}),"&:focus":{border:(0,N.P)(o,{sevennews:M=>`2px solid ${M.video.focusColor}`,perthnow:`2px solid ${y.T.perthnow.pinkThulite}`,fallback:void 0})},border:V?(0,N.P)(o,{sevennews:M=>` 2px solid ${M.video.focusColor}`,perthnow:`2px solid ${y.T.perthnow.pinkThulite}`,fallback:void 0}):void 0}),""),He=(0,a.A)("div",{target:"e5denmy2",label:"StyledPlaylistItemPlayIcon"})({display:"inline-block",position:"relative",width:(0,r.g)(18),"&::before":{position:"absolute",content:"''",bottom:(0,r.g)(-2),display:"block",width:0,height:0,borderWidth:`${(0,r.g)(6)} 0 ${(0,r.g)(6)} ${(0,r.g)(10)}`,borderStyle:"solid",borderColor:"transparent",borderLeftColor:y.T.white}},""),ze=(0,a.A)("h2",{target:"e5denmy1",label:"StyledPlaylistItemTitle"})(({theme:o})=>({fontSize:(0,N.P)(o,{sevennews:(0,r.g)(15),fallback:(0,r.g)(14)}),fontWeight:400,color:y.T.white,fontFamily:(0,N.P)(o,{sevennews:o.fonts.sansSerifCond,fallback:o.fonts.sansSerif}),marginTop:(0,r.g)(8),marginBottom:0,overflow:"hidden !important",textOverflow:"ellipsis",maxHeight:(0,r.g)(50),display:"-webkit-box",WebkitLineClamp:4,WebkitBoxOrient:"vertical"}),""),dt=(0,a.A)("div",{target:"e5denmy0",label:"StyledCompactDetailsContainer"})(({theme:o})=>({position:"absolute",minWidth:(0,r.g)(140),maxWidth:(0,r.g)(140),top:(0,r.g)(-4),right:(0,r.g)(-140-o.margins.sm)}),""),st=162,yt=({showUpNextLabel:o,videoQueue:V,onSelect:M,activeItemId:F,isLoaded:k,onScroll:D,compactMode:G,hide:z})=>{const[be,Fe,i]=ht(),n=(0,ot.Z)(F),c=(0,ot.Z)(G),u=V.findIndex(L=>L.id===F),d=u>-1?u+1:-1,R=d<V.length&&d!==-1?d:0,$=G?V.length>0?[V[R]]:[]:V,J=()=>{Ne(st,!0,i)},Y=()=>{Ne(-st,!0,i)};(0,t.useEffect)(()=>{(n!==F||G!==c)&&Ne(d*st,!1,i)},[F,n,d,i,G,c]);const X=o&&!G||!1;return t.createElement(je,{compactMode:G,upNextVisible:X,hide:z},X&&t.createElement(it,null,"Up Next"),t.createElement(Qe,{"aria-roledescription":"carousel",onScrollCapture:D,ref:Fe},$.map((L,K)=>t.createElement(Ze,{compactMode:G,key:K,item:L,onSelect:M,active:F===L.id,accessibilityLabel:`${K+1} of ${V.length} - ${L.name}`})),!k&&t.createElement(Je,null)),k&&!G&&t.createElement(Oe,null,t.createElement(Se,{type:"button","aria-label":"Go to the next slide",onClick:Y,upNextVisible:X,visible:be.x.percentage!==0},t.createElement(ie,null)),t.createElement(Te,{type:"button","aria-label":"Go to the next slide",onClick:J,upNextVisible:X,visible:be.x.percentage!==1},t.createElement(Ve,null))))},ct=!(0,nt.L)()&&"scrollBehavior"in document.documentElement.style,Ne=(o,V=!1,M)=>{M.current&&(ct?M.current.scrollTo({left:V?M.current.scrollLeft+o:o,behavior:"smooth"}):M.current.scrollLeft=V?M.current.scrollLeft+o:o)},Je=()=>t.createElement(t.Fragment,null,(0,pt.$r)(6).map((o,V)=>t.createElement(Le,{key:V},t.createElement(P.y,{loadingBackgroundColor:y.T.sevennews.charade,fixedRatio:"16:9",image:void 0}),t.createElement(ze,null,t.createElement(ce.E,{dark:!0,count:2}))))),Ze=({item:o,onSelect:V,active:M,accessibilityLabel:F,compactMode:k})=>{const{fallbackImages:D}=(0,te.u)(),G=(0,t.useRef)(null),z=()=>V(o),be=o.posterImage||D.crops["16:9"],Fe=t.createElement(ze,null,o.name);return t.createElement(Le,{ref:G,"aria-roledescription":"slide","aria-label":F,"aria-current":M},t.createElement(mt,{active:M,title:`Click to play ${o.name}`,onClick:z},t.createElement(Ue,null,t.createElement(De,{src:(0,p.s)(be.reference,140,!0),alt:o.name||o.description}),t.createElement(Z,{compactMode:k,active:M},t.createElement(He,null),o.videoType!=="live"?(0,ae.c)(o.duration):null)),!k&&Fe,k&&t.createElement(dt,null,t.createElement(it,null,"Up Next"),Fe)))};var St=e(65976),Be=e(64507);
13const ft="video-wrapper",$e=({theme:o,wrapperElProps:V,videoElement:M,playlistProps:F,playerState:k,playerOptions:D,playerActions:G,hideSticky:z,setHideSticky:be})=>{const i=!k.canAutoplay&&k.showInternalPlayButton&&!D.playButtonText&&o.kind==="sevennews",n=k.adPlayed===!0&&(!D.compactMode||o.kind==="sevennews")&&k.showTopBar,c=k.isMuted&&!k.showTitleOverlay&&!k.showInternalPlayButton&&t.createElement(_.P,{positionState:{alignToTop:D.compactMode,isLowered:!k.showTopBar&&k.adPlayed||!k.showTopBar&&k.adPlaying},action:G.handleMuteToggle}),u=D.compactMode&&o.kind===v.Y.SevenNews&&t.createElement(h.BX,{onClick:()=>{G.closeStickyVideo(),be&&be(!0)}},t.createElement(Pe,null)),d=k.currentVideoMetadata?(0,ae.c)(k.currentVideoMetadata.duration):void 0,R=t.createElement(U,{theme:o,compactMode:D.compactMode,isVisible:n&&!k.isFullscreen,videoDuration:d,videoDetails:k.currentVideo}),$=k.showInternalPlayButton?D.playButtonText?t.createElement(Xe,{type:k.currentVideo.videoType,text:D.playButtonText,duration:d,play:G.playVideo,playable:k.currentVideoMetadata!==void 0}):t.createElement(w.z,{play:G.playVideo,isCentered:!0,isSmall:D.smallPlayButton}):!1,J=(i||k.showTitleOverlay)&&t.createElement(I.Z,{showVideoTitle:i,play:G.playVideo,cancelAutoplay:G.stopAutoplay,videoDuration:k.currentVideoMetadata?(0,ae.c)(k.currentVideoMetadata.duration):void 0,compactMode:D.compactMode||!1,videoDetails:k.currentVideo,autoplayRemainingTime:k.currentState.type==="autoplay-countdown"?k.currentState.remainingTime:void 0}),{innerRef:Y,...X}=V,L=D.hidePoster?void 0:(0,St.F)(k.currentVideo);let K;return L&&(K=(0,p.s)(L.reference,(0,Be.q)(o.kind),!1)),t.createElement(t.Fragment,null,K&&t.createElement("style",{dangerouslySetInnerHTML:{__html:`
14                            @media print {
15                                .${h.LS}::before {
16                                    content: url("${K}");
17                                    max-width: 600px;
18                                }
19                            }`}}),t.createElement(h.d4,{className:ft,compactMode:D.compactMode,hide:z&&D.compactMode},$,t.createElement(h.Rw,{...X,ref:Y,posterImage:K,mediaFit:D.mediaFit},R,J,M,c,u)),F&&t.createElement(yt,{hide:z&&D.compactMode,compactMode:D.compactMode,showUpNextLabel:o.kind!==v.Y.PerthNow,activeItemId:F.currentVideoId,isLoaded:F.videoQueue.items.length!==0,onSelect:F.handlePlaylistSelect,onScroll:S()(F.handlePlaylistScroll,500),videoQueue:F.initialVideoMetadata?[F.initialVideoMetadata,...F.videoQueue.items]:[]}))}}),53139:(function(C,x,e){"use strict";e.d(x,{z:function(){return g}});var v=e(14041),p=e(24890),f=e(2182),S=e(19099),t=e(84517),h=e(53417),w=e(83490),I=e(65143),a=e(19108);const s=(0,f.A)("div",{target:"edf5wxz0",label:"StyledPlayOverlay"})("position:absolute;top:0;bottom:0;left:0;right:0;cursor:pointer;",({theme:l})=>({transition:(0,I.P)(l,{sevennews:`background ${t.cz.easeOut.fast}`,thenightly:`background ${t.cz.easeOut.fast}`,fallback:void 0}),zIndex:(0,I.P)(l,{sevennews:h.f.common.videoPlayButton,thenightly:h.f.common.videoPlayButton,fallback:void 0}),[`& ${S.O6}`]:{pointerEvents:(0,I.P)(l,{sevennews:"none",thenightly:"none",fallback:void 0})},...(0,S.Xr)(l),"&:hover":{background:(0,I.P)(l,{sevennews:b=>(0,w.zX)(b.video.playOverlay,.3),thenightly:(0,w.zX)(a.T.thenightly.neutral[100],.3),fallback:void 0}),button:{backgroundColor:(0,I.P)(l,{sevennews:b=>(0,w.zX)(b.video.playOverlay,.5),fallback:void 0})}},"&:active, &:focus":{border:(0,I.P)(l,{sevennews:b=>`2px solid ${b.video.focusColor}`,thenightly:`2px solid ${a.T.thenightly.neutral[100]}`,fallback:void 0}),margin:(0,I.P)(l,{thenightly:"-6px",fallback:void 0}),borderRadius:(0,I.P)(l,{thenightly:"4px",fallback:void 0})}}),"");var y=e(84512);const g=l=>v.createElement(s,{className:y.y,onClick:l.play},v.createElement(p.D,{onClick:l.play,isCentered:l.isCentered,isInversed:l.isInversed,isSmall:l.isSmall}));g.displayName="PlayOverlay"}),76403:(function(C,x,e){"use strict";e.d(x,{Z:function(){return xe}});var v=e(42860),p=e(14041),f=e(24890),S=e(2182),t=e(19099),h=e(86146),w=e(19108),I=e(53417),a=e(43329),s=e(63533),y=e(83490),g=e(65143);function l(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}const b=m=>(0,g.P)(m,{thewest:w.T.black,perthnow:w.T.white,sevennews:w.T.white,fallback:void 0}),W=m=>(0,g.P)(m,{thewest:E=>E.primaryColor,perthnow:w.T.perthnow.pinkThulite,sevennews:E=>E.video.primaryColor,fallback:void 0}),r=(0,S.A)("div",{target:"e1ewbkko9",label:"StyledTitleOverlay"})({alignItems:"center",zIndex:I.f.common.videoTitleOverlay,right:0,bottom:0,left:0,position:"absolute",paddingRight:(0,s.g)(15)},({theme:m})=>({display:(0,g.P)(m,{sevennews:"none",thenightly:"none",fallback:"flex"}),paddingLeft:(0,g.P)(m,{sevennews:(0,s.g)(18),fallback:(0,s.g)(75)}),height:(0,g.P)(m,{sevennews:(0,s.g)(62),fallback:(0,s.g)(80)}),[(0,a.C9)("sm")]:{height:(0,g.P)(m,{sevennews:(0,s.g)(62),fallback:(0,s.g)(100)}),paddingLeft:(0,g.P)(m,{sevennews:(0,s.g)(18),fallback:(0,s.g)(120)})},fontFamily:(0,g.P)(m,{sevennews:m.fonts.sansSerifCond,fallback:m.fonts.sansSerif}),background:(0,g.P)(m,{thewest:"hsla(0,  0%, 100%, .9)",perthnow:w.T.perthnow.greyBasalt90,sevennews:(0,y.zX)(w.T.black,.7),fallback:void 0}),color:b(m),[`& .${t.Z2}`]:{bottom:(0,g.P)(m,{sevennews:(0,s.g)(18),fallback:void 0}),[(0,a.C9)("sm")]:{bottom:(0,g.P)(m,{sevennews:(0,s.g)(30),fallback:void 0})}}}),({compactMode:m,theme:E})=>m?{height:(0,g.P)(E,{sevennews:(0,s.g)(40),fallback:void 0}),[(0,a.C9)("sm")]:{height:(0,g.P)(E,{sevennews:(0,s.g)(62),fallback:(0,s.g)(100)})},paddingLeft:(0,g.P)(E,{sevennews:(0,s.g)(18),fallback:(0,s.g)(112)})}:{},""),B=(0,S.A)("div",{target:"e1ewbkko8",label:"StyledInset"})({lineHeight:1,width:"100%",maxWidth:"100%",[(0,a.C9)("sm")]:{transform:"none",paddingTop:0,paddingBottom:0}},({theme:m})=>({transform:(0,g.P)(m,{sevennews:void 0,fallback:`translateY(${(0,s.g)(3)})`}),padding:(0,g.P)(m,{sevennews:`${(0,s.g)(4)} 0`,fallback:`${(0,s.g)(4)} 0 ${(0,s.g)(4)} ${(0,s.g)(10)}`}),borderLeft:(0,g.P)(m,{sevennews:void 0,fallback:`${(0,s.g)(4)} solid ${W(m)}`})}),""),N=(0,S.A)("div",{target:"e1ewbkko7",label:"StyledTitles"})({name:"lkh5er",styles:"display:flex;flex-wrap:wrap;align-items:center"}),ne=(0,S.A)("h3",{target:"e1ewbkko6",label:"StyledHeading"})(({theme:m,showVideoTitle:E})=>({fontSize:(0,g.P)(m,{sevennews:(0,s.g)(14),fallback:(0,s.g)(18)}),fontWeight:E?"normal":"revert",overflow:E?"visible":"hidden",margin:0,padding:0,flex:(0,g.P)(m,{sevennews:void 0,fallback:"1 1 70%"}),textOverflow:"ellipsis",whiteSpace:E?"normal":"nowrap",lineHeight:1.2,verticalAlign:"middle",[(0,a.C9)("md")]:{fontSize:(0,g.P)(m,{sevennews:(0,s.g)(17),fallback:(0,s.g)(22)}
19)},"&::after":(0,g.P)(m,{sevennews:{content:'"  "',whiteSpace:"pre"},fallback:void 0})}),m=>m.autoPlayIsEnabled&&{display:"none",[(0,a.C9)("sm")]:{display:"block"}},""),ye=(0,S.A)("span",{target:"e1ewbkko5",label:"StyledVideoDuration"})(({theme:m})=>({display:(0,g.P)(m,{sevennews:"inline-block",fallback:"none"}),[(0,a.C9)("sm")]:{display:"none"},paddingLeft:(0,s.g)(5)}),""),j=(0,S.A)(h.X,{target:"e1ewbkko4",label:"StyledVideoMetadata"})(({theme:m})=>[{display:"none",margin:(0,g.P)(m,{sevennews:0,fallback:`0 0 0 ${(0,s.g)(15)}`}),padding:0,verticalAlign:"middle",whiteSpace:"nowrap",lineHeight:(0,g.P)(m,{sevennews:1.2,fallback:void 0}),[(0,a.C9)("sm")]:{display:(0,g.P)(m,{sevennews:"inline-block",fallback:"block"}),fontSize:(0,s.g)(14)},[(0,a.C9)("md")]:{fontSize:(0,s.g)(16)}},m.kind==="sevennews"&&{time:{fontWeight:600}}],""),de=(0,S.A)("div",{target:"e1ewbkko3",label:"StyledAutoplayWrap"})(({theme:m})=>({display:"flex",alignItems:"center",[(0,a.C9)("sm")]:{marginTop:(0,g.P)(m,{sevennews:(0,s.g)(4),fallback:(0,s.g)(6)})},fontFamily:(0,g.P)(m,{sevennews:m.fonts.sansSerif,fallback:void 0})}),""),pe=(0,S.A)("p",{target:"e1ewbkko2",label:"StyledCountdown"})(({theme:m})=>({fontSize:(0,g.P)(m,{sevennews:(0,s.g)(14),fallback:(0,s.g)(16)}),margin:(0,g.P)(m,{sevennews:`0 ${(0,s.g)(8)} 0 0`,fallback:`0 ${(0,s.g)(15)} 0 0`}),lineHeight:1}),""),fe=(0,S.A)("span",{target:"e1ewbkko1",label:"StyledCountdownTime"})({name:"1j389vi",styles:"font-weight:700"}),ee=(0,S.A)("button",{target:"e1ewbkko0",label:"StyledCancel"})(({theme:m})=>({margin:0,padding:0,lineHeight:1,cursor:"pointer",background:"none",border:"none",color:b(m),fontSize:(0,g.P)(m,{sevennews:(0,s.g)(13),fallback:(0,s.g)(16)}),fontWeight:(0,g.P)(m,{sevennews:400,fallback:700}),textTransform:(0,g.P)(m,{sevennews:void 0,fallback:"uppercase"}),textDecoration:(0,g.P)(m,{sevennews:"underline",fallback:void 0}),"&::before":{display:(0,g.P)(m,{sevennews:"none",fallback:"inline-block"}),marginRight:(0,s.g)(5),width:(0,s.g)(16),height:(0,s.g)(16),content:"''",verticalAlign:"top",background:(0,g.P)(m,{thewest:w.T.black,perthnow:w.T.white,sevennews:w.T.sevennews.charade,fallback:void 0})},"&:hover":{color:W(m)},[(0,a.C9)("sm")]:{display:"inline-block"}}),"");var Q=e(3529),Ie=e(77192);const xe=({videoDuration:m,videoDetails:E,play:U,autoplayRemainingTime:_,cancelAutoplay:ae,compactMode:te,showVideoTitle:Ae})=>{const me=_!==void 0,_e=(0,Q.B)();return p.createElement(Ie.k,{sevennews:()=>p.createElement(r,{compactMode:te},p.createElement(B,null,p.createElement(N,null,p.createElement(ne,{title:E.heading,autoPlayIsEnabled:me,showVideoTitle:Ae},E.heading,Ae&&m&&p.createElement(ye,null,m)),!te&&p.createElement(j,{duration:m,source:E.source,type:E.videoType})),me&&p.createElement(de,null,p.createElement(pe,null,"Video will play in"," ",p.createElement(fe,null,_),".."),p.createElement(ee,{className:"video-js__autoplay-control",type:"button",onClick:ae},"Don't play video")))),fallback:()=>p.createElement(r,{compactMode:te},p.createElement(f.D,{onClick:U,isCentered:!1,isInversed:_e!==v.Y.SevenNews}),p.createElement(B,null,p.createElement(N,null,p.createElement(ne,{title:E.heading,autoPlayIsEnabled:me},E.heading),!te&&p.createElement(j,{duration:m,source:E.source,type:E.videoType})),me&&p.createElement(de,null,p.createElement(pe,null,"Video will play in"," ",p.createElement(fe,null,_)),p.createElement(ee,{className:"video-js__autoplay-control",type:"button",onClick:ae},"Stop Autoplay"))))})};xe.displayName="TitleOverlay"}),86146:(function(C,x,e){"use strict";var v=e(87447),p=e(14041);const f=({className:S,duration:t,source:h,type:w})=>{if(!t&&!h)return null;const I=w==="live",a=!I&&t,s=h!==void 0,y=(a||I)&&s;return p.createElement("p",{className:(0,v.cx)(S,"video-metadata")},I&&"Live",a&&p.createElement("time",null,t),y&&" | ",s&&p.createElement("span",null,h))};f.displayName="VideoMetadata",e.d(x,["X",0,f])}),19494:(function(C,x,e){"use strict";const v=(p,f)=>{const S=p/1e3,t=Math.floor(S%60),h=t<10?`0${t}`:t.toString(),w=Math.floor(S%3600/60),I=f===!0?S>=3600?" hours":w>0?" mins":" seconds":"";if(S>=3600){const a=Math.floor(S/3600),s=w<10?`0${w}`:w.toString();return`${a}:${s}:${h}${I}`}return`${w}:${h}${I}`};e.d(x,["c",0,v])}),2299:(function(C,x,e){"use strict";e.d(x,{o1:function(){return f},yb:function(){return g}});var v=e(69555),p=e(73251);function f(l,b){if(!l)return;switch(l.toLowerCase()){case"other":case"news corp australia":case"radio":return b||l;case"facebook":case"twitter":case"instagram":case"youtube":case"snapchat":case"linkedin":return b?`${l} - ${b}`:l;default:return l}}function S(l){return l.ovu_provider_details?{source:l.ovu_provider_details.provider_full_name}:l.source?{source:l.source,sourceExtra:l.source_extra}:null}function t(l){if(!l)return[];try{const b=JSON.parse(l);return Array.isArray(b)?b:[]}catch{return[]}}function h(l){if(l.custom_fields.primary_topic)return l.custom_fields.primary_topic}function w(l){const b=l.custom_fields.topic_tags||l.custom_fields.secondary_topics;return b?b.split(",").map(W=>W.trim()):[]}function I(l,b){if(l.poster?l.poster.indexOf("https")===0:!1)return{src:l.poster,reference:l.poster,format:"",width:16,height:9,dimensions:"16x9",ratio:"16:9"};const r=(0,v.I6)(l.poster_sources,B=>B.src.indexOf("https")===0);return r?{src:r.src,reference:r.src,format:"",width:16,height:9,dimensions:"16x9",ratio:"16:9"}:(b.warn({id:l.id,account_id:l.account_id,poster_sources:l.poster_sources,poster:l.poster},"No acceptable https poster frame was found for video"),null)}function a(l,b){const W=t(l.custom_fields.producer),r=S(l.custom_fields),B=I(l,b),N=h(l),ne=w(l);return{id:l.id,accountId:l.account_id,source:r?r.source:null,sourceExtra:r&&r.sourceExtra?r.sourceExtra:null,duration:l.duration,name:l.name,longDescription:l.long_description,description:l.description,byline:l.custom_fields.byline||null,producer:W,posterImage:B,primaryTopic:N||"",secondaryTopics:ne,videoType:l.custom_fields.video_type||null,videoContentType:l.custom_fields.video_content_type||null,expiryDate:null,seriesInfo:l.series_info,publicationDate:l.created_at,canonicalSource:l.custom_fields.canonical_source||null,isVerticalVideo:l.custom_fields.is_vertical_video==="TRUE",slug:null}}async function s(l,b){const W=`https://edge.api.brightcove.com/playback/v1/accounts/${b}/videos/${(0,p.J)(l)}`;return await fetch(W,{headers:{Accept:"application/json;pk=BCpkADawqM0DDw19NyXW8HYv6ywzHzuh20lUOLa8A7-afTvOp0AjT901bCj8pvGQAlbuUPUKrbSRxKJXV7yHBQ2ebGC159vvEAJlBJ4G2VmmEeK-ZuB08VsKKe6ph9narO8
190eFChm0JXfj1p"}}).then(B=>{if(B.status!==200)throw new Error("Request Failed");return B.json()})}async function y(l,b){const W=`${b.contentApi}/video/meta/${(0,p.J)(l)}`;return await fetch(W).then(B=>{if(B.status!==200)throw new Error("Request Failed");return B.json()})}async function g(l,b,W,r){try{return await y(l,W)}catch{const N=await s(l,b);return a(N,r)}}}),64507:(function(C,x,e){"use strict";var v=e(42860);const p=S=>{switch(S){case v.Y.SevenNews:return"7NEWS Videos";case v.Y.PerthNow:return"PerthNow Videos";case v.Y.TheWest:return"The West Videos";case v.Y.TheNightly:return"The Nightly Videos"}},f=S=>{switch(S){case v.Y.PerthNow:return 1024;case v.Y.TheWest:return 1024;case v.Y.SevenNews:return 1024;case v.Y.TheNightly:return 1024}};e.d(x,["q",0,f,"y",0,p])}),39527:(function(C,x,e){"use strict";e.r(x);var v=e(42305),p=e(50183),f=e(91436),S=e(14041),t=e(81786),h=e(692),w=e(67208),I=e(72307),a=e(30011),s=e(57185),y=e(38769);const g=b=>{const[W,r]=(0,S.useState)(!1),B=(0,t.e)(),N=(0,v.v)({consentRequiredLevel:f.Rg.Advertising|f.Rg.Analytics}),ne=B||N,ye=(0,p.iT)("magnite-header-tag-wrapper"),{byline:j,captionText:de,credit:pe,kind:fe="video",videoDetails:ee,autoplayOptions:Q,autoplayNextOptions:Ie,playButtonText:xe,isVideoHub:m,publicUrl:E,publicationPathname:U,onPlayNextVideo:_,setVideoRendered:ae,isVideoCurrentlySticky:te}=b;if(!ee.id)return null;if(!ne)return S.createElement(I.V,null);const Ae=te||b.videoOptions.compactMode,me=S.createElement(h.C,{ref:ae,videoDetails:ee,showTitles:b.showTitles,pauseOverlay:b.pauseOverlay,autoplayOptions:Q,autoplayNextOptions:Ie,videoOptions:{...b.videoOptions,compactMode:Ae,isMagniteEnabled:ye},innerRef:b.innerRef,getVideoQueue:b.getVideoQueue,onEvent:b.onEvent,pagePosition:b.isHeroVideo?"hero-video":"inline-article",onUserInteraction:()=>{}
19,showPlaylist:!1,playButtonText:xe,hideSticky:W,setHideSticky:r,isStickyVideo:te,isVideoHub:m,publicUrl:E,currentPath:U,onPlayNextVideo:_,adElement:b.adElement,canAutoPlay:b.isHeroVideo});return S.createElement(w.VS,{className:w.zT},me,(de||pe||j)&&S.createElement(y.SI,{byline:j,captionText:de,credit:pe,kind:fe,shouldIndent:!0}))},l=(0,a.Y)((0,s.I)(g));x.default=l,e.d(x,["PNWebArticleVideo",0,l])}),80461:(function(C,x,e){"use strict";e.d(x,{R5:function(){return A},ZC:function(){return ce}});var v=e(46613),p=e(42860),f=e(14041),S=e(99870),t=e.n(S),h=e(42577),w=e(65976),I=e(64507),a=e(2182),s=e(53417),y=e(63533),g=e(43329),l=e(7876),b=e(95779),W=e(53432),r;function B(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}const{spacing:N}=b.metricsPN,ne=(0,a.A)("div",{target:"e122rps82",label:"StyledPNTopBar"})({position:"absolute",zIndex:s.f.common.videoTopBar,width:"100%",padding:(0,y.g)(N.XS,N.S,N.S),transition:"transform 100ms ease, opacity 100ms ease",pointerEvents:"none",background:"linear-gradient(360deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 76%)",color:b.colorsPN.text.inverse,...W.r5.label.XS.medium,h3:{margin:N.none},[(0,g.C9)("sm")]:{padding:(0,y.g)(N.XS,N.S),...W.r5.label.S.medium,h3:{paddingBottom:(0,y.g)(N.XL)}},[(0,g.C9)("lg")]:{padding:(0,y.g)(N.S),fontSize:(0,y.g)(14),h3:{paddingBottom:(0,y.g)(N.XS)}}},({isVisible:T})=>T===!1&&{transition:"transform 1000ms ease",transform:"translateY(-100%)"},""),ye=null,j=(0,a.A)("h3",{target:"e122rps80",label:"StyledPNHeading"})({...l.A.S.kicker,overflow:"hidden",margin:0,marginBottom:(0,y.g)(N["4XS"]),width:"100%",textOverflow:"ellipsis",whiteSpace:"nowrap"},""),de=({visible:T,videoDetails:ge,isAdPlaying:oe})=>f.createElement(ne,{className:"video-js__overlay video-js__overlay--pause",isVisible:T},f.createElement(j,{className:"video-js__heading"},oe?"Ad":ge.heading));
19de.displayName="PNVideoTopBar";var pe=e(42247),fe;function ee(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}const Q="pn-video-specificity",{background:Ie}=b.colorsPN,xe=null,m=(0,pe.L)(Q)((0,a.A)("div",{target:"e178882h1",label:"StyledPNVideo"})({backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover",backgroundColor:Ie.strong,padding:"0 0 56.25%",minHeight:"80px",position:"relative",overflow:"hidden",[(0,g.C9)("sm")]:{minHeight:"140px"},".collection__card-media > &":{padding:"auto",minHeight:"unset",position:"absolute",top:0,right:0,bottom:0,left:0,overflow:"hidden"}},T=>({backgroundImage:T.posterImage&&`url(${T.posterImage})`,borderRadius:T.isStickyVideo?"8px":void 0,height:T.isVerticalVideo?"100%":void 0}),{[`&.${Q} .vjs-big-play-button`]:{display:"none"},[`&.${Q} .vjs-big-play-button .vjs-control-text`]:{position:"relative",overflow:"visible",clip:"auto",margin:0,padding:0,border:0,display:"none"},'& [class*="StyledUnmuteButton"]':{top:(0,y.g)(10),left:"auto",right:(0,y.g)(16),zIndex:3}},""));m.displayName="StyledPNVideo";const E=(0,a.A)("div",{target:"e178882h0",label:"StyledStickyVideoCloseButton"})({marginLeft:"auto",marginBottom:(0,y.g)(8),width:40,height:40,right:0,borderRadius:(0,y.g)(72),background:b.colorsPN.fill.strong,display:"flex",justifyContent:"center",alignItems:"center","&:hover":{background:b.colorsPN.text.secondary,cursor:"pointer"}},""),U=()=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},f.createElement("path",{d:"M18 6L6 18M6 6L18 18",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}));var _=e(24890),ae=e(84512),te=e(87447),Ae=e(19099),me=e(14904);function _e(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}const{icon:Me,shadow:Re}
19=b.colorsPN,{spacing:Ke,radius:et,layout:Ge}=b.metricsPN,tt=(0,a.A)("div",{target:"e3z12ed1",label:"StyledPNPlayOverlay"})("position:absolute;top:0;bottom:0;left:0;right:0;cursor:pointer;",({theme:T})=>({[`${me.Fz} &`]:{display:"none"},...(0,Ae.Xr)(T)}),""),Xe=(0,te.i7)({name:"10p7chn-spinnerShow",styles:"to{visibility:visible;};label:spinnerShow;"}),Pe=(0,te.i7)({name:"bb2d78-spinnerSpin",styles:"100%{transform:rotate(360deg);};label:spinnerSpin;"}),ke=(0,te.i7)({"0%":{borderTopColor:Me.inverse},"20%":{borderTopColor:Me.inverse},"35%":{borderTopColor:Re.blurs35},"60%":{borderTopColor:Me.inverse},"100%":{borderTopColor:Me.inverse}},";label:spinnerFade;"),rt=(0,a.A)("div",{target:"e3z12ed0",label:"StyledPNSpinner"})({border:`6px solid ${Re.blurs35}`,boxSizing:"border-box",backgroundClip:"padding-box",position:"absolute",zIndex:s.f.common.videoPlayButton,width:(0,y.g)(Ke["2XL"]),height:(0,y.g)(Ke["2XL"]),borderRadius:(0,y.g)(et.XL),left:"50%",top:"50%",transform:"translate(-50%, -50%)",animation:`0s linear 0.3s forwards ${Xe}`,WebkitAnimation:`0s linear 0.3s forwards ${Xe}`,"&:before, &:after":{content:"''",position:"absolute",margin:(0,y.g)(-Ke["3XS"]),boxSizing:"inherit",width:"inherit",height:"inherit",borderRadius:"inherit",opacity:1,border:"inherit",borderColor:"transparent",borderTopColor:Me.inverse,animation:`${Pe} 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite,
20        ${ke} 1.1s linear infinite`,WebkitAnimation:`${Pe} 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite,
21        ${ke} 1.1s linear infinite`},"&:before":{borderTopColor:Me.inverse},"&:after":{borderTopColor:Me.inverse,animationDelay:"0.44s"},[(0,g.C9)("sm")]:{width:(0,y.g)(Ge.section.tablet),height:(0,y.g)(Ge.section.tablet),borderRadius:(0,y.g)(et.XL)}},""),nt=T=>f.createElement(tt,{className:ae.y,onClick:T.play},T.autoPlay?f.createElement(rt,null):f.createElement(_.D,{onClick:T.play,isCentered:T.isCentered,isInversed:T.isInversed,isSmall:T.isSmall}));nt.displayName="PNPlayOverlay";var at=e(85492),ht=e(37165),ot=e(40933),pt=e(90817);const P="video-wrapper",ce="pn-control-dismiss",ue="pn-play-hidden",A=({wrapperElProps:T,videoElement:ge,playerState:oe,playerOptions:Ee,playerActions:We,canAutoPlay:it,isVideoSticky:je,isVerticalVideo:Qe})=>{const{adStarted:Oe,adPlayed:we,adPaused:ve,showTopBar:Se,videoStarted:Te,videoPlaying:Ve,videoPaused:ie}=oe,{handleUserInactive:Le}=We,[mt,Ue]=(0,f.useState)(!0),[De,Z]=(0,f.useState)(!0),[He,ze]=(0,f.useState)(!1),dt=typeof navigator<"u"&&ht.Fr.any(),{innerRef:st,...yt}=T,ct=(0,w.F)(oe.currentVideo);let Ne;const Je=(0,f.useRef)(null),Ze=(Oe||we)&&Se;(0,f.useEffect)(()=>{if(Ze&&Z(!1),ie||ve)clearTimeout(Je.current),Se?Z(!1):(Z(!0),Le());else if(!Se)Z(!0),Le();else return clearTimeout(Je.current),Je.current=setTimeout(()=>{Ue(!1),(!ie||!ve)&&(Z(!0),Le())},3e3),()=>{clearTimeout(Je.current)}},[Ze,Le,mt,ie,Se,Te,ve]),(0,f.useEffect)(()=>{!je&&He&&ze?.(!1)},[je,He,ze]);const St=f.createElement(de,{compactMode:Ee.compactMode,visible:!De,videoDetails:oe.currentVideo,isAdPlaying:Oe&&!we}),Be=f.createElement(at.q,{overlayButtonScale:"L",isCentred:!0,status:Te&&Ve?"playing":Te&&!Ve?"paused":"hidden",isTouchDevice:dt}),ft=Oe||Te?null:f.createElement(nt,{play:We.playVideo,isCentered:!0,isSmall:Ee.smallPlayButton,autoPlay:it}),$e=t()(De?ce:"",Te&&!dt?ue:"");ct&&(Ne=(0,v.s)(ct.reference,(0,I.q)(p.Y.PerthNow),!1));const o=()=>{We.handleMuteToggle()},V=!oe.showTitleOverlay&&Qe?f.createElement(pt.P,{variant:"vertical",positionState:{alignToTop:!0},isMuted:oe.isMuted,action:o}):null;return f.createElement(f.Fragment,null,je===!0&&f.createElement(E,{onClick:()=>{He===!0?(ze?.(!1),We.playVideo()):(ze?.(!0),We.pauseVideo())}},He===!0?f.createElement(ot.o,{stroke:b.colorsPN.fill.base,width:24,height:24}):f.createElement(U,null)),Ne&&f.createElement("style",{dangerouslySetInnerHTML:{__html:`
22                            @media print {
23                                .${h.BI}::before {
24                                    content: url("${Ne}");
25                                    max-width: 600px;
26                                }
27                            }`}}),f.createElement(h.d4,{className:P,compactMode:Ee.compactMode,hide:He&&Ee.compactMode},ft,f.createElement(m,{...yt,ref:st,posterImage:Ne,className:$e,isStickyVideo:je,isVerticalVideo:Qe},St,Be,ge,V)))}}),2601:(function(C,x,e){"use strict";
27e.r(x),e.d(x,{WebArticleVideo:function(){return ot},default:function(){return pt}});var v=e(30668),p=e(42305),f=e(91436),S=e(42860),t=e(50183),h=e(14041),w=e(81786),I=e(692),a=e(26228),s=e(39938),y=e(5808),g=e(59562),l=e(73444),b=e(86725),W=e(19609),r=e(2182),B=e(63533),N=e(78643),ne=e(43329),ye=e(87244),j=e(95779);const de=(0,r.A)("a",{target:"e1y0p5pi2",label:"SevenPlusBtn"})(({})=>[{width:"100%",height:(0,B.g)(38),backgroundColor:j.tokens.sevennews.colors.palette.articlesV2.buttonBackground,display:"flex",justifyContent:"center",alignItems:"center",borderRadius:(0,B.g)(3),textDecoration:"none",marginTop:(0,B.g)(N.q.sevennews.margins.lg),marginBottom:(0,B.g)(10),"&:hover":{cursor:"pointer"},[(0,ne.C9)("xs")]:{width:"188px"}}],""),pe=(0,r.A)("p",{target:"e1y0p5pi1",label:"SevenPlusBtnHeading"})(({})=>[{fontFamily:ye.l.sevennews.sansSerif,color:j.tokens.sevennews.colors.palette.black,fontWeight:400,fontSize:(0,B.g)(14),lineHeight:(0,B.g)(18),textDecoration:"none"}],""),fe=(0,r.A)("img",{target:"e1y0p5pi0",label:"SevenPlusIcon"})({width:(0,B.g)(21),marginLeft:(0,B.g)(10)},""),ee=e(41576),Q=({URL:P})=>h.createElement(de,{target:"_blank",href:P},h.createElement(pe,null,"Stream free on"),h.createElement(fe,{src:ee,alt:"7plus logo"}));Q.displayName="SevenPlusArticleButton";var Ie=e(5631),xe=e(59378),m=e(39217),E=e(33957),U=e(38628),_,ae;const te=()=>{},Ae={buttonSlotElement:null,setButtonSlotElement:te,expandedPlayerSlotElement:null,setExpandedPlayerSlotElement:te},me=(0,h.createContext)(Ae);function _e(){return(0,h.useContext)(me)}function Me({children:P}){const[ce,ue]=_(null),[A,T]=_(null);return ae.createElement(me.Provider,{value:{buttonSlotElement:ce,setButtonSlotElement:ue,expandedPlayerSlotElement:A,setExpandedPlayerSlotElement:T}},P)}var Re=e(5196);const Ke=(0,r.A)("div",{target:"eaxzjat0",label:"StyledTvGuideContainer"})(({theme:P})=>({display:"flex",justifyContent:"center",paddingTop:(0,B.g)(50),"& #tvguidetonight-widget-channels":{height:(0,B.g)(417),width:"100%",border:"none"}}),"");function et(){return h.createElement(Ke,null,h.createElement("iframe",{id:"tvguidetonight-widget-channels",src:"https://tvguidetonight.com.au/widgets/plus-channels.html",title:""}))}function Ge(P){const ce=[{id:"entertainment/sas-australia",url:"https://7plus.com.au/sas-australia?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=sas-australia"},{id:"entertainment/dancing-with-the-stars",url:"https://7plus.com.au/dancing-with-the-stars-all-stars?utm_source=7NEWS&utm_medium=footer-button&utm_campaign=DWTS"},{id:"entertainment/home-and-away",url:"https://7plus.com.au/home-and-away?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=home-and-away"},{id:"entertainment/the-voice-australia",url:"https://7plus.com.au/the-voice?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=the-voice"},{id:"entertainment/big-brother-australia",url:"https://7plus.com.au/big-brother?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=big-brother"},{id:"entertainment/kitchen-nightmares-australia",url:"https://7plus.com.au/kitchen-nightmares-australia?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=kitchen-nightmares-australia"},{id:"entertainment/agt",url:"https://7plus.com.au/australias-got-talent?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=australias-got-talent"},{id:"entertainment/australian-idol",url:"https://7plus.com.au/australian-idol?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=australian-idol"},{id:"entertainment/heartbreak-island",url:"https://7plus.com.au/heartbreak-island-australia?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=heartbreak-island-aus"},{id:"entertainment/my-kitchen-rules",url:"https://7plus.com.au/my-kitchen-rules?utm_source=7NEWS&utm_medium=stream-free-button&utm_campaign=mkr-article-page"},{id:"entertainment/farmer-wants-a-wife",url:"https://7plus.com.au/farmer-wants-a-wife?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=farmer-wants-a-wife"},{id:"sport/aflw",url:"https://7plus.com.au/aflw?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=aflw-article"},{id:"sport/afl",url:"https://7plus.com.au/afl?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=afl-article"},{id:"sport/cricket",url:"https://7plus.com.au/cricket?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=cricket"},{id:"sport/surfing",url:"https://7plus.com.au/surfing?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=surfing"},{id:"sport/motorsport",url:"https://7plus.com.au/motorsport?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=motorsport"},{id:"sport/horse-racing",url:"https://7plus.com.au/horse-racing?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=horse-racing"},{id:"sport/nfl",url:"https://7plus.com.au/nfl?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=nfl"},{id:"sport/golf",url:"https://7plus.com.au/golf?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=golf"},{id:"sport/cycling",url:"https://7plus.com.au/cycling?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=cycling"},{id:"sport/athletics",url:"https://7plus.com.au/athletics?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=athletics"},{id:"sport",url:"https://7plus.com.au/sport?utm_source=7NEWS&utm_medium=bottom-7plus-button&utm_campaign=sport-article"},{id:"sunrise",url:"https://7plus.com.au/sunrise?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=sunrise-articles"},{id:"entertainment",url:"https://7plus.com.au/shows?utm_source=7NEWS&utm_medium=stream-free-bottom-article-button&utm_campaign=entertainment-articles"},{id:"the-morning-show",url:"https://7plus.com.au/the-morning-show?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=the-morning-show-articles"}
27,{id:"technology",url:"https://7plus.com.au/news?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=tech-articles"},{id:"news/world",url:"https://7plus.com.au/news?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=world-articles"},{id:"news/nsw",url:"https://7plus.com.au/seven-nsw-regional-news?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=news-nsw-articles"},{id:"news/vic",url:"https://7plus.com.au/7news-border?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=news-vic-articles"},{id:"news/qld",url:"https://7plus.com.au/seven-local-news-sunshine-coast?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=news-qld-articles"},{id:"news/wa",url:"https://7plus.com.au/7news-regional-wa?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=news-wa-articles"},{id:"news",url:"https://7plus.com.au/news?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=news-articles"},{id:"business",url:"https://7plus.com.au/news?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=business-articles"},{id:"weather",url:"https://7plus.com.au/news?utm_source=7NEWS&utm_medium=end-of-article-button&utm_campaign=weather-articles"},{id:"spotlight",url:"https://7plus.com.au/7news-spotlight?utm_source=7NEWS&utm_medium=7plus-footer-button&utm_campaign=spotlight-article-page"},{id:"lifestyle",url:"https://7plus.com.au/lifestyle?utm_source=7NEWS&utm_medium=7plus-footer-button&utm_campaign=lifestyle"}],ue=[P],A=P.indexOf("/");if(A!==-1){const T=P.substring(0,A);ue.push(T)}for(const T of ue){const ge=ce.find(oe=>oe.id===T);if(ge)return{isEnabled:!0,buttonLink:ge.url}}return{isEnabled:!1}}const tt="sticky-container",Xe=({children:P})=>h.createElement(U.IK,{largeGap:!0},P),Pe=P=>{const{isTabletOrMobile:ce}=(0,W.k)(),{buttonSlotElement:ue,expandedPlayerSlotElement:A}=_e(),T=P.data,ge=T.content,oe=(0,Re.T_)(T),Ee=P.targetedContent&&P.targetedContent.position==="inline"?P.targetedContent.element:void 0,We=(0,t.Hn)(),it=(0,y.XM)(We),Qe=T.kind==="event",Oe=(0,l.n)(T);(0,h.useEffect)(()=>{Oe&&P.onEvent({type:g.b.articleAvailable,originator:"SevenNewsPublication",payload:Oe})},[]);const we=()=>{const Ve=Ge(T.primaryTopic.id);if(!(T.kind=="event")&&Ve.isEnabled&&Ve.buttonLink)return h.createElement(Q,{URL:Ve.buttonLink})},ve=h.createElement(xe.R,{blocks:ge,showInlineVideoTitles:!0,targetedContentElement:Ee,inlinePositionedContent:P.inlinePositionedContent,onEvent:P.onEvent,log:P.log,publicationKind:T.kind,ttsPresignedUrls:T.ttsPresignedUrls,ttsSlotElement:ue,ttsExpandedSlotElement:A,publicationPathname:P.location.pathname,adUnitPath:P.adState.targeting.adUnitPath,getVideoQueue:P.getVideoQueue}),Se=oe&&h.createElement(U.IK,{largeGap:!1},h.createElement(m.c,{text:["This article was originally published from "," and appears with permission."],link:oe,source:T.source})),Te=(0,y.G7)(it,"7-news-tv-guide-widgets")&&ce&&T.primaryTopic.id.includes("entertainment/tv");return h.createElement(U.eH,null,h.createElement(U.IK,{largeGap:!0},h.createElement("div",null,ge&&h.createElement(U.TL,null,ve,Se,we()),Qe&&h.createElement(E.Lt,{publication:T,log:P.log,adState:P.adState,onEvent:P.onEvent}))),h.createElement(b.Pubfeed,{publication:T,WrappingComponent:Xe}),h.createElement(U.IK,null,h.createElement(Ie.Y,{primaryTopic:T.primaryTopic,secondaryTopics:T.secondaryTopics})),Te&&h.createElement(et,null))};Pe.displayName="SevenNewsPublication";var ke=e(72307),rt=e(30011),nt=e(57185),at=e(54586);const ht=P=>{const ce=(0,v.u)(),[ue,A]=(0,h.useState)(!1),[T,ge]=(0,h.useState)(!!P.autoplayOptions),[oe,Ee]=(0,h.useState)(!1),We=(0,w.e)(),it=(0,p.v)({consentRequiredLevel:f.Rg.Advertising|f.Rg.Analytics}),je=We||it,Qe=Be=>{Be.type==="video.play"&&ge(!0),P.onEvent(Be)};(0,h.useEffect)(()=>{const Be=document.querySelector(".sticky-cell"),ft=M=>{!!(P.viewportWidth>=at.f.md&&T)&&Be&&M[0].isIntersecting===!1?(Be.classList.add(s.im),A(!0)):(Be&&Be.classList.remove(s.im),A(!1))};let $e;const V={rootMargin:`${Be?.offsetHeight||630}px 0px 0px 0px`,threshold:.05};if(P.isVideoStickyEnabled&&"IntersectionObserver"in window){const M=document.querySelector(".sticky-cell");M&&M.style.setProperty("--stickyHeight",`${M.getBoundingClientRect().height+20}px`),$e=new IntersectionObserver(ft,V);const F=document.querySelector(".sticky-top");if(F&&$e.observe(F),ce.kind===S.Y.SevenNews){const k=P.showPlaylist?180:0,D=document.querySelector(`.${tt}`),G=document.querySelector(`.${a.e}`),z=document.querySelector(".sticky-container .figcaption");D&&D.style.setProperty("--stickyContainerHeight",`${G.getBoundingClientRect().height+z.getBoundingClientRect().height+k+22.5}px`)}}return()=>{$e&&$e.disconnect()}},[P.isVideoStickyEnabled,P.viewportWidth,P.showPlaylist,ce.kind,T]);const Oe=(0,t.iT)("magnite-header-tag-wrapper"),{byline:we,captionText:ve,credit:Se,kind:Te="video",videoDetails:Ve,isHeroVideo:ie,isVerticalVideo:Le,autoplayOptions:mt,autoplayNextOptions:Ue,figcaptionRenderOptions:De,playButtonText:Z,isVideoHub:He,publicUrl:ze,publicationPathname:dt,onPlayNextVideo:st,
27setVideoRendered:yt,forcedMuted:ct,onMuteChange:Ne}=P;if(!Ve.id)return null;if(!je)return h.createElement(ke.V,null);const Je=P.showPlaylist&&(!ue||ce.kind==="sevennews"),Ze=ue||P.videoOptions.compactMode,St=h.createElement(I.C,{ref:yt,videoDetails:Ve,showTitles:P.showTitles,pauseOverlay:P.pauseOverlay,autoplayOptions:mt,autoplayNextOptions:Ue,playWhenReady:P.playWhenReady,videoOptions:{...P.videoOptions,compactMode:Ze,isMagniteEnabled:Oe},innerRef:P.innerRef,getVideoQueue:P.getVideoQueue,onEvent:P.onEvent,pagePosition:P.pagePosition??(P.isHeroVideo?"hero-video":"inline-article"),onUserInteraction:Qe,showPlaylist:Je,playButtonText:He?"Play":Z||void 0,hideSticky:oe,setHideSticky:Ee,isVideoHub:He,publicUrl:ze,currentPath:dt,onPlayNextVideo:st,adElement:P.adElement,forcedMuted:ct,onMuteChange:Ne});return h.createElement(s.xn,{isHeroVideo:ie,isVerticalVideo:Le,className:s.fw},h.createElement(s.Mq,{isHeroVideo:ie},St),De==="hidden"?h.createElement(s.aB,{isHeroVideo:ie}):Ze?!oe&&(ve||Se||we)&&h.createElement(s.aB,{byline:we,captionText:ve,credit:ie?void 0:Se,isHeroVideo:ie,kind:Te,figcaptionLayout:De,sticky:!0}):(ve||Se||we)&&h.createElement(s.aB,{byline:we,captionText:ve,credit:ie?void 0:Se,isHeroVideo:ie,kind:Te,figcaptionLayout:De}))},ot=(0,rt.Y)((0,nt.I)(ht));var pt=ot}),99870:(function(C,x){var e,v;/*!
28  Copyright (c) 2018 Jed Watson.
29  Licensed under the MIT License (MIT), see
30  http://jedwatson.github.io/classnames
31*/(function(){"use strict";var p={}.hasOwnProperty;function f(){for(var S=[],t=0;t<arguments.length;t++){var h=arguments[t];if(h){var w=typeof h;if(w==="string"||w==="number")S.push(h);else if(Array.isArray(h)){if(h.length){var I=f.apply(null,h);I&&S.push(I)}}else if(w==="object")if(h.toString===Object.prototype.toString)for(var a in h)p.call(h,a)&&h[a]&&S.push(a);else S.push(h.toString())}}return S.join(" ")}C.exports?(f.default=f,C.exports=f):(e=[],v=(function(){return f}).apply(x,e),v!==void 0&&(C.exports=v))})()}),40120:(function(C,x,e){C.exports=e.p+"static/js/1c7c272eddb12e4592405121f163cc78.js"}),65650:(function(C,x,e){var v=e(78942),p=v.Symbol;C.exports=p}),87379:(function(C,x,e){var v=e(65650),p=e(8870),f=e(29005),S="[object Null]",t="[object Undefined]",h=v?v.toStringTag:void 0;function w(I){return I==null?I===void 0?t:S:h&&h in Object(I)?p(I):f(I)}C.exports=w}),86403:(function(C,x,e){var v=e(62945),p=/^\s+/;function f(S){return S&&S.slice(0,v(S)+1).replace(p,"")}C.exports=f}),74967:(function(C,x,e){var v=typeof e.g=="object"&&e.g&&e.g.Object===Object&&e.g;C.exports=v}),8870:(function(C,x,e){var v=e(65650),p=Object.prototype,f=p.hasOwnProperty,S=p.toString,t=v?v.toStringTag:void 0;function h(w){var I=f.call(w,t),a=w[t];try{w[t]=void 0;var s=!0}catch{}var y=S.call(w);return s&&(I?w[t]=a:delete w[t]),y}C.exports=h}),29005:(function(C){var x=Object.prototype,e=x.toString;function v(p){return e.call(p)}C.exports=v}),78942:(function(C,x,e){var v=e(74967),p=typeof self=="object"&&self&&self.Object===Object&&self,f=v||p||Function("return this")();C.exports=f}),62945:(function(C){var x=/\s/;function e(v){for(var p=v.length;p--&&x.test(v.charAt(p)););return p}C.exports=e}),12784:(function(C,x,e){var v=e(41580),p=e(94495),f=e(6131),S="Expected a function",t=Math.max,h=Math.min;function w(I,a,s){var y,g,l,b,W,r,B=0,N=!1,ne=!1,ye=!0;if(typeof I!="function")throw new TypeError(S);a=f(a)||0,v(s)&&(N=!!s.leading,ne="maxWait"in s,l=ne?t(f(s.maxWait)||0,a):l,ye="trailing"in s?!!s.trailing:ye);function j(E){var U=y,_=g;return y=g=void 0,B=E,b=I.apply(_,U),b}function de(E){return B=E,W=setTimeout(ee,a),N?j(E):b}function pe(E){var U=E-r,_=E-B,ae=a-U;return ne?h(ae,l-_):ae}function fe(E){var U=E-r,_=E-B;return r===void 0||U>=a||U<0||ne&&_>=l}function ee(){var E=p();if(fe(E))return Q(E);W=setTimeout(ee,pe(E))}function Q(E){return W=void 0,ye&&y?j(E):(y=g=void 0,b)}function Ie(){W!==void 0&&clearTimeout(W),B=0,y=r=g=W=void 0}function xe(){return W===void 0?b:Q(p())}function m(){var E=p(),U=fe(E);if(y=arguments,g=this,r=E,U){if(W===void 0)return de(r);if(ne)return clearTimeout(W),W=setTimeout(ee,a),j(r)}return W===void 0&&(W=setTimeout(ee,a)),b}return m.cancel=Ie,m.flush=xe,m}C.exports=w}),41580:(function(C){function x(e){var v=typeof e;return e!=null&&(v=="object"||v=="function")}C.exports=x}),80547:(function(C){function x(e){return e!=null&&typeof e=="object"}C.exports=x}),51187:(function(C,x,e){var v=e(87379),p=e(80547),f="[object Symbol]";function S(t){return typeof t=="symbol"||p(t)&&v(t)==f}C.exports=S}),94495:(function(C,x,e){var v=e(78942),p=function(){return v.Date.now()};C.exports=p}),97331:(function(C,x,e){var v=e(12784),p=e(41580),f="Expected a function";function S(t,h,w){var I=!0,a=!0;if(typeof t!="function")throw new TypeError(f);return p(w)&&(I="leading"in w?!!w.leading:I,a="trailing"in w?!!w.trailing:a),v(t,h,{leading:I,maxWait:h,trailing:a})}C.exports=S}),6131:(function(C,x,e){var v=e(86403),p=e(41580),f=e(51187),S=NaN,t=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,w=/^0o[0-7]+$/i,I=parseInt;function a(s){if(typeof s=="number")return s;if(f(s))return S;if(p(s)){var y=typeof s.valueOf=="function"?s.valueOf():s;
31s=p(y)?y+"":y}if(typeof s!="string")return s===0?s:+s;s=v(s);var g=h.test(s);return g||w.test(s)?I(s.slice(2),g?2:8):t.test(s)?S:+s}C.exports=a}),90391:(function(C,x,e){"use strict";C.exports=e.p+"static/media/playButton.7efda53a..svg"}),41576:(function(C,x,e){"use strict";C.exports=e.p+"static/media/7plus.4273d9c8..png"})}]);
32
33//# sourceMappingURL=ArticleVideo-web_b9fd2c934fb1cf15811c.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.