/* Metro module 4577; source: design/animation/reanimated/spring/spring.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 _fun38834(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4755:6, offset: 0x010cc8b8, size: 135 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); object = {code: "function withSpring_springTsx1(toValue,config,shouldAnimate='respect-motion-settings',callback){const{accessibilityPreferencesSharedValue,CONFIG_NEVER_ANIMATE,ReduceMotion,REAwithSpring}=this.__closure;const reducedMotionEnabled=accessibilityPreferencesSharedValue.get().reduceMotion;const animate=shouldAnimate==='animate-always'||shouldAnimate==='respect-motion-settings'&&!reducedMotionEnabled;const configForRea=!animate?CONFIG_NEVER_ANIMATE:shouldAnimate==='animate-always'?{...(config!==null&&config!==void 0?config:{}),reduceMotion:ReduceMotion.Never}:config;return REAwithSpring(toValue,configForRea,callback);}"}; const value = _fun38835(); (FileImportTrackerModule).fileFinishedImporting('design/animation/reanimated/spring/spring.tsx'); exports.withSpring = value; function _fun38835() { // fn#38835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4755:760, offset: 0x010cc93f, size: 132 bytes, params: 1, frame: 16 const withSpring_388362 = withSpring_38836; const object = {}; object.accessibilityPreferencesSharedValue = (require(4506) /* metro dependency 4506: AccessibilityPreferencesSharedValueNative */).accessibilityPreferencesSharedValue; object.CONFIG_NEVER_ANIMATE = CONFIG_NEVER_ANIMATE; const ReduceMotion = (require(4017) /* metro dependency 4017: ReanimatedRexport */).ReduceMotion; object.ReduceMotion = ReduceMotion; object.REAwithSpring = (require(4017) /* metro dependency 4017: ReanimatedRexport */).withSpring; withSpring_388362.__closure = object; withSpring_388362.__workletHash = 14783154107972; withSpring_388362.__initData = env0_3; return withSpring_388362; function withSpring_38836(a0, a1) { // fn#38836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4755:786, offset: 0x010cc9c3, 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; } else if (reduceMotion) { r4 = CONFIG_NEVER_ANIMATE; } else { if (value5) { object = {}; copyDataProperties(object, value ?? ({}), undefined); object['reduceMotion'] = ReduceMotion.Never; r1 = object; } else { r1 = value; } r4 = r1; } return (ReanimatedRexportModule).withSpring(a0, r4, a3); } } } global.__d(_fun38834, 4577, [4505, 4506, 4017, 2]) /* metro module 4577, dependencies: [4505, 4506, 4017, 2] */;