webpackJsonp([21],{"37I8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("eVIT"),r=n("4znw"),i=n("VU/8")(a.a,r.a,!1,null,null,null);i.options.__file="pages/admin/index.vue",t.default=i.exports},"4znw":function(e,t,n){"use strict";var a=function(){var e=this.$createElement;return(this._self._c||e)("div")};a._withStripped=!0;var r={render:a,staticRenderFns:[]};t.a=r},eVIT:function(e,t,n){"use strict";var a=n("Xxa5"),r=n.n(a),i=n("exGp"),s=n.n(i),c=n("Dd8w"),u=n.n(c),o=n("NYxO");t.a={layout:"admin",computed:u()({},Object(o.mapState)({activeSeason:function(e){return e.activeSeason}})),created:function(){var e=s()(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.activeSeason){e.next=3;break}return e.next=3,this.fetchData();case 3:this.doRedirect();case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),methods:{fetchData:function(){var e=s()(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("getSeasons");case 2:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),doRedirect:function(){var e=this.$store.state.auth.user;return!!this.activeSeason&&(e.role&&"admin"===e.role.name?this.$router.replace({name:"admin-registrations-manage"}):this.$router.replace({name:"admin-registrations-manifest"}),!0)}}}}});