1 (window
.webpackJsonp
=window
.webpackJsonp
||[]).push([["chunk-0e18"],{"4bFr":function(t
,e
,s
){"use strict";s
.r(e
);var a
={name:"UsersShow",data:function(){return{showPrivate:!1}},computed:{loading:function(){return this.$store
.state
.userProfile
.loading
},user:function(){return this.$store
.state
.userProfile
.user
},statuses:function(){return this.$store
.state
.userProfile
.statuses
}},mounted:function(){this.$store
.dispatch("FetchData",{id:this.$route
.params
.id
,godmode:!1})},methods:{optionPercent:function(t
,e
){var s
=t
.options
.reduce(function(t
,e
){return t
+e
.votes_count
},0);return 0===s
?0:+(e
.votes_count
/s
*100).toFixed(1)},createdAtLocaleString:function(t
){var e
=new Date(t
);return"".concat(e
.toLocaleDateString()," ").concat(e
.toLocaleTimeString())},onTogglePrivate:function(){console
.log(this.showPrivate
),this.$store
.dispatch("FetchData",{id:this.$route
.params
.id
,godmode:this.showPrivate
})}}},r
=(s("QG2t"),s("KHd+")),l
=Object(r
.a
)(a
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return t
.loading
?t
._e():s("main",[s("header",[s("el-avatar",{attrs:{src:t
.user
.avatar
,size:"large"}}),t
._v(" "),s("h1",[t
._v(t
._s(t
.user
.display_name
))])],1),t
._v(" "),s("el-row",[s("el-col",{attrs:{span:6}},[s("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition el-table--medium"},[s("table",{staticClass:"el-table__body"},[s("tbody",[s("tr",{staticClass:"el-table__row"},[s("td",{staticClass:"name-col"},[t
._v("ID")]),t
._v(" "),s("td",{staticClass:"value-col"},[t
._v("\n "+t
._s(t
.user
.id
)+"\n ")])]),t
._v(" "),s("tr",{staticClass:"el-table__row"},[s("td",[t
._v(t
._s(t
.$t("userProfile.tags")))]),t
._v(" "),s("td",[t
._l(t
.user
.tags
,function(e
){return s("el-tag",{key:e
},[t
._v(t
._s(e
))])}),t
._v(" "),0===t
.user
.tags
.length
?s("span",[t
._v("None")]):t
._e()],2)]),t
._v(" "),s("tr",{staticClass:"el-table__row"},[s("td",[t
._v(t
._s(t
.$t("userProfile.moderator")))]),t
._v(" "),s("td",[t
.user
.roles
.moderator
?s("el-tag",{attrs:{type:"success"}},[s("i",{staticClass:"el-icon-check"})]):t
._e(),t
._v(" "),t
.user
.roles
.moderator
?t
._e():s("el-tag",{attrs:{type:"danger"}},[s("i",{staticClass:"el-icon-error"})])],1)]),t
._v(" "),s("tr",{staticClass:"el-table__row"},[s("td",[t
._v(t
._s(t
.$t("userProfile.admin")))]),t
._v(" "),s("td",[t
.user
.roles
.admin
?s("el-tag",{attrs:{type:"success"}},[s("i",{staticClass:"el-icon-check"})]):t
._e(),t
._v(" "),t
.user
.roles
.admin
?t
._e():s("el-tag",{attrs:{type:"danger"}},[s("i",{staticClass:"el-icon-error"})])],1)]),t
._v(" "),s("tr",{staticClass:"el-table__row"},[s("td",[t
._v(t
._s(t
.$t("userProfile.local")))]),t
._v(" "),s("td",[t
.user
.local
?s("el-tag",{attrs:{type:"success"}},[s("i",{staticClass:"el-icon-check"})]):t
._e(),t
._v(" "),t
.user
.local
?t
._e():s("el-tag",{attrs:{type:"danger"}},[s("i",{staticClass:"el-icon-error"})])],1)]),t
._v(" "),s("tr",{staticClass:"el-table__row"},[s("td",[t
._v(t
._s(t
.$t("userProfile.deactivated")))]),t
._v(" "),s("td",[t
.user
.deactivated
?s("el-tag",{attrs:{type:"success"}},[s("i",{staticClass:"el-icon-check"})]):t
._e(),t
._v(" "),t
.user
.deactivated
?t
._e():s("el-tag",{attrs:{type:"danger"}},[s("i",{staticClass:"el-icon-error"})])],1)]),t
._v(" "),s("tr",{staticClass:"el-table__row"},[s("td",[t
._v(t
._s(t
.$t("userProfile.nickname")))]),t
._v(" "),s("td",[t
._v("\n "+t
._s(t
.user
.nickname
)+"\n ")])])])])])]),t
._v(" "),s("el-row",{staticClass:"row-bg",attrs:{type:"flex",justify:"space-between"}},[s("el-col",{attrs:{span:18}},[s("h2",[t
._v(t
._s(t
.$t("userProfile.recentStatuses")))])]),t
._v(" "),s("el-col",{staticClass:"show-private",attrs:{span:6}},[s("el-checkbox",{on:{change:t
.onTogglePrivate
},model:{value:t
.showPrivate
,callback:function(e
){t
.showPrivate
=e
},expression:"showPrivate"}},[t
._v("\n "+t
._s(t
.$t("userProfile.showPrivateStatuses"))+"\n ")])],1)],1),t
._v(" "),s("el-col",{attrs:{span:18}},[s("el-timeline",{staticClass:"statuses"},t
._l(t
.statuses
,function(e
){return s("el-timeline-item",{key:e
.id
,attrs:{timestamp:t
.createdAtLocaleString(e
.created_at
)}},[s("el-card",[e
.spoiler_text
?s("strong",[t
._v(t
._s(e
.spoiler_text
))]):t
._e(),t
._v(" "),e
.content
?s("p",{domProps:{innerHTML:t
._s(e
.content
)}}):t
._e(),t
._v(" "),e
.poll
?s("div",{staticClass:"poll"},[s("ul",t
._l(e
.poll
.options
,function(a
,r
){return s("li",{key:r
},[t
._v("\n "+t
._s(a
.title
)+"\n "),s("el-progress",{attrs:{percentage:t
.optionPercent(e
.poll
,a
)}})],1)}),0)]):t
._e(),t
._v(" "),t
._l(e
.media_attachments
,function(t
,e
){return s("div",{key:e
,staticClass:"image"},[s("img",{attrs:{src:t
.preview_url
}})])})],2)],1)}),1)],1)],1)],1)},[],!1,null,"71c7ded0",null);l
.options
.__file
="show.vue";e
.default=l
.exports
},QG2t:function(t
,e
,s
){"use strict";var a
=s("R7Mx");s
.n(a
).a
},R7Mx:function(t
,e
,s
){}}]);