127 lines
7.9 KiB
TypeScript
127 lines
7.9 KiB
TypeScript
/* Metro module 9942; source: modules/media_viewer/native/useEntranceAnimation.tsx; dependencies: [57, 31, 1305, 629, 690, 4504, 4017, 2] */
|
|
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as Module00629Module from '../../../by-id/module-00629.js'; /* Metro dependency 629 */
|
|
import * as ReactBatchUpdatesNativeModule from '../../../external/discord_common/js/shared/utils/ReactBatchUpdates.native.tsx'; /* Metro dependency 690 */
|
|
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
|
|
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
|
|
import * as TimingModule from '../../../design/animation/reanimated/timing/timing.tsx'; /* Metro dependency 4504 */
|
|
|
|
function _fun77818(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10128:6, offset: 0x01e0d1aa, size: 254 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {duration: 300};
|
|
const STANDARD_EASING = (NativeModule).STANDARD_EASING;
|
|
object.easing = STANDARD_EASING;
|
|
let value = Module00629Module;
|
|
value = value.create(function() {
|
|
return {isComplete: false};
|
|
});
|
|
object = {code: 'function useEntranceAnimationTsx1(){const{runOnJS,setUseEntranceAnimationState}=this.__closure;runOnJS(setUseEntranceAnimationState)({isComplete:true});}'};
|
|
object = {code: 'function useEntranceAnimationTsx2(){const{runOnJS,setUseEntranceAnimationState,incrementLoads}=this.__closure;runOnJS(setUseEntranceAnimationState)({isComplete:true});runOnJS(incrementLoads)();}'};
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/media_viewer/native/useEntranceAnimation.tsx');
|
|
exports.useEntranceAnimationState = value;
|
|
exports.useEntranceAnimation = useEntranceAnimation;
|
|
function setUseEntranceAnimationState(a0) { // fn#77819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10128:206, offset: 0x01e0d2a8, size: 54 bytes, params: 2, frame: 12
|
|
const env0_0 = a0;
|
|
(ReactBatchUpdatesNativeModule).batchUpdates(_fun77820);
|
|
function _fun77820() { // fn#77820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10128:269, offset: 0x01e0d2de, size: 27 bytes, params: 1, frame: 11
|
|
return env1_5.setState(env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function useEntranceAnimation(a0) { // fn#77822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10128:803, offset: 0x01e0d304, size: 164 bytes, params: 2, frame: 17
|
|
const env0_0 = a0;
|
|
let value = Module00057(ReactModule.useState(0), 2);
|
|
const property = value[0];
|
|
const env0_1 = value[1];
|
|
value = ReactModule.useCallback(_fun77823, []);
|
|
const value3 = ReactModule.useCallback(_fun77825, [a0]);
|
|
value = ReactModule.useCallback(_fun77828, [value, a0]);
|
|
return {loads: property, handleLoadStart: value3, handleError: value, handleLoad: value};
|
|
function _fun77823() { // fn#77823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10128:896, offset: 0x01e0d3a8, size: 25 bytes, params: 1, frame: 11
|
|
env0_1(function(a0) {
|
|
return a0 + 1;
|
|
});
|
|
}
|
|
|
|
function _fun77825() { // fn#77825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10128:936, offset: 0x01e0d3c1, size: 175 bytes, params: 1, frame: 23
|
|
(ReactBatchUpdatesNativeModule).batchUpdates(_fun77826);
|
|
const binding = env0_0;
|
|
const set = binding.set;
|
|
const withTiming = TimingModule.withTiming;
|
|
const binding2 = env1_4;
|
|
const t_778272 = t_77827;
|
|
const object = {};
|
|
object.runOnJS = (require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS;
|
|
object.setUseEntranceAnimationState = setUseEntranceAnimationState;
|
|
t_778272.__closure = object;
|
|
t_778272.__workletHash = 7427534745615;
|
|
t_778272.__initData = env1_6;
|
|
Reflect.apply(set, binding, [Reflect.apply(withTiming, TimingModule, [1, binding2, 'respect-motion-settings',
|
|
t_778272])]);
|
|
function _fun77826() { // fn#77826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10128:969, offset: 0x01e0d470, size: 29 bytes, params: 1, frame: 12
|
|
return env2_5.setState({isComplete: false});
|
|
}
|
|
|
|
function t_77827() { // fn#77827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10128:1062, offset: 0x01e0d48d, size: 55 bytes, params: 1, frame: 12
|
|
const value = environment.__proto__.__proto__;
|
|
ReanimatedRexportModule.runOnJS(setUseEntranceAnimationState)({isComplete: true});
|
|
}
|
|
|
|
}
|
|
|
|
function _fun77828() { // fn#77828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10128:1306, offset: 0x01e0d4c4, size: 223 bytes, params: 1, frame: 25
|
|
var environment;
|
|
var value3;
|
|
var set;
|
|
var moduleValue2;
|
|
var withTiming;
|
|
var binding2;
|
|
var t_778302;
|
|
var object;
|
|
let binding = env0_0;
|
|
if (binding.get() !== 1) {
|
|
value3 = environment.__proto__;
|
|
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun77829);
|
|
binding = env0_0;
|
|
set = binding.set;
|
|
moduleValue2 = require(4504) /* metro dependency 4504: timing */;
|
|
withTiming = moduleValue2.withTiming;
|
|
binding2 = env1_4;
|
|
t_778302 = t_77830;
|
|
object = {};
|
|
object.runOnJS = (require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS;
|
|
object.setUseEntranceAnimationState = setUseEntranceAnimationState;
|
|
object.incrementLoads = Module00057;
|
|
t_778302.__closure = object;
|
|
t_778302.__workletHash = 9904090637386;
|
|
t_778302.__initData = env1_7;
|
|
Reflect.apply(set, binding, [Reflect.apply(withTiming, moduleValue2, [1, binding2, 'respect-motion-settings',
|
|
t_778302])]);
|
|
} else {
|
|
Module00057();
|
|
}
|
|
function _fun77829() { // fn#77829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10128:1352, offset: 0x01e0d470, size: 29 bytes, params: 1, frame: 12
|
|
return env2_5.setState({isComplete: false});
|
|
}
|
|
|
|
function t_77830() { // fn#77830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10128:1445, offset: 0x01e0d5a3, size: 85 bytes, params: 1, frame: 15
|
|
let value = environment.__proto__.__proto__;
|
|
ReanimatedRexportModule.runOnJS(setUseEntranceAnimationState)({isComplete: true});
|
|
value = ReanimatedRexportModule;
|
|
value.runOnJS(env1_2)();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun77818, 9942, [57, 31, 1305, 629, 690, 4504, 4017,
|
|
2]) /* metro module 9942, dependencies: [57, 31, 1305, 629, 690, 4504, 4017, 2] */;
|