125 lines
6.8 KiB
TypeScript
125 lines
6.8 KiB
TypeScript
/* Metro module 7112; source: stores/DeveloperExperimentStore.tsx; dependencies: [6, 7, 15, 17, 18, 1867, 1878, 4108, 1884, 1883, 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 GuildStore from './GuildStore.tsx'; /* Metro dependency 1867 */
|
|
import UserStore from './UserStore.tsx'; /* Metro dependency 1878 */
|
|
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as UserStoreConstantsModule from '../modules/user/UserStoreConstants.tsx'; /* Metro dependency 1884 */
|
|
import * as ExperimentConstantsModule from '../modules/experiments/ExperimentConstants.tsx'; /* Metro dependency 4108 */
|
|
|
|
function _fun56841(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7290:6, offset: 0x013d37d5, size: 402 bytes, params: 8, frame: 21
|
|
const env0_0 = require;
|
|
const closure = function() {
|
|
env0_10 = require(dependencyMap[9]).isStaffEnv(UserStore.getCurrentUser());
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const Environments = (UserStoreConstantsModule).Environments;
|
|
const DEVELOPMENT = Environments.DEVELOPMENT;
|
|
let env0_10 = DEVELOPMENT === 'production' || global.window.GLOBAL_ENV.RELEASE_CHANNEL === Environments.STAGING;
|
|
const Store = (Flux).Store;
|
|
_fun56846(Store).displayName = 'DeveloperExperimentStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: closure,
|
|
OVERLAY_INITIALIZE: closure, CURRENT_USER_UPDATE: closure});
|
|
(FileImportTrackerModule).fileFinishedImporting('stores/DeveloperExperimentStore.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_56842() { // fn#56842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7290:219, offset: 0x013d3967, size: 94 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_56842_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun56846(a0) { // fn#56846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7290:557, offset: 0x013d39fc, size: 93 bytes, params: 2, frame: 16
|
|
const DeveloperExperimentStore2 = DeveloperExperimentStore;
|
|
Inherits(DeveloperExperimentStore2, a0);
|
|
return CreateClass(DeveloperExperimentStore2, [{key: 'initialize', value: function() {
|
|
var env0_0 = this;
|
|
this.waitFor(UserStore, GuildStore);
|
|
global.Object.defineProperties(this, {isDeveloper: {configurable: false, get: _fun56849, set: _fun56850}});
|
|
CONNECTION_OPEN_56845();
|
|
global.setTimeout(_fun56851);
|
|
}}, {key: 'getExperimentDescriptor', value: value_56852}]);
|
|
function DeveloperExperimentStore(a0) { // fn#56847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7290:569, offset: 0x013d3a59, size: 134 bytes, params: 2, frame: 19
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_2;
|
|
binding(this, DeveloperExperimentStore);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_5(DeveloperExperimentStore);
|
|
binding = env1_4;
|
|
if (_isNativeReflectConstruct_56842()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items2, env1_5(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items2);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
value.isDeveloper = false;
|
|
return value;
|
|
}
|
|
|
|
function value_56848() { // fn#56848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7290:935, offset: 0x013d3adf, size: 114 bytes, params: 1, frame: 18
|
|
this.waitFor(UserStore, GuildStore);
|
|
const Object = global.Object;
|
|
Object.defineProperties(this, {isDeveloper: {configurable: false, get: get_56849, set: function() {
|
|
}}});
|
|
CONNECTION_OPEN_56845();
|
|
global.setTimeout(_fun56851);
|
|
function value_56848Get() { // fn#56849, owner: value_56848.get, offset: 0x00e311cf, size: 9 bytes, params: 1, frame: 1
|
|
return env2_10;
|
|
}
|
|
|
|
function _fun56851() { // fn#56851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7290:1066, offset: 0x013d3b51, size: 28 bytes, params: 1, frame: 11
|
|
const Object = global.Object;
|
|
return Object.freeze(env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function value_56852() { // fn#56852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7290:1131, offset: 0x013d3b6d, size: 46 bytes, params: 1, frame: 3
|
|
return env1_10 ? {'type': 'developer', 'name': 'discord_dev_testing', 'revision': 1, 'override': true,
|
|
bucket: ExperimentBuckets.TREATMENT_1} : null;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function value_56848Set() { // fn#56850, owner: value_56848.set, offset: 0x00c37b63, size: 4 bytes, params: 1, frame: 1
|
|
}
|
|
|
|
global.__d(_fun56841, 7112, [6, 7, 15, 17, 18, 1867, 1878, 4108, 1884, 1883, 566, 694,
|
|
2]) /* metro module 7112, dependencies: [6, 7, 15, 17, 18, 1867, 1878, 4108, 1884, 1883, 566, 694, 2] */;
|