decord/source/modules/launchpad/native/useLaunchPadPullTabMinimized.tsx
2026-08-15 05:55:55 +00:00

71 lines
2.8 KiB
TypeScript

// Module ID: 16186
// Function ID: 16187
// Name: useLaunchPadPullTabMinimized
// Dependencies: [19, 17, 4115, 8667, 2]
// Exports: default
// Module 16186 (useLaunchPadPullTabMinimized)
import noop from "noop";
import get_ActivityIndicator from "get ActivityIndicator";
const require = arg1;
const DCDScrollTracker = get_ActivityIndicator.NativeModules.DCDScrollTracker;
let tmp3;
if (DCDScrollTracker) {
tmp3 = new tmp3(DCDScrollTracker);
}
let c3 = tmp3;
let closure_4 = { code: "function useLaunchPadPullTabMinimizedTsx1(){const{launchPadPullTabState,isVoicePanelOpen,launchPadSharedState,isMinimizedDuringScroll}=this.__closure;const isMinimized=(launchPadPullTabState.get().minimized||isVoicePanelOpen)&&launchPadSharedState.get()<=0;return isMinimized||isMinimizedDuringScroll.get();}" };
let result = require("module_4115").fileFinishedImporting("modules/launchpad/native/useLaunchPadPullTabMinimized.tsx");
export default function useLaunchPadPullTabMinimized(launchPadSharedState) {
launchPadSharedState = launchPadSharedState.launchPadSharedState;
let sharedValue = launchPadSharedState;
let launchPadPullTabState = launchPadSharedState.launchPadPullTabState;
let isVoicePanelFullscreen;
sharedValue = undefined;
isVoicePanelFullscreen = sharedValue(launchPadPullTabState[3]).useIsVoicePanelFullscreen();
sharedValue = undefined;
const obj = sharedValue(launchPadPullTabState[3]);
sharedValue = sharedValue(launchPadPullTabState[2]).useSharedValue(false);
const items = [sharedValue];
const effect = isVoicePanelFullscreen.useEffect(() => {
let c0 = -1;
let addListenerResult;
if (sharedValue != null) {
addListenerResult = sharedValue.addListener("isScrollingOrDragging", (isScrollingOrDragging) => {
clearTimeout(timeout);
if (isScrollingOrDragging.isScrollingOrDragging) {
let result = v1.set(true);
} else {
const _setTimeout = setTimeout;
timeout = setTimeout(() => {
const result = closure_0.set(false);
}, 1000);
}
});
}
const launchPadPullTabState = addListenerResult;
return () => {
clearTimeout(c0);
if (closure_1 != null) {
closure_1.remove();
}
};
}, items);
const obj2 = sharedValue(launchPadPullTabState[2]);
const fn = function u() {
let value = launchPadPullTabState.get().minimized || isVoicePanelFullscreen;
if (value) {
value = sharedValue.get() <= 0;
}
if (!value) {
value = sharedValue.get();
}
return value;
};
fn.__closure = { launchPadPullTabState, isVoicePanelOpen: isVoicePanelFullscreen, launchPadSharedState, isMinimizedDuringScroll: sharedValue };
fn.__workletHash = 14263056934448;
fn.__initData = closure_4;
return sharedValue(launchPadPullTabState[2]).useDerivedValue(fn);
};