1const documentStyle=getComputedStyle(document.documentElement);const{hostname:hostname}=window.location;const possibleHosts=["dev.site.cbssports.com","ephm-bison.cbssports.com","sidelines"];const host=possibleHosts.some((possibleHost=>hostname.includes(possibleHost)))?"https://qa.cbssports.com":"";const isTouchDevice=()=>!!("ontouchstart"in window||navigator.maxTouchPoints>0);const bodyLock=()=>document.querySelector("html")?.classList.add("Page__lockedMobile");const bodyUnlock=()=>document.querySelector("html")?.classList.remove("Page__lockedMobile");const eventsArray=isTouchDevice()?["click"]:["keydown","mouseenter","mouseleave"];const eventsArrayOnce=isTouchDevice()?["click"]:["keydown","mouseenter"];const initializeDropdowns=(globalDropdowns,classOpen)=>{if(globalDropdowns.length){const closeAllDropdowns=()=>{globalDropdowns.forEach((item=>{item.classList.remove(classOpen)}))};closeAllDropdowns();document.body.addEventListener("click",closeAllDropdowns);globalDropdowns.forEach((dropdown=>{const toggleDropdown=e=>{if(e.type==="keydown"&&e.key!=="Enter"){return}e.stopPropagation();dropdown.classList.toggle(classOpen)};dropdown.addEventListener("click",toggleDropdown);dropdown.addEventListener("keydown",toggleDropdown)}))}};
1const toggleNavListDotsButton=(items,button,classHidden)=>{let visibleItemsCount=0;let itemsTotalWidth=0;const buttonCopy=button;const itemsTotalCount=items.length;const dropdownItems=button.querySelectorAll(".GlobalNavDropdownListItem");items.forEach((item=>{if(item.offsetTop===0){itemsTotalWidth+=item.offsetWidth;visibleItemsCount+=1}}));if(dropdownItems){dropdownItems.forEach(((item,index)=>{item.classList.remove(classHidden);if(index<visibleItemsCount){item.classList.add(classHidden)}}))}if(visibleItemsCount<itemsTotalCount){buttonCopy.style.left=`${itemsTotalWidth}px`;button.classList.remove(classHidden)}else{button.classList.add(classHidden)}};const getFantasyUserData=async()=>{const pid=document.cookie.split("; ").find((row=>row.startsWith("pid=")))?.split("=")[1];if(pid&&pid.charAt(0)?.toLowerCase()==="l"){const response=await fetch(`${host}/api/watch/user?pid=${pid}`).then((res=>res.json())).then((res=>res.data.UserByPid));return response&&Number(response.id)>0?response:null}return null};const getParamountPlusUserData=async()=>{if(!window.location.href.includes("?logout")){const paramountPlusAccessToken=document.cookie.split("; ").find((row=>row.startsWith("paramountPlusAccessToken=")))?.split("=")[1];if(paramountPlusAccessToken){const response=await fetch(`${host}/api/watch/user/paramount/${paramountPlusAccessToken}`);const userAPI=await response.json();return userAPI}}return null};const getAdobeMvpdUserData=()=>{const localStorageMvpdToken=localStorage.getItem("mvpdToken");if(localStorageMvpdToken){const userMvpdObject=JSON.parse(localStorageMvpdToken);const offset=userMvpdObject.issueTime.substring(userMvpdObject.issueTime.length-5,userMvpdObject.issueTime.length);const issueDateString=userMvpdObject.issueTime.substring(0,userMvpdObject.issueTime.length-5).replace(/-/g,"/").concat(offset);const issueDate=new Date(issueDateString);const ttl=parseInt(userMvpdObject.ttl,10);if(issueDate.getTime()+ttl>Date.now()){return userMvpdObject}localStorage.removeItem("mvpdToken")}return null};const loadUserGatedComponent=(containers,callback,checkSpoe)=>{getFantasyUserData().then((user=>{containers.forEach((container=>{if(user){callback(container,user);const colTitleWrap=container.previousElementSibling;colTitleWrap?.querySelector('[data-requires-login="true"]')?.removeAttribute("data-requires-login");if(checkSpoe){if(user.spoes.length){container.setAttribute("data-logged-in",true)}else{container.setAttribute("data-logged-in",false)}}else{container.setAttribute("data-logged-in",true)}}else{container.setAttribute("data-logged-in",false)}}))}))};const TrackingArgs=params=>{const{clickText:clickText,linkName:linkName,moduleAction:moduleAction,moduleCampaign:moduleCampaign,moduleLocation:moduleLocation,moduleName:moduleName,videoId:videoId,videoTitle:videoTitle}={...params};const trackActionModule={clickText:clickText?.toLowerCase(),moduleAction:moduleAction,moduleLocation:moduleLocation?.toLowerCase(),moduleName:moduleName};if(moduleCampaign){trackActionModule.moduleCampaign=moduleCampaign}const dataTracking={linkName:linkName,module:trackActionModule};const newTrackingObj={...dataTracking,module:{...dataTracking.module,videoId:videoId,videoTitle:videoTitle}};if(newTrackingObj.module.clickText===""){delete newTrackingObj.module.clickText}if(newTrackingObj.module.videoId===""){delete newTrackingObj.module.videoId}if(newTrackingObj.module.videoTitle===""){delete newTrackingObj.module.videoTitle}return JSON.stringify(newTrackingObj)};function addTrackingElementListener(element){element.addEventListener("click",(()=>{const trackString=element.dataset.tracking||"";const trackJson=JSON.parse(trackString)||{};const linkName=trackJson.linkName||"";const module1=trackJson.module||"";if(window.om){window.om.trackAction(linkName,module1)}}))}const trackListOfElements=elements=>{elements.forEach((element=>{addTrackingElementListener(element)}))};const loadMyFantasyTeamsComponent=(target,isUserButton)=>{const containers=target.querySelectorAll(".GlobalNavMyFantasyTeamsPromo");const callback=(container,user)=>{const myFantasyTeamsSection=container.querySelector("[data-placeholder-for='fantasy-teams-section']");const myFantasyTeamTemplate=container.querySelector("[data-placeholder-for='fantasy-team']");
1if(myFantasyTeamsSection){user.spoes.forEach((section=>{const teamsArray=[];const sectionClone=myFantasyTeamsSection.cloneNode(true);const myFantasyTeamsList=sectionClone.querySelector("[data-placeholder-for='fantasy-teams-list']");if(section.teams.length>0){const categoryTitle=sectionClone.querySelector("[data-placeholder-for='category-title']");myFantasyTeamsList.innerHTML="";if(categoryTitle){categoryTitle.textContent=section.title.toLowerCase()==="ufc"?"UFC":section.title}section.teams.forEach((team=>{if(team){const cloneTeam=myFantasyTeamTemplate.cloneNode(true);const dataTracking=isUserButton?{clickText:team.description,linkName:"fantasy_click",moduleAction:"click",moduleCampaign:"navigation",moduleLocation:"fantasy and games",moduleName:"user profile menu"}:{clickText:team.title,linkName:"navigation interaction",moduleAction:"click",moduleLocation:"list - fantasy - my teams",moduleName:"global nav"};cloneTeam.querySelector("[data-placeholder-for='title']").textContent=team.description;cloneTeam.querySelector("[data-placeholder-for='description']").textContent=team.title;cloneTeam.querySelector("[data-placeholder-for='url']").href=team.url;cloneTeam.querySelector("[data-placeholder-for='url']").setAttribute("data-tracking",TrackingArgs(dataTracking));if(team.image){const imageElement=cloneTeam.querySelector("[data-placeholder-for='image']");imageElement.setAttribute("src",team.image);imageElement.removeAttribute("srcset");imageElement.classList.add("spoe");imageElement.onerror=e=>{const iconLogoFantasyF=document.querySelector("[data-placeholder-for='fallback-image']").cloneNode(true);e.currentTarget.replaceWith(iconLogoFantasyF)}}addTrackingElementListener(cloneTeam.querySelector("a"));teamsArray.push(cloneTeam)}}));teamsArray.forEach((item=>{myFantasyTeamsList.append(item)}));myFantasyTeamsSection.before(sectionClone)}}));myFantasyTeamsSection.remove()}};
1if(containers){loadUserGatedComponent(containers,callback,true)}};const replaceRedirectInLink=link=>{const currentUrl=window.location.href;const redirectUrl=encodeURIComponent(currentUrl.split("?")[0]);const updatedUrl=link.getAttribute("href").replace("%5BREDIRECT%5D",redirectUrl).replace("[REDIRECT]",redirectUrl);link.setAttribute("href",updatedUrl)};const loadMyAccountComponent=target=>{const containers=target.querySelectorAll(".GlobalNavMyAccount");const callback=(container,user)=>{const userNameElement=container.querySelector("#GlobalNavMyAccountUserName");if(user?.firstName&&userNameElement){userNameElement.innerHTML=`👋 Welcome, ${user.firstName}`}};if(containers){containers.forEach((container=>{const links=container.querySelectorAll("a");links.forEach((link=>{const type=link.getAttribute("data-type");replaceRedirectInLink(link);if(type&&type==="logout"){link.addEventListener("click",(()=>{document.cookie="pid=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=.cbssports.com"}))}}))}));loadUserGatedComponent(containers,callback)}};const loadVideoSettingsComponent=target=>{const containers=target.querySelectorAll(".GlobalNavMyVideoSettingsItem");containers.forEach((container=>{const type=container.getAttribute("data-type");if(type==="paramountplus"){getParamountPlusUserData().then((user=>{if(user){container.setAttribute("data-logged-in",true)}else{container.setAttribute("data-logged-in",false)}}))}if(type==="adobe"){const mvpdUser=getAdobeMvpdUserData();if(mvpdUser){container.setAttribute("data-logged-in",true)}else{container.setAttribute("data-logged-in",false)}}}))};function handleMvpdToken(token,primeTimeList){const mvpd=token&&token.mvpdId.length>0?primeTimeList?.find((element=>token.mvpdId===element.id?.value)):undefined;const mvpdTokenObject={...token,mvpdImage:mvpd?.logoUrl?.value};const mvpdTokenString=JSON.stringify(mvpdTokenObject);const localStorageMvpdToken=localStorage.getItem("mvpdToken");localStorage.setItem("mvpdToken",mvpdTokenString);if(!localStorageMvpdToken){window.location.reload()}}async function getPopularMvpds(){const res=await fetch(`${host}/api/watch/mvpd/popular-list`);const data=await res.json();if(data){return data.content}return undefined}async function getPrimetimeMvpds(){const res=await fetch("https://api.auth.adobe.com/api/v1/config/CBS_SPORTS",{method:"get",headers:new Headers({Accept:"application/json"})});const data=await res.json();if(data){return data.requestor.mvpds.mvpd}return undefined}function createIFrame(){}function displayProviderDialog(){}function entitlementLoaded(){window.accessEnabler?.setRequestor("CBS_SPORTS")}function selectedProvider(){}function sendTrackingData(event){switch(event){case"authorizationDetection":break;default:}}function setAuthenticationStatus(status){if(status){const resourceId=window.location.href.includes("cbs-sports-network")?"CBS_SPORTS_NETWORK":"CBS_ENTERTAINMENT";window.accessEnabler?.checkAuthorization(resourceId)}else{window.accessEnabler?.getAuthentication()}}function setConfig(){window.accessEnabler?.getSelectedProvider();window.accessEnabler?.checkAuthentication()}function setMetadataStatus(){}function mvpdLogout(){if(window&&window.accessEnabler){localStorage.removeItem("mvpdToken");window.accessEnabler.logout()}}function tokenRequestFailed(resource,code,description){mvpdLogout();document.dispatchEvent(new CustomEvent("videoErrorEvent",{detail:{resource:resource,code:code,description:description}}))}function setToken(resource,token){const parser=new DOMParser;let nth=0;const result=token.replace(/<signatureInfo>/g,(match=>{nth+=1;return nth===2?"</signatureInfo>":match}));const xmlDoc=parser.parseFromString(`<token>${result}</token>`,"text/xml");const mvpdTokenObject={signatureInfo:xmlDoc.getElementsByTagName("signatureInfo")[0].childNodes[0].nodeValue,mvpdId:xmlDoc.getElementsByTagName("mvpdId")[0].childNodes[0].nodeValue,ttl:xmlDoc.getElementsByTagName("ttl")[0].childNodes[0].nodeValue,issueTime:xmlDoc.getElementsByTagName("issueTime")[0].childNodes[0].nodeValue,sessionGUID:xmlDoc.getElementsByTagName("sessionGUID")[0].childNodes[0].nodeValue};window?.goToReferer(mvpdTokenObject)}function entitlementLoadedLogout(){window.accessEnabler?.setRequestor("CBS_SPORTS");const loggedOut=localStorage?.getItem("mvpdLoggedOut");if(loggedOut){localStorage?.removeItem("mvpdLoggedOut");setTimeout((()=>{window.location.href=window.location.href.includes("?logout")?window.location.href:`${window.location.href}?logout`}),500)}else{localStorage?.setItem("mvpdLoggedOut","logged out");mvpdLogout()}}
1function selectMvpdProvider(id){if(window&&window.accessEnabler){window.accessEnabler?.setSelectedProvider(id)}}function getMvpdSelectOptions(mvpds){const options=[];const firstOption={key:"0",value:"",label:"All Providers"};options.push(firstOption);mvpds?.forEach((data=>{const option={key:data&&data.id?data.id.value:"",value:data&&data.id?data.id.value:"",label:data&&data.displayName?data.displayName.value:""};options.push(option)}));return options}function showMvpdAuth(video){const authKeys=video?.authentication?Object.keys(video.authentication):null;if(authKeys&&video.authentication){for(let i=0;i<authKeys.length;i+=1){if(video.authentication[i]===AuthenticationTypeAdobe){return true}}}return false}function adobeOnload(){window.accessEnabler=new window.Adobe.AccessEnabler("eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJhNmQ4ODY0Zi1kZjQxLTQ0NDQtYWNiMS05YmU5ZmIxNmI3NjciLCJuYmYiOjE2NTExNjA5MzAsImlzcyI6ImF1dGguYWRvYmUuY29tIiwiaWF0IjoxNjUxMTYwOTMwfQ.aQiAKVd-DRdny3knEoHk4bdl87YCHxpSxYRHRwevMNQfogunyjhOXEeBFt4wzBKYZMwtUwQI1xkUIpdluwJVd9qSgK_GiO6hbs9Y7X559d0-mCgu3BV45_hHlPOo_NA8t8h8Pt1TppAeOQHBsvVErVUFCdsOFUhMi4hm0Ombs1rLpNvVK-kmkB8GXN8DEJdPKQR7_3SvspDixtYLuDFD9keo2jGe1PnjRVc05RFtKpIKNh4Usr4HBzJsS30ragWruff2O40z-TXbDggbH9DwwLRSgMdC4MxHl0H9DWetGKoI-UEOC2ihAq8fQIFlYrCP4McOwHhcOSb7xqxNxmZJQA")}function handleMvpdCancelClick(){window.history.back()}function loadAccessorMethods(primeTimeList){window.entitlementLoaded=entitlementLoaded;window.createIFrame=createIFrame;window.displayProviderDialog=displayProviderDialog;window.goToReferer=token=>{handleMvpdToken(token,primeTimeList)};window.selectedProvider=selectedProvider;window.sendTrackingData=sendTrackingData;window.setAuthenticationStatus=setAuthenticationStatus;window.setConfig=setConfig;window.setMetadataStatus=setMetadataStatus;window.setToken=setToken;window.tokenRequestFailed=tokenRequestFailed}function loadMvpdScripts(){const mvpdScript=document.createElement("script");let r=false;mvpdScript.type="text/javascript";mvpdScript.src="https://entitlement.auth.adobe.com/entitlement/v4/AccessEnabler.js";mvpdScript.async="async";mvpdScript.id="mvpdAccessorScriptScript";mvpdScript.onload=mvpdScript.onreadystatechange=async()=>{if(!r&&(!this.readyState||this.readyState==="complete")){r=true;const primeTimeList=await getPrimetimeMvpds();loadAccessorMethods(primeTimeList);adobeOnload()}};document.body.appendChild(mvpdScript)}function openModal(modal){modal.setAttribute("data-show-modal",true)}function closeModal(modal){modal.setAttribute("data-show-modal",false)}function renderModal(modal,popularList,primeTimeList){const closeButton=modal.querySelector(".SportsModalClose");closeButton.addEventListener("click",(()=>{closeModal(modal)}));const element=modal.querySelector("#mvpd-select-tv-provider");let mvpdButton=element.querySelector('[role="button"]');const mvpdButtonGridContainer=mvpdButton.parentNode;mvpdButton=mvpdButton.cloneNode(true);while(mvpdButtonGridContainer.lastElementChild){mvpdButtonGridContainer.removeChild(mvpdButtonGridContainer.lastElementChild)}let mvpdGridCount=0;popularList.forEach((mvpdPopularItem=>{const mvpdItemElement=mvpdButton.cloneNode(true);const mvpdItem=primeTimeList?.find((element2=>mvpdPopularItem.title===element2.displayName?.value));if(mvpdItem&&mvpdGridCount<16){mvpdItemElement.setAttribute("data-id",mvpdItem.id.value);mvpdItemElement.setAttribute("name",mvpdItem.id.value);const mvpdImage=mvpdItemElement.querySelector("img");if(mvpdImage){mvpdImage.alt=mvpdItem.displayName.value;mvpdImage.src=mvpdItem.logoUrl.value.includes("?")?`${mvpdItem.logoUrl.value}&width=240`:`${mvpdItem.logoUrl.value}?width=240`}mvpdItemElement.addEventListener("click",(()=>{selectMvpdProvider(mvpdItem.id.value)}));mvpdButtonGridContainer.appendChild(mvpdItemElement);mvpdGridCount+=1}}));const mvpdOptions=getMvpdSelectOptions(primeTimeList);const mvpdSelect=element.querySelector("select");let mvpdOptionCopy;const mvpdSelectCount=mvpdSelect.length;for(let i=0;i<mvpdSelectCount;i+=1){mvpdOptionCopy=mvpdSelect.options[0].cloneNode(true);mvpdSelect.remove(0)}mvpdOptions.forEach((data=>{const option=mvpdOptionCopy.cloneNode(true);option.innerText=data.label;option.value=data.value;mvpdSelect.append(option)}));mvpdSelect.addEventListener("change",(evt=>{selectMvpdProvider(evt.target.value)}))}const onWindowScroll=(globalNavHeader,globalNav,globalSubnav)=>{if(!globalNavHeader||!globalNav){return null}const classScrolled="scrolled";const offsetHeight=parseInt(documentStyle.getPropertyValue("--global-nav-v2-offset"),10);const navPosition=Math.round(globalNavHeader.getBoundingClientRect().top);if(navPosition===0){globalNavHeader.classList.add(classScrolled);globalNav.classList.remove(classScrolled)}else if(navPosition<offsetHeight){globalNavHeader.classList.add(classScrolled);globalNav.classList.add(classScrolled)}else{globalNavHeader.classList.remove(classScrolled);globalNav.classList.remove(classScrolled)}if(globalSubnav){const classStuck="stuck";const globalSubnavSpacer=globalSubnav.querySelector(".spacer");const navHeightTotal=parseInt(documentStyle.getPropertyValue("--global-nav-v2-height"),10)+offsetHeight;if(globalSubnavSpacer){const stickySubnavOffset=globalSubnavSpacer.getBoundingClientRect().top-2;if(stickySubnavOffset<=navHeightTotal){globalSubnav.classList.add(classStuck)}else{globalSubnav.classList.remove(classStuck)}}}return null};function onReady(){const globalNav=document.querySelector("#GlobalNav");const globalNavHeaderWrap=document.querySelector(".GlobalNavHeaderWrap");const globalNavHeader=document.querySelector("#GlobalNavHeader");const globalNavBlockingOverlay=document.querySelector("#GlobalNavBlockingOverlay");const globalNavHeaderCombo=document.querySelector("#GlobalNavHeaderCombo");const globalNavLazyComponents=document.querySelectorAll(".GlobalNavComponentPlaceholder");const globalNavListCategoryItems=document.querySelectorAll(".GlobalNavListItem.isCategory");const GlobalNavListPrimary=document.querySelector("#GlobalNavListPrimary");const GlobalNavListSecondary=document.querySelector("#GlobalNavListSecondary");const globalNavMyVideoSettingsItems=document.querySelectorAll(".GlobalNavMyVideoSettingsItem");const globalNavSection=document.querySelectorAll(".GlobalNavSection");const globalNavSegmentedControls=document.querySelectorAll(".GlobalNavSegmentedControls");const globalNavUserButton=document.querySelector("#GlobalNavListItem-user");const globalNavWaffleButton=document.querySelector("#GlobalNavListItem-waffle");const globalDropdowns=document.querySelectorAll(".SportsDropdown");const globalSubnav=document.querySelector("#GlobalSubnav");const navListItemsDots=document.querySelectorAll(".GlobalNavListItem.isDots");const navListDotsButton=document.querySelector("#NavListDotsButton");const navListDotsClose=document.querySelector("#DotsNavListCloseButton");const sportsModal=document.querySelector(".SportsModal");const isScrollJackPage=globalNavHeaderCombo?globalNavHeaderCombo.classList.contains("isScrollJack"):false;const classAnimation="notAnimated";const classFakeIsOpen="fakeIsOpen";const classHidden="isHidden";const classMenuCoverIsOpen="menuCoverIsOpen";const classOpen="isOpen";const classTouch="isTouch";loadMvpdScripts();const navClose=()=>{bodyUnlock();globalNavHeader.classList.remove(classOpen);globalNav.classList.remove(classOpen)};const navOpen=()=>{bodyLock();globalNavHeader.classList.add(classOpen);globalNav.classList.add(classOpen)};if(globalNavMyVideoSettingsItems){globalNavMyVideoSettingsItems.forEac
1h((item=>{const type=item.getAttribute("data-type");const itemLinks=item.querySelectorAll("a");if(itemLinks){itemLinks.forEach((itemLink=>{replaceRedirectInLink(itemLink)}))}if(type==="adobe"){const buttonLogin=item.querySelector('[data-status="login"]');const buttonLogout=item.querySelector('[data-status="logout"]');let hasButtonClicked=false;buttonLogin.addEventListener("click",(async()=>{const popularList=await getPopularMvpds();const primeTimeList=await getPrimetimeMvpds();if(sportsModal){if(hasButtonClicked){openModal(sportsModal)}else{renderModal(sportsModal,popularList,primeTimeList);openModal(sportsModal)}hasButtonClicked=true}}));buttonLogout.addEventListener("click",(async()=>{mvpdLogout()}))}}))}const trackElements=document.querySelectorAll("[data-tracking]");trackListOfElements(trackElements);initializeDropdowns(globalDropdowns,classOpen);if(globalNavBlockingOverlay){if(isTouchDevice()){globalNavBlockingOverlay.classList.add(classTouch)}}const filterSelectNavListItem=(currentUrlCategory,list)=>{const currentItem=Object.values(list).find((item=>{const href=item.querySelector(".GlobalNavListItemLink").getAttribute("href");try{const url=new URL(href);return["qa.cbssports.com","www.cbssports.com"].includes(url?.hostname)&&href.includes(`/${currentUrlCategory}`)}catch(error){return false}}));return currentItem};const selectNavListItem=()=>{const currentUrlCategory=window.location.pathname.split("/")[1];const itemsPrimary=GlobalNavListPrimary.querySelectorAll(".GlobalNavListItem");const itemsSecondary=GlobalNavListSecondary.querySelectorAll(".GlobalNavListItem");if(!currentUrlCategory){return}let currentItem=filterSelectNavListItem(currentUrlCategory,itemsPrimary);if(!currentItem){currentItem=filterSelectNavListItem(currentUrlCategory,itemsSecondary)}if(currentItem){currentItem.classList.add("isSelected")}};const pinNavListItem=()=>{const selectedItem=GlobalNavListPrimary?.querySelector(".isSelected");const ul=GlobalNavListPrimary?.querySelector("ul");if(selectedItem){if(selectedItem.offsetTop>5){ul.prepend(selectedItem)}}};let firstHover;if(globalNavSection){globalNavSection.forEach((section=>{section.addEventListener("mouseenter",(()=>{firstHover=true}))}))}const lazyLoadImages=container=>{const lazyImages=container.querySelectorAll("img[data-lazy-src]");if(lazyImages.length){lazyImages.forEach((image=>{image.setAttribute("src",image.getAttribute("data-lazy-src"));image.removeAttribute("data-lazy-src");image.removeAttribute("srcset");image.classList.remove("isLazy")}))}};const lazyLoadComponentBySlug=async(slug,properties,element)=>{const componentEndpoint=`${host}/api/watch/esi/component/parts/${slug}?properties=${properties}`;await fetch(componentEndpoint).then((res=>res.text())).then((res=>{const elementClone=element;elementClone.innerHTML=res;const linksWithTracking=elementClone.querySelectorAll("[data-tracking]");trackListOfElements(linksWithTracking)}))};globalNavLazyComponents.forEach((item=>{const slug=item.getAttribute("data-component-slug");const properties=item.getAttribute("data-properties");lazyLoadComponentBySlug(slug,properties,item)}));const setSelectedSegementedControl=(flyout,id)=>{const targetInputs=flyout.querySelectorAll(".GlobalNavSegmentedControls input");targetInputs.forEach((targetItem=>{const clonedTarget=targetItem;if(clonedTarget.value===id){clonedTarget.checked=true}}))};if(globalNavSegmentedControls){globalNavSegmentedControls.forEach((items=>{const inputs=items.querySelectorAll("input");const parent=items.closest(".GlobalNavListItem");const parentId=parent?parent.getAttribute("data-id"):null;if(!inputs.length){return}inputs.forEach((item=>{const clonedItem=item;const id=clonedItem.value;const targetItem=document.querySelector(`#GlobalNavListItem-${id}`);if(!targetItem){return}if(parentId===id){clonedItem.checked=true}item.addEventListener("click",(()=>{globalNavListCategoryItems.forEach((listItem=>{listItem.classList.remove(classOpen)}));setSelectedSegementedControl(targetItem,id);targetItem.classList.add(classOpen);globalNavWaffleButton.classList.add(classFakeIsOpen);lazyLoadImages(targetItem)}))}))}))}if(globalNavListCategoryItems){globalNavListCategoryItems.forEac
1h((item=>{const itemLink=isTouchDevice()?item.querySelector(".GlobalNavListItemLink"):item;eventsArray.forEach((parentEvent=>{itemLink.addEventListener(parentEvent,(e=>{const isOpen=item.classList.contains(classOpen);const isFakeOpen=item.classList.contains(classFakeIsOpen);const dataId=item.getAttribute("data-id");if(parentEvent==="keydown"){if(e.key==="Enter"){if(e.target.classList.contains("GlobalNavListItemLink")){e.preventDefault();lazyLoadImages(item);item.classList.toggle(classOpen)}}return}if(parentEvent==="click"){e.preventDefault();globalNavListCategoryItems.forEach((listItem=>{listItem.classList.remove(classOpen,classAnimation,classFakeIsOpen)}))}if(parentEvent==="mouseleave"){navClose(item);globalNavListCategoryItems.forEach((listItem=>{listItem.classList.remove(classOpen,classAnimation,classFakeIsOpen)}));return}if(item===globalNavWaffleButton){setSelectedSegementedControl(item,dataId)}if(firstHover){item.classList.add(classAnimation);firstHover=false}if(isOpen||isFakeOpen){navClose(item);globalNavUserButton.classList.remove(classMenuCoverIsOpen);globalNavWaffleButton.classList.remove(classMenuCoverIsOpen)}else{navOpen(item);item.classList.add(classOpen);if(item===globalNavWaffleButton){globalNavUserButton.classList.add(classMenuCoverIsOpen)}else if(item===globalNavUserButton){globalNavWaffleButton.classList.add(classMenuCoverIsOpen)}if(item.getAttribute("data-align")==="right"){globalNavWaffleButton.classList.add(classFakeIsOpen)}}lazyLoadImages(item)}))}));eventsArrayOnce.forEach((parentEvent=>{itemLink.addEventListener(parentEvent,(e=>{if(parentEvent==="keydown"&&e.key!=="Enter"){return}const id=item.getAttribute("data-id");if(id==="user"){loadMyFantasyTeamsComponent(item,true);loadMyAccountComponent(item);loadVideoSettingsComponent(item)}}),{once:true})}))}))}if(navListDotsButton){eventsArray.forEach((parentEvent=>{navListDotsButton.addEventListener(parentEvent,(e=>{if(parentEvent==="keydown"&&e.key!=="Enter"){return}bodyLock();navListDotsButton.classList.toggle(classOpen)}))}))}if(navListDotsClose&&navListDotsButton){navListDotsClose.addEventListener("click",(e=>{e.stopPropagation();bodyUnlock();navListDotsButton.classList.remove(classOpen)}))}if(navListItemsDots&&navListDotsButton){toggleNavListDotsButton(navListItemsDots,navListDotsButton,classHidden
1)}if(sportsModal){globalNavHeaderWrap.prepend(sportsModal)}selectNavListItem();window.addEventListener("resize",(()=>{pinNavListItem();if(navListItemsDots&&navListDotsButton){toggleNavListDotsButton(navListItemsDots,navListDotsButton,classHidden)}}));if(!isScrollJackPage){window.addEventListener("scroll",(()=>{onWindowScroll(globalNavHeader,globalNav,globalSubnav)}));onWindowScroll(globalNavHeader,globalNav,globalSubnav)}window.addEventListener("load",(()=>{pinNavListItem()}))}(()=>{const rootNavElement=document.querySelector("#GlobalNavHeader");if(rootNavElement){onReady()}})();
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.