67 lines
4.0 KiB
TypeScript
67 lines
4.0 KiB
TypeScript
/* Metro module 4504; source: design/animation/reanimated/timing/timing.tsx; dependencies: [4505, 4506, 4017, 2] */
|
|
function _fun38547(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4682:6, offset: 0x010c2c8b, size: 135 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = (require(4505) /* metro dependency 4505: ReanimatedConstants */).CONFIG_NEVER_ANIMATE_TIMING;
|
|
object = {code: "function withTiming_timingTsx1(toValue,config,shouldAnimate='respect-motion-settings',callback){const{accessibilityPreferencesSharedValue,CONFIG_NEVER_ANIMATE_TIMING,ReduceMotion,REAwithTiming}=this.__closure;const reducedMotionEnabled=accessibilityPreferencesSharedValue.get().reduceMotion;const animate=shouldAnimate==='animate-always'||shouldAnimate==='respect-motion-settings'&&!reducedMotionEnabled;const configForRea=!animate?CONFIG_NEVER_ANIMATE_TIMING:shouldAnimate==='animate-always'?{...(config!==null&&config!==void 0?config:{}),reduceMotion:ReduceMotion.Never}:config;return REAwithTiming(toValue,configForRea,callback);}"};
|
|
const value = _fun38548();
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/animation/reanimated/timing/timing.tsx');
|
|
exports.withTiming = value;
|
|
}
|
|
|
|
function _fun38548() { // fn#38548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4682:781, offset: 0x010c2d12, size: 132 bytes, params: 1, frame: 16
|
|
const closure = withTiming_38549;
|
|
const object2 = {};
|
|
object2.accessibilityPreferencesSharedValue = (require(4506) /* metro dependency 4506: AccessibilityPreferencesSharedValueNative */).accessibilityPreferencesSharedValue;
|
|
object2.CONFIG_NEVER_ANIMATE_TIMING = CONFIG_NEVER_ANIMATE_TIMING;
|
|
const ReduceMotion = (require(4017) /* metro dependency 4017: ReanimatedRexport */).ReduceMotion;
|
|
object2.ReduceMotion = ReduceMotion;
|
|
object2.REAwithTiming = (require(4017) /* metro dependency 4017: ReanimatedRexport */).withTiming;
|
|
closure.__closure = object2;
|
|
closure.__workletHash = 6710776253444;
|
|
closure.__initData = env0_3;
|
|
return closure;
|
|
}
|
|
|
|
function withTiming_38549(a0, a1) { // fn#38549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4682:807, offset: 0x010c2d96, size: 210 bytes, params: 3, frame: 18
|
|
var r1;
|
|
var r4;
|
|
var object2;
|
|
const ReduceMotion = (require(4017) /* metro dependency 4017: ReanimatedRexport */).ReduceMotion;
|
|
const value = a1;
|
|
const value2 = a2;
|
|
const r5 = value2 !== undefined ? value2 : 'respect-motion-settings';
|
|
const accessibilityPreferencesSharedValue = (require(4506) /* metro dependency 4506: AccessibilityPreferencesSharedValueNative */).accessibilityPreferencesSharedValue;
|
|
const get = accessibilityPreferencesSharedValue.get;
|
|
const reduceMotion = Reflect.apply(get, accessibilityPreferencesSharedValue, []).reduceMotion;
|
|
const value5 = r5 === 'animate-always';
|
|
if (value5) {
|
|
if (value5) {
|
|
object2 = {};
|
|
copyDataProperties(object2, value ?? ({}), undefined);
|
|
object2['reduceMotion'] = ReduceMotion.Never;
|
|
r1 = object2;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
r4 = r1;
|
|
} else if (r5 !== 'respect-motion-settings') {
|
|
r4 = CONFIG_NEVER_ANIMATE_TIMING;
|
|
} else if (reduceMotion) {
|
|
r4 = CONFIG_NEVER_ANIMATE_TIMING;
|
|
} else {
|
|
if (value5) {
|
|
object2 = {};
|
|
copyDataProperties(object2, value ?? ({}), undefined);
|
|
object2['reduceMotion'] = ReduceMotion.Never;
|
|
r1 = object2;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
r4 = r1;
|
|
}
|
|
return (require(4017) /* metro dependency 4017: ReanimatedRexport */).withTiming(a0, r4, a3);
|
|
}
|
|
|