decord/source/modules/quests/ConsoleQuestUIStore.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

96 lines
3 KiB
TypeScript

// Module ID: 7718
// Function ID: 7719
// Name: ConsoleQuestUIStore
// Dependencies: [560, 2]
// Module 7718 (ConsoleQuestUIStore)
import module_560 from "module_560" /* 560 */;
import size from "module_2" /* 2 */;
let closure_0 = [];
let obj = module_560.create((arg0, arg1) => {
closure_0 = arg0;
closure_1 = arg1;
let obj = {
errorHintsByQuestId: new Map(),
setErrorHints(questId, arg1) {
closure_0 = questId;
closure_0((errorHintsByQuestId) => {
if (0 === length.length) {
errorHintsByQuestId = errorHintsByQuestId.errorHintsByQuestId;
if (!errorHintsByQuestId.has(closure_0)) {
return errorHintsByQuestId;
}
}
const errorHintsByQuestId1 = new Map(errorHintsByQuestId.errorHintsByQuestId);
if (0 === length.length) {
errorHintsByQuestId1.delete(closure_0);
} else {
const items = [];
HermesBuiltin.arraySpread(arr, 0);
const result = errorHintsByQuestId1.set(closure_0, items);
}
return { errorHintsByQuestId: errorHintsByQuestId1 };
});
},
getErrorHints(arg0) {
const errorHintsByQuestId = closure_1().errorHintsByQuestId;
value = errorHintsByQuestId.get(arg0);
if (value == null) {
value = closure_0;
}
return value;
},
clearErrorHints(arg0) {
closure_0 = arg0;
closure_0((errorHintsByQuestId) => {
errorHintsByQuestId = errorHintsByQuestId.errorHintsByQuestId;
if (errorHintsByQuestId.has(closure_0)) {
const _Map = Map;
const map = new Map(errorHintsByQuestId.errorHintsByQuestId);
map.delete(tmp);
const obj = { errorHintsByQuestId: map };
return obj;
} else {
return errorHintsByQuestId;
}
tmp = closure_0;
});
},
clearErrorHintsByType(arg0, arg1) {
closure_0 = arg0;
closure_1 = arg1;
closure_0((errorHintsByQuestId) => {
errorHintsByQuestId = errorHintsByQuestId.errorHintsByQuestId;
value = errorHintsByQuestId.get(closure_0);
if (null == value) {
return errorHintsByQuestId;
} else {
const found = value.filter((type) => type.type !== closure_1_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: map };
return obj;
}
}
});
},
reset() {
const obj = { errorHintsByQuestId: new Map() };
closure_0(obj);
}
};
return obj;
});
let result = size.fileFinishedImporting("modules/quests/ConsoleQuestUIStore.tsx");
export default obj;
export const useConsoleQuestUIStore = obj;