/* Metro module 9582; source: modules/labs/LabFeatureStore.tsx; dependencies: [6, 7, 15, 17, 18, 9583, 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 */ function _fun75058(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9768:6, offset: 0x01da16cc, size: 287 bytes, params: 8, frame: 18 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_7 = {}; const DeviceSettingsStore = (Flux).DeviceSettingsStore; let value = _fun75062(DeviceSettingsStore); value.displayName = 'LabFeatureStore'; value.persistKey = 'LabFeatureStore'; value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {LAB_FEATURE_TOGGLE: LAB_FEATURE_TOGGLE}); (FileImportTrackerModule).fileFinishedImporting('modules/labs/LabFeatureStore.tsx'); exports.default = value; function _isNativeReflectConstruct_75059() { // fn#75059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9768:148, offset: 0x01da17eb, 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_75059_isNativeReflectConstruct = function() { return !!result; })(); } function _fun75062(a0) { // fn#75062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9768:356, offset: 0x01da184d, size: 147 bytes, params: 2, frame: 16 const LabFeatureStore2 = LabFeatureStore; Inherits(LabFeatureStore2, a0); return CreateClass(LabFeatureStore2, [{key: 'getUserAgnosticState', value: value_75064}, {key: 'initialize', value: value_75065}, {key: 'get', value: value_75066}, {key: 'set', value: value_75067}]); function LabFeatureStore() { // fn#75063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9768:368, offset: 0x00c6223c, size: 113 bytes, params: 1, frame: 20 const value = environment.__proto__; env1_2(this, LabFeatureStore); const value3 = env1_5(LabFeatureStore); return env1_4(this, _isNativeReflectConstruct_75059() ? global.Reflect.construct(value3, arguments, env1_5(this).constructor) : value3.apply(this, arguments)); } function value_75064() { // fn#75064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9768:671, offset: 0x01da18e0, size: 16 bytes, params: 1, frame: 2 return {toggleStates: env1_7}; } function value_75065(a0) { // fn#75065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9768:731, offset: 0x01da18f0, size: 108 bytes, params: 2, frame: 23 var r13; var r10; var propertyName; var binding; var toggleStates; var property; var value3; const value2 = undefined; for (propertyName in importDefault(9583) /* metro dependency 9583: LabFeatures */) { binding = env1_7; if (a0 == null) { r13 = value2; continue; } toggleStates = a0.toggleStates; if (toggleStates == null) { r13 = value2; continue; } property = toggleStates[propertyName]; r13 = property; value3 = r13 != null; if (value3) { r10 = r13; continue; } r10 = value3; continue; binding[propertyName] = r10; } return value2; } function value_75066(a0) { // fn#75066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9768:857, offset: 0x01da195c, size: 28 bytes, params: 2, frame: 3 const value = environment.__proto__; const property = env1_7[a0]; return property != null && property; } function value_75067(a0, a1) { // fn#75067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9768:919, offset: 0x01da1978, size: 19 bytes, params: 3, frame: 3 env1_7[a0] = a1; return a1; } } function LAB_FEATURE_TOGGLE({labFeature, enabled}) { // fn#75068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9768:1086, offset: 0x01da198b, size: 29 bytes, params: 2, frame: 3 env0_7[labFeature] = enabled; } } global.__d(_fun75058, 9582, [6, 7, 15, 17, 18, 9583, 566, 694, 2]) /* metro module 9582, dependencies: [6, 7, 15, 17, 18, 9583, 566, 694, 2] */;