76 lines
4.1 KiB
TypeScript
76 lines
4.1 KiB
TypeScript
/* Metro module 14894; source: modules/user_profile/native/profileModalTransition.tsx; dependencies: [31, 1484, 2] */
|
|
function _fun112670(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15091:6, offset: 0x023d6e22, size: 172 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importAll(31) /* metro dependency 31 */;
|
|
const Set = global.Set;
|
|
const set = new Set();
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/native/profileModalTransition.tsx');
|
|
exports.useReportProfileModalTransition = useReportProfileModalTransition;
|
|
exports.useIsProfileModalTransitioning = useIsProfileModalTransitioning;
|
|
}
|
|
|
|
function setTransitioningModalCount(a0) { // fn#112671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15091:120, offset: 0x023d6ece, size: 66 bytes, params: 2, frame: 13
|
|
const Math = global.Math;
|
|
if (Math.max(0, a0) !== env0_3) {
|
|
env0_4.forEach(function(a0) {
|
|
return a0();
|
|
});
|
|
}
|
|
}
|
|
|
|
function useReportProfileModalTransition() { // fn#112673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15091:334, offset: 0x023d6f10, size: 73 bytes, params: 1, frame: 15
|
|
env0_2.useEffect(_fun112674, [(require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation()]);
|
|
}
|
|
|
|
function useIsProfileModalTransitioning() { // fn#112679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15091:730, offset: 0x023d7049, size: 37 bytes, params: 1, frame: 13
|
|
return env0_2.useSyncExternalStore(_fun112680, _fun112682);
|
|
}
|
|
|
|
function _fun112674() { // fn#112674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15091:420, offset: 0x023d6f59, size: 112 bytes, params: 1, frame: 15
|
|
const env0_0 = false;
|
|
const closure = leave;
|
|
const binding = env0_0;
|
|
const items2 = [binding.addListener('transitionStart', _fun112676)];
|
|
items2[1] = binding.addListener('transitionEnd', closure);
|
|
items2[2] = binding.addListener('gestureCancel', closure);
|
|
return _fun112677;
|
|
}
|
|
|
|
function _fun112680(a0) { // fn#112680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15091:803, offset: 0x023d706e, size: 35 bytes, params: 2, frame: 12
|
|
const env0_0 = a0;
|
|
env1_4.add(a0);
|
|
return _fun112681;
|
|
}
|
|
|
|
function _fun112682() { // fn#112682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15091:835, offset: 0x023d70ab, size: 15 bytes, params: 1, frame: 2
|
|
return env1_3 > 0;
|
|
}
|
|
|
|
function leave() { // fn#112675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15091:440, offset: 0x023d6fc9, size: 45 bytes, params: 1, frame: 11
|
|
if (env0_0) {
|
|
value = environment.__proto__.__proto__;
|
|
setTransitioningModalCount(env2_3 - 1);
|
|
}
|
|
}
|
|
|
|
function _fun112676() { // fn#112676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15091:524, offset: 0x023d6ff6, size: 45 bytes, params: 1, frame: 11
|
|
if (!env0_0) {
|
|
value = environment.__proto__.__proto__;
|
|
setTransitioningModalCount(env2_3 + 1);
|
|
}
|
|
}
|
|
|
|
function _fun112677() { // fn#112677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15091:655, offset: 0x023d7023, size: 38 bytes, params: 1, frame: 12
|
|
env0_2.forEach(function(a0) {
|
|
return a0();
|
|
});
|
|
leave();
|
|
}
|
|
|
|
function _fun112681() { // fn#112681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15091:816, offset: 0x023d7091, size: 26 bytes, params: 1, frame: 11
|
|
return env2_4.delete(env0_0);
|
|
}
|
|
|