47 lines
2.5 KiB
TypeScript
47 lines
2.5 KiB
TypeScript
/* Metro module 12608; source: modules/haven/HavenUtils.tsx; dependencies: [12609, 1244, 2936, 2] */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as ConstantsModule from './constants.tsx'; /* Metro dependency 12609 */
|
|
|
|
function _fun96737(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12798:6, offset: 0x0216460e, size: 156 bytes, params: 8, frame: 20
|
|
const env0_0 = require;
|
|
const closure = function(a0) {
|
|
return {userId: a0.user_id, position: a0.position, avatar: a0.avatar};
|
|
};
|
|
const closure2 = function(a0) {
|
|
return {id: a0.id, claimedBy: a0.claimed_by};
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/haven/HavenUtils.tsx');
|
|
exports.parseParticipant = closure;
|
|
exports.parseSeat = closure2;
|
|
exports.parseRoom = function(a0) {
|
|
var object = {roomId: a0.room_id};
|
|
object.participants = a0.participants.map(parseParticipant);
|
|
object.seats = a0.seats.map(parseSeat);
|
|
return object;
|
|
};
|
|
exports.getHavenSoundControlName = getHavenSoundControlName;
|
|
function getHavenSoundControlName(a0) { // fn#96741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12798:529, offset: 0x02164735, size: 301 bytes, params: 2, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
const HavenSoundKeys = (ConstantsModule).HavenSoundKeys;
|
|
const RADIO = HavenSoundKeys.RADIO;
|
|
if (RADIO === a0) {
|
|
return intl.string((importDefault(2936) /* metro dependency 2936: HavenMessages */).AjiGKB);
|
|
}
|
|
const ENVIRONMENT = HavenSoundKeys.ENVIRONMENT;
|
|
if (ENVIRONMENT === a0) {
|
|
return intl.string((importDefault(2936) /* metro dependency 2936: HavenMessages */).YEYIbI);
|
|
}
|
|
const CAMPFIRE = HavenSoundKeys.CAMPFIRE;
|
|
if (CAMPFIRE === a0) {
|
|
return intl.string((importDefault(2936) /* metro dependency 2936: HavenMessages */)['Vk9+Ez']);
|
|
}
|
|
return '';
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun96737, 12608, [12609, 1244, 2936, 2]) /* metro module 12608, dependencies: [12609, 1244, 2936, 2] */;
|