Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
32 lines
984 B
TypeScript
32 lines
984 B
TypeScript
// Module ID: 9105
|
|
// Function ID: 9106
|
|
// Name: useCurrentEmbeddedApplication
|
|
// Dependencies: [32, 9106, 6775, 2]
|
|
// Exports: default
|
|
|
|
// Module 9105 (useCurrentEmbeddedApplication)
|
|
import useGetOrFetchApplicationsDefault from "useGetOrFetchApplications" /* 6775 */;
|
|
import useCurrentEmbeddedActivityDefault from "useCurrentEmbeddedActivity" /* 9106 */;
|
|
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;
|
|
};
|