2026-09-21 13:40:21 +00:00
|
|
|
// Module ID: 9720
|
|
|
|
|
// Function ID: 9721
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: useCurrentEmbeddedApplication
|
2026-09-21 13:40:21 +00:00
|
|
|
// Dependencies: [32, 9721, 7413, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-21 13:40:21 +00:00
|
|
|
// Module 9720 (useCurrentEmbeddedApplication)
|
|
|
|
|
import useGetOrFetchApplicationsDefault from "useGetOrFetchApplications" /* 7413 */;
|
|
|
|
|
import useCurrentEmbeddedActivityDefault from "useCurrentEmbeddedActivity" /* 9721 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
|
|
|
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/activities/utils/useCurrentEmbeddedApplication.tsx");
|
|
|
|
|
|
|
|
|
|
export default function useCurrentEmbeddedApplication() {
|
|
|
|
|
let obj = arg0;
|
|
|
|
|
if (arg0 === undefined) {
|
|
|
|
|
obj = {};
|
|
|
|
|
}
|
|
|
|
|
let flag = obj.fetchesApplication;
|
|
|
|
|
if (flag === undefined) {
|
|
|
|
|
flag = true;
|
|
|
|
|
}
|
|
|
|
|
const tmp = useCurrentEmbeddedActivityDefault();
|
|
|
|
|
if (null == tmp) {
|
|
|
|
|
let items = [];
|
|
|
|
|
} else {
|
|
|
|
|
items = [tmp.applicationId];
|
|
|
|
|
}
|
|
|
|
|
const first = _slicedToArray(useGetOrFetchApplicationsDefault(items, flag), 1)[0];
|
|
|
|
|
return first;
|
|
|
|
|
};
|