decord/source/1026_LayoutShiftManager.js

69 lines
2.1 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1026
2026-07-25 08:10:48 +00:00
// Function ID: 11089
2026-07-20 16:05:17 +00:00
// Name: LayoutShiftManager
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7]
2026-07-20 16:05:17 +00:00
// Module 1026 (LayoutShiftManager)
2026-07-23 10:11:24 +00:00
import _classCallCheck from "_classCallCheck";
import _defineProperties from "_defineProperties";
2026-07-20 16:05:17 +00:00
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2026-07-23 10:11:24 +00:00
export const LayoutShiftManager = (() => {
2026-07-20 16:05:17 +00:00
class LayoutShiftManager {
constructor() {
tmp = LayoutShiftManager(this, LayoutShiftManager);
__init = LayoutShiftManager.prototype.__init;
callResult = __init.call(this);
__init2 = LayoutShiftManager.prototype.__init2;
callResult1 = __init2.call(this);
return;
}
}
let obj = {
key: "__init",
value: function __init() {
this._sessionValue = 0;
}
};
2026-07-23 10:11:24 +00:00
let items = [obj, , ];
2026-07-20 16:05:17 +00:00
obj = {
key: "__init2",
value: function __init2() {
this._sessionEntries = [];
}
};
items[1] = obj;
obj = {
key: "_processEntry",
value: function _processEntry(hadRecentInput) {
const self = this;
if (!hadRecentInput.hadRecentInput) {
const first = self._sessionEntries[0];
if (self._sessionValue) {
if (first) {
if (tmp2) {
if (hadRecentInput.startTime - tmp2.startTime < 1000) {
if (hadRecentInput.startTime - first.startTime < 5000) {
self._sessionValue = self._sessionValue + hadRecentInput.value;
const _sessionEntries = self._sessionEntries;
_sessionEntries.push(hadRecentInput);
}
const _onAfterProcessingUnexpectedShift = self._onAfterProcessingUnexpectedShift;
if (null != _onAfterProcessingUnexpectedShift) {
_onAfterProcessingUnexpectedShift.call(self, hadRecentInput);
}
}
}
}
}
self._sessionValue = hadRecentInput.value;
const items = [hadRecentInput];
self._sessionEntries = items;
}
}
};
items[2] = obj;
2026-07-23 10:11:24 +00:00
return _defineProperties(LayoutShiftManager, items);
})();