2026-09-25 08:38:05 +00:00
|
|
|
// Module ID: 11510
|
|
|
|
|
// Function ID: 11511
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useDeveloperActivityShelfItems
|
2026-09-25 08:38:05 +00:00
|
|
|
// Dependencies: [19, 8312, 2004, 504, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: useDeveloperActivityShelfItems
|
|
|
|
|
|
2026-09-25 08:38:05 +00:00
|
|
|
// Module 11510 (useDeveloperActivityShelfItems)
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
2026-09-25 08:38:05 +00:00
|
|
|
import DeveloperActivityShelfStore from "DeveloperActivityShelfStore" /* 8312 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const require = fn;
|
2026-09-19 06:52:51 +00:00
|
|
|
let closure_4 = fn(2004).DEFAULT_EMBEDDED_ACTIVITY_CONFIG;
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/activities/useDeveloperActivityShelfItems.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const useDeveloperActivityShelfItems = function useDeveloperActivityShelfItems() {
|
2026-09-10 05:38:07 +00:00
|
|
|
const items = [DeveloperActivityShelfStore];
|
|
|
|
|
const stateFromStoresObject = isEnabled(lastUsedObject[3]).useStateFromStoresObject(items, () => ({ isEnabled: DeveloperActivityShelfStore.getIsEnabled(), lastUsedObject: DeveloperActivityShelfStore.getLastUsedObject() }), []);
|
2026-07-23 10:11:24 +00:00
|
|
|
isEnabled = stateFromStoresObject.isEnabled;
|
|
|
|
|
lastUsedObject = stateFromStoresObject.lastUsedObject;
|
|
|
|
|
let obj = isEnabled(lastUsedObject[3]);
|
2026-09-10 05:38:07 +00:00
|
|
|
const items1 = [DeveloperActivityShelfStore];
|
|
|
|
|
const stateFromStoresArray = isEnabled(lastUsedObject[3]).useStateFromStoresArray(items1, () => DeveloperActivityShelfStore.getDeveloperShelfItems(), []);
|
2026-07-20 16:05:17 +00:00
|
|
|
const items2 = [stateFromStoresArray, isEnabled, lastUsedObject];
|
2026-07-23 10:11:24 +00:00
|
|
|
return stateFromStoresArray.useMemo(() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
if (isEnabled) {
|
|
|
|
|
const mapped = stateFromStoresArray.map((application) => {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj = { application, activity: null };
|
|
|
|
|
const obj2 = {};
|
|
|
|
|
const merged = Object.assign(closure_1_4);
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged1 = Object.assign(application.embeddedActivityConfig);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj2.application_id = application.id;
|
|
|
|
|
obj.activity = obj2;
|
2026-07-20 16:05:17 +00:00
|
|
|
return obj;
|
|
|
|
|
});
|
|
|
|
|
let sorted = mapped.sort((arg0, arg1) => {
|
|
|
|
|
let num = 1;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (null != dependencyMap[arg0.application.id]) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let num2 = -1;
|
|
|
|
|
if (null != tmp2) {
|
|
|
|
|
num2 = tmp2 - tmp;
|
|
|
|
|
}
|
|
|
|
|
num = num2;
|
|
|
|
|
}
|
|
|
|
|
return num;
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
sorted = [];
|
|
|
|
|
}
|
|
|
|
|
return sorted;
|
|
|
|
|
}, items2);
|
|
|
|
|
};
|