43 lines
3.0 KiB
TypeScript
43 lines
3.0 KiB
TypeScript
/* Metro module 10212; source: modules/content_inventory/useEntryActivityAndApplication.tsx; dependencies: [57, 1378, 10213, 566, 6777, 2] */
|
|
import Module00057 from '../../by-id/module-00057.js'; /* Metro dependency 57 */
|
|
import EmbeddedActivitiesStore from '../activities/EmbeddedActivitiesStore.tsx'; /* Metro dependency 1378 */
|
|
import ContentInventoryActivityStore from './ContentInventoryActivityStore.tsx'; /* Metro dependency 10213 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun79407(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10398:6, offset: 0x01e53491, size: 150 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/content_inventory/useEntryActivityAndApplication.tsx');
|
|
exports.default = useEntryActivityAndApplication;
|
|
function useEntryActivityAndApplication(a0) { // fn#79408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10398:230, offset: 0x01e53527, size: 263 bytes, params: 2, frame: 20
|
|
const env0_0 = a0;
|
|
const value2 = undefined;
|
|
const matchingActivity = (require(566) /* metro dependency 566: flux */).useStateFromStores([ContentInventoryActivityStore],
|
|
_fun79409);
|
|
const value4 = Module00057((importDefault(6777) /* metro dependency 6777: useGetOrFetchApplications */)([matchingActivity == null ? value2 : matchingActivity.application_id,
|
|
'application_id' in a0.extra ? a0.extra.application_id : value2]), 2);
|
|
const property = value4[0];
|
|
const property2 = value4[1];
|
|
object = {activity: matchingActivity};
|
|
object.embeddedActivity = (require(566) /* metro dependency 566: flux */).useStateFromStores([EmbeddedActivitiesStore],
|
|
_fun79410);
|
|
object.anyMatchingApplication = property ?? property2;
|
|
object.activityApplication = property;
|
|
object.fallbackApplication = property2;
|
|
return object;
|
|
function _fun79409() { // fn#79409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10398:311, offset: 0x01e5362e, size: 27 bytes, params: 1, frame: 11
|
|
return ContentInventoryActivityStore.getMatchingActivity(env0_0);
|
|
}
|
|
|
|
function _fun79410() { // fn#79410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10398:534, offset: 0x01e53649, size: 58 bytes, params: 1, frame: 15
|
|
return EmbeddedActivitiesStore.getEmbeddedActivityForUserId(env0_0.author_id, env0_1?.id);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun79407, 10212, [57, 1378, 10213, 566, 6777,
|
|
2]) /* metro module 10212, dependencies: [57, 1378, 10213, 566, 6777, 2] */;
|