2-chunk.js 50KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+1ry":function(t,e,o){},"+MGf":function(t,e,o){t.exports=o.p+"assets/img/exchange/frame.png?0d4782be"},1:function(t,e){},"1//o":function(t,e,o){t.exports=o.p+"assets/img/exchange/bar.png?9b9f27e9"},"1GEk":function(t,e,o){"use strict";o.d(e,"a",(function(){return f}));var n=o("8VmE"),i=o.n(n),s=o("6DIm"),a={name:"Model",props:{component:[Object,String],componentProps:[Object],events:[Object],active:{type:Boolean,default:!1},programmatic:{type:Boolean,default:!1},clickModalClose:{type:Boolean,default:!0}},data:function(){return{isActive:!0}},computed:{isComponent:function(){return"object"==typeof this.component}},watch:{active:function(t){this.isActive=t},isActive:function(t){this.hiddenScroll(t)}},beforeMount:function(){this.programmatic&&document.body.appendChild(this.$el)},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPressAndModalClickHandler)},mounted:function(){this.programmatic&&(this.isActive=!0)},beforeDestroy:function(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPressAndModalClickHandler)},methods:{hiddenScroll:function(t){"undefined"!=typeof window&&(t?(this.savedScrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),document.body.classList.add("no-scroll"),document.body.style.top="-"+this.savedScrollTop+"px"):(document.body.classList.remove("no-scroll"),document.documentElement.scrollTop=this.savedScrollTop,document.body.scrollTop=this.savedScrollTop))},close:function(){for(var t=this,e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];this.$emit("close",o.length>1?o:o[0]),this.$emit("update:active",!1),this.hiddenScroll(!1),this.programmatic&&(this.isActive=!1,setTimeout((function(){t.$destroy(),document.body.removeChild(t.$el)}),150))},keyPressAndModalClickHandler:function(t){var e=t.target,o=t.keyCode;!this.clickModalClose||e!==this.$refs.modalContent&&27!==o||this.close()}}},r=(o("1zmI"),o("psIG")),c=Object(r.a)(a,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("transition",{attrs:{name:"fade"}},[t.isActive?o("div",{staticClass:"modal-component",class:{active:t.isActive}},[o("div",{ref:"modalContent",staticClass:"modal-component__content",on:{click:t.keyPressAndModalClickHandler}},[t.isComponent?o(t.component,t._g(t._b({tag:"component",on:{close:t.close}},"component",t.componentProps,!1),t.events)):t._e()],1)]):t._e()])}),[],!1,null,null,null).exports,u=function(t,e,o,n){return void 0===e&&(e={}),void 0===o&&(o={}),new Promise((function(a){var r={programmatic:!0,active:!0,component:t},u=i()({},r,o,{componentProps:e});new(s.a.extend(c))({parent:n,el:document.createElement("div"),propsData:u}).$once("close",(function(){a.apply(void 0,arguments)}))}))},l={name:"Alert",components:{},props:{message:[String,Array],type:{type:String,default:"alert"},close:{type:Function}},data:function(){return{}},computed:{show:function(){return!!this.message&&(!Array.isArray(this.message)||0!==this.message.length)}},mounted:function(){},beforeDestroy:function(){},methods:{innerClose:function(){this.$props.close&&this.$props.close("close"),this.$emit("close","close")}}},d=(o("ZqKK"),Object(r.a)(l,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"alert-root"},[e("div",{staticClass:"alert-body"},[e("div",{staticClass:"button butto-close",on:{click:this.innerClose}},[e("img",{attrs:{src:o("8eSn")}})]),e("div",{staticClass:"alert-message",domProps:{innerHTML:this._s(this.message)}})])])}),[],!1,null,null,null).exports),f=function(t){return u(d,{message:t,type:"alert"})}},"1zmI":function(t,e,o){"use strict";var n=o("jfuc");o.n(n).a},2:function(t,e){},"2ExW":function(t,e,o){"use strict";o.r(e),o.d(e,"default",(function(){return _}));var n=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"game__tent"},[e("img",{attrs:{src:o("49f1")}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"game__banner"},[e("img",{attrs:{src:o("z751")}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"game__tips"},[this._v("獎品兌換期限至 "),e("span",{staticClass:"highlight"},[this._v("12/29")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"game__frame__inner"},[e("div",{staticClass:"game__store"},[e("div",{staticClass:"game__store__coupon"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"game__marquee"},[e("img",{attrs:{src:o("1//o")}}),e("div",{staticClass:"game__marquee__inner"},[e("div",{staticClass:"slick marquee"},[e("div",{staticClass:"ml-5"},[this._v("每人每項獎品一週僅限兌換一次")]),e("div",{staticClass:"ml-5"},[this._v("獎品數量有限 送完為止")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"game__popout"},[e("div",{staticClass:"game__popout__container"},[e("div",{staticClass:"game__popout__content"},[e("div",{staticClass:"content content__wait"},[e("div",{staticClass:"content__wait__text"},[this._v("07/26")])]),e("div",{staticClass:"content content__result"},[e("div",{staticClass:"content__result__text"},[e("p",[this._v("TEST")])])]),e("div",{staticClass:"content content__lp"},[e("div",{staticClass:"lp"})])]),e("div",{staticClass:"game__popout__submit"},[e("div",{staticClass:"game__popout__submit__text"},[this._v("99")]),e("div",{staticClass:"effect__container"},[e("div",{staticClass:"Scan"})])]),e("div",{staticClass:"game__popout__close"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"video__popout"},[e("div",{staticClass:"video__content",attrs:{id:"video__content"}}),e("div",{staticClass:"video__close"})])}],i=o("8VmE"),s=o.n(i),a=o("lOrp"),r=o("2MRG"),c=o("XOZl"),u=function(t,e,o){var n,i={id:1,lp:1,gp:10,issoldout:!1,isredeemed:!1,isnomoney:!1,canuse:!1,video:""},s=window.storePage,a=window.player;function r(){t,n=$('<div class="coupon__item">\n <div class="coupon__item__content">\n <div class="coupon__item__btn"></div>\n <div class="coupon__item__lp"></div>\n <div class="coupon__item__gp"></div>\n </div>\n <div class="coupon__item__overlayer"></div>\n </div>').appendTo($(".game__store__coupon")),i=$.extend(i,e),console.log(e),c(),n.click((function(t){t.preventDefault(),function t(){console.log("點選 "+i.gp+"吉點 交換 LINE Point : "+i.lp+"點"),i.issoldout?s.showPopout("<p>獎項已兌換完畢</p>"):i.lock?($(".video__popout").show(),TweenMax.set(".video__popout",{autoAlpha:0}),TweenMax.to(".video__popout",.5,{autoAlpha:1}),console.log("VIDEO = "+i.video),a.loadVideoById(i.video),a.stopVideo(0),a.videoCallback=function(){TweenMax.to(".video__popout",.5,{autoAlpha:0}),i.lock=!1,console.log("SET cookie"),$.cookie("luckydraw.isVideoUnlock",!0),console.log("luckydraw.isVideoUnlock = "+$.cookie("luckydraw.isVideoUnlock")),c(),setTimeout((function(){t()}),300)}):i.isredeemed?s.showPopout("<p>本週已兌換</p>"):i.isnomoney?s.showPopout("<p>很抱歉,兌換吉點餘額不足。</p>"):($(".game__popout__content .content").hide(),$(".game__popout__submit").show(),$(".game__popout__submit__text").text(i.gp),$(".game__popout .content__lp .lp").text(i.lp),$(".game__popout .content__lp").show(),TweenMax.set(".game__popout__submit",{y:50}),TweenMax.to(".game__popout__submit",.5,{y:0,ease:Back.easeOut.config(1.7)}),$(".game__popout").show(),TweenMax.set(".game__popout",{autoAlpha:0}),TweenMax.to(".game__popout",.5,{autoAlpha:1}),s.useCoupon(i.id,-i.gp,(function(){i.isredeemed=!0,c()})))}()}))}function c(){n.find(".coupon__item__lp").text(i.lp),n.find(".coupon__item__gp").text(i.gp),""!=i.video&&n.addClass("coupon__item__video"),i.lock?n.find(".coupon__item__btn").addClass("lock"):n.find(".coupon__item__btn").removeClass("lock"),i.issoldout?n.addClass("sellout"):n.removeClass("sellout"),i.isredeemed?n.find(".coupon__item__btn").addClass("used"):n.find(".coupon__item__btn").removeClass("used")}return{init:function(t){r()}}},l=o("1GEk"),d=o("kQFM"),f=function(t,e){var o="https://"+window.location.host+"/",n=[],i=function(){},s=!1;function a(t){$(".game__popout").show(),TweenMax.set(".game__popout",{autoAlpha:0}),$(".game__popout__content .content").hide(),$(".game__popout__submit").hide(),$(".game__popout__content .content__result").show(),$(".game__popout__content .content__result__text").html(t),TweenMax.to(".game__popout",.5,{autoAlpha:1})}return $(document).ready((function(){console.log("storePage is init."),$(".video__close").click((function(t){t.preventDefault(),TweenMax.to(".video__popout",.3,{autoAlpha:0}),player.stopVideo()})),$(".game__popout__close").click((function(t){t.preventDefault(),TweenMax.to(".game__popout",.3,{autoAlpha:0})})),$(".game__popout__submit").click((function(t){t.preventDefault(),i()}))})),{intoPage:function(){},leavePage:function(){},updateCoupon:function(t){!function(t){n=t,console.log("============== updateCoupon ==============");for(var e=0;e<n.length;e++){var o;if(n[e].lp<5)o=new u(e,n[e]);else{var i=!0;i="true"!==$.cookie("luckydraw.isVideoUnlock"),console.log("luckydraw.isVideoUnlock = "+$.cookie("luckydraw.isVideoUnlock")+", _isLock = "+i),console.log($.extend(n[e],{lock:i,video:"wfagDGPIxwU"})),o=new u(e,$.extend(n[e],{lock:i,video:"wfagDGPIxwU"}))}o.init()}}(t)},showPopout:function(t){a(t)},useCoupon:function(n,c,u){!function(n,c,u){console.log("useCoupon start"),i=function(){s||(console.log("useCoupon processing start"),d.a.commit("setLoading",!0),s=!0,$.ajax({type:"POST",url:o+"api2021/redeem/"+t+"/"+n,data:{name:e},dataType:"json",success:function(t){console.log("================== response ==================="),console.log(t),t.succ?r.b.info().then((function(t){var e=t.info,o=e.playerinfo,n=e.roundinfo,i=e.goodinfo;d.a.commit("setPlayerinfo",o),d.a.commit("setRoundinfo",n),d.a.commit("setGoodinfo",i),d.a.commit("setLoading",!1),console.log("兌換完成,請至LINE錢包,查看點數"),a("<p>兌換完成<br>請至LINE錢包<br>查看點數</p>"),u()})).catch((function(t){d.a.commit("setLoading",!1),console.log("GetUserInfo Error\nName:"+t.name+"\nMessage"+t.message),Object(l.a)(t.message)})).finally((function(){s=!1,console.log("useCoupon processing end")})):(d.a.commit("setLoading",!1),console.log("兌換錯誤:<br>"+t.err),Object(l.a)("兌換錯誤:<br>"+t.err),s=!1,console.log("useCoupon processing end"))},error:function(t,e,o){d.a.commit("setLoading",!1),console.log("Status: "+e+", Error: "+o),Object(l.a)("連線錯誤:<br>Status: "+e+", Error: "+o),s=!1,console.log("useCoupon processing end")}}))}}(n,0,u)}}},m=function(){return{init:function(){window.player=new YT.Player("video__content",{height:"360",width:"640",videoId:"",playerVars:{autoplay:0,controls:0},events:{onStateChange:function(t){console.log("onPlayerStateChange"),0==t.data&&window.player.videoCallback()}}})}}},p=function(t,e,o){var n=t,i=e,s=o;return{init:function(){!function(){console.log("main is loaded.");var t=new f(i,s);window.storePage=t,(new m).init();for(var e=[{id:0,lp:1,gp:10,issoldout:!0,isredeemed:!1,isnomoney:!1,canuse:!1,fromAPI:!1},{id:0,lp:2,gp:20,issoldout:!0,isredeemed:!1,isnomoney:!1,canuse:!1,fromAPI:!1},{id:0,lp:3,gp:30,issoldout:!0,isredeemed:!1,isnomoney:!1,canuse:!1,fromAPI:!1},{id:0,lp:5,gp:50,issoldout:!0,isredeemed:!1,isnomoney:!1,canuse:!1,fromAPI:!1}],o=0;o<n.length;o++)for(var a=n[o],r=0;r<e.length;r++)a.lp==e[r].lp&&(a.fromAPI=!0,e[r]=a);console.log("_blankGoodinfo:\n"),console.log(e),t.updateCoupon(e),$(".game__store").show();var c=e.filter((function(t){return t.issoldout}));c&&c.length===e.length&&Object(l.a)("本次活動已結束<br>敬請期待下次遊戲。")}()}}},h={tl:null,components:{},props:{show:{required:!0,type:Boolean,default:function(){return!1}}},data:function(){return{storeHelper:null}},computed:s()({},a.a.mapState([]),a.a.mapGetters(["LINEID","LINENAME","playerinfo","gpAll"]),{userGP:function(){var t=this.playerinfo;return t&&t.gp?t.gp:0}}),watch:{show:function(t){t?this.init():this.destory()}},mounted:function(){},beforeDestroy:function(){},methods:s()({},a.a.mapMutations(["setLoading"]),a.a.mapActions([]),{destory:function(){if(this.storeHelper){this.storeHelper=null;var t=document.querySelector(".game__store__coupon");document.querySelectorAll(".coupon__item").forEach((function(e){t.removeChild(e)})),this.storeHelper=null}if(this.$options.tl){var e=this.$refs,o=e.gameFrame,n=e.btnClose;this.$options.tl.paused(),this.$options.tl.kill(),this.$options.tl=null,o.removeAttribute("style"),n.removeAttribute("style")}$(".slick.marquee").slick("unslick")},init:function(){var t=this,e=this.LINEID,o=this.LINENAME,n=this.$refs,i=n.gameFrame,s=n.btnClose;this.setupMarquee(),this.$options.tl=c.b.timeline({paused:!0,onComplete:function(){this.paused(),this.kill()}}),this.$options.tl.set(i,{y:100,opacity:0}),this.$options.tl.set(s,{css:{scale:0}}),this.$options.tl.to(i,{y:0,opacity:1,duration:1,ease:"Power4.easeInOut"}),this.$options.tl.to(s,{css:{scale:1},duration:.5,ease:"Elastic.easeInOut"}),this.setLoading(!0),r.b.info().then((function(n){var i=n.info.goodinfo;t.storeHelper=new p(i,e,o),t.storeHelper.init(),t.$options.tl.play()})).catch((function(t){console.log("Store Error\nName: "+t.name+"\nMessage: "+t.message)})).finally((function(){t.setLoading(!1)}))},onClose:function(){this.$emit("close")},setupMarquee:function(){$(".slick.marquee").slick({speed:5e3,autoplay:!0,autoplaySpeed:0,centerMode:!0,cssEase:"linear",slidesToShow:1,slidesToScroll:1,variableWidth:!0,infinite:!0,initialSlide:1,arrows:!1,buttons:!1})}})},g=(o("aOIB"),o("psIG")),_=Object(g.a)(h,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page-store storePage"},[n("img",{attrs:{src:o("QKYR")}}),n("section",{staticClass:"game game__container"},[n("div",{staticClass:"game__fixed"},[n("div",{staticClass:"game__logo",on:{click:t.onClose}},[n("img",{attrs:{src:o("xdCI")}})]),n("div",{staticClass:"game__exchange"},[n("img",{attrs:{src:o("Skcb")}}),n("div",{staticClass:"game__exchange__text"},[t._v(t._s(t.userGP))]),n("div",{staticClass:"score__exchange"})]),t._m(0),t._m(1),n("div",{ref:"gameFrame",staticClass:"game__frame"},[n("img",{attrs:{src:o("+MGf")}}),t._m(2),t._m(3),n("div",{ref:"btnClose",staticClass:"icon-close",on:{click:t.onClose}})]),t._m(4)]),t._m(5)]),t._m(6)])}),n,!1,null,null,null).exports},"2MRG":function(t,e,o){"use strict";o.d(e,"b",(function(){return d})),o.d(e,"a",(function(){return f}));var n=o("zf4f"),i=o.n(n),s=o("kQFM"),a=o("czhI"),r=o.n(a).a.create({});r.interceptors.request.use((function(t){return t})),r.interceptors.response.use((function(t){t.config;var e=t.data,o=e.succ,n=e.err;return o?t.data:Promise.reject(new Error(n))}),(function(t){if(t.response){var e=t.response,o=e.status,n=e.data,i=e.statusText;console.error(o,i),console.log(n)}return t.request?console.log(t.request):console.log("Error",t.message),Promise.reject(t)}));var c=r,u={adapter:i.a,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}},l="https://"+window.location.host,d={friendchk:function(){return c.get(l+"/api2021/friendchk/"+s.a.getters.LINEID,u).then((function(t){return t}))},info:function(){return c.get(l+"/api2021/info/"+s.a.getters.LINEID,u).then((function(t){return t}))}},f={game:function(){var t=new FormData;return t.append("name",s.a.getters.LINENAME),c.post(l+"/api2021/game/"+s.a.getters.LINEID,t,u).then((function(t){return t}))},redeem:function(t){var e=new FormData;return e.append("name",s.a.getters.LINENAME),c.post(l+"/api2021/redeem/"+s.a.getters.LINEID+"/"+t,e,u).then((function(t){return t}))}}},3:function(t,e){},"3THG":function(t,e,o){t.exports=o.p+"assets/img/fish-10.png?fcf44aec"},"3lPI":function(t,e,o){"use strict";var n=o("YGj1");o.n(n).a},4:function(t,e){},"49f1":function(t,e,o){t.exports=o.p+"assets/img/exchange/tent.png?8acd5f49"},"4TYZ":function(t,e,o){t.exports=o.p+"assets/img/day_6_checkin.png?375a1558"},"4qaO":function(t,e,o){t.exports=o.p+"assets/img/game_logo.png?1e3cf4d1"},"6+F3":function(t,e,o){t.exports=o.p+"assets/img/intro/city2.png?eeb4bda1"},"7BjS":function(t,e,o){"use strict";o.r(e),o.d(e,"default",(function(){return b}));var n=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"city"},[e("img",{attrs:{src:o("6+F3")}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logo"},[e("img",{attrs:{src:o("XfVB")}})])}],i=o("8VmE"),s=o.n(i),a=o("lOrp"),r=o("nGod"),c=o("1GEk"),u=o("qIg4"),l=o.n(u),d=function(t){var e=this;this.openWindow=function(t){l.a.openWindow(t)},this.login=function(t){void 0===t&&(t={redirectUri:"https://"+window.location.host+window.location.pathname});var o=e.liffId;return new Promise((function(n,i){e.liff=l.a.init({liffId:o}).then((function(){l.a.isLoggedIn()?l.a.getProfile().then((function(t){n(t)})).catch((function(t){console.log("liff Error\nName: "+error.name+"\nMessage: "+error.message)})):l.a.login({redirectUri:t.redirectUri})})).catch((function(t){console.log("liff Error\nName: "+t.name+"\nMessage: "+t.message),i(new Error(err))}))}))},this.sendMessage=function(t){return void 0===l.a.sendMessages?Promise.reject(new Error("no liff")):l.a.sendMessages([{type:"text",text:t}])},this.liffId=t,this.liff=null},f="declare.taiwanpay.com.tw"===window.location.host?"https://liff.line.me/1653764192-dx6l6llK?app=1653764192-oY46466Z":"https://liff.line.me/1653763567-E6Z3Z2qX?app=1653763567-E5353DMV",m=null,p=o("2MRG"),h=(o("kQFM"),o("XOZl")),g=o("Qi1R"),_={tl:null,components:{},props:{},data:function(){return{isLoading:!1,isDone:!1,backgroundSea:""}},computed:s()({},a.a.mapState([]),a.a.mapGetters([])),beforeMount:function(){},mounted:function(){var t=this,e=this.$refs.building;h.b.set(e,{x:"-200%"});var n=new Image;n.onload=function(){t.backgroundSea=n.src,Object(g.a)(500).then((function(){t.init(),Object(c.a)("台灣Pay有權決定取消、終止、修改或暫停本活動,亦有權對本活動之所有事項做出最終解釋,無需另行通知。")}))},n.src=o("Ail5")},beforeDestroy:function(){},methods:s()({},a.a.mapMutations(["setLineId","setLineName","setResources","setPlayerinfo","setRoundinfo","setGoodinfo"]),a.a.mapActions([]),{debug:function(){},init:function(){this.isLoading=!0,this.loadResource().then((function(){console.log("=== loadResource start ===")})).catch((function(t){console.log("LoadResource Error\nName"+t.name+" \nmessage:"+t.message)}))},getUserData:function(){var t,e=this;(t="declare.taiwanpay.com.tw"===window.location.host?"1653764192-oY46466Z":"1653763567-E5353DMV",m=new d(t),new Promise((function(t,e){m.login().then((function(e){t({LINEID:e.userId,LINENAME:e.displayName})})).catch((function(t){e(t)}))}))).then((function(t){var o=t.LINEID,n=t.LINENAME;console.log("lineUserId",o),console.log("lineUserName",n),e.setLineId(o),e.setLineName(n),p.b.info().then((function(t){var o=t.info,n=o.playerinfo,i=o.roundinfo,s=o.goodinfo;e.setPlayerinfo(n),e.setRoundinfo(i),e.setGoodinfo(s),e.isLoaded=!0;var a=e.$refs.building;h.b.to(a,{x:0,duration:3,onComplete:function(){e.$emit("done")}})})).catch((function(t){if(e.isLoaded=!0,console.log("GetUserInfo Error\nName:"+t.name+"\nMessage"+t.message),"請先加入 LINE 好友"===t.message)return alert("請先加入LINE好友,再返回遊戲"),void(m?m.openWindow({url:f,external:!1}):window.location.href=f);Object(c.a)(t.message)}))})).catch((function(t){console.log("GetUserLineID Error\nName: "+t.name+"\nMessage: "+t.message),Object(c.a)(t.message)}))},loadProgressHandler:function(t){var e=t.progress,o=this.$refs.building,n=-1*(200-.8*e);h.b.to(o,{x:n,duration:3}),100===e&&this.getUserData()},loadResource:function(){var t=this;return new Promise((function(e){var n=new r.e;n.add("seabg1",o("9uQm"),{crossOrigin:!0}).add("seabg2",o("I6VF"),{crossOrigin:!0}).add("seabg3",o("au7g"),{crossOrigin:!0}).add("seabg4",o("W9/H"),{crossOrigin:!0}).add("environmen",o("7Tuv"),{crossOrigin:!0}).add("displacementMap",o("nh6k"),{crossOrigin:!0}).add("bubbles",o("s/0j"),{crossOrigin:!0}).add("hook",o("7yt9"),{crossOrigin:!0}).add("fish_1",o("RyZi"),{crossOrigin:!0}).add("fish_2",o("FOKG"),{crossOrigin:!0}).add("fish_3",o("gGsf"),{crossOrigin:!0}).add("fish_4",o("DNrs"),{crossOrigin:!0}).add("fish_5",o("u4Zm"),{crossOrigin:!0}).add("fish_6",o("q+ij"),{crossOrigin:!0}).add("fish_7",o("rKbU"),{crossOrigin:!0}).add("fish_8",o("BIqs"),{crossOrigin:!0}).add("fish_9",o("8BKr"),{crossOrigin:!0}).add("fish_10",o("3THG"),{crossOrigin:!0}),n.onProgress.add(t.loadProgressHandler),n.load((function(o,n){t.$store.commit("setResources",{seabg1:n.seabg1.texture,seabg2:n.seabg2.texture,seabg3:n.seabg3.texture,seabg4:n.seabg4.texture,environmen:n.environmen.texture,displacementMap:n.displacementMap.texture,bubbles:n.bubbles.texture,hook:n.hook.texture,fish_1:n.fish_1.texture,fish_2:n.fish_2.texture,fish_3:n.fish_3.texture,fish_4:n.fish_4.texture,fish_5:n.fish_5.texture,fish_6:n.fish_6.texture,fish_7:n.fish_7.texture,fish_8:n.fish_8.texture,fish_9:n.fish_9.texture,fish_10:n.fish_10.texture}),e()}))}))}})},v=(o("c1ka"),o("psIG")),b=Object(v.a)(_,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"page-welcome",class:{isLoading:this.isLoading}},[e("div",{ref:"canvasContainer",staticClass:"background"},[e("img",{attrs:{src:this.backgroundSea}})]),e("div",{ref:"building",staticClass:"building"},[this._m(0),this._m(1)]),e("div",{staticClass:"boat"},[e("img",{ref:"hook",staticClass:"hook",attrs:{src:o("w7Co")}}),e("img",{attrs:{src:o("TDRw")}})])])}),n,!1,null,null,null).exports},"7Tuv":function(t,e,o){t.exports=o.p+"assets/img/environmen.png?deac74b8"},"7hDz":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA84AAAAOCAYAAAD+FUVxAAAB80lEQVR4Ae3XJXRtVxRG4XVz6YSZmZlJhqncypiyi49MTJlbV1n2Y9TVm9gygy3L0ulsHz+vcqb4/r31cjMi7vjf9D9pHlVoRge6JEmSJEnKkA40owr5a718czTXoQeTmMdChkiSJEmSNI9J9KDuWjzfHM0dGMZUBsNZkiRJkqR5TGEYHahDPpgymtCDAUxgBZvYliRJkiQpAzaxggkMoAdNKAdTRBVa0Df2/Q+zdQ888F719vZvSCVJkiRJuvS2tn6vveeed8e+/W76ajS3oArFYHIRd+R482goT0y8XhobS8tTU2kyP58mCwuSJEmSJF1es7MpHZyWhoZSmvg12rgR+autnAs+edTcED9V1NSk+ebmtNDRkRa6uiRJkiRJurza29N8Q0NKC6dRUfFTxB0l1FyVvz2cByJyv0ZEmj2SJEmSJNHEccfI7eGcoBX9uCOi8YNsHkeSJEmSpKb3I+44Qj9akQTTiCkc4PGIgxcjur6KKPyZjaNIkiRJkkQDR+fnEQdPRtzxEA4whcZgmrCOYzyOc7yJC3yUAZIkSZIkXeBNnONxHGMdTcEkGMUhTnCG5/FyhkiSJEmS9DzOcIJDjCIJ5uZ4vg+neA4vZ4gkSZIkSc/hFPdhFAkimGsSdGEJ2zjMEEmSJEmStrGELiQIxL93TZpyTNrVWAAAAABJRU5ErkJggg=="},"7yt9":function(t,e,o){t.exports=o.p+"assets/img/hook.png?f9f030c9"},"8BKr":function(t,e,o){t.exports=o.p+"assets/img/fish-9.png?3a0e9a6c"},"8eSn":function(t,e,o){t.exports=o.p+"assets/img/btn-close.png?28d4628d"},"9uQm":function(t,e,o){t.exports=o.p+"assets/img/sea_bg.png?babdd044"},Ail5:function(t,e,o){t.exports=o.p+"assets/img/intro/sea.png?bbd61f25"},BIqs:function(t,e,o){t.exports=o.p+"assets/img/fish-8.png?437192d4"},DBrI:function(t,e,o){t.exports=o.p+"assets/img/day_7_checkin.png?e24887b5"},DGZd:function(t,e,o){t.exports=o.p+"assets/img/day_6_uncheckin.png?075bb2dd"},DNrs:function(t,e,o){t.exports=o.p+"assets/img/fish-4.png?473105f1"},EmVG:function(t,e,o){t.exports=o.p+"assets/img/start_CTA.png?2bcd7019"},Eweh:function(t,e,o){},FC2U:function(t,e,o){"use strict";o.r(e),o.d(e,"default",(function(){return J}));var n=o("8VmE"),i=o.n(n),s=o("lOrp"),a=o("T1e2"),r=o.n(a),c=o("QKC2"),u=o.n(c),l=o("hBZP"),d=o.n(l),f=o("nGod"),m=o("XOZl"),p=o("kQFM"),h=o("i5qa"),g=[[1,2,3,4,5,6,7,8,9,10],[4,7,10,3,6,9,2,5,8,1],[7,1,5,9,3,8,2,6,10,4],[10,3,6,9,2,5,8,1,4,7],[3,8,4,9,5,10,6,1,7,2],[6,1,5,10,7,2,8,3,9,4],[9,2,6,10,4,8,3,7,1,5],[2,8,4,10,6,2,3,9,5,1],[5,2,9,6,3,10,7,4,1,8],[8,1,5,9,3,7,2,6,10,4]],_={fish:[[{from:350,to:300,duretion:5,position:0},{from:800,to:850,duretion:4,position:5},{from:750,to:700,duretion:3,position:9},{from:500,to:550,duretion:4,position:12},{from:650,to:600,duretion:6,position:16},{from:400,to:450,duretion:4,position:22}],[{from:480,to:680,duretion:4,position:0},{from:600,to:580,duretion:5,position:5},{from:580,to:400,duretion:4,position:10},{from:700,to:480,duretion:3,position:14},{from:880,to:700,duretion:4,position:17},{from:300,to:380,duretion:6,position:21}],[{from:500,to:530,duretion:6,position:0},{from:630,to:600,duretion:4,position:6},{from:400,to:430,duretion:5,position:10},{from:330,to:300,duretion:3,position:15},{from:800,to:830,duretion:3,position:18},{from:730,to:730,duretion:4,position:21}],[{from:600,to:760,duretion:4,position:0},{from:460,to:500,duretion:6,position:4},{from:500,to:660,duretion:4,position:10},{from:740,to:500,duretion:5,position:14},{from:300,to:440,duretion:4,position:19},{from:870,to:800,duretion:3,position:23}],[{from:720,to:750,duretion:3,position:0},{from:400,to:420,duretion:4,position:3},{from:850,to:800,duretion:6,position:7},{from:600,to:650,duretion:4,position:13},{from:380,to:300,duretion:5,position:17},{from:500,to:480,duretion:4,position:22}],[{from:820,to:850,duretion:4,position:0},{from:700,to:780,duretion:3,position:4},{from:780,to:820,duretion:4,position:7},{from:530,to:660,duretion:6,position:11},{from:650,to:740,duretion:4,position:17},{from:500,to:390,duretion:5,position:21}],[{from:500,to:400,duretion:5,position:0},{from:700,to:800,duretion:4,position:5},{from:800,to:850,duretion:4,position:9},{from:450,to:650,duretion:6,position:13},{from:540,to:780,duretion:3,position:19},{from:380,to:760,duretion:4,position:22}],[{from:380,to:580,duretion:5,position:0},{from:800,to:300,duretion:4,position:5},{from:700,to:470,duretion:3,position:9},{from:350,to:580,duretion:4,position:12},{from:760,to:670,duretion:6,position:16},{from:420,to:380,duretion:4,position:22}],[{from:700,to:470,duretion:4,position:0},{from:800,to:300,duretion:5,position:4},{from:420,to:380,duretion:6,position:9},{from:350,to:580,duretion:3,position:15},{from:380,to:580,duretion:4,position:18},{from:760,to:670,duretion:4,position:22}],[{from:560,to:360,duretion:6,position:0},{from:340,to:640,duretion:4,position:6},{from:560,to:490,duretion:5,position:10},{from:300,to:370,duretion:3,position:15},{from:730,to:820,duretion:3,position:18},{from:370,to:650,duretion:4,position:21}]]},v={right:[{from:-300,to:900},{from:900,to:-300}],left:[{from:900,to:-300},{from:-300,to:900}]};function b(t){return _.hasOwnProperty(t)?_[t]:[]}function w(t){return v.hasOwnProperty(t)?v[t]:[]}var y=o("0tkI"),C=sessionStorage.getItem("FishRamdomIndex")?parseInt(sessionStorage.getItem("FishRamdomIndex")):-1;C+=1,sessionStorage.setItem("FishRamdomIndex",C);var x=sessionStorage.getItem("FishRamdomIndex")?parseInt(sessionStorage.getItem("FishRamdomIndex")):-1;x+=1,sessionStorage.setItem("FishRamdomIndex",x);var k=-1;function E(t,e,o){void 0===t&&(t=""),void 0===e&&(e="right"),k+=1;var n=w(e),i=b(t),s=g[x%g.length],a=i[(s[k%s.length]-1)%i.length],r=[],c=0;return a.forEach((function(t,e){var o=n[e%2],i=t.duretion+Math.floor(.03*t.duretion*Math.random()*3),s=c;r.push({from:{x:o.from,y:t.from-Math.floor(.03*t.from*Math.random()*3)},to:{x:o.to,y:t.to-Math.floor(.03*t.to*Math.random()*3)},duration:i,position:s}),c+=i})),r}var S=function(){function t(){}return t.assignBehavior=function(t){var e=t.category,o=t.direct,n=(t.name,{swim:E(e,o)});t.behaviorConfig=n},t}(),I=o("NToG"),G=o.n(I),O=function(t){function e(e){var o;return void 0===e&&(e=null),(o=t.call(this)||this).children=[],o.target=e,o.prevID=-1,o._anchorX=0,o._anchorY=0,o}u()(e,t);var o=e.prototype;return o.updateTarget=function(){var t=this.worldTransform;this.target.style.position="absolute",this.target.style.left=0,this.target.style.top=0,this.target.style.transform="matrix(1, 0, 0, 1, "+t.tx+", "+t.ty+")"},o.render=function(){this.prevID!==this.transform._worldID&&null!==this.target&&(this.updateTarget(),this.prevID=this.transform._worldID)},o.destroy=function(){this.target=null,this.prevID=null,t.prototype.destroy.call(this)},G()(e,[{key:"opacity",set:function(t){return this.target.style.opacity=t}},{key:"bounds",get:function(){return this.target.getBoundingClientRect()}},{key:"anchorX",get:function(){return this._anchorX},set:function(t){this._anchorX=t,this.pivot.x=t*this.bounds.width}},{key:"anchorY",get:function(){return this._anchorY},set:function(t){this._anchorY=t,this.pivot.y=t*this.bounds.height}},{key:"anchorXY",set:function(t){this.anchorX=t,this.anchorY=t}}]),e}(f.c);O.prototype.renderWebGL=O.prototype.render,O.prototype.renderCanvas=O.prototype.render;var A=function(t){function e(e){var o;(o=t.call(this,e)||this).onAdded=function(){o.removeListener("added",o.onAdded),o.addListener("destroy",o.destroy)},o.destroy=function(){console.log("fish destroy"),o.removeListener("destroy",o.destroy),o.gameObject.removeChild(o.scoreTextEl),o.config.el.removeChild(o.divElement),o.scoreTextEl.destroy()},o.config=e,o.category="fish",o.residualForce=e.residualForce,o.gameObject=new f.f(o.texture),o.gameObject.width=e.width,o.gameObject.height=e.height,o.gameObject.x=e.x,o.gameObject.y=e.y,o.gameObject.anchor.set(.5),"left"===o.direct&&(o.gameObject.scale.x*=-1);var n=document.createElement("div");n.className="score-number",n.innerText=o.score,o.divElement=n,e.el.appendChild(n);var i=new O(n);return i.anchorXY=0,i.x=.5*o.gameObject.width*-1,i.y=.5*o.gameObject.height*-1,i.opacity=0,o.scoreTextEl=i,o.gameObject.addChild(o.scoreTextEl),S.assignBehavior(r()(o)),o.addListener("added",o.onAdded),o}return u()(e,t),e}(function(t){function e(e){var o;return(o=t.call(this)||this).name=e.name,o.category="",o.texture=e.texture,o.score=e.score,o.direct=e.direct,o.width=e.width,o.height=e.height,o.stopX=e.stopX,o.delay=e.delay,o.gameObject=null,o.scoreTextEl=null,o.animator=null,o}return u()(e,t),e}(d.a)),j=-1,P=[.5,1,1.5,2,2.5,3,3.5,4,4.5,5],$=[100,500,200,400,300,450,100,450,200,500],M=["left","right","left","right","left","right","left","right","left","right"];var T,R,D,L,N=function(){function t(){}return t.makeCreature=function(t,e){return function(t,e){var o=p.a.getters,n=o.resources,i=o.container;j+=1;var s=h.a[t],a=s.score,r=s.width,c=s.height;return new A({el:i,name:t,texture:n[t],score:a,width:r,height:c,x:-300,y:300,stopX:$[j%$.length],direct:M[j%M.length],delay:P[j%P.length]})}(t)},t}(),F=function(t){function e(e){var o;return(o=t.call(this)||this).onAdded=function(){var t=r()(o).gameObject;o.removeListener("added",o.onAdded),o.addListener("destroy",o.destroy),o.tl=new y.c({paused:!0,onComplete:function(){this.paused(),this.seek(0),this.play()}}),o.tl.fromTo(t,1,{y:20},{y:-20,ease:"Power1.out"}).fromTo(t,1,{y:-20},{y:20,ease:"Power1.out"}),o.tl.play()},o.destroy=function(){},o.gameObject=new f.f(e),o.gameObject.width=749/1242*640,o.gameObject.height=1243/749*o.gameObject.width,o.gameObject.x=400,o.gameObject.y=0,o.gameObject.anchor.set(.5,0),o.addListener("added",o.onAdded),o}u()(e,t);var o=e.prototype;return o.onPutUp=function(){var t=this.gameObject;this.tl&&(this.tl.pause(),this.tl.kill()),y.d.to(t,1,{y:-1*t.height,ease:"Power1.out"})},o.onStop=function(){this.tl&&(this.tl.pause(),this.tl.kill(),this.tl=null)},e}(d.a),U=0,B=null,q=null,V=function(t){function e(e){var o;return void 0===e&&(e={}),(o=t.call(this)||this).init=function(){T=new f.a({width:640,height:window.innerHeight}),o.container.appendChild(T.view),o.createOcean(),o.createDefaultFish(),o.createWaterEffect(),o.animate()},o.createOcean=function(){var t=r()(o).resources,e=new f.f(t.seabg1),n=new f.f(t.seabg2),i=new f.f(t.seabg3),s=new f.g(t.seabg4,640,1418/1242*640),a=new f.b;e.x=0,e.y=0,e.width=640,e.height=2208/1242*640,n.x=0,n.y=164/1242*640,n.width=640,n.height=2044/1242*640,i.x=0,i.y=0,i.width=640,i.height=936/1242*640,s.x=0,s.y=0,s.width=640,s.height=1418/1242*640,s.tileScale.x=.5,s.tileScale.y=.5;var c=new f.d;c.beginFill(6737151),c.drawRect(0,0,s.width,s.height-21),c.endFill(),c.x=0,c.y=0,s.mask=c,L=s,a.addChild(e),a.addChild(n),a.addChild(i),a.addChild(s),T.stage.addChild(a);var u=new f.f(t.environmen);u.width=640,u.height=761/1242*640,u.x=0,u.y=window.innerHeight-761/1242*640-20,T.stage.addChild(u);var l=new f.f(t.bubbles);l.width=640,l.height=1033/1242*640,l.x=0,l.y=window.innerHeight-1033/1242*640-20,T.stage.addChild(l),o.hook=new F(t.hook),T.stage.addChild(o.hook.gameObject),o.hook.emit("added")},o.createDefaultFish=function(){o.clearDefaultFish().then((function(){var t=h.b[0];if(t&&0!==t.length){var e=t[0];e&&0!==e.length&&(e.forEach((function(t){for(var e=t.id,n=t.number,i=1;i<=n;i++){var s=N.makeCreature("fish_"+e);T.stage.addChild(s.gameObject),s.emit("added"),o.defaultFishCollect.push(s)}})),(B=m.a.timeline({paused:!0,onComplete:function(){this.paused(),this.seek(0),this.play()}})).timeScale(.2),o.defaultFishCollect.forEach((function(t){t.behaviorConfig.swim.forEach((function(e){B.fromTo(t.gameObject,{x:e.from.x,y:e.from.y},{x:e.to.x,y:e.to.y,duration:e.duration/5,onComplete:function(){t.gameObject.scale.x*=-1}},e.position/5)}))})),B.play())}}))},o.createWaterEffect=function(){var t=r()(o).resources;(D=new f.f(t.displacementMap)).texture.baseTexture.wrapMode=f.h.REPEAT,R=new f.i.DisplacementFilter(D),D.scale.y=.6,D.scale.x=.6,T.stage.addChild(D),T.stage.filterArea=T.screen},o.animate=function(){o._stop||(o.requestID=requestAnimationFrame(o.animate),D.x=10*U,D.y=10*U,L.tilePosition.x=10*U*-1,U+=.05,T.stage.filters=[R],T.renderer.render(T.stage))},o.pause=function(){o._stop=!0,console.log("stop",o._stop),window.cancelAnimationFrame(o.requestID),o.requestID=null,B&&B.pause()},o.resume=function(){B?B.resume():o.createDefaultFish(),o._stop=!1,o.animate()},o.resources=p.a.getters.resources,o.container=p.a.getters.container,o.currentGameGp=p.a.getters.currentGameGp,o.fishCollect=[],o.defaultFishCollect=[],o._stop=!1,o.requestID=null,o}u()(e,t);var o=e.prototype;return o.clearDefaultFish=function(){var t=this;return new Promise((function(e){B?(B.paused(),B.kill(),B=null,B=m.a.timeline({paused:!0,onComplete:function(){B.paused(),B.kill(),B=null,t.defaultFishCollect.forEach((function(t){T.stage.removeChild(t.gameObject),t.emit("destroy"),t=null})),t.defaultFishCollect=[],e()}}),t.defaultFishCollect.forEach((function(t){var e=1===(t.gameObject.scale.x>0?1:-1)?900:-100;B.fromTo(t.gameObject,{},{x:e,duration:1*t.delay},0)})),B.play()):e()}))},o.putUpFishing=function(){var t=this;this.currentGameGp=p.a.getters.currentGameGp;var e=h.b[this.currentGameGp];if(e&&0!==e.length){var o=e[Math.floor(1*Math.random()*99)%e.length];if(o&&0!==o.length){p.a.commit("setFishPool",o),o.forEach((function(e){for(var o=e.id,n=e.number,i=1;i<=n;i++){var s=N.makeCreature("fish_"+o,n);T.stage.addChild(s.gameObject),s.emit("added"),t.fishCollect.push(s)}})),(q=m.a.timeline({paused:!0,onComplete:function(){q.pause(),q.kill(),q=null,t.emit("putup"),t.fishCollect.forEach((function(t){T.stage.removeChild(t.gameObject),t.emit("destroy"),t=null})),t.fishCollect=[]}})).timeScale(1),this.hook.onStop(),q.to(this.hook.gameObject,{y:200,duration:1,ease:"Power1.out"},0),q.to(this.hook.gameObject,{y:-800,duration:1,ease:"Power2.out"},2);var n=this.fishCollect[0];q.fromTo(n.gameObject,{x:0,y:800},{x:300,y:800,duration:1},0),q.to(n.scoreTextEl,{y:-.5*n.gameObject.width-60,opacity:1,duration:.8,delay:.8,ease:"Power2.out"},1),q.fromTo(n.gameObject,{x:300,y:800},{x:300,y:0,duration:1},2),q.play()}}},e}(d.a),Z={name:"GameScene",components:{},props:{show:{required:!1,type:Boolean,default:function(){return!1}}},data:function(){return{hasEnter:!1,gameController:null}},computed:i()({},s.a.mapState([]),s.a.mapGetters(["resources","playerinfo","roundinfo","goodinfo","currentGameGp","currentCheckinGp","gpAll"])),watch:{show:function(t){if(t){if(this.hasEnter)return void this.gameController.resume();this.init(),this.hasEnter=!0}else this.gameController.pause()}},mounted:function(){},beforeDestroy:function(){},methods:i()({},s.a.mapMutations(["setContainer","setPlaying"]),s.a.mapActions([]),{init:function(){this.setContainer(this.$el),this.gameController=new V,this.gameController.init()},resetFinsh:function(){this.gameController&&this.gameController.createDefaultFish()},onStart:function(){this.gameController&&(this.setPlaying(!0),this.gameController.addListener("putup",this.onPutUp),this.gameController.clearDefaultFish(),this.gameController.putUpFishing())},onPutUp:function(){this.gameController&&(this.gameController.removeListener("putup",this.onPutUp),this.$emit("putup"),this.setPlaying(!1))},onReturn:function(){this.resetFinsh()}})},H=(o("oe1f"),o("psIG")),J=Object(H.a)(Z,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"game-scene",class:{isShow:this.show}})}),[],!1,null,null,null).exports},FOKG:function(t,e,o){t.exports=o.p+"assets/img/fish-2.png?8bdef142"},HAjJ:function(t,e,o){t.exports=o.p+"assets/img/head.png?8db7af28"},HzCL:function(t,e,o){t.exports=o.p+"assets/img/result_bg.png?306a28e9"},I6VF:function(t,e,o){t.exports=o.p+"assets/img/sea_bg2.png?1c95eefd"},LInJ:function(t,e,o){"use strict";o.r(e),o.d(e,"default",(function(){return u}));var n=o("8VmE"),i=o.n(n),s=o("lOrp"),a=o("i5qa"),r={name:"ResultPopup",components:{},props:{},data:function(){return{}},computed:i()({},s.a.mapState([]),s.a.mapGetters(["playerinfo","roundinfo","goodinfo","currentGameGp","currentCheckinGp","gpAll","fishPool"]),{FishList:function(){return this.fishPool.filter((function(t){return t.id<6})).map((function(t){return i()({id:t.id,number:t.number},a.a["fish_"+t.id])}))},SpecialFishList:function(){return this.fishPool.filter((function(t){return t.id>5})).map((function(t){return i()({id:t.id,number:t.number},a.a["fish_"+t.id])}))}}),mounted:function(){},beforeDestroy:function(){},methods:i()({},s.a.mapMutations(["setLoading"]),s.a.mapActions([]),{onCancel:function(){this.$emit("cancel")},onSubmit:function(){this.$emit("submit")}})},c=(o("3lPI"),o("psIG")),u=Object(c.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"result-popup-root"},[n("div",{staticClass:"popup-background"}),n("div",{staticClass:"popup-body absolute-center"},[n("img",{attrs:{src:o("HzCL")}}),n("div",{staticClass:"popup-inner"},[t._l(t.FishList,(function(e,o){return n("div",{staticClass:"row mb-3 w-100 mx-auto d-flex align-items-center"},[n("div",{staticClass:"input-large d-flex align-items-center"},[n("div",{staticClass:"icon-fish w-50 h-100 d-flex justify-content-center"},[n("img",{attrs:{src:e.imgsrc}})]),n("div",{staticClass:"score-number w-50 d-flex justify-content-center"},[t._v(t._s(e.score))])]),n("div",{staticClass:"icon-multiply ml-2"}),n("div",{staticClass:"input-small d-flex justify-content-center align-items-center"},[n("div",{staticClass:"score-number"},[t._v(t._s(e.number))])]),n("div",{staticClass:"icon-equal ml-2"}),n("div",{staticClass:"number w-20 d-flex justify-content-center"},[t._v(t._s(e.score*e.number))])])})),t.SpecialFishList.length>0?n("div",{staticClass:"popup-line mb-4"},[n("img",{attrs:{src:o("7hDz")}})]):t._e(),t._l(t.SpecialFishList,(function(e,o){return n("div",{staticClass:"row w-100 mx-auto d-flex align-items-center justify-content-center mb-4"},[n("div",{staticClass:"input-large d-flex align-items-center"},[n("div",{staticClass:"icon-fish w-50 h-100 d-flex justify-content-center"},[n("img",{attrs:{src:e.imgsrc}})]),n("div",{staticClass:"score-number w-50 d-flex justify-content-center"},[t._v(t._s(e.score))])]),n("div",{staticClass:"icon-multiply ml-2"}),n("div",{staticClass:"input-small d-flex justify-content-center align-items-center"},[n("div",{staticClass:"score-number"},[t._v(t._s(e.number))])])])})),n("div",{staticClass:"buttton button-send",on:{click:t.onSubmit}}),n("div",{staticClass:"point-number"},[t._v(t._s(t.currentGameGp))]),n("div",{staticClass:"reward-number"},[t._v(t._s(t.currentCheckinGp))])],2)])])}),[],!1,null,null,null).exports},Ljc4:function(t,e,o){"use strict";var n=o("vb0s");o.n(n).a},NFIa:function(t,e,o){t.exports=o.p+"assets/img/taiwanpay_logo.png?d1fa98f5"},OBcg:function(t,e,o){"use strict";o.r(e),o.d(e,"default",(function(){return u}));var n=o("8VmE"),i=o.n(n),s=o("lOrp"),a=(o("1GEk"),o("Qi1R")),r={components:{Game:o("yEUi").default,Welcome:o("7BjS").default},props:{},data:function(){return{showWelcome:!0,showGame:!1}},computed:i()({},s.a.mapState([]),s.a.mapGetters([])),mounted:function(){},beforeDestroy:function(){},methods:i()({},s.a.mapMutations([]),s.a.mapActions([]),{onReady:function(){var t=this;this.showGame=!0,Object(a.a)(1e3).then((function(){t.showWelcome=!1}))}})},c=(o("Tus7"),o("psIG")),u=Object(c.a)(r,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"main"},[this.showWelcome?e("Welcome",{on:{done:this.onReady}}):this._e(),e("transition",{attrs:{name:"landing"}},[e("Game",{directives:[{name:"show",rawName:"v-show",value:this.showGame,expression:"showGame"}],attrs:{show:this.showGame}})],1)],1)}),[],!1,null,null,null).exports},PCu9:function(t,e,o){},QK6Q:function(t,e,o){},QKYR:function(t,e,o){t.exports=o.p+"assets/img/exchange/BG.png?48d63c02"},QQvE:function(t,e,o){t.exports=o.p+"assets/img/day_5_checkin.png?d744d588"},Qi1R:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));function n(t){return new Promise((function(e){var o=setTimeout((function(){clearTimeout(o),o=null,e()}),t)}))}},RMBm:function(t,e,o){"use strict";var n=o("PCu9");o.n(n).a},RyZi:function(t,e,o){t.exports=o.p+"assets/img/fish-1.png?3232f3a6"},SSPN:function(t,e,o){t.exports=o.p+"assets/img/text.png?6bf497e7"},Skcb:function(t,e,o){t.exports=o.p+"assets/img/exchange/exchange.png?4f9162da"},TDRw:function(t,e,o){t.exports=o.p+"assets/img/intro/man.png?53c25bdf"},Tus7:function(t,e,o){"use strict";var n=o("qAYF");o.n(n).a},Twgu:function(t,e,o){t.exports=o.p+"assets/img/day_1_checkin.png?14129adc"},"W9/H":function(t,e,o){t.exports=o.p+"assets/img/sea_bg4.png?c5022ff8"},XfVB:function(t,e,o){t.exports=o.p+"assets/img/intro/logo.png?c3f2ea8e"},YGj1:function(t,e,o){},ZCNx:function(t,e,o){t.exports=o.p+"assets/img/day_1_uncheckin.png?c9256ff1"},ZqKK:function(t,e,o){"use strict";var n=o("+1ry");o.n(n).a},aOIB:function(t,e,o){"use strict";var n=o("oYNh");o.n(n).a},acwm:function(t,e,o){t.exports=o.p+"assets/img/day_3_checkin.png?1fe9238f"},afhH:function(t,e,o){"use strict";var n=o("iKbO");o.n(n).a},au7g:function(t,e,o){t.exports=o.p+"assets/img/sea_bg3.png?8d31ffb5"},ayiN:function(t,e,o){"use strict";o.r(e),o.d(e,"default",(function(){return s}));var n={props:{show:Boolean}},i=(o("RMBm"),o("psIG")),s=Object(i.a)(n,(function(){var t=this.$createElement,e=this._self._c||t;return e("transition",{attrs:{name:"fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:this.show,expression:"show"}],staticClass:"loader-component"},[e("svg",{staticClass:"loader-component-svg",attrs:{viewBox:"25 25 50 50"}},[e("circle",{attrs:{cx:"50",cy:"50",r:"20"}})])])])}),[],!1,null,"2b3c2114",null).exports},c1ka:function(t,e,o){"use strict";var n=o("QK6Q");o.n(n).a},ev3U:function(t,e,o){"use strict";o.r(e),o.d(e,"default",(function(){return d}));var n=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"header absolute-x-center mt-1"},[e("img",{attrs:{src:o("HAjJ")}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"game-logo absolute-x-center"},[e("img",{attrs:{src:o("4qaO")}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logo position-absolute"},[e("img",{attrs:{src:o("NFIa")}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-wrapper mx-auto"},[e("img",{attrs:{src:o("SSPN")}})])}],i=o("8VmE"),s=o.n(i),a=(o("Qi1R"),o("lOrp")),r=o("2MRG"),c=o("1GEk"),u={name:"UI",components:{ResultPopup:o("LInJ").default,Store:o("2ExW").default},props:{},data:function(){return{showResult:!1,showStartButton:!0,showGetButton:!1,showStore:!1,isConfirmResult:!1,isChecking:!1,errorMessage:""}},computed:s()({},a.a.mapState([]),a.a.mapGetters(["playing","playerinfo","roundinfo","goodinfo","currentGameGp","currentCheckinGp","gpAll"]),{canuse:function(){return!0},canplay:function(){var t=this.roundinfo;if(!t)return!1;var e=t.today,o=t.checkins.filter((function(t){return t.date===e}));return!o||0===o.length||o[0].canplay},checkinDay:function(){var t=this.roundinfo;return t&&t.checkins?t.checkins.length:0},userGP:function(){var t=this.playerinfo;return t&&t.gp?t.gp:0}}),mounted:function(){},beforeDestroy:function(){},methods:s()({},a.a.mapMutations(["setLoading","setCurrentGameGp","setCurrentCheckinGp","setGpAll","setPlayerinfo","setRoundinfo","setGoodinfo"]),a.a.mapActions([]),{debug:function(){},openResultPopup:function(){this.showResult=!0},closeResultPopup:function(){this.showResult=!1},onResultSubmit:function(){var t=this;this.isConfirmResult=!0,this.closeResultPopup(),this.setLoading(!0),r.b.info().then((function(e){var o=e.info,n=o.playerinfo,i=o.roundinfo,s=o.goodinfo;t.setPlayerinfo(n),t.setRoundinfo(i),t.setGoodinfo(s),t.showStartButton=!0})).catch((function(t){console.log("GetUserInfo Error\nName:"+t.name+"\nMessage"+t.message)})).finally((function(){t.setLoading(!1),t.$emit("submit")}))},doChangeAward:function(){var t=this.playing,e=this.canuse;t||e&&this.openStore()},openStore:function(){this.showStore=!0,this.$emit("openStore")},closeStore:function(){this.showStore=!1,this.$emit("closeStore")},onStartClick:function(){this.showStartButton=!1,Object(c.a)("活動已結束,獎品兌換期限至12/29。敬請期待下次活動!")}})},l=(o("afhH"),o("psIG")),d=Object(l.a)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-root"},[n("div",{staticClass:"frame"}),t._m(0),t._m(1),t._m(2),n("div",{staticClass:"score absolute-x-end mt-1",class:{"is-fill":t.canuse},on:{click:t.doChangeAward}},[n("div",{staticClass:"score-value"},[t._v(t._s(t.userGP))]),n("div",{staticClass:"score__exchange"})]),t.showStartButton?n("div",{ref:"btnStart",staticClass:"button button-start",on:{click:t.onStartClick}},[n("img",{attrs:{src:o("EmVG")}})]):t._e(),n("div",{staticClass:"fixed-bottom"},[t._m(3),n("div",{staticClass:"point-container mx-auto mb-4"},[n("div",{staticClass:"d-flex flex-row justify-content-around align-items-center"},[n("div",{staticClass:"w-20"},[t.checkinDay>=1?n("img",{attrs:{src:o("Twgu")}}):n("img",{attrs:{src:o("ZCNx")}})]),n("div",{staticClass:"w-20"},[t.checkinDay>=2?n("img",{attrs:{src:o("jMXB")}}):n("img",{attrs:{src:o("hHCW")}})]),n("div",{staticClass:"w-20"},[t.checkinDay>=3?n("img",{attrs:{src:o("acwm")}}):n("img",{attrs:{src:o("tQE2")}})]),n("div",{staticClass:"w-20"},[t.checkinDay>=4?n("img",{attrs:{src:o("rXfQ")}}):n("img",{attrs:{src:o("qL73")}})]),n("div",{staticClass:"w-20"},[t.checkinDay>=5?n("img",{attrs:{src:o("QQvE")}}):n("img",{attrs:{src:o("yJim")}})]),n("div",{staticClass:"w-20"},[t.checkinDay>=6?n("img",{attrs:{src:o("4TYZ")}}):n("img",{attrs:{src:o("DGZd")}})]),n("div",{staticClass:"w-20"},[t.checkinDay>=7?n("img",{attrs:{src:o("DBrI")}}):n("img",{attrs:{src:o("ve1I")}})])])])]),n("transition",{attrs:{name:"fade"}},[n("ResultPopup",{directives:[{name:"show",rawName:"v-show",value:t.showResult,expression:"showResult"}],on:{cancel:t.closeResultPopup,submit:t.onResultSubmit}})],1),n("transition",{attrs:{name:"fade"}},[n("Store",{directives:[{name:"show",rawName:"v-show",value:t.showStore,expression:"showStore"}],attrs:{show:t.showStore},on:{close:t.closeStore}})],1)],1)}),n,!1,null,null,null).exports},gGsf:function(t,e,o){t.exports=o.p+"assets/img/fish-3.png?041747fc"},hHCW:function(t,e,o){t.exports=o.p+"assets/img/day_2_uncheckin.png?dfd6cc6d"},i5qa:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"a",(function(){return i}));var n={66:[[{id:10,number:1}]],9:[[{id:9,number:1}],[{id:8,number:1}]],6:[[{id:6,number:1}],[{id:7,number:1}]],3:[[{id:5,number:1}],[{id:4,number:1}]],1:[[{id:1,number:1}],[{id:2,number:1}],[{id:3,number:1}]],0:[[{id:1,number:2},{id:4,number:1},{id:6,number:1},{id:7,number:1}]]},i={fish_1:{name:"fish_1",score:"+1",imgsrc:o("RyZi"),width:334/1242*640,height:269/1242*640},fish_2:{name:"fish_2",score:"+1",imgsrc:o("FOKG"),width:241/1242*640,height:206/1242*640},fish_3:{name:"fish_3",score:"+1",imgsrc:o("gGsf"),width:323/1242*640,height:427/1242*640},fish_4:{name:"fish_4",score:"+3",imgsrc:o("DNrs"),width:333/1242*640,height:273/1242*640},fish_5:{name:"fish_5",score:"+3",imgsrc:o("u4Zm"),width:453/1242*640,height:292/1242*640},fish_6:{name:"fish_6",score:"+6",imgsrc:o("q+ij"),width:283/1242*640,height:583/1242*640},fish_7:{name:"fish_7",score:"+6",imgsrc:o("rKbU"),width:242/1242*640,height:128/1242*640},fish_8:{name:"fish_8",score:"+9",imgsrc:o("BIqs"),width:426/1242*640,height:335/1242*640},fish_9:{name:"fish_9",score:"+9",imgsrc:o("8BKr"),width:451/1242*640,height:310/1242*640},fish_10:{name:"fish_10",score:"+66",imgsrc:o("3THG"),width:359/1242*640,height:290/1242*640}}},iKbO:function(t,e,o){},jMXB:function(t,e,o){t.exports=o.p+"assets/img/day_2_checkin.png?be6dd6ae"},jfuc:function(t,e,o){},nh6k:function(t,e,o){t.exports=o.p+"assets/img/displacement_map.png?d1ae5fa8"},oYNh:function(t,e,o){},oe1f:function(t,e,o){"use strict";var n=o("Eweh");o.n(n).a},"q+ij":function(t,e,o){t.exports=o.p+"assets/img/fish-6.png?c2c09cbf"},qAYF:function(t,e,o){},qL73:function(t,e,o){t.exports=o.p+"assets/img/day_4_uncheckin.png?9cfc1347"},rKbU:function(t,e,o){t.exports=o.p+"assets/img/fish-7.png?3a0a8362"},rXfQ:function(t,e,o){t.exports=o.p+"assets/img/day_4_checkin.png?a6e54e1d"},"s/0j":function(t,e,o){t.exports=o.p+"assets/img/bubbles.png?178b8dab"},tQE2:function(t,e,o){t.exports=o.p+"assets/img/day_3_uncheckin.png?776825d9"},u4Zm:function(t,e,o){t.exports=o.p+"assets/img/fish-5.png?ccd87645"},vb0s:function(t,e,o){},ve1I:function(t,e,o){t.exports=o.p+"assets/img/day_7_uncheckin.png?47084add"},w7Co:function(t,e,o){t.exports=o.p+"assets/img/intro/hook.png?5e6466bd"},xdCI:function(t,e,o){t.exports=o.p+"assets/img/exchange/logo.png?2df3c305"},yEUi:function(t,e,o){"use strict";o.r(e),o.d(e,"default",(function(){return c}));var n=o("8VmE"),i=o.n(n),s=o("lOrp"),a=(o("1GEk"),o("2MRG"),{name:"Game",props:{show:{required:!1,type:Boolean,default:function(){return!1}}},components:{UI:o("ev3U").default,GameScene:o("FC2U").default,Loader:o("ayiN").default},data:function(){return{showResult:!1,showGameScene:!1}},computed:i()({},s.a.mapState([]),s.a.mapGetters(["loading"])),watch:{show:function(t){t&&(this.showGameScene=!0)}},mounted:function(){},beforeDestroy:function(){},methods:i()({},s.a.mapMutations(["setLoading"]),s.a.mapActions([]),{onStart:function(){this.$refs.gameScene.onStart()},onReadyToPutup:function(){},onPutUp:function(){this.$refs.ui.openResultPopup()},onSubmit:function(){this.$refs.gameScene.onReturn()},onStoreOpen:function(){this.showGameScene=!1},onStoreClose:function(){this.showGameScene=!0}})}),r=(o("Ljc4"),o("psIG")),c=Object(r.a)(a,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"page-game"},[e("GameScene",{ref:"gameScene",attrs:{show:this.showGameScene},on:{putup:this.onPutUp}}),e("UI",{ref:"ui",on:{start:this.onStart,submit:this.onSubmit,openStore:this.onStoreOpen,closeStore:this.onStoreClose}}),e("transition",{attrs:{name:"fade"}},[e("Loader",{attrs:{show:this.loading}})],1)],1)}),[],!1,null,null,null).exports},yJim:function(t,e,o){t.exports=o.p+"assets/img/day_5_uncheckin.png?96b4ad20"},z751:function(t,e,o){t.exports=o.p+"assets/img/exchange/banner.png?64f2f6c7"}}]);