Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,66 @@
|
||||
/* Metro module 12116; source: modules/voice_calls/native/components/OngoingCallStatusLabel.tsx; dependencies: [31, 1226, 4258, 4297, 33, 566, 1244, 12115, 1305, 2] */
|
||||
function _fun93013(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12302:6, offset: 0x020a2ee0, size: 182 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const callStore = importDefault(4258) /* metro dependency 4258: CallStore */;
|
||||
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_calls/native/components/OngoingCallStatusLabel.tsx');
|
||||
exports.default = _default_93014;
|
||||
}
|
||||
|
||||
function _default_93014({style, channel, voiceState, useAllAloneText}) { // fn#93014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12302:157, offset: 0x020a2f96, size: 100 bytes, params: 2, frame: 17
|
||||
useAllAloneText = useAllAloneText === undefined || useAllAloneText;
|
||||
const value = _fun93015(channel, voiceState, useAllAloneText);
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
return (
|
||||
<LegacyText style={style}>
|
||||
{value}
|
||||
</LegacyText>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun93015(a0, a1) { // fn#93015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12302:222, offset: 0x020a2ffa, size: 538 bytes, params: 3, frame: 23
|
||||
var environment;
|
||||
var r0;
|
||||
let value = a2;
|
||||
const env0_0 = a0;
|
||||
let r1 = !(value !== undefined) || value;
|
||||
value = environment.__proto__;
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([VoiceStateStore, CallStore],
|
||||
_fun93016, [AuthenticationStore.getId(), a0]);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const value4 = Reflect.apply(string, intl, [t['1zFMqU']]);
|
||||
const CallStates = (require(12115) /* metro dependency 12115: CallStateHooks */).CallStates;
|
||||
const DISCONNECTING = CallStates.DISCONNECTING;
|
||||
if (DISCONNECTING === a1) {
|
||||
r1 = value3 && r1 ? intl.string(t.xNeSms) : intl.string(t['NGg/fm']);
|
||||
r0 = r1;
|
||||
} else if (CallStates.CONNECTED === a1) {
|
||||
r1 = value3 && r1 ? intl.string(t.xNeSms) : intl.string(t['NGg/fm']);
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = CallStates.RINGING === a1 ? intl.string(t.Xuzre8) : CallStates.DISCONNECTED !== a1 ? value4 : intl.string(t['w//7ET']);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun93016() { // fn#93016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12302:287, offset: 0x020a3214, size: 151 bytes, params: 1, frame: 17
|
||||
if (env0_0 == null) {
|
||||
return false;
|
||||
}
|
||||
const Object = global.Object;
|
||||
const values = Object.values;
|
||||
const getVoiceStatesForChannel = VoiceStateStore.getVoiceStatesForChannel;
|
||||
const binding = env0_0;
|
||||
const value3 = Reflect.apply(values, Object, [Reflect.apply(getVoiceStatesForChannel, VoiceStateStore,
|
||||
[binding.id])]);
|
||||
const call = CallStore.getCall(binding.id);
|
||||
return !(call != null && call.ringing.length > 0) && value3.length === 1 && value3[0].userId === env0_1;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Metro module 12117; source: modules/voice_calls/native/components/OngoingCallTimer.tsx; dependencies: [31, 4258, 33, 566, 21, 12118, 2] */
|
||||
function _fun93017(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12303:6, offset: 0x020a32ab, size: 154 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const callStore = importDefault(4258) /* metro dependency 4258: CallStore */;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_calls/native/components/OngoingCallTimer.tsx');
|
||||
exports.default = _default_93018;
|
||||
}
|
||||
|
||||
function _default_93018({style, channelId}) { // fn#93018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12303:137, offset: 0x020a3345, size: 168 bytes, params: 2, frame: 19
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([CallStore], _fun93019,
|
||||
[channelId]);
|
||||
return ((Component) => <Component style={style} timestamp={value2 != null ? (importDefault(21) /* metro dependency 21: SnowflakeUtils */).extractTimestamp(value2) : 0} />)(importDefault(12118) /* metro dependency 12118: Timer */);
|
||||
}
|
||||
|
||||
function _fun93019() { // fn#93019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12303:201, offset: 0x020a33ed, size: 43 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return CallStore.getCall(channelId)?.messageId;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,285 @@
|
||||
/* Metro module 12118; source: modules/voice_calls/native/components/Timer.tsx; dependencies: [6, 7, 15, 17, 18, 31, 33, 22, 1305, 2] */
|
||||
function _fun93020(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12304:6, offset: 0x020a3418, size: 260 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_8 = (require(33) /* metro dependency 33 */).jsxs;
|
||||
const PureComponent = value.PureComponent;
|
||||
value = _fun93024(PureComponent);
|
||||
value.defaultProps = {'hideMinutes': false, 'hideHours': false};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_calls/native/components/Timer.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_93021() { // fn#93021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12304:173, offset: 0x020a351c, 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_93021_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun93024(a0) { // fn#93024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12304:372, offset: 0x020a357e, size: 122 bytes, params: 2, frame: 16
|
||||
const closure = Timer;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'componentDidMount', value: function() {
|
||||
var countdown = this.props.countdown;
|
||||
var setInterval = global.setInterval;
|
||||
if (countdown) {
|
||||
this._timerId = setInterval(this._decrementSecond, 1000);
|
||||
} else {
|
||||
this._timerId = setInterval(this._incrementSecond, 1000);
|
||||
}
|
||||
}}, {key: 'componentWillUnmount', value: function() {
|
||||
global.clearInterval(this._timerId);
|
||||
this._timerId = null;
|
||||
}}, {key: 'render', value: value_93030}]);
|
||||
}
|
||||
|
||||
function Timer(a0) { // fn#93025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12304:384, offset: 0x020a35f8, size: 400 bytes, params: 2, frame: 22
|
||||
var environment;
|
||||
var r3;
|
||||
var r6;
|
||||
var r7;
|
||||
var Math;
|
||||
var max;
|
||||
var Date;
|
||||
var value5;
|
||||
var floor;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
let value = environment.__proto__;
|
||||
env1_3(this, Timer);
|
||||
const items = [a0];
|
||||
const value3 = env1_6(Timer);
|
||||
value = env1_5(this, _isNativeReflectConstruct_93021() ? global.Reflect.construct(value3, items,
|
||||
env1_6(this).constructor) : value3.apply(this, items));
|
||||
value._incrementSecond = _incrementSecond;
|
||||
value._decrementSecond = _decrementSecond;
|
||||
const seconds = a0.seconds;
|
||||
const minutes = a0.minutes;
|
||||
const hours = a0.hours;
|
||||
const timestamp = a0.timestamp;
|
||||
if (timestamp == null) {
|
||||
r3 = hours;
|
||||
r6 = minutes;
|
||||
r7 = seconds;
|
||||
} else if (timestamp > 0) {
|
||||
Math = global.Math;
|
||||
max = Math.max;
|
||||
Date = global.Date;
|
||||
value5 = Reflect.apply(max, Math, [0, Date.now() - timestamp]) / 1000;
|
||||
Math = global.Math;
|
||||
floor = Math.floor;
|
||||
value6 = value5 % 86400;
|
||||
value7 = Reflect.apply(floor, Math, [value6 / 3600]);
|
||||
Math = global.Math;
|
||||
floor = Math.floor;
|
||||
value8 = value6 % 3600;
|
||||
value9 = Reflect.apply(floor, Math, [value8 / 60]);
|
||||
Math = global.Math;
|
||||
value10 = Math.floor(value8 % 60);
|
||||
r3 = value7;
|
||||
r6 = value9;
|
||||
r7 = value10;
|
||||
} else {
|
||||
r3 = hours;
|
||||
r6 = minutes;
|
||||
r7 = seconds;
|
||||
}
|
||||
const value11 = 0;
|
||||
value.state = {seconds: r7 ?? value11, minutes: r6 ?? value11, hours: r3 ?? value11};
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_93030() { // fn#93030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12304:1564, offset: 0x020a3935, size: 404 bytes, params: 1, frame: 21
|
||||
var r7;
|
||||
var r6;
|
||||
var r5;
|
||||
var value;
|
||||
const {style, hideHours, hideMinutes} = this.props;
|
||||
const {seconds, minutes, hours} = this.state;
|
||||
if (hideHours) {
|
||||
value = '';
|
||||
if (hours === 0) {
|
||||
r7 = value;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value = value.padStart(global.String(hours), 2, '0');
|
||||
value = '' + value + ':';
|
||||
r7 = value;
|
||||
}
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value = value.padStart(global.String(hours), 2, '0');
|
||||
value = '' + value + ':';
|
||||
r7 = value;
|
||||
}
|
||||
if (hideMinutes) {
|
||||
value = '';
|
||||
if (minutes === 0) {
|
||||
r6 = value;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value = value.padStart(global.String(minutes), 2, '0');
|
||||
value = '' + value + ':';
|
||||
r6 = value;
|
||||
}
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value = value.padStart(global.String(minutes), 2, '0');
|
||||
value = '' + value + ':';
|
||||
r6 = value;
|
||||
}
|
||||
if (r7.length > 0) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value = value.padStart(global.String(seconds), 2, '0');
|
||||
r5 = value;
|
||||
} else if (r6.length > 0) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value = value.padStart(global.String(seconds), 2, '0');
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = seconds;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
return (
|
||||
<LegacyText style={style} accessibilityRole="timer">
|
||||
{r7}
|
||||
{r6}
|
||||
{r5}
|
||||
</LegacyText>
|
||||
);
|
||||
}
|
||||
|
||||
function _incrementSecond() { // fn#93026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12304:591, owner: Timer._incrementSecond, offset: 0x020a3788, size: 111 bytes, params: 1, frame: 17
|
||||
var r1;
|
||||
var r2;
|
||||
var r3;
|
||||
var r4;
|
||||
var r5;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
const {seconds, minutes, hours} = env0_0.state;
|
||||
const value2 = seconds + 1;
|
||||
if (value2 >= 60) {
|
||||
value3 = minutes + 1;
|
||||
if (value3 >= 60) {
|
||||
value4 = hours + 1;
|
||||
value5 = 0;
|
||||
r1 = value4;
|
||||
r2 = value5;
|
||||
} else {
|
||||
r1 = hours;
|
||||
r2 = value3;
|
||||
}
|
||||
value6 = 0;
|
||||
r3 = r1;
|
||||
r4 = r2;
|
||||
r5 = value6;
|
||||
} else {
|
||||
r3 = hours;
|
||||
r4 = minutes;
|
||||
r5 = value2;
|
||||
}
|
||||
const binding = env0_0;
|
||||
binding.setState({seconds: r5, minutes: r4, hours: r3});
|
||||
}
|
||||
|
||||
function _decrementSecond() { // fn#93027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12304:747, owner: Timer._decrementSecond, offset: 0x020a37f7, size: 201 bytes, params: 1, frame: 20
|
||||
var r1;
|
||||
var r2;
|
||||
var r3;
|
||||
var r4;
|
||||
var r5;
|
||||
var r6;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var binding;
|
||||
var clearInterval;
|
||||
var onComplete;
|
||||
const {seconds, minutes, hours} = env0_0.state;
|
||||
const value2 = seconds - 1;
|
||||
if (value2 < 1) {
|
||||
if (minutes >= 1) {
|
||||
value7 = minutes - 1;
|
||||
value8 = 59;
|
||||
r1 = hours;
|
||||
r2 = value7;
|
||||
r3 = value8;
|
||||
} else if (minutes < 1 && hours >= 1) {
|
||||
value5 = hours - 1;
|
||||
value6 = 59;
|
||||
r1 = value5;
|
||||
r2 = value6;
|
||||
r3 = value6;
|
||||
} else {
|
||||
r1 = hours;
|
||||
r2 = minutes;
|
||||
r3 = value2;
|
||||
}
|
||||
r4 = r1;
|
||||
r5 = r2;
|
||||
r6 = r3;
|
||||
} else {
|
||||
r4 = hours;
|
||||
r5 = minutes;
|
||||
r6 = value2;
|
||||
}
|
||||
if (r6 <= 0) {
|
||||
clearInterval = global.clearInterval;
|
||||
binding = env0_0;
|
||||
clearInterval(binding._timerId);
|
||||
binding._timerId = null;
|
||||
onComplete = binding.props.onComplete;
|
||||
if (onComplete != null) {
|
||||
onComplete();
|
||||
}
|
||||
} else {
|
||||
binding = env0_0;
|
||||
binding.setState({seconds: r6, minutes: r5, hours: r4});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user