111 lines
4.8 KiB
TypeScript
111 lines
4.8 KiB
TypeScript
/* Metro module 9582; source: modules/labs/LabFeatureStore.tsx; dependencies: [6, 7, 15, 17, 18, 9583, 566, 694, 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_2 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
|
const env0_7 = {};
|
|
const DeviceSettingsStore = (importDefault(566) /* metro dependency 566: 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});
|
|
(require(2) /* metro dependency 2 */).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 closure = LabFeatureStore;
|
|
env0_6(closure, a0);
|
|
return env0_3(closure, [{key: 'getUserAgnosticState', value: value_75064}, {key: 'initialize', value: value_75065},
|
|
{key: 'get', value: value_75066}, {key: 'set', value: value_75067}]);
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|