/* Metro module 7094; source: modules/quests/ConsoleQuestUIStore.tsx; dependencies: [629, 2] */ function _fun56707(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:6, offset: 0x013cf492, size: 121 bytes, params: 8, frame: 18 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let env0_0 = []; let value = require(629) /* metro dependency 629 */; value = value.create(function(a0, a1) { var env0_0 = a0; var env0_1 = a1; var Map = global.Map; return {errorHintsByQuestId: new Map(), setErrorHints: _fun56709, getErrorHints: _fun56711, clearErrorHints: _fun56712, clearErrorHintsByType: _fun56714, reset: _fun56717}; }); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/ConsoleQuestUIStore.tsx'); exports.default = value; exports.useConsoleQuestUIStore = value; } function _fun56708(a0, a1) { // fn#56708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:119, offset: 0x013cf50b, size: 109 bytes, params: 3, frame: 11 const env0_0 = a0; const env0_1 = a1; const Map = global.Map; return {errorHintsByQuestId: new Map(), setErrorHints: setErrorHints, getErrorHints: getErrorHints, clearErrorHints: function(a0) { a0(_fun56713); }, clearErrorHintsByType: clearErrorHintsByType, reset: reset_56717}; } function setErrorHints(a0, a1) { // fn#56709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:170, offset: 0x013cf578, size: 37 bytes, params: 3, frame: 11 const env0_0 = a0; const env0_1 = a1; env0_0(_fun56710); } function getErrorHints(a0) { // fn#56711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:368, offset: 0x013cf633, size: 47 bytes, params: 2, frame: 11 return require().errorHintsByQuestId.get(a0) ?? env1_0; } function clearErrorHints(a0) { // fn#56712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:447, offset: 0x013cf662, size: 30 bytes, params: 2, frame: 11 a0(_fun56713); } function clearErrorHintsByType(a0, a1) { // fn#56714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:606, offset: 0x013cf6d8, size: 37 bytes, params: 3, frame: 11 const env0_0 = a0; const env0_1 = a1; env0_0(_fun56715); } function reset_56717() { // fn#56717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:854, offset: 0x013cf7aa, size: 51 bytes, params: 1, frame: 12 const binding = env0_0; const Map = global.Map; binding({errorHintsByQuestId: new Map()}); } function _fun56710(a0) { // fn#56710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:181, offset: 0x013cf59d, size: 150 bytes, params: 2, frame: 17 var errorHintsByQuestId; var Map; var map; var set; var binding; var items; if (require.length !== 0) { Map = global.Map; errorHintsByQuestId = a0.errorHintsByQuestId; map = new Map(); if (require.length === 0) { map.delete(env0_0); } else { set = map.set; binding = env0_0; items = []; arraySpread(items, require, 0, 0); Reflect.apply(set, map, [binding, items]); } return {errorHintsByQuestId: map}; } if (Reflect.apply(a0.errorHintsByQuestId.has, errorHintsByQuestId, [env0_0])) { Map = global.Map; errorHintsByQuestId = a0.errorHintsByQuestId; map = new Map(); if (require.length === 0) { map.delete(env0_0); } else { set = map.set; binding = env0_0; items = []; arraySpread(items, require, 0, 0); Reflect.apply(set, map, [binding, items]); } return {errorHintsByQuestId: map}; } return a0; } function _fun56713(a0) { // fn#56713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:454, offset: 0x013cf680, size: 88 bytes, params: 2, frame: 13 var map; const errorHintsByQuestId = a0.errorHintsByQuestId; if (errorHintsByQuestId.has(env0_0)) { map = new global.Map(a0.errorHintsByQuestId); map.delete(env0_0); return {errorHintsByQuestId: map}; } return a0; } function _fun56715(a0) { // fn#56715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:617, offset: 0x013cf6fd, size: 152 bytes, params: 2, frame: 15 const value2 = a0.errorHintsByQuestId.get(env0_0); if (value2 == null) { return a0; } const value3 = value2.filter(function({type}) { return type !== require; }); if (value3.length === value2.length) { return a0; } const Map = global.Map; const map = new Map(a0.errorHintsByQuestId); if (value3.length === 0) { map.delete(env0_0); } else { map.set(env0_0, value3); } return {errorHintsByQuestId: map}; }