decord/beta/source/modules/labs/useLabFeature.tsx

57 lines
1.5 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 8476
// Function ID: 8477
// Name: useLabFeature
2026-10-12 16:32:48 +00:00
// Dependencies: [8474, 558, 576, 504, 2]
2026-10-12 16:32:48 +00:00
// Module 8476 (useLabFeature)
import LabFeatureStore from "LabFeatureStore" /* 8474 */;
2026-10-02 13:37:24 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
const require = globalThis.__r;
2026-10-01 14:13:23 +00:00
let _require;
2026-10-12 16:32:48 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useLabFeature(arg0) {
2026-10-02 13:37:24 +00:00
let closure_0;
let first;
let tmp6;
let tmp7;
_require = arg0;
const obj = require("react");
const cResult = obj.c(4);
const tmp = _require;
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [LabFeatureStore];
cResult[0] = items;
first = items;
} else {
first = cResult[0];
}
if (cResult[1] !== arg0) {
2026-10-12 16:32:48 +00:00
const fn = function o() {
2026-10-02 13:37:24 +00:00
return LabFeatureStore.get(closure_0);
};
const items1 = [arg0];
cResult[1] = arg0;
cResult[2] = fn;
cResult[3] = items1;
tmp7 = items1;
tmp6 = fn;
} else {
tmp6 = cResult[2];
tmp7 = cResult[3];
}
const tmpResult = tmp(504);
return tmpResult.useStateFromStores(first, tmp6, tmp7);
2026-10-12 16:32:48 +00:00
}) : (function useLabFeature(arg0) {
2026-10-01 14:13:23 +00:00
let closure_0;
_require = arg0;
const items = [LabFeatureStore];
const items1 = [arg0];
2026-10-01 14:13:23 +00:00
const obj = require("get initialized");
return obj.useStateFromStores(items, () => LabFeatureStore.get(closure_0), items1);
2026-10-02 13:37:24 +00:00
});
const result = size.fileFinishedImporting("modules/labs/useLabFeature.tsx");
export default tmp2;