70 lines
3.4 KiB
TypeScript
70 lines
3.4 KiB
TypeScript
/* Metro module 8382; source: modules/checkpoint/CheckpointUtils.tsx; dependencies: [4303, 4789, 1244, 8383, 8384, 8385, 8386, 8387, 8388, 8389, 8390, 8391, 8392, 2] */
|
|
function _fun66703(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8567:6, offset: 0x01c06270, size: 189 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const TimeUnits = (require(4303) /* metro dependency 4303: TimeUtils */).TimeUnits;
|
|
const HOURS = TimeUnits.HOURS;
|
|
items = [HOURS];
|
|
const MINUTES = TimeUnits.MINUTES;
|
|
items[1] = MINUTES;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/checkpoint/CheckpointUtils.tsx');
|
|
exports.getVoiceDurationString = getVoiceDurationString;
|
|
exports.getCardAssetUrl = getCardAssetUrl;
|
|
exports.getCheckpointPowerBarUnits = function(a0) {
|
|
var Math = global.Math;
|
|
var Math2 = global.Math;
|
|
var Math3 = global.Math;
|
|
var value = Math3.round(a0 / 10);
|
|
value = Math2.max(value, 1);
|
|
return Math.min(value, 9);
|
|
};
|
|
}
|
|
|
|
function getVoiceDurationString(a0) { // fn#66704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8567:248, offset: 0x01c0632d, size: 290 bytes, params: 2, frame: 19
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const {unit, time} = (require(4303) /* metro dependency 4303: TimeUtils */).getTimeAndUnit(a0, env0_3);
|
|
const abbreviatedFormatter = (require(4789) /* metro dependency 4789: getTimestampString */).getAbbreviatedFormatter();
|
|
if (time == null) {
|
|
return intl.formatToPlainString(abbreviatedFormatter.minutes, {minutes: 0});
|
|
}
|
|
const Math = global.Math;
|
|
const value4 = Math.round(time);
|
|
const TimeUnits = (require(4303) /* metro dependency 4303: TimeUtils */).TimeUnits;
|
|
const HOURS = TimeUnits.HOURS;
|
|
return unit === HOURS ? intl.formatToPlainString(abbreviatedFormatter.hours,
|
|
{hours: value4}) : intl.formatToPlainString(abbreviatedFormatter.minutes, {minutes: value4});
|
|
}
|
|
|
|
function getCardAssetUrl(a0) { // fn#66705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8567:627, offset: 0x01c0644f, size: 353 bytes, params: 2, frame: 11
|
|
if (a0 === 0) {
|
|
return importDefault(8383) /* metro dependency 8383: cardPlantPng */;
|
|
}
|
|
if (a0 === 1) {
|
|
return importDefault(8384) /* metro dependency 8384: cardDonutPng */;
|
|
}
|
|
if (a0 === 2) {
|
|
return importDefault(8385) /* metro dependency 8385: cardCapybaraPng */;
|
|
}
|
|
if (a0 === 3) {
|
|
return importDefault(8386) /* metro dependency 8386: cardDiscoPng */;
|
|
}
|
|
if (a0 === 4) {
|
|
return importDefault(8387) /* metro dependency 8387: cardOrigamiPng */;
|
|
}
|
|
if (a0 === 5) {
|
|
return importDefault(8388) /* metro dependency 8388: cardSnailPng */;
|
|
}
|
|
if (a0 === 6) {
|
|
return importDefault(8389) /* metro dependency 8389: cardDuckPng */;
|
|
}
|
|
if (a0 === 7) {
|
|
return importDefault(8390) /* metro dependency 8390: cardBananaPng */;
|
|
}
|
|
if (a0 === 8) {
|
|
return importDefault(8391) /* metro dependency 8391: cardCatPng */;
|
|
}
|
|
return importDefault(8392) /* metro dependency 8392: cardCassettePng */;
|
|
}
|
|
|