51 lines
2.2 KiB
TypeScript
51 lines
2.2 KiB
TypeScript
// Module ID: 7163
|
|
// Function ID: 7164
|
|
// Name: PoggermodeConstants
|
|
// Dependencies: [2]
|
|
|
|
// Module 7163 (PoggermodeConstants)
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let items;
|
|
let items1;
|
|
let items2;
|
|
let items3;
|
|
let items4;
|
|
let obj = { LEVEL_1: 0, [0]: "LEVEL_1", LEVEL_2: 1, [1]: "LEVEL_2", LEVEL_3: 2, [2]: "LEVEL_3", LEVEL_4: 3, [3]: "LEVEL_4", LEVEL_5: 4, [4]: "LEVEL_5" };
|
|
const obj2 = { [obj.LEVEL_1]: items, [obj.LEVEL_2]: items1, [obj.LEVEL_3]: items2, [obj.LEVEL_4]: items3, [obj.LEVEL_5]: items4 };
|
|
items = [[1, 0.0001], [25, 0.05], [50, 0.1], [100, 0.5], [250, 1], [500, 2], [1000, 3], [9001, 4]];
|
|
items1 = [[1, 0.0001], [25, 0.25], [50, 0.5], [100, 1], [250, 2.5], [500, 5], [1000, 7.5], [9001, 10]];
|
|
items2 = [[1, 0.001], [25, 0.5], [50, 1], [100, 2], [250, 4], [500, 8], [1000, 12], [9001, 16]];
|
|
items3 = [[1, 0.25], [25, 0.75], [50, 1], [100, 2], [250, 4], [500, 8], [1000, 20], [9001, 50]];
|
|
items4 = [[1, 0.001], [25, 0.5], [50, 1], [100, 2], [250, 5], [500, 10], [1000, 100], [9001, 10000]];
|
|
const keys = Object.keys(obj2);
|
|
const reduced = keys.reduce((acc, item) => {
|
|
const obj = {};
|
|
const merged = Object.assign(acc);
|
|
const arr = obj2[item];
|
|
obj[item] = arr.map((item) => {
|
|
let tmp;
|
|
[tmp] = item;
|
|
return tmp;
|
|
});
|
|
return obj;
|
|
}, { [obj.LEVEL_1]: [], [obj.LEVEL_2]: [], [obj.LEVEL_3]: [], [obj.LEVEL_4]: [], [obj.LEVEL_5]: [] });
|
|
const keys1 = Object.keys(obj2);
|
|
const reduced1 = keys1.reduce((acc, item) => {
|
|
const obj = {};
|
|
const merged = Object.assign(acc);
|
|
const arr = obj2[item];
|
|
obj[item] = arr.map((item) => {
|
|
let tmp;
|
|
[, tmp] = item;
|
|
return tmp;
|
|
});
|
|
return obj;
|
|
}, { [obj.LEVEL_1]: [], [obj.LEVEL_2]: [], [obj.LEVEL_3]: [], [obj.LEVEL_4]: [], [obj.LEVEL_5]: [] });
|
|
const result = size.fileFinishedImporting("modules/poggermode/PoggermodeConstants.tsx");
|
|
|
|
export const ConfettiLocation = { CHAT_INPUT: 0, [0]: "CHAT_INPUT", REACTION: 1, [1]: "REACTION", MEMBER_USER: 2, [2]: "MEMBER_USER", CALL_TILE: 3, [3]: "CALL_TILE" };
|
|
export const ShakeLocation = { CHAT_INPUT: 0, [0]: "CHAT_INPUT", VOICE_USER: 1, [1]: "VOICE_USER", MENTION: 2, [2]: "MENTION" };
|
|
export const ShakeLevel = obj;
|
|
export const SHAKE_STEPS = reduced;
|
|
export const SHAKE_STEP_DIVIDER = reduced1;
|