decord/source/modules/dice_roll/DiceRollUtils.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

27 lines
775 B
TypeScript

// Module ID: 12388
// Function ID: 12389
// Name: getBarText
// Dependencies: [1114, 2]
// Exports: getBarText
// Module 12388 (getBarText)
import set from "set" /* 2 */;
import getSystemLocale from "getSystemLocale" /* 1114 */;
const result = set.fileFinishedImporting("modules/dice_roll/DiceRollUtils.tsx");
export const getBarText = function getBarText(flag, results) {
if (flag) {
const intl2 = getSystemLocale.intl;
let str = intl2.string(getSystemLocale.t["x/FIRX"]);
} else {
str = "";
if (null != results) {
const intl = getSystemLocale.intl;
const obj = { total: null };
obj[0] = results.reduce((arg0, arg1) => arg0 + arg1, 0);
str = intl.formatToPlainString(getSystemLocale.t.xU4pF1, obj);
}
}
return str;
};