40 lines
1.8 KiB
TypeScript
40 lines
1.8 KiB
TypeScript
/* Metro module 11851; source: modules/dice_roll/DiceRollUtils.tsx; dependencies: [1244, 2] */
|
|
function _fun90818(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12037:6, offset: 0x02047b62, size: 107 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const sumResults = function(a0) {
|
|
return a0.reduce(_fun90820, 0);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dice_roll/DiceRollUtils.tsx');
|
|
exports.getBarText = getBarText;
|
|
}
|
|
|
|
function sumResults(a0) { // fn#90819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12037:44, offset: 0x02047bcd, size: 28 bytes, params: 2, frame: 13
|
|
return a0.reduce(function(a0, a1) {
|
|
return a0 + a1;
|
|
}, 0);
|
|
}
|
|
|
|
function getBarText(a0, a1) { // fn#90821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12037:230, offset: 0x02047be9, size: 165 bytes, params: 3, frame: 18
|
|
var r0;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var formatToPlainString;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var xU4pF1;
|
|
var object2;
|
|
if (a0) {
|
|
r0 = intl.string(t['x/FIRX']);
|
|
} else if (a1 == null) {
|
|
r0 = '';
|
|
} else {
|
|
formatToPlainString = intl.formatToPlainString;
|
|
xU4pF1 = t.xU4pF1;
|
|
object2 = {};
|
|
object2.total = sumResults(a1);
|
|
r0 = Reflect.apply(formatToPlainString, intl, [xU4pF1, object2]);
|
|
}
|
|
return r0;
|
|
}
|
|
|