decord/source/modules/user_profile/native/useSheetDismissPointerEvents.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

46 lines
1.8 KiB
TypeScript

// Module ID: 12994
// Function ID: 12995
// Name: useSheetDismissPointerEvents
// Dependencies: [6627, 4296, 6655, 2]
// Exports: default
// Module 12994 (useSheetDismissPointerEvents)
import set from "set" /* 2 */;
let closure_2 = { 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 = set.fileFinishedImporting("modules/user_profile/native/useSheetDismissPointerEvents.tsx");
export default function useSheetDismissPointerEvents() {
let obj = prop(prop1[0]);
const bottomSheetInternal = obj.useBottomSheetInternal(true);
prop = undefined;
if (bottomSheetInternal != null) {
prop = bottomSheetInternal.animatedContentGestureState;
}
prop1 = undefined;
if (bottomSheetInternal != null) {
prop1 = bottomSheetInternal.animatedHandleGestureState;
}
const fn = function n() {
let value;
if (prop != null) {
value = prop.get();
}
if (value === prop(prop1[2]).State.ACTIVE) {
let pointerEvents = "none";
} else {
value = undefined;
if (prop1 != null) {
value = obj2.get();
}
pointerEvents = "box-none";
obj2 = prop1;
}
return { pointerEvents };
};
obj = { contentGestureState: prop, State: tmp(tmp2[2]).State, handleGestureState: prop1 };
fn.__closure = obj;
fn.__workletHash = 16631714570992;
fn.__initData = closure_2;
return prop(prop1[1]).useAnimatedStyle(fn);
};