(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{606:function(t,e,r){"use strict";r.r(e);var n=r(3),c=(r(26),r(17),r(48),r(37),r(20)),o={name:"Settings",middleware:["auth"],data:function(){return{password:"",user:{}}},computed:Object(c.c)(["settings"]),methods:{remove_account:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$root.$confirm("settings.remove_account_confirm",{color:"error"});case 2:if(e.sent){e.next=5;break}return e.abrupt("return");case 5:t.$axios.$delete("/user"),t.$auth.logout(),t.$router.replace("/");case 8:case"end":return e.stop()}}),e)})))()}},head:function(){return{title:"".concat(this.settings.title," - ").concat(this.$t("common.settings"))}}},l=r(11),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-container",[r("v-card",[r("v-card-title",{staticClass:"text-h5"},[t._v(t._s(t.$auth.user.email))]),r("v-card-text",[r("p",[t._v(t._s(t.$t("settings.remove_account")))]),r("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}}]);