Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,51 @@
|
||||
/* Metro module 15536; source: modules/voice_panel/native/shared/CircleWithCutout.tsx; dependencies: [31, 27, 33, 7743, 7744, 2] */
|
||||
function _fun118941(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15733:6, offset: 0x024f5bab, size: 233 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const PixelRatio = (require(27) /* metro dependency 27 */).PixelRatio;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value2.jsx;
|
||||
const env0_4 = value2.jsxs;
|
||||
const env0_5 = PixelRatio.get();
|
||||
value = value.memo(CircleWithCutout_118942);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/shared/CircleWithCutout.tsx');
|
||||
exports.default = value;
|
||||
const getBadgeLeft = (require(7743) /* metro dependency 7743: CircleWithCutoutUtils */).getBadgeLeft;
|
||||
exports.getBadgeLeft = getBadgeLeft;
|
||||
const getBadgeTop = (require(7743) /* metro dependency 7743: CircleWithCutoutUtils */).getBadgeTop;
|
||||
exports.getBadgeTop = getBadgeTop;
|
||||
}
|
||||
|
||||
function CircleWithCutout_118942({fill, circleRadius, cutoutRadius, enableCutout, cutoutPositionInDegrees, alignBadgeEdgeWithCircleEdge, badgeRadius, scaleToPixelDensity}) { // fn#118942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15733:178, offset: 0x024f5c94, size: 507 bytes, params: 2, frame: 32
|
||||
var r20;
|
||||
var r21;
|
||||
var value13;
|
||||
alignBadgeEdgeWithCircleEdge = !(alignBadgeEdgeWithCircleEdge === undefined) && alignBadgeEdgeWithCircleEdge;
|
||||
scaleToPixelDensity = scaleToPixelDensity === undefined || scaleToPixelDensity;
|
||||
const r18 = scaleToPixelDensity ? env0_5 : 1;
|
||||
const value6 = circleRadius * r18;
|
||||
const r0 = badgeRadius != null ? badgeRadius * r18 : undefined;
|
||||
const value8 = 2 * value6;
|
||||
if (alignBadgeEdgeWithCircleEdge && r0 != null) {
|
||||
value13 = 2 * value6 - r0;
|
||||
r20 = r0;
|
||||
r21 = value13;
|
||||
} else {
|
||||
r20 = (require(7743) /* metro dependency 7743: CircleWithCutoutUtils */).getCutoutCenterY(value6,
|
||||
cutoutPositionInDegrees);
|
||||
r21 = (require(7743) /* metro dependency 7743: CircleWithCutoutUtils */).getCutoutCenterX(value6,
|
||||
cutoutPositionInDegrees);
|
||||
}
|
||||
const defaultImport = importDefault(7744) /* metro dependency 7744 */;
|
||||
const object = {};
|
||||
object.transform = [{scale: 1 / r18}];
|
||||
const Defs = (require(7744) /* metro dependency 7744 */).Defs;
|
||||
const Mask = (require(7744) /* metro dependency 7744 */).Mask;
|
||||
const Rect = (require(7744) /* metro dependency 7744 */).Rect;
|
||||
const rect = <Rect width={value8} height={value8} fill="white" />;
|
||||
const Circle = (require(7744) /* metro dependency 7744 */).Circle;
|
||||
return ((Component) => <Component height={value8} width={value8} style={object}><Defs><Mask id="mask">{rect}<Circle cx={r21} cy={r20} r={cutoutRadius * r18} fill="black" /></Mask></Defs><Circle cx={value6} cy={value6} r={value6} fill={fill} mask={enableCutout ? 'url(#mask)' : undefined} /></Component>)(defaultImport);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
/* Metro module 7743; source: modules/voice_panel/native/shared/CircleWithCutoutUtils.tsx; dependencies: [31, 33, 7744, 2] */
|
||||
function _fun61971(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7921:6, offset: 0x01b509b4, size: 220 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const closure = getCutoutCenterX;
|
||||
const closure2 = getCutoutCenterY;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.jsxs;
|
||||
const Math = global.Math;
|
||||
const PI = Math.PI;
|
||||
const env0_5 = PI / 180;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/shared/CircleWithCutoutUtils.tsx');
|
||||
exports.default = CircleWithCutout;
|
||||
exports.getBadgeTop = getBadgeTop;
|
||||
exports.getBadgeLeft = getBadgeLeft;
|
||||
exports.getCutoutCenterX = closure;
|
||||
exports.getCutoutCenterY = closure2;
|
||||
}
|
||||
|
||||
function getCutoutCenterX(a0, a1) { // fn#61972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7921:145, offset: 0x01b50a90, size: 46 bytes, params: 3, frame: 13
|
||||
const Math = global.Math;
|
||||
return a0 + a0 * Math.sin(a1 * env0_5);
|
||||
}
|
||||
|
||||
function getCutoutCenterY(a0, a1) { // fn#61973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7921:201, offset: 0x01b50abe, size: 46 bytes, params: 3, frame: 13
|
||||
const Math = global.Math;
|
||||
return a0 - a0 * Math.cos(a1 * env0_5);
|
||||
}
|
||||
|
||||
function CircleWithCutout({circleRadius, cutoutRadius, enableCutout, cutoutPositionInDegrees, circleFillColor}) { // fn#61974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7921:360, offset: 0x01b50aec, size: 346 bytes, params: 2, frame: 31
|
||||
let value = 2 * circleRadius;
|
||||
const cutoutCenterX = getCutoutCenterX(circleRadius, cutoutPositionInDegrees);
|
||||
const cutoutCenterY = getCutoutCenterY(circleRadius, cutoutPositionInDegrees);
|
||||
const defaultImport = importDefault(7744) /* metro dependency 7744 */;
|
||||
const object2 = {height: value, width: value};
|
||||
const Defs = (require(7744) /* metro dependency 7744 */).Defs;
|
||||
const Mask = (require(7744) /* metro dependency 7744 */).Mask;
|
||||
const Rect = (require(7744) /* metro dependency 7744 */).Rect;
|
||||
value = <Rect width={value} height={value} fill="white" />;
|
||||
const Circle = (require(7744) /* metro dependency 7744 */).Circle;
|
||||
value = <Defs><Mask id="mask">{value}<Circle cx={cutoutCenterX} cy={cutoutCenterY} r={cutoutRadius} fill="black" /></Mask></Defs>;
|
||||
return ((Component) => <Component {...object2}>{value}<Circle cx={circleRadius} cy={circleRadius} r={circleRadius} fill={circleFillColor} mask={enableCutout ? 'url(#mask)' : undefined} /></Component>)(defaultImport);
|
||||
}
|
||||
|
||||
function getBadgeTop(a0, a1, a2) { // fn#61975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7921:828, offset: 0x01b50c46, size: 30 bytes, params: 4, frame: 13
|
||||
return getCutoutCenterY(a1, a2) - a0;
|
||||
}
|
||||
|
||||
function getBadgeLeft(a0, a1, a2) { // fn#61976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7921:903, offset: 0x01b50c64, size: 30 bytes, params: 4, frame: 13
|
||||
return getCutoutCenterX(a1, a2) - a0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,151 @@
|
||||
/* Metro module 9243; source: modules/voice_panel/native/shared/FormComponents.tsx; dependencies: [31, 4396, 33, 4501, 697, 6821, 6231, 9244, 1305, 6771, 9245, 9256, 8917, 4635, 8699, 8743, 566, 7128, 4573, 1244, 6238, 4578, 8916, 3995, 9299, 9322, 2] */
|
||||
function _fun72268(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9428:6, offset: 0x01d406fc, size: 400 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const presenceStore = importDefault(4396) /* metro dependency 4396: PresenceStore */;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.container = {marginHorizontal: 16};
|
||||
object2.voiceBadgesContainer = {flexDirection: 'row'};
|
||||
const object3 = {'marginLeft': 8, 'padding': 6};
|
||||
const MOBILE_VOICE_PANEL_BADGE_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_VOICE_PANEL_BADGE_BACKGROUND;
|
||||
object3.backgroundColor = MOBILE_VOICE_PANEL_BADGE_BACKGROUND;
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object2.iconWrapper = object3;
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
object2.icon = {'width': 16, 'height': 16, tintColor: INTERACTIVE_TEXT_DEFAULT};
|
||||
object2.notConnectedAvatar = {opacity: 0.5};
|
||||
object2.memberRow = {'flexDirection': 'row', 'alignItems': 'center', 'gap': 4};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/shared/FormComponents.tsx');
|
||||
exports.VoicePanelFormSection = VoicePanelFormSection;
|
||||
exports.MemberRowItem = MemberRowItem;
|
||||
}
|
||||
|
||||
function VoiceBadges({muteDeafenIconState, videoIconState}) { // fn#72269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9428:547, offset: 0x01d4088c, size: 344 bytes, params: 2, frame: 28
|
||||
const styles = useStyles();
|
||||
return ((Component) => <Component style={styles.voiceBadgesContainer}>{muteDeafenIconState != null ? ((Component) => <Component style={styles.iconWrapper}>{((MuteDeafenIcon) => <MuteDeafenIcon state={muteDeafenIconState} size={(require(1305) /* metro dependency 1305: native */).IconSizes.SMALL} style={styles.icon} />)((require(9244) /* metro dependency 9244: VoiceStateIcons */).MuteDeafenIcon)}</Component>)(importDefault(6821) /* metro dependency 6821: NativeView */) : null}{videoIconState != null ? ((Component) => <Component style={styles.iconWrapper}>{((VideoIcon) => <VideoIcon state={videoIconState} size={(require(1305) /* metro dependency 1305: native */).IconSizes.SMALL} style={styles.icon} />)((require(9244) /* metro dependency 9244: VoiceStateIcons */).VideoIcon)}</Component>)(importDefault(6821) /* metro dependency 6821: NativeView */) : null}</Component>)(importDefault(6821) /* metro dependency 6821: NativeView */);
|
||||
}
|
||||
|
||||
function VoicePanelFormSection(a0) { // fn#72270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9428:1052, offset: 0x01d409e4, size: 144 bytes, params: 2, frame: 20
|
||||
const style = a0.style;
|
||||
const value = Object.create(null);
|
||||
value.style = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, undefined);
|
||||
const styles = useStyles();
|
||||
const NativeView = importDefault(6821) /* metro dependency 6821: NativeView */;
|
||||
const items2 = [styles.container, style];
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
return (
|
||||
<NativeView style={items2}>
|
||||
<TableRowGroup {...value2} />
|
||||
</NativeView>
|
||||
);
|
||||
}
|
||||
|
||||
function MemberRowItem({user, channelId, selfStream, nick, guildId, notConnected, showRing, showSecureFramesUI}) { // fn#72271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9428:1209, offset: 0x01d40a74, size: 1026 bytes, params: 2, frame: 35
|
||||
var object2;
|
||||
var r4;
|
||||
var Button;
|
||||
var intl;
|
||||
selfStream = !(selfStream === undefined) && selfStream;
|
||||
notConnected = !(notConnected === undefined) && notConnected;
|
||||
showSecureFramesUI = !(showSecureFramesUI === undefined) && showSecureFramesUI;
|
||||
const styles = useStyles();
|
||||
const analyticsLocations = (importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */)().analyticsLocations;
|
||||
const env0_3 = analyticsLocations;
|
||||
const voiceStateIconUtilsModule = require(9245) /* metro dependency 9245: VoiceStateIconUtils */;
|
||||
const useMuteDeafenIconState = voiceStateIconUtilsModule.useMuteDeafenIconState;
|
||||
let id = user.id;
|
||||
const value6 = Reflect.apply(useMuteDeafenIconState, voiceStateIconUtilsModule, [id, guildId]);
|
||||
const value7 = voiceStateIconUtilsModule.useVideoIconState(user.id, guildId);
|
||||
id = user.id;
|
||||
const value8 = (require(9256) /* metro dependency 9256: useIsSecureFramesVerified */).useIsUserSecureFramesVerified({userId: id,
|
||||
channelId: channelId});
|
||||
const value9 = (require(8917) /* metro dependency 8917: useCanRing */).useCanRing(user, 'MemberRowItem');
|
||||
const value11 = (require(8699) /* metro dependency 8699: useDisplayNameStylesFont */).useDisplayNameStylesFont({displayNameStyles: (importDefault(4635) /* metro dependency 4635: useDisplayNameStyles */)({userId: user.id,
|
||||
guildId: guildId})});
|
||||
const binding = env0_3;
|
||||
const value12 = binding.useCallback(_fun72272, [id, channelId, analyticsLocations]);
|
||||
const value13 = binding.useMemo(_fun72274,
|
||||
[(require(566) /* metro dependency 566: flux */).useStateFromStores([PresenceStore], function() {
|
||||
return require(dependencyMap[17]).getStreamerActivityByUserId(id, PresenceStore);
|
||||
}), selfStream]);
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
object2 = {onPress: value12};
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
||||
const REFRESH_MEDIUM_32 = AvatarSizes.REFRESH_MEDIUM_32;
|
||||
object2.icon = <Avatar user={user} guildId={guildId} size={REFRESH_MEDIUM_32} style={notConnected ? styles.notConnectedAvatar : undefined} />;
|
||||
object2.subLabel = value13;
|
||||
if (showRing) {
|
||||
if (value9) {
|
||||
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
var buttonProps = {'size': 'sm', 'variant': 'secondary', onPress: onPress_72275};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
buttonProps.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bHa9kN);
|
||||
r4 = <Button {...buttonProps} />;
|
||||
} else {
|
||||
r4 = value6 != null || value7 != null ? <VoiceBadges muteDeafenIconState={value6} videoIconState={value7} /> : undefined;
|
||||
}
|
||||
} else {
|
||||
r4 = value6 != null || value7 != null ? <VoiceBadges muteDeafenIconState={value6} videoIconState={value7} /> : undefined;
|
||||
}
|
||||
object2.trailing = r4;
|
||||
const r15 = nick ?? (require(3995) /* metro dependency 3995: UserUtils */).getName(user);
|
||||
const NativeView = importDefault(6821) /* metro dependency 6821: NativeView */;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const items2 = [<Text variant="text-md/semibold" color={notConnected ? 'text-muted' : 'text-default'} style={value11 != null && ({fontFamily: value11})}>{r15}</Text>];
|
||||
items2[1] = ((Component) => <Component userId={user.id} />)(importDefault(9299) /* metro dependency 9299: GuildTag */);
|
||||
items2[2] = showSecureFramesUI && value8 ? ((ShieldLockIcon) => <ShieldLockIcon size="xs" style={styles.icon} />)((require(9322) /* metro dependency 9322: ShieldLockIcon */).ShieldLockIcon) : null;
|
||||
object2.label = <NativeView style={styles.memberRow}>{items2}</NativeView>;
|
||||
return <TableRow {...object2} />;
|
||||
}
|
||||
|
||||
function _fun72272() { // fn#72272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9428:1687, offset: 0x01d40e76, size: 69 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
(importDefault(8743) /* metro dependency 8743: showUserProfileActionSheet */)({userId: id, channelId: channelId,
|
||||
isVoiceContext: true, sourceAnalyticsLocations: analyticsLocations});
|
||||
}
|
||||
|
||||
function _fun72274() { // fn#72274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9428:1877, offset: 0x01d40eed, size: 260 bytes, params: 1, frame: 22
|
||||
var r1;
|
||||
var r0;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var value3;
|
||||
var value;
|
||||
const selfStreamBinding = selfStream;
|
||||
const value2 = null;
|
||||
if (selfStreamBinding) {
|
||||
if (value2 != streamerActivityByUserId) {
|
||||
value3 = environment.__proto__;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
r1 = <Text variant="text-xs/medium" color="text-muted" lineClamp={1}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['0wJXSh'],
|
||||
|
||||
|
||||
{name: value2 == streamerActivityByUserId.details ? streamerActivityByUserId.name : streamerActivityByUserId.details !== '' ? streamerActivityByUserId.details : streamerActivityByUserId.name})}</Text>;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eXan7B);
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function MemberRowItemOnPress() { // fn#72275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9428:2368, owner: MemberRowItem.onPress, offset: 0x01d40ff1, size: 70 bytes, params: 1, frame: 15
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(8916) /* metro dependency 8916: CallActionCreators */;
|
||||
return value.ring(channelId, [user.id], 'voice_panel_floating_cta');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/* Metro module 15467; source: modules/voice_panel/native/shared/VoicePanelChannelOptInNotice.tsx; dependencies: [31, 33, 6609, 6821, 6238, 1244, 6242, 12376, 2] */
|
||||
function _fun118392(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15664:6, offset: 0x024da116, size: 152 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = value.memo(VoicePanelChannelOptInNotice);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/shared/VoicePanelChannelOptInNotice.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function VoicePanelChannelOptInNotice({style, channel, analyticsSection}) { // fn#118393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15664:134, offset: 0x024da1ae, size: 313 bytes, params: 2, frame: 22
|
||||
const value2 = env0_3.useCallback(_fun118394, [channel, analyticsSection]);
|
||||
const NativeView = importDefault(6821) /* metro dependency 6821: NativeView */;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const object = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
object.label = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['9mysCh']]);
|
||||
string = intl.string;
|
||||
const PDUCIN = (require(1244) /* metro dependency 1244: indexNative */).t.PDUCIN;
|
||||
object.subLabel = Reflect.apply(string, intl, [PDUCIN]);
|
||||
const TableRowIcon = (require(6242) /* metro dependency 6242: TableRowIconNative */).TableRowIcon;
|
||||
const ChannelListMagnifyingGlassIcon = (require(12376) /* metro dependency 12376: ChannelListMagnifyingGlassIcon */).ChannelListMagnifyingGlassIcon;
|
||||
object.icon = <TableRowIcon IconComponent={ChannelListMagnifyingGlassIcon} />;
|
||||
object.onPress = value2;
|
||||
object.start = true;
|
||||
object.end = true;
|
||||
object.arrow = true;
|
||||
return (
|
||||
<NativeView style={style}>
|
||||
<TableRow {...object} />
|
||||
</NativeView>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun118394() { // fn#118394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15664:233, offset: 0x024da2e7, size: 73 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__;
|
||||
value = require(6609) /* metro dependency 6609: OptInChannelsActionCreators */;
|
||||
const setOptInChannel = value.setOptInChannel;
|
||||
const {guild_id, id} = channel;
|
||||
Reflect.apply(setOptInChannel, value, [guild_id, id, true, {section: analyticsSection}]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
/* Metro module 15450; source: modules/voice_panel/native/shared/VoicePanelDismissableContent.tsx; dependencies: [57, 31, 4606, 11795, 4299, 33, 15451, 1962, 11794, 4017, 1365, 10357, 11088, 2] */
|
||||
function _fun118253(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15647:6, offset: 0x024d3039, size: 271 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const channelRTCStore = importDefault(4606) /* metro dependency 4606: ChannelRTCStore */;
|
||||
const env0_6 = (require(11795) /* metro dependency 11795: VoicePanelConstants */).VoicePanelModes;
|
||||
const env0_7 = (require(4299) /* metro dependency 4299: CallConstants */).isActivityParticipant;
|
||||
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object = {code: 'function VoicePanelDismissableContentTsx1(){const{mode,VoicePanelModes,focused}=this.__closure;var _focused$get;return mode.get()===VoicePanelModes.PANEL?(_focused$get=focused.get())===null||_focused$get===void 0?void 0:_focused$get.id:undefined;}'};
|
||||
object = {code: 'function VoicePanelDismissableContentTsx2(manualId,previousManualId){const{runOnJS,handleFocusChange}=this.__closure;if(manualId!==previousManualId){runOnJS(handleFocusChange)(manualId);}}'};
|
||||
value = value.memo(VoicePanelDismissibleContent);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/shared/VoicePanelDismissableContent.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function VoiceControlsNuxActionSheetImporter() { // fn#118254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15647:234, offset: 0x024d3148, size: 45 bytes, params: 1, frame: 13
|
||||
return require(dependencyMap[7])(dependencyMap[6], dependencyMap.paths);
|
||||
}
|
||||
|
||||
function VoicePanelDismissibleContent() { // fn#118255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15647:733, offset: 0x024d3175, size: 395 bytes, params: 1, frame: 23
|
||||
const binding = env0_4;
|
||||
const {channelId, focused,
|
||||
mode} = binding.useContext(importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */);
|
||||
const [property, env0_3] = env0_3Binding(binding.useState(false), 2);
|
||||
const value5 = binding.useCallback(_fun118256, [channelId]);
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedReaction = reanimatedRexportModule.useAnimatedReaction;
|
||||
const closure = VoicePanelDismissibleContentH;
|
||||
closure.__closure = {mode: mode, VoicePanelModes: VoicePanelModes, focused: focused};
|
||||
closure.__workletHash = 11330064461661;
|
||||
closure.__initData = env0_10;
|
||||
const closure2 = VoicePanelDismissibleContentF;
|
||||
closure2.__closure = {runOnJS: reanimatedRexportModule.runOnJS, handleFocusChange: value5};
|
||||
closure2.__workletHash = 15579591345007;
|
||||
closure2.__initData = env0_11;
|
||||
Reflect.apply(useAnimatedReaction, reanimatedRexportModule, [closure, closure2]);
|
||||
return ((Component) => <Component contentTypes={property ? [(require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.ACTIVITIES_MOBILE_PIP_FAB_NUX] : []}>{children_118259}</Component>)(importDefault(10357) /* metro dependency 10357: SelectedDismissibleContent */);
|
||||
}
|
||||
|
||||
function _fun118256(a0) { // fn#118256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15647:897, offset: 0x024d3300, size: 65 bytes, params: 2, frame: 15
|
||||
var r2;
|
||||
var isActivityParticipantBinding;
|
||||
let value = a0 != null;
|
||||
if (value) {
|
||||
value = environment.__proto__;
|
||||
isActivityParticipantBinding = isActivityParticipant;
|
||||
value = ChannelRTCStore.getParticipant(channelId, a0);
|
||||
value = isActivityParticipantBinding(value);
|
||||
r2 = value;
|
||||
} else {
|
||||
r2 = value;
|
||||
}
|
||||
env0_3(r2);
|
||||
}
|
||||
|
||||
function VoicePanelDismissibleContentH() { // fn#118257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15647:985, owner: VoicePanelDismissibleContent.h, offset: 0x024d3341, size: 69 bytes, params: 1, frame: 12
|
||||
var r0;
|
||||
var value;
|
||||
const value2 = mode.get();
|
||||
const PANEL = VoicePanelModes.PANEL;
|
||||
const value4 = undefined;
|
||||
if (value2 !== PANEL) {
|
||||
r0 = value4;
|
||||
} else {
|
||||
value = focused.get();
|
||||
r0 = value == null ? value4 : value.id;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function VoicePanelDismissibleContentF(a0, a1) { // fn#118258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15647:1159, owner: VoicePanelDismissibleContent.f, offset: 0x024d3386, size: 61 bytes, params: 3, frame: 13
|
||||
var value;
|
||||
if (a0 !== a1) {
|
||||
value = environment.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
value.runOnJS(env0_4)(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function VoicePanelDismissibleContentChildren({visibleContent, markAsDismissed}) { // fn#118259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15647:1423, owner: VoicePanelDismissibleContent.children, offset: 0x024d33c3, size: 123 bytes, params: 2, frame: 17
|
||||
const value = environment.__proto__;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const ACTIVITIES_MOBILE_PIP_FAB_NUX = DismissibleContent.ACTIVITIES_MOBILE_PIP_FAB_NUX;
|
||||
if (visibleContent !== ACTIVITIES_MOBILE_PIP_FAB_NUX) {
|
||||
return null;
|
||||
} else {
|
||||
const DismissibleActionSheet = (require(11088) /* metro dependency 11088: DismissibleActionSheet */).DismissibleActionSheet;
|
||||
return (
|
||||
<DismissibleActionSheet
|
||||
markAsDismissed={markAsDismissed}
|
||||
importer={VoiceControlsNuxActionSheetImporter}
|
||||
actionSheetKey="VoiceControlToggleNuxActionSheet"
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/* Metro module 11803; source: modules/voice_panel/native/shared/VoicePanelHeaderGlassBlur.tsx; dependencies: [31, 27, 33, 4501, 477, 4017, 4577, 4048, 8141, 4563, 4002, 6821, 2] */
|
||||
function _fun90398(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11989:6, offset: 0x02037c71, size: 419 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const StyleSheet = (require(27) /* metro dependency 27 */).StyleSheet;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value2.jsx;
|
||||
const env0_5 = value2.jsxs;
|
||||
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({blur: {'position': 'absolute',
|
||||
'top': 0, 'left': 0, 'right': 0}, strokeContainer: {'position': 'absolute', 'left': 0, 'right': 0,
|
||||
bottom: -StyleSheet.hairlineWidth, height: StyleSheet.hairlineWidth}, stroke: {'height': null, 'opacity': 0.15,
|
||||
'backgroundColor': 'white', height: StyleSheet.hairlineWidth}, strokeAlt: {'height': null, 'opacity': 0.8,
|
||||
'backgroundColor': 'black', height: StyleSheet.hairlineWidth}, strokeAltLight: {'height': null, 'opacity': 0.2,
|
||||
'backgroundColor': 'black', height: StyleSheet.hairlineWidth}});
|
||||
const env0_7 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
|
||||
object = {code: 'function VoicePanelHeaderGlassBlurTsx1(){const{shown,IS_ANDROID}=this.__closure;return{opacity:shown.get()?IS_ANDROID?0.7:1:0};}'};
|
||||
object = {code: 'function VoicePanelHeaderGlassBlurTsx2(){const{withSpring,shown}=this.__closure;return{blurAmount:withSpring(shown.get()?0.3:0)};}'};
|
||||
value = value.memo(HeaderGlassBlur);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/shared/VoicePanelHeaderGlassBlur.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function HeaderGlassBlur({shown, blurStyle, style}) { // fn#90399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11989:859, offset: 0x02037e14, size: 556 bytes, params: 2, frame: 28
|
||||
const styles = useStyles();
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
let closure = HeaderGlassBlurK;
|
||||
closure.__closure = {shown: shown, IS_ANDROID: env0_7};
|
||||
closure.__workletHash = 3451055086565;
|
||||
closure.__initData = env0_8;
|
||||
const value2 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const moduleValue2 = reanimatedRexportModule;
|
||||
const useAnimatedProps = moduleValue2.useAnimatedProps;
|
||||
closure = HeaderGlassBlurP;
|
||||
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, shown: shown};
|
||||
closure.__workletHash = 5642055202507;
|
||||
closure.__initData = env0_9;
|
||||
const value3 = Reflect.apply(useAnimatedProps, moduleValue2, [closure]);
|
||||
const value4 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
|
||||
const ReanimatedNativeView = importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */;
|
||||
const items2 = [styles.blur, style, value2];
|
||||
const VisualEffectViewAnimated = importDefault(4563) /* metro dependency 4563: VisualEffectViewAnimated */;
|
||||
const sharedModule = require(4002) /* metro dependency 4002: shared */;
|
||||
const visualEffectViewAnimated = <VisualEffectViewAnimated blurStyle="ultra-thin" blurTheme={sharedModule.isThemeDark(value4) ? 'dark' : 'light'} style={[StyleSheet.absoluteFillObject,
|
||||
blurStyle]} animatedProps={value3} />;
|
||||
const NativeView = importDefault(6821) /* metro dependency 6821: NativeView */;
|
||||
const nativeView = <NativeView style={styles.stroke} />;
|
||||
const defaultImport5 = NativeView;
|
||||
const value = sharedModule;
|
||||
return (
|
||||
<ReanimatedNativeView style={items2}>
|
||||
{visualEffectViewAnimated}
|
||||
<NativeView style={styles.strokeContainer}>
|
||||
{nativeView}
|
||||
{((Component) => <Component style={value.isThemeDark(value4) ? styles.strokeAlt : styles.strokeAltLight} />)(defaultImport5)}
|
||||
</NativeView>
|
||||
</ReanimatedNativeView>
|
||||
);
|
||||
}
|
||||
|
||||
function HeaderGlassBlurK() { // fn#90400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11989:960, owner: HeaderGlassBlur.k, offset: 0x02038040, size: 55 bytes, params: 1, frame: 11
|
||||
var r1;
|
||||
let value = shown.get();
|
||||
if (value) {
|
||||
value = environment.__proto__;
|
||||
value = 1;
|
||||
r1 = env1_7 ? 0.7 : value;
|
||||
} else {
|
||||
r1 = 0;
|
||||
}
|
||||
return {opacity: r1};
|
||||
}
|
||||
|
||||
function HeaderGlassBlurP() { // fn#90401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11989:1107, owner: HeaderGlassBlur.p, offset: 0x02038077, size: 75 bytes, params: 1, frame: 13
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
value = require(4577) /* metro dependency 4577: spring */;
|
||||
object2.blurAmount = value.withSpring(shown.get() ? 0.3 : 0);
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/* Metro module 15388; source: modules/voice_panel/native/shared/VoicePanelIconButton.tsx; dependencies: [31, 33, 8141, 8341, 2] */
|
||||
function _fun117659(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15585:6, offset: 0x024bcf55, size: 159 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = value.memo(value.forwardRef(_fun117660));
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/shared/VoicePanelIconButton.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun117660(a0, a1) { // fn#117660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15585:136, offset: 0x024bcff4, size: 200 bytes, params: 3, frame: 23
|
||||
const style = a0.style;
|
||||
const overrideVariant = a0.overrideVariant;
|
||||
const layout = a0.layout;
|
||||
const object2 = {'style': 0, 'overrideVariant': 0, 'layout': 0};
|
||||
silentSetPrototypeOf(object2, null, undefined);
|
||||
const value = copyDataProperties({}, a0, object2, undefined);
|
||||
const ReanimatedNativeView = importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */;
|
||||
const IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).IconButton;
|
||||
return (
|
||||
<ReanimatedNativeView
|
||||
ref={a1}
|
||||
style={style}
|
||||
layout={layout}
|
||||
>
|
||||
<IconButton
|
||||
{...value}
|
||||
{...{['size']: 'sm'}}
|
||||
{...{['variant']: overrideVariant ?? 'secondary-overlay'}}
|
||||
{...{['maxFontSizeMultiplier']: 2}}
|
||||
/>
|
||||
</ReanimatedNativeView>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
/* Metro module 10270; source: modules/voice_panel/native/shared/VoicePanelStreamPreview.tsx; dependencies: [31, 27, 4492, 1226, 33, 4017, 4578, 4501, 697, 10271, 566, 4285, 4504, 8141, 4573, 1244, 2] */
|
||||
function _fun79704(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10456:6, offset: 0x01e5e790, size: 537 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const Pressable = value.Pressable;
|
||||
const env0_3 = value.View;
|
||||
const applicationStreamingStore = importDefault(4492) /* metro dependency 4492: ApplicationStreamingStore */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
value = importDefault(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
let createAnimatedComponent = value.createAnimatedComponent;
|
||||
const env0_8 = Reflect.apply(createAnimatedComponent, value, [Pressable]);
|
||||
value = importDefault(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
createAnimatedComponent = value.createAnimatedComponent;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const env0_9 = Reflect.apply(createAnimatedComponent, value, [Button]);
|
||||
object2 = {duration: 200};
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const VOICE_VIDEO_VIDEO_TILE_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.VOICE_VIDEO_VIDEO_TILE_BACKGROUND;
|
||||
object2.roundedCard = {'position': 'absolute', 'alignItems': 'center', 'justifyContent': 'center', 'width': '100%',
|
||||
'height': '100%', backgroundColor: VOICE_VIDEO_VIDEO_TILE_BACKGROUND};
|
||||
object2.streamPreviewImage = {'position': 'absolute', 'width': '100%', 'height': '100%', 'opacity': 0.5};
|
||||
const object5 = {};
|
||||
const BACKGROUND_SCRIM = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SCRIM;
|
||||
object5.backgroundColor = BACKGROUND_SCRIM;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.marginHorizontal = PX_16;
|
||||
object2.ownStreamTextContainer = object5;
|
||||
const object6 = {textAlign: 'center'};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.paddingHorizontal = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.paddingVertical = PX_16;
|
||||
object2.ownStreamText = object6;
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object2]);
|
||||
object2 = {code: "function VoicePanelStreamPreviewTsx1(){const{mode,withTiming,OPACITY_TIMING}=this.__closure;if(mode==null){return{opacity:1};}return{opacity:withTiming(mode.get()==='pip'?0:1,OPACITY_TIMING)};}"};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/shared/VoicePanelStreamPreview.tsx');
|
||||
exports.VoicePanelStreamPreview = VoicePanelStreamPreview;
|
||||
}
|
||||
|
||||
function VoicePanelStreamPreview({mode, stream, disabled, onPress, layout}) { // fn#79705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10456:1139, offset: 0x01e5e9a9, size: 738 bytes, params: 2, frame: 29
|
||||
var object2;
|
||||
var r8;
|
||||
var binding2;
|
||||
var object5;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const styles = useStyles();
|
||||
const previewUrl = (importDefault(10271) /* metro dependency 10271: useFetchStreamPreview */)(stream?.guildId,
|
||||
stream?.channelId, stream?.ownerId).previewUrl;
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ApplicationStreamingStore,
|
||||
AuthenticationStore], _fun79706, [stream]);
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = VoicePanelStreamPreviewT;
|
||||
object2 = {mode: mode};
|
||||
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
||||
object2.OPACITY_TIMING = env0_10;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 15496474861955;
|
||||
closure.__initData = env0_12;
|
||||
const value5 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const binding = env0_8;
|
||||
const r4 = disabled || value4;
|
||||
const r5 = previewUrl != null ? ((Image) => <Image layout={layout} source={{uri: previewUrl}} style={styles.streamPreviewImage} resizeMode="cover" />)((importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).Image) : null;
|
||||
const ReanimatedNativeView = importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */;
|
||||
if (value4) {
|
||||
r8 = <View style={styles.ownStreamTextContainer}>{((Text) => <Text variant="text-sm/semibold" color="always-white" style={styles.ownStreamText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ro/HN8'])}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</View>;
|
||||
} else {
|
||||
binding2 = env0_9;
|
||||
r8 = ((Component) => <Component layout={layout} disabled={disabled} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7Xq/nV'])} size="sm" variant="primary-overlay" onPress={onPress} />)(binding2);
|
||||
}
|
||||
return ((Component) => <Component layout={layout} onPress={onPress} style={styles.roundedCard} disabled={r4} accessible={false}>{r5}<ReanimatedNativeView style={value5} layout={layout}>{r8}</ReanimatedNativeView></Component>)(binding);
|
||||
}
|
||||
|
||||
function _fun79706() { // fn#79706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10456:1369, offset: 0x01e5ec8b, size: 113 bytes, params: 1, frame: 16
|
||||
var value5;
|
||||
var getStreamerActiveStreamMetadataForStream;
|
||||
var moduleValue;
|
||||
let r0 = stream != null && stream.ownerId === AuthenticationStore.getId();
|
||||
if (r0) {
|
||||
value5 = environment.__proto__;
|
||||
getStreamerActiveStreamMetadataForStream = ApplicationStreamingStore.getStreamerActiveStreamMetadataForStream;
|
||||
moduleValue = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
r0 = Reflect.apply(getStreamerActiveStreamMetadataForStream, ApplicationStreamingStore,
|
||||
[moduleValue.encodeStreamKey(stream)]) == null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function VoicePanelStreamPreviewT() { // fn#79707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10456:1520, owner: VoicePanelStreamPreview.T, offset: 0x01e5ecfc, size: 101 bytes, params: 1, frame: 16
|
||||
var r0;
|
||||
var object2;
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (mode == null) {
|
||||
r0 = {opacity: 1};
|
||||
} else {
|
||||
object2 = {};
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(4504) /* metro dependency 4504: timing */;
|
||||
object2.opacity = moduleValue.withTiming(mode.get() !== 'pip' ? 1 : 0, env1_10);
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,199 @@
|
||||
/* Metro module 15459; source: modules/voice_panel/native/shared/VoicePanelTitleButton.tsx; dependencies: [31, 27, 4234, 1384, 1379, 4299, 33, 4501, 9322, 1244, 4579, 6245, 566, 4805, 9256, 8554, 697, 11794, 4617, 15460, 4572, 8379, 15384, 15457, 6655, 8621, 677, 15456, 15461, 2] */
|
||||
function _fun118329(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15656:6, offset: 0x024d7273, size: 383 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */;
|
||||
const stageInstanceStore = importDefault(1384) /* metro dependency 1384: StageInstanceStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const env0_8 = (require(4299) /* metro dependency 4299: CallConstants */).ParticipantTypes;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value2.jsx;
|
||||
const env0_10 = value2.jsxs;
|
||||
const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({userIcons: {marginLeft: -6},
|
||||
channelButtons: {'alignItems': 'center', 'flexDirection': 'row', 'gap': 2}});
|
||||
value = value.memo(VoicePanelTitleButton);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/shared/VoicePanelTitleButton.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function ChannelButtonIcons() { // fn#118330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15656:320, offset: 0x024d73f2, size: 211 bytes, params: 1, frame: 22
|
||||
const styles = useStyles();
|
||||
const ShieldLockIcon = (require(9322) /* metro dependency 9322: ShieldLockIcon */).ShieldLockIcon;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const VHXh8a = (require(1244) /* metro dependency 1244: indexNative */).t.VHXh8a;
|
||||
const shieldLockIcon = <ShieldLockIcon size="xs" accessibilityLabel={Reflect.apply(string, intl, [VHXh8a])} />;
|
||||
const BaseTextButton = (require(4579) /* metro dependency 4579: BaseTextButtonNative */).BaseTextButton;
|
||||
const Icon = BaseTextButton.Icon;
|
||||
return (
|
||||
<View style={styles.channelButtons}>
|
||||
{shieldLockIcon}
|
||||
<Icon source={importDefault(6245) /* metro dependency 6245 */} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function ChannelButton({channelId, onPress}) { // fn#118331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15656:553, offset: 0x024d74c5, size: 343 bytes, params: 2, frame: 22
|
||||
var object2;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
const value2 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(Reflect.apply(useStateFromStores,
|
||||
fluxModule, [[ChannelStore], function() {
|
||||
return ChannelStore.getChannel(channelId);
|
||||
}]));
|
||||
const value3 = (require(9256) /* metro dependency 9256: useIsSecureFramesVerified */).useIsCallSecureFramesVerified({channelId: channelId});
|
||||
const HeaderButton = (require(8554) /* metro dependency 8554: native */).HeaderButton;
|
||||
object2 = {accessibilityRole: 'button'};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.accessibilityHint = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Y2b7+e']);
|
||||
object2.text = value2 ?? '???';
|
||||
object2.icon = value3 ? <ChannelButtonIcons /> : importDefault(6245) /* metro dependency 6245 */;
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.iconOpticalOffsetMargin = -PX_4;
|
||||
object2.iconPosition = 'end';
|
||||
object2.onPress = onPress;
|
||||
object2.maxFontSizeMultiplier = 2;
|
||||
return <HeaderButton {...object2} />;
|
||||
}
|
||||
|
||||
function StreamButton({participant, onPress}) { // fn#118333, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15656:1012, offset: 0x024d761c, size: 279 bytes, params: 2, frame: 23
|
||||
const {guildId,
|
||||
channelId} = env0_3.useContext(importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */);
|
||||
const defaultImport = importDefault(4617) /* metro dependency 4617: NicknameUtils */;
|
||||
const useName = defaultImport.useName;
|
||||
const user = participant.user;
|
||||
const value3 = Reflect.apply(useName, defaultImport, [guildId, channelId, user]);
|
||||
const HeaderButton = (require(8554) /* metro dependency 8554: native */).HeaderButton;
|
||||
const object2 = {accessibilityRole: 'button'};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.accessibilityHint = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Y2b7+e']);
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const I0mOAs = (require(1244) /* metro dependency 1244: indexNative */).t.I0mOAs;
|
||||
object2.accessibilityLabel = Reflect.apply(formatToPlainString, intl, [I0mOAs, {username: value3}]);
|
||||
object2.text = value3;
|
||||
object2.icon = importDefault(15460) /* metro dependency 15460 */;
|
||||
object2.iconPosition = 'start';
|
||||
object2.onPress = onPress;
|
||||
return <HeaderButton {...object2} />;
|
||||
}
|
||||
|
||||
function ActivityButton({participant, onPress}) { // fn#118334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15656:1402, offset: 0x024d7733, size: 366 bytes, params: 2, frame: 25
|
||||
const application = (require(566) /* metro dependency 566: flux */).useStateFromStores([ApplicationStore],
|
||||
function() {
|
||||
return ApplicationStore.getApplication(participant.applicationId);
|
||||
});
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
const HeaderButton = (require(8554) /* metro dependency 8554: native */).HeaderButton;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Stack direction="horizontal" spacing={PX_8}>
|
||||
<HeaderButton
|
||||
accessibilityRole="button"
|
||||
accessibilityHint={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Y2b7+e'])}
|
||||
text={application?.name ?? '???'}
|
||||
icon={importDefault(8379) /* metro dependency 8379 */}
|
||||
iconPosition="start"
|
||||
onPress={onPress}
|
||||
shrink
|
||||
/>
|
||||
{((Component) => <Component applicationId={participant.applicationId} />)(importDefault(15384) /* metro dependency 15384: QuestActivityButton */)}
|
||||
</Stack>
|
||||
);
|
||||
}
|
||||
|
||||
function UserButton({participant, onPress}) { // fn#118336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15656:1880, offset: 0x024d78c1, size: 261 bytes, params: 2, frame: 22
|
||||
const styles = useStyles();
|
||||
const {guildId,
|
||||
channelId} = env0_3.useContext(importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */);
|
||||
const defaultImport = importDefault(4617) /* metro dependency 4617: NicknameUtils */;
|
||||
const useName = defaultImport.useName;
|
||||
const user = participant.user;
|
||||
const value4 = Reflect.apply(useName, defaultImport, [guildId, channelId, user]);
|
||||
const voicePanelHeaderUserStateModule = require(15457) /* metro dependency 15457: VoicePanelHeaderUserState */;
|
||||
const useVoicePanelHeaderUserStateIcons = voicePanelHeaderUserStateModule.useVoicePanelHeaderUserStateIcons;
|
||||
const userIcons = styles.userIcons;
|
||||
const value5 = Reflect.apply(useVoicePanelHeaderUserStateIcons, voicePanelHeaderUserStateModule, [participant,
|
||||
guildId, userIcons]);
|
||||
const HeaderButton = (require(8554) /* metro dependency 8554: native */).HeaderButton;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<HeaderButton
|
||||
accessibilityRole="button"
|
||||
accessibilityHint={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Y2b7+e'])}
|
||||
icon={value5}
|
||||
iconPosition={value5 != null ? 'start' : undefined}
|
||||
text={value4}
|
||||
onPress={onPress}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function StageButton({channelId, onPress}) { // fn#118337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15656:2261, offset: 0x024d79c6, size: 356 bytes, params: 2, frame: 23
|
||||
var object2;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
let useStateFromStores = fluxModule.useStateFromStores;
|
||||
const value3 = Reflect.apply(useStateFromStores, fluxModule, [[StageInstanceStore], function() {
|
||||
return StageInstanceStore.getStageInstanceByChannel(channelId);
|
||||
}, [channelId]]);
|
||||
const moduleValue2 = fluxModule;
|
||||
useStateFromStores = moduleValue2.useStateFromStores;
|
||||
const value4 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(Reflect.apply(useStateFromStores,
|
||||
moduleValue2, [[ChannelStore], function() {
|
||||
return ChannelStore.getChannel(channelId);
|
||||
}]));
|
||||
const HeaderButton = (require(8554) /* metro dependency 8554: native */).HeaderButton;
|
||||
object2 = {accessibilityRole: 'button'};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.accessibilityHint = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Y2b7+e']);
|
||||
let r6 = value3?.topic ?? value4;
|
||||
r6 = r6 ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.zLZPmk);
|
||||
object2.text = r6;
|
||||
object2.icon = importDefault(6655) /* metro dependency 6655 */;
|
||||
object2.iconPosition = 'start';
|
||||
object2.onPress = onPress;
|
||||
return <HeaderButton {...object2} />;
|
||||
}
|
||||
|
||||
function VoicePanelTitleButton() { // fn#118340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15656:2733, offset: 0x024d7b45, size: 367 bytes, params: 1, frame: 23
|
||||
const value2 = env0_3.useContext(importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */);
|
||||
const guildId = value2.guildId;
|
||||
const channelId = value2.channelId;
|
||||
const channelType = value2.channelType;
|
||||
const value3 = (require(8621) /* metro dependency 8621: useStateFromSharedValue */).useDerivedStateFromSharedValue(value2.focused,
|
||||
function(a0) {
|
||||
return a0?.id;
|
||||
});
|
||||
const ChannelTypes = (require(677) /* metro dependency 677: ChannelTypes */).ChannelTypes;
|
||||
const GUILD_STAGE_VOICE = ChannelTypes.GUILD_STAGE_VOICE;
|
||||
const value4 = (importDefault(15456) /* metro dependency 15456: useStableParticipant */)(value3, channelId, guildId);
|
||||
const value5 = env0_3.useCallback(_fun118342, [guildId, channelId]);
|
||||
if (value4 != null) {
|
||||
var type = value4.type;
|
||||
var STREAM = ParticipantTypes.STREAM;
|
||||
if (type === STREAM) {
|
||||
return <StreamButton participant={value4} onPress={value5} />;
|
||||
}
|
||||
type = value4.type;
|
||||
var ACTIVITY = ParticipantTypes.ACTIVITY;
|
||||
if (type === ACTIVITY) {
|
||||
return <ActivityButton participant={value4} onPress={value5} />;
|
||||
}
|
||||
type = value4.type;
|
||||
var USER = ParticipantTypes.USER;
|
||||
if (type === USER) {
|
||||
return <UserButton participant={value4} onPress={value5} />;
|
||||
}
|
||||
}
|
||||
return ((Component) => <Component channelId={channelId} onPress={value5} />)(channelType === GUILD_STAGE_VOICE ? StageButton : ChannelButton);
|
||||
}
|
||||
|
||||
function _fun118342() { // fn#118342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15656:3000, offset: 0x024d7cc9, size: 50 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = require(15461) /* metro dependency 15461: VoicePanelSettingsActionCreators */;
|
||||
value.openVoicePanelSettingsActionSheet(guildId, channelId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/* Metro module 15524; source: modules/voice_panel/native/shared/VoicePanelVisualEffectView.tsx; dependencies: [31, 27, 33, 4501, 697, 3860, 1357, 8554, 2] */
|
||||
function _fun118867(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15721:6, offset: 0x024f25ba, size: 310 bytes, params: 8, frame: 23
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const StyleSheet = value2.StyleSheet;
|
||||
const env0_3 = value2.View;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value3.jsx;
|
||||
const env0_5 = value3.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {};
|
||||
copyDataProperties(object5, StyleSheet.absoluteFillObject, undefined);
|
||||
object4.wrapper = object5;
|
||||
const object6 = {'position': 'absolute', 'top': 1, 'left': 1, 'right': 1, 'bottom': 1, 'borderWidth': 1};
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object6.borderColor = BORDER_SUBTLE;
|
||||
const VOICE_PANEL_CONTROLS_BORDER_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.VOICE_PANEL_CONTROLS_BORDER_RADIUS;
|
||||
object6.borderRadius = VOICE_PANEL_CONTROLS_BORDER_RADIUS;
|
||||
object4.border = object6;
|
||||
const env0_6 = Reflect.apply(createStyles, createStylesModule, [object4]);
|
||||
value = value.memo(VoicePanelVisualEffectViewInner);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/shared/VoicePanelVisualEffectView.tsx');
|
||||
exports.VoicePanelVisualEffectView = value;
|
||||
}
|
||||
|
||||
function VoicePanelVisualEffectViewInner({matchAppTheme}) { // fn#118868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15721:426, offset: 0x024f26f0, size: 236 bytes, params: 2, frame: 20
|
||||
matchAppTheme = !(matchAppTheme === undefined) && matchAppTheme;
|
||||
const r5 = matchAppTheme ? undefined : 'dark';
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const THEME_LOCKED_BLUR_FALLBACK = (importDefault(697) /* metro dependency 697: native */).colors.THEME_LOCKED_BLUR_FALLBACK;
|
||||
const value5 = Reflect.apply(useToken, useTokenModule, [THEME_LOCKED_BLUR_FALLBACK]);
|
||||
const styles = useStyles();
|
||||
const value6 = (importDefault(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */)('VoicePanelVisualEffectView');
|
||||
const BackgroundBlurFill = (require(8554) /* metro dependency 8554: native */).BackgroundBlurFill;
|
||||
const backgroundBlurFill = <BackgroundBlurFill blurTheme={r5} android_fallbackColor={matchAppTheme ? undefined : value5} />;
|
||||
return value6 ? <View style={styles.wrapper}>{backgroundBlurFill}<View style={styles.border} /></View> : backgroundBlurFill;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
/* Metro module 9244; source: modules/voice_panel/native/shared/VoiceStateIcons.tsx; dependencies: [31, 27, 33, 4501, 697, 9245, 9246, 9248, 9250, 9252, 1360, 1305, 7744, 9254, 9255, 2] */
|
||||
function _fun72276(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9429:6, offset: 0x01d41037, size: 320 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).StyleSheet;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value2.jsx;
|
||||
const env0_5 = value2.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
const ICON_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.ICON_FEEDBACK_CRITICAL;
|
||||
object2.redTint = {tintColor: ICON_FEEDBACK_CRITICAL};
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
object2.defaultTint = {tintColor: INTERACTIVE_TEXT_DEFAULT};
|
||||
object2.noTint = {tintColor: undefined};
|
||||
const env0_6 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
const value4 = value.memo(_fun72278);
|
||||
value = value.memo(_fun72279);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/shared/VoiceStateIcons.tsx');
|
||||
exports.MuteDeafenIcon = value4;
|
||||
exports.VideoIcon = value;
|
||||
}
|
||||
|
||||
function VideoDisabledSvgIcon(a0) { // fn#72277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9429:991, offset: 0x01d41177, size: 416 bytes, params: 2, frame: 25
|
||||
const size = a0.size;
|
||||
const value = undefined;
|
||||
const r5 = size !== value ? size : (require(1305) /* metro dependency 1305: native */).IconSizes.MEDIUM;
|
||||
const style = a0.style;
|
||||
const value3 = Object.create(null);
|
||||
value3.size = 0;
|
||||
value3.style = 0;
|
||||
const value4 = copyDataProperties({}, a0, value3, undefined);
|
||||
const styles = useStyles();
|
||||
const iconStyle = (require(1305) /* metro dependency 1305: native */).getIconStyle(r5);
|
||||
const value7 = StyleSheet.flatten(style);
|
||||
let tintColor = value7 == null ? value : value7.tintColor;
|
||||
tintColor = tintColor ?? styles.defaultTint.tintColor;
|
||||
const defaultImport = importDefault(7744) /* metro dependency 7744 */;
|
||||
const defaultImportProps = {...value4};
|
||||
defaultImportProps['style'] = [iconStyle, value7];
|
||||
defaultImportProps['viewBox'] = '0 0 24 24';
|
||||
const Path = (require(7744) /* metro dependency 7744 */).Path;
|
||||
const items2 = [<Path d="M8.48485 19H13C15.2091 19 17 17.2091 17 15L19.563 17.0504C20.5451 17.8361 22 17.1368 22 15.8791V8.12094C22 7.35968 21.467 6.80301 20.8285 6.65636L8.48485 19Z" fill={tintColor} />];
|
||||
items2[1] = <Path d="M14.9873 5.52783C14.4019 5.192 13.7233 5 13 5H6C3.79086 5 2 6.79086 2 9V15C2 15.9811 2.35325 16.8798 2.93949 17.5757L14.9873 5.52783Z" fill={tintColor} />;
|
||||
items2[2] = <Path d="M21.2785 2.70712C20.888 2.31659 20.2549 2.31659 19.8643 2.70711L2.70711 19.8643C2.31658 20.2549 2.31658 20.888 2.70711 21.2785L2.72146 21.2929C3.11199 21.6834 3.74515 21.6834 4.13567 21.2929L21.2929 4.13568C21.6834 3.74515 21.6834 3.11199 21.2929 2.72147L21.2785 2.70712Z" fill={styles.redTint.tintColor} />;
|
||||
return ((Component) => <Component {...defaultImportProps}>{items2}</Component>)(defaultImport);
|
||||
}
|
||||
|
||||
function _fun72278({style, state, alwaysWhite}) { // fn#72278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9429:338, offset: 0x01d41317, size: 581 bytes, params: 2, frame: 20
|
||||
const MicrophoneDenyIcon = (require(9250) /* metro dependency 9250: MicrophoneDenyIcon */).MicrophoneDenyIcon;
|
||||
alwaysWhite = !(alwaysWhite === undefined) && alwaysWhite;
|
||||
const styles = useStyles();
|
||||
const MuteDeafenIconState = (require(9245) /* metro dependency 9245: VoiceStateIconUtils */).MuteDeafenIconState;
|
||||
const DEAFENED_SERVER = MuteDeafenIconState.DEAFENED_SERVER;
|
||||
if (DEAFENED_SERVER === state) {
|
||||
const HeadphonesDenyIcon = (require(9246) /* metro dependency 9246: HeadphonesDenyIcon */).HeadphonesDenyIcon;
|
||||
return <HeadphonesDenyIcon style={[style, alwaysWhite ? null : styles.redTint]} size="xs" />;
|
||||
}
|
||||
const DEAFENED = MuteDeafenIconState.DEAFENED;
|
||||
if (DEAFENED === state) {
|
||||
const HeadphonesSlashIcon = (require(9248) /* metro dependency 9248: HeadphonesSlashIcon */).HeadphonesSlashIcon;
|
||||
return <HeadphonesSlashIcon style={[style]} size="xs" />;
|
||||
}
|
||||
const MUTED_SERVER = MuteDeafenIconState.MUTED_SERVER;
|
||||
if (MUTED_SERVER === state) {
|
||||
return <MicrophoneDenyIcon style={[style, alwaysWhite ? null : styles.redTint]} size="xs" />;
|
||||
}
|
||||
const MUTED_LOCAL = MuteDeafenIconState.MUTED_LOCAL;
|
||||
if (MUTED_LOCAL === state) {
|
||||
return <MicrophoneDenyIcon style={[style]} size="xs" />;
|
||||
}
|
||||
const MUTED = MuteDeafenIconState.MUTED;
|
||||
if (MUTED === state) {
|
||||
const MicrophoneSlashIcon = (require(9252) /* metro dependency 9252: MicrophoneSlashIcon */).MicrophoneSlashIcon;
|
||||
return <MicrophoneSlashIcon style={[style]} size="xs" />;
|
||||
}
|
||||
(require(1360) /* metro dependency 1360: GlobalUtils */).assertNever(state);
|
||||
}
|
||||
|
||||
function _fun72279(a0) { // fn#72279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9429:1944, offset: 0x01d4155c, size: 393 bytes, params: 2, frame: 20
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const state = a0.state;
|
||||
const value = Object.create(null);
|
||||
value.state = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, undefined);
|
||||
const styles = useStyles();
|
||||
const VideoIconState = (require(9245) /* metro dependency 9245: VoiceStateIconUtils */).VideoIconState;
|
||||
const VIDEO_DISABLED_LOCAL_AUTO = VideoIconState.VIDEO_DISABLED_LOCAL_AUTO;
|
||||
if (VIDEO_DISABLED_LOCAL_AUTO === state) {
|
||||
var iconProps = {...value2};
|
||||
iconProps['source'] = importDefault(9254) /* metro dependency 9254 */;
|
||||
iconProps['style'] = [value2.style, styles.noTint];
|
||||
return <Icon {...iconProps} />;
|
||||
}
|
||||
const VIDEO_DISABLED_LOCAL = VideoIconState.VIDEO_DISABLED_LOCAL;
|
||||
if (VIDEO_DISABLED_LOCAL === state) {
|
||||
return <VideoDisabledSvgIcon {...value2} />;
|
||||
}
|
||||
const VIDEO_ACTIVE = VideoIconState.VIDEO_ACTIVE;
|
||||
if (VIDEO_ACTIVE === state) {
|
||||
var iconProps = {...value2};
|
||||
iconProps['source'] = importDefault(9255) /* metro dependency 9255 */;
|
||||
return <Icon {...iconProps} />;
|
||||
}
|
||||
(require(1360) /* metro dependency 1360: GlobalUtils */).assertNever(state);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user