38 lines
1.8 KiB
TypeScript
38 lines
1.8 KiB
TypeScript
/* Metro module 14694; source: modules/channel/native/getChannelSubtitleData.tsx; dependencies: [1244, 2] */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun110867(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14891:6, offset: 0x0238a48a, size: 96 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/channel/native/getChannelSubtitleData.tsx');
|
|
exports.getChannelSubtitleData = getChannelSubtitleData;
|
|
function getChannelSubtitleData(a0) { // fn#110868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14891:200, offset: 0x0238a4ea, size: 190 bytes, params: 2, frame: 17
|
|
var object;
|
|
var intl;
|
|
if (a0 == null) {
|
|
return null;
|
|
}
|
|
const type = a0.type;
|
|
if (type === 'embedded-activities') {
|
|
return {subtitle: a0.name, type: a0.type};
|
|
}
|
|
if (type === 'event') {
|
|
return {subtitle: a0.name, type: a0.type};
|
|
}
|
|
if (type === 'go-live') {
|
|
object = {};
|
|
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
object.subtitle = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Pa817q);
|
|
object.type = a0.type;
|
|
return object;
|
|
}
|
|
if (type === 'voice') {
|
|
return {subtitle: a0.text, type: a0.type};
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun110867, 14694, [1244, 2]) /* metro module 14694, dependencies: [1244, 2] */;
|