Files
discord-decomp/_bundle/Module1818.js
T
2026-11-01 12:12:55 +02:00

52 lines
1.6 KiB
JavaScript

// Metro module 1818 (f1819).
const __initData = {
code: "function pnpm_utilsTs2(...args){const{value,wait,worklet}=this.__closure;const t=Date.now();const now=t-value.time;if(now<wait){value.time=t;return;}value.time=t;return worklet(...args);}"
};
const t = function t(a0) {
let wait = arguments[1];
if (wait === void 0) {
wait = 0;
}
let c13244_1 = wait;
const value = {
time: 0
};
let c13244_2 = value;
const r8 = function(...args) {
const time = Date.now();
if (time - c13244_2.time < c13244_1) {
c13244_2.time = time;
return void 0;
}
c13244_2.time = time;
return a0.apply(void 0, [...args]);
};
r8.__closure = {
value,
wait,
worklet: a0
};
r8.__workletHash = 8768898864142;
r8.__initData = __initData;
return r8;
};
t.__closure = {};
t.__workletHash = 1678132827161;
t.__initData = {
code: "function pnpm_utilsTs1(worklet,wait=0){const value={time:0};return function(...args){\"worklet\";const t=Date.now();const now=t-value.time;if(now<wait){value.time=t;return;}value.time=t;return worklet(...args);};}"
};
const n = function n(a0, a1) {
let r1 = a1 ? a1.find((item) => item >= a0) : void 0;
if (r1 == null) {
r1 = a0;
}
return r1;
};
n.__closure = {};
n.__workletHash = 10680474034033;
n.__initData = {
code: "function pnpm_utilsTs3(defaultScrollValue,snapPoints){let snapPoint;if(snapPoints){snapPoint=snapPoints.find(function(offset){return offset>=defaultScrollValue;});}return snapPoint!==null&&snapPoint!==void 0?snapPoint:defaultScrollValue;}"
};
export { t as debounce };
export { n as scrollDistanceWithRespectToSnapPoints };