decord/source/modules/app_launcher/AppLauncherLastUsedCommandStore.tsx

93 lines
2.9 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 11231
// Function ID: 87373
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 664, 566, 686, 2]
2026-07-27 11:26:19 +00:00
// Module 11231 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import initialize from "initialize";
import dispatcher from "dispatcher";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
let initialize = !valueOf.call(Reflect.construct(Boolean, [], () => {
2026-07-20 16:05:17 +00:00
}));
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
return initialize;
2026-07-20 16:05:17 +00:00
}
const result = _isNativeReflectConstruct();
}
2026-07-23 10:11:24 +00:00
let closure_5 = 10 * require("set").Millis.MINUTE;
let closure_6 = { lastUsedCommandId: null, lastUsedTimeMs: null };
let tmp2 = ((PersistedStore) => {
2026-07-20 16:05:17 +00:00
class AppLauncherLastUsedCommandStore {
constructor() {
self = this;
tmp = AppLauncherLastUsedCommandStore(this, AppLauncherLastUsedCommandStore);
2026-07-23 10:11:24 +00:00
obj = outer1_3(AppLauncherLastUsedCommandStore);
tmp2 = outer1_2;
if (outer1_7()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_3;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_3(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
callback2(AppLauncherLastUsedCommandStore, PersistedStore);
let obj = {
key: "initialize",
value(arg0) {
if (null != arg0) {
2026-07-23 10:11:24 +00:00
({ lastUsedCommandId: outer1_6.lastUsedCommandId, lastUsedTimeMs: outer1_6.lastUsedTimeMs } = arg0);
2026-07-20 16:05:17 +00:00
}
}
};
const items = [obj, , ];
obj = {
key: "getState",
value() {
2026-07-23 10:11:24 +00:00
return outer1_6;
2026-07-20 16:05:17 +00:00
}
};
items[1] = obj;
obj = {
key: "getLastUsedCommandId",
value() {
let lastUsedCommandId = null;
2026-07-23 10:11:24 +00:00
if (null != outer1_6.lastUsedTimeMs) {
2026-07-20 16:05:17 +00:00
lastUsedCommandId = null;
2026-07-23 10:11:24 +00:00
if (null != outer1_6.lastUsedCommandId) {
if (tmp > outer1_6.lastUsedTimeMs + outer1_5) {
outer1_6.lastUsedCommandId = null;
outer1_6.lastUsedTimeMs = null;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
lastUsedCommandId = outer1_6.lastUsedCommandId;
2026-07-20 16:05:17 +00:00
}
}
return lastUsedCommandId;
}
};
items[2] = obj;
return callback(AppLauncherLastUsedCommandStore, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").PersistedStore);
2026-07-20 16:05:17 +00:00
tmp2.displayName = "AppLauncherLastUsedCommandStore";
tmp2.persistKey = "AppLauncherLastUsedCommandStore";
2026-07-23 10:11:24 +00:00
tmp2 = new tmp2(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
APPLICATION_COMMAND_USED: function handleApplicationCommandUsed(command) {
closure_6.lastUsedCommandId = command.command.id;
closure_6.lastUsedTimeMs = Date.now();
}
});
2026-07-23 10:11:24 +00:00
let result = require("_possibleConstructorReturn").fileFinishedImporting("modules/app_launcher/AppLauncherLastUsedCommandStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp2;