665 lines
37 KiB
React
665 lines
37 KiB
React
/* Metro module 5396; source: unknown; dependencies: [57, 29, 31, 27, 33, 5325, 5397, 5398, 5399, 5372, 5400, 5357, 5384] */
|
|
import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
|
|
import React from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import Module00057 from './module-00057.js'; /* Metro dependency 57 */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as Module05325Module from './module-05325.js'; /* Metro dependency 5325 */
|
|
import * as GestureDetectorModule from './module-05357-GestureDetector.jsx'; /* Metro dependency 5357 */
|
|
import * as GestureObjectsModule from './module-05372-GestureObjects.js'; /* Metro dependency 5372 */
|
|
import * as Module05397Module from './module-05397.js'; /* Metro dependency 5397 */
|
|
import * as PressableStateMachineModule from './module-05398-PressableStateMachine.js'; /* Metro dependency 5398 */
|
|
import * as Module05399Module from './module-05399.js'; /* Metro dependency 5399 */
|
|
import * as ApplyRelationPropModule from './module-05400-applyRelationProp.js'; /* Metro dependency 5400 */
|
|
|
|
function _fun47623(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:6, offset: 0x011c69de, size: 438 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const env0_3 = ['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'];
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactModule;
|
|
const env0_6 = value.useCallback;
|
|
const env0_7 = value.useEffect;
|
|
const env0_8 = value.useMemo;
|
|
const env0_9 = value.useRef;
|
|
const env0_10 = value.useState;
|
|
React;
|
|
value = require(27) /* metro dependency 27 */;
|
|
const env0_11 = value.Platform;
|
|
const env0_12 = value.processColor;
|
|
value = require(33) /* metro dependency 33 */;
|
|
const env0_13 = value.jsx;
|
|
const env0_14 = value.jsxs;
|
|
const env0_15 = (Module05325Module).isTestEnv();
|
|
object = {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));}'};
|
|
object = {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));}'};
|
|
object = {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();}}"};
|
|
object = {code: 'function pnpm_PressableTsx4(event){const{gestureTouchToPressableEvent,stateMachine,handlePressOut}=this.__closure;const pressableEvent=gestureTouchToPressableEvent(event);stateMachine.reset();handlePressOut(pressableEvent,false);}'};
|
|
object = {code: "function pnpm_PressableTsx5(){const{Platform,stateMachine,handleFinalize}=this.__closure;if(Platform.OS==='android'){stateMachine.reset();handleFinalize();}}"};
|
|
object = {code: 'function pnpm_PressableTsx6(event){const{gestureTouchToPressableEvent,stateMachine,StateMachineEvent}=this.__closure;const pressableEvent=gestureTouchToPressableEvent(event);stateMachine.handleEvent(StateMachineEvent.LONG_PRESS_TOUCHES_DOWN,pressableEvent);}'};
|
|
object = {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();}}}"};
|
|
object = {code: "function pnpm_PressableTsx8(){const{Platform,stateMachine,StateMachineEvent}=this.__closure;if(Platform.OS!=='android'){stateMachine.handleEvent(StateMachineEvent.NATIVE_START);}}"};
|
|
object = {code: 'function pnpm_PressableTsx9(){const{stateMachine,StateMachineEvent}=this.__closure;stateMachine.handleEvent(StateMachineEvent.NATIVE_BEGIN);}'};
|
|
object = {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);}}"};
|
|
exports.default = Pressable_47624;
|
|
function Pressable_47624(a0) { // fn#47624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:3770, offset: 0x011c6b94, size: 1278 bytes, params: 2, frame: 45
|
|
var r18;
|
|
var r12;
|
|
var r20;
|
|
var radius;
|
|
var r14;
|
|
var r4;
|
|
var error;
|
|
const GestureObjects = (GestureObjectsModule).GestureObjects;
|
|
var Simultaneous;
|
|
var apply;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var value26;
|
|
var jsxRuntimeEnv0_13Binding;
|
|
const GestureDetector = (GestureDetectorModule).GestureDetector;
|
|
var jsxRuntimeEnv0_14Binding;
|
|
var defaultImport;
|
|
var Object;
|
|
var assign;
|
|
var object2;
|
|
const value = undefined;
|
|
const testOnly_pressed = a0.testOnly_pressed;
|
|
const hitSlop = a0.hitSlop;
|
|
const pressRetentionOffset = a0.pressRetentionOffset;
|
|
const delayHoverIn = a0.delayHoverIn;
|
|
const delayHoverOut = a0.delayHoverOut;
|
|
const delayHoverOut2 = delayHoverOut;
|
|
const delayLongPress = a0.delayLongPress;
|
|
const delayLongPress2 = delayLongPress;
|
|
const unstable_pressDelay = a0.unstable_pressDelay;
|
|
const unstable_pressDelay2 = unstable_pressDelay;
|
|
const onHoverIn = a0.onHoverIn;
|
|
const onHoverOut = a0.onHoverOut;
|
|
const onPress = a0.onPress;
|
|
const onPressIn = a0.onPressIn;
|
|
const onPressOut = a0.onPressOut;
|
|
const onLongPress = a0.onLongPress;
|
|
const onLayout = a0.onLayout;
|
|
const style = a0.style;
|
|
const children = a0.children;
|
|
const android_disableSound = a0.android_disableSound;
|
|
const android_ripple = a0.android_ripple;
|
|
const disabled = a0.disabled;
|
|
const accessible = a0.accessible;
|
|
const simultaneousWithExternalGesture = a0.simultaneousWithExternalGesture;
|
|
const requireExternalGestureToFail = a0.requireExternalGestureToFail;
|
|
const blocksExternalGesture = a0.blocksExternalGesture;
|
|
const value3 = unstable_pressDelay2(a0, delayHoverOut2);
|
|
let object = {simultaneousWithExternalGesture: simultaneousWithExternalGesture,
|
|
requireExternalGestureToFail: requireExternalGestureToFail, blocksExternalGesture: blocksExternalGesture};
|
|
let r5 = testOnly_pressed != null && testOnly_pressed;
|
|
const [property, env0_15] = delayLongPress2(useState(r5), 2);
|
|
const env0_16 = useRef(null);
|
|
const env0_17 = useRef(null);
|
|
const env0_18 = useRef(true);
|
|
const env0_19 = useRef(false);
|
|
const env0_20 = useRef({'width': 0, 'height': 0});
|
|
const value7 = useMemo(_fun47625, [hitSlop]);
|
|
const value9 = (Module05397Module).addInsets(value7, useMemo(_fun47626,
|
|
[pressRetentionOffset]));
|
|
let closure = _fun47627;
|
|
const value10 = useCallback(closure, []);
|
|
const value11 = useCallback(_fun47628, []);
|
|
const value13 = useCallback(_fun47631, [onPressIn, useCallback(_fun47629, [onLongPress, value10, delayLongPress])]);
|
|
const value14 = useCallback(_fun47632, [value11, value10]);
|
|
const value15 = useCallback(_fun47633, [value13, value7, unstable_pressDelay]);
|
|
const value16 = useCallback(_fun47635, [value14, value13, onPress, onPressOut]);
|
|
const value17 = useMemo(_fun47636, []);
|
|
useEffect(_fun47637, [value15, value16, value17]);
|
|
const env0_31 = useRef(null);
|
|
const env0_32 = useRef(null);
|
|
const value18 = useMemo(_fun47638, [delayHoverIn, delayHoverOut, onHoverIn, onHoverOut]);
|
|
const value19 = useMemo(_fun47643, [value17, value14, value16]);
|
|
const value20 = useMemo(_fun47648, [value17, value16, value14]);
|
|
const value21 = disabled !== true;
|
|
object = [value20, value19, value18];
|
|
closure = Pressable_47624_loop;
|
|
const iterator = object[Symbol.iterator]();
|
|
const iterator2 = iterator.next;
|
|
r5 = iterator;
|
|
let item2 = Reflect.apply(iterator2, r5, []);
|
|
let item = item2.value;
|
|
item2 = item2.done ? undefined : r5;
|
|
reducibleJoin3: while (true) {
|
|
if (item2 === value) {
|
|
Simultaneous = GestureObjects.Simultaneous;
|
|
apply = Simultaneous.apply;
|
|
value22 = Reflect.apply(apply, Simultaneous, [GestureObjects, object]);
|
|
reducibleJoin8: while (true) {
|
|
if (typeof style !== 'function') {
|
|
r18 = style;
|
|
break reducibleJoin8;
|
|
}
|
|
value23 = style({pressed: property});
|
|
r18 = value23;
|
|
break reducibleJoin8;
|
|
}
|
|
reducibleJoin10: while (true) {
|
|
if (typeof children !== 'function') {
|
|
r12 = children;
|
|
break reducibleJoin10;
|
|
}
|
|
value24 = children({pressed: property});
|
|
r12 = value24;
|
|
break reducibleJoin10;
|
|
}
|
|
value25 = useMemo(_fun47655, [android_ripple]);
|
|
value26 = useCallback(_fun47656, [onLayout]);
|
|
jsxRuntimeEnv0_13Binding = jsxRuntimeEnv0_13;
|
|
object = {gesture: value22};
|
|
jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
|
|
defaultImport = importDefault(5384) /* metro dependency 5384 */;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
object2 = {onLayout: value26, accessible: accessible !== false, hitSlop: value9, enabled: value21};
|
|
r20 = android_disableSound ?? value;
|
|
object2.touchSoundDisabled = r20;
|
|
object2.rippleColor = value25;
|
|
reducibleJoin13: while (true) {
|
|
if (android_ripple == null) {
|
|
radius = value;
|
|
break reducibleJoin13;
|
|
}
|
|
radius = android_ripple.radius;
|
|
break reducibleJoin13;
|
|
}
|
|
r14 = radius ?? value;
|
|
object2.rippleRadius = r14;
|
|
object2.style = [{}, r18];
|
|
r14 = env0_15 ? onPress : value;
|
|
object2.testOnly_onPress = r14;
|
|
r14 = env0_15 ? onPressIn : value;
|
|
object2.testOnly_onPressIn = r14;
|
|
r14 = env0_15 ? onPressOut : value;
|
|
object2.testOnly_onPressOut = r14;
|
|
r4 = env0_15 ? onLongPress : value;
|
|
object2.testOnly_onLongPress = r4;
|
|
object2.children = [r12, null];
|
|
return (
|
|
<GestureDetector {...object}>
|
|
{((Component) => <Component {...Reflect.apply(assign, Object, [{}, value3,
|
|
object2])} />)(defaultImport)}
|
|
</GestureDetector>
|
|
);
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
reducibleLoop3: while (true) {
|
|
try {
|
|
closure(item);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r5 = item2;
|
|
item2 = Reflect.apply(iterator2, r5, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r5;
|
|
if (item2 === value) {
|
|
break reducibleLoop3;
|
|
}
|
|
continue reducibleLoop3;
|
|
}
|
|
Simultaneous = GestureObjects.Simultaneous;
|
|
value22 = Simultaneous.apply(GestureObjects, object);
|
|
reducibleJoin8: while (true) {
|
|
if (typeof style !== 'function') {
|
|
r18 = style;
|
|
break reducibleJoin8;
|
|
}
|
|
value23 = style({pressed: property});
|
|
r18 = value23;
|
|
break reducibleJoin8;
|
|
}
|
|
reducibleJoin10: while (true) {
|
|
if (typeof children !== 'function') {
|
|
r12 = children;
|
|
break reducibleJoin10;
|
|
}
|
|
value24 = children({pressed: property});
|
|
r12 = value24;
|
|
break reducibleJoin10;
|
|
}
|
|
value25 = useMemo(_fun47655, [android_ripple]);
|
|
value26 = useCallback(_fun47656, [onLayout]);
|
|
defaultImport = importDefault(5384) /* metro dependency 5384 */;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
reducibleJoin13: while (true) {
|
|
if (android_ripple == null) {
|
|
radius = value;
|
|
break reducibleJoin13;
|
|
}
|
|
radius = android_ripple.radius;
|
|
break reducibleJoin13;
|
|
}
|
|
return (
|
|
<GestureDetector gesture={value22}>
|
|
{((Component) => <Component {...Reflect.apply(assign, Object, [{}, value3, {onLayout: value26,
|
|
accessible: accessible !== false, hitSlop: value9, enabled: value21,
|
|
touchSoundDisabled: android_disableSound ?? value, rippleColor: value25, rippleRadius: radius ?? value,
|
|
style: [{}, r18], testOnly_onPress: env0_15 ? onPress : value,
|
|
testOnly_onPressIn: env0_15 ? onPressIn : value, testOnly_onPressOut: env0_15 ? onPressOut : value,
|
|
testOnly_onLongPress: env0_15 ? onLongPress : value, children: [r12, null]}])} />)(defaultImport)}
|
|
</GestureDetector>
|
|
);
|
|
function _fun47625() { // fn#47625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:4448, offset: 0x011c7092, size: 80 bytes, params: 1, frame: 13
|
|
var r0;
|
|
var value2;
|
|
var moduleValue;
|
|
if (typeof hitSlop === 'number') {
|
|
value2 = environment.__proto__;
|
|
moduleValue = require(5397) /* metro dependency 5397 */;
|
|
r0 = moduleValue.numberAsInset(hitSlop);
|
|
} else {
|
|
r0 = hitSlop ?? ({});
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun47626() { // fn#47626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:4535, offset: 0x011c70e2, size: 80 bytes, params: 1, frame: 13
|
|
var r0;
|
|
var value2;
|
|
var moduleValue;
|
|
if (typeof pressRetentionOffset === 'number') {
|
|
value2 = environment.__proto__;
|
|
moduleValue = require(5397) /* metro dependency 5397 */;
|
|
r0 = moduleValue.numberAsInset(pressRetentionOffset);
|
|
} else {
|
|
r0 = pressRetentionOffset ?? ({});
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun47627() { // fn#47627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:4650, offset: 0x011c7132, size: 67 bytes, params: 1, frame: 12
|
|
if (env0_16.current) {
|
|
global.clearTimeout(env0_16.current);
|
|
env0_16.current = null;
|
|
env0_18.current = true;
|
|
}
|
|
}
|
|
|
|
function _fun47628() { // fn#47628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:4742, offset: 0x011c7175, size: 55 bytes, params: 1, frame: 12
|
|
if (env0_17.current) {
|
|
global.clearTimeout(env0_17.current);
|
|
env0_17.current = null;
|
|
}
|
|
}
|
|
|
|
function _fun47629(a0) { // fn#47629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:4820, offset: 0x011c71ac, size: 85 bytes, params: 2, frame: 16
|
|
const env0_0 = a0;
|
|
if (onLongPress) {
|
|
env0_23();
|
|
env0_16.current = global.setTimeout(_fun47630, delayLongPress ?? 500);
|
|
}
|
|
function _fun47630() { // fn#47630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:4864, offset: 0x011c7201, size: 35 bytes, params: 1, frame: 11
|
|
env1_18.current = false;
|
|
onLongPress(env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun47631(a0) { // fn#47631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:4930, offset: 0x011c7224, size: 95 bytes, params: 2, frame: 13
|
|
if (onPressIn != null) {
|
|
onPressIn(a0);
|
|
}
|
|
env0_25(a0);
|
|
env0_15(true);
|
|
if (env0_17.current) {
|
|
global.clearTimeout(env0_17.current);
|
|
env0_17.current = null;
|
|
}
|
|
}
|
|
|
|
function _fun47632() { // fn#47632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:5040, offset: 0x011c7283, size: 44 bytes, params: 1, frame: 12
|
|
env0_19.current = false;
|
|
env0_23();
|
|
env0_24();
|
|
env0_15(false);
|
|
}
|
|
|
|
function _fun47633(a0) { // fn#47633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:5099, offset: 0x011c72af, size: 160 bytes, params: 2, frame: 21
|
|
var environment;
|
|
const env0_0 = a0;
|
|
let value = environment.__proto__;
|
|
value = require(5397) /* metro dependency 5397 */;
|
|
const isTouchWithinInset = value.isTouchWithinInset;
|
|
const current = env0_20.current;
|
|
const binding = env0_21;
|
|
const changedTouches = a0.nativeEvent.changedTouches;
|
|
if (Reflect.apply(isTouchWithinInset, value, [current, binding, changedTouches.at(-1)])) {
|
|
env0_19.current = true;
|
|
if (unstable_pressDelay) {
|
|
env0_17.current = global.setTimeout(_fun47634, unstable_pressDelay);
|
|
} else {
|
|
env0_26(a0);
|
|
}
|
|
}
|
|
function _fun47634() { // fn#47634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:5230, offset: 0x011c734f, size: 23 bytes, params: 1, frame: 11
|
|
env1_26(env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun47635(a0) { // fn#47635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:5278, offset: 0x011c7366, size: 150 bytes, params: 2, frame: 15
|
|
const r4 = arguments.length > 1 && arguments[1] !== undefined;
|
|
const r5 = r4 ? arguments[1] : !r4;
|
|
let current = env0_19.current;
|
|
if (current) {
|
|
env0_19.current = false;
|
|
current = env0_17.current;
|
|
if (current) {
|
|
env0_26(a0);
|
|
}
|
|
if (onPressOut != null) {
|
|
onPressOut(a0);
|
|
}
|
|
current = env0_18.current;
|
|
if (current && r5) {
|
|
if (onPress != null) {
|
|
onPress(a0);
|
|
}
|
|
}
|
|
env0_27();
|
|
}
|
|
}
|
|
|
|
function _fun47636() { // fn#47636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:5472, offset: 0x011c73fc, size: 53 bytes, params: 1, frame: 11
|
|
let value = environment.__proto__;
|
|
const PressableStateMachine = (PressableStateMachineModule).PressableStateMachine;
|
|
value = Object.create(PressableStateMachine.prototype, {constructor: {value: PressableStateMachine}});
|
|
const pressableStateMachine = new PressableStateMachine();
|
|
return pressableStateMachine instanceof Object ? pressableStateMachine : value;
|
|
}
|
|
|
|
function _fun47637() { // fn#47637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:5534, offset: 0x011c7431, size: 67 bytes, params: 1, frame: 15
|
|
let value = environment.__proto__;
|
|
const getStatesConfig = (Module05399Module).getStatesConfig;
|
|
value = Reflect.apply(getStatesConfig, value, [env0_28, env0_29]);
|
|
env0_30.setStates(value);
|
|
}
|
|
|
|
function _fun47638() { // fn#47638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:5644, offset: 0x011c7474, size: 333 bytes, params: 1, frame: 21
|
|
const GestureObjects = (GestureObjectsModule).GestureObjects;
|
|
const value4 = GestureObjects.Hover().manualActivation(true).cancelsTouchesInView(false);
|
|
const onBegin = value4.onBegin;
|
|
let closure = pnpm_PressableTsx2;
|
|
const object = {};
|
|
object.hoverOutTimeout = env0_32;
|
|
object.clearTimeout = global.clearTimeout;
|
|
object.delayHoverIn = delayHoverIn;
|
|
object.hoverInTimeout = env0_31;
|
|
object.setTimeout = global.setTimeout;
|
|
object.onHoverIn = onHoverIn;
|
|
const gestureToPressableEvent = (Module05397Module).gestureToPressableEvent;
|
|
object.gestureToPressableEvent = gestureToPressableEvent;
|
|
closure.__closure = object;
|
|
closure.__workletHash = 145410820733;
|
|
closure.__initData = env1_18;
|
|
const value6 = Reflect.apply(onBegin, value4, [closure]);
|
|
const onFinalize = value6.onFinalize;
|
|
closure = pnpm_PressableTsx1;
|
|
closure.__closure = {hoverInTimeout: env0_31, clearTimeout: global.clearTimeout, delayHoverOut: delayHoverOut,
|
|
hoverOutTimeout: env0_32, setTimeout: global.setTimeout, onHoverOut: onHoverOut,
|
|
gestureToPressableEvent: gestureToPressableEvent};
|
|
closure.__workletHash = 117886059607;
|
|
closure.__initData = env1_17;
|
|
return Reflect.apply(onFinalize, value6, [closure]);
|
|
function pnpm_PressableTsx2(a0) { // fn#47639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:5750, offset: 0x011c75c1, size: 151 bytes, params: 2, frame: 16
|
|
var environment;
|
|
var onHoverInBinding;
|
|
const env0_0 = a0;
|
|
let value = environment.__proto__;
|
|
if (env1_32.current) {
|
|
global.clearTimeout(env1_32.current);
|
|
}
|
|
if (delayHoverIn) {
|
|
env1_31.current = global.setTimeout(_fun47640, delayHoverIn);
|
|
} else {
|
|
onHoverInBinding = onHoverIn;
|
|
if (onHoverInBinding != null) {
|
|
onHoverInBinding = onHoverIn;
|
|
value = environment.__proto__.__proto__;
|
|
value = require(5397) /* metro dependency 5397 */;
|
|
onHoverInBinding(value.gestureToPressableEvent(a0));
|
|
}
|
|
}
|
|
function _fun47640() { // fn#47640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:5843, offset: 0x011c7658, size: 72 bytes, params: 1, frame: 14
|
|
var r0;
|
|
let value = environment.__proto__.__proto__;
|
|
let onHoverInBinding = onHoverIn;
|
|
if (onHoverInBinding == null) {
|
|
r0 = undefined;
|
|
} else {
|
|
onHoverInBinding = onHoverIn;
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
value = require(5397) /* metro dependency 5397 */;
|
|
value = onHoverInBinding(value.gestureToPressableEvent(env0_0));
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function pnpm_PressableTsx1(a0) { // fn#47641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:6212, offset: 0x011c76a0, size: 151 bytes, params: 2, frame: 16
|
|
var environment;
|
|
var onHoverOutBinding;
|
|
const env0_0 = a0;
|
|
let value = environment.__proto__;
|
|
if (env1_31.current) {
|
|
global.clearTimeout(env1_31.current);
|
|
}
|
|
if (delayHoverOut) {
|
|
env1_32.current = global.setTimeout(_fun47642, delayHoverOut);
|
|
} else {
|
|
onHoverOutBinding = onHoverOut;
|
|
if (onHoverOutBinding != null) {
|
|
onHoverOutBinding = onHoverOut;
|
|
value = environment.__proto__.__proto__;
|
|
value = require(5397) /* metro dependency 5397 */;
|
|
onHoverOutBinding(value.gestureToPressableEvent(a0));
|
|
}
|
|
}
|
|
function _fun47642() { // fn#47642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:6305, offset: 0x011c7737, size: 72 bytes, params: 1, frame: 14
|
|
var r0;
|
|
let value = environment.__proto__.__proto__;
|
|
let onHoverOutBinding = onHoverOut;
|
|
if (onHoverOutBinding == null) {
|
|
r0 = undefined;
|
|
} else {
|
|
onHoverOutBinding = onHoverOut;
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
value = require(5397) /* metro dependency 5397 */;
|
|
value = onHoverOutBinding(value.gestureToPressableEvent(env0_0));
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun47643() { // fn#47643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:6687, offset: 0x011c777f, size: 479 bytes, params: 1, frame: 22
|
|
const GestureObjects = (GestureObjectsModule).GestureObjects;
|
|
const value2 = GestureObjects.LongPress();
|
|
const minDuration = value2.minDuration;
|
|
const INT32_MAX = (Module05325Module).INT32_MAX;
|
|
const value5 = Reflect.apply(minDuration, value2, [INT32_MAX]).maxDistance(INT32_MAX).cancelsTouchesInView(false);
|
|
const onTouchesDown = value5.onTouchesDown;
|
|
let closure = pnpm_PressableTsx6;
|
|
const object = {};
|
|
const gestureTouchToPressableEvent = (Module05397Module).gestureTouchToPressableEvent;
|
|
object.gestureTouchToPressableEvent = gestureTouchToPressableEvent;
|
|
object.stateMachine = env0_30;
|
|
const StateMachineEvent = (Module05399Module).StateMachineEvent;
|
|
object.StateMachineEvent = StateMachineEvent;
|
|
closure.__closure = object;
|
|
closure.__workletHash = 5538605329543;
|
|
closure.__initData = env1_22;
|
|
const value7 = Reflect.apply(onTouchesDown, value5, [closure]);
|
|
const onTouchesUp = value7.onTouchesUp;
|
|
closure = pnpm_PressableTsx5;
|
|
closure.__closure = {Platform: Platform, stateMachine: env0_30, handleFinalize: env0_27};
|
|
closure.__workletHash = 9871785058594;
|
|
closure.__initData = env1_21;
|
|
const value8 = Reflect.apply(onTouchesUp, value7, [closure]);
|
|
const onTouchesCancelled = value8.onTouchesCancelled;
|
|
closure = pnpm_PressableTsx4;
|
|
closure.__closure = {gestureTouchToPressableEvent: gestureTouchToPressableEvent, stateMachine: env0_30,
|
|
handlePressOut: env0_29};
|
|
closure.__workletHash = 8223505277740;
|
|
closure.__initData = env1_20;
|
|
const value9 = Reflect.apply(onTouchesCancelled, value8, [closure]);
|
|
const onFinalize = value9.onFinalize;
|
|
closure = function(a0, a1) {
|
|
};
|
|
closure.__closure = {Platform: Platform, stateMachine: env0_30, StateMachineEvent: StateMachineEvent,
|
|
handleFinalize: env0_27};
|
|
closure.__workletHash = 946627735228;
|
|
closure.__initData = env1_19;
|
|
return Reflect.apply(onFinalize, value9, [closure]);
|
|
function pnpm_PressableTsx6(a0) { // fn#47644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:6844, offset: 0x011c795e, size: 84 bytes, params: 2, frame: 16
|
|
let value = environment.__proto__.__proto__;
|
|
value = require(5397) /* metro dependency 5397 */;
|
|
value = value.gestureTouchToPressableEvent(a0);
|
|
const binding = env1_30;
|
|
const handleEvent = binding.handleEvent;
|
|
const StateMachineEvent = (Module05399Module).StateMachineEvent;
|
|
const LONG_PRESS_TOUCHES_DOWN = StateMachineEvent.LONG_PRESS_TOUCHES_DOWN;
|
|
Reflect.apply(handleEvent, binding, [LONG_PRESS_TOUCHES_DOWN, value]);
|
|
}
|
|
|
|
function pnpm_PressableTsx5() { // fn#47645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:7194, offset: 0x011c79b2, size: 29 bytes, params: 1, frame: 10
|
|
env1_30.reset();
|
|
env1_27();
|
|
}
|
|
|
|
function pnpm_PressableTsx4(a0) { // fn#47646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:7371, offset: 0x011c79cf, size: 70 bytes, params: 2, frame: 14
|
|
let value = environment.__proto__.__proto__;
|
|
value = require(5397) /* metro dependency 5397 */;
|
|
value = value.gestureTouchToPressableEvent(a0);
|
|
env1_30.reset();
|
|
env1_29(value, false);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun47648() { // fn#47648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:7864, offset: 0x011c7a15, size: 407 bytes, params: 1, frame: 21
|
|
const GestureObjects = (GestureObjectsModule).GestureObjects;
|
|
const value2 = GestureObjects.Native();
|
|
const onTouchesCancelled = value2.onTouchesCancelled;
|
|
let closure = pnpm_PressableTsx10;
|
|
let object = {};
|
|
object.Platform = Platform;
|
|
object.gestureTouchToPressableEvent = (require(5397) /* metro dependency 5397 */).gestureTouchToPressableEvent;
|
|
object.stateMachine = env0_30;
|
|
object.handlePressOut = env0_29;
|
|
closure.__closure = object;
|
|
closure.__workletHash = 9061249296673;
|
|
closure.__initData = env1_26;
|
|
const value4 = Reflect.apply(onTouchesCancelled, value2, [closure]);
|
|
const onBegin = value4.onBegin;
|
|
closure = pnpm_PressableTsx9;
|
|
object = {stateMachine: env0_30};
|
|
const StateMachineEvent = (Module05399Module).StateMachineEvent;
|
|
object.StateMachineEvent = StateMachineEvent;
|
|
closure.__closure = object;
|
|
closure.__workletHash = 11605577071200;
|
|
closure.__initData = env1_25;
|
|
const value5 = Reflect.apply(onBegin, value4, [closure]);
|
|
const onStart = value5.onStart;
|
|
closure = function() {
|
|
};
|
|
closure.__closure = {Platform: Platform, stateMachine: env0_30, StateMachineEvent: StateMachineEvent};
|
|
closure.__workletHash = 1583717288778;
|
|
closure.__initData = env1_24;
|
|
const value6 = Reflect.apply(onStart, value5, [closure]);
|
|
const onFinalize = value6.onFinalize;
|
|
closure = pnpm_PressableTsx7;
|
|
closure.__closure = {Platform: Platform, stateMachine: env0_30, StateMachineEvent: StateMachineEvent,
|
|
handleFinalize: env0_27};
|
|
closure.__workletHash = 13697558324309;
|
|
closure.__initData = env1_23;
|
|
return Reflect.apply(onFinalize, value6, [closure]);
|
|
function pnpm_PressableTsx10(a0) { // fn#47649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:7936, offset: 0x011c79cf, size: 70 bytes, params: 2, frame: 14
|
|
let value = environment.__proto__.__proto__;
|
|
value = require(5397) /* metro dependency 5397 */;
|
|
value = value.gestureTouchToPressableEvent(a0);
|
|
env1_30.reset();
|
|
env1_29(value, false);
|
|
}
|
|
|
|
function pnpm_PressableTsx9() { // fn#47650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:8220, offset: 0x011c7bac, size: 57 bytes, params: 1, frame: 13
|
|
const binding = env1_30;
|
|
const handleEvent = binding.handleEvent;
|
|
const StateMachineEvent = (Module05399Module).StateMachineEvent;
|
|
const NATIVE_BEGIN = StateMachineEvent.NATIVE_BEGIN;
|
|
Reflect.apply(handleEvent, binding, [NATIVE_BEGIN]);
|
|
}
|
|
|
|
function pnpm_PressableTsx7(a0, a1) { // fn#47652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:8621, offset: 0x011c7be5, size: 84 bytes, params: 3, frame: 14
|
|
const binding = env1_30;
|
|
const handleEvent = binding.handleEvent;
|
|
const StateMachineEvent = (Module05399Module).StateMachineEvent;
|
|
if (a1) {
|
|
Reflect.apply(handleEvent, binding, [StateMachineEvent.FINALIZE]);
|
|
} else {
|
|
Reflect.apply(handleEvent, binding, [StateMachineEvent.CANCEL]);
|
|
}
|
|
env1_27();
|
|
}
|
|
|
|
}
|
|
|
|
function Pressable_47624_loop(a0) { // fn#47653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:8966, owner: Pressable_47624._loop, offset: 0x011c7c39, size: 95 bytes, params: 2, frame: 13
|
|
const env0_0 = a0;
|
|
a0.enabled(result);
|
|
a0.runOnJS(true);
|
|
a0.hitSlop(env0_22);
|
|
const Object = global.Object;
|
|
Object.entries(env0_14).forEach(_fun47654);
|
|
function _fun47654(a0) { // fn#47654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:9054, offset: 0x011c7c98, size: 76 bytes, params: 2, frame: 16
|
|
const value = environment.__proto__.__proto__;
|
|
const value2 = env2_4(a0, 2);
|
|
(ApplyRelationPropModule).applyRelationProp(env0_0, value2[0], value2[1]);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun47655() { // fn#47655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:9321, offset: 0x011c7ce4, size: 117 bytes, params: 1, frame: 15
|
|
const value = environment.__proto__;
|
|
env1_16 = env1_16 === null ? (require(5325) /* metro dependency 5325 */).isFabric() : env1_16;
|
|
let r3 = android_ripple ? undefined : 'transparent';
|
|
r3 = android_ripple?.color ?? r3;
|
|
return env1_16 ? r3 : processColor(r3);
|
|
}
|
|
|
|
function _fun47656(a0) { // fn#47656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5574:9468, offset: 0x011c7d59, size: 53 bytes, params: 2, frame: 12
|
|
if (onLayout != null) {
|
|
onLayout(a0);
|
|
}
|
|
env0_20.current = a0.nativeEvent.layout;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun47623, 5396, [57, 29, 31, 27, 33, 5325, 5397, 5398, 5399, 5372, 5400, 5357,
|
|
5384]) /* metro module 5396, dependencies: [57, 29, 31, 27, 33, 5325, 5397, 5398, 5399, 5372, 5400, 5357, 5384] */;
|