decord/alpha/source/modules/activities/getShelfItemData.tsx

36 lines
1 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 10795
// Function ID: 10796
2026-07-20 16:05:17 +00:00
// Name: getShelfItemData
2026-10-09 10:00:15 +00:00
// Dependencies: [5437, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-09 10:00:15 +00:00
// Module 10795 (getShelfItemData)
import ApplicationStore from "ApplicationStore" /* 5437 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const result = size.fileFinishedImporting("modules/activities/getShelfItemData.tsx");
2026-07-20 16:05:17 +00:00
export default function getShelfItemData(applicationId) {
2026-10-03 08:58:59 +00:00
let activityConfigs;
let applications;
2026-07-20 16:05:17 +00:00
applicationId = applicationId.applicationId;
({ activityConfigs, applications } = applicationId);
let found;
2026-07-29 08:29:29 +00:00
if (applications != null) {
2026-07-20 16:05:17 +00:00
found = applications.find((id) => id.id === applicationId);
}
2026-07-29 08:29:29 +00:00
if (found == null) {
found = ApplicationStore.getApplication(applicationId);
2026-07-20 16:05:17 +00:00
}
const found1 = activityConfigs.find((application_id) => application_id.application_id === applicationId);
let tmp4 = null;
if (null != found1) {
tmp4 = null;
if (null != found) {
2026-10-03 08:58:59 +00:00
tmp4 = { activity: found1, application: found };
const obj = { activity: found1, application: found };
2026-07-20 16:05:17 +00:00
}
}
return tmp4;
};