"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([["4242"],{76931:function(e,i,t){t.d(i,{W2:()=>d,YS:()=>l,nk:()=>s,r3:()=>r});var o=t(79644),n=t(78943),a=t(86099);let r=(0,n.iv)(["@media ","{margin-left:-20px;margin-right:-20px;}@media ","{left:",";position:relative;width:",";}@media ","{left:",";width:",";}.liveArticle &{@media ","{margin-left:0;}left:0;width:100%;}.featureArticle &{@media ","{left:",";width:",";}@media ","{left:",";width:",";}}"],o.Z.query.smallMax,o.Z.query.medium,o.Z.columnOffset(-1,10),o.Z.columnWidth(12,10),o.Z.query.large,o.Z.columnOffset(-1,7),o.Z.columnWidth(8,7),o.Z.query.smallMax,o.Z.query.medium,o.Z.columnOffset(-1,10),o.Z.columnWidth(12,10),o.Z.query.large,o.Z.columnOffset(-1,7),o.Z.columnWidth(9,7)),d=(0,n.ZP)(a.c).withConfig({componentId:"sc-aef2b100-0"})(["margin-bottom:0;@media ","{display:none;}",";"],o.Z.query.printOnly,r),s=n.ZP.div.withConfig({componentId:"sc-aef2b100-1"})(["aspect-ratio:16 / 9;position:relative;width:100%;video{height:100%;width:100%;}.video-js{height:100%;opacity:0;width:100%;&.vjs-ad-playing .vjs-play-progress{background-color:",";}&.vjs-ad-controls.vjs-ad-playing.vjs-vpaid-playing .vjs-control-bar.vjs-ad-control-bar{display:flex;}&.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive:hover .vjs-control-bar.vjs-ad-control-bar{transform:translateY(0);}&.vjs-has-started.vjs-paused .vjs-control-bar.vjs-control-bar.vjs-control-bar{transform:translateY(0);z-index:",";}&.vjs-controls-enabled{opacity:1;transition:opacity 300ms ease-in-out 200ms;}.vjs-big-play-button,.vjs-loading-spinner{display:none;}.videoAdvertisementCaption{color:",";font-family:",";margin:auto 2em;text-transform:uppercase;.short{display:block;@media ","{display:none;}}.long{display:none;@media ","{display:block;}}}}"],e=>e.theme.colorOrange,o.Z.zIndex.default,e=>e.theme.colorOrange,e=>e.theme.fontPrimary,o.Z.query.medium,o.Z.query.medium),l=n.ZP.p.withConfig({componentId:"sc-aef2b100-2"})(["background-color:",";color:",";font-family:",";min-height:36px;padding:8px 0;&&{font-size:15px;line-height:20px;}@media ","{padding-left:20px;padding-right:20px;}"],e=>e.$isHeroPinnedPost?"transparent":"#fff",e=>e.theme.colorMid,e=>e.theme.fontPrimary,o.Z.query.smallMax)},73612:function(e,i,t){t.r(i),t.d(i,{default:()=>eJ});var o,n,a=t(52322),r=t(50041),d=t(17845),s=t(56111),l=t(41865),c=t(11402),p=t(55670),g=t(81924),m=t(63490),u=t(84641),A=t(69414),h=t(2784),f=t(53896),w=t(83949),x=t(45285),C=t(79916),v=t(10519),y=t(89311),b=t(3488),E=t(79644),I=t(78943),B=t(76931);let Y=I.ZP.div.withConfig({componentId:"sc-4a0b1345-0"})(["animation:slideDown 250ms linear;border-bottom:1px solid ",";border-top:1px solid ",";margin-top:0;overflow:hidden;padding:16px 0;position:relative;@media ","{overflow-x:scroll;padding:16px;}@media ","{padding:16px 40px;}@keyframes slideDown{from{height:0;}to{height:150px;}}",";"],e=>e.theme.colorLightAccent,e=>e.theme.colorLightAccent,E.Z.query.smallMax,E.Z.query.medium,B.r3),M=I.ZP.button.withConfig({componentId:"sc-4a0b1345-1"})(["height:100%;position:absolute;top:0;width:32px;@media ","{display:none;}&:hover{cursor:pointer;}&[disabled]{cursor:not-allowed;svg{color:",";}}"],E.Z.query.smallMax,e=>e.theme.colorMidAccent),k=(0,I.ZP)(M).withConfig({componentId:"sc-4a0b1345-2"})(["background:linear-gradient(to right,rgb(255 255 255 / 0%) 0%,rgb(255 255 255 / 100%) 33%);right:0;"]),j=(0,I.ZP)(M).withConfig({componentId:"sc-4a0b1345-3"})(["background:linear-gradient(to left,rgb(255 255 255 / 0%) 0%,rgb(255 255 255 / 100%) 33%);left:0;"]),P=I.ZP.div.withConfig({componentId:"sc-4a0b1345-4"})(["display:flex;flex-flow:row nowrap;gap:","px;height:68px;margin-left:","px;transition:margin-left 500ms ease-in-out;width:fit-content;@media ","{margin-left:","px;}"],32,e=>-(296*e.$slide*1),E.Z.query.medium,e=>-(320*e.$slide*1)),T=I.ZP.div.withConfig({componentId:"sc-4a0b1345-5"})(["align-items:flex-start;gap:12px;width:","px;@media ","{width:","px;}h3{line-height:24px;margin-top:0;padding-top:0;}"],264,E.Z.query.medium,288),Z=({onSelect:e,pos:i,videos:t})=>{let o={headlineSizes:[13,13,13],imagePositions:"left",imageSizes:{large:{aspectRatio:"16x9",width:120},medium:{aspectRatio:"16x9",width:120},small:{aspectRatio:"16x9",width:120}}},[n,r]=(0,h.useState)(0);return((0,h.useEffect)(()=>{r(Math.max(i,0))},[i]),(t?.length??0)===0)?null:(0,a.jsxs)(Y,{"data-testid":"video-carousel",children:[(0,a.jsx)(P,{$slide:n,"data-testid":"video-stories",children:t.map((i,t)=>(0,a.jsx)(T,{as:b.Z,asset:i,"data-testid":`video-story-tile-${t}`,displayOptions:o,linkAttributes:{onClick:o=>{o.preventDefault(),e(`${Number.parseInt(i.publicId,36)}`,t)}},position:t+1},i.id))}),(0,a.jsx)(j,{"aria-label":"Previous video","data-testid":"prev-button",disabled:0===n,onClick:()=>{(0,g.Gi)("prev btn clicked"),n>0&&r(e=>e-1)},title:"Previous video",children:(0,a.jsx)(v.Z,{})}),(0,a.jsx)(k,{"aria-label":"Next video","data-testid":"next-button",disabled:n===t.length-1,onClick:()=>{(0,g.Gi)("next btn clicked"),ne+1)},title:"Next video",children:(0,a.jsx)(y.Z,{})})]})},L="countdown",D="none",S="pause",Q="replay",F="start",H="up-next";var J=t(70992),R=t(16453),O=t(81063),q=t(27297),G=t(58491);let U=e=>new q.ZP("1900-01-01T00:00:00").add(e,"seconds").format(`${q.DZ}:${q.kG}`),V=I.ZP.div.withConfig({componentId:"sc-c645a382-0"})(["display:flex;flex-direction:column;height:100%;left:0;padding:0;position:absolute;top:0;width:100%;"]),K=(0,I.ZP)(V).withConfig({componentId:"sc-dc0be724-0"})(["justify-content:end;"]),X=I.ZP.div.withConfig({componentId:"sc-dc0be724-1"})(["background:linear-gradient( to top,hsl(0deg 0% 0% / 80%) 0%,hsl(0deg 0% 0% / 75.5%) 14%,hsl(0deg 0% 0% / 70.4%) 26.2%,hsl(0deg 0% 0% / 58.9%) 45.7%,hsl(0deg 0% 0% / 46.3%) 60.1%,hsl(0deg 0% 0% / 33.5%) 70.8%,hsl(0deg 0% 0% / 21.5%) 79.2%,hsl(0deg 0% 0% / 10.9%) 86.8%,hsl(0deg 0% 0% / 6.5%) 90.8%,hsl(0deg 0% 0% / 2.9%) 95.1%,hsl(0deg 0% 0% / 0%) 100% );color:#fff;display:flex;text-align:left;width:100%;"]),W=I.ZP.div.withConfig({componentId:"sc-dc0be724-2"})(["align-items:center;border:2px solid #fff;border-radius:50%;cursor:pointer;display:inline-flex;flex-shrink:0;height:56px;justify-content:center;margin:16px 16px 16px 20px;width:56px;@media ","{height:80px;margin:32px 20px 24px 32px;width:80px;}&:hover{background:rgb(0 0 0 / 50%);}svg:first-of-type{color:#fff;@media ","{height:30px;width:30px;}}"],E.Z.query.medium,E.Z.query.smallMax),N=I.ZP.div.withConfig({componentId:"sc-dc0be724-3"})(["display:flex;flex-direction:column;justify-content:center;"]),z=I.ZP.p.withConfig({componentId:"sc-dc0be724-4"})(["font-family:",";font-weight:bold;margin-bottom:4px;&&{font-size:13px;line-height:1.3;}"],e=>e.theme.fontPrimary),$=I.ZP.p.withConfig({componentId:"sc-dc0be724-5"})(["font-family:",";padding-right:20px;&&{font-size:13px;line-height:1.3;@media ","{font-size:18px;}}"],e=>e.theme.fontTertiary,E.Z.query.medium),_=I.ZP.p.withConfig({componentId:"sc-7613383c-0"})(["font-family:",";&&{font-size:16px;line-height:1.3;}"],e=>e.theme.fontPrimary),ee=I.ZP.a.withConfig({componentId:"sc-7613383c-1"})(["&&{color:",";cursor:pointer;&:hover{text-decoration:underline;}}"],e=>e.theme.colorVideoLink);function ei(){return(ei=Object.assign?Object.assign.bind():function(e){for(var i=1;ie.$duration),ea=({active:e,count:i,period:t})=>(0,a.jsxs)(eo,{children:[(0,a.jsx)(et,{}),(0,a.jsxs)(en,{$duration:`${t}s`,fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 80 80",children:[(0,a.jsx)("circle",{cx:"50%",cy:"50%",r:"50%",stroke:"rgba(255,255,255,0.2)"}),(0,a.jsx)("circle",{className:e&&i{t.current=e},[e]),(0,h.useEffect)(()=>{if("number"==typeof i&&i>0){let e=setInterval(function(){t.current&&t.current()},i);return()=>clearInterval(e)}},[i])},ed=(e,i,t)=>{let[o,n]=(0,h.useState)(e),[a,r]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{r(i&&o>=0),i||-1===o||n(e)},[o,i,e]),er(()=>{0===o&&t(),n(e=>e-1)},1e3*!!a),{active:a,count:o,onCancel:e=>{e.stopPropagation(),n(-1)}}},es=({contentWallVisible:e,duration:i,headline:t,onClick:o})=>{let[n,r]=(0,h.useState)(!0),{inView:d,ref:s}=(0,J.YD)({threshold:.5}),{active:l,count:c,onCancel:p}=ed(5,!e&&d,()=>{o(!0),r(!1)});return n&&(0,a.jsx)(K,{as:"button",onClick:()=>{o(!1),r(!1)},ref:s,children:(0,a.jsxs)(X,{children:[(0,a.jsx)(ea,{active:l,count:c,period:5}),(0,a.jsxs)(N,{children:[i&&(0,a.jsx)(z,{children:U(Math.floor(i/1e3))}),(0,a.jsx)($,{children:t}),l&&(0,a.jsxs)(_,{children:["Playing in ",Math.min(5,c+1)," ... ",(0,a.jsx)(ee,{onClick:p,children:"Don't play"})]})]})]})})};var el=t(96314);let ec=(0,I.ZP)(V).withConfig({componentId:"sc-21e218fa-0"})(["align-items:center;background-color:#000;justify-content:center;"]),ep=()=>(0,a.jsx)(ec,{children:(0,a.jsx)(el.Z,{inverse:!0,size:"60px"})}),eg=I.ZP.p.withConfig({componentId:"sc-bc5ec2c2-0"})(["background:linear-gradient( to bottom,hsl(0deg 0% 0% / 80%) 0%,hsl(0deg 0% 0% / 75.5%) 14%,hsl(0deg 0% 0% / 70.4%) 26.2%,hsl(0deg 0% 0% / 58.9%) 45.7%,hsl(0deg 0% 0% / 46.3%) 60.1%,hsl(0deg 0% 0% / 33.5%) 70.8%,hsl(0deg 0% 0% / 21.5%) 79.2%,hsl(0deg 0% 0% / 10.9%) 86.8%,hsl(0deg 0% 0% / 6.5%) 90.8%,hsl(0deg 0% 0% / 2.9%) 95.1%,hsl(0deg 0% 0% / 0%) 100% );color:#fff;font-family:",";font-size:16px;height:35%;padding:16px 20px 0;position:absolute;text-align:left;top:0;width:100%;"],e=>e.theme.fontTertiary),em=({headline:e,onClick:i})=>(0,a.jsx)(V,{as:"button",onClick:i,children:(0,a.jsx)(eg,{children:e})});function eu(){return(eu=Object.assign?Object.assign.bind():function(e){for(var i=1;i *{z-index:",";}"],e=>e.$poster,E.Z.zIndex.default),ef=I.ZP.p.withConfig({componentId:"sc-f0f00bd3-1"})(["font-family:",";font-weight:bold;letter-spacing:1px;text-transform:uppercase;&&{font-size:13px;line-height:1.3;}"],e=>e.theme.fontPrimary),ew=I.ZP.p.withConfig({componentId:"sc-f0f00bd3-2"})(["font-family:",";&&{font-size:16px;line-height:1.3;@media ","{font-size:20px;}}"],e=>e.theme.fontTertiary,E.Z.query.medium),ex=I.ZP.div.withConfig({componentId:"sc-f0f00bd3-3"})(["align-items:center;border:2px solid #fff;border-radius:50%;cursor:pointer;display:flex;height:56px;justify-content:center;width:56px;@media ","{height:80px;width:80px;}&:hover{background:rgb(255 255 255 / 50%);}svg{color:#fff;@media ","{height:30px;width:30px;}}"],E.Z.query.medium,E.Z.query.smallMax),eC=({headline:e,onClick:i,poster:t})=>(0,a.jsxs)(eh,{$poster:t,as:"button",onClick:i,children:[(0,a.jsx)(ef,{children:"Replay"}),(0,a.jsx)(ew,{children:e}),(0,a.jsx)(ex,{children:(0,a.jsx)(eA,{})})]}),ev=({duration:e,headline:i,onClick:t})=>{let[o,n]=(0,h.useState)(!0);return o&&(0,a.jsx)(K,{as:"button",onClick:()=>{t(),n(!1)},children:(0,a.jsxs)(X,{children:[(0,a.jsx)(W,{children:(0,a.jsx)(et,{})}),(0,a.jsxs)(N,{children:[e&&(0,a.jsx)(z,{children:U(Math.floor(e/1e3))}),(0,a.jsx)($,{children:i})]})]})})},ey=(0,I.ZP)(K).withConfig({componentId:"sc-a3eb3b45-0"})(["align-items:center;background-image:url(",");background-size:cover;color:#fff;font-family:",";justify-content:center;&::after{background-color:rgb(0 0 0 / 70%);content:'';display:block;height:100%;left:0;position:absolute;top:0;width:100%;}> *{z-index:",";}","{@media ","{height:40px;margin:8px;width:40px;svg:first-of-type{height:24px;width:24px;}}}"],e=>e.$poster,e=>e.theme.fontPrimary,E.Z.zIndex.default,W,E.Z.query.smallMax),eb=I.ZP.p.withConfig({componentId:"sc-a3eb3b45-1"})(["font-size:13px;font-weight:bold;line-height:22px;text-transform:uppercase;@media ","{line-height:24px;}"],E.Z.query.medium),eE=I.ZP.p.withConfig({componentId:"sc-a3eb3b45-2"})(["font-family:",";font-size:16px;line-height:19px;margin:0 20px 4px;@media ","{font-size:22px;line-height:24px;margin:8px 20px 12px;}"],e=>e.theme.fontTertiary,E.Z.query.medium),eI=I.ZP.p.withConfig({componentId:"sc-a3eb3b45-3"})(["font-size:13px;@media ","{font-size:16px;}"],E.Z.query.medium),eB=I.ZP.a.withConfig({componentId:"sc-a3eb3b45-4"})(["border:1px solid ",";border-radius:4px;cursor:pointer;font-size:13px;letter-spacing:1px;line-height:16px;margin-top:8px;padding:8px 16px;text-transform:uppercase;@media ","{margin-top:24px;padding:12px 24px;}"],e=>e.theme.colorLightAccent,E.Z.query.medium),eY=({contentWallVisible:e,headline:i,onClick:t,poster:o})=>{let[n,r]=(0,h.useState)(!0),{inView:d,ref:s}=(0,J.YD)({threshold:.5}),{active:l,count:c,onCancel:p}=ed(5,!e&&d,()=>{t(!0),r(!1)});return n&&(0,a.jsxs)(ey,{$poster:o,as:"button",onClick:()=>{t(!1),r(!1)},ref:s,children:[(0,a.jsx)(eb,{children:"Up next"}),(0,a.jsx)(eE,{children:i}),(0,a.jsx)(ea,{active:l,count:c,period:5}),l&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(eI,{children:["Playing in ",Math.min(5,c+1)," ... "]}),(0,a.jsx)(eB,{onClick:p,children:"Cancel"})]})]})},eM=e=>e.currentTime()/e.duration()*100,ek=e=>e?.mediainfo?.name||"",ej=(e,i,t="")=>{(0,g.L9)((0,g.yM)("video",e,i,0,t))},eP=(e,i,t)=>{e.pushAnalyticsEvent({event:e.EVENTS.VIDEO_EVENT,video_percent:(e=>{let i=eM(e);return i>=10&&i<25?10:25*Math.floor(i/25)})(i)||0,video_provider:"Brightcove",video_status:i.paused()?"pause":"play",video_title:i.mediainfo.name,video_url:window.location.href,...t})};var eT=t(45567),eZ=t(23539);let eL={kind:"Document",definitions:[{kind:"OperationDefinition",name:{kind:"Name",value:"MemberAndSubscriptionsDetailsQuery"},directives:[],variableDefinitions:[],operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"autoplay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}]},alias:{kind:"Name",value:"preferences"}}]}}],loc:{start:0,end:91,source:{body:"query MemberAndSubscriptionsDetailsQuery{preferences:account{autoplay error{message type}}}"}}};var eD=t(49464);let eS=(e,i)=>{!e&&i&&void 0!==i?.ima3?.settings&&window.dataLayerHybrid?.page&&window.dataLayerHybrid?.brand?.name&&window.dataLayerHybrid?.adserving&&(i.ima3.settings.serverUrl=(e=>{let i=window.dataLayerHybrid.adserving.brand,{hierarchy:t}=window.dataLayerHybrid.adserving.keywords,o=O.CR,n=O.Pp,a=(0,R._N)().value||"",r={};if(window.dataLayerHybrid&&(r.deployEnv=window.dataLayerHybrid.env,window.dataLayerHybrid.client?.deviceType&&(r.layout=window.dataLayerHybrid.client?.deviceType),window.dataLayerHybrid.page)){let e=window.dataLayerHybrid.page;e.author&&(r.author=e.author),e.updateDate&&(r.effectiveDate=e.updateDate),e.publishDate&&(r.issueDate=e.publishDate),e.name&&(r.pageName=e.name),e.viewID&&(r.pageViewId=e.viewID),e.sysEnv&&(r.sysEnv=e.sysEnv),e.template&&(r.template=e.template)}let d={contentid:window.dataLayerHybrid?.page.pageId,csub:window.dataLayerHybrid?.user?.memberType,nuid:window.dataLayerHybrid?.adserving?.keywords.nuid,tag:window.dataLayerHybrid?.adserving?.keywords.tags[0]||"",u:"userId",...r,pagelevel01:t.pagelevel01,pagelevel02:t.pagelevel02,pagelevel03:t.pagelevel03||"",pagelevel04:t.pagelevel04||"",pagetype:window.dataLayerHybrid.adserving.keywords.pageType.toLowerCase(),playerpos:1};e&&(d.blank="dcdsadsuppress");let s=G.Z.parseUrl(window.location.href).query;s.adcall&&(i="adtester",d.adcallkw=s.adcallkw);let l=Object.keys(d).map(e=>`${e}=${d[e]}`).join("&");l=encodeURIComponent(l);let{pagelevel02:c,pagelevel03:p}=d,g=`/${o}/${i}/${c}${p?`/${p}`:""}`,m=encodeURIComponent(`${window.location.origin}${window.location.pathname}`);return`//pubads.g.doubleclick.net/gampad/ads?iu=${g}&sz=640x480&cust_params=${l}&impl=s&gdfp_req=1&env=vp&output=xml_vmap1&unviewed_position_start=1&url=${m}&cmsid=${n}&description_url=${m}&correlator={timestamp}&ad_rule=1&vid={mediainfo.id}&playerid={player.id}&ppid=${a}&plcmt=${O.oO}`})(e))},eQ=(e,i)=>{i||(e.ima3?.adsManager?.destroy?.(),e.ads?.endLinearAdMode?.())},eF=e=>{let i=e.current?.querySelector(".videoAdvertisementCaption");i?.parentNode&&i.parentNode.removeChild(i)},eH=({ads:e,container:i,featureFlags:t,playNow:o,player:n,setAds:a,setCarouselPos:r,setInfo:s,setOverlay:l,videoId:c,videoPos:p})=>{try{n.playlist||(n.playlist={}),r(p),eQ(n,e.isAdsSuppressed),eF(i),n.pause(),n.catalog.getVideo(c,(i,t)=>{if(i)throw i;if(!e.isAdsSuppressed){let i=!1;e.isAdViewed&&(eS(!e.isAdsSuppressed,n),a({...e,isAdsSuppressed:!e.isAdsSuppressed}),i=!0),i&&"function"==typeof n.ima3?.adsManager?.init&&n.ima3.adsManager.init()}n.catalog.load(t),(0,g.Gi)("carousel video clicked",`${p}:${n.mediainfo.name}`);let{description:r,duration:d,name:c,poster:m,publishedAt:u}=t;s({description:r,duration:d,name:c,poster:m,publishedAt:u}),o&&(l(S),n.play())})}catch(e){A.Y.error("Unable to get video catalog",d.log.EventType("video","changeVideo"),d.log.Error(e),d.log.String("description",`Video id: ${c}`))}},eJ=({autoPlayDisabled:e=!1,className:i="",contentWallVisible:t,isHeroPinnedPost:o=!1,onReady:n,provider:{id:g,type:v},suppressAds:y,upNextVideosDisabled:b=!1})=>{let{BRIGHTCOVE:{ACCOUNT_ID:E,PLAYER_ID:I},brand:Y}=(0,s.Z)(),M=(0,l.Z)(),k=(0,c.ZP)(),{autoplay:j,loading:P}=(e=>{let{data:i,error:t,loading:o}=(0,eZ.a)(eL,{context:{clientName:"api-front"},fetchPolicy:"no-cache",skip:e,ssr:!1});return(t&&!eT.L.is(t)&&A.Y.error("Unable to fetch member preference",d.log.EventType("account","preference"),d.log.Error(t)),!i&&!o||eT.L.is(t)||i?.preferences?.error)?{autoplay:!0,loading:!1}:{autoplay:i?.preferences.autoplay,loading:o}})(!(0,w.aF)()),T=(0,w.cN)()&&!P,J=!e&&j&&!t,R=(0,x.d)()&&!P,O=(0,h.useRef)(null);(0,eD.Z)(O);let[q,G]=(0,h.useState)(!1),[U,V]=(0,h.useState)(),[K,X]=(0,h.useState)(F),[W,N]=(0,h.useState)({}),[z,$]=(0,h.useState)({adTimer:void 0,isAdViewed:!1,isAdsSuppressed:y,prerollAdPlaying:!1}),_=(0,C.Un)((0,f.TH)().pathname),[ee,{data:ei}]=(0,r.t)(p.d),et=ei?.search?.storiesConnection?.edges.map(({node:e})=>e)??[],eo=(0,h.useCallback)(()=>{b||ee({variables:{brandKey:Y.shortSiteName,term:"",first:5,sortBy:u.qI.MostRecent,filter:{assetIds:{none:[Number.parseInt(g.replace("ref:",""),10).toString(36)]},assetType:u.h3.Video,subBrandId:_}}})},[Y.shortSiteName,ee,g,_,b]),[en,ea]=(0,h.useState)(!1),[er,ed]=(0,h.useState)(-1),el=(0,h.useCallback)(()=>{er{ec.current=el},[el]),(0,h.useEffect)(()=>(R&&void 0!==window.bc&&!q&&(G(!0),(({ads:e,container:i,featureFlags:t,fetchCarouselVideos:o,GA4:n,onReady:a,playNextRef:r,setAds:s,setInfo:l,setOverlay:c,setPlayer:p,setShowCarousel:g,suppressAds:m,videoId:u})=>{try{let t=window.bc(`videoPlayer${u}`);eS(m,t),t.ready(()=>{var d;let A,h,f,w,x;t.on("ads-ad-started",()=>{t.ima3.currentAd.isSkippable()?t.ima3.adControlBar?t.ima3.adControlBar.hide():t.controlBar.hide():t.ima3.adControlBar?t.ima3.adControlBar.show():t.controlBar.show(),g(!0),c(D),s({...e,prerollAdPlaying:!0});if(!i.current?.querySelector(".videoAdvertisementCaption")&&!m){let e=document.createElement("template");e.innerHTML='
AdAdvertisement
';let t=i.current?.querySelector(".vjs-ad-control-bar .vjs-duration");t?.parentNode&&e?.content?.firstChild&&t.parentNode.insertBefore(e.content.firstChild,t.nextSibling)}clearTimeout(e.adTimer);let o=setTimeout(()=>{s({...e,isAdViewed:!0})},2e3);s({...e,adTimer:o,isAdViewed:!1})}),t.on("ads-ad-ended",()=>{t.controlBar.show(),clearTimeout(e.adTimer),s({...e,isAdViewed:!0,prerollAdPlaying:!1}),eF(i)}),t.on("ads-ad-skipped",()=>{t.controlBar.show(),clearTimeout(e.adTimer),s({...e,isAdViewed:!0,prerollAdPlaying:!1}),eF(i)}),t.on("contentended",()=>{r.current()}),t.on("loadstart",()=>{clearTimeout(e.adTimer);let{mediainfo:{description:i,duration:o,name:n,poster:a,publishedAt:r}}=t;l({description:i,duration:Math.floor(1e3*o),name:n,poster:a,publishedAt:r})}),t.on("pause",()=>{c(S)}),t.on("playing",()=>{o(),g(!0),c(D)}),d=`video: ${u}`,A=!1,h=!1,f=!1,w=!1,x=!1,t.on("ads-ad-started",()=>{ej("videoAdStart",d,ek(t))}),t.on("ads-ad-ended",()=>{ej("videoAdEnd",d,ek(t))}),t.on("contentended",()=>{f=!1,w=!1,x=!1,A=!1,ej("videoCompleted",d,ek(t)),eP(n,t,{video_status:"complete"})}),t.on("error",()=>{ej("videoPlayerError",d,ek(t))}),t.on("pause",()=>{A&&(ej("videoPause",d,ek(t)),eP(n,t,{video_status:"pause"}))}),t.on("playing",()=>{A?ej("videoResume",d,ek(t)):(A=!0,ej("videoPlay",d,ek(t)))}),t.on("play",()=>{eP(n,t,{video_status:"play"})}),t.on("seeked",()=>{eP(n,t,{video_status:"seek"})}),t.on("timeupdate",()=>{let e=eM(t);!h&&e>=10&&(h=!0,eP(n,t,{video_percent:10})),!f&&e>=25&&(f=!0,ej("videoMilestone25",d,ek(t)),eP(n,t,{video_percent:25})),!w&&e>=50&&(w=!0,ej("videoMilestone50",d,ek(t)),eP(n,t,{video_percent:50})),!x&&e>=75&&(x=!0,ej("videoMilestone75",d,ek(t)),eP(n,t,{video_percent:75}))}),p(t),a&&a(t)})}catch(e){A.Y.error(`Unable to initialise video ${u}`,d.log.EventType("page","error"),d.log.Error(e),d.log.String("description",`Video id: ${u}`))}})({ads:z,container:O,featureFlags:M,fetchCarouselVideos:eo,GA4:k,onReady:n,playNextRef:ec,setAds:$,setInfo:N,setOverlay:X,setPlayer:V,setShowCarousel:ea,suppressAds:y,videoId:g})),()=>{clearTimeout(z.adTimer)}),[z,M,eo,k,g,q,R,n,y]),(0,h.useEffect)(()=>()=>{U&&setTimeout(()=>{eQ(U,y),U.dispose(),V(void 0),G(!1)},0)},[U,y]),(0,h.useEffect)(()=>{T&&!q&&X(J?L:F)},[J,q,T]);let eg=(0,h.useCallback)((e,i)=>{er!==i&&eH({ads:z,container:O,featureFlags:M,playNow:!0,player:U,setAds:$,setCarouselPos:ed,setInfo:N,setOverlay:X,videoId:`ref:${e}`,videoPos:i})},[z,er,M,U]);return"brightcove"!==v?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(B.W2,{className:`noPrint ${i}`,"data-testid":"video",children:[(0,a.jsxs)(B.nk,{ref:O,children:[(0,a.jsx)("video",{autoPlay:!1,className:"video-js",controls:!0,"data-account":E,"data-embed":"default","data-player":I,"data-video-id":g,id:`videoPlayer${g}`,muted:!1,playsInline:!0,poster:W.poster,preload:"metadata"}),K===L&&(0,a.jsx)(es,{contentWallVisible:t,duration:W.duration,headline:W.name,onClick:e=>{!t&&U&&(U.muted(e),U.play())}}),K===F&&(0,a.jsx)(ev,{duration:W.duration,headline:W.name,onClick:()=>{!t&&U&&(U.muted(!1),U.play())}}),K===S&&(0,a.jsx)(em,{headline:W.name,onClick:()=>{U?.play()}}),K===Q&&(0,a.jsx)(eC,{headline:W.name,onClick:()=>{U?.play(0)},poster:W.poster}),K===H&&(0,a.jsx)(eY,{contentWallVisible:t,headline:W.name,onClick:e=>{!t&&U&&(U.muted(e),U.play())},poster:W.poster}),!R&&(0,a.jsx)(ep,{}),(({description:e,duration:i,name:t,poster:o,publishedAt:n})=>{if(!(e&&i&&t&&o&&n))return null;let r={"@context":"https://schema.org","@type":"VideoObject",description:e,duration:(0,m.g)(i),name:t,thumbnailUrl:o,uploadDate:(0,m.F)(n)};return(0,a.jsx)("script",{dangerouslySetInnerHTML:{__html:JSON.stringify(r)},type:"application/ld+json"})})(W)]},g),(0,a.jsx)(B.YS,{$isHeroPinnedPost:o,children:W.description},W.description)]}),!b&&en&&(0,a.jsx)(Z,{onSelect:eg,pos:er,videos:et})]})}},49464:function(e,i,t){t.d(i,{Z:()=>d});var o=t(56111),n=t(13457),a=t(2784),r=t(45285);let d=e=>{let{BRIGHTCOVE:{ACCOUNT_ID:i,PLAYER_ID:t}}=(0,o.Z)(),d=`//players.brightcove.net/${i}/${t}_default/index.min.js`;(0,a.useEffect)(()=>{let i=!1;return(0,r.Y)()||!document.querySelector(`script[src="${d}"]`)&&e.current&&(0,n.v)(d,!0,!1,e.current,()=>{i=!0,(0,r.Y)(!0)}),()=>{i&&(0,r.Y)(!1)}},[e,d])}},86099:function(e,i,t){t.d(i,{c:()=>o});let o=t(78943).ZP.div.withConfig({componentId:"sc-a37c8537-0"})(["background:",";clear:both;min-height:135px;margin-bottom:20px;"],e=>e.theme.colorLightFill)},45285:function(e,i,t){t.d(i,{Y:()=>a,d:()=>r});var o=t(50938),n=t(40809);let a=(0,o.QS)(!1),r=()=>(0,n.l)(a)}}]);