4670071d0486ee4c759a0b3209be2fb6dccbdccc
[anni] / priv / static / adminfe / static / js / chunk-2be3.7b7c045e.js
1 (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2be3"],{"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"),r=e("yXPU"),n=e.n(r),o=e("o0o1"),c=e.n(o),u=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=n()(c.a.mark(function t(){return c.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=this;return n()(c.a.mark(function s(){var e;return c.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return e={email:t.securitySettingsForm.newEmail},t.securitySettingsForm.isEmailLoading=!0,s.next=4,t.$store.dispatch("UpdateUserCredentials",{nickname:t.user.nickname,credentials:e});case 4:t.securitySettingsForm.isEmailLoading=!1,Object(u.Message)({message:t.$t("userProfile.securitySettings.emailUpdated"),type:"success",duration:5e3});case 6:case"end":return s.stop()}},s)}))()},updatePassword:function(){var t=this;return n()(c.a.mark(function s(){var e;return c.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return e={password:t.securitySettingsForm.newPassword},t.securitySettingsForm.isPasswordLoading=!0,s.next=4,t.$store.dispatch("UpdateUserCredentials",{nickname:t.user.nickname,credentials:e});case 4:t.securitySettingsForm.isPasswordLoading=!1,t.securitySettingsForm.newPassword="",Object(u.Message)({message:t.$t("userProfile.securitySettings.passwordUpdated"),type:"success",duration:5e3});case 7:case"end":return s.stop()}},s)}))()},close:function(){this.$emit("close",!0)}}},d=(e("13xp"),e("KHd+")),p=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);p.options.__file="SecuritySettingsModal.vue";var v=p.exports,_=e("rIUS"),g=e("WjBP"),m={name:"UsersShow",components:{ModerationDropdown:i.a,RebootButton:_.a,ResetPasswordDialog:g.a,Status:a.a,SecuritySettingsModal:v},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},statuses:function(){return this.$store.state.userProfile.statuses},statusesLoading:function(){return this.$store.state.userProfile.statusesLoading},chats:function(){return this.$store.state.userProfile.chats},chatsLoading:function(){return this.$store.state.userProfile.chatsLoading},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")},humanizeTag:function(t){return{"mrf_tag:media-force-nsfw":"Force NSFW","mrf_tag:media-strip":"Strip Media","mrf_tag:force-unlisted":"Force Unlisted","mrf_tag:sandbox":"Sandbox","mrf_tag:disable-remote-subscription":"Disable remote subscription","mrf_tag:disable-any-subscription":"Disable any subscription"}[t]},onTogglePrivate:function(){this.$store.dispatch("FetchUserProfile",{userId:this.$route.params.id,godmode:this.showPrivate})},openResetPasswordDialog:function(){this.resetPasswordDialogOpen=!0},propertyExists:function(t,s){return t[s]}}},h=(e("9IXO"),Object(d.a)(m,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"},[t.propertyExists(t.user,"avatar")?e("el-avatar",{attrs:{src:t.user.avatar,size:"large"}}):t._e(),t._v(" "),t.propertyExists(t.user,"nickname")?e("h1",[t._v(t._s(t.user.nickname))]):e("h1",{staticClass:"invalid"},[t._v("("+t._s(t.$t("users.invalidNickname"))+")")]),t._v(" "),t.propertyExists(t.user,"url")?e("a",{attrs:{href:t.user.url,target:"_blank"}},[e("i",{staticClass:"el-icon-top-right",attrs:{title:t.$t("userProfile.openAccountInInstance")}})]):t._e()],1),t._v(" "),e("div",{staticClass:"left-header-container"},[t.propertyExists(t.user,"nickname")?e("moderation-dropdown",{attrs:{user:t.user,page:"userPage"},on:{"open-reset-token-dialog":t.openResetPasswordDialog}}):t._e(),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"},[t.propertyExists(t.user,"avatar")?e("el-avatar",{attrs:{src:t.user.avatar,size:"large"}}):t._e(),t._v(" "),t.propertyExists(t.user,"nickname")?e("h1",[t._v(t._s(t.user.nickname))]):e("h1",{staticClass:"invalid"},[t._v("("+t._s(t.$t("users.invalidNickname"))+")")])],1),t._v(" "),e("reboot-button")],1),t._v(" "),t.propertyExists(t.user,"nickname")?e("moderation-dropdown",{attrs:{user:t.user,page:"userPage"},on:{"open-reset-token-dialog":t.openResetPasswordDialog}}):t._e()],1):t._e(),t._v(" "),e("reset-password-dialog",{attrs:{"reset-password-dialog-open":t.resetPasswordDialogOpen},on:{"close-reset-token-dialog":t.closeResetPasswordDialog}}),t._v(" "),e("div",{staticClass:"user-profile-container"},[e("div",{staticClass:"user-cards-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"},[t.propertyExists(t.user,"nickname")?t._e():e("el-tag",{staticClass:"invalid-user-tag",attrs:{type:"info"}},[t._v("\n            "+t._s(t.$t("users.invalidAccount"))+"\n          ")]),t._v(" "),e("table",{staticClass:"user-profile-table"},[e("tbody",[e("tr",{staticClass:"el-table__row"},[e("td",{staticClass:"name-col"},[t._v("ID")]),t._v(" "),e("td",[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.actorType")))]),t._v(" "),e("td",[e("el-tag",{attrs:{type:"Person"===t.userCredentials.actor_type?"success":"warning"}},[t._v("\n                    "+t._s(t.userCredentials.actor_type)+"\n                  ")])],1)]),t._v(" "),e("tr",{staticClass:"el-table__row"},[e("td",[t._v(t._s(t.$t("userProfile.tags")))]),t._v(" "),e("td",[0!==t.user.tags.length&&t.propertyExists(t.user,"tags")?t._l(t.user.tags,function(s){return e("el-tag",{key:s,staticClass:"user-profile-tag"},[t._v(t._s(t.humanizeTag(s)))])}):e("span",[t._v("—")])],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.propertyExists(t.user,"roles")&&(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.accountType")))]),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.status")))]),t._v(" "),e("td",[t.user.is_approved?t._e():e("el-tag",{attrs:{type:"info"}},[t._v(t._s(t.$t("userProfile.pending")))]),t._v(" "),t.user.is_active&&t.user.is_approved?e("el-tag",{attrs:{type:"success"}},[t._v(t._s(t.$t("userProfile.active")))]):t._e(),t._v(" "),t.user.is_active?t._e():e("el-tag",{attrs:{type:"danger"}},[t._v(t._s(t.$t("userProfile.deactivated")))])],1)])])]),t._v(" "),t.user.registration_reason?e("div",[e("div",{staticClass:"reason-label"},[t._v(t._s(t.$t("userProfile.reason")))]),t._v('\n            "'+t._s(t.user.registration_reason)+'"\n          ')]):t._e()],1),t._v(" "),t.propertyExists(t.user,"nickname")?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._e(),t._v(" "),t.propertyExists(t.user,"nickname")?e("SecuritySettingsModal",{attrs:{user:t.user,visible:t.securitySettingsModalVisible},on:{close:function(s){t.securitySettingsModalVisible=!1}}}):t._e()],1),t._v(" "),e("el-card",{staticClass:"user-chats-card"},[e("h2",{staticClass:"chats"},[t._v(t._s(t.$t("userProfile.chats")))]),t._v(" "),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-chats-table"},[t.chatsLoading?t._e():e("tbody",{staticClass:"chats"},[0===t.chats.length?e("tr",{staticClass:"no-statuses"},[t._v("\n                "+t._s(t.$t("userProfile.noChats"))+"\n              ")]):t._e(),t._v(" "),t._l(t.chats,function(s){return e("tr",{key:s.id,staticClass:"el-table__row chat-item"},[e("td",[t.propertyExists(s,"id")?e("router-link",{staticClass:"router-link",attrs:{to:{name:"ChatsShow",params:{id:s.id}}}},[e("div",{staticClass:"chat-card-header"},[t.propertyExists(s.receiver,"avatar")?e("img",{staticClass:"chat-avatar-img",attrs:{src:s.receiver.avatar}}):t._e(),t._v(" "),t.propertyExists(s.receiver,"username")?e("span",{staticClass:"chat-account-name"},[t._v(t._s(s.receiver.username))]):e("span",[t.propertyExists(s.receiver,"username")?e("span",{staticClass:"chat-account-name"},[t._v("\n                          "+t._s(s.receiver.username)+"\n                        ")]):e("span",{staticClass:"chat-account-name deactivated"},[t._v("("+t._s(t.$t("users.invalidNickname"))+")")])])]),t._v(" "),e("div",{staticClass:"chat-card-preview"},[t.propertyExists(s,"last_message")?e("span",{staticClass:"chat-preview"},[t._v(t._s(s.last_message.content))]):t._e()])]):t._e()],1)])})],2)])])])],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,null,null,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},"9IXO":function(t,s,e){"use strict";var a=e("msq4");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-bd":"loYQ","./bn-bd.js":"loYQ","./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-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-in":"7C5Q","./en-in.js":"7C5Q","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./en-sg":"t+mt","./en-sg.js":"t+mt","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-mx":"tbfe","./es-mx.js":"tbfe","./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","./fil":"1ppg","./fil.js":"1ppg","./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-deva":"qvJo","./gom-deva.js":"qvJo","./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","./oc-lnc":"Fnuy","./oc-lnc.js":"Fnuy","./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","./tk":"Wv91","./tk.js":"Wv91","./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-mo":"OmwH","./zh-mo.js":"OmwH","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function i(t){var s=r(t);return e(s)}function r(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=r,t.exports=i,i.id="RnhZ"},WjBP:function(t,s,e){"use strict";var a={name:"ResetPasswordDialog",props:{resetPasswordDialogOpen:{type:Boolean,default:!1}},computed:{dialogOpen:function(){return this.resetPasswordDialogOpen},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}},methods:{closeResetPasswordDialog:function(){this.$emit("close-reset-token-dialog")}}},i=e("KHd+"),r=Object(i.a)(a,function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{visible:t.dialogOpen,title:t.$t("users.passwordResetTokenCreated"),"custom-class":"password-reset-token-dialog"},on:{close:t.closeResetPasswordDialog}},[e("div",[e("p",{staticClass:"password-reset-token"},[t._v(t._s(t.$t("users.passwordResetTokenGenerated"))+" "+t._s(t.passwordResetToken))]),t._v(" "),e("p",[t._v(t._s(t.$t("users.linkToResetPassword"))+"\n      "),e("a",{staticClass:"reset-password-link",attrs:{href:t.passwordResetLink,target:"_blank"}},[t._v(t._s(t.passwordResetLink))])])])])},[],!1,null,null,null);r.options.__file="ResetPasswordDialog.vue";s.a=r.exports},cRgN:function(t,s,e){},lOBV:function(t,s,e){},msq4:function(t,s,e){},ot3S:function(t,s,e){"use strict";var a=e("wd/R"),i=e.n(a),r={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)},isPrivileged:function(t,s){var e=this.$store.getters.privileges,a=this.$store.getters.roles;return t.some(function(t){return e.indexOf(t)>=0})||s.some(function(t){return a.indexOf(t)>=0})},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"})})},handleStatusSelection:function(t){this.$emit("status-selection",t)},handleRouteChange:function(){this.$router.push({name:"StatusShow",params:{id:this.status.id}})},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")},propertyExists:function(t,s,e){return e?t[s]&&t[e]:t[s]}}},n=(e("Kw8l"),e("KHd+")),o=Object(n.a)(r,function(){var t=this,s=t.$createElement,e=t._self._c||s;return 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(" "),e("div",{staticClass:"status-footer"},[t.status.created_at?e("span",{staticClass:"status-created-at"},[t._v(t._s(t.parseTimestamp(t.status.created_at)))]):t._e(),t._v(" "),t.status.url?e("a",{staticClass:"account",attrs:{href:t.status.url,target:"_blank"},on:{click:function(t){t.stopPropagation()}}},[t._v("\n      Open status in instance\n      "),e("i",{staticClass:"el-icon-top-right"})]):t._e()])]):e("el-card",{staticClass:"status-card",nativeOn:{click:function(s){return t.handleRouteChange()}}},[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(" "),t.propertyExists(t.account,"id")?e("router-link",{staticClass:"router-link",attrs:{to:{name:"UsersShow",params:{id:t.account.id}}},nativeOn:{click:function(t){t.stopPropagation()}}},[e("div",{staticClass:"status-card-header"},[t.propertyExists(t.account,"avatar")?e("img",{staticClass:"status-avatar-img",attrs:{src:t.account.avatar}}):t._e(),t._v(" "),t.propertyExists(t.account,"nickname")?e("span",{staticClass:"status-account-name"},[t._v(t._s(t.account.nickname))]):e("span",[t.propertyExists(t.account,"nickname")?e("span",{staticClass:"status-account-name"},[t._v("\n                  "+t._s(t.account.nickname)+"\n                ")]):e("span",{staticClass:"status-account-name deactivated"},[t._v("("+t._s(t.$t("users.invalidNickname"))+")")])])])]):t._e()],1)]),t._v(" "),t.isPrivileged(["messages_delete"],[])?e("div",{staticClass:"status-actions"},[e("div",{staticClass:"status-tags"},[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)))])],1),t._v(" "),e("el-dropdown",{attrs:{trigger:"click"},nativeOn:{click:function(t){t.stopPropagation()}}},[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._e()])]),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("div",{staticClass:"status-footer"},[e("span",{staticClass:"status-created-at"},[t._v(t._s(t.parseTimestamp(t.status.created_at)))]),t._v(" "),t.status.url?e("a",{staticClass:"account",attrs:{href:t.status.url,target:"_blank"},on:{click:function(t){t.stopPropagation()}}},[t._v("\n        "+t._s(t.$t("statuses.openStatusInInstance"))+"\n        "),e("i",{staticClass:"el-icon-top-right"})]):t._e()])])])},[],!1,null,null,null);o.options.__file="index.vue";s.a=o.exports},rIUS:function(t,s,e){"use strict";var a=e("yXPU"),i=e.n(a),r=e("o0o1"),n=e.n(r),o=e("mSNy"),c={name:"RebootButton",computed:{needReboot:function(){return this.$store.state.app.needReboot}},methods:{restartApp:function(){var t=this;return i()(n.a.mark(function s(){return n.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,t.$store.dispatch("RestartApplication");case 3:s.next=8;break;case 5:return s.prev=5,s.t0=s.catch(0),s.abrupt("return");case 8:t.$message({type:"success",message:o.a.t("settings.restartSuccess")});case 9:case"end":return s.stop()}},s,null,[[0,5]])}))()}}},u=e("KHd+"),l=Object(u.a)(c,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},tPM3:function(t,s,e){"use strict";var a={name:"ModerationDropdown",props:{user:{type:Object,default:function(){return{}}},page:{type:String,default:"users"},statusId:{type:String,default:""}},computed:{actorType:{get:function(){return this.user.actor_type},set:function(t){this.$store.dispatch("UpdateActorType",{user:this.user,type:t,_userId:this.user.id,_statusId:this.statusId})}},isDesktop:function(){return"desktop"===this.$store.state.app.device},tagPolicyEnabled:function(){return this.$store.state.users.mrfPolicies.includes("Pleroma.Web.ActivityPub.MRF.TagPolicy")}},methods:{disableMfa:function(t){this.$store.dispatch("DisableMfa",t)},isPrivileged:function(t,s){var e=this.$store.getters.privileges,a=this.$store.getters.roles;return t.some(function(t){return e.indexOf(t)>=0})||s.some(function(t){return a.indexOf(t)>=0})},enableTagPolicy:function(){var t=this;this.$confirm(this.$t("users.confirmEnablingTagPolicy"),{confirmButtonText:"Yes",cancelButtonText:"Cancel",type:"warning"}).then(function(){t.$message({type:"success",message:t.$t("users.enableTagPolicySuccessMessage")}),t.$store.dispatch("EnableTagPolicy")}).catch(function(){t.$message({type:"info",message:"Canceled"})})},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){var s=this;this.$confirm(this.$t("users.deleteUserConfirmation"),{confirmButtonText:"Delete",cancelButtonText:"Cancel",type:"warning"}).then(function(){s.$store.dispatch("DeleteUsers",{users:[t],_userId:t.id})}).catch(function(){s.$message({type:"info",message:"Delete canceled"})})},handleAccountApproval:function(t){this.$store.dispatch("ApproveUsersAccount",{users:[t],_userId:t.id,_statusId:this.statusId})},handleAccountRejection:function(t){var s=this;this.$confirm(this.$t("users.rejectAccountConfirmation"),{confirmButtonText:"Reject",cancelButtonText:"Cancel",type:"warning"}).then(function(){s.$store.dispatch("DeleteUsers",{users:[t],_userId:t.id})}).catch(function(){s.$message({type:"info",message:"Reject canceled"})})},handleEmailConfirmation:function(t){this.$store.dispatch("ConfirmUsersEmail",{users:[t],_userId:t.id,_statusId:this.statusId})},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.is_active?this.$store.dispatch("DeactivateUsers",{users:[t],_userId:t.id}):this.$store.dispatch("ActivateUsers",{users:[t],_userId:t.id})},toggleTag:function(t,s){t.tags.includes(s)?this.$store.dispatch("RemoveTag",{users:[t],tag:s,_userId:t.id,_statusId:this.statusId}):this.$store.dispatch("AddTag",{users:[t],tag:s,_userId:t.id,_statusId:this.statusId})},toggleUserRight:function(t,s){t.roles[s]?this.$store.dispatch("DeleteRight",{users:[t],right:s,_userId:t.id,_statusId:this.statusId}):this.$store.dispatch("AddRight",{users:[t],right:s,_userId:t.id,_statusId:this.statusId})}}},i=(e("53Av"),e("KHd+")),r=Object(i.a)(a,function(){var t=this,s=t.$createElement,e=t._self._c||s;return t.isPrivileged(["users_manage_activation_state","users_delete","users_manage_tags","users_manage_credentials"],["admin"])?e("el-dropdown",{attrs:{"hide-on-click":!1,size:"small",trigger:"click",placement:"top-start"},nativeOn:{click:function(t){t.stopPropagation()}}},[e("div",["users"===t.page?e("el-button",{staticClass:"el-dropdown-link",attrs:{type:"text"}},[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||"statusPage"===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",{staticClass:"moderation-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[t.isPrivileged([],["admin"])?e("el-dropdown-item",{staticClass:"actor-type-dropdown"},[e("el-select",{staticClass:"actor-type-select",attrs:{placeholder:t.$t("userProfile.actorType")},model:{value:t.actorType,callback:function(s){t.actorType=s},expression:"actorType"}},[e("el-option",{attrs:{label:t.$t("users.service"),value:"Service"}}),t._v(" "),e("el-option",{attrs:{label:t.$t("users.person"),value:"Person"}})],1)],1):t._e(),t._v(" "),t.isPrivileged([],["admin"])&&t.showAdminAction(t.user)?e("el-dropdown-item",{attrs:{divided:""},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.isPrivileged([],["admin"])&&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.isPrivileged(["users_manage_activation_state"],[])&&t.showDeactivatedButton(t.user.id)&&"statusPage"!==t.page?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.is_active?t.$t("users.deactivateAccount"):t.$t("users.activateAccount"))+"\n    ")]):t._e(),t._v(" "),t.isPrivileged(["users_delete"],[])&&t.showDeactivatedButton(t.user.id)&&"statusPage"!==t.page?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.isPrivileged([],["admin"])&&t.user.local&&!t.user.is_approved?e("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(s){return t.handleAccountApproval(t.user)}}},[t._v("\n      "+t._s(t.$t("users.approveAccount"))+"\n    ")]):t._e(),t._v(" "),t.isPrivileged([],["admin"])&&t.user.local&&!t.user.is_approved?e("el-dropdown-item",{nativeOn:{click:function(s){return t.handleAccountRejection(t.user)}}},[t._v("\n      "+t._s(t.$t("users.rejectAccount"))+"\n    ")]):t._e(),t._v(" "),t.isPrivileged([],["admin"])&&t.user.local&&!t.user.is_confirmed?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.isPrivileged([],["admin"])&&t.user.local&&!t.user.is_confirmed?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(" "),t.isPrivileged(["users_manage_tags"],[])&&t.tagPolicyEnabled?e("el-dropdown-item",{class:{"active-tag":t.user.tags.includes("mrf_tag:media-force-nsfw")},attrs:{divided:t.showAdminAction(t.user)},nativeOn:{click:function(s){return t.toggleTag(t.user,"mrf_tag:media-force-nsfw")}}},[t._v("\n      "+t._s(t.$t("users.forceNsfw"))+"\n      "),t.user.tags.includes("mrf_tag:media-force-nsfw")?e("i",{staticClass:"el-icon-check"}):t._e()]):t._e(),t._v(" "),t.isPrivileged(["users_manage_tags"],[])&&t.tagPolicyEnabled?e("el-dropdown-item",{class:{"active-tag":t.user.tags.includes("mrf_tag:media-strip")},nativeOn:{click:function(s){return t.toggleTag(t.user,"mrf_tag:media-strip")}}},[t._v("\n      "+t._s(t.$t("users.stripMedia"))+"\n      "),t.user.tags.includes("mrf_tag:media-strip")?e("i",{staticClass:"el-icon-check"}):t._e()]):t._e(),t._v(" "),t.isPrivileged(["users_manage_tags"],[])&&t.tagPolicyEnabled?e("el-dropdown-item",{class:{"active-tag":t.user.tags.includes("mrf_tag:force-unlisted")},nativeOn:{click:function(s){return t.toggleTag(t.user,"mrf_tag:force-unlisted")}}},[t._v("\n      "+t._s(t.$t("users.forceUnlisted"))+"\n      "),t.user.tags.includes("mrf_tag:force-unlisted")?e("i",{staticClass:"el-icon-check"}):t._e()]):t._e(),t._v(" "),t.isPrivileged(["users_manage_tags"],[])&&t.tagPolicyEnabled?e("el-dropdown-item",{class:{"active-tag":t.user.tags.includes("mrf_tag:sandbox")},nativeOn:{click:function(s){return t.toggleTag(t.user,"mrf_tag:sandbox")}}},[t._v("\n      "+t._s(t.$t("users.sandbox"))+"\n      "),t.user.tags.includes("mrf_tag:sandbox")?e("i",{staticClass:"el-icon-check"}):t._e()]):t._e(),t._v(" "),t.isPrivileged(["users_manage_tags"],[])&&t.user.local&&t.tagPolicyEnabled?e("el-dropdown-item",{class:{"active-tag":t.user.tags.includes("mrf_tag:disable-remote-subscription")},nativeOn:{click:function(s){return t.toggleTag(t.user,"mrf_tag:disable-remote-subscription")}}},[t._v("\n      "+t._s(t.$t("users.disableRemoteSubscription"))+"\n      "),t.user.tags.includes("mrf_tag:disable-remote-subscription")?e("i",{staticClass:"el-icon-check"}):t._e()]):t._e(),t._v(" "),t.isPrivileged(["users_manage_tags"],[])&&t.user.local&&t.tagPolicyEnabled?e("el-dropdown-item",{class:{"active-tag":t.user.tags.includes("mrf_tag:disable-any-subscription")},nativeOn:{click:function(s){return t.toggleTag(t.user,"mrf_tag:disable-any-subscription")}}},[t._v("\n      "+t._s(t.$t("users.disableAnySubscription"))+"\n      "),t.user.tags.includes("mrf_tag:disable-any-subscription")?e("i",{staticClass:"el-icon-check"}):t._e()]):t._e(),t._v(" "),t.isPrivileged(["users_manage_tags"],[])&&t.isPrivileged([],["admin"])&&!t.tagPolicyEnabled?e("el-dropdown-item",{staticClass:"no-hover",attrs:{divided:""},nativeOn:{click:function(s){return t.enableTagPolicy.apply(null,arguments)}}},[t._v("\n      "+t._s(t.$t("users.enableTagPolicy"))+"\n    ")]):t._e(),t._v(" "),t.isPrivileged(["users_manage_credentials"],[])&&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.isPrivileged([],["admin"])&&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(),t._v(" "),t.isPrivileged([],["admin"])&&t.user.local?e("el-dropdown-item",{nativeOn:{click:function(s){return t.disableMfa(t.user.nickname)}}},[t._v("\n      "+t._s(t.$t("users.disableMfa"))+"\n    ")]):t._e()],1)],1):t._e()},[],!1,null,null,null);r.options.__file="ModerationDropdown.vue";s.a=r.exports}}]);
2 //# sourceMappingURL=chunk-2be3.7b7c045e.js.map