decord/alpha/source/modules/conjure/publish/useConjurePublishedAppName.tsx

80 lines
2.3 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 11827
// Function ID: 11828
2026-10-05 08:00:40 +00:00
// Name: useConjurePublishedAppName
2026-10-12 06:59:38 +00:00
// Dependencies: [5440, 10652, 558, 576, 504, 2]
2026-10-13 12:43:34 +00:00
// Module 11827 (useConjurePublishedAppName)
2026-10-10 08:08:14 +00:00
import ApplicationStore from "ApplicationStore" /* 5440 */;
2026-10-12 06:59:38 +00:00
import ConjureProjectStore from "ConjureProjectStore" /* 10652 */;
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;
2026-10-08 09:57:35 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useConjurePublishedAppName(arg0) {
2026-10-03 08:58:59 +00:00
let closure_0;
let first;
let tmp7;
_require = arg0;
const obj = require("react");
const cResult = obj.c(3);
const tmp = _require;
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
2026-10-05 08:00:40 +00:00
const items = [ConjureProjectStore, ApplicationStore];
2026-10-03 08:58:59 +00:00
cResult[0] = items;
first = items;
} else {
first = cResult[0];
}
if (cResult[1] !== arg0) {
2026-10-05 08:00:40 +00:00
const fn = function l() {
const project = ConjureProjectStore.getProject(closure_0);
2026-10-03 08:58:59 +00:00
let str = "";
if (null != project) {
const application = ApplicationStore.getApplication(project.application_id);
let name;
if (application != null) {
name = application.name;
}
if (name == null) {
name = project.name;
}
str = name;
}
return str;
};
cResult[1] = arg0;
cResult[2] = fn;
tmp7 = fn;
} else {
tmp7 = cResult[2];
}
const tmpResult = tmp(504);
return tmpResult.useStateFromStores(first, tmp7);
2026-10-08 09:57:35 +00:00
}) : (function useConjurePublishedAppName(arg0) {
2026-10-03 08:58:59 +00:00
let closure_0;
_require = arg0;
2026-10-05 08:00:40 +00:00
const items = [ConjureProjectStore, ApplicationStore];
2026-10-03 08:58:59 +00:00
const obj = require("get initialized");
return obj.useStateFromStores(items, () => {
2026-10-05 08:00:40 +00:00
const project = ConjureProjectStore.getProject(closure_0);
let str = "";
if (null != project) {
const application = ApplicationStore.getApplication(project.application_id);
let name;
if (application != null) {
name = application.name;
}
if (name == null) {
name = project.name;
}
str = name;
}
return str;
});
2026-10-03 08:58:59 +00:00
});
2026-10-05 08:00:40 +00:00
const result = size.fileFinishedImporting("modules/conjure/publish/useConjurePublishedAppName.tsx");
2026-10-03 08:58:59 +00:00
export default tmp2;