nextcloud/apps/settings/js/vue-settings-users-4f9a07af...

2 lines
51 KiB
JavaScript
Raw Normal View History

(window.webpackJsonpSettings=window.webpackJsonpSettings||[]).push([[7],{600:function(e,t,s){var n=s(613);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,s(136).default)("2808c78e",n,!0,{})},601:function(e,t,s){var n=s(615);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,s(136).default)("8e8377f4",n,!0,{})},602:function(e,t,s){var n=s(617);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,s(136).default)("baf475f8",n,!0,{})},603:function(e,t,s){var n=s(619);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,s(136).default)("d1f513c6",n,!0,{})},612:function(e,t,s){"use strict";s(600)},613:function(e,t,s){(t=s(135)(!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},614:function(e,t,s){"use strict";s(601)},615:function(e,t,s){(t=s(135)(!1)).push([e.i,".row--menu-opened[data-v-172121d3]{z-index:1 !important}.row[data-v-172121d3] .multiselect__single{z-index:auto !important}\n",""]),e.exports=t},616:function(e,t,s){"use strict";s(602)},617:function(e,t,s){(t=s(135)(!1)).push([e.i,"\n.row[data-v-c4fdcc08] .multiselect__single {\n\tz-index: auto !important;\n}\n",""]),e.exports=t},618:function(e,t,s){"use strict";s(603)},619:function(e,t,s){(t=s(135)(!1)).push([e.i,".app-navigation__list #addgroup[data-v-90cdadc6] .app-navigation-entry__utils{display:none}\n",""]),e.exports=t},636:function(e,s,n){"use strict";n.r(s);var a=n(381),i=n.n(a),r=n(592),o=n.n(r),u=n(593),l=n.n(u),d=n(608),c=n.n(d),g=n(594),p=n.n(g),h=n(595),m=n.n(h),f=n(609),v=n.n(f),w=n(610),b=n.n(w),_=n(35),y=n.n(_),C=n(596),A=n.n(C),U=n(11),k=n(597),x=n.n(k),L=n(17),S=n(598),G=n.n(S),O=n(137),M=n(611),N=n.n(M),$=n(382),q=n.n($),P=n(599),D=n.n(P),Q=n(128),j=n(199),B=n(129);function R(e){return(R="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 z={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"!==R(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):""},userL
//# sourceMappingURL=vue-settings-users-4f9a07af1c9815653b0a.js.map?v=b368a9243b3bdcdf773d