Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
33 lines
973 B
TypeScript
33 lines
973 B
TypeScript
// Module ID: 8949
|
|
// Function ID: 8950
|
|
// Name: getShelfItemData
|
|
// Dependencies: [5072, 2]
|
|
// Exports: default
|
|
|
|
// Module 8949 (getShelfItemData)
|
|
import ApplicationStore from "ApplicationStore" /* 5072 */;
|
|
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/activities/getShelfItemData.tsx");
|
|
|
|
export default function getShelfItemData(applicationId) {
|
|
applicationId = applicationId.applicationId;
|
|
({ activityConfigs, applications } = applicationId);
|
|
let found;
|
|
if (applications != null) {
|
|
found = applications.find((id) => id.id === applicationId);
|
|
}
|
|
if (found == null) {
|
|
found = ApplicationStore.getApplication(applicationId);
|
|
}
|
|
const found1 = activityConfigs.find((application_id) => application_id.application_id === applicationId);
|
|
let tmp4 = null;
|
|
if (null != found1) {
|
|
tmp4 = null;
|
|
if (null != found) {
|
|
const obj = { activity: found1, application: found };
|
|
tmp4 = obj;
|
|
}
|
|
}
|
|
return tmp4;
|
|
};
|