nextcloud/apps/settings/js/vue-settings-users-766ad7f7...

2 lines
51 KiB
JavaScript
Raw Normal View History

(window.webpackJsonpSettings=window.webpackJsonpSettings||[]).push([[6],{653:function(e,t,s){var n=s(676);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,s(150).default)("2808c78e",n,!0,{})},654:function(e,t,s){var n=s(678);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,s(150).default)("7969ffa6",n,!0,{})},655:function(e,t,s){var n=s(681);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,s(150).default)("5536eee3",n,!0,{})},656:function(e,t,s){var n=s(683);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,s(150).default)("618458b0",n,!0,{})},675:function(e,t,s){"use strict";var n=s(653);s.n(n).a},676:function(e,t,s){(t=s(149)(!1)).push([e.i,".cellText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.icon-more{background-color:var(--color-main-background);border:0}\n",""]),e.exports=t},677:function(e,t,s){"use strict";var n=s(654);s.n(n).a},678:function(e,t,s){(t=s(149)(!1)).push([e.i,".row--menu-opened[data-v-1255ead3]{z-index:1 !important}.row[data-v-1255ead3] .multiselect__single{z-index:auto !important}\n",""]),e.exports=t},680:function(e,t,s){"use strict";var n=s(655);s.n(n).a},681:function(e,t,s){(t=s(149)(!1)).push([e.i,"\n.row[data-v-2500ce5f] .multiselect__single {\n\tz-index: auto !important;\n}\n",""]),e.exports=t},682:function(e,t,s){"use strict";var n=s(656);s.n(n).a},683:function(e,t,s){(t=s(149)(!1)).push([e.i,"#usergrouplist #addgroup[data-v-1c7fe5d6] .app-navigation-entry__utils{display:none}\n",""]),e.exports=t},697:function(e,s,n){"use strict";n.r(s);var a=n(407),i=n.n(a),r=n(660),o=n.n(r),u=n(661),l=n.n(u),d=n(671),c=n.n(d),g=n(662),p=n.n(g),h=n(663),m=n.n(h),f=n(672),v=n.n(f),w=n(673),b=n.n(w),_=n(35),y=n.n(_),C=n(664),A=n.n(C),U=n(191),k=n(674),L=n.n(k),x=n(13),S=n(665),G=n.n(S),M=n(666),N=n.n(M),O=n(143),$=n(195),q=n(190);function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var D={props:{user:{type:Object,required:!0},settings:{type:Object,default:function(){return{}}},groups:{type:Array,default:function(){return[]}},subAdminsGroups:{type:Array,default:function(){return[]}},quotaOptions:{type:Array,default:function(){return[]}},showConfig:{type:Object,default:function(){return{}}},languages:{type:Array,required:!0},externalActions:{type:Array,default:function(){return[]}}},computed:{userGroups:function(){var e=this,t=this.groups.filter((function(t){return e.user.groups.includes(t.id)}));return t},userSubAdminsGroups:function(){var e=this,t=this.subAdminsGroups.filter((function(t){return e.user.subadmin.includes(t.id)}));return t},availableGroups:function(){var e=this;return this.groups.map((function(t){var s=Object.assign({},t);return s.$isDisabled=!1===t.canAdd&&!e.user.groups.includes(t.id)||!1===t.canRemove&&e.user.groups.includes(t.id),s}))},usedSpace:function(){return this.user.quota.used?t("settings","{size} used",{size:OC.Util.humanFileSize(this.user.quota.used)}):t("settings","{size} used",{size:OC.Util.humanFileSize(0)})},usedQuota:function(){var e=this.user.quota.quota;e>0?e=Math.min(100,Math.round(this.user.quota.used/e*100)):e=95*(1-1/(this.user.quota.used/(10*Math.pow(2,30))+1));return isNaN(e)?0:e},userQuota:function(){if(this.user.quota.quota>=0){var e=OC.Util.humanFileSize(this.user.quota.quota),t=this.quotaOptions.find((function(t){return t.id===e}));return t||{id:e,label:e}}return"default"===this.user.quota.quota?this.quotaOptions[0]:this.quotaOptions[1]},minPasswordLength:function(){return this.$store.getters.getPasswordPolicyMinLength},userLanguage:function(){var e=this,t=this.languages[0].languages.concat(this.languages[1].languages).find((function(t){return t.code===e.user.language}));return"object"!==P(t)&&""!==this.user.language?{code:this.user.language,name:this.user.language}:""!==this.user.language&&t},userLastLoginTooltip:function(){return this.user.lastLogin>0?OC.Util.formatDate(this.user.lastLogin):
//# sourceMappingURL=vue-settings-users-766ad7f732a2dec7aa8f.js.map?v=f8ebf7a59e878ea6ac63