(function(e){function t(t){for(var n,s,i=t[0],c=t[1],u=t[2],l=0,f=[];l()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return t.test(e)||"Invalid e-mail."}},e.hasErrors=!1,e}return Object(V["a"])(t,e),Object(N["a"])(t,[{key:"login",value:function(){var e=Object(S["a"])(regeneratorRuntime.mark(function e(){var t,r;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this.checkForm(),this.hasErrors){e.next=13;break}return e.next=4,w.a.auth().signInWithEmailAndPassword(this.userName,this.password);case 4:if(t=e.sent,!t){e.next=13;break}if(!t.user){e.next=13;break}return ae.setUser(t.user),e.next=10,t.user.getIdToken();case 10:r=e.sent,r&&ae.setAccessToken(r),this.$router.replace("home");case 13:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"checkForm",value:function(){this.hasErrors=!1,this.form.userName&&this.form.password||(this.hasErrors=!0)}},{key:"form",get:function(){return{userName:this.userName,password:this.password}}}]),t}(F["b"]);ie=A["__decorate"]([Object(F["a"])({name:"loginEmail",computed:se({},Object(ee["b"])("user",["setAccessToken"]))})],ie);var ce=ie,ue=ce,le=r("62ad"),pe=r("0fd9"),fe=r("8654"),be=Object(c["a"])(ue,H,X,!1,null,null,null),de=be.exports;l()(be,{VBtn:b["a"],VCol:le["a"],VContainer:L["a"],VRow:pe["a"],VTextField:fe["a"]});var he=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"text-center"},[r("v-btn",{on:{click:function(t){return e.login()}}},[e._v("Login with Facebook")])],1)},me=[];function ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return t.test(e)||"Invalid e-mail."}},e.hasErrors=!1,e}return Object(V["a"])(t,e),Object(N["a"])(t,[{key:"signUp",value:function(){var e=Object(S["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this.checkForm(),this.hasErrors){e.next=5;break}return e.next=4,w.a.auth().createUserWithEmailAndPassword(this.userName,this.password);case 4:e.sent;case 5:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"checkForm",value:function(){this.hasErrors=!1,this.form.userName&&this.form.password||(this.hasErrors=!0)}},{key:"form",get:function(){return{userName:this.userName,password:this.password}}}]),t}(F["b"]);Se=A["__decorate"]([Object(F["a"])({name:"signUpEmail"})],Se);var Ne=Se,Re=Ne,Ue=Object(c["a"])(Re,Te,Ce,!1,null,null,null),qe=Ue.exports;l()(Ue,{VBtn:b["a"],VCol:le["a"],VContainer:L["a"],VRow:pe["a"],VTextField:fe["a"]});var Le=function(e){function t(){return Object(x["a"])(this,t),Object(E["a"])(this,Object(P["a"])(t).apply(this,arguments))}return Object(V["a"])(t,e),t}(F["b"]);Le=A["__decorate"]([Object(F["a"])({name:"signUp",components:{SignUpEmail:qe}})],Le);var $e=Le,Ie=$e,De=Object(c["a"])(Ie,Ae,Fe,!1,null,null,null),Be=De.exports;n["a"].use(j["a"]);var ze=new j["a"]({mode:"history",base:"/",routes:[{path:"*",redirect:"login"},{path:"/",redirect:"login"},{path:"/home",name:"home",component:G,meta:{requiresAuth:!0}},{path:"/login",name:"login",component:Ve},{path:"/register",name:"register",component:Be},{path:"/about",name:"about",component:function(){return r.e("about").then(r.bind(null,"f820"))}}]});ze.beforeEach(function(e,t,r){var n=w.a.auth().currentUser,a=e.matched.some(function(e){return e.meta.requiresAuth});a&&!n?r("login"):!a&&n?r("home"):r()});var Me=ze,Ze=r("f309");n["a"].use(Ze["a"]);var We=new Ze["a"]({theme:{options:{customProperties:!0},themes:{light:{primary:"#ee44aa",secondary:"#424242",accent:"#82B1FF",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FFC107"}}},icons:{iconfont:"md"}});n["a"].config.productionTip=!1;var Je={apiKey:"AIzaSyCj-gd6bZQhj5rdnT8PLuhFR4Vpd4ggnf0",authDomain:"moovi-to.firebaseapp.com",databaseURL:"https://moovi-to.firebaseio.com",projectId:"moovi-to",storageBucket:"",messagingSenderId:"712033518950",appId:"1:712033518950:web:20eabe882f98cbda"};w.a.initializeApp(Je),w.a.auth().onAuthStateChanged(function(){new n["a"]({router:Me,store:re,vuetify:We,render:function(e){return e(O)}}).$mount("#app")}),w.a.auth().onAuthStateChanged(function(e){e&&(e.emailVerified||e.sendEmailVerification())})}});