Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,351 @@
|
||||
/* Metro module 10864; source: components_native/calls/RTCDebugOverlay.tsx; dependencies: [31, 27, 1379, 1867, 4294, 10865, 4395, 1878, 4291, 33, 4501, 4000, 697, 1305, 566, 4805, 10867, 10866, 694, 6618, 4578, 1244, 2] */
|
||||
function _fun83197(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:6, offset: 0x01f10f6e, size: 700 bytes, params: 8, frame: 27
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const StyleSheet = value2.StyleSheet;
|
||||
const env0_5 = value2.View;
|
||||
const env0_6 = value2.ScrollView;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const rtcDebugStore = importDefault(10865) /* metro dependency 10865: RTCDebugStore */;
|
||||
const streamRTCConnectionStore = importDefault(4395) /* metro dependency 4395: StreamRTCConnectionStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const MediaEngineContextTypes = (require(4291) /* metro dependency 4291: Constants */).MediaEngineContextTypes;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_14 = value3.jsx;
|
||||
const env0_15 = value3.jsxs;
|
||||
const env0_16 = value3.Fragment;
|
||||
const asString_83212 = function(a0) {
|
||||
return String(a0);
|
||||
};
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, StyleSheet.absoluteFillObject, undefined);
|
||||
const colorUtilsModule = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
const hexWithOpacity = colorUtilsModule.hexWithOpacity;
|
||||
const BLACK = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLACK;
|
||||
object4['backgroundColor'] = Reflect.apply(hexWithOpacity, colorUtilsModule, [BLACK, 0.7]);
|
||||
object3.container = object4;
|
||||
object3.scroller = {'flex': 1, 'margin': 8};
|
||||
object3.indent = {marginLeft: 16};
|
||||
object3.row = {flexDirection: 'row'};
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
|
||||
object3.text = {color: WHITE, fontSize: 14};
|
||||
object3.buttonClose = {'flexGrow': 0, 'margin': 8};
|
||||
const env0_18 = Reflect.apply(createStyles, createStylesModule, [object3]);
|
||||
const env0_19 = value.memo(_fun83213);
|
||||
const env0_20 = value.memo(_fun83214);
|
||||
object3 = {};
|
||||
const DEFAULT = MediaEngineContextTypes.DEFAULT;
|
||||
object3[DEFAULT] = DefaultContextInfo;
|
||||
const STREAM = MediaEngineContextTypes.STREAM;
|
||||
object3[STREAM] = StreamContextInfo;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/calls/RTCDebugOverlay.tsx');
|
||||
exports.default = RTCDebugOverlay;
|
||||
}
|
||||
|
||||
function Text(a0) { // fn#83198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:636, offset: 0x01f1122a, size: 77 bytes, params: 2, frame: 15
|
||||
const styles = useStyles();
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
return <LegacyText {...a0} {...{['style']: styles.text}} />;
|
||||
}
|
||||
|
||||
function Section({title, children}) { // fn#83199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:714, offset: 0x01f11277, size: 122 bytes, params: 2, frame: 20
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<>
|
||||
<Text>
|
||||
{title}
|
||||
{':'}
|
||||
</Text>
|
||||
<View style={styles.indent}>
|
||||
{children}
|
||||
</View>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function ObjectKV({obj}) { // fn#83200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:848, offset: 0x01f112f1, size: 66 bytes, params: 2, frame: 12
|
||||
const env0_0 = useStyles();
|
||||
const Object = global.Object;
|
||||
return Object.entries(obj).map(_fun83201);
|
||||
}
|
||||
|
||||
function RTCDebugGeneral() { // fn#83202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:1485, offset: 0x01f1146b, size: 295 bytes, params: 1, frame: 24
|
||||
const {guildId,
|
||||
channelId} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([RTCConnectionStore],
|
||||
function() {
|
||||
var object = {};
|
||||
object.guildId = RTCConnectionStore.getGuildId();
|
||||
object.channelId = RTCConnectionStore.getChannelId();
|
||||
return object;
|
||||
}, []);
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
let useStateFromStores = fluxModule.useStateFromStores;
|
||||
const value3 = Reflect.apply(useStateFromStores, fluxModule, [[GuildStore], function() {
|
||||
return GuildStore.getGuild(guildId);
|
||||
}, [guildId]]);
|
||||
const moduleValue3 = fluxModule;
|
||||
useStateFromStores = moduleValue3.useStateFromStores;
|
||||
const value5 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(Reflect.apply(useStateFromStores,
|
||||
moduleValue3, [[ChannelStore], function() {
|
||||
return ChannelStore.getChannel(channelId);
|
||||
}, [channelId]]));
|
||||
const value = null;
|
||||
return (
|
||||
<Section title="general">
|
||||
<ObjectKV
|
||||
obj={{guild: {id: guildId, name: value != value3 ? value3.name : value}, channel: {id: channelId,
|
||||
name: value5}}}
|
||||
/>
|
||||
</Section>
|
||||
);
|
||||
}
|
||||
|
||||
function renderContextInfo(a0) { // fn#83206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:2579, offset: 0x01f115bd, size: 39 bytes, params: 2, frame: 14
|
||||
const property = env0_21[a0];
|
||||
const value2 = null;
|
||||
return value2 != property ? ((Component) => <Component />)(property) : value2;
|
||||
}
|
||||
|
||||
function RTCDebugContext({context}) { // fn#83207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:2648, offset: 0x01f115e4, size: 121 bytes, params: 2, frame: 16
|
||||
var r0;
|
||||
let value = (require(566) /* metro dependency 566: flux */).useStateFromStores([RTCDebugStore], function() {
|
||||
return RTCDebugStore.getAllStats(context);
|
||||
}, [context]);
|
||||
if (value == null) {
|
||||
r0 = null;
|
||||
} else if (value.length === 0) {
|
||||
r0 = null;
|
||||
} else {
|
||||
value = value.map(_fun83209);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun83213({data}) { // fn#83213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:1194, offset: 0x01f11805, size: 88 bytes, params: 2, frame: 17
|
||||
const type = data.type;
|
||||
let value = Object.create(null);
|
||||
value.type = 0;
|
||||
value = copyDataProperties({}, data, value, undefined);
|
||||
return (
|
||||
<Section title={type}>
|
||||
<ObjectKV obj={value} />
|
||||
</Section>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun83214({userId, data}) { // fn#83214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:1284, offset: 0x01f1185d, size: 199 bytes, params: 2, frame: 20
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getUser(userId);
|
||||
}, [userId]);
|
||||
const value3 = '' + userId;
|
||||
return (
|
||||
<Section title={value2 == null ? value3 : value3 + (' (' + value2.toString() + ')')}>
|
||||
{data.map(_fun83216)}
|
||||
</Section>
|
||||
);
|
||||
}
|
||||
|
||||
function DefaultContextInfo() { // fn#83217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:1929, offset: 0x01f11961, size: 86 bytes, params: 1, frame: 17
|
||||
return (
|
||||
<ObjectKV
|
||||
obj={(require(566) /* metro dependency 566: flux */).useStateFromStoresObject([RTCConnectionStore],
|
||||
_fun83218, [])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function StreamContextInfo() { // fn#83219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:2312, offset: 0x01f11a7b, size: 110 bytes, params: 1, frame: 18
|
||||
return (
|
||||
<ObjectKV
|
||||
obj={(require(566) /* metro dependency 566: flux */).useStateFromStoresObject([StreamRTCConnectionStore],
|
||||
_fun83220, [StreamRTCConnectionStore.getAllActiveStreamKeys()[0]])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function RTCDebugOverlay({onClose, style}) { // fn#83221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:3321, offset: 0x01f11b4c, size: 364 bytes, params: 2, frame: 26
|
||||
const styles = useStyles();
|
||||
env0_4.useEffect(_fun83222, []);
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
const items3 = [styles.container, style];
|
||||
const items2 = [<RTCDebugGeneral />];
|
||||
const Object = global.Object;
|
||||
const value3 = Object.values(MediaEngineContextTypes);
|
||||
items2[1] = value3.map(_fun83224);
|
||||
const scrollView = <ScrollView style={styles.scroller} indicatorStyle="white">{items2}</ScrollView>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<SafeAreaPaddingView
|
||||
top
|
||||
left
|
||||
right
|
||||
bottom
|
||||
style={items3}
|
||||
>
|
||||
{scrollView}
|
||||
<View style={styles.buttonClose}>
|
||||
<Button
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)}
|
||||
onPress={onClose}
|
||||
/>
|
||||
</View>
|
||||
</SafeAreaPaddingView>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun83201(a0) { // fn#83201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:915, offset: 0x01f11333, size: 312 bytes, params: 2, frame: 22
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var r9;
|
||||
var item3;
|
||||
var value3;
|
||||
var value4;
|
||||
var value7;
|
||||
var object;
|
||||
var items2;
|
||||
var value9;
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r4 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r0 = item2;
|
||||
r1 = value2;
|
||||
r2 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = item3;
|
||||
r1 = value3;
|
||||
r2 = value;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r1 = value3;
|
||||
r2 = item;
|
||||
}
|
||||
}
|
||||
if (!r1) {
|
||||
r0.return();
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(r2)) {
|
||||
value4 = r2.at(-1);
|
||||
r9 = typeof (value4 == null ? value : value4.value) !== 'number' ? r2 : r2.at(-1).value;
|
||||
} else {
|
||||
r9 = r2;
|
||||
}
|
||||
if (r9 == null) {
|
||||
value7 = environment.__proto__;
|
||||
var viewProps = {style: styles.row};
|
||||
items2 = [r4, ': '];
|
||||
items2[2] = asString_83212(r9);
|
||||
r0 = <View {...viewProps} key={r4}><Text>{items2}</Text></View>;
|
||||
} else if (typeof r9 === 'object') {
|
||||
value9 = environment.__proto__;
|
||||
r0 = <Section title={r4} key={r4}><ObjectKV obj={r9} /></Section>;
|
||||
} else {
|
||||
value7 = environment.__proto__;
|
||||
var viewProps = {style: styles.row};
|
||||
items2 = [r4, ': '];
|
||||
items2[2] = asString_83212(r9);
|
||||
r0 = <View {...viewProps} key={r4}><Text>{items2}</Text></View>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun83209(a0) { // fn#83209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:2794, offset: 0x01f11678, size: 309 bytes, params: 2, frame: 25
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
const object2 = {};
|
||||
const contextBinding = context;
|
||||
object2.title = '' + contextBinding + ' - ' + a0.mediaEngineConnectionId;
|
||||
const items2 = [renderContextInfo(contextBinding)];
|
||||
items2[1] = <Section title="transport"><ObjectKV obj={a0.transport} /></Section>;
|
||||
items2[2] = <Section title="outbound">{a0.rtp.outbound.map(_fun83210)}</Section>;
|
||||
const inbound = a0.rtp.inbound;
|
||||
const Object = global.Object;
|
||||
const value4 = Object.keys(inbound);
|
||||
items2[3] = value4.length === 0 ? null : <Section title="inbound">{value4.map(_fun83211)}</Section>;
|
||||
return (
|
||||
<Section {...object2} key={a0.mediaEngineConnectionId}>
|
||||
{items2}
|
||||
</Section>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun83216(a0, a1) { // fn#83216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:1455, offset: 0x01f1193f, size: 34 bytes, params: 3, frame: 15
|
||||
return ((Component) => <Component data={a0} key={a1} />)(env1_19);
|
||||
}
|
||||
|
||||
function _fun83218() { // fn#83218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:2005, offset: 0x01f119b7, size: 196 bytes, params: 1, frame: 14
|
||||
const object2 = {};
|
||||
object2.mediaSessionId = RTCConnectionStore.getMediaSessionId();
|
||||
object2.state = RTCConnectionStore.getState();
|
||||
const defaultImport = importDefault(10867) /* metro dependency 10867: RTCConnectionUtils */;
|
||||
const getShortHostname = defaultImport.getShortHostname;
|
||||
const getHostname = RTCConnectionStore.getHostname;
|
||||
object2.hostname = Reflect.apply(getShortHostname, defaultImport, [Reflect.apply(getHostname, RTCConnectionStore,
|
||||
[])]);
|
||||
object2.quality = RTCConnectionStore.getQuality();
|
||||
object2.averagePing = RTCConnectionStore.getAveragePing();
|
||||
object2.lastPing = RTCConnectionStore.getLastPing();
|
||||
object2.outboundLossRate = RTCConnectionStore.getOutboundLossRate();
|
||||
object2.duration = RTCConnectionStore.getDuration();
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun83220() { // fn#83220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:2419, offset: 0x01f11ae9, size: 99 bytes, params: 1, frame: 14
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
const getMediaSessionId = StreamRTCConnectionStore.getMediaSessionId;
|
||||
const binding = env0_0;
|
||||
object2.mediaSessionId = Reflect.apply(getMediaSessionId, StreamRTCConnectionStore, [binding]);
|
||||
value = importDefault(10867) /* metro dependency 10867: RTCConnectionUtils */;
|
||||
const getShortHostname = value.getShortHostname;
|
||||
const getHostname = StreamRTCConnectionStore.getHostname;
|
||||
object2.hostname = Reflect.apply(getShortHostname, value, [Reflect.apply(getHostname, StreamRTCConnectionStore,
|
||||
[binding])]);
|
||||
object2.quality = StreamRTCConnectionStore.getQuality(binding);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun83222() { // fn#83222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:3397, offset: 0x01f11cb8, size: 46 bytes, params: 1, frame: 11
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
(importAll(10866) /* metro dependency 10866: RTCDebugActionCreators */).open();
|
||||
return function() {
|
||||
return importDefault(dependencyMap[18]).wait(importAll(dependencyMap[17]).close);
|
||||
};
|
||||
}
|
||||
|
||||
function _fun83224(a0) { // fn#83224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:3660, offset: 0x01f11d22, size: 31 bytes, params: 2, frame: 15
|
||||
return <RTCDebugContext context={a0} key={a0} />;
|
||||
}
|
||||
|
||||
function _fun83210(a0, a1) { // fn#83210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:3029, offset: 0x01f117ad, size: 34 bytes, params: 3, frame: 15
|
||||
return ((Component) => <Component data={a0} key={a1} />)(env2_19);
|
||||
}
|
||||
|
||||
function _fun83211(a0) { // fn#83211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11050:3152, offset: 0x01f117cf, size: 46 bytes, params: 2, frame: 15
|
||||
return ((Component) => <Component userId={a0} data={inbound[a0]} key={a0} />)(env2_20);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user