Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
491 lines
24 KiB
JavaScript
491 lines
24 KiB
JavaScript
// Module ID: 6875
|
|
// Function ID: 6876
|
|
// Dependencies: [32, 109, 19, 17, 21, 6761, 6857, 6858, 6859, 6860, 6876, 6854, 6779, 6852]
|
|
// Exports: default
|
|
|
|
// Module 6875
|
|
import tagMessage2 from "tagMessage" /* 6761 */;
|
|
import touchDataToPressEvent from "touchDataToPressEvent" /* 6857 */;
|
|
import StateMachineEvent2 from "StateMachineEvent" /* 6860 */;
|
|
import GestureObjects2 from "GestureObjects" /* 6876 */;
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
import _objectWithoutProperties from "_objectWithoutProperties" /* 109 */;
|
|
import noop_mod from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
let closure_2 = ["testOnly_pressed", "hitSlop", "pressRetentionOffset", "delayHoverIn", "delayHoverOut", "delayLongPress", "unstable_pressDelay", "onHoverIn", "onHoverOut", "onPress", "onPressIn", "onPressOut", "onLongPress", "onLayout", "style", "children", "android_disableSound", "android_ripple", "disabled", "accessible", "simultaneousWithExternalGesture", "requireExternalGestureToFail", "blocksExternalGesture"];
|
|
let noop = fn(19);
|
|
({ useCallback: hasOwnProperty, useEffect: metroRequire, useMemo: closure_7, useRef: closure_8, useState: closure_9 } = noop);
|
|
let noop = noop_mod;
|
|
const Platform = fn(17).Platform;
|
|
const jsxProd = fn(21);
|
|
({ jsx: closure_11, jsxs: closure_12 } = jsxProd);
|
|
const tagMessage = fn(6761);
|
|
let closure_13 = tagMessage.isTestEnv();
|
|
let closure_14 = { code: "function pnpm_PressableTsx1(event){const{hoverInTimeout,clearTimeout,delayHoverOut,hoverOutTimeout,setTimeout,onHoverOut,gestureToPressableEvent}=this.__closure;var _onHoverOut2;if(hoverInTimeout.current){clearTimeout(hoverInTimeout.current);}if(delayHoverOut){hoverOutTimeout.current=setTimeout(function(){var _onHoverOut;return(_onHoverOut=onHoverOut)===null||_onHoverOut===void 0?void 0:_onHoverOut(gestureToPressableEvent(event));},delayHoverOut);return;}(_onHoverOut2=onHoverOut)===null||_onHoverOut2===void 0||_onHoverOut2(gestureToPressableEvent(event));}" };
|
|
let closure_15 = { code: "function pnpm_PressableTsx2(event){const{hoverOutTimeout,clearTimeout,delayHoverIn,hoverInTimeout,setTimeout,onHoverIn,gestureToPressableEvent}=this.__closure;var _onHoverIn2;if(hoverOutTimeout.current){clearTimeout(hoverOutTimeout.current);}if(delayHoverIn){hoverInTimeout.current=setTimeout(function(){var _onHoverIn;return(_onHoverIn=onHoverIn)===null||_onHoverIn===void 0?void 0:_onHoverIn(gestureToPressableEvent(event));},delayHoverIn);return;}(_onHoverIn2=onHoverIn)===null||_onHoverIn2===void 0||_onHoverIn2(gestureToPressableEvent(event));}" };
|
|
let closure_16 = { code: "function pnpm_PressableTsx3(_event,success){const{Platform,stateMachine,StateMachineEvent,handleFinalize}=this.__closure;if(Platform.OS==='web'){if(success){stateMachine.handleEvent(StateMachineEvent.FINALIZE);}else{stateMachine.handleEvent(StateMachineEvent.CANCEL);}handleFinalize();}}" };
|
|
let closure_17 = { code: "function pnpm_PressableTsx4(event){const{gestureTouchToPressableEvent,stateMachine,handlePressOut}=this.__closure;const pressableEvent=gestureTouchToPressableEvent(event);stateMachine.reset();handlePressOut(pressableEvent,false);}" };
|
|
let closure_18 = { code: "function pnpm_PressableTsx5(){const{Platform,isScreenReaderEnabled,stateMachine,handleFinalize}=this.__closure;if(Platform.OS==='android'&&!isScreenReaderEnabled){stateMachine.reset();handleFinalize();}}" };
|
|
let closure_19 = { code: "function pnpm_PressableTsx6(event){const{gestureTouchToPressableEvent,stateMachine,StateMachineEvent}=this.__closure;const pressableEvent=gestureTouchToPressableEvent(event);stateMachine.handleEvent(StateMachineEvent.LONG_PRESS_TOUCHES_DOWN,pressableEvent);}" };
|
|
let closure_20 = { code: "function pnpm_PressableTsx7(_event,success){const{Platform,stateMachine,StateMachineEvent,handleFinalize}=this.__closure;if(Platform.OS!=='web'){if(success){stateMachine.handleEvent(StateMachineEvent.FINALIZE);}else{stateMachine.handleEvent(StateMachineEvent.CANCEL);}if(Platform.OS!=='ios'){handleFinalize();}}}" };
|
|
let closure_21 = { code: "function pnpm_PressableTsx8(){const{Platform,stateMachine,StateMachineEvent}=this.__closure;if(Platform.OS!=='android'){stateMachine.handleEvent(StateMachineEvent.NATIVE_START);}}" };
|
|
let closure_22 = { code: "function pnpm_PressableTsx9(){const{Platform,isScreenReaderEnabled,stateMachine,StateMachineEvent,viewCenterToPressableEvent,dimensions}=this.__closure;if(Platform.OS==='android'&&isScreenReaderEnabled){stateMachine.handleEvent(StateMachineEvent.NATIVE_BEGIN,viewCenterToPressableEvent(dimensions.current));return;}stateMachine.handleEvent(StateMachineEvent.NATIVE_BEGIN);}" };
|
|
let closure_23 = { code: "function pnpm_PressableTsx10(event){const{Platform,gestureTouchToPressableEvent,stateMachine,handlePressOut}=this.__closure;if(Platform.OS!=='macos'&&Platform.OS!=='web'){const pressableEvent=gestureTouchToPressableEvent(event);stateMachine.reset();handlePressOut(pressableEvent,false);}}" };
|
|
|
|
export default function _default(pressRetentionOffset) {
|
|
({ testOnly_pressed, hitSlop } = pressRetentionOffset);
|
|
pressRetentionOffset = pressRetentionOffset.pressRetentionOffset;
|
|
const delayHoverIn = pressRetentionOffset.delayHoverIn;
|
|
const delayHoverOut = pressRetentionOffset.delayHoverOut;
|
|
const delayLongPress = pressRetentionOffset.delayLongPress;
|
|
const unstable_pressDelay = pressRetentionOffset.unstable_pressDelay;
|
|
const onHoverIn = pressRetentionOffset.onHoverIn;
|
|
const onHoverOut = pressRetentionOffset.onHoverOut;
|
|
const onPress = pressRetentionOffset.onPress;
|
|
const onPressIn = pressRetentionOffset.onPressIn;
|
|
const onPressOut = pressRetentionOffset.onPressOut;
|
|
const onLongPress = pressRetentionOffset.onLongPress;
|
|
const onLayout = pressRetentionOffset.onLayout;
|
|
({ style, children, android_disableSound, android_ripple } = pressRetentionOffset);
|
|
({ disabled, accessible, simultaneousWithExternalGesture, requireExternalGestureToFail, blocksExternalGesture } = pressRetentionOffset);
|
|
__initData = { simultaneousWithExternalGesture, requireExternalGestureToFail, blocksExternalGesture };
|
|
if (testOnly_pressed == null) {
|
|
testOnly_pressed = false;
|
|
}
|
|
const tmp = delayLongPress(pressRetentionOffset, delayHoverIn);
|
|
[tmp4, closure_15] = delayHoverOut(onPressIn(testOnly_pressed), 2);
|
|
__initData3 = onPress(null);
|
|
__initData4 = onPress(null);
|
|
__initData5 = onPress(true);
|
|
__initData6 = onPress(false);
|
|
onPress({ width: 0, height: 0 });
|
|
const items = [hitSlop];
|
|
const tmp5 = onHoverOut(() => {
|
|
if (typeof hitSlop === "number") {
|
|
let numberAsInsetResult = touchDataToPressEvent.numberAsInset(tmp);
|
|
} else {
|
|
numberAsInsetResult = tmp;
|
|
if (tmp == null) {
|
|
numberAsInsetResult = {};
|
|
}
|
|
}
|
|
return numberAsInsetResult;
|
|
}, items);
|
|
__initData7 = tmp5;
|
|
const items1 = [pressRetentionOffset];
|
|
let tmp3 = delayHoverOut(onPressIn(testOnly_pressed), 2);
|
|
const tmp6 = onHoverOut(() => {
|
|
if (typeof pressRetentionOffset === "number") {
|
|
let numberAsInsetResult = touchDataToPressEvent.numberAsInset(tmp);
|
|
} else {
|
|
numberAsInsetResult = tmp;
|
|
if (tmp == null) {
|
|
numberAsInsetResult = {};
|
|
}
|
|
}
|
|
return numberAsInsetResult;
|
|
}, items1);
|
|
const addInsetsResult = hitSlop(pressRetentionOffset[6]).addInsets(tmp5, tmp6);
|
|
const tmp8 = unstable_pressDelay(() => {
|
|
if (__initData3.current) {
|
|
const _clearTimeout = clearTimeout;
|
|
clearTimeout(tmp.current);
|
|
tmp.current = null;
|
|
closure_18.current = true;
|
|
}
|
|
}, []);
|
|
__initData9 = tmp8;
|
|
let tmp9 = unstable_pressDelay(() => {
|
|
if (__initData4.current) {
|
|
const _clearTimeout = clearTimeout;
|
|
clearTimeout(tmp.current);
|
|
tmp.current = null;
|
|
}
|
|
}, []);
|
|
closure_24 = tmp9;
|
|
const items2 = [onLongPress, tmp8, delayLongPress];
|
|
const tmp10 = unstable_pressDelay((arg0) => {
|
|
closure_0 = arg0;
|
|
if (onLongPress) {
|
|
__initData9();
|
|
let num = delayLongPress;
|
|
if (delayLongPress == null) {
|
|
num = 500;
|
|
}
|
|
closure_16.current = setTimeout(() => {
|
|
closure_18.current = false;
|
|
onLongPress(closure_0);
|
|
}, num);
|
|
}
|
|
}, items2);
|
|
closure_25 = tmp10;
|
|
const items3 = [onPressIn, tmp10];
|
|
const tmp11 = unstable_pressDelay((arg0) => {
|
|
if (onPressIn != null) {
|
|
tmp(arg0);
|
|
}
|
|
closure_25(arg0);
|
|
__initData2(true);
|
|
if (__initData4.current) {
|
|
const _clearTimeout = clearTimeout;
|
|
clearTimeout(tmp5.current);
|
|
tmp5.current = null;
|
|
}
|
|
}, items3);
|
|
closure_26 = tmp11;
|
|
const items4 = [tmp9, tmp8];
|
|
const tmp12 = unstable_pressDelay(() => {
|
|
closure_19.current = false;
|
|
__initData9();
|
|
closure_24();
|
|
__initData2(false);
|
|
}, items4);
|
|
const handleFinalize = tmp12;
|
|
const items5 = [tmp11, tmp5, unstable_pressDelay];
|
|
const tmp13 = unstable_pressDelay((nativeEvent) => {
|
|
closure_0 = nativeEvent;
|
|
const changedTouches = nativeEvent.nativeEvent.changedTouches;
|
|
if (obj.isTouchWithinInset(ref.current, closure_21, changedTouches.at(-1))) {
|
|
closure_19.current = true;
|
|
if (unstable_pressDelay) {
|
|
const _setTimeout = setTimeout;
|
|
closure_17.current = setTimeout(() => {
|
|
closure_26(closure_0);
|
|
}, tmp2);
|
|
} else {
|
|
closure_26(nativeEvent);
|
|
}
|
|
}
|
|
}, items5);
|
|
closure_28 = tmp13;
|
|
const items6 = [tmp12, tmp11, onPress, onPressOut];
|
|
const tmp14 = unstable_pressDelay((arg0) => {
|
|
let flag = arg1;
|
|
if (arg1 === undefined) {
|
|
flag = true;
|
|
}
|
|
if (__initData6.current) {
|
|
tmp.current = false;
|
|
if (__initData4.current) {
|
|
closure_26(arg0);
|
|
}
|
|
if (onPressOut != null) {
|
|
onPressOut(arg0);
|
|
}
|
|
if (tmp9) {
|
|
if (onPress != null) {
|
|
onPress(arg0);
|
|
}
|
|
}
|
|
handleFinalize();
|
|
tmp9 = __initData5.current && flag;
|
|
}
|
|
}, items6);
|
|
const handlePressOut = tmp14;
|
|
const tmp15 = onHoverOut(() => {
|
|
const pressableStateMachine = new hitSlop(pressRetentionOffset[7]).PressableStateMachine();
|
|
return pressableStateMachine;
|
|
}, []);
|
|
const stateMachine = tmp15;
|
|
let obj = hitSlop(pressRetentionOffset[6]);
|
|
const isScreenReaderEnabled = hitSlop(pressRetentionOffset[8]).useIsScreenReaderEnabled();
|
|
const items7 = [tmp13, tmp14, tmp15, isScreenReaderEnabled];
|
|
onHoverIn(() => {
|
|
stateMachine.setStates(StateMachineEvent2.getStatesConfig(closure_28, closure_29, isScreenReaderEnabled));
|
|
}, items7);
|
|
const hoverInTimeout = onPress(null);
|
|
const hoverOutTimeout = onPress(null);
|
|
const items8 = [delayHoverIn, delayHoverOut, onHoverIn, onHoverOut];
|
|
const items9 = [tmp15, tmp12, tmp14, isScreenReaderEnabled];
|
|
let obj2 = hitSlop(pressRetentionOffset[8]);
|
|
const items10 = [tmp15, tmp14, tmp12, isScreenReaderEnabled];
|
|
const tmp18 = onHoverOut(() => {
|
|
const GestureObjects = GestureObjects2.GestureObjects;
|
|
const HoverResult = GestureObjects.Hover();
|
|
const manualActivationResult = GestureObjects.Hover().manualActivation(true);
|
|
const fn = function n(arg0) {
|
|
closure_0 = arg0;
|
|
if (ref2.current) {
|
|
const _clearTimeout = clearTimeout;
|
|
clearTimeout(tmp.current);
|
|
}
|
|
if (closure_2) {
|
|
const _setTimeout = setTimeout;
|
|
closure_32.current = setTimeout(() => {
|
|
let tmpResult;
|
|
if (onHoverIn != null) {
|
|
tmpResult = tmp(hitSlop(pressRetentionOffset[6]).gestureToPressableEvent(closure_0));
|
|
const obj = hitSlop(pressRetentionOffset[6]);
|
|
}
|
|
return tmpResult;
|
|
}, tmp4);
|
|
} else if (closure_6 != null) {
|
|
tmp5(hitSlop(6857).gestureToPressableEvent(arg0));
|
|
let obj = hitSlop(6857);
|
|
}
|
|
};
|
|
const cancelsTouchesInViewResult = GestureObjects.Hover().manualActivation(true).cancelsTouchesInView(false);
|
|
fn.__closure = { hoverOutTimeout, clearTimeout: clearTimeout, delayHoverIn, hoverInTimeout, setTimeout: setTimeout, onHoverIn, gestureToPressableEvent: touchDataToPressEvent.gestureToPressableEvent };
|
|
fn.__workletHash = 145410820733;
|
|
fn.__initData = __initData2;
|
|
let obj = { hoverOutTimeout, clearTimeout: clearTimeout, delayHoverIn, hoverInTimeout, setTimeout: setTimeout, onHoverIn, gestureToPressableEvent: touchDataToPressEvent.gestureToPressableEvent };
|
|
const fn2 = function t(arg0) {
|
|
closure_0 = arg0;
|
|
if (ref.current) {
|
|
const _clearTimeout = clearTimeout;
|
|
clearTimeout(tmp.current);
|
|
}
|
|
if (closure_3) {
|
|
const _setTimeout = setTimeout;
|
|
closure_33.current = setTimeout(() => {
|
|
let tmpResult;
|
|
if (onHoverOut != null) {
|
|
tmpResult = tmp(hitSlop(pressRetentionOffset[6]).gestureToPressableEvent(closure_0));
|
|
const obj = hitSlop(pressRetentionOffset[6]);
|
|
}
|
|
return tmpResult;
|
|
}, tmp4);
|
|
} else if (closure_7 != null) {
|
|
tmp5(hitSlop(6857).gestureToPressableEvent(arg0));
|
|
let obj = hitSlop(6857);
|
|
}
|
|
};
|
|
const onBeginResult = cancelsTouchesInViewResult.onBegin(fn);
|
|
fn2.__closure = { hoverInTimeout, clearTimeout: clearTimeout, delayHoverOut, hoverOutTimeout, setTimeout: setTimeout, onHoverOut, gestureToPressableEvent: touchDataToPressEvent.gestureToPressableEvent };
|
|
fn2.__workletHash = 117886059607;
|
|
fn2.__initData = __initData;
|
|
return onBeginResult.onFinalize(fn2);
|
|
}, items8);
|
|
closure_34 = tmp20;
|
|
const items11 = [
|
|
onHoverOut(() => {
|
|
const GestureObjects = GestureObjects2.GestureObjects;
|
|
const fn = function o(arg0) {
|
|
const result = hitSlop(pressRetentionOffset[6]).gestureTouchToPressableEvent(arg0);
|
|
navigation.reset();
|
|
handlePressOut(result, false);
|
|
};
|
|
const NativeResult = GestureObjects.Native();
|
|
fn.__closure = { Platform, gestureTouchToPressableEvent: touchDataToPressEvent.gestureTouchToPressableEvent, stateMachine, handlePressOut };
|
|
fn.__workletHash = 9061249296673;
|
|
fn.__initData = __initData9;
|
|
let obj = { Platform, gestureTouchToPressableEvent: touchDataToPressEvent.gestureTouchToPressableEvent, stateMachine, handlePressOut };
|
|
const fn2 = function s() {
|
|
const handleEvent = navigation.handleEvent;
|
|
const NATIVE_BEGIN = hitSlop(pressRetentionOffset[9]).StateMachineEvent.NATIVE_BEGIN;
|
|
if (isScreenReaderEnabled) {
|
|
handleEvent(NATIVE_BEGIN, hitSlop(pressRetentionOffset[6]).viewCenterToPressableEvent(ref.current));
|
|
const obj = hitSlop(pressRetentionOffset[6]);
|
|
} else {
|
|
handleEvent(NATIVE_BEGIN);
|
|
}
|
|
};
|
|
const onTouchesCancelledResult = NativeResult.onTouchesCancelled(fn);
|
|
fn2.__closure = { Platform, isScreenReaderEnabled, stateMachine, StateMachineEvent: StateMachineEvent2.StateMachineEvent, viewCenterToPressableEvent: touchDataToPressEvent.viewCenterToPressableEvent, dimensions: ref };
|
|
fn2.__workletHash = 9788273325262;
|
|
fn2.__initData = __initData8;
|
|
const obj2 = { Platform, isScreenReaderEnabled, stateMachine, StateMachineEvent: StateMachineEvent2.StateMachineEvent, viewCenterToPressableEvent: touchDataToPressEvent.viewCenterToPressableEvent, dimensions: ref };
|
|
const fn3 = function n() {
|
|
|
|
};
|
|
const onBeginResult = onTouchesCancelledResult.onBegin(fn2);
|
|
fn3.__closure = { Platform, stateMachine, StateMachineEvent: StateMachineEvent2.StateMachineEvent };
|
|
fn3.__workletHash = 1583717288778;
|
|
fn3.__initData = __initData7;
|
|
const obj3 = { Platform, stateMachine, StateMachineEvent: StateMachineEvent2.StateMachineEvent };
|
|
const fn4 = function t(arg0, arg1) {
|
|
const handleEvent = navigation.handleEvent;
|
|
const StateMachineEvent = hitSlop(pressRetentionOffset[9]).StateMachineEvent;
|
|
if (arg1) {
|
|
handleEvent(StateMachineEvent.FINALIZE);
|
|
} else {
|
|
handleEvent(StateMachineEvent.CANCEL);
|
|
}
|
|
handleFinalize();
|
|
};
|
|
const onStartResult = onBeginResult.onStart(fn3);
|
|
fn4.__closure = { Platform, stateMachine, StateMachineEvent: StateMachineEvent2.StateMachineEvent, handleFinalize };
|
|
fn4.__workletHash = 13697558324309;
|
|
fn4.__initData = ref;
|
|
const obj4 = { Platform, stateMachine, StateMachineEvent: StateMachineEvent2.StateMachineEvent, handleFinalize };
|
|
return onStartResult.onFinalize(fn4).shouldActivateOnStart(false);
|
|
}, items10),
|
|
onHoverOut(() => {
|
|
const GestureObjects = GestureObjects2.GestureObjects;
|
|
const LongPressResult = GestureObjects.LongPress();
|
|
const minDurationResult = GestureObjects.LongPress().minDuration(tagMessage2.INT32_MAX);
|
|
const maxDistanceResult = GestureObjects.LongPress().minDuration(tagMessage2.INT32_MAX).maxDistance(tagMessage2.INT32_MAX);
|
|
const fn = function o(arg0) {
|
|
const result = hitSlop(pressRetentionOffset[6]).gestureTouchToPressableEvent(arg0);
|
|
navigation.handleEvent(hitSlop(pressRetentionOffset[9]).StateMachineEvent.LONG_PRESS_TOUCHES_DOWN, result);
|
|
};
|
|
const cancelsTouchesInViewResult = GestureObjects.LongPress().minDuration(tagMessage2.INT32_MAX).maxDistance(tagMessage2.INT32_MAX).cancelsTouchesInView(false);
|
|
fn.__closure = { gestureTouchToPressableEvent: touchDataToPressEvent.gestureTouchToPressableEvent, stateMachine, StateMachineEvent: StateMachineEvent2.StateMachineEvent };
|
|
fn.__workletHash = 5538605329543;
|
|
fn.__initData = __initData6;
|
|
const obj = { gestureTouchToPressableEvent: touchDataToPressEvent.gestureTouchToPressableEvent, stateMachine, StateMachineEvent: StateMachineEvent2.StateMachineEvent };
|
|
const fn2 = function s() {
|
|
if (!isScreenReaderEnabled) {
|
|
navigation.reset();
|
|
handleFinalize();
|
|
}
|
|
};
|
|
fn2.__closure = { Platform, isScreenReaderEnabled, stateMachine, handleFinalize };
|
|
fn2.__workletHash = 8055694403599;
|
|
fn2.__initData = __initData5;
|
|
const obj2 = { Platform, isScreenReaderEnabled, stateMachine, handleFinalize };
|
|
const onTouchesDownResult = cancelsTouchesInViewResult.onTouchesDown(fn);
|
|
const fn3 = function n(arg0) {
|
|
const result = hitSlop(pressRetentionOffset[6]).gestureTouchToPressableEvent(arg0);
|
|
navigation.reset();
|
|
handlePressOut(result, false);
|
|
};
|
|
const onTouchesUpResult = cancelsTouchesInViewResult.onTouchesDown(fn).onTouchesUp(fn2);
|
|
fn3.__closure = { gestureTouchToPressableEvent: touchDataToPressEvent.gestureTouchToPressableEvent, stateMachine, handlePressOut };
|
|
fn3.__workletHash = 8223505277740;
|
|
fn3.__initData = __initData4;
|
|
const obj3 = { gestureTouchToPressableEvent: touchDataToPressEvent.gestureTouchToPressableEvent, stateMachine, handlePressOut };
|
|
const fn4 = function t(arg0, arg1) {
|
|
|
|
};
|
|
const onTouchesCancelledResult = onTouchesUpResult.onTouchesCancelled(fn3);
|
|
fn4.__closure = { Platform, stateMachine, StateMachineEvent: StateMachineEvent2.StateMachineEvent, handleFinalize };
|
|
fn4.__workletHash = 946627735228;
|
|
fn4.__initData = __initData3;
|
|
return onTouchesCancelledResult.onFinalize(fn4);
|
|
}, items9),
|
|
tmp18
|
|
];
|
|
function _loop(iter) {
|
|
closure_0 = iter;
|
|
iter.enabled(closure_34);
|
|
iter.runOnJS(true);
|
|
iter.hitSlop(addInsetsResult);
|
|
const entries = Object.entries(closure_14);
|
|
const item = entries.forEach((item) => {
|
|
[tmp, tmp2] = item;
|
|
hitSlop(pressRetentionOffset[11]).applyRelationProp(closure_0, tmp, tmp2);
|
|
});
|
|
}
|
|
const iter = items11[Symbol.iterator]();
|
|
while (iter !== undefined) {
|
|
let _loopResult = _loop(iter.next());
|
|
continue;
|
|
}
|
|
let GestureObjects = hitSlop(pressRetentionOffset[10]).GestureObjects;
|
|
const items12 = [...items11];
|
|
let style1 = style;
|
|
const tmp19 = onHoverOut(() => {
|
|
const GestureObjects = GestureObjects2.GestureObjects;
|
|
const LongPressResult = GestureObjects.LongPress();
|
|
const minDurationResult = GestureObjects.LongPress().minDuration(tagMessage2.INT32_MAX);
|
|
const maxDistanceResult = GestureObjects.LongPress().minDuration(tagMessage2.INT32_MAX).maxDistance(tagMessage2.INT32_MAX);
|
|
const fn = function o(arg0) {
|
|
const result = hitSlop(pressRetentionOffset[6]).gestureTouchToPressableEvent(arg0);
|
|
navigation.handleEvent(hitSlop(pressRetentionOffset[9]).StateMachineEvent.LONG_PRESS_TOUCHES_DOWN, result);
|
|
};
|
|
const cancelsTouchesInViewResult = GestureObjects.LongPress().minDuration(tagMessage2.INT32_MAX).maxDistance(tagMessage2.INT32_MAX).cancelsTouchesInView(false);
|
|
fn.__closure = { gestureTouchToPressableEvent: touchDataToPressEvent.gestureTouchToPressableEvent, stateMachine, StateMachineEvent: StateMachineEvent2.StateMachineEvent };
|
|
fn.__workletHash = 5538605329543;
|
|
fn.__initData = __initData6;
|
|
const obj = { gestureTouchToPressableEvent: touchDataToPressEvent.gestureTouchToPressableEvent, stateMachine, StateMachineEvent: StateMachineEvent2.StateMachineEvent };
|
|
const fn2 = function s() {
|
|
if (!isScreenReaderEnabled) {
|
|
navigation.reset();
|
|
handleFinalize();
|
|
}
|
|
};
|
|
fn2.__closure = { Platform, isScreenReaderEnabled, stateMachine, handleFinalize };
|
|
fn2.__workletHash = 8055694403599;
|
|
fn2.__initData = __initData5;
|
|
const obj2 = { Platform, isScreenReaderEnabled, stateMachine, handleFinalize };
|
|
const onTouchesDownResult = cancelsTouchesInViewResult.onTouchesDown(fn);
|
|
const fn3 = function n(arg0) {
|
|
const result = hitSlop(pressRetentionOffset[6]).gestureTouchToPressableEvent(arg0);
|
|
navigation.reset();
|
|
handlePressOut(result, false);
|
|
};
|
|
const onTouchesUpResult = cancelsTouchesInViewResult.onTouchesDown(fn).onTouchesUp(fn2);
|
|
fn3.__closure = { gestureTouchToPressableEvent: touchDataToPressEvent.gestureTouchToPressableEvent, stateMachine, handlePressOut };
|
|
fn3.__workletHash = 8223505277740;
|
|
fn3.__initData = __initData4;
|
|
const obj3 = { gestureTouchToPressableEvent: touchDataToPressEvent.gestureTouchToPressableEvent, stateMachine, handlePressOut };
|
|
const fn4 = function t(arg0, arg1) {
|
|
|
|
};
|
|
const onTouchesCancelledResult = onTouchesUpResult.onTouchesCancelled(fn3);
|
|
fn4.__closure = { Platform, stateMachine, StateMachineEvent: StateMachineEvent2.StateMachineEvent, handleFinalize };
|
|
fn4.__workletHash = 946627735228;
|
|
fn4.__initData = __initData3;
|
|
return onTouchesCancelledResult.onFinalize(fn4);
|
|
}, items9);
|
|
if (typeof style === "function") {
|
|
let obj3 = { pressed: tmp4 };
|
|
style1 = style(obj3);
|
|
}
|
|
let childrenResult = children;
|
|
if (typeof children === "function") {
|
|
let obj4 = { pressed: tmp4 };
|
|
childrenResult = children(obj4);
|
|
}
|
|
const items13 = [android_ripple];
|
|
const items14 = [onLayout];
|
|
const applyResult = GestureObjects.Simultaneous.apply(items12);
|
|
const tmp27 = onHoverOut(() => {
|
|
let color;
|
|
if (android_ripple != null) {
|
|
color = tmp.color;
|
|
}
|
|
if (color == null) {
|
|
color = str;
|
|
}
|
|
return color;
|
|
}, items13);
|
|
const obj5 = { gesture: applyResult, children: null };
|
|
const obj6 = {};
|
|
const merged = Object.assign(tmp);
|
|
obj6.needsOffscreenAlphaCompositing = true;
|
|
obj6.onLayout = unstable_pressDelay((nativeEvent) => {
|
|
if (onLayout != null) {
|
|
tmp(nativeEvent);
|
|
}
|
|
closure_20.current = nativeEvent.nativeEvent.layout;
|
|
}, items14);
|
|
obj6.accessible = false !== accessible;
|
|
obj6.hitSlop = addInsetsResult;
|
|
obj6.enabled = true !== disabled;
|
|
obj6.touchSoundDisabled = android_disableSound;
|
|
obj6.rippleColor = tmp27;
|
|
let radius;
|
|
if (android_ripple != null) {
|
|
radius = android_ripple.radius;
|
|
}
|
|
obj6.rippleRadius = radius;
|
|
const items15 = [{}, style1];
|
|
obj6.style = items15;
|
|
let tmp34;
|
|
if (android_ripple) {
|
|
tmp34 = onPress;
|
|
}
|
|
obj6.testOnly_onPress = tmp34;
|
|
let tmp35;
|
|
if (android_ripple) {
|
|
tmp35 = onPressIn;
|
|
}
|
|
obj6.testOnly_onPressIn = tmp35;
|
|
let tmp36;
|
|
if (android_ripple) {
|
|
tmp36 = onPressOut;
|
|
}
|
|
obj6.testOnly_onPressOut = tmp36;
|
|
let tmp37;
|
|
if (android_ripple) {
|
|
tmp37 = onLongPress;
|
|
}
|
|
obj6.testOnly_onLongPress = tmp37;
|
|
const items16 = [childrenResult, null];
|
|
obj6.children = items16;
|
|
obj5.children = onLayout(hitSlop(pressRetentionOffset[13]).ButtonComponent, obj6);
|
|
return onLongPress(hitSlop(pressRetentionOffset[12]).GestureDetector, obj5);
|
|
};
|