(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{556:function(t,e,c){"use strict";c.r(e);var o=c(3),n=(c(17),c(30),c(13)),r={name:"Settings",middleware:["auth"],data:()=>({password:"",user:{}}),computed:Object(n.c)(["settings"]),methods:{remove_account(){var t=this;return Object(o.a)((function*(){(yield t.$root.$confirm("settings.remove_account_confirm",{color:"error"}))&&(t.$axios.$delete("/user"),t.$auth.logout(),t.$router.replace("/"))}))()}},head(){return{title:"".concat(this.settings.title," - ").concat(this.$t("common.settings"))}}},l=c(6),component=Object(l.a)(r,(function(){var t=this,e=t.$createElement,c=t._self._c||e;return c("v-container",[c("v-card",[c("v-card-title",{staticClass:"text-h5"},[t._v(t._s(t.$auth.user.email))]),c("v-card-text",[c("p",[t._v(t._s(t.$t("settings.remove_account")))]),c("v-btn",{staticClass:"black--text",attrs:{color:"warning"},on:{click:t.remove_account}},[t._v(t._s(t.$t("common.remove")))])],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports}}]);