71 lines
4.9 KiB
TypeScript
71 lines
4.9 KiB
TypeScript
/* Metro module 8839; source: modules/activity_status/native/PresenceActivityStatus.tsx; dependencies: [31, 661, 33, 6885, 8658, 8840, 8841, 8835, 8843, 8834, 8837, 2] */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun69007(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9024:6, offset: 0x01c6481e, size: 179 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/activity_status/native/PresenceActivityStatus.tsx');
|
|
exports.default = PresenceActivityStatus;
|
|
function PresenceActivityStatus({activity, iconStyle, textStyle, maxFontSizeMultiplier, hideIcon, hideText}) { // fn#69008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9024:270, offset: 0x01c648d1, size: 506 bytes, params: 2, frame: 25
|
|
var r14;
|
|
var r7;
|
|
var r5;
|
|
var value;
|
|
var text;
|
|
var jsxRuntimeEnv0_5Binding;
|
|
var items2;
|
|
hideIcon = !(hideIcon === undefined) && hideIcon;
|
|
hideText = !(hideText === undefined) && hideText;
|
|
if (hideIcon) {
|
|
if (hideText) {
|
|
return null;
|
|
}
|
|
text = (importDefault(8843) /* metro dependency 8843: getActivityStatusText */)(activity, true).text;
|
|
r14 = (importDefault(6885) /* metro dependency 6885: isEmbeddedActivity */)(activity) ? (require(8840) /* metro dependency 8840: AppsIcon */).AppsIcon : activity.type === ActivityTypes.PLAYING ? (require(8658) /* metro dependency 8658: GameControllerIcon */).GameControllerIcon : activity.type === ActivityTypes.LISTENING ? (require(8841) /* metro dependency 8841: MusicIcon */).MusicIcon : activity.type === ActivityTypes.WATCHING || activity.type === ActivityTypes.STREAMING ? (require(8835) /* metro dependency 8835: TvIcon */).TvIcon : activity.type !== ActivityTypes.COMPETING ? null : (require(8658) /* metro dependency 8658: GameControllerIcon */).GameControllerIcon;
|
|
jsxRuntimeEnv0_5Binding = jsxRuntimeEnv0_5;
|
|
r7 = !hideIcon && r14 != null;
|
|
r7 = r7 && ((Component) => <Component icon={r14} style={iconStyle} />)(importDefault(8834) /* metro dependency 8834: ActivityStatusIcon */);
|
|
items2 = [r7];
|
|
if (hideText) {
|
|
r5 = !hideText;
|
|
} else {
|
|
value = importDefault(8837) /* metro dependency 8837: ActivityStatusText */;
|
|
value = ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{text}</Component>)(value);
|
|
r5 = value;
|
|
}
|
|
items2[1] = r5;
|
|
return (
|
|
<>
|
|
{items2}
|
|
</>
|
|
);
|
|
}
|
|
text = (importDefault(8843) /* metro dependency 8843: getActivityStatusText */)(activity, true).text;
|
|
r14 = (importDefault(6885) /* metro dependency 6885: isEmbeddedActivity */)(activity) ? (require(8840) /* metro dependency 8840: AppsIcon */).AppsIcon : activity.type === ActivityTypes.PLAYING ? (require(8658) /* metro dependency 8658: GameControllerIcon */).GameControllerIcon : activity.type === ActivityTypes.LISTENING ? (require(8841) /* metro dependency 8841: MusicIcon */).MusicIcon : activity.type === ActivityTypes.WATCHING || activity.type === ActivityTypes.STREAMING ? (require(8835) /* metro dependency 8835: TvIcon */).TvIcon : activity.type !== ActivityTypes.COMPETING ? null : (require(8658) /* metro dependency 8658: GameControllerIcon */).GameControllerIcon;
|
|
jsxRuntimeEnv0_5Binding = jsxRuntimeEnv0_5;
|
|
r7 = !hideIcon && r14 != null && ((Component) => <Component icon={r14} style={iconStyle} />)(importDefault(8834) /* metro dependency 8834: ActivityStatusIcon */);
|
|
if (hideText) {
|
|
r5 = !hideText;
|
|
} else {
|
|
value = importDefault(8837) /* metro dependency 8837: ActivityStatusText */;
|
|
value = ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{text}</Component>)(value);
|
|
r5 = value;
|
|
}
|
|
return (
|
|
<>
|
|
{r7}
|
|
{r5}
|
|
</>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun69007, 8839, [31, 661, 33, 6885, 8658, 8840, 8841, 8835, 8843, 8834, 8837,
|
|
2]) /* metro module 8839, dependencies: [31, 661, 33, 6885, 8658, 8840, 8841, 8835, 8843, 8834, 8837, 2] */;
|