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

87 lines
4.1 KiB
JavaScript

/* Metro module 5373; 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 _fun47374(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5551:6, offset: 0x011c063b, size: 172 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const BaseGesture = (Module05360Module).BaseGesture;
exports.TapGesture = _fun47378(BaseGesture);
function _isNativeReflectConstruct_47375() { // fn#47375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5551:148, offset: 0x011c06e7, 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_47375_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun47378(a0) { // fn#47378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5551:373, offset: 0x011c0745, size: 210 bytes, params: 2, frame: 16
const TapGesture2 = TapGesture;
Inherits(TapGesture2, a0);
return CreateClass(TapGesture2, [{key: 'minPointers', value: function(a0) {
this.config.minPointers = a0;
return this;
}}, {key: 'numberOfTaps', value: function(a0) {
this.config.numberOfTaps = a0;
return this;
}}, {key: 'maxDistance', value: function(a0) {
this.config.maxDist = a0;
return this;
}}, {key: 'maxDuration', value: function(a0) {
this.config.maxDurationMs = a0;
return this;
}}, {key: 'maxDelay', value: function(a0) {
this.config.maxDelayMs = a0;
return this;
}}, {key: 'maxDeltaX', value: function(a0) {
this.config.maxDeltaX = a0;
return this;
}}, {key: 'maxDeltaY', value: function(a0) {
this.config.maxDeltaY = a0;
return this;
}}]);
function TapGesture() { // fn#47379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5551:385, offset: 0x011c0817, size: 139 bytes, params: 1, frame: 19
let value = environment.__proto__;
env1_0(this, TapGesture);
const value3 = env1_3(TapGesture);
value = env1_2(this, _isNativeReflectConstruct_47375() ? global.Reflect.construct(value3, [],
env1_3(this).constructor) : value3.apply(this, undefined));
value.config = {};
value.handlerName = 'TapGestureHandler';
value.shouldCancelWhenOutside(true);
return value;
}
}
}
global.__d(_fun47374, 5373, [6, 7, 15, 17, 18,
5360]) /* metro module 5373, dependencies: [6, 7, 15, 17, 18, 5360] */;