diff options
Diffstat (limited to 'dist/files-files-app-settings.js')
-rw-r--r-- | dist/files-files-app-settings.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dist/files-files-app-settings.js b/dist/files-files-app-settings.js new file mode 100644 index 00000000000..34e577eabdb --- /dev/null +++ b/dist/files-files-app-settings.js @@ -0,0 +1,3 @@ +/*! For license information please see files-files-app-settings.js.LICENSE.txt */ +(()=>{"use strict";var e,n={97048:(e,n,i)=>{var s=i(20144);const r={name:"Setting",props:{el:{type:Function,required:!0}},mounted(){this.$el.appendChild(this.el())}};var o=i(51900);const l={name:"Settings",components:{Setting:(0,o.Z)(r,(function(){var e=this.$createElement;return(this._self._c||e)("div")}),[],!1,null,null,null).exports},data:()=>({settings:OCA.Files.Settings.settings})},a=(0,o.Z)(l,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"files-app-extra-settings"}},[e._l(e.settings,(function(e){return[n("Setting",{key:e.name,attrs:{el:e.el}})]}))],2)}),[],!1,null,"31c9bb4b",null).exports;function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}s.default.prototype.t=t,window.OCA.Files||(window.OCA.Files={}),Object.assign(window.OCA.Files,{Settings:new class{constructor(){var e,t;t=void 0,(e="_settings")in this?Object.defineProperty(this,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):this[e]=t,this._settings=[],console.debug("OCA.Files.Settings initialized")}register(e){return this._settings.filter((t=>t.name===e.name)).length>0?(console.error("A setting with the same name is already registered"),!1):(this._settings.push(e),!0)}get settings(){return this._settings}}}),Object.assign(window.OCA.Files.Settings,{Setting:class{constructor(e,t){let{el:n,open:i,close:s}=t;c(this,"_close",void 0),c(this,"_el",void 0),c(this,"_name",void 0),c(this,"_open",void 0),this._name=e,this._el=n,this._open=i,this._close=s,"function"!=typeof this._open&&(this._open=()=>{}),"function"!=typeof this._close&&(this._close=()=>{})}get name(){return this._name}get el(){return this._el}get open(){return this._open}get close(){return this._close}}}),window.addEventListener("DOMContentLoaded",(function(){new s.default({el:"#files-app-settings",render:e=>e(a)});const e=document.getElementById("app-settings-header");e&&e.addEventListener("click",(e=>{const t=e.currentTarget.children[0].classList.contains("opened");OCA.Files.Settings.settings.forEach((e=>t?e.close():e.open()))}))}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,loaded:!1,exports:{}};return n[e].call(r.exports,r,r.exports,s),r.loaded=!0,r.exports}s.m=n,s.amdD=function(){throw new Error("define cannot be used indirect")},s.amdO={},e=[],s.O=(t,n,i,r)=>{if(!n){var o=1/0;for(d=0;d<e.length;d++){n=e[d][0],i=e[d][1],r=e[d][2];for(var l=!0,a=0;a<n.length;a++)(!1&r||o>=r)&&Object.keys(s.O).every((e=>s.O[e](n[a])))?n.splice(a--,1):(l=!1,r<o&&(o=r));if(l){e.splice(d--,1);var c=i();void 0!==c&&(t=c)}}return t}r=r||0;for(var d=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,i,r]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.j=693,(()=>{var e={693:0};s.O.j=t=>0===e[t];var t=(t,n)=>{var i,r,o=n[0],l=n[1],a=n[2],c=0;if(o.some((t=>0!==e[t]))){for(i in l)s.o(l,i)&&(s.m[i]=l[i]);if(a)var d=a(s)}for(t&&t(n);c<o.length;c++)r=o[c],s.o(e,r)&&e[r]&&e[r][0](),e[o[c]]=0;return s.O(d)},n=self.webpackChunknextcloud=self.webpackChunknextcloud||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=s.O(void 0,[820],(()=>s(97048)));r=s.O(r)})(); +//# sourceMappingURL=files-files-app-settings.js.map?v=e46b0fa7e0eb57cd1a4f
\ No newline at end of file |