Files
2026-07-28 01:06:53 +03:00

196 lines
9.3 KiB
JavaScript

/* Metro module 378; source: unknown; dependencies: [153, 6, 7, 15, 17, 102, 18, 355, 372] */
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 */
import Module00153 from './module-00153.js'; /* Metro dependency 153 */
function _fun5636(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:6, offset: 0x00ce19a9, size: 218 bytes, params: 8, frame: 18
const env0_1 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
Module00153;
exports.default = _fun5642(importDefault(372) /* metro dependency 372 */);
function _isNativeReflectConstruct_5637() { // fn#5637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:169, offset: 0x00ce1a83, 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_5637_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _superPropGet_5640(a0, a1, a2, a3) { // fn#5640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:388, offset: 0x00ce1ae1, 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 : _fun5641 : value;
function _fun5641(a0) { // fn#5641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:487, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13
return env0_1.apply(importDefault, a0);
}
}
function _fun5642(a0) { // fn#5642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:528, offset: 0x00ce1b44, size: 137 bytes, params: 2, frame: 16
const TimingAnimation2 = TimingAnimation;
Inherits(TimingAnimation2, a0);
return CreateClass(TimingAnimation2, [{key: '__getNativeAnimationConfig', value: value_5644}, {key: 'start',
value: value_5645}, {key: 'onUpdate', value: value_5648}, {key: 'stop', value: value_5649}]);
function TimingAnimation(a0) { // fn#5643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:540, offset: 0x00ce1bcd, size: 265 bytes, params: 2, frame: 21
var r3;
var property;
const value = environment.__proto__;
env1_4(this, TimingAnimation);
const items2 = [a0];
const value3 = env1_7(TimingAnimation);
const value6 = env1_6(this, _isNativeReflectConstruct_5637() ? global.Reflect.construct(value3, items2,
env1_7(this).constructor) : value3.apply(this, items2));
value6._toValue = a0.toValue;
const easing = a0.easing;
if (easing != null) {
r3 = easing;
} else {
if (!env1_3) {
property = (require(355) /* metro dependency 355 */).default;
env1_3 = property.inOut(property.ease);
}
r3 = env1_3;
}
value6._easing = r3;
value6._duration = a0.duration ?? 500;
value6._delay = a0.delay ?? 0;
value6._platformConfig = a0.platformConfig;
return value6;
}
function value_5645(a0, a1, a2, a3, a4) { // fn#5645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:1427, offset: 0x00ce1d85, size: 149 bytes, params: 6, frame: 21
var environment;
const env0_0 = a4;
const value = environment.__proto__;
_superPropGet_5640(TimingAnimation, 'start', this, 3)([a0, a1, a2, a3, a4]);
this._fromValue = a0;
this._onUpdate = a1;
const value_5645Start2 = value_5645Start;
if (this._delay) {
this._timeout = global.setTimeout(value_5645Start2, this._delay);
} else {
value_5645Start2();
}
function value_5645Start() { // fn#5646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:1568, owner: value_5645.start, offset: 0x00ce1e1a, size: 141 bytes, params: 1, frame: 13
let binding = env0_1;
const Date = global.Date;
binding._startTime = Date.now();
if (!binding.__startAnimationIfNative(env0_0)) {
if (env0_1._duration === 0) {
binding = env0_1;
binding._onUpdate(binding._toValue);
binding.__notifyAnimationEnd({finished: true});
} else {
env0_1._animationFrame = global.requestAnimationFrame(_fun5647);
}
}
function _fun5647() { // fn#5647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:1762, offset: 0x00ce1ea7, size: 19 bytes, params: 1, frame: 9
return env1_1.onUpdate();
}
}
}
function value_5649() { // fn#5649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:2361, offset: 0x00cddfbe, size: 118 bytes, params: 1, frame: 18
var binding;
_superPropGet_5640(TimingAnimation, 'stop', this, 3)([]);
global.clearTimeout(this._timeout);
if (this._animationFrame != null) {
binding = env1_0;
binding.cancelAnimationFrame(this._animationFrame);
}
this.__notifyAnimationEnd({finished: false});
}
}
}
function value_5644() { // fn#5644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:1098, offset: 0x00ce1cd6, size: 175 bytes, params: 1, frame: 15
var r0;
var push;
var _easing;
var value3;
const items2 = [];
const Math = global.Math;
const value = Math.round(this._duration / 16.666666666666668);
const value2 = 0;
if (value2 < value) {
for (r0 = value2; true; r0 = value3) {
push = items2.push;
_easing = this._easing;
Reflect.apply(push, items2, [Reflect.apply(_easing, this, [r0 / value])]);
value3 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
if (!(value3 < value)) {
break;
}
}
}
items2.push(this._easing(1));
const object = {type: 'frames', frames: items2};
object.toValue = this._toValue;
object.iterations = this.__iterations;
object.platformConfig = this._platformConfig;
object.debugID = this.__getDebugID();
return object;
}
function value_5648() { // fn#5648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:1886, offset: 0x00ce1eba, size: 270 bytes, params: 1, frame: 15
var _onUpdate;
var _fromValue;
var _easing;
const Date = global.Date;
let value = Date.now();
if (value >= this._startTime + this._duration) {
if (this._duration === 0) {
this._onUpdate(this._toValue);
} else {
this._onUpdate(this._fromValue + this._easing(1) * (this._toValue - this._fromValue));
}
this.__notifyAnimationEnd({finished: true});
} else {
_onUpdate = this._onUpdate;
_fromValue = this._fromValue;
_easing = this._easing;
value -= this._startTime;
value = Reflect.apply(_easing, this, [value / this._duration]);
Reflect.apply(_onUpdate, this, [_fromValue + value * (this._toValue - this._fromValue)]);
if (this.__active) {
this._animationFrame = global.requestAnimationFrame(this.onUpdate.bind(this));
}
}
}
global.__d(_fun5636, 378, [153, 6, 7, 15, 17, 102, 18, 355,
372]) /* metro module 378, dependencies: [153, 6, 7, 15, 17, 102, 18, 355, 372] */;