decord/source/modules/labs/LabFeatureStore.tsx

58 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 9062
// Function ID: 9063
2026-07-29 08:29:29 +00:00
// Name: getUserAgnosticState
2026-08-25 06:04:03 +00:00
// Dependencies: [589, 9063, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-25 06:04:03 +00:00
// Module 9062 (getUserAgnosticState)
2026-08-24 06:08:38 +00:00
import initializeDefault from "initialize" /* 589 */;
import dispatcherDefault from "dispatcher" /* 709 */;
2026-08-25 06:04:03 +00:00
import hide_icymi_tabDefault from "hide_icymi_tab" /* 9063 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let closure_2 = {};
2026-08-24 06:08:38 +00:00
const DeviceSettingsStore = initializeDefault.DeviceSettingsStore;
2026-07-29 08:29:29 +00:00
class LabFeatureStore extends DeviceSettingsStore {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = LabFeatureStore.prototype;
prototype["getUserAgnosticState"] = function getUserAgnosticState() {
return { toggleStates: closure_2 };
};
prototype["initialize"] = function initialize(toggleStates) {
2026-08-24 06:08:38 +00:00
for (const key10008 in hide_icymi_tabDefault) {
2026-07-29 08:29:29 +00:00
let tmp = key10008;
let flag;
let tmp2 = closure_2;
if (arg0 != null) {
toggleStates = arg0.toggleStates;
if (toggleStates != null) {
flag = toggleStates[key10008];
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
if (flag == null) {
flag = false;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp2[key10008] = flag;
continue;
}
};
prototype["get"] = function get(arg0) {
let flag = table[arg0];
if (flag == null) {
flag = false;
}
return flag;
};
prototype["set"] = function set(arg0, arg1) {
closure_2[arg0] = arg1;
return arg1;
};
LabFeatureStore.displayName = "LabFeatureStore";
LabFeatureStore.persistKey = "LabFeatureStore";
2026-08-24 06:08:38 +00:00
const labFeatureStore = new LabFeatureStore(dispatcherDefault, {
2026-07-20 16:05:17 +00:00
LAB_FEATURE_TOGGLE: function handleLabFeatureToggleSet(labFeature) {
2026-07-29 08:29:29 +00:00
closure_2[labFeature.labFeature] = labFeature.enabled;
2026-07-20 16:05:17 +00:00
}
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/labs/LabFeatureStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default labFeatureStore;