// Metro module 5986 (f5987). import { create } from "../../_bundle/Module644"; let c3781_0 = []; const r16 = create((c15346_0, c15346_1) => ({ errorHintsByQuestId: new Map(), setErrorHints: (c25663_0, c25663_1) => { c15346_0((a0) => { if (c25663_1.length === 0 && !a0.errorHintsByQuestId.has(c25663_0)) { return a0; } const map = new Map(a0.errorHintsByQuestId); if (c25663_1.length === 0) { map.delete(c25663_0); } else { map.set(c25663_0, [...c25663_1]); } return { errorHintsByQuestId: map }; }); }, getErrorHints: (a0) => { let r7 = c15346_1().errorHintsByQuestId.get(a0); if (r7 == null) { r7 = c3781_0; } return r7; }, clearErrorHints: (c25664_0) => { c15346_0((a0) => { const errorHintsByQuestId = a0.errorHintsByQuestId; if (errorHintsByQuestId.has(c25664_0)) { const map = new Map(a0.errorHintsByQuestId); map.delete(c25664_0); return { errorHintsByQuestId: map }; } return a0; }); }, clearErrorHintsByType: (c25665_0, c25665_1) => { c15346_0((a0) => { const errorHintsByQuestId = a0.errorHintsByQuestId; const r11 = errorHintsByQuestId.get(c25665_0); if (r11 == null) { return a0; } const r14 = r11.filter((item) => item.type !== c25665_1); if (r14.length === r11.length) { return a0; } const map = new Map(a0.errorHintsByQuestId); if (r14.length === 0) { map.delete(c25665_0); } else { map.set(c25665_0, r14); } return { errorHintsByQuestId: map }; }); }, reset: () => { c15346_0({ errorHintsByQuestId: new Map() }); } })); export default r16; export { r16 as useConsoleQuestUIStore };