pleroma/priv/static/adminfe/static/js/chunk-e547.d57d1b91.js

1 line
23 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-e547"],{"/Z02":function(t,e,s){},"4ZhH":function(t,e,s){"use strict";var r=s("YDhJ");s.n(r).a},DPTh:function(t,e,s){"use strict";var r=s("vg5t");s.n(r).a},DVld:function(t,e,s){"use strict";var r=s("/Z02");s.n(r).a},Oofb:function(t,e,s){},R3mQ:function(t,e,s){"use strict";var r=s("Oofb");s.n(r).a},RGjw:function(t,e,s){"use strict";s.r(e);var r=s("9/5/"),i=s.n(r),n=s("ZhIB"),a=s.n(n),o=s("lSNA"),l=s.n(o),c=s("MVZn"),u=s.n(c),d={data:function(){return{value:[]}},computed:{isDesktop:function(){return"desktop"===this.$store.state.app.device}},methods:{removeOppositeFilters:function(){var t=Object.keys(this.$store.state.users.filters).length,e=this.$data.value.slice(),s=e.indexOf("local"),r=e.indexOf("external"),i=e.indexOf("active"),n=e.indexOf("deactivated");if(e.length===t)return[];if(s>-1&&r>-1){var a=s>r?r:s;e.splice(a,1)}else if(i>-1&&n>-1){var o=i>n?n:i;e.splice(o,1)}return e},toggleFilters:function(){this.$data.value=this.removeOppositeFilters();var t=this.$data.value.reduce(function(t,e){return u()({},t,l()({},e,!0))},{});this.$store.dispatch("ToggleUsersFilter",t)}}},p=(s("DVld"),s("KHd+")),v=Object(p.a)(d,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-select",{staticClass:"select-field",attrs:{clearable:t.isDesktop,placeholder:t.$t("usersFilter.inputPlaceholder"),multiple:""},on:{change:t.toggleFilters},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[s("el-option-group",{attrs:{label:t.$t("usersFilter.byUserType")}},[s("el-option",{attrs:{value:"local"}},[t._v(t._s(t.$t("usersFilter.local")))]),t._v(" "),s("el-option",{attrs:{value:"external"}},[t._v(t._s(t.$t("usersFilter.external")))])],1),t._v(" "),s("el-option-group",{attrs:{label:t.$t("usersFilter.byStatus")}},[s("el-option",{attrs:{value:"active"}},[t._v(t._s(t.$t("usersFilter.active")))]),t._v(" "),s("el-option",{attrs:{value:"deactivated"}},[t._v(t._s(t.$t("usersFilter.deactivated")))])],1)],1)},[],!1,null,"71bc6b38",null);v.options.__file="UsersFilter.vue";var m=v.exports,g={props:{selectedUsers:{type:Array,default:function(){return[]}}},computed:{showDropdownForMultipleUsers:function(){return this.$props.selectedUsers.length>0},isDesktop:function(){return"desktop"===this.$store.state.app.device}},methods:{mappers:function(){var t=this;return{grantRight:function(e){return function(){return t.selectedUsers.filter(function(s){return s.local&&!s.roles[e]&&t.$store.state.user.id!==s.id}).map(function(s){return t.$store.dispatch("ToggleRight",{user:s,right:e})})}},revokeRight:function(e){return function(){return t.selectedUsers.filter(function(s){return s.local&&s.roles[e]&&t.$store.state.user.id!==s.id}).map(function(s){return t.$store.dispatch("ToggleRight",{user:s,right:e})})}},activate:function(){return t.selectedUsers.filter(function(e){return e.deactivated&&t.$store.state.user.id!==e.id}).map(function(e){return t.$store.dispatch("ToggleUserActivation",e.nickname)})},deactivate:function(){return t.selectedUsers.filter(function(e){return!e.deactivated&&t.$store.state.user.id!==e.id}).map(function(e){return t.$store.dispatch("ToggleUserActivation",e.nickname)})},remove:function(){return t.selectedUsers.filter(function(e){return t.$store.state.user.id!==e.id}).map(function(e){return t.$store.dispatch("DeleteUser",e)})},addTag:function(e){return function(){var s=t.selectedUsers.filter(function(t){return"disable_remote_subscription"===e||"disable_any_subscription"===e?t.local&&!t.tags.includes(e):!t.tags.includes(e)});t.$store.dispatch("AddTag",{users:s,tag:e})}},removeTag:function(e){return function(){var s=t.selectedUsers.filter(function(t){return"disable_remote_subscription"===e||"disable_any_subscription"===e?t.local&&t.tags.includes(e):t.tags.includes(e)});t.$store.dispatch("RemoveTag",{users:s,tag:e})}}}},grantRightToMultipleUsers:function(t){var e=this.mappers().grantRight;this.confirmMessage(this.$t("users.grantRightConfirmation",{right:t}),e(t))},revokeRightFromMultipleUsers:function(t){var e=this.mappers().revokeRight;this.confirmMessage(this.$t("users.revokeRightConfirmation",{right:t}),e(t))},activateMultipleUsers:function(){var t=this.mappers().activate;this.confirmMessage(this.$t("users.activateMultipleUsersConfirmation"),t)},deactivateMultipleUsers:function(){var t=this.mappers().deactivate;this.confirmMessage(this.$t("users.deactivateMultipleUsersConfirmation"),t)},deleteMultipleUsers:function(){var t=this.mappers().remove;this.confirmMessage(this.$t("users.deleteMultipleUsersConfirmation"),t)},addTagForMultipleUsers:function(t){var e=this.mappers().addTag;this.confirmMessage(this.$t("users.addTagForMultipleUsersConfirmation"),e(t))},removeTagFromMultipleUsers:function(t){var e=this.mappers().removeTag;this.confirmMessage(this.$t("users.removeTagFromMultipleUsersConfirmation"),e(t))},confirmMessage:function(t,e){var s=this;this.$confirm(t,{confirmButtonText:this.$t("users.ok"),cancelButtonText:this.$t("users.cancel"),type:"warning"}).then(function(){e(),s.$emit("apply-action"),s.$message({type:"success",message:s.$t("users.completed")})}).catch(function(){s.$message({type:"info",message:s.$t("users.canceled")})})}}},f=(s("4ZhH"),Object(p.a)(g,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dropdown",{attrs:{size:"small",trigger:"click",placement:"bottom-start"}},[t.isDesktop?s("el-button",{staticClass:"actions-button"},[s("span",{staticClass:"actions-button-container"},[s("span",[s("i",{staticClass:"el-icon-edit"}),t._v("\n "+t._s(t.$t("users.moderateUsers"))+"\n ")]),t._v(" "),s("i",{staticClass:"el-icon-arrow-down el-icon--right"})])]):t._e(),t._v(" "),t.showDropdownForMultipleUsers?s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[s("el-dropdown-item",{nativeOn:{click:function(e){return t.grantRightToMultipleUsers("admin")}}},[t._v("\n "+t._s(t.$t("users.grantAdmin"))+"\n ")]),t._v(" "),s("el-dropdown-item",{nativeOn:{click:function(e){return t.revokeRightFromMultipleUsers("admin")}}},[t._v("\n "+t._s(t.$t("users.revokeAdmin"))+"\n ")]),t._v(" "),s("el-dropdown-item",{nativeOn:{click:function(e){return t.grantRightToMultipleUsers("moderator")}}},[t._v("\n "+t._s(t.$t("users.grantModerator"))+"\n ")]),t._v(" "),s("el-dropdown-item",{nativeOn:{click:function(e){return t.revokeRightFromMultipleUsers("moderator")}}},[t._v("\n "+t._s(t.$t("users.revokeModerator"))+"\n ")]),t._v(" "),s("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.activateMultipleUsers(e)}}},[t._v("\n "+t._s(t.$t("users.activateAccounts"))+"\n ")]),t._v(" "),s("el-dropdown-item",{nativeOn:{click:function(e){return t.deactivateMultipleUsers(e)}}},[t._v("\n "+t._s(t.$t("users.deactivateAccounts"))+"\n ")]),t._v(" "),s("el-dropdown-item",{nativeOn:{click:function(e){return t.deleteMultipleUsers(e)}}},[t._v("\n "+t._s(t.$t("users.deleteAccounts"))+"\n ")]),t._v(" "),s("el-dropdown-item",{staticClass:"no-hover",attrs:{divided:""}},[s("div",{staticClass:"tag-container"},[s("span",{staticClass:"tag-text"},[t._v(t._s(t.$t("users.forceNsfw")))]),t._v(" "),s("el-button-group",{staticClass:"tag-button-group"},[s("el-button",{attrs:{size:"mini"},nativeOn:{click:function(e){return t.addTagForMultipleUsers("force_nsfw")}}},[t._v("\n "+t._s(t.$t("users.apply"))+"\n ")]),t._v(" "),s("el-button",{attrs:{size:"mini"},nativeOn:{click:function(e){return t.removeTagFromMultipleUsers("force_nsfw")}}},[t._v("\n "+t._s(t.$t("users.remove"))+"\n ")])],1)],1)]),t._v(" "),s("el-dropdown-item",{staticClass:"no-hover"},[s("div",{staticClass:"tag-container"},[s("span",{staticClass:"tag-text"},[t._v(t._s(t.$t("users.stripMedia")))]),t._v(" "),s("el-button-group",{staticClass:"tag-button-group"},[s("el-button",{attrs:{size:"mini"},nativeOn:{click:function(e){return t.addTagForMultipleUsers("strip_media")}}},[t._v("\n "+t._s(t.$t("users.apply"))+"\n ")]),t._v(" "),s("el-button",{attrs:{size:"mini"},nativeOn:{click:function(e){return t.removeTagFromMultipleUsers("strip_media")}}},[t._v("\n "+t._s(t.$t("users.remove"))+"\n ")])],1)],1)]),t._v(" "),s("el-dropdown-item",{staticClass:"no-hover"},[s("div",{staticClass:"tag-container"},[s("span",{staticClass:"tag-text"},[t._v(t._s(t.$t("users.forceUnlisted")))]),t._v(" "),s("el-button-group",{staticClass:"tag-button-group"},[s("el-button",{attrs:{size:"mini"},nativeOn:{click:function(e){return t.addTagForMultipleUsers("force_unlisted")}}},[t._v("\n "+t._s(t.$t("users.apply"))+"\n ")]),t._v(" "),s("el-button",{attrs:{size:"mini"},nativeOn:{click:function(e){return t.removeTagFromMultipleUsers("force_unlisted")}}},[t._v("\n "+t._s(t.$t("users.remove"))+"\n ")])],1)],1)]),t._v(" "),s("el-dropdown-item",{staticClass:"no-hover"},[s("div",{staticClass:"tag-container"},[s("span",{staticClass:"tag-text"},[t._v(t._s(t.$t("users.sandbox")))]),t._v(" "),s("el-button-group",{staticClass:"tag-button-group"},[s("el-button",{attrs:{size:"mini"},nativeOn:{click:function(e){return t.addTagForMultipleUsers("sandbox")}}},[t._v("\n "+t._s(t.$t("users.apply"))+"\n ")]),t._v(" "),s("el-button",{attrs:{size:"mini"},nativeOn:{click:function(e){return t.removeTagFromMultipleUsers("sandbox")}}},[t._v("\n "+t._s(t.$t("users.remove"))+"\n ")])],1)],1)]),t._v(" "),s("el-dropdown-item",{staticClass:"no-hover"},[s("div",{staticClass:"tag-container"},[s("span",{staticClass:"tag-text"},[t._v(t._s(t.$t("users.disableRemoteSubscriptionForMultiple")))]),t._v(" "),s("el-button-group",{staticClass:"tag-button-group"},[s("el-button",{attrs:{size:"mini"},nativeOn:{click:function(e){return t.addTagForMultipleUsers("disable_remote_subscription")}}},[t._v("\n "+t._s(t.$t("users.apply"))+"\n ")]),t._v(" "),s("el-button",{attrs:{size:"mini"},nativeOn:{click:function(e){return t.removeTagFromMultipleUsers("disable_remote_subscription")}}},[t._v("\n "+t._s(t.$t("users.remove"))+"\n ")])],1)],1)]),t._v(" "),s("el-dropdown-item",{staticClass:"no-hover"},[s("div",{staticClass:"tag-container"},[s("span",{staticClass:"tag-text"},[t._v(t._s(t.$t("users.disableAnySubscriptionForMultiple")))]),t._v(" "),s("el-button-group",{staticClass:"tag-button-group"},[s("el-button",{attrs:{size:"mini"},nativeOn:{click:function(e){return t.addTagForMultipleUsers("disable_any_subscription")}}},[t._v("\n "+t._s(t.$t("users.apply"))+"\n ")]),t._v(" "),s("el-button",{attrs:{size:"mini"},nativeOn:{click:function(e){return t.removeTagFromMultipleUsers("disable_any_subscription")}}},[t._v("\n "+t._s(t.$t("users.remove"))+"\n ")])],1)],1)])],1):s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[s("el-dropdown-item",[t._v("\n "+t._s(t.$t("users.selectUsers"))+"\n ")])],1)],1)},[],!1,null,"94227b1e",null));f.options.__file="MultipleUsersMenu.vue";var _=f.exports,h={name:"NewAccountDialog",props:{dialogFormVisible:{type:Boolean,default:function(){return!1}}},data:function(){return{form:{nickname:"",email:"",password:""},rules:{nickname:[{validator:this.validateUsername,trigger:"blur"}],email:[{validator:this.validateEmail,trigger:"blur"}],password:[{validator:this.validatePassword,trigger:"blur"}]}}},computed:{isDesktop:function(){return"desktop"===this.$store.state.app.device},isVisible:{get:function(){return this.$props.dialogFormVisible},set:function(){this.closeDialogWindow()}},getLabelWidth:function(){return this.isDesktop?"120px":"80px"}},methods:{closeDialogWindow:function(){this.$emit("closeWindow")},resetForm:function(){var t=this;this.$nextTick(function(){t.$refs.form.resetFields()})},submitForm:function(t){var e=this;this.$refs[t].validate(function(t){if(!t)return e.$message({type:"error",message:e.$t("users.submitFormError")}),!1;e.$emit("createNewAccount",e.$data.form),e.closeDialogWindow(),e.$message({type:"success",message:e.$t("users.completed")})})},validateEmail:function(t,e,s){return""===e?s(new Error(this.$t("users.emptyEmailError"))):this.validEmail(e)?s():s(new Error(this.$t("users.invalidEmailError")))},validatePassword:function(t,e,s){return""===e?s(new Error(this.$t("users.emptyPasswordError"))):s()},validateUsername:function(t,e,s){return""===e?s(new Error(this.$t("users.emptyNicknameError"))):this.validNickname(e)?s():s(new Error(this.$t("users.invalidNicknameError")))},validEmail:function(t){return/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)},validNickname:function(t){return/^[a-zA-Z\d]+$/.test(t)}}},w=(s("DPTh"),Object(p.a)(h,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{visible:t.isVisible,"show-close":!1,title:t.$t("users.createAccount"),"custom-class":"create-user-dialog"},on:{"update:visible":function(e){t.isVisible=e},open:t.resetForm}},[s("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":t.getLabelWidth,"status-icon":""}},[s("el-form-item",{staticClass:"create-account-form-item",attrs:{label:t.$t("users.username"),prop:"nickname"}},[s("el-input",{attrs:{name:"nickname",autofocus:""},model:{value:t.form.nickname,callback:function(e){t.$set(t.form,"nickname",e)},expression:"form.nickname"}})],1),t._v(" "),s("el-form-item",{staticClass:"create-account-form-item",attrs:{label:t.$t("users.email"),prop:"email"}},[s("el-input",{attrs:{name:"email",type:"email"},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}})],1),t._v(" "),s("el-form-item",{staticClass:"create-account-form-item",attrs:{label:t.$t("users.password"),prop:"password"}},[s("el-input",{attrs:{type:"password",name:"password",autocomplete:"off"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1)],1),t._v(" "),s("span",{attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:t.closeDialogWindow}},[t._v(t._s(t.$t("users.cancel")))]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("form")}}},[t._v(t._s(t.$t("users.create")))])],1)],1)},[],!1,null,null,null));w.options.__file="NewAccountDialog.vue";var $={name:"Users",components:{UsersFilter:m,MultipleUsersMenu:_,NewAccountDialog:w.exports},data:function(){return{search:"",selectedUsers:[],dialogFormVisible:!1}},computed:{loading:function(){return this.$store.state.users.loading},normalizedUsersCount:function(){return a()(this.$store.state.users.totalUsersCount).format("0a")},users:function(){return this.$store.state.users.fetchedUsers},usersCount:function(){return this.$store.state.users.totalUsersCount},pageSize:function(){return this.$store.state.users.pageSize},currentPage:function(){return this.$store.state.users.currentPage},isDesktop:function(){return"desktop"===this.$store.state.app.device},isMobile:function(){return"mobile"===this.$store.state.app.device},width:function(){return!!this.isMobile&&55}},created:function(){var t=this;this.handleDebounceSearchInput=i()(function(e){t.$store.dispatch("SearchUsers",{query:e,page:1})},500)},mounted:function(){this.$store.dispatch("FetchUsers",{page:1})},methods:{activationIcon:function(t){return t?"el-icon-error":"el-icon-success"},clearSelection:function(){this.$refs.usersTable.clearSelection()},createNewAccount:function(t){this.$store.dispatch("CreateNewAccount",t)},getFirstLetter:function(t){return t.charAt(0).toUpperCase()},handleDeactivation:function(t){var e=t.nickname;this.$store.dispatch("ToggleUserActivation",e)},handleDeletion:function(t){this.$store.dispatch("DeleteUser",t)},handlePageChange:function(t){var e=this.$store.state.users.searchQuery;""===e?this.$store.dispatch("FetchUsers",{page:t}):this.$store.dispatch("SearchUsers",{query:e,page:t})},handleSelectionChange:function(t){this.$data.selectedUsers=t},showAdminAction:function(t){var e=t.local,s=t.id;return e&&this.showDeactivatedButton(s)},showDeactivatedButton:function(t){return this.$store.state.user.id!==t},toggleTag:function(t,e){t.tags.includes(e)?this.$store.dispatch("RemoveTag",{users:[t],tag:e}):this.$store.dispatch("AddTag",{users:[t],tag:e})},toggleUserRight:function(t,e){this.$store.dispatch("ToggleRight",{user:t,right:e})}}},b=(s("R3mQ"),Object(p.a)($,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"users-container"},[s("h1",[t._v("\n "+t._s(t.$t("users.users"))+"\n "),s("span",{staticClass:"user-count"},[t._v("("+t._s(t.normalizedUsersCount)+")")])]),t._v(" "),s("div",{staticClass:"filter-container"},[s("users-filter"),t._v(" "),s("el-input",{staticClass:"search",attrs:{placeholder:t.$t("users.search")},on:{input:t.handleDebounceSearchInput},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),t._v(" "),s("div",{staticClass:"actions-container"},[s("el-button",{staticClass:"actions-button create-account",on:{click:function(e){t.dialogFormVisible=!0}}},[s("span",[s("i",{staticClass:"el-icon-plus"}),t._v("\n "+t._s(t.$t("users.createAccount"))+"\n ")])]),t._v(" "),s("multiple-users-menu",{attrs:{"selected-users":t.selectedUsers},on:{"apply-action":t.clearSelection}})],1),t._v(" "),s("new-account-dialog",{attrs:{"dialog-form-visible":t.dialogFormVisible},on:{createNewAccount:t.createNewAccount,closeWindow:function(e){t.dialogFormVisible=!1}}}),t._v(" "),s("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"usersTable",staticStyle:{width:"100%"},attrs:{data:t.users,"row-key":"id"},on:{"selection-change":t.handleSelectionChange}},[t.isDesktop?s("el-table-column",{attrs:{type:"selection","reserve-selection":"",width:"44",align:"center"}}):t._e(),t._v(" "),s("el-table-column",{attrs:{"min-width":t.width,label:t.$t("users.id"),prop:"id"}}),t._v(" "),s("el-table-column",{attrs:{label:t.$t("users.name"),prop:"nickname"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("router-link",{attrs:{to:{name:"UsersShow",params:{id:e.row.id}}}},[t._v(t._s(e.row.nickname))]),t._v(" "),t.isDesktop?s("el-tag",{attrs:{type:"info",size:"mini"}},[s("span",[t._v(t._s(e.row.local?t.$t("users.local"):t.$t("users.external")))])]):t._e()]}}])}),t._v(" "),s("el-table-column",{attrs:{"min-width":t.width,label:t.$t("users.status")},scopedSlots:t._u([{key:"default",fn:function(e){return[s("el-tag",{attrs:{type:e.row.deactivated?"danger":"success"}},[t.isDesktop?s("span",[t._v(t._s(e.row.deactivated?t.$t("users.deactivated"):t.$t("users.active")))]):s("i",{class:t.activationIcon(e.row.deactivated)})]),t._v(" "),e.row.roles.admin?s("el-tag",[s("span",[t._v(t._s(t.isDesktop?t.$t("users.admin"):t.getFirstLetter(t.$t("users.admin"))))])]):t._e(),t._v(" "),e.row.roles.moderator?s("el-tag",[s("span",[t._v(t._s(t.isDesktop?t.$t("users.moderator"):t.getFirstLetter(t.$t("users.moderator"))))])]):t._e()]}}])}),t._v(" "),s("el-table-column",{attrs:{label:t.$t("users.actions"),fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("el-dropdown",{attrs:{size:"small",trigger:"click"}},[s("span",{staticClass:"el-dropdown-link"},[t._v("\n "+t._s(t.$t("users.moderation"))+"\n "),t.isDesktop?s("i",{staticClass:"el-icon-arrow-down el-icon--right"}):t._e()]),t._v(" "),s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t.showAdminAction(e.row)?s("el-dropdown-item",{nativeOn:{click:function(s){return t.toggleUserRight(e.row,"admin")}}},[t._v("\n "+t._s(e.row.roles.admin?t.$t("users.revokeAdmin"):t.$t("users.grantAdmin"))+"\n ")]):t._e(),t._v(" "),t.showAdminAction(e.row)?s("el-dropdown-item",{nativeOn:{click:function(s){return t.toggleUserRight(e.row,"moderator")}}},[t._v("\n "+t._s(e.row.roles.moderator?t.$t("users.revokeModerator"):t.$t("users.grantModerator"))+"\n ")]):t._e(),t._v(" "),t.showDeactivatedButton(e.row.id)?s("el-dropdown-item",{attrs:{divided:t.showAdminAction(e.row)},nativeOn:{click:function(s){return t.handleDeactivation(e.row)}}},[t._v("\n "+t._s(e.row.deactivated?t.$t("users.activateAccount"):t.$t("users.deactivateAccount"))+"\n ")]):t._e(),t._v(" "),t.showDeactivatedButton(e.row.id)?s("el-dropdown-item",{nativeOn:{click:function(s){return t.handleDeletion(e.row)}}},[t._v("\n "+t._s(t.$t("users.deleteAccount"))+"\n ")]):t._e(),t._v(" "),s("el-dropdown-item",{class:{"active-tag":e.row.tags.includes("force_nsfw")},attrs:{divided:t.showAdminAction(e.row)},nativeOn:{click:function(s){return t.toggleTag(e.row,"force_nsfw")}}},[t._v("\n "+t._s(t.$t("users.forceNsfw"))+"\n "),e.row.tags.includes("force_nsfw")?s("i",{staticClass:"el-icon-check"}):t._e()]),t._v(" "),s("el-dropdown-item",{class:{"active-tag":e.row.tags.includes("strip_media")},nativeOn:{click:function(s){return t.toggleTag(e.row,"strip_media")}}},[t._v("\n "+t._s(t.$t("users.stripMedia"))+"\n "),e.row.tags.includes("strip_media")?s("i",{staticClass:"el-icon-check"}):t._e()]),t._v(" "),s("el-dropdown-item",{class:{"active-tag":e.row.tags.includes("force_unlisted")},nativeOn:{click:function(s){return t.toggleTag(e.row,"force_unlisted")}}},[t._v("\n "+t._s(t.$t("users.forceUnlisted"))+"\n "),e.row.tags.includes("force_unlisted")?s("i",{staticClass:"el-icon-check"}):t._e()]),t._v(" "),s("el-dropdown-item",{class:{"active-tag":e.row.tags.includes("sandbox")},nativeOn:{click:function(s){return t.toggleTag(e.row,"sandbox")}}},[t._v("\n "+t._s(t.$t("users.sandbox"))+"\n "),e.row.tags.includes("sandbox")?s("i",{staticClass:"el-icon-check"}):t._e()]),t._v(" "),e.row.local?s("el-dropdown-item",{class:{"active-tag":e.row.tags.includes("disable_remote_subscription")},nativeOn:{click:function(s){return t.toggleTag(e.row,"disable_remote_subscription")}}},[t._v("\n "+t._s(t.$t("users.disableRemoteSubscription"))+"\n "),e.row.tags.includes("disable_remote_subscription")?s("i",{staticClass:"el-icon-check"}):t._e()]):t._e(),t._v(" "),e.row.local?s("el-dropdown-item",{class:{"active-tag":e.row.tags.includes("disable_any_subscription")},nativeOn:{click:function(s){return t.toggleTag(e.row,"disable_any_subscription")}}},[t._v("\n "+t._s(t.$t("users.disableAnySubscription"))+"\n "),e.row.tags.includes("disable_any_subscription")?s("i",{staticClass:"el-icon-check"}):t._e()]):t._e()],1)],1)]}}])})],1),t._v(" "),0===t.users.length?s("div",{staticClass:"no-users-message"},[s("p",[t._v("There are no users to display")])]):t._e(),t._v(" "),t.loading?t._e():s("div",{staticClass:"pagination"},[s("el-pagination",{attrs:{total:t.usersCount,"current-page":t.currentPage,"page-size":t.pageSize,background:"",layout:"prev, pager, next"},on:{"current-change":t.handlePageChange}})],1)],1)},[],!1,null,"c51cd8ee",null));b.options.__file="index.vue";e.default=b.exports},YDhJ:function(t,e,s){},vg5t:function(t,e,s){}}]);