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

39 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 11906
// Function ID: 92193
2026-07-20 16:05:17 +00:00
// Name: getRandomCustomStatusPrompt
2026-07-27 11:26:19 +00:00
// Dependencies: [11905, 1212, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 11906 (getRandomCustomStatusPrompt)
2026-07-23 10:11:24 +00:00
import StatusTypes from "StatusTypes";
let closure_2;
let closure_3;
({ CustomStatusPrompts: closure_2, CustomStatusPromptValues: closure_3 } = StatusTypes);
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) {
const obj = {
value: constants.ADD_STATUS,
label() {
2026-07-23 10:11:24 +00:00
const intl = size(outer1_1[1]).intl;
return intl.string(size(outer1_1[1]).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;
};