1import{ab as M,D as a,H as E,G as C,C as o,E as V,F as g,P as j,Q as H,S as U,b as z,U as K,ch as R,bP as B,w as F,o as q,cx as J,r as S,j as m,W as Q,g as W,z as Y,aa as G,I as D,J as u,N as P,K as X,O as Z,B as d}from"./index-Da3lo7pj.js";import{G as $}from"./GameCenterVideoLightbox-DdDrjYdQ.js";import{V as ee}from"./VideoThumbnail-TBCY-OKd.js";import{S as te}from"./SdpPagination-BKPuEDjI.js";import{u as oe}from"./useListAdSlots-Dscr-dKn.js";import ie from"./index-xXwsXef1.js";import"./VideoLockedComponent-DVxGp6MB.js";const ae={class:"mx-3"},ne=M({__name:"VideoSectionItemLoader",props:{numberOfItems:{type:Number,default:0}},setup(t){return(l,i)=>(o(!0),a(C,null,E(t.numberOfItems,e=>(o(),a("div",{key:e,class:"w-full mt-8"},[V("div",ae,[g(ie,{type:"square",width:"100%",height:250,rounded:!1,animation:"wave"})])]))),128))}}),se={name:"VideosSection",components:{VideoThumbnail:ee,GameCenterVideoLightbox:$,SyButton:U,SdpPagination:te,VideoSectionItemLoader:ne,SyHeading:H,DynamicAd:j},props:{videoHeader:{type:String,default:"Videos"},buttonLabel:{type:String,default:"All Videos"},videoList:{type:Array,default:()=>[]},videoMeta:{type:Object,default:()=>{}},siteSection:{type:Object,default:()=>{}},redirectOnClick:{type:Boolean,default:!0},loadingData:{type:Boolean,default:!1},showAds:{type:Boolean,default:!1},isShowButton:{type:Boolean,default:!0}},emits:["update-video-page"],setup(t,{emit:l}){var A;const i=oe(Q.VIDEO_SECTION_LIST),{t:e}=z(),w=K({mobile:980}).smaller("mobile"),I=R(),L=m(()=>t.showAds&&I.value),r=S(!1),p=W(),v=((A=t==null?void 0:t.siteSection)==null?void 0:A.type)===B.GC_VIDEOS,_=m(()=>p.path),x=m(()=>["play-v2","play","single-video","single-video-v2"].some(T=>_.value.includes(T))),O=m(()=>{var s;return v||((s=t.siteSection)==null?void 0:s.type)===B.VIDEOS||x.value?!0:_.value.includes("videos/archive")}),c=m(()=>t.videoList??[]),h=S(0),k=S(4),n=()=>{r.value=!0,l("update-video-page",{page:h.value})},b=m(()=>{var s;return c.value.length>0&&v&&((s=t.videoMeta)==null?void 0:s.totalItems)>c.value.length});F(()=>t.videoList,()=>{r.value=!1}),q(()=>{r.value=!1});const y=S(!1),f=S(0),N=({index:s})=>{f.value=s,y.value=!0};return{showAdSlots:L,button:e("article.all_videos"),currentPath:_,getAllVideosRoute:J,isGameCenterVideo:v,useVideoPlaylistLightbox:O,isPlayOrSingleVideoPage:x,isMobile:w,videoSectionListSlot:i,page:h,pages:k,updatePagination:n,isLoadingVideos:r,isPaginationEnabled:b,listOfVideos:c,gameCenterLightboxOpen:y,gameCenterLightboxStartIndex:f,onOpenGameCenterLightbox:N}}},le={class:"videos-list-container relative px-0 @lg:px-4 @md:px-4"},de={class:"module-title-container ml-8"},re={class:"videos-container relative"},ce={key:1,class:"videos-container-grid block @md:grid mt-8 m-auto"},me={key:0,class:"col-span-full flex justify-center py-6"},ue={key:2,class:"no-result-found"},ge={key:0,class:"no-search-result-txt"},ve={key:1,class:"no-search-result-txt"},_e={key:1,class:"mt-8 text-center"};function he(t,l,i,e,w,I){var c,h,k;const L=d("sy-heading"),r=d("video-section-item-loader"),p=d("video-thumbnail"),v=d("dynamic-ad"),_=d("sdp-pagination"),x=d("sy-button"),O=d("game-center-video-lightbox");return o(),a("div",{class:G(["videos-list",[e.isGameCenterVideo||e.isPlayOrSingleVideoPage?"bg-white":"bg-background-xDark"]])},[V("div",le,[V("div",de,[g(L,{primary:"","heading-label":((h=(c=i.siteSection)==null?void 0:c.config)==null?void 0:h.heading)||i.videoHeader,heading:"heading 3",uppercase:"","is-section-heading":"",class:G([e.isGameCenterVideo||e.isPlayOrSingleVideoPage?"text-black":"module-title"])},null,8,["heading-label","class"])]),V("div",re,[e.isLoadingVideos?(o(),D(r,{key:0,"number-of-items":e.pages},null,8,["number-of-items"])):u("",!0),!e.isLoadingVideos&&((k=e.listOfVideos)==null?void 0:k.length)!==0?(o(),a("ul",ce,[(o(!0),a(C,null,E(i.videoList,(n,b)=>{var y,f;return o(),a(C,{key:n.mediaString},[V("li",null,[g(p,{id:`video-list-${b}`,class:"block mb-4 @md:mb-0",video:n,"redirect-on-click":i.redirectOnClick,"use-lightbox":e.useVideoPlaylistLightbox,"item-index":b,onOpenLightbox:e.onOpenGameCenterLightbox},null,8,["id","video","redirect-on-click","use-lightbox","item-index","onOpenLightbox"])]),e.showAdSlots&&e.videoSectionListSlot.shouldShowAdAt(b,e.isMobile)?(o(),a("li",me,[g(v,{"desktop-placement-key":((y=e.videoSectionListSlot.config)==null?void 0:y.desktopPlacementKey)??null,"mobile-placement-key":((f=e.videoSectionListSlot.config)==null?void 0:f.mobilePlacementKey)??null},null,8,["desktop-placement-key","mobile-placement-key"])])):u("",!0)],64)}),128))])):u("",!0),!i.loadingData&&(e.isGameCenterVideo||e.isPlayOrSingleVideoPage)&&i.videoList.length===0?(o(),a("div",ue,[e.isGameCenterVideo?(o(),a("div",ge,P(t.$t("search.results.no_game_videos")),1
1)):(o(),a("div",ve,P(t.$t("videos.no_videos_available")),1))])):u("",!0)]),e.isPaginationEnabled?(o(),D(_,{key:0,modelValue:e.page,"onUpdate:modelValue":[l[0]||(l[0]=n=>e.page=n),e.updatePagination],pages:i.videoMeta.totalPages,"range-size":1,"hide-first-button":!0,"hide-last-button":!0},null,8,["modelValue","pages","onUpdate:modelValue"])):u("",!0),!e.isGameCenterVideo&&i.isShowButton?(o(),a("div",_e,[g(x,{white:!e.isPlayOrSingleVideoPage,primary:e.isPlayOrSingleVideoPage,outlined:"",to:e.getAllVideosRoute(e.currentPath)},{default:X(()=>[Z(P(e.button),1)]),_:1},8,["white","primary","to"])])):u("",!0)]),g(O,{modelValue:e.gameCenterLightboxOpen,"onUpdate:modelValue":l[1]||(l[1]=n=>e.gameCenterLightboxOpen=n),videos:e.listOfVideos,"start-index":e.gameCenterLightboxStartIndex},null,8,["modelValue","videos","start-index"])],2)}const Le=Y(se,[["render",he],["__scopeId","data-v-84d16ce8"]]);export{Le as default};
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.