2026-05-15 10:23:06 +08:00

1 line
24 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["app"],{DmyW:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIwAAACMCAMAAACZHrEMAAAAS1BMVEVHcEwcVp0cVp0cVp0cVp0cVp0cVp0cVp0cVp0cVp0cVp0cVp0cVp0cVp1PnfgcVp0hXqhLmPI1eco7gtZAid8dWJ8qabYvcb9FkOdnsfC3AAAADnRSTlMAmjZ/6k52CfLGYiDbr2jrWCgAAATqSURBVHja1VzblpswDAy3GAjgC9jm/7+0kO52U64a21B3nnpyktPZkSxZsuzHwxksLZ5JWzV5WXJelnlTtcmzSNnjZrAiaxu+g6bNitsYpVnFT1Fl6Q2SJDknIk8uFSilM/nmc5E+rK64A6o6vDzsmXNH5M+wdFhWcg+UGQuoiheVN51Q6hQND4CmCEDlVfFAqF7/3kLBbBVOFn9x6pIHRlm7mijhFyBhMZjIx1Rpzi9CDuerouSXoQRDTs0vBeTGT34xnnQuGb8cWTS6ANrU/BaQ/KbgN4GwptLyLjLlabx55fw25CexmFX8RlTHeSrhtyKJYCGRltSrvJtMue82Dg4jjFX9DGWEk9uEirzaqLH7gBwsTugZxEhCyW6NwYQxFGQk0W9RmTHaAIZC0oBWe1Te6mDG2kgLjF43ajF2h5AKqjWZj/ca2Z0BEmflw4zuvaojYATYlMx5c0fiMpkKYJO5CkPkArFZSEMWxnZkjNpNGpZT15Gkk+l6+s6GOWRrPXYI6OGvdgi+CuICuM1HGE6pOUBiZABDpfD+ru9QkKVJUPcVMBe6NH9cuLhMGECaArOSlg5kFGqnPHi8+1hQZDtha8nFSoCdUigVSCcyFksJ1WVr6b2zgeIe4xe6DOA0nAELW7mR6TSyuLNL/Rfw4NlpWuJ3h6X+Ow49Lj4nF1LtRKZxI6N20qZdfk4m09D9l48r9fsdFxncyEweTA15S2V2yEjuTialF5LDKpjZnbAi3Rx4Wk7k4u1vHWS/HQbt6mM6mSe9cbaIM+Pmap83mtYxzkyJm7qyV0YxW9tQtfL0kV7LtfRGiNjwjiXBYZLBuG6Dp+xEbz7ItTQL281cltUM0K1pHvQmdL9ViHx2JHq98S2g5M4f9O6D2ew0iK++nuzFVjoFXIaXAJn17uqr7yGMNUJvp3YLkQG+vN5EyO//6zcVMfg0RjhHyGxlxtHqo55jzyEygJn05v5KDsoaa/vRs2ME+szOpkEGqJq+yEDnS+A+WGqITP7AJnUGiAzYLW+wvriGSlzMSHM6aLEfGBm+YvpJlOjZm7mgv/hnCwGfqBOdeHA57cGPsUmWGmBd5m1niv9InPc8lQOXaUPO8B9pfVJdSsNdwB4Pl5FAcRxvrNNxZQOUtz9M7KmZZO+gTYsPywhFizQjTCdDp0K0ogc9lE4BNIvA+PvezQjQf4FTWwG3aJBlVUENRuHSYew14jLk1qtx63aS00IKNKUduZCPTnOgXe/Y66SzSegHGc66kJNmQT3i0dqHC2nL93NKeWqnofODIVvpfD1ZTy6EMiGlHpgK6Uvm1FAV+ShZeXM5LS1r8iG7vzBn0vx1yH6YEkwALid9mow8mNGHIHPYwVrOrOxLo2UQMpYszJE0Qax02KlZDfPsFnNahCGjjoo3+gDYcLHPbAyA7adLcfHSLqChQeGtzdH2s0LHKU3vo85HE3LDe1/4oKmwbnzkoATXHPFe2oDRPG47jJJMgzKWW3kMJ89/oxBmYqXmMeBhxvjG+5/zXLBS1hohaFXBwXCy99i25hzrhdT/y0B7XKP+UV2CiOt6SFwXZ+K6UhTXZau4rqHFdUEvrquLcV3qjOu6a1wXgeO6Ih3X5fHIrtXH9eBAXE8xRPZIRWTPd8T1sElkT75E9hhOZM8ExfaAUmRPS0X36NZ1z5H9ArM0fIKJ9jBtAAAAAElFTkSuQmCC"},Rg2q:function(t,e){t.exports=SVGA},Vtdi:function(t,e,a){"use strict";a.r(e);var i=a("dUVM"),s=a.n(i),n=a("i7/w"),o=a.n(n),r=a("kjbw"),l=a.n(r),c=a("WIBD"),d=a.n(c),u={props:["show"]},h=a("KHd+"),g=Object(h.a)(u,(function(){return(0,this._self._c)("div",{directives:[{name:"show",rawName:"v-show",value:this.show,expression:"show"}],staticClass:"loading"})}),[],!1,null,null,null).exports,p={computed:{...Object(c.mapState)(["loading"])},data:()=>({viewHeight:window.innerHeight}),created(){window.addEventListener("resize",()=>{this.viewHeight=window.innerHeight})},mounted(){this.$store.dispatch("getInitInfo")},components:{Loading:g}},m=Object(h.a)(p,(function(){var t=this._self._c;return t("div",{attrs:{id:"app"}},[t("keep-alive",{attrs:{include:"home"}},[t("router-view",{staticClass:"appView"})],1),this._v(" "),t("Loading",{directives:[{name:"show",rawName:"v-show",value:this.loading,expression:"loading"}]})],1)}),[],!1,null,null,null).exports,v=a("zr5I"),f=a.n(v);const w=navigator.userAgent.match(/iPhone|iPod|ios|iPad/i),y=_()>=24;function _(){return function(t,e){for(var a={},i=t.split(";"),s=0;s<i.length;s++)for(var n=i[s].split(","),o=0;o<n.length;o++){var r=n[o].split("="),l=r[0],c=r[1]||"";a[l]=c,/version/i.test(l)&&(a.ver=k(c))}if(e)return a[e];return a}(navigator.userAgent,"ver")}function k(t){var e=0;if(t&&"string"==typeof t){var a=(t=t.replace("(",".").replace(/[^\.\d]/g,"")).split("."),i=a.length?a[a.length-1]:0;e=isNaN(i)?0:parseInt(i)}return e}function S(t){try{w?sendJsData(t):y?JSInterface.sendData(JSON.stringify({method:"sendJsData",data:t})):JSInterface.sendJsData(t)}catch(t){}}function x(t,e){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&"string"==typeof t){const i="string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e?e:JSON.stringify(e),s=void 0!==i&&null!=e;try{if(!w)return y?JSInterface.sendData(JSON.stringify({method:t,data:e})):s?JSInterface[t](i):JSInterface[t]();if(a)return prompt(JSON.stringify({method:t,data:e}));s?window[t](i):window[t]()}catch(t){}}}const M=navigator.userAgent.match(/iPhone|iPod|ios|iPad/i),b=_()>=24;let C,D={},L=!1;window.onClientReady=()=>{L=!0};const P=[];function O(){clearInterval(C),C=setInterval(()=>{const t=P.shift();if(t)try{window.getSign(t)}catch(t){}},200)}function A(t){const e={};return window.location.search.replace(/[?&]+([^=&]+)=([^&]*)/gi,(t,a,i)=>{e[a]=i}),t&&void 0!==e[t]?decodeURIComponent(e[t]):null}function T(t){if(t&&"string"==typeof t&&!(arguments.length<=1)&&arguments.length-1){const e=/%s/.test(t);for(let a=0;a<(arguments.length<=1?0:arguments.length-1);a++){const i=e?/%s/:new RegExp("\\{"+a+"\\}","g");t=t.replace(i,a+1<1||arguments.length<=a+1?void 0:arguments[a+1])}}return t}function I(t){return(t+"").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function $(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;const a=1e3,i=document.createElement("div");i.style.cssText="position:fixed; z-index:10000; left:0; top:0; right:0; bottom:0; text-align:center; pointer-events:none",i.innerHTML='<span style="display:inline-block; padding:.1rem .2rem; max-width:80%; background:#212125; color:#fff; border-radius:.1rem; opacity:0; margin-top:'+Math.round(window.innerHeight/2)+"px; transition:opacity "+a/1e3+'s">'+I(t)+"</span>",document.body.appendChild(i);const s=i.firstChild;setTimeout(()=>{s.style.opacity=1},0),setTimeout(()=>{s.style.opacity=0,setTimeout(()=>{document.body.removeChild(i)},a)},a+e)}O(),document.addEventListener("visibilitychange",()=>{!1===document.hidden?O():clearInterval(C)}),window.signCallbacks={},window.finishSign=t=>{const e=JSON.parse(t),a=e.callbackId;window.signCallbacks&&"function"==typeof window.signCallbacks[a]&&window.signCallbacks[a](e.data,t)};function R(t,e,a){return new RegExp("(\\?|&)"+e+"=").test(t)?t:(t=t.replace(/(\?|&)+$/,""))+(/\?/.test(t)?"&":"?")+e+"="+encodeURIComponent(a)}function H(t,e){return window.__SMASH_EGG_GATEWAY__&&(t=window.__SMASH_EGG_GATEWAY__.rewriteUrl(t)),new Promise((a,i)=>{B.commit("updateLoading",!0),f.a.get(t,e).then(t=>{B.commit("updateLoading",!1),a(t)}).catch(t=>{B.commit("updateLoading",!1),i(t)})})}function j(){return H("/h5/smash-golden-egg/config?uid={uid}&token={token}&rid={rid}&_login_uid={_login_uid}")}function N(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;return H(`/h5/smash-golden-egg/records?uid={uid}&token={token}&rid={rid}&_login_uid={_login_uid}&limit=${e}&offset=${t}`)}f.a.interceptors.request.use(async t=>{const e=atob,a=encodeURIComponent;let{method:i,url:s,data:n}=t;if(s){const t=A("rid")||A("room_id")||"",e=A("uid")||"",i=A("token")||"";s=s.replace("{rid}",a(t)).replace("{uid}",a(e)).replace("{_login_uid}",a(e)).replace("{token}",a(i))}s=R(s,"lang",__lang),s=R(s,"t",Date.now());{const t=e("c2lnbnR1cmU"),a=A(t)||"";a&&(s=R(s,t,a))}if(t.url=s,n instanceof FormData){const t={};n.forEach((e,a)=>{t[a]=e}),n=t}if("post"==i&&n){const e=new FormData;for(let t in n)e.append(t,n[t]);t.data=e}{const e=Object.assign({},n,function(t){const e={};if(t&&"string"==typeof t){const a=t.replace(/#[^#]*$/,"").split("?");if(2==a.length){const t=a[1].split("&");for(let a=0;a<t.length;a++){const i=t[a].split("="),s=i[0],n=i[1];e[s]=decodeURIComponent(n)}}}return e}(s)),a=btoa((e.action||"")+Date.now()+Math.floor(1e3*Math.random())),i=await function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((a,i)=>{const s=Math.round(Date.now()/1e3);"object"==typeof t&&e&&"string"==typeof e||a({sign:"",timestamp:s});const n=JSON.stringify({callbackId:e,data:t});if(M){if(window.signCallbacks[e]=t=>{a(t)},!/bundleId/.test(navigator.userAgent))return void finishSign(JSON.stringify({callbackId:e,data:{sign:"",timestamp:s}}));try{L?(D={},P.push(n)):(clearInterval(D[e]),D[e]=setInterval(()=>{L&&(clearInterval(D[e]),P.push(n))},100))}catch(t){finishSign(JSON.stringify({callbackId:e,data:{sign:"",timestamp:s}}))}}else try{if(b)a(JSON.parse(x("getSign",n)));else{const t=window.JSInterface.getSign(n);a(JSON.parse(t))}}catch(t){a({sign:"",timestamp:s})}})}(e,a),{sign:o,timestamp:r}=i;t.headers={sign:o,timestamp:r,...t.headers};const l=[];for(let t in e)""==e[t]&&l.push(t);l.length}return t},t=>Promise.reject(t));var J=new o.a;o.a.use(d.a);var B=new d.a.Store({state:{prizesType:["coin"],loading:!1,notices:[],activity:{},owner:{},rankData:{},svgaDdress:{},normalList:[],superList:[],isSuperMode:!1,luckyValue:0,isLuckyTime:!1,mapCount:0,shells:0,jewels:0,coins:0,mapPrice:0,drawOptions:[],superMaxNum:0,topOne:{}},getters:{},mutations:{updateLoading(t,e){t.loading=e},setInitInfo(t,e){Object.assign(t,e)},setRankData(t,e){t.rankData=e},setRankStatus(t,e){let a=JSON.parse(JSON.stringify(t.rankData));t.rankData.hasOwnProperty(e.index)?a[e.index][e.key]=e.value:a[e.index]={[e.key]:e.value},t.rankData=a}},actions:{async getInitInfo(t){let{commit:e,dispatch:a}=t;try{await function(t,e){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(async(i,s)=>{if("function"==typeof t&&e&&"string"==typeof e){if(a&&B.state.loadDataCount&&B.state.loadDataCount[e])return void i();const n=await t();if(n.data){const{response_status:t,response_data:a}=n.data;t&&""===t.error?(B.commit(e,a),B.state.loadDataCount=B.state.loadDataCount||{},B.state.loadDataCount[e]?B.state.loadDataCount[e]++:B.state.loadDataCount[e]=1,i(a)):(t.error&&$(t.error),s(n.data))}else s(n)}else s()})}(j,"setInitInfo").then(()=>{})}catch(t){}},async reloadInitInfo(t){let{commit:e}=t;try{j().then(t=>{e("setInitInfo",{...t.data.response_data})})}catch(t){}}}}),V=a("Y4mt"),E=a.n(V),G=a("Rg2q"),W={props:{delay:{type:Number,default:9e3},total:{type:Number,default:3}},data:()=>({list:[],timer:null}),computed:{...Object(c.mapState)(["notices"])},watch:{notices(t){this.list=JSON.parse(JSON.stringify(t||[])),this.list.length&&this.markSendText()}},created(){this.reqNotices()},methods:{replaceLang:T,markSendText(){if(!this.list||!this.list.length)return;let t=document.querySelector("#idDom"),e="";if(!t)return;e=this.isLocal(this.areaData.AR)?"right":"left",this.list.push(this.list[0]);let a=this.list.shift(),i=document.createElement("div"),s=`\n <span>${a.nick}</span>\n <span>${this.lang.roolMsg}</span>\n `;if(a.prizeList.length)for(let t=0;t<a.prizeList.length;t++)s+=`<img class="image" src="${a.prizeList[t].image}">`,a.prizeList[t].num>1&&(s+=`x<em>${a.prizeList[t].num}</em>`);i.innerHTML=s,this.$nextTick(()=>{i.style[e]=t.clientWidth+"px";let a=t.clientWidth,s=!1;setTimeout(()=>{i.style[e]=-i.clientWidth-10+"px"},0);let n=setInterval(()=>{a-=1,a<t.clientWidth-i.clientWidth-20&&!s&&(s=!0,this.markSendText()),a<-i.clientWidth&&(clearInterval(n),i.remove()),i.style[e]=a+"px"},20);t.insertBefore(i,t.children[0])})},reqNotices(){H("/h5/smash-golden-egg/notices?uid={uid}&token={token}&rid={rid}&_login_uid={_login_uid}").then(t=>{const{list:e}=t.data.response_data;this.$store.commit("setInitInfo",{notices:e})})}}},z=Object(h.a)(W,(function(){var t=this._self._c;return t("div",{class:[this.localStr],attrs:{id:"rollMsgLeft"}},[t("div",{staticClass:"idDom",attrs:{id:"idDom"}})])}),[],!1,null,null,null).exports;var F={props:{url:{type:String,required:!0},setting:{type:Object,default:null},events:{type:Object,default:null},autoPlay:{type:Boolean,default:!0}},watch:{url(t){this.initSvga(t)}},data:()=>({player:null,pendingAction:null}),mounted(){this.initSvga()},destroyed(){this.player&&this.player.clear(),this.player=null},methods:{playerFn(t){this.player&&this.player[t]?this.player[t]():this.pendingAction=t},async initSvga(){if(!this.url)return;const t=await(e=this.url,new Promise((t,a)=>{(async()=>{try{const a=new G.Downloader,i=new G.Parser({disableWorker:!("Worker"in window)}),s=await a.get(e),n=await i.do(s);t(n)}catch(t){a(t)}})()}));var e;if(this.player&&this.player.destroy(),this.player=await async function(t,e){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#canvas",i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const s=new G.Player(a);return e&&s.set(e),await s.mount(t),i&&s.start(),s}(t,this.setting,this.$refs.svga,this.autoPlay),"object"==typeof this.events&&null!==this.events)for(let t in this.events)"function"==typeof this.events[t]&&this.player.$on(t,()=>{this.events[t](this.player)});this.pendingAction&&(this.playerFn(this.pendingAction),this.pendingAction=null)}}},q={data:()=>({isShowModal:!1,isShowModal1:!1,itemList:[],timer:null}),methods:{show(t){this.itemList=t,this.isShowModal1=!0,this.isShowModal=!0,this.timer=setTimeout(()=>{this.timer=null,this.$nextTick(()=>{this.handleOutModal()})},4e3)},handleOutModal(){this.timer&&clearTimeout(this.timer),this.itemList=[],this.isShowModal=!1,this.$emit("close"),setTimeout(()=>{this.isShowModal1=!1},200)}}},Z={data:()=>({isShowModal:!1,isShowModal1:!1,itemList:[],timer:null}),methods:{show(t){this.itemList=t,this.isShowModal=!0,this.isShowModal1=!0,this.timer=setTimeout(()=>{this.timer=null,this.$nextTick(()=>{this.handleOutModal()})},4e3)},handleOutModal(){this.timer&&clearTimeout(this.timer),this.itemList=[],this.isShowModal=!1,this.$emit("close"),setTimeout(()=>{this.isShowModal1=!1},200)}}},U={components:{RoolMsgLeft:z,SvgaPlayer:Object(h.a)(F,(function(){return(0,this._self._c)("canvas",{ref:"svga",attrs:{id:"svgaPlayers"}})}),[],!1,null,null,null).exports,RewardModal:Object(h.a)(q,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowModal1,expression:"isShowModal1"}],attrs:{id:"RewardModal"}},[e("div",{staticClass:"modalMask",on:{click:t.handleOutModal}}),t._v(" "),e("transition",{attrs:{name:"sideTop"}},[t.isShowModal?e("main",[e("div",{staticClass:"rewardBg"},[e("div",{staticClass:"gifts"},t._l(t.itemList,(function(a,i){return e("div",{key:i+a,staticClass:"main"},[e("div",{staticClass:"imgBox"},[e("img",{attrs:{src:a.image}})]),t._v(" "),e("p",{domProps:{innerHTML:t._s(a.name)}}),t._v(" "),e("em",[t._v("x"+t._s(a.num))])])})),0)])]):t._e()])],1)}),[],!1,null,"50146009",null).exports,MoreRewardModal:Object(h.a)(Z,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowModal1,expression:"isShowModal1"}],class:{cu:t.isShowModal},attrs:{id:"MoreRewardModal"}},[e("div",{staticClass:"modalMask",on:{click:t.handleOutModal}}),t._v(" "),e("transition",{attrs:{name:"sideTop"}},[t.isShowModal?e("main",[e("div",{staticClass:"rewardBg"},[e("div",{staticClass:"gifts"},t._l(t.itemList,(function(a,i){return e("div",{key:i+a.id,staticClass:"main"},[e("div",{staticClass:"imgBox"},[e("img",{attrs:{src:a.image}}),t._v(" "),e("span",[t._v("x"+t._s(a.num))])]),t._v(" "),e("p",{domProps:{innerHTML:t._s(a.name)}}),t._v(" "),e("em",[t._v("x"+t._s(a.num))])])})),0)])]):t._e()])],1)}),[],!1,null,"173ae0b5",null).exports},computed:{...Object(c.mapState)(["coins","topOne","mapPrice"]),btns(){return this.$store.state.drawOptions&&this.$store.state.drawOptions.length?this.$store.state.drawOptions:[{times:1,price:this.mapPrice},{times:10,price:10*this.mapPrice},{times:100,price:100*this.mapPrice}]},prices(){let t=this.topOne;return t&&t.gotPrices?t.gotPrices>999999?"999999+":t.gotPrices:0},logo:()=>window.logo},data:()=>({isPlay:!1,isLoading:!1,list:[],isMore:!1}),methods:{handleGoAppWallet(){S("app://walletpage")},svgaCb(){this.isMore?this.$refs.moreRewardModal.show(this.list):this.$refs.rewardModal.show(this.list),this.$store.dispatch("reloadInitInfo")},handleShowModal(t){if(this.isLoading)return;if(this.isPlay)return;let a=(this.btns||[]).find(e=>(e.times||e)==t),i=a&&void 0!==a.price?a.price:this.mapPrice*t,e=this.coins-i;this.isMore=1!=t,e>=0?(this.isLoading=!0,function(t){return H("/h5/smash-golden-egg/draw?uid={uid}&token={token}&rid={rid}&_login_uid={_login_uid}&times="+t)}(t).then(t=>{const{list:e,balance:a}=t.data.response_data,{error:i,code:s}=t.data.response_status;i?(this.$toast(i),s&&110001==s&&this.handleGoAppWallet()):(this.isPlay=!0,this.list=e,this.$store.commit("setInitInfo",{coins:a}),this.$refs.playerLottery.playerFn("start"))}).finally(()=>{this.isLoading=!1})):this.handleGoAppWallet()}}},X=Object(h.a)(U,(function(){var t,e,a=this,i=a._self._c;return i("div",{class:[a.localStr],attrs:{id:"EggsIndex"}},[i("div",{staticClass:"icon rules",on:{click:function(t){return a.$router.push("/eggRulesPage")}}}),a._v(" "),i("div",{staticClass:"icon record",on:{click:function(t){return a.$router.push("/recordPage")}}}),a._v(" "),i("RoolMsgLeft"),a._v(" "),i("div",{staticClass:"balanceBox",on:{click:a.handleGoAppWallet}},[i("span",[a._v(a._s(a.coins))])]),a._v(" "),i("div",{staticClass:"topOneBox",on:{click:function(t){return a.$router.push("/dayRankPage")}}},[i("div",{class:["avatar",{not:!a.topOne}]},[i("img",{attrs:{src:null!==(t=a.topOne)&&void 0!==t&&t.avatar?a.topOne.avatar:a.logo}})]),a._v(" "),null!==(e=a.topOne)&&void 0!==e&&e.avatar?[i("div",{staticClass:"gold"}),a._v(" "),i("em",[a._v(a._s(a.prices))])]:i("em",[a._v(a._s(a.lang.topOneText))])],2),a._v(" "),i("div",{staticClass:"canvasBox"},[i("SvgaPlayer",{directives:[{name:"show",rawName:"v-show",value:!a.isPlay,expression:"!isPlay"}],key:"_default",ref:"defaultPlayer",attrs:{url:"assets/effects/14266574cde73b2e51822e3d37a06eda_1678260995.svga"}}),a._v(" "),i("SvgaPlayer",{directives:[{name:"show",rawName:"v-show",value:a.isPlay,expression:"isPlay"}],key:"_lottery",ref:"playerLottery",staticClass:"lotterSvga",attrs:{url:"assets/effects/088fc4033dbb42f873fc31d7c363d52d_1678260972.svga",events:{end:a.svgaCb},setting:{loop:1,cacheFrames:!0},autoPlay:!1}})],1),a._v(" "),a.isPlay?i("footer",[a._v(a._s(a.lang.bounsToast))]):i("div",{staticClass:"btnBox"},a._l(a.btns,(function(t){return i("div",{key:t.times||t,staticClass:"main"},[i("div",{staticClass:"price"},[a._v(a._s(void 0!==t.price?t.price:a.mapPrice*(t.times||t)))]),a._v(" "),i("div",{staticClass:"btn",on:{click:function(e){return a.handleShowModal(t.times||t)}}},[i("em",[a._v(a._s(a.lang.lotteryBtnText.replace("%n",t.times||t)))])])])})),0),a._v(" "),i("RewardModal",{ref:"rewardModal",on:{close:()=>a.isPlay=!1}}),a._v(" "),i("MoreRewardModal",{ref:"moreRewardModal",on:{close:()=>a.isPlay=!1}})],1)}),[],!1,null,"5cdafd1f",null).exports;const K=new G.Downloader,Q=new G.Parser({disableWorker:!0});var Y={name:"home",data:()=>({isReload:!1,svgaLinkData:{0:{addres:"assets/effects/088fc4033dbb42f873fc31d7c363d52d_1678260972.svga"}}}),computed:{...Object(c.mapState)(["svgaDdress","owner"])},created(){},mounted(){},methods:{handleClickReload(){this.isReload||(this.isReload=!0,setTimeout(()=>{this.isReload=!1,this.$store.dispatch("getInitInfo"),J.$emit("reload")},300))},downloaderData(t){return new Promise((e,a)=>{let i=[];for(let e in t)i.push(this.loadSvgaData(t[e]));Promise.all(i).then(t=>{e(t)})})},loadSvgaData:t=>new Promise((e,a)=>{(async()=>{const a=await K.get(t.addres),i=await Q.do(a);t.data=i,e(i)})()})},components:{EggsIndex:X}},tt=Object(h.a)(Y,(function(){var t=this._self._c;return t("div",{staticClass:"page pageIndex"},[t("EggsIndex")],1)}),[],!1,null,"3b98feea",null).exports;var et=function(t,e){var a=t.getFullYear(),i=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,s=t.getDate()<10?"0"+t.getDate():t.getDate(),n=t.getHours()<10?"0"+t.getHours():t.getHours(),o=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),r=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return 1==e?`${i}${s}${n}:${o}`:2==e?`${s}/${i} ${n}:${o}`:3==e?`${n}:${o} ${s}/${i}`:4==e?`${i}/${s} ${a}`:5==e?`${a} ${i}/${s} ${n}:${o}`:6==e?`${i}${s}${n}:${o}:${r}`:7==e?`${s}/${i} ${n}:${o}:${r}`:8==e?`${n}:${o}:${r} ${s}/${i} `:9==e?`${s}/${i} `:10==e?`${n}:${o}:${r}`:void 0},at={data:()=>({list:[],loaded:!1,more:!0,from:0}),mounted(){this.scrollable=document.querySelector("#ulList"),this.scrollable&&(this.scrollable.addEventListener("scroll",this.onScroll),this.onScroll())},destroyed(){this.scrollable.removeEventListener("scroll",this.onScroll)},methods:{markDate:t=>(t=t.replace(/\-/g,"/"),et(new Date(1e3*t),9)),reqMyHuntRecord(){N(0).then(t=>{const{list:e}=t.data.response_data;this.list=e})},onScroll(){if(this.scrollable.scrollTop+this.scrollable.clientHeight>=this.scrollable.scrollHeight-10){if(this.loaded)return;this.more&&(this.loaded=!0,N(this.from).then(t=>{const{list:e,finished:a}=t.data.response_data;if(this.from=this.from+e.length,0===e.length)this.more=!1;else{let t=JSON.parse(JSON.stringify(this.list));t=t.concat(e),this.$set(this,"list",t),(e.length<20||a)&&(this.more=!1)}}).finally(()=>{this.loaded=!1}))}}}},it=Object(h.a)(at,(function(){var t=this,e=t._self._c;return e("div",{class:[t.localStr],attrs:{id:"recordPage"}},[e("nav",{on:{click:function(e){return t.$router.back()}}},[t._v(t._s(t.lang.recordPageTitle))]),t._v(" "),e("div",{staticClass:"title"},t._l(t.lang.recordTableTitle,(function(a){return e("div",{key:a},[t._v(t._s(a))])})),0),t._v(" "),e("ul",{attrs:{id:"ulList"}},t._l(t.list,(function(a,i){return e("li",{key:a.huntTime+i},[e("div",{staticClass:"giftBox"},t._l(a.prizeList,(function(a,i){return e("div",{key:a.id+i,staticClass:"imageBox"},[e("img",{attrs:{src:a.image}}),t._v(" "),a.num>1?e("div",{staticClass:"tag"},[t._v("x"+t._s(a.num))]):t._e()])})),0),t._v(" "),e("div",{staticClass:"dateBox"},[t._v(t._s(t.markDate(a.huntTime)))])])})),0),t._v(" "),t.list.length?t._e():e("footer",[t._v(t._s(t.lang.noData))])])}),[],!1,null,"6dc09bd7",null).exports,st={computed:{...Object(c.mapState)(["normalList"])}},nt=Object(h.a)(st,(function(){var t=this,e=t._self._c;return e("div",{class:[t.localStr],attrs:{id:"eggRulesPage"}},[e("nav",{on:{click:function(e){return t.$router.back()}}},[t._v(t._s(t.lang.eggRulesTitle))]),t._v(" "),e("h4",[t._v(t._s(t.lang.eggRulesMsg))]),t._v(" "),e("div",{staticClass:"gifts"},t._l(t.normalList,(function(a,i){return e("div",{key:i+a,staticClass:"main"},[e("div",{staticClass:"imgBox"},[3!=a.type?e("span",{staticClass:"nums"},[t._v("x"+t._s(a.num))]):t._e(),t._v(" "),e("img",{attrs:{src:a.image}})]),t._v(" "),e("p",{domProps:{innerHTML:t._s(a.name)}}),t._v(" "),3!=a.type?e("em",[e("img",{attrs:{src:"assets/common/yumi_coin.png",alt:""}}),t._v(t._s(a.price))]):e("em",[t._v("x"+t._s(a.num))])])})),0)])}),[],!1,null,"0333b9be",null).exports,ot={data:()=>({list:[]}),created(){this.reqDayRank()},methods:{reqDayRank(){H("/h5/smash-golden-egg/rank/day?token={token}&_login_uid={_login_uid}").then(t=>{const{list:e}=t.data.response_data;this.list=e})}}},rt=Object(h.a)(ot,(function(){var t=this,e=t._self._c;return e("div",{class:[t.localStr],attrs:{id:"dayRankPage"}},[e("nav",{on:{click:function(e){return t.$router.back()}}},[t._v(t._s(t.lang.dayRankTitle))]),t._v(" "),t.list.length?t._e():e("footer",[t._v(t._s(t.lang.noData))]),t._v(" "),e("ul",t._l(t.list,(function(a,i){return e("li",{key:a.uid,class:["rank"+i]},[e("div",{staticClass:"rankBox"},[t._v(t._s(i?i+1:"Top"+(i+1)))]),t._v(" "),e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:a.avatar,expression:"item.avatar"}],staticClass:"avatar"}),t._v(" "),e("div",{staticClass:"nick textHidden"},[t._v(t._s(a.nick))]),t._v(" "),e("div",{staticClass:"scoreBox"},[t._v(t._s(a.gotPrices))])])})),0)])}),[],!1,null,"6ae92a9e",null).exports;o.a.use(E.a);var lt=new E.a({routes:[{path:"/",name:"index",component:tt,meta:{title:_lang.title}},{path:"/dayRankPage",name:"dayRank",component:rt,meta:{title:_lang.dayRankTitle}},{path:"/eggRulesPage",name:"eggRules",component:nt,meta:{title:_lang.eggRulesTitle}},{path:"/recordPage",name:"recordList",component:it,meta:{title:_lang.recordPageTitle}}]});o.a.config.productionTip=!1,o.a.prototype.$store=B,o.a.prototype.$toast=$,o.a.use(l.a,{error:a("DmyW"),loading:a("DmyW")}),lt.beforeEach((t,e,a)=>{t.meta&&t.meta.title&&(document.title=t.meta.title),t.matched.length?a():lt.replace("/")}),o.a.mixin({computed:{app:()=>_app,lang:()=>_lang,images:()=>_images,isShare:()=>!A("token"),rtl:()=>-1!=["ar","ur"].indexOf(_local),areaData:()=>__area,localStr:()=>_local},methods:{replaceLang:T,replaceLangBR:function(t){t&&"string"==typeof t&&(t=t.replace(/\n/g,"<br>"));for(var e=arguments.length,a=new Array(e>1?e-1:0),i=1;i<e;i++)a[i-1]=arguments[i];return T(t,...a)},profile:function(t){t&&(location.href="uid:"+t)},isLocal(t){var e;return s()(e=window._local).call(e,t)},markRank:t=>t>100?"100+":t||"100+",setDateFormat(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t.slice(0,4)+"/"+t.slice(4,6)+"/"+t.slice(6,8):t.slice(6,8)+"/"+t.slice(4,6)},markDate(t){let e=new Date(1e3*t.stime),a=e.getDate()<10?"0"+e.getDate():e.getDate(),i=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,s=new Date(1e3*t.etime);return a+"/"+i+"-"+(s.getDate()<10?"0"+s.getDate():s.getDate())+"/"+(s.getMonth()+1<10?"0"+(s.getMonth()+1):s.getMonth()+1)}}}),new o.a({el:"#app",store:B,router:lt,components:{App:m},render:t=>t(m)})},WIBD:function(t,e){t.exports=Vuex},Y4mt:function(t,e){t.exports=VueRouter},"i7/w":function(t,e){t.exports=Vue},kjbw:function(t,e){t.exports=VueLazyload},zr5I:function(t,e){t.exports=axios}},[["Vtdi","runtime","vendor"]]]);