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

68 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 15615
// Function ID: 15616
// Name: set
// Dependencies: [19, 1480, 2]
2026-07-20 16:05:17 +00:00
// Exports: useIsProfileModalTransitioning, useReportProfileModalTransition
2026-07-29 08:29:29 +00:00
// Module 15615 (set)
import noop from "noop";
2026-07-23 10:11:24 +00:00
import set from "set";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
let c3 = 0;
let set = new Set();
const result = set.fileFinishedImporting("modules/user_profile/native/profileModalTransition.tsx");
2026-07-20 16:05:17 +00:00
export const useReportProfileModalTransition = function useReportProfileModalTransition() {
2026-07-29 08:29:29 +00:00
navigation = navigation(1480).useNavigation();
2026-07-23 10:11:24 +00:00
let items = [navigation];
2026-07-20 16:05:17 +00:00
const effect = React.useEffect(() => {
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;
const bound = Math.max(0, outer1_3 - 1);
if (bound !== outer1_3) {
outer1_3 = bound;
const item = outer1_4.forEach((arg0) => arg0());
}
2026-07-20 16:05:17 +00:00
}
}
const navigation = false;
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;
const bound = Math.max(0, outer1_3 + 1);
if (bound !== outer1_3) {
outer1_3 = bound;
const item = outer1_4.forEach((arg0) => arg0());
}
2026-07-20 16:05:17 +00:00
}
}),
navigation.addListener("transitionEnd", leave),
navigation.addListener("gestureCancel", leave)
];
return () => {
const item = items.forEach((arg0) => arg0());
2026-07-29 08:29:29 +00:00
if (c0) {
c0 = false;
const _Math = Math;
const bound = Math.max(0, outer1_3 - 1);
if (bound !== outer1_3) {
outer1_3 = bound;
const item1 = outer1_4.forEach((arg0) => arg0());
}
}
2026-07-20 16:05:17 +00:00
};
}, items);
};
export const useIsProfileModalTransitioning = function useIsProfileModalTransitioning() {
return React.useSyncExternalStore((arg0) => {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-29 08:29:29 +00:00
set.add(arg0);
return () => outer1_4.delete(closure_0);
}, () => closure_3 > 0);
2026-07-20 16:05:17 +00:00
};