decord/source/modules/user_profile/native/useSheetDismissPointerEvents.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

47 lines
1.9 KiB
TypeScript

// Module ID: 13120
// Function ID: 13121
// Name: useSheetDismissPointerEvents
// Dependencies: [6728, 4373, 6756, 2]
// Exports: default
// Module 13120 (useSheetDismissPointerEvents)
import LegacyBaseButton from "LegacyBaseButton" /* 6756 */;
import size from "module_2" /* 2 */;
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");
export default function useSheetDismissPointerEvents() {
const bottomSheetInternal = prop(prop1[0]).useBottomSheetInternal(true);
prop = undefined;
if (bottomSheetInternal != null) {
prop = bottomSheetInternal.animatedContentGestureState;
}
prop1 = undefined;
if (bottomSheetInternal != null) {
prop1 = bottomSheetInternal.animatedHandleGestureState;
}
const obj = prop(prop1[0]);
const fn = function n() {
value = undefined;
if (prop != null) {
value = prop.get();
}
if (value === LegacyBaseButton.State.ACTIVE) {
let pointerEvents = "none";
} else {
value2 = undefined;
if (prop1 != null) {
value2 = obj2.get();
}
pointerEvents = "box-none";
obj2 = prop1;
}
return { pointerEvents };
};
const tmpResult = prop(prop1[1]);
fn.__closure = { contentGestureState: prop, State: prop(prop1[2]).State, handleGestureState: prop1 };
fn.__workletHash = 16631714570992;
fn.__initData = __initData;
return tmpResult.useAnimatedStyle(fn);
};