2026-07-29 08:29:29 +00:00
|
|
|
// Module ID: 1050
|
|
|
|
|
// Function ID: 1051
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: LayoutShiftManager
|
2026-07-29 08:29:29 +00:00
|
|
|
// Dependencies: [41, 42]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
// Module 1050 (LayoutShiftManager)
|
2026-08-24 06:08:38 +00:00
|
|
|
import LayoutShiftManager from "_classCallCheck" /* 41 */;
|
|
|
|
|
import _createClass from "_createClass" /* 42 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-07-20 16:05:17 +00:00
|
|
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
2026-07-29 08:29:29 +00:00
|
|
|
class LayoutShiftManager {
|
|
|
|
|
constructor() {
|
|
|
|
|
self = this;
|
|
|
|
|
tmp = LayoutShiftManager;
|
|
|
|
|
tmp2 = LayoutShiftManager(this, LayoutShiftManager);
|
|
|
|
|
__init = LayoutShiftManager.prototype.__init;
|
|
|
|
|
call = __init.call;
|
|
|
|
|
if (typeof call === "unknown") {
|
|
|
|
|
__initResult = __init();
|
|
|
|
|
} else {
|
|
|
|
|
callResult = call(self);
|
|
|
|
|
}
|
|
|
|
|
__init2 = tmp.prototype.__init2;
|
|
|
|
|
call2 = __init2.call;
|
|
|
|
|
if (typeof call2 === "unknown") {
|
|
|
|
|
__init2Result = __init2();
|
|
|
|
|
} else {
|
|
|
|
|
call2Result = call2(self);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
let items = [
|
|
|
|
|
{
|
2026-07-20 16:05:17 +00:00
|
|
|
key: "__init",
|
|
|
|
|
value: function __init() {
|
|
|
|
|
this._sessionValue = 0;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
},
|
|
|
|
|
{
|
2026-07-20 16:05:17 +00:00
|
|
|
key: "__init2",
|
|
|
|
|
value: function __init2() {
|
|
|
|
|
this._sessionEntries = [];
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
},
|
|
|
|
|
{
|
2026-07-20 16:05:17 +00:00
|
|
|
key: "_processEntry",
|
|
|
|
|
value: function _processEntry(hadRecentInput) {
|
|
|
|
|
if (!hadRecentInput.hadRecentInput) {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const first = this._sessionEntries[0];
|
|
|
|
|
if (this._sessionValue) {
|
2026-07-20 16:05:17 +00:00
|
|
|
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;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (_onAfterProcessingUnexpectedShift != null) {
|
|
|
|
|
const result = _onAfterProcessingUnexpectedShift(hadRecentInput);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
self._sessionValue = hadRecentInput.value;
|
|
|
|
|
const items = [hadRecentInput];
|
|
|
|
|
self._sessionEntries = items;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export const LayoutShiftManager = _createClass(LayoutShiftManager, items);
|