92 lines
4.1 KiB
TypeScript
92 lines
4.1 KiB
TypeScript
/* Metro module 4298; source: records/VoiceStateRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 2] */
|
|
function _fun36582(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#36582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4470:6, offset: 0x0108ecae, size: 194 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
|
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
|
value = _fun36586(value);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/VoiceStateRecord.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_36583() { // fn#36583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4470:148, offset: 0x0108ed70, 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_36583_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun36586(a0) { // fn#36586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4470:347, offset: 0x0108edce, size: 91 bytes, params: 2, frame: 16
|
|
const closure = VoiceStateRecord;
|
|
env0_4(closure, a0);
|
|
return env0_1(closure, [{key: 'isVoiceMuted', value: function() {
|
|
var r0;
|
|
r0 = this.selfMute || this.mute;
|
|
r0 = !r0 ? this.suppress : r0;
|
|
r0 = !r0 ? this.requestToSpeakTimestamp != null : r0;
|
|
return r0;
|
|
}}, {key: 'isVoiceDeafened', value: function() {
|
|
return this.selfDeaf || this.deaf;
|
|
}}]);
|
|
}
|
|
|
|
function VoiceStateRecord({userId, channelId, sessionId, mute, deaf, selfMute, selfDeaf, selfVideo, selfStream, suppress, requestToSpeakTimestamp, discoverable, connectedAt}) { // fn#36587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4470:359, offset: 0x0108ee29, size: 329 bytes, params: 2, frame: 20
|
|
let value = environment.__proto__;
|
|
env1_0(this, VoiceStateRecord);
|
|
const value3 = env1_3(VoiceStateRecord);
|
|
value = env1_2(this, _isNativeReflectConstruct_36583() ? global.Reflect.construct(value3, [],
|
|
env1_3(this).constructor) : value3.apply(this, undefined));
|
|
userId = !userId ? '' : userId;
|
|
value.userId = userId;
|
|
channelId = !channelId ? null : channelId;
|
|
value.channelId = channelId;
|
|
sessionId = !sessionId ? null : sessionId;
|
|
value.sessionId = sessionId;
|
|
mute = !!mute && mute;
|
|
value.mute = mute;
|
|
deaf = !!deaf && deaf;
|
|
value.deaf = deaf;
|
|
selfMute = !!selfMute && selfMute;
|
|
value.selfMute = selfMute;
|
|
selfDeaf = !!selfDeaf && selfDeaf;
|
|
value.selfDeaf = selfDeaf;
|
|
selfVideo = !!selfVideo && selfVideo;
|
|
value.selfVideo = selfVideo;
|
|
selfStream = !!selfStream && selfStream;
|
|
value.selfStream = selfStream;
|
|
suppress = !!suppress && suppress;
|
|
value.suppress = suppress;
|
|
value.requestToSpeakTimestamp = requestToSpeakTimestamp;
|
|
value.discoverable = discoverable == null || discoverable;
|
|
value.connectedAt = connectedAt;
|
|
return value;
|
|
}
|
|
|