337 lines
14 KiB
TypeScript
337 lines
14 KiB
TypeScript
// Module ID: 16297
|
|
// Function ID: 16298
|
|
// Name: getName
|
|
// Dependencies: [16298, 1236, 2157, 16299, 16300, 16301, 2]
|
|
// Exports: getBlurredBackgroundScale, getSeatName
|
|
|
|
// Module 16297 (getName)
|
|
import { ytIYuY as IE3e0y } from "messagesProxy";
|
|
import { ytIYuY as IE3e0y } from "messagesProxy";
|
|
import { ytIYuY as IE3e0y } from "messagesProxy";
|
|
import { p7JgFM as IE3e0y } from "messagesProxy";
|
|
import { YpJ7QS } from "messagesProxy";
|
|
import { p7JgFM as IE3e0y } from "messagesProxy";
|
|
import { wxkoLF as YpJ7QS } from "messagesProxy";
|
|
import { p7JgFM as IE3e0y } from "messagesProxy";
|
|
import { Qt29nt as YpJ7QS } from "messagesProxy";
|
|
import { wjBOG8 as IE3e0y } from "messagesProxy";
|
|
import { lQKxC5 as YpJ7QS } from "messagesProxy";
|
|
import { wjBOG8 as IE3e0y } from "messagesProxy";
|
|
import { WMBV4i as YpJ7QS } from "messagesProxy";
|
|
import { wjBOG8 as IE3e0y } from "messagesProxy";
|
|
import { "\"yG+xS0\"" as YpJ7QS } from "messagesProxy";
|
|
import { wjBOG8 as IE3e0y } from "messagesProxy";
|
|
import { "\"5ZigwU\"" as YpJ7QS } from "messagesProxy";
|
|
import { wjBOG8 as IE3e0y } from "messagesProxy";
|
|
import { iVfA9i as YpJ7QS } from "messagesProxy";
|
|
import { "\"C+LGlh\"" as IE3e0y } from "messagesProxy";
|
|
import { "\"C+LGlh\"" as IE3e0y } from "messagesProxy";
|
|
import { "\"C+LGlh\"" as IE3e0y } from "messagesProxy";
|
|
import { "\"C+LGlh\"" as IE3e0y } from "messagesProxy";
|
|
import { Qt29nt as YpJ7QS } from "messagesProxy";
|
|
import { lkzfot as IE3e0y } from "messagesProxy";
|
|
import { lkzfot as IE3e0y } from "messagesProxy";
|
|
import { lkzfot as IE3e0y } from "messagesProxy";
|
|
import { IE3e0y } from "messagesProxy";
|
|
import { IE3e0y } from "messagesProxy";
|
|
import { IE3e0y } from "messagesProxy";
|
|
|
|
let IE3e0y = arg1;
|
|
let YpJ7QS = importDefault;
|
|
let obj = {};
|
|
obj = { background: null, backgroundBlurred: null, aspectRatio: 1.366583541147132, getName: null, seats: null, plants: null };
|
|
obj[0] = require("metadata");
|
|
obj[1] = require("metadata");
|
|
obj[3] = function getName() {
|
|
const intl = IE3e0y(1236).intl;
|
|
return intl.string(v3(2157).y33CVg);
|
|
};
|
|
obj = { name: "PC_SEAT_1", getLabel: null, position: null };
|
|
YpJ7QS = 1;
|
|
obj[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, number: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
obj[1] = v3;
|
|
return intl.formatToPlainString(v3(2157).crFI7e, obj);
|
|
};
|
|
obj[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][0];
|
|
const items = [obj, , , , , , , , , , , , , , , , , , , , ];
|
|
const obj1 = { name: "PC_SEAT_2", getLabel: null, position: null };
|
|
YpJ7QS = 2;
|
|
obj1[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, number: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
obj[1] = v3;
|
|
return intl.formatToPlainString(v3(2157).crFI7e, obj);
|
|
};
|
|
obj1[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][1];
|
|
items[1] = obj1;
|
|
const obj2 = { name: "PC_SEAT_3", getLabel: null, position: null };
|
|
YpJ7QS = 3;
|
|
obj2[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, number: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
obj[1] = v3;
|
|
return intl.formatToPlainString(v3(2157).crFI7e, obj);
|
|
};
|
|
obj2[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][2];
|
|
items[2] = obj2;
|
|
const obj3 = { name: "DUO_SEAT_1", getLabel: null, position: null };
|
|
obj3[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, position: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
const intl3 = IE3e0y(1236).intl;
|
|
obj[1] = intl3.string(v3);
|
|
return intl.formatToPlainString(v3(2157).LFdLjz, obj);
|
|
};
|
|
obj3[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][3];
|
|
items[3] = obj3;
|
|
const obj4 = { name: "DUO_SEAT_2", getLabel: null, position: null };
|
|
obj4[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, position: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
const intl3 = IE3e0y(1236).intl;
|
|
obj[1] = intl3.string(v3);
|
|
return intl.formatToPlainString(v3(2157).LFdLjz, obj);
|
|
};
|
|
obj4[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][4];
|
|
items[4] = obj4;
|
|
const obj5 = { name: "DUO_SEAT_STANDING_1", getLabel: null, position: null };
|
|
obj5[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, position: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
const intl3 = IE3e0y(1236).intl;
|
|
obj[1] = intl3.string(v3);
|
|
return intl.formatToPlainString(v3(2157).LFdLjz, obj);
|
|
};
|
|
obj5[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][5];
|
|
items[5] = obj5;
|
|
const obj6 = { name: "MAIN_COUCH_SEAT_1", getLabel: null, position: null };
|
|
obj6[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, position: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
const intl3 = IE3e0y(1236).intl;
|
|
obj[1] = intl3.string(v3);
|
|
return intl.formatToPlainString(v3(2157).LFdLjz, obj);
|
|
};
|
|
obj6[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][6];
|
|
items[6] = obj6;
|
|
const obj7 = { name: "MAIN_COUCH_SEAT_2", getLabel: null, position: null };
|
|
obj7[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, position: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
const intl3 = IE3e0y(1236).intl;
|
|
obj[1] = intl3.string(v3);
|
|
return intl.formatToPlainString(v3(2157).LFdLjz, obj);
|
|
};
|
|
obj7[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][7];
|
|
items[7] = obj7;
|
|
const obj8 = { name: "MAIN_COUCH_SEAT_3", getLabel: null, position: null };
|
|
obj8[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, position: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
const intl3 = IE3e0y(1236).intl;
|
|
obj[1] = intl3.string(v3);
|
|
return intl.formatToPlainString(v3(2157).LFdLjz, obj);
|
|
};
|
|
obj8[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][8];
|
|
items[8] = obj8;
|
|
const obj9 = { name: "MAIN_COUCH_SEAT_4", getLabel: null, position: null };
|
|
obj9[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, position: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
const intl3 = IE3e0y(1236).intl;
|
|
obj[1] = intl3.string(v3);
|
|
return intl.formatToPlainString(v3(2157).LFdLjz, obj);
|
|
};
|
|
obj9[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][9];
|
|
items[9] = obj9;
|
|
const obj10 = { name: "MAIN_COUCH_SEAT_5", getLabel: null, position: null };
|
|
obj10[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, position: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
const intl3 = IE3e0y(1236).intl;
|
|
obj[1] = intl3.string(v3);
|
|
return intl.formatToPlainString(v3(2157).LFdLjz, obj);
|
|
};
|
|
obj10[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][10];
|
|
items[10] = obj10;
|
|
const obj11 = { name: "SIDE_GROUP_SEAT_1", getLabel: null, position: null };
|
|
YpJ7QS = 1;
|
|
obj11[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, number: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
obj[1] = v3;
|
|
return intl.formatToPlainString(v3(2157).crFI7e, obj);
|
|
};
|
|
obj11[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][11];
|
|
items[11] = obj11;
|
|
const obj12 = { name: "SIDE_GROUP_SEAT_2", getLabel: null, position: null };
|
|
YpJ7QS = 2;
|
|
obj12[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, number: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
obj[1] = v3;
|
|
return intl.formatToPlainString(v3(2157).crFI7e, obj);
|
|
};
|
|
obj12[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][12];
|
|
items[12] = obj12;
|
|
const obj13 = { name: "SIDE_GROUP_SEAT_3", getLabel: null, position: null };
|
|
YpJ7QS = 3;
|
|
obj13[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, number: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
obj[1] = v3;
|
|
return intl.formatToPlainString(v3(2157).crFI7e, obj);
|
|
};
|
|
obj13[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][13];
|
|
items[13] = obj13;
|
|
const obj14 = { name: "SIDE_GROUP_SEAT_STANDING_1", getLabel: null, position: null };
|
|
obj14[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, position: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
const intl3 = IE3e0y(1236).intl;
|
|
obj[1] = intl3.string(v3);
|
|
return intl.formatToPlainString(v3(2157).LFdLjz, obj);
|
|
};
|
|
obj14[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][14];
|
|
items[14] = obj14;
|
|
const obj15 = { name: "BACKROOM_SEAT_1", getLabel: null, position: null, dim: true };
|
|
YpJ7QS = 1;
|
|
obj15[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, number: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
obj[1] = v3;
|
|
return intl.formatToPlainString(v3(2157).crFI7e, obj);
|
|
};
|
|
obj15[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][15];
|
|
items[15] = obj15;
|
|
const obj16 = { name: "BACKROOM_SEAT_2", getLabel: null, position: null, dim: true };
|
|
YpJ7QS = 2;
|
|
obj16[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, number: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
obj[1] = v3;
|
|
return intl.formatToPlainString(v3(2157).crFI7e, obj);
|
|
};
|
|
obj16[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][16];
|
|
items[16] = obj16;
|
|
const obj17 = { name: "BACKROOM_SEAT_3", getLabel: null, position: null, dim: true };
|
|
YpJ7QS = 3;
|
|
obj17[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, number: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
obj[1] = v3;
|
|
return intl.formatToPlainString(v3(2157).crFI7e, obj);
|
|
};
|
|
obj17[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][17];
|
|
items[17] = obj17;
|
|
const obj18 = { name: "RAFTERS_SEAT_1", getLabel: null, position: null };
|
|
YpJ7QS = 1;
|
|
obj18[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, number: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
obj[1] = v3;
|
|
return intl.formatToPlainString(v3(2157).crFI7e, obj);
|
|
};
|
|
obj18[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][18];
|
|
items[18] = obj18;
|
|
const obj19 = { name: "RAFTERS_SEAT_2", getLabel: null, position: null };
|
|
YpJ7QS = 2;
|
|
obj19[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, number: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
obj[1] = v3;
|
|
return intl.formatToPlainString(v3(2157).crFI7e, obj);
|
|
};
|
|
obj19[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][19];
|
|
items[19] = obj19;
|
|
const obj20 = { name: "RAFTERS_SEAT_3", getLabel: null, position: null };
|
|
YpJ7QS = 3;
|
|
obj20[1] = () => {
|
|
const intl = IE3e0y(1236).intl;
|
|
const obj = { seatType: null, number: null };
|
|
const intl2 = IE3e0y(1236).intl;
|
|
obj[0] = intl2.string(IE3e0y);
|
|
obj[1] = v3;
|
|
return intl.formatToPlainString(v3(2157).crFI7e, obj);
|
|
};
|
|
obj20[2] = require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][20];
|
|
items[20] = obj20;
|
|
obj[4] = items;
|
|
const items1 = [{ x: 45.57, y: 50.62 }];
|
|
obj[5] = items1;
|
|
obj[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT] = obj;
|
|
const result = require("messagesProxy").fileFinishedImporting("modules/guild_rooms/GuildRoomConstants.tsx");
|
|
|
|
export const GUILD_ROOM_SPATIAL_AUDIO_MODE = "guild-room";
|
|
export const DEFAULT_BACKGROUND_POSITION = { imageOffsetX: 0, imageOffsetY: 0, imageWidth: 0, imageHeight: 0 };
|
|
export const BACKGROUND_BLUR_WIDTH_FACTOR = 0.0228310502283105;
|
|
export const getSeatName = function getSeatName(arg0, arg1) {
|
|
const IE3e0y = arg0;
|
|
let closure_1 = arg1;
|
|
const seats = obj[IE3e0y(undefined, 16298).GuildRoomBackgrounds.DEFAULT].seats;
|
|
const found = seats.find((position) => {
|
|
let tmp = position.position.x === closure_0;
|
|
if (tmp) {
|
|
tmp = position.position.y === closure_1;
|
|
}
|
|
return tmp;
|
|
});
|
|
let str;
|
|
if (found != null) {
|
|
str = found.name;
|
|
}
|
|
if (str == null) {
|
|
str = "";
|
|
}
|
|
return str;
|
|
};
|
|
export const getBlurredBackgroundScale = function getBlurredBackgroundScale(arg0, arg1) {
|
|
let num = 0.045662100456621;
|
|
if (arg1) {
|
|
num = 0.045662100456621 * arg0;
|
|
}
|
|
return 1 + num;
|
|
};
|
|
export const GUILD_ROOM_BACKGROUND_CONFIG = obj;
|