decord/source/modules/user_profile/native/profileModalTransition.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

64 lines
1.8 KiB
TypeScript

// Module ID: 16993
// Function ID: 16994
// Name: profileModalTransition
// Dependencies: [19, 1484, 2]
// Exports: useIsProfileModalTransitioning, useReportProfileModalTransition
// Module 16993 (profileModalTransition)
import noop from "module_19" /* 19 */;
const require = fn;
let c3 = 0;
const set = new Set();
const size = fn(2);
const result = size.fileFinishedImporting("modules/user_profile/native/profileModalTransition.tsx");
export const useReportProfileModalTransition = function useReportProfileModalTransition() {
navigation = navigation(1484).useNavigation();
let items = [navigation];
const effect = noop.useEffect(() => {
function leave() {
if (c0) {
c0 = false;
const _Math = Math;
bound = Math.max(0, bound - 1);
if (bound !== bound) {
const item = set.forEach((fn) => fn());
}
}
}
c0 = false;
const items = [
navigation.addListener("transitionStart", function enter() {
if (!c0) {
c0 = true;
const _Math = Math;
bound = Math.max(0, bound + 1);
if (bound !== bound) {
const item = set.forEach((fn) => fn());
}
}
}),
navigation.addListener("transitionEnd", leave),
navigation.addListener("gestureCancel", leave)
];
return () => {
const item = items.forEach((fn) => fn());
if (c0) {
c0 = false;
const _Math = Math;
bound = Math.max(0, bound - 1);
if (bound !== bound) {
const item1 = set.forEach((fn) => fn());
}
}
};
}, items);
};
export const useIsProfileModalTransitioning = function useIsProfileModalTransitioning() {
return noop.useSyncExternalStore((arg0) => {
closure_0 = arg0;
set.add(arg0);
return () => set.delete(closure_0);
}, () => closure_1_3 > 0);
};