decord/source/modules/labs/LabFeatureStore.tsx

103 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 8125
2026-07-27 11:26:19 +00:00
// Function ID: 64837
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-25 08:10:48 +00:00
// Dependencies: [6, 7, 15, 17, 18, 8126, 566, 686, 2]
2026-07-23 10:11:24 +00:00
2026-07-25 08:10:48 +00:00
// Module 8125 (_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() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
let closure_7 = {};
2026-07-23 10:11:24 +00:00
let tmp2 = ((DeviceSettingsStore) => {
2026-07-20 16:05:17 +00:00
class LabFeatureStore {
constructor() {
self = this;
2026-07-23 10:11:24 +00:00
tmp = outer1_2(this, LabFeatureStore);
obj = outer1_5(LabFeatureStore);
tmp2 = outer1_4;
if (outer1_8()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_5;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_5(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
callback2(LabFeatureStore, DeviceSettingsStore);
let obj = {
key: "getUserAgnosticState",
value() {
2026-07-23 10:11:24 +00:00
return { toggleStates: outer1_7 };
2026-07-20 16:05:17 +00:00
}
};
const items = [obj, , , ];
obj = {
key: "initialize",
value(toggleStates) {
2026-07-23 10:11:24 +00:00
for (const key10010 in LabFeatureStore(outer1_1[5])) {
2026-07-20 16:05:17 +00:00
let tmp5 = key10010;
let tmp2;
2026-07-23 10:11:24 +00:00
let tmp6 = outer1_7;
2026-07-20 16:05:17 +00:00
if (null != arg0) {
toggleStates = arg0.toggleStates;
let tmp = toggleStates;
if (null != toggleStates) {
tmp2 = toggleStates[key10010];
let tmp3 = toggleStates;
}
}
let tmp4 = null != tmp2;
if (tmp4) {
tmp4 = tmp2;
}
tmp6[key10010] = tmp4;
2026-07-23 10:11:24 +00:00
continue;
2026-07-20 16:05:17 +00:00
}
}
};
items[1] = obj;
obj = {
key: "get",
value(arg0) {
2026-07-23 10:11:24 +00:00
return null != outer1_7[arg0] && outer1_7[arg0];
2026-07-20 16:05:17 +00:00
}
};
items[2] = obj;
items[3] = {
key: "set",
value(arg0, arg1) {
2026-07-23 10:11:24 +00:00
outer1_7[arg0] = arg1;
2026-07-20 16:05:17 +00:00
return arg1;
}
};
return callback(LabFeatureStore, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").DeviceSettingsStore);
2026-07-20 16:05:17 +00:00
tmp2.displayName = "LabFeatureStore";
tmp2.persistKey = "LabFeatureStore";
2026-07-23 10:11:24 +00:00
tmp2 = new tmp2(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
LAB_FEATURE_TOGGLE: function handleLabFeatureToggleSet(labFeature) {
closure_7[labFeature.labFeature] = labFeature.enabled;
}
});
2026-07-23 10:11:24 +00:00
let result = require("_possibleConstructorReturn").fileFinishedImporting("modules/labs/LabFeatureStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp2;