(()=>{var e,s,r,i={6028:(t,e,s)=>{"use strict";s.d(e,{A:()=>n});var r=s(65043),i=s(56760);s(51257);const o=function(t){return t.replace(/\/$/,"")},n={requireAdmin:()=>(0,i.C)(),get:(t,e)=>r.Ay.get(o(t),e),post:(t,e)=>r.Ay.post(o(t),e),patch:(t,e)=>r.Ay.patch(o(t),e),put:(t,e)=>r.Ay.put(o(t),e),delete:(t,e)=>r.Ay.delete(o(t),{params:e})}},8265:(e,s,r)=>{"use strict";r.d(s,{P:()=>F});var i=r(95353),o=r(59097),n=r(87485),a=r(35810),d=r(85168),u=r(63814),c=r(65043),p=r(15916),l=r(6028),m=r(36620);const h=(0,o.c0)("settings").persist(!0).build(),g={id:"",name:"",usercount:0,disabled:0,canAdd:!0,canRemove:!0},f={users:[],groups:[],orderBy:p.q.UserCount,minPasswordLength:0,usersOffset:0,usersLimit:25,disabledUsersOffset:0,disabledUsersLimit:25,userCount:0,showConfig:{showStoragePath:"true"===h.getItem("account_settings__showStoragePath"),showUserBackend:"true"===h.getItem("account_settings__showUserBackend"),showLastLogin:"true"===h.getItem("account_settings__showLastLogin"),showNewUserForm:"true"===h.getItem("account_settings__showNewUserForm"),showLanguages:"true"===h.getItem("account_settings__showLanguages")}},E={appendUsers(t,e){const s=t.users.map((t=>{let{id:e}=t;return e})),r=Object.values(e).filter((t=>{let{id:e}=t;return!s.includes(e)})),i=t.users.concat(r);t.usersOffset+=t.usersLimit,t.users=i},updateDisabledUsers(t,e){t.disabledUsersOffset+=t.disabledUsersLimit},setPasswordPolicyMinLength(t,e){t.minPasswordLength=""!==e?e:0},initGroups(t,e){let{groups:s,orderBy:r,userCount:i}=e;t.groups=s.map((t=>Object.assign({},g,t))),t.orderBy=r,t.userCount=i},addGroup(t,e){let{gid:s,displayName:r}=e;try{if(void 0!==t.groups.find((t=>t.id===s)))return;const e=Object.assign({},g,{id:s,name:r});t.groups.unshift(e)}catch(t){console.error("Can't create group",t)}},renameGroup(t,e){let{gid:s,displayName:r}=e;const i=t.groups.findIndex((t=>t.id===s));if(i>=0){const e=t.groups[i];e.name=r,t.groups.splice(i,1,e)}},removeGroup(t,e){const s=t.groups.findIndex((t=>t.id===e));s>=0&&t.groups.splice(s,1)},addUserGroup(t,e){let{userid:s,gid:r}=e;const i=t.groups.find((t=>t.id===r)),o=t.users.find((t=>t.id===s));i&&o.enabled&&t.userCount>0&&i.usercount++,o.groups.push(r)},removeUserGroup(t,e){let{userid:s,gid:r}=e;const i=t.groups.find((t=>t.id===r)),o=t.users.find((t=>t.id===s));i&&o.enabled&&t.userCount>0&&i.usercount--;const n=o.groups;n.splice(n.indexOf(r),1)},addUserSubAdmin(t,e){let{userid:s,gid:r}=e;t.users.find((t=>t.id===s)).subadmin.push(r)},removeUserSubAdmin(t,e){let{userid:s,gid:r}=e;const i=t.users.find((t=>t.id===s)).subadmin;i.splice(i.indexOf(r),1)},deleteUser(t,e){const s=t.users.findIndex((t=>t.id===e));this.commit("updateUserCounts",{user:t.users[s],actionType:"remove"}),t.users.splice(s,1)},addUserData(t,e){const s=e.data.ocs.data;t.users.unshift(s),this.commit("updateUserCounts",{user:s,actionType:"create"})},enableDisableUser(t,e){let{userid:s,enabled:r}=e;const i=t.users.find((t=>t.id===s));i.enabled=r,this.commit("updateUserCounts",{user:i,actionType:r?"enable":"disable"})},updateUserCounts(t,e){let{user:s,actionType:r}=e;if(0===t.userCount)return;const i=t.groups.find((t=>"__nc_internal_recent"===t.id)),o=t.groups.find((t=>"disabled"===t.id));switch(r){case"enable":case"disable":o.usercount+=s.enabled?-1:1,i.usercount+=s.enabled?1:-1,t.userCount+=s.enabled?1:-1,s.groups.forEach((e=>{t.groups.find((t=>t.id===e)).disabled+=s.enabled?-1:1}));break;case"create":i.usercount++,t.userCount++,s.groups.forEach((e=>{t.groups.find((t=>t.id===e)).usercount++}));break;case"remove":s.enabled?(i.usercount--,t.userCount--,s.groups.forEach((e=>{const s=t.groups.find((t=>t.id===e));s?s.usercount--:console.warn("User group "+e+" does not exist during user removal")}))):(o.usercount--,s.groups.forEach((e=>{t.groups.find((t=>t.id===e)).disabled--})));break;default:m.A.error(`Unknown action type in updateUserCounts: '${r}'`)}},setUserData(t,e){let{userid:s,key:r,value:i}=e;if("quota"===r){const e=(0,a.lT)(i,!0);t.users.find((t=>t.id===s))[r][r]=null!==e?e:i}else t.users.find((t=>t.id===s))[r]=i},resetUsers(t){t.users=[],t.usersOffset=0,t.disabledUsersOffset=0},setShowConfig(t,e){let{key:s,value:r}=e;h.setItem(`account_settings__${s}`,JSON.stringify(r)),t.showConfig[s]=r},setGroupSorting(e,s){const r=e.orderBy;e.orderBy=s,c.Ay.post((0,u.Jv)("/settings/users/preferences/group.sortBy"),{value:String(s)}).catch((s=>{e.orderBy=r,(0,d.Qg)(t("settings","Could not set group sorting")),m.A.error(s)}))}},A={getUsers:t=>t.users,getGroups:t=>t.groups,getSubadminGroups:t=>t.groups.filter((t=>"admin"!==t.id&&"__nc_internal_recent"!==t.id&&"disabled"!==t.id)),getSortedGroups(t){const e=[...t.groups];return t.orderBy===p.q.UserCount?e.sort(((t,e)=>{const s=t.usercount-t.disabled,r=e.usercount-e.disabled;return st.name.localeCompare(e.name)))},getGroupSorting:t=>t.orderBy,getPasswordPolicyMinLength:t=>t.minPasswordLength,getUsersOffset:t=>t.usersOffset,getUsersLimit:t=>t.usersLimit,getDisabledUsersOffset:t=>t.disabledUsersOffset,getDisabledUsersLimit:t=>t.disabledUsersLimit,getUserCount:t=>t.userCount,getShowConfig:t=>t.showConfig},I=c.Ay.CancelToken;let b=null;const N={state:f,mutations:E,getters:A,actions:{searchUsers(t,e){let{offset:s,limit:r,search:i}=e;return i="string"==typeof i?i:"",l.A.get((0,u.KT)("cloud/users/details?offset={offset}&limit={limit}&search={search}",{offset:s,limit:r,search:i})).catch((e=>{c.Ay.isCancel(e)||t.commit("API_FAILURE",e)}))},getUser:(t,e)=>l.A.get((0,u.KT)(`cloud/users/${e}`)).catch((e=>{c.Ay.isCancel(e)||t.commit("API_FAILURE",e)})),getUsers(t,e){let{offset:s,limit:r,search:i,group:o}=e;return b&&b.cancel("Operation canceled by another search request."),b=I.source(),i="string"==typeof i?i:"",i=i.replace(/in:[^\s]+/g,"").trim(),o="string"==typeof o?o:"",""!==o?l.A.get((0,u.KT)("cloud/groups/{group}/users/details?offset={offset}&limit={limit}&search={search}",{group:encodeURIComponent(o),offset:s,limit:r,search:i}),{cancelToken:b.token}).then((e=>{const s=Object.keys(e.data.ocs.data.users).length;return s>0&&t.commit("appendUsers",e.data.ocs.data.users),s})).catch((e=>{c.Ay.isCancel(e)||t.commit("API_FAILURE",e)})):l.A.get((0,u.KT)("cloud/users/details?offset={offset}&limit={limit}&search={search}",{offset:s,limit:r,search:i}),{cancelToken:b.token}).then((e=>{const s=Object.keys(e.data.ocs.data.users).length;return s>0&&t.commit("appendUsers",e.data.ocs.data.users),s})).catch((e=>{c.Ay.isCancel(e)||t.commit("API_FAILURE",e)}))},async getRecentUsers(t,e){let{offset:s,limit:r,search:i}=e;const o=(0,u.KT)("cloud/users/recent?offset={offset}&limit={limit}&search={search}",{offset:s,limit:r,search:i});try{const e=await l.A.get(o),s=Object.keys(e.data.ocs.data.users).length;return s>0&&t.commit("appendUsers",e.data.ocs.data.users),s}catch(e){t.commit("API_FAILURE",e)}},async getDisabledUsers(t,e){let{offset:s,limit:r,search:i}=e;const o=(0,u.KT)("cloud/users/disabled?offset={offset}&limit={limit}&search={search}",{offset:s,limit:r,search:i});try{const e=await l.A.get(o),s=Object.keys(e.data.ocs.data.users).length;return s>0&&(t.commit("appendUsers",e.data.ocs.data.users),t.commit("updateDisabledUsers",e.data.ocs.data.users)),s}catch(e){t.commit("API_FAILURE",e)}},getGroups(t,e){let{offset:s,limit:r,search:i}=e;i="string"==typeof i?i:"";const o=-1===r?"":`&limit=${r}`;return l.A.get((0,u.KT)("cloud/groups?offset={offset}&search={search}",{offset:s,search:i})+o).then((e=>Object.keys(e.data.ocs.data.groups).length>0&&(e.data.ocs.data.groups.forEach((function(e){t.commit("addGroup",{gid:e,displayName:e})})),!0))).catch((e=>t.commit("API_FAILURE",e)))},getUsersFromList(t,e){let{offset:s,limit:r,search:i}=e;return i="string"==typeof i?i:"",l.A.get((0,u.KT)("cloud/users/details?offset={offset}&limit={limit}&search={search}",{offset:s,limit:r,search:i})).then((e=>Object.keys(e.data.ocs.data.users).length>0&&(t.commit("appendUsers",e.data.ocs.data.users),!0))).catch((e=>t.commit("API_FAILURE",e)))},getUsersFromGroup(t,e){let{groupid:s,offset:r,limit:i}=e;return l.A.get((0,u.KT)("cloud/users/{groupId}/details?offset={offset}&limit={limit}",{groupId:encodeURIComponent(s),offset:r,limit:i})).then((e=>t.commit("getUsersFromList",e.data.ocs.data.users))).catch((e=>t.commit("API_FAILURE",e)))},getPasswordPolicyMinLength:t=>!(!(0,n.F)().password_policy||!(0,n.F)().password_policy.minLength)&&(t.commit("setPasswordPolicyMinLength",(0,n.F)().password_policy.minLength),(0,n.F)().password_policy.minLength),addGroup:(t,e)=>l.A.requireAdmin().then((s=>l.A.post((0,u.KT)("cloud/groups"),{groupid:e}).then((s=>(t.commit("addGroup",{gid:e,displayName:e}),{gid:e,displayName:e}))).catch((t=>{throw t})))).catch((s=>{throw t.commit("API_FAILURE",{gid:e,error:s}),s})),renameGroup(t,e){let{groupid:s,displayName:r}=e;return l.A.requireAdmin().then((e=>l.A.put((0,u.KT)("cloud/groups/{groupId}",{groupId:encodeURIComponent(s)}),{key:"displayname",value:r}).then((e=>(t.commit("renameGroup",{gid:s,displayName:r}),{groupid:s,displayName:r}))).catch((t=>{throw t})))).catch((e=>{throw t.commit("API_FAILURE",{groupid:s,error:e}),e}))},removeGroup:(t,e)=>l.A.requireAdmin().then((s=>l.A.delete((0,u.KT)("cloud/groups/{groupId}",{groupId:encodeURIComponent(e)})).then((s=>t.commit("removeGroup",e))).catch((t=>{throw t})))).catch((s=>t.commit("API_FAILURE",{gid:e,error:s}))),addUserGroup(t,e){let{userid:s,gid:r}=e;return l.A.requireAdmin().then((e=>l.A.post((0,u.KT)("cloud/users/{userid}/groups",{userid:s}),{groupid:r}).then((e=>t.commit("addUserGroup",{userid:s,gid:r}))).catch((t=>{throw t})))).catch((e=>t.commit("API_FAILURE",{userid:s,error:e})))},removeUserGroup(t,e){let{userid:s,gid:r}=e;return l.A.requireAdmin().then((e=>l.A.delete((0,u.KT)("cloud/users/{userid}/groups",{userid:s}),{groupid:r}).then((e=>t.commit("removeUserGroup",{userid:s,gid:r}))).catch((t=>{throw t})))).catch((e=>{throw t.commit("API_FAILURE",{userid:s,error:e}),e}))},addUserSubAdmin(t,e){let{userid:s,gid:r}=e;return l.A.requireAdmin().then((e=>l.A.post((0,u.KT)("cloud/users/{userid}/subadmins",{userid:s}),{groupid:r}).then((e=>t.commit("addUserSubAdmin",{userid:s,gid:r}))).catch((t=>{throw t})))).catch((e=>t.commit("API_FAILURE",{userid:s,error:e})))},removeUserSubAdmin(t,e){let{userid:s,gid:r}=e;return l.A.requireAdmin().then((e=>l.A.delete((0,u.KT)("cloud/users/{userid}/subadmins",{userid:s}),{groupid:r}).then((e=>t.commit("removeUserSubAdmin",{userid:s,gid:r}))).catch((t=>{throw t})))).catch((e=>t.commit("API_FAILURE",{userid:s,error:e})))},async wipeUserDevices(t,e){try{return await l.A.requireAdmin(),await l.A.post((0,u.KT)("cloud/users/{userid}/wipe",{userid:e}))}catch(s){return t.commit("API_FAILURE",{userid:e,error:s}),Promise.reject(new Error("Failed to wipe user devices"))}},deleteUser:(t,e)=>l.A.requireAdmin().then((s=>l.A.delete((0,u.KT)("cloud/users/{userid}",{userid:e})).then((s=>t.commit("deleteUser",e))).catch((t=>{throw t})))).catch((s=>t.commit("API_FAILURE",{userid:e,error:s}))),addUser(t,e){let{commit:s,dispatch:r}=t,{userid:i,password:o,displayName:n,email:a,groups:d,subadmin:c,quota:p,language:m,manager:h}=e;return l.A.requireAdmin().then((t=>l.A.post((0,u.KT)("cloud/users"),{userid:i,password:o,displayName:n,email:a,groups:d,subadmin:c,quota:p,language:m,manager:h}).then((t=>r("addUserData",i||t.data.ocs.data.id))).catch((t=>{throw t})))).catch((t=>{throw s("API_FAILURE",{userid:i,error:t}),t}))},addUserData:(t,e)=>l.A.requireAdmin().then((s=>l.A.get((0,u.KT)("cloud/users/{userid}",{userid:e})).then((e=>t.commit("addUserData",e))).catch((t=>{throw t})))).catch((s=>t.commit("API_FAILURE",{userid:e,error:s}))),enableDisableUser(t,e){let{userid:s,enabled:r=!0}=e;const i=r?"enable":"disable";return l.A.requireAdmin().then((e=>l.A.put((0,u.KT)("cloud/users/{userid}/{userStatus}",{userid:s,userStatus:i})).then((e=>t.commit("enableDisableUser",{userid:s,enabled:r}))).catch((t=>{throw t})))).catch((e=>t.commit("API_FAILURE",{userid:s,error:e})))},async setUserData(t,e){let{userid:s,key:r,value:i}=e;const o=["email","displayname","manager"];if(-1!==["email","language","quota","displayname","password","manager"].indexOf(r)&&"string"==typeof i&&(-1===o.indexOf(r)&&i.length>0||-1!==o.indexOf(r)))try{return await l.A.requireAdmin(),await l.A.put((0,u.KT)("cloud/users/{userid}",{userid:s}),{key:r,value:i}),t.commit("setUserData",{userid:s,key:r,value:i})}catch(e){t.commit("API_FAILURE",{userid:s,error:e})}return Promise.reject(new Error("Invalid request data"))},sendWelcomeMail:(t,e)=>l.A.requireAdmin().then((t=>l.A.post((0,u.KT)("cloud/users/{userid}/welcome",{userid:e})).then((t=>!0)).catch((t=>{throw t})))).catch((s=>t.commit("API_FAILURE",{userid:e,error:s})))}};var y=r(85471),L=r(32981);const v={apps:[],bundles:(0,L.C)("settings","appstoreBundles",[]),categories:[],updateCount:(0,L.C)("settings","appstoreUpdateCount",0),loading:{},gettingCategoriesPromise:null,appApiEnabled:(0,L.C)("settings","appApiEnabled",!1)},R={APPS_API_FAILURE(e,s){(0,d.Qg)(t("settings","An error occurred during the request. Unable to proceed.")+"
"+s.error.response.data.data.message,{isHTML:!0}),console.error(e,s)},initCategories(t,e){let{categories:s,updateCount:r}=e;t.categories=s,t.updateCount=r},updateCategories(t,e){t.gettingCategoriesPromise=e},setUpdateCount(t,e){t.updateCount=e},addCategory(t,e){t.categories.push(e)},appendCategories(t,e){t.categories=e},setAllApps(t,e){t.apps=e},setError(t,e){let{appId:s,error:r}=e;Array.isArray(s)||(s=[s]),s.forEach((e=>{t.apps.find((t=>t.id===e)).error=r}))},clearError(t,e){let{appId:s,error:r}=e;t.apps.find((t=>t.id===s)).error=null},enableApp(t,e){let{appId:s,groups:r}=e;const i=t.apps.find((t=>t.id===s));i.active=!0,i.groups=r,"app_api"===i.id&&(t.appApiEnabled=!0)},setInstallState(t,e){let{appId:s,canInstall:r}=e;const i=t.apps.find((t=>t.id===s));i&&(i.canInstall=!0===r)},disableApp(t,e){const s=t.apps.find((t=>t.id===e));s.active=!1,s.groups=[],s.removable&&(s.canUnInstall=!0),"app_api"===s.id&&(t.appApiEnabled=!1)},uninstallApp(t,e){t.apps.find((t=>t.id===e)).active=!1,t.apps.find((t=>t.id===e)).groups=[],t.apps.find((t=>t.id===e)).needsDownload=!0,t.apps.find((t=>t.id===e)).installed=!1,t.apps.find((t=>t.id===e)).canUnInstall=!1,t.apps.find((t=>t.id===e)).canInstall=!0,"app_api"===e&&(t.appApiEnabled=!1)},updateApp(t,e){const s=t.apps.find((t=>t.id===e)),r=s.update;s.update=null,s.version=r,t.updateCount--},resetApps(t){t.apps=[]},reset(t){t.apps=[],t.categories=[],t.updateCount=0},startLoading(t,e){Array.isArray(e)?e.forEach((e=>{y.Ay.set(t.loading,e,!0)})):y.Ay.set(t.loading,e,!0)},stopLoading(t,e){Array.isArray(e)?e.forEach((e=>{y.Ay.set(t.loading,e,!1)})):y.Ay.set(t.loading,e,!1)}},w={enableApp(e,s){let r,{appId:i,groups:o}=s;return r=Array.isArray(i)?i:[i],l.A.requireAdmin().then((s=>(e.commit("startLoading",r),e.commit("startLoading","install"),l.A.post((0,u.Jv)("settings/apps/enable"),{appIds:r,groups:o}).then((s=>(e.commit("stopLoading",r),e.commit("stopLoading","install"),r.forEach((t=>{e.commit("enableApp",{appId:t,groups:o})})),l.A.get((0,u.Jv)("apps/files/")).then((()=>{s.data.update_required&&((0,d.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(i)||((0,d.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:i}))}))))).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:i,error:t})}))))).catch((t=>e.commit("API_FAILURE",{appId:i,error:t})))},forceEnableApp(t,e){let s,{appId:r,groups:i}=e;return s=Array.isArray(r)?r:[r],l.A.requireAdmin().then((()=>(t.commit("startLoading",s),t.commit("startLoading","install"),l.A.post((0,u.Jv)("settings/apps/force"),{appId:r}).then((e=>{t.commit("setInstallState",{appId:r,canInstall:!0})})).catch((e=>{t.commit("stopLoading",s),t.commit("stopLoading","install"),t.commit("setError",{appId:s,error:e.response.data.data.message}),t.commit("APPS_API_FAILURE",{appId:r,error:e})})).finally((()=>{t.commit("stopLoading",s),t.commit("stopLoading","install")}))))).catch((e=>t.commit("API_FAILURE",{appId:r,error:e})))},disableApp(t,e){let s,{appId:r}=e;return s=Array.isArray(r)?r:[r],l.A.requireAdmin().then((e=>(t.commit("startLoading",s),l.A.post((0,u.Jv)("settings/apps/disable"),{appIds:s}).then((e=>(t.commit("stopLoading",s),s.forEach((e=>{t.commit("disableApp",e)})),!0))).catch((e=>{t.commit("stopLoading",s),t.commit("APPS_API_FAILURE",{appId:r,error:e})}))))).catch((e=>t.commit("API_FAILURE",{appId:r,error:e})))},uninstallApp(t,e){let{appId:s}=e;return l.A.requireAdmin().then((e=>(t.commit("startLoading",s),l.A.get((0,u.Jv)(`settings/apps/uninstall/${s}`)).then((e=>(t.commit("stopLoading",s),t.commit("uninstallApp",s),!0))).catch((e=>{t.commit("stopLoading",s),t.commit("APPS_API_FAILURE",{appId:s,error:e})}))))).catch((e=>t.commit("API_FAILURE",{appId:s,error:e})))},updateApp(t,e){let{appId:s}=e;return l.A.requireAdmin().then((e=>(t.commit("startLoading",s),t.commit("startLoading","install"),l.A.get((0,u.Jv)(`settings/apps/update/${s}`)).then((e=>(t.commit("stopLoading","install"),t.commit("stopLoading",s),t.commit("updateApp",s),!0))).catch((e=>{t.commit("stopLoading",s),t.commit("stopLoading","install"),t.commit("APPS_API_FAILURE",{appId:s,error:e})}))))).catch((e=>t.commit("API_FAILURE",{appId:s,error:e})))},getAllApps:t=>(t.commit("startLoading","list"),l.A.get((0,u.Jv)("settings/apps/list")).then((e=>(t.commit("setAllApps",e.data.apps),t.commit("stopLoading","list"),!0))).catch((e=>t.commit("API_FAILURE",e)))),async getCategories(t){let{shouldRefetchCategories:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e||!t.state.gettingCategoriesPromise){t.commit("startLoading","categories");try{const e=l.A.get((0,u.Jv)("settings/apps/categories"));t.commit("updateCategories",e);const s=await e;return s.data.length>0?(t.commit("appendCategories",s.data),t.commit("stopLoading","categories"),!0):(t.commit("stopLoading","categories"),!1)}catch(e){t.commit("API_FAILURE",e)}}return t.state.gettingCategoriesPromise}},O={state:v,mutations:R,getters:{isAppApiEnabled:t=>t.appApiEnabled,loading:t=>function(e){return t.loading[e]},getCategories:t=>t.categories,getAllApps:t=>t.apps,getAppBundles:t=>t.bundles,getUpdateCount:t=>t.updateCount,getCategoryById:t=>e=>t.categories.find((t=>t.id===e))},actions:w},P={serverData:(0,L.C)("settings","usersSettings",{})},_={setServerData(t,e){t.serverData=e}},U={state:P,mutations:_,getters:{getServerData:t=>t.serverData},actions:{}},T={state:{},mutations:{},getters:{},actions:{setAppConfig(t,e){let{app:s,key:r,value:i}=e;return l.A.requireAdmin().then((t=>l.A.post((0,u.KT)("apps/provisioning_api/api/v1/config/apps/{app}/{key}",{app:s,key:r}),{value:i}).catch((t=>{throw t})))).catch((e=>t.commit("API_FAILURE",{app:s,key:r,value:i,error:e})))}}},C={API_FAILURE(e,s){try{const e=s.error.response.data.ocs.meta.message;(0,d.Qg)(t("settings","An error occurred during the request. Unable to proceed.")+"
"+e,{isHTML:!0})}catch(e){(0,d.Qg)(t("settings","An error occurred during the request. Unable to proceed."))}console.error(e,s)}};let $=null;const F=()=>(null===$&&($=new i.il({modules:{users:N,apps:O,settings:U,oc:T},strict:!1,mutations:C})),$)},15916:(t,e,s)=>{"use strict";var r;s.d(e,{q:()=>r}),function(t){t[t.UserCount=1]="UserCount",t[t.GroupName=2]="GroupName"}(r||(r={}))},36620:(t,e,s)=>{"use strict";s.d(e,{A:()=>r});const r=(0,s(35947).YK)().setApp("settings").detectUser().build()},18539:(t,e,s)=>{"use strict";var r=s(85471),i=s(95353),o=s(80284),n=s(58723),a=s(53334),d=s(22378);const u=(0,r.pM)({__name:"SettingsApp",setup:t=>({__sfc:!0,NcContent:d.A})}),c=(0,s(14486).A)(u,(function(){var t=this,e=t._self._c;return e(t._self._setupProxy.NcContent,{attrs:{"app-name":"settings"}},[e("router-view",{attrs:{name:"navigation"}}),t._v(" "),e("router-view"),t._v(" "),e("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 h=new p.Ay({mode:"history",base:(0,l.Jv)(""),linkActiveClass:"active",routes:m});var g=s(8265),f=s(21777),E=s(65899);s.nc=(0,f.aV)(),r.Ay.prototype.t=a.t,r.Ay.prototype.n=a.n,r.Ay.use(E.R2),r.Ay.use(o.Ay,{defaultHtml:!1}),r.Ay.use(i.Ay);const A=(0,g.P)();(0,n.O)(A,h);const I=(0,E.Ey)();new r.Ay({router:h,store:A,pinia:I,render:t=>t(c),el:"#content"})},58723:(t,e)=>{function s(t,e){var r={name:t.name,path:t.path,hash:t.hash,query:t.query,params:t.params,fullPath:t.fullPath,meta:t.meta};return e&&(r.from=s(e)),Object.freeze(r)}e.O=function(t,e,r){var i=(r||{}).moduleName||"route";t.registerModule(i,{namespaced:!0,state:s(e.currentRoute),mutations:{ROUTE_CHANGED:function(e,r){t.state[i]=s(r.to,r.from)}}});var o,n=!1,a=t.watch((function(t){return t[i]}),(function(t){var s=t.fullPath;s!==o&&(null!=o&&(n=!0,e.push(t)),o=s)}),{sync:!0}),d=e.afterEach((function(e,s){n?n=!1:(o=e.fullPath,t.commit(i+"/ROUTE_CHANGED",{to:e,from:s}))}));return function(){null!=d&&d(),null!=a&&a(),t.unregisterModule(i)}}},35810:(t,e,s)=>{"use strict";s.d(e,{Al:()=>$,H4:()=>T,Q$:()=>C,R3:()=>N,VL:()=>b,lJ:()=>_,lT:()=>D,pt:()=>y,ur:()=>M,v7:()=>x});var r=s(35947),i=s(21777),o=s(43627),n=s(71225),a=s(63814),d=s(36117),u=s(44719),c=s(82680),p=s(53334),l=s(380),m=s(65606);const h=(0,r.YK)().setApp("@nextcloud/files").detectUser().build();var g=(t=>(t[t.NONE=0]="NONE",t[t.CREATE=4]="CREATE",t[t.READ=1]="READ",t[t.UPDATE=2]="UPDATE",t[t.DELETE=8]="DELETE",t[t.SHARE=16]="SHARE",t[t.ALL=31]="ALL",t))(g||{});const f=["d:getcontentlength","d:getcontenttype","d:getetag","d:getlastmodified","d:creationdate","d:displayname","d:quota-available-bytes","d:resourcetype","nc:has-preview","nc:is-encrypted","nc:mount-type","oc:comments-unread","oc:favorite","oc:fileid","oc:owner-display-name","oc:owner-id","oc:permissions","oc:size"],E={d:"DAV:",nc:"http://nextcloud.org/ns",oc:"http://owncloud.org/ns",ocs:"http://open-collaboration-services.org/ns"},A=function(){return void 0===window._nc_dav_properties&&(window._nc_dav_properties=[...f]),window._nc_dav_properties.map((t=>`<${t} />`)).join(" ")},I=function(){return void 0===window._nc_dav_namespaces&&(window._nc_dav_namespaces={...E}),Object.keys(window._nc_dav_namespaces).map((t=>`xmlns:${t}="${window._nc_dav_namespaces?.[t]}"`)).join(" ")},b=function(){return`\n\t\t\n\t\t\t\n\t\t\t\t${A()}\n\t\t\t\n\t\t`},N=function(t){return`\n\n\t\n\t\t\n\t\t\t\n\t\t\t\t${A()}\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t/files/${(0,i.HW)()?.uid}/\n\t\t\t\tinfinity\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\thttpd/unix-directory\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t0\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t${t}\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t100\n\t\t\t0\n\t\t\n\t\n`};var y=(t=>(t.Folder="folder",t.File="file",t))(y||{});const L=function(t,e){return null!==t.match(e)},v=(t,e)=>{if(t.id&&"number"!=typeof t.id)throw new Error("Invalid id type of value");if(!t.source)throw new Error("Missing mandatory source");try{new URL(t.source)}catch(t){throw new Error("Invalid source format, source must be a valid URL")}if(!t.source.startsWith("http"))throw new Error("Invalid source format, only http(s) is supported");if(t.displayname&&"string"!=typeof t.displayname)throw new Error("Invalid displayname type");if(t.mtime&&!(t.mtime instanceof Date))throw new Error("Invalid mtime type");if(t.crtime&&!(t.crtime instanceof Date))throw new Error("Invalid crtime type");if(!t.mime||"string"!=typeof t.mime||!t.mime.match(/^[-\w.]+\/[-+\w.]+$/gi))throw new Error("Missing or invalid mandatory mime");if("size"in t&&"number"!=typeof t.size&&void 0!==t.size)throw new Error("Invalid size type");if("permissions"in t&&void 0!==t.permissions&&!("number"==typeof t.permissions&&t.permissions>=g.NONE&&t.permissions<=g.ALL))throw new Error("Invalid permissions");if(t.owner&&null!==t.owner&&"string"!=typeof t.owner)throw new Error("Invalid owner type");if(t.attributes&&"object"!=typeof t.attributes)throw new Error("Invalid attributes type");if(t.root&&"string"!=typeof t.root)throw new Error("Invalid root type");if(t.root&&!t.root.startsWith("/"))throw new Error("Root must start with a leading slash");if(t.root&&!t.source.includes(t.root))throw new Error("Root must be part of the source");if(t.root&&L(t.source,e)){const s=t.source.match(e)[0];if(!t.source.includes((0,o.join)(s,t.root)))throw new Error("The root must be relative to the service. e.g /files/emma")}if(t.status&&!Object.values(R).includes(t.status))throw new Error("Status must be a valid NodeStatus")};var R=(t=>(t.NEW="new",t.FAILED="failed",t.LOADING="loading",t.LOCKED="locked",t))(R||{});class w{_data;_attributes;_knownDavService=/(remote|public)\.php\/(web)?dav/i;readonlyAttributes=Object.entries(Object.getOwnPropertyDescriptors(w.prototype)).filter((t=>"function"==typeof t[1].get&&"__proto__"!==t[0])).map((t=>t[0]));handler={set:(t,e,s)=>!this.readonlyAttributes.includes(e)&&Reflect.set(t,e,s),deleteProperty:(t,e)=>!this.readonlyAttributes.includes(e)&&Reflect.deleteProperty(t,e),get:(t,e,s)=>this.readonlyAttributes.includes(e)?(h.warn(`Accessing "Node.attributes.${e}" is deprecated, access it directly on the Node instance.`),Reflect.get(this,e)):Reflect.get(t,e,s)};constructor(t,e){v(t,e||this._knownDavService),this._data={displayname:t.attributes?.displayname,...t,attributes:{}},this._attributes=new Proxy(this._data.attributes,this.handler),this.update(t.attributes??{}),e&&(this._knownDavService=e)}get source(){return this._data.source.replace(/\/$/i,"")}get encodedSource(){const{origin:t}=new URL(this.source);return t+(0,n.O0)(this.source.slice(t.length))}get basename(){return(0,o.basename)(this.source)}get displayname(){return this._data.displayname||this.basename}set displayname(t){this._data.displayname=t}get extension(){return(0,o.extname)(this.source)}get dirname(){if(this.root){let t=this.source;this.isDavRessource&&(t=t.split(this._knownDavService).pop());const e=t.indexOf(this.root),s=this.root.replace(/\/$/,"");return(0,o.dirname)(t.slice(e+s.length)||"/")}const t=new URL(this.source);return(0,o.dirname)(t.pathname)}get mime(){return this._data.mime}get mtime(){return this._data.mtime}set mtime(t){this._data.mtime=t}get crtime(){return this._data.crtime}get size(){return this._data.size}set size(t){this.updateMtime(),this._data.size=t}get attributes(){return this._attributes}get permissions(){return null!==this.owner||this.isDavRessource?void 0!==this._data.permissions?this._data.permissions:g.NONE:g.READ}set permissions(t){this.updateMtime(),this._data.permissions=t}get owner(){return this.isDavRessource?this._data.owner:null}get isDavRessource(){return L(this.source,this._knownDavService)}get root(){return this._data.root?this._data.root.replace(/^(.+)\/$/,"$1"):this.isDavRessource&&(0,o.dirname)(this.source).split(this._knownDavService).pop()||null}get path(){if(this.root){let t=this.source;this.isDavRessource&&(t=t.split(this._knownDavService).pop());const e=t.indexOf(this.root),s=this.root.replace(/\/$/,"");return t.slice(e+s.length)||"/"}return(this.dirname+"/"+this.basename).replace(/\/\//g,"/")}get fileid(){return this._data?.id}get status(){return this._data?.status}set status(t){this._data.status=t}move(t){v({...this._data,source:t},this._knownDavService);const e=this.basename;this._data.source=t,this.displayname===e&&this.basename!==e&&(this.displayname=this.basename),this.updateMtime()}rename(t){if(t.includes("/"))throw new Error("Invalid basename");this.move((0,o.dirname)(this.source)+"/"+t)}updateMtime(){this._data.mtime&&(this._data.mtime=new Date)}update(t){for(const[e,s]of Object.entries(t))try{void 0===s?delete this.attributes[e]:this.attributes[e]=s}catch(t){if(t instanceof TypeError)continue;throw t}}}class O extends w{get type(){return y.File}}class P extends w{constructor(t){super({...t,mime:"httpd/unix-directory"})}get type(){return y.Folder}get extension(){return null}get mime(){return"httpd/unix-directory"}}const _=(0,c.f)()?`/files/${(0,c.G)()}`:`/files/${(0,i.HW)()?.uid}`,U=function(){const t=(0,a.dC)("dav");return(0,c.f)()?t.replace("remote.php","public.php"):t}(),T=function(t=U,e={}){const s=(0,u.UU)(t,{headers:e});function r(t){s.setHeaders({...e,"X-Requested-With":"XMLHttpRequest",requesttoken:t??""})}return(0,i.zo)(r),r((0,i.do)()),(0,u.Gu)().patch("fetch",((t,e)=>{const s=e.headers;return s?.method&&(e.method=s.method,delete s.method),fetch(t,e)})),s},C=(t,e="/",s=_)=>{const r=new AbortController;return new d.CancelablePromise((async(i,o,n)=>{n((()=>r.abort()));try{i((await t.getDirectoryContents(`${s}${e}`,{signal:r.signal,details:!0,data:`\n\t\t\n\t\t\t\n\t\t\t\t${A()}\n\t\t\t\n\t\t\t\n\t\t\t\t1\n\t\t\t\n\t\t`,headers:{method:"REPORT"},includeSelf:!0})).data.filter((t=>t.filename!==e)).map((t=>$(t,s))))}catch(t){o(t)}}))},$=function(t,e=_,s=U){let r=(0,i.HW)()?.uid;if((0,c.f)())r=r??"anonymous";else if(!r)throw new Error("No user id found");const o=t.props,n=function(t=""){let e=g.NONE;return t?((t.includes("C")||t.includes("K"))&&(e|=g.CREATE),t.includes("G")&&(e|=g.READ),(t.includes("W")||t.includes("N")||t.includes("V"))&&(e|=g.UPDATE),t.includes("D")&&(e|=g.DELETE),t.includes("R")&&(e|=g.SHARE),e):e}(o?.permissions),a=String(o?.["owner-id"]||r),d=o.fileid||0,u={id:d,source:`${s}${t.filename}`,mtime:new Date(Date.parse(t.lastmod)),mime:t.mime||"application/octet-stream",displayname:void 0!==o.displayname?String(o.displayname):void 0,size:o?.size||Number.parseInt(o.getcontentlength||"0"),status:d<0?R.FAILED:void 0,permissions:n,owner:a,root:e,attributes:{...t,...o,hasPreview:o?.["has-preview"]}};return delete u.attributes?.props,"file"===t.type?new O(u):new P(u)};Error;const F=["B","KB","MB","GB","TB","PB"],S=["B","KiB","MiB","GiB","TiB","PiB"];function x(t,e=!1,s=!1,r=!1){s=s&&!r,"string"==typeof t&&(t=Number(t));let i=t>0?Math.floor(Math.log(t)/Math.log(r?1e3:1024)):0;i=Math.min((s?S.length:F.length)-1,i);const o=s?S[i]:F[i];let n=(t/Math.pow(r?1e3:1024,i)).toFixed(1);return!0===e&&0===i?("0.0"!==n?"< 1 ":"0 ")+(s?S[1]:F[1]):(n=i<2?parseFloat(n).toFixed(0):parseFloat(n).toLocaleString((0,p.lO)()),n+" "+o)}function D(t,e=!1){try{t=`${t}`.toLocaleLowerCase().replaceAll(/\s+/g,"").replaceAll(",",".")}catch(t){return null}const s=t.match(/^([0-9]*(\.[0-9]*)?)([kmgtp]?)(i?)b?$/);if(null===s||"."===s[1]||""===s[1])return null;const r=`${s[1]}`,i="i"===s[4]||e?1024:1e3;return Math.round(Number.parseFloat(r)*i**{"":0,k:1,m:2,g:3,t:4,p:5,e:6}[s[3]])}function G(t){return t instanceof Date?t.toISOString():String(t)}function M(t,e={}){const s={sortingMode:"basename",sortingOrder:"asc",...e};return function(t,e,s){s=s??[];const r=(e=e??[t=>t]).map(((t,e)=>"asc"===(s[e]??"asc")?1:-1)),i=Intl.Collator([(0,p.Z0)(),(0,p.lO)()],{numeric:!0,usage:"sort"});return[...t].sort(((t,s)=>{for(const[o,n]of e.entries()){const e=i.compare(G(n(t)),G(n(s)));if(0!==e)return e*r[o]}return 0}))}(t,[...s.sortFavoritesFirst?[t=>1!==t.attributes?.favorite]:[],...s.sortFoldersFirst?[t=>"folder"!==t.type]:[],..."basename"!==s.sortingMode?[t=>t[s.sortingMode]]:[],t=>{return(e=t.attributes?.displayname||t.basename).lastIndexOf(".")>0?e.slice(0,e.lastIndexOf(".")):e;var e},t=>t.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 j={};!function(t){const e=":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="["+e+"]["+e+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",r=new RegExp("^"+s+"$");t.isExist=function(t){return void 0!==t},t.isEmptyObject=function(t){return 0===Object.keys(t).length},t.merge=function(t,e,s){if(e){const r=Object.keys(e),i=r.length;for(let o=0;o!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,s){return t}};k.buildOptions=function(t){return Object.assign({},B,t)},k.defaultOptions=B,!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 q={};function X(t,e,s){let r;const i={};for(let o=0;o0&&(i[e.textNodeName]=r):void 0!==r&&(i[e.textNodeName]=r),i}function V(t){const e=Object.keys(t);for(let t=0;t`,o=!1;continue}if(d===e.commentPropName){i+=r+`\x3c!--${a[d][0][e.textNodeName]}--\x3e`,o=!0;continue}if("?"===d[0]){const t=Y(a[":@"],e),s="?xml"===d?"":r;let n=a[d][0][e.textNodeName];n=0!==n.length?" "+n:"",i+=s+`<${d}${n}${t}?>`,o=!0;continue}let c=r;""!==c&&(c+=e.indentBy);const p=r+`<${d}${Y(a[":@"],e)}`,l=W(a[d],e,u,c);-1!==e.unpairedTags.indexOf(d)?e.suppressUnpairedNode?i+=p+">":i+=p+"/>":l&&0!==l.length||!e.suppressEmptyNode?l&&l.endsWith(">")?i+=p+`>${l}${r}`:(i+=p+">",l&&""!==r&&(l.includes("/>")||l.includes("`):i+=p+"/>",o=!0}return i}function Q(t){const e=Object.keys(t);for(let s=0;s0&&e.processEntities)for(let s=0;s0&&(s="\n"),W(t,e,"",s)},st={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function rt(t){this.options=Object.assign({},st,t),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=nt),this.processTextOrObjNode=it,this.options.format?(this.indentate=ot,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function it(t,e,s){const r=this.j2x(t,s+1);return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,r.attrStr,s):this.buildObjectNode(r.val,e,r.attrStr,s)}function ot(t){return this.options.indentBy.repeat(t)}function nt(t){return!(!t.startsWith(this.options.attributeNamePrefix)||t===this.options.textNodeName)&&t.substr(this.attrPrefixLen)}rt.prototype.build=function(t){return this.options.preserveOrder?et(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0).val)},rt.prototype.j2x=function(t,e){let s="",r="";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i))if(void 0===t[i])this.isAttribute(i)&&(r+="");else if(null===t[i])this.isAttribute(i)?r+="":"?"===i[0]?r+=this.indentate(e)+"<"+i+"?"+this.tagEndChar:r+=this.indentate(e)+"<"+i+"/"+this.tagEndChar;else if(t[i]instanceof Date)r+=this.buildTextValNode(t[i],i,"",e);else if("object"!=typeof t[i]){const o=this.isAttribute(i);if(o)s+=this.buildAttrPairStr(o,""+t[i]);else if(i===this.options.textNodeName){let e=this.options.tagValueProcessor(i,""+t[i]);r+=this.replaceEntitiesValue(e)}else r+=this.buildTextValNode(t[i],i,"",e)}else if(Array.isArray(t[i])){const s=t[i].length;let o="",n="";for(let a=0;a"+t+i}},rt.prototype.closeTag=function(t){let e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(!1!==this.options.commentPropName&&e===this.options.commentPropName)return this.indentate(r)+`\x3c!--${t}--\x3e`+this.newLine;if("?"===e[0])return this.indentate(r)+"<"+e+s+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(e,t);return i=this.replaceEntitiesValue(i),""===i?this.indentate(r)+"<"+e+s+this.closeTag(e)+this.tagEndChar:this.indentate(r)+"<"+e+s+">"+i+"0&&this.options.processEntities)for(let e=0;econsole.error("SEMVER",...t):()=>{},dt={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},ut={exports:{}};!function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=dt,o=at,n=(e=t.exports={}).re=[],a=e.safeRe=[],d=e.src=[],u=e.t={};let c=0;const p="[a-zA-Z0-9-]",l=[["\\s",1],["\\d",i],[p,r]],m=(t,e,s)=>{const r=(t=>{for(const[e,s]of l)t=t.split(`${e}*`).join(`${e}{0,${s}}`).split(`${e}+`).join(`${e}{1,${s}}`);return t})(e),i=c++;o(t,i,e),u[t]=i,d[i]=e,n[i]=new RegExp(e,s?"g":void 0),a[i]=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",`(${d[u.NUMERICIDENTIFIER]})\\.(${d[u.NUMERICIDENTIFIER]})\\.(${d[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${d[u.NUMERICIDENTIFIERLOOSE]})\\.(${d[u.NUMERICIDENTIFIERLOOSE]})\\.(${d[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${d[u.NUMERICIDENTIFIER]}|${d[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${d[u.NUMERICIDENTIFIERLOOSE]}|${d[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${d[u.PRERELEASEIDENTIFIER]}(?:\\.${d[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${d[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${p}+`),m("BUILD",`(?:\\+(${d[u.BUILDIDENTIFIER]}(?:\\.${d[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${d[u.MAINVERSION]}${d[u.PRERELEASE]}?${d[u.BUILD]}?`),m("FULL",`^${d[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${d[u.MAINVERSIONLOOSE]}${d[u.PRERELEASELOOSE]}?${d[u.BUILD]}?`),m("LOOSE",`^${d[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${d[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${d[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${d[u.XRANGEIDENTIFIER]})(?:\\.(${d[u.XRANGEIDENTIFIER]})(?:\\.(${d[u.XRANGEIDENTIFIER]})(?:${d[u.PRERELEASE]})?${d[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${d[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[u.XRANGEIDENTIFIERLOOSE]})(?:${d[u.PRERELEASELOOSE]})?${d[u.BUILD]}?)?)?`),m("XRANGE",`^${d[u.GTLT]}\\s*${d[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${d[u.GTLT]}\\s*${d[u.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?`),m("COERCE",`${d[u.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",d[u.COERCEPLAIN]+`(?:${d[u.PRERELEASE]})?(?:${d[u.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",d[u.COERCE],!0),m("COERCERTLFULL",d[u.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${d[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",m("TILDE",`^${d[u.LONETILDE]}${d[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${d[u.LONETILDE]}${d[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${d[u.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",m("CARET",`^${d[u.LONECARET]}${d[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${d[u.LONECARET]}${d[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${d[u.GTLT]}\\s*(${d[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${d[u.GTLT]}\\s*(${d[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${d[u.GTLT]}\\s*(${d[u.LOOSEPLAIN]}|${d[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${d[u.XRANGEPLAIN]})\\s+-\\s+(${d[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${d[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${d[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(ut,ut.exports);var ct=ut.exports;Object.freeze({loose:!0}),Object.freeze({});const pt=/^[0-9]+$/,lt=(t,e)=>{const s=pt.test(t),r=pt.test(e);return s&&r&&(t=+t,e=+e),t===e?0:s&&!r?-1:r&&!s?1:tlt(e,t)};const{MAX_LENGTH:ht,MAX_SAFE_INTEGER:gt}=dt,{safeRe:ft,t:Et}=ct,{compareIdentifiers:At}=mt;l.m}},o={};function n(t){var e=o[t];if(void 0!==e)return e.exports;var s=o[t]={id:t,loaded:!1,exports:{}};return i[t].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}n.m=i,e=[],n.O=(t,s,r,i)=>{if(!s){var o=1/0;for(c=0;c=i)&&Object.keys(n.O).every((t=>n.O[t](s[d])))?s.splice(d--,1):(a=!1,i0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[s,r,i]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var s in e)n.o(e,s)&&!n.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},n.f={},n.e=t=>Promise.all(Object.keys(n.f).reduce(((e,s)=>(n.f[s](t,e),e)),[])),n.u=t=>(({3239:"settings-users",4529:"settings-apps-view"}[t]||t)+"-"+t+".js?v="+{3239:"faa644febbbec24aa909",3303:"8cf209f1ac18a557bf69",4529:"fafe889aab91c2d88949",5706:"3153330af47fc26a725a",6127:"94ece8c4b3588e75f3c1",7265:"9c12ff5b3777606cd886",8737:"50204d201c48303c2761",9972:"b926d5637322b410ea9e"}[t]),n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s={},r="nextcloud:",n.l=(t,e,i,o)=>{if(s[t])s[t].push(e);else{var a,d;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c{a.onerror=a.onload=null,clearTimeout(m);var i=s[t];if(delete s[t],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((t=>t(r))),e)return e(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),d&&document.head.appendChild(a)}},n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n.j=2689,(()=>{var t;n.g.importScripts&&(t=n.g.location+"");var e=n.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var s=e.getElementsByTagName("script");if(s.length)for(var r=s.length-1;r>-1&&(!t||!/^http(s?):/.test(t));)t=s[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=t})(),(()=>{n.b=document.baseURI||self.location.href;var t={2689:0};n.f.j=(e,s)=>{var r=n.o(t,e)?t[e]:void 0;if(0!==r)if(r)s.push(r[2]);else{var i=new Promise(((s,i)=>r=t[e]=[s,i]));s.push(r[2]=i);var o=n.p+n.u(e),a=new Error;n.l(o,(s=>{if(n.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var i=s&&("load"===s.type?"missing":s.type),o=s&&s.target&&s.target.src;a.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,r[1](a)}}),"chunk-"+e,e)}},n.O.j=e=>0===t[e];var e=(e,s)=>{var r,i,o=s[0],a=s[1],d=s[2],u=0;if(o.some((e=>0!==t[e]))){for(r in a)n.o(a,r)&&(n.m[r]=a[r]);if(d)var c=d(n)}for(e&&e(s);un(18539)));a=n.O(a)})(); //# sourceMappingURL=settings-vue-settings-apps-users-management.js.map?v=da80cc035ec8611ef2cf