(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{926:function(t,e,n){"use strict";n.r(e);var r=n(262),o=n(263),c=n(52),l=n(579),m=n(13),d=(n(56),n(21),n(54),n(20),n(38)),f={name:"Settings",middleware:["auth"],data:function(){return{password:"",user:{}}},computed:Object(d.d)(["settings"]),methods:{remove_account:function(){var t=this;return Object(m.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"))}}},_=n(24),component=Object(_.a)(f,(function(){var t=this,e=t._self._c;return e(l.a,[e(o.a,[e(c.d,{staticClass:"text-h5"},[t._v(t._s(t.$auth.user.email))]),e(c.c,[e("p",[t._v(t._s(t.$t("settings.remove_account")))]),e(r.a,{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}}]);