From 5fd3056642f35bc0325c8b94741afe566e2d0d1f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 30 Oct 2021 02:07:36 +0000 Subject: Bump vue-router from 3.5.2 to 3.5.3 Bumps [vue-router](https://github.com/vuejs/vue-router) from 3.5.2 to 3.5.3. - [Release notes](https://github.com/vuejs/vue-router/releases) - [Changelog](https://github.com/vuejs/vue-router/blob/dev/CHANGELOG.md) - [Commits](https://github.com/vuejs/vue-router/compare/v3.5.2...v3.5.3) --- updated-dependencies: - dependency-name: vue-router dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Signed-off-by: nextcloud-command --- apps/settings/js/vue-settings-apps-users-management.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/settings/js/vue-settings-apps-users-management.js') diff --git a/apps/settings/js/vue-settings-apps-users-management.js b/apps/settings/js/vue-settings-apps-users-management.js index 22c7d764b3f..df887206dd2 100644 --- a/apps/settings/js/vue-settings-apps-users-management.js +++ b/apps/settings/js/vue-settings-apps-users-management.js @@ -35,7 +35,7 @@ var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typ * (c) 2021 Evan You * @license MIT */ -function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(u=t)}l.state.get=function(){return this._vm._data.$$state},l.state.set=function(t){0},f.prototype.commit=function(t,e,n){var r=this,o=g(t,e,n),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},f.prototype.dispatch=function(t,e){var n=this,r=g(t,e),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(t){0}var c=s.length>1?Promise.all(s.map((function(t){return t(i)}))):s[0](i);return new Promise((function(t,e){c.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(t){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(t){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return p(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){return p("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},f.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),n.preserveState),h(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=m(e.state,t.slice(0,-1));u.delete(n,t[t.length-1])})),d(this)},f.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype.hotUpdate=function(t){this._modules.update(t),d(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,l);var b=x((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=A(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0})),n})),_=x((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var i=A(this.$store,"mapMutations",t);if(!i)return;r=i.context.commit}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n})),w=x((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||A(this.$store,"mapGetters",t))return this.$store.getters[o]},n[r].vuex=!0})),n})),O=x((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var i=A(this.$store,"mapActions",t);if(!i)return;r=i.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n}));function E(t){return function(t){return Array.isArray(t)||i(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function x(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function A(t,e,n){return t._modulesNamespaceMap[n]}function C(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(n){t.log(e)}}function S(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function I(){var t=new Date;return" @ "+j(t.getHours(),2)+":"+j(t.getMinutes(),2)+":"+j(t.getSeconds(),2)+"."+j(t.getMilliseconds(),3)}function j(t,e){return n="0",r=e-t.toString().length,new Array(r+1).join(n)+t;var n,r}var T={Store:f,install:y,version:"3.6.2",mapState:b,mapMutations:_,mapGetters:w,mapActions:O,createNamespacedHelpers:function(t){return{mapState:b.bind(null,t),mapGetters:w.bind(null,t),mapMutations:_.bind(null,t),mapActions:O.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var o=t.transformer;void 0===o&&(o=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var u=t.logActions;void 0===u&&(u=!0);var f=t.logger;return void 0===f&&(f=console),function(t){var l=r(t.state);void 0!==f&&(c&&t.subscribe((function(t,a){var s=r(a);if(n(t,l,s)){var c=I(),u=i(t),p="mutation "+t.type+c;C(f,p,e),f.log("%c prev state","color: #9E9E9E; font-weight: bold",o(l)),f.log("%c mutation","color: #03A9F4; font-weight: bold",u),f.log("%c next state","color: #4CAF50; font-weight: bold",o(s)),S(f)}l=s})),u&&t.subscribeAction((function(t,n){if(a(t,n)){var r=I(),o=s(t),i="action "+t.type+r;C(f,i,e),f.log("%c action","color: #03A9F4; font-weight: bold",o),S(f)}})))}}};e.a=T}).call(this,n(6))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){function n(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=n(e)),Object.freeze(r)}e.sync=function(t,e,r){var o=(r||{}).moduleName||"route";t.registerModule(o,{namespaced:!0,state:n(e.currentRoute),mutations:{ROUTE_CHANGED:function(e,r){t.state[o]=n(r.to,r.from)}}});var i,a=!1,s=t.watch((function(t){return t[o]}),(function(t){var n=t.fullPath;n!==i&&(null!=i&&(a=!0,e.push(t)),i=n)}),{sync:!0}),c=e.afterEach((function(e,n){a?a=!1:(i=e.fullPath,t.commit(o+"/ROUTE_CHANGED",{to:e,from:n}))}));return function(){null!=c&&c(),null!=s&&s(),t.unregisterModule(o)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,r,o){"use strict";o.r(r),o.d(r,"app",(function(){return Se})),o.d(r,"router",(function(){return oe})),o.d(r,"store",(function(){return Ce}));var i=o(13),a=o(135),s=o(462),c={name:"App",beforeMount:function(){null!==document.getElementById("serverData")&&this.$store.commit("setServerData",JSON.parse(document.getElementById("serverData").dataset.server))}},u=o(0),f=Object(u.a)(c,(function(){var t=this.$createElement;return(this._self._c||t)("router-view")}),[],!1,null,null,null).exports;function l(t,e){for(var n in e)t[n]=e[n];return t}var p=/[!'()*]/g,d=function(t){return"%"+t.charCodeAt(0).toString(16)},h=/%2C/g,v=function(t){return encodeURIComponent(t).replace(p,d).replace(h,",")};function m(t){try{return decodeURIComponent(t)}catch(t){0}return t}var g=function(t){return null==t||"object"==typeof t?t:String(t)};function y(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=m(n.shift()),o=n.length>0?m(n.join("=")):null;void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]})),e):e}function b(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return v(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(v(e)):r.push(v(e)+"="+v(t)))})),r.join("&")}return v(e)+"="+v(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var _=/\/?$/;function w(t,e,n,r){var o=r&&r.options.stringifyQuery,i=e.query||{};try{i=O(i)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:A(e,o),matched:t?x(t):[]};return n&&(a.redirectedFrom=A(n,o)),Object.freeze(a)}function O(t){if(Array.isArray(t))return t.map(O);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=O(t[n]);return e}return t}var E=w(null,{path:"/"});function x(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function A(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var o=t.hash;return void 0===o&&(o=""),(n||"/")+(e||b)(r)+o}function C(t,e,n){return e===E?t===e:!!e&&(t.path&&e.path?t.path.replace(_,"")===e.path.replace(_,"")&&(n||t.hash===e.hash&&S(t.query,e.query)):!(!t.name||!e.name)&&(t.name===e.name&&(n||t.hash===e.hash&&S(t.query,e.query)&&S(t.params,e.params))))}function S(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((function(n,o){var i=t[n];if(r[o]!==n)return!1;var a=e[n];return null==i||null==a?i===a:"object"==typeof i&&"object"==typeof a?S(i,a):String(i)===String(a)}))}function I(t){for(var e=0;e=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}(o.path||""),u=e&&e.path||"/",f=c.path?k(c.path,u,n||o.append):u,p=function(t,e,n){void 0===e&&(e={});var r,o=n||y;try{r=o(t||"")}catch(t){r={}}for(var i in e){var a=e[i];r[i]=Array.isArray(a)?a.map(g):g(a)}return r}(c.query,o.query,r&&r.options.parseQuery),d=o.hash||c.hash;return d&&"#"!==d.charAt(0)&&(d="#"+d),{_normalized:!0,path:f,query:p,hash:d}}var Q,Z=function(){},tt={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),i=o.location,a=o.route,s=o.href,c={},u=n.options.linkActiveClass,f=n.options.linkExactActiveClass,p=null==u?"router-link-active":u,d=null==f?"router-link-exact-active":f,h=null==this.activeClass?p:this.activeClass,v=null==this.exactActiveClass?d:this.exactActiveClass,m=a.redirectedFrom?w(null,J(a.redirectedFrom),null,n):a;c[v]=C(r,m,this.exactPath),c[h]=this.exact||this.exactPath?c[v]:function(t,e){return 0===t.path.replace(_,"/").indexOf(e.path.replace(_,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,m);var g=c[v]?this.ariaCurrentValue:null,y=function(t){et(t)&&(e.replace?n.replace(i,Z):n.push(i,Z))},b={click:et};Array.isArray(this.event)?this.event.forEach((function(t){b[t]=y})):b[this.event]=y;var O={class:c},E=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:a,navigate:y,isActive:c[h],isExactActive:c[v]});if(E){if(1===E.length)return E[0];if(E.length>1||!E.length)return 0===E.length?t():t("span",{},E)}if("a"===this.tag)O.on=b,O.attrs={href:s,"aria-current":g};else{var x=function t(e){var n;if(e)for(var r=0;r-1&&(s.params[p]=n.params[p]);return s.path=K(f.path,s.params),c(f,s,a)}if(s.path){s.params={};for(var d=0;d=t.length?n():t[o]?e(t[o],(function(){r(o+1)})):r(o+1)};r(0)}var St={redirected:2,aborted:4,cancelled:8,duplicated:16};function It(t,e){return Tt(t,e,St.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return kt.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function jt(t,e){return Tt(t,e,St.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function Tt(t,e,n,r){var o=new Error(r);return o._isRouter=!0,o.from=t,o.to=e,o.type=n,o}var kt=["params","query","hash"];function Lt(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Rt(t,e){return Lt(t)&&t._isRouter&&(null==e||t.type===e)}function Pt(t){return function(e,n,r){var o=!1,i=0,a=null;$t(t,(function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){o=!0,i++;var c,u=Mt((function(e){var o;((o=e).__esModule||Ut&&"Module"===o[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Q.extend(e),n.components[s]=e,--i<=0&&r()})),f=Mt((function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=Lt(t)?t:new Error(e),r(a))}));try{c=t(u,f)}catch(t){f(t)}if(c)if("function"==typeof c.then)c.then(u,f);else{var l=c.component;l&&"function"==typeof l.then&&l.then(u,f)}}})),o||r()}}function $t(t,e){return Nt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Nt(t){return Array.prototype.concat.apply([],t)}var Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Mt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Dt=function(t,e){this.router=t,this.base=function(t){if(!t)if(nt){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=E,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Ft(t,e,n,r){var o=$t(t,(function(t,r,o,i){var a=function(t,e){"function"!=typeof t&&(t=Q.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,o,i)})):n(a,r,o,i)}));return Nt(r?o.reverse():o)}function Bt(t,e){if(e)return function(){return t.apply(e,arguments)}}Dt.prototype.listen=function(t){this.cb=t},Dt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Dt.prototype.onError=function(t){this.errorCbs.push(t)},Dt.prototype.transitionTo=function(t,e,n){var r,o=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var i=this.current;this.confirmTransition(r,(function(){o.updateRoute(r),e&&e(r),o.ensureURL(),o.router.afterHooks.forEach((function(t){t&&t(r,i)})),o.ready||(o.ready=!0,o.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!o.ready&&(Rt(t,St.redirected)&&i===E||(o.ready=!0,o.readyErrorCbs.forEach((function(e){e(t)}))))}))},Dt.prototype.confirmTransition=function(t,e,n){var r=this,o=this.current;this.pending=t;var i,a,s=function(t){!Rt(t)&&Lt(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},c=t.matched.length-1,u=o.matched.length-1;if(C(t,o)&&c===u&&t.matched[c]===o.matched[u])return this.ensureURL(),s(((a=Tt(i=o,t,St.duplicated,'Avoided redundant navigation to current location: "'+i.fullPath+'".')).name="NavigationDuplicated",a));var f=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n0)){var e=this.router,n=e.options.scrollBehavior,r=Et&&n;r&&this.listeners.push(dt());var o=function(){var n=t.current,o=Ht(t.base);t.current===E&&o===t._startLocation||t.transitionTo(o,(function(t){r&&ht(e,t,n,!0)}))};window.addEventListener("popstate",o),this.listeners.push((function(){window.removeEventListener("popstate",o)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){xt(L(r.base+t.fullPath)),ht(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){At(L(r.base+t.fullPath)),ht(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(Ht(this.base)!==this.current.fullPath){var e=L(this.base+this.current.fullPath);t?xt(e):At(e)}},e.prototype.getCurrentLocation=function(){return Ht(this.base)},e}(Dt);function Ht(t){var e=window.location.pathname,n=e.toLowerCase(),r=t.toLowerCase();return!t||n!==r&&0!==n.indexOf(L(r+"/"))||(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Gt=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=Ht(t);if(!/^\/#/.test(e))return window.location.replace(L(t+"/#"+e)),!0}(this.base)||Vt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=Et&&e;n&&this.listeners.push(dt());var r=function(){var e=t.current;Vt()&&t.transitionTo(qt(),(function(r){n&&ht(t.router,r,e,!0),Et||Yt(r.fullPath)}))},o=Et?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){Wt(t.fullPath),ht(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){Yt(t.fullPath),ht(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;qt()!==e&&(t?Wt(e):Yt(e))},e.prototype.getCurrentLocation=function(){return qt()},e}(Dt);function Vt(){var t=qt();return"/"===t.charAt(0)||(Yt("/"+t),!1)}function qt(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Xt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Wt(t){Et?xt(Xt(t)):window.location.hash=t}function Yt(t){Et?At(Xt(t)):window.location.replace(Xt(t))}var Kt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){Rt(t,St.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Dt),Jt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=it(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Et&&!1!==t.fallback,this.fallback&&(e="hash"),nt||(e="abstract"),this.mode=e,e){case"history":this.history=new zt(this,t.base);break;case"hash":this.history=new Gt(this,t.base,this.fallback);break;case"abstract":this.history=new Kt(this,t.base);break;default:0}},Qt={currentRoute:{configurable:!0}};function Zt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Jt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Qt.currentRoute.get=function(){return this.history&&this.history.current},Jt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof zt||n instanceof Gt){var r=function(t){n.setupListeners(),function(t){var r=n.current,o=e.options.scrollBehavior;Et&&o&&"fullPath"in t&&ht(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Jt.prototype.beforeEach=function(t){return Zt(this.beforeHooks,t)},Jt.prototype.beforeResolve=function(t){return Zt(this.resolveHooks,t)},Jt.prototype.afterEach=function(t){return Zt(this.afterHooks,t)},Jt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Jt.prototype.onError=function(t){this.history.onError(t)},Jt.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Jt.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Jt.prototype.go=function(t){this.history.go(t)},Jt.prototype.back=function(){this.go(-1)},Jt.prototype.forward=function(){this.go(1)},Jt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Jt.prototype.resolve=function(t,e,n){var r=J(t,e=e||this.history.current,n,this),o=this.match(r,e),i=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?L(t+"/"+r):r}(this.history.base,i,this.mode),normalizedTo:r,resolved:o}},Jt.prototype.getRoutes=function(){return this.matcher.getRoutes()},Jt.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==E&&this.history.transitionTo(this.history.getCurrentLocation())},Jt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==E&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Jt.prototype,Qt),Jt.install=function t(e){if(!t.installed||Q!==e){t.installed=!0,Q=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",j),e.component("RouterLink",tt);var o=e.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},Jt.version="3.5.2",Jt.isNavigationFailure=Rt,Jt.NavigationFailureType=St,Jt.START_LOCATION=E,nt&&window.Vue&&window.Vue.use(Jt);var te=Jt,ee=o(7),ne=function(){return Promise.all([o.e(0),o.e(11),o.e(9)]).then(o.bind(null,610))},re=function(){return Promise.all([o.e(0),o.e(10),o.e(3)]).then(o.bind(null,609))};i.default.use(te);var oe=new te({mode:"history",base:Object(ee.generateUrl)(""),linkActiveClass:"active",routes:[{path:"/:index(index.php/)?settings/users",component:ne,props:!0,name:"users",children:[{path:":selectedGroup",name:"group",component:ne}]},{path:"/:index(index.php/)?settings/apps",component:re,props:!0,name:"apps",children:[{path:":category",name:"apps-category",component:re,children:[{path:":id",name:"apps-details",component:re}]}]}]}),ie=o(392),ae=o(23),se=o.n(ae),ce=o(56),ue=o.n(ce),fe=function(t){return t.replace(/\/$/,"")},le=function(){return ue()()},pe=function(t,e){return se.a.get(fe(t),e)},de=function(t,e){return se.a.post(fe(t),e)},he=function(t,e){return se.a.put(fe(t),e)},ve=function(t,e){return se.a.delete(fe(t),{params:e})},me=function(t,e){return 1===e?t.sort((function(t,e){return t.usercount-t.disabled=0&&t.groups.splice(n,1)},addUserGroup:function(t,e){var n=e.userid,r=e.gid,o=t.groups.find((function(t){return t.id===r})),i=t.users.find((function(t){return t.id===n}));o&&i.enabled&&t.userCount>0&&o.usercount++,i.groups.push(r),t.groups=me(t.groups,t.orderBy)},removeUserGroup:function(t,e){var n=e.userid,r=e.gid,o=t.groups.find((function(t){return t.id===r})),i=t.users.find((function(t){return t.id===n}));o&&i.enabled&&t.userCount>0&&o.usercount--;var a=i.groups;a.splice(a.indexOf(r),1),t.groups=me(t.groups,t.orderBy)},addUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;t.users.find((function(t){return t.id===n})).subadmin.push(r)},removeUserSubAdmin:function(t,e){var n=e.userid,r=e.gid,o=t.users.find((function(t){return t.id===n})).subadmin;o.splice(o.indexOf(r),1)},deleteUser:function(t,e){var n=t.users.findIndex((function(t){return t.id===e}));t.users.splice(n,1)},addUserData:function(t,e){t.users.push(e.data.ocs.data)},enableDisableUser:function(t,e){var n=e.userid,r=e.enabled,o=t.users.find((function(t){return t.id===n}));o.enabled=r,t.userCount>0&&(t.groups.find((function(t){return"disabled"===t.id})).usercount+=r?-1:1,t.userCount+=r?1:-1,o.groups.forEach((function(e){t.groups.find((function(t){return t.id===e})).disabled+=r?-1:1})))},setUserData:function(t,e){var n=e.userid,r=e.key,o=e.value;if("quota"===r){var i=OC.Util.computerFileSize(o);t.users.find((function(t){return t.id===n}))[r][r]=null!==i?i:o}else t.users.find((function(t){return t.id===n}))[r]=o},resetUsers:function(t){t.users=[],t.usersOffset=0}},be=se.a.CancelToken,_e=null,we={state:{users:[],groups:[],orderBy:1,minPasswordLength:0,usersOffset:0,usersLimit:25,userCount:0},mutations:ye,getters:{getUsers:function(t){return t.users},getGroups:function(t){return t.groups},getSubadminGroups:function(t){return t.groups.filter((function(t){return"admin"!==t.id&&"disabled"!==t.id}))},getPasswordPolicyMinLength:function(t){return t.minPasswordLength},getUsersOffset:function(t){return t.usersOffset},getUsersLimit:function(t){return t.usersLimit},getUserCount:function(t){return t.userCount}},actions:{getUsers:function(t,e){var n=e.offset,r=e.limit,o=e.search,i=e.group;return _e&&_e.cancel("Operation canceled by another search request."),_e=be.source(),o="string"==typeof o?o:"",""!==(i="string"==typeof i?i:"")?pe(Object(ee.generateOcsUrl)("cloud/groups/{group}/users/details?offset={offset}&limit={limit}&search={search}",{group:encodeURIComponent(i),offset:n,limit:r,search:o}),{cancelToken:_e.token}).then((function(e){var n=Object.keys(e.data.ocs.data.users).length;return n>0&&t.commit("appendUsers",e.data.ocs.data.users),n})).catch((function(e){se.a.isCancel(e)||t.commit("API_FAILURE",e)})):pe(Object(ee.generateOcsUrl)("cloud/users/details?offset={offset}&limit={limit}&search={search}",{offset:n,limit:r,search:o}),{cancelToken:_e.token}).then((function(e){var n=Object.keys(e.data.ocs.data.users).length;return n>0&&t.commit("appendUsers",e.data.ocs.data.users),n})).catch((function(e){se.a.isCancel(e)||t.commit("API_FAILURE",e)}))},getGroups:function(t,e){var n=e.offset,r=e.limit,o=e.search;o="string"==typeof o?o:"";var i=-1===r?"":"&limit=".concat(r);return pe(Object(ee.generateOcsUrl)("cloud/groups?offset={offset}&search={search}",{offset:n,search:o})+i).then((function(e){return 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((function(e){return t.commit("API_FAILURE",e)}))},getUsersFromList:function(t,e){var n=e.offset,r=e.limit,o=e.search;return o="string"==typeof o?o:"",pe(Object(ee.generateOcsUrl)("cloud/users/details?offset={offset}&limit={limit}&search={search}",{offset:n,limit:r,search:o})).then((function(e){return Object.keys(e.data.ocs.data.users).length>0&&(t.commit("appendUsers",e.data.ocs.data.users),!0)})).catch((function(e){return t.commit("API_FAILURE",e)}))},getUsersFromGroup:function(t,e){var n=e.groupid,r=e.offset,o=e.limit;return pe(Object(ee.generateOcsUrl)("cloud/users/{groupId}/details?offset={offset}&limit={limit}",{groupId:encodeURIComponent(n),offset:r,limit:o})).then((function(e){return t.commit("getUsersFromList",e.data.ocs.data.users)})).catch((function(e){return t.commit("API_FAILURE",e)}))},getPasswordPolicyMinLength:function(t){return!(!OC.getCapabilities().password_policy||!OC.getCapabilities().password_policy.minLength)&&(t.commit("setPasswordPolicyMinLength",OC.getCapabilities().password_policy.minLength),OC.getCapabilities().password_policy.minLength)},addGroup:function(t,e){return le().then((function(n){return de(Object(ee.generateOcsUrl)("cloud/groups"),{groupid:e}).then((function(n){return t.commit("addGroup",{gid:e,displayName:e}),{gid:e,displayName:e}})).catch((function(t){throw t}))})).catch((function(n){throw t.commit("API_FAILURE",{gid:e,error:n}),n}))},removeGroup:function(t,e){return le().then((function(n){return ve(Object(ee.generateOcsUrl)("cloud/groups/{groupId}",{groupId:encodeURIComponent(e)})).then((function(n){return t.commit("removeGroup",e)})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{gid:e,error:n})}))},addUserGroup:function(t,e){var n=e.userid,r=e.gid;return le().then((function(e){return de(Object(ee.generateOcsUrl)("cloud/users/{userid}/groups",{userid:n}),{groupid:r}).then((function(e){return t.commit("addUserGroup",{userid:n,gid:r})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})}))},removeUserGroup:function(t,e){var n=e.userid,r=e.gid;return le().then((function(e){return ve(Object(ee.generateOcsUrl)("cloud/users/{userid}/groups",{userid:n}),{groupid:r}).then((function(e){return t.commit("removeUserGroup",{userid:n,gid:r})})).catch((function(t){throw t}))})).catch((function(e){throw t.commit("API_FAILURE",{userid:n,error:e}),e}))},addUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;return le().then((function(e){return de(Object(ee.generateOcsUrl)("cloud/users/{userid}/subadmins",{userid:n}),{groupid:r}).then((function(e){return t.commit("addUserSubAdmin",{userid:n,gid:r})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})}))},removeUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;return le().then((function(e){return ve(Object(ee.generateOcsUrl)("cloud/users/{userid}/subadmins",{userid:n}),{groupid:r}).then((function(e){return t.commit("removeUserSubAdmin",{userid:n,gid:r})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})}))},wipeUserDevices:function(t,e){return le().then((function(t){return de(Object(ee.generateOcsUrl)("cloud/users/{userid}/wipe",{userid:e})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{userid:e,error:n})}))},deleteUser:function(t,e){return le().then((function(n){return ve(Object(ee.generateOcsUrl)("cloud/users/{userid}",{userid:e})).then((function(n){return t.commit("deleteUser",e)})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{userid:e,error:n})}))},addUser:function(t,e){var n=t.commit,r=t.dispatch,o=e.userid,i=e.password,a=e.displayName,s=e.email,c=e.groups,u=e.subadmin,f=e.quota,l=e.language;return le().then((function(t){return de(Object(ee.generateOcsUrl)("cloud/users"),{userid:o,password:i,displayName:a,email:s,groups:c,subadmin:u,quota:f,language:l}).then((function(t){return r("addUserData",o||t.data.ocs.data.id)})).catch((function(t){throw t}))})).catch((function(t){throw n("API_FAILURE",{userid:o,error:t}),t}))},addUserData:function(t,e){return le().then((function(n){return pe(Object(ee.generateOcsUrl)("cloud/users/{userid}",{userid:e})).then((function(e){return t.commit("addUserData",e)})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{userid:e,error:n})}))},enableDisableUser:function(t,e){var n=e.userid,r=e.enabled,o=void 0===r||r,i=o?"enable":"disable";return le().then((function(e){return he(Object(ee.generateOcsUrl)("cloud/users/{userid}/{userStatus}",{userid:n,userStatus:i})).then((function(e){return t.commit("enableDisableUser",{userid:n,enabled:o})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})}))},setUserData:function(t,e){var n=e.userid,r=e.key,o=e.value,i=["email","displayname"];return-1!==["email","language","quota","displayname","password"].indexOf(r)&&"string"==typeof o&&(-1===i.indexOf(r)&&o.length>0||-1!==i.indexOf(r))?le().then((function(e){return he(Object(ee.generateOcsUrl)("cloud/users/{userid}",{userid:n}),{key:r,value:o}).then((function(e){return t.commit("setUserData",{userid:n,key:r,value:o})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})})):Promise.reject(new Error("Invalid request data"))},sendWelcomeMail:function(t,e){return le().then((function(t){return de(Object(ee.generateOcsUrl)("cloud/users/{userid}/welcome",{userid:e})).then((function(t){return!0})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{userid:e,error:n})}))}}},Oe={state:{apps:[],categories:[],updateCount:0,loading:{},loadingList:!1},mutations:{APPS_API_FAILURE:function(e,n){OC.Notification.showHtml(t("settings","An error occured during the request. Unable to proceed.")+"
"+n.error.response.data.data.message,{timeout:7}),console.error(e,n)},initCategories:function(t,e){var n=e.categories,r=e.updateCount;t.categories=n,t.updateCount=r},setUpdateCount:function(t,e){t.updateCount=e},addCategory:function(t,e){t.categories.push(e)},appendCategories:function(t,e){t.categories=e},setAllApps:function(t,e){t.apps=e},setError:function(t,e){var n=e.appId,r=e.error;Array.isArray(n)||(n=[n]),n.forEach((function(e){t.apps.find((function(t){return t.id===e})).error=r}))},clearError:function(t,e){var n=e.appId;e.error;t.apps.find((function(t){return t.id===n})).error=null},enableApp:function(t,e){var n=e.appId,r=e.groups,o=t.apps.find((function(t){return t.id===n}));o.active=!0,o.groups=r},disableApp:function(t,e){var n=t.apps.find((function(t){return t.id===e}));n.active=!1,n.groups=[],n.removable&&(n.canUnInstall=!0)},uninstallApp:function(t,e){t.apps.find((function(t){return t.id===e})).active=!1,t.apps.find((function(t){return t.id===e})).groups=[],t.apps.find((function(t){return t.id===e})).needsDownload=!0,t.apps.find((function(t){return t.id===e})).installed=!1,t.apps.find((function(t){return t.id===e})).canUnInstall=!1,t.apps.find((function(t){return t.id===e})).canInstall=!0},updateApp:function(t,e){var n=t.apps.find((function(t){return t.id===e})),r=n.update;n.update=null,n.version=r,t.updateCount--},resetApps:function(t){t.apps=[]},reset:function(t){t.apps=[],t.categories=[],t.updateCount=0},startLoading:function(t,e){Array.isArray(e)?e.forEach((function(e){i.default.set(t.loading,e,!0)})):i.default.set(t.loading,e,!0)},stopLoading:function(t,e){Array.isArray(e)?e.forEach((function(e){i.default.set(t.loading,e,!1)})):i.default.set(t.loading,e,!1)}},getters:{loading:function(t){return function(e){return t.loading[e]}},getCategories:function(t){return t.categories},getAllApps:function(t){return t.apps},getUpdateCount:function(t){return t.updateCount}},actions:{enableApp:function(e,n){var r,o=n.appId,i=n.groups;return r=Array.isArray(o)?o:[o],le().then((function(n){return e.commit("startLoading",r),e.commit("startLoading","install"),de(Object(ee.generateUrl)("settings/apps/enable"),{appIds:r,groups:i}).then((function(n){return e.commit("stopLoading",r),e.commit("stopLoading","install"),r.forEach((function(t){e.commit("enableApp",{appId:t,groups:i})})),pe(Object(ee.generateUrl)("apps/files")).then((function(){n.data.update_required&&(OC.dialogs.info(t("settings","The app has been enabled but needs to be updated. You will be redirected to the update page in 5 seconds."),t("settings","App update"),(function(){window.location.reload()}),!0),setTimeout((function(){location.reload()}),5e3))})).catch((function(){Array.isArray(o)||e.commit("setError",{appId:r,error:t("settings","Error: This app cannot be enabled because it makes the server unstable")})}))})).catch((function(t){e.commit("stopLoading",r),e.commit("stopLoading","install"),e.commit("setError",{appId:r,error:t.response.data.data.message}),e.commit("APPS_API_FAILURE",{appId:o,error:t})}))})).catch((function(t){return e.commit("API_FAILURE",{appId:o,error:t})}))},forceEnableApp:function(t,e){var n,r=e.appId;e.groups;return n=Array.isArray(r)?r:[r],le().then((function(){return t.commit("startLoading",n),t.commit("startLoading","install"),de(Object(ee.generateUrl)("settings/apps/force"),{appId:r}).then((function(t){location.reload()})).catch((function(e){t.commit("stopLoading",n),t.commit("stopLoading","install"),t.commit("setError",{appId:n,error:e.response.data.data.message}),t.commit("APPS_API_FAILURE",{appId:r,error:e})}))})).catch((function(e){return t.commit("API_FAILURE",{appId:r,error:e})}))},disableApp:function(t,e){var n,r=e.appId;return n=Array.isArray(r)?r:[r],le().then((function(e){return t.commit("startLoading",n),de(Object(ee.generateUrl)("settings/apps/disable"),{appIds:n}).then((function(e){return t.commit("stopLoading",n),n.forEach((function(e){t.commit("disableApp",e)})),!0})).catch((function(e){t.commit("stopLoading",n),t.commit("APPS_API_FAILURE",{appId:r,error:e})}))})).catch((function(e){return t.commit("API_FAILURE",{appId:r,error:e})}))},uninstallApp:function(t,e){var n=e.appId;return le().then((function(e){return t.commit("startLoading",n),pe(Object(ee.generateUrl)("settings/apps/uninstall/".concat(n))).then((function(e){return t.commit("stopLoading",n),t.commit("uninstallApp",n),!0})).catch((function(e){t.commit("stopLoading",n),t.commit("APPS_API_FAILURE",{appId:n,error:e})}))})).catch((function(e){return t.commit("API_FAILURE",{appId:n,error:e})}))},updateApp:function(t,e){var n=e.appId;return le().then((function(e){return t.commit("startLoading",n),t.commit("startLoading","install"),pe(Object(ee.generateUrl)("settings/apps/update/".concat(n))).then((function(e){return t.commit("stopLoading","install"),t.commit("stopLoading",n),t.commit("updateApp",n),!0})).catch((function(e){t.commit("stopLoading",n),t.commit("stopLoading","install"),t.commit("APPS_API_FAILURE",{appId:n,error:e})}))})).catch((function(e){return t.commit("API_FAILURE",{appId:n,error:e})}))},getAllApps:function(t){return t.commit("startLoading","list"),pe(Object(ee.generateUrl)("settings/apps/list")).then((function(e){return t.commit("setAllApps",e.data.apps),t.commit("stopLoading","list"),!0})).catch((function(e){return t.commit("API_FAILURE",e)}))},getCategories:function(t){return t.commit("startLoading","categories"),pe(Object(ee.generateUrl)("settings/apps/categories")).then((function(e){return e.data.length>0&&(t.commit("appendCategories",e.data),t.commit("stopLoading","categories"),!0)})).catch((function(e){return t.commit("API_FAILURE",e)}))}}},Ee={state:{serverData:{}},mutations:{setServerData:function(t,e){t.serverData=e}},getters:{getServerData:function(t){return t.serverData}},actions:{}},xe={state:{},mutations:{},getters:{},actions:{setAppConfig:function(t,e){var n=e.app,r=e.key,o=e.value;return le().then((function(t){return de(Object(ee.generateOcsUrl)("apps/provisioning_api/api/v1/config/apps/{app}/{key}",{app:n,key:r}),{value:o}).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{app:n,key:r,value:o,error:e})}))}}}; +function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(u=t)}l.state.get=function(){return this._vm._data.$$state},l.state.set=function(t){0},f.prototype.commit=function(t,e,n){var r=this,o=g(t,e,n),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},f.prototype.dispatch=function(t,e){var n=this,r=g(t,e),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(t){0}var c=s.length>1?Promise.all(s.map((function(t){return t(i)}))):s[0](i);return new Promise((function(t,e){c.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(t){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(t){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return p(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){return p("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},f.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),n.preserveState),h(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=m(e.state,t.slice(0,-1));u.delete(n,t[t.length-1])})),d(this)},f.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype.hotUpdate=function(t){this._modules.update(t),d(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,l);var b=x((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=A(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0})),n})),_=x((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var i=A(this.$store,"mapMutations",t);if(!i)return;r=i.context.commit}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n})),w=x((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||A(this.$store,"mapGetters",t))return this.$store.getters[o]},n[r].vuex=!0})),n})),O=x((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var i=A(this.$store,"mapActions",t);if(!i)return;r=i.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n}));function E(t){return function(t){return Array.isArray(t)||i(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function x(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function A(t,e,n){return t._modulesNamespaceMap[n]}function C(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(n){t.log(e)}}function S(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function I(){var t=new Date;return" @ "+j(t.getHours(),2)+":"+j(t.getMinutes(),2)+":"+j(t.getSeconds(),2)+"."+j(t.getMilliseconds(),3)}function j(t,e){return n="0",r=e-t.toString().length,new Array(r+1).join(n)+t;var n,r}var T={Store:f,install:y,version:"3.6.2",mapState:b,mapMutations:_,mapGetters:w,mapActions:O,createNamespacedHelpers:function(t){return{mapState:b.bind(null,t),mapGetters:w.bind(null,t),mapMutations:_.bind(null,t),mapActions:O.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var o=t.transformer;void 0===o&&(o=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var u=t.logActions;void 0===u&&(u=!0);var f=t.logger;return void 0===f&&(f=console),function(t){var l=r(t.state);void 0!==f&&(c&&t.subscribe((function(t,a){var s=r(a);if(n(t,l,s)){var c=I(),u=i(t),p="mutation "+t.type+c;C(f,p,e),f.log("%c prev state","color: #9E9E9E; font-weight: bold",o(l)),f.log("%c mutation","color: #03A9F4; font-weight: bold",u),f.log("%c next state","color: #4CAF50; font-weight: bold",o(s)),S(f)}l=s})),u&&t.subscribeAction((function(t,n){if(a(t,n)){var r=I(),o=s(t),i="action "+t.type+r;C(f,i,e),f.log("%c action","color: #03A9F4; font-weight: bold",o),S(f)}})))}}};e.a=T}).call(this,n(6))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){function n(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=n(e)),Object.freeze(r)}e.sync=function(t,e,r){var o=(r||{}).moduleName||"route";t.registerModule(o,{namespaced:!0,state:n(e.currentRoute),mutations:{ROUTE_CHANGED:function(e,r){t.state[o]=n(r.to,r.from)}}});var i,a=!1,s=t.watch((function(t){return t[o]}),(function(t){var n=t.fullPath;n!==i&&(null!=i&&(a=!0,e.push(t)),i=n)}),{sync:!0}),c=e.afterEach((function(e,n){a?a=!1:(i=e.fullPath,t.commit(o+"/ROUTE_CHANGED",{to:e,from:n}))}));return function(){null!=c&&c(),null!=s&&s(),t.unregisterModule(o)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,r,o){"use strict";o.r(r),o.d(r,"app",(function(){return Se})),o.d(r,"router",(function(){return oe})),o.d(r,"store",(function(){return Ce}));var i=o(13),a=o(135),s=o(462),c={name:"App",beforeMount:function(){null!==document.getElementById("serverData")&&this.$store.commit("setServerData",JSON.parse(document.getElementById("serverData").dataset.server))}},u=o(0),f=Object(u.a)(c,(function(){var t=this.$createElement;return(this._self._c||t)("router-view")}),[],!1,null,null,null).exports;function l(t,e){for(var n in e)t[n]=e[n];return t}var p=/[!'()*]/g,d=function(t){return"%"+t.charCodeAt(0).toString(16)},h=/%2C/g,v=function(t){return encodeURIComponent(t).replace(p,d).replace(h,",")};function m(t){try{return decodeURIComponent(t)}catch(t){0}return t}var g=function(t){return null==t||"object"==typeof t?t:String(t)};function y(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=m(n.shift()),o=n.length>0?m(n.join("=")):null;void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]})),e):e}function b(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return v(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(v(e)):r.push(v(e)+"="+v(t)))})),r.join("&")}return v(e)+"="+v(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var _=/\/?$/;function w(t,e,n,r){var o=r&&r.options.stringifyQuery,i=e.query||{};try{i=O(i)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:A(e,o),matched:t?x(t):[]};return n&&(a.redirectedFrom=A(n,o)),Object.freeze(a)}function O(t){if(Array.isArray(t))return t.map(O);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=O(t[n]);return e}return t}var E=w(null,{path:"/"});function x(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function A(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var o=t.hash;return void 0===o&&(o=""),(n||"/")+(e||b)(r)+o}function C(t,e,n){return e===E?t===e:!!e&&(t.path&&e.path?t.path.replace(_,"")===e.path.replace(_,"")&&(n||t.hash===e.hash&&S(t.query,e.query)):!(!t.name||!e.name)&&(t.name===e.name&&(n||t.hash===e.hash&&S(t.query,e.query)&&S(t.params,e.params))))}function S(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((function(n,o){var i=t[n];if(r[o]!==n)return!1;var a=e[n];return null==i||null==a?i===a:"object"==typeof i&&"object"==typeof a?S(i,a):String(i)===String(a)}))}function I(t){for(var e=0;e=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}(o.path||""),u=e&&e.path||"/",f=c.path?k(c.path,u,n||o.append):u,p=function(t,e,n){void 0===e&&(e={});var r,o=n||y;try{r=o(t||"")}catch(t){r={}}for(var i in e){var a=e[i];r[i]=Array.isArray(a)?a.map(g):g(a)}return r}(c.query,o.query,r&&r.options.parseQuery),d=o.hash||c.hash;return d&&"#"!==d.charAt(0)&&(d="#"+d),{_normalized:!0,path:f,query:p,hash:d}}var Q,Z=function(){},tt={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),i=o.location,a=o.route,s=o.href,c={},u=n.options.linkActiveClass,f=n.options.linkExactActiveClass,p=null==u?"router-link-active":u,d=null==f?"router-link-exact-active":f,h=null==this.activeClass?p:this.activeClass,v=null==this.exactActiveClass?d:this.exactActiveClass,m=a.redirectedFrom?w(null,J(a.redirectedFrom),null,n):a;c[v]=C(r,m,this.exactPath),c[h]=this.exact||this.exactPath?c[v]:function(t,e){return 0===t.path.replace(_,"/").indexOf(e.path.replace(_,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,m);var g=c[v]?this.ariaCurrentValue:null,y=function(t){et(t)&&(e.replace?n.replace(i,Z):n.push(i,Z))},b={click:et};Array.isArray(this.event)?this.event.forEach((function(t){b[t]=y})):b[this.event]=y;var O={class:c},E=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:a,navigate:y,isActive:c[h],isExactActive:c[v]});if(E){if(1===E.length)return E[0];if(E.length>1||!E.length)return 0===E.length?t():t("span",{},E)}if("a"===this.tag)O.on=b,O.attrs={href:s,"aria-current":g};else{var x=function t(e){var n;if(e)for(var r=0;r-1&&(s.params[p]=n.params[p]);return s.path=K(f.path,s.params),c(f,s,a)}if(s.path){s.params={};for(var d=0;d=t.length?n():t[o]?e(t[o],(function(){r(o+1)})):r(o+1)};r(0)}var St={redirected:2,aborted:4,cancelled:8,duplicated:16};function It(t,e){return Tt(t,e,St.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return kt.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function jt(t,e){return Tt(t,e,St.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function Tt(t,e,n,r){var o=new Error(r);return o._isRouter=!0,o.from=t,o.to=e,o.type=n,o}var kt=["params","query","hash"];function Lt(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Rt(t,e){return Lt(t)&&t._isRouter&&(null==e||t.type===e)}function Pt(t){return function(e,n,r){var o=!1,i=0,a=null;$t(t,(function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){o=!0,i++;var c,u=Mt((function(e){var o;((o=e).__esModule||Ut&&"Module"===o[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Q.extend(e),n.components[s]=e,--i<=0&&r()})),f=Mt((function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=Lt(t)?t:new Error(e),r(a))}));try{c=t(u,f)}catch(t){f(t)}if(c)if("function"==typeof c.then)c.then(u,f);else{var l=c.component;l&&"function"==typeof l.then&&l.then(u,f)}}})),o||r()}}function $t(t,e){return Nt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Nt(t){return Array.prototype.concat.apply([],t)}var Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Mt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Dt=function(t,e){this.router=t,this.base=function(t){if(!t)if(nt){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=E,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Ft(t,e,n,r){var o=$t(t,(function(t,r,o,i){var a=function(t,e){"function"!=typeof t&&(t=Q.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,o,i)})):n(a,r,o,i)}));return Nt(r?o.reverse():o)}function Bt(t,e){if(e)return function(){return t.apply(e,arguments)}}Dt.prototype.listen=function(t){this.cb=t},Dt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Dt.prototype.onError=function(t){this.errorCbs.push(t)},Dt.prototype.transitionTo=function(t,e,n){var r,o=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var i=this.current;this.confirmTransition(r,(function(){o.updateRoute(r),e&&e(r),o.ensureURL(),o.router.afterHooks.forEach((function(t){t&&t(r,i)})),o.ready||(o.ready=!0,o.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!o.ready&&(Rt(t,St.redirected)&&i===E||(o.ready=!0,o.readyErrorCbs.forEach((function(e){e(t)}))))}))},Dt.prototype.confirmTransition=function(t,e,n){var r=this,o=this.current;this.pending=t;var i,a,s=function(t){!Rt(t)&&Lt(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},c=t.matched.length-1,u=o.matched.length-1;if(C(t,o)&&c===u&&t.matched[c]===o.matched[u])return this.ensureURL(),t.hash&&ht(this.router,o,t,!1),s(((a=Tt(i=o,t,St.duplicated,'Avoided redundant navigation to current location: "'+i.fullPath+'".')).name="NavigationDuplicated",a));var f=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n0)){var e=this.router,n=e.options.scrollBehavior,r=Et&&n;r&&this.listeners.push(dt());var o=function(){var n=t.current,o=Ht(t.base);t.current===E&&o===t._startLocation||t.transitionTo(o,(function(t){r&&ht(e,t,n,!0)}))};window.addEventListener("popstate",o),this.listeners.push((function(){window.removeEventListener("popstate",o)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){xt(L(r.base+t.fullPath)),ht(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){At(L(r.base+t.fullPath)),ht(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(Ht(this.base)!==this.current.fullPath){var e=L(this.base+this.current.fullPath);t?xt(e):At(e)}},e.prototype.getCurrentLocation=function(){return Ht(this.base)},e}(Dt);function Ht(t){var e=window.location.pathname,n=e.toLowerCase(),r=t.toLowerCase();return!t||n!==r&&0!==n.indexOf(L(r+"/"))||(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Gt=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=Ht(t);if(!/^\/#/.test(e))return window.location.replace(L(t+"/#"+e)),!0}(this.base)||Vt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=Et&&e;n&&this.listeners.push(dt());var r=function(){var e=t.current;Vt()&&t.transitionTo(qt(),(function(r){n&&ht(t.router,r,e,!0),Et||Yt(r.fullPath)}))},o=Et?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){Wt(t.fullPath),ht(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){Yt(t.fullPath),ht(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;qt()!==e&&(t?Wt(e):Yt(e))},e.prototype.getCurrentLocation=function(){return qt()},e}(Dt);function Vt(){var t=qt();return"/"===t.charAt(0)||(Yt("/"+t),!1)}function qt(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Xt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Wt(t){Et?xt(Xt(t)):window.location.hash=t}function Yt(t){Et?At(Xt(t)):window.location.replace(Xt(t))}var Kt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){Rt(t,St.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Dt),Jt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=it(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Et&&!1!==t.fallback,this.fallback&&(e="hash"),nt||(e="abstract"),this.mode=e,e){case"history":this.history=new zt(this,t.base);break;case"hash":this.history=new Gt(this,t.base,this.fallback);break;case"abstract":this.history=new Kt(this,t.base);break;default:0}},Qt={currentRoute:{configurable:!0}};function Zt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Jt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Qt.currentRoute.get=function(){return this.history&&this.history.current},Jt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof zt||n instanceof Gt){var r=function(t){n.setupListeners(),function(t){var r=n.current,o=e.options.scrollBehavior;Et&&o&&"fullPath"in t&&ht(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Jt.prototype.beforeEach=function(t){return Zt(this.beforeHooks,t)},Jt.prototype.beforeResolve=function(t){return Zt(this.resolveHooks,t)},Jt.prototype.afterEach=function(t){return Zt(this.afterHooks,t)},Jt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Jt.prototype.onError=function(t){this.history.onError(t)},Jt.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Jt.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Jt.prototype.go=function(t){this.history.go(t)},Jt.prototype.back=function(){this.go(-1)},Jt.prototype.forward=function(){this.go(1)},Jt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Jt.prototype.resolve=function(t,e,n){var r=J(t,e=e||this.history.current,n,this),o=this.match(r,e),i=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?L(t+"/"+r):r}(this.history.base,i,this.mode),normalizedTo:r,resolved:o}},Jt.prototype.getRoutes=function(){return this.matcher.getRoutes()},Jt.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==E&&this.history.transitionTo(this.history.getCurrentLocation())},Jt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==E&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Jt.prototype,Qt),Jt.install=function t(e){if(!t.installed||Q!==e){t.installed=!0,Q=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",j),e.component("RouterLink",tt);var o=e.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},Jt.version="3.5.3",Jt.isNavigationFailure=Rt,Jt.NavigationFailureType=St,Jt.START_LOCATION=E,nt&&window.Vue&&window.Vue.use(Jt);var te=Jt,ee=o(7),ne=function(){return Promise.all([o.e(0),o.e(11),o.e(9)]).then(o.bind(null,610))},re=function(){return Promise.all([o.e(0),o.e(10),o.e(3)]).then(o.bind(null,609))};i.default.use(te);var oe=new te({mode:"history",base:Object(ee.generateUrl)(""),linkActiveClass:"active",routes:[{path:"/:index(index.php/)?settings/users",component:ne,props:!0,name:"users",children:[{path:":selectedGroup",name:"group",component:ne}]},{path:"/:index(index.php/)?settings/apps",component:re,props:!0,name:"apps",children:[{path:":category",name:"apps-category",component:re,children:[{path:":id",name:"apps-details",component:re}]}]}]}),ie=o(392),ae=o(23),se=o.n(ae),ce=o(56),ue=o.n(ce),fe=function(t){return t.replace(/\/$/,"")},le=function(){return ue()()},pe=function(t,e){return se.a.get(fe(t),e)},de=function(t,e){return se.a.post(fe(t),e)},he=function(t,e){return se.a.put(fe(t),e)},ve=function(t,e){return se.a.delete(fe(t),{params:e})},me=function(t,e){return 1===e?t.sort((function(t,e){return t.usercount-t.disabled=0&&t.groups.splice(n,1)},addUserGroup:function(t,e){var n=e.userid,r=e.gid,o=t.groups.find((function(t){return t.id===r})),i=t.users.find((function(t){return t.id===n}));o&&i.enabled&&t.userCount>0&&o.usercount++,i.groups.push(r),t.groups=me(t.groups,t.orderBy)},removeUserGroup:function(t,e){var n=e.userid,r=e.gid,o=t.groups.find((function(t){return t.id===r})),i=t.users.find((function(t){return t.id===n}));o&&i.enabled&&t.userCount>0&&o.usercount--;var a=i.groups;a.splice(a.indexOf(r),1),t.groups=me(t.groups,t.orderBy)},addUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;t.users.find((function(t){return t.id===n})).subadmin.push(r)},removeUserSubAdmin:function(t,e){var n=e.userid,r=e.gid,o=t.users.find((function(t){return t.id===n})).subadmin;o.splice(o.indexOf(r),1)},deleteUser:function(t,e){var n=t.users.findIndex((function(t){return t.id===e}));t.users.splice(n,1)},addUserData:function(t,e){t.users.push(e.data.ocs.data)},enableDisableUser:function(t,e){var n=e.userid,r=e.enabled,o=t.users.find((function(t){return t.id===n}));o.enabled=r,t.userCount>0&&(t.groups.find((function(t){return"disabled"===t.id})).usercount+=r?-1:1,t.userCount+=r?1:-1,o.groups.forEach((function(e){t.groups.find((function(t){return t.id===e})).disabled+=r?-1:1})))},setUserData:function(t,e){var n=e.userid,r=e.key,o=e.value;if("quota"===r){var i=OC.Util.computerFileSize(o);t.users.find((function(t){return t.id===n}))[r][r]=null!==i?i:o}else t.users.find((function(t){return t.id===n}))[r]=o},resetUsers:function(t){t.users=[],t.usersOffset=0}},be=se.a.CancelToken,_e=null,we={state:{users:[],groups:[],orderBy:1,minPasswordLength:0,usersOffset:0,usersLimit:25,userCount:0},mutations:ye,getters:{getUsers:function(t){return t.users},getGroups:function(t){return t.groups},getSubadminGroups:function(t){return t.groups.filter((function(t){return"admin"!==t.id&&"disabled"!==t.id}))},getPasswordPolicyMinLength:function(t){return t.minPasswordLength},getUsersOffset:function(t){return t.usersOffset},getUsersLimit:function(t){return t.usersLimit},getUserCount:function(t){return t.userCount}},actions:{getUsers:function(t,e){var n=e.offset,r=e.limit,o=e.search,i=e.group;return _e&&_e.cancel("Operation canceled by another search request."),_e=be.source(),o="string"==typeof o?o:"",""!==(i="string"==typeof i?i:"")?pe(Object(ee.generateOcsUrl)("cloud/groups/{group}/users/details?offset={offset}&limit={limit}&search={search}",{group:encodeURIComponent(i),offset:n,limit:r,search:o}),{cancelToken:_e.token}).then((function(e){var n=Object.keys(e.data.ocs.data.users).length;return n>0&&t.commit("appendUsers",e.data.ocs.data.users),n})).catch((function(e){se.a.isCancel(e)||t.commit("API_FAILURE",e)})):pe(Object(ee.generateOcsUrl)("cloud/users/details?offset={offset}&limit={limit}&search={search}",{offset:n,limit:r,search:o}),{cancelToken:_e.token}).then((function(e){var n=Object.keys(e.data.ocs.data.users).length;return n>0&&t.commit("appendUsers",e.data.ocs.data.users),n})).catch((function(e){se.a.isCancel(e)||t.commit("API_FAILURE",e)}))},getGroups:function(t,e){var n=e.offset,r=e.limit,o=e.search;o="string"==typeof o?o:"";var i=-1===r?"":"&limit=".concat(r);return pe(Object(ee.generateOcsUrl)("cloud/groups?offset={offset}&search={search}",{offset:n,search:o})+i).then((function(e){return 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((function(e){return t.commit("API_FAILURE",e)}))},getUsersFromList:function(t,e){var n=e.offset,r=e.limit,o=e.search;return o="string"==typeof o?o:"",pe(Object(ee.generateOcsUrl)("cloud/users/details?offset={offset}&limit={limit}&search={search}",{offset:n,limit:r,search:o})).then((function(e){return Object.keys(e.data.ocs.data.users).length>0&&(t.commit("appendUsers",e.data.ocs.data.users),!0)})).catch((function(e){return t.commit("API_FAILURE",e)}))},getUsersFromGroup:function(t,e){var n=e.groupid,r=e.offset,o=e.limit;return pe(Object(ee.generateOcsUrl)("cloud/users/{groupId}/details?offset={offset}&limit={limit}",{groupId:encodeURIComponent(n),offset:r,limit:o})).then((function(e){return t.commit("getUsersFromList",e.data.ocs.data.users)})).catch((function(e){return t.commit("API_FAILURE",e)}))},getPasswordPolicyMinLength:function(t){return!(!OC.getCapabilities().password_policy||!OC.getCapabilities().password_policy.minLength)&&(t.commit("setPasswordPolicyMinLength",OC.getCapabilities().password_policy.minLength),OC.getCapabilities().password_policy.minLength)},addGroup:function(t,e){return le().then((function(n){return de(Object(ee.generateOcsUrl)("cloud/groups"),{groupid:e}).then((function(n){return t.commit("addGroup",{gid:e,displayName:e}),{gid:e,displayName:e}})).catch((function(t){throw t}))})).catch((function(n){throw t.commit("API_FAILURE",{gid:e,error:n}),n}))},removeGroup:function(t,e){return le().then((function(n){return ve(Object(ee.generateOcsUrl)("cloud/groups/{groupId}",{groupId:encodeURIComponent(e)})).then((function(n){return t.commit("removeGroup",e)})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{gid:e,error:n})}))},addUserGroup:function(t,e){var n=e.userid,r=e.gid;return le().then((function(e){return de(Object(ee.generateOcsUrl)("cloud/users/{userid}/groups",{userid:n}),{groupid:r}).then((function(e){return t.commit("addUserGroup",{userid:n,gid:r})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})}))},removeUserGroup:function(t,e){var n=e.userid,r=e.gid;return le().then((function(e){return ve(Object(ee.generateOcsUrl)("cloud/users/{userid}/groups",{userid:n}),{groupid:r}).then((function(e){return t.commit("removeUserGroup",{userid:n,gid:r})})).catch((function(t){throw t}))})).catch((function(e){throw t.commit("API_FAILURE",{userid:n,error:e}),e}))},addUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;return le().then((function(e){return de(Object(ee.generateOcsUrl)("cloud/users/{userid}/subadmins",{userid:n}),{groupid:r}).then((function(e){return t.commit("addUserSubAdmin",{userid:n,gid:r})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})}))},removeUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;return le().then((function(e){return ve(Object(ee.generateOcsUrl)("cloud/users/{userid}/subadmins",{userid:n}),{groupid:r}).then((function(e){return t.commit("removeUserSubAdmin",{userid:n,gid:r})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})}))},wipeUserDevices:function(t,e){return le().then((function(t){return de(Object(ee.generateOcsUrl)("cloud/users/{userid}/wipe",{userid:e})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{userid:e,error:n})}))},deleteUser:function(t,e){return le().then((function(n){return ve(Object(ee.generateOcsUrl)("cloud/users/{userid}",{userid:e})).then((function(n){return t.commit("deleteUser",e)})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{userid:e,error:n})}))},addUser:function(t,e){var n=t.commit,r=t.dispatch,o=e.userid,i=e.password,a=e.displayName,s=e.email,c=e.groups,u=e.subadmin,f=e.quota,l=e.language;return le().then((function(t){return de(Object(ee.generateOcsUrl)("cloud/users"),{userid:o,password:i,displayName:a,email:s,groups:c,subadmin:u,quota:f,language:l}).then((function(t){return r("addUserData",o||t.data.ocs.data.id)})).catch((function(t){throw t}))})).catch((function(t){throw n("API_FAILURE",{userid:o,error:t}),t}))},addUserData:function(t,e){return le().then((function(n){return pe(Object(ee.generateOcsUrl)("cloud/users/{userid}",{userid:e})).then((function(e){return t.commit("addUserData",e)})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{userid:e,error:n})}))},enableDisableUser:function(t,e){var n=e.userid,r=e.enabled,o=void 0===r||r,i=o?"enable":"disable";return le().then((function(e){return he(Object(ee.generateOcsUrl)("cloud/users/{userid}/{userStatus}",{userid:n,userStatus:i})).then((function(e){return t.commit("enableDisableUser",{userid:n,enabled:o})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})}))},setUserData:function(t,e){var n=e.userid,r=e.key,o=e.value,i=["email","displayname"];return-1!==["email","language","quota","displayname","password"].indexOf(r)&&"string"==typeof o&&(-1===i.indexOf(r)&&o.length>0||-1!==i.indexOf(r))?le().then((function(e){return he(Object(ee.generateOcsUrl)("cloud/users/{userid}",{userid:n}),{key:r,value:o}).then((function(e){return t.commit("setUserData",{userid:n,key:r,value:o})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})})):Promise.reject(new Error("Invalid request data"))},sendWelcomeMail:function(t,e){return le().then((function(t){return de(Object(ee.generateOcsUrl)("cloud/users/{userid}/welcome",{userid:e})).then((function(t){return!0})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{userid:e,error:n})}))}}},Oe={state:{apps:[],categories:[],updateCount:0,loading:{},loadingList:!1},mutations:{APPS_API_FAILURE:function(e,n){OC.Notification.showHtml(t("settings","An error occured during the request. Unable to proceed.")+"
"+n.error.response.data.data.message,{timeout:7}),console.error(e,n)},initCategories:function(t,e){var n=e.categories,r=e.updateCount;t.categories=n,t.updateCount=r},setUpdateCount:function(t,e){t.updateCount=e},addCategory:function(t,e){t.categories.push(e)},appendCategories:function(t,e){t.categories=e},setAllApps:function(t,e){t.apps=e},setError:function(t,e){var n=e.appId,r=e.error;Array.isArray(n)||(n=[n]),n.forEach((function(e){t.apps.find((function(t){return t.id===e})).error=r}))},clearError:function(t,e){var n=e.appId;e.error;t.apps.find((function(t){return t.id===n})).error=null},enableApp:function(t,e){var n=e.appId,r=e.groups,o=t.apps.find((function(t){return t.id===n}));o.active=!0,o.groups=r},disableApp:function(t,e){var n=t.apps.find((function(t){return t.id===e}));n.active=!1,n.groups=[],n.removable&&(n.canUnInstall=!0)},uninstallApp:function(t,e){t.apps.find((function(t){return t.id===e})).active=!1,t.apps.find((function(t){return t.id===e})).groups=[],t.apps.find((function(t){return t.id===e})).needsDownload=!0,t.apps.find((function(t){return t.id===e})).installed=!1,t.apps.find((function(t){return t.id===e})).canUnInstall=!1,t.apps.find((function(t){return t.id===e})).canInstall=!0},updateApp:function(t,e){var n=t.apps.find((function(t){return t.id===e})),r=n.update;n.update=null,n.version=r,t.updateCount--},resetApps:function(t){t.apps=[]},reset:function(t){t.apps=[],t.categories=[],t.updateCount=0},startLoading:function(t,e){Array.isArray(e)?e.forEach((function(e){i.default.set(t.loading,e,!0)})):i.default.set(t.loading,e,!0)},stopLoading:function(t,e){Array.isArray(e)?e.forEach((function(e){i.default.set(t.loading,e,!1)})):i.default.set(t.loading,e,!1)}},getters:{loading:function(t){return function(e){return t.loading[e]}},getCategories:function(t){return t.categories},getAllApps:function(t){return t.apps},getUpdateCount:function(t){return t.updateCount}},actions:{enableApp:function(e,n){var r,o=n.appId,i=n.groups;return r=Array.isArray(o)?o:[o],le().then((function(n){return e.commit("startLoading",r),e.commit("startLoading","install"),de(Object(ee.generateUrl)("settings/apps/enable"),{appIds:r,groups:i}).then((function(n){return e.commit("stopLoading",r),e.commit("stopLoading","install"),r.forEach((function(t){e.commit("enableApp",{appId:t,groups:i})})),pe(Object(ee.generateUrl)("apps/files")).then((function(){n.data.update_required&&(OC.dialogs.info(t("settings","The app has been enabled but needs to be updated. You will be redirected to the update page in 5 seconds."),t("settings","App update"),(function(){window.location.reload()}),!0),setTimeout((function(){location.reload()}),5e3))})).catch((function(){Array.isArray(o)||e.commit("setError",{appId:r,error:t("settings","Error: This app cannot be enabled because it makes the server unstable")})}))})).catch((function(t){e.commit("stopLoading",r),e.commit("stopLoading","install"),e.commit("setError",{appId:r,error:t.response.data.data.message}),e.commit("APPS_API_FAILURE",{appId:o,error:t})}))})).catch((function(t){return e.commit("API_FAILURE",{appId:o,error:t})}))},forceEnableApp:function(t,e){var n,r=e.appId;e.groups;return n=Array.isArray(r)?r:[r],le().then((function(){return t.commit("startLoading",n),t.commit("startLoading","install"),de(Object(ee.generateUrl)("settings/apps/force"),{appId:r}).then((function(t){location.reload()})).catch((function(e){t.commit("stopLoading",n),t.commit("stopLoading","install"),t.commit("setError",{appId:n,error:e.response.data.data.message}),t.commit("APPS_API_FAILURE",{appId:r,error:e})}))})).catch((function(e){return t.commit("API_FAILURE",{appId:r,error:e})}))},disableApp:function(t,e){var n,r=e.appId;return n=Array.isArray(r)?r:[r],le().then((function(e){return t.commit("startLoading",n),de(Object(ee.generateUrl)("settings/apps/disable"),{appIds:n}).then((function(e){return t.commit("stopLoading",n),n.forEach((function(e){t.commit("disableApp",e)})),!0})).catch((function(e){t.commit("stopLoading",n),t.commit("APPS_API_FAILURE",{appId:r,error:e})}))})).catch((function(e){return t.commit("API_FAILURE",{appId:r,error:e})}))},uninstallApp:function(t,e){var n=e.appId;return le().then((function(e){return t.commit("startLoading",n),pe(Object(ee.generateUrl)("settings/apps/uninstall/".concat(n))).then((function(e){return t.commit("stopLoading",n),t.commit("uninstallApp",n),!0})).catch((function(e){t.commit("stopLoading",n),t.commit("APPS_API_FAILURE",{appId:n,error:e})}))})).catch((function(e){return t.commit("API_FAILURE",{appId:n,error:e})}))},updateApp:function(t,e){var n=e.appId;return le().then((function(e){return t.commit("startLoading",n),t.commit("startLoading","install"),pe(Object(ee.generateUrl)("settings/apps/update/".concat(n))).then((function(e){return t.commit("stopLoading","install"),t.commit("stopLoading",n),t.commit("updateApp",n),!0})).catch((function(e){t.commit("stopLoading",n),t.commit("stopLoading","install"),t.commit("APPS_API_FAILURE",{appId:n,error:e})}))})).catch((function(e){return t.commit("API_FAILURE",{appId:n,error:e})}))},getAllApps:function(t){return t.commit("startLoading","list"),pe(Object(ee.generateUrl)("settings/apps/list")).then((function(e){return t.commit("setAllApps",e.data.apps),t.commit("stopLoading","list"),!0})).catch((function(e){return t.commit("API_FAILURE",e)}))},getCategories:function(t){return t.commit("startLoading","categories"),pe(Object(ee.generateUrl)("settings/apps/categories")).then((function(e){return e.data.length>0&&(t.commit("appendCategories",e.data),t.commit("stopLoading","categories"),!0)})).catch((function(e){return t.commit("API_FAILURE",e)}))}}},Ee={state:{serverData:{}},mutations:{setServerData:function(t,e){t.serverData=e}},getters:{getServerData:function(t){return t.serverData}},actions:{}},xe={state:{},mutations:{},getters:{},actions:{setAppConfig:function(t,e){var n=e.app,r=e.key,o=e.value;return le().then((function(t){return de(Object(ee.generateOcsUrl)("apps/provisioning_api/api/v1/config/apps/{app}/{key}",{app:n,key:r}),{value:o}).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{app:n,key:r,value:o,error:e})}))}}}; /** * @copyright Copyright (c) 2018 John Molakvoæ * @@ -83,4 +83,4 @@ i.default.use(ie.a);var Ae={API_FAILURE:function(e,n){try{var r=n.error.response * */ i.default.use(a.default,{defaultHtml:!1}),Object(s.sync)(Ce,oe),o.nc=btoa(OC.requestToken),o.p=OC.linkTo("settings","js/"),i.default.prototype.t=t,i.default.prototype.n=n,i.default.prototype.OC=OC,i.default.prototype.OCA=OCA,i.default.prototype.oc_userconfig=oc_userconfig;var Se=new i.default({router:oe,store:Ce,render:function(t){return t(f)}}).$mount("#content")}]); -//# sourceMappingURL=vue-settings-apps-users-management.js.map?v=971cf0479d83873d3851 \ No newline at end of file +//# sourceMappingURL=vue-settings-apps-users-management.js.map?v=ee876217e64a687f8e75 \ No newline at end of file -- cgit v1.2.3