/* Metro module 5397; source: unknown; dependencies: [] */ function _fun47657(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5575:6, offset: 0x011c7d8e, size: 105 bytes, params: 8, frame: 16 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const touchDataToPressEvent = function(a0, a1, a2) { return {identifier: a0.id, locationX: a0.x, locationY: a0.y, pageX: a0.absoluteX, pageY: a0.absoluteY, target: 0, timestamp: a1, touches: [], changedTouches: []}; }; exports.numberAsInset = function(a0) { return {left: a0, right: a0, top: a0, bottom: a0}; }; exports.addInsets = addInsets; exports.isTouchWithinInset = isTouchWithinInset; exports.gestureToPressableEvent = gestureToPressableEvent; exports.gestureTouchToPressableEvent = gestureTouchToPressableEvent; } function addInsets({left, right, top, bottom}, {left, right, top, bottom}) { // fn#47660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5575:369, offset: 0x011c7e6a, size: 180 bytes, params: 3, frame: 9 return {left: (left ?? 0) + (left ?? 0), right: (right ?? 0) + (right ?? 0), top: (top ?? 0) + (top ?? 0), bottom: (bottom ?? 0) + (bottom ?? 0)}; } function isTouchWithinInset(a0, a1, a2) { // fn#47661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5575:653, offset: 0x011c7f1e, size: 238 bytes, params: 4, frame: 11 const value = undefined; const locationX = a2 == null ? value : a2.locationX; const value2 = 0; return (locationX ?? value2) < (a1.right ?? value2) + a0.width && ((a2 == null ? value : a2.locationY) ?? value2) < (a1.bottom ?? value2) + a0.height && ((a2 == null ? value : a2.locationX) ?? value2) > -(a1.left ?? value2) && ((a2 == null ? value : a2.locationY) ?? value2) > -(a1.top ?? value2); } function gestureToPressableEvent(a0) { // fn#47662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5575:1029, offset: 0x011c800c, size: 212 bytes, params: 2, frame: 15 const Date = global.Date; const value = Date.now(); const object2 = {}; object2.identifier = a0.handlerTag; object2.locationX = a0.x; object2.locationY = a0.y; object2.pageX = a0.absoluteX; object2.pageY = a0.absoluteY; object2.target = 0; object2.timestamp = value; object2.touches = []; object2.changedTouches = []; return {nativeEvent: {touches: [object2], changedTouches: [object2], identifier: object2.identifier, locationX: a0.x, locationY: a0.y, pageX: a0.absoluteX, pageY: a0.absoluteY, target: 0, timestamp: value, force: undefined}}; } function gestureTouchToPressableEvent(a0) { // fn#47663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5575:1481, offset: 0x011c80e0, size: 322 bytes, params: 2, frame: 19 const Date = global.Date; const value = Date.now(); const object = {}; object.touches = a0.allTouches.map(_fun47664); object.changedTouches = a0.changedTouches.map(_fun47665); object.identifier = a0.handlerTag; const value2 = a0.allTouches.at(0); const value3 = undefined; const x = value2 == null ? value3 : value2.x; const value4 = -1; object.locationX = x ?? value4; const value5 = a0.allTouches.at(0); object.locationY = (value5 == null ? value3 : value5.y) ?? value4; const value6 = a0.allTouches.at(0); object.pageX = (value6 == null ? value3 : value6.absoluteX) ?? value4; const value7 = a0.allTouches.at(0); object.pageY = (value7 == null ? value3 : value7.absoluteY) ?? value4; object.target = 0; object.timestamp = value; object.force = value3; return {nativeEvent: object}; } function _fun47664(a0) { // fn#47664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5575:1601, offset: 0x011c8222, size: 30 bytes, params: 2, frame: 15 return touchDataToPressEvent(a0, env0_0, 0); }