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