70 lines
3.3 KiB
React
70 lines
3.3 KiB
React
/* Metro module 1058; source: unknown; dependencies: [6, 7] */
|
|
function _fun11115(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1185:6, offset: 0x00da1520, size: 105 bytes, params: 8, frame: 18
|
|
const env0_0 = require(6) /* metro dependency 6 */;
|
|
const env0_1 = require(7) /* metro dependency 7 */;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.LayoutShiftManager = _fun11116();
|
|
}
|
|
|
|
function _fun11116() { // fn#11116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1185:121, offset: 0x00da1589, size: 101 bytes, params: 1, frame: 15
|
|
return env0_1(LayoutShiftManager, [{key: '__init', value: function() {
|
|
this._sessionValue = 0;
|
|
}}, {key: '__init2', value: function() {
|
|
this._sessionEntries = [];
|
|
}}, {key: '_processEntry', value: value_11120}]);
|
|
}
|
|
|
|
function LayoutShiftManager() { // fn#11117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1185:155, offset: 0x00da15ee, size: 69 bytes, params: 1, frame: 14
|
|
env1_0(this, LayoutShiftManager);
|
|
LayoutShiftManager.prototype.__init.call(this);
|
|
LayoutShiftManager.prototype.__init2.call(this);
|
|
}
|
|
|
|
function value_11120(a0) { // fn#11120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1185:464, offset: 0x00da1653, size: 220 bytes, params: 2, frame: 15
|
|
var _sessionEntries;
|
|
var property;
|
|
var property2;
|
|
var _onAfterProcessingUnexpectedShift;
|
|
if (!a0.hadRecentInput) {
|
|
_sessionEntries = this._sessionEntries;
|
|
property = _sessionEntries[0];
|
|
_sessionEntries = this._sessionEntries;
|
|
property2 = _sessionEntries[this._sessionEntries.length - 1];
|
|
if (this._sessionValue) {
|
|
if (property) {
|
|
if (property2) {
|
|
if (a0.startTime - property2.startTime < 1000) {
|
|
if (a0.startTime - property.startTime < 5000) {
|
|
this._sessionValue = this._sessionValue + a0.value;
|
|
this._sessionEntries.push(a0);
|
|
} else {
|
|
this._sessionValue = a0.value;
|
|
this._sessionEntries = [a0];
|
|
}
|
|
} else {
|
|
this._sessionValue = a0.value;
|
|
this._sessionEntries = [a0];
|
|
}
|
|
} else {
|
|
this._sessionValue = a0.value;
|
|
this._sessionEntries = [a0];
|
|
}
|
|
} else {
|
|
this._sessionValue = a0.value;
|
|
this._sessionEntries = [a0];
|
|
}
|
|
} else {
|
|
this._sessionValue = a0.value;
|
|
this._sessionEntries = [a0];
|
|
}
|
|
_onAfterProcessingUnexpectedShift = this._onAfterProcessingUnexpectedShift;
|
|
if (_onAfterProcessingUnexpectedShift != null) {
|
|
_onAfterProcessingUnexpectedShift.call(this, a0);
|
|
}
|
|
}
|
|
}
|
|
|