2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 11607
|
|
|
|
|
// Function ID: 11608
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: getBarText
|
|
|
|
|
// Dependencies: [1236, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: getBarText
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 11607 (getBarText)
|
|
|
|
|
import set from "set" /* 2 */;
|
|
|
|
|
import getSystemLocale from "getSystemLocale" /* 1236 */;
|
|
|
|
|
|
|
|
|
|
const result = set.fileFinishedImporting("modules/dice_roll/DiceRollUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export const getBarText = function getBarText(flag, results) {
|
|
|
|
|
if (flag) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const intl2 = getSystemLocale.intl;
|
|
|
|
|
let str = intl2.string(getSystemLocale.t["x/FIRX"]);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
str = "";
|
|
|
|
|
if (null != results) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const intl = getSystemLocale.intl;
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj = { total: null };
|
|
|
|
|
obj[0] = results.reduce((arg0, arg1) => arg0 + arg1, 0);
|
2026-08-24 06:08:38 +00:00
|
|
|
str = intl.formatToPlainString(getSystemLocale.t.xU4pF1, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return str;
|
|
|
|
|
};
|