2026-10-13 12:43:34 +00:00
|
|
|
// Module ID: 17178
|
|
|
|
|
// Function ID: 17179
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: useGetOrFetchNotificationCenterItemApplications
|
2026-10-12 06:59:38 +00:00
|
|
|
// Dependencies: [19, 6058, 558, 576, 6858, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-13 12:43:34 +00:00
|
|
|
// Module 17178 (useGetOrFetchNotificationCenterItemApplications)
|
2026-10-10 08:08:14 +00:00
|
|
|
import NotificationCenterItemsTypes from "NotificationCenterItemsTypes" /* 6058 */;
|
2026-10-12 06:59:38 +00:00
|
|
|
import useGetOrFetchApplicationsDefault from "useGetOrFetchApplications" /* 6858 */;
|
2026-10-03 08:58:59 +00:00
|
|
|
import react from "react" /* 19 */;
|
|
|
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-03 08:58:59 +00:00
|
|
|
const require = globalThis.__r;
|
|
|
|
|
let _require, applicationId;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-03 08:58:59 +00:00
|
|
|
let items = [NotificationCenterItemsTypes.NotificationCenterLocalItems.INCOMING_GAME_FRIEND_REQUESTS, NotificationCenterItemsTypes.NotificationCenterLocalItems.INCOMING_GAME_FRIEND_REQUESTS_ACCEPTED, NotificationCenterItemsTypes.NotificationCenterLocalItems.INCOMING_FRIEND_REQUESTS, NotificationCenterItemsTypes.NotificationCenterLocalItems.INCOMING_FRIEND_REQUESTS_ACCEPTED];
|
|
|
|
|
let set = new Set(items);
|
2026-10-08 09:57:35 +00:00
|
|
|
let tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function useGetOrFetchNotificationCenterItemsApplications(arr) {
|
2026-10-03 08:58:59 +00:00
|
|
|
let closure_0;
|
|
|
|
|
let tmp3;
|
|
|
|
|
const obj = require("react");
|
|
|
|
|
const cResult = obj.c(2);
|
|
|
|
|
if (cResult[0] !== arr) {
|
|
|
|
|
const _Set = Set;
|
|
|
|
|
const self = this;
|
|
|
|
|
const self2 = this;
|
2026-08-24 06:08:38 +00:00
|
|
|
set = new Set();
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [];
|
2026-10-03 08:58:59 +00:00
|
|
|
_require = items;
|
|
|
|
|
const item = arr.forEach((applicationId) => {
|
2026-07-20 16:05:17 +00:00
|
|
|
applicationId = applicationId.applicationId;
|
2026-09-10 05:38:07 +00:00
|
|
|
if (set.has(applicationId.type)) {
|
2026-10-03 08:58:59 +00:00
|
|
|
const hasItem = null == applicationId || set.has(applicationId);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (!hasItem) {
|
2026-10-03 08:58:59 +00:00
|
|
|
set.add(applicationId);
|
|
|
|
|
closure_0.push(applicationId);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
cResult[0] = arr;
|
|
|
|
|
cResult[1] = items;
|
|
|
|
|
tmp3 = items;
|
|
|
|
|
} else {
|
|
|
|
|
_require = cResult[1];
|
|
|
|
|
}
|
2026-10-12 06:59:38 +00:00
|
|
|
return set(6858)(tmp3);
|
2026-10-08 09:57:35 +00:00
|
|
|
}) : (function useGetOrFetchNotificationCenterItemsApplications(arg0) {
|
2026-10-03 08:58:59 +00:00
|
|
|
let closure_0 = arg0;
|
|
|
|
|
let items = [arg0];
|
|
|
|
|
const memo = react.useMemo(() => {
|
|
|
|
|
set = new Set();
|
|
|
|
|
const items = [];
|
|
|
|
|
const item = closure_0.forEach((applicationId) => {
|
|
|
|
|
applicationId = applicationId.applicationId;
|
|
|
|
|
if (set.has(applicationId.type)) {
|
|
|
|
|
const hasItem = null == applicationId || set.has(applicationId);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (!hasItem) {
|
|
|
|
|
set.add(applicationId);
|
|
|
|
|
items.push(applicationId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return items;
|
|
|
|
|
}, items);
|
2026-08-24 06:08:38 +00:00
|
|
|
return useGetOrFetchApplicationsDefault(memo);
|
2026-10-03 08:58:59 +00:00
|
|
|
});
|
|
|
|
|
const result = size.fileFinishedImporting("modules/notification_center/useGetOrFetchNotificationCenterItemApplications.tsx");
|
|
|
|
|
|
|
|
|
|
export const useGetOrFetchNotificationCenterItemsApplications = tmp3;
|