nextcloud/settings/js/settings-vue.js

92 lines
134 KiB
JavaScript
Raw Normal View History

!function(t){function n(n){for(var e,o,i=n[0],a=n[1],s=0,c=[];s<i.length;s++)o=i[s],r[o]&&c.push(r[o][0]),r[o]=0;for(e in a)Object.prototype.hasOwnProperty.call(a,e)&&(t[e]=a[e]);for(u&&u(n);c.length;)c.shift()()}var e={},r={2:0};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(t){var n=[],e=r[t];if(0!==e)if(e)n.push(e[2]);else{var i=new Promise(function(n,o){e=r[t]=[n,o]});n.push(e[2]=i);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.src=function(t){return o.p+""+({}[t]||t)+".js"}(t),a=function(n){s.onerror=s.onload=null,clearTimeout(u);var e=r[t];if(0!==e){if(e){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src,a=new Error("Loading chunk "+t+" failed.\n("+o+": "+i+")");a.type=o,a.request=i,e[1](a)}r[t]=void 0}};var u=setTimeout(function(){a({type:"timeout",target:s})},12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(n)},o.m=t,o.c=e,o.d=function(t,n,e){o.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,n){if(1&n&&(t=o(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)o.d(e,r,function(n){return t[n]}.bind(null,r));return e},o.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(n,"a",n),n},o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.p="/",o.oe=function(t){throw console.error(t),t};var i=window.webpackJsonp=window.webpackJsonp||[],a=i.push.bind(i);i.push=n,i=i.slice();for(var s=0;s<i.length;s++)n(i[s]);var u=a;o(o.s=43)}([function(t,n,e){"use strict";var r=e(3),o=e.n(r),i=e(38),a=e.n(i),s=function(t){return t.replace(/\/$/,"")};n.a={requireAdmin:function(){return a()()},get:function(t){return o.a.get(s(t))},post:function(t,n){return o.a.post(s(t),n)},patch:function(t,n){return o.a.patch(s(t),n)},put:function(t,n){return o.a.put(s(t),n)},delete:function(t,n){return o.a.delete(s(t),{data:n})}}},function(t,n,e){"use strict";var r=e(8),o=e(19),i=Object.prototype.toString;function a(t){return"[object Array]"===i.call(t)}function s(t){return null!==t&&"object"==typeof t}function u(t){return"[object Function]"===i.call(t)}function c(t,n){if(null!=t)if("object"!=typeof t&&(t=[t]),a(t))for(var e=0,r=t.length;e<r;e++)n.call(null,t[e],e,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&n.call(null,t[o],o,t)}t.exports={isArray:a,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:u,isStream:function(t){return s(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function t(){var n={};function e(e,r){"object"==typeof n[r]&&"object"==typeof e?n[r]=t(n[r],e):n[r]=e}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],e);return n},extend:function(t,n,e){return c(n,function(n,o){t[o]=e&&"function"==typeof n?r(n,e):n}),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}
/*!
* Vue.js v2.5.21
* (c) 2014-2018 Evan You
* Released under the MIT License.
*/
var r=Object.freeze({});function o(t){return null==t}function i(t){return null!=t}function a(t){return!0===t}function s(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function u(t){return null!==t&&"object"==typeof t}var c=Object.prototype.toString;function f(t){return"[object Object]"===c.call(t)}function p(t){return"[object RegExp]"===c.call(t)}function l(t){var n=parseFloat(String(t));return n>=0&&Math.floor(n)===n&&isFinite(t)}function d(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function h(t){var n=parseFloat(t);return isNaN(n)?t:n}function v(t,n){for(var e=Object.create(null),r=t.split(","),o=0;o<r.length;o++)e[r[o]]=!0;return n?function(t){return e[t.toLowerCase()]}:function(t){return e[t]}}v("slot,component",!0);var m=v("key,ref,slot,slot-scope,is");function y(t,n){if(t.length){var e=t.indexOf(n);if(e>-1)return t.splice(e,1)}}var g=Object.prototype.hasOwnProperty;function _(t,n){return g.call(t,n)}function b(t){var n=Object.create(null);return function(e){return n[e]||(n[e]=t(e))}}var w=/-(\w)/g,A=b(function(t){return t.replace(w,function(t,n){return n?n.toUpperCase():""})}),C=b(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),O=/\B([A-Z])/g,x=b(function(t){return t.replace(O,"-$1").toLowerCase()});var E=Function.prototype.bind?function(t,n){return t.bind(n)}:function(t,n){function e(e){var r=arguments.length;return r?r>1?t.apply(n,arguments):t.call(n,e):t.call(n)}return e._length=t.length,e};function T(t,n){n=n||0;for(var e=t.length-n,r=new Array(e);e--;)r[e]=t[e+n];return r}function S(t,n){for(var e in n)t[e]=n[e];return t}function I(t){for(var n={},e=0;e<t.length;e++)t[e]&&S(n,t[e]);return n}function L(t,n,e){}var $=function(t,n,e){return!1},U=function(t){return t};function P(t,n){if(t===n)return!0;var e=u(t),r=u(n);if(!e||!r)return!e&&!r&&String(t)===String(n);try{var o=Array.isArray(t),i=Array.isArray(n);if(o&&i)return t.length===n.length&&t.every(function(t,e){return P(t,n[e])});if(t instanceof Date&&n instanceof Date)return t.getTime()===n.getTime();if(o||i)return!1;var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(e){return P(t[e],n[e])})}catch(t){return!1}}function j(t,n){for(var e=0;e<t.length;e++)if(P(t[e],n))return e;return-1}function M(t){var n=!1;return function(){n||(n=!0,t.apply(this,arguments))}}var q="data-server-rendered",F=["component","directive","filter"],R=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],k={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:$,isReservedAttr:$,isUnknownElement:$,getTagNamespace:L,parsePlatformTagName:U,mustUseProp:$,async:!0,_lifecycleHooks:R};function B(t,n,e,r){Object.defineProperty(t,n,{value:e,enumerable:!!r,writable:!0,configurable:!0})}var D=/[^\w.$]/;var H,G="__proto__"in{},X="undefined"!=typeof window,W="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,z=W&&WXEnvironment.platform.toLowerCase(),J=X&&window.navigator.userAgent.toLowerCase(),N=J&&/msie|trident/.test(J),K=J&&J.indexOf("msie 9.0")>0,Y=J&&J.indexOf("edge/")>0,Z=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===z),V=(J&&/chrome\/\d+/.test(J),{}.watch),Q=!1;if(X)try{var tt={};Object.defineProperty(tt,"passive",{get:function(){Q=!0}}),window.addEventListener("test-passive",null,tt)}catch(t){}var nt=function(){return void 0===H&&(H=!X&&!W&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),H},et=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function rt(t){return"function"==typeof t&&/native code/.test(t.toString())}var ot,it="undefined"!=typeof Symbol&&rt(Symbol)&&"undefined"!=typeof Reflect&&rt(Reflect.ownKeys);ot="undefined"!=typeof Set&&rt(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
t.exports=function(t){return null!=t&&(e(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&e(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,n,e){"use strict";var r=e(5),o=e(1),i=e(29),a=e(30);function s(t){this.defaults=t,this.interceptors={request:new i,response:new i}}s.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),(t=o.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var n=[a,void 0],e=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){n.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){n.push(t.fulfilled,t.rejected)});n.length;)e=e.then(n.shift(),n.shift());return e},o.forEach(["delete","get","head","options"],function(t){s.prototype[t]=function(n,e){return this.request(o.merge(e||{},{method:t,url:n}))}}),o.forEach(["post","put","patch"],function(t){s.prototype[t]=function(n,e,r){return this.request(o.merge(r||{},{method:t,url:n,data:e}))}}),t.exports=s},function(t,n,e){"use strict";var r=e(1);t.exports=function(t,n){r.forEach(t,function(e,r){r!==n&&r.toUpperCase()===n.toUpperCase()&&(t[n]=e,delete t[r])})}},function(t,n,e){"use strict";var r=e(10);t.exports=function(t,n,e){var o=e.config.validateStatus;e.status&&o&&!o(e.status)?n(r("Request failed with status code "+e.status,e.config,null,e.request,e)):t(e)}},function(t,n,e){"use strict";t.exports=function(t,n,e,r,o){return t.config=n,e&&(t.code=e),t.request=r,t.response=o,t}},function(t,n,e){"use strict";var r=e(1);function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,n,e){if(!n)return t;var i;if(e)i=e(n);else if(r.isURLSearchParams(n))i=n.toString();else{var a=[];r.forEach(n,function(t,n){null!=t&&(r.isArray(t)?n+="[]":t=[t],r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(n)+"="+o(t))}))}),i=a.join("&")}return i&&(t+=(-1===t.indexOf("?")?"?":"&")+i),t}},function(t,n,e){"use strict";var r=e(1),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var n,e,i,a={};return t?(r.forEach(t.split("\n"),function(t){if(i=t.indexOf(":"),n=r.trim(t.substr(0,i)).toLowerCase(),e=r.trim(t.substr(i+1)),n){if(a[n]&&o.indexOf(n)>=0)return;a[n]="set-cookie"===n?(a[n]?a[n]:[]).concat([e]):a[n]?a[n]+", "+e:e}}),a):a}},function(t,n,e){"use strict";var r=e(1);t.exports=r.isStandardBrowserEnv()?function(){var t,n=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");function o(t){var r=t;return n&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return t=o(window.location.href),function(n){var e=r.isString(n)?o(n):n;return e.protocol===t.protocol&&e.host===t.host}}():function(){return!0}},function(t,n,e){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function o(){this.message="String contains an invalid character"}o.prototype=new Error,o.prototype.code=5,o.prototype.name="InvalidCharacterError",t.exports=function(t){for(var n,e,i=String(t),a="",s=0,u=r;i.charAt(0|s)||(u="=",s%1);a+=u.charAt(63&n>>8-s%1*8)){if((e=i.charCodeAt(s+=.75))>255)throw new o;n=n<<8|e}return a}},function(t,n,e){"use strict";var r=e(1);t.exports=r.isStandardBrowserEnv()?{write:function(t,n,e,o,i,a){var s=[];s.push(t+"="+encodeURIComponent(n)),r.isNumber(e)&&s.push("expires="+new Date(e).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var
/*!
* vue-router v3.0.2
* (c) 2018 Evan You
* @license MIT
*/function p(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function l(t,n){for(var e in n)t[e]=n[e];return t}var d={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,n){var e=n.props,r=n.children,o=n.parent,i=n.data;i.routerView=!0;for(var a=o.$createElement,s=e.name,u=o.$route,c=o._routerViewCache||(o._routerViewCache={}),f=0,p=!1;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&f++,o._inactive&&(p=!0),o=o.$parent;if(i.routerViewDepth=f,p)return a(c[s],i,r);var d=u.matched[f];if(!d)return c[s]=null,a();var h=c[s]=d.components[s];i.registerRouteInstance=function(t,n){var e=d.instances[s];(n&&e!==t||!n&&e===t)&&(d.instances[s]=n)},(i.hook||(i.hook={})).prepatch=function(t,n){d.instances[s]=n.componentInstance};var v=i.props=function(t,n){switch(typeof n){case"undefined":return;case"object":return n;case"function":return n(t);case"boolean":return n?t.params:void 0;default:0}}(u,d.props&&d.props[s]);if(v){v=i.props=l({},v);var m=i.attrs=i.attrs||{};for(var y in v)h.props&&y in h.props||(m[y]=v[y],delete v[y])}return a(h,i,r)}};var h=/[!'()*]/g,v=function(t){return"%"+t.charCodeAt(0).toString(16)},m=/%2C/g,y=function(t){return encodeURIComponent(t).replace(h,v).replace(m,",")},g=decodeURIComponent;function _(t){var n={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var e=t.replace(/\+/g," ").split("="),r=g(e.shift()),o=e.length>0?g(e.join("=")):null;void 0===n[r]?n[r]=o:Array.isArray(n[r])?n[r].push(o):n[r]=[n[r],o]}),n):n}function b(t){var n=t?Object.keys(t).map(function(n){var e=t[n];if(void 0===e)return"";if(null===e)return y(n);if(Array.isArray(e)){var r=[];return e.forEach(function(t){void 0!==t&&(null===t?r.push(y(n)):r.push(y(n)+"="+y(t)))}),r.join("&")}return y(n)+"="+y(e)}).filter(function(t){return t.length>0}).join("&"):null;return n?"?"+n:""}var w=/\/?$/;function A(t,n,e,r){var o=r&&r.options.stringifyQuery,i=n.query||{};try{i=C(i)}catch(t){}var a={name:n.name||t&&t.name,meta:t&&t.meta||{},path:n.path||"/",hash:n.hash||"",query:i,params:n.params||{},fullPath:E(n,o),matched:t?x(t):[]};return e&&(a.redirectedFrom=E(e,o)),Object.freeze(a)}function C(t){if(Array.isArray(t))return t.map(C);if(t&&"object"==typeof t){var n={};for(var e in t)n[e]=C(t[e]);return n}return t}var O=A(null,{path:"/"});function x(t){for(var n=[];t;)n.unshift(t),t=t.parent;return n}function E(t,n){var e=t.path,r=t.query;void 0===r&&(r={});var o=t.hash;return void 0===o&&(o=""),(e||"/")+(n||b)(r)+o}function T(t,n){return n===O?t===n:!!n&&(t.path&&n.path?t.path.replace(w,"")===n.path.replace(w,"")&&t.hash===n.hash&&S(t.query,n.query):!(!t.name||!n.name)&&(t.name===n.name&&t.hash===n.hash&&S(t.query,n.query)&&S(t.params,n.params)))}function S(t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),!t||!n)return t===n;var e=Object.keys(t),r=Object.keys(n);return e.length===r.length&&e.every(function(e){var r=t[e],o=n[e];return"object"==typeof r&&"object"==typeof o?S(r,o):String(r)===String(o)})}var I,L=[String,Object],$=[String,Array],U={name:"RouterLink",props:{to:{type:L,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:$,default:"click"}},render:function(t){var n=this,e=this.$router,r=this.$route,o=e.resolve(this.to,r,this.append),i=o.location,a=o.route,s=o.href,u={},c=e.options.linkActiveClass,f=e.options.linkExactActiveClass,p=null==c?"router-link-active":c,d=null==f?"router-link-exact-active":f,h=null==this.activeClass?p:this.activeClass,v=null==this.exactActiveClass?d:this.exactActiveClass,m=i.path?A(null,i,null,e):a;u[v]=T(r,m),u[h]=this.exact?u[v]:function(t,n){return 0===t.path.replace(w,"/").indexOf(n.path.replace(w,"/"))&&(!n.hash||t.hash===n.hash)&&function(t,n){for(var e in n)if(!(e in t))return!1;return!0}(t.query,n.query)}(r,m);var y=function(t){P(t)&&(n.replace?e.replace(i):e.push(i))},g={click:P};Array.isArray(this.event)?this.event.forEach(function(t){g[t]=y}):g[this.event]=y;var _={class:u};if("a"===this.tag)_.on=g,_.attrs={href:s};else{var b=
/*
* @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
* @author Julius Härtl <jus@bitgrid.net>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/o.a.use(Gt);var zt=new Gt({mode:"history",base:OC.generateUrl(""),linkActiveClass:"active",routes:[{path:"/:index(index.php/)?settings/users",component:Xt,props:!0,name:"users",children:[{path:":selectedGroup(.*)",name:"group",component:Xt}]},{path:"/:index(index.php/)?settings/apps",component:Wt,props:!0,name:"apps",children:[{path:":category",name:"apps-category",component:Wt,children:[{path:":id",name:"apps-details",component:Wt}]}]}]}),Jt=function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:e});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,n.call(this,t)}}function e(){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)}},Nt="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
/**
* vuex v3.0.1
* (c) 2017 Evan You
* @license MIT
*/function Kt(t,n){Object.keys(t).forEach(function(e){return n(t[e],e)})}var Yt=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var e=t.state;this.state=("function"==typeof e?e():e)||{}},Zt={namespaced:{configurable:!0}};Zt.namespaced.get=function(){return!!this._rawModule.namespaced},Yt.prototype.addChild=function(t,n){this._children[t]=n},Yt.prototype.removeChild=function(t){delete this._children[t]},Yt.prototype.getChild=function(t){return this._children[t]},Yt.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},Yt.prototype.forEachChild=function(t){Kt(this._children,t)},Yt.prototype.forEachGetter=function(t){this._rawModule.getters&&Kt(this._rawModule.getters,t)},Yt.prototype.forEachAction=function(t){this._rawModule.actions&&Kt(this._rawModule.actions,t)},Yt.prototype.forEachMutation=function(t){this._rawModule.mutations&&Kt(this._rawModule.mutations,t)},Object.defineProperties(Yt.prototype,Zt);var Vt=function(t){this.register([],t,!1)};Vt.prototype.get=function(t){return t.reduce(function(t,n){return t.getChild(n)},this.root)},Vt.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(t,e){return t+((n=n.getChild(e)).namespaced?e+"/":"")},"")},Vt.prototype.update=function(t){!function t(n,e,r){0;e.update(r);if(r.modules)for(var o in r.modules){if(!e.getChild(o))return void 0;t(n.concat(o),e.getChild(o),r.modules[o])}}([],this.root,t)},Vt.prototype.register=function(t,n,e){var r=this;void 0===e&&(e=!0);var o=new Yt(n,e);0===t.length?this.root=o:this.get(t.slice(0,-1)).addChild(t[t.length-1],o);n.modules&&Kt(n.modules,function(n,o){r.register(t.concat(o),n,e)})},Vt.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),e=t[t.length-1];n.getChild(e).runtime&&n.removeChild(e)};var Qt;var tn=function(t){var n=this;void 0===t&&(t={}),!Qt&&"undefined"!=typeof window&&window.Vue&&cn(window.Vue);var e=t.plugins;void 0===e&&(e=[]);var r=t.strict;void 0===r&&(r=!1);var o=t.state;void 0===o&&(o={}),"function"==typeof o&&(o=o()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Vt(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new Qt;var i=this,a=this.dispatch,s=this.commit;this.dispatch=function(t,n){return a.call(i,t,n)},this.commit=function(t,n,e){return s.call(i,t,n,e)},this.strict=r,an(this,o,[],this._modules.root),on(this,o),e.forEach(function(t){return t(n)}),Qt.config.devtools&&function(t){Nt&&(t._devtoolHook=Nt,Nt.emit("vuex:init",t),Nt.on("vuex:travel-to-state",function(n){t.replaceState(n)}),t.subscribe(function(t,n){Nt.emit("vuex:mutation",t,n)}))}(this)},nn={state:{configurable:!0}};function en(t,n){return n.indexOf(t)<0&&n.push(t),function(){var e=n.indexOf(t);e>-1&&n.splice(e,1)}}function rn(t,n){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var e=t.state;an(t,e,[],t._modules.root,!0),on(t,e,n)}function on(t,n,e){var r=t._vm;t.getters={};var o=t._wrappedGetters,i={};Kt(o,function(n,e){i[e]=function(){return n(t)},Object.defineProperty(t.getters,e,{get:function(){return t._vm[e]},enumerable:!0})});var a=Qt.config.silent;Qt.config.silent=!0,t._vm=new Qt({data:{$$state:n},computed:i}),Qt.config.silent=a,t.strict&&function(t){t._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}(t),r&&(e&&t._withCommit(function(){r._data.$$state=null}),Qt.nextTick(function(){return r.$destroy()}))}function an(t,n,e,r,o){var i=!e.length,a=t._modules.getNamespace(e);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!i&&!o){var s=sn(n,e.slice(0,-1)),u=e[e.length-1];t._withCommit(function(){Qt.set(s,u,r.state)})}var c=r.context=function(t,n,e){var r=""===n,o={dispatch:r?t.dispatch:function(e,r,o){var i=un(e,r,o),a=i.payloa
/*
* @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
* @author Julius Härtl <jus@bitgrid.net>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
o.a.use(yn);var xn={API_FAILURE:function(n,e){try{var r=e.error.response.data.ocs.meta.message;OC.Notification.showHtml(t("settings","An error occured during the request. Unable to proceed.")+"<br>"+r,{timeout:7})}catch(n){OC.Notification.showTemporary(t("settings","An error occured during the request. Unable to proceed."))}console.log(n,e)}},En=new yn.Store({modules:{users:wn,apps:An,settings:Cn,oc:On},strict:!1,mutations:xn});r.d(e,"app",function(){return Tn}),r.d(e,"router",function(){return zt}),r.d(e,"store",function(){return En}),
/**
* @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
Object(i.sync)(En,zt),r.nc=btoa(OC.requestToken),r.p=OC.linkTo("settings","js/"),o.a.prototype.t=t,o.a.prototype.OC=OC,o.a.prototype.OCA=OCA,o.a.prototype.oc_userconfig=oc_userconfig,o.a.prototype.oc_current_user=oc_current_user;var Tn=new o.a({router:zt,store:En,render:function(t){return t(f)}}).$mount("#content")}]);
//# sourceMappingURL=settings-vue.js.map