text: (window.webpackJsonp=window.webpackJsonp||[]).push([[37],{280:function(t,e,n){"use strict";var strong=n(291),r=n(281);t.exports=n(292)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=strong.getEntry(r(this,"Map"),t);return e&&e.v},set:function(t,e){return strong.def(r(this,"Map"),0===t?0:t,e)}},strong,!0)},281:function(t,e,n){var r=n(32);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},291:function(t,e,n){"use strict";var r=n(33).f,o=n(106),c=n(177),l=n(53),f=n(175),d=n(176),v=n(123),h=n(178),m=n(124),y=n(24),_=n(122).fastKey,w=n(281),k=y?"_s":"size",x=function(t,e){var n,r=_(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,v){var h=t((function(t,r){f(t,h,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[k]=0,null!=r&&d(r,n,t[v],t)}));return c(h.prototype,{clear:function(){for(var t=w(this,e),data=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete data[n.i];t._f=t._l=void 0,t[k]=0},delete:function(t){var n=w(this,e),r=x(n,t);if(r){var o=r.n,c=r.p;delete n._i[r.i],r.r=!0,c&&(c.n=o),o&&(o.p=c),n._f==r&&(n._f=o),n._l==r&&(n._l=c),n[k]--}return!!r},forEach:function(t){w(this,e);for(var n,r=l(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!x(w(this,e),t)}}),y&&r(h.prototype,"size",{get:function(){return w(this,e)[k]}}),h},def:function(t,e,n){var r,o,c=x(t,e);return c?c.v=n:(t._l=c={i:o=_(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=c),r&&(r.n=c),t[k]++,"F"!==o&&(t._i[o]=c)),t},getEntry:x,setStrong:function(t,e,n){v(t,e,(function(t,n){this._t=w(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?h(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,h(1))}),n?"entries":"values",!n,!0),m(e)}}},292:function(t,e,n){"use strict";var r=n(17),o=n(14),c=n(38),l=n(177),meta=n(122),f=n(176),d=n(175),v=n(32),h=n(26),m=n(125),y=n(80),_=n(126);t.exports=function(t,e,n,w,k,x){var O=r[t],j=O,S=k?"set":"add",C=j&&j.prototype,E={},$=function(t){var e=C[t];c(C,t,"delete"==t?function(a){return!(x&&!v(a))&&e.call(this,0===a?0:a)}:"has"==t?function(a){return!(x&&!v(a))&&e.call(this,0===a?0:a)}:"get"==t?function(a){return x&&!v(a)?void 0:e.call(this,0===a?0:a)}:"add"==t?function(a){return e.call(this,0===a?0:a),this}:function(a,b){return e.call(this,0===a?0:a,b),this})};if("function"==typeof j&&(x||C.forEach&&!h((function(){(new j).entries().next()})))){var P=new j,V=P[S](x?{}:-0,1)!=P,z=h((function(){P.has(1)})),F=m((function(t){new j(t)})),D=!x&&h((function(){for(var t=new j,e=5;e--;)t[S](e,e);return!t.has(-0)}));F||((j=e((function(e,n){d(e,j,t);var r=_(new O,e,j);return null!=n&&f(n,k,r[S],r),r}))).prototype=C,C.constructor=j),(z||D)&&($("delete"),$("has"),k&&$("get")),(D||V)&&$(S),x&&C.clear&&delete C.clear}else j=w.getConstructor(e,t,k,S),l(j.prototype,n),meta.NEED=!0;return y(j,t),E[t]=j,o(o.G+o.W+o.F*(j!=O),E),x||w.setStrong(j,t,k),j}},301:function(t,e,n){"use strict";var r=n(3),o=n(1);var c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"value",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"change";return o.default.extend({name:"proxyable",model:{prop:t,event:e},props:Object(r.a)({},t,{required:!1}),data:function(){return{internalLazyValue:this[t]}},computed:{internalValue:{get:function(){return this.internalLazyValue},set:function(t){t!==this.internalLazyValue&&(this.internalLazyValue=t,this.$emit(e,t))}}},watch:Object(r.a)({},t,(function(t){this.internalLazyValue=t}))})}();e.a=c},302:function(t,e,n){"use strict";n(19),n(9),n(66),n(30),n(36);var r=n(3),o=(n(79),n(280),n(31),n(6),n(5),n(11),n(52),n(289),n(1)),c=n(279),l=n(7);function f(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var d=["sm","md","lg","xl"],v=d.reduce((function(t,e){return t[e]={type:[Boolean,String,Number],default:!1},t}),{}),h=d.reduce((function(t,e){return t["offset"+Object(l.t)(e)]={type:[String,Number],default:null},t}),{}),m=d.reduce((function(t,e){return t["order"+Object(l.t)(e)]={type:[String,Number],default:null},t}),{}),y={col:Object.keys(v),offset:Object.keys(h),order:Object.keys(m)};function _(t,e,n){var r=t;if(null!=n&&!1!==n){if(e){var o=e.replace(t,"");r+="-".concat(o)}return"col"!==t||""!==n&&!0!==n?(r+="-".concat(n)).toLowerCase():r.toLowerCase()}}var w=new Map;e.a=o.default.extend({name:"v-col",functional:!0,props:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({cols:{type:[Boolean,String,Number],default:!1}},v,{offset:{type:[String,Number],default:null}},h,{order:{type:[String,Number],default:null}},m,{alignSelf:{type:String,default:null,validator:function(t){return["auto","start","end","center","baseline","stretch"].includes(t)}},justifySelf:{type:String,default:null,validator:function(t){return["auto","start","end","center","baseline","stretch"].includes(t)}},tag:{type:String,default:"div"}}),render:function(t,e){var n=e.props,data=e.data,o=e.children,l=(e.parent,"");for(var f in n)l+=String(n[f]);var d=w.get(l);return d||function(){var t,e;for(e in d=[],y)y[e].forEach((function(t){var r=n[t],o=_(e,t,r);o&&d.push(o)}));var o=d.some((function(t){return t.startsWith("col-")}));d.push((t={col:!o||!n.cols},Object(r.a)(t,"col-".concat(n.cols),n.cols),Object(r.a)(t,"offset-".concat(n.offset),n.offset),Object(r.a)(t,"order-".concat(n.order),n.order),Object(r.a)(t,"align-self-".concat(n.alignSelf),n.alignSelf),Object(r.a)(t,"justify-self-".concat(n.justifySelf),n.justifySelf),t)),w.set(l,d)}(),t(n.tag,Object(c.a)(data,{class:d}),o)}})},303:function(t,e,n){"use strict";n(19),n(9);var r=n(3),o=(n(79),n(280),n(31),n(6),n(5),n(11),n(30),n(36),n(289),n(1)),c=n(279),l=n(7);function f(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var d=["sm","md","lg","xl"],v=["start","end","center"];function h(t,e){return d.reduce((function(n,r){return n[t+Object(l.t)(r)]=e(),n}),{})}var m=function(t){return[].concat(v,["baseline","stretch"]).includes(t)},y=h("align",(function(){return{type:String,default:null,validator:m}})),_=function(t){return[].concat(v,["space-between","space-around"]).includes(t)},w=h("justify",(function(){return{type:String,default:null,validator:_}})),k=function(t){return[].concat(v,["space-between","space-around","stretch"]).includes(t)},x=h("alignContent",(function(){return{type:String,default:null,validator:k}})),O={align:Object.keys(y),justify:Object.keys(w),alignContent:Object.keys(x)},j={align:"align",justify:"justify",alignContent:"align-content"};function S(t,e,n){var r=j[t];if(null!=n){if(e){var o=e.replace(t,"");r+="-".concat(o)}return(r+="-".concat(n)).toLowerCase()}}var C=new Map;e.a=o.default.extend({name:"v-row",functional:!0,props:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:m}},y,{justify:{type:String,default:null,validator:_}},w,{alignContent:{type:String,default:null,validator:k}},x),render:function(t,e){var n=e.props,data=e.data,o=e.children,l="";for(var f in n)l+=String(n[f]);var d=C.get(l);return d||function(){var t,e;for(e in d=[],O)O[e].forEach((function(t){var r=n[t],o=S(e,t,r);o&&d.push(o)}));d.push((t={"no-gutters":n.noGutters,"row--dense":n.dense},Object(r.a)(t,"align-".concat(n.align),n.align),Object(r.a)(t,"justify-".concat(n.justify),n.justify),Object(r.a)(t,"align-content-".concat(n.alignContent),n.alignContent),t)),C.set(l,d)}(),t(n.tag,Object(c.a)(data,{staticClass:"row",class:d}),o)}})},325:function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},354:function(t,e,n){t.exports=n.p+"img/3c8a959.png"},367:function(t,e,n){var content=n(484);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(23).default)("44277eb0",content,!0,{sourceMap:!1})},368:function(t,e){},481:function(t,e,n){t.exports=n.p+"img/b915cad.svg"},482:function(t,e,n){"use strict";n(83)("sub",(function(t){return function(){return t(this,"sub","","")}}))},483:function(t,e,n){"use strict";var r=n(367);n.n(r).a},484:function(t,e,n){var r=n(22),o=n(325),c=n(354);e=r(!1);var l=o(c);e.push([t.i,".theme--light.v-icon[data-v-6031ef2c]{color:#d6adff}[data-v-6031ef2c]::-webkit-input-placeholder{color:#aa56ff!important}[data-v-6031ef2c]::-moz-placeholder{color:#aa56ff!important}[data-v-6031ef2c]:-ms-input-placeholder{color:#aa56ff!important}[data-v-6031ef2c]::-ms-input-placeholder{color:#aa56ff!important}[data-v-6031ef2c]::placeholder{color:#aa56ff!important}.bg[data-v-6031ef2c]{width:100%;height:100%;position:fixed;background:url("+l+");background-size:cover;background-position:50%}[data-v-6031ef2c] .v-dialog{background:#fff;text-align:center}.v-card__title[data-v-6031ef2c]{-webkit-box-pack:center;justify-content:center}.v-form[data-v-6031ef2c]{width:100%}.v-input__slot[data-v-6031ef2c]:before{border-color:#c58aff!important}.v-text-field>.v-input__control>.v-input__slot[data-v-6031ef2c]:after{border-color:#fff!important}.primary--text[data-v-6031ef2c],.v-label[data-v-6031ef2c]{color:#c58aff!important}.primary--text[data-v-6031ef2c]{caret-color:#c58aff!important}.container-spinner[data-v-6031ef2c],.flex[data-v-6031ef2c]{z-index:2}.flex[data-v-6031ef2c]{-webkit-animation:intro .3s backwards;animation:intro .3s backwards;-webkit-animation-delay:.35s;animation-delay:.35s}.layout[data-v-6031ef2c]{background:#60c!important}.bg-symbol[data-v-6031ef2c]{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center}.bg-symbol img[data-v-6031ef2c]{width:40%}.hide-form[data-v-6031ef2c]{-webkit-animation:down .3s forwards;animation:down .3s forwards}.error-form[data-v-6031ef2c]{-webkit-animation:nono .3s,intro paused;animation:nono .3s,intro paused}.theme--light.v-text-field>.v-input__control>.v-input__slot[data-v-6031ef2c]:before{border-color:#c58aff}.theme--light.v-input:not(.v-input--is-disabled) input[data-v-6031ef2c],.theme--light.v-input:not(.v-input--is-disabled) textarea[data-v-6031ef2c],.theme--light.v-label[data-v-6031ef2c]{color:#c58aff}[data-v-6031ef2c] .v-dialog{background-color:#fff}[data-v-6031ef2c] .v-card__title+.v-card__text{text-align:center}",""]),t.exports=e},485:function(t,e,n){"use strict";var r=n(368),o=n.n(r);e.default=o.a},615:function(t,e,n){"use strict";n.r(e);n(482),n(54),n(55),n(5),n(18),n(27);var r,o=n(4),c=n(104),l=(n(21),{data:function(){return{status:!0,loading:!0,dialog:!1,dialogMessage:"",showPass:!1,title:"Entrar",email:"",emailRules:[function(t){return!!t||"Digite o e-mail"},function(t){return/.+@.+\..+/.test(t)||"E-mail inválido"}],password:"",passwordRules:[function(t){return!!t||"Digite a senha"},function(t){return t&&t.length>=6||"A senha deve ter no mínimo 6 caracteres"}]}},mounted:function(){this.loginSocialReturn()},head:function(){return{title:this.title,meta:[{hid:"description",name:"description",content:"Entre no aplicativo da New School - Levamos educação de qualidade na linguagem da quebrada para as periferias do Brasil, através da tecnologia e da curadoria de conteúdos baseados nas habilidades do futuro."}]}},methods:{submit:function(){var t=this;event.preventDefault(),this.$refs.form.validate()?(this.animateForm(!0),c.a.login(this.email,this.password).then((function(){$nuxt._router.push("/loading/login")})).catch((function(e){setTimeout((function(){t.dialogMessage="Usuário ou senha incorretos!",t.dialog=!0,t.loading=!1}),500),console.error(e)}))):this.animateForm(!1)},head:function(){return{title:this.title}},animateForm:function(t){var e=this;t?(this.$refs.flex.classList.add("hide-form"),document.querySelector("html").style.overflow="hidden",setTimeout((function(){e.loading=!0}),300)):(this.$refs.flex.classList.add("error-form"),setTimeout((function(){e.$refs.flex.classList.remove("error-form")}),500))},loginSocialReturn:(r=Object(o.a)(regeneratorRuntime.mark((function t(){var e,n,r,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.$auth.loggedIn){t.next=3;break}return this.loading=!1,t.abrupt("return");case 3:if(e=this.$auth.strategy.name,t.prev=4,"facebook"!==e){t.next=11;break}return n=this.getFacebookCredentials(),t.next=9,c.a.loginFacebook(n);case 9:t.next=15;break;case 11:if("google"!==e){t.next=15;break}return r=this.getGoogleCredentials(),t.next=15,c.a.loginGoogle(r);case 15:$nuxt._router.push("/loading/login"),t.next=22;break;case 18:t.prev=18,t.t0=t.catch(4),setTimeout((function(){o.dialogMessage="Falha ao realizar login utilizando "+e+".",o.dialog=!0,o.loading=!1}),500),console.error(t.t0);case 22:case"end":return t.stop()}}),t,this,[[4,18]])}))),function(){return r.apply(this,arguments)}),loginSocial:function(t){this.loading=!0,this.$auth.loginWith(t)},getFacebookCredentials:function(){return{id:this.$store.state.auth.user.id,email:this.$store.state.auth.user.email,name:this.$store.state.auth.user.name,birthday:this.$store.state.auth.user.birthday}},getGoogleCredentials:function(){return{email:this.$store.state.auth.user.email,email_verified:this.$store.state.auth.user.email_verified.toString(),family_name:this.$store.state.auth.user.family_name,given_name:this.$store.state.auth.user.given_name,locale:this.$store.state.auth.user.locale,name:this.$store.state.auth.user.name,picture:this.$store.state.auth.user.picture,sub:this.$store.state.auth.user.sub}}}}),f=(n(483),n(39)),d=n(485),v=n(43),h=n.n(v),m=n(272),y=n(297),_=n(302),w=n(593),k=n(596),x=n(317),O=n(594),j=n(268),S=n(308),C=n(117),E=n(303),$=n(315),component=Object(f.a)(l,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-layout",{attrs:{"align-center":"","justify-center":""}},[r("div",{staticClass:"bg"}),t._v(" "),t.loading?r("div",[r("div",{staticClass:"container-spinner"},[r("v-progress-circular",{attrs:{size:70,width:5,indeterminate:"",color:"#fff"}})],1)]):r("v-flex",{ref:"flex",attrs:{role:"main",xs10:"",sm8:"",md4:""}},[r("div",{staticClass:"bg-symbol"},[r("img",{attrs:{src:n(481),alt:"New Schoool logo"}})]),t._v(" "),r("v-container",[r("v-row",[r("v-col",{attrs:{cols:"12"}}),t._v(" "),r("v-form",{ref:"form",attrs:{"lazy-validation":""},model:{value:t.status,callback:function(e){t.status=e},expression:"status"}},[r("v-col",{attrs:{cols:"12"}},[r("v-text-field",{attrs:{dark:"",color:"#fff",rules:t.emailRules,label:"Email","data-vv-name":"email",required:""},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submit()}},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}}),t._v(" "),r("v-text-field",{attrs:{dark:"",color:"#fff",rules:t.passwordRules,label:"Senha","data-vv-name":"password",type:t.showPass?"text":"password","append-icon":t.showPass?"mdi-eye-off":"mdi-eye",required:""},on:{"click:append":function(){return t.showPass=!t.showPass},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submit()}},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),t._v(" "),r("v-col",{attrs:{cols:"12"}},[r("v-btn",{staticClass:"btn-block btn-primary btn-white",attrs:{role:"button","aria-haspopup":"true","aria-expanded":"false",depressed:"",large:""},on:{click:t.submit}},[t._v("Entrar")])],1)],1),t._v(" "),r("v-col",{attrs:{cols:"12"}},[r("v-btn",{staticClass:"btn-transparent",attrs:{dark:"",block:"",depressed:"",large:"",to:"/cadastro"}},[t._v("Cadastrar")])],1),t._v(" "),r("v-col",{staticClass:"text-center",attrs:{cols:"12"}},[r("v-btn",{attrs:{text:"",color:"white"},on:{click:function(e){return t.loginSocial("facebook")}}},[r("v-icon",{attrs:{dark:"",left:""}},[t._v("mdi-facebook")]),t._v("Entrar com Facebook\n          ")],1)],1),t._v(" "),r("v-col",{staticClass:"text-center",attrs:{cols:"12"}},[r("v-btn",{attrs:{text:"",color:"white"},on:{click:function(e){return t.loginSocial("google")}}},[r("v-icon",{attrs:{dark:"",left:""}},[t._v("mdi-google-glass")]),t._v("Entrar com Google\n          ")],1)],1),t._v(" "),r("v-col",{staticClass:"text-center",attrs:{cols:"12"}},[r("v-btn",{attrs:{text:"",small:"",color:"#fff",to:"/esqueci-minha-senha"}},[t._v("Esqueceu sua senha?")])],1)],1)],1)],1),t._v(" "),r("v-dialog",{attrs:{"max-width":"290"},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[r("v-card-title",{staticClass:"headline"},[t._v("Ops!")]),t._v(" "),r("v-card-text",[t._v(t._s(t.dialogMessage))]),t._v(" "),r("v-btn",{attrs:{color:"primary",text:""},on:{click:function(e){t.dialog=!1}}},[t._v("Ok")])],1)],1)}),[],!1,null,"6031ef2c",null);"function"==typeof d.default&&Object(d.default)(component);e.default=component.exports;h()(component,{VBtn:m.a,VCardText:y.c,VCardTitle:y.d,VCol:_.a,VContainer:w.a,VDialog:k.a,VFlex:x.a,VForm:O.a,VIcon:j.a,VLayout:S.a,VProgressCircular:C.a,VRow:E.a,VTextField:$.a})}}]);