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

48 lines
1.9 KiB
TypeScript
Raw Normal View History

// Module ID: 13120
// Function ID: 13121
2026-09-01 10:26:29 +00:00
// Name: useSheetDismissPointerEvents
// Dependencies: [6728, 4373, 6756, 2]
2026-09-01 10:26:29 +00:00
// Exports: default
// Module 13120 (useSheetDismissPointerEvents)
import LegacyBaseButton from "LegacyBaseButton" /* 6756 */;
import size from "module_2" /* 2 */;
2026-09-01 10:26:29 +00:00
const __initData = { code: "function useSheetDismissPointerEventsTsx1(){const{contentGestureState,State,handleGestureState}=this.__closure;var _contentGestureState,_handleGestureState;const isDragging=((_contentGestureState=contentGestureState)===null||_contentGestureState===void 0?void 0:_contentGestureState.get())===State.ACTIVE||((_handleGestureState=handleGestureState)===null||_handleGestureState===void 0?void 0:_handleGestureState.get())===State.ACTIVE;return{pointerEvents:isDragging?'none':'box-none'};}" };
const result = size.fileFinishedImporting("modules/user_profile/native/useSheetDismissPointerEvents.tsx");
2026-09-01 10:26:29 +00:00
export default function useSheetDismissPointerEvents() {
const bottomSheetInternal = prop(prop1[0]).useBottomSheetInternal(true);
2026-09-01 10:26:29 +00:00
prop = undefined;
if (bottomSheetInternal != null) {
prop = bottomSheetInternal.animatedContentGestureState;
}
prop1 = undefined;
if (bottomSheetInternal != null) {
prop1 = bottomSheetInternal.animatedHandleGestureState;
}
const obj = prop(prop1[0]);
2026-09-01 10:26:29 +00:00
const fn = function n() {
value = undefined;
2026-09-01 10:26:29 +00:00
if (prop != null) {
value = prop.get();
}
if (value === LegacyBaseButton.State.ACTIVE) {
2026-09-01 10:26:29 +00:00
let pointerEvents = "none";
} else {
value2 = undefined;
2026-09-01 10:26:29 +00:00
if (prop1 != null) {
value2 = obj2.get();
2026-09-01 10:26:29 +00:00
}
pointerEvents = "box-none";
obj2 = prop1;
}
return { pointerEvents };
};
const tmpResult = prop(prop1[1]);
fn.__closure = { contentGestureState: prop, State: prop(prop1[2]).State, handleGestureState: prop1 };
2026-09-01 10:26:29 +00:00
fn.__workletHash = 16631714570992;
fn.__initData = __initData;
return tmpResult.useAnimatedStyle(fn);
2026-09-01 10:26:29 +00:00
};