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

348 lines
13 KiB
React

/* Metro module 5382; source: unknown; dependencies: [6, 7, 15, 17, 18, 65, 5360] */
function _fun47483(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5560:6, offset: 0x011c22b8, size: 246 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
const env0_7 = importDefault(65) /* metro dependency 65 */;
const Gesture = (require(5360) /* metro dependency 5360 */).Gesture;
const value = _fun47489(Gesture);
const value2 = _fun47496(value);
const value3 = _fun47502(value);
exports.ComposedGesture = value;
exports.SimultaneousGesture = value2;
exports.ExclusiveGesture = value3;
}
function _callSuper_47484(a0, a1, a2) { // fn#47484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5560:165, offset: 0x011c23ae, size: 100 bytes, params: 4, frame: 20
var r0;
var Reflect;
let value = a2;
const value3 = env0_5(a1);
const binding = env0_4;
if (_isNativeReflectConstruct_47485()) {
Reflect = global.Reflect;
value = Reflect.construct(value3, value || [], env0_5(a0).constructor);
r0 = value;
} else {
value = value3.apply(a0, value);
r0 = value;
}
return binding(a0, r0);
}
function _isNativeReflectConstruct_47485() { // fn#47485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5560:296, offset: 0x011c2412, 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_47485_isNativeReflectConstruct = function() {
return !!result;
})();
}
function extendRelation(a0, a1) { // fn#47488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5560:515, offset: 0x011c2470, size: 64 bytes, params: 3, frame: 16
return a0 === undefined ? env0_7(a1) : [].concat(env0_7(a0), env0_7(a1));
}
function _fun47489(a0) { // fn#47489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5560:594, offset: 0x011c24b0, size: 137 bytes, params: 2, frame: 16
const closure = ComposedGesture;
env0_6(closure, a0);
return env0_3(closure, [{key: 'prepareSingleGesture', value: value_47491}, {key: 'prepare', value: function() {
var prepareSingleGesture;
var simultaneousGestures;
var requireGesturesToFail;
var error;
var iterator = this.gestures[Symbol.iterator]();
var iterator2 = iterator.next;
var r2 = iterator;
var item2 = Reflect.apply(iterator2, r2, []);
var item = item2.value;
item2 = item2.done ? undefined : r2;
reducibleJoin2: while (true) {
if (item2 === undefined) {
return undefined;
}
break reducibleJoin2;
}
reducibleLoop2: while (true) {
try {
prepareSingleGesture = this.prepareSingleGesture;
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
try {
simultaneousGestures = this.simultaneousGestures;
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
try {
requireGesturesToFail = this.requireGesturesToFail;
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
try {
Reflect.apply(prepareSingleGesture, this, [item, simultaneousGestures, requireGesturesToFail]);
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
r2 = item2;
item2 = Reflect.apply(iterator2, r2, []);
item = item2.value;
item2 = item2.done ? undefined : r2;
if (item2 === undefined) {
break reducibleLoop2;
}
continue reducibleLoop2;
}
}}, {key: 'initialize', value: function() {
var initialize;
var error;
var iterator = this.gestures[Symbol.iterator]();
var iterator2 = iterator.next;
var r2 = iterator;
var item2 = Reflect.apply(iterator2, r2, []);
var item = item2.value;
item2 = item2.done ? undefined : r2;
reducibleJoin2: while (true) {
if (item2 === undefined) {
return undefined;
}
break reducibleJoin2;
}
reducibleLoop2: while (true) {
try {
initialize = item.initialize;
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
try {
Reflect.apply(initialize, item, []);
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
r2 = item2;
item2 = Reflect.apply(iterator2, r2, []);
item = item2.value;
item2 = item2.done ? undefined : r2;
if (item2 === undefined) {
break reducibleLoop2;
}
continue reducibleLoop2;
}
}}, {key: 'toGestureArray', value: function() {
return this.gestures.flatMap(_fun47495);
}}]);
}
function _fun47496(a0) { // fn#47496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5560:1656, offset: 0x011c26fb, size: 68 bytes, params: 2, frame: 15
const closure = SimultaneousGesture;
env0_6(closure, a0);
return env0_3(closure, [{key: 'prepare', value: function() {
var r1;
var property2;
var value3;
var env0_0 = this;
var property = this.gestures;
var value = property.map(_fun47499);
var value2 = 0;
if (value2 < this.gestures.length) {
for (r1 = value2; true; r1 = value3) {
property = this.gestures[r1];
property2 = value[r1];
this.prepareSingleGesture(property, property2, this.requireGesturesToFail);
value3 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
if (!(value3 < this.gestures.length)) {
break;
}
}
}
}}]);
}
function _fun47502(a0) { // fn#47502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5560:2148, offset: 0x011c2809, size: 68 bytes, params: 2, frame: 15
const closure = ExclusiveGesture;
env0_6(closure, a0);
return env0_3(closure, [{key: 'prepare', value: value_47504}]);
}
function ComposedGesture() { // fn#47490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5560:606, offset: 0x011c2539, size: 133 bytes, params: 1, frame: 15
var r2;
var value7;
let value = environment.__proto__;
env1_2(this, ComposedGesture);
value = _callSuper_47484(this, ComposedGesture);
value.gestures = [];
value.simultaneousGestures = [];
value.requireGesturesToFail = [];
const length = arguments.length;
const Array = global.Array;
const array = new Array(length);
const value6 = 0;
if (value6 < length) {
for (r2 = value6; true; r2 = value7) {
array[r2] = arguments[r2];
value7 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (!(value7 < length)) {
break;
}
}
}
value.gestures = array;
return value;
}
function value_47491(a0, a1, a2) { // fn#47491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5560:940, offset: 0x011c25be, size: 160 bytes, params: 4, frame: 18
var Object;
var value2;
var extendRelationBinding;
const BaseGesture = (require(5360) /* metro dependency 5360 */).BaseGesture;
if (a0 instanceof BaseGesture) {
Object = global.Object;
value2 = Object.assign({}, a0.config);
extendRelationBinding = extendRelation;
value2.simultaneousWith = extendRelationBinding(value2.simultaneousWith, a1);
value2.requireToFail = extendRelationBinding(value2.requireToFail, a2);
a0.config = value2;
} else if (a0 instanceof ComposedGesture) {
a0.simultaneousGestures = a1;
a0.requireGesturesToFail = a2;
a0.prepare();
}
}
function value_47494() { // fn#47494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5560:1535, offset: 0x011c26cf, size: 29 bytes, params: 1, frame: 11
return this.gestures.flatMap(function(a0) {
return a0.toGestureArray();
});
}
function SimultaneousGesture() { // fn#47497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5560:1668, offset: 0x011c273f, size: 42 bytes, params: 1, frame: 16
env1_2(this, SimultaneousGesture);
return _callSuper_47484(this, SimultaneousGesture, arguments);
}
function value_47498() { // fn#47498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5560:1857, offset: 0x011c2769, size: 105 bytes, params: 1, frame: 17
var r1;
var prepareSingleGesture;
var property;
var property2;
var requireGesturesToFail;
var value3;
let gestures = this.gestures;
const value = gestures.map(_fun47499);
let length = this.gestures.length;
const value2 = 0;
if (value2 < length) {
for (r1 = value2; true; r1 = value3) {
prepareSingleGesture = this.prepareSingleGesture;
gestures = this.gestures;
property = gestures[r1];
property2 = value[r1];
requireGesturesToFail = this.requireGesturesToFail;
Reflect.apply(prepareSingleGesture, this, [property, property2, requireGesturesToFail]);
value3 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
gestures = this.gestures;
length = gestures.length;
if (!(value3 < length)) {
break;
}
}
}
}
function value_47504() { // fn#47504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5560:2334, offset: 0x011c284d, size: 131 bytes, params: 1, frame: 19
var r1;
var r2;
var prepareSingleGesture;
var property;
var simultaneousGestures;
var requireGesturesToFail;
var concat;
var value3;
var value4;
let gestures = this.gestures;
const value = gestures.map(function(a0) {
return a0.toGestureArray();
});
const items2 = [];
let length = this.gestures.length;
const value2 = 0;
if (value2 < length) {
r1 = value2;
for (r2 = items2; true; r2 = value3) {
prepareSingleGesture = this.prepareSingleGesture;
gestures = this.gestures;
property = gestures[r1];
simultaneousGestures = this.simultaneousGestures;
requireGesturesToFail = this.requireGesturesToFail;
concat = requireGesturesToFail.concat;
Reflect.apply(prepareSingleGesture, this, [property, simultaneousGestures, Reflect.apply(concat,
requireGesturesToFail, [r2])]);
value3 = r2.concat(value[r1]);
value4 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
gestures = this.gestures;
length = gestures.length;
if (!(value4 < length)) {
break;
}
r1 = value4;
}
}
}
function _fun47499(a0) { // fn#47499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5560:1912, offset: 0x011c27d2, size: 55 bytes, params: 2, frame: 12
return a0.gestures.filter(_fun47500).flatMap(function(a0) {
return a0.toGestureArray();
});
}