(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{535:function(t,s,a){},572:function(t,s,a){"use strict";var e=a(535);a.n(e).a},722:function(t,s,a){"use strict";a.r(s);var e=a(221),i=a(220),o=a(71),n=a(0),r=a(32),d=a(3).a.extend({components:{factorIcon:i.g,dashboardPage:e.g,dashboardPane:e.h,dashboardInput:e.f,factorBtnDashboard:i.d},data:()=>({sending:!1,loading:!1,postType:"user"}),computed:{post:{get(){return Object(n.C)(this._id)||{}},set(t){Object(n.B)(this._id,t)}},profile(){return this.post.profile||{}},_id(){return this.$route.query._id||Object(o.g)()},url(){return this.post.username?`/@${this.post.username}`:`/@?_id=${this.post._id}`}},methods:{userId:o.g,standardDate:n.A,async sendVerifyEmail(){this.sending=!0,await Object(o.e)({email:this.post.email,_id:this.post._id}),this.sending=!1},async save(){this.sending=!0;const t=await Object(r.h)({post:this.post,postType:this.postType});t&&(this.post=t,Object(n.h)("notify","Saved!")),this.sending=!1}}}),p=(a(572),a(531)),l=Object(p.a)(d,(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("dashboard-page",[a("div",{staticClass:"user-dashboard-post-grid"},[a("div",{staticClass:"content-column"},[a("dashboard-pane",{staticClass:"compose inputs",attrs:{title:t._id==t.userId()?"Your Account":"Edit User"},scopedSlots:t._u([{key:"actions",fn:function(){return[a("factor-btn-dashboard",{attrs:{btn:"primary",loading:t.sending},on:{click:function(s){return t.save()}}},[t._v("\n            Save  \n            "),a("factor-icon",{attrs:{icon:"arrow-up"}})],1)]},proxy:!0}])},[a("dashboard-input",{staticClass:"post-title",attrs:{input:"factor-input-text",label:"Display Name"},model:{value:t.post.displayName,callback:function(s){t.$set(t.post,"displayName",s)},expression:"post.displayName"}}),t._v(" "),a("dashboard-input",{attrs:{input:"factor-input-text",label:"Username",description:"Must be unique."},model:{value:t.post.username,callback:function(s){t.$set(t.post,"username",s)},expression:"post.username"}}),t._v(" "),a("dashboard-input",{staticClass:"email-inputs",attrs:{input:"factor-input-email",label:"Email Address"},model:{value:t.post.email,callback:function(s){t.$set(t.post,"email",s)},expression:"post.email"}},[t.post.email&&!t.post.emailVerified?a("div",[a("factor-btn-dashboard",{attrs:{size:"tiny",btn:"subtle"}},[t._v("Unverified")]),t._v(" "),a("factor-btn-dashboard",{attrs:{size:"tiny",loading:t.sending},on:{click:function(s){return t.sendVerifyEmail()}}},[t._v("Resend Email")])],1):t._e()]),t._v(" "),a("dashboard-input",{attrs:{input:"factor-input-password",label:"Update Password",autocomplete:"new-password"},model:{value:t.post.password,callback:function(s){t.$set(t.post,"password",s)},expression:"post.password"}})],1),t._v(" "),a("dashboard-pane",{staticClass:"inputs",attrs:{title:"Profile"},scopedSlots:t._u([{key:"actions",fn:function(){return[a("factor-btn-dashboard",{attrs:{btn:"primary",loading:t.sending},on:{click:function(s){return t.save()}}},[t._v("\n            Save  \n            "),a("factor-icon",{attrs:{icon:"arrow-up"}})],1)]},proxy:!0}])},[a("dashboard-input",{attrs:{"input-max":"5","input-min":"1",input:"factor-input-image-upload",label:"Profile Photo(s)",loading:t.loading},on:{autosave:function(s){return t.$emit("autosave")}},model:{value:t.post.images,callback:function(s){t.$set(t.post,"images",s)},expression:"post.images"}}),t._v(" "),a("dashboard-input",{attrs:{"input-max":"5","input-min":"1",input:"factor-input-image-upload",label:"Cover Photo(s)",loading:t.loading},on:{autosave:function(s){return t.$emit("autosave")}},model:{value:t.post.covers,callback:function(s){t.$set(t.post,"covers",s)},expression:"post.covers"}}),t._v(" "),a("dashboard-input",{attrs:{input:"factor-input-textarea",label:"About You",placeholder:"Work, hobbies, travels, etc..."},model:{value:t.post.about,callback:function(s){t.$set(t.post,"about",s)},expression:"post.about"}}),t._v(" "),a("dashboard-input",{attrs:{input:"factor-input-birthday",label:"Birthday",description:"This information is not shared."},model:{value:t.post.birthday,callback:function(s){t.$set(t.post,"birthday",s)},expression:"post.birthday"}}),t._v(" "),a("dashboard-input",{attrs:{list:["female","male"],input:"factor-input-select",label:"Gender",description:"This information is not shared."},model:{value:t.post.gender,callback:function(s){t.$set(t.post,"gender",s)},expression:"post.gender"}}),t._v(" "),a("div",{staticClass:"user-info"},[a("div",{staticClass:"item"},[a("div",{staticClass:"label"},[t._v("Logged In")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.standardDate(t.post.signedInAt)))])]),t._v(" "),a("div",{staticClass:"item"},[a("div",{staticClass:"label"},[t._v("Signed up")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.standardDate(t.post.createdAt)))])])])],1),t._v(" "),t._t("edit")],2)])])}),[],!1,null,null,null);s.default=l.exports}}]);