50 lines
3.2 KiB
JavaScript
50 lines
3.2 KiB
JavaScript
/* Metro module 6296; source: unknown; dependencies: [6278, 1610] */
|
|
import * as Module06278Module from './module-06278.js'; /* Metro dependency 6278 */
|
|
|
|
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 animate_496712 = animate_49671;
|
|
const object2 = {};
|
|
const ANIMATION_CONFIGS = (Module06278Module).ANIMATION_CONFIGS;
|
|
object2.ANIMATION_CONFIGS = ANIMATION_CONFIGS;
|
|
const ANIMATION_METHOD = (Module06278Module).ANIMATION_METHOD;
|
|
object2.ANIMATION_METHOD = ANIMATION_METHOD;
|
|
object2.withTiming = (require(1610) /* metro dependency 1610 */).withTiming;
|
|
object2.withSpring = (require(1610) /* metro dependency 1610 */).withSpring;
|
|
animate_496712.__closure = object2;
|
|
animate_496712.__workletHash = 17032227615993;
|
|
animate_496712.__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 = animate_496712;
|
|
function animate_49671({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;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun49670, 6296, [6278, 1610]) /* metro module 6296, dependencies: [6278, 1610] */;
|