PageSourceSearch

https://www.ctmx.live/_nuxt/_gameType_.DnqUwl5d.js

js ctmx.live collected 2026-09-27 05:01:51 UTC 6,776 bytes, 1 lines download raw bytes

1import e from"./MainImageSlide.C9k4JYyX.js";import{bW as a,u as t,F as s,b1 as i,A as n,$ as l,_ as o,bn as r,c,y as d,d as m,t as u}from"./entry.CssAXU4U.js";import{_ as p}from"./GameCard.D7Li4XGP.js";import{S as g,a as v}from"./vue-splide.esm.nyKjiBsd.js";import{k as f,b as y,C as _,U as x,c as w,I as h,q as b,$ as k,Q as I,a6 as C,R as G,S as j,a8 as E,L as B,aa as L,n as S,av as T,aw as H,l as P,X as U,J as $,a0 as O,u as W,P as F,a5 as M,a9 as R}from"./swiper-vue.BQRrVgbi.js";import"./HalloweenBats.vue.l0sNRNKZ.js";import"./gamePlaceholder.B8_l1uoN.js";import"./useTimeBasedSelector.B8TN0Bph.js";/* empty css                     */async function q(e,a){if(await S(),!e.top)return;const t=e.parentEl||document.documentElement;t.scrollTop=t.scrollHeight-a}const A=(e,a)=>{const t=e.__vccOpts||e;for(const[s,i]of a)t[s]=i;return t},N={},J={class:"container"},Q=[(e=>(T("data-v-d3e37633"),e=e(),H(),e))((()=>E("div",{class:"spinner"},null,-1)))],V=A(N,[["render",function(e,a){return k(),x("div",J,Q)}],["__scopeId","data-v-d3e37633"]]),X={class:"state-error"},Y=A(f({__name:"InfiniteLoading",props:{top:{type:Boolean,default:!1},target:{},distance:{default:0},identifier:{},firstload:{type:Boolean,default:!0},slots:{}},emits:["infinite"],setup(e,{emit:a}){const t=e;let s=null,i=0;const n=y(null),l=y(""),{top:o,firstload:r,distance:c}=t,{identifier:d,target:m}=_(t),u={infiniteLoading:n,top:o,firstload:r,distance:c,parentEl:null,emit(){i=(u.parentEl||document.documentElement).scrollHeight,p.loading(),a("infinite",p)}},p={loading(){l.value="loading"},async loaded(){l.value="loaded",await q(u,i),function(e,a=null){if(!e)return!1;const t=e.getBoundingClientRect(),s=a?a.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return t.bottom>=s.top&&t.top<=s.bottom&&t.right>=s.left&&t.left<=s.right}(n.value,u.parentEl)&&u.emit()},async complete(){l.value="complete",await q(u,i),null==s||s.disconnect()},error(){l.value="error"}};function g(){null==s||s.disconnect(),s=function(e){let a="0px 0px ".concat(e.distance,"px 0px");e.top&&(a="".concat(e.distance,"px 0px 0px 0px"));const t=new IntersectionObserver((a=>{a[0].isIntersecting&&(e.firstload&&e.emit(),e.firstload=!0)}),{root:e.parentEl,rootMargin:a});return e.infiniteLoading.value&&t.observe(e.infiniteLoading.value),t}(u)}return w(d,g),h((async()=>{u.parentEl=await async function(e){return e?(await S(),e.value instanceof HTMLElement?e.value:e.value?document.querySelector(e.value):null):null}(m),g()})),b((()=>null==s?void 0:s.disconnect())),(e,a)=>(k(),x("div",{ref_key:"infiniteLoading",ref:n,class:"v3-infinite-loading"},[I(E("div",null,[C(e.$slots,"spinner",{},(()=>[B(V)]),!0)],512),[[j,"loading"==l.value]]),"complete"==l.value?C(e.$slots,"complete",{key:0},(()=>{var a;return[E("span",null,L((null==(a=e.slots)?void 0:a.complete)||"No more results!"),1)]}),!0):G("",!0),"error"==l.value?C(e.$slots,"error",{key:1,retry:u.emit},(()=>{var t;return[E("span",X,[E("span",null,L((null==(t=e.slots)?void 0:t.error)||"Oops something went wrong!"),1),E("button",{class:"retry",onClick:a[0]||(a[0]=(...e)=>u.emit&&u.emit(...e))},"retry")])]}),!0):G("",!0)],512))}}),[["__scopeId","data-v-4bdee133"]]),z={class:"flex flex-col space-y-2"},D={key:0},K={key:0,class:"!mt-28 text-center flex flex-col text-secondary items-center"},Z={class:"text-base mt-2"},ee={key:1,class:"w-full auto-rows-max gap-2 grid <xs:grid-cols-2 <sm:grid-cols-3 sm:grid-cols-4 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-6"},ae={key:1},te={key:0,class:"!mt-28 text-center flex flex-col text-secondary items-center"},se={class:"text-base mt-2"},ie={class:"text-sm mt-2"},ne={key:1,class:"w-full auto-rows-max gap-2 grid <xs:grid-cols-2 <sm:grid-cols-3 sm:grid-cols-4 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-6"},le={key:2},oe={class:"w-full auto-rows-max gap-2 grid <xs:grid-cols-2 <sm:grid-cols-3 sm:grid-cols-4 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-6"},re={class:"grid place-content-center h-32 mx-auto"},ce={__name:"[gameType]",setup(f){const _=a(),{t:w}=t(),h=P((()=>[{id:"hits",label:"".concat(w("type.hitGame"))},{id:"news",label:"".concat(w("type.newGame"))},{id:"fav",label:"".concat(w("type.favoriteGame"))},{id:"last",label:"".concat(w("type.lastPlayed"))}])),b=s().params.gameType,I=i(),C=y(!0),j=y({specialCategorySelect:b,agents_id:n().player_games[0].agents_id,page:1,perPage:50}),S=y([]),T=async e=>{if("last"!==b&&"fav"!==b&&C.value)try{const a=await m().post("/get-games-v-2",j.value),t=await a.data.data.list;t.length<50&&(C.value=!1),S.value.push(...t),e.loaded(),j.value.page++}catch(a){u.error({text:a.response.data.message}),e.error()}else e.complete()};return(a,t)=>{const s=e,i=l,n=o,m=p,u=c,f=r;return k(),x("div",z,[B(s),B(W(v),{options:{gap:4,pagination:!1,arrows:!1,autoWidth:!0}},{default:U((()=>[(k(!0),x($,null,O(W(h),((e,a)=>(k(),F(W(g),{key:a},{default:U((()=>[B(i,{class:M([W(b)===e.id?"btn-secondary":"inActiveButton","px-[1.188rem] cursor-pointer py-[0.375rem]"]),onClick:a=>{return t=e.id,void d(t);var t}},{default:U((()=>[R(L(e.label),1)])),_:2},1032,["class","onClick"])])),_:2},1024)))),128))])),_:1}),"last"===W(b)?(k(),x("div",D,[0===W(_).lastGames.length?(k(),x("div",K,[B(n,{class:"text-[40px]",name:"svg/sadface"}),E("p",Z,L(W(w)("type.canNotPlayGame")),1)])):(k(),x("div",ee,[(k(!0),x($,null,O(W(_).lastGames,(e=>(k(),F(m,{id:e.gameId,key:e._id,class:"animate__animated animate__fadeInUp animate__faster","img-cover":e.image,"is-hot":e.hits,"is-new":e.news,"is-name":e.description,"game-data":e},null,8,["id","img-cover","is-hot","is-new","is-name","game-data"])))),128))]))])):G("",!0),"fav"===W(b)?(k(),x("div",ae,[0===W(I).favGames.length?(k(),x("div",te,[B(n,{class:"text-[40px]",name:"svg/sadface"}),E("p",se,L(W(w)("type.noFavoriteGame")),1),E("p",ie,L("Tips: ".concat(W(w)("type.saveYourFavorite"))),1)])):(k(),x("div",ne,[(k(!0),x($,null,O(W(I).favGames,(e=>(k(),F(m,{id:e.gameId,key:e._id,class:"animate__animated animate__fadeInUp animate__faster","img-cover":e.image,"is-hot":e.hits,"is-new":e.news,"is-name":e.description,"game-data":e},null,8,["id","img-cover","is-hot","is-new","is-name","game-data"])))),128))]))])):(k(),x("div",le,[E("div",oe,[(k(!0),x($,null,O(W(S),(e=>(k(),F(m,{id:e.gameId,key:e._id,class:"animate__animated animate__fadeInUp animate__faster","img-cover":e.image,"is-hot":e.hits,"is-new":e.news,"is-name":e.description,"game-data":e},null,8,["id","img-cover","is-hot","is-new","is-name","game-data"])))),128))]),B(W(Y),{onInfinite:T},{error:U((({retry:e})=>[E("div",re,[B(u,{onClick:e},{default:U((()=>t[0]||(t[0]=[R("ลองอีกครั้ง")]))),_:2,__:[0]},1032,["onClick"])])])),spinner:U((()=>[B(f)])),complete:U((()=>t[1]||(t[1]=[E("span",null,null,-1)]))),_:1})]))])}}};export{ce 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.