(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b5ea8392"],{"01bb":function(t,e,s){"use strict";s("e9d9")},"0b33":function(t,e,s){"use strict";var i=s("c31d"),n=s("d282"),a=s("9884"),r=s("48f4"),o=Object(n["a"])("tab"),c=o[0],l=o[1];e["a"]=c({mixins:[Object(a["a"])("vanTabs")],props:Object(i["a"])({},r["c"],{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var t;return null!=(t=this.name)?t:this.index},isActive:function(){var t=this.computedName===this.parent.currentName;return t&&(this.inited=!0),t}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(t){var e=this;this.parent.lazyRender&&t&&this.$nextTick((function(){e.parent.$emit("rendered",e.computedName,e.title)}))}},render:function(t){var e=this.slots,s=this.parent,i=this.isActive,n=e();if(n||s.animated){var a=s.scrollspy||i,r=this.inited||s.scrollspy||!s.lazyRender,o=r?n:t();return s.animated?t("div",{attrs:{role:"tabpanel","aria-hidden":!i},class:l("pane-wrapper",{inactive:!i})},[t("div",{class:l("pane")},[o])]):t("div",{directives:[{name:"show",value:a}],attrs:{role:"tabpanel"},class:l("pane")},[o])}}})},"19bf":function(t,e,s){},"5e46":function(t,e,s){"use strict";var i=s("d282"),n=s("ea8e"),a=s("a142"),r=s("4598"),o=s("a8c1");function c(t,e,s){var i=0,n=t.scrollLeft,a=0===s?1:Math.round(1e3*s/16);function o(){t.scrollLeft+=(e-n)/a,++i<a&&Object(r["b"])(o)}o()}function l(t,e,s,i){var n=Object(o["b"])(t),a=n<e,c=0===s?1:Math.round(1e3*s/16),l=(e-n)/c;function h(){n+=l,(a&&n>e||!a&&n<e)&&(n=e),Object(o["g"])(t,n),a&&n<e||!a&&n>e?Object(r["b"])(h):i&&Object(r["b"])(i)}h()}var h=s("48f4"),u=s("02de"),d=s("1325"),f=s("b1d2");function p(t){var e=t.interceptor,s=t.args,i=t.done;if(e){var n=e.apply(void 0,s);Object(a["f"])(n)?n.then((function(t){t&&i()})).catch(a["h"]):n&&i()}else i()}var m=s("9884"),v=s("5fbe"),b=s("6f2f"),g=Object(i["a"])("tab"),w=g[0],C=g[1],y=w({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String},computed:{style:function(){var t={},e=this.color,s=this.isActive,i="card"===this.type;e&&i&&(t.borderColor=e,this.disabled||(s?t.backgroundColor=e:t.color=e));var n=s?this.activeColor:this.inactiveColor;return n&&(t.color=n),t}},methods:{onClick:function(){this.$emit("click")},genText:function(){var t=this.$createElement,e=t("span",{class:C("text",{ellipsis:!this.scrollable})},[this.slots()||this.title]);return this.dot||Object(a["c"])(this.info)&&""!==this.info?t("span",{class:C("text-wrapper")},[e,t(b["a"],{attrs:{dot:this.dot,info:this.info}})]):e}},render:function(){var t=arguments[0];return t("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[C({active:this.isActive,disabled:this.disabled})],style:this.style,on:{click:this.onClick}},[this.genText()])}}),x=Object(i["a"])("sticky"),$=x[0],_=x[1],I=$({mixins:[Object(v["a"])((function(t,e){if(this.scroller||(this.scroller=Object(o["c"])(this.$el)),this.observer){var s=e?"observe":"unobserve";this.observer[s](this.$el)}t(this.scroller,"scroll",this.onScroll,!0),this.onScroll()}))],props:{zIndex:[Number,String],container:null,offsetTop:{type:[Number,String],default:0}},data:function(){return{fixed:!1,height:0,transform:0}},computed:{offsetTopPx:function(){return Object(n["b"])(this.offsetTop)},style:function(){if(this.fixed){var t={};return Object(a["c"])(this.zIndex)&&(t.zIndex=this.zIndex),this.offsetTopPx&&this.fixed&&(t.top=this.offsetTopPx+"px"),this.transform&&(t.transform="translate3d(0, "+this.transform+"px, 0)"),t}}},watch:{fixed:function(t){this.$emit("change",t)}},created:function(){var t=this;!a["g"]&&window.IntersectionObserver&&(this.observer=new IntersectionObserver((function(e){e[0].intersectionRatio>0&&t.onScroll()}),{root:document.body}))},methods:{onScroll:function(){var t=this;if(!Object(u["a"])(this.$el)){this.height=this.$el.offsetHeight;var e=this.container,s=this.offsetTopPx,i=Object(o["b"])(window),n=Object(o["a"])(this.$el),a=function(){t.$emit("scroll",{scrollTop:i,isFixed:t.fixed})};if(e){var r=n+e.offsetHeight;if(i+s+this.height>r){var c=this.height+i-r;return c<this.height?(this.fixed=!0,this.transform=-(c+s)):this.fixed=!1,void a()}}i+s>n?(this.fixed=!0,this.transform=0):this.fixed=!1,a()}}},render:function(){var t=arguments[0],e=this.fixed,s={height:e?this.height+"px":null};return t("div",{style:s},[t("div",{class:_({fixed:e}),style:this.style},[this.slots()])])}}),S=s("c31d"),k=s("3875"),O=Object(i["a"])("tabs"),W=O[0],j=O[1],T=50,A=W({mixins:[k["a"]],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var t=this.direction,e=this.deltaX,s=this.currentIndex;"horizontal"===t&&this.offsetX>=T&&(e>0&&0!==s?this.$emit("change",s-1):e<0&&s!==this.count-1&&this.$emit("change",s+1))},genChildren:function(){var t=this.$createElement;return this.animated?t("div",{class:j("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){var t=arguments[0];return t("div",{class:j("content",{animated:this.animated}),on:Object(S["a"])({},this.listeners)},[this.genChildren()])}}),N=Object(i["a"])("tabs"),D=N[0],L=N[1];e["a"]=D({mixins:[Object(m["b"])("vanTabs"),Object(v["a"])((function(t){this.scroller||(this.scroller=Object(o["c"])(this.$el)),t(window,"resize",this.resize,!0),this.scrollspy&&t(this.scroller,"scroll",this.onScroll,!0)}))],inject:{vanPopup:{default:null}},model:{prop:"active"},props:{color:String,border:Boolean,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],beforeChange:Function,titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:5}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var t=this.children[this.currentIndex];if(t)return t.computedName},offsetTopPx:function(){return Object(n["b"])(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(t){t!==this.currentName&&this.setCurrentIndexByName(t)},children:function(){var t=this;this.setCurrentIndexByName(this.active),this.setLine(),this.$nextTick((function(){t.scrollIntoView(!0)}))},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&Object(o["f"])(Math.ceil(Object(o["a"])(this.$el)-this.offsetTopPx))},scrollspy:function(t){t?Object(d["b"])(this.scroller,"scroll",this.onScroll,!0):Object(d["a"])(this.scroller,"scroll",this.onScroll)}},mounted:function(){var t=this;this.init(),this.vanPopup&&this.vanPopup.onReopen((function(){t.setLine()}))},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var t=this;this.$nextTick((function(){t.inited=!0,t.tabHeight=Object(o["d"])(t.$refs.wrap),t.scrollIntoView(!0)}))},setLine:function(){var t=this,e=this.inited;this.$nextTick((function(){var s=t.$refs.titles;if(s&&s[t.currentIndex]&&"line"===t.type&&!Object(u["a"])(t.$el)){var i=s[t.currentIndex].$el,r=t.lineWidth,o=t.lineHeight,c=i.offsetLeft+i.offsetWidth/2,l={width:Object(n["a"])(r),backgroundColor:t.color,transform:"translateX("+c+"px) translateX(-50%)"};if(e&&(l.transitionDuration=t.duration+"s"),Object(a["c"])(o)){var h=Object(n["a"])(o);l.height=h,l.borderRadius=h}t.lineStyle=l}}))},setCurrentIndexByName:function(t){var e=this.children.filter((function(e){return e.computedName===t})),s=(this.children[0]||{}).index||0;this.setCurrentIndex(e.length?e[0].index:s)},setCurrentIndex:function(t){var e=this.findAvailableTab(t);if(Object(a["c"])(e)){var s=this.children[e],i=s.computedName,n=null!==this.currentIndex;this.currentIndex=e,i!==this.active&&(this.$emit("input",i),n&&this.$emit("change",i,s.title))}},findAvailableTab:function(t){var e=t<this.currentIndex?-1:1;while(t>=0&&t<this.children.length){if(!this.children[t].disabled)return t;t+=e}},onClick:function(t,e){var s=this,i=this.children[e],n=i.title,a=i.disabled,r=i.computedName;a?this.$emit("disabled",r,n):(p({interceptor:this.beforeChange,args:[r],done:function(){s.setCurrentIndex(e),s.scrollToCurrentContent()}}),this.$emit("click",r,n),Object(h["b"])(t.$router,t))},scrollIntoView:function(t){var e=this.$refs.titles;if(this.scrollable&&e&&e[this.currentIndex]){var s=this.$refs.nav,i=e[this.currentIndex].$el,n=i.offsetLeft-(s.offsetWidth-i.offsetWidth)/2;c(s,n,t?0:+this.duration)}},onSticktScroll:function(t){this.stickyFixed=t.isFixed,this.$emit("scroll",t)},scrollTo:function(t){var e=this;this.$nextTick((function(){e.setCurrentIndexByName(t),e.scrollToCurrentContent(!0)}))},scrollToCurrentContent:function(t){var e=this;if(void 0===t&&(t=!1),this.scrollspy){var s=this.children[this.currentIndex],i=null==s?void 0:s.$el;if(i){var n=Object(o["a"])(i,this.scroller)-this.scrollOffset;this.lockScroll=!0,l(this.scroller,n,t?0:+this.duration,(function(){e.lockScroll=!1}))}}},onScroll:function(){if(this.scrollspy&&!this.lockScroll){var t=this.getCurrentIndexOnScroll();this.setCurrentIndex(t)}},getCurrentIndexOnScroll:function(){for(var t=this.children,e=0;e<t.length;e++){var s=Object(o["e"])(t[e].$el);if(s>this.scrollOffset)return 0===e?0:e-1}return t.length-1}},render:function(){var t,e=this,s=arguments[0],i=this.type,n=this.animated,a=this.scrollable,r=this.children.map((function(t,n){var r;return s(y,{ref:"titles",refInFor:!0,attrs:{type:i,dot:t.dot,info:null!=(r=t.badge)?r:t.info,title:t.title,color:e.color,isActive:n===e.currentIndex,disabled:t.disabled,scrollable:a,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor},style:t.titleStyle,class:t.titleClass,scopedSlots:{default:function(){return t.slots("title")}},on:{click:function(){e.onClick(t,n)}}})})),o=s("div",{ref:"wrap",class:[L("wrap",{scrollable:a}),(t={},t[f["d"]]="line"===i&&this.border,t)]},[s("div",{ref:"nav",attrs:{role:"tablist"},class:L("nav",[i,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),r,"line"===i&&s("div",{class:L("line"),style:this.lineStyle}),this.slots("nav-right")])]);return s("div",{class:L([i])},[this.sticky?s(I,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[o]):o,s(A,{attrs:{count:this.children.length,animated:n,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}})},"9ad7":function(t,e,s){"use strict";s("af98")},a76b:function(t,e,s){"use strict";s("bdca")},ae9e:function(t,e,s){},af98:function(t,e,s){},b807:function(t,e,s){},bc37:function(t,e,s){"use strict";s("19bf")},bda7:function(t,e,s){"use strict";s("68ef"),s("9d70"),s("ae9e"),s("b807")},bdca:function(t,e,s){},da3c:function(t,e,s){"use strict";s("68ef"),s("f319")},ddae:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"cashWheel"},[e("div",{staticClass:"header"},[e("div",{staticClass:"title"},[e("span",[e("span",{staticClass:"iconfont icon-to",on:{click:t.back}}),t._v(" "+t._s(t.$language.format("spins.title",{amount:t.sum,currency:"brl"==t.currency?"R$":t.currency.toUpperCase()}))+" "),e("span",{staticClass:"iconfont icon-help-2",on:{click:function(e){t.tipsShow=!0}}})])]),e("div",{staticClass:"userInfo",on:{click:t.toHome}},[e("span",{staticClass:"iconfont icon-people"}),e("Countup",{staticClass:"cash",attrs:{tag:"span",decimals:2,"end-val":t.amount}}),e("span",[t._v(" "+t._s(t.currency.toUpperCase()))])],1)]),e("div",{staticClass:"content"},[e("cash-main",{staticClass:"cashMain",attrs:{cash:t.cash,bgColor:"#232327",withdraw:!0,status:!t.cash.haveCash||2==t.cashWheel.status,type:t.type},on:{onClick:t.withdraw}}),t.bonus?e("div",{staticClass:"bonusText",on:{click:t.toHome}},[t._v("RECEBEU UM BÔNUS EXTRA EM DINHEIRO DE "+t._s(t.bonus))]):t.cashWheel.invites&&t.cashWheel.invites.length&&"share"!==t.type?e("van-swipe",{staticClass:"my-swipe text",attrs:{autoplay:5e3,"indicator-color":"white","show-indicators":!1,vertical:!0}},t._l(t.cashWheel.invites,(function(s,i){return e("van-swipe-item",{key:i},[t._v(t._s(s.userName)+" "+t._s(t.$language.format("spins.justHelp"))+" "+t._s("brl"==t.currency?"R$":t.currency.toUpperCase())+" "+t._s(s.amount||0))])})),1):t._e(),e("div",{staticClass:"drawMain"},[e("Draw",{staticClass:"draw",attrs:{data:t.cashWheel.data,spins:t.cashWheel.spins||0,gameId:t.cashWheel.gameId,initRandomAmount:t.cashWheel.initRandomAmount,drawDone:t.drawDone,type:t.type},on:{draw:t.draw,drawDone:t.drawDoneFn,showShare:t.showShare}})],1),e("div",{staticClass:"drawContent"},[t.cashWheel.endTime&&"share"!=t.type?e("div",{staticClass:"text"},[e("span",[e("span",{staticStyle:{color:"#8795B1"}},[t._v("Expira em")]),t._v(" "+t._s(t.getEndTime(t.cashWheel.endTime)))])]):t._e(),e("div",{staticClass:"cashButton",on:{click:t.showShare}},[e("div",[t._v(" "+t._s("share"==t.type?t.$language.format("spins.spinfree"):t.$language.format("spins.Invite"))+" ")]),e("div",{staticClass:"iconfont icon-share"})])]),e("Report",{attrs:{invites:t.cashWheel.invites,withdrawLogs:t.cashWheel.withdrawLogs,activeName:t.reportActive,type:t.type},on:{setReportActive:t.setReportActive}})],1),e("withdraw-alert",{attrs:{show:t.withdrawAlert,cash:t.cash},on:{close:function(e){t.withdrawAlert=!1}}}),t.backAlert?e("back-alert",{attrs:{show:t.backAlert,cash:t.cash},on:{close:function(e){t.backAlert=!1},back:function(e){return t.$router.go(-1)}}}):t._e(),e("k-popup",{staticClass:"popup",attrs:{show:t.tipsShow,showBg:!0},on:{close:function(e){t.tipsShow=!1}},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"title"},[t._v("Regras")]),e("div",{staticClass:"popUpMain"},[e("ul",{staticClass:"tipsContent"},[e("li",[t._v(" "+t._s(t.$language.format("spins.rule1",{amount:t.sum,currency:t.currency.toUpperCase()}))+" ")]),e("li",[t._v(t._s(t.$language.format("spins.rule2")))]),e("li",[t._v(t._s(t.$language.format("spins.rule3")))]),e("li",[t._v(t._s(t.$language.format("spins.rule4")))]),e("li",[t._v(t._s(t.$language.format("spins.rule5")))]),e("li",[t._v(t._s(t.$language.format("spins.rule6")))])])])]},proxy:!0}])})],1)},n=[],a=(s("14d9"),s("d81d"),s("0d03"),s("4795"),s("ac1f"),s("5319"),s("5530")),r=(s("480b"),s("a37c")),o=(s("4b0a"),s("2bb1")),c=(s("7844"),s("5596")),l=s("cff3"),h=s("41ab"),u=function(){var t=this,e=t._self._c;return e("div",{staticClass:"withdrawAlert"},[e("van-popup",{attrs:{"close-on-click-overlay":!1},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("div",{staticClass:"close"},[e("span",{staticClass:"iconfont icon-close",on:{click:function(e){return t.$emit("close")}}})]),e("div",{staticClass:"content"},[e("div",{staticClass:"title"},[t._v(t._s(t.$language.format("spins.willSoon")))]),e("div",{staticClass:"main"},[e("div",{staticClass:"cash"},[e("div",{staticClass:"text"},[t._v(t._s(t.$language.format("spins.totalAmount")))]),e("div",{staticClass:"cashContent"},[e("Countup",{attrs:{tag:"span",decimals:2,duration:.8,"end-val":t.cash.haveCash}}),e("span",{staticClass:"currency"},[t._v(" "+t._s((t.currency||"").toUpperCase()))])],1)]),e("ul",{staticClass:"withdrawInfo"},[e("li",[e("span",[t._v(t._s(t.$language.format("spins.withdrawalAccount")))]),e("span",{staticClass:"bold",staticStyle:{color:"#3CC517"}},[t._v(t._s(t.userInfo.username))])]),e("li",[e("span",[t._v(t._s(t.$language.format("spins.paymentMethods")))]),e("span",{staticClass:"bold"},[t._v(t._s(t.payment))])])]),e("ul",{staticClass:"progress"},[e("li",[t._v(t._s(t.$language.format("spins.tips7")))]),e("li",[t._v(t._s(t.$language.format("spins.tips1"))+" "+t._s(t.cash.needCash)+" "+t._s(t.$language.format("spins.tips2")))]),e("li",{staticClass:"active"},[t._v(t._s(Math.round(1*t.cash.needCash+1*t.cash.haveCash))+" "+t._s("brl"==t.currency?"R$":t.currency.toUpperCase())+" "+t._s(t.$language.format("spins.tips9")))])]),e("cash-button",{staticClass:"cashButton",attrs:{"bg-color":"#6DDF39",text:t.$language.format("spins.tips8"),fontSize:".15rem",color:"#fff",type:"2"},on:{onClick:function(e){return t.shareShow()}}})],1)])])],1)},d=[],f=(s("8a58"),s("e41f")),p=s("c71b"),m=s("a940"),v=s("cf45"),b=s("7886"),g={name:"WithdrawAlert",components:{"van-popup":f["a"],"cash-button":m["a"],Countup:p["a"]},props:{show:{type:Boolean,default:!1},cash:{type:Object,default:function(){return{haveCash:0}}}},data:function(){return{payment:""}},computed:Object(a["a"])({},Vuex.mapGetters(["currency","userInfo","country"])),mounted:function(){this.payment=b["m"][this.country]||""},methods:{formatCash:v["h"],shareShow:function(){this.$store.commit("SET_SHARE",!0)}}},w=g,C=(s("a76b"),s("2877")),y=Object(C["a"])(w,u,d,!1,null,"03221ee8",null),x=y.exports,$=(s("fb6a"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"backAlert"},[e("van-popup",{attrs:{"close-on-click-overlay":!1},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("div",{staticClass:"close"},[e("span",{staticClass:"iconfont icon-close",on:{click:function(e){return t.$emit("close")}}})]),e("div",{staticClass:"content"},[e("div",{staticClass:"main"},[e("div",{staticClass:"title"},[t._v("****"+t._s(t.userInfo.username.slice(8))+" "+t._s(this.$language.format("spins.solucky")))]),e("div",{staticClass:"cash"},[e("div",{staticClass:"text"},[t._v(" "+t._s(this.$language.format("spins.tips3")))])]),e("cash-main",{staticClass:"cashMain",attrs:{cash:t.cash,bgColor:"transparent"}}),e("cash-button",{staticClass:"cashButton",attrs:{text:this.$language.format("spins.shareTo"),fontSize:".15rem","bg-color":"#6DDF39",color:"#fff"},on:{onClick:function(e){return t.shareShow()}}}),e("div",{staticClass:"waiver",on:{click:function(e){return t.$emit("back")}}},[t._v(" "+t._s(this.$language.format("spins.cancelWithdraw"))+" "+t._s(t.cash.haveCash)+" "+t._s((t.currency||"").toUpperCase())+" ")])],1)])])],1)}),_=[],I={name:"BackAlert",components:{CashMain:l["a"],"van-popup":f["a"],"cash-button":m["a"]},props:{show:{type:Boolean,default:!1},cash:{type:Object,default:function(){return{haveCash:0,needCash:0}}}},computed:Object(a["a"])(Object(a["a"])({},Vuex.mapGetters(["currency","userInfo"])),{},{percentage:function(){var t=0;return this.cash.haveCash&&(t=100-Math.round(Math.floor(1*this.cash.needCash/(1*this.cash.haveCash)*1e4))/100),t}}),methods:{formatCash:v["h"],shareShow:function(){this.$store.commit("SET_SHARE",!0)}}},S=I,k=(s("01bb"),Object(C["a"])(S,$,_,!1,null,"697fd6a0",null)),O=k.exports,W=function(){var t=this,e=t._self._c;return e("div",{class:["report",t.type]},[e("van-tabs",{attrs:{"before-change":t.beforeChange},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("van-tab",{attrs:{title:t.$language.format("spins.Report"),name:"withdraw"}},["withdraw"==t.activeName?e("cash-list",{staticClass:"tabContent",attrs:{datas:t.withdrawLogsList,type:"2",scroll:!0}}):t._e()],1)],1),e("div",{staticClass:"rules"},[e("h2",[t._v(t._s(t.$language.format("spins.Rules")))]),e("ul",{staticClass:"tipsContent"},[e("li",[t._v(" 1."+t._s(t.$language.format("spins.rule1",{amount:t.sum,currency:t.currency.toUpperCase()}))+" ")]),e("li",[t._v("2."+t._s(t.$language.format("spins.rule2")))]),e("li",[t._v("3."+t._s(t.$language.format("spins.rule3")))]),e("li",[t._v("4."+t._s(t.$language.format("spins.rule4")))]),e("li",[t._v("5."+t._s(t.$language.format("spins.rule5")))]),e("li",[t._v("6."+t._s(t.$language.format("spins.rule6")))])])])],1)},j=[],T=(s("99af"),s("bda7"),s("5e46")),A=(s("da3c"),s("0b33")),N=s("45c5"),D=s("302e"),L={name:"Report",components:{"van-tab":A["a"],"van-tabs":T["a"],"cash-list":N["a"]},computed:Object(a["a"])(Object(a["a"])({},Vuex.mapGetters(["currency","country"])),{},{withdrawLogsList:function(){var t=[];if(this.withdrawLogs.length)if(this.withdrawLogs.length>5)t=t.concat(this.withdrawLogs,this.withdrawLogs.slice(this.withdrawLogs.length-6));else for(var e=11/this.withdrawLogs.length,s=0;s<e;s++)t=t.concat(this.withdrawLogs);return t}}),props:{invites:{type:Object,default:function(){return[]}},withdrawLogs:{type:Object,default:function(){return[]}},activeName:{type:String,default:"withdraw"},type:{type:String,default:null}},data:function(){return{sum:0}},mounted:function(){var t=D["a"][this.country].cash;this.sum=t},methods:{beforeChange:function(t){this.$emit("setReportActive",t)}}},R=L,B=(s("bc37"),Object(C["a"])(R,W,j,!1,null,"17446549",null)),M=B.exports,E=s("6bf4"),H=s("6936"),z=s("5a0c"),F=s.n(z),P={name:"CashWheel",components:{CashMain:l["a"],WithdrawAlert:x,BackAlert:O,Draw:E["a"],KPopup:h["a"],Report:M,Countup:p["a"],"van-swipe":c["a"],"van-swipe-item":o["a"],"van-notice-bar":r["a"]},props:{type:{type:String,default:null}},data:function(){return{withdrawAlert:!1,backAlert:!1,backNum:0,cash:{needCash:4.28,haveCash:95.72,type:1},cashWheel:{},bonus:0,sum:0,drawDone:{},reportActive:"withdraw",tipsShow:!1}},computed:Object(a["a"])(Object(a["a"])({},Vuex.mapGetters(["token","currency","country","userInfo"])),{},{amount:function(){return(this.userInfo.chip||0)+(this.userInfo.bonus||0)+this.bonus}}),created:function(){"share"==this.type&&(this.cash.needCash=2.28,this.cash.haveCash=97.72),this.getData(),this.ws()},mounted:function(){var t=D["a"][this.country].cash;this.sum=t},destroyed:function(){clearInterval(this.endTimer),this.token&&this.$store.dispatch("GetUserInfo",{noLogin:!0,noPrompt:!0}),this.closeWs()},methods:{dayjs:F.a,formatCash:v["h"],getEndTime:function(t){var e="",s=Math.floor(t/24/60/60);s>1&&(e+=s+"d");var i=Math.floor(t/60/60)%24;!(i>9)&&(i="0"+i),e=e+" "+i;var n=Math.floor(t/60)%60;!(n>9)&&(n="0"+n),e=e+":"+n;var a=Math.floor(t)%60;return!(a>9)&&(a="0"+a),e=e+":"+a,e},isShare:function(){return"share"==this.type&&(location.href="https://www.claze.com/register/?sc="+Vue.prototype.$sc,!0)},showShare:function(){this.isShare(),this.$store.commit("SET_SHARE",!0)},ws:function(){var t=this;this.closeWs(),H["a"].getInstance().socketConnect({country:this.country},(function(){t.token&&H["a"].getInstance().wsLogin(),H["a"].getInstance().handleMsg({key:"cashWheelWithdraw",configKey:"CashWheelMsg",fn:function(t){}}),H["a"].getInstance().handleMsg({key:"cashWheelAssist",configKey:"CashWheelMsg",fn:function(e){t.addInvite(e)}}),t.requestMsgReq()}))},requestMsgReq:function(){H["a"].getInstance().requestMsgReq({configKey:"GameLeagueFootballMsg",data:{type:0,address:"cashWheel",location:"",country:this.country}})},closeWs:function(){H["a"].getInstance().socketBroken()},toHome:function(){this.isShare()||this.$router.push({name:"Home"})},addInvite:function(){this.getData()},back:function(){if(this.isShare(),this.backNum++,!this.token||this.backNum>=2){var t=window.sessionStorage,e=t.getItem("count");1==e?this.$router.push({name:"Home"}):this.$router.go(-1)}this.backAlert=!0},setReportActive:function(t){this.reportActive=t},getData:function(){var t=this;this.$get({url:"kaya/act/index",params:{}}).then((function(e){var s=e.data,i={initRandomAmount:s.randomAmount,spins:1,gameId:s.cashWheelInfo.gameId,data:s.cashWheelInfo.cfgCashDetails,withdrawLogs:(s.withdrawLogs||[]).map((function(t){return t.value="+"+t.amount,t.assistType=1,t})),invites:(s.invites||[]).map((function(t){return t.userName=t.mobile,t.value="+"+(t.amount?t.amount:0),t}))};if(s.userCashWheelInfo)t.cash={haveCash:Object(v["h"])({value:s.userCashWheelInfo.curAmount,toFixed:!0}),needCash:Object(v["h"])({value:Math.round(100*s.userCashWheelInfo.amountLimit-100*s.userCashWheelInfo.curAmount)/100,toFixed:!0}),type:1},i=Object(a["a"])(Object(a["a"])({},i),{},{status:s.userCashWheelInfo.status,id:s.userCashWheelInfo.id,spins:s.userCashWheelInfo.daySpinNumLimit-s.userCashWheelInfo.daySpinNum,endTime:(+new Date(s.userCashWheelInfo.endTime)-s.currentTimeMillis)/1e3}),clearInterval(t.endTimer),t.endTimer=setInterval((function(){t.$set(t.cashWheel,"endTime",t.cashWheel.endTime-1),t.cashWheel.endTime<=0&&(t.$set(t.cashWheel,"endTime",0),t.getData(),clearInterval(t.endTimer))}),1e3);else if("share"!=t.type)return Vue.prototype.$showCashWeel=1,localStorage.setItem("cashWheelNum",+new Date((new Date).toLocaleDateString())+",0"),void t.$router.replace({name:"Home"});t.cashWheel=i}))},spin:function(){var t=this;this.$get({url:"kaya/cashwheel/spin",params:{freeSpin:0,initRandomAmount:this.cashWheel.initRandomAmount,gameId:this.cashWheel.gameId}}).then((function(e){t.drawDone={time:+new Date,id:e.data.id,reward:e.data.reward},t.$set(t.cashWheel,"spins",t.cashWheel.spins-1)}))["catch"]((function(){t.drawDone={time:+new Date}}))},spininit:function(){var t=this;this.$get({url:"kaya/cashwheel/spininit",params:{gameId:this.cashWheel.gameId}}).then((function(e){t.drawDone={time:+new Date,id:e.data.select.id,reward:e.data.select.reward}}))["catch"]((function(){t.drawDone={time:+new Date}}))},draw:function(){this.isShare(),this.cashWheel.id?this.spin():this.spininit()},drawDoneFn:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=e.type,i=e.reward,n=void 0===i?0:i;2==s&&(this.bonus+=1*n),setTimeout((function(){t.getData()}),1e3)},withdraw:function(){var t=this;this.isShare(),this.token?this.cash.haveCash&&!this.cashWheel.status?this.withdrawAlert=!0:this.cash.haveCash&&1==this.cashWheel.status?this.$get({url:"kaya/cashwheel/withdraw",params:{gameId:this.cashWheel.gameId,wheelId:this.cashWheel.id}}).then((function(){t.$router.push({name:"Profile"})})):2==this.cashWheel.status&&(localStorage.setItem("cashWheelNum",+new Date((new Date).toLocaleDateString())+",0"),this.$router.replace({name:"Home"})):this.$router.push({name:"Login",query:{redirect:"/CashWheel"}})}}},U=P,V=(s("9ad7"),Object(C["a"])(U,i,n,!1,null,"a9fd3108",null));e["default"]=V.exports},e9d9:function(t,e,s){},f319:function(t,e,s){}}]);