Files
2026-07-28 01:06:53 +03:00

81 lines
4.6 KiB
JavaScript

/* 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 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 object2 = {};
object2.touches = a0.allTouches.map(_fun47664);
object2.changedTouches = a0.changedTouches.map(_fun47665);
object2.identifier = a0.handlerTag;
const value2 = a0.allTouches.at(0);
const value3 = undefined;
const x = value2 == null ? value3 : value2.x;
const value4 = -1;
object2.locationX = x ?? value4;
const value5 = a0.allTouches.at(0);
object2.locationY = (value5 == null ? value3 : value5.y) ?? value4;
const value6 = a0.allTouches.at(0);
object2.pageX = (value6 == null ? value3 : value6.absoluteX) ?? value4;
const value7 = a0.allTouches.at(0);
object2.pageY = (value7 == null ? value3 : value7.absoluteY) ?? value4;
object2.target = 0;
object2.timestamp = value;
object2.force = value3;
return {nativeEvent: object2};
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);
}
function _fun47665(a0) { // fn#47665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5575:1669, offset: 0x011c8222, size: 30 bytes, params: 2, frame: 15
return touchDataToPressEvent(a0, env0_0, 0);
}
}
}
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 object = {};
object.identifier = a0.handlerTag;
object.locationX = a0.x;
object.locationY = a0.y;
object.pageX = a0.absoluteX;
object.pageY = a0.absoluteY;
object.target = 0;
object.timestamp = value;
object.touches = [];
object.changedTouches = [];
return {nativeEvent: {touches: [object], changedTouches: [object], identifier: object.identifier, locationX: a0.x,
locationY: a0.y, pageX: a0.absoluteX, pageY: a0.absoluteY, target: 0, timestamp: value, force: undefined}};
}
global.__d(_fun47657, 5397, []) /* metro module 5397 */;