Files
nextcloud-server/dist/index-vwg0NEhf.chunk.mjs
nextcloud-command 78098c8325 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2026-04-01 13:41:02 +00:00

3 lines
1.2 KiB
JavaScript

import{n as x,p as h,q as w,s as y,v as W,x as b,y as f}from"./preload-helper-DoJVKVMq.chunk.mjs";function F(t,e){return y()?(W(t,e),!0):!1}const G=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const m=()=>{};function p(t,e){function n(...o){return new Promise((r,i)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(r).catch(i)})}return n}const P=t=>t();function v(t,e={}){let n,o,r=m;const i=s=>{clearTimeout(s),r(),r=m};let c;return s=>{const l=f(t),u=f(e.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(o&&(i(o),o=void 0),Promise.resolve(s())):new Promise((a,d)=>{r=e.rejectOnCancel?d:a,c=s,u&&!o&&(o=setTimeout(()=>{n&&i(n),o=void 0,a(c())},u)),n=setTimeout(()=>{o&&i(o),o=void 0,a(s())},l)})}}function T(t){return b()}function S(t,e=200,n={}){return p(v(e,n),t)}function g(t,e,n={}){const{eventFilter:o=P,...r}=n;return x(t,p(o,e),r)}function C(t,e=!0,n){T()?h(t,n):e?t():w(t)}function O(t,e,n={}){const{debounce:o=0,maxWait:r=void 0,...i}=n;return g(t,e,{...i,eventFilter:v(o,{maxWait:r})})}export{F as a,G as i,C as t,S as u,O as w};
//# sourceMappingURL=index-vwg0NEhf.chunk.mjs.map