1import{_ as K}from"./MerchantMarqueeAnnounce-DaBbbXyx-179145342.js";import{a as Q,i as Z,P as ee,c as ae,u as re,M as se,h as te,f as oe}from"./entry-Ek5JinTo-179145342.js";import{_ as ne}from"./MerchantHome-C4jGoniI-179145342.js";import{_ as ie}from"./AppModal-DhV393eJ-179145342.js";import{_ as le}from"./_virtual_public-0tusew54-179145342.js";import{X as ce,V as D,a4 as de,ba as ue,w as me,a as pe,av as s,aw as t,aF as r,b5 as h,b7 as C,a_ as l,aB as d,aU as I,b2 as E,az as G,b1 as k,e as m,r as A,W as _e}from"./vendor-nuxt-0BkMkd7N-179145342.js";import"./vendor-swiper-Y5LH_XwN-179145342.js";import"./CardSlider-C68S8u8T-179145342.js";import"./PaginationGame-CHehmTQq-179145342.js";import"./MerchantHomeGameContainerMobile-DkJhaSd6-179145342.js";import"./MerchantFooterSEO-BAHrBQF7-179145342.js";import"./PasswordInput-Cupic3L_-179145342.js";const ge={class:"h-full"},ve={class:"container"},fe={class:"relative py-5"},be={key:0,class:"egames_img is_jw8_special"},ye={key:2,class:"game_box relative"},he={key:0,class:"loading_bg !z-20"},ke=["onClick","aria-label"],we={class:"egames-provider-box"},Me=["src","alt"],Ne=["src","alt"],xe={key:0,class:"ratio-info-text"},Se={key:3,class:"game_box relative"},$e={__name:"MerchantEgames",setup(R){const{isMobile:p}=ce(),_=_e(),n=Z(),g=ee(),v=ae(),w=re(),i=se(),{$pub:u,$resolveUrl:M}=D(),{locale:N,locales:x}=de(),{localeCurrency:S}=te(),U=ue(()=>{i.ready&&(!v.loggedIn||v.loggedIn&&w.ready)&&(g.getGames("egames"),U())},{flush:"post"});me(()=>v.loggedIn,()=>{g.getGames("egames")});const B=e=>e?M(`{d}game/games/egames/${e.toUpperCase()}/DD.webp`):u("/img/logo.png"),P=e=>e?M(`{d}game/provider-dropdown/${e.toUpperCase()}.webp`):u("/img/logo.png");pe(()=>{p||window.scrollTo(0,0)});const V=m(()=>{if(i.ready&&g.egames&&g.egames.ready&&g.egames.list&&i.data&&i.data.egames){var e=[],a=i.data.egames.filter(c=>c.mobile_status=="1");for(let c=0;c<a.length;c++)e.push(a[c]);return e}return[]}),{$api:H,$toast:T}=D(),b=A(!1),y=A({provider:"",provider_name:"-",username:"-",password:"-",url:"-",provider_data:null}),j=async e=>{if(!v.loggedIn){n.loginModal=!0;return}if(n.loadingGame!=!0){if(n.loadingGame=!0,!v.loggedIn&&e.url&&e.url!="")y.value={provider:e.providerName.toUpperCase(),provider_name:e.display_name,username:"",password:"",url:e.url,provider_data:e};else{const a=await H("mobile/mobile-login",{provider_id:e.id,currency:S.value});if(!a.status){n.loadingGame=!1,T(!1,a.msg);return}y.value={provider:e.providerName.toUpperCase(),provider_name:e.display_name,username:a.data.username,password:a.data.password,url:a.data.url,play_link:a.data.play_link,provider_data:e}}b.value=!0,n.loadingGame=!1}},$=m(()=>{if(_.public.MERCHANT=="jw8"&&x.value&&N.value){var e=x.value.find(a=>a.code==N.value)?.currency;return!!(e&&e=="MYR"||e&&e=="SGD")}return!1}),L=m(()=>$.value||_.public.MERCHANT=="dis88"?u("/img/category_background/bg_egames.webp"):u("/img/bg_egames.webp")),z=m(()=>!!($.value||_.public.MERCHANT=="dis88")),F=m(()=>{const e=_.public.MERCHANT,a=w.data?.currency;return e==="jw8"&&a==="IDR"||e==="champ191"&&["IDR","VND"].includes(a)}),O=m(()=>({background:n.vpn_tag_color,padding:"4px"}));return(e,a)=>{const c=K,W=oe,q=ne,X=ie;return s(),t("div",ge,[r(p)?d("",!0):(s(),t("div",{key:0,class:"h-full bg-cover bg-center",style:h(`background-image: url(${r(L)})`)},[C(c),l("div",ve,[l("div",fe,[r(z)?(s(),t("div",be)):(s(),t("div",{key:1,class:"egames_img",style:h(`background-image: url(${r(u)("/img/egames_img.webp")})`)},null,4)),r(i).ready?(s(),t("div",ye,[r(n).loadingGame?(s(),t("div",he,[C(W)])):d("",!0),(s(!0),t(I,null,E(r(V),(o,Y)=>(s(),t("div",{key:Y,class:"relative"},[l("button",{onClick:f=>j(o),type:"button",class:"btn_egames","aria-label":`${o.providerName}`},[a[1]||(a[1]=l("div",{class:"btn_egames_aspect_ratio"},null,-1)),l("div",we,[l("img",{class:"egames-provider-img",src:B(o.providerName),alt:`${o.providerName}_GAME`},null,8,Me),l("img",{class:"egames-provider-logo",src:P(o.providerName),alt:`${o.providerName}_LOGO`},null,8,Ne)])],8,ke),r(i).meta[o.category][o.providerName]&&r(i).meta[o.category][o.providerName].show_vpn==1?(s(),t("img",{key:0,class:"vpn_tag select-none",draggable:"false",src:le,alt:"vpn_tag",style:h(r(O))},null,4)):d("",!0),r(F)?(s(!0),t(I,{key:1},E(r(i).data.egames,(f,J)=>(s(),t("div",{key:J},[f.providerName==o.providerName&&f.ratio?(s(),t("div",xe,G(r(S))+" "+G(f.ratio)+" = 1",1)):d("",!0)]))),128)):d("",!0)]))),128))])):(s(),t("div",Se,[...a[2]||(a[2]=[l("div",{class:"skeleton h-[200px] w-full"},null,-1)])]))])])],4)),r(p)?(s(),k(q,{key:1,category:"egames"})):d("",!0),r(p)?d("",!0):(s(),k(X,{key:2,show:r(b),appModalData:r(y),onClose:a[0]||(a[0]=o=>b.value=!1)},null,8,["show","appModalData"]))])}}},De=Q($e,[["__scopeId","data-v-7ca7da40"]]),je={__name:"index",setup(R){return(p,_)=>{const n=De;return s(),k(n)}}};export{je as default}; 2//# sourceMappingURL=index-BIb-hoFG-179145342.js.map
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.