1import{a as ee}from"./chunk-57OVZNJD.js";import{j as q}from"./chunk-LBFZVMBI.js";import{b as Z,o as X}from"./chunk-SQXH55RY.js";import{G as W,O as J,z as Q}from"./chunk-2RZNBXEW.js";import{a as K}from"./chunk-WUS6VI32.js";import{e as R,k as V,q as Y,r as z,sa as x}from"./chunk-LKIBVTZY.js";import{b as A}from"./chunk-IXSVJUWF.js";import{$a as O,A as G,B as T,Da as b,Ia as D,Ja as M,Ka as B,La as H,Ma as L,Oa as k,Ra as F,Sa as w,Za as E,_a as N,aa as $,e as C,ga as I,ha as j,j as c,nb as U,p as P,xa as _}from"./chunk-LZGEQQYD.js";import{X as S}from"./chunk-BW2TMJN6.js";var te=["temp"];function ne(a,i){if(a&1){let u=k();D(0,"swiper-slide",3)(1,"a",4),F("click",function(){let r=G(u).$implicit,n=w(2);return T(n.bannerService.bannerLink(r))}),B(2,"img",5)(3,"div",6),M()()}if(a&2){let u=i.$implicit;I(2),b("src",u.imgUrl,$)}}function ae(a,i){if(a&1&&(H(0),D(1,"swiper-container",1),_(2,ne,4,1,"swiper-slide",2),M(),L()),a&2){let u=w();I(),b("config",u.config),I(),b("ngForOf",u.bannerArray)}}var fe=(()=>{let i=class i{constructor(e){this.bannerService=e,this.bannerArray=[],this.config={slidesPerView:"auto",pagination:{clickable:!0},autoplay:{delay:3e3,disableOnInteraction:!1},loop:!0,speed:1200}}loadImg(e){this.bannerArray[e].loadImgStatus="success"}errorImg(e){this.bannerArray[e].loadImgStatus="error"}ngOnDestroy(){}};i.\u0275fac=function(r){return new(r||i)(j(X))},i.\u0275cmp=P({type:i,selectors:[["app-hotgame-banner"]],viewQuery:function(r,n){if(r&1&&E(te,5),r&2){let o;N(o=O())&&(n.tmp=o.first)}},inputs:{bannerArray:"bannerArray"},standalone:!0,features:[U],decls:1,vars:1,consts:[[4,"ngIf"],["appSwiper","","autoplay","true","lazy","true",1,"game-carousel","swiper-lazystyle",3,"config"],["class","game-slide-item",4,"ngFor","ngForOf"],[1,"game-slide-item"],[3,"click"],["alt","image","loading","lazy",3,"src"],[1,"swiper-lazy-preloader"]],template:function(r,n){r&1&&_(0,ae,3,2,"ng-container",0),r&2&&b("ngIf",n.bannerArray.length>0)},dependencies:[z,ee,Y],styles:["[_nghost-%COMP%]{display:contents}"],data:{animation:[q]}});let a=i;return a})();var ye=(()=>{let i=class i{constructor(e,r,n,o){this.globalData=e,this.cmsService=r,this.bannerCacheService=n,this.appConfigService=o,this.bannerArray=[],this.url="",this.resourceAssetPrefix=this.appConfigService.getConfig("resourceAssetPrefix"),this.resourceInfoPrefix=this.appConfigService.getConfig("resourceInfoPrefix")}loadHotGameBannerData(e,r){this.bannerArray=[];let o=/IC.Mobile/.test(navigator.userAgent)||this.globalData.isMobileStyle?"mobile":"web",h="".concat(this.resourceInfoPrefix,"/").concat(o,"/json/BannerList.json?v=").concat(this.globalData.getOneMinuteCache()),v="".concat(this.resourceAssetPrefix,"/").concat(o,"/images/banner");return this.bannerCacheService.getJsonData({name:"banner",url:h}).pipe(S(s=>{var p;let m=this.convertRouteToaBannerKey(e,r),g=[],f=s[this.globalData.convertLang()];if(f&&(g=(p=f[m])==null?void 0:p.filter(t=>t.bannerType===2)),!g||g.length===0)return this.bannerArray=[],{hotGameBanners:this.bannerArray};let d=g.map(t=>(t.imgUrl="".concat(v,"/").concat(t.imgId),t));return this.bannerArray=d.sort((t,l)=>t.orderBy-l.orderBy),{hotGameBanners:this.bannerArray}}))}convertRouteToaBannerKey(e,r){if(e==="home")return"homepage-Default";if(e==="egame"&&r==="")return"egamE-Default";if(e==="egame"&&r)return"egamE-".concat(r)}};i.\u0275fac=function(r){return new(r||i)(c(x),c(J),c(W),c(A))},i.\u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"});let a=i;return a})();var xe=(()=>{let i=class i{constructor(e,r,n,o,h,v){this.globalData=e,this.hotGameCacheService=r,this.appConfigService=n,this.storageService=o,this.accountInfoService=h,this.langService=v,this.hotGameList=[],this.resourceInfoSharedPrefix=this.appConfigService.getConfig("resourceInfoSharedPrefix"),this.resourceAssetSharedPrefix=this.appConfigService.getConfig("resourceAssetSharedPrefix"),this.diplayCurrency="",this.pageType="",this.getHotGameListFromSSR=(s,m,g)=>{var d;if(this.globalData.isLogin)this.diplayCurrency=(d=this.globalData.acctInfo)==null?void 0:d.currency;else switch(this.langService.language){case"en-US":this.diplayCurrency="USD";break;case"id-ID":this.diplayCurrency="IDR";break;case"zh-CN":this.diplayCurrency="CNY";break;case"th-TH":this.diplayCurrency="THB";break;case"vi-VN":this.diplayCurrency="VND";break;case"en-MY":this.diplayCurrency="MYR";break;case"ko-KR":this.diplayCurrency="KRW";break;default:break}this.globalData.isMobileStyle?this.pageType="MobileHomePage":this.pageType=s===0?"WebHomePage":"WebProductPage";let f;return this.globalData.isLogin?f="".concat(this.resourceInfoSharedPrefix,"/hotgame/login/").concat(this.pageType,"/json/HotGameSetting_").concat(this.diplayCurrency,".json?v=").concat(this.getVersionBy10Min()):f="".concat(this.resourceInfoSharedPrefix,"/hotgame/logout/").concat(this.pageType,"/json/HotGameSetting_").concat(this.diplayCurrency,".json?v=").concat(this.getVersionBy10Min()),this.hotGameCacheService.getJsonData({name:"hotGame",url:f,forceRefresh:!0}).pipe(S(p=>(Array.isArray(p)||(p=[]),p=p.filter(t=>this.filterStreamProvider(t,m,g)),p.sort((t,l)=>t.index-l.index),this.hotGameList=p.map(t=>{let l=t.language.find(y=>y.language===this.langService.language.toUpperCase())||t.language.find(y=>y.language==="EN-US");if(this.diplayCurrency==="CNY"||this.langService.language==="zh-CN"){let y=t.language.find(ie=>ie.language==="ZH-CN");y&&(l=y)}return{gameCode:t.gameCode,providerId:t.providerId,index:t.index,language:l?l.language:"",nameByLang:l?l.displayName:"",imageUrl:l?"".concat(this.resourceAssetSharedPrefix,"/").concat(K,"/").concat(l.imgId):"",isFun:t.isFun}}),{hotGameList:this.hotGameList})))},this.filterStreamProvider=(s,m,g)=>{let f=()=>s.providerId[s.providerId.length-1]==="O"?m.providerIdList.indexOf(s.providerId)>-1:!g.filter(t=>t.providerId===s.providerId).length,d=()=>s.providerId[s.providerId.length-1]!=="O";return m!=null&&m.isYoutuber?f():d()}}loadHotGameList(e,r,n){return this.getHotGameListFromSSR(e,r,n)}getVersionBy10Min(e=new Date){let r=e.getFullYear(),n=e.getMonth(),o=e.getDate(),h=e.getHours(),v=Math.floor(e.getMinutes()/10)*10,s=new Date(r,n,o,h,v,0,0);return"v=".concat(s.getTime())}
1handleHotGameWithStreamAcct(e,r){if(e){let n=this.storageService.getMemberInfoFromCookie();if(!n)this.accountInfoService.loadAccountData().then(o=>{let h=o==null?void 0:o.streamingAccountSetting;r(h)});else{let o=n==null?void 0:n.streamingAccountSetting;r(o)}}else r(!1,null,[])}};i.\u0275fac=function(r){return new(r||i)(c(x),c(Q),c(A),c(R),c(Z),c(V))},i.\u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"});let a=i;return a})();export{fe as a,ye as b,xe as c};
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.