Files
2026-07-28 01:06:53 +03:00

72 lines
4.7 KiB
TypeScript

/* Metro module 4504; source: design/animation/reanimated/timing/timing.tsx; dependencies: [4505, 4506, 4017, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReanimatedRexportModule from '../../../../modules/reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as ReanimatedConstantsModule from '../ReanimatedConstants.tsx'; /* Metro dependency 4505 */
import * as AccessibilityPreferencesSharedValueNativeModule from '../AccessibilityPreferencesSharedValue.native.tsx'; /* Metro dependency 4506 */
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});
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();
(FileImportTrackerModule).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 withTiming_385492 = withTiming_38549;
const object = {};
object.accessibilityPreferencesSharedValue = (require(4506) /* metro dependency 4506: AccessibilityPreferencesSharedValueNative */).accessibilityPreferencesSharedValue;
object.CONFIG_NEVER_ANIMATE_TIMING = CONFIG_NEVER_ANIMATE_TIMING;
const ReduceMotion = (require(4017) /* metro dependency 4017: ReanimatedRexport */).ReduceMotion;
object.ReduceMotion = ReduceMotion;
object.REAwithTiming = (require(4017) /* metro dependency 4017: ReanimatedRexport */).withTiming;
withTiming_385492.__closure = object;
withTiming_385492.__workletHash = 6710776253444;
withTiming_385492.__initData = env0_3;
return withTiming_385492;
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 object;
const ReduceMotion = (ReanimatedRexportModule).ReduceMotion;
const value = a1;
const value2 = a2;
const r5 = value2 !== undefined ? value2 : 'respect-motion-settings';
const accessibilityPreferencesSharedValue = (AccessibilityPreferencesSharedValueNativeModule).accessibilityPreferencesSharedValue;
const get = accessibilityPreferencesSharedValue.get;
const reduceMotion = Reflect.apply(get, accessibilityPreferencesSharedValue, []).reduceMotion;
const value5 = r5 === 'animate-always';
if (value5) {
if (value5) {
object = {};
copyDataProperties(object, value ?? ({}), undefined);
object['reduceMotion'] = ReduceMotion.Never;
r1 = object;
} 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) {
object = {};
copyDataProperties(object, value ?? ({}), undefined);
object['reduceMotion'] = ReduceMotion.Never;
r1 = object;
} else {
r1 = value;
}
r4 = r1;
}
return (ReanimatedRexportModule).withTiming(a0, r4, a3);
}
}
}
global.__d(_fun38547, 4504, [4505, 4506, 4017, 2]) /* metro module 4504, dependencies: [4505, 4506, 4017, 2] */;