decord/alpha/source/modules/conjure/projects/useOwnedConjureProject.tsx

99 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 12299
// Function ID: 12300
2026-10-05 08:00:40 +00:00
// Name: useOwnedConjureProject
2026-10-09 10:00:15 +00:00
// Dependencies: [10617, 558, 576, 12288, 504, 2]
2026-10-09 10:00:15 +00:00
// Module 12299 (useOwnedConjureProject)
import useIsOwnedConjureApplicationDefault from "useIsOwnedConjureApplication" /* 12288 */;
import ConjureProjectStore from "ConjureProjectStore" /* 10617 */;
2026-10-03 08:58:59 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
const require = globalThis.__r;
2026-10-03 08:58:59 +00:00
let _require, importDefault;
2026-10-08 09:57:35 +00:00
let tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useOwnedConjureProject(arg0, arg1) {
2026-10-03 08:58:59 +00:00
let closure_0;
let closure_1;
let first;
_require = arg0;
const tmp2 = dependencyMap;
const obj = require("react");
const cResult = obj.c(8);
2026-10-05 08:00:40 +00:00
const tmp4 = useIsOwnedConjureApplicationDefault(arg0, arg1);
2026-10-03 08:58:59 +00:00
importDefault = tmp4;
const tmp = _require;
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
2026-10-05 08:00:40 +00:00
const items = [ConjureProjectStore];
2026-10-03 08:58:59 +00:00
cResult[0] = items;
first = items;
} else {
first = cResult[0];
}
if (cResult[1] === arg0) {
let tmp7;
let tmp8;
if (cResult[2] === tmp4) {
tmp7 = cResult[3];
tmp8 = cResult[4];
}
const tmpResult = tmp(504);
const stateFromStores = tmpResult.useStateFromStores(first, tmp7, tmp8);
if (cResult[5] === tmp4) {
let tmp10;
if (cResult[6] === stateFromStores) {
tmp10 = cResult[7];
}
return tmp10;
}
const obj2 = { isOwned: tmp4, project: stateFromStores };
cResult[5] = tmp4;
cResult[6] = stateFromStores;
cResult[7] = obj2;
tmp10 = obj2;
}
2026-10-08 09:57:35 +00:00
const fn = function c() {
2026-10-03 08:58:59 +00:00
let result = null;
if (true === closure_1) {
result = null;
if (null != closure_0) {
2026-10-05 08:00:40 +00:00
result = ConjureProjectStore.findProjectByApplicationId(tmp2);
2026-10-03 08:58:59 +00:00
}
}
return result;
};
const items1 = [tmp4, arg0];
cResult[1] = arg0;
cResult[2] = tmp4;
cResult[3] = fn;
cResult[4] = items1;
tmp8 = items1;
tmp7 = fn;
2026-10-08 09:57:35 +00:00
}) : (function useOwnedConjureProject(arg0, arg1) {
2026-10-03 08:58:59 +00:00
let closure_0;
let closure_1;
_require = arg0;
2026-10-05 08:00:40 +00:00
const tmp = useIsOwnedConjureApplicationDefault(arg0, arg1);
importDefault = tmp;
2026-10-05 08:00:40 +00:00
const items = [ConjureProjectStore];
const items1 = [tmp, arg0];
2026-10-03 08:58:59 +00:00
const obj = require("get initialized");
const obj2 = {
isOwned: tmp,
2026-10-03 08:58:59 +00:00
project: obj.useStateFromStores(items, () => {
let result = null;
if (true === closure_1) {
result = null;
if (null != closure_0) {
2026-10-05 08:00:40 +00:00
result = ConjureProjectStore.findProjectByApplicationId(tmp2);
}
}
return result;
}, items1)
};
2026-10-03 08:58:59 +00:00
return obj2;
});
2026-10-05 08:00:40 +00:00
let result = size.fileFinishedImporting("modules/conjure/projects/useOwnedConjureProject.tsx");
2026-10-03 08:58:59 +00:00
export default tmp2;