Files
discord-decomp/sources/by-id/module-06296.jsx
T
2026-07-27 16:20:00 +03:00

47 lines
2.9 KiB
React

/* Metro module 6296; source: unknown; dependencies: [6278, 1610] */
function _fun49670(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6474:6, offset: 0x01203d9f, size: 189 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const closure = animate;
const object = {};
const ANIMATION_CONFIGS = (require(6278) /* metro dependency 6278 */).ANIMATION_CONFIGS;
object.ANIMATION_CONFIGS = ANIMATION_CONFIGS;
const ANIMATION_METHOD = (require(6278) /* metro dependency 6278 */).ANIMATION_METHOD;
object.ANIMATION_METHOD = ANIMATION_METHOD;
object.withTiming = (require(1610) /* metro dependency 1610 */).withTiming;
object.withSpring = (require(1610) /* metro dependency 1610 */).withSpring;
closure.__closure = object;
closure.__workletHash = 17032227615993;
closure.__initData = {code: "function pnpm_animateTs1({point:point,configs:configs,velocity=0,overrideReduceMotion:overrideReduceMotion,onComplete:onComplete}){const{ANIMATION_CONFIGS,ANIMATION_METHOD,withTiming,withSpring}=this.__closure;if(!configs){configs=ANIMATION_CONFIGS;}if(overrideReduceMotion){configs.reduceMotion=overrideReduceMotion;}const type='duration'in configs||'easing'in configs?ANIMATION_METHOD.TIMING:ANIMATION_METHOD.SPRING;if(type===ANIMATION_METHOD.TIMING){return withTiming(point,configs,onComplete);}return withSpring(point,Object.assign({velocity:velocity},configs),onComplete);}"};
exports.animate = closure;
}
function animate({point, configs, velocity, overrideReduceMotion, onComplete}) { // fn#49671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6474:694, offset: 0x01203e5c, size: 302 bytes, params: 2, frame: 21
var r0;
var withSpring;
var Object;
let value = 0;
const r10 = velocity === undefined ? value : velocity;
const r4 = configs || require(dependencyMap[value]).ANIMATION_CONFIGS;
if (overrideReduceMotion) {
r4.reduceMotion = overrideReduceMotion;
}
const r2 = 'duration' in r4 || 'easing' in r4 ? require(dependencyMap[value]).ANIMATION_METHOD.TIMING : require(dependencyMap[value]).ANIMATION_METHOD.SPRING;
const ANIMATION_METHOD = require(dependencyMap[value]).ANIMATION_METHOD;
const TIMING = ANIMATION_METHOD.TIMING;
if (r2 === TIMING) {
value = require(1610) /* metro dependency 1610 */;
value = value.withTiming(point, r4, onComplete);
r0 = value;
} else {
value = require(1610) /* metro dependency 1610 */;
withSpring = value.withSpring;
Object = global.Object;
value = Reflect.apply(withSpring, value, [point, Object.assign({velocity: r10}, r4), onComplete]);
r0 = value;
}
return r0;
}