// Module ID: 5482 // Function ID: 5483 // Name: NativeDetector // Dependencies: [19, 17, 21, 5483, 5441, 5500, 5442, 5501, 5502, 5494, 5503] // Exports: NativeDetector // Module 5482 (NativeDetector) import "noop"; import { useMemo } from "noop"; import { Platform } from "get ActivityIndicator"; import { jsx } from "jsxProd"; const require = arg1; export const NativeDetector = function NativeDetector(gesture) { let children; let enableContextMenu; let touchAction; let userSelect; gesture = gesture.gesture; ({ children, touchAction, userSelect, enableContextMenu } = gesture); let obj = gesture(5483); if (gesture.config.dispatchesAnimatedEvents) { let ReanimatedNativeDetector = tmp(5441).AnimatedNativeDetector; } else if (gesture.config.shouldUseReanimatedDetector) { ReanimatedNativeDetector = tmp(5500).ReanimatedNativeDetector; } else { ReanimatedNativeDetector = importDefault(5442); } let tmpResult = tmp(5501); const result = tmpResult.ensureNativeDetectorComponent(ReanimatedNativeDetector); tmpResult = tmp(5502); const gestureRelationsUpdater = tmpResult.useGestureRelationsUpdater(gesture); const items = [gesture]; const tmp6 = useMemo(() => { if (obj.isComposedGesture(gesture)) { let handlerTags = tmp.handlerTags; } else { handlerTags = [tmp.handlerTag]; } return handlerTags; }, items); const detectorAttachmentGuard = gesture(5503).useDetectorAttachmentGuard(tmp6); obj = { onGestureHandlerReanimatedEvent: gesture.detectorCallbacks.reanimatedEventHandler }; obj = { onStartShouldSetResponder: obj.useJSResponderHandler(gesture).handleStartShouldSetResponder, touchAction, userSelect, enableContextMenu, pointerEvents: "box-none", onGestureHandlerStateChange: gesture.detectorCallbacks.jsEventHandler, onGestureHandlerEvent: gesture.detectorCallbacks.jsEventHandler, onGestureHandlerTouchEvent: gesture.detectorCallbacks.jsEventHandler, onGestureHandlerReanimatedStateChange: obj.onGestureHandlerReanimatedStateChange, onGestureHandlerReanimatedEvent: obj.onGestureHandlerReanimatedEvent, onGestureHandlerReanimatedTouchEvent: obj.onGestureHandlerReanimatedTouchEvent, onGestureHandlerAnimatedEvent: gesture.detectorCallbacks.animatedEventHandler, moduleId: globalThis._RNGH_MODULE_ID, handlerTags: tmp6, style: tmp(5441).nativeDetectorStyles.detector, children }; return {children}; };