1import{a as w}from"./chunk-UIYFTGF3.js";import{c as O}from"./chunk-3YYF4TRZ.js";import"./chunk-NAQ5QG5E.js";import{a as T}from"./chunk-COMDXQVU.js";import{a as P}from"./chunk-NUA2GLCT.js";import"./chunk-LZQL7YZE.js";import{b as u,m as M}from"./chunk-N66I6DSB.js";import"./chunk-ICTEREOR.js";import{g as x}from"./chunk-I5KVSUBS.js";import"./chunk-DRQWJWC2.js";import"./chunk-5FS6SOSV.js";import"./chunk-PMVL6JP4.js";import{e as E}from"./chunk-EPREXVSC.js";import{i as S,j as I}from"./chunk-N5THU5VI.js";import{Db as c,Nb as o,Tc as D,Wb as s,Xb as m,Yb as _,a as d,b as g,fc as p,ka as r,lb as l,lc as f,mc as y,nc as v,pc as C,rc as b,yb as h}from"./chunk-FUBRV73V.js";var V=["embla"];function R(a,i){if(a&1&&(s(0,"h2",8),C(1),m()),a&2){let e=p(2);l(),b(" ",e.layoutData.title," ")}}function L(a,i){if(a&1&&(s(0,"div",9),_(1,"app-game-card",10),m()),a&2){let e=i.$implicit,t=p(2);l(),o("type",t.layoutData.layout=="RECENT_PLAYED"?"vertical_3_slide":"vertical_slide_small")("source",t.layoutData.layout?"home":"exit-popup")("section",t.layoutData.title||"Trending games")("content",e)}}function k(a,i){if(a&1&&(s(0,"div",2)(1,"div"),c(2,R,2,1,"h2",3),s(3,"div",4)(4,"div",5,0)(6,"div",6),c(7,L,2,4,"div",7),m()()()()()),a&2){let e=p();o("id","section_"+e.layoutData.sectionId)("@slideupdown",void 0),l(2),o("ngIf",(e.layoutData==null?null:e.layoutData.layout)&&e.layoutData.title),l(5),o("ngForOf",e.layoutData.contents)}}var N=class a{gameCode="";http=r(E);appService=r(M);homeService=r(P);embla;emblaInstance;loaded=!1;constructor(){D(()=>{this.appService.isAutheticated()&&!this.loaded&&this.loadData()})}ngOnInit(){}layoutData;loadData(){this.loaded=!0,console.log("Vertical3ScrollComponent ::Loading data");let i=this.appService.getConfig().app_server;this.layoutData?.layout=="RECENT_PLAYED"&&this.appService.authDetails().isAthenticated?(this.layoutData.contents=[],console.log("Vertical3ScrollComponent ::Loading data ::RECENT_PLAYED"),this.http.get(i+"/appserver/recently/played/games",{headers:u}).subscribe(e=>{this.layoutData.contents=e,e.forEach(t=>{let n=t.games;t.contentId=n.gameId,this.homeService.gameMap.set(g(d({},this.homeService.gameMap()),{[n?.gameId]:n}))}),setTimeout(()=>{this.initEmbla()},100)})):this.layoutData||(this.layoutData=this.appService.layout().find(e=>e.layout=="TRENDING_TRAY"),this.layoutData.title="",this.layoutData.contents[0]?.games?(this.layoutData.contents=this.layoutData.contents.filter(e=>e.games?.gamezop.code!==this.gameCode),console.log("layoutData ::",this.layoutData.contents)):(this.layoutData.contents=[{contentId:"1",contentType:"game",order:1},{contentId:"1",contentType:"game",order:1}],this.http.get(i+"/appserver/public/trending/games",{headers:u,params:this.appService.getParams()}).subscribe(e=>{this.layoutData.contents=e.filter(t=>t.gamezop.code!==this.gameCode).map(t=>(this.homeService.gameMap.set(g(d({},this.homeService.gameMap()),{[t?.gameId]:t})),console.log("Trending games info :: ",t),{contentId:t.gameId,contentType:"game",games:t}))})))}initEmbla(){let i={dragFree:!0,align:"start",skipSnaps:!1};this.emblaInstance=w(this.embla.nativeElement,i),this.emblaInstance.on("pointerUp",()=>{let e=this.emblaInstance.selectedScrollSnap();this.emblaInstance.scrollTo(e)})}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=h({type:a,selectors:[["app-vertical-3-scroll"]],viewQuery:function(e,t){if(e&1&&f(V,5),e&2){let n;y(n=v())&&(t.embla=n.first)}},inputs:{gameCode:"gameCode"},decls:1,vars:1,consts:[["embla",""],["class","w_100 over_hide",3,"id",4,"ngIf"],[1,"w_100","over_hide",3,"id"],["class","heading_1",4,"ngIf"],[1,"w_100"],[1,"embla","emblaSlider"],[1,"embla__container"],["class","embla__slide",4,"ngFor","ngForOf"],[1,"heading_1"],[1,"embla__slide"],[3,"type","source","section","content"]],template:function(e,t){e&1&&c(0,k,8,4,"div",1),e&2&&o("ngIf",t.loaded&&t.layoutData&&t.layoutData.contents.length>0)},dependencies:[O,T,S,I],styles:[".slick-initialized[_ngcontent-%COMP%] .slick-slide[_ngcontent-%COMP%]{display:block;padding:0px 1.5vw}.vertical_slider[_ngcontent-%COMP%]{padding:0px 2vw}.emblaSlider[_ngcontent-%COMP%]{overflow:hidden;width:100%}.embla__container[_ngcontent-%COMP%]{display:flex;flex-direction:row;will-change:transform}.embla__slide[_ngcontent-%COMP%]:nth-child(1){margin-left:2.5vw}.embla__slide[_ngcontent-%COMP%]:nth-last-child(1){margin-right:3vw}.embla__slide[_ngcontent-%COMP%]{flex:0 0 auto;scroll-snap-align:start}.emblaSlider[_ngcontent-%COMP%], .embla__container[_ngcontent-%COMP%], .embla__slide[_ngcontent-%COMP%]{backface-visibility:hidden;transform:translateZ(0)}"],data:{animation:[x]}})};export{N as Vertical3ScrollComponent};
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.