decord/alpha/source/modules/frames/utils/useFrame.tsx

57 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 17225
// Function ID: 17226
2026-10-03 08:58:59 +00:00
// Name: useFrame
2026-10-09 10:00:15 +00:00
// Dependencies: [10772, 558, 576, 504, 2]
2026-10-03 08:58:59 +00:00
2026-10-09 10:00:15 +00:00
// Module 17225 (useFrame)
import FramesStore from "FramesStore" /* 10772 */;
2026-10-03 08:58:59 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
const require = globalThis.__r;
let _require;
2026-10-08 09:57:35 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useFrame(arg0) {
2026-10-03 08:58:59 +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 = [FramesStore];
cResult[0] = items;
first = items;
} else {
first = cResult[0];
}
if (cResult[1] !== arg0) {
2026-10-08 09:57:35 +00:00
const fn = function o() {
2026-10-03 08:58:59 +00:00
return FramesStore.getFrame(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-08 09:57:35 +00:00
}) : (function useFrame(arg0) {
2026-10-03 08:58:59 +00:00
let closure_0;
_require = arg0;
const items = [FramesStore];
const items1 = [arg0];
const obj = require("get initialized");
return obj.useStateFromStores(items, () => FramesStore.getFrame(closure_0), items1);
});
const result = size.fileFinishedImporting("modules/frames/utils/useFrame.tsx");
export default tmp2;