decord/source/modules/custom_status/utils/getRandomCustomStatusPrompt.tsx
2026-07-23 10:11:24 +00:00

38 lines
1.1 KiB
TypeScript

// Module ID: 11902
// Function ID: 92145
// Name: getRandomCustomStatusPrompt
// Dependencies: [11901, 1212, 2]
// Exports: default
// Module 11902 (getRandomCustomStatusPrompt)
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");
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: constants.ADD_STATUS,
label() {
const intl = size(outer1_1[1]).intl;
return intl.string(size(outer1_1[1]).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;
};