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

65 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 16101
// Function ID: 16102
2026-07-29 08:29:29 +00:00
// Name: set
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 1500, 2]
2026-07-20 16:05:17 +00:00
// Exports: useIsProfileModalTransitioning, useReportProfileModalTransition
2026-08-24 06:08:38 +00:00
// Module 16101 (set)
import closure_2 from "noop" /* 19 */;
import set from "set" /* 2 */;
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-08-15 05:55:55 +00:00
navigation = navigation(1500).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;
2026-08-24 06:08:38 +00:00
bound = Math.max(0, bound - 1);
if (bound !== bound) {
const item = closure_1_4.forEach((arg0) => arg0());
2026-07-29 08:29:29 +00:00
}
2026-07-20 16:05:17 +00:00
}
}
2026-08-24 06:08:38 +00:00
navigation = 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 = closure_1_4.forEach((arg0) => arg0());
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((arg0) => arg0());
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 = closure_1_4.forEach((arg0) => arg0());
2026-07-29 08:29:29 +00:00
}
}
2026-07-20 16:05:17 +00:00
};
}, items);
};
export const useIsProfileModalTransitioning = function useIsProfileModalTransitioning() {
return React.useSyncExternalStore((arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
2026-07-29 08:29:29 +00:00
set.add(arg0);
2026-08-24 06:08:38 +00:00
return () => closure_1_4.delete(closure_0);
2026-07-29 08:29:29 +00:00
}, () => closure_3 > 0);
2026-07-20 16:05:17 +00:00
};