decord/source/modules/custom_status/utils/getRandomCustomStatusPrompt.tsx

38 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-08-14 17:33:39 +00:00
// Module ID: 9520
// Function ID: 9521
2026-07-20 16:05:17 +00:00
// Name: getRandomCustomStatusPrompt
2026-08-14 17:33:39 +00:00
// Dependencies: [9519, 1236, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-14 17:33:39 +00:00
// Module 9520 (getRandomCustomStatusPrompt)
2026-07-23 10:11:24 +00:00
import StatusTypes from "StatusTypes";
2026-07-29 08:29:29 +00:00
let c3;
let obj1;
({ CustomStatusPrompts: obj1, CustomStatusPromptValues: c3 } = StatusTypes);
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/custom_status/utils/getRandomCustomStatusPrompt.tsx");
2026-07-20 16:05:17 +00:00
export default function getRandomCustomStatusPrompt(size) {
2026-07-23 10:11:24 +00:00
let closure_0 = size;
2026-07-20 16:05:17 +00:00
if (null != size) {
if (size.size > 0) {
2026-07-23 10:11:24 +00:00
let found = closure_2.filter((value) => !size.has(value.value));
2026-07-20 16:05:17 +00:00
}
if (0 === found.length) {
2026-07-29 08:29:29 +00:00
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);
2026-07-20 16:05:17 +00:00
};
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;
};