Files
discord-decomp/sources/by-id/module-05380-NativeGesture.js
2026-07-28 01:06:53 +03:00

71 lines
3.5 KiB
JavaScript

/* Metro module 5380; source: unknown; dependencies: [6, 7, 15, 17, 18, 5360] */
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
import * as Module05360Module from './module-05360.js'; /* Metro dependency 5360 */
function _fun47464(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5558:6, offset: 0x011c1de0, size: 172 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const BaseGesture = (Module05360Module).BaseGesture;
exports.NativeGesture = _fun47468(BaseGesture);
function _isNativeReflectConstruct_47465() { // fn#47465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5558:148, offset: 0x011c1e8c, 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_47465_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun47468(a0) { // fn#47468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5558:373, offset: 0x011c1eea, size: 91 bytes, params: 2, frame: 16
const NativeGesture2 = NativeGesture;
Inherits(NativeGesture2, a0);
return CreateClass(NativeGesture2, [{key: 'shouldActivateOnStart', value: function(a0) {
this.config.shouldActivateOnStart = a0;
return this;
}}, {key: 'disallowInterruption', value: function(a0) {
this.config.disallowInterruption = a0;
return this;
}}]);
function NativeGesture() { // fn#47469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5558:385, offset: 0x011c1f45, size: 126 bytes, params: 1, frame: 19
let value = environment.__proto__;
env1_0(this, NativeGesture);
const value3 = env1_3(NativeGesture);
value = env1_2(this, _isNativeReflectConstruct_47465() ? global.Reflect.construct(value3, [],
env1_3(this).constructor) : value3.apply(this, undefined));
value.config = {};
value.handlerName = 'NativeViewGestureHandler';
return value;
}
}
}
global.__d(_fun47464, 5380, [6, 7, 15, 17, 18,
5360]) /* metro module 5380, dependencies: [6, 7, 15, 17, 18, 5360] */;