1
2
|
!function(){"use strict";var t,e={49983:function(t,e,n){var i=n(4820),r=n(79753);window.OC.Settings=window.OC.Settings||{},window.OC.Settings.Apps=window.OC.Settings.Apps||{rebuildNavigation:function(){return i.default.get((0,r.generateOcsUrl)("core/navigation",2)+"/apps?format=json").then((function(t){var e=t.data;if(200===e.ocs.meta.statuscode){var n={},i=e.ocs.data,r=document.querySelector("#navigation #apps ul");i.forEach((function(t){r.querySelector('li[data-id="'+t.id+'"]')||(n[t.id]=!0)})),r.querySelectorAll("li[data-id]").forEach((function(t,e){var n=t.dataset.id;(!i[e]||i[e]&&i[e].id!==n)&&(t.remove(),document.querySelector("#appmenu li[data-id=".concat(n,"]")).remove())}));var a={};i.forEach((function(t){if(null===r.querySelector('li[data-id="'.concat(t.id,'"]'))){var e=document.createElement("li");e.dataset.id=t.id;var i='<svg width="20" height="20" viewBox="0 0 20 20" alt="">\n\t\t\t\t\t <defs>\n\t\t\t\t\t <filter id="invertMenuMore-'.concat(t.id,'"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter>\n\t\t\t\t\t <mask id="hole">\n\t\t\t\t\t <rect width="100%" height="100%" fill="white"></rect>\n\t\t\t\t\t\t<circle r="4.5" cx="17" cy="3" fill="black"></circle>\n\t\t\t\t\t </mask>\n\t\t\t\t\t </defs>\n\t\t\t\t\t <image x="0" y="0" width="16" height="16" filter="url(#invertMenuMore-').concat(t.id,')" preserveAspectRatio="xMinYMin meet" xlink:href="').concat(t.icon,'" class="app-icon" />\n\t\t\t\t\t</svg>'),o=document.createElement("template");o.innerHTML=i;var c=document.createElement("a");c.setAttribute("href",t.href);var d=document.createElement("span");d.appendChild(document.createTextNode(t.name));var l=document.createElement("div");l.setAttribute("class","unread-counter"),l.style.display="none",n[t.id]&&c.classList.add("animated"),c.prepend(o.content.firstChild,l,d),e.append(c);var u=document.querySelector("#navigation li[data-id=".concat(a.id,"]"));u?u.insertAdjacentElement("afterend",e):document.querySelector("#navigation #apps ul").prepend(e)}if(null===document.getElementById("appmenu").querySelector('li[data-id="'.concat(t.id,'"]'))){var s,f=document.createElement("li");f.dataset.id=t.id,s=OCA.Theming&&OCA.Theming.inverted?'<svg width="20" height="20" viewBox="0 0 20 20" alt="">\n\t\t\t\t\t\t <defs>\n\t\t\t\t\t\t <filter id="invert"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0" /></filter>\n\t\t\t\t\t\t </defs>\n\t\t\t\t\t\t <image x="0" y="0" width="20" height="20" preserveAspectRatio="xMinYMin meet" filter="url(#invert)" xlink:href="'.concat(t.icon,'" class="app-icon" />\n\t\t\t\t\t\t</svg>'):'<svg width="20" height="20" viewBox="0 0 20 20" alt="">\n\t\t\t\t\t\t <image x="0" y="0" width="20" height="20" preserveAspectRatio="xMinYMin meet" xlink:href="'.concat(t.icon,'" class="app-icon" />\n\t\t\t\t\t\t</svg>');var p=document.createElement("template");p.innerHTML=s;var m=document.createElement("a");m.setAttribute("href",t.href);var v=document.createElement("span");v.appendChild(document.createTextNode(t.name));var h=document.createElement("div");h.setAttribute("class","icon-loading-dark"),h.style.display="none",n[t.id]&&m.classList.add("animated"),m.prepend(h,v,p.content.firstChild),f.append(m);var g=document.querySelector("#appmenu li[data-id="+a.id+"]");g?g.insertAdjacentElement("afterend",f):document.queryElementById("appmenu").prepend(f)}a=t})),window.dispatchEvent(new Event("resize"))}}))}}}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var a=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}i.m=e,i.amdD=function(){throw new Error("define cannot be used indirect")},i.amdO={},t=[],i.O=function(e,n,r,a){if(!n){var o=1/0;for(u=0;u<t.length;u++){n=t[u][0],r=t[u][1],a=t[u][2];for(var c=!0,d=0;d<n.length;d++)(!1&a||o>=a)&&Object.keys(i.O).every((function(t){return i.O[t](n[d])}))?n.splice(d--,1):(c=!1,a<o&&(o=a));if(c){t.splice(u--,1);var l=r();void 0!==l&&(e=l)}}return e}a=a||0;for(var u=t.length;u>0&&t[u-1][2]>a;u--)t[u]=t[u-1];t[u]=[n,r,a]},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},i.j=1647,function(){i.b=document.baseURI||self.location.href;var t={1647:0};i.O.j=function(e){return 0===t[e]};var e=function(e,n){var r,a,o=n[0],c=n[1],d=n[2],l=0;if(o.some((function(e){return 0!==t[e]}))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(d)var u=d(i)}for(e&&e(n);l<o.length;l++)a=o[l],i.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return i.O(u)},n=self.webpackChunknextcloud=self.webpackChunknextcloud||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))}(),i.nc=void 0;var r=i.O(void 0,[7874],(function(){return i(49983)}));r=i.O(r)}();
//# sourceMappingURL=settings-apps.js.map?v=1372ca632edeca3c473f
|