1"use strict";(()=>{(self.webpackChunkweb_v2=self.webpackChunkweb_v2||[]).push([[9272],{51464(Z,E,l){l.r(E)},34773(Z,E,l){l.r(E)},15639(Z,E,l){l.r(E)},96020(Z,E,l){l.r(E)},21138(Z,E,l){l.r(E)},94443(Z,E,l){l.r(E)},31805(Z,E,l){l.r(E)},15699(Z,E,l){var t=l(96540),f=l(51612),o=l(43543);const g=({closeShare:T,shareEmail:h,shareFb:_,shareTwitter:w,permalink:I,copiedText:b,gistData:n})=>{var c,i;const[u,m]=(0,t.useState)(!1),p=U=>{var v,S,d;window==null||(d=window.webkit)===null||d===void 0||(S=d.messageHandlers)===null||S===void 0||(v=S.articleMessageHandler)===null||v===void 0||v.postMessage(U)},a=window==null||(i=window.app_data)===null||i===void 0||(c=i.appcmsMain)===null||c===void 0?void 0:c.genericMessages,P=(a==null?void 0:a.copyToClipboardButtonLabel)||"Copy",A=(a==null?void 0:a.copiedToClipboardButtonLabel)||"Copied!";return t.createElement(t.Fragment,null,t.createElement("div",{className:"shareBG"}),t.createElement("div",{className:"share-modal-container"},t.createElement("div",{className:"share-modal"},t.createElement("div",{className:"share-header"},(a==null?void 0:a.shareOptionsTitle)||"Share Options",t.createElement("p",{className:"close-icon",onClick:T},"\xD7")),t.createElement("div",{className:"social-share"},t.createElement("div",{className:"social-list"},t.createElement("span",null,t.createElement("div",{id:"facebook",className:"bg-fb",onClick:()=>{_(),p("facebook"),(0,o.iR)({eventName:"share",subSection:null,type:"watchlist",reason:n==null?void 0:n.title,status:n==null?void 0:n.id,additionalLabel:"facebook",action:"Share",paymentStatus:null,eventCategory:"Interaction",section:n==null?void 0:n.contentType})}},(0,f.kp)()),t.createElement("p",null,"Facebook")),t.createElement("span",null,t.createElement("div",{id:"twitter",className:"bg-twitter",onClick:()=>{w(),p("twitter"),(0,o.iR)({eventName:"share",subSection:null,type:"watchlist",reason:n==null?void 0:n.title,status:n==null?void 0:n.id,additionalLabel:"twitter",action:"Share",paymentStatus:null,eventCategory:"Interaction",section:n==null?void 0:n.contentType})}},(0,f.Xn)()),t.createElement("p",null,"X")),t.createElement("span",null,t.createElement("div",{id:"email",className:"bg-email",onClick:()=>{h(),p("email"),(0,o.iR)({eventName:"share",subSection:null,type:"watchlist",reason:n==null?void 0:n.title,status:n==null?void 0:n.id,additionalLabel:"email",action:"Share",paymentStatus:null,eventCategory:"Interaction",section:n==null?void 0:n.contentType})}},(0,f.M6)()),t.createElement("p",null,"Email")))),t.createElement("div",{className:"email-share"},t.createElement("div",{className:"email-btn-wrapper"},t.createElement("input",{"aria-labelledby":"URL",type:"text",placeholder:"URL",value:I}),t.createElement("button",{"aria-label":"copy",onClick:()=>{navigator.clipboard.writeText(b),m(!0)}},u===!1?P:A))))))};l.d(E,["A",0,g])},92553(Z,E,l){let t=null;const f=c=>{let i="";switch(c){case"16*9":case"16x9":i="r16x9";break;case"9*16":case"9x16":i="r9x16";break;case"1*1":i="r1x1";break;case"3*4":i="r3x4";break;case"4*3":i="r4x3";break;case"32*9":i="r32x9";break;default:i=""}return i},o=c=>{let i={w:1920,h:1080,type:"placeholderCover"};switch(c){case"16*9":i={w:1920,h:1080,type:"placeholderCover"};break;case"1*1":i={w:1080,h:1080,type:"placeholderPoster"};break;case"3*4":i={w:1080,h:1440,type:"placeholderPoster"};break;default:i={w:1920,h:1080,type:"placeholderCover"}}return i},r=(c,i)=>{var u,m,p,a,P,A,U;let v=f(c),{type:S}=o(c);return!(i==null||(m=i.gist)===null||m===void 0||(u=m.imageGist)===null||u===void 0)&&u[`${v}`]?`${i==null||(p=i.gist)===null||p===void 0?void 0:p.imageGist[`${v}`]}?impolicy=resize&w=80&h=80`:`${(U=window)===null||U===void 0||(A=U.app_data)===null||A===void 0||(P=A.appcmsMain)===null||P===void 0||(a=P.images)===null||a===void 0?void 0:a[S]}?impolicy=resize&w=80&h=80`},g=(c,i)=>{var u,m,p,a,P,A,U;const v=f(c),{type:S}=o(c),d=(i==null?void 0:i.channels)&&(i==null||(u=i.channels)===null||u===void 0?void 0:u.length)>0;let D=i==null||(p=i.gist)===null||p===void 0||(m=p.imageGist)===null||m===void 0?void 0:m[`${v}`];if(d){const C=i.channels.find($=>($==null?void 0:$.isDefault)===!0);C&&C.featuredThumbnail&&(D=C.featuredThumbnail)}return D||((U=window)===null||U===void 0||(A=U.app_data)===null||A===void 0||(P=A.appcmsMain)===null||P===void 0||(a=P.images)===null||a===void 0?void 0:a[S])||""},T=(c,i)=>{let{w:u,h:m}=o(c),p=g(c,i);return p?`${p}?impolicy=resize&w=${u}&h=${m}`:""},h=[{w:480,h:270},{w:768,h:432},{w:1080,h:608},{w:1920,h:1080}],_=[{w:320,h:320},{w:480,h:480},{w:768,h:768},{w:1080,h:1080}],w=[{w:320,h:427},{w:480,h:640},{w:768,h:1024},{w:1080,h:1440}],I=c=>{switch(c){case"1*1":return _;case"3*4":return w;default:return h}},b=(c,i)=>{const u=g(c,i);return u?I(c).map(({w:p,h:a})=>`${u}?impolicy=resize&w=${p}&h=${a} ${p}w`).join(", "):""},n=c=>{const{w:i,h:u}=o(c);return{width:i,height:u}};l.d(E,["LF",0,r,"by",0,T,"tS",0,b,"vX",0,n])},21066(Z,E,l){var t=l(65499);const f=o=>{let r="";if(o!=null&&o.gist){var g,T,h,_;const{permalink:w,watchedTime:I,id:b}=o.gist,n=b;
1let c=I?`?start=${I}`:"";if(r=`${w}${c}`,window&&(0,t.$)((h=window)===null||h===void 0||(T=h.app_data)===null||T===void 0||(g=T.appcmsMain)===null||g===void 0?void 0:g.features,"showDetailToggle")&&(!(o==null||(_=o.series)===null||_===void 0)&&_.gist)&&(c=I?`&start=${I}`:"",r=`${o.series.gist.permalink}?v=${b}${c}`),o!=null&&o.channels&&(o==null?void 0:o.channels.length)>0){const i=o==null?void 0:o.channels.find(u=>(u==null?void 0:u.isDefault)===!0);if(i&&(i!=null&&i.id)){const u=r.includes("?")?"&":"?";r=`${r}${u}channelId=${i==null?void 0:i.id}`}}}return r};l.d(E,["C",0,f])},56637(Z,E,l){l.d(E,{R:()=>b});var t=l(96540),f=l(84976),o=l(15472),r=l(15699),g=l(96599),T=l(57293),h=l(77869),_=l(83707),w=l(23438),I=l(51354);w.Ay.use([w.Vx]);function b(n){var c,i,u,m,p,a,P,A,U,v,S,d,D,C,$,V,X,z,oe,ae,se,me,Q,ee;const[j,pe]=(0,t.useState)(!1),[K,ge]=(0,t.useState)({title:"",permalink:"",id:""}),R=n.hasContentTypeAny,ye=Be(),Ae=(0,t.useRef)(null),N=(0,t.useRef)(null),{trayTitle:Se,traySubTitle:W,trayItem:fe}=n.isHistoryTrayItem?n.fontConfig:(0,h.getFontsStyles)(n==null||(i=n.data)===null||i===void 0||(c=i.layout)===null||c===void 0?void 0:c.fontSetting,n==null||(m=n.data)===null||m===void 0||(u=m.layout)===null||u===void 0?void 0:u.settings),te=n==null||(P=n.data)===null||P===void 0||(a=P.layout)===null||a===void 0||(p=a.settings)===null||p===void 0?void 0:p.parallax,k=n==null||(U=n.data)===null||U===void 0||(A=U.layout)===null||A===void 0?void 0:A.settings,J=n==null||(d=n.data)===null||d===void 0||(S=d.layout)===null||S===void 0||(v=S.settings)===null||v===void 0?void 0:v.columns,re=(n==null||(D=n.data)===null||D===void 0?void 0:D.contentData)||(n==null?void 0:n.contentData)||[],De=(k==null?void 0:k.hoverEffect)||"zoomIn",Y=G=>{ge({...K,id:G.id,title:G.title,permalink:G.permalink}),pe(!0),document.getElementsByTagName("body")[0].style.overflow="hidden"},q=()=>{pe(!1),document.getElementsByTagName("body")[0].style.overflow="unset"},Ee=()=>{g.A.email(window.location.href,K.title)},Me=()=>{g.A.facebook(window.location.href)},ne=()=>{g.A.twitter(window.location.href,K.title)};function Be(){var G,ue,ve,we,Pe,Ie,Te,e,le,Fe,Ne,he;if(!(n==null||(G=n.data)===null||G===void 0)&&G.contentType)return n.data.contentType;if(!(n==null||(Pe=n.data)===null||Pe===void 0||(we=Pe.contentData)===null||we===void 0||(ve=we[0])===null||ve===void 0||(ue=ve.gist)===null||ue===void 0)&&ue.contentType)return(Ie=n.data.contentData)===null||Ie===void 0?void 0:Ie[0].gist.contentType;if(!(n==null||(le=n.contentData)===null||le===void 0||(e=le[0])===null||e===void 0||(Te=e.gist)===null||Te===void 0)&&Te.contentType)return n==null||(he=n.contentData)===null||he===void 0||(Ne=he[0])===null||Ne===void 0||(Fe=Ne.gist)===null||Fe===void 0?void 0:Fe.contentType}if(!ye)return!1;const Ue=(z=window)===null||z===void 0||(X=z.app_data)===null||X===void 0||(V=X.appcmsMain)===null||V===void 0||($=V.socialMedia)===null||$===void 0||(C=$.ticketMaster)===null||C===void 0?void 0:C.url,Oe=((me=window)===null||me===void 0||(se=me.app_data)===null||se===void 0||(ae=se.appcmsMain)===null||ae===void 0||(oe=ae.genericMessages)===null||oe===void 0?void 0:oe.seeMoreCTA)||"See More";return(0,t.useEffect)(()=>{var G,ue;let ve=(ue=document)===null||ue===void 0||(G=ue.documentElement)===null||G===void 0?void 0:G.style;ve==null||ve.setProperty("--hoverBorderColor",(k==null?void 0:k.hoverItemBorderColor)||"#ffffff")},[]),re!=null&&re.length?t.createElement(t.Fragment,null,t.createElement("div",{className:`slider-wrapper ${te!=null&&te.enable?"parallax-container":""}`},(te==null?void 0:te.enable)===!0&&t.createElement("img",{alt:"Parallax Logo",className:"parallex-img",src:te==null?void 0:te.imageUrl}),!n.isMyListPage&&(re!=null&&re.length)?t.createElement("div",{className:"tray-title site-color"},(k==null?void 0:k.trayIconUrl)&&t.createElement("div",{className:"trayIconWrapper"},t.createElement("img",{alt:"Parallax Logo",src:k.trayIconUrl,className:"lazy",loading:"lazy","data-src":k.trayIconUrl})),t.createElement("div",{className:"title-wrapper"},t.createElement("div",{className:"topWrapper",style:W},!(n==null||(Q=n.data)===null||Q===void 0)&&Q.subtitle?t.createElement("div",{className:"subTitle"},n==null||(ee=n.data)===null||ee===void 0?void 0:ee.subtitle):t.createElement(t.Fragment,null),(k==null?void 0:k.sponsorshipLogoUrl)&&t.createElement("div",{className:"sponsorLogoWrapper"},t.createElement(f.k2,{to:Ue,target:"_blank",referrerPolicy:"no-referrer"},t.createElement("img",{src:k.sponsorshipLogoUrl,className:"lazy",alt:"Sponsor Logo",loading:"lazy","data-src":k.sponsorshipLogoUrl})))),t.createElement("div",{className:te!=null&&te.enable?"bold-title":"para-title bold-title",style:Se,dangerouslySetInnerHTML:{__html:(0,h.getTrayTitle)(n.data.title)}}))):t.createElement(t.Fragment,null),t.createElement("div",{className:"tray-navigation-wrapper"},t.createElement("div",{ref:Ae},t.createElement(T.A,{to:"prev",onClick:()=>(0,I.A)("last"),className:!0,isArticlePage:!1})),t.createElement("div",{ref:N},t.createElement(T.A,{to:"next",onClick:()=>(0,I.A)("first"),className:!0,isArticlePage:!1}))),t.createElement("div",{className:"tray-container"},t.createElement(_.RC,{slideToClickedSlide:!1,preventClicks:!0,preventClicksPropagation:!0,noSwiping:!0,noSwipingClass:"swiper-no-swiping",simulateTouch:!0,threshold:10,spaceBetween:10,className:"mySwiper",modules:[w.dF],navigation:{prevEl:Ae.current,nextEl:N.current},onInit:G=>{G.params.navigation.prevEl=Ae.current,G.params.navigation.nextEl=N.current,G.navigation.init(),G.navigation.update()},breakpoints:{360:{slidesPerView:(J==null?void 0:J.mobile)||1,slidesPerGroup:1},650:{slidesPerView:(J==null?void 0:J.mobile)||2,slidesPerGroup:2},768:{slidesPerView:(J==null?void 0:J.tablet)||3,slidesPerGroup:2}
1,1024:{slidesPerView:(J==null?void 0:J.desktop)||3,slidesPerGroup:3}}},re.map((G,ue)=>{var ve,we,Pe,Ie,Te;return t.createElement(_.qr,{key:`${(ve=G==null||(Pe=G.gist)===null||Pe===void 0?void 0:Pe.id)!==null&&ve!==void 0?ve:"slide"}-${ue}`},t.createElement("div",{className:`slide-item ${De=="border"?"hover-border":""}`},t.createElement(o.q,{itemIdx:ue,item:G,layoutData:n.data.layout,isDetailedStory:!1,toggleShare:Y,trayItem:fe,isHighlightTray:!1,isHistoryTrayItem:(we=n.isHistoryTrayItem)!==null&&we!==void 0?we:!1,isMyListPage:n.isMyListPage,includesAnyContent:R,badgeIdentifier:(Ie=re[ue])===null||Ie===void 0?void 0:Ie.monetizationBadgeIdentifier,moduleId:n.data.id||"",moduleType:n==null||(Te=n.data)===null||Te===void 0?void 0:Te.moduleType,trayTitle:n.data.title})))}),re.length>0&&(k==null?void 0:k.showMore)===!0&&t.createElement(_.qr,{key:"see-more"},t.createElement("div",{className:"slide-item"},t.createElement("div",{className:"see-more"},t.createElement("button",{"aria-label":"See more",onClick:()=>window.location.href=`${k.showMorePermalink}?contentType=${ye}`},Oe))))))),j&&t.createElement("div",null,t.createElement(r.A,{closeShare:q,shareEmail:Ee,shareFb:Me,shareTwitter:ne,permalink:window.location.origin+K.permalink,copiedText:window.location.origin+K.permalink,gistData:{id:K==null?void 0:K.id,title:K==null?void 0:K.title}}))):null}},15472(Z,E,l){l.d(E,{q:()=>u});var t=l(96540),f=l(84976),o=l(47767),r=l(51612),g=l(27036),T=l(92553),h=l(43543),_=l(73539),w=l(61171),I=l.n(w),b=l(98646),n=l(54201),c=l(21066),i=l(76482);function u(m){var p,a,P,A,U,v,S,d,D,C,$,V,X,z,oe,ae,se,me,Q,ee,j,pe,K,ge,R,ye,Ae,N,Se,W,fe,te,k,J,re,De,Y,q,Ee,Me,ne,Be,Ue,Oe,G,ue,ve,we,Pe,Ie;const{itemIdx:Te,item:e,layoutData:le,isDetailedStory:Fe,toggleShare:Ne,trayItem:he,isHighlightTray:M,isHighlightTrayLgItem:H=!1,isHistoryTrayItem:F=!1,isMyListPage:O,includesAnyContent:ie,badgeIdentifier:de,moduleContentType:be,moduleId:Le,moduleType:We,trayTitle:Ve,...Ze}=m,{pathname:xe}=(0,o.zy)(),s=le==null?void 0:le.settings,{badgeStyles:Xe}=(le==null?void 0:le.fontSetting)||{},[Qe,je]=(0,t.useState)("0:00"),[ze,Je]=(0,t.useState)(m==null||(a=m.layoutData)===null||a===void 0||(p=a.settings)===null||p===void 0?void 0:p.itemBgColor);let $e=20*1.7;const{onItemClickHandler:tt}=(0,_.useStandaloneSearchHelper)(),[lt,qe]=(0,t.useState)(!1),Ke=(0,o.Zp)();let et=de||(e==null?void 0:e.monetizationBadgeIdentifier),st=le==null||(P=le.settings)===null||P===void 0?void 0:P.showMonetizationBadge;const mt=le==null||(A=le.settings)===null||A===void 0?void 0:A.showMonetizationBadgeOnThumbnail,Ge=st&&mt=="overTheThumbnail",ot=(s==null?void 0:s.hoverEffect)||"zoomIn";let rt=e==null?void 0:e.plans,ut=e==null?void 0:e.id;const vt=(e==null||(U=e.ogDetails)===null||U===void 0?void 0:U.thumbnailUrl)||null,ct=(e==null||(v=e.gist)===null||v===void 0?void 0:v.permalink)===xe||!1,gt=(lt||ct)&&vt?vt:(0,T.by)(s==null?void 0:s.thumbnailType,e),Et=y=>{const B=Math.floor(y/3600),L=Math.floor(y%3600/60),x=Math.floor(y%60);return je(B==0?(L==0?"00":L.toString().length==1?"0"+L:L)+":"+(x==0?"00":x.toString().length==1?"0"+x:x):(B==0?"0":B)+":"+(L==0?"00":L.toString().length==1?"0"+L:L)+":"+(x==0?"00":x.toString().length==1?"0"+x:x))},[ht,pt]=(0,t.useState)("");(0,t.useEffect)(()=>{var y,B,L,x;const ce=document.querySelector(".thumb-img");e!=null&&e.runtime&&Et(e==null?void 0:e.runtime),Je(s!=null&&s.textBackgroundColor?`rgba(${s==null||(y=s.textBackgroundColor)===null||y===void 0?void 0:y.r}, 2 ${s==null||(B=s.textBackgroundColor)===null||B===void 0?void 0:B.g}, 3 ${s==null||(L=s.textBackgroundColor)===null||L===void 0?void 0:L.b}, 4 ${s==null||(x=s.textBackgroundColor)===null||x===void 0?void 0:x.a})`:ze),pt(St(s==null?void 0:s.thumbnailType))},[]);const nt=document.querySelector(".sm-tray"),at=nt==null?void 0:nt.getElementsByClassName("detail-card");if(at)for(var it=0;
4it<at.length;it++)at[it].classList.remove("aspect16x9");function _t(y){let B=y*1e3,L=new Date().getTime()-B,x=(L/1e3).toFixed(1),ce=(L/(1e3*60)).toFixed(1),_e=(L/(1e3*60*60)).toFixed(1),Re=(L/(1e3*60*60*24)).toFixed(1);return parseInt(x)<60?Math.floor(parseInt(x))+"s":parseInt(ce)<60?Math.floor(parseInt(ce))+"m":parseInt(_e)<24?Math.floor(parseInt(_e))+"h":Math.floor(parseInt(Re))+"d"}function yt(y,B,L){var x,ce,_e,Re;if((0,h.Pd)("set",Ve),(m==null||(x=m.layoutData)===null||x===void 0?void 0:x.blockName)==="VL_VerticalVideoTray_01"||(m==null||(ce=m.layoutData)===null||ce===void 0?void 0:ce.blockName)==="VL_RecommendationTray_01"){L.preventDefault(),L.stopPropagation();const Ce=new URLSearchParams(location.search);e!=null&&e.isVerticalVideo&&Ce.set("vertical","true"),localStorage.setItem("moduleId",Le),B&&y&&B&&Ke({pathname:`${B}`,search:decodeURIComponent(Ce.toString())})}return I().publish("user-analytics",{ename:b.rO.ITEM_CLICK,data:{itemNo:Te+1,vid:e==null?void 0:e.id,pageId:window.page_data.page.id,isVertical:(e==null?void 0:e.isVerticalVideo)||null,moduleType:We||(le==null?void 0:le.type),modID:Le}}),(0,h.iR)({eventName:"collection_click",subSection:null,type:"widget",reason:null,status:e==null||(_e=e.gist)===null||_e===void 0?void 0:_e.title,action:"Click",paymentStatus:null,eventCategory:"Collection Interaction",additionalLabel:e==null||(Re=e.gist)===null||Re===void 0?void 0:Re.permalink,section:null}),xe.includes("/search")&&y&&B&&(tt({clickedNode:y,url:B}),(0,h.t)()),(0,h.t)(),(0,h.vh)(),!0}function At(){var y;return xe==="/search"?e!=null&&e.publishDate?`${_t(e==null?void 0:e.publishDate)}`:"":(e!=null&&e.publishDate?`${_t(e==null?void 0:e.publishDate)} \u2022 `:"")+(e==null||(y=e.author)===null||y===void 0?void 0:y.name)}const ft=(y,B)=>{var L,x,ce;let _e=B?y==null||(x=y.content)===null||x===void 0||(L=x.gist)===null||L===void 0?void 0:L.title:y==null||(ce=y.gist)===null||ce===void 0?void 0:ce.title;if(!B&&(y!=null&&y.channels)&&(y==null?void 0:y.channels.length)>0){var Re;const Ce=y==null||(Re=y.channels)===null||Re===void 0?void 0:Re.find(He=>(He==null?void 0:He.isDefault)===!0);Ce&&(Ce!=null&&Ce.title)&&(_e=Ce==null?void 0:Ce.title)}return(_e==null?void 0:_e.length)>60?_e.substr(0,60)+"....":_e};function Dt(){const{watchedPercentage:y}=e;return t.createElement("progress",{className:"watch-duration-bar",value:y.toString(),max:"100"})}function St(y){switch(y){case"1*1":return"aspect1x1";case"4*3":return"aspect4x3";case"3*4":return"aspect3x4";case"9*16":return"aspect9x16";case"16*9":return"aspect16x9";case"32*9":return"aspect32x9";default:return""}}const Tt=(y=[])=>{const B=y?y==null?void 0:y.length:0;return B>1?`${B} VIDEOS`:`${(B===1?"1 ":"0 ")+"VIDEO"}`},Ct=(y=[])=>{var B;const L=y==null?void 0:y.filter(ce=>ce.type==="IMAGE");return(L==null||(B=L[0])===null||B===void 0?void 0:B.title)||""};let Mt=e==null?void 0:e.publishDate;const ke=new Date(Mt*1e3),dt=-ke.getTimezoneOffset(),wt=dt>=0?"+":"-",Pt=String(Math.floor(Math.abs(dt)/60)).padStart(2,"0"),It=String(Math.abs(dt)%60).padStart(2,"0"),Ye=y=>String(y).padStart(2,"0"),Rt=`${ke.getFullYear()}-${Ye(ke.getMonth()+1)}-${Ye(ke.getDate())}T${Ye(ke.getHours())}:${Ye(ke.getMinutes())}:${Ye(ke.getSeconds())}${wt}${Pt}:${It}`;return t.createElement(f.N_,{className:"video-tray-item",to:(0,c.C)(e)||(e==null||(d=e.content)===null||d===void 0||(S=d.gist)===null||S===void 0?void 0:S.permalink),onClick:y=>{var B,L,x;return yt(e,F?e==null||(L=e.content)===null||L===void 0||(B=L.gist)===null||B===void 0?void 0:B.permalink:e==null||(x=e.gist)===null||x===void 0?void 0:x.permalink,y)},"aria-label":`${Te==0?Ve:""} ${Ct(e==null?void 0:e.badges)} ${(e==null||(C=e.content)===null||C===void 0||(D=C.gist)===null||D===void 0?void 0:D.title)||(e==null||($=e.gist)===null||$===void 0?void 0:$.title)} ${ct?"Selected":""}`,onFocus:y=>{y.currentTarget.scrollIntoView({behavior:"smooth",block:"center"})}},t.createElement("div",{className:"detail-card",style:{backgroundColor:ze},...(e==null||(V=e.gist)===null||V===void 0?void 0:V.contentType)==="VIDEO"?{itemProp:"video",itemScope:!0,itemType:"https://schema.org/VideoObject"}:{}},t.createElement("meta",{itemProp:"name",content:F?(e==null||(oe=e.content)===null||oe===void 0||(z=oe.gist)===null||z===void 0||(X=z.t
4itle)===null||X===void 0?void 0:X.length)>60?(e==null||(me=e.content)===null||me===void 0||(se=me.gist)===null||se===void 0||(ae=se.title)===null||ae===void 0?void 0:ae.substr(0,60))+"....":e==null||(ee=e.content)===null||ee===void 0||(Q=ee.gist)===null||Q===void 0?void 0:Q.title:(e==null||(pe=e.gist)===null||pe===void 0||(j=pe.title)===null||j===void 0?void 0:j.length)>60?(e==null||(ge=e.gist)===null||ge===void 0||(K=ge.title)===null||K===void 0?void 0:K.substr(0,60))+"....":e==null||(R=e.gist)===null||R===void 0?void 0:R.title}),e!=null&&e.publishDate?t.createElement("meta",{itemProp:"uploadDate",content:Rt}):t.createElement(t.Fragment,null),!(e==null||(Ae=e.content)===null||Ae===void 0||(ye=Ae.gist)===null||ye===void 0)&&ye.description||!(e==null||(N=e.gist)===null||N===void 0)&&N.description?t.createElement("meta",{itemProp:"description",content:F?e==null||(W=e.content)===null||W===void 0||(Se=W.gist)===null||Se===void 0?void 0:Se.description:e==null||(fe=e.gist)===null||fe===void 0?void 0:fe.description}):t.createElement(t.Fragment,null),t.createElement("div",{className:`backgroud-image ${ot=="border"?"hover-border":""}`,onMouseEnter:()=>qe(!0),onMouseLeave:()=>qe(!1)},(s==null?void 0:s.showBadgeOnThumbnail)&&(e==null||(te=e.badges)===null||te===void 0?void 0:te.length)>0&&t.createElement("div",{className:"badges"},(0,i.a)(0,e==null?void 0:e.badges,e==null?void 0:e.badges[0],!1,Xe,s==null?void 0:s.thumbnailType,e==null||(k=e.gist)===null||k===void 0?void 0:k.id,s)),Ge?t.createElement(n.A,{plans:rt,monetizationBadgeIdentifier:et,trayItem:he,contentId:ut,overTheThumbnail:Ge,contentType:e==null||(J=e.gist)===null||J===void 0?void 0:J.contentType}):t.createElement(t.Fragment,null),!Ge&&!et&&(e==null||(re=e.gist)===null||re===void 0?void 0:re.contentType)==="VIDEO"&&t.createElement("div",{className:"play-video-icon"},(0,r.Vj)()),!Ge&&!et&&(e==null||(De=e.gist)===null||De===void 0?void 0:De.contentType)==="VIDEOPLAYLIST"&&t.createElement("div",{className:"play-icon-playlist"},(0,r.Vj)()),t.createElement(g.A,{className:`${ht} lazy ${ot=="border"?"hover-border":""}`,style:{borderColor:ot==="border"?(s==null?void 0:s.hoverItemBorderColor)||"#ffffff":""},lowQualitySrc:(0,T.LF)(s==null?void 0:s.thumbnailType,e),alt:(e==null||(Y=e.gist)===null||Y===void 0?void 0:Y.title)||"",src:gt,srcSet:(0,T.tS)(s==null?void 0:s.thumbnailType,e),sizes:"(max-width: 768px) 50vw, 33vw",width:(0,T.vX)(s==null?void 0:s.thumbnailType).width,height:(0,T.vX)(s==null?void 0:s.thumbnailType).height}),F?t.createElement(Dt,null):!1,(e==null||(q=e.gist)===null||q===void 0?void 0:q.contentType)==="VIDEO"&&(s==null?void 0:s.showContentDuration)&&t.createElement("div",{className:"video-time"},Qe)),!(s!=null&&s.hideItemTitle)&&t.createElement("div",{className:"background-property"},t.createElement("div",{className:"text-wrapper-tray"},t.createElement("div",{className:`${(e==null||(Ee=e.gist)===null||Ee===void 0?void 0:Ee.contentType)==="VIDEOPLAYLIST"?"playlist-title-wrapper tray-title-wrapper":"tray-title-wrapper"}${s!=null&&s.enableSharing?" tray-title-wrapper-with-share":""}`},t.createElement("div",{style:s!=null&&s.enableSharing?{flex:1,minWidth:0}:{width:"100%"}},t.createElement("p",{style:{...he,fontSize:H?`${+(he==null||(Me=he.fontSize)===null||Me===void 0?void 0:Me.split("px")[0])+4}px !important`:he==null?void 0:he.fontSize,textAlign:(s==null?void 0:s.trayTitlePlacement)||"left"},className:"site-color"},ft(e,F)),M?t.createElement("p",{style:he,className:"description",title:F?e==null||(Be=e.content)===null||Be===void 0||(ne=Be.gist)===null||ne===void 0?void 0:ne.description:e==null||(Ue=e.gist)===null||Ue===void 0?void 0:Ue.description},F?e==null||(G=e.content)===null||G===void 0||(Oe=G.gist)===null||Oe===void 0?void 0:Oe.description:e==null||(ue=e.gist)===null||ue===void 0?void 0:ue.description):!1),(s==null?void 0:s.enableSharing)&&t.createElement("div",{tabIndex:0,className:"share-wrapper-tray",onClick:y=>{var B,L,x,ce,_e,Re,Ce,He;y.preventDefault(),y.stopPropagation(),Ne({title:F?e==null||(L=e.content)===null||L===void 0||(B=L.gist)===null||B===void 0?void 0:B.title:e==null||(x=e.gist)===null||x===void 0?void 0:x.title,id:e==null||(_e=e.content)===null||_e===void 0||(ce=_e.gist)===null||ce===void 0?void 0:ce.id,permalink:F?e==null||(Ce=e.content)===null||Ce===void 0||(Re=Ce.gist)===null||Re===void 0?void 0:Re.permalink:e==null||(He=e.gist)===null||He===void 0?void 0:He.permalink})}},(0,r.NU)()))),(s==null?void 0:s.showContentDuration)&&t.createElement("div",{className:"image-wrapper-tray"},t.createElement("div",{className:"image-text-wrapper"},(e==null||(ve=e.gist)===null||ve===void 0?void 0:ve.contentType)==="VIDEOPLAYLIST"?
4(0,r.aT)():(e==null||(we=e.gist)===null||we===void 0?void 0:we.contentType)==="ARTICLE"&&be===(e==null||(Pe=e.gist)===null||Pe===void 0?void 0:Pe.contentType)?(0,r.sx)():null,t.createElement("p",null,(e==null||(Ie=e.gist)===null||Ie===void 0?void 0:Ie.contentType)==="VIDEOPLAYLIST"?Tt(e==null?void 0:e.videoList):"")))),st&&!Ge?t.createElement(n.A,{plans:rt,monetizationBadgeIdentifier:et,trayItem:he,contentId:ut,overTheThumbnail:Ge}):t.createElement(t.Fragment,null)))}},27036(Z,E,l){var t=l(96540);const o=({className:r,src:g="",alt:T,lowQualitySrc:h,style:_={},width:w,height:I,srcSet:b,sizes:n,loading:c="lazy",fetchPriority:i,itemProp:u="thumbnailUrl"})=>{const m=c==="eager",[p,a]=(0,t.useState)(m),[P,A]=(0,t.useState)(m?g:h),U=(0,t.useRef)(!0);(0,t.useEffect)(()=>{m&&A(g)},[m,g]),(0,t.useEffect)(()=>{if(m)return;const S=new Image;return S.src=g,S.onload=()=>{U.current&&a(!0)},()=>{U.current=!1,S.onload=null}},[g,m]),(0,t.useEffect)(()=>{p&&!m&&A(g)},[p,g,m]);const v={className:r,src:P,srcSet:p&&b?b:void 0,sizes:p&&n?n:void 0,style:_,alt:T||"",width:w,height:I};return u&&(v.itemProp=u),m&&(v.loading="eager"),i&&(v.fetchPriority=i),t.createElement("img",v)};l.d(E,["A",0,o])},65499(Z,E,l){l.d(E,{$:()=>o});var t=l(58156),f=l.n(t);function o(r,g){return f()(r,g)||null}},67897(Z,E,l){l.r(E);var t=l(96540);const f=o=>{var r,g,T,h;const{className:_,messageText:w,style:I,...b}=o;return t.createElement("div",{className:`vl_no_result_toast ${_}`,style:I,...b},t.createElement("p",null,w||((h=window)===null||h===void 0||(T=h.app_data)===null||T===void 0||(g=T.appcmsMain)===null||g===void 0||(r=g.genericMessages)===null||r===void 0?void 0:r.noResultForLabel)||"There are no results for your search"))};l.d(E,["NoResultToast",0,f])},74562(Z,E,l){l.r(E),l.d(E,{SearchRow:()=>h});var t=l(96540),f=l(95820),o=l(73539),r=l(83707),g=l(23438),T=l(57293);g.Ay.use([g.Vx]);const h=_=>{var w,I,b,n,c,i,u,m,p,a,P,A;const{title:U,show:v=3,titleFontConfig:S,className:d,renderData:D,style:C,showClearButton:$,clearButtonLabel:V,clearCb:X,...z}=_,{onItemClickHandler:oe}=(0,o.useStandaloneSearchHelper)(),{desktop:ae,mobile:se,ott:me,tablet:Q}=(b=_.moduleData)===null||b===void 0||(I=b.layout)===null||I===void 0||(w=I.settings)===null||w===void 0?void 0:w.columns,ee=(i=_.moduleData)===null||i===void 0||(c=i.layout)===null||c===void 0||(n=c.settings)===null||n===void 0?void 0:n.showMonetizationBadge,j=(m=_.moduleData)===null||m===void 0||(u=m.layout)===null||u===void 0?void 0:u.settings,pe=(a=_.moduleData)===null||a===void 0||(p=a.layout)===null||p===void 0?void 0:p.fontSetting,K=(0,t.useRef)(null),ge=(0,t.useRef)(null);return t.createElement("div",{className:`vl_search_page_row ${d}`,style:C,...z},t.createElement("div",{className:"vl_search_page_row_title"},t.createElement("h1",{style:{...S}},U),t.createElement("span",{id:"slider-cta"},$?t.createElement("p",{role:"button",tabIndex:0,"aria-label":V,id:"clearButton",onKeyDown:R=>{R.key=="Enter"&&R.currentTarget.click()},onClick:X},V):null,t.createElement("div",{className:"tray-navigation-wrapper"},t.createElement("div",{ref:K},t.createElement(T.A,{to:"prev",onClick:()=>console.log("last"),className:!0,isArticlePage:!1})),t.createElement("div",{ref:ge},t.createElement(T.A,{to:"next",onClick:()=>console.log("first"),className:!0,isArticlePage:!1}))))),t.createElement("div",{className:"vl_search_page_row_content"},t.createElement(r.RC,{spaceBetween:10,className:"mySwiper",modules:[g.dF],navigation:{prevEl:K.current,nextEl:ge.current},onInit:R=>{R.params.navigation.prevEl=K.current,R.params.navigation.nextEl=ge.current,R.navigation.init(),R.navigation.update()},breakpoints:{650:{slidesPerView:se!=null?se:1.3,slidesPerGroup:1},768:{slidesPerView:Q!=null?Q:2.7,slidesPerGroup:2},1024:{slidesPerView:ae||4.5,slidesPerGroup:3}}},D==null||(A=D.search)===null||A===void 0||(P=A.records)===null||P===void 0?void 0:P.map(R=>t.createElement(r.qr,null,t.createElement(f.SearchSuggestionCard,{key:R.id,onClick:()=>{oe({clickedNode:R,url:R.gist.permalink})},onKeyDown:ye=>{(ye.key==="Enter"||ye.key===" ")&&(ye.preventDefault(),ye.stopPropagation(),oe({clickedNode:R,url:R.gist.permalink}))},data:R,showMonetizationBadge:ee,layoutSettings:j,fontSetting:pe}))))))}},11685(Z,E,l){l.r(E),l.d(E,{Searchbox:()=>p});var t=l(61171),f=l.n(t),o=l(96540),r=l(47767),g=l(51612),T=l(95820),h=l(67897),_=l(73589),w=l(43543),I=l(50316),b=l(73539),n=l(98646),c=l(18325),i=l(21066),u=l(83061),m=l(12308);const p=(0,o.forwardRef)((a,P)=>{var A,U,v,S,d,D,C,$,V,X,z,oe,ae,se,me,Q;const ee=(0,r.Zp)(),{pathname:j}=(0,r.zy)(),{visible:pe,manageVisibility:K,placeholder:ge,genericMessages:R}=a,ye=(a==null||(U=a.moduleData)===null||U===void 0?void 0:U.moduleType)||(a==null||(S=a.moduleData)===null||S===void 0||(v=S.layout)===null||v===void 0?void 0:v.type),Ae=(a==null||(d=a.moduleData)===null||d===void 0?void 0:d.id)||(a==null||(C=a.moduleData)===null||C===void 0||(D=C.layout)===null||D===void 0?void 0:D.id),[N,Se]=(0,o.useState)(""),[W,fe]=(0,o.useState)(void 0),[te,k]=(0,o.useState)(!1),[J,re]=(0,o.useState)(void 0),De=(A=(X=window)===null||X===void 0||(V=X.app_data)===null||V===void 0||($=V.appcmsMain)===null||$===void 0?void 0:$.searchConfig)!==null&&A!==void 0?A:null,{clearPreviousSearch:Y,manageOverlayElement:q,recentSearchHandler:Ee,onItemClickHandler:Me,manageTrayVisibility:ne,getRecentSearchData:Be}=(0,b.useStandaloneSearchHelper)(),[Ue,Oe]=(0,o.useState)(!1),[G,ue]=(0,o.useState)(!1),[ve,we]=(0,o.useState)({}),Pe=M=>{const{value:H}=M.target;return H?((0,w.iR)({eventName:"logout",subSection:null,type:"logout",reason:H,status:null,action:"Search",paymentStatus:null,eventCategory:"Search",section:null,additionalLabel:null}),q([{actionType:"show",elementId:"searchResultContainer"},{actionType:"show",elementId:"wrapperOverlay"}]),(0,u.pushAdobeAnalyticsData)({eventName:"Page Load",config:{type:"SEARCH",searchKeyword:H}}
4),Se(H)):(Se(""),Ee(_.b.DELETE,_.U.SEARCH_DATA),fe(void 0))},Ie=async M=>{var H,F;if(M.preventDefault(),!N)return;f().publish("user-analytics",{ename:n.rO.SEARCH,data:{searchText:N,moduleType:ye||"VL_SEARCH_TRAY",modID:Ae,items:W==null||(F=W.search)===null||F===void 0||(H=F.records)===null||H===void 0?void 0:H.map(ie=>ie==null?void 0:ie.id)}}),(0,w.WG)("search-results"),(0,u.pushAdobeAnalyticsData)({eventName:"Page Load",config:{searchKeyword:N,type:"SEARCH:SEARCH RESULTS"}}),Ee(_.b.UPDATE,_.U.RECENT_SEARCH_TERMS,N),q([{actionType:W?"hide":"show",elementId:"searchResultContainer"},{actionType:W?"hide":"show",elementId:"wrapperOverlay"}]),Oe(!1),j==="/search"?((0,m.removeStorageItem)(_.U.SEARCH_DATA),f().publish(_.U.SEARCH_DATA,JSON.stringify(W)),f().publish(_.U.LATEST_SEARCH_WORD,N)):((0,w.t)(),(0,m.setStorageItem)(_.U.SEARCH_DATA,{word:N,data:W}),f().publish(_.U.LATEST_SEARCH_WORD,N),W&&ee("/search",{state:{searchTerm:N}}));let O={keyword:N,platform:"Web"};f().publish("FB-analytics",{eventType:n.$8.SEARCH,payload:O,type:"FB"})},Te=()=>{Se("")},e=()=>{Oe(!1),q([{actionType:"hide",elementId:"searchResultContainer"},{actionType:"hide",elementId:"wrapperOverlay"}]),Se(""),Oe(!1),a!=null&&a.showSearchbar?K(!0):K(!1)},le=()=>{var M,H,F;if(te)return o.createElement(I.A,{type:"plain"});if(!W)return o.createElement("li",null,(R==null?void 0:R.noResultForLabel)||"No Data Available");if(!(!(W==null||(H=W.search)===null||H===void 0||(M=H.records)===null||M===void 0)&&M.length)){const O=R!=null&&R.noResultForLabel?`${R==null?void 0:R.noResultForLabel} ${N}`:"";return o.createElement(h.NoResultToast,{messageText:O||"There are no results for your search"})}return o.createElement(o.Fragment,null,W==null||(F=W.search)===null||F===void 0?void 0:F.records.slice(0,5).map((O,ie)=>o.createElement(T.SearchSuggestionCard,{id:"result-suggestion-card",key:O.gist.id,data:{...O},style:{paddingRight:"0px",cursor:"pointer"},onClick:()=>{if(j===O.gist.permalink)return q([{actionType:"hide",elementId:"searchResultContainer"},{actionType:"hide",elementId:"wrapperOverlay"}]);Me({clickedNode:O,url:O.gist.permalink});const de=`search-results|search|${ie+1}|${O.gist.title}|click`;(0,u.pushAdobeAnalyticsData)({eventName:"Link Track",config:{type:"SEARCH:SEARCH CLICK",searchKeyword:N,linkDetails:de}}),(0,w.t)()},onKeyDown:de=>{if(de.key==="Enter"){if(j===O.gist.permalink)return q([{actionType:"hide",elementId:"searchResultContainer"},{actionType:"hide",elementId:"wrapperOverlay"}]);Me({clickedNode:O,url:O.gist.permalink}),(0,w.t)()}},layoutSettings:G,fontSetting:ve})))},Fe=()=>{var M,H,F;return!(J==null||(H=J.search)===null||H===void 0||(M=H.records)===null||M===void 0)&&M.length?o.createElement("div",{className:"vl_recent_search"},o.createElement("div",{className:"vl_recent_search_header"},o.createElement("h3",null,(R==null?void 0:R.kRecentSearchTitle)||"Recent Searches"),o.createElement("p",{role:"button",onKeyDown:O=>{(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),Y(_.U.RECENT_SEARCH_TERMS))},onClick:()=>Y(_.U.RECENT_SEARCH_TERMS)},(R==null?void 0:R.clearHistoryCta)||"Clear History")),o.createElement("ul",{className:"vl_recent_search_results"},[...new Set(J==null||(F=J.search)===null||F===void 0?void 0:F.records)].map(O=>{var ie;return o.createElement("li",{id:"vl_recent_search_result",title:(ie=O.gist.title)!==null&&ie!==void 0?ie:"",className:"vl_recent_search_result",key:`${O}_${Date.now()}`,onKeyDown:de=>{if(de.key==="Enter"||de.key===" "){var be,Le;de.preventDefault();const We=(0,i.C)(O)||((be=O==null||(Le=O.gist)===null||Le===void 0?void 0:Le.permalink)!==null&&be!==void 0?be:"");(0,w.t)(),ee(We)}},onClick:()=>{var de,be;const Le=(0,i.C)(O)||((de=O==null||(be=O.gist)===null||be===void 0?void 0:be.permalink)!==null&&de!==void 0?de:"");(0,w.t)(),ee(Le)}},O.gist.title)}))):null},Ne=()=>{var M,H,F,O;return te||!(!(W==null||(H=W.search)===null||H===void 0||(M=H.relateds)===null||M===void 0)&&M.length)?null:o.createElement("div",{className:"vl_recent_search",id:"vl_recent_search"},o.createElement("div",{className:"vl_recent_search_header"},o.createElement("h3",null," ",(R==null?void 0:R.kSearchTitlesRelated)||"Search titles related to: ")),o.createElement("ul",{className:"vl_recent_search_results"},W==null||(O=W.search)===null||O===void 0||(F=O.relateds)===null||F===void 0?void 0:F.slice(0,10).map(ie=>o.createElement("li",{id:"vl_recent_search_result",className:"vl_recent_search_result",key:`${ie}_${Date.now()}`,onKeyDown:de=>{(de.key==="Enter"||de.key===" ")&&(de.preventDefault(),Se(ie.gist.title))},onClick:()=>Se(ie.gist.title)},ie.gist.title))))},he=()=>{N&&(0,m.setStorageItem)("ai_search_keyword",N),(0,w.iR)({eventName:"search_conversational_cta",type:"click",action:"Search",eventCategory:"Search",reason:null,subSection:null,status:null,section:null,paymentStatus:null,additionalLabel:null}),ee("/ai")};return(0,o.useEffect)(()=>(j.includes("/search")&&K(!0),()=>{}),[j]),(0,o.useEffect)(()=>
4{if(!N)return ne("vl_search_tray_row","block");k(!0),Oe(!0);const M=setTimeout(()=>{var H,F,O,ie;const de=(0,w.cO)(),be=((H=window.app_data)===null||H===void 0?void 0:H.countryCode)||"IN",Le={site:(ie=window)===null||ie===void 0||(O=ie.app_data)===null||O===void 0||(F=O.site)===null||F===void 0?void 0:F.siteInternalName,path:"/search",device:"WEB",includeContent:!0,languageCode:de,countryCode:be};(0,c.Y)(Le).then(We=>{var Ve,Ze,xe,s,Xe,Qe,je,ze;const Je=(We==null||(Ve=We.page)===null||Ve===void 0?void 0:Ve.modules)||null,$e=Je==null?void 0:Je.filter(Ke=>(Ke==null?void 0:Ke.moduleType)==="SearchModule"),tt=$e&&((s=$e[0])===null||s===void 0||(xe=s.layout)===null||xe===void 0||(Ze=xe.settings)===null||Ze===void 0?void 0:Ze.types)||[],lt=$e&&((Qe=$e[0])===null||Qe===void 0||(Xe=Qe.layout)===null||Xe===void 0?void 0:Xe.settings),qe=$e&&((ze=$e[0])===null||ze===void 0||(je=ze.layout)===null||je===void 0?void 0:je.fontSetting);ue(lt),we(qe),(0,w.C2)({key:N,type:tt}).then(Ke=>{fe({search:Ke}),f().publish(_.U.LATEST_SEARCH_WORD,N)}).finally(()=>k(!1))})},500);return()=>{k(!1),fe(void 0),clearTimeout(M),Oe(!1)}},[N]),(0,o.useEffect)(()=>(Be().then(M=>{var H;!M||(M==null||(H=M.items)===null||H===void 0?void 0:H.length)===0?re(void 0):re({search:{records:M.items},type:"recent"})}).catch(console.error),()=>{}),[]),De!=null&&De.isEnabled?pe?o.createElement(o.Fragment,null,N.length?o.createElement("div",{className:"vl_searchbox_wrapper_overlay",id:"wrapperOverlay",onKeyDown:M=>{(M.key==="Enter"||M.key===" ")&&M.preventDefault()},onClick:e}):null,o.createElement("div",{id:"vl_searchbox_wrapper",className:"vl_searchbox_wrapper",style:{borderRadius:Ue===!0?"8px 8px 0px 0px":"8px"}},o.createElement("span",{tabIndex:0,"aria-label":"Go back to previous page button",role:"button",onKeyDown:M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),(0,w.t)(),ee(-1))},onClick:()=>{(0,w.t)(),ee(-1)},id:"search-back-icon"},(0,g.j2)()),o.createElement("form",{onSubmit:Ie,id:"vl_searchbox_form_wrapper",className:"vl_searchbox_form_wrapper"},o.createElement(g.WI,{id:"searchIcon","aria-labelledby":"Search",className:"vl_searchbox_icon_search",onKeyDown:M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),K(!1))},onClick:()=>K(!1)}),o.createElement("input",{"aria-labelledby":ge,autoFocus:!0,id:"vl_searchbox_input",className:"vl_searchbox_input",ref:P,type:"text",placeholder:ge,value:N,autoComplete:"off",onChange:Pe}),N?o.createElement(g.US,{className:"vl_searchbox_icon_close","aria-labelledby":"Close",fill:"#000",tabIndex:0,onClick:M=>{Te(M)},onKeyDown:M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),Te(M))}}):null,N?o.createElement("div",{id:"searchResultContainer",className:"vl_search_result_container"},o.createElement("div",{className:"vl_search_result_list"},(De==null?void 0:De.isAiSearchEnabled)&&o.createElement("div",{className:"ai-search-btn-wrapper"},o.createElement("div",{className:"ai-search-btn",onClick:he,"aria-label":"AI Search"},o.createElement("div",{className:"ai-search-icon"},o.createElement(g.Wv,null)),o.createElement("span",{className:"ai-search-link"},"Dive Deeper in AI Mode"))),o.createElement(le,null),!(W==null||(oe=W.search)===null||oe===void 0||(z=oe.records)===null||z===void 0)&&z.length?o.createElement("button",{onBlur:()=>{Te({}),K(!1)},tabIndex:0,id:"vl_search_result_button","aria-label":"search submit",className:"vl_search_result_button",type:"submit"},`${((Q=window)===null||Q===void 0||(me=Q.app_data)===null||me===void 0||(se=me.appcmsMain)===null||se===void 0||(ae=se.genericMessages)===null||ae===void 0?void 0:ae.seeSearchResultText)||"See results for"} "${N}"`):null,o.createElement(Fe,null),o.createElement(Ne,null))):null))):o.createElement(g.WI,{id:"searchIcon",style:{cursor:"pointer"},onKeyDown:M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),K(!0))},onClick:()=>K(!0)}):null});p.displayName="Searchbox"},99494(Z,E,l){l.r(E),l.d(E,{StandaloneSearch:()=>i});var t=l(96540),f=l(61171),o=l.n(f),r=l(73589),g=l(67897),T=l(74562),h=l(50316),_=l(73539),w=l(47767),I=l(11685),b=l(77869),n=l(83230),c=l(12308);const i=u=>{var m,p,a,P,A,U,v,S,d,D,C,$,V;const{state:X,pathname:z}=(0,w.zy)(),{clearAllSearchText:oe,myRecentSearchTitle:ae,noResultFoundText:se,topResultsTrayTitle:me}=u.moduleData.metadataMap,[Q,ee]=(0,t.useState)(void 0),[j,pe]=(0,t.useState)(void 0),[K,ge]=(0,t.useState)(!1),[R,ye]=(0,t.useState)(z.includes("/search")),Ae=u==null||(P=u.moduleData)===null||P===void 0||(a=P.layout)===null||a===void 0||(p=a.settings)===null||p===void 0?void 0:p.showSearchBar,[N,Se]=(0,t.useState)(""),[W,fe]=(0,t.useState)(!1),{clearPreviousSearch:te,getRecentSearchData:k}=(0,_.useStandaloneSearchHelper)();let J=u==null||(U=u.moduleData)===null||U===void 0||(A=U.layout)===null||A===void 0?void 0:A.fontSetting,re=u==null||(S=u.moduleData)===null||S===void 0||(v=S.layout)===null||v===void 0?void 0:v.settings,{trayTitle:De}=(0,b.getFontsStyles)(J,re);if((0,t.useEffect)(()=>{o().subscribe(r.U.LATEST_SEARCH_WORD,Y=>{Se(Y)})},[]),(0,t.useEffect)(()=>{fe(!1),o().subscribe(r.U.SEARCH_DATA,Y=>{if(Y){var q,Ee;const ne=JSON.parse(Y);if(!(!(ne==null||(Ee=ne.search)===null||Ee===void 0||(q=Ee.records)===null||q===void 0)&&q.length))fe(!0);else{var Me;pe({search:{records:ne==null||(Me=ne.search)===null||Me===void 0?void 0:Me.records},type:"curated"})}}})},[N]),(0,t.useEffect)(()=>
4{if(fe(!1),X!=null&&X.searchTerm){var Y,q,Ee;const ne=(0,c.getStorageItem)(r.U.SEARCH_DATA);if(!(!(ne==null||(Ee=ne.data)===null||Ee===void 0||(q=Ee.search)===null||q===void 0||(Y=q.records)===null||Y===void 0)&&Y.length))return fe(!0);pe({search:{...ne.data.search},type:"curated"}),o().publish(r.b.REFRESH,JSON.stringify(ne.data)),window.history.replaceState({},"")}return()=>{window.history.replaceState({},""),pe(void 0)}},[]),(0,t.useEffect)(()=>(ge(!0),k().then(Y=>{var q;!Y||(Y==null||(q=Y.items)===null||q===void 0?void 0:q.length)===0?ee(void 0):ee({search:{records:Y.items},type:"recent"})}).catch(console.error).finally(()=>ge(!1)),()=>{ge(!1)}),[]),(0,t.useEffect)(()=>{o().subscribe(r.b.DELETE,()=>{fe(!1),ee(void 0),pe(void 0)})},[]),K)return t.createElement(h.A,null);if(W){const Y=se?`${se} ${N}`:"";return t.createElement(g.NoResultToast,{messageText:Y||"There are no results for your search"})}return t.createElement(t.Fragment,null,Ae&&t.createElement("div",{className:"standalone-search-box"},t.createElement(I.Searchbox,{visible:R,manageVisibility:ye,placeholder:(m=u.siteConfig.appcmsMain.genericMessages.emptySearchField)!==null&&m!==void 0?m:"Search...",genericMessages:u.siteConfig.appcmsMain.genericMessages,showSearchbar:Ae,moduleData:u==null?void 0:u.moduleData})),!(!(Q==null||(D=Q.search)===null||D===void 0||(d=D.records)===null||d===void 0)&&d.length)&&!(!(j==null||($=j.search)===null||$===void 0||(C=$.records)===null||C===void 0)&&C.length)?null:t.createElement("div",{className:"vl_search_page"},Q&&(Q==null?void 0:Q.type)==="recent"?t.createElement(T.SearchRow,{titleFontConfig:De,showClearButton:Q.type==="recent",clearCb:Q.type==="recent"?()=>{ee(void 0),te(r.U.SEARCH_DATA)}:void 0,title:ae!=null?ae:"My Recent Searches",renderData:Q,clearButtonLabel:oe!=null?oe:"Clear History",...u}):!1,j&&(j==null?void 0:j.type)==="curated"?t.createElement(T.SearchRow,{titleFontConfig:De,showClearButton:!1,title:me!=null?me:"Top Results",renderData:j,...u}):!1,j?t.createElement(n.SearchTrayModule,{moduleData:u==null?void 0:u.moduleData,contentData:{contentData:j==null||(V=j.search)===null||V===void 0?void 0:V.records}}):null))}},73539(Z,E,l){l.r(E),l.d(E,{default:()=>I,useStandaloneSearchHelper:()=>w});var t=l(96540),f=l(61171),o=l.n(f),r=l(73589),g=l(99494),T=l(47767),h=l(21066),_=l(12308);const w=()=>{const b=(0,T.Zp)(),n=(v,S)=>{const d=document.getElementsByClassName(v);
4if(!(d.length<=1))for(let D=1;D<d.length;D++)d[D].style.display=S},c=(v,S,d)=>{if(v===r.b.UPDATE){var D;if(!d)return;const C=(D=localStorage.getItem(S))===null||D===void 0?void 0:D.split(",");return C?(C.push(d),localStorage.setItem(S,C.reverse().join())):localStorage.setItem(r.U.RECENT_SEARCH_TERMS,d)}if(v===r.b.GET)return localStorage.getItem(S);if(v===r.b.DELETE)return n("vl_search_tray_row","block"),localStorage.removeItem(S),o().publish(r.b.DELETE,"")},i=v=>{v&&v.forEach(({actionType:S,elementId:d})=>{const D=document.getElementById(d);if(D)return S==="show"?D.classList.remove("hide"):D.classList.add("hide")})},u=v=>{var S,d;if(!(!(v==null||(d=v.search)===null||d===void 0||(S=d.records)===null||S===void 0)&&S.length))return;const D={};return v.search.records.forEach(C=>{const $=C.gist.contentType;D[$]||(D[$]=[]),D[$].push(C)}),D},m=(0,t.useCallback)(async(v,S)=>{c(r.b.DELETE,v),localStorage.removeItem(r.U.SEARCH_DATA),localStorage.removeItem(r.U.RECENT_SEARCH_TERMS),(0,_.removeStorageItem)(r.U.RECENT_SEARCH_DATA),i([{actionType:"hide",elementId:"searchResultContainer"},{actionType:"hide",elementId:"wrapperOverlay"}])},[]),p=async()=>{(0,_.setStorageItem)(r.U.RECENT_SEARCH_DATA,{items:[]})},a=async()=>{const v=(0,_.getStorageItem)(r.U.RECENT_SEARCH_DATA);if(!v){await p();return}return v},P=async v=>(0,_.setStorageItem)(r.U.RECENT_SEARCH_DATA,v),A=async v=>{var S;const d=await a();if(!d)return P({items:[v]});let D=d==null||(S=d.items)===null||S===void 0?void 0:S.filter(C=>(C==null?void 0:C.id)!=(v==null?void 0:v.id));return o().publish(r.U.RECENT_SEARCH_DATA,void 0),P({items:[v,...D]})};return{manageOverlayElement:i,groupByContentType:u,recentSearchHandler:c,clearPreviousSearch:m,manageTrayVisibility:n,initRecentSearchDataStore:p,getRecentSearchData:a,updateRecentSearchData:A,onItemClickHandler:v=>A(v.clickedNode).then(()=>{const S=(0,h.C)(v.clickedNode)||v.url;b(S)})}},I=g.StandaloneSearch},20827(Z,E,l){l.r(E);var t=l(9408);const f=t.LandscapeTrayModule;l.d(E,["default",0,f])},83230(Z,E,l){l.r(E),l.d(E,{SearchTrayModule:()=>w});var t=l(96540),f=l(61171),o=l.n(f),r=l(73589),g=l(73539),T=l(47767),h=l(56637),_=l(51612);const w=I=>{var b;const{pathname:n}=(0,T.zy)(),[c,i]=(0,t.useState)(I.contentData),{manageTrayVisibility:u}=(0,g.useStandaloneSearchHelper)(),[m,p]=(0,t.useState)([]),a=I==null||(b=I.moduleData)===null||b===void 0?void 0:b.metadataMap,P={VIDEO:(a==null?void 0:a.kVideoContent)||"Videos",SERIES:(a==null?void 0:a.kSeriesContent)||"Series",VIDEOPLAYLIST:(a==null?void 0:a.kVideoPlaylistContent)||"Playlists",GAME:(a==null?void 0:a.kGameContent)||"Games",BUNDLE:(a==null?void 0:a.kBundleContent)||"Bundles",PERSON:(a==null?void 0:a.kPersonContent)||"People",EPISODIC:(a==null?void 0:a.kEpisodicContent)||"Episodic"},A=()=>{const d=D=>{if(D){var C;const $=JSON.parse(D);return i({contentData:$==null||(C=$.search)===null||C===void 0?void 0:C.records})}};o().subscribe(r.b.REFRESH,d),o().subscribe(r.U.SEARCH_DATA,d)},U=(0,t.useCallback)(()=>c?{...I.moduleData,contentData:c?c.contentData:I.moduleData.contentData}:{},[c]);(0,t.useEffect)(()=>{n.includes("/search")&&l(31805)},[n]),(0,t.useEffect)(()=>(A(),()=>{}),[A]),(0,t.useEffect)(()=>{o().subscribe(r.b.DELETE,()=>(u("vl_search_tray_row","block"),i(void 0)))},[]);const v=()=>{var d,D;const C=c?U():I.moduleData,$=(C==null||(d=C.contentData)===null||d===void 0?void 0:d.length)>0&&(C==null||(D=C.contentData)===null||D===void 0?void 0:D.reduce((V,X)=>{const z=(X==null?void 0:X.mediaType)==="EPISODIC"?X==null?void 0:X.mediaType:X.gist.contentType;V[z]||(V[z]=[]),V[z]&&(V[z].contentData||(V[z].contentData=[]),V[z].contentData.push(X));const oe=S(z==null?void 0:z.toLowerCase()),ae=P[z]||null;return V[z]={...C,title:`${ae||oe}`,contentData:V[z].contentData},V},[]));p($)},S=d=>d==null?void 0:d.replace(/./,D=>D.toUpperCase());return(0,t.useEffect)(()=>(v(),()=>{}),[c]),Object.values(m).length<1?null:t.createElement("span",{id:"vl_search_tray_wrapper"},Object.values(m).length>0&&Object.values(m).map((d,D)=>{var C;return t.createElement(h.R,{key:(C=d==null?void 0:d.title)!==null&&C!==void 0?C:D,data:{id:d==null?void 0:d.id,moduleType:d==null?void 0:d.moduleType,layout:d.layout,contentData:d==null?void 0:d.contentData,title:d==null?void 0:d.title},icon:_.kZ})}))}},73589(Z,E,l){l.d(E,{U:()=>t,b:()=>f});var t=(function(o){return o.RECENT_SEARCH="recentSearch",o.RECENT_SEARCH_TERMS="recentSearchTerms",o.SEARCH_DATA="searchData",o.RECENT_SEARCH_DATA="recentSearchData",o.LATEST_SEARCH_WORD="latestSearchWord",o})({}),f=(function(o){return o.GET="get",o.DELETE="delete",o.UPDATE="update",o.REFRESH="refresh",o})({})},18325(Z,E,l){l.d(E,{Y:()=>h});var t=l(19324),f=l(4768);const r=(0,f.xb)(`query ($site: String!, $path: String, $pageId: String, $device: Device!, $includeContent: Boolean, $moduleLimit: Int, $moduleOffset: Int, $languageCode: String, $countryCode: String, $userState: String, $modules: [String!], $offset: Int) { 5 page( 6 site: $site 7 path: $path 8 pageId: $pageId, 9 device: $device 10 includeContent: $includeContent 11 moduleLimit: $moduleLimit 12 moduleOffset: $moduleOffset 13 languageCode: $languageCode 14 countryCode: $countryCode 15 userState: $userState 16 modules: $modules 17 offset: $offset 18 ) { 19 id
20 moduleCount 21 moduleIds 22 metadataMap { 23 title 24 } 25 modules { 26 id 27 moduleType 28 layout{ 29 settings 30 } 31 ... on SportRadarModule { 32 id 33 title 34 moduleType 35 rawText 36 setting{ 37 ...ModuleSettings 38 } 39 metadataMap 40 layout { 41 ...Layout 42 } 43 } 44 45 } 46 } 47} 48 49fragment ModuleSettings on ModuleSetting{ 50 hideDate 51 hideTitle 52 lazyLoad 53 seeAll 54 seeAllCard 55 showMore 56 seeAllPermalink 57 showMoreCta 58} 59 60fragment Layout on ModuleLayout { 61 id 62 settings 63 styles 64 view 65 type 66 blockName 67 isMasthead 68}`),g=(0,f.W7)(r);var T=l(51354);const h=async w=>{var I,b,n,c,i;let u=(c=window)===null||c===void 0||(n=c.app_data)===null||n===void 0||(b=n.appcmsMain)===null||b===void 0||(I=b.apiConfig)===null||I===void 0?void 0:I.apiBaseUrl,m=((i=window)===null||i===void 0?void 0:i.cachedAPI)||`${u}/graphql`,p=w;try{return t.A.get(m+'?extensions={"persistedQuery":{"version":1,"sha256Hash":'+JSON.stringify(g)+"}}&variables="+JSON.stringify(p)).then(a=>{let P=a.data;if(P.errors){if(P&&P.errors&&P.errors[0]&&P.errors[0].message&&P.errors[0].message==="PersistedQueryNotFound")return _(p)}else return P==null?void 0:P.data}).catch(a=>((0,T.A)(`Error in StatsPageRequest ${a}`,"error"),{data:{}}))}catch(a){return{path,data:{}}}};function _(w){var I,b,n,c;let u=`${(c=window)===null||c===void 0||(n=c.app_data)===null||n===void 0||(b=n.appcmsMain)===null||b===void 0||(I=b.apiConfig)===null||I===void 0?void 0:I.apiBaseUrl}/graphql`,m={query:r,variables:w,extensions:{persistedQuery:{version:1,sha256Hash:g}}};try{return t.A.post(u,m).then(p=>h(w)).catch(p=>{p.response?(0,T.A)(p.response.data,"error"):(0,T.A)(p.message,"error")})}catch(p){(0,T.A)(p,"error")}}},96599(Z,E,l){const t={email:(f,o,r,g,T)=>{var h=r||"",_=o;_&&_.includes("{Inviter}")&&g&&(_=_.replaceAll("{Inviter}",g)),_&&_.includes("{company}")&&T&&(_=_.replaceAll("{company}",T)),h.includes("{Inviter}")&&g&&(h=h.replaceAll("{Inviter}",g)),h.includes("{company}")&&T&&(h=h.replaceAll("{company}",T));const w=f||window.location.href;_=_&&encodeURI(_),h=h&&encodeURI(h),h&&h.includes("#LB#")&&(h=h.replaceAll("#LB#","%0D%0A")),h=h+"%0D%0A%0D%0A"+encodeURIComponent(w)+"%0D%0A%0D%0A",window.location.href=`mailto:?subject=${_}&body=${h}`},facebook:f=>{const o=f||window.location.href;window.FB?window.FB.ui({method:"share",href:o}):window.open(`https://facebook.com/sharer.php?u=${encodeURIComponent(o)}`,"share","status=no,toolbar=no,location=no,directories=no,menubar=no")},twitter:(f,o)=>{const r=f||window.location.hrefs;var g=o;window.open(`https://twitter.com/intent/tweet?url=${encodeURIComponent(r)}&text=${encodeURIComponent(g)}`,"share","status=no,toolbar=no,location=no,directories=no,menubar=no")},whatsapp:(f,o)=>{const r=f||window.location.href,g=window.ga;g("send","social","Whatsapp","Whatsapp",r);var T=o;const h=`whatsapp://send?text=${encodeURIComponent(T)}%20${encodeURIComponent(r)}`;window.location=h},googlePlus:f=>{const o=f||window.location.href,r=window.ga;r("send","social","GooglePlus","GooglePlus",o),window.open(`https://plus.google.com/share?url=${encodeURIComponent(o)}`,"share","status=no,toolbar=no,location=no,directories=no,menubar=no")}};l.d(E,["A",0,t])},57293(Z,E,l){var t=l(96540),f=l(51612);const o=(({className:r,to:g,onClick:T,isArticlePage:h})=>t.createElement("button",{"aria-label":g,type:"button",onClick:T,className:`button button--text button--icon ${r}`},h?(0,f.nG)():(0,f.D6)()));l.dn(o),l.d(E,["A",0,o])}}]);})();
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.