12 |
- (()=>{var e,s,r,i={31755:(e,s,r)=>{"use strict";r.d(s,{P:()=>j});var i=r(85471),o=r(95353),n=r(59097),a=r(87485),d=r(35810),c=r(85168),u=r(63814),p=r(65043),l=r(15916),m=r(56760);r(51257);const h=function(t){return t.replace(/\/$/,"")},g=()=>(0,m.C)(),f=(t,e)=>p.Ay.get(h(t),e),E=(t,e)=>p.Ay.post(h(t),e),A=(t,e)=>p.Ay.put(h(t),e),I=(t,e)=>p.Ay.delete(h(t),{params:e});var b=r(36620);const N=(0,n.c0)("settings").persist(!0).build(),y={id:"",name:"",usercount:0,disabled:0,canAdd:!0,canRemove:!0},L={users:[],groups:[],orderBy:l.q.UserCount,minPasswordLength:0,usersOffset:0,usersLimit:25,disabledUsersOffset:0,disabledUsersLimit:25,userCount:0,showConfig:{showStoragePath:"true"===N.getItem("account_settings__showStoragePath"),showUserBackend:"true"===N.getItem("account_settings__showUserBackend"),showLastLogin:"true"===N.getItem("account_settings__showLastLogin"),showNewUserForm:"true"===N.getItem("account_settings__showNewUserForm"),showLanguages:"true"===N.getItem("account_settings__showLanguages")}},v={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({},y,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({},y,{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:b.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,d.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;N.setItem(`account_settings__${s}`,JSON.stringify(r)),t.showConfig[s]=r},setGroupSorting(e,s){const r=e.orderBy;e.orderBy=s,p.Ay.post((0,u.Jv)("/settings/users/preferences/group.sortBy"),{value:String(s)}).catch((s=>{e.orderBy=r,(0,c.Qg)(t("settings","Could not set group sorting")),b.A.error(s)}))}},R={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===l.q.UserCount?e.sort(((t,e)=>{const s=t.usercount-t.disabled,r=e.usercount-e.disabled;return s<r?1:r<s?-1:t.name.localeCompare(e.name)})):e.sort(((t,e)=>t.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},w=p.Ay.CancelToken;let O=null;const P={state:L,mutations:v,getters:R,actions:{searchUsers(t,e){let{offset:s,limit:r,search:i}=e;return i="string"==typeof i?i:"",f((0,u.KT)("cloud/users/details?offset={offset}&limit={limit}&search={search}",{offset:s,limit:r,search:i})).catch((e=>{p.Ay.isCancel(e)||t.commit("API_FAILURE",e)}))},getUser:(t,e)=>f((0,u.KT)(`cloud/users/${e}`)).catch((e=>{p.Ay.isCancel(e)||t.commit("API_FAILURE",e)})),getUsers(t,e){let{offset:s,limit:r,search:i,group:o}=e;return O&&O.cancel("Operation canceled by another search request."),O=w.source(),i="string"==typeof i?i:"",i=i.replace(/in:[^\s]+/g,"").trim(),o="string"==typeof o?o:"",""!==o?f((0,u.KT)("cloud/groups/{group}/users/details?offset={offset}&limit={limit}&search={search}",{group:encodeURIComponent(o),offset:s,limit:r,search:i}),{cancelToken:O.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=>{p.Ay.isCancel(e)||t.commit("API_FAILURE",e)})):f((0,u.KT)("cloud/users/details?offset={offset}&limit={limit}&search={search}",{offset:s,limit:r,search:i}),{cancelToken:O.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=>{p.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 f(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 f(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 f((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:"",f((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 f((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,a.F)().password_policy||!(0,a.F)().password_policy.minLength)&&(t.commit("setPasswordPolicyMinLength",(0,a.F)().password_policy.minLength),(0,a.F)().password_policy.minLength),addGroup:(t,e)=>g().then((s=>E((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 g().then((e=>A((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)=>g().then((s=>I((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 g().then((e=>E((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 g().then((e=>I((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 g().then((e=>E((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 g().then((e=>I((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 g(),await E((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)=>g().then((s=>I((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:l,manager:m}=e;return g().then((t=>E((0,u.KT)("cloud/users"),{userid:i,password:o,displayName:n,email:a,groups:d,subadmin:c,quota:p,language:l,manager:m}).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)=>g().then((s=>f((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 g().then((e=>A((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 g(),await A((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)=>g().then((t=>E((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 _=r(32981);const U={apps:[],bundles:(0,_.C)("settings","appstoreBundles",[]),categories:[],updateCount:(0,_.C)("settings","appstoreUpdateCount",0),loading:{},gettingCategoriesPromise:null},T={APPS_API_FAILURE(e,s){(0,c.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(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},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)},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},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=>{i.Ay.set(t.loading,e,!0)})):i.Ay.set(t.loading,e,!0)},stopLoading(t,e){Array.isArray(e)?e.forEach((e=>{i.Ay.set(t.loading,e,!1)})):i.Ay.set(t.loading,e,!1)}},C={enableApp(e,s){let r,{appId:i,groups:o}=s;return r=Array.isArray(i)?i:[i],g().then((s=>(e.commit("startLoading",r),e.commit("startLoading","install"),E((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})})),f((0,u.Jv)("apps/files/")).then((()=>{s.data.update_required&&((0,c.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,c.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],g().then((()=>(t.commit("startLoading",s),t.commit("startLoading","install"),E((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],g().then((e=>(t.commit("startLoading",s),E((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 g().then((e=>(t.commit("startLoading",s),f((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 g().then((e=>(t.commit("startLoading",s),t.commit("startLoading","install"),f((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"),f((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=f((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}},$={state:U,mutations:T,getters:{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:C},F={serverData:(0,_.C)("settings","usersSettings",{})},S={setServerData(t,e){t.serverData=e}},x={state:F,mutations:S,getters:{getServerData:t=>t.serverData},actions:{}},D={state:{},mutations:{},getters:{},actions:{setAppConfig(t,e){let{app:s,key:r,value:i}=e;return g().then((t=>E((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})))}}};i.Ay.use(o.Ay);const G={API_FAILURE(e,s){try{const e=s.error.response.data.ocs.meta.message;(0,c.Qg)(t("settings","An error occurred during the request. Unable to proceed.")+"<br>"+e,{isHTML:!0})}catch(e){(0,c.Qg)(t("settings","An error occurred during the request. Unable to proceed."))}console.error(e,s)}};let M=null;const j=()=>(null===M&&(M=new o.il({modules:{users:P,apps:$,settings:x,oc:D},strict:!1,mutations:G})),M)},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(80284),o=s(58723),n=s(53334),a=s(22378);const d=(0,r.pM)({__name:"SettingsApp",setup:t=>({__sfc:!0,NcContent:a.A})}),c=(0,s(14486).A)(d,(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 u=s(40173),p=s(63814);const l=[{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,91114)),navigation:()=>Promise.all([s.e(4208),s.e(7265),s.e(4529)]).then(s.bind(s,1615)),sidebar:()=>Promise.all([s.e(4208),s.e(7265),s.e(4529)]).then(s.bind(s,81460))},children:[{path:":category",name:"apps-category",children:[{path:":id",name:"apps-details"}]}]}];r.Ay.use(u.Ay);const m=new u.Ay({mode:"history",base:(0,p.Jv)(""),linkActiveClass:"active",routes:l});var h=s(31755),g=s(21777),f=s(65899);s.nc=(0,g.aV)();const E=(0,h.P)();(0,o.O)(E,m),r.Ay.prototype.t=n.t,r.Ay.prototype.n=n.n,r.Ay.use(f.R2),r.Ay.use(i.Ay,{defaultHtml:!1});const A=(0,f.Ey)();new r.Ay({router:m,store:E,pinia:A,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),c=s(44719),u=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`<?xml version="1.0"?>\n\t\t<d:propfind ${I()}>\n\t\t\t<d:prop>\n\t\t\t\t${A()}\n\t\t\t</d:prop>\n\t\t</d:propfind>`},N=function(t){return`<?xml version="1.0" encoding="UTF-8"?>\n<d:searchrequest ${I()}\n\txmlns:ns="https://github.com/icewind1991/SearchDAV/ns">\n\t<d:basicsearch>\n\t\t<d:select>\n\t\t\t<d:prop>\n\t\t\t\t${A()}\n\t\t\t</d:prop>\n\t\t</d:select>\n\t\t<d:from>\n\t\t\t<d:scope>\n\t\t\t\t<d:href>/files/${(0,i.HW)()?.uid}/</d:href>\n\t\t\t\t<d:depth>infinity</d:depth>\n\t\t\t</d:scope>\n\t\t</d:from>\n\t\t<d:where>\n\t\t\t<d:and>\n\t\t\t\t<d:or>\n\t\t\t\t\t<d:not>\n\t\t\t\t\t\t<d:eq>\n\t\t\t\t\t\t\t<d:prop>\n\t\t\t\t\t\t\t\t<d:getcontenttype/>\n\t\t\t\t\t\t\t</d:prop>\n\t\t\t\t\t\t\t<d:literal>httpd/unix-directory</d:literal>\n\t\t\t\t\t\t</d:eq>\n\t\t\t\t\t</d:not>\n\t\t\t\t\t<d:eq>\n\t\t\t\t\t\t<d:prop>\n\t\t\t\t\t\t\t<oc:size/>\n\t\t\t\t\t\t</d:prop>\n\t\t\t\t\t\t<d:literal>0</d:literal>\n\t\t\t\t\t</d:eq>\n\t\t\t\t</d:or>\n\t\t\t\t<d:gt>\n\t\t\t\t\t<d:prop>\n\t\t\t\t\t\t<d:getlastmodified/>\n\t\t\t\t\t</d:prop>\n\t\t\t\t\t<d:literal>${t}</d:literal>\n\t\t\t\t</d:gt>\n\t\t\t</d:and>\n\t\t</d:where>\n\t\t<d:orderby>\n\t\t\t<d:order>\n\t\t\t\t<d:prop>\n\t\t\t\t\t<d:getlastmodified/>\n\t\t\t\t</d:prop>\n\t\t\t\t<d:descending/>\n\t\t\t</d:order>\n\t\t</d:orderby>\n\t\t<d:limit>\n\t\t\t<d:nresults>100</d:nresults>\n\t\t\t<ns:firstresult>0</ns:firstresult>\n\t\t</d:limit>\n\t</d:basicsearch>\n</d:searchrequest>`};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,u.f)()?`/files/${(0,u.G)()}`:`/files/${(0,i.HW)()?.uid}`,U=function(){const t=(0,a.dC)("dav");return(0,u.f)()?t.replace("remote.php","public.php"):t}(),T=function(t=U,e={}){const s=(0,c.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,c.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:`<?xml version="1.0"?>\n\t\t<oc:filter-files ${I()}>\n\t\t\t<d:prop>\n\t\t\t\t${A()}\n\t\t\t</d:prop>\n\t\t\t<oc:filter-rules>\n\t\t\t\t<oc:favorite>1</oc:favorite>\n\t\t\t</oc:filter-rules>\n\t\t</oc:filter-files>`,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,u.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,c={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 c.attributes?.props,"file"===t.type?new O(c):new P(c)};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<i;o++)t[r[o]]="strict"===s?[e[r[o]]]:e[r[o]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(t){return!(null==r.exec(t))},t.getAllMatches=function(t,e){const s=[];let r=e.exec(t);for(;r;){const i=[];i.startIndex=e.lastIndex-r[0].length;const o=r.length;for(let t=0;t<o;t++)i.push(r[t]);s.push(i),r=e.exec(t)}return s},t.nameRegexp=s}(j);new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");var k={};const B={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(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!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 X={};function V(t,e,s){let r;const i={};for(let o=0;o<t.length;o++){const n=t[o],a=K(n);let d="";if(d=void 0===s?a:s+"."+a,a===e.textNodeName)void 0===r?r=n[a]:r+=""+n[a];else{if(void 0===a)continue;if(n[a]){let t=V(n[a],e,d);const s=H(t,e);n[":@"]?q(t,n[":@"],d,e):1!==Object.keys(t).length||void 0===t[e.textNodeName]||e.alwaysCreateTextNode?0===Object.keys(t).length&&(e.alwaysCreateTextNode?t[e.textNodeName]="":t=""):t=t[e.textNodeName],void 0!==i[a]&&i.hasOwnProperty(a)?(Array.isArray(i[a])||(i[a]=[i[a]]),i[a].push(t)):e.isArray(a,d,s)?i[a]=[t]:i[a]=t}}}return"string"==typeof r?r.length>0&&(i[e.textNodeName]=r):void 0!==r&&(i[e.textNodeName]=r),i}function K(t){const e=Object.keys(t);for(let t=0;t<e.length;t++){const s=e[t];if(":@"!==s)return s}}function q(t,e,s,r){if(e){const i=Object.keys(e),o=i.length;for(let n=0;n<o;n++){const o=i[n];r.isArray(o,s+"."+o,!0,!0)?t[o]=[e[o]]:t[o]=e[o]}}}function H(t,e){const{textNodeName:s}=e,r=Object.keys(t).length;return 0===r||!(1!==r||!t[s]&&"boolean"!=typeof t[s]&&0!==t[s])}X.prettify=function(t,e){return V(t,e)};const{buildOptions:z}=k,{prettify:J}=X;function W(t,e,s,r){let i="",o=!1;for(let n=0;n<t.length;n++){const a=t[n],d=Q(a);if(void 0===d)continue;let c="";if(c=0===s.length?d:`${s}.${d}`,d===e.textNodeName){let t=a[d];Z(c,e)||(t=e.tagValueProcessor(d,t),t=tt(t,e)),o&&(i+=r),i+=t,o=!1;continue}if(d===e.cdataPropName){o&&(i+=r),i+=`<![CDATA[${a[d][0][e.textNodeName]}]]>`,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 u=r;""!==u&&(u+=e.indentBy);const p=r+`<${d}${Y(a[":@"],e)}`,l=W(a[d],e,c,u);-1!==e.unpairedTags.indexOf(d)?e.suppressUnpairedNode?i+=p+">":i+=p+"/>":l&&0!==l.length||!e.suppressEmptyNode?l&&l.endsWith(">")?i+=p+`>${l}${r}</${d}>`:(i+=p+">",l&&""!==r&&(l.includes("/>")||l.includes("</"))?i+=r+e.indentBy+l+r:i+=l,i+=`</${d}>`):i+=p+"/>",o=!0}return i}function Q(t){const e=Object.keys(t);for(let s=0;s<e.length;s++){const r=e[s];if(t.hasOwnProperty(r)&&":@"!==r)return r}}function Y(t,e){let s="";if(t&&!e.ignoreAttributes)for(let r in t){if(!t.hasOwnProperty(r))continue;let i=e.attributeValueProcessor(r,t[r]);i=tt(i,e),!0===i&&e.suppressBooleanAttributes?s+=` ${r.substr(e.attributeNamePrefix.length)}`:s+=` ${r.substr(e.attributeNamePrefix.length)}="${i}"`}return s}function Z(t,e){let s=(t=t.substr(0,t.length-e.textNodeName.length-1)).substr(t.lastIndexOf(".")+1);for(let r in e.stopNodes)if(e.stopNodes[r]===t||e.stopNodes[r]==="*."+s)return!0;return!1}function tt(t,e){if(t&&t.length>0&&e.processEntities)for(let s=0;s<e.entities.length;s++){const r=e.entities[s];t=t.replace(r.regex,r.val)}return t}const et=function(t,e){let s="";return e.format&&e.indentBy.length>0&&(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<s;a++){const s=t[i][a];if(void 0===s);else if(null===s)"?"===i[0]?r+=this.indentate(e)+"<"+i+"?"+this.tagEndChar:r+=this.indentate(e)+"<"+i+"/"+this.tagEndChar;else if("object"==typeof s)if(this.options.oneListGroup){const t=this.j2x(s,e+1);o+=t.val,this.options.attributesGroupName&&s.hasOwnProperty(this.options.attributesGroupName)&&(n+=t.attrStr)}else o+=this.processTextOrObjNode(s,i,e);else if(this.options.oneListGroup){let t=this.options.tagValueProcessor(i,s);t=this.replaceEntitiesValue(t),o+=t}else o+=this.buildTextValNode(s,i,"",e)}this.options.oneListGroup&&(o=this.buildObjectNode(o,i,n,e)),r+=o}else if(this.options.attributesGroupName&&i===this.options.attributesGroupName){const e=Object.keys(t[i]),r=e.length;for(let o=0;o<r;o++)s+=this.buildAttrPairStr(e[o],""+t[i][e[o]])}else r+=this.processTextOrObjNode(t[i],i,e);return{attrStr:s,val:r}},rt.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&"true"===e?" "+t:" "+t+'="'+e+'"'},rt.prototype.buildObjectNode=function(t,e,s,r){if(""===t)return"?"===e[0]?this.indentate(r)+"<"+e+s+"?"+this.tagEndChar:this.indentate(r)+"<"+e+s+this.closeTag(e)+this.tagEndChar;{let i="</"+e+this.tagEndChar,o="";return"?"===e[0]&&(o="?",i=""),!s&&""!==s||-1!==t.indexOf("<")?!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===o.length?this.indentate(r)+`\x3c!--${t}--\x3e`+this.newLine:this.indentate(r)+"<"+e+s+o+this.tagEndChar+t+this.indentate(r)+i:this.indentate(r)+"<"+e+s+o+">"+t+i}},rt.prototype.closeTag=function(t){let e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":`></${t}`,e},rt.prototype.buildTextValNode=function(t,e,s,r){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${t}]]>`+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+"</"+e+this.tagEndChar}},rt.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){const s=this.options.entities[e];t=t.replace(s.regex,s.val)}return t};var at="object"==typeof m&&m.env&&m.env.NODE_DEBUG&&/\bsemver\b/i.test(m.env.NODE_DEBUG)?(...t)=>console.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},ct={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=[],c=e.t={};let u=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=u++;o(t,i,e),c[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[c.NUMERICIDENTIFIER]})\\.(${d[c.NUMERICIDENTIFIER]})\\.(${d[c.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${d[c.NUMERICIDENTIFIERLOOSE]})\\.(${d[c.NUMERICIDENTIFIERLOOSE]})\\.(${d[c.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${d[c.NUMERICIDENTIFIER]}|${d[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${d[c.NUMERICIDENTIFIERLOOSE]}|${d[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${d[c.PRERELEASEIDENTIFIER]}(?:\\.${d[c.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${d[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[c.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${p}+`),m("BUILD",`(?:\\+(${d[c.BUILDIDENTIFIER]}(?:\\.${d[c.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${d[c.MAINVERSION]}${d[c.PRERELEASE]}?${d[c.BUILD]}?`),m("FULL",`^${d[c.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${d[c.MAINVERSIONLOOSE]}${d[c.PRERELEASELOOSE]}?${d[c.BUILD]}?`),m("LOOSE",`^${d[c.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${d[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${d[c.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${d[c.XRANGEIDENTIFIER]})(?:\\.(${d[c.XRANGEIDENTIFIER]})(?:\\.(${d[c.XRANGEIDENTIFIER]})(?:${d[c.PRERELEASE]})?${d[c.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${d[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[c.XRANGEIDENTIFIERLOOSE]})(?:${d[c.PRERELEASELOOSE]})?${d[c.BUILD]}?)?)?`),m("XRANGE",`^${d[c.GTLT]}\\s*${d[c.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${d[c.GTLT]}\\s*${d[c.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?`),m("COERCE",`${d[c.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",d[c.COERCEPLAIN]+`(?:${d[c.PRERELEASE]})?(?:${d[c.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",d[c.COERCE],!0),m("COERCERTLFULL",d[c.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${d[c.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",m("TILDE",`^${d[c.LONETILDE]}${d[c.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${d[c.LONETILDE]}${d[c.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${d[c.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",m("CARET",`^${d[c.LONECARET]}${d[c.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${d[c.LONECARET]}${d[c.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${d[c.GTLT]}\\s*(${d[c.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${d[c.GTLT]}\\s*(${d[c.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${d[c.GTLT]}\\s*(${d[c.LOOSEPLAIN]}|${d[c.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${d[c.XRANGEPLAIN]})\\s+-\\s+(${d[c.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${d[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${d[c.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(ct,ct.exports);var ut=ct.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:t<e?-1:1};var mt={compareIdentifiers:lt,rcompareIdentifiers:(t,e)=>lt(e,t)};const{MAX_LENGTH:ht,MAX_SAFE_INTEGER:gt}=dt,{safeRe:ft,t:Et}=ut,{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(u=0;u<e.length;u++){s=e[u][0],r=e[u][1],i=e[u][2];for(var a=!0,d=0;d<s.length;d++)(!1&i||o>=i)&&Object.keys(n.O).every((t=>n.O[t](s[d])))?s.splice(d--,1):(a=!1,i<o&&(o=i));if(a){e.splice(u--,1);var c=r();void 0!==c&&(t=c)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[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="+{802:"4fc65efe0f2d990c9ac5",3239:"1df181bce79cc3beab3a",3303:"8cf209f1ac18a557bf69",4529:"2b862dfcc3ee485d70ae",7265:"715398afd1ab50836642",8737:"0d408131038e6974981f",9291:"077955af818a227340aa",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 c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var p=c[u];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+i){a=p;break}}a||(d=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",r+i),a.src=t),s[t]=[e];var l=(e,r)=>{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],c=0;if(o.some((e=>0!==t[e]))){for(r in a)n.o(a,r)&&(n.m[r]=a[r]);if(d)var u=d(n)}for(e&&e(s);c<o.length;c++)i=o[c],n.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return n.O(u)},s=self.webpackChunknextcloud=self.webpackChunknextcloud||[];s.forEach(e.bind(null,0)),s.push=e.bind(null,s.push.bind(s))})(),n.nc=void 0;var a=n.O(void 0,[4208],(()=>n(18539)));a=n.O(a)})();
- //# sourceMappingURL=settings-vue-settings-apps-users-management.js.map?v=e7bdbcafadd81ae50241
|