1 (window
.webpackJsonp
=window
.webpackJsonp
||[]).push([["chunk-22d2"],{"13xp":function(t
,s
,e
){"use strict";var a
=e("2r4G");e
.n(a
).a
},"2r4G":function(t
,s
,e
){},"4bFr":function(t
,s
,e
){"use strict";e
.r(s
);var a
=e("ot3S"),i
=e("tPM3"),n
=e("o0o1"),r
=e
.n(n
),o
=e("yXPU"),u
=e
.n(o
),c
=e("XJYT"),l
={name:"SecuritySettingsModal",props:{visible:{type:Boolean
,default:!1},user:{type:Object
,default:function(){return{}}}},data:function(){return{securitySettingsForm:{newEmail:"",newPassword:"",isEmailLoading:!1,isPasswordLoading:!1}}},computed:{isDesktop:function(){return"desktop"===this.$store
.state
.app
.device
},getLabelWidth:function(){return this.isDesktop
?"120px":"85px"},userCredentials:function(){return this.$store
.state
.userProfile
.userCredentials
}},mounted:function(){var t
=u()(r
.a
.mark(function t(){return r
.a
.wrap(function(t
){for(;;)switch(t
.prev
=t
.next
){case 0:return t
.next
=2,this.$store
.dispatch("FetchUserCredentials",{nickname:this.user
.nickname
});case 2:this.securitySettingsForm
.newEmail
=this.userCredentials
.email
;case 3:case"end":return t
.stop()}},t
,this)}));return function(){return t
.apply(this,arguments
)}}(),methods:{updateEmail:function(){var t
=u()(r
.a
.mark(function t(){var s
;return r
.a
.wrap(function(t
){for(;;)switch(t
.prev
=t
.next
){case 0:return s
={email:this.securitySettingsForm
.newEmail
},this.securitySettingsForm
.isEmailLoading
=!0,t
.next
=4,this.$store
.dispatch("UpdateUserCredentials",{nickname:this.user
.nickname
,credentials:s
});case 4:this.securitySettingsForm
.isEmailLoading
=!1,Object(c
.Message
)({message:this.$t("userProfile.securitySettings.emailUpdated"),type:"success",duration:5e3
});case 6:case"end":return t
.stop()}},t
,this)}));return function(){return t
.apply(this,arguments
)}}(),updatePassword:function(){var t
=u()(r
.a
.mark(function t(){var s
;return r
.a
.wrap(function(t
){for(;;)switch(t
.prev
=t
.next
){case 0:return s
={password:this.securitySettingsForm
.newPassword
},this.securitySettingsForm
.isPasswordLoading
=!0,t
.next
=4,this.$store
.dispatch("UpdateUserCredentials",{nickname:this.user
.nickname
,credentials:s
});case 4:this.securitySettingsForm
.isPasswordLoading
=!1,this.securitySettingsForm
.newPassword
="",Object(c
.Message
)({message:this.$t("userProfile.securitySettings.passwordUpdated"),type:"success",duration:5e3
});case 7:case"end":return t
.stop()}},t
,this)}));return function(){return t
.apply(this,arguments
)}}(),close:function(){this.$emit("close",!0)}}},d
=(e("13xp"),e("KHd+")),v
=Object(d
.a
)(l
,function(){var t
=this,s
=t
.$createElement
,e
=t
._self
._c
||s
;return e("el-dialog",{staticClass:"security-settings-modal",attrs:{"before-close":t
.close
,title:t
.$t("userProfile.securitySettings.securitySettings"),visible:t
.visible
}},[e("el-form",{attrs:{model:t
.securitySettingsForm
,"label-width":t
.getLabelWidth
}},[e("el-form-item",{attrs:{label:t
.$t("userProfile.securitySettings.email")}},[e("el-input",{attrs:{placeholder:t
.$t("userProfile.securitySettings.inputNewEmail")},model:{value:t
.securitySettingsForm
.newEmail
,callback:function(s
){t
.$set(t
.securitySettingsForm
,"newEmail",s
)},expression:"securitySettingsForm.newEmail"}})],1),t
._v(" "),e("el-form-item",[e("el-button",{staticClass:"security-settings-submit-button",attrs:{loading:t
.securitySettingsForm
.isEmailLoading
,disabled:!t
.securitySettingsForm
.newEmail
||t
.securitySettingsForm
.newEmail
===t
.userCredentials
.email
,type:"primary"},on:{click:function(s
){return t
.updateEmail()}}},[t
._v("\n "+t
._s(t
.$t("userProfile.securitySettings.submit"))+"\n ")])],1),t
._v(" "),e("el-form-item",{staticClass:"password-input",attrs:{label:t
.$t("userProfile.securitySettings.password")}},[e("el-input",{attrs:{placeholder:t
.$t("userProfile.securitySettings.inputNewPassword")},model:{value:t
.securitySettingsForm
.newPassword
,callback:function(s
){t
.$set(t
.securitySettingsForm
,"newPassword",s
)},expression:"securitySettingsForm.newPassword"}}),t
._v(" "),e("small",{staticClass:"form-text"},[t
._v("\n "+t
._s(t
.$t("userProfile.securitySettings.passwordLengthNotice",{minLength:8}))+"\n ")])],1),t
._v(" "),e("el-alert",{staticClass:"password-alert",attrs:{closable:!1,type:"warning","show-icon":""}},[e("p",[t
._v(t
._s(t
.$t("userProfile.securitySettings.passwordChangeWarning1")))]),t
._v(" "),e("p",[t
._v(t
._s(t
.$t("userProfile.securitySettings.passwordChangeWarning2")))])]),t
._v(" "),e("el-form-item",[e("el-button",{staticClass:"security-settings-submit-button",attrs:{loading:t
.securitySettingsForm
.isPasswordLoading
,disabled:t
.securitySettingsForm
.newPassword
.length
<8,type:"primary"},on:{click:function(s
){return t
.updatePassword()}}},[t
._v("\n "+t
._s(t
.$t("userProfile.securitySettings.submit"))+"\n ")])],1)],1)],1)},[],!1,null,null,null);v
.options
.__file
="SecuritySettingsModal.vue";var p
=v
.exports
,_
=e("rIUS"),g
={name:"UsersShow",components:{ModerationDropdown:i
.a
,RebootButton:_
.a
,Status:a
.a
,SecuritySettingsModal:p
},data:function(){return{showPrivate:!1,resetPasswordDialogOpen:!1,securitySettingsModalVisible:!1}},computed:{isDesktop:function(){return"desktop"===this.$store
.state
.app
.device
},isMobile:function(){return"mobile"===this.$store
.state
.app
.device
},isTablet:function(){return"tablet"===this.$store
.state
.app
.device
},loading:function(){return this.$store
.state
.users
.loading
},passwordResetLink:function(){return this.$store
.state
.users
.passwordResetToken
.link
},passwordResetToken:function(){return this.$store
.state
.users
.passwordResetToken
.token
},statuses:function(){return this.$store
.state
.userProfile
.statuses
},statusesLoading:function(){return this.$store
.state
.userProfile
.statusesLoading
},user:function(){return this.$store
.state
.userProfile
.user
},userProfileLoading:function(){return this.$store
.state
.userProfile
.userProfileLoading
},userCredentials:function(){return this.$store
.state
.userProfile
.userCredentials
}},mounted:function(){this.$store
.dispatch("NeedReboot"),this.$store
.dispatch("GetNodeInfo"),this.$store
.dispatch("FetchUserProfile",{userId:this.$route
.params
.id
,godmode:!1})},methods:{closeResetPasswordDialog:function(){this.resetPasswordDialogOpen
=!1,this.$store
.dispatch("RemovePasswordToken")},onTogglePrivate:function(){this.$store
.dispatch("FetchUserProfile",{userId:this.$route
.params
.id
,godmode:this.showPrivate
})},openResetPasswordDialog:function(){this.resetPasswordDialogOpen
=!0}}},h
=(e("tIqt"),Object(d
.a
)(g
,function(){var t
=this,s
=t
.$createElement
,e
=t
._self
._c
||s
;return t
.userProfileLoading
?t
._e():e("main",[t
.isDesktop
||t
.isTablet
?e("header",{staticClass:"user-page-header"},[e("div",{staticClass:"avatar-name-container"},[e("el-avatar",{attrs:{src:t
.user
.avatar
,size:"large"}}),t
._v(" "),e("h1",[t
._v(t
._s(t
.user
.display_name
))])],1),t
._v(" "),e("div",{staticClass:"left-header-container"},[e("moderation-dropdown",{attrs:{user:t
.user
,page:"userPage"},on:{"open-reset-token-dialog":t
.openResetPasswordDialog
}}),t
._v(" "),e("reboot-button")],1)]):t
._e(),t
._v(" "),t
.isMobile
?e("div",{staticClass:"user-page-header-container"},[e("header",{staticClass:"user-page-header"},[e("div",{staticClass:"avatar-name-container"},[e("el-avatar",{attrs:{src:t
.user
.avatar
,size:"large"}}),t
._v(" "),e("h1",[t
._v(t
._s(t
.user
.display_name
))])],1),t
._v(" "),e("reboot-button")],1),t
._v(" "),e("moderation-dropdown",{attrs:{user:t
.user
,page:"userPage"},on:{"open-reset-token-dialog":t
.openResetPasswordDialog
}})],1):t
._e(),t
._v(" "),e("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t
.loading
,expression:"loading"}],attrs:{visible:t
.resetPasswordDialogOpen
,title:t
.$t("users.passwordResetTokenCreated"),"custom-class":"password-reset-token-dialog"},on:{"update:visible":function(s
){t
.resetPasswordDialogOpen
=s
},close:t
.closeResetPasswordDialog
}},[e("div",[e("p",{staticClass:"password-reset-token"},[t
._v("Password reset token was generated: "+t
._s(t
.passwordResetToken
))]),t
._v(" "),e("p",[t
._v("You can also use this link to reset password:\n "),e("a",{staticClass:"reset-password-link",attrs:{href:t
.passwordResetLink
,target:"_blank"}},[t
._v(t
._s(t
.passwordResetLink
))])])])]),t
._v(" "),e("div",{staticClass:"user-profile-container"},[e("el-card",{staticClass:"user-profile-card"},[e("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition el-table--medium"},[e("table",{staticClass:"user-profile-table"},[e("tbody",[e("tr",{staticClass:"el-table__row"},[e("td",[t
._v(t
._s(t
.$t("userProfile.nickname")))]),t
._v(" "),e("td",[t
._v("\n "+t
._s(t
.user
.nickname
)+"\n ")])]),t
._v(" "),e("tr",{staticClass:"el-table__row"},[e("td",{staticClass:"name-col"},[t
._v("ID")]),t
._v(" "),e("td",{staticClass:"value-col"},[t
._v("\n "+t
._s(t
.user
.id
)+"\n ")])]),t
._v(" "),e("tr",{staticClass:"el-table__row"},[e("td",[t
._v(t
._s(t
.$t("userProfile.tags")))]),t
._v(" "),e("td",[t
._l(t
.user
.tags
,function(s
){return e("el-tag",{key:s
,staticClass:"user-profile-tag"},[t
._v(t
._s(s
))])}),t
._v(" "),0===t
.user
.tags
.length
?e("span",[t
._v("—")]):t
._e()],2)]),t
._v(" "),e("tr",{staticClass:"el-table__row"},[e("td",[t
._v(t
._s(t
.$t("userProfile.roles")))]),t
._v(" "),e("td",[t
.user
.roles
.admin
?e("el-tag",{staticClass:"user-profile-tag"},[t
._v("\n "+t
._s(t
.$t("users.admin"))+"\n ")]):t
._e(),t
._v(" "),t
.user
.roles
.moderator
?e("el-tag",{staticClass:"user-profile-tag"},[t
._v("\n "+t
._s(t
.$t("users.moderator"))+"\n ")]):t
._e(),t
._v(" "),t
.user
.roles
.moderator
||t
.user
.roles
.admin
?t
._e():e("span",[t
._v("—")])],1)]),t
._v(" "),e("tr",{staticClass:"el-table__row"},[e("td",[t
._v(t
._s(t
.$t("userProfile.localUppercase")))]),t
._v(" "),e("td",[t
.user
.local
?e("el-tag",{attrs:{type:"info"}},[t
._v(t
._s(t
.$t("userProfile.local")))]):t
._e(),t
._v(" "),t
.user
.local
?t
._e():e("el-tag",{attrs:{type:"info"}},[t
._v(t
._s(t
.$t("userProfile.external")))])],1)]),t
._v(" "),e("tr",{staticClass:"el-table__row"},[e("td",[t
._v(t
._s(t
.$t("userProfile.activeUppercase")))]),t
._v(" "),e("td",[t
.user
.deactivated
?t
._e():e("el-tag",{attrs:{type:"success"}},[t
._v(t
._s(t
.$t("userProfile.active")))]),t
._v(" "),t
.user
.deactivated
?e("el-tag",{attrs:{type:"danger"}},[t
._v(t
._s(t
.$t("userProfile.deactivated")))]):t
._e()],1)])])])]),t
._v(" "),e("el-button",{staticClass:"security-setting-button",attrs:{icon:"el-icon-lock"},on:{click:function(s
){t
.securitySettingsModalVisible
=!0}}},[t
._v("\n "+t
._s(t
.$t("userProfile.securitySettings.securitySettings"))+"\n ")]),t
._v(" "),e("SecuritySettingsModal",{attrs:{user:t
.user
,visible:t
.securitySettingsModalVisible
},on:{close:function(s
){t
.securitySettingsModalVisible
=!1}}})],1),t
._v(" "),e("div",{staticClass:"recent-statuses-container"},[e("h2",{staticClass:"recent-statuses"},[t
._v(t
._s(t
.$t("userProfile.recentStatuses")))]),t
._v(" "),e("el-checkbox",{staticClass:"show-private-statuses",on:{change:t
.onTogglePrivate
},model:{value:t
.showPrivate
,callback:function(s
){t
.showPrivate
=s
},expression:"showPrivate"}},[t
._v("\n "+t
._s(t
.$t("statuses.showPrivateStatuses"))+"\n ")]),t
._v(" "),t
.statusesLoading
?t
._e():e("el-timeline",{staticClass:"statuses"},[t
._l(t
.statuses
,function(s
){return e("el-timeline-item",{key:s
.id
},[e("status",{attrs:{status:s
,account:s
.account
,"show-checkbox":!1,"user-id":t
.user
.id
,godmode:t
.showPrivate
}})],1)}),t
._v(" "),0===t
.statuses
.length
?e("p",{staticClass:"no-statuses"},[t
._v(t
._s(t
.$t("userProfile.noStatuses")))]):t
._e()],2)],1)],1)],1)},[],!1,null,"d4bc7d00",null));h
.options
.__file
="show.vue";s
.default=h
.exports
},"53Av":function(t
,s
,e
){"use strict";var a
=e("lOBV");e
.n(a
).a
},Kw8l:function(t
,s
,e
){"use strict";var a
=e("cRgN");e
.n(a
).a
},RnhZ:function(t
,s
,e
){var a
={"./af":"K/tc","./af.js":"K/tc","./ar":"jnO4","./ar-dz":"o1bE","./ar-dz.js":"o1bE","./ar-kw":"Qj4J","./ar-kw.js":"Qj4J","./ar-ly":"HP3h","./ar-ly.js":"HP3h","./ar-ma":"CoRJ","./ar-ma.js":"CoRJ","./ar-sa":"gjCT","./ar-sa.js":"gjCT","./ar-tn":"bYM6","./ar-tn.js":"bYM6","./ar.js":"jnO4","./az":"SFxW","./az.js":"SFxW","./be":"H8ED","./be.js":"H8ED","./bg":"hKrs","./bg.js":"hKrs","./bm":"p/rL","./bm.js":"p/rL","./bn":"kEOa","./bn.js":"kEOa","./bo":"0mo+","./bo.js":"0mo+","./br":"aIdf","./br.js":"aIdf","./bs":"JVSJ","./bs.js":"JVSJ","./ca":"1xZ4","./ca.js":"1xZ4","./cs":"PA2r","./cs.js":"PA2r","./cv":"A+xa","./cv.js":"A+xa","./cy":"l5ep","./cy.js":"l5ep","./da":"DxQv","./da.js":"DxQv","./de":"tGlX","./de-at":"s+uk","./de-at.js":"s+uk","./de-ch":"u3GI","./de-ch.js":"u3GI","./de.js":"tGlX","./dv":"WYrj","./dv.js":"WYrj","./el":"jUeY","./el.js":"jUeY","./en-SG":"zavE","./en-SG.js":"zavE","./en-au":"Dmvi","./en-au.js":"Dmvi","./en-ca":"OIYi","./en-ca.js":"OIYi","./en-gb":"Oaa7","./en-gb.js":"Oaa7","./en-ie":"4dOw","./en-ie.js":"4dOw","./en-il":"czMo","./en-il.js":"czMo","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-us":"Vclq","./es-us.js":"Vclq","./es.js":"iYuL","./et":"7BjC","./et.js":"7BjC","./eu":"D/JM","./eu.js":"D/JM","./fa":"jfSC","./fa.js":"jfSC","./fi":"gekB","./fi.js":"gekB","./fo":"ByF4","./fo.js":"ByF4","./fr":"nyYc","./fr-ca":"2fjn","./fr-ca.js":"2fjn","./fr-ch":"Dkky","./fr-ch.js":"Dkky","./fr.js":"nyYc","./fy":"cRix","./fy.js":"cRix","./ga":"USCx","./ga.js":"USCx","./gd":"9rRi","./gd.js":"9rRi","./gl":"iEDd","./gl.js":"iEDd","./gom-latn":"DKr+","./gom-latn.js":"DKr+","./gu":"4MV3","./gu.js":"4MV3","./he":"x6pH","./he.js":"x6pH","./hi":"3E1r","./hi.js":"3E1r","./hr":"S6ln","./hr.js":"S6ln","./hu":"WxRl","./hu.js":"WxRl","./hy-am":"1rYy","./hy-am.js":"1rYy","./id":"UDhR","./id.js":"UDhR","./is":"BVg3","./is.js":"BVg3","./it":"bpih","./it-ch":"bxKX","./it-ch.js":"bxKX","./it.js":"bpih","./ja":"B55N","./ja.js":"B55N","./jv":"tUCv","./jv.js":"tUCv","./ka":"IBtZ","./ka.js":"IBtZ","./kk":"bXm7","./kk.js":"bXm7","./km":"6B0Y","./km.js":"6B0Y","./kn":"PpIw","./kn.js":"PpIw","./ko":"Ivi+","./ko.js":"Ivi+","./ku":"JCF/","./ku.js":"JCF/","./ky":"lgnt","./ky.js":"lgnt","./lb":"RAwQ","./lb.js":"RAwQ","./lo":"sp3z","./lo.js":"sp3z","./lt":"JvlW","./lt.js":"JvlW","./lv":"uXwI","./lv.js":"uXwI","./me":"KTz0","./me.js":"KTz0","./mi":"aIsn","./mi.js":"aIsn","./mk":"aQkU","./mk.js":"aQkU","./ml":"AvvY","./ml.js":"AvvY","./mn":"lYtQ","./mn.js":"lYtQ","./mr":"Ob0Z","./mr.js":"Ob0Z","./ms":"6+QB","./ms-my":"ZAMP","./ms-my.js":"ZAMP","./ms.js":"6+QB","./mt":"G0Uy","./mt.js":"G0Uy","./my":"honF","./my.js":"honF","./nb":"bOMt","./nb.js":"bOMt","./ne":"OjkT","./ne.js":"OjkT","./nl":"+s0g","./nl-be":"2ykv","./nl-be.js":"2ykv","./nl.js":"+s0g","./nn":"uEye","./nn.js":"uEye","./pa-in":"8/+R","./pa-in.js":"8/+R","./pl":"jVdC","./pl.js":"jVdC","./pt":"8mBD","./pt-br":"0tRk","./pt-br.js":"0tRk","./pt.js":"8mBD","./ro":"lyxo","./ro.js":"lyxo","./ru":"lXzo","./ru.js":"lXzo","./sd":"Z4QM","./sd.js":"Z4QM","./se":"//9w","./se.js":"//9w","./si":"7aV9","./si.js":"7aV9","./sk":"e+ae","./sk.js":"e+ae","./sl":"gVVK","./sl.js":"gVVK","./sq":"yPMs","./sq.js":"yPMs","./sr":"zx6S","./sr-cyrl":"E+lV","./sr-cyrl.js":"E+lV","./sr.js":"zx6S","./ss":"Ur1D","./ss.js":"Ur1D","./sv":"X709","./sv.js":"X709","./sw":"dNwA","./sw.js":"dNwA","./ta":"PeUW","./ta.js":"PeUW","./te":"XLvN","./te.js":"XLvN","./tet":"V2x9","./tet.js":"V2x9","./tg":"Oxv6","./tg.js":"Oxv6","./th":"EOgW","./th.js":"EOgW","./tl-ph":"Dzi0","./tl-ph.js":"Dzi0","./tlh":"z3Vd","./tlh.js":"z3Vd","./tr":"DoHr","./tr.js":"DoHr","./tzl":"z1FC","./tzl.js":"z1FC","./tzm":"wQk9","./tzm-latn":"tT3J","./tzm-latn.js":"tT3J","./tzm.js":"wQk9","./ug-cn":"YRex","./ug-cn.js":"YRex","./uk":"raLr","./uk.js":"raLr","./ur":"UpQW","./ur.js":"UpQW","./uz":"Loxo","./uz-latn":"AQ68","./uz-latn.js":"AQ68","./uz.js":"Loxo","./vi":"KSF8","./vi.js":"KSF8","./x-pseudo":"/X5v","./x-pseudo.js":"/X5v","./yo":"fzPg","./yo.js":"fzPg","./zh-cn":"XDpg","./zh-cn.js":"XDpg","./zh-hk":"SatO","./zh-hk.js":"SatO","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function i(t
){var s
=n(t
);return e(s
)}function n(t
){if(!e
.o(a
,t
)){var s
=new Error("Cannot find module '"+t
+"'");throw s
.code
="MODULE_NOT_FOUND",s
}return a
[t
]}i
.keys=function(){return Object
.keys(a
)},i
.resolve
=n
,t
.exports
=i
,i
.id
="RnhZ"},SMFL:function(t
,s
,e
){},cRgN:function(t
,s
,e
){},lOBV:function(t
,s
,e
){},ot3S:function(t
,s
,e
){"use strict";var a
=e("wd/R"),i
=e
.n(a
),n
={name:"Status",props:{account:{type:Object
,required:!1,default:function(){return{}}},fetchStatusesByInstance:{type:Boolean
,required:!1,default:!1},showCheckbox:{type:Boolean
,required:!0,default:!1},status:{type:Object
,required:!0},page:{type:Number
,required:!1,default:0},userId:{type:String
,required:!1,default:""},godmode:{type:Boolean
,required:!1,default:!1}},data:function(){return{showHiddenStatus:!1}},methods:{capitalizeFirstLetter:function(t
){return t
.charAt(0).toUpperCase()+t
.slice(1)},changeStatus:function(t
,s
,e
){this.$store
.dispatch("ChangeStatusScope",{statusId:t
,isSensitive:s
,visibility:e
,reportCurrentPage:this.page
,userId:this.userId
,godmode:this.godmode
,fetchStatusesByInstance:this.fetchStatusesByInstance
})},deleteStatus:function(t
){var s
=this;this.$confirm("Are you sure you want to delete this status?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(function(){s
.$store
.dispatch("DeleteStatus",{statusId:t
,reportCurrentPage:s
.page
,userId:s
.userId
,godmode:s
.godmode
,fetchStatusesByInstance:s
.fetchStatusesByInstance
}),s
.$message({type:"success",message:"Delete completed"})}).catch(function(){s
.$message({type:"info",message:"Delete canceled"})})},optionPercent:function(t
,s
){var e
=t
.options
.reduce(function(t
,s
){return t
+s
.votes_count
},0);return 0===e
?0:+(s
.votes_count
/e
*100).toFixed(1)},parseTimestamp:function(t
){return i()(t
).format("YYYY-MM-DD HH:mm")},handleStatusSelection:function(t
){this.$emit("status-selection",t
)}}},r
=(e("Kw8l"),e("KHd+")),o
=Object(r
.a
)(n
,function(){var t
=this,s
=t
.$createElement
,e
=t
._self
._c
||s
;return e("div",[t
.status
.deleted
?e("el-card",{staticClass:"status-card"},[e("div",{attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"status-header"},[e("div",{staticClass:"status-account-container"},[e("div",{staticClass:"status-account"},[e("h4",{staticClass:"status-deleted"},[t
._v(t
._s(t
.$t("reports.statusDeleted")))])])])])]),t
._v(" "),e("div",{staticClass:"status-body"},[t
.status
.content
?e("span",{staticClass:"status-content",domProps:{innerHTML:t
._s(t
.status
.content
)}}):e("span",{staticClass:"status-without-content"},[t
._v("no content")])]),t
._v(" "),t
.status
.created_at
?e("a",{staticClass:"account",attrs:{href:t
.status
.url
,target:"_blank"}},[t
._v("\n "+t
._s(t
.parseTimestamp(t
.status
.created_at
))+"\n ")]):t
._e()]):e("el-card",{staticClass:"status-card"},[e("div",{attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"status-header"},[e("div",{staticClass:"status-account-container"},[e("div",{staticClass:"status-account"},[t
.showCheckbox
?e("el-checkbox",{staticClass:"status-checkbox",on:{change:function(s
){return t
.handleStatusSelection(t
.account
)}}}):t
._e(),t
._v(" "),e("img",{staticClass:"status-avatar-img",attrs:{src:t
.account
.avatar
}}),t
._v(" "),t
.account
.deactivated
?e("span",[e("h3",{staticClass:"status-account-name"},[t
._v(t
._s(t
.account
.display_name
))]),t
._v(" "),e("h3",{staticClass:"status-account-name deactivated"},[t
._v(" (deactivated)")])]):e("a",{staticClass:"account",attrs:{href:t
.account
.url
,target:"_blank"}},[e("h3",{staticClass:"status-account-name"},[t
._v(t
._s(t
.account
.display_name
))])])],1)]),t
._v(" "),e("div",{staticClass:"status-actions"},[t
.status
.sensitive
?e("el-tag",{attrs:{type:"warning",size:"large"}},[t
._v(t
._s(t
.$t("reports.sensitive")))]):t
._e(),t
._v(" "),e("el-tag",{attrs:{size:"large"}},[t
._v(t
._s(t
.capitalizeFirstLetter(t
.status
.visibility
)))]),t
._v(" "),e("el-dropdown",{attrs:{trigger:"click"}},[e("el-button",{staticClass:"status-actions-button",attrs:{plain:"",size:"small",icon:"el-icon-edit"}},[t
._v("\n "+t
._s(t
.$t("reports.changeScope"))),e("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t
._v(" "),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t
.status
.sensitive
?t
._e():e("el-dropdown-item",{nativeOn:{click:function(s
){return t
.changeStatus(t
.status
.id
,!0,t
.status
.visibility
)}}},[t
._v("\n "+t
._s(t
.$t("reports.addSensitive"))+"\n ")]),t
._v(" "),t
.status
.sensitive
?e("el-dropdown-item",{nativeOn:{click:function(s
){return t
.changeStatus(t
.status
.id
,!1,t
.status
.visibility
)}}},[t
._v("\n "+t
._s(t
.$t("reports.removeSensitive"))+"\n ")]):t
._e(),t
._v(" "),"public"!==t
.status
.visibility
?e("el-dropdown-item",{nativeOn:{click:function(s
){return t
.changeStatus(t
.status
.id
,t
.status
.sensitive
,"public")}}},[t
._v("\n "+t
._s(t
.$t("reports.public"))+"\n ")]):t
._e(),t
._v(" "),"private"!==t
.status
.visibility
?e("el-dropdown-item",{nativeOn:{click:function(s
){return t
.changeStatus(t
.status
.id
,t
.status
.sensitive
,"private")}}},[t
._v("\n "+t
._s(t
.$t("reports.private"))+"\n ")]):t
._e(),t
._v(" "),"unlisted"!==t
.status
.visibility
?e("el-dropdown-item",{nativeOn:{click:function(s
){return t
.changeStatus(t
.status
.id
,t
.status
.sensitive
,"unlisted")}}},[t
._v("\n "+t
._s(t
.$t("reports.unlisted"))+"\n ")]):t
._e(),t
._v(" "),e("el-dropdown-item",{nativeOn:{click:function(s
){return t
.deleteStatus(t
.status
.id
)}}},[t
._v("\n "+t
._s(t
.$t("reports.deleteStatus"))+"\n ")])],1)],1)],1)])]),t
._v(" "),e("div",{staticClass:"status-body"},[t
.status
.spoiler_text
?e("div",[e("strong",[t
._v(t
._s(t
.status
.spoiler_text
))]),t
._v(" "),t
.showHiddenStatus
?t
._e():e("el-button",{staticClass:"show-more-button",attrs:{size:"mini"},on:{click:function(s
){t
.showHiddenStatus
=!0}}},[t
._v("Show more")]),t
._v(" "),t
.showHiddenStatus
?e("el-button",{staticClass:"show-more-button",attrs:{size:"mini"},on:{click:function(s
){t
.showHiddenStatus
=!1}}},[t
._v("Show less")]):t
._e(),t
._v(" "),t
.showHiddenStatus
?e("div",[e("span",{staticClass:"status-content",domProps:{innerHTML:t
._s(t
.status
.content
)}}),t
._v(" "),t
.status
.poll
?e("div",{staticClass:"poll"},[e("ul",t
._l(t
.status
.poll
.options
,function(s
,a
){return e("li",{key:a
},[t
._v("\n "+t
._s(s
.title
)+"\n "),e("el-progress",{attrs:{percentage:t
.optionPercent(t
.status
.poll
,s
)}})],1)}),0)]):t
._e(),t
._v(" "),t
._l(t
.status
.media_attachments
,function(t
,s
){return e("div",{key:s
,staticClass:"image"},[e("img",{attrs:{src:t
.preview_url
}})])})],2):t
._e()],1):t
._e(),t
._v(" "),t
.status
.spoiler_text
?t
._e():e("div",[e("span",{staticClass:"status-content",domProps:{innerHTML:t
._s(t
.status
.content
)}}),t
._v(" "),t
.status
.poll
?e("div",{staticClass:"poll"},[e("ul",t
._l(t
.status
.poll
.options
,function(s
,a
){return e("li",{key:a
},[t
._v("\n "+t
._s(s
.title
)+"\n "),e("el-progress",{attrs:{percentage:t
.optionPercent(t
.status
.poll
,s
)}})],1)}),0)]):t
._e(),t
._v(" "),t
._l(t
.status
.media_attachments
,function(t
,s
){return e("div",{key:s
,staticClass:"image"},[e("img",{attrs:{src:t
.preview_url
}})])})],2),t
._v(" "),e("a",{staticClass:"account",attrs:{href:t
.status
.url
,target:"_blank"}},[t
._v("\n "+t
._s(t
.parseTimestamp(t
.status
.created_at
))+"\n ")])])])],1)},[],!1,null,null,null);o
.options
.__file
="index.vue";s
.a
=o
.exports
},rIUS:function(t
,s
,e
){"use strict";var a
=e("o0o1"),i
=e
.n(a
),n
=e("yXPU"),r
=e
.n(n
),o
=e("mSNy"),u
={name:"RebootButton",computed:{needReboot:function(){return this.$store
.state
.app
.needReboot
}},methods:{restartApp:function(){var t
=r()(i
.a
.mark(function t(){return i
.a
.wrap(function(t
){for(;;)switch(t
.prev
=t
.next
){case 0:return t
.prev
=0,t
.next
=3,this.$store
.dispatch("RestartApplication");case 3:t
.next
=8;break;case 5:return t
.prev
=5,t
.t0
=t
.catch(0),t
.abrupt("return");case 8:this.$message({type:"success",message:o
.a
.t("settings.restartSuccess")});case 9:case"end":return t
.stop()}},t
,this,[[0,5]])}));return function(){return t
.apply(this,arguments
)}}()}},c
=e("KHd+"),l
=Object(c
.a
)(u
,function(){var t
=this.$createElement
,s
=this._self
._c
||t
;return this.needReboot
?s("el-tooltip",{attrs:{content:this.$t("settings.restartApp"),placement:"bottom-end"}},[s("el-button",{staticClass:"reboot-button",attrs:{type:"warning"},on:{click:this.restartApp
}},[s("span",[s("i",{staticClass:"el-icon-refresh"}),this._v("\n "+this._s(this.$t("settings.instanceReboot"))+"\n ")])])],1):this._e()},[],!1,null,null,null);l
.options
.__file
="index.vue";s
.a
=l
.exports
},tIqt:function(t
,s
,e
){"use strict";var a
=e("SMFL");e
.n(a
).a
},tPM3:function(t
,s
,e
){"use strict";var a
={name:"ModerationDropdown",props:{user:{type:Object
,default:function(){return{}}},page:{type:String
,default:"users"}},computed:{isDesktop:function(){return"desktop"===this.$store
.state
.app
.device
}},methods:{getPasswordResetToken:function(t
){this.$emit("open-reset-token-dialog"),this.$store
.dispatch("GetPasswordResetToken",t
)},handleConfirmationResend:function(t
){this.$store
.dispatch("ResendConfirmationEmail",[t
])},handleDeletion:function(t
){this.$store
.dispatch("DeleteUsers",{users:[t
],_userId:t
.id
})},handleEmailConfirmation:function(t
){this.$store
.dispatch("ConfirmUsersEmail",{users:[t
],_userId:t
.id
})},requirePasswordReset:function(t
){this.$store
.state
.user
.nodeInfo
.metadata
.mailerEnabled
?this.$store
.dispatch("RequirePasswordReset",[t
]):this.$alert(this.$t("users.mailerMustBeEnabled"),"Error",{type:"error"})},showAdminAction:function(t
){var s
=t
.local
,e
=t
.id
;return s
&&this.showDeactivatedButton(e
)},showDeactivatedButton:function(t
){return this.$store
.state
.user
.id
!==t
},toggleActivation:function(t
){t
.deactivated
?this.$store
.dispatch("ActivateUsers",{users:[t
],_userId:t
.id
}):this.$store
.dispatch("DeactivateUsers",{users:[t
],_userId:t
.id
})},toggleTag:function(t
,s
){t
.tags
.includes(s
)?this.$store
.dispatch("RemoveTag",{users:[t
],tag:s
,_userId:t
.id
}):this.$store
.dispatch("AddTag",{users:[t
],tag:s
,_userId:t
.id
})},toggleUserRight:function(t
,s
){t
.roles
[s
]?this.$store
.dispatch("DeleteRight",{users:[t
],right:s
,_userId:t
.id
}):this.$store
.dispatch("AddRight",{users:[t
],right:s
,_userId:t
.id
})}}},i
=(e("53Av"),e("KHd+")),n
=Object(i
.a
)(a
,function(){var t
=this,s
=t
.$createElement
,e
=t
._self
._c
||s
;return e("el-dropdown",{attrs:{"hide-on-click":!1,size:"small",trigger:"click"}},[e("div",["users"===t
.page
?e("span",{staticClass:"el-dropdown-link"},[t
._v("\n "+t
._s(t
.$t("users.moderation"))+"\n "),t
.isDesktop
?e("i",{staticClass:"el-icon-arrow-down el-icon--right"}):t
._e()]):t
._e(),t
._v(" "),"userPage"===t
.page
?e("el-button",{staticClass:"moderate-user-button"},[e("span",{staticClass:"moderate-user-button-container"},[e("span",[e("i",{staticClass:"el-icon-edit"}),t
._v("\n "+t
._s(t
.$t("users.moderateUser"))+"\n ")]),t
._v(" "),e("i",{staticClass:"el-icon-arrow-down el-icon--right"})])]):t
._e()],1),t
._v(" "),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t
.showAdminAction(t
.user
)?e("el-dropdown-item",{nativeOn:{click:function(s
){return t
.toggleUserRight(t
.user
,"admin")}}},[t
._v("\n "+t
._s(t
.user
.roles
.admin
?t
.$t("users.revokeAdmin"):t
.$t("users.grantAdmin"))+"\n ")]):t
._e(),t
._v(" "),t
.showAdminAction(t
.user
)?e("el-dropdown-item",{nativeOn:{click:function(s
){return t
.toggleUserRight(t
.user
,"moderator")}}},[t
._v("\n "+t
._s(t
.user
.roles
.moderator
?t
.$t("users.revokeModerator"):t
.$t("users.grantModerator"))+"\n ")]):t
._e(),t
._v(" "),t
.showDeactivatedButton(t
.user
.id
)?e("el-dropdown-item",{attrs:{divided:t
.showAdminAction(t
.user
)},nativeOn:{click:function(s
){return t
.toggleActivation(t
.user
)}}},[t
._v("\n "+t
._s(t
.user
.deactivated
?t
.$t("users.activateAccount"):t
.$t("users.deactivateAccount"))+"\n ")]):t
._e(),t
._v(" "),t
.showDeactivatedButton(t
.user
.id
)?e("el-dropdown-item",{nativeOn:{click:function(s
){return t
.handleDeletion(t
.user
)}}},[t
._v("\n "+t
._s(t
.$t("users.deleteAccount"))+"\n ")]):t
._e(),t
._v(" "),t
.user
.local
&&t
.user
.confirmation_pending
?e("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(s
){return t
.handleEmailConfirmation(t
.user
)}}},[t
._v("\n "+t
._s(t
.$t("users.confirmAccount"))+"\n ")]):t
._e(),t
._v(" "),t
.user
.local
&&t
.user
.confirmation_pending
?e("el-dropdown-item",{nativeOn:{click:function(s
){return t
.handleConfirmationResend(t
.user
)}}},[t
._v("\n "+t
._s(t
.$t("users.resendConfirmation"))+"\n ")]):t
._e(),t
._v(" "),e("el-dropdown-item",{class:{"active-tag":t
.user
.tags
.includes("force_nsfw")},attrs:{divided:t
.showAdminAction(t
.user
)},nativeOn:{click:function(s
){return t
.toggleTag(t
.user
,"force_nsfw")}}},[t
._v("\n "+t
._s(t
.$t("users.forceNsfw"))+"\n "),t
.user
.tags
.includes("force_nsfw")?e("i",{staticClass:"el-icon-check"}):t
._e()]),t
._v(" "),e("el-dropdown-item",{class:{"active-tag":t
.user
.tags
.includes("strip_media")},nativeOn:{click:function(s
){return t
.toggleTag(t
.user
,"strip_media")}}},[t
._v("\n "+t
._s(t
.$t("users.stripMedia"))+"\n "),t
.user
.tags
.includes("strip_media")?e("i",{staticClass:"el-icon-check"}):t
._e()]),t
._v(" "),e("el-dropdown-item",{class:{"active-tag":t
.user
.tags
.includes("force_unlisted")},nativeOn:{click:function(s
){return t
.toggleTag(t
.user
,"force_unlisted")}}},[t
._v("\n "+t
._s(t
.$t("users.forceUnlisted"))+"\n "),t
.user
.tags
.includes("force_unlisted")?e("i",{staticClass:"el-icon-check"}):t
._e()]),t
._v(" "),e("el-dropdown-item",{class:{"active-tag":t
.user
.tags
.includes("sandbox")},nativeOn:{click:function(s
){return t
.toggleTag(t
.user
,"sandbox")}}},[t
._v("\n "+t
._s(t
.$t("users.sandbox"))+"\n "),t
.user
.tags
.includes("sandbox")?e("i",{staticClass:"el-icon-check"}):t
._e()]),t
._v(" "),t
.user
.local
?e("el-dropdown-item",{class:{"active-tag":t
.user
.tags
.includes("disable_remote_subscription")},nativeOn:{click:function(s
){return t
.toggleTag(t
.user
,"disable_remote_subscription")}}},[t
._v("\n "+t
._s(t
.$t("users.disableRemoteSubscription"))+"\n "),t
.user
.tags
.includes("disable_remote_subscription")?e("i",{staticClass:"el-icon-check"}):t
._e()]):t
._e(),t
._v(" "),t
.user
.local
?e("el-dropdown-item",{class:{"active-tag":t
.user
.tags
.includes("disable_any_subscription")},nativeOn:{click:function(s
){return t
.toggleTag(t
.user
,"disable_any_subscription")}}},[t
._v("\n "+t
._s(t
.$t("users.disableAnySubscription"))+"\n "),t
.user
.tags
.includes("disable_any_subscription")?e("i",{staticClass:"el-icon-check"}):t
._e()]):t
._e(),t
._v(" "),t
.user
.local
?e("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(s
){return t
.getPasswordResetToken(t
.user
.nickname
)}}},[t
._v("\n "+t
._s(t
.$t("users.getPasswordResetToken"))+"\n ")]):t
._e(),t
._v(" "),t
.user
.local
?e("el-dropdown-item",{nativeOn:{click:function(s
){return t
.requirePasswordReset(t
.user
)}}},[t
._v("\n "+t
._s(t
.$t("users.requirePasswordReset"))+"\n ")]):t
._e()],1)],1)},[],!1,null,null,null);n
.options
.__file
="ModerationDropdown.vue";s
.a
=n
.exports
}}]);
2 //# sourceMappingURL=chunk-22d2.a0cf7976.js.map