108 lines
5.9 KiB
TypeScript
108 lines
5.9 KiB
TypeScript
/* Metro module 10815; source: stores/native/MobileVoiceOverlayStore.tsx; dependencies: [6, 7, 15, 17, 18, 661, 683, 477, 1581, 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 PlatformUtilsModule from '../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun82988(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11001:6, offset: 0x01f091c6, size: 330 bytes, params: 8, frame: 20
|
|
const env0_0 = require;
|
|
const isMobileOverlaySupported2 = isMobileOverlaySupported;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const DeviceSettingsStore = (Flux).DeviceSettingsStore;
|
|
let value = _fun82993(DeviceSettingsStore);
|
|
value.displayName = 'MobileVoiceOverlayStore';
|
|
value.persistKey = 'MobileVoiceOverlayStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
|
{MOBILE_VOICE_OVERLAY_STATE_CHANGED: function(a0) {
|
|
var defaultImport = importDefault(dependencyMap[6]);
|
|
var MOBILE_OVERLAY_TOGGLED = AnalyticEvents.MOBILE_OVERLAY_TOGGLED;
|
|
defaultImport.track(MOBILE_OVERLAY_TOGGLED, {enabled: a0.enabled});
|
|
env0_9 = a0.enabled;
|
|
}});
|
|
(FileImportTrackerModule).fileFinishedImporting('stores/native/MobileVoiceOverlayStore.tsx');
|
|
exports.default = value;
|
|
exports.isMobileOverlaySupported = isMobileOverlaySupported2;
|
|
function _isNativeReflectConstruct_82989() { // fn#82989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11001:173, offset: 0x01f09310, 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_82989_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function isMobileOverlaySupported() { // fn#82992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11001:375, offset: 0x01f09372, size: 73 bytes, params: 1, frame: 13
|
|
var r0;
|
|
var value;
|
|
const isAndroid2 = (PlatformUtilsModule).isAndroid();
|
|
if (isAndroid2) {
|
|
value = require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */;
|
|
value = !value.isMetaQuest();
|
|
r0 = value;
|
|
} else {
|
|
r0 = isAndroid2;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun82993(a0) { // fn#82993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11001:468, offset: 0x01f093bb, size: 122 bytes, params: 2, frame: 16
|
|
const MobileVoiceOverlayStore2 = MobileVoiceOverlayStore;
|
|
Inherits(MobileVoiceOverlayStore2, a0);
|
|
return CreateClass(MobileVoiceOverlayStore2, [{key: 'getUserAgnosticState', value: value_82995}, {key: 'initialize',
|
|
value: function(a0) {
|
|
var r1;
|
|
var value = undefined;
|
|
r1 = a0 == null ? value : a0.enabled;
|
|
env1_9 = r1 != null && r1;
|
|
return value;
|
|
}}, {key: 'getEnabled', value: value_82997}]);
|
|
function MobileVoiceOverlayStore() { // fn#82994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11001:480, offset: 0x00e079f0, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_3(this, MobileVoiceOverlayStore);
|
|
const value3 = env1_6(MobileVoiceOverlayStore);
|
|
return env1_5(this, _isNativeReflectConstruct_82989() ? global.Reflect.construct(value3, arguments,
|
|
env1_6(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function value_82995() { // fn#82995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11001:823, offset: 0x01f09435, size: 15 bytes, params: 1, frame: 2
|
|
return {enabled: env1_9};
|
|
}
|
|
|
|
function value_82997() { // fn#82997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11001:962, offset: 0x01f0946c, size: 22 bytes, params: 1, frame: 10
|
|
return isMobileOverlaySupported() && env1_9;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun82988, 10815, [6, 7, 15, 17, 18, 661, 683, 477, 1581, 566, 694,
|
|
2]) /* metro module 10815, dependencies: [6, 7, 15, 17, 18, 661, 683, 477, 1581, 566, 694, 2] */;
|