decord/source/modules/labs/LabFeatureStore.tsx

55 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 9059
// Function ID: 9060
2026-07-29 08:29:29 +00:00
// Name: getUserAgnosticState
2026-08-15 05:55:55 +00:00
// Dependencies: [589, 9060, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-15 05:55:55 +00:00
// Module 9059 (getUserAgnosticState)
2026-07-29 08:29:29 +00:00
import { DeviceSettingsStore } from "initialize";
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let closure_2 = {};
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-15 05:55:55 +00:00
for (const key10008 in importDefault(9060)) {
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";
const labFeatureStore = new LabFeatureStore(require("dispatcher"), {
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-07-29 08:29:29 +00:00
const result = require("dispatcher").fileFinishedImporting("modules/labs/LabFeatureStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default labFeatureStore;