(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{462:function(t,e,r){"use strict";r.d(e,"a",(function(){return c})),r.d(e,"b",(function(){return d})),r.d(e,"c",(function(){return f}));var n=r(467),o=r(0),c=Object(o.i)("v-card__actions"),l=Object(o.i)("v-card__subtitle"),d=Object(o.i)("v-card__text"),f=Object(o.i)("v-card__title");n.a},576:function(t,e,r){"use strict";r.r(e);var n=r(231),o=r(467),c=r(462),l=r(458),d=(r(230),r(285)),f=Object(d.a)("flex"),h=r(2),v=(r(52),r(74),r(217),r(10),r(3),r(12),r(60),r(174),r(13),r(11),r(16),r(17),r(9)),w=r(109),m=r(162);function _(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function O(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?_(Object(source),!0).forEach((function(e){Object(h.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):_(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var j=Object(v.a)(w.a,Object(m.b)("form")).extend({name:"v-form",provide:function(){return{form:this}},inheritAttrs:!1,props:{disabled:Boolean,lazyValidation:Boolean,readonly:Boolean,value:Boolean},data:function(){return{inputs:[],watchers:[],errorBag:{}}},watch:{errorBag:{handler:function(t){var e=Object.values(t).includes(!0);this.$emit("input",!e)},deep:!0,immediate:!0}},methods:{watchInput:function(input){var t=this,e=function(input){return input.$watch("hasError",(function(e){t.$set(t.errorBag,input._uid,e)}),{immediate:!0})},r={_uid:input._uid,valid:function(){},shouldValidate:function(){}};return this.lazyValidation?r.shouldValidate=input.$watch("shouldValidate",(function(n){n&&(t.errorBag.hasOwnProperty(input._uid)||(r.valid=e(input)))})):r.valid=e(input),r},validate:function(){return 0===this.inputs.filter((function(input){return!input.validate(!0)})).length},reset:function(){this.inputs.forEach((function(input){return input.reset()})),this.resetErrorBag()},resetErrorBag:function(){var t=this;this.lazyValidation&&setTimeout((function(){t.errorBag={}}),0)},resetValidation:function(){this.inputs.forEach((function(input){return input.resetValidation()})),this.resetErrorBag()},register:function(input){this.inputs.push(input),this.watchers.push(this.watchInput(input))},unregister:function(input){var t=this.inputs.find((function(i){return i._uid===input._uid}));if(t){var e=this.watchers.find((function(i){return i._uid===t._uid}));e&&(e.valid(),e.shouldValidate()),this.watchers=this.watchers.filter((function(i){return i._uid!==t._uid})),this.inputs=this.inputs.filter((function(i){return i._uid!==t._uid})),this.$delete(this.errorBag,t._uid)}}},render:function(t){var e=this;return t("form",{staticClass:"v-form",attrs:O({novalidate:!0},this.attrs$),on:{submit:function(t){return e.$emit("submit",t)}}},this.$slots.default)}}),y=r(571),B=r(502),x=r(51),P=r(209),$=r(15),V=(r(89),{data:function(){return{username:"",password:"",rules:[function(t){return!!t||"This field is required!"}]}},methods:{doLogin:function(){var t=this;return Object($.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.$refs.loginForm.validate()){e.next=4;break}return e.next=4,t.$auth.loginWith("local",{data:{username:t.username,password:t.password}});case 4:case"end":return e.stop()}}),e)})))()}}}),E=r(77),component=Object(E.a)(V,(function(){var t=this,e=t._self._c;return e(l.a,[e(y.a,{attrs:{justify:"center"}},[e(o.a,{attrs:{width:"100%","max-width":"500px"}},[e(x.a,{attrs:{color:"light-blue",dark:""}},[e(P.a,[t._v("Login")])],1),t._v(" "),e(c.b,[e("p",{staticClass:"text-caption white--text"},[t._v("\n                    If you have not setup a token path, login with any username and password.\n                ")]),t._v(" "),e(j,{ref:"loginForm",staticClass:"login",attrs:{"lazy-validation":""},on:{submit:function(e){return e.preventDefault(),t.doLogin.apply(null,arguments)}}},[e(B.a,{attrs:{label:"Username",rules:t.rules,required:""}}),t._v(" "),e(B.a,{attrs:{label:"Password",rules:t.rules,type:"password",required:""}}),t._v(" "),e(f,{staticClass:"d-flex justify-end"},[e(n.a,{attrs:{type:"submit",color:"light-blue"}},[t._v("Login")])],1)],1)],1)],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports}}]);