decord/source/modules/user_profile/native/profileModalTransition.tsx

65 lines
1.8 KiB
TypeScript
Raw Normal View History

// Module ID: 16824
// Function ID: 16825
// Name: profileModalTransition
// Dependencies: [19, 1483, 2]
2026-07-20 16:05:17 +00:00
// Exports: useIsProfileModalTransitioning, useReportProfileModalTransition
// Module 16824 (profileModalTransition)
import noop from "module_19" /* 19 */;
2026-07-20 16:05:17 +00:00
const require = fn;
2026-07-23 10:11:24 +00:00
let c3 = 0;
const set = new Set();
const size = fn(2);
const result = size.fileFinishedImporting("modules/user_profile/native/profileModalTransition.tsx");
2026-07-20 16:05:17 +00:00
export const useReportProfileModalTransition = function useReportProfileModalTransition() {
navigation = navigation(1483).useNavigation();
2026-07-23 10:11:24 +00:00
let items = [navigation];
const effect = noop.useEffect(() => {
2026-07-20 16:05:17 +00:00
function leave() {
2026-07-23 10:11:24 +00:00
if (c0) {
c0 = false;
2026-07-29 08:29:29 +00:00
const _Math = Math;
2026-08-24 06:08:38 +00:00
bound = Math.max(0, bound - 1);
if (bound !== bound) {
const item = set.forEach((fn) => fn());
2026-07-29 08:29:29 +00:00
}
2026-07-20 16:05:17 +00:00
}
}
c0 = false;
2026-07-20 16:05:17 +00:00
const items = [
navigation.addListener("transitionStart", function enter() {
2026-07-23 10:11:24 +00:00
if (!c0) {
c0 = true;
2026-07-29 08:29:29 +00:00
const _Math = Math;
2026-08-24 06:08:38 +00:00
bound = Math.max(0, bound + 1);
if (bound !== bound) {
const item = set.forEach((fn) => fn());
2026-07-29 08:29:29 +00:00
}
2026-07-20 16:05:17 +00:00
}
}),
navigation.addListener("transitionEnd", leave),
navigation.addListener("gestureCancel", leave)
];
return () => {
const item = items.forEach((fn) => fn());
2026-07-29 08:29:29 +00:00
if (c0) {
c0 = false;
const _Math = Math;
2026-08-24 06:08:38 +00:00
bound = Math.max(0, bound - 1);
if (bound !== bound) {
const item1 = set.forEach((fn) => fn());
2026-07-29 08:29:29 +00:00
}
}
2026-07-20 16:05:17 +00:00
};
}, items);
};
export const useIsProfileModalTransitioning = function useIsProfileModalTransitioning() {
return noop.useSyncExternalStore((arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
2026-07-29 08:29:29 +00:00
set.add(arg0);
return () => set.delete(closure_0);
}, () => closure_1_3 > 0);
2026-07-20 16:05:17 +00:00
};