80 lines
4.9 KiB
TypeScript
80 lines
4.9 KiB
TypeScript
/* Metro module 14894; source: modules/user_profile/native/profileModalTransition.tsx; dependencies: [31, 1484, 2] */
|
|
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 UseNavigationNativeModule from '../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
|
|
|
|
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 Set = global.Set;
|
|
const set = new Set();
|
|
(FileImportTrackerModule).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
|
|
ReactModule.useEffect(_fun112674, [(UseNavigationNativeModule).useNavigation()]);
|
|
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 leave2 = leave;
|
|
const binding = env0_0;
|
|
const items2 = [binding.addListener('transitionStart', _fun112676)];
|
|
items2[1] = binding.addListener('transitionEnd', leave2);
|
|
items2[2] = binding.addListener('gestureCancel', leave2);
|
|
return _fun112677;
|
|
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
|
|
ReactModule.forEach(function(a0) {
|
|
return a0();
|
|
});
|
|
leave();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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 ReactModule.useSyncExternalStore(_fun112680, _fun112682);
|
|
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 _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);
|
|
}
|
|
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun112670, 14894, [31, 1484, 2]) /* metro module 14894, dependencies: [31, 1484, 2] */;
|