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

131 lines
7.3 KiB
JavaScript

/* Metro module 369; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 348, 358] */
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 Module00102 from './module-00102.js'; /* Metro dependency 102 */
function _fun5481(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:410:6, offset: 0x00cdcf36, size: 196 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.default = _fun5487(importDefault(358) /* metro dependency 358 */);
function _isNativeReflectConstruct_5482() { // fn#5482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:410:159, offset: 0x00cdcffa, 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_5482_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _superPropGet_5485(a0, a1, a2, a3) { // fn#5485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:410:378, offset: 0x00cdd058, size: 99 bytes, params: 5, frame: 18
let value = a0;
const env0_0 = a2;
value = Module00017(1 & 3 ? value.prototype : value);
value = Module00102(value, a1, a2);
return 2 & 3 ? typeof value !== 'function' ? value : _fun5486 : value;
function _fun5486(a0) { // fn#5486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:410:477, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13
return env0_1.apply(importDefault, a0);
}
}
function _fun5487(a0) { // fn#5487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:410:518, offset: 0x00cdd0bb, size: 183 bytes, params: 2, frame: 16
const AnimatedTracking2 = AnimatedTracking;
Inherits(AnimatedTracking2, a0);
return CreateClass(AnimatedTracking2, [{key: '__makeNative', value: value_5489}, {key: '__getValue', value: function() {
return this._parent.__getValue();
}}, {key: '__attach', value: value_5491}, {key: '__detach', value: value_5492}, {key: 'update', value: function() {
var _value = this._value;
var _animationClass = this._animationClass;
var Object = global.Object;
var _animationConfig = this._animationConfig;
var object = {};
object.toValue = this._animationConfig.toValue.__getValue();
var value = Object.assign({}, _animationConfig, object);
value = new _animationClass(value);
_value.animate(value, this._callback);
}}, {key: '__getNativeConfig', value: value_5494}]);
function AnimatedTracking(a0, a1, a2, a3, a4, a5) { // fn#5488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:410:530, offset: 0x00cdd172, size: 207 bytes, params: 7, frame: 21
const value = environment.__proto__;
env1_2(this, AnimatedTracking);
const items2 = [a5];
const value3 = env1_5(AnimatedTracking);
const value6 = env1_4(this, _isNativeReflectConstruct_5482() ? global.Reflect.construct(value3, items2,
env1_5(this).constructor) : value3.apply(this, items2));
value6._value = a0;
value6._parent = a1;
value6._animationClass = a2;
value6._animationConfig = a3;
value6._useNativeDriver = (importDefault(348) /* metro dependency 348 */).shouldUseNativeDriver(a3);
value6._callback = a4;
value6.__attach();
return value6;
}
function value_5489(a0) { // fn#5489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:410:988, offset: 0x00cdd241, size: 95 bytes, params: 2, frame: 18
this.__isNative = true;
this._parent.__makeNative(a0);
const value = environment.__proto__;
_superPropGet_5485(AnimatedTracking, '__makeNative', this, 3)([a0]);
this._value.__makeNative(a0);
}
function value_5491() { // fn#5491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:410:1253, offset: 0x00cdd2b5, size: 95 bytes, params: 1, frame: 17
this._parent.__addChild(this);
if (this._useNativeDriver) {
this.__makeNative(this._animationConfig.platformConfig);
}
const value = environment.__proto__;
_superPropGet_5485(AnimatedTracking, '__attach', this, 3)([]);
}
function value_5492() { // fn#5492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:410:1471, offset: 0x00cdd314, size: 63 bytes, params: 1, frame: 17
this._parent.__removeChild(this);
const value = environment.__proto__;
_superPropGet_5485(AnimatedTracking, '__detach', this, 3)([]);
}
function value_5494() { // fn#5494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:410:1806, offset: 0x00cdd3c5, size: 187 bytes, params: 1, frame: 18
let _animationClass = this._animationClass;
const Object = global.Object;
_animationClass = new _animationClass(Object.assign({}, this._animationConfig, {toValue: undefined}));
_animationClass = _animationClass.__getNativeAnimationConfig();
object = {type: 'tracking'};
object.animationId = (importDefault(348) /* metro dependency 348 */).generateNewAnimationId();
object.animationConfig = _animationClass;
object.toValue = this._parent.__getNativeTag();
object.value = this._value.__getNativeTag();
object.debugID = this.__getDebugID();
return object;
}
}
}
global.__d(_fun5481, 369, [6, 7, 15, 17, 102, 18, 348,
358]) /* metro module 369, dependencies: [6, 7, 15, 17, 102, 18, 348, 358] */;