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

126 lines
6.2 KiB
React

/* Metro module 369; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 348, 358] */
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});
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(102) /* metro dependency 102 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
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;
const binding = env0_6;
value = env0_5(1 & 3 ? value.prototype : value);
value = binding(value, a1, a2);
return 2 & 3 ? typeof value !== 'function' ? value : _fun5486 : value;
}
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 closure = AnimatedTracking;
env0_7(closure, a0);
return env0_3(closure, [{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
var object2;
let _animationClass = this._animationClass;
const Object = global.Object;
_animationClass = new _animationClass(Object.assign({}, this._animationConfig, {toValue: undefined}));
_animationClass = _animationClass.__getNativeAnimationConfig();
object2 = {type: 'tracking'};
object2.animationId = (importDefault(348) /* metro dependency 348 */).generateNewAnimationId();
object2.animationConfig = _animationClass;
object2.toValue = this._parent.__getNativeTag();
object2.value = this._value.__getNativeTag();
object2.debugID = this.__getDebugID();
return object2;
}