settings-vue-settings-apps-users-management.js 41 KB

12
  1. (()=>{var e,s,r,o={6028:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var r=s(65043),o=s(56760);s(51257);const i=function(e){return e.replace(/\/$/,"")},n={requireAdmin:()=>(0,o.C)(),get:(e,t)=>r.Ay.get(i(e),t),post:(e,t)=>r.Ay.post(i(e),t),patch:(e,t)=>r.Ay.patch(i(e),t),put:(e,t)=>r.Ay.put(i(e),t),delete:(e,t)=>r.Ay.delete(i(e),{params:t})}},8265:(e,s,r)=>{"use strict";r.d(s,{P:()=>w});var o=r(95353),i=r(59097),n=r(87485),a=r(35810),u=r(85168),d=r(63814),c=r(65043),p=r(15916),l=r(6028),m=r(36620);const g=(0,i.c0)("settings").persist(!0).build(),h={id:"",name:"",usercount:0,disabled:0,canAdd:!0,canRemove:!0},E={users:[],groups:[],orderBy:p.q.UserCount,minPasswordLength:0,usersOffset:0,usersLimit:25,disabledUsersOffset:0,disabledUsersLimit:25,userCount:0,showConfig:{showStoragePath:"true"===g.getItem("account_settings__showStoragePath"),showUserBackend:"true"===g.getItem("account_settings__showUserBackend"),showLastLogin:"true"===g.getItem("account_settings__showLastLogin"),showNewUserForm:"true"===g.getItem("account_settings__showNewUserForm"),showLanguages:"true"===g.getItem("account_settings__showLanguages")}},f={appendUsers(e,t){const s=e.users.map((e=>{let{id:t}=e;return t})),r=Object.values(t).filter((e=>{let{id:t}=e;return!s.includes(t)})),o=e.users.concat(r);e.usersOffset+=e.usersLimit,e.users=o},updateDisabledUsers(e,t){e.disabledUsersOffset+=e.disabledUsersLimit},setPasswordPolicyMinLength(e,t){e.minPasswordLength=""!==t?t:0},initGroups(e,t){let{groups:s,orderBy:r,userCount:o}=t;e.groups=s.map((e=>Object.assign({},h,e))),e.orderBy=r,e.userCount=o},addGroup(e,t){let{gid:s,displayName:r}=t;try{if(void 0!==e.groups.find((e=>e.id===s)))return;const t=Object.assign({},h,{id:s,name:r});e.groups.unshift(t)}catch(e){console.error("Can't create group",e)}},renameGroup(e,t){let{gid:s,displayName:r}=t;const o=e.groups.findIndex((e=>e.id===s));if(o>=0){const t=e.groups[o];t.name=r,e.groups.splice(o,1,t)}},removeGroup(e,t){const s=e.groups.findIndex((e=>e.id===t));s>=0&&e.groups.splice(s,1)},addUserGroup(e,t){let{userid:s,gid:r}=t;const o=e.groups.find((e=>e.id===r)),i=e.users.find((e=>e.id===s));o&&i.enabled&&e.userCount>0&&o.usercount++,i.groups.push(r)},removeUserGroup(e,t){let{userid:s,gid:r}=t;const o=e.groups.find((e=>e.id===r)),i=e.users.find((e=>e.id===s));o&&i.enabled&&e.userCount>0&&o.usercount--;const n=i.groups;n.splice(n.indexOf(r),1)},addUserSubAdmin(e,t){let{userid:s,gid:r}=t;e.users.find((e=>e.id===s)).subadmin.push(r)},removeUserSubAdmin(e,t){let{userid:s,gid:r}=t;const o=e.users.find((e=>e.id===s)).subadmin;o.splice(o.indexOf(r),1)},deleteUser(e,t){const s=e.users.findIndex((e=>e.id===t));this.commit("updateUserCounts",{user:e.users[s],actionType:"remove"}),e.users.splice(s,1)},addUserData(e,t){const s=t.data.ocs.data;e.users.unshift(s),this.commit("updateUserCounts",{user:s,actionType:"create"})},enableDisableUser(e,t){let{userid:s,enabled:r}=t;const o=e.users.find((e=>e.id===s));o.enabled=r,this.commit("updateUserCounts",{user:o,actionType:r?"enable":"disable"})},updateUserCounts(e,t){let{user:s,actionType:r}=t;if(0===e.userCount)return;const o=e.groups.find((e=>"__nc_internal_recent"===e.id)),i=e.groups.find((e=>"disabled"===e.id));switch(r){case"enable":case"disable":i.usercount+=s.enabled?-1:1,o.usercount+=s.enabled?1:-1,e.userCount+=s.enabled?1:-1,s.groups.forEach((t=>{e.groups.find((e=>e.id===t)).disabled+=s.enabled?-1:1}));break;case"create":o.usercount++,e.userCount++,s.groups.forEach((t=>{e.groups.find((e=>e.id===t)).usercount++}));break;case"remove":s.enabled?(o.usercount--,e.userCount--,s.groups.forEach((t=>{const s=e.groups.find((e=>e.id===t));s?s.usercount--:console.warn("User group "+t+" does not exist during user removal")}))):(i.usercount--,s.groups.forEach((t=>{e.groups.find((e=>e.id===t)).disabled--})));break;default:m.A.error(`Unknown action type in updateUserCounts: '${r}'`)}},setUserData(e,t){let{userid:s,key:r,value:o}=t;if("quota"===r){const t=(0,a.lT)(o,!0);e.users.find((e=>e.id===s))[r][r]=null!==t?t:o}else e.users.find((e=>e.id===s))[r]=o},resetUsers(e){e.users=[],e.usersOffset=0,e.disabledUsersOffset=0},setShowConfig(e,t){let{key:s,value:r}=t;g.setItem(`account_settings__${s}`,JSON.stringify(r)),e.showConfig[s]=r},setGroupSorting(e,s){const r=e.orderBy;e.orderBy=s,c.Ay.post((0,d.Jv)("/settings/users/preferences/group.sortBy"),{value:String(s)}).catch((s=>{e.orderBy=r,(0,u.Qg)(t("settings","Could not set group sorting")),m.A.error(s)}))}},A={getUsers:e=>e.users,getGroups:e=>e.groups,getSubadminGroups:e=>e.groups.filter((e=>"admin"!==e.id&&"__nc_internal_recent"!==e.id&&"disabled"!==e.id)),getSortedGroups(e){const t=[...e.groups];return e.orderBy===p.q.UserCount?t.sort(((e,t)=>{const s=e.usercount-e.disabled,r=t.usercount-t.disabled;return s<r?1:r<s?-1:e.name.localeCompare(t.name)})):t.sort(((e,t)=>e.name.localeCompare(t.name)))},getGroupSorting:e=>e.orderBy,getPasswordPolicyMinLength:e=>e.minPasswordLength,getUsersOffset:e=>e.usersOffset,getUsersLimit:e=>e.usersLimit,getDisabledUsersOffset:e=>e.disabledUsersOffset,getDisabledUsersLimit:e=>e.disabledUsersLimit,getUserCount:e=>e.userCount,getShowConfig:e=>e.showConfig},I=c.Ay.CancelToken;let N=null;const b={state:E,mutations:f,getters:A,actions:{searchUsers(e,t){let{offset:s,limit:r,search:o}=t;return o="string"==typeof o?o:"",l.A.get((0,d.KT)("cloud/users/details?offset={offset}&limit={limit}&search={search}",{offset:s,limit:r,search:o})).catch((t=>{c.Ay.isCancel(t)||e.commit("API_FAILURE",t)}))},getUser:(e,t)=>l.A.get((0,d.KT)(`cloud/users/${t}`)).catch((t=>{c.Ay.isCancel(t)||e.commit("API_FAILURE",t)})),getUsers(e,t){let{offset:s,limit:r,search:o,group:i}=t;return N&&N.cancel("Operation canceled by another search request."),N=I.source(),o="string"==typeof o?o:"",o=o.replace(/in:[^\s]+/g,"").trim(),i="string"==typeof i?i:"",""!==i?l.A.get((0,d.KT)("cloud/groups/{group}/users/details?offset={offset}&limit={limit}&search={search}",{group:encodeURIComponent(i),offset:s,limit:r,search:o}),{cancelToken:N.token}).then((t=>{const s=Object.keys(t.data.ocs.data.users).length;return s>0&&e.commit("appendUsers",t.data.ocs.data.users),s})).catch((t=>{c.Ay.isCancel(t)||e.commit("API_FAILURE",t)})):l.A.get((0,d.KT)("cloud/users/details?offset={offset}&limit={limit}&search={search}",{offset:s,limit:r,search:o}),{cancelToken:N.token}).then((t=>{const s=Object.keys(t.data.ocs.data.users).length;return s>0&&e.commit("appendUsers",t.data.ocs.data.users),s})).catch((t=>{c.Ay.isCancel(t)||e.commit("API_FAILURE",t)}))},async getRecentUsers(e,t){let{offset:s,limit:r,search:o}=t;const i=(0,d.KT)("cloud/users/recent?offset={offset}&limit={limit}&search={search}",{offset:s,limit:r,search:o});try{const t=await l.A.get(i),s=Object.keys(t.data.ocs.data.users).length;return s>0&&e.commit("appendUsers",t.data.ocs.data.users),s}catch(t){e.commit("API_FAILURE",t)}},async getDisabledUsers(e,t){let{offset:s,limit:r,search:o}=t;const i=(0,d.KT)("cloud/users/disabled?offset={offset}&limit={limit}&search={search}",{offset:s,limit:r,search:o});try{const t=await l.A.get(i),s=Object.keys(t.data.ocs.data.users).length;return s>0&&(e.commit("appendUsers",t.data.ocs.data.users),e.commit("updateDisabledUsers",t.data.ocs.data.users)),s}catch(t){e.commit("API_FAILURE",t)}},getGroups(e,t){let{offset:s,limit:r,search:o}=t;o="string"==typeof o?o:"";const i=-1===r?"":`&limit=${r}`;return l.A.get((0,d.KT)("cloud/groups?offset={offset}&search={search}",{offset:s,search:o})+i).then((t=>Object.keys(t.data.ocs.data.groups).length>0&&(t.data.ocs.data.groups.forEach((function(t){e.commit("addGroup",{gid:t,displayName:t})})),!0))).catch((t=>e.commit("API_FAILURE",t)))},getUsersFromList(e,t){let{offset:s,limit:r,search:o}=t;return o="string"==typeof o?o:"",l.A.get((0,d.KT)("cloud/users/details?offset={offset}&limit={limit}&search={search}",{offset:s,limit:r,search:o})).then((t=>Object.keys(t.data.ocs.data.users).length>0&&(e.commit("appendUsers",t.data.ocs.data.users),!0))).catch((t=>e.commit("API_FAILURE",t)))},getUsersFromGroup(e,t){let{groupid:s,offset:r,limit:o}=t;return l.A.get((0,d.KT)("cloud/users/{groupId}/details?offset={offset}&limit={limit}",{groupId:encodeURIComponent(s),offset:r,limit:o})).then((t=>e.commit("getUsersFromList",t.data.ocs.data.users))).catch((t=>e.commit("API_FAILURE",t)))},getPasswordPolicyMinLength:e=>!(!(0,n.F)().password_policy||!(0,n.F)().password_policy.minLength)&&(e.commit("setPasswordPolicyMinLength",(0,n.F)().password_policy.minLength),(0,n.F)().password_policy.minLength),addGroup:(e,t)=>l.A.requireAdmin().then((s=>l.A.post((0,d.KT)("cloud/groups"),{groupid:t}).then((s=>(e.commit("addGroup",{gid:t,displayName:t}),{gid:t,displayName:t}))).catch((e=>{throw e})))).catch((s=>{throw e.commit("API_FAILURE",{gid:t,error:s}),s})),renameGroup(e,t){let{groupid:s,displayName:r}=t;return l.A.requireAdmin().then((t=>l.A.put((0,d.KT)("cloud/groups/{groupId}",{groupId:encodeURIComponent(s)}),{key:"displayname",value:r}).then((t=>(e.commit("renameGroup",{gid:s,displayName:r}),{groupid:s,displayName:r}))).catch((e=>{throw e})))).catch((t=>{throw e.commit("API_FAILURE",{groupid:s,error:t}),t}))},removeGroup:(e,t)=>l.A.requireAdmin().then((s=>l.A.delete((0,d.KT)("cloud/groups/{groupId}",{groupId:encodeURIComponent(t)})).then((s=>e.commit("removeGroup",t))).catch((e=>{throw e})))).catch((s=>e.commit("API_FAILURE",{gid:t,error:s}))),addUserGroup(e,t){let{userid:s,gid:r}=t;return l.A.requireAdmin().then((t=>l.A.post((0,d.KT)("cloud/users/{userid}/groups",{userid:s}),{groupid:r}).then((t=>e.commit("addUserGroup",{userid:s,gid:r}))).catch((e=>{throw e})))).catch((t=>e.commit("API_FAILURE",{userid:s,error:t})))},removeUserGroup(e,t){let{userid:s,gid:r}=t;return l.A.requireAdmin().then((t=>l.A.delete((0,d.KT)("cloud/users/{userid}/groups",{userid:s}),{groupid:r}).then((t=>e.commit("removeUserGroup",{userid:s,gid:r}))).catch((e=>{throw e})))).catch((t=>{throw e.commit("API_FAILURE",{userid:s,error:t}),t}))},addUserSubAdmin(e,t){let{userid:s,gid:r}=t;return l.A.requireAdmin().then((t=>l.A.post((0,d.KT)("cloud/users/{userid}/subadmins",{userid:s}),{groupid:r}).then((t=>e.commit("addUserSubAdmin",{userid:s,gid:r}))).catch((e=>{throw e})))).catch((t=>e.commit("API_FAILURE",{userid:s,error:t})))},removeUserSubAdmin(e,t){let{userid:s,gid:r}=t;return l.A.requireAdmin().then((t=>l.A.delete((0,d.KT)("cloud/users/{userid}/subadmins",{userid:s}),{groupid:r}).then((t=>e.commit("removeUserSubAdmin",{userid:s,gid:r}))).catch((e=>{throw e})))).catch((t=>e.commit("API_FAILURE",{userid:s,error:t})))},async wipeUserDevices(e,t){try{return await l.A.requireAdmin(),await l.A.post((0,d.KT)("cloud/users/{userid}/wipe",{userid:t}))}catch(s){return e.commit("API_FAILURE",{userid:t,error:s}),Promise.reject(new Error("Failed to wipe user devices"))}},deleteUser:(e,t)=>l.A.requireAdmin().then((s=>l.A.delete((0,d.KT)("cloud/users/{userid}",{userid:t})).then((s=>e.commit("deleteUser",t))).catch((e=>{throw e})))).catch((s=>e.commit("API_FAILURE",{userid:t,error:s}))),addUser(e,t){let{commit:s,dispatch:r}=e,{userid:o,password:i,displayName:n,email:a,groups:u,subadmin:c,quota:p,language:m,manager:g}=t;return l.A.requireAdmin().then((e=>l.A.post((0,d.KT)("cloud/users"),{userid:o,password:i,displayName:n,email:a,groups:u,subadmin:c,quota:p,language:m,manager:g}).then((e=>r("addUserData",o||e.data.ocs.data.id))).catch((e=>{throw e})))).catch((e=>{throw s("API_FAILURE",{userid:o,error:e}),e}))},addUserData:(e,t)=>l.A.requireAdmin().then((s=>l.A.get((0,d.KT)("cloud/users/{userid}",{userid:t})).then((t=>e.commit("addUserData",t))).catch((e=>{throw e})))).catch((s=>e.commit("API_FAILURE",{userid:t,error:s}))),enableDisableUser(e,t){let{userid:s,enabled:r=!0}=t;const o=r?"enable":"disable";return l.A.requireAdmin().then((t=>l.A.put((0,d.KT)("cloud/users/{userid}/{userStatus}",{userid:s,userStatus:o})).then((t=>e.commit("enableDisableUser",{userid:s,enabled:r}))).catch((e=>{throw e})))).catch((t=>e.commit("API_FAILURE",{userid:s,error:t})))},async setUserData(e,t){let{userid:s,key:r,value:o}=t;const i=["email","displayname","manager"];if(-1!==["email","language","quota","displayname","password","manager"].indexOf(r)&&"string"==typeof o&&(-1===i.indexOf(r)&&o.length>0||-1!==i.indexOf(r)))try{return await l.A.requireAdmin(),await l.A.put((0,d.KT)("cloud/users/{userid}",{userid:s}),{key:r,value:o}),e.commit("setUserData",{userid:s,key:r,value:o})}catch(t){e.commit("API_FAILURE",{userid:s,error:t})}return Promise.reject(new Error("Invalid request data"))},sendWelcomeMail:(e,t)=>l.A.requireAdmin().then((e=>l.A.post((0,d.KT)("cloud/users/{userid}/welcome",{userid:t})).then((e=>!0)).catch((e=>{throw e})))).catch((s=>e.commit("API_FAILURE",{userid:t,error:s})))}};var L=r(85471),y=r(32981);const R={apps:[],bundles:(0,y.C)("settings","appstoreBundles",[]),categories:[],updateCount:(0,y.C)("settings","appstoreUpdateCount",0),loading:{},gettingCategoriesPromise:null,appApiEnabled:(0,y.C)("settings","appApiEnabled",!1)},O={APPS_API_FAILURE(e,s){(0,u.Qg)(t("settings","An error occurred during the request. Unable to proceed.")+"<br>"+s.error.response.data.data.message,{isHTML:!0}),console.error(e,s)},initCategories(e,t){let{categories:s,updateCount:r}=t;e.categories=s,e.updateCount=r},updateCategories(e,t){e.gettingCategoriesPromise=t},setUpdateCount(e,t){e.updateCount=t},addCategory(e,t){e.categories.push(t)},appendCategories(e,t){e.categories=t},setAllApps(e,t){e.apps=t},setError(e,t){let{appId:s,error:r}=t;Array.isArray(s)||(s=[s]),s.forEach((t=>{e.apps.find((e=>e.id===t)).error=r}))},clearError(e,t){let{appId:s,error:r}=t;e.apps.find((e=>e.id===s)).error=null},enableApp(e,t){let{appId:s,groups:r}=t;const o=e.apps.find((e=>e.id===s));o.active=!0,o.groups=r,"app_api"===o.id&&(e.appApiEnabled=!0)},setInstallState(e,t){let{appId:s,canInstall:r}=t;const o=e.apps.find((e=>e.id===s));o&&(o.canInstall=!0===r)},disableApp(e,t){const s=e.apps.find((e=>e.id===t));s.active=!1,s.groups=[],s.removable&&(s.canUnInstall=!0),"app_api"===s.id&&(e.appApiEnabled=!1)},uninstallApp(e,t){e.apps.find((e=>e.id===t)).active=!1,e.apps.find((e=>e.id===t)).groups=[],e.apps.find((e=>e.id===t)).needsDownload=!0,e.apps.find((e=>e.id===t)).installed=!1,e.apps.find((e=>e.id===t)).canUnInstall=!1,e.apps.find((e=>e.id===t)).canInstall=!0,"app_api"===t&&(e.appApiEnabled=!1)},updateApp(e,t){const s=e.apps.find((e=>e.id===t)),r=s.update;s.update=null,s.version=r,e.updateCount--},resetApps(e){e.apps=[]},reset(e){e.apps=[],e.categories=[],e.updateCount=0},startLoading(e,t){Array.isArray(t)?t.forEach((t=>{L.Ay.set(e.loading,t,!0)})):L.Ay.set(e.loading,t,!0)},stopLoading(e,t){Array.isArray(t)?t.forEach((t=>{L.Ay.set(e.loading,t,!1)})):L.Ay.set(e.loading,t,!1)}},P={enableApp(e,s){let r,{appId:o,groups:i}=s;return r=Array.isArray(o)?o:[o],l.A.requireAdmin().then((s=>(e.commit("startLoading",r),e.commit("startLoading","install"),l.A.post((0,d.Jv)("settings/apps/enable"),{appIds:r,groups:i}).then((s=>(e.commit("stopLoading",r),e.commit("stopLoading","install"),r.forEach((t=>{e.commit("enableApp",{appId:t,groups:i})})),l.A.get((0,d.Jv)("apps/files/")).then((()=>{s.data.update_required&&((0,u.cf)(t("settings","The app has been enabled but needs to be updated. You will be redirected to the update page in 5 seconds."),{onClick:()=>window.location.reload(),close:!1}),setTimeout((function(){location.reload()}),5e3))})).catch((()=>{Array.isArray(o)||((0,u.Qg)(t("settings","Error: This app cannot be enabled because it makes the server unstable")),e.commit("setError",{appId:r,error:t("settings","Error: This app cannot be enabled because it makes the server unstable")}),e.dispatch("disableApp",{appId:o}))}))))).catch((t=>{e.commit("stopLoading",r),e.commit("stopLoading","install"),e.commit("setError",{appId:r,error:t.response.data.data.message}),e.commit("APPS_API_FAILURE",{appId:o,error:t})}))))).catch((t=>e.commit("API_FAILURE",{appId:o,error:t})))},forceEnableApp(e,t){let s,{appId:r,groups:o}=t;return s=Array.isArray(r)?r:[r],l.A.requireAdmin().then((()=>(e.commit("startLoading",s),e.commit("startLoading","install"),l.A.post((0,d.Jv)("settings/apps/force"),{appId:r}).then((t=>{e.commit("setInstallState",{appId:r,canInstall:!0})})).catch((t=>{e.commit("stopLoading",s),e.commit("stopLoading","install"),e.commit("setError",{appId:s,error:t.response.data.data.message}),e.commit("APPS_API_FAILURE",{appId:r,error:t})})).finally((()=>{e.commit("stopLoading",s),e.commit("stopLoading","install")}))))).catch((t=>e.commit("API_FAILURE",{appId:r,error:t})))},disableApp(e,t){let s,{appId:r}=t;return s=Array.isArray(r)?r:[r],l.A.requireAdmin().then((t=>(e.commit("startLoading",s),l.A.post((0,d.Jv)("settings/apps/disable"),{appIds:s}).then((t=>(e.commit("stopLoading",s),s.forEach((t=>{e.commit("disableApp",t)})),!0))).catch((t=>{e.commit("stopLoading",s),e.commit("APPS_API_FAILURE",{appId:r,error:t})}))))).catch((t=>e.commit("API_FAILURE",{appId:r,error:t})))},uninstallApp(e,t){let{appId:s}=t;return l.A.requireAdmin().then((t=>(e.commit("startLoading",s),l.A.get((0,d.Jv)(`settings/apps/uninstall/${s}`)).then((t=>(e.commit("stopLoading",s),e.commit("uninstallApp",s),!0))).catch((t=>{e.commit("stopLoading",s),e.commit("APPS_API_FAILURE",{appId:s,error:t})}))))).catch((t=>e.commit("API_FAILURE",{appId:s,error:t})))},updateApp(e,t){let{appId:s}=t;return l.A.requireAdmin().then((t=>(e.commit("startLoading",s),e.commit("startLoading","install"),l.A.get((0,d.Jv)(`settings/apps/update/${s}`)).then((t=>(e.commit("stopLoading","install"),e.commit("stopLoading",s),e.commit("updateApp",s),!0))).catch((t=>{e.commit("stopLoading",s),e.commit("stopLoading","install"),e.commit("APPS_API_FAILURE",{appId:s,error:t})}))))).catch((t=>e.commit("API_FAILURE",{appId:s,error:t})))},getAllApps:e=>(e.commit("startLoading","list"),l.A.get((0,d.Jv)("settings/apps/list")).then((t=>(e.commit("setAllApps",t.data.apps),e.commit("stopLoading","list"),!0))).catch((t=>e.commit("API_FAILURE",t)))),async getCategories(e){let{shouldRefetchCategories:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t||!e.state.gettingCategoriesPromise){e.commit("startLoading","categories");try{const t=l.A.get((0,d.Jv)("settings/apps/categories"));e.commit("updateCategories",t);const s=await t;return s.data.length>0?(e.commit("appendCategories",s.data),e.commit("stopLoading","categories"),!0):(e.commit("stopLoading","categories"),!1)}catch(t){e.commit("API_FAILURE",t)}}return e.state.gettingCategoriesPromise}},U={state:R,mutations:O,getters:{isAppApiEnabled:e=>e.appApiEnabled,loading:e=>function(t){return e.loading[t]},getCategories:e=>e.categories,getAllApps:e=>e.apps,getAppBundles:e=>e.bundles,getUpdateCount:e=>e.updateCount,getCategoryById:e=>t=>e.categories.find((e=>e.id===t))},actions:P},v={serverData:(0,y.C)("settings","usersSettings",{})},T={setServerData(e,t){e.serverData=t}},C={state:v,mutations:T,getters:{getServerData:e=>e.serverData},actions:{}},F={state:{},mutations:{},getters:{},actions:{setAppConfig(e,t){let{app:s,key:r,value:o}=t;return l.A.requireAdmin().then((e=>l.A.post((0,d.KT)("apps/provisioning_api/api/v1/config/apps/{app}/{key}",{app:s,key:r}),{value:o}).catch((e=>{throw e})))).catch((t=>e.commit("API_FAILURE",{app:s,key:r,value:o,error:t})))}}},$={API_FAILURE(e,s){try{const e=s.error.response.data.ocs.meta.message;(0,u.Qg)(t("settings","An error occurred during the request. Unable to proceed.")+"<br>"+e,{isHTML:!0})}catch(e){(0,u.Qg)(t("settings","An error occurred during the request. Unable to proceed."))}console.error(e,s)}};let _=null;const w=()=>(null===_&&(_=new o.il({modules:{users:b,apps:U,settings:C,oc:F},strict:!1,mutations:$})),_)},15916:(e,t,s)=>{"use strict";var r;s.d(t,{q:()=>r}),function(e){e[e.UserCount=1]="UserCount",e[e.GroupName=2]="GroupName"}(r||(r={}))},36620:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});const r=(0,s(35947).YK)().setApp("settings").detectUser().build()},18539:(e,t,s)=>{"use strict";var r=s(85471),o=s(95353),i=s(80284),n=s(58723),a=s(53334),u=s(22378);const d=(0,r.pM)({__name:"SettingsApp",setup:e=>({__sfc:!0,NcContent:u.A})}),c=(0,s(14486).A)(d,(function(){var e=this,t=e._self._c;return t(e._self._setupProxy.NcContent,{attrs:{"app-name":"settings"}},[t("router-view",{attrs:{name:"navigation"}}),e._v(" "),t("router-view"),e._v(" "),t("router-view",{attrs:{name:"sidebar"}})],1)}),[],!1,null,null,null).exports;var p=s(40173),l=s(63814);const m=[{name:"users",path:"/:index(index.php/)?settings/users",components:{default:()=>Promise.all([s.e(4208),s.e(7265),s.e(3239)]).then(s.bind(s,67572)),navigation:()=>Promise.all([s.e(4208),s.e(7265),s.e(3239)]).then(s.bind(s,39603))},props:!0,children:[{path:":selectedGroup",name:"group"}]},{path:"/:index(index.php/)?settings/apps",name:"apps",redirect:{name:"apps-category",params:{category:(0,s(32981).C)("settings","appstoreEnabled",!0)?"discover":"installed"}},components:{default:()=>Promise.all([s.e(4208),s.e(7265),s.e(4529)]).then(s.bind(s,33984)),navigation:()=>Promise.all([s.e(4208),s.e(7265),s.e(4529)]).then(s.bind(s,28372)),sidebar:()=>Promise.all([s.e(4208),s.e(7265),s.e(4529)]).then(s.bind(s,7896))},children:[{path:":category",name:"apps-category",children:[{path:":id",name:"apps-details"}]}]}];r.Ay.use(p.Ay);const g=new p.Ay({mode:"history",base:(0,l.Jv)(""),linkActiveClass:"active",routes:m});var h=s(8265),E=s(21777),f=s(65899);s.nc=(0,E.aV)(),r.Ay.prototype.t=a.t,r.Ay.prototype.n=a.n,r.Ay.use(f.R2),r.Ay.use(i.Ay,{defaultHtml:!1}),r.Ay.use(o.Ay);const A=(0,h.P)();(0,n.O)(A,g);const I=(0,f.Ey)();new r.Ay({router:g,store:A,pinia:I,render:e=>e(c),el:"#content"})},58723:(e,t)=>{function s(e,t){var r={name:e.name,path:e.path,hash:e.hash,query:e.query,params:e.params,fullPath:e.fullPath,meta:e.meta};return t&&(r.from=s(t)),Object.freeze(r)}t.O=function(e,t,r){var o=(r||{}).moduleName||"route";e.registerModule(o,{namespaced:!0,state:s(t.currentRoute),mutations:{ROUTE_CHANGED:function(t,r){e.state[o]=s(r.to,r.from)}}});var i,n=!1,a=e.watch((function(e){return e[o]}),(function(e){var s=e.fullPath;s!==i&&(null!=i&&(n=!0,t.push(e)),i=s)}),{sync:!0}),u=t.afterEach((function(t,s){n?n=!1:(i=t.fullPath,e.commit(o+"/ROUTE_CHANGED",{to:t,from:s}))}));return function(){null!=u&&u(),null!=a&&a(),e.unregisterModule(o)}}},35810:(e,t,s)=>{"use strict";s.d(t,{Al:()=>r.r,H4:()=>r.c,Q$:()=>r.e,R3:()=>r.n,VL:()=>r.l,lJ:()=>r.d,lT:()=>c,pt:()=>r.F,ur:()=>l,v7:()=>d});var r=s(29719),o=(s(43627),s(53334)),i=s(380),n=s(65606);Error;const a=["B","KB","MB","GB","TB","PB"],u=["B","KiB","MiB","GiB","TiB","PiB"];function d(e,t=!1,s=!1,r=!1){s=s&&!r,"string"==typeof e&&(e=Number(e));let i=e>0?Math.floor(Math.log(e)/Math.log(r?1e3:1024)):0;i=Math.min((s?u.length:a.length)-1,i);const n=s?u[i]:a[i];let d=(e/Math.pow(r?1e3:1024,i)).toFixed(1);return!0===t&&0===i?("0.0"!==d?"< 1 ":"0 ")+(s?u[1]:a[1]):(d=i<2?parseFloat(d).toFixed(0):parseFloat(d).toLocaleString((0,o.lO)()),d+" "+n)}function c(e,t=!1){try{e=`${e}`.toLocaleLowerCase().replaceAll(/\s+/g,"").replaceAll(",",".")}catch(e){return null}const s=e.match(/^([0-9]*(\.[0-9]*)?)([kmgtp]?)(i?)b?$/);if(null===s||"."===s[1]||""===s[1])return null;const r=`${s[1]}`,o="i"===s[4]||t?1024:1e3;return Math.round(Number.parseFloat(r)*o**{"":0,k:1,m:2,g:3,t:4,p:5,e:6}[s[3]])}function p(e){return e instanceof Date?e.toISOString():String(e)}function l(e,t={}){const s={sortingMode:"basename",sortingOrder:"asc",...t};return function(e,t,s){s=s??[];const r=(t=t??[e=>e]).map(((e,t)=>"asc"===(s[t]??"asc")?1:-1)),i=Intl.Collator([(0,o.Z0)(),(0,o.lO)()],{numeric:!0,usage:"sort"});return[...e].sort(((e,s)=>{for(const[o,n]of t.entries()){const t=i.compare(p(n(e)),p(n(s)));if(0!==t)return t*r[o]}return 0}))}(e,[...s.sortFavoritesFirst?[e=>1!==e.attributes?.favorite]:[],...s.sortFoldersFirst?[e=>"folder"!==e.type]:[],..."basename"!==s.sortingMode?[e=>e[s.sortingMode]]:[],e=>{return(t=e.displayname||e.attributes?.displayname||e.basename).lastIndexOf(".")>0?t.slice(0,t.lastIndexOf(".")):t;var t},e=>e.basename],[...s.sortFavoritesFirst?["asc"]:[],...s.sortFoldersFirst?["asc"]:[],..."mtime"===s.sortingMode?["asc"===s.sortingOrder?"desc":"asc"]:[],..."mtime"!==s.sortingMode&&"basename"!==s.sortingMode?[s.sortingOrder]:[],s.sortingOrder,s.sortingOrder])}var m={};!function(e){const t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s="["+t+"]["+t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",r=new RegExp("^"+s+"$");e.isExist=function(e){return void 0!==e},e.isEmptyObject=function(e){return 0===Object.keys(e).length},e.merge=function(e,t,s){if(t){const r=Object.keys(t),o=r.length;for(let i=0;i<o;i++)e[r[i]]="strict"===s?[t[r[i]]]:t[r[i]]}},e.getValue=function(t){return e.isExist(t)?t:""},e.isName=function(e){return!(null==r.exec(e))},e.getAllMatches=function(e,t){const s=[];let r=t.exec(e);for(;r;){const o=[];o.startIndex=t.lastIndex-r[0].length;const i=r.length;for(let e=0;e<i;e++)o.push(r[e]);s.push(o),r=t.exec(e)}return s},e.nameRegexp=s}(m);new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");var g={};const h={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,s){return e}};g.buildOptions=function(e){return Object.assign({},h,e)},g.defaultOptions=h,!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");var E={};function f(e,t,s){let r;const o={};for(let i=0;i<e.length;i++){const n=e[i],a=A(n);let u="";if(u=void 0===s?a:s+"."+a,a===t.textNodeName)void 0===r?r=n[a]:r+=""+n[a];else{if(void 0===a)continue;if(n[a]){let e=f(n[a],t,u);const s=N(e,t);n[":@"]?I(e,n[":@"],u,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==o[a]&&o.hasOwnProperty(a)?(Array.isArray(o[a])||(o[a]=[o[a]]),o[a].push(e)):t.isArray(a,u,s)?o[a]=[e]:o[a]=e}}}return"string"==typeof r?r.length>0&&(o[t.textNodeName]=r):void 0!==r&&(o[t.textNodeName]=r),o}function A(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const s=t[e];if(":@"!==s)return s}}function I(e,t,s,r){if(t){const o=Object.keys(t),i=o.length;for(let n=0;n<i;n++){const i=o[n];r.isArray(i,s+"."+i,!0,!0)?e[i]=[t[i]]:e[i]=t[i]}}}function N(e,t){const{textNodeName:s}=t,r=Object.keys(e).length;return 0===r||!(1!==r||!e[s]&&"boolean"!=typeof e[s]&&0!==e[s])}E.prettify=function(e,t){return f(e,t)};const{buildOptions:b}=g,{prettify:L}=E;function y(e,t,s,r){let o="",i=!1;for(let n=0;n<e.length;n++){const a=e[n],u=R(a);if(void 0===u)continue;let d="";if(d=0===s.length?u:`${s}.${u}`,u===t.textNodeName){let e=a[u];P(d,t)||(e=t.tagValueProcessor(u,e),e=U(e,t)),i&&(o+=r),o+=e,i=!1;continue}if(u===t.cdataPropName){i&&(o+=r),o+=`<![CDATA[${a[u][0][t.textNodeName]}]]>`,i=!1;continue}if(u===t.commentPropName){o+=r+`\x3c!--${a[u][0][t.textNodeName]}--\x3e`,i=!0;continue}if("?"===u[0]){const e=O(a[":@"],t),s="?xml"===u?"":r;let n=a[u][0][t.textNodeName];n=0!==n.length?" "+n:"",o+=s+`<${u}${n}${e}?>`,i=!0;continue}let c=r;""!==c&&(c+=t.indentBy);const p=r+`<${u}${O(a[":@"],t)}`,l=y(a[u],t,d,c);-1!==t.unpairedTags.indexOf(u)?t.suppressUnpairedNode?o+=p+">":o+=p+"/>":l&&0!==l.length||!t.suppressEmptyNode?l&&l.endsWith(">")?o+=p+`>${l}${r}</${u}>`:(o+=p+">",l&&""!==r&&(l.includes("/>")||l.includes("</"))?o+=r+t.indentBy+l+r:o+=l,o+=`</${u}>`):o+=p+"/>",i=!0}return o}function R(e){const t=Object.keys(e);for(let s=0;s<t.length;s++){const r=t[s];if(e.hasOwnProperty(r)&&":@"!==r)return r}}function O(e,t){let s="";if(e&&!t.ignoreAttributes)for(let r in e){if(!e.hasOwnProperty(r))continue;let o=t.attributeValueProcessor(r,e[r]);o=U(o,t),!0===o&&t.suppressBooleanAttributes?s+=` ${r.substr(t.attributeNamePrefix.length)}`:s+=` ${r.substr(t.attributeNamePrefix.length)}="${o}"`}return s}function P(e,t){let s=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let r in t.stopNodes)if(t.stopNodes[r]===e||t.stopNodes[r]==="*."+s)return!0;return!1}function U(e,t){if(e&&e.length>0&&t.processEntities)for(let s=0;s<t.entities.length;s++){const r=t.entities[s];e=e.replace(r.regex,r.val)}return e}const v=function(e,t){let s="";return t.format&&t.indentBy.length>0&&(s="\n"),y(e,t,"",s)},T=function(e){return"function"==typeof e?e:Array.isArray(e)?t=>{for(const s of e){if("string"==typeof s&&t===s)return!0;if(s instanceof RegExp&&s.test(t))return!0}}:()=>!1},C={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function F(e){this.options=Object.assign({},C,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=T(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=w),this.processTextOrObjNode=$,this.options.format?(this.indentate=_,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function $(e,t,s,r){const o=this.j2x(e,s+1,r.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,o.attrStr,s):this.buildObjectNode(o.val,t,o.attrStr,s)}function _(e){return this.options.indentBy.repeat(e)}function w(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}F.prototype.build=function(e){return this.options.preserveOrder?v(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},F.prototype.j2x=function(e,t,s){let r="",o="";const i=s.join(".");for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n))if(void 0===e[n])this.isAttribute(n)&&(o+="");else if(null===e[n])this.isAttribute(n)?o+="":"?"===n[0]?o+=this.indentate(t)+"<"+n+"?"+this.tagEndChar:o+=this.indentate(t)+"<"+n+"/"+this.tagEndChar;else if(e[n]instanceof Date)o+=this.buildTextValNode(e[n],n,"",t);else if("object"!=typeof e[n]){const s=this.isAttribute(n);if(s&&!this.ignoreAttributesFn(s,i))r+=this.buildAttrPairStr(s,""+e[n]);else if(!s)if(n===this.options.textNodeName){let t=this.options.tagValueProcessor(n,""+e[n]);o+=this.replaceEntitiesValue(t)}else o+=this.buildTextValNode(e[n],n,"",t)}else if(Array.isArray(e[n])){const r=e[n].length;let i="",a="";for(let u=0;u<r;u++){const r=e[n][u];if(void 0===r);else if(null===r)"?"===n[0]?o+=this.indentate(t)+"<"+n+"?"+this.tagEndChar:o+=this.indentate(t)+"<"+n+"/"+this.tagEndChar;else if("object"==typeof r)if(this.options.oneListGroup){const e=this.j2x(r,t+1,s.concat(n));i+=e.val,this.options.attributesGroupName&&r.hasOwnProperty(this.options.attributesGroupName)&&(a+=e.attrStr)}else i+=this.processTextOrObjNode(r,n,t,s);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(n,r);e=this.replaceEntitiesValue(e),i+=e}else i+=this.buildTextValNode(r,n,"",t)}this.options.oneListGroup&&(i=this.buildObjectNode(i,n,a,t)),o+=i}else if(this.options.attributesGroupName&&n===this.options.attributesGroupName){const t=Object.keys(e[n]),s=t.length;for(let o=0;o<s;o++)r+=this.buildAttrPairStr(t[o],""+e[n][t[o]])}else o+=this.processTextOrObjNode(e[n],n,t,s);return{attrStr:r,val:o}},F.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},F.prototype.buildObjectNode=function(e,t,s,r){if(""===e)return"?"===t[0]?this.indentate(r)+"<"+t+s+"?"+this.tagEndChar:this.indentate(r)+"<"+t+s+this.closeTag(t)+this.tagEndChar;{let o="</"+t+this.tagEndChar,i="";return"?"===t[0]&&(i="?",o=""),!s&&""!==s||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===i.length?this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(r)+"<"+t+s+i+this.tagEndChar+e+this.indentate(r)+o:this.indentate(r)+"<"+t+s+i+">"+e+o}},F.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},F.prototype.buildTextValNode=function(e,t,s,r){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(r)+"<"+t+s+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(t,e);return o=this.replaceEntitiesValue(o),""===o?this.indentate(r)+"<"+t+s+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+s+">"+o+"</"+t+this.tagEndChar}},F.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const s=this.options.entities[t];e=e.replace(s.regex,s.val)}return e};var S="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},x={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},D={exports:{}};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=x,i=S,n=(t=e.exports={}).re=[],a=t.safeRe=[],u=t.src=[],d=t.t={};let c=0;const p="[a-zA-Z0-9-]",l=[["\\s",1],["\\d",o],[p,r]],m=(e,t,s)=>{const r=(e=>{for(const[t,s]of l)e=e.split(`${t}*`).join(`${t}{0,${s}}`).split(`${t}+`).join(`${t}{1,${s}}`);return e})(t),o=c++;i(e,o,t),d[e]=o,u[o]=t,n[o]=new RegExp(t,s?"g":void 0),a[o]=new RegExp(r,s?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),m("MAINVERSION",`(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${u[d.NUMERICIDENTIFIER]}|${u[d.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${u[d.NUMERICIDENTIFIERLOOSE]}|${u[d.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${u[d.PRERELEASEIDENTIFIER]}(?:\\.${u[d.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${u[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[d.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${p}+`),m("BUILD",`(?:\\+(${u[d.BUILDIDENTIFIER]}(?:\\.${u[d.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${u[d.MAINVERSION]}${u[d.PRERELEASE]}?${u[d.BUILD]}?`),m("FULL",`^${u[d.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${u[d.MAINVERSIONLOOSE]}${u[d.PRERELEASELOOSE]}?${u[d.BUILD]}?`),m("LOOSE",`^${u[d.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${u[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${u[d.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:${u[d.PRERELEASE]})?${u[d.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:${u[d.PRERELEASELOOSE]})?${u[d.BUILD]}?)?)?`),m("XRANGE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?`),m("COERCE",`${u[d.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",u[d.COERCEPLAIN]+`(?:${u[d.PRERELEASE]})?(?:${u[d.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",u[d.COERCE],!0),m("COERCERTLFULL",u[d.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${u[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${u[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${u[d.LONECARET]}${u[d.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${u[d.LONECARET]}${u[d.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${u[d.GTLT]}\\s*(${u[d.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]}|${u[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${u[d.XRANGEPLAIN]})\\s+-\\s+(${u[d.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${u[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[d.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(D,D.exports);var G=D.exports;Object.freeze({loose:!0}),Object.freeze({});const M=/^[0-9]+$/,j=(e,t)=>{const s=M.test(e),r=M.test(t);return s&&r&&(e=+e,t=+t),e===t?0:s&&!r?-1:r&&!s?1:e<t?-1:1};var k={compareIdentifiers:j,rcompareIdentifiers:(e,t)=>j(t,e)};const{MAX_LENGTH:B,MAX_SAFE_INTEGER:q}=x,{safeRe:X,t:V}=G,{compareIdentifiers:K}=k;i.m}},i={};function n(e){var t=i[e];if(void 0!==t)return t.exports;var s=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}n.m=o,e=[],n.O=(t,s,r,o)=>{if(!s){var i=1/0;for(c=0;c<e.length;c++){s=e[c][0],r=e[c][1],o=e[c][2];for(var a=!0,u=0;u<s.length;u++)(!1&o||i>=o)&&Object.keys(n.O).every((e=>n.O[e](s[u])))?s.splice(u--,1):(a=!1,o<i&&(i=o));if(a){e.splice(c--,1);var d=r();void 0!==d&&(t=d)}}return t}o=o||0;for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[s,r,o]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,s)=>(n.f[s](e,t),t)),[])),n.u=e=>(({3239:"settings-users",4529:"settings-apps-view"}[e]||e)+"-"+e+".js?v="+{3239:"bfd3fe23520072cf547d",3303:"8cf209f1ac18a557bf69",4529:"9ebb174ceb3948a34d7b",5706:"3153330af47fc26a725a",6127:"da37b69cd9ee64a1836b",7265:"e0e0191dd88223db697e",8737:"50204d201c48303c2761",9972:"21e140988dbf62120698"}[e]),n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s={},r="nextcloud:",n.l=(e,t,o,i)=>{if(s[e])s[e].push(t);else{var a,u;if(void 0!==o)for(var d=document.getElementsByTagName("script"),c=0;c<d.length;c++){var p=d[c];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){a=p;break}}a||(u=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",r+o),a.src=e),s[e]=[t];var l=(t,r)=>{a.onerror=a.onload=null,clearTimeout(m);var o=s[e];if(delete s[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((e=>e(r))),t)return t(r)},m=setTimeout(l.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=l.bind(null,a.onerror),a.onload=l.bind(null,a.onload),u&&document.head.appendChild(a)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.j=2689,(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var s=t.getElementsByTagName("script");if(s.length)for(var r=s.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=s[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{n.b=document.baseURI||self.location.href;var e={2689:0};n.f.j=(t,s)=>{var r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)s.push(r[2]);else{var o=new Promise(((s,o)=>r=e[t]=[s,o]));s.push(r[2]=o);var i=n.p+n.u(t),a=new Error;n.l(i,(s=>{if(n.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=s&&("load"===s.type?"missing":s.type),i=s&&s.target&&s.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}},n.O.j=t=>0===e[t];var t=(t,s)=>{var r,o,i=s[0],a=s[1],u=s[2],d=0;if(i.some((t=>0!==e[t]))){for(r in a)n.o(a,r)&&(n.m[r]=a[r]);if(u)var c=u(n)}for(t&&t(s);d<i.length;d++)o=i[d],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(c)},s=self.webpackChunknextcloud=self.webpackChunknextcloud||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})(),n.nc=void 0;var a=n.O(void 0,[4208],(()=>n(18539)));a=n.O(a)})();
  2. //# sourceMappingURL=settings-vue-settings-apps-users-management.js.map?v=5b7b54beeef56630f250