decord/source/modules/quests/UnenrolledActivityQuestStore.tsx

121 lines
3.4 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 15784
// Function ID: 121721
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 21, 566, 686, 2]
2026-07-27 11:26:19 +00:00
// Module 15784 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import initialize from "initialize";
import dispatcher from "dispatcher";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
import set from "_possibleConstructorReturn";
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
2026-07-23 10:11:24 +00:00
let set = new Set();
2026-07-20 16:05:17 +00:00
const set1 = new Set();
2026-07-23 10:11:24 +00:00
let c8 = false;
let tmp4 = ((PersistedStore) => {
2026-07-20 16:05:17 +00:00
class UnenrolledActivityQuestStore {
constructor() {
self = this;
2026-07-23 10:11:24 +00:00
tmp = outer1_2(this, UnenrolledActivityQuestStore);
obj = outer1_5(UnenrolledActivityQuestStore);
tmp2 = outer1_4;
if (outer1_9()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_5;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_5(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
callback2(UnenrolledActivityQuestStore, PersistedStore);
let obj = {
key: "initialize",
value(dismissedQuestIds) {
dismissedQuestIds = undefined;
if (null != dismissedQuestIds) {
dismissedQuestIds = dismissedQuestIds.dismissedQuestIds;
}
if (null == dismissedQuestIds) {
dismissedQuestIds = [];
}
2026-07-23 10:11:24 +00:00
const outer1_7 = new Set(dismissedQuestIds);
2026-07-20 16:05:17 +00:00
let autoEnroll;
if (null != dismissedQuestIds) {
autoEnroll = dismissedQuestIds.autoEnroll;
}
2026-07-23 10:11:24 +00:00
const outer1_8 = null != autoEnroll && autoEnroll;
2026-07-20 16:05:17 +00:00
}
};
2026-07-23 10:11:24 +00:00
let items = [obj, , , ];
2026-07-20 16:05:17 +00:00
obj = {
key: "getState",
value() {
const obj = {};
2026-07-23 10:11:24 +00:00
const items = [...outer1_7];
2026-07-20 16:05:17 +00:00
obj.dismissedQuestIds = items;
2026-07-23 10:11:24 +00:00
obj.autoEnroll = outer1_8;
2026-07-20 16:05:17 +00:00
return obj;
}
};
items[1] = obj;
obj = {
key: "isDismissed",
value(arg0) {
let hasItem = null != arg0;
if (hasItem) {
2026-07-23 10:11:24 +00:00
hasItem = outer1_7.has(arg0);
2026-07-20 16:05:17 +00:00
}
return hasItem;
}
};
items[2] = obj;
items[3] = {
key: "getDismissedQuestIds",
value() {
2026-07-23 10:11:24 +00:00
return outer1_7;
2026-07-20 16:05:17 +00:00
}
};
return callback(UnenrolledActivityQuestStore, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").PersistedStore);
2026-07-20 16:05:17 +00:00
tmp4.displayName = "UnenrolledActivityQuestStore";
tmp4.persistKey = "UnenrolledActivityQuestStore";
2026-07-23 10:11:24 +00:00
tmp4 = new tmp4(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
UNENROLLED_ACTIVITY_QUEST_DISMISS: function handleDismissUnenrolledActivityQuest(questId) {
2026-07-23 10:11:24 +00:00
if (set.size >= 20) {
2026-07-20 16:05:17 +00:00
const _Array = Array;
2026-07-23 10:11:24 +00:00
const sorted = Array.from(set).sort(importDefault(21).compare);
2026-07-20 16:05:17 +00:00
const _Math = Math;
const substr = sorted.slice(Math.floor(10));
const _Set = Set;
2026-07-23 10:11:24 +00:00
set = new Set(substr.map((arg0) => arg0.toString()));
const arr = Array.from(set);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
set.add(questId.questId);
2026-07-20 16:05:17 +00:00
return true;
},
UNENROLLED_ACTIVITY_QUEST_AUTO_ENROLL: function handleSetAutoEnroll(autoEnroll) {
autoEnroll = autoEnroll.autoEnroll;
return true;
}
});
2026-07-23 10:11:24 +00:00
let result = set.fileFinishedImporting("modules/quests/UnenrolledActivityQuestStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp4;