37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
// Module ID: 11973
|
|
// Function ID: 11974
|
|
// Name: getRandomCustomStatusPrompt
|
|
// Dependencies: [11972, 1236, 2]
|
|
// Exports: default
|
|
|
|
// Module 11973 (getRandomCustomStatusPrompt)
|
|
import StatusTypes from "StatusTypes";
|
|
|
|
let c3;
|
|
let obj1;
|
|
({ CustomStatusPrompts: obj1, CustomStatusPromptValues: c3 } = StatusTypes);
|
|
const result = require("set").fileFinishedImporting("modules/custom_status/utils/getRandomCustomStatusPrompt.tsx");
|
|
|
|
export default function getRandomCustomStatusPrompt(size) {
|
|
let closure_0 = size;
|
|
if (null != size) {
|
|
if (size.size > 0) {
|
|
let found = closure_2.filter((value) => !size.has(value.value));
|
|
}
|
|
if (0 === found.length) {
|
|
const obj = { value: null, label: null };
|
|
obj[0] = constants.ADD_STATUS;
|
|
obj[1] = function label() {
|
|
const intl = size(1236).intl;
|
|
return intl.string(size(1236).t.Vq4UmS);
|
|
};
|
|
let tmp3 = obj;
|
|
} else {
|
|
const _Math = Math;
|
|
const _Math2 = Math;
|
|
tmp3 = found[Math.floor(Math, Math.random(Math) * found.length)];
|
|
}
|
|
return tmp3;
|
|
}
|
|
found = closure_2;
|
|
};
|