/* Metro module 11662; source: modules/app_launcher/AppLauncherLastUsedCommandStore.tsx; dependencies: [6, 7, 15, 17, 18, 672, 566, 694, 2] */ function _fun89399(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11848:6, offset: 0x0200c8b0, size: 324 bytes, params: 8, frame: 18 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_0 = importDefault(6) /* metro dependency 6 */; const env0_1 = importDefault(7) /* metro dependency 7 */; const env0_2 = importDefault(15) /* metro dependency 15 */; const env0_3 = importDefault(17) /* metro dependency 17 */; const env0_4 = importDefault(18) /* metro dependency 18 */; const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis; const MINUTE = Millis.MINUTE; const env0_5 = 10 * MINUTE; const env0_6 = {'lastUsedCommandId': null, 'lastUsedTimeMs': null}; const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore; let value = _fun89403(PersistedStore); value.displayName = 'AppLauncherLastUsedCommandStore'; value.persistKey = 'AppLauncherLastUsedCommandStore'; value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {APPLICATION_COMMAND_USED: APPLICATION_COMMAND_USED_89408}); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/AppLauncherLastUsedCommandStore.tsx'); exports.default = value; } function _isNativeReflectConstruct_89400() { // fn#89400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11848:148, offset: 0x0200c9f4, size: 98 bytes, params: 1, frame: 18 var Boolean; var prototype; var valueOf; var call; var Reflect; var construct; var closure; var value; var error; try { Boolean = global.Boolean; prototype = Boolean.prototype; valueOf = prototype.valueOf; call = valueOf.call; Reflect = global.Reflect; construct = Reflect.construct; Boolean = global.Boolean; closure = function() { }; value = Reflect.apply(construct, Reflect, [Boolean, [], closure]); value = Reflect.apply(call, valueOf, [value]); var result = !value; } catch (error) { } return (_isNativeReflectConstruct_89400_isNativeReflectConstruct = function() { return !!result; })(); } function _fun89403(a0) { // fn#89403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11848:425, offset: 0x0200ca56, size: 124 bytes, params: 2, frame: 16 const closure = AppLauncherLastUsedCommandStore; env0_4(closure, a0); return env0_1(closure, [{key: 'initialize', value: value_89405}, {key: 'getState', value: value_89406}, {key: 'getLastUsedCommandId', value: value_89407}]); } function APPLICATION_COMMAND_USED_89408({command}) { // fn#89408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11848:1340, offset: 0x0200cb6c, size: 54 bytes, params: 2, frame: 10 const binding = env0_6; binding.lastUsedCommandId = command.id; const Date = global.Date; binding.lastUsedTimeMs = Date.now(); } function value_89405(a0) { // fn#89405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11848:810, offset: 0x0200cad2, size: 44 bytes, params: 2, frame: 3 var value; var binding; if (a0 != null) { value = environment.__proto__; binding = env1_6; binding.lastUsedCommandId = a0.lastUsedCommandId; binding.lastUsedTimeMs = a0.lastUsedTimeMs; } } function value_89407() { // fn#89407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11848:987, offset: 0x0200cafe, size: 110 bytes, params: 1, frame: 13 var lastUsedCommandId; var binding; const Date = global.Date; const value = Date.now(); const lastUsedTimeMs = env1_6.lastUsedTimeMs; const value3 = null; if (value3 == lastUsedTimeMs) { lastUsedCommandId = value3; } else { lastUsedCommandId = env1_6.lastUsedCommandId; if (value3 == lastUsedCommandId) { lastUsedCommandId = value3; } else { if (value > env1_6.lastUsedTimeMs + env1_5) { binding = env1_6; binding.lastUsedCommandId = value3; binding.lastUsedTimeMs = value3; } lastUsedCommandId = env1_6.lastUsedCommandId; } } return lastUsedCommandId; }