decord/source/modules/haven/HavenUtils.tsx

37 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 12739
// Function ID: 99220
2026-07-20 16:05:17 +00:00
// Name: parseParticipant
2026-07-24 07:16:23 +00:00
// Dependencies: [12740, 1212, 2910, 2]
2026-07-20 16:05:17 +00:00
// Exports: getHavenSoundControlName, parseRoom
2026-07-24 07:16:23 +00:00
// Module 12739 (parseParticipant)
2026-07-20 16:05:17 +00:00
function parseParticipant(userId) {
return { userId: userId.user_id, position: userId.position, avatar: userId.avatar };
}
function parseSeat(id) {
return { id: id.id, claimedBy: id.claimed_by };
}
2026-07-23 10:11:24 +00:00
const result = require("messagesProxy").fileFinishedImporting("modules/haven/HavenUtils.tsx");
2026-07-20 16:05:17 +00:00
export { parseParticipant };
export { parseSeat };
export const parseRoom = function parseRoom(roomId) {
const participants = roomId.participants;
const seats = roomId.seats;
return { roomId: roomId.room_id, participants: participants.map(parseParticipant), seats: seats.map(parseSeat) };
};
export const getHavenSoundControlName = function getHavenSoundControlName(arg0) {
2026-07-24 07:16:23 +00:00
if (require(12740) /* HavenGenres */.HavenSoundKeys.RADIO === arg0) {
2026-07-23 10:11:24 +00:00
const intl3 = require(1212) /* getSystemLocale */.intl;
return intl3.string(importDefault(2910).AjiGKB);
2026-07-24 07:16:23 +00:00
} else if (require(12740) /* HavenGenres */.HavenSoundKeys.ENVIRONMENT === arg0) {
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
return intl2.string(importDefault(2910).YEYIbI);
2026-07-24 07:16:23 +00:00
} else if (require(12740) /* HavenGenres */.HavenSoundKeys.CAMPFIRE === arg0) {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
return intl.string(importDefault(2910)["Vk9+Ez"]);
2026-07-20 16:05:17 +00:00
} else {
return "";
}
};