PageSourceSearch

https://www.aetv.com/editorial/_next/static/chunks/2492-5d887f2c84…?dpl=dpl_D8qCHGREvWHZhWyTrukGMrqxdjpM

js aetv.com collected 2026-10-01 08:46:19 UTC 16,319 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6cde5557-7efe-405c-8c24-18bc5ff4768a",e._sentryDebugIdIdentifier="sentry-dbid-6cde5557-7efe-405c-8c24-18bc5ff4768a")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2492],{31623:(e,t,n)=>{n.d(t,{F:()=>a,v:()=>s});let s=(e,...t)=>{console.info("[Theoplayer]:",e,...t)},a=(e,...t)=>{console.error("[Theoplayer]:",e,...t)}},52492:(e,t,n)=>{n.d(t,{VideoRoot:()=>T});var s=n(44648),a=n(84067),r=n(43844);function i(){return(0,s.jsx)("div",{className:"t4810a0","data-sentry-component":"AdBlocker","data-sentry-source-file":"ad-blocker.tsx",children:(0,s.jsxs)("p",{className:"t4810a1",children:["To continue watching video, please disable your ad blocking software and reload the page. For instructions,"," ",(0,s.jsx)("a",{className:"t4810a2 _1fy4dxp27",href:"https://support.history.com/hc/en-us/articles/1500004651501-Why-am-I-getting-a-notification-to-turn-off-my-ad-blocker",children:"click here"}),"."]})})}n(56260),n(72077),n(99601),n(64837);var d=n(83736),o=n(16670),l=n(43507),c=n(45586),u=n(31517),v=n(34815),f=n(78467);n(82170);let m=()=>(0,s.jsx)("div",{className:"_1fjqsgg0","data-sentry-component":"Paused","data-sentry-source-file":"paused.tsx",children:(0,s.jsx)("div",{className:"_1fjqsgg1",children:(0,s.jsx)(f.I.vR,{className:"_1fjqsgg2",size:"2xl","data-sentry-element":"Icon.Pause","data-sentry-source-file":"paused.tsx"})})});function y({children:e}){return(()=>{let e=(0,c.Fo)(),t=(0,c.Cn)(),[n,s]=(0,r.useState)(!1),[a,i]=(0,r.useState)(e);return e!==a&&(i(e),s(!1)),n||t||s(!0),n})()?e:null}function h({children:e}){let t=(0,c.Cn)(),n=(0,c._i)();return t&&!n?e:null}function p({onExit:e}){return(0,s.jsx)("div",{className:"vanti0","data-sentry-component":"StickyPlayerExit","data-sentry-source-file":"sticky-player-exit.tsx",children:(0,s.jsx)("div",{className:"vanti1",onClick:e,onKeyDown:e,children:(0,s.jsx)(f.I.bm,{size:"large","data-sentry-element":"Icon.Close","data-sentry-source-file":"sticky-player-exit.tsx"})})})}function x({withAudio:e=!0}){let[t,n]=(0,r.useState)(e);return(0,s.jsxs)(y,{"data-sentry-element":"ShowOnFirstPlay","data-sentry-component":"VideoControls","data-sentry-source-file":"video-controls.tsx",children:[(0,s.jsx)(c.hf,{className:"_14r4hfv4","data-sentry-element":"ControlBar","data-sentry-source-file":"video-controls.tsx",children:(0,s.jsx)(c.RT,{className:"_14r4hfv6 _270o0g2r","data-sentry-element":"AdCountdown","data-sentry-source-file":"video-controls.tsx"})}),(0,s.jsxs)(c.hf,{"data-sentry-element":"ControlBar","data-sentry-source-file":"video-controls.tsx",children:[(0,s.jsx)(c.zJ,{className:"_14r4hfvd","data-sentry-element":"TimeRange","data-sentry-source-file":"video-controls.tsx"}),(0,s.jsx)(c.qT,{className:"_14r4hfvc","data-sentry-element":"TimeDisplay","data-sentry-source-file":"video-controls.tsx"})]}),(0,s.jsxs)(c.hf,{style:{paddingBottom:"4px"},"data-sentry-element":"ControlBar","data-sentry-source-file":"video-controls.tsx",children:[(0,s.jsx)(c.DM,{"data-sentry-element":"PlayButton","data-sentry-source-file":"video-controls.tsx"}),(0,s.jsx)(c.xK,{"data-sentry-element":"SeekButton","data-sentry-source-file":"video-controls.tsx"}),(0,s.jsx)(c.Y1,{onClick:()=>{n(!t)},"data-sentry-element":"MuteButton","data-sentry-source-file":"video-controls.tsx"}),t&&(0,s.jsx)(c.kB,{}),(0,s.jsx)("span",{style:{flexGrow:1}}),(0,s.jsx)(c.aS,{menu:"language-menu","data-sentry-element":"LanguageMenuButton","data-sentry-source-file":"video-controls.tsx"}),(0,s.jsx)(c.Dq,{menu:"settings-menu","data-sentry-element":"SettingsMenuButton","data-sentry-source-file":"video-controls.tsx"}),(0,s.jsx)(c.Ah,{"data-sentry-element":"FullscreenButton","data-sentry-source-file":"video-controls.tsx"})]})]})}n(93293),n(41870),n(15324),n(31191);var g=n(81300),_=n(96024);function w({poster:e}){return(0,s.jsxs)("div",{className:(0,u.A)("trboew0",_.dark),role:"alert","data-sentry-component":"VideoError","data-sentry-source-file":"video-error.tsx",children:[(0,s.jsx)(d._V,{asset:e,width:1e3,as
1pectRatio:16/9,"aria-hidden":!0,className:"trboew1","data-sentry-element":"Image","data-sentry-source-file":"video-error.tsx"}),(0,s.jsxs)("div",{className:"trboew2",children:[(0,s.jsx)(g.EY,{variant:"inlineBodyBig",fontFamily:"label",color:"primary","data-sentry-element":"Text","data-sentry-source-file":"video-error.tsx",children:"This video is currently unavailable"}),(0,s.jsx)(g.EY,{variant:"inlineBodyMedium",fontFamily:"label",color:"primary","data-sentry-element":"Text","data-sentry-source-file":"video-error.tsx",children:"Something went wrong while loading the video. Please try again later."})]})]})}n(13562);var j=n(92421),b=n(99880);let E=()=>"u">typeof navigator&&(/Mobi/.test(navigator?.userAgent)||/Tablet/.test(navigator?.userAgent)||navigator?.userAgent.indexOf("IEMobile")!==-1);var k=n(31623);let S={aetv:0x392b5ef,fyi:0x3dc1365,history:0x392b5e8,lifetime:0x392b5e5},A=e=>({profile:{desktop:`171213:aetn_desktop_${e}editorial_googlessai_vod`,mobile:`171213:aetn_mobileweb_${e}editorial_googlessai_vod`},siteSectionId:{tve:{desktop:`${e}.desktop.editorial`,mobile:`${e}.mobileweb.editorial`},test:{desktop:`${e}.desktop.test.video`,mobile:`${e}.mobileweb.test.video`}}}),P={aetv:2734942,fyi:2722639,history:2734939,lifetime:2731425},I=(e,t)=>0===e?"pre-roll":e>0&&e<t?"mid-roll":"post-roll";var N=n(93880);let L=(0,r.memo)(e=>(0,s.jsx)(c.Wt,{autoplay:!0,muted:!e.withAudio,configuration:{libraryLocation:e.libraryLocation,mutedAutoplay:e.autoplay?"all":void 0,license:e.license,allowNativeFullscreen:!0,ads:{googleIma:{useNativeIma:!1,useAdUiElementForSsai:!0}},persistVolume:!0},"device-type":null,onReady:t=>{e.setPlayerState(t),t.muted=!0,t.preload="none",t.source={sources:[{type:"application/vnd.apple.mpegurl",src:e.signedUrl,ssai:e.adsFailed?void 0:function({cdnDecision:e,brand:t,pplId:n,isTest:s,shouldSkipAds:a,videoId:r}){if(!a)return{integration:"google-dai",availabilityType:"vod",apiKey:"",contentSourceID:P[t],videoID:r,adTagParameters:function(e,t,n,s){let a,r,i,d,o,l=(0,j.MR)(),c=window.innerHeight||0,u=window.innerWidth||0,v=window.navigator?.userAgent||"",f=window.location.href,m=Math.floor(1e16*Math.random()),y=function(){let e=b.A.get("_lr_env");if(e){let t=window?.atob(e);if(t){let{envelope:e=null}=JSON.parse(t);return e?`IDL:${e}`:null}}return null}(),h={"dai-dlid":e.custom.hls_dfpdai_dlid,afid:S[t],adobe_id:b.A.get("AMCV_08AC467352782D0D0A490D45@AdobeOrg")?.split("MCMID|")?.pop()?.split("|")[0]||"",asnw:171213,caid:n,imafw__fw_ae:b.A.get("AETN-fwMVPDHash")||"nonauthenticated",imafw__fw_vcid2:((r=b.A.get("AETN-fw_vcid2"))?a=r:(a=Math.floor(1e16*Math.random()),b.A.set("AETN-fw_vcid2",`${a}`,{expires:3560})),`171213:${a}`),devicename:E()?"MobileWeb":"Desktop",imafw_csid:(i=A(t),d=s?i.siteSectionId.test:i.siteSectionId.tve,E()?d.mobile:d.desktop),imafw__fw_player_height:c,imafw__fw_player_width:u,imafw__fw_us_privacy:b.A.get("AETN-uspString")||"",imafw__fw_site_page:f,...l&&{imafw_gpp:l.gpp,imafw_gpp_sid:l.gppSid??""},...y&&{imafw__fw_3P_uid:y},imafw__fw_h_user_agent:v,imafw_prof:(o=A(t),E()?o.profile.mobile:o.profile.desktop),metr:1031,nw:171213,ssnw:171213,pvrn:m,vprn:m,...{flag:"+sltp+vicb+slcb+amsl+amcb+ssus+emcr+fbad+dtrd+play"},resp:"vmap1"};return(0,k.v)("adTagParameters",h),h}(e,t,n,s)}}(e)}]}},style:{width:"100%",marginBottom:"-4px"},centeredChrome:(0,s.jsx)(y,{children:(0,s.jsx)(h,{children:(0,s.jsx)(m,{})})}),centeredLoading:(0,s.jsx)(y,{children:(0,s.jsx)(c.Ip,{})}),bottomChrome:(0,s.jsx)(x,{withAudio:void 0!==e.withAudio&&e.withAudio}),menu:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.oP,{id:"language-menu"}),(0,s.jsxs)(c.rX,{id:"settings-menu",children:[(0,s.jsx)(c.W1,{heading:"Settings",children:(0,s.jsxs)("div",{className:"_14r4hfv0",children:[(0,s.jsx)("span",{children:"Quality"}),(0,s.jsx)(c.IU,{menu:"quality-menu",children:(0,s.jsx)(c.g0,{})}),(0,s.jsx)("span",{children:"Playback speed"}),(0,s.jsx)(c.IU,{menu:"playback-rate-menu",children:(0,s.jsx)(c.kV,{})})]})}),(0,s.jsx)(c.W1,{id:"quality-menu",closeOnInput:!0,hidden:!0,heading:"Quality",children:(0,s.jsx)(c.i2,{})}),(0,s.jsx)(c.NI,{id:"playback-rate-menu",closeOnInput:!0,hidden:!0,heading:"Playback speed"})]})]}),error:(0,s.jsx)(c.n1,{})}));function C({loop:e=!1,videoEndingOverlay:t,...n}){let{registerPlayer:a,unregisterPlayer:i,isAnyVideoPlaying:c,setVideoId:f}=(0,N.useVideoContext)(),[m,y]=(0,r.useState)(!0),[h,x]=(0,r.useState)(!1),[g,_]=(0,r.useState)(!1),[j,b]=(0,r.useState)(!1),[E,k]=(0,r.useState)(!1),[S,A]=(0,r.useState)("0"),[P,T]=(0,r.useState)(null),[M,B]=(0,r.useState)(void 0),F=(0,r.useRef)(null),[D,V]=(0,r.useState)(!1),[O,R]=(0,r.useState)(!1),[q,$]=(0,r.useState)(!1),[W,K]=(0,r.useState)(!n.withAudio),U=(0,r.useRef)(0),{ref:Y,inView:z}=(0,v.Wx)({threshold:.5}),H=n.forceAutoplay||!c&&n.autoplay&&!0,J=(0,r.useMemo)(()=>!n.shouldNotBeSticky&&h&&!z,[n.shouldNotBeSticky,h,z]);(0,r.useEffect)(()=>{H&&z&&y(!1)},[H,z]),(0,r.useEffect)(()=>{let e=P?.uid;return void 0!==e&&null!==P&&a(e,P,n.videoId),()=>{void 0!==e&&i(e)}},[P,a,i,n.videoId]),(0,r.useEffect)(()=>{R(!1),async function(){let e=await fetch("/editorial/api/sign-video",{method:"POST",body:JSON.stringify({cdnProvider:n.cdnDecision.custom.provider,renditionsPathPrefix:n.renditionsPathPrefix,encoder:n.encoder})});B((await e.json()).streamingUrl)}()},[n.cdnDecision,n.renditionsPathPrefix,n.encoder]),(0,r.useEffect)(()=>
1{if(!P)return;void 0!==W&&(P.muted=W);let t=e=>{let{currentTime:t}=e;if(n.onPlay?.(P.seeking,t,M,P),x(!0),g)return;n.onFirstPlaying?.(),_(!0),f(P.uid,n.videoId);let{volume:s,presentation:a,metrics:r,ads:i}=P,d=i?.currentAds[0];n.onPlayPressed?.(a.currentMode,s,r.currentBandwidthEstimate,d?.id)},s=()=>{n.onPause?.(P.seeking),P.seeking||x(!1)},a=e=>{let{currentTime:t}=e,{duration:s}=P;n.onEnded?.(t,s),x(!1),k(!1)},r=e=>{let t=e.currentTime,{duration:s}=P,a=!!P.ads?.playing,r=P.ads?.currentAds[0]?.id,i=P.ads?.currentAds[0]?.type,d=P.ads?.currentAds[0]?.duration;if(Math.floor(t/15)>Math.floor(U.current/15)&&(a?n.onFifteenSecondAdInterval?.(r,i,t,d):n.onFifteenSecondContentInterval?.(t,s)),U.current=t,P.duration-t<=10){n.onVideoEnding?.(),k(!0);return}k(!1)},i=e=>{let{id:t,duration:s,type:a,adBreak:r}=e.ad,i=I(r?.timeOffset??0,P.duration);n.onAdBegin?.(t,s,a,i,S),j||(n.onFirstAd?.(),b(!0))},d=e=>{let{id:t,duration:s,type:a,adBreak:r}=e.ad,i=I(r?.timeOffset??0,P.duration);n.onAdEnd?.(t,s,a,i,S)},o=()=>{let e=P.muted;K(e),n.onMuteToggle?.(e)},l=e=>{let t=e.track;"captions"===t.kind&&"showing"===t.mode?$(!0):"captions"===t.kind&&"disabled"===t.mode&&$(!1)},c=e=>{let t=e.track;!0===q&&(t.mode="showing")},u=()=>{let e=F.current;n.onPlaybackExit?.(e?.presentationMode||"",e?.volume||0,e?.currentBandwidthEstimate||0,e?.adId||"",e?.currentTime||0)},v=e=>{if(3001===e.errorObject.code&&!D&&M){T(null),V(!0);return}T(null),R(!0),n.onError?.(e.errorObject.message)};return P.addEventListener("pause",s),P.addEventListener("play",t),P.addEventListener("ended",a),P.addEventListener("timeupdate",r),P.addEventListener("volumechange",o),P.textTracks.addEventListener("change",l),P.textTracks.addEventListener("addtrack",c),P.ads?.addEventListener("adbegin",i),P.ads?.addEventListener("adend",d),P.ads?.addEventListener("adfirstquartile",()=>A("1")),P.ads?.addEventListener("admidpoint",()=>A("2")),P.ads?.addEventListener("adthirdquartile",()=>A("3")),P.addEventListener("error",v),P.addEventListener("timeupdate",()=>{F.current={currentTime:P.currentTime,volume:P.volume,currentBandwidthEstimate:P.metrics.currentBandwidthEstimate,adId:P.ads?.currentAds[0]?.id,adType:P.ads?.currentAds[0]?.type,presentationMode:P.presentation.currentMode}}),P.addEventListener("destroy",u),P.loop=e,()=>{try{P.removeEventListener("play",t),P?.removeEventListener("pause",s),P?.removeEventListener("ended",a),P?.ads?.removeEventListener("adbegin",i),P?.ads?.removeEventListener("adend",d),P.removeEventListener("timeupdate",r),P.removeEventListener("volumechange",o),P.textTracks.removeEventListener("change",l),P.textTracks.removeEventListener("addtrack",c),P.removeEventListener("error",v),P.removeEventListener("destroy",u)}catch{}}},[P,n.onPlay,n.onPause,n.onPlayPressed,n.onPlaybackExit,n.onFirstPlaying,n.onFirstAd,n.onAdBegin,n.onAdEnd,n.onEnded,n.onVideoEnding,n.onMuteToggle,n.onError,n.onFifteenSecondContentInterval,n.onFifteenSecondAdInterval,M,D,e,g,j,q,W,n.videoId,f,S]);let Q=D?"ad-free":"with-ads";return(0,s.jsx)("div",{ref:Y,"data-sentry-component":"Video","data-sentry-source-file":"video.tsx",children:m?(0,s.jsx)("div",{onClick:()=>y(!1),onKeyDown:()=>y(!1),children:(0,s.jsxs)(o.a,{className:"_14r4hfv2",children:[(0,s.jsx)(d._V,{asset:n.poster,width:1e3,aspectRatio:16/9,"aria-hidden":!0,alt:"",className:"_14r4hfv3"}),(0,s.jsx)(o.a,{position:"absolute",children:(0,s.jsx)(l.D,{})})]})}):(0,s.jsxs)(s.Fragment,{children:[J?(0,s.jsx)("div",{className:"_14r4hfva",children:" "}):null,(0,s.jsxs)("div",{className:J?(0,u.A)("_14r4hfv8",n.pageHasSponsor&&"_14r4hfv9"):void 0,children:[J?(0,s.jsx)(p,{onExit:()=>{P&&P.pause()}}):null,M&&!O?(0,s.jsx)(L,{...n,setPlayerState:T,signedUrl:M,adsFailed:D},Q):null,O?(0,s.jsx)(w,{poster:n.poster}):null,J&&E&&(0,s.jsx)("div",{className:"_14r4hfvb",onClick:()=>k(!1),onKeyDown:()=>k(!1),children:t})]})]})})}function T({videoEndingOverlay:e,...t}){let[n,d]=(0,r.useState)(!1),[o,l]=(0,r.useState)(!1),{cdnDecisionData:c,cdnDecisionLoading:u,fetchCdnDecision:v}=(0,N.useVideoContext)();return((0,r.useEffect)(()=>{v()},[v]),!c||u)?null:o?(0,s.jsx)(i,{}
1):(0,s.jsxs)(s.Fragment,{children:[n&&(0,s.jsx)(C,{cdnDecision:c,videoEndingOverlay:e,...t}),(0,s.jsx)(a.default,{src:"https://imasdk.googleapis.com/js/sdkloader/ima3_dai.js",onLoad:()=>d(!0),onReady:()=>d(!0),onError:()=>l(!0),"data-sentry-element":"Script","data-sentry-source-file":"video-root.tsx"})]})}},78467:(e,t,n)=>{n.d(t,{I:()=>s});var s=n(61455)},93880:(e,t,n)=>{n.d(t,{VideoProvider:()=>c,useVideoContext:()=>u});var s=n(44648),a=n(48246),r=n(43844);let i={custom:{assetTypes_med:"medium_video_s3",assetTypes_high:"high_video_s3",hls_med_switchval:"hls_med_fastly",hls_high_switchval:"hls_high_fastly",hls_vds_switchval:"hls_vds_fastly",hls_dfpdai_switchval:"hls_dfpdai_fastly",hls_dfpdai_dlid:"default_delivery_60101",hls_dfpdai_vds_dlid:"default_delivery_86466",provider:"fastly_cdn"},host:"cdn-fas.video.aetnd.com"};async function d(e,t,n){let s=i;try{let n=await (await fetch(t,{headers:{"X-NSONE-KEY":e}})).json();n?.providers?.length||(n={providers:[]});let{providers:a}=n;a.length>0&&([s]=a)}catch(e){n("cdnProvider error:",e,"Falling back to default provider")}return s}var o=n(31623);let l=(0,r.createContext)(void 0);function c({children:e,cdnDecisionApiKey:t,cdnDecisionUrl:n}){let i=(0,a.usePathname)(),[u,v]=(0,r.useState)([]),f=(0,r.useRef)(void 0),[m,y]=(0,r.useState)(void 0),h=(0,r.useCallback)((e,t,n)=>{let s=()=>{try{f.current&&f.current.uid===e&&(f.current=void 0,y(void 0))}catch{f.current=void 0}};t.addEventListener("play",()=>{try{f.current&&f.current.uid!==e&&f.current.pause()}catch{f.current=void 0}f.current=t,y(f.current.uid)}),t.addEventListener("pause",s),t.addEventListener("ended",s),v(s=>[...s,{id:e,instance:t,videoId:n}])},[]),p=(0,r.useCallback)(e=>{v(t=>t.filter(t=>t.id!==e))},[]),x=(0,r.useCallback)(()=>{v([]),f.current=void 0,y(void 0)},[]),g=(0,r.useCallback)((e,t)=>{let n=u.find(t=>t.id===e);n&&(n.videoId=t)},[u.find]);(0,r.useEffect)(()=>{x()},[i]);let[_,w]=(0,r.useState)(void 0),[j,b]=(0,r.useState)(!1),E=(0,r.useRef)(!1),k=(0,r.useCallback)(async()=>{if(!E.current){E.current=!0,b(!0);try{let e=await d(t,n,o.F);w(e),(0,o.v)("cdnSelector finished",e)}finally{b(!1)}}},[t,n]);return(0,s.jsx)(l.Provider,{value:{players:u,registerPlayer:h,unregisterPlayer:p,clearPlayers:x,isAnyVideoPlaying:void 0!==m,setVideoId:g,isActiveVideo:e=>!!u.find(t=>t.videoId===e),cdnDecisionData:_,cdnDecisionLoading:j,fetchCdnDecision:k},"data-sentry-element":"VideoContext.Provider","data-sentry-component":"VideoProvider","data-sentry-source-file":"video-context.tsx",children:e})}function u(){let e=(0,r.useContext)(l);if(!e)throw Error("useVideoContext must be used within a VideoContext.Provider");return e}}}]);

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.