Files
discord-decomp/sources/modules/multi_account/native/FadeInOut.tsx
T
2026-07-28 01:06:53 +03:00

104 lines
6.6 KiB
TypeScript

/* Metro module 14755; source: modules/multi_account/native/FadeInOut.tsx; dependencies: [31, 33, 4017, 4504, 2] */
import ReanimatedRexport from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
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 JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as TimingModule from '../../../design/animation/reanimated/timing/timing.tsx'; /* Metro dependency 4504 */
function _fun111403(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14952:6, offset: 0x023a0be8, size: 185 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ReactModule;
object = {code: 'function FadeInOutTsx1(){const{opacity}=this.__closure;return{opacity:opacity.get()};}'};
object = {code: 'function FadeInOutTsx2(finished){const{runOnJS,handleTransitionFinished}=this.__closure;if(finished){runOnJS(handleTransitionFinished)();}}'};
value = value.forwardRef(_fun111404);
(FileImportTrackerModule).fileFinishedImporting('modules/multi_account/native/FadeInOut.tsx');
exports.default = value;
function _fun111404({children, duration, style}, a1) { // fn#111404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14952:385, offset: 0x023a0ca1, size: 255 bytes, params: 3, frame: 21
const value2 = (ReanimatedRexportModule).useSharedValue(0);
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
const h_1114052 = h_111405;
h_1114052.__closure = {opacity: value2};
h_1114052.__workletHash = 8749472415282;
h_1114052.__initData = env0_5;
const value3 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [h_1114052]);
const binding = env0_3;
var env0_3 = binding.useCallback(_fun111406, [binding.useRef(null)]);
binding.useImperativeHandle(a1, function() {
return {componentDidAppear: _fun111408, componentDidEnter: _fun111409, componentWillLeave: _fun111410};
});
const View = (ReanimatedRexport).View;
return (
<View style={[style, value3]}>
{children}
</View>
);
function h_111405() { // fn#111405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14952:494, offset: 0x01c1ea9c, size: 24 bytes, params: 1, frame: 10
const object = {};
object.opacity = env0_1.get();
return object;
}
function _fun111406() { // fn#111406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14952:624, offset: 0x023a0da0, size: 35 bytes, params: 1, frame: 10
if (env0_2.current != null) {
env0_2.current();
}
}
function _fun111407() { // fn#111407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14952:697, offset: 0x023a0dc3, size: 42 bytes, params: 1, frame: 3
return {componentDidAppear: componentDidAppear_111408, componentDidEnter: componentDidEnter_111409,
componentWillLeave: componentWillLeave_111410};
function componentDidAppear_111408() { // fn#111408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14952:703, offset: 0x023a0ded, size: 68 bytes, params: 1, frame: 16
const binding = env1_1;
const set = binding.set;
Reflect.apply(set, binding, [TimingModule.withTiming(1, {duration: duration})]);
}
function componentDidEnter_111409() { // fn#111409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14952:767, offset: 0x023a0ded, size: 68 bytes, params: 1, frame: 16
const binding = env1_1;
const set = binding.set;
Reflect.apply(set, binding, [TimingModule.withTiming(1, {duration: duration})]);
}
function componentWillLeave_111410(a0) { // fn#111410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14952:830, offset: 0x023a0e31, size: 166 bytes, params: 2, frame: 24
env1_2.current = a0;
const binding = env1_1;
const set = binding.set;
const withTiming = TimingModule.withTiming;
const object = {};
object.duration = duration;
const componentWillLeave_111410T2 = componentWillLeave_111410T;
const object2 = {};
object2.runOnJS = (require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS;
object2.handleTransitionFinished = env1_3;
componentWillLeave_111410T2.__closure = object2;
componentWillLeave_111410T2.__workletHash = 7644958904451;
componentWillLeave_111410T2.__initData = env2_6;
Reflect.apply(set, binding, [Reflect.apply(withTiming, TimingModule, [0, object, 'respect-motion-settings',
componentWillLeave_111410T2])]);
function componentWillLeave_111410T(a0) { // fn#111411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14952:940, owner: componentWillLeave_111410.t, offset: 0x023a0ed7, size: 56 bytes, params: 2, frame: 12
var value;
var runOnJS;
var value2;
if (a0) {
value = environment.__proto__.__proto__.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
runOnJS = value.runOnJS;
value2 = environment.__proto__.__proto__;
Reflect.apply(runOnJS, value, [env2_3])();
}
}
}
}
}
}
global.__d(_fun111403, 14755, [31, 33, 4017, 4504,
2]) /* metro module 14755, dependencies: [31, 33, 4017, 4504, 2] */;