You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nextcloud/dist/files-init.js

3 lines
299 KiB
JavaScript

/*! For license information please see files-init.js.license?v=b8c60770d2d4a2ddaae8 */
(()=>{var e,t,s,n={9052:e=>{"use strict";var t=Object.prototype.hasOwnProperty,s="~";function n(){}function a(e,t,s){this.fn=e,this.context=t,this.once=s||!1}function i(e,t,n,i,r){if("function"!=typeof n)throw new TypeError("The listener must be a function");var o=new a(n,i||e,r),l=s?s+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function r(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function o(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(s=!1)),o.prototype.eventNames=function(){var e,n,a=[];if(0===this._eventsCount)return a;for(n in e=this._events)t.call(e,n)&&a.push(s?n.slice(1):n);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},o.prototype.listeners=function(e){var t=s?s+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,i=n.length,r=new Array(i);a<i;a++)r[a]=n[a].fn;return r},o.prototype.listenerCount=function(e){var t=s?s+e:e,n=this._events[t];return n?n.fn?1:n.length:0},o.prototype.emit=function(e,t,n,a,i,r){var o=s?s+e:e;if(!this._events[o])return!1;var l,m,d=this._events[o],u=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),u){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,n),!0;case 4:return d.fn.call(d.context,t,n,a),!0;case 5:return d.fn.call(d.context,t,n,a,i),!0;case 6:return d.fn.call(d.context,t,n,a,i,r),!0}for(m=1,l=new Array(u-1);m<u;m++)l[m-1]=arguments[m];d.fn.apply(d.context,l)}else{var c,g=d.length;for(m=0;m<g;m++)switch(d[m].once&&this.removeListener(e,d[m].fn,void 0,!0),u){case 1:d[m].fn.call(d[m].context);break;case 2:d[m].fn.call(d[m].context,t);break;case 3:d[m].fn.call(d[m].context,t,n);break;case 4:d[m].fn.call(d[m].context,t,n,a);break;default:if(!l)for(c=1,l=new Array(u-1);c<u;c++)l[c-1]=arguments[c];d[m].fn.apply(d[m].context,l)}}return!0},o.prototype.on=function(e,t,s){return i(this,e,t,s,!1)},o.prototype.once=function(e,t,s){return i(this,e,t,s,!0)},o.prototype.removeListener=function(e,t,n,a){var i=s?s+e:e;if(!this._events[i])return this;if(!t)return r(this,i),this;var o=this._events[i];if(o.fn)o.fn!==t||a&&!o.once||n&&o.context!==n||r(this,i);else{for(var l=0,m=[],d=o.length;l<d;l++)(o[l].fn!==t||a&&!o[l].once||n&&o[l].context!==n)&&m.push(o[l]);m.length?this._events[i]=1===m.length?m[0]:m:r(this,i)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=s?s+e:e,this._events[t]&&r(this,t)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=s,o.EventEmitter=o,e.exports=o},76150:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});const n=(0,s(53529).YK)().setApp("files").detectUser().build()},90024:(e,t,s)=>{"use strict";var n=s(35810),a=s(61338),i=s(85168),r=s(53334),o=s(26287),l=s(76150),m=s(49264);const d=e=>e.every((e=>!0===e.attributes["is-mount-root"]&&"shared"===e.attributes["mount-type"])),u=e=>e.every((e=>!0===e.attributes["is-mount-root"]&&"external"===e.attributes["mount-type"])),c=(e,t)=>"trashbin"===t.id?(0,r.Tl)("files","Delete permanently"):(e=>{if(1===e.length)return!1;const t=e.some((e=>d([e]))),s=e.some((e=>!d([e])));return t&&s})(e)?(0,r.Tl)("files","Delete and unshare"):d(e)?1===e.length?(0,r.Tl)("files","Leave this share"):(0,r.Tl)("files","Leave these shares"):u(e)?1===e.length?(0,r.Tl)("files","Disconnect storage"):(0,r.Tl)("files","Disconnect storages"):(e=>!e.some((e=>e.type!==n.pt.File)))(e)?1===e.length?(0,r.Tl)("files","Delete file"):(0,r.Tl)("files","Delete files"):(e=>!e.some((e=>e.type!==n.pt.Folder)))(e)?1===e.length?(0,r.Tl)("files","Delete folder"):(0,r.Tl)("files","Delete folders"):(0,r.Tl)("files","Delete"),g=new m.A({concurrency:1}),f=new n.hY({id:"delete",displayName:c,iconSvgInline:e=>d(e)?'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-close" viewBox="0 0 24 24"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.5
//# sourceMappingURL=files-init.js.map?v=b8c60770d2d4a2ddaae8