40 lines
2.7 KiB
TypeScript
40 lines
2.7 KiB
TypeScript
/* Metro module 10212; source: modules/content_inventory/useEntryActivityAndApplication.tsx; dependencies: [57, 1378, 10213, 566, 6777, 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});
|
|
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
|
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
|
|
const contentInventoryActivityStore = importDefault(10213) /* metro dependency 10213: ContentInventoryActivityStore */;
|
|
(require(2) /* metro dependency 2 */).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
|
|
var object2;
|
|
const env0_0 = a0;
|
|
const value2 = undefined;
|
|
const matchingActivity = (require(566) /* metro dependency 566: flux */).useStateFromStores([ContentInventoryActivityStore],
|
|
_fun79409);
|
|
const value4 = env0_3((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];
|
|
object2 = {activity: matchingActivity};
|
|
object2.embeddedActivity = (require(566) /* metro dependency 566: flux */).useStateFromStores([EmbeddedActivitiesStore],
|
|
_fun79410);
|
|
object2.anyMatchingApplication = property ?? property2;
|
|
object2.activityApplication = property;
|
|
object2.fallbackApplication = property2;
|
|
return object2;
|
|
}
|
|
|
|
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);
|
|
}
|
|
|