decord/source/modules/custom_status/utils/getRandomCustomStatusPrompt.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

36 lines
1.1 KiB
TypeScript

// Module ID: 11048
// Function ID: 11049
// Name: getRandomCustomStatusPrompt
// Dependencies: [11047, 1233, 2]
// Exports: default
// Module 11048 (getRandomCustomStatusPrompt)
import set from "set" /* 2 */;
import StatusTypes from "StatusTypes" /* 11047 */;
({ CustomStatusPrompts: obj1, CustomStatusPromptValues: c3 } = StatusTypes);
const result = set.fileFinishedImporting("modules/custom_status/utils/getRandomCustomStatusPrompt.tsx");
export default function getRandomCustomStatusPrompt(size) {
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(1233).intl;
return intl.string(size(1233).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;
};