1import{a0 as M,Z as P,X as T,a4 as A,$ as N,V as I,br as E,av as m,aw as g,a_ as e,b7 as k,b3 as G,aF as s,bg as Z,aA as H,b0 as U,b8 as $,a$ as j,az as O,r as u,a as C,be as J,b as K,bf as V,aB as z,b5 as W,n as X,W as q}from"./vendor-nuxt-CUFH2Tor-179145342.js";import{a as R,u as Q,i as Y,c as ee,f as ae}from"./entry-C00Y4Mz7-179145342.js";import"./vendor-swiper-0BgIJifE-179145342.js";const te={class:"w-full z-50 play-top-bar"},se={class:"w-full flex items-center justify-between h-[50px] bg-[var(--header-bg)] px-[15px]"},le={class:"flex items-center"},re=["src"],oe={key:0,class:"flex items-center"},ne=["href","aria-label"],ie=["aria-label"],ce={key:1},de=["aria-label"],ue={__name:"PlayTopBarLite",props:["gameId","providerId","currency"],emits:["refresh","fullscreen"],setup(S,{emit:b}){Q();const f=M();P();const{isMobile:L}=T(),{locale:B,locales:w}=A();Y();const l=ee(),r=N(),o=S,_=b,{$api:n,$toast:h}=I(),d=u(!1),y=async()=>{if(!l.loggedIn||d.value)return;d.value=!0,l.getBal();const a=await n("game/login-game",{currency:o.currency,provider_id:o.providerId,game_id:o.gameId});if(!a.status||!a.data.auto_status){d.value=!1,h(a.status,a.msg);return}const t=await n("game/auto-transfer",{provider_id:o.providerId,gid:o.gameId,currency:o.currency});if(d.value=!1,!t.status){h(t.status,t.msg);return}_("refresh",{url:a.data.url,type:a.data.type,providerId:o.providerId,gameId:o.gameId})},v=async()=>{if(!l.loggedIn){f.replace(r("/"));return}const a=await l.getBal();a.status||h(a.status,a.msg);let t=localStorage.getItem("lastpg");t?f.replace({path:t}):f.replace(r("/"))},i=()=>{_("fullscreen")};return(a,t)=>{const x=Z,c=E("track");return m(),g("div",te,[e("div",se,[e("div",le,[k(x,{to:s(r)("/"),class:"header-logo","aria-label":a.$t("home")},{default:G(()=>[e("img",{src:a.$pub("/img/logo.png"),alt:"logo"},null,8,re)]),_:1},8,["to","aria-label"])]),s(l).loggedIn?(m(),g("div",oe,[e("button",{type:"button",class:"game_header_text_color_2 mr-3",onClick:i,"aria-label":"Full Screen"},[...t[0]||(t[0]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},[e("path",{"fill-rule":"evenodd",d:"M5.828 10.172a.5.5 0 0 0-.707 0l-4.096 4.096V11.5a.5.5 0 0 0-1 0v3.975a.5.5 0 0 0 .5.5H4.5a.5.5 0 0 0 0-1H1.732l4.096-4.096a.5.5 0 0 0 0-.707zm4.344 0a.5.5 0 0 1 .707 0l4.096 4.096V11.5a.5.5 0 1 1 1 0v3.975a.5.5 0 0 1-.5.5H11.5a.5.5 0 0 1 0-1h2.768l-4.096-4.096a.5.5 0 0 1 0-.707zm0-4.344a.5.5 0 0 0 .707 0l4.096-4.096V4.5a.5.5 0 1 0 1 0V.525a.5.5 0 0 0-.5-.5H11.5a.5.5 0 0 0 0 1h2.768l-4.096 4.096a.5.5 0 0 0 0 .707zm-4.344 0a.5.5 0 0 1-.707 0L1.025 1.732V4.5a.5.5 0 0 1-1 0V.525a.5.5 0 0 1 .5-.5H4.5a.5.5 0 0 1 0 1H1.732l4.096 4.096a.5.5 0 0 1 0 .707z"})],-1)])]),e("button",{onClick:y,type:"button",class:"mr-2","aria-label":"Refresh"},[e("div",{class:H(["icon_restore",s(d)?"spin":""])},[...t[1]||(t[1]=[U('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" data-v-f225ffd7><g id="Group_41272" data-name="Group 41272" transform="translate(3034 14600)" data-v-f225ffd7><rect id="Rectangle_54447" data-name="Rectangle 54447" transform="translate(-3034 -14600)" fill="none" data-v-f225ffd7></rect><g id="refresh_-_icon" data-name="refresh - icon" transform="translate(-3029 -14595)" data-v-f225ffd7><g id="Group_619" data-name="Group 619" data-v-f225ffd7><path id="Path_3410" data-name="Path 3410" d="M249.568,22.579l2.025-.253a1.669,1.669,0,0,0,1.445-1.854,1.643,1.643,0,0,0-1.853-1.446l-6.09.76a1.666,1.666,0,0,0-1.445,1.846l.751,6.175a1.658,1.658,0,1,0,3.29-.408l-.278-2.3a16.617,16.617,0,0,1-9.87,29.953,1.66,1.66,0,1,0,0,3.316,19.93,19.93,0,0,0,12.025-35.793Z" transform="translate(-217.446 -18.372)" fill="#403c79" data-v-f225ffd7></path><path id="Path_3411" data-name="Path 3411" d="M24.04,41.666a1.658,1.658,0,1,0-3.29.408l.278,2.3A16.617,16.617,0,0,1,30.9,14.416a1.66,1.66,0,1,0,0-3.316A19.934,19.934,0,0,0,18.88,46.9l-2.025.253a1.669,1.669,0,0,0-1.445,1.854,1.643,1.643,0,0,0,1.853,1.446l6.09-.76A1.666,1.666,0,0,0,24.8,47.849Z" transform="translate(-11.003 -11.1)" fill="#403c79" data-v-f225ffd7></path></g></g></g></svg>',1)])],2)]),$((m(),g("a",{href:s(r)("/deposit"),target:"_blank",class:"topbar_btn_2 mr-[10px] flex items-center","aria-label":a.$t("deposit")},[j(O(a.$t("deposit")),1)],8,ne)),[[c,"deposit_btn_2"]]),e("button",{type:"button",onClick:v,"aria-label":a.$t("back")},[...t[2]||(t[2]=[e("svg",{class:"w-5 h-5 game_header_close_btn",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},[e("path",{d:"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708
1L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"})],-1)])],8,ie)])):(m(),g("div",ce,[e("button",{type:"button",onClick:v,"aria-label":a.$t("back")},[...t[3]||(t[3]=[e("svg",{class:"w-5 h-5 game_header_close_btn",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},[e("path",{d:"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"})],-1)])],8,de)]))])])}}},fe=R(ue,[["__scopeId","data-v-f225ffd7"]]),pe={key:0,class:"h-full relative lite-mode"},me={class:"play-topbar-lite"},ge={class:"fixed top-0 left-1/2 -translate-x-1/2 z-10",style:{width:"80px"}},he=["aria-label"],_e=["allowfullscreen"],ve={class:"flex items-center justify-center absolute left-0 top-0 w-full h-full h-[100vh] supports-[height:100dvh]:h-[100dvh]"},be={class:"play-game-spinner"},we={__name:"[games]",setup(S){const b=q(),f=N(),{$decodeString:L}=I(),{$pub:B}=I(),w=P(),l=M(),r=u(!1),o=u(""),_=u(1),n=u(""),h=u(),d=()=>{let c=localStorage.getItem("lastpg");if(c)l.replace({path:c});else if(window.history.state.back){l.replace(window.history.state.back);return}else l.replace(f("/"))},y=u(!1),v=async()=>{if(!w.params.games){l.replace(f("/"));return}try{const c=L(w.params.games);n.value=c,X(()=>{let p=document.getElementById("game-iframe");n.value.indexOf("https")<0&&(n.value=n.value.replace("http","https")),p.src=n.value})}catch{d()}};C(()=>{v()}),J(()=>{o.value=""});let i=null;const a=()=>{i||(i=document.createElement("style"),i.innerHTML="#chat-widget-container {display: none !important;}",document.head.appendChild(i))},t=()=>{i&&(i.remove(),i=null)};C(()=>{a()}),K(()=>{t()});const x=()=>{r.value=!0};return(c,p)=>{const D=fe,F=ae;return s(b).public?.IS_LITE_MODE?(m(),g("div",pe,[$(e("div",me,[k(D,{onFullscreen:x})],512),[[V,s(n)&&!s(r)]]),$(e("div",ge,[e("button",{type:"button",class:"px-2 py-1 flex items-center justify-center w-full bg-[var(--header-bg)] rounded-b-md close_fullscreen_btn","aria-label":c.$t("close"),onClick:p[0]||(p[0]=ye=>r.value=!1)},[...p[1]||(p[1]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"close-fullscreen-icon",width:"16",height:"16",fill:"#fff",viewBox:"0 0 16 16"},[e("path",{"fill-rule":"evenodd",d:"M1.553 6.776a.5.5 0 0 1 .67-.223L8 9.44l5.776-2.888a.5.5 0 1 1 .448.894l-6 3a.5.5 0 0 1-.448 0l-6-3a.5.5 0 0 1-.223-.67z"})],-1)])],8,he)],512),[[V,s(r)]]),s(n)?(m(),g("div",{key:s(_),class:"w-full relative z-[2] h-[100vh] supports-[height:100dvh]:h-[100dvh]"},[e("iframe",{ref_key:"gameIframe",ref:h,referrerpolicy:"no-referrer",frameborder:"0",id:"game-iframe",class:H(["game-iframe h-full w-full transition-all",{"game-iframe-full":s(r)}]),allowfullscreen:s(y)},null,10,_e)])):z("",!0),e("div",ve,[e("div",null,[e("div",{class:"play-game-logo mb-4 mobile",style:W([`--logo: url('${s(B)("/img/logo.png")}')`,{width:"150px"}])},null,4),e("div",be,[k(F)])])])])):z("",!0)}}},$e=R(we,[["__scopeId","data-v-5dbd9c86"]]);export{$e as default}; 2//# sourceMappingURL=_games_-DLAcYC-x-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.