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

152 lines
8.4 KiB
JavaScript

/* Metro module 358; source: unknown; dependencies: [6, 7, 99, 100, 348, 44] */
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
import Module00044 from './module-00044.js'; /* Metro dependency 44 */
import Module00099 from './module-00099.js'; /* Metro dependency 99 */
import Module00100 from './module-00100.js'; /* Metro dependency 100 */
function _fun5298(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:399:6, offset: 0x00cd9620, size: 155 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const _assertNativeAnimatedModule = function() {
importDefault(dependencyMap[4]).assertNativeAnimatedModule();
env0_6 = null;
};
const env0_7 = Module00100('listeners');
exports.default = _fun5300();
function _fun5300() { // fn#5300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:399:245, offset: 0x00cd96e6, size: 494 bytes, params: 1, frame: 15
return CreateClass(AnimatedNode, [{key: '__attach', value: function() {
}}, {key: '__detach', value: value_5303}, {key: '__getValue', value: function() {
}}, {key: '__getAnimatedValue', value: function() {
return this.__getValue();
}}, {key: '__addChild', value: function(a0) {
}}, {key: '__removeChild', value: function(a0) {
}}, {key: '__getChildren', value: function() {
return [];
}}, {key: '__makeNative', value: value_5309}, {key: 'addListener', value: value_5310}, {key: 'removeListener',
value: value_5311}, {key: 'removeAllListeners', value: value_5312}, {key: 'hasListeners', value: value_5313},
{key: '__onAnimatedValueUpdateReceived', value: function(a0, a1) {
this.__callListeners(a0 + a1);
}}, {key: '__callListeners', value: value_5315}, {key: '__getNativeTag', value: value_5317},
{key: '__getNativeConfig', value: function() {
var Error = global.Error;
throw new Error('This JS animated node type cannot be used as native animated node');
}}, {key: '__getPlatformConfig', value: function() {
return this._platformConfig;
}}, {key: '__setPlatformConfig', value: function(a0) {
this._platformConfig = a0;
}}, {key: 'toJSON', value: function() {
return this.__getValue();
}}, {key: '__getDebugID', value: function() {
}}]);
function AnimatedNode(a0) { // fn#5301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:399:266, offset: 0x00cd98d4, size: 130 bytes, params: 2, frame: 19
let value = environment.__proto__;
let binding = env1_2;
binding(this, AnimatedNode);
const Object = global.Object;
const defineProperty = Object.defineProperty;
binding = env1_7;
Reflect.apply(defineProperty, Object, [this, binding, {writable: true, value: undefined}]);
this._platformConfig = undefined;
this.__isNative = false;
this.__nativeTag = undefined;
this.__debugID = undefined;
value = env1_4(this, binding);
const Map = global.Map;
const value3 = Object.create(Map.prototype, {constructor: {value: Map}});
const map = new Map();
value[binding] = map instanceof Object ? map : value3;
}
function value_5303() { // fn#5303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:399:553, offset: 0x00cd9956, size: 95 bytes, params: 1, frame: 13
var value;
var API;
this.removeAllListeners();
if (this.__isNative && this.__nativeTag != null) {
value = environment.__proto__;
API = (importDefault(348) /* metro dependency 348 */).API;
API.dropAnimatedNode(this.__nativeTag);
this.__nativeTag = undefined;
}
}
function value_5309(a0) { // fn#5309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:399:1048, offset: 0x00cd99c4, size: 57 bytes, params: 2, frame: 14
const value = environment.__proto__;
(Module00044)(this.__isNative, 'This node cannot be made a "native" animated node');
this._platformConfig = a0;
}
function value_5310(a0) { // fn#5310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:399:1200, offset: 0x00cd99fd, size: 69 bytes, params: 2, frame: 14
const String = global.String;
let binding = env1_5;
const value2 = typeof binding === 'bigint' ? binding : +binding;
env1_5 = typeof value2 === 'bigint' ? value2 + 1n : +value2 + 1;
const value3 = String(value2);
binding = env1_4;
const binding2 = env1_7;
binding(this, binding2)[binding2].set(value3, a0);
return value3;
}
function value_5311(a0) { // fn#5311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:399:1303, offset: 0x00cd9a42, size: 41 bytes, params: 2, frame: 13
const binding = env1_4;
const binding2 = env1_7;
binding(this, binding2)[binding2].delete(a0);
}
function value_5312() { // fn#5312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:399:1387, offset: 0x00cd9a6b, size: 38 bytes, params: 1, frame: 13
const binding = env1_4;
const binding2 = env1_7;
binding(this, binding2)[binding2].clear();
}
function value_5313() { // fn#5313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:399:1466, offset: 0x00cd9a91, size: 39 bytes, params: 1, frame: 13
const binding = env1_4;
const binding2 = env1_7;
return binding(this, binding2)[binding2].size > 0;
}
function value_5315(a0) { // fn#5315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:399:1667, offset: 0x00cd9ad4, size: 58 bytes, params: 2, frame: 14
const env0_0 = {value: a0};
const binding = env1_4;
const binding2 = env1_7;
binding(this, binding2)[binding2].forEach(_fun5316);
function _fun5316(a0) { // fn#5316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:399:1733, offset: 0x00cd9b0e, size: 19 bytes, params: 2, frame: 11
a0(env0_0);
}
}
function value_5317() { // fn#5317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:399:1783, offset: 0x00cd9b21, size: 178 bytes, params: 1, frame: 18
var r0;
var value;
var value2;
var value3;
const __nativeTag = this.__nativeTag;
if (__nativeTag != null) {
r0 = __nativeTag;
} else {
value = environment.__proto__;
if (_assertNativeAnimatedModule != null) {
_assertNativeAnimatedModule();
}
(importDefault(44) /* metro dependency 44 */)(this.__isNative,
'Attempt to get native tag from node not marked as "native"');
value2 = (importDefault(348) /* metro dependency 348 */).generateNewNodeTag();
this.__nativeTag = value2;
value3 = this.__getNativeConfig();
if (this._platformConfig) {
value3.platformConfig = this._platformConfig;
}
(importDefault(348) /* metro dependency 348 */).API.createAnimatedNode(value2, value3);
r0 = value2;
}
return r0;
}
}
}
global.__d(_fun5298, 358, [6, 7, 99, 100, 348, 44]) /* metro module 358, dependencies: [6, 7, 99, 100, 348, 44] */;