Files
discord-decomp/sources/by-id/module-05378.jsx
T
2026-07-27 16:20:00 +03:00

71 lines
3.1 KiB
React

/* Metro module 5378; source: unknown; dependencies: [6, 7, 15, 17, 18, 5360] */
function _fun47441(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5556:6, offset: 0x011c1816, size: 172 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
const BaseGesture = (require(5360) /* metro dependency 5360 */).BaseGesture;
exports.LongPressGesture = _fun47445(BaseGesture);
}
function _isNativeReflectConstruct_47442() { // fn#47442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5556:148, offset: 0x011c18c2, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_47442_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun47445(a0) { // fn#47445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5556:373, offset: 0x011c1920, size: 114 bytes, params: 2, frame: 16
const closure = LongPressGesture;
env0_4(closure, a0);
return env0_1(closure, [{key: 'minDuration', value: function(a0) {
this.config.minDurationMs = a0;
return this;
}}, {key: 'maxDistance', value: function(a0) {
this.config.maxDist = a0;
return this;
}}, {key: 'numberOfPointers', value: function(a0) {
this.config.numberOfPointers = a0;
return this;
}}]);
}
function LongPressGesture() { // fn#47446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5556:385, offset: 0x011c1992, size: 139 bytes, params: 1, frame: 19
let value = environment.__proto__;
env1_0(this, LongPressGesture);
const value3 = env1_3(LongPressGesture);
value = env1_2(this, _isNativeReflectConstruct_47442() ? global.Reflect.construct(value3, [],
env1_3(this).constructor) : value3.apply(this, undefined));
value.config = {};
value.handlerName = 'LongPressGestureHandler';
value.shouldCancelWhenOutside(true);
return value;
}