/g,"\n").replace(/<\/div>/g,"").replace(/
/g,"\n").replace(/ /g," ").replace(/\u00a0/g," ").replace(/ +$/g,"")},async onInput(){const e=window.getSelection();if(!e||!e.anchorNode)return;const t=(e.anchorNode.textContent??"").slice(0,e.anchorOffset),a=t.match(/@[\w.-]*$/),i=a?a[0]:null;i?.startsWith("@")?(this.searchText=i.slice(1),this.mentionTrigger=i,this.searchText&&(clearTimeout(this.searchTimeout),this.searchTimeout=window.setTimeout((async()=>{try{this.users=await this.asyncSearch(this.searchText),this.showSuggestions=!0,this.$nextTick((()=>{const e=window.getSelection();if(!e?.rangeCount)return;const t=e.getRangeAt(0),a=t.getClientRects()[0]||t.getBoundingClientRect();if(!a)return;const i=this.$refs.editor,n=i.getBoundingClientRect(),o=a.left-n.left+i.scrollLeft;this.suggestionPosition={left:`${o}px`}}))}catch(e){console.error("Failed to fetch mentions:",e),this.users=[]}}),300))):this.showSuggestions=!1,this.$emit("update:modelValue",this.getPlainText())},scrollHighlightedIntoView(){const e=this.$refs.userItems,t=e[this.selectedIndex];if(t){const e=t.parentElement;if(!e)return;const a=e.scrollTop,i=a+e.clientHeight,n=t.offsetTop,o=n+t.offsetHeight;o>i?e.scrollTop+=o-i:n
@${e.name} `;document.execCommand("insertHTML",!1,d),this.showSuggestions=!1,this.selectedIndex=0,this.users=[],this.$emit("update:modelValue",this.getPlainText())},getMentions(){const e=[];if(!this.$refs.editor)return e;const t=this.$refs.editor.querySelectorAll("span.mention");return t.forEach((t=>{const a=t.getAttribute("data-userid"),i=t.textContent?.replace("@","");a&&i&&e.push({id:a,name:i})})),e}}});a(94116);const vr=(0,C.A)(hr,[["render",mr],["__scopeId","data-v-0b3fde94"]]);var xr=vr;function br(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("p",null,[(0,n.RG)(e.$slots,"default",{},void 0,!0)])}var wr=(0,n.pM)({name:"paragraphBanner"});a(12262);const yr=(0,C.A)(wr,[["render",br],["__scopeId","data-v-9b656d86"]]);var kr=yr,Cr=(0,n.pM)({components:{MentionInput:xr,Arrow:bt,UserIcon:Gt,PinnIcon:zo,SmileIcon:Po,SendMessage:No,Message:nr,Mention:ur,Button:Ea,NotificationBanner:kr},emits:["close"],props:{isOpen:{type:Boolean,required:!0}},data(){return{text:"",loading:!1,users:[],isScrolled:!1,showEmojiPicker:!1,emojiToggleEl:null}},computed:{hasGiveawaysBanner(){return!!this.$store.getters["giveaways/data"].data.length},user(){return this.$store.state.auth.user},messages(){return this.$store.getters["global/messages"]},chatErrors(){return this.$store.getters["global/globalChatErrors"]}},watch:{messages:{handler(){this.scrollToBottom()},deep:!0},isOpen(e){e?this.scrollToBottom():this.showEmojiPicker=!1}},mounted(){this.scrollToBottom(!0),this.$privateSocket.emit("joinGlobalChat"),this.emojiToggleEl=this.$refs.emojiToggle.$el},unmounted(){this.$privateSocket.emit("leaveGlobalChat")},methods:{sendMessage(){this.text.trim()&&(this.$privateSocket.emit("globalChatMessage",{user:{id:this.user.id,name:this.user.name,avatar:this.user.avatar},message:this.text}),this.text="",this.showEmojiPicker=!1)},scrollToBottom(e=!1){if(this.isScrolled=this.isScrolledToBottom(),!this.isScrolled&&!e)return;const t=this.$refs.messages;this.$nextTick((()=>{t.scrollTo({top:t.scrollHeight,behavior:"auto"})})),e&&(this.isScrolled=!0)},isScrolledToBottom(){const e=this.$refs.messages;return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight+50},async searchUsers(e){if(!e)return[];const t=await Ba.getUsers(e);return t.data.data},send(){this.text.trim()&&(this.text="")},toggleEmojiPicker(){this.showEmojiPicker=!this.showEmojiPicker},onSelectEmoji(e){const t=this.$refs.mentionInput,a=t.$refs.editor;a.scrollTo({top:a.scrollHeight,behavior:"auto"}),this.text+=e.i},closeEmojiPicker(){this.showEmojiPicker=!1}}}),Mr=a(68349),Lr=(0,n.pM)({name:"GlobalChat",mixins:[Cr],components:{EmojiPicker:Mr.A}});a(87200);const Ar=(0,C.A)(Lr,[["render",Fo],["__scopeId","data-v-10f7101e"]]);var Ir=Ar;const Tr={class:"slider-wrapper"},_r=["aria-label"],Er=["src","alt"],Sr={key:1,class:"slide-default"},Fr={key:0,class:"indicators","aria-hidden":"false"},Wr=["onClick","aria-label","aria-pressed"];function jr(e,t,a,o,r,s){const d=(0,n.g2)("Arrow");return(0,n.uX)(),(0,n.CE)("div",Tr,[(0,n.Lk)("div",{class:"slider",onMouseenter:t[5]||(t[5]=(...t)=>e.onMouseEnter&&e.onMouseEnter(...t)),onMouseleave:t[6]||(t[6]=(...t)=>e.onMouseLeave&&e.onMouseLeave(...t)),onKeydown:[t[7]||(t[7]=(0,i.jR)((0,i.D$)(((...t)=>e.prev&&e.prev(...t)),["prevent"]),["left"])),t[8]||(t[8]=(0,i.jR)((0,i.D$)(((...t)=>e.next&&e.next(...t)),["prevent"]),["right"]))],tabindex:"0",role:"region","aria-label":e.ariaLabel},[(0,n.Lk)("button",{class:"nav-btn nav-left",onClick:t[0]||(t[0]=(...t)=>e.prev&&e.prev(...t)),"aria-label":"Previous slide"},[(0,n.bF)(d,{color:"black",style:{transform:"rotate(-90deg)"}})]),(0,n.Lk)("div",{class:"viewport",ref:"viewportRef",onTouchstartPassive:t[1]||(t[1]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchmove:t[2]||(t[2]=(0,i.D$)(((...t)=>e.onTouchMove&&e.onTouchMove(...t)),["prevent"])),onTouchend:t[3]||(t[3]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t))},[(0,n.Lk)("div",{class:"track",style:(0,l.Tr)(e.trackStyle),role:"list","aria-live":"polite"},[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.displayedItems,((t,a)=>((0,n.uX)(),(0,n.CE)("div",{key:e.itemKey(t,a),class:"slide",style:(0,l.Tr)(e.slideStyle)},[(0,n.RG)(e.$slots,"slide",{item:t,index:a},(()=>[e.isStringOrUrl(t)?((0,n.uX)(),(0,n.CE)("img",{key:0,src:String(t),alt:`Slide ${a+1}`},null,8,Er)):((0,n.uX)(),(0,n.CE)("div",Sr,(0,l.v_)(t),1))]),!0)],4)))),128))],4)],544),(0,n.Lk)("button",{class:"nav-btn nav-right",onClick:t[4]||(t[4]=(...t)=>e.next&&e.next(...t)),"aria-label":"Next slide"},[(0,n.bF)(d,{color:"black",style:{transform:"rotate(90deg)"}})])],40,_r),e.showIndicators?((0,n.uX)(),(0,n.CE)("div",Fr,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.indicatorCount,(t=>((0,n.uX)(),(0,n.CE)("button",{key:t-1,class:(0,l.C4)(["indicator",{active:t-1===e.currentIndex}]),onClick:a=>e.goTo(t-1),"aria-label":`Go to slide ${t}`,"aria-pressed":t-1===e.currentIndex},null,10,Wr)))),128))])):(0,n.Q3)("",!0)])}var Xr=(0,n.pM)({name:"SliderComponent",components:{Arrow:bt},props:{items:{type:Array,required:!0},visible:{type:Number,default:1,validator:e=>e>=1},loop:{type:Boolean,default:!0},autoplay:{type:Number,default:null},pauseOnHover:{type:Boolean,default:!0},showIndicators:{type:Boolean,default:!0},ariaLabel:{type:String,default:"Image slider"},itemKeyProp:{type:String,default:""}},data(){return{viewportRef:null,currentIndex:0,timerId:null,hovering:!1,transitioning:!1,swipeStartX:null,swipeDeltaX:0,isDragging:!1,touching:!1}},computed:{displayedItems(){if(!this.loop||0===this.items.length)return this.items;const e=this.items[0],t=this.items[this.items.length-1];return[t,...this.items,e]},maxIndex(){return Math.max(0,this.items.length-this.visible)},slideWidthPercent(){return 100/this.visible/this.displayedItems.length},trackTranslatePercent(){return(this.currentIndex+1)*(100/this.displayedItems.length)},viewportWidth(){return this.viewportRef?.clientWidth||1},trackStyle(){const e=this.displayedItems.length*(100/this.visible),t=this.isDragging&&this.viewportRef?this.swipeDeltaX/this.viewportRef.clientWidth*100:0,a=this.trackTranslatePercent-t;return{transform:`translateX(-${a}%)`,width:`${e}%`,transition:this.transitioning&&!this.isDragging?"transform 350ms ease":"none",display:"flex"}},slideStyle(){return{flex:`0 0 ${this.slideWidthPercent}%`,boxSizing:"border-box"}},indicatorCount(){return Math.max(1,this.items.length-this.visible+1)}},mounted(){this.startAutoplay()},beforeUnmount(){this.clearTimer()},methods:{onTouchStart(e){1===e.touches.length&&(this.swipeStartX=e.touches[0].clientX,this.swipeDeltaX=0,this.isDragging=!1,this.touching=!0,this.clearTimer())},onTouchMove(e){if(null===this.swipeStartX)return;const t=e.touches[0].clientX;this.swipeDeltaX=t-this.swipeStartX,!this.isDragging&&Math.abs(this.swipeDeltaX)>10&&(this.isDragging=!0),this.isDragging&&e.preventDefault()},onTouchEnd(){if(!this.isDragging)return this.swipeStartX=null,this.swipeDeltaX=0,this.touching=!1,void this.startAutoplay();const e=30;this.swipeDeltaX>e?this.prev():this.swipeDeltaX<-e&&this.next(),this.swipeStartX=null,this.swipeDeltaX=0,this.isDragging=!1,this.touching=!1,this.startAutoplay()},itemKey(e,t){return this.itemKeyProp&&"object"===typeof e&&e[this.itemKeyProp]?e[this.itemKeyProp]:t},isStringOrUrl(e){return"string"===typeof e},isSlideHidden(e){return!1},prev(){this.items.length<=1||this.transitioning||(this.transitioning=!0,this.currentIndex--,this.resetAutoplay(),this.afterTransitionCheck())},next(){this.items.length<=1||this.transitioning||(this.transitioning=!0,this.currentIndex++,this.resetAutoplay(),this.afterTransitionCheck())},goTo(e){this.transitioning||e===this.currentIndex||(this.transitioning=!0,this.currentIndex=e,this.resetAutoplay(),setTimeout((()=>{this.afterTransitionCheck()}),350))},afterTransitionCheck(){setTimeout((()=>{this.loop?(this.currentIndex>=this.items.length?(this.transitioning=!1,this.currentIndex=0):this.currentIndex<0&&(this.transitioning=!1,this.currentIndex=this.items.length-1),(0,n.dY)((()=>{this.transitioning=!1}))):this.transitioning=!1}),350)},startAutoplay(){!this.autoplay||this.autoplay<=0||(this.clearTimer(),this.timerId=window.setInterval((()=>{this.pauseOnHover&&this.hovering||this.next()}),this.autoplay))},clearTimer(){null!=this.timerId&&(window.clearInterval(this.timerId),this.timerId=null)},resetAutoplay(){this.clearTimer(),this.startAutoplay()},onMouseEnter(){this.hovering=!0,this.pauseOnHover&&this.clearTimer()},onMouseLeave(){this.hovering=!1,this.pauseOnHover&&this.startAutoplay()}}});a(75960);const Rr=(0,C.A)(Xr,[["render",jr],["__scopeId","data-v-418b97f7"]]);var zr=Rr,Ur=(0,n.pM)({components:{Tabs:_o,GlobalChat:Ir,Arrow:bt,Slider:zr},props:{isOpen:{type:Boolean,required:!0},isMobile:{type:Boolean,default:!1}},watch:{isOpen(e){e?document.documentElement.classList.add("chat-open"):document.documentElement.classList.remove("chat-open")},$route(e,t){this.isMobile&&this.$emit("close")}},data(){return{chatTabs:[{active:!0,value:"global",label:"Chat"},{active:!1,value:"system",label:"Bloxup"}],TAWK_ID:"68b593468e5e8d7ad6a012c1"}},computed:{giveaways(){return this.$store.getters["giveaways/data"]},activeTab(){return this.chatTabs.find((e=>e.active))?.value},globalConfig(){return this.$store.getters["global/data"]}},unmounted(){document.documentElement.classList.remove("chat-open")}});const Dr={class:"giveaway"},Br={class:"wrapper"},Vr={key:0,class:"user-side"},Pr={class:"avatar winner"},Or=["src","alt"],Gr=["src"];function Qr(e,t,a,i,o,r){const s=(0,n.g2)("Time"),d=(0,n.g2)("Button");return(0,n.uX)(),(0,n.CE)("div",Dr,[(0,n.Lk)("div",Br,[(0,n.Lk)("h3",null,(0,l.v_)(e.giveaway.name),1),e.giveaway.winner?.user?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.Wv)(s,{key:0,endDate:e.endDate},null,8,["endDate"]))]),e.giveaway.winner?.user?((0,n.uX)(),(0,n.CE)("div",Vr,[(0,n.Lk)("div",(0,n.v6)({class:"avatar-wrapper"},e.$attrs),[(0,n.Lk)("div",Pr,[(0,n.Lk)("img",{src:e.giveaway.winner.user.avatar,alt:e.giveaway.winner.user.name},null,8,Or),t[1]||(t[1]=(0,n.Lk)("div",{class:"winner"},[(0,n.Lk)("span",null," WINNER ")],-1))])],16),(0,n.Lk)("p",null,(0,l.v_)(e.giveaway.winner?.user.name),1)])):((0,n.uX)(),(0,n.Wv)(d,{key:1,type:"primary__white",style:{width:"156px","letter-spacing":"-0.4px"},disabled:e.giveaway.is_participant,onClick:t[0]||(t[0]=t=>e.$router.push({name:"giveaways"}))},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.buttonText),1)])),_:1},8,["disabled"])),(0,n.Lk)("img",{class:"hover-image",src:e.giveaway.item.thumbnail,alt:"img"},null,8,Gr)])}const Hr={class:"time"},Nr={class:"number"},Kr={class:"number"},qr={class:"number"};function Zr(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",Hr,[(0,n.Lk)("div",Nr,(0,l.v_)(e.hours),1),t[0]||(t[0]=(0,n.Lk)("div",{class:"dot"},":",-1)),(0,n.Lk)("div",Kr,(0,l.v_)(e.minutes),1),t[1]||(t[1]=(0,n.Lk)("div",{class:"dot"},":",-1)),(0,n.Lk)("div",qr,(0,l.v_)(e.seconds),1)])}var Jr=(0,n.pM)({props:{endDate:{type:Date,required:!0}},data(){return{hours:this.endDate.getHours(),minutes:this.endDate.getMinutes(),seconds:this.endDate.getSeconds()}},mounted(){const e=setInterval((()=>{this.getRemainingTime(),0===this.hours&&0===this.minutes&&0===this.seconds&&(clearInterval(e),console.log("Time is up!"))}),1e3)},methods:{getRemainingTime(){const e=new Date,t=new Date(this.endDate),a=t.getTime()-e.getTime();if(a<=0)return this.hours=0,this.minutes=0,void(this.seconds=0);const i=Math.floor(a/1e3);this.hours=Math.floor(i%86400/3600),this.minutes=Math.floor(i%3600/60),this.seconds=i%60}}}),Yr=(0,n.pM)({name:"TimeComponent",mixins:[Jr]});a(8501);const $r=(0,C.A)(Yr,[["render",Zr],["__scopeId","data-v-04a68e42"]]);var es=$r,ts=(0,n.pM)({components:{Button:Ea},props:{giveaway:{type:Object,required:!0}},data(){return{duration:{hours:0,min:0,sec:0}}},computed:{buttonText(){return this.giveaway.is_participant?"Participating":"Participate"},isFinished(){return this.giveaway.status===Jt.FINISHED},endDate(){const e=new Date(this.giveaway.start_date);return new Date(e.getTime()+60*this.giveaway.duration*1e3)}}}),as=(0,n.pM)({name:"GiveawayItem",components:{Time:es},mixins:[ts]});a(72303);const is=(0,C.A)(as,[["render",Qr],["__scopeId","data-v-2e2e8037"]]);var ns=is,os=(0,n.pM)({name:"ChatDesktop",mixins:[Ur],components:{Giveaway:ns}});a(57452);const rs=(0,C.A)(os,[["render",wo],["__scopeId","data-v-46ed774c"]]);var ss=rs,ls=(0,n.pM)({name:"FooterComponent",components:{GradientList:fo,Button:Ea,Message:at,Chat:ss},data(){return{isChatOpen:!1}}});a(65152);const ds=(0,C.A)(ls,[["render",lo],["__scopeId","data-v-7ac9827a"]]);var cs=ds,ps=a(91737),us=(0,n.pM)({components:{LeftAside:aa,MainContainer:ra,NavHeader:ro,Footer:cs},setup(){const e=(0,ps.Mjh)("access_token",null),t=(0,ps.Mjh)("refresh_token",null),a=(0,ps.Mjh)("scope",null);return{access_token:e,refresh_token:t,scope:a}},mounted(){this.access_token&&this.$store.dispatch("auth/setTokenData",{access_token:this.access_token,refresh_token:this.refresh_token,scope:this.scope})}});a(52390);const fs=(0,C.A)(us,[["render",s],["__scopeId","data-v-38472707"]]);var gs=fs;function ms(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",null,[(0,n.RG)(e.$slots,"default")])}var hs=(0,n.pM)({name:"EmptyLayout"});const vs=(0,C.A)(hs,[["render",ms]]);var xs=vs;const bs={class:"mobile-layout"};function ws(e,t,a,i,o,r){const s=(0,n.g2)("MobileNav"),l=(0,n.g2)("MobileMenu"),d=(0,n.g2)("MobileMainContainer"),c=(0,n.g2)("MobileFooter");return(0,n.uX)(),(0,n.CE)(n.FK,null,[((0,n.uX)(),(0,n.Wv)(n.Im,{to:"body"},[(0,n.bF)(s),(0,n.bF)(l)])),(0,n.Lk)("div",bs,[(0,n.bF)(d,null,{default:(0,n.k6)((()=>[(0,n.RG)(e.$slots,"default",{},void 0,!0)])),_:3}),(0,n.bF)(c)])],64)}function ys(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("main",null,[(0,n.RG)(e.$slots,"default",{},void 0,!0)])}var ks=(0,n.pM)({name:"MainContainer",props:{}});a(74310);const Cs=(0,C.A)(ks,[["render",ys],["__scopeId","data-v-0c08933e"]]);var Ms=Cs;const Ls={class:"header"},As={class:"mobile-nav"},Is={class:"login-wrapper"},Ts={class:"login"},_s={key:1,class:"logged-in-user"},Es=["src","alt"],Ss={class:"players"},Fs={class:"left-side"},Ws={class:"right-side"};function js(e,t,a,i,o,r){const s=(0,n.g2)("router-link"),d=(0,n.g2)("MobileMenuModal"),c=(0,n.g2)("Button"),p=(0,n.g2)("Dropdown"),u=(0,n.g2)("Ping"),f=(0,n.g2)("LoginModal");return(0,n.uX)(),(0,n.CE)("header",null,[(0,n.Lk)("div",Ls,[(0,n.Lk)("div",As,[(0,n.Lk)("button",{class:"burger",onClick:t[0]||(t[0]=(...t)=>e.toggleMenu&&e.toggleMenu(...t))},[(0,n.Lk)("span",{class:(0,l.C4)({open:e.isOpen})},null,2),(0,n.Lk)("span",{class:(0,l.C4)({open:e.isOpen})},null,2),(0,n.Lk)("span",{class:(0,l.C4)({open:e.isOpen})},null,2)]),(0,n.bF)(s,{to:"/",class:"blox-up-text"},{default:(0,n.k6)((()=>[...t[4]||(t[4]=[(0,n.eW)("Blox",-1),(0,n.Lk)("span",null,"Up",-1)])])),_:1}),((0,n.uX)(),(0,n.Wv)(n.Im,{to:"body"},[(0,n.bF)(d,{isOpen:e.isOpen,onClose:t[1]||(t[1]=t=>e.isOpen=!1)},null,8,["isOpen"])]))]),(0,n.Lk)("div",Is,[(0,n.Lk)("div",Ts,[e.accessToken?((0,n.uX)(),(0,n.CE)("div",_s,[(0,n.Lk)("img",{src:e.user.avatar,alt:e.user.name},null,8,Es),(0,n.bF)(p,{options:e.userOptions},{default:(0,n.k6)((()=>[(0,n.Lk)("span",null,(0,l.v_)(e.user.name),1)])),_:1},8,["options"])])):((0,n.uX)(),(0,n.Wv)(c,{key:0,onClick:t[2]||(t[2]=t=>e.$store.commit("auth/SHOW_LOGIN_MODAL",!0)),style:{height:"32px",width:"80px","border-radius":"12px"}},{default:(0,n.k6)((()=>[...t[5]||(t[5]=[(0,n.eW)("Login",-1)])])),_:1}))])])]),(0,n.Lk)("div",Ss,[(0,n.Lk)("div",Fs,[(0,n.bF)(u),(0,n.Lk)("span",null,(0,l.v_)(e.$t("global.online_players")),1)]),(0,n.Lk)("div",Ws,[(0,n.Lk)("span",null,(0,l.v_)(e.globalConfig.data.onlineUsersCount?.toLocaleString()),1)]),t[6]||(t[6]=(0,n.Lk)("div",{class:"shadow"},null,-1))]),e.showLoginModal?((0,n.uX)(),(0,n.Wv)(f,{key:0,onClose:t[3]||(t[3]=t=>e.$store.commit("auth/SHOW_LOGIN_MODAL",!1)),img:"Welcome.png",name:"Welcome"})):(0,n.Q3)("",!0)])}const Xs={key:0,class:"menu"},Rs={class:"nav"},zs={class:"menu-actions"},Us={class:"dark-mode action-item"};function Ds(e,t,a,i,o,r){const s=(0,n.g2)("MobileNavMenuItem"),d=(0,n.g2)("Light"),c=(0,n.g2)("Dark"),p=(0,n.g2)("Dropdown"),u=(0,n.g2)("Vector");return e.isOpen?((0,n.uX)(),(0,n.CE)("div",Xs,[(0,n.Lk)("ul",Rs,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.navItems,(a=>((0,n.uX)(),(0,n.Wv)(s,{key:a.value,label:a.name,to:{name:a.value},active:e.$route.name==a.value,onClick:t[0]||(t[0]=t=>e.$emit("close"))},null,8,["label","to","active"])))),128))]),(0,n.Lk)("div",zs,[(0,n.Lk)("div",Us,[e.isDarkMode?((0,n.uX)(),(0,n.Wv)(d,{key:0,color:"rgb(255 255 255 / 60%)"})):((0,n.uX)(),(0,n.Wv)(c,{key:1,color:"rgb(255 255 255 / 60%)"}))]),(0,n.Lk)("div",{class:(0,l.C4)(["action-item language-dropdown",{open:e.dropdownOpened}])},[(0,n.bF)(p,{position:"right-top",modelValue:e.currentLanguage,"onUpdate:modelValue":t[1]||(t[1]=t=>e.currentLanguage=t),open:e.dropdownOpened,"onUpdate:open":t[2]||(t[2]=t=>e.dropdownOpened=t),options:e.languageOptions},{default:(0,n.k6)((()=>[e.selectedLanguageIcon?((0,n.uX)(),(0,n.Wv)((0,n.$y)(e.selectedLanguageIcon),{key:0})):(0,n.Q3)("",!0)])),_:1},8,["modelValue","open","options"])],2)]),(0,n.Lk)("div",{class:"close",onClick:t[3]||(t[3]=t=>e.$emit("close"))},[(0,n.bF)(u)])])):(0,n.Q3)("",!0)}const Bs={class:"label"};function Vs(e,t,a,i,o,r){const s=(0,n.g2)("RouterLink");return(0,n.uX)(),(0,n.CE)("li",{class:(0,l.C4)(["menu-item",{active:e.active}])},[(0,n.bF)(s,{to:e.to},{default:(0,n.k6)((()=>[(0,n.Lk)("span",Bs,(0,l.v_)(e.$t(e.label)),1)])),_:1},8,["to"])],2)}var Ps=(0,n.pM)({name:"MobileNavMenuItem",props:{active:{type:Boolean,default:!1},label:{type:String,required:!0},to:{type:[String,Object],required:!0}}});a(96022);const Os=(0,C.A)(Ps,[["render",Vs],["__scopeId","data-v-4d9e6051"]]);var Gs=Os,Qs=(0,n.pM)({name:"MobileMenuModal",props:{isOpen:{type:Boolean,default:!1}},components:{MobileNavMenuItem:Gs,Dropdown:La,Dark:ye,Light:fe,Vector:st,English:Ae,German:Re,Chinese:Je,French:Ve,Spanish:He},data(){return{isDarkMode:!0,navItems:[{name:"layout.nav.home",value:"home"},{name:"layout.nav.inventory",value:"inventory"},{name:"layout.nav.referral_program",value:"referral-program"},{name:"layout.nav.leaderboard",value:"leaderboard"}],dropdownOpened:!1,languageOptions:[{label:"English",key:"en",icon:(0,x.IJ)(Ae)},{label:"Русский",key:"ru",icon:(0,x.IJ)(Se)}],currentLanguage:"en"}},watch:{currentLanguage(e){Ra.global.locale=e},isOpen(e){e?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow="")}},computed:{selectedLanguageIcon(){return this.languageOptions.find((e=>e.key===this.currentLanguage))?.icon}},beforeUnmount(){document.documentElement.style.overflow="",document.body.style.overflow=""}});a(55225);const Hs=(0,C.A)(Qs,[["render",Ds],["__scopeId","data-v-2287ba1c"]]);var Ns=Hs;const Ks={class:"img-wrapper"},qs=["src"],Zs={class:"wrapper"},Js={class:"login-header"};function Ys(e,t,o,r,s,d){const c=(0,n.g2)("Vector");return(0,n.uX)(),(0,n.Wv)(n.Im,{to:"body"},[(0,n.Lk)("div",{class:"modal-overlay",onClick:t[2]||(t[2]=(0,i.D$)(((...t)=>e.closeModal&&e.closeModal(...t)),["self"]))},[(0,n.Lk)("div",(0,n.v6)({class:"modal",onClick:t[1]||(t[1]=(0,i.D$)((()=>{}),["stop"]))},e.$attrs),[(0,n.Lk)("div",Ks,[(0,n.RG)(e.$slots,"background-image",{},void 0,!0),e.img&&!e.$slots["background-image"]?((0,n.uX)(),(0,n.CE)("img",{key:0,src:a(50290)(`./${e.img}`),alt:"BG"},null,8,qs)):(0,n.Q3)("",!0)]),(0,n.Lk)("div",Zs,[(0,n.Lk)("div",{class:"close",onClick:t[0]||(t[0]=(...t)=>e.closeModal&&e.closeModal(...t))},[(0,n.bF)(c)]),(0,n.Lk)("div",Js,[(0,n.Lk)("h3",null,(0,l.v_)(e.name),1)]),((0,n.uX)(),(0,n.Wv)((0,n.$y)(e.state.activeComponent),{state:e.state},null,8,["state"]))])],16)])])}const $s={class:"login-input"},el={key:0,class:"errors"},tl={class:"login-input"},al={key:0,class:"errors"},il={key:1,class:"errors"},nl={class:"actions"};function ol(e,t,a,o,r,s){const l=(0,n.g2)("DangerTriangle"),d=(0,n.g2)("Button");return(0,n.uX)(),(0,n.CE)("form",{class:"login",onSubmit:t[3]||(t[3]=(0,i.D$)((t=>e.login(e.state.fields.username,e.state.fields.password)),["prevent"]))},[t[10]||(t[10]=(0,n.Lk)("p",null," We are glad to see you again. To log in, enter the username and password specified in the settings BloxUp ",-1)),(0,n.Lk)("div",$s,[t[5]||(t[5]=(0,n.Lk)("label",null,"Roblox User Name",-1)),(0,n.bo)((0,n.Lk)("input",{"onUpdate:modelValue":t[0]||(t[0]=t=>e.state.fields.username=t),type:"text",placeholder:"Enter your roblox user name"},null,512),[[i.Jo,e.state.fields.username]]),e.state.errors.loginValidation&&""===e.state.fields.username?((0,n.uX)(),(0,n.CE)("div",el,[(0,n.Lk)("i",null,[(0,n.bF)(l)]),t[4]||(t[4]=(0,n.Lk)("p",null,"Please enter your username.",-1))])):(0,n.Q3)("",!0)]),(0,n.Lk)("div",tl,[t[8]||(t[8]=(0,n.Lk)("label",null,"Password",-1)),(0,n.bo)((0,n.Lk)("input",{"onUpdate:modelValue":t[1]||(t[1]=t=>e.state.fields.password=t),type:"password",placeholder:"************"},null,512),[[i.Jo,e.state.fields.password]]),e.state.errors.loginValidation&&""===e.state.fields.password?((0,n.uX)(),(0,n.CE)("div",al,[(0,n.Lk)("i",null,[(0,n.bF)(l)]),t[6]||(t[6]=(0,n.Lk)("p",null,"Don't forget to enter your password.",-1))])):(0,n.Q3)("",!0),e.state.errors.loginForbidden?((0,n.uX)(),(0,n.CE)("div",il,[(0,n.Lk)("i",null,[(0,n.bF)(l)]),t[7]||(t[7]=(0,n.Lk)("p",null,"Incorrect credentials",-1))])):(0,n.Q3)("",!0)]),(0,n.Lk)("div",nl,[(0,n.bF)(d,{action:"submit",type:"primary",style:{width:"100%",height:"52px"}},{default:(0,n.k6)((()=>[...t[9]||(t[9]=[(0,n.eW)(" Login ",-1)])])),_:1}),(0,n.Lk)("p",{onClick:t[2]||(t[2]=t=>e.changeContent("StartRegister"))},"Registration")])],32)}var rl=(0,n.pM)({name:"LoginComponentMobile",mixins:[Ln]});a(11649);const sl=(0,C.A)(rl,[["render",ol],["__scopeId","data-v-9b5d2508"]]);var ll=sl;const dl={class:"start-register-input"},cl={key:0,class:"error-text"},pl={key:0},ul={key:1},fl={class:"check"},gl={class:"actions"};function ml(e,t,a,o,r,s){const d=(0,n.g2)("DangerTriangle"),c=(0,n.g2)("ToggleInput"),p=(0,n.g2)("TermsModalWithButton"),u=(0,n.g2)("Button");return(0,n.uX)(),(0,n.CE)("form",{class:"start-register",onSubmit:t[3]||(t[3]=(0,i.D$)(((...t)=>e.startRegister&&e.startRegister(...t)),["prevent"]))},[t[7]||(t[7]=(0,n.Lk)("p",null," By logging in, you acknowledge that you are at least 18 years of age, that any items you wager are not stolen, and that you agree to our Terms of Use. ",-1)),(0,n.Lk)("div",dl,[t[4]||(t[4]=(0,n.Lk)("label",null,"Roblox User Name",-1)),(0,n.bo)((0,n.Lk)("input",{class:(0,l.C4)({error:e.state.errors.username}),"onUpdate:modelValue":t[0]||(t[0]=t=>e.state.fields.username=t),type:"text",placeholder:"Enter your roblox user name"},null,2),[[i.Jo,e.state.fields.username]]),e.state.errors.alreadyRegistered||e.state.errors.username?((0,n.uX)(),(0,n.CE)("div",cl,[(0,n.Lk)("i",null,[(0,n.bF)(d)]),e.state.errors.alreadyRegistered?((0,n.uX)(),(0,n.CE)("p",pl," You are already registered. Please login with a password. ")):e.state.errors.username?((0,n.uX)(),(0,n.CE)("p",ul," Couldn't find a user with that name, please try again! ")):(0,n.Q3)("",!0)])):(0,n.Q3)("",!0)]),(0,n.Lk)("div",fl,[(0,n.bF)(c,{modelValue:e.state.terms_and_policy,"onUpdate:modelValue":t[1]||(t[1]=t=>e.state.terms_and_policy=t)},null,8,["modelValue"]),(0,n.Lk)("p",null,[t[5]||(t[5]=(0,n.eW)(" By checking this box you agree to our ",-1)),(0,n.bF)(p)])]),(0,n.Lk)("div",gl,[(0,n.bF)(u,{disabled:!e.state.terms_and_policy,action:"submit",type:"primary",style:{width:"100%",height:"52px"}},{default:(0,n.k6)((()=>[...t[6]||(t[6]=[(0,n.eW)(" Continue ",-1)])])),_:1},8,["disabled"]),(0,n.Lk)("p",{onClick:t[2]||(t[2]=t=>e.changeContent("LoginComponent"))},"Login with a password")])],32)}var hl=(0,n.pM)({name:"StartRegisterMobile",mixins:[Ln],props:{state:Object}});a(94212);const vl=(0,C.A)(hl,[["render",ml],["__scopeId","data-v-70c45f0e"]]);var xl=vl;const bl={class:"register-input"},wl={class:"copy-text"},yl={key:0,class:"check-error"},kl={class:"check"};function Cl(e,t,a,o,r,s){const d=(0,n.g2)("SmallCopyIcon"),c=(0,n.g2)("DangerTriangle"),p=(0,n.g2)("ToggleInput"),u=(0,n.g2)("TermsModalWithButton"),f=(0,n.g2)("Button");return(0,n.uX)(),(0,n.CE)("form",{class:"check-register",onSubmit:t[2]||(t[2]=(0,i.D$)(((...t)=>e.checkRegister&&e.checkRegister(...t)),["prevent"]))},[t[7]||(t[7]=(0,n.Lk)("p",null," By logging in, you acknowledge that you are at least 18 years of age, that any items you wager are not stolen, and that you agree to our Terms of Use. ",-1)),(0,n.Lk)("div",bl,[t[4]||(t[4]=(0,n.Lk)("p",{class:"register-text"}," Please add the following phrase to your Roblox description page ",-1)),(0,n.Lk)("div",wl,[(0,n.Lk)("p",{ref:"referralLink"},(0,l.v_)(e.state.description),513),(0,n.Lk)("i",{onClick:t[0]||(t[0]=(...t)=>e.copyDescription&&e.copyDescription(...t))},[(0,n.bF)(d)])]),e.state.errors.checkRegister?((0,n.uX)(),(0,n.CE)("div",yl,[(0,n.Lk)("i",null,[(0,n.bF)(c)]),t[3]||(t[3]=(0,n.Lk)("p",null," Your account has not been verified. Please copy the security phrase and add it to your Roblox description page. ",-1))])):(0,n.Q3)("",!0)]),(0,n.Lk)("div",kl,[(0,n.bF)(p,{modelValue:e.state.terms_and_policy,"onUpdate:modelValue":t[1]||(t[1]=t=>e.state.terms_and_policy=t)},null,8,["modelValue"]),(0,n.Lk)("p",null,[t[5]||(t[5]=(0,n.eW)(" By checking this box you agree to our ",-1)),(0,n.bF)(u)])]),(0,n.bF)(f,{disabled:!e.state.terms_and_policy,action:"submit",type:"primary",style:{width:"100%",height:"52px"}},{default:(0,n.k6)((()=>[...t[6]||(t[6]=[(0,n.eW)(" Sign up ",-1)])])),_:1},8,["disabled"])],32)}var Ml=(0,n.pM)({name:"CheckRegisterMobile",mixins:[Ln],props:{state:Object}});a(54544);const Ll=(0,C.A)(Ml,[["render",Cl],["__scopeId","data-v-e8fabb3a"]]);var Al=Ll;const Il={class:"login-input"},Tl={class:"login-input"},_l={key:0,class:"errors"},El={class:"actions"};function Sl(e,t,a,o,r,s){const l=(0,n.g2)("DangerTriangle"),d=(0,n.g2)("Button");return(0,n.uX)(),(0,n.CE)("form",{class:"login",onSubmit:t[2]||(t[2]=(0,i.D$)((t=>e.confirmRegister(e.state.fields.password,e.state.fields.passwordConfirmation)),["prevent"]))},[t[7]||(t[7]=(0,n.Lk)("p",null," We are glad to see you again. To log in, enter the username and password specified in the settings BloxUp ",-1)),(0,n.Lk)("div",Il,[t[3]||(t[3]=(0,n.Lk)("label",null,"Password",-1)),(0,n.bo)((0,n.Lk)("input",{"onUpdate:modelValue":t[0]||(t[0]=t=>e.state.fields.password=t),type:"password",placeholder:"************"},null,512),[[i.Jo,e.state.fields.password]])]),(0,n.Lk)("div",Tl,[t[5]||(t[5]=(0,n.Lk)("label",null,"Confirm password",-1)),(0,n.bo)((0,n.Lk)("input",{"onUpdate:modelValue":t[1]||(t[1]=t=>e.state.fields.passwordConfirmation=t),type:"password",placeholder:"************"},null,512),[[i.Jo,e.state.fields.passwordConfirmation]]),e.state.errors.confirmRegister?((0,n.uX)(),(0,n.CE)("div",_l,[(0,n.Lk)("i",null,[(0,n.bF)(l)]),t[4]||(t[4]=(0,n.Lk)("p",null,"Passwords do not match.",-1))])):(0,n.Q3)("",!0)]),(0,n.Lk)("div",El,[(0,n.bF)(d,{action:"submit",type:"primary",style:{width:"100%",height:"52px"}},{default:(0,n.k6)((()=>[...t[6]||(t[6]=[(0,n.eW)(" Sign up ",-1)])])),_:1})])],32)}var Fl=(0,n.pM)({name:"ConfirmRegisterMobile",mixins:[Ln]});a(85462);const Wl=(0,C.A)(Fl,[["render",Sl],["__scopeId","data-v-aa993106"]]);var jl=Wl,Xl=(0,n.pM)({name:"LoginModalMobile",components:{LoginComponent:ll,StartRegister:xl,CheckRegister:Al,ConfirmRegister:jl},props:{name:{type:String,required:!0},img:{type:String,required:!0}},mixins:[Ln],mounted(){this.changeContent("LoginComponent"),this.state.fields={...Cn},this.state.errors={...Mn}}});a(20199);const Rl=(0,C.A)(Xl,[["render",Ys],["__scopeId","data-v-7767f72f"]]);var zl=Rl,Ul=(0,n.pM)({name:"MobileNav",props:{},components:{MobileMenuModal:Ns,Button:Ea,Ping:te,Dropdown:La,LoginModal:zl},data(){return{isOpen:!1,userOptions:[{label:"Logout",key:"logout",onClick:this.logout}]}},computed:{showLoginModal(){return this.$store.getters["auth/showLoginModal"]},accessToken(){return this.$store.state.auth.tokenData.access_token},user(){return this.$store.state.auth.user},globalConfig(){return this.$store.getters["global/data"]}},methods:{connectRoblox:Ii.connectRoblox.bind(Ii),toggleMenu(){this.isOpen=!this.isOpen},...(0,Sa.i0)({logout:"auth/logout"})}});a(60752);const Dl=(0,C.A)(Ul,[["render",js],["__scopeId","data-v-022a710e"]]);var Bl=Dl;const Vl={class:"mobile-menu"};function Pl(e,t,a,i,o,r){const s=(0,n.g2)("MobileMenuItem");return(0,n.uX)(),(0,n.CE)("div",Vl,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.menuItems,(e=>((0,n.uX)(),(0,n.Wv)(s,{key:e.name,label:e.name,icon:e.icon,to:e.to},null,8,["label","icon","to"])))),128))])}const Ol={class:"mobile-menu-item"};function Gl(e,t,a,i,o,r){const s=(0,n.g2)("RouterLink");return(0,n.uX)(),(0,n.Wv)(s,{to:e.to},{default:(0,n.k6)((()=>[(0,n.Lk)("div",Ol,[((0,n.uX)(),(0,n.Wv)((0,n.$y)(e.icon),{color:"#ffffff99"})),(0,n.Lk)("span",null,(0,l.v_)(e.label),1)])])),_:1},8,["to"])}var Ql=(0,n.pM)({name:"MobileMenuItem",props:{label:String,icon:{type:Object,required:!0},to:{type:[String,Object],required:!0}},components:{RouterLink:y.Wk},computed:{},methods:{}});a(43996);const Hl=(0,C.A)(Ql,[["render",Gl],["__scopeId","data-v-2118953d"]]);var Nl=Hl,Kl=(0,n.pM)({name:"MobileMenu",props:{},components:{MobileMenuItem:Nl},data(){return{menuItems:[{name:"Coin Flip",value:qt.CoinFlip,icon:(0,x.IJ)(S),to:{name:qt.CoinFlip,params:{gameSlug:Zt.PS99}}},{name:"Wheel of Fortune",value:qt.WheelOfFortune,icon:(0,x.IJ)(U),to:{name:"wheel-of-fortune.rounds",params:{gameSlug:Zt.PS99}}},{name:"Giveaways",value:"giveaways",icon:(0,x.IJ)(G),to:{name:"giveaways"}},{name:"Game History",value:"game-history",icon:(0,x.IJ)(Z),to:{name:"game-history"}}]}},computed:{},methods:{}});a(35807);const ql=(0,C.A)(Kl,[["render",Pl],["__scopeId","data-v-ebba39de"]]);var Zl=ql;const Jl={class:"chat"};function Yl(e,t,a,i,o,r){const s=(0,n.g2)("Message"),l=(0,n.g2)("Button"),d=(0,n.g2)("Chat"),c=(0,n.g2)("GradientList");return(0,n.uX)(),(0,n.CE)("footer",null,[(0,n.Lk)("div",Jl,[(0,n.bF)(l,{onClick:t[0]||(t[0]=t=>e.isChatOpen=!0),type:"primary",style:{width:"44px"}},{default:(0,n.k6)((()=>[(0,n.bF)(s)])),_:1}),(0,n.bF)(d,{"is-open":e.isChatOpen,isMobile:"",onClose:t[1]||(t[1]=t=>e.isChatOpen=!1)},null,8,["is-open"])]),(0,n.bF)(c)])}const $l={class:"header"},ed={class:"top"},td={class:"chat-tabs"},ad={class:"user-count"},id={class:"user"},nd=["id"];function od(e,t,a,o,r,s){const d=(0,n.g2)("Giveaway"),c=(0,n.g2)("Slider"),p=(0,n.g2)("Tabs"),u=(0,n.g2)("UserIcon"),f=(0,n.g2)("Arrow"),g=(0,n.g2)("GlobalChat");return(0,n.uX)(),(0,n.Wv)(n.Im,{to:"body"},[(0,n.Lk)("div",{style:(0,l.Tr)({display:e.isOpen?"flex":"none"}),class:"chat-panel"},[e.giveaways.data.length?((0,n.uX)(),(0,n.Wv)(c,{key:0,autoplay:3e3,items:e.giveaways.data,"item-key-prop":"id"},{slide:(0,n.k6)((({item:e})=>[(0,n.bF)(d,{giveaway:e},null,8,["giveaway"])])),_:1},8,["items"])):(0,n.Q3)("",!0),(0,n.Lk)("div",$l,[(0,n.Lk)("div",ed,[(0,n.Lk)("div",td,[(0,n.bF)(p,{tabs:e.chatTabs},null,8,["tabs"])]),(0,n.Lk)("div",ad,[(0,n.Lk)("div",id,[(0,n.bF)(u),(0,n.eW)(" "+(0,l.v_)(e.globalConfig.data.onlineUsersCount?.toLocaleString()),1)]),(0,n.Lk)("div",{class:"arrow",onClick:t[0]||(t[0]=t=>e.$emit("close"))},[(0,n.bF)(f,{style:{transform:"rotate(90deg)"}})])])])]),"global"==e.activeTab?((0,n.uX)(),(0,n.Wv)(g,{key:1,"is-open":e.isOpen},null,8,["is-open"])):(0,n.Q3)("",!0),(0,n.bo)((0,n.Lk)("div",{id:`tawk_${e.TAWK_ID}`},null,8,nd),[[i.aG,"system"==e.activeTab]])],4)])}const rd={class:"giveaway"},sd={class:"wrapper"},ld={key:0,class:"user-side"},dd={class:"avatar winner"},cd=["src","alt"],pd=["src"];function ud(e,t,a,i,o,r){const s=(0,n.g2)("Time"),d=(0,n.g2)("Button");return(0,n.uX)(),(0,n.CE)("div",rd,[(0,n.Lk)("div",sd,[(0,n.Lk)("h3",null,(0,l.v_)(e.giveaway.name),1),e.giveaway.winner?.user?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.Wv)(s,{key:0,endDate:e.endDate},null,8,["endDate"]))]),e.giveaway.winner?.user?((0,n.uX)(),(0,n.CE)("div",ld,[(0,n.Lk)("div",(0,n.v6)({class:"avatar-wrapper"},e.$attrs),[(0,n.Lk)("div",dd,[(0,n.Lk)("img",{src:e.giveaway.winner.user.avatar,alt:e.giveaway.winner.user.name},null,8,cd),t[1]||(t[1]=(0,n.Lk)("div",{class:"winner"},[(0,n.Lk)("span",null," WINNER ")],-1))])],16),(0,n.Lk)("p",null,(0,l.v_)(e.giveaway.winner?.user.name),1)])):((0,n.uX)(),(0,n.Wv)(d,{key:1,type:"primary__white",style:{width:"156px","letter-spacing":"-0.4px"},disabled:e.giveaway.is_participant,onClick:t[0]||(t[0]=t=>e.$router.push({name:"giveaways"}))},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.buttonText),1)])),_:1},8,["disabled"])),(0,n.Lk)("img",{class:"hover-image",src:e.giveaway.item.thumbnail,alt:"img"},null,8,pd)])}const fd={class:"time"},gd={class:"number"},md={class:"number"},hd={class:"number"};function vd(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",fd,[(0,n.Lk)("div",gd,(0,l.v_)(e.hours),1),t[0]||(t[0]=(0,n.Lk)("div",{class:"dot"},":",-1)),(0,n.Lk)("div",md,(0,l.v_)(e.minutes),1),t[1]||(t[1]=(0,n.Lk)("div",{class:"dot"},":",-1)),(0,n.Lk)("div",hd,(0,l.v_)(e.seconds),1)])}var xd=(0,n.pM)({name:"TimeComponent",mixins:[Jr]});a(87919);const bd=(0,C.A)(xd,[["render",vd],["__scopeId","data-v-74c862ae"]]);var wd=bd,yd=(0,n.pM)({name:"GiveawayItem",components:{Time:wd},mixins:[ts]});a(22020);const kd=(0,C.A)(yd,[["render",ud],["__scopeId","data-v-fe53cd12"]]);var Cd=kd,Md=(0,n.pM)({name:"ChatMobile",mixins:[Ur],components:{Giveaway:Cd}});a(7121);const Ld=(0,C.A)(Md,[["render",od],["__scopeId","data-v-36c171a9"]]);var Ad=Ld,Id=(0,n.pM)({name:"MobileFooterComponent",components:{GradientList:fo,Button:Ea,Message:at,Chat:Ad},data(){return{isChatOpen:!1}}});a(38189);const Td=(0,C.A)(Id,[["render",Yl],["__scopeId","data-v-3dfe23e9"]]);var _d=Td;function Ed(){const e=(0,x.KR)(window.innerHeight);function t(){e.value=window.innerHeight,document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px")}return(0,n.sV)((()=>{t(),window.addEventListener("resize",t),window.addEventListener("orientationchange",t)})),(0,n.hi)((()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)})),{vh:e}}var Sd=(0,n.pM)({components:{MobileMainContainer:Ms,MobileNav:Bl,MobileMenu:Zl,MobileFooter:_d},setup(){const e=(0,ps.Mjh)("access_token",null),t=(0,ps.Mjh)("refresh_token",null),a=(0,ps.Mjh)("scope",null),{vh:i}=Ed();return{access_token:e,refresh_token:t,scope:a,vh:i}},mounted(){this.access_token&&this.$store.dispatch("auth/setTokenData",{access_token:this.access_token,refresh_token:this.refresh_token,scope:this.scope})}});a(77683);const Fd=(0,C.A)(Sd,[["render",ws],["__scopeId","data-v-10f6db3d"]]);var Wd=Fd;const jd={from:768,to:950},Xd={from:0,to:768};function Rd(){const e=(0,x.KR)(window.innerWidth>jd.from&&window.innerWidth<=jd.to),t=(0,x.KR)(window.innerWidth>Xd.from&&window.innerWidth<=Xd.to),a=()=>{e.value=window.innerWidth>jd.from&&window.innerWidth<=jd.to,t.value=window.innerWidth>Xd.from&&window.innerWidth<=Xd.to};return(0,n.sV)((()=>{window.addEventListener("resize",a),a()})),(0,n.hi)((()=>{window.removeEventListener("resize",a)})),{isTablet:e,isMobile:t}}class zd{constructor(e){(0,za.A)(this,"socket",void 0),(0,za.A)(this,"store",Li),(0,za.A)(this,"onGiveawayCreated",this.giveawayCreated.bind(this)),(0,za.A)(this,"onGiveawayUpdated",this.giveawayUpdated.bind(this)),this.socket=e,this.handleEvents()}handleEvents(){this.socket.on("giveaway:created",this.onGiveawayCreated),this.socket.on("giveaway:updated",this.onGiveawayUpdated)}destroy(){this.socket.off("giveaway:created",this.onGiveawayCreated),this.socket.off("giveaway:updated",this.onGiveawayUpdated)}giveawayCreated(e){this.store.commit("giveaways/ADD",e)}giveawayUpdated(e){this.store.commit("giveaways/UPDATE",e)}}class Ud{constructor(e){(0,za.A)(this,"socket",void 0),(0,za.A)(this,"store",Li),(0,za.A)(this,"onTotalBetsUpdated",this.totalBetsUpdated.bind(this)),this.socket=e,this.handleEvents()}handleEvents(){this.socket.on("statistic:updated",this.onTotalBetsUpdated)}destroy(){this.socket.off("statistic:updated",this.onTotalBetsUpdated)}totalBetsUpdated(e){this.store.commit("global/UPDATE_STATISTIC",e)}}var Dd=(0,n.pM)({name:"App",components:{DefaultLayout:gs,EmptyLayout:xs,MobileLayout:Wd},setup(){const{isTablet:e,isMobile:t}=Rd(),a=(0,ps.Mjh)("user",null),i=(0,ps.Mjh)("access_token",null),n=(0,x.KR)(!1);return{isTablet:e,isMobile:t,isFetchingProfile:n,userProfile:a.value?JSON.parse(a.value):null,accessToken:i}},watch:{isMobileOrTablet:{handler(e){this.fixAsideWidth(e)},immediate:!0},async"$store.state.auth.tokenData.access_token"(e){if(e&&!this.isFetchingProfile&&!this.$store.getters["auth/user"].id){const e=this.getAuthUser();this.$store.commit("auth/SET_FETCHING_PROFILE",e),await e,this.$privateSocket.connect()}}},computed:{isMobileOrTablet(){return this.isMobile||this.isTablet},games(){return this.$store.getters["games/data"]},layout(){return"callback"===this.$route.name?"EmptyLayout":this.isMobileOrTablet?"MobileLayout":"DefaultLayout"}},async mounted(){await this.$store.dispatch("global/getConfigs"),await this.$store.dispatch("games/getGames"),this.fixAsideWidth(this.isMobileOrTablet),this.$publicSocket.on("connect",(()=>{console.log("🔌 publicSocket Connected")})),this.$privateSocket.on("connect",(()=>{console.log("🔌 privateSocket Connected")})),this.$publicSocket.on("newGlobalChatMessage",(e=>{this.$store.commit("global/ADD_MESSAGE",e)})),this.$privateSocket.on("chat:error",(e=>{console.log("chat:error"),this.$store.commit("global/ADD_CHAT_ERROR",e)})),this.$publicSocket.on("onlineUsersCount",(e=>{this.$store.commit("global/UPDATE_ONLINE_USERS_COUNT",e.count)})),this.$nextTick((()=>{this.$publicSocket.emit("joinGiveaway"),this.$publicSocket.emit("joinGlobal")})),new zd(this.$publicSocket),new Ud(this.$publicSocket)},beforeUnmount(){this.$publicSocket.emit("leaveGiveaway"),this.$publicSocket.emit("leaveGlobal"),this.$publicSocket.disconnect(),this.$privateSocket.disconnect()},methods:{async getAuthUser(){if(this.isFetchingProfile=!0,this.accessToken)try{const{data:{data:e}}=await Ba.getUserInfo();this.$store.dispatch("auth/setUser",e),this.userProfile=JSON.stringify(e)}catch(e){console.error(e)}this.isFetchingProfile=!1},fixAsideWidth(e){e?document.documentElement.style.setProperty("--left-aside-width","0px"):document.documentElement.style.setProperty("--left-aside-width","214px")}}});a(83370);const Bd=(0,C.A)(Dd,[["render",o]]);var Vd=Bd,Pd=a(94458);function Od(e,t,a,i,o,r){const s=(0,n.g2)("Header"),d=(0,n.g2)("Giveaways"),c=(0,n.g2)("Games"),p=(0,n.g2)("LiveWinners"),u=(0,n.g2)("MobileHeader"),f=(0,n.g2)("MobileGiveaways"),g=(0,n.g2)("MobileGames"),m=(0,n.g2)("MobileLiveWinners");return(0,n.uX)(),(0,n.CE)("div",{class:(0,l.C4)(["home",{mobile:e.isMobile}])},[e.isMobile?((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[(0,n.bF)(u),(0,n.bF)(f),(0,n.bF)(g),(0,n.bF)(m)],64)):((0,n.uX)(),(0,n.CE)(n.FK,{key:0},[(0,n.bF)(s),(0,n.bF)(d),(0,n.bF)(c),(0,n.bF)(p)],64))],2)}(0,Pd.k)("/service-worker.js",{ready(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},registered(){console.log("Service worker has been registered.")},cached(){console.log("Content has been cached for offline use.")},updatefound(){console.log("New content is downloading.")},updated(){console.log("New content is available; please refresh.")},offline(){console.log("No internet connection found. App is running in offline mode.")},error(e){console.error("Error during service worker registration:",e)}});var Gd=a(80767);const Qd={class:"header"},Hd={class:"left-side"},Nd={class:"content"};function Kd(e,t,a,i,o,r){const s=(0,n.g2)("Button");return(0,n.uX)(),(0,n.CE)("section",Qd,[(0,n.Lk)("div",Hd,[t[1]||(t[1]=(0,n.Lk)("div",{class:"background-gradient"},null,-1)),(0,n.Lk)("div",Nd,[(0,n.Lk)("h2",null,(0,l.v_)(e.$t("pages.home.banner.title")),1),(0,n.Lk)("p",null,(0,l.v_)(e.$t("pages.home.banner.subtitle")),1),(0,n.bF)(s,{type:"primary__white",onClick:t[0]||(t[0]=t=>e.$router.push({name:"coin-flip",params:{gameSlug:e.GameSlug.PS99}}))},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("pages.home.banner.button_text")),1)])),_:1})])]),t[2]||(t[2]=(0,n.Lk)("div",{class:"slider"},[(0,n.Lk)("img",{src:Gd,alt:"Slide"}),(0,n.Lk)("div",{class:"shadow"})],-1))])}var qd=(0,n.pM)({name:"HeaderSection",components:{Button:Ea},data(){return{GameSlug:Zt}}});a(66406);const Zd=(0,C.A)(qd,[["render",Kd],["__scopeId","data-v-cd9feb0e"]]);var Jd=Zd;const Yd={key:0,class:"games-tabs"},$d={key:0,class:"giveaways"},ec={key:1};function tc(e,t,a,i,o,r){const s=(0,n.g2)("Tabs"),l=(0,n.g2)("Giveaway"),d=(0,n.g2)("DotsLoader"),c=(0,n.g2)("Section");return(0,n.uX)(),(0,n.Wv)(c,{label:e.$t("pages.home.giveaways.title")},{"top-button":(0,n.k6)((()=>[e.games.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",Yd,[(0,n.bF)(s,{tabs:e.tabs},null,8,["tabs"])]))])),default:(0,n.k6)((()=>[e.giveaways.loading?((0,n.uX)(),(0,n.CE)("div",ec,[(0,n.bF)(d)])):((0,n.uX)(),(0,n.CE)("div",$d,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.giveaways.data,(e=>((0,n.uX)(),(0,n.Wv)(l,{giveaway:e,key:e.id},null,8,["giveaway"])))),128))]))])),_:1},8,["label"])}const ac={class:"top"};function ic(e,t,a,i,o,r){const s=(0,n.g2)("Ping");return(0,n.uX)(),(0,n.CE)("section",null,[(0,n.Lk)("div",ac,[(0,n.Lk)("h2",null,[(0,n.eW)((0,l.v_)(e.label)+" ",1),e.usePing?((0,n.uX)(),(0,n.Wv)(s,{key:0})):(0,n.Q3)("",!0)]),(0,n.RG)(e.$slots,"top-button",{},void 0,!0)]),(0,n.RG)(e.$slots,"default",{},void 0,!0)])}var nc=(0,n.pM)({name:"SectionComponent",props:{label:{type:String,required:!0},usePing:Boolean},components:{Ping:te}});a(58645);const oc=(0,C.A)(nc,[["render",ic],["__scopeId","data-v-1aa175d3"]]);var rc=oc,sc=(a(61701),(0,n.pM)({components:{Tabs:_o,DotsLoader:Fi},data(){return{tabs:[]}},watch:{async activeTab(e){await this.getGiveaways(e.value)}},computed:{activeTab(){return this.tabs.find((e=>e.active))},giveaways(){return this.$store.getters["giveaways/data"]},games(){return this.$store.getters["games/data"]}},async mounted(){this.setTabs()},methods:{async getGiveaways(e){await this.$store.dispatch("giveaways/getGiveaways",{game_slug:e,status:Jt.STARTED})},setTabs(){this.tabs=this.games.data.map((e=>({active:!1,disabled:!1,label:e.name,value:e.slug}))),this.tabs.push({active:!0,disabled:!1,label:"global.all",value:"all"})}}})),lc=(0,n.pM)({name:"GiveawaysSection",components:{Giveaway:ns,Section:rc},mixins:[sc]});a(16804);const dc=(0,C.A)(lc,[["render",tc],["__scopeId","data-v-5ae03ff2"]]);var cc=dc;const pc={class:"games"};function uc(e,t,a,i,o,r){const s=(0,n.g2)("Tabs"),l=(0,n.g2)("CasinoGamesStatistic"),d=(0,n.g2)("Section");return(0,n.uX)(),(0,n.Wv)(d,{label:e.$t("pages.home.games.title")},{"top-button":(0,n.k6)((()=>[(0,n.bF)(s,{tabs:e.tabs},null,8,["tabs"])])),default:(0,n.k6)((()=>[(0,n.Lk)("div",pc,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.casinoGamesStatistics.data,(e=>((0,n.uX)(),(0,n.Wv)(l,{casinoGamesStatistic:e,key:e.casino_game_id},null,8,["casinoGamesStatistic"])))),128))])])),_:1},8,["label"])}const fc={class:"wrapper"},gc={class:"beige-wrapper"};function mc(e,t,i,o,r,s){const d=(0,n.g2)("Beige");return(0,n.uX)(),(0,n.CE)("div",{class:"game",style:(0,l.Tr)({backgroundImage:`url(${a(64311)(`./${e.casinoGamesStatistic.casino_game_slug}/statistic-background.png`)})`})},[(0,n.Lk)("div",fc,[(0,n.Lk)("h3",null,(0,l.v_)(e.casinoGamesStatistic.casino_game_name),1),(0,n.Lk)("div",gc,[(0,n.bF)(d,{value:e.casinoGamesStatistic.onlinePlayersCount,title:e.$t("global.online_players")},null,8,["value","title"]),(0,n.bF)(d,{value:e.casinoGamesStatistic.totalBetsCount,title:e.$t("global.total_bets")},null,8,["value","title"])])]),t[0]||(t[0]=(0,n.Lk)("div",{class:"shadow"},null,-1))],4)}const hc={class:"beige"},vc={class:"value"},xc={class:"title"};function bc(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",hc,[(0,n.Lk)("div",vc,(0,l.v_)(e.value),1),(0,n.Lk)("div",xc,(0,l.v_)(e.title),1)])}var wc=(0,n.pM)({name:"BeigeComponent",props:{title:{type:String},value:{type:Number}}});a(35531);const yc=(0,C.A)(wc,[["render",bc],["__scopeId","data-v-f79d44ce"]]);var kc=yc,Cc=(0,n.pM)({name:"CasinoGamesStatistic",props:{casinoGamesStatistic:{type:Object,required:!0}},components:{Beige:kc}});a(37401);const Mc=(0,C.A)(Cc,[["render",mc],["__scopeId","data-v-b4cc243e"]]);var Lc=Mc,Ac=(0,n.pM)({components:{Tabs:_o,DotsLoader:Fi},data(){return{tabs:[]}},watch:{async activeTab(e){await this.getCasinoGameStatistics(e.value)}},computed:{activeTab(){return this.tabs.find((e=>e.active))},casinoGamesStatistics(){return this.$store.getters["global/casinoGameStatistics"]},games(){return this.$store.getters["games/data"]}},async mounted(){this.setTabs()},methods:{async getCasinoGameStatistics(e){await this.$store.dispatch("global/getCasinoGameStatistics",{game_slug:e})},setTabs(){this.tabs=this.games.data.map(((e,t)=>({active:0===t,disabled:!1,label:e.name,value:e.slug})))}}}),Ic=(0,n.pM)({name:"CasinoGamesStatistics",components:{Tabs:_o,CasinoGamesStatistic:Lc,Section:rc},mixins:[Ac]});a(62282);const Tc=(0,C.A)(Ic,[["render",uc],["__scopeId","data-v-6456aa1e"]]);var _c=Tc;const Ec={key:0,class:"live-winners"};function Sc(e,t,a,i,o,r){const s=(0,n.g2)("LiveWinner"),l=(0,n.g2)("Section");return(0,n.uX)(),(0,n.Wv)(l,{label:e.$t("pages.home.live_winners"),"use-ping":""},{default:(0,n.k6)((()=>[e.liveWinners.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",Ec,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.liveWinners.data,(e=>((0,n.uX)(),(0,n.Wv)(s,{liveWinner:e,key:e.id},null,8,["liveWinner"])))),128))]))])),_:1},8,["label"])}const Fc={class:"live-winner"},Wc={class:"wrapper"},jc={class:"beige"},Xc=["src"],Rc={class:"beige"},zc={class:"gold"},Uc=["src"];function Dc(e,t,a,i,o,r){const s=(0,n.g2)("Gold"),d=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",Fc,[(0,n.Lk)("h3",null,(0,l.v_)(e.liveWinner.casino_game_name),1),(0,n.Lk)("div",Wc,[(0,n.Lk)("div",jc,[(0,n.Lk)("img",{src:e.liveWinner.user.avatar,alt:"Avatar"},null,8,Xc),(0,n.Lk)("span",null,(0,l.v_)(e.liveWinner.user.name),1)]),(0,n.Lk)("div",Rc,[(0,n.bF)(s),(0,n.bo)((0,n.Lk)("span",zc,null,512),[[d,e.liveWinner.max_win_price_item]])])]),(0,n.Lk)("img",{src:e.liveWinner.thumbnail,alt:"img"},null,8,Uc),t[0]||(t[0]=(0,n.Lk)("div",{class:"shadow"},null,-1))])}const Bc={width:"28",height:"25",viewBox:"0 0 28 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Vc(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("svg",Bc,[...t[0]||(t[0]=[(0,n.Fv)('',7)])])}var Pc=(0,n.pM)({name:"GoldIcon"});const Oc=(0,C.A)(Pc,[["render",Vc]]);var Gc=Oc,Qc=(0,n.pM)({name:"liveWinnerItem",props:{liveWinner:{type:Object,required:!0}},components:{Gold:Gc}});a(4023);const Hc=(0,C.A)(Qc,[["render",Dc],["__scopeId","data-v-a55cf72c"]]);var Nc=Hc,Kc=(0,n.pM)({name:"LiveWinnersSection",computed:{liveWinners(){return this.$store.getters["global/liveWinners"]}},mounted(){this.$store.dispatch("global/getLiveWinners")}}),qc=(0,n.pM)({name:"LiveWinnersSection",components:{LiveWinner:Nc,Section:rc},mixins:[Kc]});a(24584);const Zc=(0,C.A)(qc,[["render",Sc],["__scopeId","data-v-e5ecb332"]]);var Jc=Zc;const Yc={class:"header"},$c={class:"left-side"},ep={class:"content"};function tp(e,t,a,i,o,r){const s=(0,n.g2)("Button");return(0,n.uX)(),(0,n.CE)("section",Yc,[(0,n.Lk)("div",$c,[t[4]||(t[4]=(0,n.Lk)("div",{class:"background-gradient"},null,-1)),(0,n.Lk)("div",ep,[t[2]||(t[2]=(0,n.Lk)("h2",null,"Welcome to BloxUp",-1)),t[3]||(t[3]=(0,n.Lk)("p",null,"Grow your inventory with us!",-1)),(0,n.bF)(s,{type:"primary__white",onClick:t[0]||(t[0]=t=>e.$router.push({name:"coin-flip",params:{gameSlug:e.GameSlug.PS99}}))},{default:(0,n.k6)((()=>[...t[1]||(t[1]=[(0,n.eW)("Play Now",-1)])])),_:1})])]),t[5]||(t[5]=(0,n.Lk)("div",{class:"slider"},[(0,n.Lk)("img",{src:Gd,alt:"Slide"}),(0,n.Lk)("div",{class:"shadow"})],-1))])}var ap=(0,n.pM)({name:"HeaderSection",components:{Button:Ea},data(){return{GameSlug:Zt}}});a(4649);const ip=(0,C.A)(ap,[["render",tp],["__scopeId","data-v-b33d34f2"]]);var np=ip;const op={key:0,class:"games-tabs"},rp={key:0,class:"giveaways"},sp={key:1};function lp(e,t,a,i,o,r){const s=(0,n.g2)("Tabs"),l=(0,n.g2)("Giveaway"),d=(0,n.g2)("DotsLoader"),c=(0,n.g2)("Section");return(0,n.uX)(),(0,n.Wv)(c,{label:e.$t("pages.home.giveaways.title")},{"top-button":(0,n.k6)((()=>[e.games.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",op,[(0,n.bF)(s,{tabs:e.tabs},null,8,["tabs"])]))])),default:(0,n.k6)((()=>[e.giveaways.loading?((0,n.uX)(),(0,n.CE)("div",sp,[(0,n.bF)(d)])):((0,n.uX)(),(0,n.CE)("div",rp,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.giveaways.data,(e=>((0,n.uX)(),(0,n.Wv)(l,{giveaway:e,key:e.id},null,8,["giveaway"])))),128))]))])),_:1},8,["label"])}const dp={class:"top"};function cp(e,t,a,i,o,r){const s=(0,n.g2)("Ping");return(0,n.uX)(),(0,n.CE)("section",null,[(0,n.Lk)("div",dp,[(0,n.Lk)("h2",null,[(0,n.eW)((0,l.v_)(e.label)+" ",1),e.usePing?((0,n.uX)(),(0,n.Wv)(s,{key:0})):(0,n.Q3)("",!0)]),(0,n.RG)(e.$slots,"top-button",{},void 0,!0)]),(0,n.RG)(e.$slots,"default",{},void 0,!0)])}var pp=(0,n.pM)({name:"SectionComponent",props:{label:{type:String,required:!0},usePing:Boolean},components:{Ping:te}});a(71322);const up=(0,C.A)(pp,[["render",cp],["__scopeId","data-v-66626664"]]);var fp=up,gp=(0,n.pM)({name:"GiveawaysSection",components:{Giveaway:Cd,Section:fp},mixins:[sc]});a(94869);const mp=(0,C.A)(gp,[["render",lp],["__scopeId","data-v-e1c48daa"]]);var hp=mp;const vp={class:"games"};function xp(e,t,a,i,o,r){const s=(0,n.g2)("Tabs"),l=(0,n.g2)("CasinoGamesStatistic"),d=(0,n.g2)("Section");return(0,n.uX)(),(0,n.Wv)(d,{label:e.$t("pages.home.games.title")},{"top-button":(0,n.k6)((()=>[(0,n.bF)(s,{tabs:e.tabs},null,8,["tabs"])])),default:(0,n.k6)((()=>[(0,n.Lk)("div",vp,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.casinoGamesStatistics.data,(e=>((0,n.uX)(),(0,n.Wv)(l,{casinoGamesStatistic:e,key:e.casino_game_id},null,8,["casinoGamesStatistic"])))),128))])])),_:1},8,["label"])}const bp={class:"wrapper"},wp={class:"beige-wrapper"};function yp(e,t,i,o,r,s){const d=(0,n.g2)("Beige");return(0,n.uX)(),(0,n.CE)("div",{class:"game",style:(0,l.Tr)({backgroundImage:`url(${a(64311)(`./${e.casinoGamesStatistic.casino_game_slug}/statistic-background.png`)})`})},[(0,n.Lk)("div",bp,[(0,n.Lk)("h3",null,(0,l.v_)(e.casinoGamesStatistic.casino_game_name),1),(0,n.Lk)("div",wp,[(0,n.bF)(d,{value:e.casinoGamesStatistic.onlinePlayersCount,title:e.$t("global.online_players")},null,8,["value","title"]),(0,n.bF)(d,{value:e.casinoGamesStatistic.totalBetsCount,title:e.$t("global.total_bets")},null,8,["value","title"])])]),t[0]||(t[0]=(0,n.Lk)("div",{class:"shadow"},null,-1))],4)}const kp={class:"beige"},Cp={class:"title"},Mp={class:"value"};function Lp(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",kp,[(0,n.Lk)("div",Cp,(0,l.v_)(e.title),1),(0,n.Lk)("div",Mp,(0,l.v_)(e.value),1)])}var Ap=(0,n.pM)({name:"BeigeComponent",props:{title:{type:String},value:{type:Number}}});a(57205);const Ip=(0,C.A)(Ap,[["render",Lp],["__scopeId","data-v-404467a4"]]);var Tp=Ip,_p=(0,n.pM)({name:"CasinoGamesStatistic",props:{casinoGamesStatistic:{type:Object,required:!0}},components:{Beige:Tp}});a(80336);const Ep=(0,C.A)(_p,[["render",yp],["__scopeId","data-v-34b7e903"]]);var Sp=Ep,Fp=(0,n.pM)({name:"CasinoGamesStatistics",components:{Tabs:_o,CasinoGamesStatistic:Sp,Section:fp},mixins:[Ac]});a(81991);const Wp=(0,C.A)(Fp,[["render",xp],["__scopeId","data-v-48e916ad"]]);var jp=Wp;const Xp={key:0,class:"live-winners"};function Rp(e,t,a,i,o,r){const s=(0,n.g2)("LiveWinner"),l=(0,n.g2)("Section");return(0,n.uX)(),(0,n.Wv)(l,{label:e.$t("pages.home.live_winners"),"use-ping":""},{default:(0,n.k6)((()=>[e.liveWinners.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",Xp,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.liveWinners.data,(e=>((0,n.uX)(),(0,n.Wv)(s,{liveWinner:e,key:e.id},null,8,["liveWinner"])))),128))]))])),_:1},8,["label"])}const zp={class:"live-winner"},Up={class:"wrapper"},Dp={class:"beige"},Bp=["src"],Vp={class:"beige"},Pp={class:"gold"},Op=["src"];function Gp(e,t,a,i,o,r){const s=(0,n.g2)("Gold"),d=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",zp,[(0,n.Lk)("h3",null,(0,l.v_)(e.liveWinner.casino_game_name),1),(0,n.Lk)("div",Up,[(0,n.Lk)("div",Dp,[(0,n.Lk)("img",{src:e.liveWinner.user.avatar,alt:"Avatar"},null,8,Bp),(0,n.Lk)("span",null,(0,l.v_)(e.liveWinner.user.name),1)]),(0,n.Lk)("div",Vp,[(0,n.bF)(s),(0,n.bo)((0,n.Lk)("span",Pp,null,512),[[d,e.liveWinner.max_win_price_item]])])]),(0,n.Lk)("img",{src:e.liveWinner.thumbnail,alt:"img"},null,8,Op),t[0]||(t[0]=(0,n.Lk)("div",{class:"shadow"},null,-1))])}var Qp=(0,n.pM)({name:"liveWinnerItem",props:{liveWinner:{type:Object,required:!0}},components:{Gold:Gc}});a(88400);const Hp=(0,C.A)(Qp,[["render",Gp],["__scopeId","data-v-b5cc000e"]]);var Np=Hp,Kp=(0,n.pM)({name:"LiveWinnersSection",components:{LiveWinner:Np,Section:fp},mixins:[Kc]});a(18488);const qp=(0,C.A)(Kp,[["render",Rp],["__scopeId","data-v-47ec7a78"]]);var Zp=qp,Jp=(0,n.pM)({name:"HomeView",components:{Header:Jd,Giveaways:cc,Games:_c,LiveWinners:Jc,MobileHeader:np,MobileGiveaways:hp,MobileGames:jp,MobileLiveWinners:Zp},setup(){const{isMobile:e,isTablet:t}=Rd();return{isMobile:e,isTablet:t}}});a(17052);const Yp=(0,C.A)(Jp,[["render",Od],["__scopeId","data-v-706a34aa"]]);var $p=Yp;const eu={class:"inventory"};function tu(e,t,a,i,o,r){const s=(0,n.g2)("InventoryMobile"),l=(0,n.g2)("InventoryDesktop");return(0,n.uX)(),(0,n.CE)("div",eu,[e.isMobile?((0,n.uX)(),(0,n.Wv)(s,{key:0})):((0,n.uX)(),(0,n.Wv)(l,{key:1}))])}const au={class:"top"},iu={class:"buttons-wrapper"},nu={key:0,class:"games-tabs"},ou={class:"buttons"},ru={key:0,class:"empty"},su={key:1,class:"content"},lu={class:"select-game-for-deposit"},du={class:"deposit-games"};function cu(e,t,a,i,o,r){const s=(0,n.g2)("Tabs"),d=(0,n.g2)("Button"),c=(0,n.g2)("EmptySearch"),p=(0,n.g2)("InventoryItem"),u=(0,n.g2)("DotsLoader"),f=(0,n.g2)("DepositGame"),g=(0,n.g2)("Modal");return(0,n.uX)(),(0,n.CE)("section",null,[(0,n.Lk)("div",au,[(0,n.Lk)("h2",null,(0,l.v_)(e.$t("pages.inventory.title")),1)]),(0,n.Lk)("div",iu,[e.games.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",nu,[(0,n.bF)(s,{tabs:e.tabs,onChange:e.changeTab},null,8,["tabs","onChange"])])),(0,n.Lk)("div",ou,[(0,n.bF)(d,{type:"primary",onClick:e.handleDeposit},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.deposit")),1)])),_:1},8,["onClick"]),(0,n.bF)(d,{type:"primary__white",onClick:e.goToWithdraw},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.withdraw")),1)])),_:1},8,["onClick"]),(0,n.bF)(d,{type:"outlined__white",style:{height:"44px"},disabled:""},{default:(0,n.k6)((()=>[...t[1]||(t[1]=[(0,n.eW)(" VIP ",-1)])])),_:1})])]),e.items.length||e.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",ru,[(0,n.Lk)("span",null,[(0,n.bF)(c)]),(0,n.Lk)("div",null,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.empty_state")),1),(0,n.bF)(d,{onClick:e.handleDeposit,type:"primary__white",style:{height:"48px"}},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.deposit_items")),1)])),_:1},8,["onClick"])])])),e.loading?((0,n.uX)(),(0,n.Wv)(u,{key:2})):((0,n.uX)(),(0,n.CE)("div",su,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.items,(t=>((0,n.uX)(),(0,n.Wv)(p,{"inventory-item":t,key:t.id,games:e.games,"active-game-slug":e.activeTab.value,onInventoryItemTransferred:e.handleInventoryItemTransferred},null,8,["inventory-item","games","active-game-slug","onInventoryItemTransferred"])))),128))])),e.showDepositModal?((0,n.uX)(),(0,n.Wv)(g,{key:3,onClose:t[0]||(t[0]=t=>e.showDepositModal=!1),img:"Modal-background.png",name:e.$t("buttons.deposit")},{default:(0,n.k6)((()=>[(0,n.Lk)("div",lu,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("global.select_game")),1),(0,n.Lk)("div",du,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.games.data,(e=>((0,n.uX)(),(0,n.Wv)(f,{game:e,key:e.id},null,8,["game"])))),128))])])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}const pu=["title"],uu={class:"content"},fu=["src","alt"],gu={class:"content-bottom"},mu={class:"buttons"},hu={class:"inventory-item-count"};function vu(e,t,a,i,o,r){const s=(0,n.g2)("Button"),d=(0,n.g2)("TransferModal"),c=(0,n.g2)("Modal"),p=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",{class:"inventory-item",title:e.inventoryItem.item.description},[(0,n.Lk)("div",uu,[(0,n.Lk)("img",{src:e.inventoryItem.item.thumbnail,alt:e.inventoryItem.item.name},null,8,fu),(0,n.Lk)("div",gu,[(0,n.Lk)("h4",null,(0,l.v_)(e.inventoryItem.item.name),1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[p,e.inventoryItem.item.price]])])]),(0,n.Lk)("div",mu,[(0,n.bF)(s,{onClick:e.handleTransfer,"text-white":"",type:"outlined"},{default:(0,n.k6)((()=>[...t[2]||(t[2]=[(0,n.eW)("Transfer",-1)])])),_:1},8,["onClick"])]),(0,n.Lk)("div",hu,(0,l.v_)(e.inventoryItem.count),1),e.showTransferModal?((0,n.uX)(),(0,n.Wv)(c,{key:0,style:{width:"464px"},onClose:t[1]||(t[1]=t=>e.showTransferModal=!1),img:"Modal-background.png",name:"Transfer"},{default:(0,n.k6)((()=>[(0,n.bF)(d,{selectedCount:e.selectedCount,"onUpdate:selectedCount":t[0]||(t[0]=t=>e.selectedCount=t),inventoryItem:e.inventoryItem,game:e.activeGame,onClose:e.handleClose,onItemTransferred:e.handleTransferred},null,8,["selectedCount","inventoryItem","game","onClose","onItemTransferred"])])),_:1})):(0,n.Q3)("",!0)],8,pu)}const xu={class:"transfer-container"},bu={class:"inventory-items"},wu={class:"item-name"},yu={class:"item-name-price"},ku={class:"item-image"},Cu={class:"item-count"},Mu=["src","alt"],Lu={class:"buttons"},Au={class:"users-search"},Iu={class:"action"};function Tu(e,t,a,i,o,r){const s=(0,n.g2)("Arrow"),d=(0,n.g2)("Button"),c=(0,n.g2)("SearchInput"),p=(0,n.g2)("UsersModal"),u=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",xu,[(0,n.Lk)("div",bu,[(0,n.Lk)("div",wu,[t[1]||(t[1]=(0,n.Lk)("p",null,"Item",-1)),(0,n.Lk)("div",yu,[(0,n.Lk)("h2",null,(0,l.v_)(e.inventoryItem.item.name),1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[u,e.calcSelectedPrice]])])]),(0,n.Lk)("div",ku,[(0,n.Lk)("div",Cu,(0,l.v_)(e.inventoryItem.count),1),(0,n.Lk)("img",{src:e.inventoryItem.item.thumbnail,alt:e.inventoryItem.item.name},null,8,Mu),(0,n.Lk)("div",Lu,[(0,n.bF)(d,{type:"outlined__white",style:{width:"20px",height:"20px"},disabled:1==e.selectedCount,onClick:e.decrement},{default:(0,n.k6)((()=>[(0,n.bF)(s,{style:{transform:"rotate(-90deg)"}})])),_:1},8,["disabled","onClick"]),(0,n.Lk)("span",null,(0,l.v_)(e.selectedCount),1),(0,n.bF)(d,{type:"outlined__white",style:{width:"20px",height:"20px"},disabled:e.selectedCount==e.inventoryItem.count,onClick:e.increment},{default:(0,n.k6)((()=>[(0,n.bF)(s,{style:{transform:"rotate(90deg)"}})])),_:1},8,["disabled","onClick"])])])]),(0,n.Lk)("div",Au,[(0,n.bF)(c,{placeholder:"Search by name",modelValue:e.searchText,"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchText=t)},null,8,["modelValue"]),(0,n.bF)(p,{users:e.users,activeUserId:e.activeUserId,isLoading:e.isLoading,pagination:e.pagination,"onUpdate:activeUserId":e.onUserSelect,onLoadPage:e.loadUsers},null,8,["users","activeUserId","isLoading","pagination","onUpdate:activeUserId","onLoadPage"]),(0,n.Lk)("div",Iu,[(0,n.bF)(d,{disabled:0===e.selectedCount||0===e.activeUserId||e.isLoading,onClick:e.handleTransfer,type:"primary"},{default:(0,n.k6)((()=>[...t[2]||(t[2]=[(0,n.eW)("Send",-1)])])),_:1},8,["disabled","onClick"])])])])}const _u={class:"users-modal"},Eu=["onClick"],Su=["src","alt"];function Fu(e,t,a,i,o,r){const s=(0,n.g2)("DotsLoader");return(0,n.uX)(),(0,n.CE)("div",_u,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.users,(t=>((0,n.uX)(),(0,n.CE)("div",{class:(0,l.C4)(["user-div",{active:t.id===e.activeUserId}]),key:t.id,onClick:a=>e.setActiveUser(t.id)},[(0,n.Lk)("img",{src:t.avatar,alt:t.name},null,8,Su),(0,n.Lk)("p",null,(0,l.v_)(t.name),1)],10,Eu)))),128)),e.isLoading?((0,n.uX)(),(0,n.Wv)(s,{key:0})):(0,n.Q3)("",!0)])}var Wu=a(6127);function ju(e,t,a={}){const{direction:i="bottom",interval:o=100,canLoadMore:r=()=>!0}=a,s=(0,x.Kh)((0,ps.Ll8)(e,{offset:{[i]:a.distance??0}})),l=(0,x.KR)(),d=(0,n.EW)((()=>!!l.value)),c=(0,n.EW)((()=>{const t=(0,x.BA)(e);return t instanceof HTMLElement?t:null})),p=(0,ps.ITo)(c);function u(){if(s.measure(),!c.value||!p.value||!r(c.value))return;const{scrollHeight:e,clientHeight:a,scrollWidth:d,clientWidth:f}=c.value,g="bottom"===i||"top"===i?e<=a:d<=f;(s.arrivedState[i]||g)&&(l.value||(l.value=Promise.all([t(s),new Promise((e=>setTimeout(e,o)))]).finally((()=>{l.value=null,(0,n.dY)((()=>u()))}))))}const f=(0,n.wB)((()=>[s.arrivedState[i],p.value]),u,{immediate:!0});return(0,Wu.uO)(f),{isLoading:d,reset(){(0,n.dY)((()=>u()))},stop:f}}var Xu=(0,n.pM)({props:{users:{type:Array,required:!0},activeUserId:{type:Number,default:0},pagination:{type:Object,required:!0},isLoading:{type:Boolean,default:!1}},components:{DotsLoader:Fi},data(){return{infiniteStop:null}},methods:{setActiveUser(e){this.$emit("update:activeUserId",e)}},emits:["update:activeUserId","loadPage"],mounted(){const e=this.$el,{stop:t}=ju(e,(async()=>{this.pagination?.next&&this.$emit("loadPage",this.pagination.next)}),{distance:e.clientHeight,interval:200,canLoadMore:()=>!!this.pagination?.next&&!this.isLoading});this.infiniteStop=t},unmounted(){this.infiniteStop&&this.infiniteStop()}}),Ru=(0,n.pM)({name:"UsersModal",mixins:[Xu]});a(71282);const zu=(0,C.A)(Ru,[["render",Fu],["__scopeId","data-v-52336ca0"]]);var Uu=zu;const Du=["placeholder"];function Bu(e,t,a,o,r,s){const d=(0,n.g2)("Search");return(0,n.uX)(),(0,n.CE)("div",{class:(0,l.C4)(["search-input",e.$attrs.class])},[(0,n.Lk)("div",{class:"search-icon",style:(0,l.Tr)(e.iconLeft?`left: ${e.iconLeft};`:"")},[(0,n.bF)(d,{opacity:e.modelValue.length?1:.6},null,8,["opacity"])],4),(0,n.bo)((0,n.Lk)("input",(0,n.v6)({name:"search","onUpdate:modelValue":t[0]||(t[0]=t=>e.inputValue=t),onInput:t[1]||(t[1]=t=>e.$emit("update:modelValue",e.inputValue)),placeholder:e.placeholder,type:"text",class:"search-field"},e.$attrs),null,16,Du),[[i.Jo,e.inputValue]])],2)}var Vu=(0,n.pM)({inheritAttrs:!1,name:"SearchInput",components:{Search:ft},props:{modelValue:{type:String,required:!0},iconLeft:{type:String},placeholder:{type:String,default:"Search items"}},emits:["update:modelValue"],data(){return{inputValue:""}},mounted(){this.inputValue=this.modelValue||""}});a(86363);const Pu=(0,C.A)(Vu,[["render",Bu],["__scopeId","data-v-51d52122"]]);var Ou=Pu;function Gu(e,t=300,a={}){let i=null,n=null;const{maxWait:o}=a;return function(...a){const r=Date.now(),s=null===n;if(i&&clearTimeout(i),s&&(n=r),o&&null!==n&&r-n>=o)return e.apply(this,a),void(n=r);i=setTimeout((()=>{e.apply(this,a),n=null}),t)}}var Qu=(0,n.pM)({emits:["close","update:selectedCount","item-transferred"],props:{inventoryItem:{type:Object,required:!0},game:{type:Object,required:!0},selectedCount:{type:Number,required:!0}},components:{Button:Ea,Arrow:bt,SearchInput:Ou},data(){return{items:[],searchText:"",users:[],pagination:null,activeUserId:0,isLoading:!1,loadDebouncedUsers:null}},watch:{async searchText(e){this.loadDebouncedUsers&&this.loadDebouncedUsers()}},created(){this.loadDebouncedUsers=Gu(this.loadUsers.bind(this),500)},methods:{increment(){this.selectedCount0&&this.$emit("update:selectedCount",this.selectedCount-1)},async loadUsers(e){this.isLoading=!0;const t=await Ba.getUsers(this.searchText,e),a=t.data.data;0===a.length&&(this.pagination=null,this.isLoading=!1),e?this.users.push(...a):this.users=a,t.data.links?this.pagination=t.data.links:this.pagination=null,this.isLoading=!1},onUserSelect(e){this.activeUserId=e},async handleTransfer(){if(this.game&&this.activeUserId)try{await Ba.transferItem(this.activeUserId,this.game.slug,this.inventoryItem.id,this.selectedCount);this.$emit("item-transferred",{id:this.inventoryItem.id,count:this.selectedCount}),this.activeUserId=null}catch(e){console.error("Transfer error:",e)}finally{this.$emit("close")}}},computed:{calcSelectedPrice(){return this.selectedCount*this.inventoryItem.item.price},selectedItems(){return this.items.filter((e=>e.selectedCount))}},mounted(){this.loadUsers()},unmounted(){this.$emit("close")}}),Hu=(0,n.pM)({name:"TransferModal",components:{UsersModal:Uu},mixins:[Qu]});a(18685);const Nu=(0,C.A)(Hu,[["render",Tu],["__scopeId","data-v-3d9b9c32"]]);var Ku=Nu,qu=(0,n.pM)({data(){return{showTransferModal:!1,selectedCount:1}},components:{Button:Ea,Modal:vn},props:{inventoryItem:{type:Object,required:!0},games:{type:Object,required:!0},activeGameSlug:{type:String,required:!0}},methods:{handleTransferred({id:e,count:t}){this.$emit("inventory-item-transferred",{id:e,count:t})},handleTransfer(){this.showTransferModal=!0},handleClose(){this.showTransferModal=!1,this.selectedCount=1}},computed:{activeGame(){return this.games?.data.find((e=>e.slug===this.activeGameSlug))}}}),Zu=(0,n.pM)({name:"InventoryItem",components:{TransferModal:Ku},mixins:[qu]});a(55525);const Ju=(0,C.A)(Zu,[["render",vu],["__scopeId","data-v-37a42216"]]);var Yu=Ju;const $u=["src","alt"],ef={class:"content"},tf={class:"bots"};function af(e,t,i,o,r,s){const d=(0,n.g2)("NotificationBanner"),c=(0,n.g2)("BotComponent"),p=(0,n.g2)("Modal");return(0,n.uX)(),(0,n.CE)("div",{class:(0,l.C4)(["deposit-game",e.game.slug]),onClick:t[1]||(t[1]=t=>e.handleClick(e.game))},[(0,n.Lk)("img",{src:a(50715)(`./${e.game.slug}.png`),alt:e.game.name},null,8,$u),(0,n.Lk)("span",null,(0,l.v_)(e.game.name),1),e.showBotsModal?((0,n.uX)(),(0,n.Wv)(p,{key:0,onClose:t[0]||(t[0]=t=>e.showBotsModal=!1),img:"Modal-background.png",name:e.selectedGame.name},{default:(0,n.k6)((()=>[(0,n.Lk)("div",ef,[(0,n.bF)(d,null,{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("modals.pending_withdrawal.subtitle")),1)])),_:1}),(0,n.Lk)("div",tf,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.selectedGameBots,(e=>((0,n.uX)(),(0,n.Wv)(c,{bot:e,key:e.id},null,8,["bot"])))),128))])])])),_:1},8,["name"])):(0,n.Q3)("",!0)],2)}const nf={class:"bot"},of={class:"info"},rf=["src","alt"];function sf(e,t,a,i,o,r){const s=(0,n.g2)("Button");return(0,n.uX)(),(0,n.CE)("div",nf,[(0,n.Lk)("div",of,[(0,n.Lk)("img",{src:e.bot.avatar_url,alt:e.bot.name},null,8,rf),(0,n.Lk)("span",null,(0,l.v_)(e.bot.name),1)]),(0,n.bF)(s,{type:"primary",style:{width:"128px"},onClick:e.handleClick},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.join")),1)])),_:1},8,["onClick"])])}var lf=(0,n.pM)({props:{bot:{type:Object,required:!0}},components:{Button:Ea},methods:{handleClick(){window.open(this.bot.server_url,"_blank")}}}),df=(0,n.pM)({name:"BotComponent",mixins:[lf]});a(65653);const cf=(0,C.A)(df,[["render",sf],["__scopeId","data-v-2a5b65b9"]]);var pf=cf,uf=(0,n.pM)({props:{game:{type:Object,required:!0}},components:{Modal:vn,NotificationBanner:kr},data(){return{showBotsModal:!1,selectedGame:null,selectedGameBots:[]}},methods:{async handleClick(e){this.selectedGame=e;const t=await Ba.getGameBots(e.slug);this.selectedGameBots=t.data.data,this.showBotsModal=!0}}}),ff=(0,n.pM)({name:"DepositGame",components:{BotComponent:pf},mixins:[uf]});a(28690);const gf=(0,C.A)(ff,[["render",af],["__scopeId","data-v-51954c0c"]]);var mf=gf,hf=(0,n.pM)({components:{Tabs:_o,Button:Ea,Modal:vn,EmptySearch:Mt},data(){return{showDepositModal:!1,items:[],tabs:[],loading:!1}},async mounted(){await this.getTabs(),await this.$nextTick(),this.getInventory(this.activeTab.value)},computed:{activeTab(){return this.tabs.find((e=>e.active))},games(){return this.$store.getters["games/data"]}},methods:{handleDeposit(){this.showDepositModal=!0},changeTab(e){this.getInventory(e.value)},async getTabs(){this.tabs=this.games.data.map(((e,t)=>({active:0===t,disabled:!1,label:e.name,value:e.slug})))},async getInventory(e){this.loading=!0;try{const t=await Ba.getGameInventory(e),a=t.data.data;this.items=a.map((e=>({...e,selectedCount:0}))).filter((e=>!!e.count))}finally{this.loading=!1}},async handleInventoryItemTransferred(){await this.getInventory(this.activeTab.value)},goToWithdraw(){this.$router.push("/inventory/withdraw")}}}),vf=(0,n.pM)({name:"InventoryDesktop",components:{InventoryItem:Yu,DepositGame:mf,DotsLoader:Fi},mixins:[hf]});a(36405);const xf=(0,C.A)(vf,[["render",cu],["__scopeId","data-v-e626425c"]]);var bf=xf;const wf={class:"top"},yf={class:"buttons-wrapper"},kf={key:0,class:"games-tabs"},Cf={class:"buttons"},Mf={key:0,class:"empty"},Lf={key:1,class:"content"},Af={class:"select-game-for-deposit"},If={class:"deposit-games"};function Tf(e,t,a,i,o,r){const s=(0,n.g2)("Tabs"),d=(0,n.g2)("Button"),c=(0,n.g2)("EmptySearch"),p=(0,n.g2)("InventoryItem"),u=(0,n.g2)("DotsLoader"),f=(0,n.g2)("DepositGame"),g=(0,n.g2)("Modal");return(0,n.uX)(),(0,n.CE)("section",null,[(0,n.Lk)("div",wf,[(0,n.Lk)("h2",null,(0,l.v_)(e.$t("pages.inventory.title")),1)]),(0,n.Lk)("div",yf,[e.games.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",kf,[(0,n.bF)(s,{tabs:e.tabs,onChange:e.changeTab},null,8,["tabs","onChange"])])),(0,n.Lk)("div",Cf,[(0,n.bF)(d,{type:"primary",onClick:e.handleDeposit},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.deposit")),1)])),_:1},8,["onClick"]),(0,n.bF)(d,{type:"primary__white",onClick:e.goToWithdraw},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.withdraw")),1)])),_:1},8,["onClick"]),(0,n.bF)(d,{type:"outlined__white",style:{height:"44px"},disabled:""},{default:(0,n.k6)((()=>[...t[1]||(t[1]=[(0,n.eW)(" VIP ",-1)])])),_:1})])]),e.items.length||e.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",Mf,[(0,n.Lk)("span",null,[(0,n.bF)(c)]),(0,n.Lk)("div",null,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.empty_state")),1),(0,n.bF)(d,{onClick:e.handleDeposit,type:"primary__white",style:{height:"48px"}},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.deposit_items")),1)])),_:1},8,["onClick"])])])),e.loading?((0,n.uX)(),(0,n.Wv)(u,{key:2})):((0,n.uX)(),(0,n.CE)("div",Lf,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.items,(t=>((0,n.uX)(),(0,n.Wv)(p,{"inventory-item":t,key:t.id,games:e.games,"active-game-slug":e.activeTab.value,onInventoryItemTransferred:e.handleInventoryItemTransferred},null,8,["inventory-item","games","active-game-slug","onInventoryItemTransferred"])))),128))])),e.showDepositModal?((0,n.uX)(),(0,n.Wv)(g,{key:3,onClose:t[0]||(t[0]=t=>e.showDepositModal=!1),img:"Modal-background.png",name:e.$t("buttons.deposit")},{default:(0,n.k6)((()=>[(0,n.Lk)("div",Af,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("global.select_game")),1),(0,n.Lk)("div",If,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.games.data,(e=>((0,n.uX)(),(0,n.Wv)(f,{game:e,key:e.id},null,8,["game"])))),128))])])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}const _f=["title"],Ef={class:"content"},Sf=["src","alt"],Ff={class:"content-bottom"},Wf={class:"buttons"},jf={class:"inventory-item-count"};function Xf(e,t,a,i,o,r){const s=(0,n.g2)("Button"),d=(0,n.g2)("TransferModal"),c=(0,n.g2)("Modal"),p=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",{class:"inventory-item",title:e.inventoryItem.item.description},[(0,n.Lk)("div",Ef,[(0,n.Lk)("img",{src:e.inventoryItem.item.thumbnail,alt:e.inventoryItem.item.name},null,8,Sf),(0,n.Lk)("div",Ff,[(0,n.Lk)("h4",null,(0,l.v_)(e.inventoryItem.item.name),1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[p,e.inventoryItem.item.price]])])]),(0,n.Lk)("div",Wf,[(0,n.bF)(s,{onClick:e.handleTransfer,"text-white":"",type:"outlined"},{default:(0,n.k6)((()=>[...t[2]||(t[2]=[(0,n.eW)("Transfer",-1)])])),_:1},8,["onClick"])]),(0,n.Lk)("div",jf,(0,l.v_)(e.inventoryItem.count),1),e.showTransferModal?((0,n.uX)(),(0,n.Wv)(c,{key:0,style:{width:"464px"},onClose:t[1]||(t[1]=t=>e.showTransferModal=!1),img:"Modal-background.png",name:"Transfer"},{default:(0,n.k6)((()=>[(0,n.bF)(d,{selectedCount:e.selectedCount,"onUpdate:selectedCount":t[0]||(t[0]=t=>e.selectedCount=t),inventoryItem:e.inventoryItem,game:e.activeGame,onClose:e.handleClose,onItemTransferred:e.handleTransferred},null,8,["selectedCount","inventoryItem","game","onClose","onItemTransferred"])])),_:1})):(0,n.Q3)("",!0)],8,_f)}const Rf={class:"transfer-container"},zf={class:"inventory-items"},Uf={class:"item-name"},Df={class:"item-name-price"},Bf={class:"item-image"},Vf={class:"item-count"},Pf=["src","alt"],Of={class:"buttons"},Gf={class:"users-search"},Qf={class:"action"};function Hf(e,t,a,i,o,r){const s=(0,n.g2)("Tooltip"),d=(0,n.g2)("Arrow"),c=(0,n.g2)("Button"),p=(0,n.g2)("SearchInput"),u=(0,n.g2)("UsersModal"),f=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",Rf,[(0,n.Lk)("div",zf,[(0,n.Lk)("div",Uf,[t[1]||(t[1]=(0,n.Lk)("p",null,"Item",-1)),(0,n.Lk)("div",Df,[(0,n.bF)(s,{text:e.inventoryItem.item.name},{default:(0,n.k6)((()=>[(0,n.Lk)("h2",null,(0,l.v_)(e.inventoryItem.item.name),1)])),_:1},8,["text"]),(0,n.bo)((0,n.Lk)("span",null,null,512),[[f,e.calcSelectedPrice]])])]),(0,n.Lk)("div",Bf,[(0,n.Lk)("div",Vf,(0,l.v_)(e.inventoryItem.count),1),(0,n.Lk)("img",{src:e.inventoryItem.item.thumbnail,alt:e.inventoryItem.item.name},null,8,Pf),(0,n.Lk)("div",Of,[(0,n.bF)(c,{type:"outlined__white",style:{width:"20px",height:"20px"},disabled:0==e.selectedCount,onClick:e.decrement},{default:(0,n.k6)((()=>[(0,n.bF)(d,{style:{transform:"rotate(-90deg)"}})])),_:1},8,["disabled","onClick"]),(0,n.Lk)("span",null,(0,l.v_)(e.selectedCount),1),(0,n.bF)(c,{type:"outlined__white",style:{width:"20px",height:"20px"},disabled:e.selectedCount==e.inventoryItem.count,onClick:e.increment},{default:(0,n.k6)((()=>[(0,n.bF)(d,{style:{transform:"rotate(90deg)"}})])),_:1},8,["disabled","onClick"])])])]),(0,n.Lk)("div",Gf,[(0,n.bF)(p,{placeholder:"Search by name",modelValue:e.searchText,"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchText=t)},null,8,["modelValue"]),(0,n.bF)(u,{users:e.users,activeUserId:e.activeUserId,"onUpdate:activeUserId":e.onUserSelect,onLoadPage:e.loadUsers,isLoading:e.isLoading,pagination:e.pagination},null,8,["users","activeUserId","onUpdate:activeUserId","onLoadPage","isLoading","pagination"]),(0,n.Lk)("div",Qf,[(0,n.bF)(c,{disabled:0===e.selectedCount||0===e.activeUserId||e.isLoading,onClick:e.handleTransfer,type:"primary"},{default:(0,n.k6)((()=>[...t[2]||(t[2]=[(0,n.eW)("Send",-1)])])),_:1},8,["disabled","onClick"])])])])}const Nf={class:"users-modal"},Kf=["onClick"],qf=["src","alt"];function Zf(e,t,a,i,o,r){const s=(0,n.g2)("DotsLoader");return(0,n.uX)(),(0,n.CE)("div",Nf,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.users,(t=>((0,n.uX)(),(0,n.CE)("div",{class:(0,l.C4)(["user-div",{active:t.id===e.activeUserId}]),key:t.id,onClick:a=>e.setActiveUser(t.id)},[(0,n.Lk)("img",{src:t.avatar,alt:t.name},null,8,qf),(0,n.Lk)("p",null,(0,l.v_)(t.name),1)],10,Kf)))),128)),e.isLoading?((0,n.uX)(),(0,n.Wv)(s,{key:0})):(0,n.Q3)("",!0)])}var Jf=(0,n.pM)({name:"UsersModal",mixins:[Xu]});a(66534);const Yf=(0,C.A)(Jf,[["render",Zf],["__scopeId","data-v-c1a0812a"]]);var $f=Yf,eg=(0,n.pM)({name:"TransferModal",components:{UsersModal:$f},mixins:[Qu]});a(81417);const tg=(0,C.A)(eg,[["render",Hf],["__scopeId","data-v-61024d02"]]);var ag=tg,ig=(0,n.pM)({name:"InventoryItem",components:{TransferModal:ag},mixins:[qu]});a(7029);const ng=(0,C.A)(ig,[["render",Xf],["__scopeId","data-v-15539f07"]]);var og=ng;const rg=["src","alt"],sg={class:"content"},lg={class:"bots"};function dg(e,t,i,o,r,s){const d=(0,n.g2)("NotificationBanner"),c=(0,n.g2)("BotComponent"),p=(0,n.g2)("Modal");return(0,n.uX)(),(0,n.CE)("div",{class:(0,l.C4)(["deposit-game",e.game.slug]),onClick:t[1]||(t[1]=t=>e.handleClick(e.game))},[(0,n.Lk)("img",{src:a(50715)(`./${e.game.slug}.png`),alt:e.game.name},null,8,rg),(0,n.Lk)("span",null,(0,l.v_)(e.game.name),1),e.showBotsModal?((0,n.uX)(),(0,n.Wv)(p,{key:0,onClose:t[0]||(t[0]=t=>e.showBotsModal=!1),img:"Modal-background.png",name:e.selectedGame.name},{default:(0,n.k6)((()=>[(0,n.Lk)("div",sg,[(0,n.bF)(d,null,{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("modals.pending_withdrawal.subtitle")),1)])),_:1}),(0,n.Lk)("div",lg,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.selectedGameBots,(e=>((0,n.uX)(),(0,n.Wv)(c,{bot:e,key:e.id},null,8,["bot"])))),128))])])])),_:1},8,["name"])):(0,n.Q3)("",!0)],2)}const cg={class:"bot"},pg={class:"info"},ug=["src","alt"];function fg(e,t,a,i,o,r){const s=(0,n.g2)("Button");return(0,n.uX)(),(0,n.CE)("div",cg,[(0,n.Lk)("div",pg,[(0,n.Lk)("img",{src:e.bot.avatar_url,alt:e.bot.name},null,8,ug),(0,n.Lk)("span",null,(0,l.v_)(e.bot.name),1)]),(0,n.bF)(s,{type:"primary",style:{width:"128px"},onClick:e.handleClick},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.join")),1)])),_:1},8,["onClick"])])}var gg=(0,n.pM)({name:"BotComponent",mixins:[lf]});a(53684);const mg=(0,C.A)(gg,[["render",fg],["__scopeId","data-v-2c7cf57b"]]);var hg=mg,vg=(0,n.pM)({name:"DepositGame",components:{BotComponent:hg},mixins:[uf]});a(38716);const xg=(0,C.A)(vg,[["render",dg],["__scopeId","data-v-73038e86"]]);var bg=xg,wg=(0,n.pM)({name:"InventoryDesktop",components:{InventoryItem:og,DepositGame:bg,DotsLoader:Fi},mixins:[hf]});a(41995);const yg=(0,C.A)(wg,[["render",Tf],["__scopeId","data-v-0c6a9576"]]);var kg=yg,Cg=(0,n.pM)({name:"InventoryView",components:{InventoryDesktop:bf,InventoryMobile:kg},setup(){const{isMobile:e,isTablet:t}=Rd();return{isMobile:e,isTablet:t}}});const Mg=(0,C.A)(Cg,[["render",tu]]);var Lg=Mg;const Ag={class:"inventory"};function Ig(e,t,a,i,o,r){const s=(0,n.g2)("WithdrawMobile"),l=(0,n.g2)("WithdrawDesktop");return(0,n.uX)(),(0,n.CE)("div",Ag,[e.isMobile?((0,n.uX)(),(0,n.Wv)(s,{key:0})):((0,n.uX)(),(0,n.Wv)(l,{key:1}))])}const Tg={class:"top"},_g={class:"buttons-wrapper"},Eg={class:"games-tabs"},Sg={class:"buttons"},Fg={class:"content"},Wg={class:"inventory-item-content"},jg={class:"item-value"},Xg={class:"items"},Rg={class:"value"},zg={class:"information"},Ug={key:0,class:"bots"};function Dg(e,t,a,i,o,r){const s=(0,n.g2)("Tabs"),d=(0,n.g2)("Button"),c=(0,n.g2)("InventoryItem"),p=(0,n.g2)("SpinnerLoader"),u=(0,n.g2)("BotComponent"),f=(0,n.g2)("Modal"),g=(0,n.g2)("PendingModal"),m=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("section",null,[(0,n.Lk)("div",Tg,[(0,n.Lk)("h2",null,(0,l.v_)(e.$t("buttons.withdraw")),1)]),(0,n.Lk)("div",_g,[(0,n.Lk)("div",Eg,[(0,n.bF)(s,{tabs:e.tabs,onChange:e.changeTab},null,8,["tabs","onChange"])]),(0,n.Lk)("div",Sg,[(0,n.bF)(d,{style:{width:"max-content"},type:"primary__white",onClick:t[0]||(t[0]=t=>e.showWithdrawPendingModal=!0)},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.pending_requests")),1)])),_:1})])]),(0,n.Lk)("div",Fg,[(0,n.Lk)("div",Wg,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.items,(t=>((0,n.uX)(),(0,n.Wv)(c,{"inventory-item":t,key:t.id,items:e.items,"onUpdate:selectedCount":e=>t.selectedCount=e},null,8,["inventory-item","items","onUpdate:selectedCount"])))),128))]),(0,n.Lk)("div",jg,[(0,n.Lk)("div",Xg,[(0,n.Lk)("span",null,(0,l.v_)(e.$t("global.items")),1),(0,n.Lk)("p",null,(0,l.v_)(e.selectedItemsCount),1)]),(0,n.Lk)("div",Rg,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.value")),1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[m,e.calcSelectedPrice]])]),(0,n.bF)(d,{onClick:e.handleWithdraw,type:"primary__white",style:{height:"44px",flex:"1"},disabled:0===e.calcSelectedPrice||e.isLoading},{default:(0,n.k6)((()=>[e.isLoading?((0,n.uX)(),(0,n.Wv)(p,{key:0})):((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[(0,n.eW)((0,l.v_)(e.$t("buttons.withdraw")),1)],64))])),_:1},8,["onClick","disabled"])])]),e.showWithdrawModal?((0,n.uX)(),(0,n.Wv)(f,{key:0,onClose:t[1]||(t[1]=t=>e.showWithdrawModal=!1),img:"Modal-background.png",name:e.activeTab.label},{default:(0,n.k6)((()=>[(0,n.Lk)("div",zg,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("modals.pending_withdrawal.subtitle")),1),e.selectedWithdrawalRequestId?((0,n.uX)(),(0,n.CE)("div",Ug,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.availableGameBots,(t=>((0,n.uX)(),(0,n.Wv)(u,{bot:t,key:t.id,game_slug:e.activeTab.value,request_id:e.selectedWithdrawalRequestId},null,8,["bot","game_slug","request_id"])))),128))])):(0,n.Q3)("",!0)])])),_:1},8,["name"])):(0,n.Q3)("",!0),e.showWithdrawPendingModal?((0,n.uX)(),(0,n.Wv)(f,{key:1,onClose:t[2]||(t[2]=t=>e.showWithdrawPendingModal=!1),img:"Modal-background.png",name:e.$t("modals.pending_withdrawal.title")},{default:(0,n.k6)((()=>[(0,n.bF)(g,{onProceed:e.handleProceed,onCancel:e.handleCancel,activeTab:e.activeTab.value,isLoading:e.isLoading,setIsLoading:t=>e.isLoading=t},null,8,["onProceed","onCancel","activeTab","isLoading","setIsLoading"])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}const Bg={class:"inventory-item"},Vg={class:"content"},Pg={class:"thumbnail"},Og={class:"item-count"},Gg=["src","alt"],Qg={class:"content-bottom"},Hg={class:"buttons"},Ng={class:"selected-price"};function Kg(e,t,a,i,o,r){const s=(0,n.g2)("Minus"),d=(0,n.g2)("Plus"),c=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",Bg,[(0,n.Lk)("div",Vg,[(0,n.Lk)("div",Pg,[(0,n.Lk)("div",Og,(0,l.v_)(e.inventoryItem.count),1),(0,n.Lk)("img",{src:e.inventoryItem.item.thumbnail,alt:e.inventoryItem.item.name},null,8,Gg)]),(0,n.Lk)("div",Qg,[(0,n.Lk)("h4",null,(0,l.v_)(e.inventoryItem.item.name),1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[c,e.inventoryItem.item.price]])])]),(0,n.Lk)("div",Hg,[(0,n.Lk)("i",{onClick:t[0]||(t[0]=(...t)=>e.decrement&&e.decrement(...t))},[(0,n.bF)(s,{class:(0,l.C4)({disabled:0===e.inventoryItem.selectedCount})},null,8,["class"])]),(0,n.Lk)("span",null,(0,l.v_)(e.inventoryItem.selectedCount),1),(0,n.Lk)("i",{onClick:t[1]||(t[1]=(...t)=>e.increment&&e.increment(...t))},[(0,n.bF)(d,{class:(0,l.C4)({disabled:e.inventoryItem.selectedCount===e.inventoryItem.count})},null,8,["class"])])]),(0,n.Lk)("div",Ng,[(0,n.bo)((0,n.Lk)("span",null,null,512),[[c,e.calcSelectedPrice]])])])}const qg={key:0,class:"tooltip-content"};function Zg(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",{class:"tooltip-wrapper",onMouseenter:t[0]||(t[0]=t=>e.show=!0),onMouseleave:t[1]||(t[1]=t=>e.show=!1)},[(0,n.RG)(e.$slots,"default",{},void 0,!0),e.show?((0,n.uX)(),(0,n.CE)("div",qg,(0,l.v_)(e.text),1)):(0,n.Q3)("",!0)],32)}var Jg=(0,n.pM)({name:"TooltipComponent",props:{text:String},data(){return{show:!1}}});a(3739);const Yg=(0,C.A)(Jg,[["render",Zg],["__scopeId","data-v-793a8f94"]]);var $g=Yg,em=(0,n.pM)({components:{Plus:jt,Minus:_t,Tooltip:$g},props:{inventoryItem:{type:Object,required:!0},items:{type:Array,required:!0}},emits:["update:selectedCount"],computed:{calcSelectedPrice(){return this.inventoryItem.selectedCount*this.inventoryItem.item.price},selectedItems(){return this.items.filter((e=>e.selectedCount))}},methods:{increment(){this.inventoryItem.selectedCount0&&this.$emit("update:selectedCount",this.inventoryItem.selectedCount-1)}}}),tm=(0,n.pM)({name:"InventoryItem",mixins:[em]});a(75572);const am=(0,C.A)(tm,[["render",Kg],["__scopeId","data-v-e69b6de2"]]);var im=am;a(18237);const nm={class:"dot-spinner"};function om(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",nm,[...t[0]||(t[0]=[(0,n.Fv)('',8)])])}var rm=(0,n.pM)({name:"SpinnerLoader"});a(2759);const sm=(0,C.A)(rm,[["render",om],["__scopeId","data-v-60af8005"]]);var lm=sm,dm=(0,n.pM)({components:{Tabs:_o,Button:Ea,Modal:vn,SpinnerLoader:lm,DotsLoader:Fi},data(){return{tabs:[],items:[],showWithdrawModal:!1,showWithdrawPendingModal:!1,availableGameBots:[],selectedWithdrawalRequestId:null,isLoading:!1}},methods:{changeTab(e){this.getInventory(e.value)},async getInventory(e){const t=await Ba.getGameInventory(e),a=t.data.data;this.items=a.map((e=>({...e,selectedCount:0})))},async getTabs(){this.tabs=this.games.data.map(((e,t)=>({active:0===t,disabled:!1,label:e.name,value:e.slug})))},async handleWithdraw(){if(!this.isLoading){this.isLoading=!0;try{const e=await Ba.withdrawGame(this.activeTab.value,this.formattedItems);if(e.status){const t=e.data.data.id;this.selectedWithdrawalRequestId=t,this.items=this.items.map((e=>e.selectedCount>0?{...e,count:e.count-e.selectedCount,selectedCount:0}:e)).filter((e=>!!e.count)),this.showWithdrawModal=!0}else console.error("Withdraw failed:",e.data)}catch(e){console.error("API error:",e)}finally{this.isLoading=!1}}},handleProceed(e){this.selectedWithdrawalRequestId=e,this.showWithdrawModal=!0,this.showWithdrawPendingModal=!1},handleCancel(e){Ba.cancelWithdrawal(this.activeTab.value,e)}},computed:{games(){return this.$store.getters["games/data"]},activeTab(){return this.tabs.find((e=>e.active))},calcSelectedPrice(){return this.selectedItems.reduce(((e,t)=>e+t.selectedCount*t.item.price),0)},selectedItems(){return this.items.filter((e=>e.selectedCount))},formattedItems(){return this.selectedItems.map((e=>({item_id:e.item.id,count:e.selectedCount})))},selectedItemsCount(){return this.selectedItems.reduce(((e,t)=>e+t.selectedCount),0)}},watch:{async showWithdrawModal(e){if(e&&this.selectedWithdrawalRequestId){const e=await Ba.getWithdrawalAvailableBots(this.activeTab.value,this.selectedWithdrawalRequestId);this.availableGameBots=e.data.data}}},async mounted(){await this.getTabs(),await this.$nextTick(),this.getInventory(this.activeTab.value)}});const cm={class:"bot"},pm={class:"info"},um=["src","alt"];function fm(e,t,a,i,o,r){const s=(0,n.g2)("Button");return(0,n.uX)(),(0,n.CE)("div",cm,[(0,n.Lk)("div",pm,[(0,n.Lk)("img",{src:e.bot.avatar_url,alt:e.bot.name},null,8,um),(0,n.Lk)("span",null,(0,l.v_)(e.bot.name),1)]),(0,n.bF)(s,{type:"primary",style:{width:"128px"},onClick:e.handleClick},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.join")),1)])),_:1},8,["onClick"])])}var gm=(0,n.pM)({props:{bot:{type:Object,required:!0},request_id:{type:Number,required:!0},game_slug:{type:String,required:!0}},components:{Button:Ea},methods:{async handleClick(){window.open(this.bot.server_url,"_blank"),await Ba.proceedWithdrawal(this.game_slug,this.request_id,this.bot.id)}}}),mm=(0,n.pM)({name:"BotComponent",mixins:[gm]});a(35434);const hm=(0,C.A)(mm,[["render",fm],["__scopeId","data-v-0b77c1f9"]]);var vm=hm;const xm={class:"pending-modal"},bm={class:"all-withdrawals"},wm={class:"pending-thumbnails"},ym=["src","alt"],km={class:"item-count"},Cm={class:"price"},Mm={class:"buttons"};function Lm(e,t,a,i,o,r){const s=(0,n.g2)("NotificationBanner"),d=(0,n.g2)("DotsLoader"),c=(0,n.g2)("Button"),p=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",xm,[(0,n.bF)(s,null,{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("modals.pending_withdrawal.subtitle")),1)])),_:1}),(0,n.Lk)("div",bm,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.withdrawals,(t=>((0,n.uX)(),(0,n.CE)("div",{key:t.id,class:"withdrawal"},[(0,n.Lk)("div",wm,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(t.items.slice(0,3),((e,t)=>((0,n.uX)(),(0,n.CE)("div",{class:"withdraw-item",key:e.id,style:(0,l.Tr)(`left: ${20*t}px`)},[(0,n.Lk)("img",{src:e.item.thumbnail,alt:e.item.name},null,8,ym),(0,n.Lk)("div",km,(0,l.v_)(e.count),1)],4)))),128))]),(0,n.Lk)("div",Cm,[(0,n.bo)((0,n.Lk)("span",null,null,512),[[p,e.getItemsTotalAmount(t)]])]),(0,n.Lk)("div",Mm,[(0,n.bF)(c,{onClick:a=>e.refreshAfterCancel(t.id),disabled:e.isLoading,type:"primary__white",style:{width:"100px",height:"35px"}},{default:(0,n.k6)((()=>[e.isLoading?((0,n.uX)(),(0,n.Wv)(d,{key:0,small:""})):((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[(0,n.eW)((0,l.v_)(e.$t("buttons.cancel")),1)],64))])),_:1},8,["onClick","disabled"]),(0,n.bF)(c,{onClick:a=>e.$emit("proceed",t.id),type:"primary",style:{width:"100px",height:"35px"},disabled:e.isLoading},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.proceed")),1)])),_:1},8,["onClick","disabled"])])])))),128))])])}var Am=(0,n.pM)({components:{Button:Ea,NotificationBanner:kr,DotsLoader:Fi},props:{activeTab:{type:String,required:!0},isLoading:{type:Boolean,required:!0},setIsLoading:{type:Function,required:!0}},data(){return{withdrawals:[],inventory:[]}},methods:{getItemsTotalAmount(e){const t=e.items.reduce(((e,t)=>e+t.item.price*t.count),0);return t},async refreshAfterCancel(e){this.setIsLoading(!0);try{await Ba.cancelWithdrawal(this.activeTab,e),await this.loadWithdrawals()}catch(t){console.error("Ошибка при отмене:",t)}finally{this.setIsLoading(!1)}},async loadWithdrawals(){try{const e=await Ba.getPendingWithdrawals(this.activeTab);e.data.status?this.withdrawals=e.data.data:console.error("Loading Error!")}catch(e){console.error("Error:",e)}},async loadInventory(){const e=await Ba.getGameInventory(this.activeTab);this.inventory=e.data.data}},async mounted(){await this.loadWithdrawals(),await this.loadInventory()}}),Im=(0,n.pM)({name:"PendingModal",mixins:[Am]});a(59412);const Tm=(0,C.A)(Im,[["render",Lm],["__scopeId","data-v-6e2c71f8"]]);var _m=Tm,Em=(0,n.pM)({name:"WithdrawDesktop",components:{InventoryItem:im,BotComponent:vm,PendingModal:_m},mixins:[dm]});a(27234);const Sm=(0,C.A)(Em,[["render",Dg],["__scopeId","data-v-17b0fb53"]]);var Fm=Sm;const Wm={class:"top"},jm={class:"buttons-wrapper"},Xm={class:"games-tabs"},Rm={class:"buttons"},zm={class:"content"},Um={class:"inventory-item-content"},Dm={class:"item-value-container"},Bm={class:"item-value"},Vm={class:"items"},Pm={class:"value"},Om={class:"button-container"},Gm={class:"information"},Qm={key:0,class:"bots"};function Hm(e,t,a,i,o,r){const s=(0,n.g2)("Tabs"),d=(0,n.g2)("Button"),c=(0,n.g2)("InventoryItem"),p=(0,n.g2)("DotsLoader"),u=(0,n.g2)("BotComponent"),f=(0,n.g2)("Modal"),g=(0,n.g2)("PendingModal"),m=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("section",null,[(0,n.Lk)("div",Wm,[(0,n.Lk)("h2",null,(0,l.v_)(e.$t("buttons.withdraw")),1)]),(0,n.Lk)("div",jm,[(0,n.Lk)("div",Xm,[(0,n.bF)(s,{tabs:e.tabs,onChange:e.changeTab},null,8,["tabs","onChange"])]),(0,n.Lk)("div",Rm,[(0,n.bF)(d,{style:{width:"max-content"},type:"primary__white",onClick:t[0]||(t[0]=t=>e.showWithdrawPendingModal=!0)},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.pending_requests")),1)])),_:1})])]),(0,n.Lk)("div",zm,[(0,n.Lk)("div",Um,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.items,(t=>((0,n.uX)(),(0,n.Wv)(c,{"inventory-item":t,key:t.id,items:e.items,"onUpdate:selectedCount":e=>t.selectedCount=e},null,8,["inventory-item","items","onUpdate:selectedCount"])))),128))]),(0,n.Lk)("div",Dm,[(0,n.Lk)("div",Bm,[(0,n.Lk)("div",Vm,[(0,n.Lk)("span",null,(0,l.v_)(e.$t("global.items")),1),(0,n.Lk)("p",null,(0,l.v_)(e.selectedItemsCount),1)]),(0,n.Lk)("div",Pm,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.value")),1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[m,e.calcSelectedPrice]])]),(0,n.Lk)("div",Om,[(0,n.bF)(d,{onClick:e.handleWithdraw,type:"primary__white",style:{width:"100",height:"44px",flex:"1"},disabled:0===e.calcSelectedPrice||e.isLoading},{default:(0,n.k6)((()=>[e.isLoading?((0,n.uX)(),(0,n.Wv)(p,{key:0,small:""})):((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[(0,n.eW)((0,l.v_)(e.$t("buttons.withdraw")),1)],64))])),_:1},8,["onClick","disabled"])])])])]),e.showWithdrawModal?((0,n.uX)(),(0,n.Wv)(f,{key:0,onClose:t[1]||(t[1]=t=>e.showWithdrawModal=!1),img:"Modal-background.png",name:e.activeTab.label},{default:(0,n.k6)((()=>[(0,n.Lk)("div",Gm,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("modals.pending_withdrawal.subtitle")),1),e.selectedWithdrawalRequestId?((0,n.uX)(),(0,n.CE)("div",Qm,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.availableGameBots,(t=>((0,n.uX)(),(0,n.Wv)(u,{bot:t,key:t.id,game_slug:e.activeTab.value,request_id:e.selectedWithdrawalRequestId},null,8,["bot","game_slug","request_id"])))),128))])):(0,n.Q3)("",!0)])])),_:1},8,["name"])):(0,n.Q3)("",!0),e.showWithdrawPendingModal?((0,n.uX)(),(0,n.Wv)(f,{key:1,onClose:t[2]||(t[2]=t=>e.showWithdrawPendingModal=!1),img:"Modal-background.png",name:e.$t("modals.pending_withdrawal.title")},{default:(0,n.k6)((()=>[(0,n.bF)(g,{onProceed:e.handleProceed,onCancel:e.handleCancel,activeTab:e.activeTab.value,isLoading:e.isLoading,setIsLoading:t=>e.isLoading=t},null,8,["onProceed","onCancel","activeTab","isLoading","setIsLoading"])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}const Nm={class:"inventory-item"},Km={class:"content"},qm={class:"thumbnail"},Zm={class:"item-count"},Jm=["src","alt"],Ym={class:"content-bottom"},$m={class:"buttons"},eh={class:"selected-price"};function th(e,t,a,i,o,r){const s=(0,n.g2)("Tooltip"),d=(0,n.g2)("Minus"),c=(0,n.g2)("Plus"),p=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",Nm,[(0,n.Lk)("div",Km,[(0,n.Lk)("div",qm,[(0,n.Lk)("div",Zm,(0,l.v_)(e.inventoryItem.count),1),(0,n.Lk)("img",{src:e.inventoryItem.item.thumbnail,alt:e.inventoryItem.item.name},null,8,Jm)]),(0,n.Lk)("div",Ym,[(0,n.bF)(s,{text:e.inventoryItem.item.name},{default:(0,n.k6)((()=>[(0,n.Lk)("h4",null,(0,l.v_)(e.inventoryItem.item.name),1)])),_:1},8,["text"]),(0,n.bo)((0,n.Lk)("span",null,null,512),[[p,e.inventoryItem.item.price]])])]),(0,n.Lk)("div",$m,[(0,n.Lk)("i",{onClick:t[0]||(t[0]=(...t)=>e.decrement&&e.decrement(...t))},[(0,n.bF)(d,{class:(0,l.C4)({disabled:0===e.inventoryItem.selectedCount})},null,8,["class"])]),(0,n.Lk)("span",null,(0,l.v_)(e.inventoryItem.selectedCount),1),(0,n.Lk)("i",{onClick:t[1]||(t[1]=(...t)=>e.increment&&e.increment(...t))},[(0,n.bF)(c,{class:(0,l.C4)({disabled:e.inventoryItem.selectedCount===e.inventoryItem.count})},null,8,["class"])])]),(0,n.Lk)("div",eh,[(0,n.bo)((0,n.Lk)("span",null,null,512),[[p,e.calcSelectedPrice]])])])}var ah=(0,n.pM)({name:"InventoryItem",mixins:[em]});a(74565);const ih=(0,C.A)(ah,[["render",th],["__scopeId","data-v-4c5022b0"]]);var nh=ih;const oh={class:"bot"},rh={class:"info"},sh=["src","alt"];function lh(e,t,a,i,o,r){const s=(0,n.g2)("Button");return(0,n.uX)(),(0,n.CE)("div",oh,[(0,n.Lk)("div",rh,[(0,n.Lk)("img",{src:e.bot.avatar_url,alt:e.bot.name},null,8,sh),(0,n.Lk)("span",null,(0,l.v_)(e.bot.name),1)]),(0,n.bF)(s,{type:"primary",style:{width:"128px"},onClick:e.handleClick},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.join")),1)])),_:1},8,["onClick"])])}var dh=(0,n.pM)({name:"BotComponent",mixins:[gm]});a(36898);const ch=(0,C.A)(dh,[["render",lh],["__scopeId","data-v-2995b5b7"]]);var ph=ch;const uh={class:"pending-modal"},fh={class:"all-withdrawals"},gh={class:"pending-thumbnails"},mh=["src","alt"],hh={class:"item-count"},vh={class:"price"},xh={class:"buttons"};function bh(e,t,a,i,o,r){const s=(0,n.g2)("NotificationBanner"),d=(0,n.g2)("DotsLoader"),c=(0,n.g2)("Button"),p=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",uh,[(0,n.bF)(s,null,{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("modals.pending_withdrawal.subtitle")),1)])),_:1}),(0,n.Lk)("div",fh,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.withdrawals,(t=>((0,n.uX)(),(0,n.CE)("div",{key:t.id,class:"withdrawal"},[(0,n.Lk)("div",gh,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(t.items.slice(0,3),((e,t)=>((0,n.uX)(),(0,n.CE)("div",{class:"withdraw-item",key:e.id,style:(0,l.Tr)(`left: ${20*t}px`)},[(0,n.Lk)("img",{src:e.item.thumbnail,alt:e.item.name},null,8,mh),(0,n.Lk)("div",hh,(0,l.v_)(e.count),1)],4)))),128))]),(0,n.Lk)("div",vh,[(0,n.bo)((0,n.Lk)("span",null,null,512),[[p,e.getItemsTotalAmount(t)]])]),(0,n.Lk)("div",xh,[(0,n.bF)(c,{onClick:a=>e.refreshAfterCancel(t.id),disabled:e.isLoading,type:"primary__white",style:{width:"64px",height:"32px","font-size":"12px"}},{default:(0,n.k6)((()=>[e.isLoading?((0,n.uX)(),(0,n.Wv)(d,{key:0,small:""})):((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[(0,n.eW)((0,l.v_)(e.$t("buttons.cancel")),1)],64))])),_:1},8,["onClick","disabled"]),(0,n.bF)(c,{onClick:a=>e.$emit("proceed",t.id),type:"primary",style:{width:"64px",height:"32px","font-size":"12px"},disabled:e.isLoading},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.proceed")),1)])),_:1},8,["onClick","disabled"])])])))),128))])])}var wh=(0,n.pM)({name:"PendingModal",mixins:[Am]});a(54629);const yh=(0,C.A)(wh,[["render",bh],["__scopeId","data-v-5f765ac8"]]);var kh=yh,Ch=(0,n.pM)({name:"WithdrawMobile",components:{InventoryItem:nh,BotComponent:ph,PendingModal:kh},mixins:[dm]});a(45947);const Mh=(0,C.A)(Ch,[["render",Hm],["__scopeId","data-v-623ea52c"]]);var Lh=Mh,Ah=(0,n.pM)({name:"InventoryView",components:{WithdrawMobile:Lh,WithdrawDesktop:Fm},setup(){const{isMobile:e,isTablet:t}=Rd();return{isMobile:e,isTablet:t}}});const Ih=(0,C.A)(Ah,[["render",Ig]]);var Th=Ih;const _h={class:"referral-programm"};function Eh(e,t,a,i,o,r){const s=(0,n.g2)("ReferralProgramMobile"),l=(0,n.g2)("ReferralProgramDesktop");return(0,n.uX)(),(0,n.CE)("div",_h,[e.isMobile?((0,n.uX)(),(0,n.Wv)(s,{key:0})):((0,n.uX)(),(0,n.Wv)(l,{key:1}))])}const Sh={class:"top"},Fh={class:"referral-link"},Wh={class:"link-side"},jh={key:0,class:"copied-text"},Xh={class:"top"},Rh={key:0,class:"games-tabs"},zh={class:"top"};function Uh(e,t,a,i,o,r){const s=(0,n.g2)("CopyIcon"),d=(0,n.g2)("Button"),c=(0,n.g2)("ReferralInfo"),p=(0,n.g2)("Tabs"),u=(0,n.g2)("Statistics"),f=(0,n.g2)("ReferralUsers");return(0,n.uX)(),(0,n.CE)("section",null,[(0,n.Lk)("div",Sh,[(0,n.Lk)("h2",null,(0,l.v_)(e.$t("pages.referral_program.title")),1)]),(0,n.Lk)("div",Fh,[(0,n.Lk)("div",Wh,[(0,n.Lk)("span",null,(0,l.v_)(e.$t("pages.referral_program.referral_link")),1),(0,n.Lk)("div",null,[(0,n.Lk)("h1",{ref:"referralLink"},(0,l.v_)(`https://bloxup.gg/referral/${e.user.referral_code}`),513),(0,n.Lk)("i",{onClick:t[0]||(t[0]=(...t)=>e.copyReferralLink&&e.copyReferralLink(...t))},[(0,n.bF)(s)]),e.copied?((0,n.uX)(),(0,n.CE)("span",jh,"Copied!")):(0,n.Q3)("",!0)])]),(0,n.bF)(d,{style:{width:"236px",height:"44px"},type:"primary"},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.share")),1)])),_:1})]),(0,n.bF)(c,{referralInfo:e.referralInfo},null,8,["referralInfo"]),(0,n.Lk)("div",Xh,[(0,n.Lk)("h2",null,(0,l.v_)(e.$t("pages.referral_program.statistics")),1),e.games.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",Rh,[(0,n.bF)(p,{tabs:e.tabs},null,8,["tabs"])]))]),(0,n.bF)(u,{referralInfo:e.referralInfo},null,8,["referralInfo"]),(0,n.Lk)("div",zh,[(0,n.Lk)("h2",null,(0,l.v_)(e.$t("pages.referral_program.my_referrals")),1)]),(0,n.bF)(f,{users:e.users},null,8,["users"])])}const Dh={class:"referral-info"},Bh={class:"referral-box"},Vh={class:"referral-box"},Ph={class:"referral-box"},Oh={class:"referral-box"};function Gh(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",Dh,[(0,n.Lk)("div",Bh,[(0,n.Lk)("h2",null,(0,l.v_)(e.referralInfo.referrals_count),1),(0,n.Lk)("p",null,(0,l.v_)(e.$t("pages.referral_program.total_referrals")),1)]),(0,n.Lk)("div",Vh,[(0,n.Lk)("h2",null,(0,l.v_)(e.referralInfo.today_referrals_count),1),(0,n.Lk)("p",null,(0,l.v_)(e.$t("pages.referral_program.today_referrals")),1)]),(0,n.Lk)("div",Ph,[t[0]||(t[0]=(0,n.Lk)("h2",null,"0",-1)),(0,n.Lk)("p",null,(0,l.v_)(e.$t("pages.referral_program.today_rewards")),1)]),(0,n.Lk)("div",Oh,[t[1]||(t[1]=(0,n.Lk)("h2",null,"0",-1)),(0,n.Lk)("p",null,(0,l.v_)(e.$t("pages.referral_program.referral_rewards")),1)])])}var Qh=(0,n.pM)({props:{referralInfo:{type:Object,required:!0}}}),Hh=(0,n.pM)({name:"ReferralInfo",mixins:[Qh]});a(5279);const Nh=(0,C.A)(Hh,[["render",Gh],["__scopeId","data-v-5e484bf6"]]);var Kh=Nh;const qh={class:"referral-users"},Zh=["src","alt"];function Jh(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",qh,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.users,(a=>((0,n.uX)(),(0,n.CE)("div",{class:"users-box",key:a.id},[(0,n.Lk)("img",{src:a.avatar,alt:a.name},null,8,Zh),(0,n.Lk)("h3",null,(0,l.v_)(a.name),1),(0,n.Lk)("div",null,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.online_players")),1),t[0]||(t[0]=(0,n.Lk)("h2",null,"0",-1))]),(0,n.Lk)("div",null,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.total_bets")),1),(0,n.Lk)("h2",null,(0,l.v_)(a.total_bets_count),1)])])))),128))])}var Yh=(0,n.pM)({props:{users:{type:Array,required:!0}}}),$h=(0,n.pM)({name:"ReferralUsers",mixins:[Yh]});a(40147);const ev=(0,C.A)($h,[["render",Jh],["__scopeId","data-v-c53ef6b4"]]);var tv=ev;const av={class:"statistics"},iv={class:"statistics-box"},nv={class:"statistics-box"},ov={class:"statistics-box"};function rv(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",av,[(0,n.Lk)("div",iv,[(0,n.Lk)("h2",null,(0,l.v_)(e.referralInfo.total_bets_count),1),(0,n.Lk)("p",null,(0,l.v_)(e.$t("pages.referral_program.number_of_bets")),1)]),(0,n.Lk)("div",nv,[(0,n.Lk)("h2",null,(0,l.v_)(e.referralInfo.total_bets_items_count),1),(0,n.Lk)("p",null,(0,l.v_)(e.$t("pages.referral_program.items_count")),1)]),(0,n.Lk)("div",ov,[t[0]||(t[0]=(0,n.Lk)("h2",null,(0,l.v_)(0),-1)),(0,n.Lk)("p",null,(0,l.v_)(e.$t("pages.referral_program.total_value_of_all_items")),1)])])}var sv=(0,n.pM)({props:{referralInfo:{type:Object,required:!0}}}),lv=(0,n.pM)({name:"ReferralStatistic",mixins:[sv]});a(63951);const dv=(0,C.A)(lv,[["render",rv],["__scopeId","data-v-70dbe356"]]);var cv=dv;const pv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uv(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("svg",pv,[...t[0]||(t[0]=[(0,n.Lk)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 18L3.11662 17.9933C3.5757 17.9399 3.93995 17.5757 3.99327 17.1166L4 17V4H17L17.1166 3.99327C17.614 3.93551 18 3.51284 18 3C18 2.48716 17.614 2.06449 17.1166 2.00673L17 2H3L2.88338 2.00673C2.4243 2.06005 2.06005 2.4243 2.00673 2.88338L2 3V17L2.00673 17.1166C2.06005 17.5757 2.4243 17.9399 2.88338 17.9933L3 18ZM21 22L21.1166 21.9933C21.5757 21.94 21.94 21.5757 21.9933 21.1166L22 21V7L21.9933 6.88338C21.9444 6.46255 21.6343 6.12142 21.2293 6.02641L21.1166 6.00673L21 6H7L6.88338 6.00673C6.4243 6.06005 6.06005 6.4243 6.00673 6.88338L6 7V21L6.00673 21.1166C6.05561 21.5374 6.36575 21.8786 6.77071 21.9736L6.88338 21.9933L7 22H21ZM8 8V20H20V8H8Z",fill:"white","fill-opacity":"0.6"},null,-1)])])}var fv=(0,n.pM)({});const gv=(0,C.A)(fv,[["render",uv]]);var mv=gv,hv=(0,n.pM)({components:{Button:Ea,CopyIcon:mv,Tabs:_o},data(){return{referralInfo:{referrals_count:0,today_referrals_count:0},tabs:[{active:!0,label:"Coin Flip",value:qt.CoinFlip},{active:!1,label:"Wheel of Fortune",value:qt.WheelOfFortune}],statistics:{id:1,number_of_bets:131,number_of_items:200,value_alltime:"$12.269"},referralLink:(0,x.KR)(null),users:[],copied:!1}},computed:{activeTab(){return this.tabs.find((e=>e.active))||this.tabs[0]},games(){return this.$store.getters["games/data"]},user(){return this.$store.state.auth.user}},mounted(){this.getReferrals(),this.getReferralsInfo()},methods:{async copyReferralLink(){const e=this.$refs.referralLink;if(e)try{await navigator.clipboard.writeText(e.innerText),this.copied=!0,setTimeout((()=>{this.copied=!1}),2e3)}catch(t){console.error("Copy error",t)}},async getReferrals(){const e=await Ba.getReferrals();e.data.status&&(this.users=e.data.data)},async getReferralsInfo(){const e=await Ba.getReferralsInfo();e.data.status&&(this.referralInfo=e.data.data)}}}),vv=(0,n.pM)({name:"ReferralProgramDesktop",components:{ReferralInfo:Kh,Statistics:cv,ReferralUsers:tv},mixins:[hv]});a(52243);const xv=(0,C.A)(vv,[["render",Uh],["__scopeId","data-v-56b5e3e4"]]);var bv=xv;const wv={class:"top"},yv={class:"referral-link"},kv={class:"link-side"},Cv={key:0,class:"copied-text"},Mv={class:"top"},Lv={key:0,class:"games-tabs"},Av={class:"top"};function Iv(e,t,a,i,o,r){const s=(0,n.g2)("CopyIcon"),d=(0,n.g2)("Button"),c=(0,n.g2)("ReferralInfo"),p=(0,n.g2)("Tabs"),u=(0,n.g2)("Statistics"),f=(0,n.g2)("ReferralUsers");return(0,n.uX)(),(0,n.CE)("section",null,[(0,n.Lk)("div",wv,[(0,n.Lk)("h2",null,(0,l.v_)(e.$t("pages.referral_program.title")),1)]),(0,n.Lk)("div",yv,[(0,n.Lk)("div",kv,[(0,n.Lk)("span",null,(0,l.v_)(e.$t("pages.referral_program.referral_link")),1),(0,n.Lk)("div",null,[(0,n.Lk)("h1",{ref:"referralLink"},(0,l.v_)(`https://bloxup.gg/referral/${e.user.referral_code}`),513),(0,n.Lk)("i",{onClick:t[0]||(t[0]=(...t)=>e.copyReferralLink&&e.copyReferralLink(...t))},[(0,n.bF)(s)]),e.copied?((0,n.uX)(),(0,n.CE)("span",Cv,"Copied!")):(0,n.Q3)("",!0)])]),(0,n.bF)(d,{style:{width:"100%",height:"44px"},type:"primary"},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.share")),1)])),_:1})]),(0,n.bF)(c,{referralInfo:e.referralInfo},null,8,["referralInfo"]),(0,n.Lk)("div",Mv,[(0,n.Lk)("h2",null,(0,l.v_)(e.$t("pages.referral_program.statistics")),1),e.games.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",Lv,[(0,n.bF)(p,{tabs:e.tabs},null,8,["tabs"])]))]),(0,n.bF)(u,{referralInfo:e.referralInfo},null,8,["referralInfo"]),(0,n.Lk)("div",Av,[(0,n.Lk)("h2",null,(0,l.v_)(e.$t("pages.referral_program.my_referrals")),1)]),(0,n.bF)(f,{users:e.users},null,8,["users"])])}const Tv={class:"referral-info"},_v={class:"referral-box"},Ev={class:"referral-box"},Sv={class:"referral-box"},Fv={class:"referral-box"};function Wv(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",Tv,[(0,n.Lk)("div",_v,[(0,n.Lk)("h2",null,(0,l.v_)(e.referralInfo.referrals_count),1),(0,n.Lk)("p",null,(0,l.v_)(e.$t("pages.referral_program.total_referrals")),1)]),(0,n.Lk)("div",Ev,[(0,n.Lk)("h2",null,(0,l.v_)(e.referralInfo.today_referrals_count),1),(0,n.Lk)("p",null,(0,l.v_)(e.$t("pages.referral_program.today_referrals")),1)]),(0,n.Lk)("div",Sv,[t[0]||(t[0]=(0,n.Lk)("h2",null,"0",-1)),(0,n.Lk)("p",null,(0,l.v_)(e.$t("pages.referral_program.today_rewards")),1)]),(0,n.Lk)("div",Fv,[t[1]||(t[1]=(0,n.Lk)("h2",null,"0",-1)),(0,n.Lk)("p",null,(0,l.v_)(e.$t("pages.referral_program.referral_rewards")),1)])])}var jv=(0,n.pM)({name:"ReferralInfo",mixins:[Qh]});a(1169);const Xv=(0,C.A)(jv,[["render",Wv],["__scopeId","data-v-94609066"]]);var Rv=Xv;const zv={class:"referral-users"},Uv=["src","alt"];function Dv(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",zv,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.users,(a=>((0,n.uX)(),(0,n.CE)("div",{class:"users-box",key:a.id},[(0,n.Lk)("img",{src:a.avatar,alt:a.name},null,8,Uv),(0,n.Lk)("h3",null,(0,l.v_)(a.name),1),(0,n.Lk)("div",null,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.online_players")),1),t[0]||(t[0]=(0,n.Lk)("h2",null,"0",-1))]),(0,n.Lk)("div",null,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.total_bets")),1),(0,n.Lk)("h2",null,(0,l.v_)(a.total_bets_count),1)])])))),128))])}var Bv=(0,n.pM)({name:"ReferralUsers",mixins:[Yh]});a(23794);const Vv=(0,C.A)(Bv,[["render",Dv],["__scopeId","data-v-4876acec"]]);var Pv=Vv;const Ov={class:"statistics"},Gv={class:"statistics-box"},Qv={class:"statistics-box"},Hv={class:"statistics-box"};function Nv(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",Ov,[(0,n.Lk)("div",Gv,[(0,n.Lk)("h2",null,(0,l.v_)(e.referralInfo.total_bets_count),1),(0,n.Lk)("p",null,(0,l.v_)(e.$t("pages.referral_program.number_of_bets")),1)]),(0,n.Lk)("div",Qv,[(0,n.Lk)("h2",null,(0,l.v_)(e.referralInfo.total_bets_items_count),1),(0,n.Lk)("p",null,(0,l.v_)(e.$t("pages.referral_program.items_count")),1)]),(0,n.Lk)("div",Hv,[t[0]||(t[0]=(0,n.Lk)("h2",null,(0,l.v_)(0),-1)),(0,n.Lk)("p",null,(0,l.v_)(e.$t("pages.referral_program.total_value_of_all_items")),1)])])}var Kv=(0,n.pM)({name:"ReferralStatistic",mixins:[sv]});a(40250);const qv=(0,C.A)(Kv,[["render",Nv],["__scopeId","data-v-17b94101"]]);var Zv=qv,Jv=(0,n.pM)({name:"ReferralProgramMobile",components:{ReferralInfo:Rv,Statistics:Zv,ReferralUsers:Pv},mixins:[hv]});a(6265);const Yv=(0,C.A)(Jv,[["render",Iv],["__scopeId","data-v-466636a9"]]);var $v=Yv,ex=(0,n.pM)({name:"ReferralProgramView",components:{ReferralProgramMobile:$v,ReferralProgramDesktop:bv},setup(){const{isMobile:e,isTablet:t}=Rd();return{isMobile:e,isTablet:t}}});const tx=(0,C.A)(ex,[["render",Eh]]);var ax=tx;const ix={class:"leaderboard"};function nx(e,t,a,i,o,r){const s=(0,n.g2)("LeaderboardMobile"),l=(0,n.g2)("LeaderboardDesktop");return(0,n.uX)(),(0,n.CE)("div",ix,[e.isMobile?((0,n.uX)(),(0,n.Wv)(s,{key:0})):((0,n.uX)(),(0,n.Wv)(l,{key:1}))])}const ox={class:"buttons-wrapper"},rx={key:0,class:"games-tabs"},sx={key:1,class:"games-tabs"};function lx(e,t,a,i,o,r){const s=(0,n.g2)("Tabs"),l=(0,n.g2)("Statictics");return(0,n.uX)(),(0,n.CE)("section",null,[t[0]||(t[0]=(0,n.Lk)("div",{class:"top"},[(0,n.Lk)("h2",null,"Leaderboard")],-1)),(0,n.Lk)("div",ox,[e.games.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",rx,[(0,n.bF)(s,{tabs:e.tabs},null,8,["tabs"])])),e.games.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",sx,[(0,n.bF)(s,{tabs:e.timeTabs},null,8,["tabs"])]))]),(0,n.bF)(l,{leaderboard:e.leaderboard},null,8,["leaderboard"])])}const dx={class:"statistics"},cx={class:"user-name"},px=["src"],ux={key:0,class:"user-name"},fx=["src","alt"],gx={key:1};function mx(e,t,a,i,o,r){const s=(0,n.g2)("Table"),d=(0,n.g2)("Section");return(0,n.uX)(),(0,n.Wv)(d,{label:"",usePing:!1},{"top-button":(0,n.k6)((()=>[...t[0]||(t[0]=[])])),default:(0,n.k6)((()=>[(0,n.Lk)("div",dx,[(0,n.bF)(s,{data:e.formattedLeaderboard,columns:e.tableColumns,highlightTop:!0,highlightRowIndex:e.authUserRowIndex},{"cell(#)":(0,n.k6)((e=>[(0,n.eW)((0,l.v_)(e.row.id),1)])),"cell(name)":(0,n.k6)((e=>[(0,n.Lk)("div",cx,[(0,n.Lk)("img",{src:e.row.user.avatar,alt:"Username"},null,8,px),(0,n.Lk)("span",null,(0,l.v_)(e.row.user.name),1)])])),"cell(prize)":(0,n.k6)((e=>[e.value?((0,n.uX)(),(0,n.CE)("div",ux,[(0,n.Lk)("img",{src:e.value.thumbnail,alt:e.value?.name},null,8,fx),(0,n.Lk)("span",null,(0,l.v_)(e.value?.name),1)])):((0,n.uX)(),(0,n.CE)("div",gx,[...t[1]||(t[1]=[(0,n.Lk)("span",null,"-",-1)])]))])),_:1},8,["data","columns","highlightRowIndex"])])])),_:1})}const hx={class:"table-wrapper"},vx=["innerHTML"],xx={key:1,class:"highlight-top highlight-row"};function bx(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",hx,[(0,n.Lk)("table",null,[(0,n.Lk)("thead",null,[(0,n.Lk)("tr",null,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.columnsData,((t,a)=>((0,n.uX)(),(0,n.CE)("th",{key:a,style:(0,l.Tr)("string"!==typeof t?t.style:""),innerHTML:"string"!==typeof t&&t.label?t.label:e.columnLabels[a]},null,12,vx)))),128))])]),(0,n.Lk)("tbody",null,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.data,((t,a)=>((0,n.uX)(),(0,n.CE)("tr",{key:a},[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.columnsData,((i,o)=>((0,n.uX)(),(0,n.CE)("td",{key:o,style:(0,l.Tr)(e.rowStyle(t,a))},[e.slots[`cell(${"string"===typeof i?i:i.key})`]?(0,n.RG)(e.$slots,`cell(${"string"===typeof i?i:i.key})`,{key:0,value:t[e.columnKeys[o]],row:t,rowIndex:a,column:i},void 0,!0):((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[(0,n.eW)((0,l.v_)(t[e.columnKeys[o]]),1)],64))],4)))),128)),e.highlightTop&&a<3?((0,n.uX)(),(0,n.CE)("div",{key:0,class:(0,l.C4)(["highlight-top","highlight-top-"+(a%3+1)])},null,2)):null!==e.highlightRowIndex&&a===e.highlightRowIndex?((0,n.uX)(),(0,n.CE)("div",xx)):(0,n.Q3)("",!0)])))),128))])])])}var wx=(0,n.pM)({name:"TableComponent",props:{data:{type:Array,required:!0},highlightTop:{type:Boolean,default:!1},highlightRowIndex:{type:Number,default:null},columns:Array,rowStyle:{type:Function,default:()=>({})}},setup(){const e=(0,n.Ht)();return{slots:e}},computed:{columnsData(){return this.columns?this.columns:this.data.length?Object.keys(this.data[0]):[]},columnKeys(){return this.columnsData.map((e=>"string"!==typeof e?e.key:e))},columnLabels(){return this.columnKeys.map(this.formatKey)}},methods:{formatKey(e){return e.replace(/([A-Z])/g," $1").replace(/^./,(e=>e.toUpperCase()))}}});a(61079);const yx=(0,C.A)(wx,[["render",bx],["__scopeId","data-v-6fcd139a"]]);var kx=yx,Cx=(0,n.pM)({components:{Table:kx,Section:rc,Tooltip:$g},props:{leaderboard:{type:Array,required:!0}},data(){return{tableColumns:["#","name","profit","wagered",{label:"Bets, quantity",key:"bets_quantity",style:{}},{label:"Bets, amount",key:"bets_amount",style:{}},{label:"Prize",key:"prize",style:{maxWidth:"200px"}}]}},computed:{formattedLeaderboard(){return this.leaderboard.map((e=>({id:e.position,user:e.user,profit:e.profit,bets_quantity:e.bets_amount,wagered:e.total_bet,bets_amount:e.total_bet,prize:e.prize})))},authUserRowIndex(){return this.authUser?this.formattedLeaderboard.findIndex((e=>e.user.id===this.authUser.id)):null},authUser(){return this.$store.getters["auth/user"]}}}),Mx=(0,n.pM)({name:"StatisticsSection",mixins:[Cx]});a(60683);const Lx=(0,C.A)(Mx,[["render",mx],["__scopeId","data-v-649f778b"]]);var Ax=Lx,Ix=(0,n.pM)({data(){return{tabs:[],timeTabs:[{active:!0,value:"week",label:"7d"},{active:!1,value:"day",label:"24h"},{active:!1,value:"month",label:"1m"}],leaderboard:[]}},components:{Tabs:_o},computed:{games(){return this.$store.getters["games/data"]},activeTab(){return this.tabs.find((e=>e.active))},activeTimeTab(){return this.timeTabs.find((e=>e.active))}},methods:{async getTabs(){this.tabs=this.games.data.map(((e,t)=>({active:0===t,disabled:!1,label:e.name,value:e.slug})))},async getLeaderboard(){if(!this.activeTab||!this.activeTimeTab)return;const e=await Ba.getLeaderboard(this.activeTab.value,this.activeTimeTab.value);this.leaderboard=e.data.entries}},async mounted(){await this.getTabs(),await this.getLeaderboard(),(0,n.wB)((()=>this.activeTab),(()=>this.getLeaderboard())),(0,n.wB)((()=>this.activeTimeTab),(()=>this.getLeaderboard()))}}),Tx=(0,n.pM)({name:"LeaderboardDesktop",components:{Statictics:Ax},mixins:[Ix]});a(47014);const _x=(0,C.A)(Tx,[["render",lx],["__scopeId","data-v-5f7aa6c2"]]);var Ex=_x;const Sx={class:"buttons-wrapper"},Fx={key:0,class:"games-tabs"},Wx={key:1,class:"games-tabs"};function jx(e,t,a,i,o,r){const s=(0,n.g2)("Tabs"),l=(0,n.g2)("Statictics");return(0,n.uX)(),(0,n.CE)("section",null,[t[0]||(t[0]=(0,n.Lk)("div",{class:"top"},[(0,n.Lk)("h2",null,"Leaderboard")],-1)),(0,n.Lk)("div",Sx,[e.games.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",Fx,[(0,n.bF)(s,{tabs:e.tabs},null,8,["tabs"])])),e.games.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",Wx,[(0,n.bF)(s,{tabs:e.timeTabs},null,8,["tabs"])]))]),(0,n.bF)(l,{leaderboard:e.leaderboard},null,8,["leaderboard"])])}const Xx={class:"statistics"},Rx={class:"user-name-id"},zx={class:"user-name"},Ux=["src"],Dx={key:0,class:"user-name-id"},Bx=["src","alt"],Vx={key:1};function Px(e,t,a,i,o,r){const s=(0,n.g2)("Table"),d=(0,n.g2)("Section");return(0,n.uX)(),(0,n.Wv)(d,{label:"",usePing:!1},{"top-button":(0,n.k6)((()=>[...t[0]||(t[0]=[])])),default:(0,n.k6)((()=>[(0,n.Lk)("div",Xx,[(0,n.bF)(s,{data:e.formattedLeaderboard,columns:e.tableColumns,highlightTop:!0,highlightRowIndex:e.authUserRowIndex},{"cell(name)":(0,n.k6)((e=>[(0,n.Lk)("div",Rx,[(0,n.Lk)("span",null,(0,l.v_)(e.row.id),1),(0,n.Lk)("div",zx,[(0,n.Lk)("img",{src:e.row.user.avatar,alt:"Username"},null,8,Ux),(0,n.Lk)("span",null,(0,l.v_)(e.row.user.name),1)])])])),"cell(profit-wagered)":(0,n.k6)((e=>[(0,n.Lk)("div",null,(0,l.v_)(e.row.profit),1),(0,n.Lk)("div",null,(0,l.v_)(e.row.wagered),1)])),"cell(bets_quantity-amount)":(0,n.k6)((e=>[(0,n.Lk)("div",null,(0,l.v_)(e.row.bets_amount),1),(0,n.Lk)("div",null,(0,l.v_)(e.row.bets_quantity),1)])),"cell(prize)":(0,n.k6)((e=>[e.value?((0,n.uX)(),(0,n.CE)("div",Dx,[(0,n.Lk)("img",{src:e.value.thumbnail,alt:e.value?.name},null,8,Bx)])):((0,n.uX)(),(0,n.CE)("div",Vx,[...t[1]||(t[1]=[(0,n.Lk)("span",null,"-",-1)])]))])),_:1},8,["data","columns","highlightRowIndex"])])])),_:1})}var Ox=(0,n.pM)({name:"StatisticsSection",components:{Table:kx,Section:rc},props:{leaderboard:{type:Array,required:!0}},data(){return{tableColumns:["name",{label:"Profit,
Wagered",key:"profit-wagered"},{label:"Bets, amount
Bets, quantity",key:"bets_quantity-amount",style:{}},"prize"]}},computed:{formattedLeaderboard(){return this.leaderboard.map((e=>({id:e.position,user:e.user,profit:e.profit,bets_quantity:e.bets_amount,wagered:e.total_bet,bets_amount:e.total_bet,prize:e.prize})))},authUserRowIndex(){return this.authUser?this.formattedLeaderboard.findIndex((e=>e.user.id===this.authUser.id)):null},authUser(){return this.$store.getters["auth/user"]}}});a(51135);const Gx=(0,C.A)(Ox,[["render",Px],["__scopeId","data-v-1121acff"]]);var Qx=Gx,Hx=(0,n.pM)({name:"LeaderboardMobile",components:{Statictics:Qx},mixins:[Ix]});a(94601);const Nx=(0,C.A)(Hx,[["render",jx],["__scopeId","data-v-1570dc73"]]);var Kx=Nx,qx=(0,n.pM)({name:"LeaderboardView",components:{LeaderboardDesktop:Ex,LeaderboardMobile:Kx},setup(){const{isMobile:e,isTablet:t}=Rd();return{isMobile:e,isTablet:t}}});const Zx=(0,C.A)(qx,[["render",nx]]);var Jx=Zx;const Yx={class:"coin-flip"};function $x(e,t,a,i,o,r){const s=(0,n.g2)("MobileCoinFlip"),l=(0,n.g2)("DesktopCoinFlip");return(0,n.uX)(),(0,n.CE)("div",Yx,[e.isMobile?((0,n.uX)(),(0,n.Wv)(s,{key:0})):((0,n.uX)(),(0,n.Wv)(l,{key:1}))])}const eb={class:"buttons-wrapper"},tb={class:"games-tabs"},ab={class:"buttons"},ib={key:0,class:"casino-game-rooms",ref:"room-list"},nb=["src"];function ob(e,t,i,o,r,s){const d=(0,n.g2)("Tabs"),c=(0,n.g2)("Button"),p=(0,n.g2)("CasinoGameRoom"),u=(0,n.g2)("DotsLoader"),f=(0,n.g2)("CreateModal"),g=(0,n.g2)("Modal"),m=(0,n.g2)("JoinModal"),h=(0,n.g2)("ViewModal");return(0,n.uX)(),(0,n.CE)("section",null,[t[6]||(t[6]=(0,n.Lk)("div",{class:"top"},[(0,n.Lk)("h2",null,"Coin Flip")],-1)),(0,n.Lk)("div",eb,[(0,n.Lk)("div",tb,[(0,n.bF)(d,{tabs:e.tabs,onChange:e.changeTab},null,8,["tabs","onChange"])]),(0,n.Lk)("div",ab,[(0,n.bF)(d,{tabs:e.filterTabs,onChange:e.changeFilterTab},null,8,["tabs","onChange"]),(0,n.bF)(c,{type:"primary",onClick:e.handleCreate},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.create")),1)])),_:1},8,["onClick"])])]),e.rooms.data.size?((0,n.uX)(),(0,n.CE)("div",ib,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.sortedRooms,(t=>((0,n.uX)(),(0,n.Wv)(p,{key:t.id,room:t,onJoin:a=>e.setRoomToJoin(t),onView:a=>e.setRoomToView(t)},null,8,["room","onJoin","onView"])))),128))],512)):(0,n.Q3)("",!0),e.rooms.loading?((0,n.uX)(),(0,n.Wv)(u,{key:1})):(0,n.Q3)("",!0),e.showCreateModal?((0,n.uX)(),(0,n.Wv)(g,{key:2,onClose:t[1]||(t[1]=t=>e.showCreateModal=!1),img:"Modal-background.png",name:e.$t("modals.create.title",{gameLabel:"Coinflip"})},{default:(0,n.k6)((()=>[(0,n.bF)(f,{onClose:t[0]||(t[0]=t=>e.showCreateModal=!1),activeTab:e.activeTab},null,8,["activeTab"])])),_:1},8,["name"])):(0,n.Q3)("",!0),e.roomToJoin?((0,n.uX)(),(0,n.Wv)(g,{key:3,onClose:t[3]||(t[3]=t=>e.setRoomToJoin(null)),img:"Modal-background.png",name:e.$t("modals.join.title",{gameLabel:"Coinflip"})},{default:(0,n.k6)((()=>[(0,n.bF)(m,{onClose:t[2]||(t[2]=t=>e.setRoomToJoin(null)),room:e.roomToJoin,activeTab:e.activeTab},null,8,["room","activeTab"])])),_:1},8,["name"])):(0,n.Q3)("",!0),e.roomToView?((0,n.uX)(),(0,n.Wv)(g,{key:4,onClose:t[5]||(t[5]=t=>e.setRoomToView(null)),img:"View-modal-background.png",name:e.$t("modals.view.title",{round:e.roomToView.id})},{"background-image":(0,n.k6)((()=>[(0,n.Lk)("img",{class:"view-modal-background",src:a(60694),alt:"view background"},null,8,nb)])),default:(0,n.k6)((()=>[(0,n.bF)(h,{onClose:t[4]||(t[4]=t=>e.setRoomToView(null)),room:e.roomToView},null,8,["room"])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}const rb={default:[],"my-games":[Yt.started,Yt.pending,Yt.finished]};var sb=(0,n.pM)({components:{Tabs:_o,Button:Ea,Modal:vn,DotsLoader:Fi},data(){return{CasinoGameSlug:qt,showCreateModal:!1,showJoinRoomModal:!1,tabs:[],filterTabs:[{active:!this.$route.query.filterTab||"default"===this.$route.query.filterTab,label:"global.all",value:"default"},{label:"global.my_games",value:"my-games",active:"my-games"===this.$route.query.filterTab}]}},watch:{activeTab(e,t){t&&this.$privateSocket.emit("leaveCasinoGame",{game_slug:t.value,casino_game_slug:qt.CoinFlip}),this.$privateSocket.emit("joinCasinoGame",{game_slug:e.value,casino_game_slug:qt.CoinFlip})}},computed:{activeFilterTab(){return this.filterTabs.find((e=>e.active))},activeTab(){return this.tabs.find((e=>e.active))},games(){return this.$store.getters["games/data"]},rooms(){return this.$store.getters["coinFlip/rooms"]},sortedRooms(){const e=this.rooms.data;return e instanceof Map?[...e.values()].sort(((e,t)=>t.configs.totalBetAmount-e.configs.totalBetAmount)).sort(((e,t)=>{const a=rb[this.activeFilterTab.value];return 0===a.length?0:a.indexOf(e.status)-a.indexOf(t.status)})):[]},...(0,Sa.L8)({roomToView:"coinFlip/roomToView",roomToJoin:"coinFlip/roomToJoin"})},async mounted(){await this.setTabs()},methods:{...(0,Sa.i0)({setRoomToView:"coinFlip/setRoomToView",setRoomToJoin:"coinFlip/setRoomToJoin",getRooms:"coinFlip/getRooms"}),async handleCreate(){this.showCreateModal=!0},async changeFilterTab(){this.getRooms({game_slug:this.activeTab.value,forPage:this.activeFilterTab.value}),this.$router.replace({name:"coin-flip",params:{gameSlug:this.activeTab.value},query:{...this.$route.query,filterTab:this.activeFilterTab.value}})},async changeTab(e){this.$route.params.gameSlug!==e.value&&(this.$router.replace({name:"coin-flip",params:{gameSlug:e.value},query:{...this.$route.query,filterTab:this.activeFilterTab.value}}),await this.getRooms({game_slug:e.value,forPage:this.activeFilterTab.value}))},async setTabs(){this.tabs=this.games.data.map((e=>({active:e.slug===this.$route.params.gameSlug,disabled:!1,label:e.name,value:e.slug})))}}}),lb=a(57517);const db={class:"casino-game-room"},cb={class:"left"},pb={key:2,style:{width:"140px"}},ub={class:"right"},fb={class:"items-with-count"},gb={class:"room-participant-items"},mb={key:0,class:"counter"},hb={style:{width:"52px"}},vb={key:0,class:"amount"},xb={class:"amount-range"},bb={key:1,class:"total-amount"},wb={class:"actions"};function yb(e,t,a,i,o,r){const s=(0,n.g2)("Participant"),d=(0,n.g2)("RoomParticipantItem"),c=(0,n.g2)("TimerWithCoinAnimation"),p=(0,n.g2)("Button"),u=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",db,[(0,n.Lk)("div",cb,[e.participants.first?((0,n.uX)(),(0,n.Wv)(s,{key:0,participant:e.participants.first,showWinner:e.showWinner},null,8,["participant","showWinner"])):(0,n.Q3)("",!0),t[3]||(t[3]=(0,n.Lk)("div",{class:"vs"},[(0,n.Lk)("img",{src:lb,alt:"VS"})],-1)),e.participants.second?((0,n.uX)(),(0,n.Wv)(s,{key:1,participant:e.participants.second,showWinner:e.showWinner,reverse:""},null,8,["participant","showWinner"])):((0,n.uX)(),(0,n.CE)("div",pb))]),(0,n.Lk)("div",ub,[(0,n.Lk)("div",fb,[(0,n.Lk)("div",gb,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.roomParticipantItemsSliced,((e,t)=>((0,n.uX)(),(0,n.Wv)(d,{key:e.id,index:t,participantItem:e},null,8,["index","participantItem"])))),128))]),e.roomParticipantItemsAdditionalCount?((0,n.uX)(),(0,n.CE)("span",mb," +"+(0,l.v_)(e.roomParticipantItemsAdditionalCount),1)):(0,n.Q3)("",!0)]),(0,n.Lk)("div",hb,[((0,n.uX)(),(0,n.Wv)(c,{room:e.room,winner:e.winner,onDone:t[0]||(t[0]=t=>e.showWinner=!0),key:e.room.id},null,8,["room","winner"]))]),"pending"==e.room.status?((0,n.uX)(),(0,n.CE)("div",vb,[(0,n.bo)((0,n.Lk)("span",null,null,512),[[u,e.room.configs.totalBetAmount]]),(0,n.Lk)("span",xb,[(0,n.bo)((0,n.Lk)("span",null,null,512),[[u,Math.round(e.room.configs.totalBetAmount-e.room.configs.totalBetAmount/10)]]),t[4]||(t[4]=(0,n.eW)(" - ",-1)),(0,n.bo)((0,n.Lk)("span",null,null,512),[[u,Math.round(e.room.configs.totalBetAmount+e.room.configs.totalBetAmount/10)]])])])):(0,n.bo)(((0,n.uX)(),(0,n.CE)("div",bb,null,512)),[[u,e.room.configs.totalBetAmount]]),(0,n.Lk)("div",wb,["pending"!==e.room.status||e.existsInRoom?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.Wv)(p,{key:0,onClick:t[1]||(t[1]=t=>e.$emit("join")),type:"primary",style:{width:"unset","flex-grow":"1",height:"32px","border-radius":"12px"}},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.join")),1)])),_:1})),(0,n.bF)(p,{onClick:t[2]||(t[2]=t=>e.$emit("view")),type:"outlined__white",style:{width:"unset","flex-grow":"1"}},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.view")),1)])),_:1})])])])}var kb=(0,n.pM)({components:{Button:Ea},props:{room:{type:Object,required:!0}},data(){return{showWinner:!1}},computed:{participants(){return{first:this.room.participants[0],second:this.room.participants.length>1?this.room.participants[1]:null}},winner(){return this.room.participants.find((e=>e.meta.winner))},existsInRoom(){return!!this.room.participants.find((e=>e.user.name===this.$store.state.auth.user.name))},roomParticipantItemsAdditionalCount(){const e=this.roomParticipantItems.length-3;return e<0?0:e},roomParticipantItemsSliced(){return this.roomParticipantItems.slice(0,3)},roomParticipantItems(){return this.room.participants.reduce(((e,t)=>((t.participantItems||[]).forEach((t=>{const a=e.find((e=>e.item.id===t.item.id));a?a.count+=t.count:e.push({...t})})),e)),[])}}});const Cb={key:0},Mb={key:1};function Lb(e,t,a,i,o,r){const s=(0,n.g2)("ParticipantAvatar");return(0,n.uX)(),(0,n.CE)("div",{class:(0,l.C4)(["participant",{reverse:e.reverse}])},[e.reverse?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("span",Cb,(0,l.v_)(e.participant.user.name),1)),(0,n.bF)(s,{participant:e.participant,"show-winner":e.showWinner},null,8,["participant","show-winner"]),e.reverse?((0,n.uX)(),(0,n.CE)("span",Mb,(0,l.v_)(e.participant.user.name),1)):(0,n.Q3)("",!0)],2)}const Ab=["src"],Ib={key:0,class:"winner"},Tb=["src","alt"];function _b(e,t,o,r,s,d){return(0,n.uX)(),(0,n.CE)("div",(0,n.v6)({class:"avatar-wrapper"},e.$attrs),[(0,n.Lk)("div",{class:(0,l.C4)(["avatar",{winner:e.participant.meta.winner&&e.showWinner}])},[(0,n.Lk)("img",{src:e.participant.user.avatar,alt:"Avatar"},null,8,Ab),e.participant.meta.winner?(0,n.bo)(((0,n.uX)(),(0,n.CE)("div",Ib,[...t[0]||(t[0]=[(0,n.Lk)("span",null," WIN ",-1)])],512)),[[i.aG,e.showWinner]]):(0,n.Q3)("",!0)],2),!e.showWinner&&e.showSide?((0,n.uX)(),(0,n.CE)("img",{key:0,class:"side",src:a(69843)(`./${e.participant.meta.side}.png`),alt:e.participant.meta.side},null,8,Tb)):(0,n.Q3)("",!0)],16)}var Eb=(0,n.pM)({props:{participant:{type:Object,required:!0},showWinner:{type:Boolean,default:!1},showSide:{type:Boolean,default:!0}}}),Sb=(0,n.pM)({mixins:[Eb]});a(21497);const Fb=(0,C.A)(Sb,[["render",_b],["__scopeId","data-v-2c02f478"]]);var Wb=Fb,jb=(0,n.pM)({props:{reverse:{type:Boolean,default:!1},participant:{type:Object,required:!0},showWinner:{type:Boolean,default:!1}}}),Xb=(0,n.pM)({name:"ParticipantComponent",mixins:[jb],components:{ParticipantAvatar:Wb}});a(48800);const Rb=(0,C.A)(Xb,[["render",Lb],["__scopeId","data-v-d9848d34"]]);var zb=Rb;function Ub(e,t,a,i,o,r){const s=(0,n.g2)("TimeCounter"),d=(0,n.g2)("FlipAnimation");return(0,n.uX)(),(0,n.CE)(n.FK,null,["started"==e.room.status?((0,n.uX)(),(0,n.Wv)(s,{key:0})):(0,n.Q3)("",!0),e.winner?((0,n.uX)(),(0,n.Wv)(d,{style:(0,l.Tr)(e.flipAnimationStyle),animate:!!e.room.animate,side:e.winner.meta.side,key:e.room.id,onDone:t[0]||(t[0]=t=>e.$emit("done"))},null,8,["style","animate","side"])):(0,n.Q3)("",!0)],64)}var Db=(0,n.pM)({name:"TimerWithCoinAnimation",emits:["done"],props:{flipAnimationStyle:{type:String,required:!1},winner:{type:Object,required:!1},room:{type:Object,required:!0}}});const Bb={class:"coin-flip-container"},Vb=["src"],Pb=["src"];function Ob(e,t,i,o,r,s){return(0,n.uX)(),(0,n.CE)("div",Bb,[(0,n.Lk)("div",(0,n.v6)({class:"coin-scene"},e.$attrs),[(0,n.Lk)("div",{class:(0,l.C4)(["coin",{animate:e.animate}]),style:(0,l.Tr)({transform:e.finalRotation}),onTransitionend:t[0]||(t[0]=t=>e.isFlipping=!1),ref:"coin"},[(0,n.Lk)("img",{class:"coin-face front",src:a(97558),alt:"Heads"},null,8,Vb),(0,n.Lk)("img",{class:"coin-face back",src:a(25202),alt:"Tails"},null,8,Pb)],38)],16)])}var Gb=(0,n.pM)({props:{side:{type:String,required:!0},animate:{type:Boolean,default:!0}},data(){return{isFlipping:!1,finalRotation:"rotateY(0deg)"}},mounted(){this.animate?setTimeout((()=>{this.$refs.coin,this.flipCoin()}),100):(this.flipCoin(),this.$emit("done"))},methods:{flipCoin(){if(this.isFlipping)return;this.isFlipping=!0;const e=5+Math.floor(3*Math.random()),t="front"==this.side,a=t?0:180,i=360*e+a;this.finalRotation=`rotateY(${i}deg)`,this.animate&&setTimeout((()=>{this.$emit("done")}),3e3)}}}),Qb=(0,n.pM)({mixins:[Gb]});a(22877);const Hb=(0,C.A)(Qb,[["render",Ob],["__scopeId","data-v-33763f24"]]);var Nb=Hb;const Kb={class:"countdown-container"},qb={viewBox:"0 0 48 48",class:"countdown-svg",xmlns:"http://www.w3.org/2000/svg"},Zb=["transform"],Jb=["fill"],Yb={class:"headline",x:"24",y:"26","dominant-baseline":"middle","text-anchor":"middle"};function $b(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",Kb,[((0,n.uX)(),(0,n.CE)("svg",qb,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.segments,((t,a)=>((0,n.uX)(),(0,n.CE)("g",{key:a,transform:`rotate(${t.rotate} 24 24) translate(16, 2)`},[(0,n.Lk)("path",{d:"M0.27208 3.24865C0.0871808 2.72823 0.358683 2.15434 0.886321 1.99119C5.61237 0.529897 10.675 0.559614 15.3835 2.07629C15.9092 2.24562 16.174 2.82266 15.983 3.34087L15.0082 5.9856C14.8172 6.5038 14.2428 6.76638 13.7154 6.60253C10.0669 5.469 6.16272 5.44609 2.50116 6.5367C1.97186 6.69436 1.40063 6.42505 1.21573 5.90464L0.27208 3.24865Z",fill:a({rotate:360-t*(360/this.totalSegments)-360/this.totalSegments,color:this.gradientColors[t%this.gradientColors.length]})));const e=setInterval((()=>{this.seconds-=.5,this.activeSegments-=1,0==this.seconds&&clearInterval(e)}),500)}}),tw=(0,n.pM)({mixins:[ew]});a(15691);const aw=(0,C.A)(tw,[["render",$b],["__scopeId","data-v-76876387"]]);var iw=aw,nw=(0,n.pM)({name:"TimerWithCoinAnimation",mixins:[Db],components:{TimeCounter:iw,FlipAnimation:Nb}});const ow=(0,C.A)(nw,[["render",Ub]]);var rw=ow;const sw={class:"item-count"},lw=["src","alt"];function dw(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",{class:"room-participant-item",style:(0,l.Tr)(`left: ${e.left}px`)},[(0,n.Lk)("div",sw,(0,l.v_)(e.participantItem.count),1),(0,n.Lk)("img",{src:e.participantItem.item.thumbnail,alt:e.participantItem.item.name},null,8,lw)],4)}var cw=(0,n.pM)({props:{participantItem:{type:Object,required:!0},index:{type:Number,required:!0}},computed:{left(){return 20*this.index}}}),pw=(0,n.pM)({mixins:[cw]});a(513);const uw=(0,C.A)(pw,[["render",dw],["__scopeId","data-v-44f7615f"]]);var fw=uw,gw=(0,n.pM)({mixins:[kb],components:{Participant:zb,TimerWithCoinAnimation:rw,RoomParticipantItem:fw},watch:{"$i18n.locale"(){this.syncActionsWith()}},mounted(){this.syncActionsWith()},methods:{syncActionsWith(){const e=document.querySelectorAll(".actions");let t=!1;const a=()=>{t||(t=!0,requestAnimationFrame((()=>{let a=0;e.forEach((e=>{e.style.width="auto",a=Math.max(a,e.offsetWidth)})),e.forEach((e=>{e.style.width=a+"px"})),t=!1})))},i=new ResizeObserver(a);e.forEach((e=>i.observe(e)))}}});a(21290);const mw=(0,C.A)(gw,[["render",yb],["__scopeId","data-v-2a4d90f5"]]);var hw=mw;const vw={class:"create-modal"},xw={class:"filters"},bw={class:"inventory"},ww={class:"list"},yw={key:0,class:"empty"},kw={key:1,class:"items-list"},Cw={class:"select-side"},Mw={class:"side-content"},Lw={class:"sides"},Aw=["src","alt"],Iw=["src","alt"],Tw={class:"select-game-for-deposit"},_w={class:"deposit-games"};function Ew(e,t,i,o,r,s){const d=(0,n.g2)("SearchInput"),c=(0,n.g2)("Select"),p=(0,n.g2)("EmptySearch"),u=(0,n.g2)("Button"),f=(0,n.g2)("InventoryItem"),g=(0,n.g2)("DepositGame"),m=(0,n.g2)("Modal"),h=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",vw,[(0,n.Lk)("div",xw,[(0,n.bF)(d,{modelValue:e.searchText,"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchText=t)},null,8,["modelValue"]),(0,n.bF)(c,{modelValue:e.sortSelected,"onUpdate:modelValue":t[1]||(t[1]=t=>e.sortSelected=t),options:e.sortItems},null,8,["modelValue","options"]),(0,n.bF)(c,{modelValue:e.gameSelected,"onUpdate:modelValue":t[2]||(t[2]=t=>e.gameSelected=t),options:e.gameItems},null,8,["modelValue","options"])]),(0,n.Lk)("div",bw,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("modals.select_item")),1),(0,n.Lk)("div",ww,[e.items.length?((0,n.uX)(),(0,n.CE)("div",kw,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.sortedItems,(e=>((0,n.uX)(),(0,n.Wv)(f,{inventoryItem:e,modelValue:e.selectedCount,"onUpdate:modelValue":t=>e.selectedCount=t,key:e.id},null,8,["inventoryItem","modelValue","onUpdate:modelValue"])))),128))])):((0,n.uX)(),(0,n.CE)("div",yw,[(0,n.Lk)("span",null,[(0,n.bF)(p)]),(0,n.Lk)("div",null,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.empty_state")),1),(0,n.bF)(u,{onClick:e.handleDeposit,type:"primary__white",style:{height:"48px"}},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.deposit_items")),1)])),_:1},8,["onClick"])])]))])]),(0,n.Lk)("div",Cw,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("modals.create.select_side")),1),(0,n.Lk)("div",Mw,[(0,n.Lk)("div",Lw,[(0,n.Lk)("div",{class:(0,l.C4)(["side",{selected:e.side}]),onClick:t[3]||(t[3]=t=>e.side=!0)},[(0,n.Lk)("img",{src:a(40031),alt:e.sideSelected},null,8,Aw)],2),(0,n.Lk)("div",{class:(0,l.C4)(["side",{selected:!e.side}]),onClick:t[4]||(t[4]=t=>e.side=!1)},[(0,n.Lk)("img",{src:a(64849),alt:e.sideSelected},null,8,Iw)],2)]),(0,n.bF)(u,{type:"primary",style:{height:"60px",width:"200px"},onClick:e.createRoom,disabled:e.isCreating||0===e.calcSelectedPrice},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.create_with"))+" ",1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[h,e.calcSelectedPrice]])])),_:1},8,["onClick","disabled"])])]),e.showDepositModal?((0,n.uX)(),(0,n.Wv)(m,{key:0,onClose:t[5]||(t[5]=t=>e.showDepositModal=!1),img:"Modal-background.png",name:e.$t("buttons.deposit")},{default:(0,n.k6)((()=>[(0,n.Lk)("div",Tw,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("global.select_game")),1),(0,n.Lk)("div",_w,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.games.data,(e=>((0,n.uX)(),(0,n.Wv)(g,{game:e,key:e.id},null,8,["game"])))),128))])])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}const Sw={class:"selected-value"},Fw={key:0,class:"dropdown"},Ww=["onClick"];function jw(e,t,a,o,r,s){const d=(0,n.g2)("Arrow");return(0,n.uX)(),(0,n.CE)("div",{class:(0,l.C4)(["custom-select",[e.$attrs.class,{open:e.isOpen}]]),onClick:t[0]||(t[0]=(...t)=>e.toggleDropdown&&e.toggleDropdown(...t)),onKeydown:t[1]||(t[1]=(0,i.jR)((t=>e.isOpen=!1),["escape"])),tabindex:"0"},[(0,n.Lk)("div",Sw,(0,l.v_)(e.selectedLabel),1),(0,n.Lk)("span",{class:(0,l.C4)(["arrow",{open:e.isOpen}])},[(0,n.bF)(d)],2),e.isOpen?((0,n.uX)(),(0,n.CE)("ul",Fw,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.options,(t=>((0,n.uX)(),(0,n.CE)("li",{key:t.value,class:(0,l.C4)({selected:t.value===e.modelValue}),onClick:(0,i.D$)((a=>e.selectOption(t.value)),["stop"])},(0,l.v_)(t.label),11,Ww)))),128))])):(0,n.Q3)("",!0)],34)}var Xw=(0,n.pM)({name:"SelectDropdown",props:{disabled:{type:Boolean,default:!1},modelValue:{type:[String,Number],required:!0},options:{type:Array,required:!0}},components:{Arrow:bt},emits:["update:modelValue"],setup(e,{emit:t}){const a=(0,x.KR)(!1),i=()=>{e.disabled||(a.value=!a.value)},o=e=>{t("update:modelValue",e),a.value=!1},r=(0,n.EW)((()=>e.options.find((t=>t.value===e.modelValue))?.label||"Select..."));return{isOpen:a,toggleDropdown:i,selectOption:o,selectedLabel:r}}});a(46292);const Rw=(0,C.A)(Xw,[["render",jw],["__scopeId","data-v-3e351ce6"]]);var zw=Rw,Uw=(0,n.pM)({props:{activeTab:{type:Object,required:!0}},components:{SearchInput:Ou,Select:zw,Button:Ea,EmptySearch:Mt,Modal:vn},data(){return{sortItems:[{value:"high-low",label:"High - Low"},{value:"low-high",label:"Low - High"},{value:"alphabetical",label:"Alphabetical"}],sortSelected:"high-low",items:[],searchText:"",gameSelected:"",gameItems:[],showDepositModal:!1}},watch:{async gameSelected(e){await this.getInventory(e)}},computed:{searchFilter(){return this.items.filter((e=>e.item.name.toLowerCase().includes(this.searchText.toLowerCase())))},sortedItems(){const e=[...this.searchFilter];return"high-low"===this.sortSelected&&e.sort(((e,t)=>t.item.price-e.item.price)),"low-high"===this.sortSelected&&e.sort(((e,t)=>e.item.price-t.item.price)),"alphabetical"===this.sortSelected&&e.sort(((e,t)=>e.item.name.localeCompare(t.item.name,void 0,{sensitivity:"base"}))),e},calcSelectedPrice(){return this.selectedItems.reduce(((e,t)=>e+t.selectedCount*t.item.price),0)},selectedItems(){return this.items.filter((e=>e.selectedCount))},games(){return this.$store.getters["games/data"]}},async mounted(){this.gameSelected=this.$route.params.gameSlug,await this.setGameItems()},methods:{async getInventory(e){const t=await Ba.getGameInventory(e),a=t.data.data;this.items=a.map((e=>({...e,selectedCount:0})))},async setGameItems(){this.gameItems=this.games.data.map((e=>({label:e.name,value:e.slug}))),this.gameSelected=this.$route.params.gameSlug||this.gameItems[0].value},handleDeposit(){this.showDepositModal=!0}}}),Dw=(0,n.pM)({mixins:[Uw],data(){return{isCreating:!1,side:!0}},computed:{sideSelected(){return this.side?"front":"back"}},async mounted(){this.gameSelected=this.$route.params.gameSlug,await this.setGameItems()},methods:{async createRoom(){this.isCreating=!0,await Ba.createRoom(this.gameSelected,qt.CoinFlip,this.selectedItems.map((e=>({id:e.item.id,count:e.selectedCount}))),{side:this.sideSelected}),this.$emit("close"),this.isCreating=!1}}});const Bw=["title"],Vw={class:"content"},Pw=["src","alt"],Ow={class:"content-bottom"},Gw={class:"buttons"},Qw={class:"inventory-item-count"};function Hw(e,t,a,i,o,r){const s=(0,n.g2)("Arrow"),d=(0,n.g2)("Button"),c=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",{class:(0,l.C4)(["inventory-item",[e.$attrs.class,{selected:e.modelValue}]]),title:e.inventoryItem.item.description},[(0,n.Lk)("div",Vw,[(0,n.Lk)("img",{src:e.inventoryItem.item.thumbnail,alt:e.inventoryItem.item.name},null,8,Pw),(0,n.Lk)("div",Ow,[(0,n.Lk)("h4",null,(0,l.v_)(e.inventoryItem.item.name),1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[c,e.inventoryItem.item.price]])])]),(0,n.Lk)("div",Gw,[(0,n.bF)(d,{type:"outlined__white",style:{width:"max-content"},disabled:0==e.modelValue,onClick:e.decrement},{default:(0,n.k6)((()=>[(0,n.bF)(s,{style:{transform:"rotate(-90deg)"}})])),_:1},8,["disabled","onClick"]),(0,n.Lk)("span",null,(0,l.v_)(e.modelValue),1),(0,n.bF)(d,{type:"outlined__white",style:{width:"max-content"},disabled:e.modelValue==e.inventoryItem.count,onClick:e.increment},{default:(0,n.k6)((()=>[(0,n.bF)(s,{style:{transform:"rotate(90deg)"}})])),_:1},8,["disabled","onClick"])]),(0,n.Lk)("div",Qw,(0,l.v_)(e.inventoryItem.count),1)],10,Bw)}var Nw=(0,n.pM)({components:{Button:Ea,Arrow:bt},props:{inventoryItem:{type:Object,required:!0},modelValue:{type:Number,default:0}},methods:{increment(){this.$emit("update:modelValue",this.modelValue+1)},decrement(){this.modelValue>0&&this.$emit("update:modelValue",this.modelValue-1)}}}),Kw=(0,n.pM)({name:"InventoryItem",mixins:[Nw]});a(46343);const qw=(0,C.A)(Kw,[["render",Hw],["__scopeId","data-v-69687bc2"]]);var Zw=qw,Jw=(0,n.pM)({mixins:[Dw],components:{InventoryItem:Zw,DepositGame:mf}});a(57313);const Yw=(0,C.A)(Jw,[["render",Ew],["__scopeId","data-v-0c5bc9fb"]]);var $w=Yw;const ey={class:"create-modal"},ty={class:"filters"},ay={class:"inventory"},iy={class:"list"},ny={key:0,class:"empty"},oy={key:1,class:"items-list"},ry={class:"select-side"},sy={class:"side-content"},ly={class:"sides"},dy=["src","alt"],cy=["src","alt"],py={class:"select-game-for-deposit"},uy={class:"deposit-games"};function fy(e,t,i,o,r,s){const d=(0,n.g2)("SearchInput"),c=(0,n.g2)("Select"),p=(0,n.g2)("EmptySearch"),u=(0,n.g2)("Button"),f=(0,n.g2)("InventoryItem"),g=(0,n.g2)("DepositGame"),m=(0,n.g2)("Modal"),h=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",ey,[(0,n.Lk)("div",ty,[(0,n.bF)(d,{modelValue:e.searchText,"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchText=t)},null,8,["modelValue"]),(0,n.bF)(c,{modelValue:e.sortSelected,"onUpdate:modelValue":t[1]||(t[1]=t=>e.sortSelected=t),options:e.sortItems},null,8,["modelValue","options"]),(0,n.bF)(c,{modelValue:e.gameSelected,"onUpdate:modelValue":t[2]||(t[2]=t=>e.gameSelected=t),options:e.gameItems,disabled:""},null,8,["modelValue","options"])]),(0,n.Lk)("div",ay,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("modals.select_item")),1),(0,n.Lk)("div",iy,[e.items.length?((0,n.uX)(),(0,n.CE)("div",oy,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.sortedItems,(e=>((0,n.uX)(),(0,n.Wv)(f,{inventoryItem:e,modelValue:e.selectedCount,"onUpdate:modelValue":t=>e.selectedCount=t,key:e.id},null,8,["inventoryItem","modelValue","onUpdate:modelValue"])))),128))])):((0,n.uX)(),(0,n.CE)("div",ny,[(0,n.Lk)("span",null,[(0,n.bF)(p)]),(0,n.Lk)("div",null,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.empty_state")),1),(0,n.bF)(u,{onClick:e.handleDeposit,type:"primary__white",style:{height:"48px"}},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.deposit_items")),1)])),_:1},8,["onClick"])])]))])]),(0,n.Lk)("div",ry,[t[5]||(t[5]=(0,n.Lk)("h4",null,"Your side",-1)),(0,n.Lk)("div",sy,[(0,n.Lk)("div",ly,[(0,n.Lk)("div",{class:(0,l.C4)(["side",{selected:e.side,"not-selected":!e.side}])},[(0,n.Lk)("img",{src:a(40031),alt:e.sideSelected},null,8,dy)],2),(0,n.Lk)("div",{class:(0,l.C4)(["side",{selected:!e.side,"not-selected":e.side}])},[(0,n.Lk)("img",{src:a(64849),alt:e.sideSelected},null,8,cy)],2)]),(0,n.bF)(u,{type:"outlined",class:"text-white",style:{height:"60px",width:"200px"},onClick:e.autoSelectItems},{default:(0,n.k6)((()=>[...t[4]||(t[4]=[(0,n.eW)("Auto select ",-1)])])),_:1},8,["onClick"]),(0,n.bF)(u,{type:"primary",style:{height:"60px",width:"200px"},disabled:e.disableJoinButton,onClick:e.joinRoom},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.join_with"))+" ",1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[h,e.calcSelectedPrice]])])),_:1},8,["disabled","onClick"])])]),e.showDepositModal?((0,n.uX)(),(0,n.Wv)(m,{key:0,onClose:t[3]||(t[3]=t=>e.showDepositModal=!1),img:"Modal-background.png",name:e.$t("buttons.deposit")},{default:(0,n.k6)((()=>[(0,n.Lk)("div",py,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("global.select_game")),1),(0,n.Lk)("div",uy,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.games.data,(e=>((0,n.uX)(),(0,n.Wv)(g,{game:e,key:e.id},null,8,["game"])))),128))])])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}var gy=(0,n.pM)({props:{room:{type:Object,required:!0}},data(){return{disabled:!1}},mixins:[Uw],computed:{sideSelected(){return"front"==this.room.participants[0].meta.side?"back":"front"},minAmount(){return Math.round(.9*this.room.configs.totalBetAmount)},maxAmount(){return Math.round(1.1*this.room.configs.totalBetAmount)},disableJoinButton(){return!(this.calcSelectedPrice&&!this.disabled)||(this.calcSelectedPricethis.maxAmount)},side(){return"front"==this.sideSelected}},methods:{autoSelectItems(){this.items.forEach((e=>e.selectedCount=0));let e=this.maxAmount,t=this.minAmount;const a=[...this.items].sort(((e,t)=>t.item.price-e.item.price));for(const n of a){if(!n.item.price)continue;const a=Math.min(Math.floor(e/n.item.price),n.count);if(a>0){let i=a;while(i>0&&e-n.item.price*i0&&(n.selectedCount=i,e-=n.item.price*i,t=Math.max(0,t-n.item.price*i))}}let i=this.calcSelectedPrice;if(ie.item.price>0)).sort(((e,t)=>e.item.price-t.item.price));for(const t of e){while(i+t.item.price<=this.maxAmount&&i=this.minAmount)break}}},async joinRoom(){this.disabled=!0;try{await Ba.joinRoom(this.room.id,this.$route.params.gameSlug,qt.CoinFlip,this.selectedItems.map((e=>({id:e.item.id,count:e.selectedCount}))))}finally{this.disabled=!1}this.$emit("close")}}}),my=(0,n.pM)({mixins:[gy],components:{InventoryItem:Zw,DepositGame:mf}});a(55832);const hy=(0,C.A)(my,[["render",fy],["__scopeId","data-v-118c8d1a"]]);var vy=hy;const xy={class:"view-modal"},by={class:"participants"},wy={class:"coin"},yy={class:"participant-items-wrapper"},ky={class:"participant-items"},Cy={class:"item-count"},My=["src","alt"],Ly={class:"participant-item-info"},Ay={class:"item-count"},Iy=["src","alt"],Ty={class:"participant-item-info"},_y={key:0};function Ey(e,t,a,i,o,r){const s=(0,n.g2)("ParticipantCard"),d=(0,n.g2)("TimerWithCoinAnimation"),c=(0,n.g2)("Button"),p=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",xy,[(0,n.Lk)("div",by,[(0,n.bF)(s,{showWinner:e.showWinner,participant:e.participants.first},null,8,["showWinner","participant"]),(0,n.Lk)("div",wy,[((0,n.uX)(),(0,n.Wv)(d,{flipAnimationStyle:"width: 48px; height: 48px",key:e.room.id,room:e.room,winner:e.winner,onDone:e.doneAnimation},null,8,["room","winner","onDone"]))]),(0,n.bF)(s,{showWinner:e.showWinner,participant:e.participants.second},null,8,["showWinner","participant"])]),(0,n.Lk)("div",yy,[(0,n.Lk)("div",ky,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.participants.first?.participantItems||[],(e=>((0,n.uX)(),(0,n.CE)("div",{class:"participant-item",key:e.id},[(0,n.Lk)("div",Cy,(0,l.v_)(e.count),1),(0,n.Lk)("img",{src:e.item.thumbnail,alt:e.item.name},null,8,My),(0,n.Lk)("div",Ly,[(0,n.Lk)("span",null,(0,l.v_)(e.item.name),1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[p,e.item.price]])])])))),128))]),(0,n.Lk)("div",{class:(0,l.C4)([{"action-container":1===e.room.participants.length&&e.authParticipant},"participant-items reversed"])},[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.participants.second?.participantItems||[],(e=>((0,n.uX)(),(0,n.CE)("div",{class:"participant-item",key:e.id},[(0,n.Lk)("div",Ay,(0,l.v_)(e.count),1),(0,n.Lk)("img",{src:e.item.thumbnail,alt:e.item.name},null,8,Iy),(0,n.Lk)("div",Ty,[(0,n.Lk)("span",null,(0,l.v_)(e.item.name),1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[p,e.item.price]])])])))),128)),1===e.room.participants.length&&e.authParticipant?((0,n.uX)(),(0,n.CE)("div",_y,[(0,n.bF)(c,{onClick:e.leaveCurrentRoom,style:{height:"50px"},type:"outlined"},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.leave")),1)])),_:1},8,["onClick"])])):(0,n.Q3)("",!0)],2)])])}var Sy=(0,n.pM)({components:{Button:Ea},props:{room:{type:Object,required:!0}},data(){return{showWinner:!1}},computed:{winner(){return this.room.participants.find((e=>e.meta.winner))},participants(){return-1==this.authParticipantIndex?{first:this.room.participants[0]||void 0,second:this.room.participants.length>1?this.room.participants[1]:void 0}:{first:this.authParticipant,second:this.room.participants[0===this.authParticipantIndex?1:0]}},authParticipantIndex(){return this.room.participants.findIndex((e=>e.user.name===this.$store.state.auth.user.name))},authParticipant(){return this.room.participants[this.authParticipantIndex]}},methods:{doneAnimation(){this.showWinner=!0,this.$store.commit("coinFlip/UPDATE_ROOM",{...this.room,animate:!1})},...(0,Sa.i0)({leaveRoom:"coinFlip/leaveRoom",setRoomToView:"coinFlip/setRoomToView",deleteRoom:"coinFlip/deleteRoom"}),leaveCurrentRoom(){this.leaveRoom({room_id:this.room.id,game_slug:this.$route.params.gameSlug}).then((()=>{this.setRoomToView(null),this.deleteRoom(this.room)}))}}});const Fy={key:0,class:"user"},Wy={key:1,class:"info"},jy={class:"action-label"},Xy={class:"price-coin-container"},Ry={class:"bold"},zy=["src"],Uy={class:"action-label"},Dy={class:"bold"},By={key:2,class:"shadow"};function Vy(e,t,i,o,r,s){const d=(0,n.g2)("ParticipantAvatar"),c=(0,n.gN)("price-format"),p=(0,n.gN)("percent");return(0,n.uX)(),(0,n.CE)("div",{class:(0,l.C4)(["participant",{winner:e.participant?.meta.winner&&e.showWinner}])},[e.participant?((0,n.uX)(),(0,n.CE)("div",Fy,[(0,n.bF)(d,{showSide:!1,participant:e.participant,style:{width:"76px",height:"76px"},showWinner:e.showWinner},null,8,["participant","showWinner"]),(0,n.Lk)("span",null,(0,l.v_)(e.participant.user.name),1)])):(0,n.Q3)("",!0),e.participant?((0,n.uX)(),(0,n.CE)("div",Wy,[(0,n.Lk)("div",null,[(0,n.Lk)("span",jy,(0,l.v_)(e.$t("global.bet")),1),(0,n.Lk)("div",Xy,[(0,n.bo)((0,n.Lk)("span",Ry,null,512),[[c,e.participant.meta.totalBetAmount]]),(0,n.Lk)("img",{src:a(18129)(`./middle-${e.participant.meta.side}.png`),alt:"Heads"},null,8,zy)])]),(0,n.Lk)("div",null,[(0,n.Lk)("span",Uy,(0,l.v_)(e.$t("global.chance")),1),(0,n.bo)((0,n.Lk)("div",Dy,null,512),[[p,e.participant.meta.chance]])])])):(0,n.Q3)("",!0),e.participant?.meta.winner&&e.showWinner?((0,n.uX)(),(0,n.CE)("div",By)):(0,n.Q3)("",!0)],2)}var Py=(0,n.pM)({props:{participant:{type:Object,required:!1},showWinner:{type:Boolean,default:!1}},computed:{itemsAmount(){return this.participant?.participantItems?.reduce(((e,t)=>e+t.count*t.item.price),0)||0}}}),Oy=(0,n.pM)({mixins:[Py],components:{ParticipantAvatar:Wb}});a(50232);const Gy=(0,C.A)(Oy,[["render",Vy],["__scopeId","data-v-1f8154e6"]]);var Qy=Gy,Hy=(0,n.pM)({mixins:[Sy],components:{TimerWithCoinAnimation:rw,ParticipantCard:Qy}});a(97321);const Ny=(0,C.A)(Hy,[["render",Ey],["__scopeId","data-v-12b6c416"]]);var Ky=Ny,qy=(0,n.pM)({name:"CoinFlipDesktop",mixins:[sb],components:{CasinoGameRoom:hw,CreateModal:$w,JoinModal:vy,ViewModal:Ky}});a(44897);const Zy=(0,C.A)(qy,[["render",ob],["__scopeId","data-v-5fa9f3a9"]]);var Jy=Zy;const Yy={class:"top"},$y={class:"buttons"},ek={class:"buttons-wrapper"},tk={class:"games-tabs"},ak={key:0,class:"casino-game-rooms",ref:"room-list"},ik=["src"];function nk(e,t,i,o,r,s){const d=(0,n.g2)("Tabs"),c=(0,n.g2)("Button"),p=(0,n.g2)("CasinoGameRoom"),u=(0,n.g2)("DotsLoader"),f=(0,n.g2)("CreateModal"),g=(0,n.g2)("Modal"),m=(0,n.g2)("JoinModal"),h=(0,n.g2)("ViewModal");return(0,n.uX)(),(0,n.CE)("section",null,[(0,n.Lk)("div",Yy,[t[6]||(t[6]=(0,n.Lk)("h2",null,"Coin Flip",-1)),(0,n.Lk)("div",$y,[(0,n.bF)(d,{tabs:e.filterTabs,onChange:e.changeFilterTab},null,8,["tabs","onChange"]),(0,n.bF)(c,{type:"primary",onClick:e.handleCreate},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.create")),1)])),_:1},8,["onClick"])])]),(0,n.Lk)("div",ek,[(0,n.Lk)("div",tk,[(0,n.bF)(d,{tabs:e.tabs,onChange:e.changeTab},null,8,["tabs","onChange"])])]),e.rooms.data.size?((0,n.uX)(),(0,n.CE)("div",ak,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.sortedRooms,(t=>((0,n.uX)(),(0,n.Wv)(p,{key:t.id,room:t,onJoin:a=>e.setRoomToJoin(t),onView:a=>e.setRoomToView(t)},null,8,["room","onJoin","onView"])))),128))],512)):(0,n.Q3)("",!0),e.rooms.loading?((0,n.uX)(),(0,n.Wv)(u,{key:1})):(0,n.Q3)("",!0),e.showCreateModal?((0,n.uX)(),(0,n.Wv)(g,{key:2,onClose:t[1]||(t[1]=t=>e.showCreateModal=!1),img:"Modal-background.png",name:e.$t("modals.create.title",{gameLabel:"Coinflip"})},{default:(0,n.k6)((()=>[(0,n.bF)(f,{onClose:t[0]||(t[0]=t=>e.showCreateModal=!1),activeTab:e.activeTab},null,8,["activeTab"])])),_:1},8,["name"])):(0,n.Q3)("",!0),e.roomToJoin?((0,n.uX)(),(0,n.Wv)(g,{key:3,onClose:t[3]||(t[3]=t=>e.setRoomToJoin(null)),img:"Modal-background.png",name:e.$t("modals.join.title",{gameLabel:"Coinflip"})},{default:(0,n.k6)((()=>[(0,n.bF)(m,{onClose:t[2]||(t[2]=t=>e.setRoomToJoin(null)),room:e.roomToJoin,activeTab:e.activeTab},null,8,["room","activeTab"])])),_:1},8,["name"])):(0,n.Q3)("",!0),e.roomToView?((0,n.uX)(),(0,n.Wv)(g,{key:4,onClose:t[5]||(t[5]=t=>e.setRoomToView(null)),img:"View-modal-background.png",name:e.$t("modals.view.title",{round:e.roomToView.id})},{"background-image":(0,n.k6)((()=>[(0,n.Lk)("img",{class:"view-modal-background",src:a(60694),alt:"view background"},null,8,ik)])),default:(0,n.k6)((()=>[(0,n.bF)(h,{onClose:t[4]||(t[4]=t=>e.setRoomToView(null)),room:e.roomToView},null,8,["room"])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}const ok={class:"casino-game-room"},rk={class:"players"},sk={key:2,style:{width:"120px"}},lk={class:"game-info"},dk={class:"items-with-count"},ck={class:"room-participant-items"},pk={key:0,class:"counter"},uk={style:{width:"40px"}},fk={key:0,class:"amount"},gk={class:"amount-range"},mk={key:1,class:"total-amount"},hk={class:"actions"};function vk(e,t,a,i,o,r){const s=(0,n.g2)("Participant"),d=(0,n.g2)("RoomParticipantItem"),c=(0,n.g2)("TimerWithCoinAnimation"),p=(0,n.g2)("Button"),u=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",ok,[(0,n.Lk)("div",rk,[e.participants.first?((0,n.uX)(),(0,n.Wv)(s,{key:0,participant:e.participants.first,showWinner:e.showWinner},null,8,["participant","showWinner"])):(0,n.Q3)("",!0),t[3]||(t[3]=(0,n.Lk)("div",{class:"vs"},[(0,n.Lk)("img",{src:lb,alt:"VS"})],-1)),e.participants.second?((0,n.uX)(),(0,n.Wv)(s,{key:1,participant:e.participants.second,showWinner:e.showWinner,reverse:""},null,8,["participant","showWinner"])):((0,n.uX)(),(0,n.CE)("div",sk))]),(0,n.Lk)("div",lk,[(0,n.Lk)("div",dk,[(0,n.Lk)("div",ck,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.roomParticipantItemsSliced,((e,t)=>((0,n.uX)(),(0,n.Wv)(d,{key:e.id,index:t,participantItem:e},null,8,["index","participantItem"])))),128))]),e.roomParticipantItemsAdditionalCount?((0,n.uX)(),(0,n.CE)("span",pk," +"+(0,l.v_)(e.roomParticipantItemsAdditionalCount),1)):(0,n.Q3)("",!0)]),(0,n.Lk)("div",uk,[((0,n.uX)(),(0,n.Wv)(c,{room:e.room,winner:e.winner,onDone:t[0]||(t[0]=t=>e.showWinner=!0),key:e.room.id},null,8,["room","winner"]))]),"pending"==e.room.status?((0,n.uX)(),(0,n.CE)("div",fk,[(0,n.bo)((0,n.Lk)("span",null,null,512),[[u,e.room.configs.totalBetAmount]]),(0,n.Lk)("span",gk,[(0,n.bo)((0,n.Lk)("span",null,null,512),[[u,Math.round(e.room.configs.totalBetAmount-e.room.configs.totalBetAmount/10)]]),t[4]||(t[4]=(0,n.eW)(" - ",-1)),(0,n.bo)((0,n.Lk)("span",null,null,512),[[u,Math.round(e.room.configs.totalBetAmount+e.room.configs.totalBetAmount/10)]])])])):(0,n.bo)(((0,n.uX)(),(0,n.CE)("div",mk,null,512)),[[u,e.room.configs.totalBetAmount]])]),(0,n.Lk)("div",hk,["pending"!==e.room.status||e.existsInRoom?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.Wv)(p,{key:0,onClick:t[1]||(t[1]=t=>e.$emit("join")),type:"primary",style:{height:"32px","border-radius":"12px"}},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.join")),1)])),_:1})),(0,n.bF)(p,{onClick:t[2]||(t[2]=t=>e.$emit("view")),type:"outlined__white"},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.view")),1)])),_:1})])])}const xk={key:0},bk={key:1};function wk(e,t,a,i,o,r){const s=(0,n.g2)("ParticipantAvatar");return(0,n.uX)(),(0,n.CE)("div",{class:(0,l.C4)(["participant",{reverse:e.reverse}])},[e.reverse?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("span",xk,(0,l.v_)(e.participant.user.name),1)),(0,n.bF)(s,{participant:e.participant,"show-winner":e.showWinner},null,8,["participant","show-winner"]),e.reverse?((0,n.uX)(),(0,n.CE)("span",bk,(0,l.v_)(e.participant.user.name),1)):(0,n.Q3)("",!0)],2)}const yk=["src"],kk={key:0,class:"winner"},Ck=["src","alt"];function Mk(e,t,o,r,s,d){return(0,n.uX)(),(0,n.CE)("div",(0,n.v6)({class:"avatar-wrapper"},e.$attrs),[(0,n.Lk)("div",{class:(0,l.C4)(["avatar",{winner:e.participant.meta.winner&&e.showWinner}])},[(0,n.Lk)("img",{src:e.participant.user.avatar,alt:"Avatar"},null,8,yk),e.participant.meta.winner?(0,n.bo)(((0,n.uX)(),(0,n.CE)("div",kk,[...t[0]||(t[0]=[(0,n.Lk)("span",null," WIN ",-1)])],512)),[[i.aG,e.showWinner]]):(0,n.Q3)("",!0)],2),!e.showWinner&&e.showSide?((0,n.uX)(),(0,n.CE)("img",{key:0,class:"side",src:a(69843)(`./${e.participant.meta.side}.png`),alt:e.participant.meta.side},null,8,Ck)):(0,n.Q3)("",!0)],16)}var Lk=(0,n.pM)({mixins:[Eb]});a(97442);const Ak=(0,C.A)(Lk,[["render",Mk],["__scopeId","data-v-44dc371c"]]);var Ik=Ak,Tk=(0,n.pM)({name:"ParticipantComponent",mixins:[jb],components:{ParticipantAvatar:Ik}});a(59196);const _k=(0,C.A)(Tk,[["render",wk],["__scopeId","data-v-43ee6834"]]);var Ek=_k;function Sk(e,t,a,i,o,r){const s=(0,n.g2)("TimeCounter"),d=(0,n.g2)("FlipAnimation");return(0,n.uX)(),(0,n.CE)(n.FK,null,["started"==e.room.status?((0,n.uX)(),(0,n.Wv)(s,{key:0})):(0,n.Q3)("",!0),e.winner?((0,n.uX)(),(0,n.Wv)(d,{style:(0,l.Tr)(e.flipAnimationStyle),animate:!!e.room.animate,side:e.winner.meta.side,key:e.room.id,onDone:t[0]||(t[0]=t=>e.$emit("done"))},null,8,["style","animate","side"])):(0,n.Q3)("",!0)],64)}const Fk={class:"coin-flip-container"},Wk=["src"],jk=["src"];function Xk(e,t,i,o,r,s){return(0,n.uX)(),(0,n.CE)("div",Fk,[(0,n.Lk)("div",(0,n.v6)({class:"coin-scene"},e.$attrs),[(0,n.Lk)("div",{class:(0,l.C4)(["coin",{animate:e.animate}]),style:(0,l.Tr)({transform:e.finalRotation}),onTransitionend:t[0]||(t[0]=t=>e.isFlipping=!1),ref:"coin"},[(0,n.Lk)("img",{class:"coin-face front",src:a(97558),alt:"Heads"},null,8,Wk),(0,n.Lk)("img",{class:"coin-face back",src:a(25202),alt:"Tails"},null,8,jk)],38)],16)])}var Rk=(0,n.pM)({mixins:[Gb]});a(89677);const zk=(0,C.A)(Rk,[["render",Xk],["__scopeId","data-v-3eecbe52"]]);var Uk=zk;const Dk={class:"countdown-container"},Bk={viewBox:"0 0 48 48",class:"countdown-svg",xmlns:"http://www.w3.org/2000/svg"},Vk=["transform"],Pk=["fill"],Ok={class:"headline",x:"24",y:"26","dominant-baseline":"middle","text-anchor":"middle"};function Gk(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",Dk,[((0,n.uX)(),(0,n.CE)("svg",Bk,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.segments,((t,a)=>((0,n.uX)(),(0,n.CE)("g",{key:a,transform:`rotate(${t.rotate} 24 24) translate(16, 2)`},[(0,n.Lk)("path",{d:"M0.27208 3.24865C0.0871808 2.72823 0.358683 2.15434 0.886321 1.99119C5.61237 0.529897 10.675 0.559614 15.3835 2.07629C15.9092 2.24562 16.174 2.82266 15.983 3.34087L15.0082 5.9856C14.8172 6.5038 14.2428 6.76638 13.7154 6.60253C10.0669 5.469 6.16272 5.44609 2.50116 6.5367C1.97186 6.69436 1.40063 6.42505 1.21573 5.90464L0.27208 3.24865Z",fill:ae.searchText=t),style:{height:"36px","border-radius":"12px","padding-left":"28px"},iconLeft:"8px"},null,8,["modelValue"]),(0,n.bF)(c,{modelValue:e.sortSelected,"onUpdate:modelValue":t[1]||(t[1]=t=>e.sortSelected=t),options:e.sortItems,style:{height:"36px","border-radius":"12px",padding:"8px"}},null,8,["modelValue","options"]),(0,n.bF)(c,{modelValue:e.gameSelected,"onUpdate:modelValue":t[2]||(t[2]=t=>e.gameSelected=t),options:e.gameItems,style:{height:"36px","border-radius":"12px",padding:"8px"}},null,8,["modelValue","options"])]),(0,n.Lk)("div",lC,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("modals.select_item")),1),(0,n.Lk)("div",dC,[e.items.length?((0,n.uX)(),(0,n.CE)("div",pC,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.sortedItems,(e=>((0,n.uX)(),(0,n.Wv)(f,{inventoryItem:e,modelValue:e.selectedCount,"onUpdate:modelValue":t=>e.selectedCount=t,key:e.id},null,8,["inventoryItem","modelValue","onUpdate:modelValue"])))),128))])):((0,n.uX)(),(0,n.CE)("div",cC,[(0,n.Lk)("span",null,[(0,n.bF)(p)]),(0,n.Lk)("div",null,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.empty_state")),1),(0,n.bF)(u,{onClick:e.handleDeposit,type:"primary__white",style:{height:"48px"}},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.deposit_items")),1)])),_:1},8,["onClick"])])]))])]),(0,n.Lk)("div",uC,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("modals.create.select_side")),1),(0,n.Lk)("div",fC,[(0,n.Lk)("div",gC,[(0,n.Lk)("div",{class:(0,l.C4)(["side",{selected:e.side}]),onClick:t[3]||(t[3]=t=>e.side=!0)},[(0,n.Lk)("img",{src:a(40031),alt:e.sideSelected},null,8,mC)],2),(0,n.Lk)("div",{class:(0,l.C4)(["side",{selected:!e.side}]),onClick:t[4]||(t[4]=t=>e.side=!1)},[(0,n.Lk)("img",{src:a(64849),alt:e.sideSelected},null,8,hC)],2)]),(0,n.bF)(u,{type:"primary",style:{height:"60px",width:"200px"},onClick:e.createRoom,disabled:e.isCreating||0===e.calcSelectedPrice},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.create_with"))+" ",1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[h,e.calcSelectedPrice]])])),_:1},8,["onClick","disabled"])])]),e.showDepositModal?((0,n.uX)(),(0,n.Wv)(m,{key:0,onClose:t[5]||(t[5]=t=>e.showDepositModal=!1),img:"Modal-background.png",name:e.$t("buttons.deposit")},{default:(0,n.k6)((()=>[(0,n.Lk)("div",vC,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("global.select_game")),1),(0,n.Lk)("div",xC,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.games.data,(e=>((0,n.uX)(),(0,n.Wv)(g,{game:e,key:e.id},null,8,["game"])))),128))])])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}var wC=(0,n.pM)({mixins:[Dw],components:{InventoryItem:Zw,DepositGame:bg}});a(71470);const yC=(0,C.A)(wC,[["render",bC],["__scopeId","data-v-5af711ee"]]);var kC=yC;const CC={class:"join-modal"},MC={class:"filters"},LC={class:"inventory"},AC={class:"list"},IC={key:0,class:"empty"},TC={key:1,class:"items-list"},_C={class:"select-side"},EC={class:"side-content"},SC={class:"sides"},FC=["src","alt"],WC=["src","alt"],jC={class:"buttons"},XC={class:"select-game-for-deposit"},RC={class:"deposit-games"};function zC(e,t,i,o,r,s){const d=(0,n.g2)("SearchInput"),c=(0,n.g2)("Select"),p=(0,n.g2)("EmptySearch"),u=(0,n.g2)("Button"),f=(0,n.g2)("InventoryItem"),g=(0,n.g2)("DepositGame"),m=(0,n.g2)("Modal"),h=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",CC,[(0,n.Lk)("div",MC,[(0,n.bF)(d,{modelValue:e.searchText,"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchText=t),style:{height:"36px","border-radius":"12px","padding-left":"28px"},iconLeft:"8px"},null,8,["modelValue"]),(0,n.bF)(c,{modelValue:e.sortSelected,"onUpdate:modelValue":t[1]||(t[1]=t=>e.sortSelected=t),options:e.sortItems,style:{height:"36px","border-radius":"12px",padding:"8px"}},null,8,["modelValue","options"]),(0,n.bF)(c,{modelValue:e.gameSelected,"onUpdate:modelValue":t[2]||(t[2]=t=>e.gameSelected=t),options:e.gameItems,disabled:"",style:{height:"36px","border-radius":"12px",padding:"8px"}},null,8,["modelValue","options"])]),(0,n.Lk)("div",LC,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("modals.select_item")),1),(0,n.Lk)("div",AC,[e.items.length?((0,n.uX)(),(0,n.CE)("div",TC,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.sortedItems,(e=>((0,n.uX)(),(0,n.Wv)(f,{inventoryItem:e,modelValue:e.selectedCount,"onUpdate:modelValue":t=>e.selectedCount=t,key:e.id},null,8,["inventoryItem","modelValue","onUpdate:modelValue"])))),128))])):((0,n.uX)(),(0,n.CE)("div",IC,[(0,n.Lk)("span",null,[(0,n.bF)(p)]),(0,n.Lk)("div",null,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.empty_state")),1),(0,n.bF)(u,{onClick:e.handleDeposit,type:"primary__white",style:{height:"48px"}},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.deposit_items")),1)])),_:1},8,["onClick"])])]))])]),(0,n.Lk)("div",_C,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("modals.join.your_side")),1),(0,n.Lk)("div",EC,[(0,n.Lk)("div",SC,[(0,n.Lk)("div",{class:(0,l.C4)(["side",{selected:e.side,"not-selected":!e.side}])},[(0,n.Lk)("img",{src:a(40031),alt:e.sideSelected},null,8,FC)],2),(0,n.Lk)("div",{class:(0,l.C4)(["side",{selected:!e.side,"not-selected":e.side}])},[(0,n.Lk)("img",{src:a(64849),alt:e.sideSelected},null,8,WC)],2)]),(0,n.Lk)("div",jC,[(0,n.bF)(u,{type:"outlined",class:"text-white",style:{height:"60px",width:"max-content"},onClick:e.autoSelectItems},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.auto_select")),1)])),_:1},8,["onClick"]),(0,n.bF)(u,{type:"primary",style:{height:"60px",width:"max-content"},disabled:e.disableJoinButton,onClick:e.joinRoom},{default:(0,n.k6)((()=>[(0,n.Lk)("span",null,(0,l.v_)(e.$t("buttons.join_with")),1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[h,e.calcSelectedPrice]])])),_:1},8,["disabled","onClick"])])])]),e.showDepositModal?((0,n.uX)(),(0,n.Wv)(m,{key:0,onClose:t[3]||(t[3]=t=>e.showDepositModal=!1),img:"Modal-background.png",name:e.$t("buttons.deposit")},{default:(0,n.k6)((()=>[(0,n.Lk)("div",XC,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("global.select_game")),1),(0,n.Lk)("div",RC,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.games.data,(e=>((0,n.uX)(),(0,n.Wv)(g,{game:e,key:e.id},null,8,["game"])))),128))])])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}var UC=(0,n.pM)({mixins:[gy],components:{InventoryItem:Zw,DepositGame:bg}});a(13382);const DC=(0,C.A)(UC,[["render",zC],["__scopeId","data-v-7091a02a"]]);var BC=DC;const VC={class:"view-modal"},PC={class:"participants"},OC={class:"coin"},GC={class:"participant-items-wrapper"},QC={class:"participant-items"},HC={class:"item-count"},NC=["src","alt"],KC={class:"participant-item-info"},qC={class:"item-count"},ZC=["src","alt"],JC={class:"participant-item-info"},YC={key:0};function $C(e,t,a,i,o,r){const s=(0,n.g2)("ParticipantCard"),d=(0,n.g2)("TimerWithCoinAnimation"),c=(0,n.g2)("Button"),p=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",VC,[(0,n.Lk)("div",PC,[(0,n.bF)(s,{showWinner:e.showWinner,participant:e.participants.first},null,8,["showWinner","participant"]),(0,n.Lk)("div",OC,[((0,n.uX)(),(0,n.Wv)(d,{flipAnimationStyle:"width: 48px; height: 48px",key:e.room.id,room:e.room,winner:e.winner,onDone:e.doneAnimation},null,8,["room","winner","onDone"]))]),(0,n.bF)(s,{showWinner:e.showWinner,participant:e.participants.second},null,8,["showWinner","participant"])]),(0,n.Lk)("div",GC,[(0,n.Lk)("div",QC,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.participants.first?.participantItems||[],(e=>((0,n.uX)(),(0,n.CE)("div",{class:"participant-item",key:e.id},[(0,n.Lk)("div",HC,(0,l.v_)(e.count),1),(0,n.Lk)("img",{src:e.item.thumbnail,alt:e.item.name},null,8,NC),(0,n.Lk)("div",KC,[(0,n.Lk)("span",null,(0,l.v_)(e.item.name),1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[p,e.item.price]])])])))),128))]),(0,n.Lk)("div",{class:(0,l.C4)([{"action-container":1===e.room.participants.length&&e.authParticipant},"participant-items reversed"])},[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.participants.second?.participantItems||[],(e=>((0,n.uX)(),(0,n.CE)("div",{class:"participant-item",key:e.id},[(0,n.Lk)("div",qC,(0,l.v_)(e.count),1),(0,n.Lk)("img",{src:e.item.thumbnail,alt:e.item.name},null,8,ZC),(0,n.Lk)("div",JC,[(0,n.Lk)("span",null,(0,l.v_)(e.item.name),1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[p,e.item.price]])])])))),128)),1===e.room.participants.length&&e.authParticipant?((0,n.uX)(),(0,n.CE)("div",YC,[(0,n.bF)(c,{onClick:e.leaveCurrentRoom,style:{height:"50px","max-width":"100px"},type:"outlined"},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.leave")),1)])),_:1},8,["onClick"])])):(0,n.Q3)("",!0)],2)])])}const eM={key:0,class:"user"},tM={key:1,class:"info"},aM={class:"action-label"},iM={class:"price-coin-container"},nM={class:"bold"},oM=["src"],rM={class:"action-label"},sM={class:"bold"},lM={key:2,class:"shadow"};function dM(e,t,i,o,r,s){const d=(0,n.g2)("ParticipantAvatar"),c=(0,n.gN)("price-format"),p=(0,n.gN)("percent");return(0,n.uX)(),(0,n.CE)("div",{class:(0,l.C4)(["participant",{winner:e.participant?.meta.winner&&e.showWinner}])},[e.participant?((0,n.uX)(),(0,n.CE)("div",eM,[(0,n.bF)(d,{showSide:!1,participant:e.participant,style:{width:"76px",height:"76px"},showWinner:e.showWinner},null,8,["participant","showWinner"]),(0,n.Lk)("span",null,(0,l.v_)(e.participant.user.name),1)])):(0,n.Q3)("",!0),e.participant?((0,n.uX)(),(0,n.CE)("div",tM,[(0,n.Lk)("div",null,[(0,n.Lk)("span",aM,(0,l.v_)(e.$t("global.bet")),1),(0,n.Lk)("div",iM,[(0,n.bo)((0,n.Lk)("span",nM,null,512),[[c,e.participant.meta.totalBetAmount]]),(0,n.Lk)("img",{src:a(18129)(`./middle-${e.participant.meta.side}.png`),alt:"Heads"},null,8,oM)])]),(0,n.Lk)("div",null,[(0,n.Lk)("span",rM,(0,l.v_)(e.$t("global.chance")),1),(0,n.bo)((0,n.Lk)("div",sM,null,512),[[p,e.participant.meta.chance]])])])):(0,n.Q3)("",!0),e.participant?.meta.winner&&e.showWinner?((0,n.uX)(),(0,n.CE)("div",lM)):(0,n.Q3)("",!0)],2)}var cM=(0,n.pM)({mixins:[Py],components:{ParticipantAvatar:Ik}});a(53563);const pM=(0,C.A)(cM,[["render",dM],["__scopeId","data-v-f51f822e"]]);var uM=pM,fM=(0,n.pM)({mixins:[Sy],components:{TimerWithCoinAnimation:Zk,ParticipantCard:uM}});a(85271);const gM=(0,C.A)(fM,[["render",$C],["__scopeId","data-v-2fdadcb9"]]);var mM=gM,hM=(0,n.pM)({name:"CoinFlipMobile",mixins:[sb],components:{CasinoGameRoom:oC,CreateModal:kC,JoinModal:BC,ViewModal:mM}});a(77156);const vM=(0,C.A)(hM,[["render",nk],["__scopeId","data-v-58349dd2"]]);var xM=vM;a(13579);class bM{constructor(e){(0,za.A)(this,"socket",void 0),(0,za.A)(this,"store",Li),(0,za.A)(this,"onRoomCreated",this.roomCreated.bind(this)),(0,za.A)(this,"onRoomUpdated",this.roomUpdated.bind(this)),this.socket=e,this.handleEvents()}handleEvents(){this.socket.on("room:created",this.onRoomCreated),this.socket.on("room:updated",this.onRoomUpdated)}destroy(){this.socket.off("room:created",this.onRoomCreated),this.socket.off("room:updated",this.onRoomUpdated)}roomCreated(e){e.participants[0].user.name===this.store.state.auth.user.name&&this.store.commit(`${this.namespace}/SET_ROOM_TO_VIEW`,e),this.store.dispatch(`${this.namespace}/addRoom`,e)}roomUpdated(e){e.animate=!0,this.store.commit(`${this.namespace}/UPDATE_ROOM`,e);const t=this.store.state[this.namespace].roomToView;e.participants.some((e=>e.user.name===this.store.state.auth.user.name))&&(t?t?.id===e.id&&this.store.commit(`${this.namespace}/SET_ROOM_TO_VIEW`,e):this.store.commit(`${this.namespace}/SET_ROOM_TO_VIEW`,e)),t?.id===e.id&&this.store.commit(`${this.namespace}/SET_ROOM_TO_VIEW`,e)}}class wM extends bM{constructor(e){super(e),(0,za.A)(this,"namespace","coinFlip")}}let yM=null;var kM=(0,n.pM)({name:"CoinFlip",components:{DesktopCoinFlip:Jy,MobileCoinFlip:xM},setup(){const{isMobile:e,isTablet:t}=Rd(),a=(0,x.KR)(null);return{isMobile:e,isTablet:t,infiniteStop:a}},methods:{...(0,Sa.i0)({getRooms:"coinFlip/getRooms"})},computed:{rooms(){return this.$store.getters["coinFlip/rooms"]}},beforeRouteLeave(e,t,a){this.$privateSocket.emit("leaveCasinoGame",{game_slug:this.$route.params.gameSlug,casino_game_slug:qt.CoinFlip}),this.infiniteStop&&this.infiniteStop(),this.$store.commit("coinFlip/CLEAR_ROOMS"),this.$store.commit("coinFlip/SET_ROOM_TO_JOIN",null),this.$store.commit("coinFlip/SET_ROOM_TO_VIEW",null),yM?.destroy(),a()},beforeRouteEnter(e,t,a){a((async t=>{await t.$store.commit("coinFlip/CLEAR_ROOMS"),await t.$store.dispatch("coinFlip/getCasinoGame"),await t.getRooms({game_slug:e.params.gameSlug,forPage:t.$route.query.filterTab||"default"}),yM=new wM(t.$privateSocket);const{stop:a}=ju(document.body,(async()=>{await t.getRooms({game_slug:e.params.gameSlug,loadNextPage:!0,forPage:t.$route.query.filterTab||"default"})}),{distance:document.body.clientHeight,interval:200,canLoadMore:()=>!!t.rooms.pagination?.next});t.infiniteStop=a}))}});const CM=(0,C.A)(kM,[["render",$x]]);var MM=CM;const LM={class:"referral"};function AM(e,t,a,i,o,r){const s=(0,n.g2)("ReferralMobile"),l=(0,n.g2)("ReferralDesktop");return(0,n.uX)(),(0,n.CE)("div",LM,[e.isMobile?((0,n.uX)(),(0,n.Wv)(s,{key:0})):((0,n.uX)(),(0,n.Wv)(l,{key:1}))])}const IM={class:"referral"},TM={class:"referred-by"},_M=["src","alt"];function EM(e,t,a,i,o,r){const s=(0,n.g2)("NotificationBanner");return(0,n.uX)(),(0,n.CE)("div",IM,["StartRegister"==e.state.activeComponent&&e.state.referral?((0,n.uX)(),(0,n.Wv)(s,{key:0},{default:(0,n.k6)((()=>[(0,n.Lk)("div",TM,[(0,n.Lk)("span",null,"Your referral partner — "+(0,l.v_)(e.state.referral.name),1),(0,n.Lk)("img",{src:e.state.referral.avatar,alt:e.state.referral.name},null,8,_M)])])),_:1})):(0,n.Q3)("",!0),((0,n.uX)(),(0,n.Wv)((0,n.$y)(e.state.activeComponent),{state:e.state},null,8,["state"]))])}var SM=(0,n.pM)({name:"ReferralDesktop",mixins:[Ln],components:{Registration:io,LoginComponent:Tn,StartRegister:Un,CheckRegister:Hn,ConfirmRegister:eo,NotificationBanner:kr},mounted(){this.changeContent("StartRegister"),this.state.fields={...Cn},this.state.errors={...Mn},this.getReferralByCode(this.$route.params.referralCode)},watch:{"$store.state.auth.tokenData.access_token"(e){e&&this.$router.push({name:"home"})}}});a(13976);const FM=(0,C.A)(SM,[["render",EM],["__scopeId","data-v-2a35fb04"]]);var WM=FM;const jM={class:"referral"},XM={class:"referred-by"},RM=["src","alt"];function zM(e,t,a,i,o,r){const s=(0,n.g2)("NotificationBanner");return(0,n.uX)(),(0,n.CE)("div",jM,["StartRegister"==e.state.activeComponent&&e.state.referral?((0,n.uX)(),(0,n.Wv)(s,{key:0},{default:(0,n.k6)((()=>[(0,n.Lk)("div",XM,[(0,n.Lk)("span",null,"Your referral partner — "+(0,l.v_)(e.state.referral.name),1),(0,n.Lk)("img",{src:e.state.referral.avatar,alt:e.state.referral.name},null,8,RM)])])),_:1})):(0,n.Q3)("",!0),((0,n.uX)(),(0,n.Wv)((0,n.$y)(e.state.activeComponent),{state:e.state},null,8,["state"]))])}var UM=(0,n.pM)({name:"ReferralMobile",mixins:[Ln],components:{Registration:zl,LoginComponent:ll,StartRegister:xl,CheckRegister:Al,ConfirmRegister:jl,NotificationBanner:kr},mounted(){this.changeContent("StartRegister"),this.state.fields={...Cn},this.state.errors={...Mn}},watch:{"$store.state.auth.tokenData.access_token"(e){e&&this.$router.push({name:"home"})}}});a(66062);const DM=(0,C.A)(UM,[["render",zM],["__scopeId","data-v-fb0bb8a4"]]);var BM=DM,VM=(0,n.pM)({name:"LeaderboardView",components:{ReferralDesktop:WM,ReferralMobile:BM},setup(){const{isMobile:e,isTablet:t}=Rd();return{isMobile:e,isTablet:t}}});const PM=(0,C.A)(VM,[["render",AM]]);var OM=PM;const GM={class:"wheel-of-fortune"};function QM(e,t,a,i,o,r){const s=(0,n.g2)("RouterView");return(0,n.uX)(),(0,n.CE)("div",GM,[(0,n.bF)(s)])}class HM extends bM{constructor(e){super(e),(0,za.A)(this,"namespace","wheelOfFortune")}}let NM=null;var KM=(0,n.pM)({name:"WheelOfFortune",computed:{rooms(){return this.$store.getters["wheelOfFortune/rooms"]}},data(){return{infiniteStop:null}},methods:{...(0,Sa.i0)({getRooms:"wheelOfFortune/getRooms"})},async beforeRouteLeave(e,t,a){this.$privateSocket.emit("leaveCasinoGame",{game_slug:this.$route.params.gameSlug,casino_game_slug:qt.WheelOfFortune}),this.$store.commit("wheelOfFortune/CLEAR_ROOMS"),this.$store.commit("wheelOfFortune/SET_ROOM_TO_JOIN",null),this.$store.commit("wheelOfFortune/SET_ROOM_TO_VIEW",null),this.infiniteStop&&this.infiniteStop(),NM?.destroy(),a()},beforeRouteEnter(e,t,a){a((async t=>{await t.$store.commit("wheelOfFortune/CLEAR_ROOMS"),await t.$store.dispatch("wheelOfFortune/getCasinoGame"),await t.getRooms({game_slug:e.params.gameSlug,forPage:t.$route.query.filterTab||"default"}),NM=new HM(t.$privateSocket);const{stop:a}=ju(document.body,(async()=>{await t.getRooms({game_slug:e.params.gameSlug,loadNextPage:!0,forPage:t.$route.query.filterTab||"default"})}),{distance:document.body.clientHeight,interval:200,canLoadMore:()=>!!t.rooms.pagination?.next});t.infiniteStop=a}))}});const qM=(0,C.A)(KM,[["render",QM]]);var ZM=qM;const JM={class:"wheel-of-fortune"};function YM(e,t,a,i,o,r){const s=(0,n.g2)("WheelOfFortuneMobile"),l=(0,n.g2)("WheelOfFortuneDesktop");return(0,n.uX)(),(0,n.CE)("div",JM,[e.isMobile?((0,n.uX)(),(0,n.Wv)(s,{key:0})):((0,n.uX)(),(0,n.Wv)(l,{key:1}))])}const $M={class:"buttons-wrapper"},eL={class:"games-tabs"},tL={class:"buttons"},aL={key:0,class:"casino-game-rooms",ref:"room-list"},iL=["src"];function nL(e,t,i,o,r,s){const d=(0,n.g2)("Tabs"),c=(0,n.g2)("Button"),p=(0,n.g2)("CasinoGameRoom"),u=(0,n.g2)("DotsLoader"),f=(0,n.g2)("CreateModal"),g=(0,n.g2)("Modal"),m=(0,n.g2)("ViewModal");return(0,n.uX)(),(0,n.CE)("section",null,[t[4]||(t[4]=(0,n.Lk)("div",{class:"top"},[(0,n.Lk)("h2",null,"Wheel of Fortune")],-1)),(0,n.Lk)("div",$M,[(0,n.Lk)("div",eL,[(0,n.bF)(d,{tabs:e.tabs,onChange:e.changeTab},null,8,["tabs","onChange"])]),(0,n.Lk)("div",tL,[(0,n.bF)(d,{tabs:e.filterTabs,onChange:e.changeFilterTab},null,8,["tabs","onChange"]),(0,n.bF)(c,{type:"primary",onClick:e.handleCreate},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.create")),1)])),_:1},8,["onClick"])])]),e.rooms.data.size?((0,n.uX)(),(0,n.CE)("div",aL,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.sortedRooms,(t=>((0,n.uX)(),(0,n.Wv)(p,{key:t.id,room:t,onJoin:a=>e.$router.push({name:"round",params:{roomId:t.id}}),onView:a=>e.setRoomToView(t)},null,8,["room","onJoin","onView"])))),128))],512)):(0,n.Q3)("",!0),e.rooms.loading?((0,n.uX)(),(0,n.Wv)(u,{key:1})):(0,n.Q3)("",!0),e.showCreateModal?((0,n.uX)(),(0,n.Wv)(g,{key:2,onClose:t[1]||(t[1]=t=>e.showCreateModal=!1),img:"Modal-background.png",name:e.$t("modals.create.title",{gameLabel:"Wheel Of Fortune"})},{default:(0,n.k6)((()=>[e.activeTab?((0,n.uX)(),(0,n.Wv)(f,{key:0,onClose:t[0]||(t[0]=t=>e.showCreateModal=!1),activeTab:e.activeTab},null,8,["activeTab"])):(0,n.Q3)("",!0)])),_:1},8,["name"])):(0,n.Q3)("",!0),e.roomToView?((0,n.uX)(),(0,n.Wv)(g,{key:3,onClose:t[3]||(t[3]=t=>e.setRoomToView(null)),img:"View-modal-background.png",name:e.$t("modals.view.title",{round:e.roomToView.id}),style:{"max-width":"max-content"}},{"background-image":(0,n.k6)((()=>[(0,n.Lk)("img",{class:"view-modal-background",src:a(60694),alt:"view background"},null,8,iL)])),default:(0,n.k6)((()=>[(0,n.bF)(m,{onClose:t[2]||(t[2]=t=>e.setRoomToView(null)),room:e.roomToView},null,8,["room"])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}const oL={class:"casino-game-room"},rL={class:"left"},sL={class:"right"},lL={class:"items-with-count"},dL={class:"total-amount-participant"},cL={class:"participant-count"},pL={class:"total-amount"},uL={class:"actions"};function fL(e,t,a,i,o,r){const s=(0,n.g2)("Participant"),d=(0,n.g2)("ItemsCounter"),c=(0,n.g2)("Button"),p=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",oL,[(0,n.Lk)("div",rL,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.room.participants,((e,t)=>((0,n.uX)(),(0,n.Wv)(s,{key:e.id,participant:e,index:t,showWinner:""},null,8,["participant","index"])))),128))]),(0,n.Lk)("div",sL,[(0,n.Lk)("div",lL,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.room.participants,(e=>((0,n.uX)(),(0,n.CE)("div",{class:"participant-items-counter",key:e.id},[(0,n.bF)(d,{count:e.participantItems?.length||0,isWinner:e.meta.winner},null,8,["count","isWinner"]),(0,n.bo)((0,n.Lk)("span",null,null,512),[[p,e.meta.totalBetAmount]])])))),128))]),(0,n.Lk)("div",dL,[(0,n.Lk)("div",cL,[(0,n.Lk)("p",null,(0,l.v_)(e.room.participants.length),1),t[2]||(t[2]=(0,n.Lk)("span",null,"/5",-1))]),(0,n.bo)((0,n.Lk)("div",pL,null,512),[[p,e.room.configs.totalBetAmount]])]),(0,n.Lk)("div",uL,["game-is-starting"!==e.room.configs.state&&"pending"===e.room.status?((0,n.uX)(),(0,n.Wv)(c,{key:0,onClick:t[0]||(t[0]=t=>e.$emit("join")),type:"primary",style:{width:"unset",height:"32px","border-radius":"12px"}},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.join")),1)])),_:1})):(0,n.Q3)("",!0),(0,n.bF)(c,{onClick:t[1]||(t[1]=t=>e.$emit("view")),type:"outlined__white",style:{width:"unset"}},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.view")),1)])),_:1})])])])}function gL(e,t,a,i,o,r){const s=(0,n.g2)("ParticipantAvatar"),d=(0,n.g2)("Tooltip");return(0,n.uX)(),(0,n.CE)("div",{class:"participant",style:(0,l.Tr)(`left: ${e.left}px`)},[(0,n.bF)(d,{text:e.participant.user.name},{default:(0,n.k6)((()=>[(0,n.bF)(s,{participant:e.participant,"show-winner":e.showWinner,showSide:!1,style:{width:"60px",height:"60px"}},null,8,["participant","show-winner"])])),_:1},8,["text"])],4)}const mL=["src"],hL={key:0,class:"winner"};function vL(e,t,a,o,r,s){return(0,n.uX)(),(0,n.CE)("div",(0,n.v6)({class:"avatar-wrapper"},e.$attrs),[(0,n.Lk)("div",{class:(0,l.C4)(["avatar",{winner:e.participant.meta.winner&&e.showWinner}])},[(0,n.Lk)("img",{src:e.participant.user.avatar,alt:"Avatar"},null,8,mL),e.participant.meta.winner?(0,n.bo)(((0,n.uX)(),(0,n.CE)("div",hL,[...t[0]||(t[0]=[(0,n.Lk)("span",null," WIN ",-1)])],512)),[[i.aG,e.showWinner]]):(0,n.Q3)("",!0)],2)],16)}var xL=(0,n.pM)({props:{participant:{type:Object,required:!0},showWinner:{type:Boolean,default:!1}}}),bL=(0,n.pM)({mixins:[xL]});a(73378);const wL=(0,C.A)(bL,[["render",vL],["__scopeId","data-v-22c28bf0"]]);var yL=wL,kL=(0,n.pM)({components:{Tooltip:$g},props:{participant:{type:Object,required:!0},showWinner:{type:Boolean,default:!1},index:{type:Number,required:!0}},computed:{left(){return 30*this.index}}}),CL=(0,n.pM)({name:"ParticipantComponent",components:{ParticipantAvatar:yL},mixins:[kL]});a(43475);const ML=(0,C.A)(CL,[["render",gL],["__scopeId","data-v-1cd3a0e0"]]);var LL=ML;const AL={class:"items-counter"},IL=["width","viewBox"],TL=["transform"],_L=["stroke","stroke-opacity"],EL=["transform"],SL=["fill"],FL=["fill"];function WL(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",AL,[((0,n.uX)(),(0,n.CE)("svg",{width:e.svgWidth,height:"45",viewBox:`0 0 ${e.svgWidth} 38`,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,n.Lk)("g",{transform:`scale(${e.scale} 1)`},[t[0]||(t[0]=(0,n.Lk)("path",{d:"M0.689004 4.59336C0.326242 2.17494 2.19928 0 4.64475 0H27.3553C29.8007 0 31.6738 2.17495 31.311 4.59336L26.511 36.5934C26.2173 38.5514 24.5352 40 22.5553 40H9.44475C7.46476 40 5.78272 38.5514 5.489 36.5934L0.689004 4.59336Z",fill:"white","fill-opacity":"0.04"},null,-1)),(0,n.Lk)("path",{d:"M4.64453 0.5H27.3555C29.4282 0.500125 31.0311 2.28596 30.8408 4.32129L30.8164 4.51953L26.0166 36.5195C25.7595 38.2326 24.2879 39.4998 22.5557 39.5H9.44434C7.82031 39.4998 6.42567 38.3858 6.0459 36.835L5.9834 36.5195L1.18359 4.51953C0.866187 2.40349 2.50485 0.500129 4.64453 0.5Z",stroke:e.isWinner?"url(#winner-gradient)":"white","stroke-opacity":e.isWinner?1:.08},null,8,_L)],8,TL),(0,n.Lk)("g",{transform:`translate(${e.triangleLeft}, -3)`},[(0,n.Lk)("path",{d:"M9.29883 11.75C8.75757 12.6873 7.45578 12.7459 6.81934 11.9258L6.70117 11.75L1.50488 2.75C0.927555 1.75004 1.64909 0.500098 2.80371 0.5L13.1963 0.5C14.2786 0.500094 14.9806 1.59842 14.5889 2.55957L14.4951 2.75L9.29883 11.75Z",fill:e.isWinner?"url(#winner-gradient)":"url(#paint0_linear_329_1857)",stroke:"white"},null,8,SL),(0,n.Lk)("text",{class:"headline",x:8,y:25,"dominant-baseline":"middle","text-anchor":"middle",fill:e.isWinner?"url(#winner-gradient)":"#ffffff99"},(0,l.v_)(e.count),9,FL)],8,EL),t[1]||(t[1]=(0,n.Fv)('',1))],8,IL))])}var jL=(0,n.pM)({props:{count:{type:Number,default:101},isWinner:{type:Boolean,default:!1}},computed:{textLength(){return String(this.count).length},svgWidth(){return 16*this.textLength+16},triangleLeft(){return 8*this.textLength},scale(){return.5*(this.textLength-1)+1}}}),XL=(0,n.pM)({mixins:[jL]});a(51959);const RL=(0,C.A)(XL,[["render",WL],["__scopeId","data-v-4e48e360"]]);var zL=RL,UL=(0,n.pM)({components:{Button:Ea},props:{room:{type:Object,required:!0}},data(){return{}},computed:{winner(){return this.room.participants.find((e=>e.meta.winner))},existsInRoom(){return!!this.room.participants.find((e=>e.user.name===this.$store.state.auth.user.name))},roomParticipantItemsAdditionalCount(){const e=this.roomParticipantItems.length-3;return e<0?0:e},roomParticipantItemsSliced(){return this.roomParticipantItems.slice(0,3)},roomParticipantItems(){return this.room.participants.reduce(((e,t)=>((t.participantItems||[]).forEach((t=>{e.push(t)})),e)),[])}}}),DL=(0,n.pM)({components:{Participant:LL,ItemsCounter:zL},mixins:[UL],watch:{"$i18n.locale"(){this.syncActionsWith()}},mounted(){this.syncActionsWith()},methods:{syncActionsWith(){const e=document.querySelectorAll(".actions");let t=!1;const a=()=>{t||(t=!0,requestAnimationFrame((()=>{let a=0;e.forEach((e=>{e.style.width="auto",a=Math.max(a,e.offsetWidth)})),e.forEach((e=>{e.style.width=a+"px"})),t=!1})))},i=new ResizeObserver(a);e.forEach((e=>i.observe(e)))}}});a(49497);const BL=(0,C.A)(DL,[["render",fL],["__scopeId","data-v-7e68b516"]]);var VL=BL;const PL={class:"create-modal"},OL={class:"filters"},GL={class:"inventory"},QL={class:"list"},HL={key:0,class:"empty"},NL={key:1,class:"items-list"},KL={class:"select-participants-count"},qL={class:"content"},ZL={class:"select-game-for-deposit"},JL={class:"deposit-games"};function YL(e,t,a,i,o,r){const s=(0,n.g2)("SearchInput"),d=(0,n.g2)("Select"),c=(0,n.g2)("EmptySearch"),p=(0,n.g2)("Button"),u=(0,n.g2)("InventoryItem"),f=(0,n.g2)("DepositGame"),g=(0,n.g2)("Modal"),m=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",PL,[(0,n.Lk)("div",OL,[(0,n.bF)(s,{modelValue:e.searchText,"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchText=t)},null,8,["modelValue"]),(0,n.bF)(d,{modelValue:e.sortSelected,"onUpdate:modelValue":t[1]||(t[1]=t=>e.sortSelected=t),options:e.sortItems},null,8,["modelValue","options"]),(0,n.bF)(d,{modelValue:e.gameSelected,"onUpdate:modelValue":t[2]||(t[2]=t=>e.gameSelected=t),options:e.gameItems},null,8,["modelValue","options"])]),(0,n.Lk)("div",GL,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("modals.select_item")),1),(0,n.Lk)("div",QL,[e.items.length?((0,n.uX)(),(0,n.CE)("div",NL,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.sortedItems,(e=>((0,n.uX)(),(0,n.Wv)(u,{inventoryItem:e,modelValue:e.selectedCount,"onUpdate:modelValue":t=>e.selectedCount=t,key:e.id},null,8,["inventoryItem","modelValue","onUpdate:modelValue"])))),128))])):((0,n.uX)(),(0,n.CE)("div",HL,[(0,n.Lk)("span",null,[(0,n.bF)(c)]),(0,n.Lk)("div",null,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.empty_state")),1),(0,n.bF)(p,{onClick:e.handleDeposit,type:"primary__white",style:{height:"48px"}},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.deposit_items")),1)])),_:1},8,["onClick"])])]))])]),(0,n.Lk)("div",KL,[(0,n.Lk)("div",qL,[(0,n.bF)(p,{type:"primary",style:{height:"60px",width:"200px"},onClick:e.createRoom,disabled:e.isCreating||0===e.calcSelectedPrice},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.create_with"))+" ",1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[m,e.calcSelectedPrice]])])),_:1},8,["onClick","disabled"])])]),e.showDepositModal?((0,n.uX)(),(0,n.Wv)(g,{key:0,onClose:t[3]||(t[3]=t=>e.showDepositModal=!1),img:"Modal-background.png",name:e.$t("buttons.deposit")},{default:(0,n.k6)((()=>[(0,n.Lk)("div",ZL,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("global.select_game")),1),(0,n.Lk)("div",JL,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.games.data,(e=>((0,n.uX)(),(0,n.Wv)(f,{game:e,key:e.id},null,8,["game"])))),128))])])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}var $L=(0,n.pM)({data(){return{sortItems:[{value:"high-low",label:"High - Low"},{value:"low-high",label:"Low - High"},{value:"alphabetical",label:"Alphabetical"}],sortSelected:"high-low",items:[],gameSelected:"",gameItems:[],searchText:"",showDepositModal:!1}},components:{SearchInput:Ou,Select:zw,Button:Ea,EmptySearch:Mt,Modal:vn},computed:{searchFilter(){return this.items.filter((e=>e.item.name.toLowerCase().includes(this.searchText.toLowerCase())))},sortedItems(){const e=[...this.searchFilter];return"high-low"===this.sortSelected&&e.sort(((e,t)=>t.item.price-e.item.price)),"low-high"===this.sortSelected&&e.sort(((e,t)=>e.item.price-t.item.price)),"alphabetical"===this.sortSelected&&e.sort(((e,t)=>e.item.name.localeCompare(t.item.name,void 0,{sensitivity:"base"}))),e},calcSelectedPrice(){return this.selectedItems.reduce(((e,t)=>e+t.selectedCount*t.item.price),0)},selectedItems(){return this.items.filter((e=>e.selectedCount))},games(){return this.$store.getters["games/data"]}},methods:{handleDeposit(){this.showDepositModal=!0}}}),eA=(0,n.pM)({props:{activeTab:{type:Object,required:!0}},mixins:[$L],data(){return{isCreating:!1,side:!0,selectedParticipantsCount:2}},watch:{async gameSelected(e){await this.getInventory(e)}},async mounted(){this.gameSelected=this.$route.params.gameSlug,await this.setGameItems()},methods:{async createRoom(){this.isCreating=!0;try{const e=await Ba.createRoom(this.gameSelected,qt.WheelOfFortune,this.selectedItems.map((e=>({id:e.item.id,count:e.selectedCount}))),{});this.$router.push({name:"round",params:{roomId:e.data.data.id,gameSlug:this.gameSelected}}),this.$emit("close")}finally{this.isCreating=!1}},async setGameItems(){this.gameItems=this.games.data.map((e=>({label:e.name,value:e.slug})))},async getInventory(e){const t=await Ba.getGameInventory(e),a=t.data.data;this.items=a.map((e=>({...e,selectedCount:0})))}}}),tA=(0,n.pM)({components:{InventoryItem:Zw,DepositGame:mf},mixins:[eA]});a(67712);const aA=(0,C.A)(tA,[["render",YL],["__scopeId","data-v-fc81859e"]]);var iA=aA;const nA={class:"view-modal"},oA={class:"wheel-of-fortune-wrapper"},rA={class:"participants left-side"},sA={class:"participants center-side"},lA={class:"participants right-side"};function dA(e,t,a,i,o,r){const s=(0,n.g2)("WheelOfFortune"),l=(0,n.g2)("ParticipantCard");return(0,n.uX)(),(0,n.CE)("div",nA,[(0,n.Lk)("div",oA,[(0,n.bF)(s,{room:e.room,onDone:t[0]||(t[0]=t=>e.showWinner=!0)},null,8,["room"])]),(0,n.Lk)("div",rA,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.leftSideParticipants,(t=>((0,n.uX)(),(0,n.Wv)(l,{key:t.id,showWinner:e.showWinner,participant:t},null,8,["showWinner","participant"])))),128))]),(0,n.Lk)("div",sA,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.centerSideParticipants,(t=>((0,n.uX)(),(0,n.Wv)(l,{key:t.id,showWinner:e.showWinner,participant:t},null,8,["showWinner","participant"])))),128))]),(0,n.Lk)("div",lA,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.rightSideParticipants,(t=>((0,n.uX)(),(0,n.Wv)(l,{key:t.id,showWinner:e.showWinner,participant:t},null,8,["showWinner","participant"])))),128))])])}const cA={class:"participant-wrapper"},pA={key:0,class:"user"},uA={key:1,class:"info"},fA={class:"action-label"},gA={class:"price-coin-container"},mA={class:"bold"},hA={class:"action-label"},vA={class:"bold"},xA={key:2,class:"shadow"},bA={key:0,class:"participant-items"},wA={class:"item-count"},yA={class:"participant-item-info"},kA=["src","alt"];function CA(e,t,a,i,o,r){const s=(0,n.g2)("ParticipantAvatar"),d=(0,n.g2)("Arrow"),c=(0,n.gN)("price-format"),p=(0,n.gN)("percent");return(0,n.uX)(),(0,n.CE)("div",{class:(0,l.C4)(["participant",{winner:e.participant?.meta.winner&&e.showWinner,open:e.isOpen}])},[(0,n.Lk)("div",cA,[e.participant?((0,n.uX)(),(0,n.CE)("div",pA,[(0,n.bF)(s,{showSide:!1,participant:e.participant,style:{width:"76px",height:"76px"},showWinner:e.showWinner},null,8,["participant","showWinner"]),(0,n.Lk)("span",null,(0,l.v_)(e.participant.user.name),1)])):(0,n.Q3)("",!0),e.participant?((0,n.uX)(),(0,n.CE)("div",uA,[(0,n.Lk)("div",null,[(0,n.Lk)("span",fA,(0,l.v_)(e.$t("global.bet")),1),(0,n.Lk)("div",gA,[(0,n.bo)((0,n.Lk)("span",mA,null,512),[[c,e.participant.meta.totalBetAmount]])])]),(0,n.Lk)("div",null,[(0,n.Lk)("span",hA,(0,l.v_)(e.$t("global.chance")),1),(0,n.bo)((0,n.Lk)("div",vA,null,512),[[p,e.participant.meta.chance]])])])):(0,n.Q3)("",!0),(0,n.bF)(d,{style:(0,l.Tr)(`transform: rotate(${e.arrowRotate}deg); transition: transform .3s; cursor: pointer`),onClick:t[0]||(t[0]=t=>e.isOpen=!e.isOpen)},null,8,["style"]),e.participant?.meta.winner&&e.showWinner?((0,n.uX)(),(0,n.CE)("div",xA)):(0,n.Q3)("",!0)]),e.participant?.participantItems?.length?((0,n.uX)(),(0,n.CE)("div",bA,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.participant?.participantItems||[],(e=>((0,n.uX)(),(0,n.CE)("div",{class:"participant-item",key:e.id},[(0,n.Lk)("div",wA,(0,l.v_)(e.count),1),(0,n.Lk)("div",yA,[(0,n.Lk)("span",null,(0,l.v_)(e.item.name),1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[c,e.item.price]])]),(0,n.Lk)("img",{src:e.item.thumbnail,alt:e.item.name},null,8,kA)])))),128))])):(0,n.Q3)("",!0)],2)}var MA=(0,n.pM)({components:{Arrow:bt},props:{participant:{type:Object,required:!1},showWinner:{type:Boolean,default:!1}},data(){return{isOpen:!1}},computed:{arrowRotate(){return this.isOpen?0:180},itemsAmount(){return this.participant?.participantItems?.reduce(((e,t)=>e+t.count*t.item.price),0)||0}}}),LA=(0,n.pM)({components:{ParticipantAvatar:yL},mixins:[MA]});a(22993);const AA=(0,C.A)(LA,[["render",CA],["__scopeId","data-v-20489604"]]);var IA=AA;const TA={viewBox:"-2 -2 56 56",class:"wheel-of-fortune",xmlns:"http://www.w3.org/2000/svg"},_A=["d"],EA=["transform"],SA=["stroke"],FA=["transform"],WA=["xlink:href","clip-path"],jA=["id"];function XA(e,t,a,i,o,r){const s=(0,n.g2)("TimeCounter");return(0,n.uX)(),(0,n.CE)("svg",TA,[t[3]||(t[3]=(0,n.Lk)("circle",{cx:"25",cy:"25",r:"23",stroke:"url(#myGradient)","stroke-width":"0.2",fill:"none"},null,-1)),t[4]||(t[4]=(0,n.Lk)("circle",{cx:"25",cy:"25",r:"11",stroke:"url(#myGradient)","stroke-width":"0.2",fill:"none"},null,-1)),!e.isRoomReady&&!e.isRoomStarted||e.isRoomFinished?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.Wv)(s,{key:0,onEndTimer:e.startingGame,seconds:e.isRoomReady?e.casinoGame.configs.waitingTimer:e.casinoGame.configs.startingTimer,remainingSeconds:e.timer,onRemainThreeSeconds:t[0]||(t[0]=t=>e.isRoomStarted?e.$emit("remain-three-seconds"):null)},null,8,["onEndTimer","seconds","remainingSeconds"])),(0,n.Lk)("g",{class:(0,l.C4)(["wheel-rotation",{rotate:e.rotate}]),style:(0,l.Tr)({transform:`rotate(${e.rotation}deg)`})},[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.segments,((t,a)=>((0,n.uX)(),(0,n.CE)("g",{key:a},[(0,n.Lk)("path",{d:e.describeRingSegment(25,25,13,21,t.startAngle,t.endAngle),stroke:"url(#myGradient)","stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"url(#myGradient)"},null,8,_A)])))),128)),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.segments,((t,a)=>((0,n.uX)(),(0,n.CE)("g",{key:"avatar-"+a,class:(0,l.C4)(["wheel-rotation",{rotate:e.rotate}]),transform:`translate(${e.getAvatarPosition(t).cx}, ${e.getAvatarPosition(t).cy})`},[(0,n.Lk)("circle",{r:"5",fill:"white",stroke:""+(t.participant.meta.winner&&e.showWinner?"url(#goldGradient)":"#212429"),"stroke-width":.3},null,8,SA),(0,n.Lk)("g",{transform:`rotate(${-e.rotation}, 0, 0)`},[(0,n.Lk)("image",{"xlink:href":t.participant.user.avatar,x:"-5",y:"-5",width:"10",height:"10",preserveAspectRatio:"xMidYMid meet","clip-path":`url(#circle-clip-${a})`},null,8,WA)],8,FA)],10,EA)))),128))],6),t[5]||(t[5]=(0,n.Lk)("g",{transform:"translate(22, 11) scale(0.1, 0.1) "},[(0,n.Lk)("path",{d:"M31.0001 0.0932617L61.3646 34.7955C61.3646 34.7955 45.3692 30.9999 31.0002 30.9999C15.5469 30.9999 0.635742 34.7955 0.635742 34.7955L31.0001 0.0932617Z",fill:"white"})],-1)),(0,n.Lk)("defs",null,[t[2]||(t[2]=(0,n.Fv)('',2)),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.segments,((e,a)=>((0,n.uX)(),(0,n.CE)("clipPath",{key:a,id:`circle-clip-${a}`},[...t[1]||(t[1]=[(0,n.Lk)("circle",{r:"5"},null,-1)])],8,jA)))),128))])])}const RA={transform:"translate(12.5, 12.5)"},zA=["transform"],UA=["fill"];function DA(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)(n.FK,null,[(0,n.Lk)("g",RA,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.segments,((t,a)=>((0,n.uX)(),(0,n.CE)("g",{key:a,transform:`rotate(${t.rotate} 12.5 12.5) translate(10, 2) scale(0.3)`},[(0,n.Lk)("path",{d:"M0.27208 3.24865C0.0871808 2.72823 0.358683 2.15434 0.886321 1.99119C5.61237 0.529897 10.675 0.559614 15.3835 2.07629C15.9092 2.24562 16.174 2.82266 15.983 3.34087L15.0082 5.9856C14.8172 6.5038 14.2428 6.76638 13.7154 6.60253C10.0669 5.469 6.16272 5.44609 2.50116 6.5367C1.97186 6.69436 1.40063 6.42505 1.21573 5.90464L0.27208 3.24865Z",fill:a({rotate:360-t*(360/this.totalSegments)-360/this.totalSegments,color:this.gradientColors[t%this.gradientColors.length]})))},resetCountdown(e){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null),this.currentRemainingSeconds=e,this.activeSegments=this.totalSegments,this.startCountdown()},startCountdown(){const e=this.seconds/this.totalSegments;let t=!1;this.intervalId=setInterval((()=>{this.currentRemainingSeconds-=.5,!t&&Math.round(this.currentRemainingSeconds)<=3&&(this.$emit("remain-three-seconds"),t=!0),this.currentRemainingSeconds<=(this.activeSegments-1)*e&&(this.activeSegments-=1),this.currentRemainingSeconds<=0&&(this.$emit("end-timer"),clearInterval(this.intervalId),this.intervalId=null)}),500)}}}),VA=(0,n.pM)({mixins:[BA]});a(8514);const PA=(0,C.A)(VA,[["render",DA],["__scopeId","data-v-7f314dee"]]);var OA=PA,GA=(0,n.pM)({props:{room:{type:Object,required:!0}},emits:["done","remain-three-seconds"],data(){return{timer:30,rotate:!1,seconds:5,segments:[],items:[],rotation:0,isRotating:!1,currentAngle:0,targetAngle:0,showWinner:!1}},watch:{"room.participants"(){this.startRender()},"room.configs.stateChanged"(e,t){if(e===t)return;const a=this.isRoomReady?this.casinoGame.configs.waitingTimer:this.casinoGame.configs.startingTimer;this.timer=a-(Date.now()-new Date(e).getTime())/1e3},isRoomFinished(e){this.rotate=e,this.winnerSegment&&this.rotateWheel(this.winnerSegment)}},computed:{casinoGame(){return this.$store.getters["wheelOfFortune/casinoGame"]},winnerSegment(){return this.segments.find((e=>e.participant.meta.winner))},isRoomWaiting(){return"waiting-for-participants"===this.room.configs.state},isRoomReady(){return"participants-ready"===this.room.configs.state},isRoomStarted(){return"game-is-starting"===this.room.configs.state},isRoomFinished(){return"finished"===this.room.status}},mounted(){const e=this.isRoomReady?this.casinoGame.configs.waitingTimer:this.casinoGame.configs.startingTimer;this.timer=e-(Date.now()-new Date(this.room.configs.stateChanged).getTime())/1e3,this.startRender(),this.winnerSegment&&(this.rotation=360-this.randomFloat(this.winnerSegment.startAngle,this.winnerSegment.endAngle),this.showWinner=!0,this.$emit("done"))},methods:{startingGame(){},startRender(){this.items=this.room.participants.map((e=>({percentage:e.meta.chance||100,participant:e})));const e=1,t=15,a=20,i=(t+a)/2,n=e/i*(180/Math.PI),o=4+n,r=o*this.items.length,s=360-r,l=this.items.reduce(((e,t)=>e+t.percentage),0);let d=0;this.segments=this.items.map((e=>{const t=e.percentage/l*s,a={startAngle:d,endAngle:d+t,participant:e.participant};return d+=t+o,a})),setTimeout((()=>{this.$refs.coin,this.winnerSegment&&this.rotateWheel(this.winnerSegment)}),100)},getAvatarPosition(e){const t=25,a=25,i=22,n=21,o=(i+n)/2,r=(e.startAngle+e.endAngle)/2,s=(r-90)*Math.PI/180;return{cx:t+o*Math.cos(s),cy:a+o*Math.sin(s)}},animateRotationFrame(){const e=1e3*(this.isRoomReady?this.casinoGame.configs.waitingTimer:this.casinoGame.configs.startingTimer),t=performance.now(),a=this.currentAngle,i=this.targetAngle,n=e=>1-Math.pow(1-e,3),o=r=>{if(!this.isRotating||!this.rotate)return;const s=r-t,l=Math.min(s/e,1),d=n(l);this.currentAngle=a+(i-a)*d,this.rotation=this.currentAngle,l<1?requestAnimationFrame(o):(this.isRotating=!1,this.showWinner=!0,this.$emit("done"))};requestAnimationFrame(o)},randomFloat(e,t){return Math.random()*(t-e)+e},rotateWheel(e){if(this.isRotating||!this.rotate)return;this.isRotating=!0;const t=360-this.randomFloat(e.startAngle,e.endAngle),a=5+Math.floor(3*Math.random());this.targetAngle=360*a+t,this.animateRotationFrame()},describeRingSegment(e,t,a,i,n,o){const r=this.polarToCartesian(e,t,i,n),s=this.polarToCartesian(e,t,i,o),l=this.polarToCartesian(e,t,a,o),d=this.polarToCartesian(e,t,a,n),c=o-n>180?1:0;return["M",r.x,r.y,"A",i,i,0,c,1,s.x,s.y,"L",l.x,l.y,"A",a,a,0,c,0,d.x,d.y,"Z"].join(" ")},polarToCartesian(e,t,a,i){const n=(i-90)*Math.PI/180;return{x:e+a*Math.cos(n),y:t+a*Math.sin(n)}}}}),QA=(0,n.pM)({components:{TimeCounter:OA},mixins:[GA]});a(54490);const HA=(0,C.A)(QA,[["render",XA],["__scopeId","data-v-3810074c"]]);var NA=HA;const KA="wheelOfFortune";class qA extends bM{constructor(e,t=KA){super(e),(0,za.A)(this,"namespace",void 0),this.namespace=t}handleEvents(){this.socket.on("room:participants-updated",this.participantsUpdated)}participantsUpdated(e){e.participants.length?Li.commit(`${KA}/UPDATE_ROOM`,e):(Li.commit(`${KA}/DELETE_ROOM`,e),Li.commit(`${KA}/SET_ROOM_TO_JOIN`,null),Li.commit(`${KA}/SET_ROOM_TO_VIEW`,null))}roomUpdated(e){e.animate=!1,Li.commit(`${KA}/UPDATE_ROOM`,e)}roomCreated(e){this.store.dispatch(`${this.namespace}/addRoom`,e)}}var ZA=(0,n.pM)({props:{room:{type:Object,required:!0}},data(){return{showWinner:!1}},computed:{winner(){return this.room.participants.find((e=>e.meta.winner))},leftSideParticipants(){return this.room.participants.slice(0,2)},centerSideParticipants(){return this.room.participants[2]?[this.room.participants[2]]:[]},rightSideParticipants(){return this.room.participants.slice(3,5)},authParticipantIndex(){return this.room.participants.findIndex((e=>e.user.name===this.$store.state.auth.user.name))},authParticipant(){return this.room.participants[this.authParticipantIndex]}},mounted(){this.$privateSocket.emit("joinCasinoGameRoom",{casino_game_room_id:this.room.id}),new qA(this.$privateSocket)},unmounted(){this.$privateSocket.emit("leaveCasinoGameRoom",{casino_game_room_id:this.room.id})},methods:{}}),JA=(0,n.pM)({components:{ParticipantCard:IA,WheelOfFortune:NA},mixins:[ZA]});a(52426);const YA=(0,C.A)(JA,[["render",dA],["__scopeId","data-v-6be09ecf"]]);var $A=YA,eI=(0,n.pM)({name:"WheelOfFortuneDesktop",components:{Tabs:_o,Button:Ea,Modal:vn,DotsLoader:Fi},data(){return{showCreateModal:!1,tabs:[],filterTabs:[{active:!this.$route.query.filterTab||"default"===this.$route.query.filterTab,label:"global.all",value:"default"},{label:"global.my_games",value:"my-games",active:"my-games"===this.$route.query.filterTab}]}},watch:{activeTab(e,t){t&&this.$privateSocket.emit("leaveCasinoGame",{game_slug:t.value,casino_game_slug:qt.WheelOfFortune}),this.$privateSocket.emit("joinCasinoGame",{game_slug:e.value,casino_game_slug:qt.WheelOfFortune})}},computed:{activeTab(){return this.tabs.find((e=>e.active))},activeFilterTab(){return this.filterTabs.find((e=>e.active))},games(){return this.$store.getters["games/data"]},rooms(){return this.$store.getters["wheelOfFortune/rooms"]},sortedRooms(){const e=this.rooms.data;return e instanceof Map?[...e.values()].sort(((e,t)=>t.configs.totalBetAmount-e.configs.totalBetAmount)):[]},...(0,Sa.L8)({roomToView:"wheelOfFortune/roomToView",roomToJoin:"wheelOfFortune/roomToJoin"})},async mounted(){await this.setTabs(),await this.getRooms({game_slug:this.activeTab.value,forPage:this.activeFilterTab.value})},methods:{...(0,Sa.i0)({setRoomToView:"wheelOfFortune/setRoomToView",setRoomToJoin:"wheelOfFortune/setRoomToJoin",setRoom:"wheelOfFortune/setRoom",getRooms:"wheelOfFortune/getRooms"}),async handleCreate(){this.showCreateModal=!0},async changeFilterTab(){this.getRooms({game_slug:this.activeTab.value,forPage:this.activeFilterTab.value}),this.$router.replace({name:"wheel-of-fortune.rounds",params:{gameSlug:this.activeTab.value},query:{...this.$route.query,filterTab:this.activeFilterTab.value}})},async changeTab(e){this.$route.params.gameSlug!==e.value&&(this.$router.replace({name:"wheel-of-fortune.rounds",params:{gameSlug:e.value},query:{...this.$route.query,filterTab:this.activeFilterTab.value}}),await this.getRooms({game_slug:e.value,forPage:this.activeFilterTab.value}))},async setTabs(){this.tabs=this.games.data.map((e=>({active:e.slug===this.$route.params.gameSlug,disabled:!1,label:e.name,value:e.slug})))}}}),tI=(0,n.pM)({name:"WheelOfFortuneDesktop",components:{CasinoGameRoom:VL,CreateModal:iA,ViewModal:$A},mixins:[eI]});a(26857);const aI=(0,C.A)(tI,[["render",nL],["__scopeId","data-v-02fe7b37"]]);var iI=aI;const nI={class:"top"},oI={class:"buttons"},rI={class:"buttons-wrapper"},sI={class:"games-tabs"},lI={key:0,class:"casino-game-rooms",ref:"room-list"},dI=["src"];function cI(e,t,i,o,r,s){const d=(0,n.g2)("Tabs"),c=(0,n.g2)("Button"),p=(0,n.g2)("CasinoGameRoom"),u=(0,n.g2)("DotsLoader"),f=(0,n.g2)("CreateModal"),g=(0,n.g2)("Modal"),m=(0,n.g2)("ViewModal");return(0,n.uX)(),(0,n.CE)("section",null,[(0,n.Lk)("div",nI,[t[4]||(t[4]=(0,n.Lk)("h2",null,"Wheel of Fortune",-1)),(0,n.Lk)("div",oI,[(0,n.bF)(d,{tabs:e.filterTabs,onChange:e.changeFilterTab},null,8,["tabs","onChange"]),(0,n.bF)(c,{type:"primary",style:{"font-size":"12px"},onClick:e.handleCreate},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.create")),1)])),_:1},8,["onClick"])])]),(0,n.Lk)("div",rI,[(0,n.Lk)("div",sI,[(0,n.bF)(d,{tabs:e.tabs,onChange:e.changeTab},null,8,["tabs","onChange"])])]),e.rooms.data.size?((0,n.uX)(),(0,n.CE)("div",lI,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.sortedRooms,(t=>((0,n.uX)(),(0,n.Wv)(p,{key:t.id,room:t,onJoin:a=>e.$router.push({name:"round",params:{roomId:t.id}}),onView:a=>e.setRoomToView(t)},null,8,["room","onJoin","onView"])))),128))],512)):(0,n.Q3)("",!0),e.rooms.loading?((0,n.uX)(),(0,n.Wv)(u,{key:1})):(0,n.Q3)("",!0),e.showCreateModal?((0,n.uX)(),(0,n.Wv)(g,{key:2,onClose:t[1]||(t[1]=t=>e.showCreateModal=!1),img:"Modal-background.png",name:e.$t("modals.create.title",{gameLabel:"Wheel Of Fortune"})},{default:(0,n.k6)((()=>[e.activeTab?((0,n.uX)(),(0,n.Wv)(f,{key:0,onClose:t[0]||(t[0]=t=>e.showCreateModal=!1),activeTab:e.activeTab},null,8,["activeTab"])):(0,n.Q3)("",!0)])),_:1},8,["name"])):(0,n.Q3)("",!0),e.roomToView?((0,n.uX)(),(0,n.Wv)(g,{key:3,onClose:t[3]||(t[3]=t=>e.setRoomToView(null)),img:"View-modal-background.png",name:e.$t("modals.view.title",{round:e.roomToView.id}),style:{"max-width":"max-content"}},{"background-image":(0,n.k6)((()=>[(0,n.Lk)("img",{class:"view-modal-background",src:a(60694),alt:"view background"},null,8,dI)])),default:(0,n.k6)((()=>[(0,n.bF)(m,{onClose:t[2]||(t[2]=t=>e.setRoomToView(null)),room:e.roomToView},null,8,["room"])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}const pI={class:"casino-game-room"},uI={class:"left"},fI={class:"total-amount-participant"},gI={class:"participant-count"},mI={class:"total-amount"},hI={class:"right"},vI={class:"items-with-count"},xI={class:"actions"};function bI(e,t,a,i,o,r){const s=(0,n.g2)("Participant"),d=(0,n.g2)("ItemsCounter"),c=(0,n.g2)("Button"),p=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",pI,[(0,n.Lk)("div",uI,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.room.participants,((e,t)=>((0,n.uX)(),(0,n.Wv)(s,{key:e.id,participant:e,index:t,showWinner:""},null,8,["participant","index"])))),128)),(0,n.Lk)("div",fI,[(0,n.Lk)("div",gI,[(0,n.Lk)("p",null,(0,l.v_)(e.room.participants.length),1),t[2]||(t[2]=(0,n.Lk)("span",null,"/5",-1))]),(0,n.bo)((0,n.Lk)("div",mI,null,512),[[p,e.room.configs.totalBetAmount]])])]),(0,n.Lk)("div",hI,[(0,n.Lk)("div",vI,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.room.participants,(e=>((0,n.uX)(),(0,n.CE)("div",{class:"participant-items-counter",key:e.id},[(0,n.bF)(d,{count:e.participantItems?.length||0,isWinner:e.meta.winner},null,8,["count","isWinner"]),(0,n.bo)((0,n.Lk)("span",null,null,512),[[p,e.meta.totalBetAmount]])])))),128))])]),(0,n.Lk)("div",xI,["game-is-starting"!==e.room.configs.state&&"pending"===e.room.status?((0,n.uX)(),(0,n.Wv)(c,{key:0,onClick:t[0]||(t[0]=t=>e.$emit("join")),type:"primary"},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.join")),1)])),_:1})):(0,n.Q3)("",!0),(0,n.bF)(c,{onClick:t[1]||(t[1]=t=>e.$emit("view")),type:"outlined__white"},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.view")),1)])),_:1})])])}function wI(e,t,a,i,o,r){const s=(0,n.g2)("ParticipantAvatar"),d=(0,n.g2)("Tooltip");return(0,n.uX)(),(0,n.CE)("div",{class:"participant",style:(0,l.Tr)(`left: ${e.left}px`)},[(0,n.bF)(d,{text:e.participant.user.name},{default:(0,n.k6)((()=>[(0,n.bF)(s,{participant:e.participant,"show-winner":e.showWinner,showSide:!1,style:{width:"40px",height:"40px"}},null,8,["participant","show-winner"])])),_:1},8,["text"])],4)}const yI=["src"],kI={key:0,class:"winner"};function CI(e,t,a,o,r,s){return(0,n.uX)(),(0,n.CE)("div",(0,n.v6)({class:"avatar-wrapper"},e.$attrs),[(0,n.Lk)("div",{class:(0,l.C4)(["avatar",{winner:e.participant.meta.winner&&e.showWinner}])},[(0,n.Lk)("img",{src:e.participant.user.avatar,alt:"Avatar"},null,8,yI),e.participant.meta.winner?(0,n.bo)(((0,n.uX)(),(0,n.CE)("div",kI,[...t[0]||(t[0]=[(0,n.Lk)("span",null," WIN ",-1)])],512)),[[i.aG,e.showWinner]]):(0,n.Q3)("",!0)],2)],16)}var MI=(0,n.pM)({mixins:[xL]});a(53835);const LI=(0,C.A)(MI,[["render",CI],["__scopeId","data-v-0e9bb7a6"]]);var AI=LI,II=(0,n.pM)({name:"ParticipantComponent",components:{ParticipantAvatar:AI},mixins:[kL]});a(69366);const TI=(0,C.A)(II,[["render",wI],["__scopeId","data-v-aa03f454"]]);var _I=TI;const EI={class:"items-counter"},SI=["width","viewBox"],FI=["transform"],WI=["stroke","stroke-opacity"],jI=["transform"],XI=["fill"],RI=["fill"];function zI(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",EI,[((0,n.uX)(),(0,n.CE)("svg",{width:e.svgWidth,height:"45",viewBox:`0 0 ${e.svgWidth} 38`,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,n.Lk)("g",{transform:`scale(${e.scale} 1)`},[t[0]||(t[0]=(0,n.Lk)("path",{d:"M0.689004 4.59336C0.326242 2.17494 2.19928 0 4.64475 0H27.3553C29.8007 0 31.6738 2.17495 31.311 4.59336L26.511 36.5934C26.2173 38.5514 24.5352 40 22.5553 40H9.44475C7.46476 40 5.78272 38.5514 5.489 36.5934L0.689004 4.59336Z",fill:"white","fill-opacity":"0.04"},null,-1)),(0,n.Lk)("path",{d:"M4.64453 0.5H27.3555C29.4282 0.500125 31.0311 2.28596 30.8408 4.32129L30.8164 4.51953L26.0166 36.5195C25.7595 38.2326 24.2879 39.4998 22.5557 39.5H9.44434C7.82031 39.4998 6.42567 38.3858 6.0459 36.835L5.9834 36.5195L1.18359 4.51953C0.866187 2.40349 2.50485 0.500129 4.64453 0.5Z",stroke:e.isWinner?"url(#winner-gradient)":"white","stroke-opacity":e.isWinner?1:.08},null,8,WI)],8,FI),(0,n.Lk)("g",{transform:`translate(${e.triangleLeft}, -3)`},[(0,n.Lk)("path",{d:"M9.29883 11.75C8.75757 12.6873 7.45578 12.7459 6.81934 11.9258L6.70117 11.75L1.50488 2.75C0.927555 1.75004 1.64909 0.500098 2.80371 0.5L13.1963 0.5C14.2786 0.500094 14.9806 1.59842 14.5889 2.55957L14.4951 2.75L9.29883 11.75Z",fill:e.isWinner?"url(#winner-gradient)":"url(#paint0_linear_329_1857)",stroke:"white"},null,8,XI),(0,n.Lk)("text",{class:"headline",x:8,y:25,"dominant-baseline":"middle","text-anchor":"middle",fill:e.isWinner?"url(#winner-gradient)":"#ffffff99"},(0,l.v_)(e.count),9,RI)],8,jI),t[1]||(t[1]=(0,n.Fv)('',1))],8,SI))])}var UI=(0,n.pM)({mixins:[jL]});a(65085);const DI=(0,C.A)(UI,[["render",zI],["__scopeId","data-v-97866ffc"]]);var BI=DI,VI=(0,n.pM)({components:{Participant:_I,ItemsCounter:BI},mixins:[UL]});a(19239);const PI=(0,C.A)(VI,[["render",bI],["__scopeId","data-v-60986490"]]);var OI=PI;const GI={class:"create-modal"},QI={class:"filters"},HI={class:"inventory"},NI={class:"list"},KI={key:0,class:"empty"},qI={key:1,class:"items-list"},ZI={class:"select-participants-count"},JI={class:"content"},YI={class:"select-game-for-deposit"},$I={class:"deposit-games"};function eT(e,t,a,i,o,r){const s=(0,n.g2)("SearchInput"),d=(0,n.g2)("Select"),c=(0,n.g2)("EmptySearch"),p=(0,n.g2)("Button"),u=(0,n.g2)("InventoryItem"),f=(0,n.g2)("DepositGame"),g=(0,n.g2)("Modal"),m=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",GI,[(0,n.Lk)("div",QI,[(0,n.bF)(s,{modelValue:e.searchText,"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchText=t),class:"mobile"},null,8,["modelValue"]),(0,n.bF)(d,{modelValue:e.sortSelected,"onUpdate:modelValue":t[1]||(t[1]=t=>e.sortSelected=t),options:e.sortItems,class:"mobile"},null,8,["modelValue","options"]),(0,n.bF)(d,{modelValue:e.gameSelected,"onUpdate:modelValue":t[2]||(t[2]=t=>e.gameSelected=t),options:e.gameItems,class:"mobile"},null,8,["modelValue","options"])]),(0,n.Lk)("div",HI,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("modals.select_item")),1),(0,n.Lk)("div",NI,[e.items.length?((0,n.uX)(),(0,n.CE)("div",qI,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.sortedItems,(e=>((0,n.uX)(),(0,n.Wv)(u,{class:"mobile",inventoryItem:e,modelValue:e.selectedCount,"onUpdate:modelValue":t=>e.selectedCount=t,key:e.id},null,8,["inventoryItem","modelValue","onUpdate:modelValue"])))),128))])):((0,n.uX)(),(0,n.CE)("div",KI,[(0,n.Lk)("span",null,[(0,n.bF)(c)]),(0,n.Lk)("div",null,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.empty_state")),1),(0,n.bF)(p,{onClick:e.handleDeposit,type:"primary__white",style:{height:"48px"}},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.deposit_items")),1)])),_:1},8,["onClick"])])]))])]),(0,n.Lk)("div",ZI,[(0,n.Lk)("div",JI,[(0,n.bF)(p,{type:"primary",style:{height:"60px",width:"200px"},onClick:e.createRoom,disabled:e.isCreating||0===e.calcSelectedPrice},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.create_with"))+" ",1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[m,e.calcSelectedPrice]])])),_:1},8,["onClick","disabled"])])]),e.showDepositModal?((0,n.uX)(),(0,n.Wv)(g,{key:0,onClose:t[3]||(t[3]=t=>e.showDepositModal=!1),img:"Modal-background.png",name:e.$t("buttons.deposit")},{default:(0,n.k6)((()=>[(0,n.Lk)("div",YI,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("global.select_game")),1),(0,n.Lk)("div",$I,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.games.data,(e=>((0,n.uX)(),(0,n.Wv)(f,{game:e,key:e.id},null,8,["game"])))),128))])])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}var tT=(0,n.pM)({components:{InventoryItem:Zw,DepositGame:bg},mixins:[eA]});a(5537);const aT=(0,C.A)(tT,[["render",eT],["__scopeId","data-v-7371461c"]]);var iT=aT;const nT={class:"view-modal"},oT={class:"wheel-of-fortune-wrapper"},rT={class:"participants-wrapper"},sT={class:"participants center-side"};function lT(e,t,a,i,o,r){const s=(0,n.g2)("WheelOfFortune"),l=(0,n.g2)("ParticipantCard");return(0,n.uX)(),(0,n.CE)("div",nT,[(0,n.Lk)("div",oT,[(0,n.bF)(s,{room:e.room,onDone:t[0]||(t[0]=t=>e.showWinner=!0)},null,8,["room"])]),(0,n.Lk)("div",rT,[(0,n.Lk)("div",sT,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.room.participants,(t=>((0,n.uX)(),(0,n.Wv)(l,{key:t.id,showWinner:e.showWinner,participant:t},null,8,["showWinner","participant"])))),128))])])])}const dT={class:"participant-wrapper"},cT={key:0,class:"user"},pT={key:1,class:"info"},uT={class:"action-label"},fT={class:"price-coin-container"},gT={class:"bold"},mT={class:"action-label"},hT={class:"bold"},vT={key:2,class:"shadow"},xT={key:0,class:"participant-items"},bT={class:"item-count"},wT={class:"participant-item-info"},yT=["src","alt"];function kT(e,t,a,i,o,r){const s=(0,n.g2)("ParticipantAvatar"),d=(0,n.g2)("Arrow"),c=(0,n.gN)("price-format"),p=(0,n.gN)("percent");return(0,n.uX)(),(0,n.CE)("div",{class:(0,l.C4)(["participant",{winner:e.participant?.meta.winner&&e.showWinner,open:e.isOpen}])},[(0,n.Lk)("div",dT,[e.participant?((0,n.uX)(),(0,n.CE)("div",cT,[(0,n.bF)(s,{showSide:!1,participant:e.participant,style:{width:"76px",height:"76px"},showWinner:e.showWinner},null,8,["participant","showWinner"]),(0,n.Lk)("span",null,(0,l.v_)(e.participant.user.name),1)])):(0,n.Q3)("",!0),e.participant?((0,n.uX)(),(0,n.CE)("div",pT,[(0,n.Lk)("div",null,[(0,n.Lk)("span",uT,(0,l.v_)(e.$t("global.bet")),1),(0,n.Lk)("div",fT,[(0,n.bo)((0,n.Lk)("span",gT,null,512),[[c,e.participant.meta.totalBetAmount]])])]),(0,n.Lk)("div",null,[(0,n.Lk)("span",mT,(0,l.v_)(e.$t("global.chance")),1),(0,n.bo)((0,n.Lk)("div",hT,null,512),[[p,e.participant.meta.chance]])])])):(0,n.Q3)("",!0),(0,n.bF)(d,{style:(0,l.Tr)(`transform: rotate(${e.arrowRotate}deg); transition: transform .3s; cursor: pointer`),onClick:t[0]||(t[0]=t=>e.isOpen=!e.isOpen)},null,8,["style"]),e.participant?.meta.winner&&e.showWinner?((0,n.uX)(),(0,n.CE)("div",vT)):(0,n.Q3)("",!0)]),e.participant?.participantItems?.length?((0,n.uX)(),(0,n.CE)("div",xT,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.participant?.participantItems||[],(e=>((0,n.uX)(),(0,n.CE)("div",{class:"participant-item",key:e.id},[(0,n.Lk)("div",bT,(0,l.v_)(e.count),1),(0,n.Lk)("div",wT,[(0,n.Lk)("span",null,(0,l.v_)(e.item.name),1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[c,e.item.price]])]),(0,n.Lk)("img",{src:e.item.thumbnail,alt:e.item.name},null,8,yT)])))),128))])):(0,n.Q3)("",!0)],2)}var CT=(0,n.pM)({components:{ParticipantAvatar:AI},mixins:[MA]});a(65573);const MT=(0,C.A)(CT,[["render",kT],["__scopeId","data-v-49fc984b"]]);var LT=MT;const AT={viewBox:"-2 -2 56 56",class:"wheel-of-fortune",xmlns:"http://www.w3.org/2000/svg"},IT=["d"],TT=["transform"],_T=["stroke"],ET=["transform"],ST=["xlink:href","clip-path"],FT=["id"];function WT(e,t,a,i,o,r){const s=(0,n.g2)("TimeCounter");return(0,n.uX)(),(0,n.CE)("svg",AT,[t[3]||(t[3]=(0,n.Lk)("circle",{cx:"25",cy:"25",r:"23",stroke:"url(#myGradient)","stroke-width":"0.2",fill:"none"},null,-1)),t[4]||(t[4]=(0,n.Lk)("circle",{cx:"25",cy:"25",r:"11",stroke:"url(#myGradient)","stroke-width":"0.2",fill:"none"},null,-1)),!e.isRoomReady&&!e.isRoomStarted||e.isRoomFinished?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.Wv)(s,{key:0,onEndTimer:e.startingGame,seconds:e.isRoomReady?e.casinoGame.configs.waitingTimer:e.casinoGame.configs.startingTimer,remainingSeconds:e.timer,onRemainThreeSeconds:t[0]||(t[0]=t=>e.isRoomStarted?e.$emit("remain-three-seconds"):null)},null,8,["onEndTimer","seconds","remainingSeconds"])),(0,n.Lk)("g",{class:(0,l.C4)(["wheel-rotation",{rotate:e.rotate}]),style:(0,l.Tr)({transform:`rotate(${e.rotation}deg)`})},[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.segments,((t,a)=>((0,n.uX)(),(0,n.CE)("g",{key:a},[(0,n.Lk)("path",{d:e.describeRingSegment(25,25,13,21,t.startAngle,t.endAngle),stroke:"url(#myGradient)","stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"url(#myGradient)"},null,8,IT)])))),128)),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.segments,((t,a)=>((0,n.uX)(),(0,n.CE)("g",{key:"avatar-"+a,class:(0,l.C4)(["wheel-rotation",{rotate:e.rotate}]),transform:`translate(${e.getAvatarPosition(t).cx}, ${e.getAvatarPosition(t).cy})`},[(0,n.Lk)("circle",{r:"5",fill:"white",stroke:""+(t.participant.meta.winner&&e.showWinner?"url(#goldGradient)":"#212429"),"stroke-width":.3},null,8,_T),(0,n.Lk)("g",{transform:`rotate(${-e.rotation}, 0, 0)`},[(0,n.Lk)("image",{"xlink:href":t.participant.user.avatar,x:"-5",y:"-5",width:"10",height:"10",preserveAspectRatio:"xMidYMid meet","clip-path":`url(#circle-clip-${a})`},null,8,ST)],8,ET)],10,TT)))),128))],6),t[5]||(t[5]=(0,n.Lk)("g",{transform:"translate(22, 11) scale(0.1, 0.1) "},[(0,n.Lk)("path",{d:"M31.0001 0.0932617L61.3646 34.7955C61.3646 34.7955 45.3692 30.9999 31.0002 30.9999C15.5469 30.9999 0.635742 34.7955 0.635742 34.7955L31.0001 0.0932617Z",fill:"white"})],-1)),(0,n.Lk)("defs",null,[t[2]||(t[2]=(0,n.Fv)('',2)),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.segments,((e,a)=>((0,n.uX)(),(0,n.CE)("clipPath",{key:a,id:`circle-clip-${a}`},[...t[1]||(t[1]=[(0,n.Lk)("circle",{r:"5"},null,-1)])],8,FT)))),128))])])}const jT={transform:"translate(12.5, 12.5)"},XT=["transform"],RT=["fill"];function zT(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)(n.FK,null,[(0,n.Lk)("g",jT,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.segments,((t,a)=>((0,n.uX)(),(0,n.CE)("g",{key:a,transform:`rotate(${t.rotate} 12.5 12.5) translate(10, 2) scale(0.3)`},[(0,n.Lk)("path",{d:"M0.27208 3.24865C0.0871808 2.72823 0.358683 2.15434 0.886321 1.99119C5.61237 0.529897 10.675 0.559614 15.3835 2.07629C15.9092 2.24562 16.174 2.82266 15.983 3.34087L15.0082 5.9856C14.8172 6.5038 14.2428 6.76638 13.7154 6.60253C10.0669 5.469 6.16272 5.44609 2.50116 6.5367C1.97186 6.69436 1.40063 6.42505 1.21573 5.90464L0.27208 3.24865Z",fill:a((0,n.uX)(),(0,n.Wv)(d,{participant:t,key:t.id,showWinner:e.showWinner},null,8,["participant","showWinner"])))),128)),(0,n.Lk)("div",i_,[(0,n.bF)(c,{type:"primary",onClick:t[0]||(t[0]=t=>e.setRoomToJoin(e.room.data)),disabled:e.isRoomStarted},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.choose_items")),1)])),_:1},8,["disabled"]),e.authParticipant?((0,n.uX)(),(0,n.Wv)(c,{key:0,disabled:e.disableLeave||e.room.loading,type:"primary",onClick:t[1]||(t[1]=t=>e.handleLeaveRoom({game_slug:e.gameSlug,room_id:e.room.data.id}))},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.leave")),1)])),_:1},8,["disabled"])):(0,n.Q3)("",!0)])]),(0,n.Lk)("div",n_,[(0,n.bF)(p,{room:e.room.data,onDone:t[2]||(t[2]=t=>e.showWinner=!0),onRemainThreeSeconds:t[3]||(t[3]=t=>e.disableLeave=!0)},null,8,["room"])])])):(0,n.Q3)("",!0),e.room.loading&&!e.room.data?((0,n.uX)(),(0,n.Wv)(u,{key:1})):(0,n.Q3)("",!0),e.roomToJoin?((0,n.uX)(),(0,n.Wv)(g,{key:2,onClose:t[5]||(t[5]=t=>e.setRoomToJoin(null)),img:"Modal-background.png",name:e.$t("buttons.choose_items")},{default:(0,n.k6)((()=>[(0,n.bF)(f,{onClose:t[4]||(t[4]=t=>e.setRoomToJoin(null)),room:e.roomToJoin,disableJoin:e.isRoomStarted||e.room.loading,participant:e.authParticipant,"game-slug":e.gameSlug},null,8,["room","disableJoin","participant","game-slug"])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}const r_={class:"participant"},s_={class:"user"},l_={class:"info"},d_={class:"items"},c_={class:"items-count"},p_={class:"items-price"};function u_(e,t,a,i,o,r){const s=(0,n.g2)("ParticipantAvatar"),d=(0,n.g2)("RoomParticipantItem"),c=(0,n.g2)("ItemsCounter"),p=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",r_,[(0,n.Lk)("div",s_,[(0,n.bF)(s,{participant:e.participant,"show-winner":e.showWinner},null,8,["participant","show-winner"]),(0,n.Lk)("span",null,(0,l.v_)(e.participant.user.name),1)]),(0,n.Lk)("div",l_,[(0,n.Lk)("div",d_,[(0,n.Lk)("div",{class:"items-wrapper",style:(0,l.Tr)(`width: ${60+30*(e.roomParticipantItemsSliced.length-1)}px`)},[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.roomParticipantItemsSliced,((e,t)=>((0,n.uX)(),(0,n.Wv)(d,{participantItem:e,key:e.id,index:t},null,8,["participantItem","index"])))),128))],4)]),(0,n.Lk)("div",c_,[(0,n.bF)(c,{count:e.participant.participantItems?.length,"is-winner":e.participant.meta.winner&&e.showWinner},null,8,["count","is-winner"])]),(0,n.bo)((0,n.Lk)("div",p_,null,512),[[p,e.participant.meta.totalBetAmount]])])])}const f_={class:"item-count"},g_=["src","alt"];function m_(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",{class:"room-participant-item",style:(0,l.Tr)(`left: ${e.left}px`)},[(0,n.Lk)("div",f_,(0,l.v_)(e.participantItem.count),1),(0,n.Lk)("img",{src:e.participantItem.item.thumbnail,alt:e.participantItem.item.name},null,8,g_)],4)}var h_=(0,n.pM)({props:{participantItem:{type:Object,required:!0},index:{type:Number,required:!0}},computed:{left(){return 30*this.index}}}),v_=(0,n.pM)({mixins:[h_]});a(45856);const x_=(0,C.A)(v_,[["render",m_],["__scopeId","data-v-5517a1ae"]]);var b_=x_,w_=(0,n.pM)({props:{participant:{type:Object,required:!0},showWinner:{type:Boolean,default:!1}},computed:{roomParticipantItemsSliced(){return this.participant.participantItems?.slice(0,3)||[]}}}),y_=(0,n.pM)({name:"ParticipantComponent",components:{ParticipantAvatar:yL,RoomParticipantItem:b_,ItemsCounter:zL},mixins:[w_]});a(85630);const k_=(0,C.A)(y_,[["render",u_],["__scopeId","data-v-f74088ac"]]);var C_=k_;const M_={class:"create-modal"},L_={class:"filters"},A_={class:"inventory"},I_={class:"list"},T_={key:0,class:"empty"},__={key:1,class:"items-list"},E_={class:"actions"},S_={class:"select-game-for-deposit"},F_={class:"deposit-games"};function W_(e,t,a,i,o,r){const s=(0,n.g2)("SearchInput"),d=(0,n.g2)("Select"),c=(0,n.g2)("EmptySearch"),p=(0,n.g2)("Button"),u=(0,n.g2)("InventoryItem"),f=(0,n.g2)("DepositGame"),g=(0,n.g2)("Modal"),m=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",M_,[(0,n.Lk)("div",L_,[(0,n.bF)(s,{modelValue:e.searchText,"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchText=t)},null,8,["modelValue"]),(0,n.bF)(d,{modelValue:e.sortSelected,"onUpdate:modelValue":t[1]||(t[1]=t=>e.sortSelected=t),options:e.sortItems},null,8,["modelValue","options"]),(0,n.bF)(d,{modelValue:e.gameSelected,"onUpdate:modelValue":t[2]||(t[2]=t=>e.gameSelected=t),options:e.gameItems,disabled:""},null,8,["modelValue","options"])]),(0,n.Lk)("div",A_,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("modals.select_item")),1),(0,n.Lk)("div",I_,[e.items.length?((0,n.uX)(),(0,n.CE)("div",__,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.sortedItems,(e=>((0,n.uX)(),(0,n.Wv)(u,{inventoryItem:e,key:e.id,modelValue:e.selectedCount,"onUpdate:modelValue":[t=>e.selectedCount=t,t=>e.countChanged=!0]},null,8,["inventoryItem","modelValue","onUpdate:modelValue"])))),128))])):((0,n.uX)(),(0,n.CE)("div",T_,[(0,n.Lk)("span",null,[(0,n.bF)(c)]),(0,n.Lk)("div",null,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.empty_state")),1),(0,n.bF)(p,{onClick:e.handleDeposit,type:"primary__white",style:{height:"48px"}},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.deposit_items")),1)])),_:1},8,["onClick"])])]))])]),(0,n.Lk)("div",E_,[(0,n.bF)(p,{disabled:e.disableJoin||0===e.calcSelectedPrice,type:"primary",style:{height:"60px",width:"200px"},onClick:e.joinRoom},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.join_with"))+" ",1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[m,e.calcSelectedPrice]])])),_:1},8,["disabled","onClick"])]),e.showDepositModal?((0,n.uX)(),(0,n.Wv)(g,{key:0,onClose:t[3]||(t[3]=t=>e.showDepositModal=!1),img:"Modal-background.png",name:e.$t("buttons.deposit")},{default:(0,n.k6)((()=>[(0,n.Lk)("div",S_,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("global.select_game")),1),(0,n.Lk)("div",F_,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.games.data,(e=>((0,n.uX)(),(0,n.Wv)(f,{game:e,key:e.id},null,8,["game"])))),128))])])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}var j_=(0,n.pM)({props:{room:{type:Object,required:!0},gameSlug:{type:String,required:!0},participant:{type:Object,required:!1},disableJoin:{type:Boolean,default:!1}},mixins:[$L],watch:{async gameSelected(e){await this.getInventory()}},computed:{betItems(){return this.items.filter((e=>e.selectedCount||e.countChanged))}},async mounted(){this.gameSelected=this.$route.params.gameSlug,await this.setGameItems()},methods:{async joinRoom(){const e=this.participant?"updateRoom":"joinRoom",t=this.participant?this.betItems:this.selectedItems;await this.$store.dispatch(`wheelOfFortune/${e}`,{room_id:this.room.id,game_slug:this.$route.params.gameSlug,casino_game_slug:qt.WheelOfFortune,items:t.map((e=>({id:e.item.id,count:e.selectedCount})))}),this.$emit("close")},async setGameItems(){this.gameItems=this.games.data.map((e=>({label:e.name,value:e.slug}))),this.gameSelected=this.$route.params.gameSlug||this.gameItems[0].value},async getInventory(){const e=await Ba.getGameInventory(this.$route.params.gameSlug),t=e.data.data;this.items=t.map((e=>{const t=this.findParticipantItem(e);return{...e,count:t?t.count+e.count:e.count,selectedCount:t?t.count:0,countChanged:!1}})).filter((e=>!!e.count)),this.participant?.participantItems?.forEach((e=>{this.items.find((t=>t.item.id===e.item.id))||this.items.push({id:0,count:e.count,game_id:this.items[0].game_id,item:e.item,countChanged:!1,selectedCount:e.count,user_id:this.participant?.user.id||0,created_at:"",updated_at:""})})),this.items.sort(((e,t)=>{const a=e.selectedCount>0?0:1,i=t.selectedCount>0?0:1;return a-i}))},findParticipantItem(e){return(this.participant?.participantItems||[]).find((t=>t.item.id===e.item.id))}}}),X_=(0,n.pM)({components:{InventoryItem:Zw,DepositGame:mf},mixins:[j_]});a(34598);const R_=(0,C.A)(X_,[["render",W_],["__scopeId","data-v-03b9596a"]]);var z_=R_,U_=(0,n.pM)({components:{Arrow:bt,Button:Ea,Modal:vn,DotsLoader:Fi},setup(){const{isMobile:e,isTablet:t}=Rd();return{isMobile:e,isTablet:t}},data(){return{showJoinRoomModal:!1,showWinner:!1,disableLeave:!1}},computed:{...(0,Sa.L8)({roomToJoin:"wheelOfFortune/roomToJoin"}),casinoGame(){return this.$store.getters["wheelOfFortune/casinoGame"]},room(){return this.$store.getters["wheelOfFortune/room"]},isRoomStarted(){return"game-is-starting"===this.room.data.configs.state},gameSlug(){return this.$route.params.gameSlug},authParticipantIndex(){return this.room.data.participants.findIndex((e=>e.user.name===this.$store.state.auth.user.name))},authParticipant(){return this.room.data?.participants[this.authParticipantIndex]}},async mounted(){await this.getCasinoGame(),await this.getRoom({game_slug:this.$route.params.gameSlug,room_id:this.$route.params.roomId}),this.room.data||this.$router.go(-1),this.$privateSocket.emit("joinCasinoGameRoom",{casino_game_room_id:this.$route.params.roomId});const e=new Date(this.room.data.configs.stateChanged).getTime(),t=(Date.now()-e)/1e3,a=this.casinoGame.configs.startingTimer-t;this.disableLeave=this.room.data&&"finished"===this.room.data.status||this.isRoomStarted&&a<=3,new qA(this.$privateSocket)},unmounted(){this.$privateSocket.emit("leaveCasinoGameRoom",{casino_game_room_id:this.$route.params.roomId}),this.$store.commit("wheelOfFortune/SET_ROOM",null)},methods:{...(0,Sa.i0)({getRoom:"wheelOfFortune/getRoom",getCasinoGame:"wheelOfFortune/getCasinoGame",setRoomToJoin:"wheelOfFortune/setRoomToJoin",leaveRoom:"wheelOfFortune/leaveRoom"}),async handleLeaveRoom(e){await this.leaveRoom(e),this.$router.replace({name:"wheel-of-fortune.rounds",params:{gameSlug:this.$route.params.gameSlug}})},goBack(){this.$router.go(-1),this.$store.commit("wheelOfFortune/SET_ROOM_TO_JOIN",null),this.$store.commit("wheelOfFortune/SET_ROOM_TO_VIEW",null)}}}),D_=(0,n.pM)({name:"WheelOfFortuneRoundDesktop",components:{Participant:C_,WheelOfFortune:NA,JoinModal:z_},mixins:[U_]});a(76323);const B_=(0,C.A)(D_,[["render",o_],["__scopeId","data-v-5f1016db"]]);var V_=B_;const P_={class:"top"},O_={key:0,class:"container"},G_={class:"wheel-of-fortune-wrapper"},Q_={class:"participants"},H_={class:"actions"};function N_(e,t,a,i,o,r){const s=(0,n.g2)("Arrow"),d=(0,n.g2)("WheelOfFortune"),c=(0,n.g2)("Participant"),p=(0,n.g2)("Button"),u=(0,n.g2)("DotsLoader"),f=(0,n.g2)("JoinModal"),g=(0,n.g2)("Modal");return(0,n.uX)(),(0,n.CE)("section",null,[(0,n.Lk)("div",P_,[(0,n.bF)(s,{style:{rotate:"-90deg",cursor:"pointer"},onClick:e.goBack},null,8,["onClick"]),(0,n.Lk)("h2",null,(0,l.v_)(e.$t("global.join_the_game",{gameLabel:"Wheel of Fortune"})),1)]),e.room.data?((0,n.uX)(),(0,n.CE)("div",O_,[(0,n.Lk)("div",G_,[(0,n.bF)(d,{room:e.room.data,onDone:t[0]||(t[0]=t=>e.showWinner=!0),onRemainThreeSeconds:t[1]||(t[1]=t=>e.disableLeave=!0)},null,8,["room"])]),(0,n.Lk)("div",Q_,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.room.data.participants,(t=>((0,n.uX)(),(0,n.Wv)(c,{participant:t,key:t.id,showWinner:e.showWinner},null,8,["participant","showWinner"])))),128))]),(0,n.Lk)("div",H_,[(0,n.bF)(p,{type:"primary",style:{flex:"1","margin-top":"15px"},onClick:t[2]||(t[2]=t=>e.setRoomToJoin(e.room.data)),disabled:e.isRoomStarted},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.choose_items")),1)])),_:1},8,["disabled"]),e.authParticipant?((0,n.uX)(),(0,n.Wv)(p,{key:0,disabled:e.disableLeave||e.room.loading,type:"primary",onClick:t[3]||(t[3]=t=>e.handleLeaveRoom({game_slug:e.gameSlug,room_id:e.room.data.id}))},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.leave")),1)])),_:1},8,["disabled"])):(0,n.Q3)("",!0)])])):(0,n.Q3)("",!0),e.room.loading&&!e.room.data?((0,n.uX)(),(0,n.Wv)(u,{key:1})):(0,n.Q3)("",!0),e.roomToJoin?((0,n.uX)(),(0,n.Wv)(g,{key:2,onClose:t[5]||(t[5]=t=>e.setRoomToJoin(null)),img:"Modal-background.png",name:e.$t("buttons.choose_items")},{default:(0,n.k6)((()=>[(0,n.bF)(f,{onClose:t[4]||(t[4]=t=>e.setRoomToJoin(null)),room:e.roomToJoin,disableJoin:e.isRoomStarted||e.room.loading,participant:e.authParticipant,"game-slug":e.gameSlug},null,8,["room","disableJoin","participant","game-slug"])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}const K_={class:"participant"},q_={class:"user"},Z_={class:"info"},J_={class:"items"},Y_={class:"items-count"},$_={class:"items-price"};function eE(e,t,a,i,o,r){const s=(0,n.g2)("ParticipantAvatar"),d=(0,n.g2)("RoomParticipantItem"),c=(0,n.g2)("ItemsCounter"),p=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",K_,[(0,n.Lk)("div",q_,[(0,n.bF)(s,{participant:e.participant,"show-winner":e.showWinner},null,8,["participant","show-winner"]),(0,n.Lk)("span",null,(0,l.v_)(e.participant.user.name),1)]),(0,n.Lk)("div",Z_,[(0,n.Lk)("div",J_,[(0,n.Lk)("div",{class:"items-wrapper",style:(0,l.Tr)(`width: ${60+30*(e.roomParticipantItemsSliced.length-1)}px`)},[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.roomParticipantItemsSliced,((e,t)=>((0,n.uX)(),(0,n.Wv)(d,{participantItem:e,key:e.id,index:t},null,8,["participantItem","index"])))),128))],4)]),(0,n.Lk)("div",Y_,[(0,n.bF)(c,{count:e.participant.participantItems?.length,"is-winner":e.participant.meta.winner&&e.showWinner},null,8,["count","is-winner"])]),(0,n.bo)((0,n.Lk)("div",$_,null,512),[[p,e.participant.meta.totalBetAmount]])])])}const tE={class:"item-count"},aE=["src","alt"];function iE(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("div",{class:"room-participant-item",style:(0,l.Tr)(`left: ${e.left}px`)},[(0,n.Lk)("div",tE,(0,l.v_)(e.participantItem.count),1),(0,n.Lk)("img",{src:e.participantItem.item.thumbnail,alt:e.participantItem.item.name},null,8,aE)],4)}var nE=(0,n.pM)({mixins:[h_]});a(1706);const oE=(0,C.A)(nE,[["render",iE],["__scopeId","data-v-7f5f2587"]]);var rE=oE,sE=(0,n.pM)({name:"ParticipantComponent",components:{ParticipantAvatar:AI,RoomParticipantItem:rE,ItemsCounter:BI},mixins:[w_]});a(10733);const lE=(0,C.A)(sE,[["render",eE],["__scopeId","data-v-61f53fe4"]]);var dE=lE;const cE={class:"create-modal"},pE={class:"filters"},uE={class:"inventory"},fE={class:"list"},gE={key:0,class:"empty"},mE={key:1,class:"items-list"},hE={class:"actions"},vE={class:"select-game-for-deposit"},xE={class:"deposit-games"};function bE(e,t,a,i,o,r){const s=(0,n.g2)("SearchInput"),d=(0,n.g2)("Select"),c=(0,n.g2)("EmptySearch"),p=(0,n.g2)("Button"),u=(0,n.g2)("InventoryItem"),f=(0,n.g2)("DepositGame"),g=(0,n.g2)("Modal"),m=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",cE,[(0,n.Lk)("div",pE,[(0,n.bF)(s,{modelValue:e.searchText,"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchText=t)},null,8,["modelValue"]),(0,n.bF)(d,{modelValue:e.sortSelected,"onUpdate:modelValue":t[1]||(t[1]=t=>e.sortSelected=t),options:e.sortItems},null,8,["modelValue","options"]),(0,n.bF)(d,{modelValue:e.gameSelected,"onUpdate:modelValue":t[2]||(t[2]=t=>e.gameSelected=t),options:e.gameItems,disabled:""},null,8,["modelValue","options"])]),(0,n.Lk)("div",uE,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("modals.select_item")),1),(0,n.Lk)("div",fE,[e.items.length?((0,n.uX)(),(0,n.CE)("div",mE,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.sortedItems,(e=>((0,n.uX)(),(0,n.Wv)(u,{inventoryItem:e,modelValue:e.selectedCount,"onUpdate:modelValue":[t=>e.selectedCount=t,t=>e.countChanged=!0],key:e.id},null,8,["inventoryItem","modelValue","onUpdate:modelValue"])))),128))])):((0,n.uX)(),(0,n.CE)("div",gE,[(0,n.Lk)("span",null,[(0,n.bF)(c)]),(0,n.Lk)("div",null,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.empty_state")),1),(0,n.bF)(p,{onClick:e.handleDeposit,type:"primary__white",style:{height:"48px"}},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.deposit_items")),1)])),_:1},8,["onClick"])])]))])]),(0,n.Lk)("div",hE,[(0,n.bF)(p,{disabled:e.disableJoin||0===e.calcSelectedPrice,type:"primary",style:{height:"60px",width:"200px"},onClick:e.joinRoom},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.join_with"))+" ",1),(0,n.bo)((0,n.Lk)("span",null,null,512),[[m,e.calcSelectedPrice]])])),_:1},8,["disabled","onClick"])]),e.showDepositModal?((0,n.uX)(),(0,n.Wv)(g,{key:0,onClose:t[3]||(t[3]=t=>e.showDepositModal=!1),img:"Modal-background.png",name:e.$t("buttons.deposit")},{default:(0,n.k6)((()=>[(0,n.Lk)("div",vE,[(0,n.Lk)("h4",null,(0,l.v_)(e.$t("global.select_game")),1),(0,n.Lk)("div",xE,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.games.data,(e=>((0,n.uX)(),(0,n.Wv)(f,{game:e,key:e.id},null,8,["game"])))),128))])])])),_:1},8,["name"])):(0,n.Q3)("",!0)])}var wE=(0,n.pM)({components:{InventoryItem:Zw,DepositGame:bg},mixins:[j_]});a(50158);const yE=(0,C.A)(wE,[["render",bE],["__scopeId","data-v-d8d7ecd0"]]);var kE=yE,CE=(0,n.pM)({name:"WheelOfFortuneRoundMobile",components:{Participant:dE,WheelOfFortune:OT,JoinModal:kE},mixins:[U_]});a(65481);const ME=(0,C.A)(CE,[["render",N_],["__scopeId","data-v-039fa89c"]]);var LE=ME,AE=(0,n.pM)({name:"RoundComponent",components:{WheelOfFortuneRoundDesktop:V_,WheelOfFortuneRoundMobile:LE},setup(){const{isMobile:e,isTablet:t}=Rd();return{isMobile:e,isTablet:t}}});const IE=(0,C.A)(AE,[["render",$T]]);var TE=IE;const _E={class:"history"};function EE(e,t,a,i,o,r){const s=(0,n.g2)("SettingsMobile"),l=(0,n.g2)("SettingsDesktop");return(0,n.uX)(),(0,n.CE)("div",_E,[e.isMobile?((0,n.uX)(),(0,n.Wv)(s,{key:0})):((0,n.uX)(),(0,n.Wv)(l,{key:1}))])}const SE={class:"animation-streamer-mode"},FE={class:"animation-streamer-mode"},WE={class:"volume-sound"},jE={class:"volume"},XE={class:"mute-unmute"},RE={class:"password-form"},zE={class:"inputs"},UE={class:"form-input"},DE=["type"],BE={class:"inputs"},VE={class:"form-input"},PE=["type"],OE={class:"statistics"};function GE(e,t,a,o,r,s){const d=(0,n.g2)("ToggleInput"),c=(0,n.g2)("MuteIcon"),p=(0,n.g2)("UnMuteIcon"),u=(0,n.g2)("HidePassword"),f=(0,n.g2)("ShowPassword"),g=(0,n.g2)("Table"),m=(0,n.g2)("Section");return(0,n.uX)(),(0,n.CE)("section",null,[t[19]||(t[19]=(0,n.Lk)("div",{class:"top"},[(0,n.Lk)("h2",null,"Settings"),(0,n.Lk)("p",null," All changes will be saved in your browser settings. You will not need to re-set your parameters in the settings ")],-1)),(0,n.Lk)("div",SE,[(0,n.Lk)("div",null,[t[11]||(t[11]=(0,n.Lk)("h2",null,"Coin Flip Animation",-1)),(0,n.bF)(d,{modelValue:e.settings.coinFlipAnimation,"onUpdate:modelValue":t[0]||(t[0]=t=>e.settings.coinFlipAnimation=t)},null,8,["modelValue"])]),(0,n.Lk)("div",null,[t[12]||(t[12]=(0,n.Lk)("h2",null,"Streamer Mode",-1)),(0,n.bF)(d,{modelValue:e.settings.streamerMode,"onUpdate:modelValue":t[1]||(t[1]=t=>e.settings.streamerMode=t)},null,8,["modelValue"])])]),(0,n.Lk)("div",FE,[(0,n.Lk)("div",null,[t[13]||(t[13]=(0,n.Lk)("h2",null,"Auto Join",-1)),(0,n.bF)(d,{modelValue:e.settings.autoJoin,"onUpdate:modelValue":t[2]||(t[2]=t=>e.settings.autoJoin=t)},null,8,["modelValue"])]),(0,n.Lk)("div",null,[t[14]||(t[14]=(0,n.Lk)("h2",null,"Short Names",-1)),(0,n.bF)(d,{modelValue:e.settings.shortNames,"onUpdate:modelValue":t[3]||(t[3]=t=>e.settings.shortNames=t)},null,8,["modelValue"])])]),(0,n.Lk)("div",WE,[t[15]||(t[15]=(0,n.Lk)("h2",null,"Volume of sounds",-1)),(0,n.Lk)("div",jE,[(0,n.Lk)("div",XE,[(0,n.Lk)("i",{onClick:t[4]||(t[4]=t=>e.setVolume=0)},[(0,n.bF)(c)]),(0,n.Lk)("i",{onClick:t[5]||(t[5]=t=>e.setVolume=10)},[(0,n.bF)(p)])]),(0,n.bo)((0,n.Lk)("input",{class:"range",type:"range",name:"test",id:"test",min:"0",max:"10","onUpdate:modelValue":t[6]||(t[6]=t=>e.setVolume=t)},null,512),[[i.Jo,e.setVolume]])])]),t[20]||(t[20]=(0,n.Lk)("div",{class:"top"},[(0,n.Lk)("h2",null,"Password")],-1)),(0,n.Lk)("form",RE,[(0,n.Lk)("div",zE,[t[16]||(t[16]=(0,n.Lk)("label",{for:""},"Password",-1)),(0,n.Lk)("div",UE,[(0,n.bo)((0,n.Lk)("input",{"onUpdate:modelValue":t[7]||(t[7]=t=>e.password=t),type:e.passwordVisible?"text":"password",placeholder:"************"},null,8,DE),[[i.hp,e.password]]),(0,n.Lk)("i",{onClick:t[8]||(t[8]=t=>e.passwordVisible=!e.passwordVisible)},[e.passwordVisible?((0,n.uX)(),(0,n.Wv)(u,{key:0})):((0,n.uX)(),(0,n.Wv)(f,{key:1}))])])]),(0,n.Lk)("div",BE,[t[17]||(t[17]=(0,n.Lk)("label",{for:""},"Confirm password",-1)),(0,n.Lk)("div",VE,[(0,n.bo)((0,n.Lk)("input",{"onUpdate:modelValue":t[9]||(t[9]=t=>e.confirmPassword=t),type:e.confirmPasswordVisible?"text":"password",placeholder:"************"},null,8,PE),[[i.hp,e.confirmPassword]]),(0,n.Lk)("i",{onClick:t[10]||(t[10]=t=>e.confirmPasswordVisible=!e.confirmPasswordVisible)},[e.confirmPasswordVisible?((0,n.uX)(),(0,n.Wv)(u,{key:0})):((0,n.uX)(),(0,n.Wv)(f,{key:1}))])])])]),(0,n.bF)(m,{label:"",usePing:!1},{"top-button":(0,n.k6)((()=>[...t[18]||(t[18]=[])])),default:(0,n.k6)((()=>[(0,n.Lk)("div",OE,[(0,n.bF)(g,{data:e.statistics,columns:e.tableColumns},{"cell(#)":(0,n.k6)((e=>[(0,n.eW)((0,l.v_)(e.rowIndex+1),1)])),_:1},8,["data","columns"])])])),_:1})])}
/*!
* Webkit-input-range-fill-lower
*
* Licensed under MIT
* Copyright (c) 2020 [Samuel Carreira]
*/
class QE{constructor(e){(0,za.A)(this,"options",void 0),(0,za.A)(this,"_selectors_combined",""),(0,za.A)(this,"_updatedInlineStyle",void 0),(0,za.A)(this,"_options",{}),(0,za.A)(this,"_cachedValues",void 0),this.options=e,this._updatedInlineStyle=document.createElement("style"),document.body.append(this._updatedInlineStyle),this._cachedValues=[],this._validateOptions(e),this._removeDuplicates(),this._removeUnknownElements(),this._removeInvalidElements(),this._setSelectorsCombined(),this._addDefaultStyles(),this._addEventListeners()}get getElementsList(){return this._options.selectors.map((e=>`#${e}`))}_validateOptions(e){const t={selectors:[],angle:90,color:void 0,gradient:void 0};if(this._options={...t,...e},Array.isArray(e.selectors)||(this._options.selectors=[e.selectors]),this._options.angle&&(this._options.angle<0||this._options.angle>360)&&(this._options.angle=90),this._options.color||this._options.gradient||(this._options.gradient="#0ABFBC, #FC354C"),this._options.color&&!this._validateColor(this._options.color))throw new TypeError("Please enter a valid CSS color")}_addEventListeners(){const e=new Event("input");for(const t of this._options.selectors){const a=document.getElementById(t);a&&(a.addEventListener("input",(()=>{console.log("Input Triggered");const e=Number(a.getAttribute("max"))-Number(a.getAttribute("min")),i=(Number(a.value)+Math.abs(Number(a.getAttribute("min"))))/e*100;this._writeStyle(t,i)}),!1),a.dispatchEvent(e))}}_checkCachedData(e,t){const a=this._cachedValues.map((e=>e.id)).indexOf(e);-1===a?this._cachedValues.push({id:e,percent:t}):this._cachedValues[a]={id:e,percent:t}}_writeStyle(e,t){this._checkCachedData(e,t);let a="";for(const i of this._cachedValues)a+=`#${i.id}::-webkit-slider-runnable-track{background-size: ${i.percent}% 100% !important }`;this._updatedInlineStyle.textContent=a}_removeDuplicates(){this._options.selectors=this._options.selectors.filter(((e,t)=>this._options.selectors.indexOf(e)===t))}_removeUnknownElements(){this._options.selectors=this._options.selectors.filter((e=>null!==document.getElementById(e)))}_removeInvalidElements(){this._options.selectors=this._options.selectors.filter((e=>"range"===document.getElementById(e).type))}_setSelectorsCombined(){let e="";this._options.selectors.forEach(((t,a)=>{e+=`#${t}`,a{const a=`background: linear-gradient(${this._generateGradientCSS()}) 0 100% no-repeat content-box !important;`;e+=`#${t} {\n -webkit-appearance: none !important;\n appearance: none !important;\n width: 100%;\n height: 6px;\n cursor: pointer;\n border-radius: 5px;\n margin: 0;\n padding: 0;\n }`,e+=`#${t}::-webkit-slider-runnable-track {${a}} `,e+=`#${t}::-moz-range-progress {${a}} `,e+=`#${t}::-ms-fill-lower {${a}} `,e+=`#${t}::-webkit-slider-thumb {\n -webkit-appearance: none !important;\n appearance: none !important;\n width: 18px;\n height: 18px;\n border-radius: 50%;\n background: white;\n cursor: pointer;\n margin-top: -6px;\n position: relative;\n z-index: 3;\n }`}));const t=``;document.head.insertAdjacentHTML("beforeend",t)}_validateColor(e){const t=(new Option).style;return e&&(t.color=e),""!==t.color}}const HE={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function NE(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("svg",HE,[...t[0]||(t[0]=[(0,n.Lk)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.7231 3.82205C18.9927 3.60642 19.0364 3.21311 18.8207 2.94357C18.6051 2.67403 18.2118 2.63033 17.9423 2.84596L15.1712 5.06285C15.0198 4.92691 14.8648 4.79356 14.7063 4.66377C13.3967 3.5915 11.7835 2.70901 9.99938 2.70901C8.21525 2.70901 6.60208 3.5915 5.29248 4.66377C3.97573 5.74189 2.89905 7.06622 2.17555 8.07402L2.11588 8.157C1.68033 8.7622 1.3218 9.26039 1.3218 10.0007C1.3218 10.741 1.68033 11.2391 2.11588 11.8443L2.17555 11.9273C2.62943 12.5596 3.2223 13.3164 3.92624 14.0588L1.2756 16.1793C1.00607 16.3949 0.962365 16.7882 1.178 17.0578C1.39363 17.3273 1.78693 17.371 2.05647 17.1554L18.7231 3.82205ZM7.2175 11.4258L8.22812 10.6173C8.1609 10.4242 8.12437 10.2167 8.12437 10.0007C8.12437 8.96514 8.96384 8.12567 9.99937 8.12567C10.3629 8.12567 10.7022 8.22911 10.9895 8.40815L11.9999 7.59985C11.4579 7.14771 10.7604 6.87567 9.99937 6.87567C8.27348 6.87567 6.87437 8.27478 6.87437 10.0007C6.87437 10.514 6.99815 10.9985 7.2175 11.4258Z",fill:"white"},null,-1),(0,n.Lk)("path",{d:"M17.2453 7.30469L13.0554 10.6566C12.754 12.0676 11.5003 13.1257 9.99937 13.1257L9.96928 13.1255L6.28939 16.0694C7.38882 16.7837 8.64483 17.2923 9.99938 17.2923C11.7835 17.2923 13.3967 16.4098 14.7063 15.3376C16.023 14.2595 17.0997 12.9351 17.8232 11.9273L17.8829 11.8444C18.3184 11.2391 18.677 10.741 18.677 10.0007C18.677 9.26039 18.3184 8.7622 17.8829 8.157L17.8232 8.07402C17.6502 7.8331 17.4571 7.57409 17.2453 7.30469Z",fill:"white"},null,-1)])])}var KE=(0,n.pM)({name:"ShowPassword"});const qE=(0,C.A)(KE,[["render",NE]]);var ZE=qE;const JE={width:"22",height:"18",viewBox:"0 0 22 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function YE(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("svg",JE,[...t[0]||(t[0]=[(0,n.Lk)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.999 5.25C8.92796 5.25 7.24903 6.92893 7.24903 9C7.24903 11.0711 8.92796 12.75 10.999 12.75C13.0701 12.75 14.749 11.0711 14.749 9C14.749 6.92893 13.0701 5.25 10.999 5.25ZM8.74903 9C8.74903 7.75736 9.75639 6.75 10.999 6.75C12.2417 6.75 13.249 7.75736 13.249 9C13.249 10.2426 12.2417 11.25 10.999 11.25C9.75639 11.25 8.74903 10.2426 8.74903 9Z",fill:"white"},null,-1),(0,n.Lk)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.999 0.25C8.85807 0.25 6.92227 1.30899 5.35076 2.59572C3.77066 3.88946 2.47864 5.47865 1.61044 6.68801L1.53884 6.78759C1.01618 7.51384 0.585938 8.11166 0.585938 9C0.585938 9.88834 1.01617 10.4862 1.53884 11.2124L1.61044 11.312C2.47864 12.5214 3.77066 14.1105 5.35076 15.4043C6.92227 16.691 8.85807 17.75 10.999 17.75C13.14 17.75 15.0758 16.691 16.6473 15.4043C18.2274 14.1105 19.5194 12.5214 20.3876 11.312L20.4592 11.2124C20.9819 10.4862 21.4121 9.88835 21.4121 9C21.4121 8.11166 20.9819 7.51384 20.4592 6.78759L20.3876 6.68801C19.5194 5.47865 18.2274 3.88946 16.6473 2.59572C15.0758 1.30899 13.14 0.25 10.999 0.25ZM2.82895 7.56278C3.65822 6.40765 4.86251 4.93414 6.30103 3.75631C7.74813 2.57146 9.35326 1.75 10.999 1.75C12.6448 1.75 14.2499 2.57146 15.697 3.75631C17.1355 4.93414 18.3398 6.40765 19.1691 7.56278C19.7931 8.43194 19.9121 8.64148 19.9121 9C19.9121 9.35852 19.7931 9.56806 19.1691 10.4372C18.3398 11.5923 17.1356 13.0659 15.697 14.2437C14.2499 15.4285 12.6448 16.25 10.999 16.25C9.35326 16.25 7.74813 15.4285 6.30103 14.2437C4.86251 13.0659 3.65822 11.5923 2.82895 10.4372C2.20499 9.56806 2.08594 9.35852 2.08594 9C2.08594 8.64148 2.20499 8.43194 2.82895 7.56278Z",fill:"white"},null,-1)])])}var $E=(0,n.pM)({name:"HidePassword"});const eS=(0,C.A)($E,[["render",YE]]);var tS=eS;const aS={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iS(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("svg",aS,[...t[0]||(t[0]=[(0,n.Lk)("path",{d:"M10.6414 3.276C9.94558 3.07317 9.27701 3.3509 8.63573 3.75545C7.99167 4.16175 7.20997 4.80602 6.23196 5.61209L5.36514 6.32651C5.19892 6.4635 5.1317 6.51867 5.06509 6.56831C4.50103 6.98864 3.82458 7.23147 3.12197 7.26586C3.039 7.26992 2.95204 7.27009 2.73664 7.27009L2.70199 7.27009C2.51632 7.27003 2.37325 7.26999 2.24534 7.28431C1.18148 7.40335 0.341763 8.24306 0.222722 9.30692C0.208409 9.43483 0.20845 9.5779 0.208502 9.76358V10.7885C0.20845 10.9742 0.208409 11.1173 0.222722 11.2452C0.341763 12.309 1.18148 13.1487 2.24534 13.2678C2.37325 13.2821 2.51632 13.2821 2.702 13.282L2.73664 13.282C2.95204 13.282 3.039 13.2822 3.12197 13.2862C3.82458 13.3206 4.50103 13.5634 5.06509 13.9838C5.1317 14.0334 5.19892 14.0886 5.36514 14.2256L6.23195 14.94C7.20997 15.7461 7.99166 16.3903 8.63573 16.7966C9.27701 17.2012 9.94558 17.4789 10.6414 17.2761C10.8724 17.2088 11.0913 17.1055 11.2901 16.9701C11.8892 16.5621 12.1001 15.8696 12.1958 15.1174C12.2919 14.362 12.2919 13.349 12.2918 12.0816V8.47048C12.2919 7.2031 12.2919 6.19011 12.1958 5.43469C12.1001 4.68253 11.8892 3.98996 11.2901 3.58197C11.0913 3.44657 10.8724 3.34331 10.6414 3.276Z",fill:"white"},null,-1),(0,n.Lk)("path",{d:"M16.2755 4.00077C16.0314 3.75669 15.6356 3.75669 15.3916 4.00077C15.1475 4.24485 15.1475 4.64058 15.3916 4.88465L15.9749 5.46799C16.4822 5.97524 16.7062 6.20021 16.8748 6.40193C18.749 8.64468 18.749 11.9074 16.8748 14.1502C16.7062 14.3519 16.4822 14.5768 15.9749 15.0841L15.3916 15.6674C15.1475 15.9115 15.1475 16.3072 15.3916 16.5513C15.6356 16.7954 16.0314 16.7954 16.2755 16.5513L16.8885 15.9383C17.3581 15.4687 17.6249 15.2019 17.834 14.9517C20.0959 12.2449 20.0959 8.30716 17.834 5.60039C17.6249 5.35023 17.3581 5.08339 16.8885 4.61378L16.2755 4.00077Z",fill:"white"},null,-1),(0,n.Lk)("path",{d:"M14.6088 6.50077C14.3647 6.25669 13.969 6.25669 13.7249 6.50077C13.4808 6.74485 13.4808 7.14058 13.7249 7.38465L14.0582 7.71799C14.1096 7.7694 14.1307 7.79045 14.1476 7.80783C15.4832 9.18227 15.4832 11.3698 14.1476 12.7443C14.1307 12.7616 14.1097 12.7827 14.0582 12.8341L13.7249 13.1674C13.4808 13.4115 13.4808 13.8072 13.7249 14.0513C13.969 14.2954 14.3647 14.2954 14.6088 14.0513L14.9466 13.7135C14.9921 13.668 15.0201 13.64 15.044 13.6154C16.851 11.7559 16.851 8.79624 15.044 6.93669C15.0201 6.91206 14.9922 6.88423 14.9465 6.83853L14.6088 6.50077Z",fill:"white"},null,-1)])])}var nS=(0,n.pM)({name:"UnMuteIcon"});const oS=(0,C.A)(nS,[["render",iS]]);var rS=oS;const sS={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lS(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("svg",sS,[...t[0]||(t[0]=[(0,n.Lk)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.6414 3.49963C9.94558 3.29681 9.27701 3.57453 8.63573 3.97908C7.99166 4.38539 7.20997 5.02965 6.23196 5.83573L5.36514 6.55014C5.19892 6.68714 5.1317 6.74231 5.06509 6.79195C4.50103 7.21227 3.82458 7.45511 3.12197 7.48949C3.039 7.49355 2.95204 7.49373 2.73664 7.49373L2.70199 7.49372C2.51631 7.49367 2.37325 7.49363 2.24534 7.50794C1.18148 7.62698 0.341763 8.46669 0.222722 9.53056C0.208409 9.65847 0.20845 9.80153 0.208502 9.98721V11.0121C0.20845 11.1978 0.208409 11.3409 0.222722 11.4688C0.341763 12.5327 1.18148 13.3724 2.24534 13.4914C2.37325 13.5057 2.51632 13.5057 2.702 13.5056L2.73664 13.5056C2.95204 13.5056 3.039 13.5058 3.12197 13.5099C3.82458 13.5442 4.50103 13.7871 5.06509 14.2074C5.1317 14.257 5.19892 14.3122 5.36514 14.4492L6.23195 15.1636C7.20997 15.9697 7.99166 16.614 8.63572 17.0203C9.27701 17.4248 9.94558 17.7025 10.6414 17.4997C10.8724 17.4324 11.0913 17.3292 11.2901 17.1937C11.8892 16.7858 12.1001 16.0932 12.1958 15.341C12.2919 14.5856 12.2919 13.5726 12.2918 12.3052V8.69411C12.2919 7.42673 12.2919 6.41375 12.1958 5.65832C12.1001 4.90616 11.8892 4.2136 11.2901 3.80561C11.0913 3.6702 10.8724 3.56694 10.6414 3.49963ZM6.99014 6.83069C8.01337 5.98736 8.734 5.39503 9.30266 5.0363C9.88217 4.67072 10.1413 4.65587 10.2917 4.69969C10.3966 4.73029 10.4961 4.77723 10.5865 4.83877C10.716 4.92692 10.8693 5.13635 10.9558 5.81605C11.0406 6.48304 11.0418 7.41586 11.0418 8.74183V12.2575C11.0418 13.5835 11.0406 14.5163 10.9558 15.1833C10.8693 15.863 10.716 16.0724 10.5865 16.1606C10.4961 16.2221 10.3966 16.2691 10.2917 16.2997C10.1413 16.3435 9.88217 16.3286 9.30266 15.9631C8.734 15.6043 8.01337 15.012 6.99014 14.1687L6.14713 13.4739C5.99789 13.3509 5.90608 13.2752 5.812 13.2051C5.04886 12.6364 4.13366 12.3079 3.18307 12.2614C3.06588 12.2556 2.9469 12.2556 2.75351 12.2556H2.73664C2.50014 12.2556 2.43335 12.2547 2.38434 12.2492C1.90077 12.1951 1.51908 11.8134 1.46497 11.3298C1.45949 11.2808 1.45851 11.214 1.45851 10.9775V10.0219C1.45851 9.78535 1.45949 9.71856 1.46497 9.66956C1.51908 9.18598 1.90077 8.8043 2.38434 8.75019C2.43335 8.7447 2.50014 8.74373 2.73664 8.74373H2.75353C2.94689 8.74373 3.06588 8.74373 3.18307 8.738C4.13366 8.69148 5.04886 8.36294 5.812 7.79426C5.90608 7.72415 5.9979 7.64847 6.14713 7.52547L6.99014 6.83069Z",fill:"white"},null,-1),(0,n.Lk)("path",{d:"M15.5432 8.49217C15.2992 8.24809 14.9034 8.24809 14.6594 8.49217C14.4153 8.73625 14.4153 9.13198 14.6594 9.37605L15.9852 10.7019L14.6594 12.0277C14.4153 12.2718 14.4153 12.6675 14.6594 12.9116C14.9034 13.1557 15.2992 13.1557 15.5432 12.9116L16.8691 11.5858L18.1949 12.9116C18.439 13.1557 18.8347 13.1557 19.0788 12.9116C19.3229 12.6675 19.3229 12.2718 19.0788 12.0277L17.753 10.7019L19.0788 9.37605C19.3229 9.13198 19.3229 8.73625 19.0788 8.49217C18.8347 8.24809 18.439 8.24809 18.1949 8.49217L16.8691 9.81799L15.5432 8.49217Z",fill:"white"},null,-1)])])}var dS=(0,n.pM)({name:"MuteIcon"});const cS=(0,C.A)(dS,[["render",lS]]);var pS=cS,uS=(0,n.pM)({name:"SettingsDesktop",components:{Section:rc,ToggleInput:Ki,ShowPassword:ZE,HidePassword:tS,Table:kx,UnMuteIcon:rS,MuteIcon:pS},data(){return{settings:{coinFlipAnimation:!1,streamerMode:!1,autoJoin:!1,shortNames:!1},passwordVisible:!1,confirmPasswordVisible:!1,tableColumns:["#",{key:"data_time",label:"Data & Time",style:{}},{key:"device",label:"Device",style:{}},{key:"location",label:"Location",style:{}}],statistics:[{id:1,data_time:"12.01.2025 12:24",device:"Laptop",location:"Ketchikan, Alaska 99901, USA"},{id:2,data_time:"12.01.2025 14:31",device:"Mobile",location:"Ketchikan, Alaska 99901, USA"},{id:3,data_time:"12.01.2025 17:56",device:"Laptop",location:"Ketchikan, Alaska 99901, USA"},{id:4,data_time:"15.02.2025 08:20",device:"PC",location:"Kenai, Alaska 99611, USA"},{id:5,data_time:"15.02.2025 19:21",device:"Mobile",location:"Kenai, Alaska 99611, USA"},{id:6,data_time:"17.02.2025 09:21",device:"Mobile",location:"Eagle River, Alaska 99577, USA"},{id:7,data_time:"17.02.2025 21:44",device:"Mobile",location:"Eagle River, Alaska 99577, USA"},{id:8,data_time:"21.02.2025 16:01",device:"Laptop",location:"Glennallen, Alaska 99588, USA"},{id:9,data_time:"21.02.2025 17:27",device:"Laptop",location:"Glennallen, Alaska 99588, USA"},{id:10,data_time:"21.02.2025 18:49",device:"Mobile",location:"Glennallen, Alaska 99588, USA"}],setVolume:5,password:"",confirmPassword:""}},watch:{setVolume(e){const t=document.getElementById("test");t&&(t.value=e,t.dispatchEvent(new Event("input")))}},mounted(){new QE({selectors:["test"],angle:90,gradient:"135deg, #00ffaa 0%, #4579f5 51.65%, #9c42f5 99.83%"})}});a(75940);const fS=(0,C.A)(uS,[["render",GE],["__scopeId","data-v-e348e49c"]]);var gS=fS;const mS={class:"animation-streamer-mode"},hS={class:"animation-streamer-mode"},vS={class:"volume-sound"},xS={class:"mute-unmute"},bS=["value"],wS={class:"password-form"},yS={class:"inputs"},kS={class:"form-input"},CS=["type"],MS={class:"inputs"},LS={class:"form-input"},AS=["type"],IS={class:"statistics"};function TS(e,t,a,i,o,r){const s=(0,n.g2)("ToggleInput"),d=(0,n.g2)("MuteIcon"),c=(0,n.g2)("UnMuteIcon"),p=(0,n.g2)("Table"),u=(0,n.g2)("Section");return(0,n.uX)(),(0,n.CE)("section",null,[t[16]||(t[16]=(0,n.Lk)("div",{class:"top"},[(0,n.Lk)("h2",null,"Settings"),(0,n.Lk)("p",null," All changes will be saved in your browser settings. You will not need to re-set your parameters in the settings ")],-1)),(0,n.Lk)("div",mS,[(0,n.Lk)("div",null,[t[8]||(t[8]=(0,n.Lk)("h2",null,"Coin Flip Animation",-1)),(0,n.bF)(s,{modelValue:e.settings.coinFlipAnimation,"onUpdate:modelValue":t[0]||(t[0]=t=>e.settings.coinFlipAnimation=t)},null,8,["modelValue"])]),(0,n.Lk)("div",null,[t[9]||(t[9]=(0,n.Lk)("h2",null,"Streamer Mode",-1)),(0,n.bF)(s,{modelValue:e.settings.streamerMode,"onUpdate:modelValue":t[1]||(t[1]=t=>e.settings.streamerMode=t)},null,8,["modelValue"])])]),(0,n.Lk)("div",hS,[(0,n.Lk)("div",null,[t[10]||(t[10]=(0,n.Lk)("h2",null,"Auto Join",-1)),(0,n.bF)(s,{modelValue:e.settings.autoJoin,"onUpdate:modelValue":t[2]||(t[2]=t=>e.settings.autoJoin=t)},null,8,["modelValue"])]),(0,n.Lk)("div",null,[t[11]||(t[11]=(0,n.Lk)("h2",null,"Short Names",-1)),(0,n.bF)(s,{modelValue:e.settings.shortNames,"onUpdate:modelValue":t[3]||(t[3]=t=>e.settings.shortNames=t)},null,8,["modelValue"])])]),(0,n.Lk)("div",vS,[t[12]||(t[12]=(0,n.Lk)("h2",null,"Volume of sounds",-1)),(0,n.Lk)("div",xS,[(0,n.Lk)("i",{onClick:t[4]||(t[4]=t=>e.setVolume=0)},[(0,n.bF)(d)]),(0,n.Lk)("i",{onClick:t[5]||(t[5]=t=>e.setVolume=10)},[(0,n.bF)(c)])]),(0,n.Lk)("input",{class:"range",type:"range",name:"test",id:"test",min:"0",max:"10",value:e.setVolume},null,8,bS)]),t[17]||(t[17]=(0,n.Lk)("div",{class:"top"},[(0,n.Lk)("h2",null,"Password")],-1)),(0,n.Lk)("form",wS,[(0,n.Lk)("div",yS,[t[13]||(t[13]=(0,n.Lk)("label",{for:""},"Password",-1)),(0,n.Lk)("div",kS,[(0,n.Lk)("input",{type:e.passwordVisible?"text":"password"},null,8,CS),(0,n.Lk)("i",{onClick:t[6]||(t[6]=t=>e.passwordVisible=!e.passwordVisible)},[((0,n.uX)(),(0,n.Wv)((0,n.$y)(e.passwordVisible?"HidePassword":"ShowPassword")))])])]),(0,n.Lk)("div",MS,[t[14]||(t[14]=(0,n.Lk)("label",{for:""},"Confirm password",-1)),(0,n.Lk)("div",LS,[(0,n.Lk)("input",{type:e.confirmPasswordVisible?"text":"password"},null,8,AS),(0,n.Lk)("i",{onClick:t[7]||(t[7]=t=>e.confirmPasswordVisible=!e.confirmPasswordVisible)},[((0,n.uX)(),(0,n.Wv)((0,n.$y)(e.confirmPasswordVisible?"HidePassword":"ShowPassword")))])])])]),(0,n.bF)(u,{label:"Entry history",usePing:!1},{"top-button":(0,n.k6)((()=>[...t[15]||(t[15]=[])])),default:(0,n.k6)((()=>[(0,n.Lk)("div",IS,[(0,n.bF)(p,{data:e.statistics,columns:e.tableColumns,rowStyle:(e,t)=>({fontSize:"10px",textWrap:"nowrap"})},{"cell(#)":(0,n.k6)((e=>[(0,n.eW)((0,l.v_)(e.rowIndex+1),1)])),_:1},8,["data","columns"])])])),_:1})])}var _S=(0,n.pM)({name:"SettingsDesktop",components:{Section:rc,ToggleInput:Ki,ShowPassword:ZE,HidePassword:tS,Table:kx,MuteIcon:pS,UnMuteIcon:rS},data(){return{settings:{coinFlipAnimation:!1,streamerMode:!1,autoJoin:!1,shortNames:!1},passwordVisible:!1,confirmPasswordVisible:!1,setVolume:5,tableColumns:["#",{key:"data_time",label:"Data & Time",style:{fontSize:"12px",textWrap:"nowrap"}},{key:"device",label:"Device",style:{fontSize:"12px",textWrap:"nowrap"}},{key:"location",label:"Location",style:{fontSize:"12px",textWrap:"nowrap"}}],statistics:[{id:1,data_time:"12.01.2025 12:24",device:"Laptop",location:"Ketchikan, Alaska 99901, USA"},{id:2,data_time:"12.01.2025 14:31",device:"Mobile",location:"Ketchikan, Alaska 99901, USA"},{id:3,data_time:"12.01.2025 17:56",device:"Laptop",location:"Ketchikan, Alaska 99901, USA"},{id:4,data_time:"15.02.2025 08:20",device:"PC",location:"Kenai, Alaska 99611, USA"},{id:5,data_time:"15.02.2025 19:21",device:"Mobile",location:"Kenai, Alaska 99611, USA"},{id:6,data_time:"17.02.2025 09:21",device:"Mobile",location:"Eagle River, Alaska 99577, USA"},{id:7,data_time:"17.02.2025 21:44",device:"Mobile",location:"Eagle River, Alaska 99577, USA"},{id:8,data_time:"21.02.2025 16:01",device:"Laptop",location:"Glennallen, Alaska 99588, USA"},{id:9,data_time:"21.02.2025 17:27",device:"Laptop",location:"Glennallen, Alaska 99588, USA"},{id:10,data_time:"21.02.2025 18:49",device:"Mobile",location:"Glennallen, Alaska 99588, USA"}]}},mounted(){new QE({selectors:["test"],angle:90,gradient:"135deg, #00ffaa 0%, #4579f5 51.65%, #9c42f5 99.83%"})},watch:{setVolume(e){const t=document.getElementById("test");t&&(t.value=e,t.dispatchEvent(new Event("input")))}}});a(16952);const ES=(0,C.A)(_S,[["render",TS],["__scopeId","data-v-147fbe19"]]);var SS=ES,FS=(0,n.pM)({name:"GameHistoryView",components:{SettingsDesktop:gS,SettingsMobile:SS},setup(){const{isMobile:e,isTablet:t}=Rd();return{isMobile:e,isTablet:t}}});const WS=(0,C.A)(FS,[["render",EE]]);var jS=WS;const XS={class:"support"};function RS(e,t,a,i,o,r){const s=(0,n.g2)("SupportMobile"),l=(0,n.g2)("SupportDesktop");return(0,n.uX)(),(0,n.CE)("div",XS,[e.isMobile?((0,n.uX)(),(0,n.Wv)(s,{key:0})):((0,n.uX)(),(0,n.Wv)(l,{key:1}))])}const zS={class:"top"},US=["onClick"],DS={key:0};function BS(e,t,a,i,o,r){const s=(0,n.g2)("SearchInput"),d=(0,n.g2)("Arrow"),c=(0,n.g2)("SupportIcon"),p=(0,n.g2)("Button");return(0,n.uX)(),(0,n.CE)("section",null,[(0,n.Lk)("div",zS,[(0,n.Lk)("h2",null,(0,l.v_)(e.$t("pages.support.title")),1),(0,n.Lk)("span",null,(0,l.v_)(e.$t("pages.support.subtitle")),1)]),(0,n.bF)(s,{placeholder:e.$t("pages.support.search_placeholder"),modelValue:e.searchText,"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchText=t)},null,8,["placeholder","modelValue"]),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.questions,(e=>((0,n.uX)(),(0,n.CE)("div",{class:"support-box",key:e.key},[(0,n.Lk)("div",{class:"header",onClick:t=>e.isOpen=!e.isOpen},[(0,n.Lk)("h2",null,(0,l.v_)(e.title),1),(0,n.Lk)("i",{class:(0,l.C4)({rotate:e.isOpen})},[(0,n.bF)(d)],2)],8,US),e.isOpen?((0,n.uX)(),(0,n.CE)("p",DS,(0,l.v_)(e.answer),1)):(0,n.Q3)("",!0)])))),128)),(0,n.bF)(p,{type:"primary",style:{"font-size":"14px",width:"200px",display:"flex","align-items":"center",gap:"8px",height:"64px"}},{default:(0,n.k6)((()=>[(0,n.bF)(c,{style:{"margin-right":"8px"}}),(0,n.eW)(" "+(0,l.v_)(e.$t("buttons.support_chat")),1)])),_:1})])}var VS=(0,n.pM)({name:"SupportDesktop",components:{SearchInput:Ou,Arrow:bt,Button:Ea,SupportIcon:Dt},data(){return{searchText:"",questionsKeys:["deposit","withdraw","can_play_free","account_problem","scamming","what_is_bloxup","need_account_to_play","can_play_on_mobile","has_commission","how_to_cooperate"],questions:[],debounceSearch:null}},watch:{searchText(e){this.debounceSearch&&this.debounceSearch(e)}},mounted(){(0,n.wB)((()=>Ra.global.locale),(()=>{this.setQuestions()})),this.setQuestions(),this.debounceSearch=Gu(this.search.bind(this),300)},methods:{search(e){this.questions=this.questionsKeys.map((e=>({key:e,isOpen:!1,title:this.$t(`pages.support.questions.${e}.title`),answer:this.$t(`pages.support.questions.${e}.answer`)}))).filter((t=>t.title.toLowerCase().includes(e.toLowerCase())||t.answer.toLowerCase().includes(e.toLowerCase())))},setQuestions(){this.questions=this.questionsKeys.map((e=>({key:e,isOpen:!1,title:this.$t(`pages.support.questions.${e}.title`),answer:this.$t(`pages.support.questions.${e}.answer`)})))}}});a(49358);const PS=(0,C.A)(VS,[["render",BS],["__scopeId","data-v-1ac7e8a3"]]);var OS=PS;const GS={class:"top"},QS=["onClick"],HS={key:0};function NS(e,t,a,i,o,r){const s=(0,n.g2)("SearchInput"),d=(0,n.g2)("Arrow"),c=(0,n.g2)("SupportIcon"),p=(0,n.g2)("Button");return(0,n.uX)(),(0,n.CE)("section",null,[(0,n.Lk)("div",GS,[(0,n.Lk)("h2",null,(0,l.v_)(e.$t("pages.support.title")),1),(0,n.Lk)("span",null,(0,l.v_)(e.$t("pages.support.subtitle")),1)]),(0,n.bF)(s,{placeholder:e.$t("pages.support.search_placeholder"),modelValue:e.searchText,"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchText=t)},null,8,["placeholder","modelValue"]),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.questions,(e=>((0,n.uX)(),(0,n.CE)("div",{class:"support-box",key:e.key},[(0,n.Lk)("div",{class:"header",onClick:t=>e.isOpen=!e.isOpen},[(0,n.Lk)("h2",null,(0,l.v_)(e.title),1),(0,n.Lk)("i",null,[(0,n.bF)(d)])],8,QS),e.isOpen?((0,n.uX)(),(0,n.CE)("p",HS,(0,l.v_)(e.answer),1)):(0,n.Q3)("",!0)])))),128)),(0,n.bF)(p,{type:"primary",style:{"font-size":"14px",width:"200px",display:"flex","align-items":"center",gap:"8px",height:"64px"}},{default:(0,n.k6)((()=>[(0,n.bF)(c,{style:{"margin-right":"8px"}}),(0,n.eW)(" "+(0,l.v_)(e.$t("buttons.support_chat")),1)])),_:1})])}var KS=(0,n.pM)({name:"SupportDesktop",components:{SearchInput:Ou,Arrow:bt,Button:Ea,SupportIcon:Dt},data(){return{searchText:"",questionsKeys:["deposit","withdraw","can_play_free","account_problem","scamming","what_is_bloxup","need_account_to_play","can_play_on_mobile","has_commission","how_to_cooperate"],questions:[],debounceSearch:null}},watch:{searchText(e){this.debounceSearch&&this.debounceSearch(e)}},mounted(){(0,n.wB)((()=>Ra.global.locale),(()=>{this.setQuestions()})),this.setQuestions(),this.debounceSearch=Gu(this.search.bind(this),300)},methods:{search(e){this.questions=this.questionsKeys.map((e=>({key:e,isOpen:!1,title:this.$t(`pages.support.questions.${e}.title`),answer:this.$t(`pages.support.questions.${e}.answer`)}))).filter((t=>t.title.toLowerCase().includes(e.toLowerCase())||t.answer.toLowerCase().includes(e.toLowerCase())))},setQuestions(){this.questions=this.questionsKeys.map((e=>({key:e,isOpen:!1,title:this.$t(`pages.support.questions.${e}.title`),answer:this.$t(`pages.support.questions.${e}.answer`)})))}}});a(96129);const qS=(0,C.A)(KS,[["render",NS],["__scopeId","data-v-68758b8f"]]);var ZS=qS,JS=(0,n.pM)({name:"GameHistoryView",components:{SupportDesktop:OS,SupportMobile:ZS},setup(){const{isMobile:e,isTablet:t}=Rd();return{isMobile:e,isTablet:t}}});const YS=(0,C.A)(JS,[["render",RS]]);var $S=YS;const eF={class:"giveaway"};function tF(e,t,a,i,o,r){const s=(0,n.g2)("GiveawayMobile"),l=(0,n.g2)("GiveawayDesktop");return(0,n.uX)(),(0,n.CE)("div",eF,[e.isMobile?((0,n.uX)(),(0,n.Wv)(s,{key:0})):((0,n.uX)(),(0,n.Wv)(l,{key:1}))])}const aF={class:"top"},iF={class:"buttons-wrapper"},nF={key:0,class:"games-tabs"},oF={class:"buttons"},rF={key:0,class:"Giveaways"};function sF(e,t,a,i,o,r){const s=(0,n.g2)("Tabs"),d=(0,n.g2)("Button"),c=(0,n.g2)("GiveawaysRooms"),p=(0,n.g2)("CreateModal"),u=(0,n.g2)("Modal"),f=(0,n.g2)("DotsLoader");return(0,n.uX)(),(0,n.CE)("section",null,[(0,n.Lk)("div",aF,[(0,n.Lk)("h2",null,(0,l.v_)(e.$t("pages.home.giveaways.title")),1)]),(0,n.Lk)("div",iF,[e.games.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",nF,[(0,n.bF)(s,{tabs:e.tabs},null,8,["tabs"])])),(0,n.Lk)("div",oF,[(0,n.bF)(d,{type:"primary",onClick:e.handleCreate},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.create")),1)])),_:1},8,["onClick"])])]),e.giveaways.loading?((0,n.uX)(),(0,n.Wv)(f,{key:1})):((0,n.uX)(),(0,n.CE)("div",rF,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.giveaways.data,(e=>((0,n.uX)(),(0,n.Wv)(c,{key:e.id,giveaway:e},null,8,["giveaway"])))),128)),e.showCreateModal?((0,n.uX)(),(0,n.Wv)(u,{key:0,onClose:t[1]||(t[1]=t=>e.showCreateModal=!1),img:"Modal-background.png",name:e.$t("modals.create.title",{gameLabel:"Giveaway"})},{default:(0,n.k6)((()=>[(0,n.bF)(p,{onClose:t[0]||(t[0]=t=>e.showCreateModal=!1),"game-slug":e.activeTab.value},null,8,["game-slug"])])),_:1},8,["name"])):(0,n.Q3)("",!0)]))])}const lF={class:"GiveawayRoom"},dF={class:"top"},cF={key:0,class:"content"},pF={key:1,class:"content"};function uF(e,t,a,i,o,r){const s=(0,n.g2)("FinishedGiveaway"),d=(0,n.g2)("ActiveGiveaway"),c=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",lF,[(0,n.Lk)("div",dF,[(0,n.Lk)("div",null,[(0,n.Lk)("h2",null,(0,l.v_)(e.giveaway.name),1),t[0]||(t[0]=(0,n.Lk)("i",null,"?",-1))]),(0,n.Lk)("h3",null,[t[1]||(t[1]=(0,n.eW)(" Starting with a bet ",-1)),(0,n.bo)((0,n.Lk)("span",null,null,512),[[c,e.betAmountForTicket]]),t[2]||(t[2]=(0,n.eW)(" per round ",-1))])]),e.isFinished?((0,n.uX)(),(0,n.CE)("div",cF,[(0,n.bF)(s,{giveaway:e.giveaway},null,8,["giveaway"])])):((0,n.uX)(),(0,n.CE)("div",pF,[(0,n.bF)(d,{giveaway:e.giveaway},null,8,["giveaway"])]))])}const fF={key:0,class:"user-side"},gF={class:"avatar winner"},mF=["src","alt"],hF={class:"item-side"},vF={class:"all-item-info"},xF={class:"item-info"},bF={style:{"text-align":"start"}},wF={class:"thumbnail"},yF=["src","alt"];function kF(e,t,a,i,o,r){const s=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)(n.FK,null,[e.giveaway.winner?.user?((0,n.uX)(),(0,n.CE)("div",fF,[(0,n.Lk)("div",(0,n.v6)({class:"avatar-wrapper"},e.$attrs),[(0,n.Lk)("div",gF,[(0,n.Lk)("img",{src:e.giveaway.winner.user.avatar,alt:e.giveaway.winner.user.name},null,8,mF),t[0]||(t[0]=(0,n.Lk)("div",{class:"winner"},[(0,n.Lk)("span",null," WINNER ")],-1))])],16),(0,n.Lk)("p",null,(0,l.v_)(e.giveaway.winner?.user.name),1)])):(0,n.Q3)("",!0),(0,n.Lk)("div",hF,[(0,n.Lk)("div",vF,[(0,n.Lk)("div",xF,[(0,n.Lk)("div",null,[(0,n.Lk)("p",bF,(0,l.v_)(e.giveaway.item.name),1)]),(0,n.Lk)("div",null,[(0,n.bo)((0,n.Lk)("p",null,null,512),[[s,e.giveaway.item.price]]),t[1]||(t[1]=(0,n.Lk)("span",null,"(Value)",-1))])]),(0,n.Lk)("div",wF,[(0,n.Lk)("i",null,[(0,n.Lk)("img",{style:{width:"85px",height:"85px"},src:e.giveaway.item.thumbnail,alt:e.giveaway.item.name},null,8,yF)])])])])],64)}var CF=(0,n.pM)({props:{giveaway:{type:Object,required:!0}},components:{Button:Ea}}),MF=(0,n.pM)({mixins:[CF]});a(82692);const LF=(0,C.A)(MF,[["render",kF],["__scopeId","data-v-1eea570c"]]);var AF=LF;const IF={class:"user-side"},TF={class:"participants-icon"},_F={class:"participants-count"},EF={style:{"text-wrap":"nowrap"}},SF={class:"item-side"},FF={class:"all-item-info"},WF={class:"item-info"},jF={style:{"text-align":"start"}},XF={class:"thumbnail"},RF=["src","alt"];function zF(e,t,a,i,o,r){const s=(0,n.g2)("ParticipantsIcon"),d=(0,n.g2)("Button"),c=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)(n.FK,null,[(0,n.Lk)("div",IF,[(0,n.Lk)("div",TF,[(0,n.bF)(s),(0,n.Lk)("span",_F,(0,l.v_)(e.giveaway.participants_count),1)]),(0,n.Lk)("div",null,[t[0]||(t[0]=(0,n.Lk)("p",null,"Participants",-1)),(0,n.Lk)("p",null,(0,l.v_)(e.duration.day)+"day : "+(0,l.v_)(e.duration.hours)+"h : "+(0,l.v_)(e.duration.min)+"m : "+(0,l.v_)(e.duration.sec)+"s ",1),(0,n.Lk)("p",EF,(0,l.v_)("pending"===e.giveaway.status?"Starting at":"Active drawing"),1)])]),(0,n.Lk)("div",SF,[(0,n.Lk)("div",FF,[(0,n.Lk)("div",WF,[(0,n.Lk)("div",null,[(0,n.Lk)("p",jF,(0,l.v_)(e.giveaway.item.name),1)]),(0,n.Lk)("div",null,[(0,n.bo)((0,n.Lk)("p",null,null,512),[[c,e.giveaway.item.price]]),t[1]||(t[1]=(0,n.Lk)("span",null,"(Value)",-1))])]),(0,n.Lk)("div",XF,[(0,n.Lk)("img",{style:{width:"85px",height:"85px"},src:e.giveaway.item.thumbnail,alt:e.giveaway.item.name},null,8,RF)])]),e.isStarted?((0,n.uX)(),(0,n.Wv)(d,{key:0,disabled:e.disableJoin,style:{width:"100%"},type:"outlined",onClick:e.joinGiveaway},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.giveaway.is_participant||e.isJoined?"Participating":"Take part"),1)])),_:1},8,["disabled","onClick"])):(0,n.Q3)("",!0)])],64)}const UF={width:"24",height:"17",viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function DF(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("svg",UF,[...t[0]||(t[0]=[(0,n.Fv)('',6)])])}var BF=(0,n.pM)({name:"ParticipantsIcon"});const VF=(0,C.A)(BF,[["render",DF]]);var PF=VF,OF=(0,n.pM)({props:{giveaway:{type:Object,required:!0}},components:{Button:Ea,ParticipantsIcon:PF},data(){return{isJoined:this.giveaway.is_participant,joinLoading:!1,duration:{day:0,hours:0,min:0,sec:0},timerType:"",timer:0}},computed:{authUser(){return this.$store.getters["auth/user"]},disableJoin(){return this.giveaway.is_participant||this.isJoined||!this.timer||this.giveaway.owner.id===this.authUser.id||!this.authUser.tickets?.find((e=>e===this.giveaway.game_slug))},isStarted(){return this.giveaway.status==Jt.STARTED}},mounted(){this.setTimer()},watch:{"giveaway.cycle_count"(){this.setTimer()}},methods:{setTimer(){this.timer=setInterval((()=>{this.getRemainingTime(),0===this.duration.day&&0===this.duration.hours&&0===this.duration.min&&0===this.duration.sec&&("duration_timer"===this.timerType&&(clearInterval(this.timer),this.timer=0),console.log("Time is up!"))}),1e3)},getRemainingTime(){console.log(this.giveaway.cycle_count,"this.giveaway.cycle_count");const e=new Date,t=new Date(this.giveaway.start_date);let a;"pending"===this.giveaway.status?(this.timerType="start_timer",a=t):(this.timerType="duration_timer",a=new Date(t.getTime()+this.giveaway.duration*this.giveaway.cycle_count*60*1e3));const i=a.getTime()-e.getTime();if(i<=0)return void(this.duration={day:0,hours:0,min:0,sec:0});const n=Math.floor(i/1e3),o=Math.floor(n/86400),r=Math.floor(n%86400/3600),s=Math.floor(n%3600/60),l=n%60;this.duration={day:o,hours:r,min:s,sec:l}},async joinGiveaway(){this.joinLoading=!0;try{await Ba.giveaway.join(this.giveaway,this.authUser.id);this.isJoined=!0}catch(e){console.log(e),this.isJoined=!1}this.joinLoading=!1}}}),GF=(0,n.pM)({mixins:[OF]});a(21991);const QF=(0,C.A)(GF,[["render",zF],["__scopeId","data-v-4460f040"]]);var HF=QF,NF=(0,n.pM)({props:{giveaway:{type:Object,required:!0}},computed:{betAmountForTicket(){return this.configs.data.game[this.giveaway.game_slug].betAmountForTicket},configs(){return this.$store.getters["global/data"]},isFinished(){return this.giveaway.status===Jt.FINISHED},isStarted(){return this.giveaway.status===Jt.STARTED}}}),KF=(0,n.pM)({components:{FinishedGiveaway:AF,ActiveGiveaway:HF},mixins:[NF]});a(93296);const qF=(0,C.A)(KF,[["render",uF],["__scopeId","data-v-0c8855e4"]]);var ZF=qF;const JF={class:"create-modal"},YF={action:""},$F={class:"name-input"},eW=["value"],tW={class:"date-input"},aW={style:{width:"50%",display:"flex","flex-direction":"column",gap:"8px"}},iW={class:"calendar"},nW={class:"calendar-icon"},oW=["value"],rW={style:{width:"50%",display:"flex","flex-direction":"column",gap:"8px"}},sW={class:"calendar"},lW=["value"],dW={class:"name-input"},cW={class:"prize-side"},pW={key:0,class:"empty"},uW={key:1,class:"inventory"},fW=["onClick"],gW=["src","alt"];function mW(e,t,a,i,o,r){const s=(0,n.g2)("CalendarIcon"),d=(0,n.g2)("VueDatePicker"),c=(0,n.g2)("Select"),p=(0,n.g2)("EmptySearch"),u=(0,n.g2)("Button");return(0,n.uX)(),(0,n.CE)("div",JF,[(0,n.Lk)("form",YF,[(0,n.Lk)("div",$F,[t[3]||(t[3]=(0,n.Lk)("label",{for:"name"},"Name",-1)),(0,n.Lk)("input",{type:"text",name:"name",disabled:"",placeholder:"Enter name",value:e.name},null,8,eW)]),(0,n.Lk)("div",tW,[(0,n.Lk)("div",aW,[t[4]||(t[4]=(0,n.Lk)("label",{for:"calendar"},"Date of start",-1)),(0,n.bF)(d,{modelValue:e.date,"onUpdate:modelValue":t[0]||(t[0]=t=>e.date=t),"enable-time-picker":!1,"auto-apply":"","min-date":e.dateNow,dark:""},{trigger:(0,n.k6)((()=>[(0,n.Lk)("div",iW,[(0,n.Lk)("div",nW,[(0,n.bF)(s)]),(0,n.Lk)("input",{name:"calendar",type:"text",value:e.formattedDate,readonly:"",placeholder:"Date"},null,8,oW)])])),_:1},8,["modelValue","min-date"])]),(0,n.Lk)("div",rW,[t[5]||(t[5]=(0,n.Lk)("label",{for:"time"},"Time of start",-1)),(0,n.bF)(d,{modelValue:e.time,"onUpdate:modelValue":t[1]||(t[1]=t=>e.time=t),"time-picker":"","select-text":"Apply","min-time":e.startTime,dark:""},{trigger:(0,n.k6)((()=>[(0,n.Lk)("div",sW,[(0,n.Lk)("input",{name:"time",type:"text",value:e.formattedTime,readonly:"",placeholder:"00 : 00 : 00"},null,8,lW)])])),_:1},8,["modelValue","min-time"])])]),(0,n.Lk)("div",dW,[t[6]||(t[6]=(0,n.Lk)("label",null,"Duration",-1)),(0,n.bF)(c,{options:e.durations,modelValue:e.selectedDuration,"onUpdate:modelValue":t[2]||(t[2]=t=>e.selectedDuration=t)},null,8,["options","modelValue"])]),(0,n.Lk)("div",cW,[t[7]||(t[7]=(0,n.Lk)("label",null,"Prize",-1)),e.inventory&&e.inventory.length?((0,n.uX)(),(0,n.CE)("div",uW,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.inventory,(t=>((0,n.uX)(),(0,n.CE)("div",{key:t.id,class:(0,l.C4)(["item",{selected:e.selectedItem?.id===t.item.id}]),onClick:a=>e.selectItem(t.item)},[(0,n.Lk)("img",{src:t.item.thumbnail,alt:t.item.name},null,8,gW),(0,n.Lk)("span",null,(0,l.v_)(t.item.name),1)],10,fW)))),128))])):((0,n.uX)(),(0,n.CE)("div",pW,[(0,n.Lk)("span",null,[(0,n.bF)(p)]),(0,n.Lk)("div",null,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.empty_state")),1)])]))]),(0,n.bF)(u,{style:{height:"60px",width:"200px"},disabled:e.disableCreate,onClick:e.createGiveaway},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.create")),1)])),_:1},8,["disabled","onClick"])])])}const hW={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function vW(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)("svg",hW,[...t[0]||(t[0]=[(0,n.Fv)('',5)])])}var xW=(0,n.pM)({name:"CalendarIcon"});const bW=(0,C.A)(xW,[["render",vW]]);var wW=bW,yW=a(9093),kW=(0,n.pM)({components:{CalendarIcon:wW,EmptySearch:Mt,Button:Ea,VueDatePicker:yW.A,Select:zw},props:{gameSlug:{type:Object,required:!0}},data(){return{date:new Date,time:{hours:(new Date).getHours(),minutes:(new Date).getMinutes()},durations:[{label:"1 min",value:1},{label:"5 min",value:5},{label:"10 min",value:10},{label:"30 min",value:30}],selectedDuration:5,name:"",inventory:[],selectedItem:null,createLoading:!1}},computed:{dateNow(){return new Date},startTime(){return{hours:this.dateNow.getHours(),minutes:this.dateNow.getMinutes()}},authUser(){return this.$store.getters["auth/user"]},formattedDate(){if(!this.date)return"";const e=new Date(this.date),t=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),i=String(e.getDate()).padStart(2,"0");return`${t}-${a}-${i}`},formattedTime(){if(!this.time)return"";const e=this.time,t=String(e.hours).padStart(2,"0"),a=String(e.minutes).padStart(2,"0"),i="00";return`${t}:${a}:${i}`},disableCreate(){return!this.selectedItem||!this.authUser.id||!this.name||this.createLoading}},mounted(){this.getInventory()},methods:{selectItem(e){this.selectedItem=e,this.name=e.name},async createGiveaway(){if(!this.selectedItem)return;const e=new Date(`${this.formattedDate} ${this.formattedTime}`.replace(" ","T")),t=e.getUTCFullYear(),a=(e.getUTCMonth()+1).toString().padStart(2,"0"),i=e.getUTCDate().toString().padStart(2,"0"),n=e.getUTCHours().toString().padStart(2,"0"),o=e.getUTCMinutes().toString().padStart(2,"0"),r=e.getUTCSeconds().toString().padStart(2,"0"),s=`${t}-${a}-${i} ${n}:${o}:${r}`;this.createLoading=!0;const{data:{data:l}}=await Ba.giveaway.post(this.gameSlug,{start_date:s,duration:this.selectedDuration,game_slug:this.gameSlug,item_id:this.selectedItem.id});this.createLoading=!1,this.$emit("giveaway-created",l),this.$emit("close")},async getInventory(){const e=await Ba.getGameInventory(this.gameSlug);this.inventory=e.data.data}}}),CW=(0,n.pM)({mixins:[kW]});a(70039);const MW=(0,C.A)(CW,[["render",mW],["__scopeId","data-v-2b109eab"]]);var LW=MW,AW=(0,n.pM)({data(){return{showCreateModal:!1,tabs:[]}},components:{Tabs:_o,Button:Ea,Modal:vn,DotsLoader:Fi},watch:{activeTab(){this.getGiveaways()}},computed:{configs(){return this.$store.getters["global/data"]},giveaways(){return this.$store.getters["giveaways/data"]},games(){return this.$store.getters["games/data"]},activeTab(){return this.tabs.find((e=>e.active))}},methods:{async getTabs(){this.tabs=this.games.data.map(((e,t)=>({active:0===t,disabled:!1,label:e.name,value:e.slug})))},handleCreate(){this.showCreateModal=!0},async getGiveaways(){await this.$store.dispatch("giveaways/getGiveaways",{game_slug:this.activeTab.value})}},async mounted(){await this.getTabs()}}),IW=(0,n.pM)({name:"GiveawaysDesktop",components:{CreateModal:LW,GiveawaysRooms:ZF},mixins:[AW]});a(7703);const TW=(0,C.A)(IW,[["render",sF],["__scopeId","data-v-40eee0d0"]]);var _W=TW;const EW={class:"top"},SW={class:"buttons-wrapper"},FW={key:0,class:"games-tabs"},WW={class:"buttons"},jW={key:0,class:"Giveaways"};function XW(e,t,a,i,o,r){const s=(0,n.g2)("Tabs"),d=(0,n.g2)("Button"),c=(0,n.g2)("GiveawaysRooms"),p=(0,n.g2)("CreateModal"),u=(0,n.g2)("Modal");return(0,n.uX)(),(0,n.CE)("section",null,[(0,n.Lk)("div",EW,[(0,n.Lk)("h2",null,(0,l.v_)(e.$t("pages.home.giveaways.title")),1)]),(0,n.Lk)("div",SW,[e.games.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",FW,[(0,n.bF)(s,{tabs:e.tabs},null,8,["tabs"])])),(0,n.Lk)("div",WW,[(0,n.bF)(d,{type:"primary",onClick:e.handleCreate},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.create")),1)])),_:1},8,["onClick"])])]),e.giveaways.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",jW,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.giveaways.data,(e=>((0,n.uX)(),(0,n.Wv)(c,{key:e.id,giveaway:e},null,8,["giveaway"])))),128)),e.showCreateModal?((0,n.uX)(),(0,n.Wv)(u,{key:0,onClose:t[1]||(t[1]=t=>e.showCreateModal=!1),img:"Modal-background.png",name:e.$t("modals.create.title",{gameLabel:"Giveaway"})},{default:(0,n.k6)((()=>[(0,n.bF)(p,{onClose:t[0]||(t[0]=t=>e.showCreateModal=!1),"game-slug":e.activeTab.value},null,8,["game-slug"])])),_:1},8,["name"])):(0,n.Q3)("",!0)]))])}const RW={class:"GiveawayRoom"},zW={class:"top"},UW={key:0,class:"content"},DW={key:1,class:"content"};function BW(e,t,a,i,o,r){const s=(0,n.g2)("FinishedGiveaway"),d=(0,n.g2)("ActiveGiveaway"),c=(0,n.gN)("price-format");return(0,n.uX)(),(0,n.CE)("div",RW,[(0,n.Lk)("div",zW,[(0,n.Lk)("div",null,[(0,n.Lk)("h2",null,(0,l.v_)(e.giveaway.name),1),t[0]||(t[0]=(0,n.Lk)("i",null,"?",-1))]),(0,n.Lk)("h3",null,[t[1]||(t[1]=(0,n.eW)(" Starting with a bet ",-1)),(0,n.bo)((0,n.Lk)("span",null,null,512),[[c,e.betAmountForTicket]]),t[2]||(t[2]=(0,n.eW)(" per round ",-1))])]),e.isFinished?((0,n.uX)(),(0,n.CE)("div",UW,[(0,n.bF)(s,{giveaway:e.giveaway},null,8,["giveaway"])])):((0,n.uX)(),(0,n.CE)("div",DW,[(0,n.bF)(d,{giveaway:e.giveaway},null,8,["giveaway"])]))])}const VW={key:0,class:"user-side"},PW={class:"avatar winner"},OW=["src","alt"],GW={class:"item-side"},QW={class:"all-item-info"},HW={class:"item-info"},NW={style:{"text-align":"start"}},KW={class:"thumbnail"},qW=["src","alt"];function ZW(e,t,a,i,o,r){return(0,n.uX)(),(0,n.CE)(n.FK,null,[e.giveaway.winner?.user?((0,n.uX)(),(0,n.CE)("div",VW,[(0,n.Lk)("div",(0,n.v6)({class:"avatar-wrapper"},e.$attrs),[(0,n.Lk)("div",PW,[(0,n.Lk)("img",{src:e.giveaway.winner.user.avatar,alt:e.giveaway.winner.user.name},null,8,OW),t[0]||(t[0]=(0,n.Lk)("div",{class:"winner"},[(0,n.Lk)("span",null," WINNER ")],-1))])],16),(0,n.Lk)("p",null,(0,l.v_)(e.giveaway.winner?.user.name),1),t[1]||(t[1]=(0,n.Lk)("span",null,"Top 10 winners",-1))])):(0,n.Q3)("",!0),(0,n.Lk)("div",GW,[(0,n.Lk)("div",QW,[(0,n.Lk)("div",HW,[(0,n.Lk)("div",null,[(0,n.Lk)("p",NW,(0,l.v_)(e.giveaway.item.name),1)]),(0,n.Lk)("div",null,[t[2]||(t[2]=(0,n.Lk)("div",{class:"skin-quality"},null,-1)),(0,n.Lk)("p",null,(0,l.v_)(e.giveaway.item.price),1)])]),(0,n.Lk)("div",KW,[(0,n.Lk)("i",null,[(0,n.Lk)("img",{style:{width:"85px",height:"85px"},src:e.giveaway.item.thumbnail,alt:e.giveaway.item.name},null,8,qW)])])])])],64)}var JW=(0,n.pM)({mixins:[CF]});a(19213);const YW=(0,C.A)(JW,[["render",ZW],["__scopeId","data-v-74eaceab"]]);var $W=YW;const ej={class:"user-side"},tj={class:"participants-icon"},aj={class:"participants-count"},ij={class:"item-side"},nj={class:"all-item-info"},oj={class:"item-info"},rj={style:{"text-align":"start"}},sj={class:"thumbnail"},lj=["src","alt"];function dj(e,t,a,i,o,r){const s=(0,n.g2)("ParticipantsIcon"),d=(0,n.g2)("Button");return(0,n.uX)(),(0,n.CE)(n.FK,null,[(0,n.Lk)("div",ej,[(0,n.Lk)("div",tj,[(0,n.bF)(s),(0,n.Lk)("span",aj,(0,l.v_)(e.giveaway.participants_count),1)]),(0,n.Lk)("div",null,[t[0]||(t[0]=(0,n.Lk)("p",null,"Participants",-1)),(0,n.Lk)("p",null,(0,l.v_)(e.duration.day)+"day : "+(0,l.v_)(e.duration.hours)+"h : "+(0,l.v_)(e.duration.min)+"m : "+(0,l.v_)(e.duration.sec)+"s ",1),t[1]||(t[1]=(0,n.Lk)("p",{style:{"text-wrap":"nowrap"}},"Active drawing",-1))])]),(0,n.Lk)("div",ij,[(0,n.Lk)("div",nj,[(0,n.Lk)("div",oj,[(0,n.Lk)("div",null,[(0,n.Lk)("p",rj,(0,l.v_)(e.giveaway.item.name),1)]),(0,n.Lk)("div",null,[t[2]||(t[2]=(0,n.Lk)("div",{class:"skin-quality"},null,-1)),(0,n.Lk)("p",null,(0,l.v_)(e.giveaway.item.price),1)])]),(0,n.Lk)("div",sj,[(0,n.Lk)("i",null,[(0,n.Lk)("img",{style:{width:"85px",height:"85px"},src:e.giveaway.item.thumbnail,alt:e.giveaway.item.name},null,8,lj)])])]),e.isStarted?((0,n.uX)(),(0,n.Wv)(d,{key:0,disabled:e.disableJoin,style:{width:"100%"},type:"outlined",onClick:e.joinGiveaway},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.giveaway.is_participant?"Participating":"Take part"),1)])),_:1},8,["disabled","onClick"])):(0,n.Q3)("",!0)])],64)}var cj=(0,n.pM)({mixins:[OF]});a(80770);const pj=(0,C.A)(cj,[["render",dj],["__scopeId","data-v-6dc15af3"]]);var uj=pj,fj=(0,n.pM)({components:{FinishedGiveaway:$W,ActiveGiveaway:uj},mixins:[NF]});a(53978);const gj=(0,C.A)(fj,[["render",BW],["__scopeId","data-v-5e661fa8"]]);var mj=gj;const hj={class:"create-modal"},vj={action:""},xj={class:"name-input"},bj=["value"],wj={class:"date-input"},yj={style:{width:"50%",display:"flex","flex-direction":"column",gap:"8px"}},kj={class:"calendar"},Cj={class:"calendar-icon"},Mj=["value"],Lj={style:{width:"50%",display:"flex","flex-direction":"column",gap:"8px"}},Aj={class:"calendar"},Ij=["value"],Tj={class:"name-input"},_j={class:"prize-side"},Ej={key:0,class:"empty"},Sj={key:1,class:"inventory"},Fj=["onClick"],Wj=["src","alt"];function jj(e,t,a,i,o,r){const s=(0,n.g2)("CalendarIcon"),d=(0,n.g2)("VueDatePicker"),c=(0,n.g2)("Select"),p=(0,n.g2)("EmptySearch"),u=(0,n.g2)("Button");return(0,n.uX)(),(0,n.CE)("div",hj,[(0,n.Lk)("form",vj,[(0,n.Lk)("div",xj,[t[3]||(t[3]=(0,n.Lk)("label",{for:"name"},"Name",-1)),(0,n.Lk)("input",{type:"text",name:"name",placeholder:"Enter name",value:e.name,disabled:""},null,8,bj)]),(0,n.Lk)("div",wj,[(0,n.Lk)("div",yj,[t[4]||(t[4]=(0,n.Lk)("label",{for:"calendar"},"Date of start",-1)),(0,n.bF)(d,{modelValue:e.date,"onUpdate:modelValue":t[0]||(t[0]=t=>e.date=t),"enable-time-picker":!1,"auto-apply":"","min-date":e.dateNow,dark:""},{trigger:(0,n.k6)((()=>[(0,n.Lk)("div",kj,[(0,n.Lk)("div",Cj,[(0,n.bF)(s)]),(0,n.Lk)("input",{name:"calendar",type:"text",value:e.formattedDate,readonly:"",placeholder:"Date"},null,8,Mj)])])),_:1},8,["modelValue","min-date"])]),(0,n.Lk)("div",Lj,[t[5]||(t[5]=(0,n.Lk)("label",{for:"time"},"Time of start",-1)),(0,n.bF)(d,{modelValue:e.time,"onUpdate:modelValue":t[1]||(t[1]=t=>e.time=t),"time-picker":"","select-text":"Apply","min-time":e.startTime,dark:""},{trigger:(0,n.k6)((()=>[(0,n.Lk)("div",Aj,[(0,n.Lk)("input",{name:"time",type:"text",value:e.formattedTime,readonly:"",placeholder:"00 : 00 : 00"},null,8,Ij)])])),_:1},8,["modelValue","min-time"])])]),(0,n.Lk)("div",Tj,[t[6]||(t[6]=(0,n.Lk)("label",null,"Duration",-1)),(0,n.bF)(c,{options:e.durations,modelValue:e.selectedDuration,"onUpdate:modelValue":t[2]||(t[2]=t=>e.selectedDuration=t)},null,8,["options","modelValue"])]),(0,n.Lk)("div",_j,[t[7]||(t[7]=(0,n.Lk)("label",null,"Prize",-1)),e.inventory&&e.inventory.length?((0,n.uX)(),(0,n.CE)("div",Sj,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.inventory,(t=>((0,n.uX)(),(0,n.CE)("div",{key:t.id,class:(0,l.C4)(["item",{selected:e.selectedItem?.id===t.item.id}]),onClick:a=>e.selectItem(t.item)},[(0,n.Lk)("img",{src:t.item.thumbnail,alt:t.item.name},null,8,Wj),(0,n.Lk)("span",null,(0,l.v_)(t.item.name),1)],10,Fj)))),128))])):((0,n.uX)(),(0,n.CE)("div",Ej,[(0,n.Lk)("span",null,[(0,n.bF)(p)]),(0,n.Lk)("div",null,[(0,n.Lk)("p",null,(0,l.v_)(e.$t("global.empty_state")),1)])]))]),(0,n.bF)(u,{style:{height:"60px",width:"200px"},disabled:e.disableCreate,onClick:e.createGiveaway},{default:(0,n.k6)((()=>[(0,n.eW)((0,l.v_)(e.$t("buttons.create")),1)])),_:1},8,["disabled","onClick"])])])}var Xj=(0,n.pM)({mixins:[kW]});a(93906);const Rj=(0,C.A)(Xj,[["render",jj],["__scopeId","data-v-8a7c4c16"]]);var zj=Rj,Uj=(0,n.pM)({name:"GiveawaysMobile",components:{CreateModal:zj,GiveawaysRooms:mj},mixins:[AW]});a(55621);const Dj=(0,C.A)(Uj,[["render",XW],["__scopeId","data-v-15d603fb"]]);var Bj=Dj,Vj=(0,n.pM)({name:"GiveawaysView",components:{GiveawayDesktop:_W,GiveawayMobile:Bj},setup(){const{isMobile:e,isTablet:t}=Rd();return{isMobile:e,isTablet:t}}});const Pj=(0,C.A)(Vj,[["render",tF]]);var Oj=Pj;const Gj={class:"history"};function Qj(e,t,a,i,o,r){const s=(0,n.g2)("GameHistoryMobile"),l=(0,n.g2)("GameHistoryDesktop");return(0,n.uX)(),(0,n.CE)("div",Gj,[e.isMobile?((0,n.uX)(),(0,n.Wv)(s,{key:0})):((0,n.uX)(),(0,n.Wv)(l,{key:1}))])}const Hj={class:"buttons-wrapper"},Nj={key:0,class:"games-tabs"},Kj={key:0,class:"casino-game-rooms",ref:"room-list"},qj=["src"];function Zj(e,t,i,o,r,s){const l=(0,n.g2)("Tabs"),d=(0,n.g2)("DotsLoader"),c=(0,n.g2)("Modal");return(0,n.uX)(),(0,n.CE)("section",null,[t[2]||(t[2]=(0,n.Lk)("div",{class:"top"},[(0,n.Lk)("h2",null,"Game History")],-1)),(0,n.Lk)("div",Hj,[e.games.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",Nj,[(0,n.bF)(l,{tabs:e.tabs},null,8,["tabs"])]))]),e.rooms.data.size?((0,n.uX)(),(0,n.CE)("div",Kj,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.rooms.data.values(),(t=>((0,n.uX)(),(0,n.Wv)((0,n.$y)(e.roomComponent),{key:t.id,room:t,onView:a=>e.setRoomToView(t)},null,40,["room","onView"])))),128))],512)):(0,n.Q3)("",!0),e.rooms.loading?((0,n.uX)(),(0,n.Wv)(d,{key:1})):(0,n.Q3)("",!0),e.roomToView?((0,n.uX)(),(0,n.Wv)(c,{key:2,onClose:t[1]||(t[1]=t=>e.setRoomToView(null)),img:"View-modal-background.png",name:e.$t("modals.view.title",{round:e.roomToView.id})},{"background-image":(0,n.k6)((()=>[(0,n.Lk)("img",{class:"view-modal-background",src:a(60694),alt:"view background"},null,8,qj)])),default:(0,n.k6)((()=>[((0,n.uX)(),(0,n.Wv)((0,n.$y)(e.activeModal),{onClose:t[0]||(t[0]=t=>e.setRoomToView(null)),room:e.roomToView},null,40,["room"]))])),_:1},8,["name"])):(0,n.Q3)("",!0)])}var Jj=(0,n.pM)({components:{Tabs:_o,Button:Ea,Modal:vn,DotsLoader:Fi,CoinFlipViewModal:Ky,WheelOfFortuneViewModal:$A,CasinoGameRoomCoinFlip:hw,CasinoGameRoomWheelOfFortune:VL},data(){return{tabs:[{active:!0,label:"Coin Flip",value:qt.CoinFlip},{active:!1,label:"Wheel of Fortune",value:qt.WheelOfFortune}],showCreateModal:!1,showJoinRoomModal:!1,items:[]}},watch:{async activeTab({value:e},t){this.$store.dispatch(`${this.casinoGameNamespace}/getCasinoGame`),this.$router.push({query:{tab:e}}),t?.value&&this.$privateSocket.emit("leaveCasinoGame",{game_slug:Zt.PS99,casino_game_slug:t.value}),e&&(this.$privateSocket.emit("joinCasinoGame",{game_slug:Zt.PS99,casino_game_slug:e}),this.getRooms({game_slug:Zt.PS99,forPage:"history"}))}},methods:{async setRoomToView(e){await this.$store.dispatch(`${this.casinoGameNamespace}/setRoomToView`,e)},async setRoomToJoin(e){await this.$store.dispatch(`${this.casinoGameNamespace}/setRoomToJoin`,e)},async getRooms({game_slug:e,forPage:t}){await this.$store.dispatch(`${this.casinoGameNamespace}/getRooms`,{game_slug:e,forPage:t})},async handleCreate(){this.showCreateModal=!0},setTabs(){this.tabs=this.tabs.map((e=>({...e,active:e.value===this.$route.query.tab})))}},computed:{games(){return this.$store.getters["games/data"]},activeTab(){return this.tabs.find((e=>e.active))||this.tabs[0]},roomComponent(){const e=this.activeTab;return e.value===qt.CoinFlip?"CasinoGameRoomCoinFlip":"CasinoGameRoomWheelOfFortune"},casinoGameNamespace(){return"coin-flip"===this.activeTab.value?"coinFlip":"wheelOfFortune"},rooms(){return this.$store.getters[`${this.casinoGameNamespace}/rooms`]},roomToView(){return this.$store.getters[`${this.casinoGameNamespace}/roomToView`]}},async mounted(){this.$route.query.tab&&this.setTabs(),this.getRooms({game_slug:Zt.PS99,forPage:"history"})}}),Yj=(0,n.pM)({name:"GameHistoryDesktop",mixins:[Jj],components:{CasinoGameRoomCoinFlip:hw,CasinoGameRoomWheelOfFortune:VL,CoinFlipViewModal:Ky,WheelOfFortuneViewModal:$A},computed:{activeModal(){return this.activeTab.value===qt.WheelOfFortune?"WheelOfFortuneViewModal":"CoinFlipViewModal"}}});a(2557);const $j=(0,C.A)(Yj,[["render",Zj],["__scopeId","data-v-4be89244"]]);var eX=$j;const tX={class:"buttons-wrapper"},aX={key:0,class:"games-tabs"},iX={key:0,class:"casino-game-rooms",ref:"room-list"},nX=["src"];function oX(e,t,i,o,r,s){const l=(0,n.g2)("Tabs"),d=(0,n.g2)("DotsLoader"),c=(0,n.g2)("Modal");return(0,n.uX)(),(0,n.CE)("section",null,[t[2]||(t[2]=(0,n.Lk)("div",{class:"top"},[(0,n.Lk)("h2",null,"Game History")],-1)),(0,n.Lk)("div",tX,[e.games.loading?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.CE)("div",aX,[(0,n.bF)(l,{tabs:e.tabs},null,8,["tabs"])]))]),e.rooms.data.size?((0,n.uX)(),(0,n.CE)("div",iX,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.rooms.data.values(),(t=>((0,n.uX)(),(0,n.Wv)((0,n.$y)(e.roomComponent),{key:t.id,room:t,onView:a=>e.setRoomToView(t)},null,40,["room","onView"])))),128))],512)):(0,n.Q3)("",!0),e.rooms.loading?((0,n.uX)(),(0,n.Wv)(d,{key:1})):(0,n.Q3)("",!0),e.roomToView?((0,n.uX)(),(0,n.Wv)(c,{key:2,onClose:t[1]||(t[1]=t=>e.setRoomToView(null)),img:"View-modal-background.png",name:e.$t("modals.view.title",{round:e.roomToView.id})},{"background-image":(0,n.k6)((()=>[(0,n.Lk)("img",{class:"view-modal-background",src:a(60694),alt:"view background"},null,8,nX)])),default:(0,n.k6)((()=>[((0,n.uX)(),(0,n.Wv)((0,n.$y)(e.activeModal),{onClose:t[0]||(t[0]=t=>e.setRoomToView(null)),room:e.roomToView},null,40,["room"]))])),_:1},8,["name"])):(0,n.Q3)("",!0)])}var rX=(0,n.pM)({name:"GameHistoryMobile",mixins:[Jj],components:{CasinoGameRoomCoinFlip:oC,CasinoGameRoomWheelOfFortune:OI,CoinFlipViewModal:mM,WheelOfFortuneViewModal:HT},computed:{activeModal(){return this.activeTab.value===qt.WheelOfFortune?"WheelOfFortuneViewModal":"CoinFlipViewModal"}}});a(5586);const sX=(0,C.A)(rX,[["render",oX],["__scopeId","data-v-6d6c6ca0"]]);var lX=sX,dX=(0,n.pM)({name:"GameHistoryView",components:{GameHistoryDesktop:eX,GameHistoryMobile:lX},setup(){const{isMobile:e,isTablet:t}=Rd();return{isMobile:e,isTablet:t}}});const cX=(0,C.A)(dX,[["render",Qj]]);var pX=cX,uX=(0,n.pM)({name:"CallBack",async mounted(){const e=await Ba.getAccessToken(this.$route.query);e.data.access_token&&(Object.keys(e.data).forEach((t=>{localStorage.setItem(t,e.data[t])})),this.$store.dispatch("auth/setUser",JSON.parse(e.data.user)),window.close())}});const fX=uX;var gX=fX;const mX=[{path:"/",name:"home",component:$p},{path:"/inventory",name:"inventory",meta:{requiresAuth:!0},component:Lg},{path:"/inventory/withdraw",name:"withdraw",component:Th,meta:{requiresAuth:!0}},{path:"/referral-program",name:"referral-program",component:ax,meta:{requiresAuth:!0}},{path:"/leaderboard",name:"leaderboard",component:Jx,meta:{requiresAuth:!0}},{path:"/settings",name:"settings",component:jS,meta:{requiresAuth:!0}},{path:"/support",name:"support",component:$S},{name:"coin-flip",path:"/coin-flip/games/:gameSlug/rounds",component:MM,meta:{requiresAuth:!0}},{name:"referral",path:"/referral/:referralCode",component:OM},{name:"wheel-of-fortune",path:"/wheel-of-fortune/games/:gameSlug/rounds",component:ZM,children:[{path:"",name:"wheel-of-fortune.rounds",component:YT,meta:{requiresAuth:!0}},{path:":roomId",name:"round",component:TE,meta:{requiresAuth:!0}}],meta:{requiresAuth:!0}},{name:"giveaways",path:"/giveaways",component:Oj,meta:{requiresAuth:!0}},{name:"game-history",path:"/game-history",component:pX,meta:{requiresAuth:!0}},{path:"/callback",name:"callback",component:gX}],hX=(0,y.aE)({history:(0,y.LA)(),routes:mX});hX.beforeEach(((e,t,a)=>{if(Li.getters["auth/promiseFetchingProfile"])Li.getters["auth/promiseFetchingProfile"].finally((()=>{if(e.meta.requiresAuth&&!localStorage.getItem("access_token"))return Li.commit("auth/SHOW_LOGIN_MODAL",!0),Li.commit("auth/SET_REDIRECT_AFTER_LOGIN",e.name),a(!1)}));else if(e.meta.requiresAuth&&!localStorage.getItem("access_token"))return Li.commit("auth/SHOW_LOGIN_MODAL",!0),Li.commit("auth/SET_REDIRECT_AFTER_LOGIN",e),a(!1);a()}));var vX=hX,xX=a(71714);const bX=(0,xX.io)("https://bloxup.gg:5300/private",{auth:e=>{e({token:Li.state.auth.tokenData.access_token})}}),wX=(0,xX.io)("https://bloxup.gg:5300/public",{autoConnect:!0});var yX={install:e=>{e.config.globalProperties.$privateSocket=bX,e.config.globalProperties.$publicSocket=wX}};a(82449);function kX(){const e=(e,t=1)=>{if(e<1e3)return e.toString();const a=["K","M","B","T"];let i=-1;while(e>=1e3&&i{const{handler:i,exclude:n}=t.value;"function"!==typeof i||e.contains(a.target)||n?.contains(a.target)||i(a)},document.addEventListener("click",e.__clickOutsideHandler__)},unmounted(e){document.removeEventListener("click",e.__clickOutsideHandler__),delete e.__clickOutsideHandler__}};var IX=a(14478);const TX=e=>{let t=!1;const a="tawk_68b593468e5e8d7ad6a012c1",{isMobile:i,isTablet:n}=Rd(),o=()=>{t||(e.use(IX.A,{propertyId:"68b593468e5e8d7ad6a012c1",widgetId:"1j4526sa3",embedId:a}),t=!0,console.log(`Tawk Messenger has been mounted to ${a}`))},r=()=>{const e=document.querySelector('iframe[title="chat widget"]');if(e){const t=e.contentDocument||e.contentWindow?.document;if(!t)return;const a=document.getElementById("tawk_68b6e6e233aba2192204c36f");a&&a.style.setProperty("flex-grow","1","important");const o=document.querySelector(".widget-visible");if(o&&(o.style.setProperty("min-height","100%","important"),o.style.setProperty("min-width","100%","important")),i.value||n.value){const e=t.querySelector(".tawk-max-container");e&&e.style.setProperty("height","calc(100% - 83px -16px)","important")}const r=t.querySelector(".tawk-chat-panel");r&&r.style.setProperty("background-color","rgb(33, 33, 33)","important");const s=t.querySelector(".tawk-overlay");s&&s.style.setProperty("border","none","important");const l=t.querySelectorAll(".tawk-button-small");l.forEach((e=>{e.style.setProperty("background-color","#2d2f33","important"),e.style.setProperty("color","#ffffff","important")})),console.log("Tawk widget styles applied.")}};setTimeout((()=>{o()}),1500);const s=setInterval((()=>{const e=document.querySelector('iframe[title="chat widget"]');e&&(r(),clearInterval(s))}),500)},_X=(0,i.Ef)(Vd);_X.use(Ra),_X.use(Li),_X.use(vX),_X.use(yX),_X.directive("price-format",CX),_X.directive("percent",LX),_X.directive("click-outside",AX),_X.mount("#app"),TX(_X)},75524:function(e,t,a){"use strict";e.exports=a.p+"img/Modal-background.45f27e9e.png"},75542:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".deposit-game[data-v-73038e86]{display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;gap:19px;box-sizing:border-box;width:240px;height:168px;border-radius:16px;flex-grow:1}.deposit-game.mm2[data-v-73038e86]{border:1px solid rgba(111,78,39,.6);background:linear-gradient(90deg,rgba(95,63,25,.6),rgba(46,41,33,.2))}.deposit-game.adopt-me[data-v-73038e86]{background:linear-gradient(90deg,rgba(55,22,113,.6),rgba(38,33,50,.2));border:1px solid rgba(70,33,133,.6)}.deposit-game.da-hood[data-v-73038e86]{background:linear-gradient(90deg,rgba(68,39,34,.6),rgba(36,34,41,.2));border:1px solid rgba(103,49,34,.6)}.deposit-game.ps99[data-v-73038e86]{border:1px solid rgba(50,120,74,.6);background:linear-gradient(90deg,rgba(63,95,25,.6),rgba(46,41,33,.2))}.deposit-game span[data-v-73038e86]{font-family:Montserrat;font-weight:700;font-size:24px;line-height:32px;text-align:center;color:#fff}.deposit-game img[data-v-73038e86]{height:68px}.content[data-v-73038e86]{gap:24px}.content[data-v-73038e86],.content .bots[data-v-73038e86]{display:flex;flex-direction:column}.content .bots[data-v-73038e86]{gap:16px}",""]),t["default"]=s},75572:function(e,t,a){var i=a(93498);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("7ddf158a",i,!0,{sourceMap:!1,shadowMode:!1})},75862:function(e,t,a){var i=a(83853);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("4e643f94",i,!0,{sourceMap:!1,shadowMode:!1})},75930:function(e,t,a){"use strict";e.exports=a.p+"fonts/Montserrat-ExtraLightItalic.b3cff1eb.woff"},75940:function(e,t,a){var i=a(64006);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("8f69514e",i,!0,{sourceMap:!1,shadowMode:!1})},75960:function(e,t,a){var i=a(50733);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("f69f556a",i,!0,{sourceMap:!1,shadowMode:!1})},76323:function(e,t,a){var i=a(13073);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("5f3f5668",i,!0,{sourceMap:!1,shadowMode:!1})},76819:function(e,t,a){var i=a(78205);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("761ae6c0",i,!0,{sourceMap:!1,shadowMode:!1})},77141:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".search-input[data-v-51d52122],.search-input .search-field[data-v-51d52122]{position:relative;display:flex;flex-direction:column;gap:8px}.search-input .search-field[data-v-51d52122]{max-width:100%;padding:0 0 0 48px;border:1px solid #ccc;border-radius:8px;font-size:14px;width:100%;height:48px;background:hsla(0,0%,100%,.039);border:1px solid hsla(0,0%,100%,.122);font-family:Montserrat;box-sizing:border-box;caret-color:#fff;color:#fff}.search-input .search-field[data-v-51d52122]:focus-visible{outline:unset}.search-input .search-field[data-v-51d52122]::-moz-placeholder{font-weight:400;font-size:14px;line-height:20px;display:flex;align-items:center;color:hsla(0,0%,100%,.6)}.search-input .search-field[data-v-51d52122]::placeholder{font-weight:400;font-size:14px;line-height:20px;display:flex;align-items:center;color:hsla(0,0%,100%,.6)}.search-input .search-icon[data-v-51d52122]{position:absolute;left:16px;top:50%;transform:translateY(-50%);display:flex;pointer-events:none;font-size:16px;color:#888}.search-input.mobile[data-v-51d52122]{height:36px}.search-input.mobile .search-field[data-v-51d52122]{padding:0 0 0 36px}.search-input.mobile .search-icon[data-v-51d52122]{left:10px}",""]),t["default"]=s},77156:function(e,t,a){var i=a(68806);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("f9db074a",i,!0,{sourceMap:!1,shadowMode:!1})},77590:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".ping circle[data-v-20d1dccb]{animation:ping-20d1dccb 1s ease-out infinite;transform-origin:center}@keyframes ping-20d1dccb{0%{transform:scale(1);opacity:1}50%{transform:scale(2);opacity:0}to{transform:scale(1);opacity:1}}",""]),t["default"]=s},77671:function(e,t,a){"use strict";e.exports=a.p+"img/Game-image-2.553bca48.png"},77683:function(e,t,a){var i=a(57660);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("59d85cb4",i,!0,{sourceMap:!1,shadowMode:!1})},78205:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".casino-game-room[data-v-2ebacd9f]{display:flex;flex-wrap:wrap;background:var(--black-gradient);box-shadow:var(--black-shadow);border-radius:24px;padding:8px;box-sizing:border-box;justify-content:space-between;gap:8px}.casino-game-room .players[data-v-2ebacd9f]{display:flex;align-items:center;padding:10px 24px;gap:2px;background:hsla(0,0%,100%,.04);border-radius:16px;justify-content:space-between;flex-grow:1}.casino-game-room .players .vs img[data-v-2ebacd9f]{width:32px;height:32px}.casino-game-room .game-info[data-v-2ebacd9f]{display:flex;justify-content:space-between;align-items:center;gap:2px;width:100%}.casino-game-room .game-info .items-with-count[data-v-2ebacd9f]{min-width:140px;display:flex;align-items:center;justify-content:space-between;gap:8px}.casino-game-room .game-info .items-with-count .room-participant-items[data-v-2ebacd9f]{display:flex;align-items:center;width:80px;height:40px;position:relative}.casino-game-room .game-info .items-with-count .counter[data-v-2ebacd9f]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:14px;line-height:20px;text-align:center;color:#fff}.casino-game-room .game-info .total-amount[data-v-2ebacd9f]{padding:12px 24px;border-radius:16px;font-family:Druk Text Wide Cyr;font-size:14px;line-height:20px}.casino-game-room .game-info .amount[data-v-2ebacd9f],.casino-game-room .game-info .total-amount[data-v-2ebacd9f]{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;background:hsla(0,0%,100%,.04);font-weight:900;text-align:center;color:#fff;width:140px;box-sizing:border-box}.casino-game-room .game-info .amount[data-v-2ebacd9f]{padding:4px 16px;height:40px;font-family:Montserrat;border-radius:12px;font-family:Druk Text Wide Cyr;font-size:12px;line-height:16px}.casino-game-room .game-info .amount .amount-range[data-v-2ebacd9f]{display:flex;gap:3px;font-family:Montserrat;font-weight:500;letter-spacing:-.4px;color:hsla(0,0%,100%,.6)}.casino-game-room .actions[data-v-2ebacd9f]{display:flex;flex-direction:row;gap:4px;flex:1}.casino-game-room .actions button[data-v-2ebacd9f]{width:100%}",""]),t["default"]=s},78984:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".users-modal[data-v-c1a0812a]{width:100%;background-color:transparent;max-height:200px;overflow:auto;display:flex;flex-direction:column;gap:8px}.user-div[data-v-c1a0812a]{display:flex;justify-content:start;align-items:center;gap:8px;cursor:pointer}.user-div img[data-v-c1a0812a]{width:28px;aspect-ratio:1;border-radius:50%}.user-div p[data-v-c1a0812a]{font-family:Montserrat;font-weight:500;font-size:14px;line-height:20px;letter-spacing:-.4px;color:#fff}.active[data-v-c1a0812a]{background-color:#2d3138;border-radius:12px}",""]),t["default"]=s},79043:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".coin-flip-container[data-v-3eecbe52]{display:flex;flex-direction:column;align-items:center;justify-content:center}.coin-scene[data-v-3eecbe52]{width:40px;height:40px;perspective:1200px;cursor:pointer}.coin[data-v-3eecbe52]{transform:rotateY(0deg);width:100%;height:100%;position:relative;transform-style:preserve-3d;transform-origin:center center}.coin.animate[data-v-3eecbe52]{transition:transform 3s cubic-bezier(.5,1.01,.7,.36)}.coin-face[data-v-3eecbe52]{position:absolute;left:0;top:0;width:100%;height:100%;backface-visibility:hidden;-o-object-fit:cover;object-fit:cover;border-radius:50%}.coin-face.back[data-v-3eecbe52]{transform:rotateY(180deg)}.flip-button[data-v-3eecbe52]{margin-top:16px;padding:8px 16px;background-color:#2563eb;color:#fff;border:none;border-radius:6px;font-size:16px;cursor:pointer;transition:background-color .3s ease}.flip-button[data-v-3eecbe52]:hover{background-color:#1e40af}",""]),t["default"]=s},80028:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".statistics[data-v-17b94101]{margin-top:41px;align-items:flex-start;gap:24px}.statistics[data-v-17b94101],.statistics .statistics-box[data-v-17b94101]{width:100%;display:flex;flex-direction:column}.statistics .statistics-box[data-v-17b94101]{align-items:center;justify-content:center;box-sizing:border-box;padding:24px 8px;gap:4px;height:96px;background:linear-gradient(135deg,#2d2f33,#282a2e 51.37%,#212429 99.14%);box-shadow:0 1px 1px rgba(9,13,20,.4),-4px -4px 8px rgba(224,224,255,.04),8px 8px 24px rgba(9,13,20,.4);border-radius:24px}.statistics .statistics-box h2[data-v-17b94101]{font-family:Druk Text Wide Cyr;font-style:normal;font-weight:900;font-size:20px;line-height:24px;color:#fff}.statistics .statistics-box p[data-v-17b94101]{font-family:Montserrat;font-style:normal;font-weight:500;font-size:14px;line-height:20px;color:hsla(0,0%,100%,.6)}",""]),t["default"]=s},80215:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".transfer-container[data-v-3d9b9c32],.transfer-container .users-search[data-v-3d9b9c32]{display:flex;flex-direction:column;gap:40px}.transfer-container .inventory-items[data-v-3d9b9c32]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:8px 8px 8px 16px;gap:4px;height:76px;background:hsla(0,0%,100%,.04);border-radius:16px}.transfer-container .inventory-items img[data-v-3d9b9c32]{width:60px;aspect-ratio:1;border-radius:50%}.transfer-container .inventory-items p[data-v-3d9b9c32]{font-family:Montserrat;font-weight:500;font-size:14px;line-height:20px;letter-spacing:-.4px;color:hsla(0,0%,100%,.8)}.transfer-container .inventory-items .item-name-price[data-v-3d9b9c32]{display:flex;gap:8px;justify-content:center;align-items:center}.transfer-container .inventory-items .item-name-price h2[data-v-3d9b9c32],.transfer-container .inventory-items .item-name-price span[data-v-3d9b9c32]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:14px;line-height:20px;color:#fff}.item-image[data-v-3d9b9c32]{position:relative;flex-direction:column}.item-image[data-v-3d9b9c32],.item-image .item-count[data-v-3d9b9c32]{display:flex;justify-content:center;align-items:center}.item-image .item-count[data-v-3d9b9c32]{position:absolute;min-width:20px;height:20px;border-radius:10px;background:var(--text-gradient-165);right:-8px;top:-8px;color:#fff;font-size:12px;font-weight:700;letter-spacing:1px;padding:4px}.buttons[data-v-3d9b9c32]{display:flex;justify-content:center;align-items:center;gap:12px;height:32px}.buttons .left-arrow[data-v-3d9b9c32]{transform:rotate(-45deg)}.action[data-v-3d9b9c32],.modal-overlay .modal .wrapper[data-v-3d9b9c32]{width:100%}.action[data-v-3d9b9c32]{display:flex;justify-content:center}",""]),t["default"]=s},80336:function(e,t,a){var i=a(14254);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("62d44c65",i,!0,{sourceMap:!1,shadowMode:!1})},80475:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".inventory-item[data-v-37a42216]{display:flex;flex-direction:column;box-sizing:border-box;position:relative;padding:16px;gap:16px;width:208px;height:236px;background:var(--black-gradient);box-shadow:var(--black-shadow);border-radius:24px;color:#fff}.inventory-item .content[data-v-37a42216]{display:flex;flex-direction:column;align-items:center;gap:12px}.inventory-item .content img[data-v-37a42216]{width:100px;height:100px;border-radius:50%;-o-object-fit:contain;object-fit:contain}.inventory-item .content .content-bottom[data-v-37a42216]{display:flex;flex-direction:column;align-items:center;gap:4px}.inventory-item .content .content-bottom h4[data-v-37a42216]{font-family:Montserrat;font-weight:600;font-size:14px;line-height:20px;text-align:center;white-space:nowrap;max-width:170px;overflow:hidden;text-overflow:ellipsis}.inventory-item .content .content-bottom span[data-v-37a42216]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:14px;line-height:20px;text-align:center}.inventory-item .buttons[data-v-37a42216]{display:flex;justify-content:center;gap:8px;height:32px}.inventory-item .buttons span[data-v-37a42216]{color:#fff}",""]),t["default"]=s},80767:function(e,t,a){"use strict";e.exports=a.p+"img/slide-1.65d8a4d6.png"},80770:function(e,t,a){var i=a(54516);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("75e61980",i,!0,{sourceMap:!1,shadowMode:!1})},81417:function(e,t,a){var i=a(83763);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("0cc77d62",i,!0,{sourceMap:!1,shadowMode:!1})},81497:function(e,t,a){var i=a(15679);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("9daffeaa",i,!0,{sourceMap:!1,shadowMode:!1})},81500:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".games[data-v-6456aa1e]{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}",""]),t["default"]=s},81530:function(e,t,a){var i=a(95992);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("289eb352",i,!0,{sourceMap:!1,shadowMode:!1})},81583:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,"section[data-v-4be89244]{display:flex;flex-direction:column;gap:24px;color:#fff}section .top[data-v-4be89244]{height:24px}section .top h2[data-v-4be89244]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:20px;line-height:24px;letter-spacing:-.02em;display:flex;align-items:center;gap:8px}section .buttons-wrapper[data-v-4be89244]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:24px}section .buttons-wrapper .buttons[data-v-4be89244]{display:flex;justify-content:end;align-items:center;gap:16px;height:44px}.casino-game-rooms[data-v-4be89244]{display:flex;flex-direction:column;flex-wrap:wrap;gap:8px}",""]),t["default"]=s},81813:function(e,t,a){"use strict";e.exports=a.p+"fonts/Montserrat-ExtraBold.bfe32930.woff"},81848:function(e,t,a){var i=a(58474);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("2f051e35",i,!0,{sourceMap:!1,shadowMode:!1})},81991:function(e,t,a){var i=a(35029);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("c661e65c",i,!0,{sourceMap:!1,shadowMode:!1})},82449:function(e,t,a){var i=a(55545);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("7e9fae99",i,!0,{sourceMap:!1,shadowMode:!1})},82692:function(e,t,a){var i=a(36842);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("6f96b02c",i,!0,{sourceMap:!1,shadowMode:!1})},82922:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".live-winners[data-v-47ec7a78]{display:flex;justify-content:space-between;gap:7px;flex-wrap:wrap}",""]),t["default"]=s},82957:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAS+SURBVHgBfVRbaBxVGP7O7Fz2ls3mnljaTdMmtqm2qS3SSKFVxKaIKOKTl8Y3oYqlhYIiSvtUKEgoFkQQQh604IMWpFgpYvpUIVKTGAlJmmTXZJO9ZHY3M7Ozcz/+W22ppXpgODPn5//m+///+w7DIxbn5eTl4f3DmtB41HdrAzeni6mh44NYm1/IyBKbnJlTr16bVscelcsePlj/9fKw1PrEyCdvvpbU5ST6myyUuAzDDBBmLsJKCFwMwxYS6R0x7fx7o/P/AhYe/PBdY0Rp7RtV1zPJsG6gIRygLSyjhWJ9HSJSHRE0JWNob4nh8EB7tweMnjveOvIgRujei174bcRQ506JkQ4s/vwtJidmcPLks5BjItT5ZcgbVciWh5rto5AvYfb3FTQ0MEiKeGhvQ5C8ter8eJ8h95zhWEv/qaath5H/cwrp766g7AtoaW2EJEkwPIbbWQtTd3T8dDuPX+Y0+PAoj2IGAcSTp95/oW/4fg8r+ZllKRxJZaZv4MsPPkShZCPV24F9vQ1QyzrWNmzoVRch10NSZlAQIBENEdsAK6qNiiPAhlQ5+NS+HvbFu3uH3URqdHa5DNFzsad/C5oUA4XFDHKZIvSKC4fKzOkeNIejTQYaQwwBBzbdAItVBotzCIqCa99cPC36LHhlZ7OGHe1JFBYWYMxkMLFqYLXkEY8QBKpBZAIUWUazxOFQcjwuokHkaLTqhftYtThU00EhVzwqRiU+MDWxiKhRg2m6mM4HWKqJeLp/J/ZvbwczS2COQdDEJmciRgxp2PBcH6WKjVpgIRA4yraLG+MT+9g7R9oDdV0H9zm6mhPY2t2Jgwd3YXvv4xBC1Kf8EszSOtyqiTNX5pAtmbgw1AmR+6hULNxZryFrEEuToyIoEAvVENIGQ1s8grMv7UFXqgsrZhgj38/io7cGIXktEDwDFgsQUUQ4PpDVffQkQ5BkEWF6JEnA80PPQWMyxA3DT+f1oPvQriZs6+ki3cWxuqJB3TSQVU1sjccgRyLwbBOvHmhHjPrY2Sj/rQ+qQAoriDAJO3bvxvETJ9OCarORQwf2GmuqRcEwlSmgKR6C7TiURNOToxCVCERJxjO7W3D22Da0JhQwmla9JZIiE0sJ9mYFnuNMCX8s5T5PPdZ5seoyuD6jH3Mc6Eng49efRO+WRoQIKKRE7+4bBg2sYEGogwkCBDFE3hYRpcfWVGxu5K7WneIPHnnxM4purBZNsg3Zh5h1t0nI5suYX61gLlvFrXkN6byBvq4oxdndkhnt1EIkqANuJZfeuX9wTKRDTqs6eev6G2Ks6UwQuMcY6Y77Ph5rFkkmDDZXkFLi0Mgxm+QciyRi1lxomgu95qNKjqmaxvm668S7/mPMI9Cb6R8u7OHW0rG6DbhjwbNyYLoGt7iBYrGMUkknqdRoYBZymyRkco/pBPWKLn01p43dB/wH1Jm8/vWNaLCEwDJR06vQCKCs6lBLBsoEpBsOMXJRNDwsax6yNQ7bDy7N5o3T/3nBZsZODKtr6+fy6+VUoUhAmgWLri1wMiI5wnU50qTDyc1QxfL909Pp4tj/3tj31qdD3W8XNPvlIMBAe0JMCQTIGc+YNp9csaTxhYgwNj6erjyc9xe6UV8GElhZoQAAAABJRU5ErkJggg=="},83067:function(e,t,a){"use strict";e.exports=a.p+"fonts/Montserrat-MediumItalic.b8bda9fa.woff"},83370:function(e,t,a){var i=a(34436);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("2a7ab840",i,!0,{sourceMap:!1,shadowMode:!1})},83763:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".transfer-container[data-v-61024d02]{display:flex;flex-direction:column;gap:20px}.transfer-container .inventory-items[data-v-61024d02]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:8px 8px 8px 16px;gap:4px;height:76px;background:hsla(0,0%,100%,.04);border-radius:16px}.transfer-container .inventory-items img[data-v-61024d02]{width:60px;aspect-ratio:1;border-radius:50%}.transfer-container .inventory-items p[data-v-61024d02]{font-family:Montserrat;font-weight:500;font-size:14px;line-height:20px;letter-spacing:-.4px;color:hsla(0,0%,100%,.8)}.transfer-container .inventory-items .item-name-price[data-v-61024d02]{display:flex;gap:8px;justify-content:center;align-items:center}.transfer-container .inventory-items .item-name-price h2[data-v-61024d02],.transfer-container .inventory-items .item-name-price span[data-v-61024d02]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:14px;line-height:20px;color:#fff}.transfer-container .users-search[data-v-61024d02]{display:flex;flex-direction:column;gap:20px}@media only screen and (max-width:451px){.item-name-price h2[data-v-61024d02]{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}.item-image[data-v-61024d02]{position:relative;flex-direction:column}.item-image[data-v-61024d02],.item-image .item-count[data-v-61024d02]{display:flex;justify-content:center;align-items:center}.item-image .item-count[data-v-61024d02]{position:absolute;min-width:20px;height:20px;border-radius:10px;background:var(--text-gradient-165);right:-8px;top:-8px;color:#fff;font-size:12px;font-weight:700;letter-spacing:1px;padding:4px}.buttons[data-v-61024d02]{display:flex;justify-content:center;align-items:center;gap:12px;height:32px}.buttons .left-arrow[data-v-61024d02]{transform:rotate(-45deg)}.action[data-v-61024d02],.modal-overlay .modal .wrapper[data-v-61024d02]{width:100%}.action[data-v-61024d02]{display:flex;justify-content:center}",""]),t["default"]=s},83803:function(e,t,a){"use strict";e.exports=a.p+"fonts/Montserrat-Bold.45c81e3a.woff"},83853:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".countdown-container[data-v-5bee7436]{width:48px;height:48px;background-color:transparent;display:flex;align-items:center;justify-content:center}.headline[data-v-5bee7436]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:20px;line-height:28px;letter-spacing:-.02em;fill:#fff}.countdown-svg[data-v-5bee7436]{width:100%;height:100%}",""]),t["default"]=s},84204:function(e,t,a){var i=a(49357);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("610cc353",i,!0,{sourceMap:!1,shadowMode:!1})},84639:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG0AAABtCAYAAACr+O9WAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABkXSURBVHgB7V0HlBvltb7/aEa972p7tb1uawwurCvYBOMSwCUGDOTBIwmhBkiBwAskD5JAICEkPCAhJ6YaQwjlEcdgIDgGgysu2N7i7d5etOrSSDOjmf/dX7ITyHmknGPZzno+zngkjdrOt9+93733nwVAhw4dOnTo0KFDhw4dOnTo0KFDhw4dOnTo0KFDhw4dOnTo0KFDhw4dOnTo0KFDx2gAObp93jEdpzomT55s/OSuuz987+4fNK6oqJgMOk4qPqOa5dXVhS233rZT+cWv1YGz6w6zx1645uqvPrjiktu3ecvUTbxN21g1uQ1OEgygg4HDjV63cM7ETV+57uDSYOK+1Ee7ytKvrtcK3UU+x3kL7av2HHrAXN+0JIIEqzY7uFIJrzu/ILozGtoJJxina1xmPzdlN56/9EvXXJVf/kxA4PtsjY2lW5tbQInGwWgx0/HDPSCtXA1HduzVSDhoaBF4mqIUzrQ6IImvrbDZ6C3ReNmHI10DcAJxWirt2lmzpmo+n1R/43V9NfsbL0xv3801K4qr4VADEErAZjSBaDZC0JUHyZZ2kFSFrEtEYHsqAUROwhibE5xI+/7+biKXFg/uCwzvgBOI04q05RMmONbXzd543aH2n4UDQ5aJI8mFwy6H6UA8waV6+8FhsYDCadCjyOBERU2SZdiYisN9kQBUYASdIBjBxZvAlFbgtWQU1pI0WTFrzpxOLf1IMBhU4QThdCFN+Ma8edPXCvbW4Q+21kQJgQlzF5w5qElC//56KBfMICBZ+1JJuHm4F25x5MPtgQF4Q4zCekmEBL7BYsECTpMJ8gw8+PD+/xIORB5Jbqw3LSyrmPnR0MB6OEHg4fSA0nTkSKccSvCFZ02nI5Vl0PrxPpOHE2i+2wsPDnfBZlmEoKaBwWiEZYMdEMcXCbi5cQthKNypynAjZwENSUtpFO4SeNiFxLl5Xiu32OrgBOK0IG1hVZX5znMW/JgqHBxo66DKR7tIlTuPbA/74ceBPkg63ViDzYeikX5wO73QXP8xGEjWraQ4DsyqCh9RBS7H8OgzGEDA+3EMkbtiEZhpsZM/BfxvH/0oFrlyHiZHu3tkVp6rv/mbh8mBw2Pb6vfSfJcPQqiUnw90wPuaQiecNReKCsvJSFsDWNCAuNB8aAYMfUdaoKenDcp9pZAMjEAHlaCE8PCSrwwejwZhnZQAH28Eu5Ym18+cA3DTLQ1jncIvV65cuRZyjNFMWsbWP79i9eO1R3pvbmtupdRmBZckwRfjfnCXVNIz675Aoj0doCWi4CksBROqKNDRDBpWA/m+cpD8vaCgY0xFQ2ATE7AVH7/cZIE3FAWmo+oq8CPy0Zh4xSh5IS/P/379QXdFUaERcozRTBr35fHjZzwQ1XbvTUuUoPlICgbAPAbXmHiYMnUuDDTtA6vLC15PHhI0DLHAINiZnTcYIZIIQ6y3HTQlBUaOB1FNg0yYdDm4y2SHA0ig3WoDsyxBAS+QbyjRg0o8icqmZ0COwcHohba+peVjf0VJQEqmIGEUgKJCrJEgTMfQF+xohKqxk8HhcIK/sxkS8RB4C1BtqKCRgU4IH2kCDm0/b8DX4d7CG7AMAOjV0vAWpq1pZivkIWE8Z8iEVVNpddFl//XIFMygOfcJo1VpmdC45ytf+eNE4C/a+PZmjYhJQi1muEeTIVm3EMZxRpD7OkHC/GTx5IMFXaEc8EOkpxX7VGk0IgQ0zH0UgyVRNeCpChqWBiNYXHfhmz9ocUN1cSmMpFLABwKku7IofX/L4RAeGosbM58UcoTRWqeR8XPmlK4OxZ/cvWc/VaIxAlg45yMZk4kAbWVjIdzZBGaqgddXDHxahUB3C8SwRhOQLBYCNTymocII7rkMdRSMSJwVlWfB0mCzKsEyKkAKi2wZ89wZiYQhOm2mtVOMvaklk72QQ4za4vo2k/OuisOt53QTDSSOQAGe/HcwT/0w4gcbNnx9Xh94TA6ID/WBv+swhk4JCTNkQqHK1IU6YYRlBIOPsROVxH0CNTwGbzezx1VKp5nMJIlk1ieSZFNg6JlYNMIayDntRY5qy/9s5UQ/H4vkmZGMfKMZbogOgbBgBbhQOyQ4BJGuZlCSMTQaAuHTaSrSNHCoIg7rMIIbRTI4JI4RmYYMR2DBPXYg4SzcXsPjj9vyoMjIw/t5XlifCNcGBgZkfEoH5DA8jkojMsfp9L5QNXbrhFgi32TgqcAqZSkOE8Q42GMBkJGsIDpHLS2BEXOZgEQZ0V7asFnMQmLmP5I95wpuEt7E9AbMyxtw343HVFRvOYbSnyfDcCgagJauTnKN0fY6PqUbckgYw6jqiMyYMcN67nDomquJ+dHBaIzvJxq1qCppT4jwkJKAfiQk79DHkI9RT8AcZ0ynkTCCmqGU0yiRNTWjqoyLQQKZZFjX33A0RLIDAv4j4M03UZV34LGXvR6Yju8xvrRUfbGzg7UlmRD+MvrJBUaN0m5dcMGqJy0F/vN6u5+IOxw8qSyjnBXNR80EeIwX4YLZPqiYUEfnL78GzDzB1pSGBGAoRAnJSN6wqtAEMxwsFKLyFMryGuayo3mNqYzdQlrBg3sJ+45Btwd+oRnQZQL0NTZw0WwUXQI5Vtq/PWmr6uryNi1eue3q+tbX/S1N1ljtmTQiJWmotQOiqJyupsPwHXMRxIJREug8AELTftBSMpjYi1UKEVWBCLDwiGFHUwmHW1pjuU0FA1Pe0fOvsl4k3hRxryCZd2PJEA0HwYwF+w4Mk+9ijWBcdN4WfOp/QI4N3qlM2j/8wR9bvvq2hw2eIdPmd+aKpUUUigqo3NUDKSkFnM0CBHuDIUwABdjBD3cZaEKWyPaDO8BpsYGI7Sw/GglGhsDUheUAZSSpaUxYKB2Uz7GlWJlQiYQxE4IWBdzYRH4pnYI2HNUomBOnuhz4OpUuuv7bF3JZ55gHOTR5p5zln5Cf77h5wfwl6XAk2iOKMch+x8+Em8noCf64/LLGki0ffDmcTHDaxInU39uHjjAMBE/or0ODsCEehhXYb/ensZhGAr6AI5fqSbW0NeiHuEpJnOfApGoZRWmakiUJiVO1bP5ioTCN550ZEfSaGWVa8GtEcT9Msl/oybxCwHxJ8qIJMlJcHMlbttz24Ru/fwWYaDUtZwt/TqrSbliypK5n2aruYgDrA0uXfmng1tv7ty2/LLrkUPeGB82F+3+5bNka9dbb0x+uWhP+YWn1Pew1Xy8uW71uzBmhwbc2jvejsmJ5XjpwsB48eBbfQ7NxbWQA2rDmSmKY26JKtJDnSUpOwbDRAGUomeGkCANo891pDXOZAhQ3wJxGsMWlMYXRbO5iUDEeEhY2cc+TrBGJ4Ha+yQY7LE58vkI8QORfqalvP0PUa2OBgMHlcoXxpbMhhzgZ7pEbN26c8IuyymfnHWq7vKe/BzaNre0bY/W6t+/apUUbW4B3OCiNhQvmCTW/e33LBzTZfsQ521d478s1U5bUJNLz+5EUz8w62tc3AOaRAYibjfDDQG+mL1gGHMlDO24iXPBxMTr/KYt7r2PKFAuXStO8hsNws8cHktUMT/YPQAX2GTOksVoMWAFNMgpiJ4UpzEyzMueQsBTuw1jvXYfPSaJz7PQWQ08oSH+uyqsOKdJWRzCyOpWIqjaXe7Lf77dCDnEylKadnUhUz/5oz+VDI4PUs3gpDU6c7Njx5y2QbO8iJpuNJnkBQj4vbdq+j8aGhkFxOWFAFgkfic9rlkXqDwzR9v31YJBl6MLQdkN4MKOscYQjHpTGiMbVbVGVPLTsTa+4bJd6Onsg2dUJw0hutc1KAgP9kMITX4bdkjwMjw4k2ZoRUtbuM6JYODSS7GM9+O8YzF2/Zd0S/MVo9RXCoWAA8jFuLhAMK/GpCVmWg6IYl9x5hbPxray5PLcnXGm7brz2udq+yKXN3Z0xa+VY276GJmJU0lxBWTXtxu67uagI1JQEJJLEUITjfOyg89id4HkTMXDYoSBpqMKxSntDA4SRtP1qkrrwBHmRLJHCvTJH1RaqfAxHPcSGwb43FxWXf2gxcvMMvJHIoSjYjXbVbRWpecoEQ3REgfFlPHnl3YNQQZjJAPCiqxzClxsZZfjYj7Df6FBleAzHNtOrx8E1g0PQiLL8gaal9omx69hnSZIciARCsbzCIiuWDQPwV8Eed/t/okjj1l59xddXBOWH3D0hV6uYUuIWl6Vr58e01JsPe8UA/GfDDghiq2nt0AD04wxLtHvgAosVdsdCMNNdAFoyDu9Fw/CUEoEnUgRsWBwPJoZhtWChDXxSSanprS1A7/tLQvrUyXpkoGfxArf3iqWi/HTUQOhUhfCrrqyFaVedTzt2NEHtuVXQsbsb9oXDIKPj/ESVsK1M1bEWm+Ew5sUxNic1Oj1kjdkCI81NRMTvVWvgI7+JB6b89UdkqVMM+ErKmMIYWQW49UEOcKLcI71v0cW/Ed58s6zb5DC0dXZyBjkNFpMZftbdDI+Eh6HkjDqoO38VvNXRAG9NOBOiNVNg894t8AzacgVzybpgP7yGRuP8SRbwp1KkJi6TEIZGGU3fPJOl+7cpccbnfTg6A3ogldx3hsu70J2WqwXeQDfs7CNGtwjpiAbtjx+G+Z0jMMnhok9OOxumSmn6mwMH1VXnL+Lm1jfTxUYrsQ8MQCQeIgXY0X83mXz4e2JkEVrb6NGP4ATBUJiU1OW1M+rM+7du7kD3eAgfD0AOkHPSqqqqzOvOW/rSJFFe1AAc19PSBMVON+zEEf4tvc3QbnfA2QtXZBq00Z42cE6cBoU4TZaH+iFSWArjZpwHyZJy2N3yCfjGz4LiWJC+PBhNTeIFrhC9nT8lwrjqsR6n1a7siQQ//JyvkVFdh8BtuIgz3fl8LAhtlEYsQ7wMf+4zJYdwSm0xwSZFJvGBfhKN+ElnZzf//n9/DwzBENcWCtA8k8AFNK3piWhi9rtq8vd/+wEOr7c0IUpXtjXUJ+PhoEypxprGHZAD5JS0a+fPn/HG0uWNfGf7WXv3H6ByLA5lTg/sDg3Dd1E51dPmw/gpdRDowCkx5o3S6gmgIZlDvR1gQmKt3kLg8X7k8L6MWZiz5FII+kOkyz9omFZW3ufVVLdnwiQIoIuclEye3292PtuTikc+7/tEJCn1Wipx/ziz6QOTx3v1JTHFjhWBsjOtGB4To5CPimZWcT3rV7Y2k4mChfRr8F5BXv7Y50Ij4tNSsnIY1P9XPZIo9hst5hJvUelUIy8o8UjwE2ATnBwgZ6TdNGfO3IemzNz5/sa3TIM9/ZTH7oGV8PD4UBf8ErviXocLfPmlEMfBYyEOJc3YJxzsbIEUToKdxVVgR7cWR2MSaa/PFLccDipT7Q0QHeiGCAXuLLPZJGF4cnb1WmVMZDF0dnFFHKhPK7vgHyT/9nS6E93mThfh1uwE2rQpES3OQ9VioUEasfbCdkb8XDRAG2X53A2a9ECXklq/N63cjy8V/977ymL8vXRaHo/B8oJkNMSK7JwU2Dlptbx923dePLu++YrNDWjLBYGaOR78Mg4ZeR5DYhtINhuMK68Bq92FavKBGByGJPbxHJ4CMNudEEF1sckyYbMtgwEnxtnGrhHdpIRhFE84NMeCpEQwbbvHYpsL2JayKAppsTtu+0l36//8k18z4y5neDwuLZr44n5V3laIOchrNFY3yXI9fLZTzwxb+p98XygoH/er4Z62myBHON6kMeVqPdfeoHU/86wmOfJJ0O1CBaSBx7roCBL3cKAPCvKLoGzOIlD8g0iYPzOr8hWUZoaPLDTGsQ3FC2YgR8cgrLhl/UEZj7PVvQrOx5KpJJnhcEpftVrJcFQ0xrBnWG22kMdMtPz9vr5/ZdzP3J4Gf11o+i8R9DnI6WjmuCttXv4Ex+vRnmBsyYV88OMPaQNnw/kVhRHspt/o78l0FoqcXqgYOymjLi92FngspuOY50KDXdnRPlvFy0Iiyc6zmElJoOpYW8nEWoOoNB5rqUNKQnNS2nm5xcnVaGSMDV9g8xX0Xt3dUg6jGMe7aie1s2tM71QXr22NS0oH74QCJGxDPAA3HyWs0lsEY2pqgZcUcJVU4fRYBn9nI4T62kHAZq+AIVDVsiurDfj7L2GbKcRWQrH+HxKH/T5sPcn4HBmWGU2GKWeNqfhJ/VulBk6hbWlZ2dB7JASjHMeVtHHY+bl7Yu1+V5jckN6/V+hBR/bNoSPwWzR0LuwsmNmTsCazmKxgxHyWGuyGkbaDWDgnwIRFLVWzw0cWWGTsuIeQoBRGLjMST5A8FbsSgHsNG7xWPH5YSknukgrFbBoy0ZVl2g5FVCw2xxEY5Thu4bH1+9/brrzy7pwOvx8tlqatCw+TJix+x2CX4z1JzJgIF4a9fOx02LALksDQqEoJEAzG7LQ407Q99ucEsj1ALbM2IxMPMdtgmmEKVLMqdKClLJo7NfLcfbOcTa0BmFFeQD64ZYv6qBg2bB+I+2IQG4FRiuOhNMMsX1mNtHHrnN0Dg3TYyNOnI0NERIJmWRxQhKpaaXWBlHGA+GS0/lF/H4Y45iaFDFkSW7LGllwzgiC7+okiYxwLixmi0hmyNNxwVIlOIbt8bcvuequprEzTPgrBExc/Rbv7+siapJbmIOaAUXxF0PGo02ifGA1ONdkWEU2pZCe92mqHI9grLLDYoQKL5jOx5orh7TacY3kSceDM5sz6CzmjIrbCKbsolB5bb4hvynIYUxkbUqqMNJqdJLPfMuHoc8KqZrC82Kz17m7i8rCM2C2nuAavs21fNPojgE91IUcZjltx3UHlP6ywuW5Pcwbi4wzgxpNcjbP8ErsNXG4P1GAuehNznIySMmCushotGRWxUEjpZ88vC44cI+bo2B+OGRPILmNDQ5m5fkw1CqodZclRwu3EkUksndbkRLyllWrPQ44X15xMHDfS/JKUzHM6U7UJ8YIdmMN+Fh2B+cWlYERHGBsJZOqsIBqIRqzXmAs0ZZwiObr0Orvs+liGZWGUZhaJapkCmz96PFO34XE77mN4Z6avOHW52WpuSSQyhbtgtnCbtPRFiqr6QVfaP4fd0fA2a1nF9N6y8on9yRSUahzUpmR4W47DA2IYirBgzkPiBg0ccFho29nkOGM2tMxSbE4jSBBkScR8RpjCmM3HYSWbbbFcxsIjW4/YhF5zZkoyqNEACaLz3CaJWhi7W11yinXXR63KGI77dPWptsYVpankznPicaJJcfhBdBhextB4Bm/Gmk2FJdgwTqbZVSkcDjFTYCbZL2GiXHbcm8lxWibP0aOn3kzZwhqaXfaGMBgFsvamW7nnlJQhVFYJ72GtUIL9YDQ1bMGUAKMcOek9Lps2zXdhUBzu7u6E15GFQsFEx3ICeDCEsenwB+gcNyYiMBWFrgg4FUanibNqNISoNsrWYCBpWjqjssyCUoDMKt8j+JxKvHcQlVdnd2hLVY3IYpLzYFmxmWqXvSknX4VRrjKG3F2AsXAhX9PZWXO2xjVaR0KU1WgGVJgDB5++4hK4q/kT7PrjeF/LLkvjkdAC3pipzVhD2IiOkTWK2UUPbHmTgq+/E79uCT6+p2IMXeryklebDpExPD/4gipdvFtR9sBpglxeNcPClPKNlZfQyo1/BLA6ISkplLqcOFgcAT9Ojx9Nxcg5OK7pQDWNHP0y+WhQ2ArecppdRNqOwpmHhN2L97cgme3jJ8NU3kj7DzeQ/Pw88jCoRZ3Dw0NwGiGXq7GUe++91yvOXwx3pKVLfjd7xh9IRWkSYhEiGY1QyRvJbBzZHEQ3WcOaxDwHc7DYPgOlxhZX7EEjIjnscCWWBj/FMPk7jwfE6bNhEnZcAh0tXJXNQXYEA81nAX8VnGZ/eSjn16dNOXvO3JbGhpss+UWXOAIDb3/f5FgRSolpbGsZAooMj6op+BaWBhW9fVDGrvfCMNmAyrsZa7SlniJoiIfgwJhxUIlTZX9zIymwO2CEprteickLP4HUETgNcSIuKszMq+y+kjVx/2DF9VVjH2rp6xYLgbcNWQR6vaeAyiN+4sIwOGIWgKKp8EZjELBaaQInyUl0oc1SXJllcQsGntCNqfhdG2T5p5/6/qPeePwtTuSVoMdOcGb/1dVXvq1ueH3xIo9P8yeiXKOUgsk2bBmmZVKKTeR3xOj+JWbHtGFODT8YjTWdZzand6QSl7QDDIOOk4dpAN+5M7+E1pZV0W8JJu0S3ph+VrAlpnH8t/Ewt4y3fBeyjd/R/peF/m1w7IpJKJx05pqHnn+VVl54WbJ44pl/huyyaobT5Q+u/Us4ma7rWC4iiZGherMSevGOW29fo5lsU90FZXcbDML4kH+AFct/7y926zjJyBBzz4/uf2ndpvdp3fIr5HMvvpwWVNbc8enjOk5RFJaUPr3u9Y30nsfWymNmnCsvXvM16iuumA86TnncMG/hBeIrf9pGL7rqBtVZWLELdJzSYKHQaTAYryC8sWHS7AXpc1d+mRYWFtpAxykPZpTsBt74h6/deT+1ewtWg45THn9xjjafr8hTUnUF6P8DiH8rMLJ0B6lDhw4dOnTo0KFDhw4dOnTo0KFDhw4dOnTo0KFDhw4dOnTo0KFDhw4dOnScvvg/nlbmRnj2jigAAAAASUVORK5CYII="},84868:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".view-modal[data-v-6be09ecf]{display:flex;gap:28px;position:relative}.view-modal>div[data-v-6be09ecf]{z-index:1}.view-modal .participants[data-v-6be09ecf]{display:flex;flex-direction:column;gap:16px;position:relative;width:340px;min-height:400px}.view-modal .participants.center-side[data-v-6be09ecf]{align-self:flex-end;justify-content:end}.view-modal .participant-items-wrapper[data-v-6be09ecf]{display:flex;gap:16px}.view-modal .participant-items-wrapper .participant-items[data-v-6be09ecf]{display:flex;flex-direction:column;gap:8px;flex:1;max-height:280px;overflow:auto}.view-modal .participant-items-wrapper .participant-items .participant-item[data-v-6be09ecf]{display:flex;justify-content:space-between;align-items:center;padding:8px 16px 8px 8px;gap:16px;background:hsla(0,0%,100%,.04);border-radius:16px}.view-modal .participant-items-wrapper .participant-items .participant-item img[data-v-6be09ecf]{width:52px;height:52px;border-radius:8px}.view-modal .participant-items-wrapper .participant-items .participant-item .participant-item-info[data-v-6be09ecf]{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.view-modal .participant-items-wrapper .participant-items .participant-item .participant-item-info span[data-v-6be09ecf]:first-child{font-family:Montserrat;font-weight:500;font-size:14px;line-height:20px;text-align:right;letter-spacing:-.4px;overflow:hidden;max-width:200px;color:hsla(0,0%,100%,.8)}.view-modal .participant-items-wrapper .participant-items .participant-item .participant-item-info span[data-v-6be09ecf]:nth-child(2){font-family:Montserrat;font-weight:600;font-size:14px;line-height:20px;color:#fff}.view-modal .participant-items-wrapper .participant-items.reversed .participant-item[data-v-6be09ecf]{flex-direction:row-reverse;padding:8px 8px 8px 16px}.view-modal .participant-items-wrapper .participant-items.reversed .participant-item-info[data-v-6be09ecf]{align-items:start}.view-modal .wheel-of-fortune-wrapper[data-v-6be09ecf]{position:absolute;width:100%;height:488px;z-index:0}.view-modal .wheel-of-fortune-wrapper svg[data-v-6be09ecf]{position:absolute;top:-60px;height:100%;width:100%}@media only screen and (max-width:1139px){.view-modal[data-v-6be09ecf]{flex-direction:column-reverse;width:100%;max-height:900px;flex-wrap:wrap}.wheel-of-fortune-wrapper[data-v-6be09ecf]{top:0}}",""]),t["default"]=s},85104:function(e,t,a){var i=a(37354);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("4229c8ca",i,!0,{sourceMap:!1,shadowMode:!1})},85271:function(e,t,a){var i=a(73385);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("54869ec8",i,!0,{sourceMap:!1,shadowMode:!1})},85462:function(e,t,a){var i=a(25696);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("525afdca",i,!0,{sourceMap:!1,shadowMode:!1})},85546:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".create-modal[data-v-fc81859e]{display:flex;flex-direction:column;gap:24px}.create-modal .filters[data-v-fc81859e]{display:flex;align-items:flex-end;gap:16px;height:48px}.create-modal h4[data-v-fc81859e]{font-family:Montserrat;font-weight:600;font-size:14px;line-height:20px}.create-modal .inventory[data-v-fc81859e]{display:flex;flex-direction:column;gap:8px}.create-modal .inventory .list[data-v-fc81859e]{min-height:272px;background:hsla(0,0%,100%,.04);border-radius:16px;align-self:stretch;flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.create-modal .inventory .list .items-list[data-v-fc81859e]{display:flex;gap:10px;flex-wrap:wrap;padding:8px;max-height:350px;overflow:auto}.create-modal .inventory .list .empty[data-v-fc81859e]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:36px}.create-modal .inventory .list .empty>div[data-v-fc81859e]{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:19px}.create-modal .inventory .list .empty>div p[data-v-fc81859e]{font-family:Montserrat;font-weight:400;font-size:14px;line-height:20px;display:flex;align-items:center;text-align:center;color:hsla(0,0%,100%,.6)}.create-modal .select-participants-count[data-v-fc81859e]{display:flex;flex-direction:column;gap:8px}.create-modal .select-participants-count .content[data-v-fc81859e]{display:flex;justify-content:end;align-items:end}.create-modal .select-participants-count .content .buttons[data-v-fc81859e]{display:flex;justify-content:center;align-items:center;gap:8px}.select-game-for-deposit[data-v-fc81859e]{display:flex;flex-direction:column;gap:8px}.select-game-for-deposit h4[data-v-fc81859e]{font-family:Montserrat;font-weight:600;font-size:14px;line-height:20px}.select-game-for-deposit .deposit-games[data-v-fc81859e]{display:flex;flex-wrap:wrap;gap:8px}",""]),t["default"]=s},85630:function(e,t,a){var i=a(51428);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("a78c3538",i,!0,{sourceMap:!1,shadowMode:!1})},86363:function(e,t,a){var i=a(77141);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("0c3d5640",i,!0,{sourceMap:!1,shadowMode:!1})},86420:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,'section[data-v-17b0fb53]{display:flex;flex-direction:column;gap:24px;color:#fff}section .top[data-v-17b0fb53]{height:24px}section .top h2[data-v-17b0fb53]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:20px;line-height:24px;letter-spacing:-.02em;display:flex;align-items:center;gap:8px}section .buttons-wrapper[data-v-17b0fb53]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:24px}section .buttons-wrapper .buttons[data-v-17b0fb53]{display:flex;justify-content:end;align-items:center;gap:16px;height:44px}section .content[data-v-17b0fb53],section .content .inventory-item-content[data-v-17b0fb53]{display:flex;justify-content:start;flex-wrap:wrap;gap:10px}section .content .inventory-item-content[data-v-17b0fb53]{width:73%}section .content .item-value[data-v-17b0fb53]{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:16px;gap:32px;width:22%;height:158px;background:linear-gradient(135deg,#2d2f33,#282a2e 51.37%,#212429 99.14%);box-shadow:0 1px 1px rgba(9,13,20,.4),-4px -4px 8px rgba(224,224,255,.04),8px 8px 24px rgba(9,13,20,.4);border-radius:24px}section .content .item-value .items[data-v-17b0fb53],section .content .item-value .value[data-v-17b0fb53]{width:100%;display:flex;justify-content:space-between}section .content .item-value .items p[data-v-17b0fb53],section .content .item-value .value p[data-v-17b0fb53]{font-family:Montserrat;font-style:normal;font-weight:600;font-size:14px;line-height:20px;color:#fff}section .content .item-value .items span[data-v-17b0fb53],section .content .item-value .value span[data-v-17b0fb53]{font-family:Druk Text Wide Cyr;font-style:normal;font-weight:1000;font-size:14px;line-height:20px;color:#fff}@media only screen and (max-width:1140px){section .content[data-v-17b0fb53]{flex-direction:column-reverse}section .content .item-value[data-v-17b0fb53]{width:270px}section .content .item-value .items p[data-v-17b0fb53],section .content .item-value .items span[data-v-17b0fb53],section .content .item-value .value p[data-v-17b0fb53],section .content .item-value .value span[data-v-17b0fb53]{text-align:start;width:63px}section .content .inventory-item-content[data-v-17b0fb53]{width:100%}}.information[data-v-17b0fb53]{display:flex;flex-direction:column;gap:24px}.information p[data-v-17b0fb53]{box-sizing:border-box;width:100%;background:hsla(0,0%,100%,.04);border-radius:16px;padding:16px;position:relative;font-family:Montserrat;font-weight:600;font-size:14px;line-height:20px}.information p[data-v-17b0fb53]:after{content:"";pointer-events:none;position:absolute;inset:0;padding:1px;border-radius:16px;background:linear-gradient(135deg,#fa0 50.81%,#ff5e00) border-box,hsla(0,0%,100%,.04) padding-box;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.information .bots[data-v-17b0fb53]{display:flex;flex-direction:column;gap:16px}',""]),t["default"]=s},87069:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,"section[data-v-40eee0d0]{display:flex;flex-direction:column;gap:24px;color:#fff}section .top[data-v-40eee0d0]{height:24px}section .top h2[data-v-40eee0d0]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:20px;line-height:24px;letter-spacing:-.02em;display:flex;align-items:center;gap:8px}section .buttons-wrapper[data-v-40eee0d0]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:24px}section .buttons-wrapper .buttons[data-v-40eee0d0]{display:flex;justify-content:end;align-items:center;gap:16px;height:44px}.Giveaways[data-v-40eee0d0]{display:flex;justify-content:center;gap:24px;flex-wrap:wrap}",""]),t["default"]=s},87200:function(e,t,a){var i=a(33538);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("2059a9a6",i,!0,{sourceMap:!1,shadowMode:!1})},87531:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".casino-game-room[data-v-7e68b516]{flex-wrap:wrap;background:var(--black-gradient);box-shadow:var(--black-shadow);border-radius:24px;padding:14px 12px;box-sizing:border-box;gap:30px}.casino-game-room[data-v-7e68b516],.casino-game-room .left[data-v-7e68b516]{display:flex;justify-content:space-between}.casino-game-room .left[data-v-7e68b516]{align-items:center;gap:20px;width:180px;flex-grow:1;height:60px;position:relative}.casino-game-room .left .vs img[data-v-7e68b516]{width:40px;height:40px}.casino-game-room .right[data-v-7e68b516]{display:flex;justify-content:space-between;align-items:center;gap:40px;flex:1}.casino-game-room .right .items-with-count[data-v-7e68b516]{min-width:368px;display:flex;align-items:center;justify-content:start;gap:12px}.casino-game-room .right .items-with-count .participant-items-counter[data-v-7e68b516]{display:flex;flex-direction:column;align-items:center;gap:4px;width:64px}.casino-game-room .right .items-with-count .participant-items-counter>span[data-v-7e68b516]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:12px;line-height:16px;color:#fff}.casino-game-room .right .total-amount-participant[data-v-7e68b516]{display:flex;justify-content:center;align-items:center;gap:8px}.casino-game-room .right .total-amount-participant .total-amount[data-v-7e68b516]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:4px 8px;width:66px;height:24px;background:hsla(0,0%,100%,.04);border-radius:8px;font-family:Druk Text Wide Cyr;font-style:normal;font-weight:900;font-size:12px;line-height:16px;text-align:center;color:#fff}.casino-game-room .right .total-amount-participant .participant-count[data-v-7e68b516]{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:4px 8px;width:45px;height:24px;background:hsla(0,0%,100%,.04);border-radius:8px}.casino-game-room .right .total-amount-participant .participant-count span[data-v-7e68b516]{font-family:Druk Text Wide Cyr;font-style:normal;font-weight:900;font-size:12px;line-height:16px;text-align:center;color:hsla(0,0%,100%,.6)}.casino-game-room .right .total-amount-participant .participant-count p[data-v-7e68b516]{font-family:Druk Text Wide Cyr;font-style:normal;font-weight:900;font-size:12px;line-height:16px;text-align:center;color:#fff}.casino-game-room .right .actions[data-v-7e68b516],.casino-game-room .right .amount[data-v-7e68b516]{display:flex;flex-direction:column;gap:4px}.casino-game-room .right .amount[data-v-7e68b516]{justify-content:center;align-items:center;padding:12px 24px;width:200px;height:68px;font-family:Montserrat;background:hsla(0,0%,100%,.04);border-radius:16px;font-family:Druk Text Wide Cyr;font-weight:900;font-size:14px;line-height:20px;text-align:center;box-sizing:border-box;color:#fff}.casino-game-room .right .amount .amount-range[data-v-7e68b516]{display:flex;gap:5px;height:20px;font-weight:500;font-size:14px;line-height:20px;letter-spacing:-.4px;color:hsla(0,0%,100%,.6)}",""]),t["default"]=s},87563:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".header[data-v-b33d34f2]{display:flex;height:156px;box-sizing:border-box;background:var(--black-gradient);box-shadow:var(--black-gradient);border-radius:24px;overflow:hidden}.header .left-side[data-v-b33d34f2]{position:relative;height:248px;width:48%;margin-right:-150px;flex-grow:1}.header .left-side .background-gradient[data-v-b33d34f2]{width:100%;height:412px;background:linear-gradient(135deg,#0fa,#4579f5 51.65%,#9c42f5 99.83%);box-shadow:4px 0 54px rgba(33,36,41,.8);backdrop-filter:blur(4px);position:relative;left:-100px;transform:skewX(-20.128deg);top:-54px;margin-right:-96px;z-index:1}.header .left-side .content[data-v-b33d34f2]{position:absolute;top:16px;left:16px;z-index:1;display:flex;flex-direction:column;justify-content:space-between;height:127px;text-align:start;color:#fff;max-width:calc(100% - 70px)}.header .left-side .content h2[data-v-b33d34f2]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:22px;line-height:22px}.header .left-side .content p[data-v-b33d34f2]{font-family:Montserrat;font-weight:500;font-size:12px;line-height:16px;letter-spacing:-.4px}.header .slider[data-v-b33d34f2]{position:relative;width:52%;height:339px;display:flex;justify-content:end}.header .slider img[data-v-b33d34f2]{position:relative;transform:rotateY(180deg);transition:transform 1s;width:100%;-o-object-fit:cover;object-fit:cover;height:156px;right:-30px}.header .slider img[data-v-b33d34f2]:hover{transform:rotateY(180deg) scale(1.4) rotate(-4deg) translateY(-30px)}.header .slider img:hover+.shadow[data-v-b33d34f2]{opacity:1}.header .slider .shadow[data-v-b33d34f2]{transition:opacity 1s;opacity:0;position:absolute;left:-.32%;right:-13.27%;top:122.42%;bottom:-73.06%;border-radius:50%/50%;background:linear-gradient(135deg,#ff5e00,#f54562 54.11%,#c32de1);filter:blur(137px);filter:blur(274px);transform:rotate(6.72deg)}",""]),t["default"]=s},87919:function(e,t,a){var i=a(34105);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("1b0bea97",i,!0,{sourceMap:!1,shadowMode:!1})},88400:function(e,t,a){var i=a(25733);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("8635924e",i,!0,{sourceMap:!1,shadowMode:!1})},89217:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".statistics[data-v-70dbe356]{width:100%;height:144px;display:flex;align-items:flex-start;gap:24px}.statistics .statistics-box[data-v-70dbe356]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 8px;gap:4px;width:33%;height:96px;background:linear-gradient(135deg,#2d2f33,#282a2e 51.37%,#212429 99.14%);box-shadow:0 1px 1px rgba(9,13,20,.4),-4px -4px 8px rgba(224,224,255,.04),8px 8px 24px rgba(9,13,20,.4);border-radius:24px}.statistics .statistics-box h2[data-v-70dbe356]{font-family:Druk Text Wide Cyr;font-style:normal;font-weight:900;font-size:20px;line-height:24px;color:#fff}.statistics .statistics-box p[data-v-70dbe356]{font-family:Montserrat;font-style:normal;font-weight:500;font-size:14px;line-height:20px;color:hsla(0,0%,100%,.6)}",""]),t["default"]=s},89390:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,"section[data-v-147fbe19]{gap:24px;color:#fff}section[data-v-147fbe19],section .top[data-v-147fbe19]{display:flex;flex-direction:column}section .top[data-v-147fbe19]{justify-content:start;gap:16px}section .top h2[data-v-147fbe19]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:16px;line-height:24px;letter-spacing:-.02em;display:flex;align-items:center;gap:8px}section .top p[data-v-147fbe19]{font-family:Montserrat;font-style:normal;font-weight:500;font-size:14px;text-align:start;line-height:20px;color:hsla(0,0%,100%,.6)}section .animation-streamer-mode[data-v-147fbe19]{width:100%;display:flex;flex-direction:column;flex-wrap:wrap;gap:24px}section .animation-streamer-mode div[data-v-147fbe19]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:24px;gap:10px;width:calc(100% - 40px);flex:1;background:linear-gradient(135deg,#2d2f33,#282a2e 51.37%,#212429 99.14%);box-shadow:0 1px 1px rgba(9,13,20,.4),-4px -4px 8px rgba(224,224,255,.04),8px 8px 24px rgba(9,13,20,.4);border-radius:24px}section .animation-streamer-mode div h2[data-v-147fbe19]{font-family:Druk Text Wide Cyr;font-style:normal;font-weight:1000;font-size:16px;line-height:24px;color:#fff}.volume-sound[data-v-147fbe19]{width:calc(100% - 40px);display:flex;flex-direction:column;justify-content:space-between;align-items:start;padding:24px;gap:8px;height:72px;background:linear-gradient(135deg,#2d2f33,#282a2e 51.37%,#212429 99.14%);box-shadow:0 1px 1px rgba(9,13,20,.4),-4px -4px 8px rgba(224,224,255,.04),8px 8px 24px rgba(9,13,20,.4);border-radius:24px}.volume-sound h2[data-v-147fbe19]{font-family:Druk Text Wide Cyr;font-style:normal;font-weight:1000;font-size:16px;line-height:24px;color:#fff}.volume-sound input[data-v-147fbe19]{width:100%}.volume-sound .mute-unmute[data-v-147fbe19]{display:flex;justify-content:space-between;width:100%}.volume-sound .mute-unmute i[data-v-147fbe19]{cursor:pointer}.volume-sound .gradient-range[data-v-147fbe19]{-webkit-appearance:none;width:100%;height:6px;border-radius:5px;background:linear-gradient(90deg,#0fa,#4579f5 51%,#9c42f5);background-size:calc(var(--val, 0)*10% + .1%) 100%;background-repeat:no-repeat;transition:background-size .2s ease}.volume-sound .gradient-range[data-v-147fbe19]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:#fff;cursor:pointer;border:2px solid #9c42f5;margin-top:-6px}.volume-sound .gradient-range[data-v-147fbe19]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#fff;cursor:pointer;border:2px solid #9c42f5}.password-form[data-v-147fbe19]{width:100%;display:flex;flex-wrap:wrap;flex-direction:column;gap:24px}.password-form .inputs[data-v-147fbe19]{display:flex;flex-direction:column;gap:8px;align-items:start;padding:24px;width:calc(100% - 48px);flex:1}.password-form .inputs label[data-v-147fbe19]{font-family:Montserrat;font-style:normal;font-weight:500;font-size:14px;line-height:20px;letter-spacing:-.4px;color:#fff}.password-form .inputs .form-input[data-v-147fbe19]{width:100%;height:18px;border-radius:8px;padding:14px;border:1px solid hsla(0,0%,100%,.122);position:relative;background:hsla(0,0%,100%,.039);display:flex;justify-content:space-between;align-items:center}.password-form .inputs .form-input input[data-v-147fbe19]{width:90%;height:18px;background:transparent;border:0;outline:none;border-radius:12px;padding:14px 2px;font-family:Montserrat;font-style:normal;font-weight:400;font-size:14px;line-height:20px;color:#fff}.password-form .inputs .form-input i[data-v-147fbe19]{display:flex;align-items:center;justify-content:center;cursor:pointer}.statistics[data-v-147fbe19]{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}#test[data-v-147fbe19]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:20px;background:hsla(0,0%,100%,.04);cursor:pointer;border-radius:5px;margin:0;padding:0}#test[data-v-147fbe19]::-webkit-slider-runnable-track{height:12px;background:linear-gradient(135deg,#0fa,#4579f5 51.65%,#9c42f5 99.83%);background-repeat:no-repeat;background-size:50% 100%;border-radius:5px}#test[data-v-147fbe19]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;border-radius:50%;background:#fff;cursor:pointer;position:relative;top:50%;transform:translateY(-50%);margin-top:0;z-index:1}",""]),t["default"]=s},89392:function(e,t,a){"use strict";e.exports=a.p+"img/big-back.49434d4f.png"},89677:function(e,t,a){var i=a(79043);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("69f84813",i,!0,{sourceMap:!1,shadowMode:!1})},89683:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".beige[data-v-404467a4]{display:flex;justify-content:space-between;align-items:center;padding:4px;gap:10px;color:#fff;background:#212429;border-radius:8px;width:152px;height:24px}.beige .title[data-v-404467a4]{font-family:Montserrat;font-weight:500;text-align:center;letter-spacing:-.4px}.beige .title[data-v-404467a4],.beige .value[data-v-404467a4]{font-size:12px;line-height:16px}.beige .value[data-v-404467a4]{font-family:Druk Text Wide Cyr;font-weight:900;text-align:right}",""]),t["default"]=s},90487:function(e,t,a){"use strict";e.exports=a.p+"img/middle-front.54c3d841.png"},90762:function(e,t,a){"use strict";e.exports=a.p+"img/Welcome-old.6eea11b6.png"},91930:function(e,t,a){var i=a(92596);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("7f60e5ee",i,!0,{sourceMap:!1,shadowMode:!1})},92037:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".tabs[data-v-38fbf6ec]{position:relative;gap:4px;min-height:-moz-max-content;min-height:max-content;height:32px;background:rgba(9,13,20,.24);border-radius:12px}.tabs[data-v-38fbf6ec],.tabs .selector[data-v-38fbf6ec]{display:flex;align-items:center}.tabs .selector[data-v-38fbf6ec]{position:absolute;height:28px;left:0;top:2px;z-index:1;border-radius:8px;transition-duration:.6s;transition-timing-function:cubic-bezier(.68,-.55,.265,1.55);background:var(--text-gradient);font-weight:600;line-height:20px;color:#fff}",""]),t["default"]=s},92252:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".casino-game-room[data-v-2a4d90f5]{flex-wrap:wrap;background:var(--black-gradient);box-shadow:var(--black-shadow);border-radius:24px;padding:12px;box-sizing:border-box;gap:30px}.casino-game-room[data-v-2a4d90f5],.casino-game-room .left[data-v-2a4d90f5]{display:flex;justify-content:space-between}.casino-game-room .left[data-v-2a4d90f5]{align-items:center;padding:14px 24px;gap:20px;background:hsla(0,0%,100%,.04);border-radius:16px;min-width:360px;flex-grow:1}.casino-game-room .left .vs img[data-v-2a4d90f5]{width:40px;height:40px}.casino-game-room .right[data-v-2a4d90f5]{display:flex;justify-content:space-between;align-items:center;gap:40px;flex:1}.casino-game-room .right .items-with-count[data-v-2a4d90f5]{min-width:151px;display:flex;align-items:center;justify-content:space-between;gap:8px}.casino-game-room .right .items-with-count .room-participant-items[data-v-2a4d90f5]{display:flex;align-items:center;width:120px;height:60px;position:relative}.casino-game-room .right .items-with-count .counter[data-v-2a4d90f5],.casino-game-room .right .total-amount[data-v-2a4d90f5]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:14px;line-height:20px;text-align:center;color:#fff}.casino-game-room .right .total-amount[data-v-2a4d90f5]{justify-content:center;align-items:center;padding:12px 24px;background:hsla(0,0%,100%,.04);border-radius:16px;width:160px;margin:0 20px;box-sizing:border-box}.casino-game-room .right .actions[data-v-2a4d90f5],.casino-game-room .right .amount[data-v-2a4d90f5],.casino-game-room .right .total-amount[data-v-2a4d90f5]{display:flex;flex-direction:column;gap:4px}.casino-game-room .right .amount[data-v-2a4d90f5]{justify-content:center;align-items:center;padding:12px 24px;width:200px;height:68px;font-family:Montserrat;background:hsla(0,0%,100%,.04);border-radius:16px;font-family:Druk Text Wide Cyr;font-weight:900;font-size:14px;line-height:20px;text-align:center;box-sizing:border-box;color:#fff}.casino-game-room .right .amount .amount-range[data-v-2a4d90f5]{display:flex;gap:5px;height:20px;font-weight:500;font-size:14px;line-height:20px;letter-spacing:-.4px;color:hsla(0,0%,100%,.6)}",""]),t["default"]=s},92288:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,"section[data-v-5f7aa6c2]{display:flex;flex-direction:column;gap:24px;color:#fff}section .top[data-v-5f7aa6c2]{height:24px}section .top h2[data-v-5f7aa6c2]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:20px;line-height:24px;letter-spacing:-.02em;display:flex;align-items:center;gap:8px}section .buttons-wrapper[data-v-5f7aa6c2]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:24px}section .buttons-wrapper .buttons[data-v-5f7aa6c2]{display:flex;justify-content:end;align-items:center;gap:16px;height:44px}.table-wrapper td[data-v-5f7aa6c2]{font-family:Montserrat;font-style:normal;font-weight:500;font-size:14px;line-height:20px;letter-spacing:-.4px;color:#fff}",""]),t["default"]=s},92567:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,'.menu[data-v-2287ba1c]{position:fixed;z-index:50;top:0;left:0;width:100vw;height:100vh;background:rgba(33,36,41,.88);backdrop-filter:blur(12px)}.menu[data-v-2287ba1c],.menu ul[data-v-2287ba1c]{display:flex;flex-direction:column;justify-content:center;align-items:center}.menu ul[data-v-2287ba1c]{padding:0;gap:48px;width:167px;height:256px;list-style:none;margin-bottom:60px;padding:1rem}.menu .menu-actions[data-v-2287ba1c]{gap:24px;display:flex;position:absolute;bottom:60px}.menu .menu-actions .action-item[data-v-2287ba1c]{display:flex;align-items:center;justify-content:center;width:44px;height:44px;background:hsla(0,0%,100%,.04);border-radius:12px;cursor:pointer}.menu .menu-actions .action-item.language-dropdown.open[data-v-2287ba1c],.menu .menu-actions .action-item.language-dropdown[data-v-2287ba1c]:hover{position:relative}.menu .menu-actions .action-item.language-dropdown.open[data-v-2287ba1c]:after,.menu .menu-actions .action-item.language-dropdown[data-v-2287ba1c]:hover:after{pointer-events:none;content:"";position:absolute;inset:0;border-radius:12px;padding:1px;background:var(--text-gradient);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.menu .close[data-v-2287ba1c]{position:absolute;cursor:pointer;width:20px;height:20px;right:24px;top:32px;display:flex;align-items:center;justify-content:center}',""]),t["default"]=s},92596:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,'header[data-v-958d662a]{position:fixed;right:0;top:0;width:100%;display:flex;padding-left:calc(var(--left-aside-width) + 32px);padding-right:40px;height:67px;border-bottom:1px solid hsla(0,0%,100%,.12);justify-content:space-between;box-sizing:border-box;background:#212429;z-index:10}header .nav[data-v-958d662a]{display:flex;gap:40px}header .login-wrapper[data-v-958d662a]{align-items:center;display:flex;gap:32px}header .login-wrapper .actions[data-v-958d662a]{gap:24px;display:flex}header .login-wrapper .actions .action-item[data-v-958d662a]{display:flex;align-items:center;justify-content:center;width:44px;height:44px;background:hsla(0,0%,100%,.04);border-radius:12px;cursor:pointer}header .login-wrapper .actions .action-item.language-dropdown.open[data-v-958d662a],header .login-wrapper .actions .action-item.language-dropdown[data-v-958d662a]:hover{position:relative}header .login-wrapper .actions .action-item.language-dropdown.open[data-v-958d662a]:after,header .login-wrapper .actions .action-item.language-dropdown[data-v-958d662a]:hover:after{pointer-events:none;content:"";position:absolute;inset:0;border-radius:12px;padding:1px;background:var(--text-gradient);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}header .login-wrapper .logged-in-user[data-v-958d662a]{cursor:pointer;display:flex;align-items:center;gap:8px}header .login-wrapper .logged-in-user img[data-v-958d662a]{border-radius:100px;width:32px;height:32px}header .login-wrapper .logged-in-user span[data-v-958d662a]{font-family:Montserrat;font-weight:600;font-size:14px;line-height:20px;color:#fff}',""]),t["default"]=s},92617:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".casino-game-room[data-v-60986490]{display:flex;flex-direction:column;flex-wrap:wrap;background:var(--black-gradient);box-shadow:var(--black-shadow);border-radius:24px;padding:14px 12px;box-sizing:border-box;justify-content:space-between;gap:30px;max-width:100%}.casino-game-room .left[data-v-60986490]{display:flex;align-items:center;gap:20px;max-width:100%;min-width:180px;justify-content:end;flex-grow:1;height:60px;position:relative}.casino-game-room .left .vs img[data-v-60986490]{width:40px;height:40px}.casino-game-room .right[data-v-60986490]{display:flex;justify-content:space-between;align-items:center;gap:48px;flex:1}.casino-game-room .right .items-with-count[data-v-60986490]{min-width:320px;display:flex;align-items:center;justify-content:start;gap:24px}.casino-game-room .right .items-with-count .participant-items-counter[data-v-60986490]{display:flex;flex-direction:column;align-items:center;gap:8px;width:56px}.casino-game-room .right .items-with-count .participant-items-counter>span[data-v-60986490]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:12px;line-height:16px;color:#fff}@media only screen and (max-width:430px){.casino-game-room .right .items-with-count[data-v-60986490]{gap:8px}.casino-game-room .right .items-with-count .participant-items-counter>span[data-v-60986490]{font-size:11px}}.casino-game-room .right .amount[data-v-60986490]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:12px 24px;gap:4px;width:200px;height:68px;font-family:Montserrat;background:hsla(0,0%,100%,.04);border-radius:16px;font-family:Druk Text Wide Cyr;font-weight:900;font-size:14px;line-height:20px;text-align:center;box-sizing:border-box;color:#fff}.casino-game-room .right .amount .amount-range[data-v-60986490]{display:flex;gap:5px;height:20px;font-weight:500;font-size:14px;line-height:20px;letter-spacing:-.4px;color:hsla(0,0%,100%,.6)}.total-amount-participant[data-v-60986490]{display:flex;justify-content:center;align-items:center;gap:8px}.total-amount-participant .total-amount[data-v-60986490]{flex-direction:column;width:66px;font-family:Druk Text Wide Cyr;font-style:normal;font-weight:900;font-size:12px;line-height:16px;text-align:center;color:#fff}.total-amount-participant .participant-count[data-v-60986490],.total-amount-participant .total-amount[data-v-60986490]{display:flex;justify-content:center;align-items:center;padding:4px 8px;height:24px;background:hsla(0,0%,100%,.04);border-radius:8px}.total-amount-participant .participant-count[data-v-60986490]{flex-direction:row;width:45px}.total-amount-participant .participant-count span[data-v-60986490]{color:hsla(0,0%,100%,.6)}.total-amount-participant .participant-count p[data-v-60986490],.total-amount-participant .participant-count span[data-v-60986490]{font-family:Druk Text Wide Cyr;font-style:normal;font-weight:900;font-size:12px;line-height:16px;text-align:center}.total-amount-participant .participant-count p[data-v-60986490]{color:#fff}.actions[data-v-60986490]{width:100%;display:flex;gap:7px}.actions button[data-v-60986490]{width:160px;height:32px;border-radius:12px;flex:1}",""]),t["default"]=s},92769:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,'.menu-item[data-v-252e9946]{cursor:pointer;height:60px;position:relative;display:flex;justify-content:start;align-items:center;gap:12px;font-family:Montserrat;font-weight:600;font-size:14px;line-height:20px;letter-spacing:-.4px;text-align:center}.menu-item.active[data-v-252e9946]:after,.menu-item.active[data-v-252e9946]:before,.menu-item[data-v-252e9946]:hover:after,.menu-item[data-v-252e9946]:hover:before{content:"";position:absolute;left:-32px;width:4px;height:43px;background:var(--gradient);border-radius:8px;transform:matrix(0,1,1,0,0,0) rotate(-90deg)}.menu-item.active[data-v-252e9946]:after,.menu-item[data-v-252e9946]:hover:after{filter:blur(4px)}.menu-item.active[data-v-252e9946] svg path,.menu-item[data-v-252e9946]:hover svg path{fill:url(#gradient)}.menu-item.active .label[data-v-252e9946],.menu-item:hover .label[data-v-252e9946]{background:var(--text-gradient);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}',""]),t["default"]=s},92941:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".statistics[data-v-649f778b]{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}.statistics .user-name[data-v-649f778b]{display:flex;align-items:center;gap:8px}.statistics .user-name img[data-v-649f778b]{width:20px;height:20px}.statistics .table-wrapper table thead tr th[data-v-649f778b]{font-style:normal;font-weight:500;font-size:12px;line-height:16px;letter-spacing:-.4px;color:hsla(0,0%,100%,.6)}",""]),t["default"]=s},93296:function(e,t,a){var i=a(51274);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("5f9c3847",i,!0,{sourceMap:!1,shadowMode:!1})},93298:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,'.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.8);backdrop-filter:blur(12px);padding:16px;box-sizing:border-box;display:flex;justify-content:center;align-items:center;z-index:9999}.modal-overlay .modal{display:flex;position:absolute;max-width:min(800px,100%);padding:32px;box-sizing:border-box;background:#212429;box-shadow:var(--black-shadow);border-radius:24px;overflow:hidden}.modal-overlay .modal .wrapper{display:flex;flex-direction:column;gap:40px;z-index:1;width:100%}.modal-overlay .modal .img-wrapper{border-radius:24px;position:absolute;top:0;left:0;height:160px;overflow:hidden;z-index:0}.modal-overlay .modal .img-wrapper img{margin-top:-50px;width:100%}.modal-overlay .modal .img-wrapper:after{content:"";position:absolute;width:100%;height:100%;left:0;top:0;background:linear-gradient(180deg,rgba(33,36,41,0) 25.77%,rgba(33,36,41,.878) 61.02%,#212429 94.52%)}.modal-overlay .modal .img-wrapper:before{content:"";position:absolute;width:100%;height:100%;left:0;top:0;background:linear-gradient(260.99deg,rgba(33,36,41,0) 47.19%,rgba(33,36,41,.878) 67.13%,#212429 86.09%)}.modal-overlay .modal h3{font-family:Druk Text Wide Cyr;font-weight:1000;font-size:20px;line-height:24px;letter-spacing:-.02em;color:#fff}.modal-overlay .modal .close{cursor:pointer;position:absolute;width:20px;height:20px;right:24px;top:24px}',""]),t["default"]=s},93498:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".inventory-item[data-v-e69b6de2]{display:flex;padding-inline:16px;box-sizing:border-box;position:relative;width:100%;justify-content:space-between;align-items:center;height:114px;background:var(--black-gradient);box-shadow:var(--black-shadow);border-radius:24px;color:#fff}.inventory-item .selected-price[data-v-e69b6de2]{width:100px}.inventory-item .selected-price span[data-v-e69b6de2]{font-family:Druk Text Wide Cyr;font-style:normal;font-weight:1000;font-size:14px;line-height:20px;color:#fff;width:100%}.inventory-item .buttons[data-v-e69b6de2]{gap:24px;height:32px;width:120px}.inventory-item .buttons[data-v-e69b6de2],.inventory-item .buttons i[data-v-e69b6de2]{display:flex;justify-content:center;align-items:center}.inventory-item .buttons i[data-v-e69b6de2]{width:24px;aspect-ratio:1;cursor:pointer}.inventory-item .content[data-v-e69b6de2]{display:flex;align-items:center;gap:12px;min-width:258px}.inventory-item .content img[data-v-e69b6de2]{width:82px;height:82px;border-radius:50%}.inventory-item .content .content-bottom[data-v-e69b6de2]{display:flex;flex-direction:column;align-items:start;justify-content:center;gap:4px}.inventory-item .content .content-bottom h4[data-v-e69b6de2]{font-family:Montserrat;font-style:normal;font-weight:600;font-size:14px;line-height:20px;color:#fff}.inventory-item .content .content-bottom span[data-v-e69b6de2]{font-family:Druk Text Wide Cyr;font-style:normal;font-weight:900;font-size:14px;line-height:20px;text-align:center;color:#fff}.disabled[data-v-e69b6de2]{opacity:.5;pointer-events:none;cursor:not-allowed;filter:grayscale(10%) brightness(.8)}.thumbnail[data-v-e69b6de2]{position:relative}.thumbnail .item-count[data-v-e69b6de2]{position:absolute;min-width:20px;height:20px;border-radius:10px;background:var(--text-gradient-165);right:-15px;top:-15px;color:#fff;font-size:12px;font-weight:700;display:flex;letter-spacing:1px;justify-content:center;align-items:center;padding:4px}",""]),t["default"]=s},93832:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,"svg[data-v-1bfcb64d]{height:0;width:0;opacity:0;position:absolute;left:0}",""]),t["default"]=s},93906:function(e,t,a){var i=a(38016);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("1679d124",i,!0,{sourceMap:!1,shadowMode:!1})},94116:function(e,t,a){var i=a(97570);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("00fa07fb",i,!0,{sourceMap:!1,shadowMode:!1})},94212:function(e,t,a){var i=a(70550);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("64fd8614",i,!0,{sourceMap:!1,shadowMode:!1})},94263:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,'.theme-checkbox[data-v-a122ac48]{--toggle-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:38px;height:24px;background:hsla(0,0%,100%,.2);transition:.4s;border-radius:888px;position:relative;cursor:pointer;font-size:var(--toggle-size);outline:none}.theme-checkbox[data-v-a122ac48]:before{content:"";width:19px;height:19px;position:absolute;top:2.5px;left:2.5px;background:#fff;border-radius:50%;transition:.4s}.theme-checkbox[data-v-a122ac48]:checked{background:linear-gradient(135deg,#0fa,#4579f5 51.65%,#9c42f5 99.83%)}.theme-checkbox[data-v-a122ac48]:checked:before{left:calc(100% - 22px)}',""]),t["default"]=s},94601:function(e,t,a){var i=a(73647);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("ae17bc6c",i,!0,{sourceMap:!1,shadowMode:!1})},94869:function(e,t,a){var i=a(67379);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("b5e053c8",i,!0,{sourceMap:!1,shadowMode:!1})},95459:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,"section[data-v-15d603fb]{display:flex;flex-direction:column;gap:24px;color:#fff}section .top[data-v-15d603fb]{height:24px}section .top[data-v-15d603fb],section .top .buttons[data-v-15d603fb]{display:flex;justify-content:space-between;align-items:center}section .top .buttons[data-v-15d603fb]{gap:8px;height:44px}section .top .buttons button[data-v-15d603fb]{width:64px;height:32px;padding:8px 20px;border-radius:10px;gap:10px}section .top h2[data-v-15d603fb]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:20px;line-height:24px;letter-spacing:-.02em;display:flex;align-items:center;gap:8px}section .buttons-wrapper[data-v-15d603fb]{justify-content:space-between;align-items:center}.Giveaways[data-v-15d603fb],section .buttons-wrapper[data-v-15d603fb]{display:flex;flex-wrap:wrap;gap:24px}.Giveaways[data-v-15d603fb]{justify-content:center;flex-direction:column}",""]),t["default"]=s},95612:function(e,t,a){"use strict";e.exports=a.p+"fonts/Montserrat-Light.03182e98.woff"},95821:function(e,t,a){"use strict";e.exports=a.p+"fonts/Montserrat-ExtraBoldItalic.96a3c450.woff"},95992:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".mention-wrapper[data-v-73c46d6d]{position:relative;width:300px}.mention-wrapper .dropdown[data-v-73c46d6d]{position:absolute;bottom:35px;left:0;width:100%;list-style:none;padding:0;margin:0;max-height:150px;overflow-y:auto;z-index:10;border:1px solid hsla(0,0%,100%,.12)}.mention-wrapper .dropdown li[data-v-73c46d6d]{padding:8px;cursor:pointer;background-color:#2d2f33;color:#fff}.mention-wrapper .dropdown li.highlighted[data-v-73c46d6d],.mention-wrapper .dropdown li[data-v-73c46d6d]:hover{background:var(--text-gradient);color:#fff}",""]),t["default"]=s},96022:function(e,t,a){var i=a(8832);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("0cf38af8",i,!0,{sourceMap:!1,shadowMode:!1})},96129:function(e,t,a){var i=a(8171);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("31de3dd0",i,!0,{sourceMap:!1,shadowMode:!1})},96655:function(e,t,a){"use strict";e.exports=a.p+"fonts/Montserrat-Medium.1eb627a5.woff"},97321:function(e,t,a){var i=a(69103);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("b2c3fb94",i,!0,{sourceMap:!1,shadowMode:!1})},97442:function(e,t,a){var i=a(46788);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("b437099a",i,!0,{sourceMap:!1,shadowMode:!1})},97558:function(e,t,a){"use strict";e.exports=a.p+"img/big-front.93d6d3cd.png"},97570:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".mention-input-wrapper[data-v-0b3fde94]{position:relative;width:calc(100% - 35px)}.editor[data-v-0b3fde94]{font-family:Montserrat;font-style:normal;font-size:14px;line-height:16px;font-weight:400;width:100%;min-height:20px;border-radius:6px;line-height:1.5;max-height:150px}.editor[data-v-0b3fde94]:focus-visible{outline:none}.mention[data-v-0b3fde94]{background-color:#d1ecf1;color:#0c5460;padding:2px 5px;border-radius:4px}.suggestions[data-v-0b3fde94]{position:absolute;background-color:#212429;list-style:none;padding:0;margin:0;z-index:10;bottom:20px;max-height:150px;scrollbar-width:thin;scrollbar-color:#222223 #373a40}.suggestions li[data-v-0b3fde94]{padding:8px 12px;cursor:pointer;color:#fff;font-size:14px}.suggestions li.selected[data-v-0b3fde94]{background-color:#3c424b;color:#fff}",""]),t["default"]=s},97829:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,'section[data-v-623ea52c]{display:flex;flex-direction:column;gap:24px;color:#fff}section .top[data-v-623ea52c]{height:24px}section .top h2[data-v-623ea52c]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:20px;line-height:24px;letter-spacing:-.02em;display:flex;align-items:center;gap:8px}section .buttons-wrapper[data-v-623ea52c]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:24px}section .content[data-v-623ea52c]{flex-direction:column-reverse}section .content[data-v-623ea52c],section .content .inventory-item-content[data-v-623ea52c]{display:flex;justify-content:start;flex-wrap:wrap;gap:10px}section .content .inventory-item-content[data-v-623ea52c]{width:100%}section .content .item-value-container[data-v-623ea52c]{width:100%;display:flex;gap:10px;flex-wrap:wrap;justify-content:start}section .content .item-value-container .item-value[data-v-623ea52c]{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:16px;gap:32px;width:100%;height:158px;background:linear-gradient(135deg,#2d2f33,#282a2e 51.37%,#212429 99.14%);box-shadow:0 1px 1px rgba(9,13,20,.4),-4px -4px 8px rgba(224,224,255,.04),8px 8px 24px rgba(9,13,20,.4);border-radius:24px}section .content .item-value-container .item-value .items[data-v-623ea52c],section .content .item-value-container .item-value .value[data-v-623ea52c]{width:100%;display:flex;justify-content:space-between}section .content .item-value-container .item-value .items p[data-v-623ea52c],section .content .item-value-container .item-value .value p[data-v-623ea52c]{font-family:Montserrat;font-style:normal;font-weight:600;font-size:14px;line-height:20px;color:#fff}section .content .item-value-container .item-value .items span[data-v-623ea52c],section .content .item-value-container .item-value .value span[data-v-623ea52c]{font-family:Druk Text Wide Cyr;font-style:normal;font-weight:1000;font-size:14px;line-height:20px;color:#fff}section .content .item-value-container .item-value .button-container[data-v-623ea52c]{width:100%;display:flex}.information[data-v-623ea52c]{display:flex;flex-direction:column;gap:24px}.information p[data-v-623ea52c]{box-sizing:border-box;width:100%;background:hsla(0,0%,100%,.04);border-radius:16px;padding:16px;position:relative;font-family:Montserrat;font-weight:600;font-size:14px;line-height:20px}.information p[data-v-623ea52c]:after{content:"";pointer-events:none;position:absolute;inset:0;padding:1px;border-radius:16px;background:linear-gradient(135deg,#fa0 50.81%,#ff5e00) border-box,hsla(0,0%,100%,.04) padding-box;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.information .bots[data-v-623ea52c]{display:flex;flex-direction:column;gap:16px}',""]),t["default"]=s},98065:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".headline[data-v-6fd01aa7]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:8px;line-height:28px;letter-spacing:-.02em;fill:#fff}.headline.starting[data-v-6fd01aa7]{font-size:3px}",""]),t["default"]=s},98255:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".create-modal[data-v-7371461c]{display:flex;flex-direction:column;gap:24px}.create-modal .filters[data-v-7371461c]{display:flex;align-items:flex-end;gap:7px;height:36px;font-size:12px;line-height:12px}.create-modal h4[data-v-7371461c]{font-family:Montserrat;font-weight:600;font-size:14px;line-height:20px}.create-modal .inventory[data-v-7371461c]{display:flex;flex-direction:column;gap:8px}.create-modal .inventory .list[data-v-7371461c]{height:272px;background:hsla(0,0%,100%,.04);border-radius:16px;align-self:stretch;flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.create-modal .inventory .list .items-list[data-v-7371461c]{display:flex;gap:10px;flex-wrap:wrap;padding:8px;max-height:350px;overflow:auto}.create-modal .inventory .list .empty[data-v-7371461c]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:36px}.create-modal .inventory .list .empty>div[data-v-7371461c]{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:19px}.create-modal .inventory .list .empty>div p[data-v-7371461c]{font-family:Montserrat;font-weight:400;font-size:14px;line-height:20px;display:flex;align-items:center;text-align:center;color:hsla(0,0%,100%,.6)}.create-modal .select-participants-count[data-v-7371461c]{display:flex;flex-direction:column;gap:8px}.create-modal .select-participants-count .content[data-v-7371461c]{display:flex;justify-content:center;align-items:end;flex:1}.create-modal .select-participants-count .content .buttons[data-v-7371461c]{display:flex;justify-content:center;flex:1;align-items:center;gap:8px}.select-game-for-deposit[data-v-7371461c]{display:flex;flex-direction:column;gap:8px}.select-game-for-deposit h4[data-v-7371461c]{font-family:Montserrat;font-weight:600;font-size:14px;line-height:20px}.select-game-for-deposit .deposit-games[data-v-7371461c]{display:flex;flex-wrap:wrap;gap:8px}",""]),t["default"]=s},98741:function(e,t,a){var i=a(23739);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=a(68459).A;n("db01a15a",i,!0,{sourceMap:!1,shadowMode:!1})},99283:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".login[data-v-9b5d2508]{display:flex;flex-direction:column;gap:24px}.login p[data-v-9b5d2508]{font-family:Montserrat;font-style:normal;font-weight:500;font-size:14px;line-height:20px;text-align:center;letter-spacing:-.4px;color:hsla(0,0%,100%,.8);max-width:436px}.login .login-input[data-v-9b5d2508]{width:100%;display:flex;flex-direction:column;align-items:start;gap:8px}.login .login-input input[data-v-9b5d2508]{background:hsla(0,0%,100%,.04);border:1px solid hsla(0,0%,100%,.12);padding:14px 16px;border-radius:12px;width:calc(100% - 32px);outline:none;font-weight:400}.login .login-input input[data-v-9b5d2508],.login .login-input label[data-v-9b5d2508]{color:#fff;font-family:Montserrat;font-style:normal;font-size:14px;line-height:20px}.login .login-input label[data-v-9b5d2508]{font-weight:500;letter-spacing:-.4px}.login .check[data-v-9b5d2508]{display:flex;gap:8px;align-items:center}.login .check p[data-v-9b5d2508]{font-family:Montserrat;font-style:normal;font-weight:500;font-size:14px;line-height:20px;text-align:center;letter-spacing:-.4px;color:hsla(0,0%,100%,.6)}.login .check p a[data-v-9b5d2508]{text-decoration:underline;cursor:pointer}.login .actions[data-v-9b5d2508]{width:100%;display:flex;flex-direction:column;gap:24px}.login .actions p[data-v-9b5d2508]{font-family:Montserrat;font-style:normal;font-weight:600;font-size:14px;line-height:20px;text-align:center;letter-spacing:-.4px;background:linear-gradient(135deg,#0fa,#4579f5 51.65%,#9c42f5 99.83%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;cursor:pointer}.errors[data-v-9b5d2508]{display:flex;gap:8px}.errors p[data-v-9b5d2508]{font-family:Montserrat;font-style:normal;font-weight:500;font-size:14px;line-height:20px;letter-spacing:-.4px;color:red}",""]),t["default"]=s},99404:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,".bot[data-v-2995b5b7]{justify-content:space-between;padding:16px 24px;gap:20px;flex-grow:1;background:hsla(0,0%,100%,.04);border-radius:16px}.bot[data-v-2995b5b7],.bot .info[data-v-2995b5b7]{display:flex;align-items:center}.bot .info[data-v-2995b5b7]{justify-content:center;gap:12px}.bot .info img[data-v-2995b5b7]{width:36px;height:36px;background:hsla(0,0%,100%,.04);border-radius:50%}.bot .info span[data-v-2995b5b7]{font-family:Montserrat;font-weight:600;font-size:12px;line-height:20px}",""]),t["default"]=s},99413:function(e,t,a){"use strict";a.r(t);var i=a(31601),n=a.n(i),o=a(76314),r=a.n(o),s=r()(n());s.push([e.id,'.inventory-item[data-v-69687bc2]{display:flex;flex-direction:column;box-sizing:border-box;padding:8px;gap:8px;flex:0 1 200px;flex-grow:1;background:var(--black-gradient);box-shadow:var(--black-shadow);border-radius:24px;color:#fff}.inventory-item[data-v-69687bc2],.inventory-item.selected[data-v-69687bc2]{position:relative}.inventory-item.selected[data-v-69687bc2]:after{pointer-events:none;content:"";position:absolute;inset:0;border-radius:12px;padding:1px;background:var(--text-gradient);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.inventory-item .content[data-v-69687bc2]{display:flex;flex-direction:column;align-items:center;gap:6px}.inventory-item .content img[data-v-69687bc2]{width:90px;height:90px;border-radius:50%;-o-object-fit:contain;object-fit:contain}.inventory-item .content .content-bottom[data-v-69687bc2]{display:flex;flex-direction:column;align-items:center;gap:4px}.inventory-item .content .content-bottom h4[data-v-69687bc2]{font-family:Montserrat;font-weight:600;font-size:14px;line-height:20px;text-align:center;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inventory-item .content .content-bottom span[data-v-69687bc2]{font-family:Druk Text Wide Cyr;font-weight:900;font-size:14px;line-height:20px;text-align:center}.inventory-item .buttons[data-v-69687bc2]{display:flex;justify-content:center;align-items:center;gap:8px;height:32px}.inventory-item .buttons .left-arrow[data-v-69687bc2]{transform:rotate(-45deg)}.inventory-item .inventory-item-count[data-v-69687bc2]{right:8px;top:8px}',""]),t["default"]=s}},t={};function a(i){var n=t[i];if(void 0!==n)return n.exports;var o=t[i]={id:i,exports:{}};return e[i].call(o.exports,o,o.exports,a),o.exports}a.m=e,function(){var e=[];a.O=function(t,i,n,o){if(!i){var r=1/0;for(c=0;c=o)&&Object.keys(a.O).every((function(e){return a.O[e](i[l])}))?i.splice(l--,1):(s=!1,o0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[i,n,o]}}(),function(){a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,{a:t}),t}}(),function(){a.d=function(e,t){for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){a.p="/"}(),function(){a.b=document.baseURI||self.location.href;var e={524:0};a.O.j=function(t){return 0===e[t]};var t=function(t,i){var n,o,r=i[0],s=i[1],l=i[2],d=0;if(r.some((function(t){return 0!==e[t]}))){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);if(l)var c=l(a)}for(t&&t(i);d