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

37 lines
1 KiB
TypeScript
Raw Normal View History

// Module ID: 11269
// Function ID: 11270
2026-07-20 16:05:17 +00:00
// Name: getRandomCustomStatusPrompt
// Dependencies: [11268, 1115, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 11269 (getRandomCustomStatusPrompt)
import Constants from "Constants" /* 11268 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
({ CustomStatusPrompts: c2, CustomStatusPromptValues: c3 } = Constants);
const result = size.fileFinishedImporting("modules/custom_status/utils/getRandomCustomStatusPrompt.tsx");
2026-07-20 16:05:17 +00:00
export default function getRandomCustomStatusPrompt(size) {
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() {
const intl = size(1115).intl;
return intl.string(size(1115).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;
};