1import H from"./Bs6WsSlt.js";import{a0 as r,l,ai as t,k as c,i as m,q as f,at as y,F as k,a6 as C,j as _,b as z,L as D,aw as R,ac as U,a as W,g as G,a4 as q}from"./BniGHpbr.js";import{aj as J,w as K,B as Q,K as X,as as Y}from"./DP0SV8bf.js";const Z={class:"game-section"},x={key:0,class:"gamelist-headline"},j={key:1,class:"game-slider-wrap"},ee={key:0,class:"slide-action"},te={class:"game-group"},se=["onClick"],ae={class:"game-preview-tags"},oe={key:0,style:{background:"black"},class:"tag-new"},ie={key:1,class:"tag-new"},ne={key:2,class:"tag-jp"},re={key:3,class:"tag-fish"},le={key:4,class:"tag-scratch"},ce={key:5,class:"tag-collect"},me=["onClick"],ue={class:"icon-play"},de={class:"game-providers"},fe=["src"],ge="/images/game-icon-default-dara.webp",Ie={__name:"hotGame",props:{mixList:{type:Array,default:()=>[]},hotGameListInfo:{type:Array,default:()=>[]},gameItemCount:{type:Number,default:6},providerList:{type:Array,default:()=>[]},currentCoin:{type:String,default:"GC"}},emits:["showGameInfo","selectfavorite"],setup(h,{emit:S}){const u=h,v=S,I=Y(),B=J(),{defaultState:P}=B,d=q(null),V=K(),L={0:{slidesPerView:2.9,spaceBetween:10},568:{slidesPerView:3.4,spaceBetween:15},667:{slidesPerView:4.4,spaceBetween:15},820:{slidesPerView:4.8,spaceBetween:20},1024:{slidesPerView:5.4,spaceBetween:20},1280:{slidesPerView:6,spaceBetween:20},1440:{slidesPerView:6.4,spaceBetween:20},1600:{slidesPerView:7,spaceBetween:25},1800:{slidesPerView:8,spaceBetween:25}},N=G(()=>P.imgType),s=G(()=>u.mixList.length?u.hotGameListInfo.map(e=>{if(u.mixList.find(o=>o.offerID===e.offerID&&(o.gameID===e.GC_GameID||o.gameID===e.SC_GameID)))return u.mixList.find(o=>o.offerID===e.offerID&&(o.gameID===e.GC_GameID||o.gameID===e.SC_GameID))}).filter(e=>e!==void 0):[]);function T(a){let e=a.srcElement;e.src=ge}function b(a){let e=X(a)+a.gameID;return`${I.public.gcsUrl}/GameIcon/${I.public.merchantId}/${e}`}function g(a){let e=V.find(o=>o.GC_GameID===a.gameID&&o.offerID===a.offerID||o.SC_GameID===a.gameID&&o.offerID===a.offerID);return e===void 0?"NoGame":e.type}function A(a){v("showGameInfo",a)}function E(a){v("selectfavorite",a)}function F(){var a,e;(e=d.value)==null||e.slideTo((((a=d.value)==null?void 0:a.activeIndex)??0)-u.gameItemCount)}function M(){var a,e;(e=d.value)==null||e.slideTo((((a=d.value)==null?void 0:a.activeIndex)??0)+u.gameItemCount)}return(a,e)=>{const o=H,O=z,$=W;return r(),l("div",Z,[t(s).length?(r(),l("div",x," HOT GAMES ")):c("",!0),t(s).length?(r(),l("section",j,[t(s).length/2>h.gameItemCount?(r(),l("div",ee,[m("div",{class:"slide-pre",onClick:F},[f(o,{name:"fa6-solid:angle-left",mode:"svg"})]),m("div",{class:"slide-next",onClick:M},[f(o,{name:"fa6-solid:angle-right",mode:"svg"})])])):c("",!0),f($,{breakpoints:L,loop:!1,class:"slider-container",onSwiper:e[1]||(e[1]=w=>d.value=w)},{default:y(()=>[(r(!0),l(k,null,C(Math.ceil(t(s).length/2)>14?14:Math.ceil(t(s).length/2),(w,i)=>(r(),_(O,{key:i,class:"slider-item"},{default:y(()=>[m("div",te,[(r(!0),l(k,null,C(i+1!==Math.ceil(t(s).length/2)||t(s).length%2===0?2:t(s).length%2,(pe,n)=>(r(),l("div",{key:n,class:D([{maintain:t(s)[i*2+n].status==="Maintain"||t(s)[i*2+n].status===5},"game-preview"]),onClick:p=>A(t(s)[i*2+n])},[m("div",ae,[t(s)[i*2+n].status==="Future"||t(s)[i*2+n].status===4?(r(),l("div",oe,"Future")):c("",!0),t(s)[i*2+n].status==="New"||t(s)[i*2+n].status===2?(r(),l("div",ie,"NEW")):c("",!0),t(s)[i*2+n].jackpotValue?(r(),l("div",ne,"JP")):c("",!0),g(t(s)[i*2+n])==="Fish"?(r(),l("div",re,"SHOOT & WIN")):c("",!0),g(t(s)[i*2+n])==="Scratch"?(r(),l("div",le,"SCRATCH")):c("",!0),g(t(s)[i*2+n])==="Collection"?(r(),l("div",ce,"3 POTS")):c("",!0)]),m("div",{class:D([{active:t(s)[i*2+n].favorite},"icon-heart"]),onClick:R(p=>E(t(s)[i*2+n]),["stop"])},[t(s)[i*2+n].favorite?(r(),_(o,{key:0,name:"fa6-solid:heart",mode:"svg"})):(r(),_(o,{key:1,name:"fa6-regular:heart",mode:"svg"}))],10,me),m("div",ue,[f(o,{name:"fa6-regular:circle-play",mode:"svg"})]),e[2]||(e[2]=m("div",{class:"game-mask2"},null,-1)),m("div",de,U(t(Q)(t(s)[i*2+n])),1),m("img",{src:b(t(s)[i*2+n])+t(N),loading:"lazy",alt:"",onError:e[0]||(e[0]=p=>T(p))},null,40,fe)],10,se))),128))])]),_:2},1024))),128))]),_:1})])):c("",!0)])}}};export{Ie 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.