(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{974:function(t,e,n){"use strict";n.r(e);var r=n(263),o=n(264),c=n(51),l=n(586),m=n(13),d=(n(55),n(21),n(53),n(20),n(36)),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}}]);