text: (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{21:function(e,t,a){var r=a(77);"string"==typeof r&&(r=[[e.i,r,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};a(13)(r,s);r.locals&&(e.exports=r.locals)},22:function(e,t,a){var r=a(79);"string"==typeof r&&(r=[[e.i,r,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};a(13)(r,s);r.locals&&(e.exports=r.locals)},4:function(e,t,a){"use strict";function r(e,t,a,r,s,n,i,o){var l,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=a,d._compiled=!0),r&&(d.functional=!0),n&&(d._scopeId="data-v-"+n),i?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=l):s&&(l=o?function(){s.call(this,this.$root.$options.shadowRoot)}:s),l)if(d.functional){d._injectStyles=l;var u=d.render;d.render=function(e,t){return l.call(t),u(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,l):[l]}return{exports:e,options:d}}a.d(t,"a",function(){return r})},76:function(e,t,a){"use strict";var r=a(21);a.n(r).a},77:function(e,t,a){(e.exports=a(12)(!1)).push([e.i,".Register .container {\n  margin-top: 150px;\n}\n.Register .container .row .col-4 {\n  background-color: #eceeef;\n  padding-bottom: 10px;\n}",""])},78:function(e,t,a){"use strict";var r=a(22);a.n(r).a},79:function(e,t,a){(e.exports=a(12)(!1)).push([e.i,".Login .container {\n  margin-top: 150px;\n}\n.Login .container .row .col-4 {\n  background-color: #eceeef;\n  padding-bottom: 10px;\n}",""])},82:function(e,t,a){"use strict";a.r(t);var r=a(3),s={beforeRouteEnter:function(e,t,a){a(function(e){e.$store.dispatch(r.k).then(function(){return e.$router.push({name:"home"})})})}},n=a(4),i=Object(n.a)(s,function(){this.$createElement;this._self._c;return this._m(0)},[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"Logout"},[t("h1",[this._v("Your are about to logout...")])])}],!1,null,null,null);t.default=i.exports},83:function(e,t,a){"use strict";a.r(t);var r=a(3),s={data:function(){return{form:{username:"",password:""}}},methods:{handleSubmit:function(e,t){var a=this;this.$validator.validateAll().then(function(s){if(!s)return null;var n=a.$route.query.backTo?{path:a.$route.query.backTo}:{name:"appointments"};a.$store.dispatch(r.j,{username:e,password:t}).then(function(){return a.$router.push(n)})})},validateState:function(e){return this.veeFields[e]&&(this.veeFields[e].dirty||this.veeFields[e].validated)?!this.veeErrors.has(e):null}}},n=(a(78),a(4)),i=Object(n.a)(s,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"Login"},[a("b-container",{staticClass:"bv-example-row bv-example-row-flex-cols"},[a("b-row",{staticClass:"justify-content-md-center",attrs:{"align-v":"center"}},[a("b-col",{attrs:{cols:"4"}},[a("h1",{staticClass:"text-secondary text-center"},[e._v("Login")]),e._v(" "),a("b-form",{on:{submit:function(t){return t.preventDefault(),e.handleSubmit(e.form.username,e.form.password)}}},[a("b-form-group",{attrs:{id:"username-group",label:"Username:","label-for":"username"}},[a("b-form-input",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,min:8},expression:"{ required: true, min: 8 }"}],attrs:{id:"username",type:"text",name:"username",state:e.validateState("username"),"aria-describedby":"username-feedback-message"},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}}),e._v(" "),a("b-form-invalid-feedback",{attrs:{id:"username-feedback-message"}},[a("ul",e._l(e.veeErrors.collect("username"),function(t){return a("li",{key:t},[e._v(e._s(t))])}),0)])],1),e._v(" "),a("b-form-group",{attrs:{id:"password-group",label:"Password:","label-for":"password"}},[a("b-form-input",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,min:8},expression:"{ required: true, min: 8 }"}],attrs:{id:"password",name:"password",type:"password",state:e.validateState("password"),"aria-describedby":"password-feedback-message"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}}),e._v(" "),a("b-form-invalid-feedback",{attrs:{id:"password-feedback-message"}},[a("ul",e._l(e.veeErrors.collect("password"),function(t){return a("li",{key:t},[e._v(e._s(t))])}),0)])],1),e._v(" "),a("b-button",{attrs:{type:"submit",variant:"primary",block:"",disabled:e.veeErrors.any()}},[e._v("Login")])],1),e._v("\n        Don't have account? "),a("router-link",{attrs:{to:{name:"register"}}},[e._v("Register Now")])],1)],1)],1)],1)},[],!1,null,null,null);t.default=i.exports},84:function(e,t,a){"use strict";a.r(t);var r=a(3),s={data:function(){return{form:{name:"",email:"",mobile:"",password:"",avatar:null}}},methods:{handleSubmit:function(e){var t=this;e.preventDefault(),this.$validator.validateAll().then(function(e){if(!e)return null;var a=t.form;a.avatar||delete a.avatar;var s=new FormData;for(var n in a)"avatar"===n?s.append(n,a[n]):s.set(n,a[n]);t.$store.dispatch(r.l,s).then(function(){return t.$router.push({name:"appointments"})})})},validateState:function(e){return this.veeFields[e]&&(this.veeFields[e].dirty||this.veeFields[e].validated)?!this.veeErrors.has(e):null},onFileChange:function(e){console.log("event upload file"),this.form.avatar=e.target.files[0]}}},n=(a(76),a(4)),i=Object(n.a)(s,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"Register"},[a("b-container",{staticClass:"bv-example-row bv-example-row-flex-cols"},[a("b-row",{staticClass:"justify-content-md-center",attrs:{"align-v":"center"}},[a("b-col",{attrs:{cols:"4"}},[a("h1",{staticClass:"text-secondary text-center"},[e._v("Register")]),e._v(" "),a("b-form",{on:{submit:e.handleSubmit}},[a("b-form-group",{attrs:{id:"name-group",label:"Name:","label-for":"name"}},[a("b-form-input",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,min:5},expression:"{ required: true, min: 5 }"}],attrs:{id:"name",type:"text",name:"name",state:e.validateState("name"),"aria-describedby":"name-feedback-message"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}}),e._v(" "),a("b-form-invalid-feedback",{attrs:{id:"name-feedback-message"}},[a("ul",e._l(e.veeErrors.collect("name"),function(t){return a("li",{key:t},[e._v(e._s(t))])}),0)])],1),e._v(" "),a("b-form-group",{attrs:{id:"email-group",label:"Email:","label-for":"email"}},[a("b-form-input",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,email:!0,min:8},expression:"{ required: true, email: true, min: 8 }"}],attrs:{id:"email",type:"email",name:"email",state:e.validateState("email"),"aria-describedby":"email-feedback-message"},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}}),e._v(" "),a("b-form-invalid-feedback",{attrs:{id:"email-feedback-message"}},[a("ul",e._l(e.veeErrors.collect("email"),function(t){return a("li",{key:t},[e._v(e._s(t))])}),0)])],1),e._v(" "),a("b-form-group",{attrs:{id:"mobile-group",label:"Mobile:","label-for":"mobile"}},[a("b-form-input",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,min:8},expression:"{ required: true, min: 8 }"}],attrs:{id:"mobile",type:"text",name:"mobile",state:e.validateState("mobile"),"aria-describedby":"mobile-feedback-message"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}}),e._v(" "),a("b-form-invalid-feedback",{attrs:{id:"mobile-feedback-message"}},[a("ul",e._l(e.veeErrors.collect("mobile"),function(t){return a("li",{key:t},[e._v(e._s(t))])}),0)])],1),e._v(" "),a("b-form-group",{attrs:{id:"password-group",label:"Password:","label-for":"password"}},[a("b-form-input",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,min:8},expression:"{ required: true, min: 8 }"}],attrs:{id:"password",name:"password",type:"password",state:e.validateState("password"),"aria-describedby":"password-feedback-message"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}}),e._v(" "),a("b-form-invalid-feedback",{attrs:{id:"password-feedback-message"}},[a("ul",e._l(e.veeErrors.collect("password"),function(t){return a("li",{key:t},[e._v(e._s(t))])}),0)])],1),e._v(" "),a("b-form-group",{attrs:{id:"avatar-group",label:"Avatar:","label-for":"avatar"}},[a("b-form-file",{attrs:{type:"file",placeholder:"Choose an avatar...",accept:".jpg, .png, .gif","drop-placeholder":"Drop file here..."},on:{change:e.onFileChange}})],1),e._v(" "),a("b-button",{attrs:{type:"submit",variant:"primary",block:"",disabled:e.veeErrors.any()}},[e._v("Register")])],1),e._v("\n        Already Registered? "),a("router-link",{attrs:{to:{name:"login"}}},[e._v("Login")])],1)],1)],1)],1)},[],!1,null,null,null);t.default=i.exports}}]);