(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{282:function(t,e){},307:function(t,e,o){"use strict";var r=o(282),n=o.n(r);e.default=n.a},366:function(t,e,o){"use strict";o.r(e);var r=o(1),n=o(58),c=o(92),l=o(31),d=function(t,e,o,desc){var r,n=arguments.length,c=n<3?e:null===desc?desc=Object.getOwnPropertyDescriptor(e,o):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,desc);else for(var i=t.length-1;i>=0;i--)(r=t[i])&&(c=(n<3?r(c):n>3?r(e,o,c):r(e,o))||c);return n>3&&c&&Object.defineProperty(e,o,c),c};let v=class extends r.a{async googleLogin(){var t,e,o;const r=new this.$fireModule.auth.GoogleAuthProvider;try{const n=await this.$fire.auth.signInWithPopup(r);if(null===(t=n.user)||void 0===t?void 0:t.uid)try{await this.$store.dispatch(l.b,null!==(o=null===(e=n.user)||void 0===e?void 0:e.uid)&&void 0!==o?o:void 0),this.$router.replace("/home")}catch(t){this.displayNoAccountMessage()}}catch(t){this.displayLoginError(t),alert("Oops. "+t.message)}}displayNoAccountMessage(){console.warn("No account for logged in user")}displayLoginError(t){alert("Oops. "+t.message)}};d([Object(c.a)("profile")],v.prototype,"profile",void 0),v=d([Object(n.a)({})],v);var f=v,h=o(19),y=o(307),w=o(25),_=o.n(w),m=o(52),C=o(262),O=o(261),V=o(292),j=o(270),x=o(252),component=Object(h.a)(f,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-layout",[o("v-card",{staticClass:"mx-auto",attrs:{"min-width":"300","max-width":"500"}},[o("v-card-title",[t._v("Please choose provider")]),t._v(" "),o("v-card-text",[o("v-btn",{on:{click:t.googleLogin}},[t._v("Sign-in using Google")])],1),t._v(" "),o("v-card-text",[t._v("\n Missing an account? You can\n "),o("v-chip",{staticClass:"primary",attrs:{small:"",to:"Register"}},[t._v("register")]),t._v("here.\n ")],1),t._v(" "),o("v-card-actions",[o("v-spacer"),t._v(" "),o("v-btn",{staticClass:"error",attrs:{to:"Home"}},[t._v("Cancel")])],1)],1)],1)}),[],!1,null,null,null);"function"==typeof y.default&&Object(y.default)(component);e.default=component.exports;_()(component,{VBtn:m.a,VCard:C.a,VCardActions:O.a,VCardText:O.b,VCardTitle:O.c,VChip:V.a,VLayout:j.a,VSpacer:x.a})}}]);