/* Metro module 10757; source: modules/soundpacks/SoundpackStore.tsx; dependencies: [6, 7, 15, 17, 18, 10758, 566, 694, 2] */ import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */ import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */ import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */ import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */ import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ConstantsModule from './Constants.tsx'; /* Metro dependency 10758 */ function _fun82745(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10943:6, offset: 0x01f007a8, size: 319 bytes, params: 8, frame: 19 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const Soundpacks = (ConstantsModule).Soundpacks; object = {}; const CLASSIC = Soundpacks.CLASSIC; object.soundpack = CLASSIC; object.lastSoundpackExperimentId = null; const PersistedStore = (Flux).PersistedStore; let value = _fun82749(PersistedStore); value.displayName = 'SoundpackStore'; value.persistKey = 'SoundpackStore'; value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {SET_SOUNDPACK: SET_SOUNDPACK}); (FileImportTrackerModule).fileFinishedImporting('modules/soundpacks/SoundpackStore.tsx'); exports.default = value; function _isNativeReflectConstruct_82746() { // fn#82746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10943:169, offset: 0x01f008e7, 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_82746_isNativeReflectConstruct = function() { return !!result; })(); } function _fun82749(a0) { // fn#82749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10943:427, offset: 0x01f00949, size: 149 bytes, params: 2, frame: 16 const SoundpackStore2 = SoundpackStore; Inherits(SoundpackStore2, a0); return CreateClass(SoundpackStore2, [{key: 'initialize', value: value_82751}, {key: 'getState', value: value_82752}, {key: 'getSoundpack', value: value_82753}, {key: 'getLastSoundpackExperimentId', value: value_82754}]); function SoundpackStore() { // fn#82750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10943:439, offset: 0x00e3db8d, size: 113 bytes, params: 1, frame: 20 const value = environment.__proto__; env1_0(this, SoundpackStore); const value3 = env1_3(SoundpackStore); return env1_2(this, _isNativeReflectConstruct_82746() ? global.Reflect.construct(value3, arguments, env1_3(this).constructor) : value3.apply(this, arguments)); } function value_82751(a0) { // fn#82751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10943:727, offset: 0x01f009de, size: 85 bytes, params: 2, frame: 12 var value; var value2; if (a0 != null) { value = environment.__proto__; env1_6 = a0; value2 = global.Object.values(Soundpacks); if (!value2.includes(env1_6.soundpack)) { env1_6.soundpack = Soundpacks.CLASSIC; } } } function value_82752() { // fn#82752, offset: 0x00c82288, size: 9 bytes, params: 1, frame: 1 return env1_6; } function value_82753() { // fn#82753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10943:890, offset: 0x01f00a33, size: 15 bytes, params: 1, frame: 1 return env1_6.soundpack; } function value_82754() { // fn#82754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10943:964, offset: 0x01f00a42, size: 15 bytes, params: 1, frame: 1 return env1_6.lastSoundpackExperimentId; } } function SET_SOUNDPACK({soundpack, forExperimentId}) { // fn#82755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10943:1135, offset: 0x01f00a51, size: 55 bytes, params: 2, frame: 4 ({soundpack: soundpack}).lastSoundpackExperimentId = forExperimentId !== undefined ? forExperimentId : env0_6.lastSoundpackExperimentId; } } global.__d(_fun82745, 10757, [6, 7, 15, 17, 18, 10758, 566, 694, 2]) /* metro module 10757, dependencies: [6, 7, 15, 17, 18, 10758, 566, 694, 2] */;