decord/source/modules/quests/ConsoleQuestUIStore.tsx

100 lines
3 KiB
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 7460
// Function ID: 7461
2026-07-20 16:05:17 +00:00
// Name: useConsoleQuestUIStore
2026-09-02 09:53:35 +00:00
// Dependencies: [641, 2]
2026-07-23 10:11:24 +00:00
2026-09-03 10:05:34 +00:00
// Module 7460 (useConsoleQuestUIStore)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-09-02 09:53:35 +00:00
import keys from "keys" /* 641 */;
2026-07-20 16:05:17 +00:00
let closure_0 = [];
2026-07-23 10:11:24 +00:00
let obj = keys.create((arg0, arg1) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
closure_1 = arg1;
let obj = {
errorHintsByQuestId: new Map(),
setErrorHints(questId, arg1) {
const callback = questId;
closure_1 = arg1;
callback((errorHintsByQuestId) => {
if (0 === length.length) {
errorHintsByQuestId = errorHintsByQuestId.errorHintsByQuestId;
if (!errorHintsByQuestId.has(closure_0)) {
return errorHintsByQuestId;
}
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
errorHintsByQuestId = new Map(errorHintsByQuestId.errorHintsByQuestId);
if (0 === length.length) {
errorHintsByQuestId.delete(closure_0);
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
const items = [];
HermesBuiltin.arraySpread(arr, 0);
const result = errorHintsByQuestId.set(closure_0, items);
}
return { errorHintsByQuestId };
});
},
getErrorHints(arg0) {
const errorHintsByQuestId = callback2().errorHintsByQuestId;
let value = errorHintsByQuestId.get(arg0);
if (value == null) {
value = closure_0;
}
return value;
},
clearErrorHints(arg0) {
const callback = arg0;
callback((errorHintsByQuestId) => {
errorHintsByQuestId = errorHintsByQuestId.errorHintsByQuestId;
if (errorHintsByQuestId.has(closure_0)) {
2026-07-29 08:29:29 +00:00
const _Map = Map;
const map = new Map(errorHintsByQuestId.errorHintsByQuestId);
2026-08-24 06:08:38 +00:00
map.delete(tmp);
2026-07-29 08:29:29 +00:00
const obj = { errorHintsByQuestId: null };
obj[0] = map;
return obj;
2026-08-24 06:08:38 +00:00
} else {
return errorHintsByQuestId;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
tmp = closure_0;
});
},
clearErrorHintsByType(arg0, arg1) {
const callback = arg0;
closure_1 = arg1;
callback((errorHintsByQuestId) => {
errorHintsByQuestId = errorHintsByQuestId.errorHintsByQuestId;
const value = errorHintsByQuestId.get(closure_0);
if (null == value) {
return errorHintsByQuestId;
} else {
const found = value.filter((type) => type.type !== closure_1);
if (found.length === value.length) {
return errorHintsByQuestId;
} else {
const _Map = Map;
const map = new Map(errorHintsByQuestId.errorHintsByQuestId);
if (0 === found.length) {
map.delete(tmp);
} else {
const result = map.set(tmp, found);
}
const obj = { errorHintsByQuestId: null };
obj[0] = map;
return obj;
}
}
});
},
reset() {
const obj = { errorHintsByQuestId: new Map() };
callback(obj);
}
2026-07-20 16:05:17 +00:00
};
return obj;
});
2026-08-24 06:08:38 +00:00
let result = set.fileFinishedImporting("modules/quests/ConsoleQuestUIStore.tsx");
2026-07-20 16:05:17 +00:00
export default obj;
export const useConsoleQuestUIStore = obj;