106 lines
5.8 KiB
TypeScript
106 lines
5.8 KiB
TypeScript
/* Metro module 8848; source: modules/activity_status/native/VoiceActivityStatus.tsx; dependencies: [31, 33, 4501, 8849, 8837, 1244, 2] */
|
|
function _fun69022(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9033:6, offset: 0x01c65478, size: 196 bytes, params: 8, frame: 20
|
|
const env0_0 = require;
|
|
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.Fragment;
|
|
const env0_5 = value.jsxs;
|
|
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({icon: {flexShrink: 0}});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activity_status/native/VoiceActivityStatus.tsx');
|
|
exports.default = VoiceActivityStatus;
|
|
}
|
|
|
|
function VoiceActivityStatus({channel, iconStyle, textStyle, maxFontSizeMultiplier, hideIcon, hideText}) { // fn#69023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9033:288, offset: 0x01c6553c, size: 459 bytes, params: 2, frame: 28
|
|
var r7;
|
|
var r6;
|
|
var r0;
|
|
var jsxRuntimeEnv0_4Binding;
|
|
var items2;
|
|
var isGuildStageVoice2;
|
|
var defaultImport2;
|
|
var object3;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
hideIcon = !(hideIcon === undefined) && hideIcon;
|
|
hideText = !(hideText === undefined) && hideText;
|
|
const styles = useStyles();
|
|
if (hideIcon) {
|
|
if (hideText) {
|
|
r0 = null;
|
|
} else {
|
|
jsxRuntimeEnv0_4Binding = jsxRuntimeEnv0_4;
|
|
r7 = !hideIcon && ((Component) => <Component channel={channel} size="xxs" color="status-positive" style={[styles.icon,
|
|
|
|
|
|
iconStyle]} />)(importDefault(8849) /* metro dependency 8849: UserProfileVoiceActivityIcon */);
|
|
items2 = [r7];
|
|
if (hideText) {
|
|
r6 = !hideText;
|
|
} else {
|
|
if (channel.isDM()) {
|
|
r7 = ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9FaEzi'])}</Component>)(importDefault(8837) /* metro dependency 8837: ActivityStatusText */);
|
|
} else if (channel.isGroupDM()) {
|
|
r7 = ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9FaEzi'])}</Component>)(importDefault(8837) /* metro dependency 8837: ActivityStatusText */);
|
|
} else {
|
|
isGuildStageVoice2 = channel.isGuildStageVoice();
|
|
defaultImport2 = importDefault(8837) /* metro dependency 8837: ActivityStatusText */;
|
|
string = intl.string;
|
|
r7 = isGuildStageVoice2 ? ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{Reflect.apply(string,
|
|
|
|
|
|
|
|
|
|
intl,
|
|
[t.QygGCN])}</Component>)(defaultImport2) : ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{Reflect.apply(string,
|
|
|
|
|
|
|
|
|
|
intl, [t.msxteM])}</Component>)(defaultImport2);
|
|
}
|
|
r6 = r7;
|
|
}
|
|
items2[1] = r6;
|
|
r0 = <>{items2}</>;
|
|
}
|
|
} else {
|
|
jsxRuntimeEnv0_4Binding = jsxRuntimeEnv0_4;
|
|
r7 = !hideIcon && ((Component) => <Component channel={channel} size="xxs" color="status-positive" style={[styles.icon,
|
|
|
|
iconStyle]} />)(importDefault(8849) /* metro dependency 8849: UserProfileVoiceActivityIcon */);
|
|
items2 = [r7];
|
|
if (hideText) {
|
|
r6 = !hideText;
|
|
} else {
|
|
if (channel.isDM()) {
|
|
r7 = ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9FaEzi'])}</Component>)(importDefault(8837) /* metro dependency 8837: ActivityStatusText */);
|
|
} else if (channel.isGroupDM()) {
|
|
r7 = ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9FaEzi'])}</Component>)(importDefault(8837) /* metro dependency 8837: ActivityStatusText */);
|
|
} else {
|
|
isGuildStageVoice2 = channel.isGuildStageVoice();
|
|
defaultImport2 = importDefault(8837) /* metro dependency 8837: ActivityStatusText */;
|
|
string = intl.string;
|
|
r7 = isGuildStageVoice2 ? ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{Reflect.apply(string,
|
|
|
|
|
|
|
|
intl,
|
|
[t.QygGCN])}</Component>)(defaultImport2) : ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{Reflect.apply(string,
|
|
|
|
|
|
|
|
intl, [t.msxteM])}</Component>)(defaultImport2);
|
|
}
|
|
r6 = r7;
|
|
}
|
|
items2[1] = r6;
|
|
r0 = <>{items2}</>;
|
|
}
|
|
return r0;
|
|
}
|
|
|