decord/source/modules/haven/HavenUtils.tsx

37 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 12751
// Function ID: 99352
2026-07-20 16:05:17 +00:00
// Name: parseParticipant
2026-07-27 11:26:19 +00:00
// Dependencies: [12752, 1212, 2911, 2]
2026-07-20 16:05:17 +00:00
// Exports: getHavenSoundControlName, parseRoom
2026-07-27 11:26:19 +00:00
// Module 12751 (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-27 11:26:19 +00:00
if (require(12752) /* HavenGenres */.HavenSoundKeys.RADIO === arg0) {
2026-07-23 10:11:24 +00:00
const intl3 = require(1212) /* getSystemLocale */.intl;
2026-07-25 08:10:48 +00:00
return intl3.string(importDefault(2911).AjiGKB);
2026-07-27 11:26:19 +00:00
} else if (require(12752) /* HavenGenres */.HavenSoundKeys.ENVIRONMENT === arg0) {
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
2026-07-25 08:10:48 +00:00
return intl2.string(importDefault(2911).YEYIbI);
2026-07-27 11:26:19 +00:00
} else if (require(12752) /* HavenGenres */.HavenSoundKeys.CAMPFIRE === arg0) {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
2026-07-25 08:10:48 +00:00
return intl.string(importDefault(2911)["Vk9+Ez"]);
2026-07-20 16:05:17 +00:00
} else {
return "";
}
};