51 lines
2.4 KiB
TypeScript
51 lines
2.4 KiB
TypeScript
/* Metro module 15175; source: utils/SecondsSliderUtils.tsx; dependencies: [1244, 3738, 2] */
|
|
function _fun115945(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15372:6, offset: 0x0247560f, size: 103 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/SecondsSliderUtils.tsx');
|
|
exports.getSecondsSliderLabel = getSecondsSliderLabel;
|
|
}
|
|
|
|
function getSecondsSliderLabel(a0) { // fn#115946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15372:178, offset: 0x02475676, size: 596 bytes, params: 2, frame: 20
|
|
var r4;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var formatToPlainString;
|
|
var object2;
|
|
const value = a1;
|
|
const value2 = a2;
|
|
let r2 = !(value !== undefined) || value;
|
|
let r0 = value2 !== undefined ? value2 : intl.string(t.Yl1D84);
|
|
const value3 = (importDefault(3738) /* metro dependency 3738 */).duration(a0, 'seconds');
|
|
if (value3.days() > 0) {
|
|
formatToPlainString = intl.formatToPlainString;
|
|
r2 = r2 ? t.GBLpQ8 : t['k2UNz+'];
|
|
object2 = {};
|
|
object2.days = value3.days();
|
|
r0 = Reflect.apply(formatToPlainString, intl, [r2, object2]);
|
|
} else if (value3.hours() > 0) {
|
|
formatToPlainString = intl.formatToPlainString;
|
|
r4 = r2 ? t.rhY1Rs : t.xCjYxK;
|
|
object2 = {};
|
|
object2.hours = value3.hours();
|
|
r0 = Reflect.apply(formatToPlainString, intl, [r4, object2]);
|
|
} else if (value3.minutes() > 0) {
|
|
formatToPlainString = intl.formatToPlainString;
|
|
r4 = r2 ? t['XIGt+W'] : t.iXLF9W;
|
|
object2 = {};
|
|
object2.minutes = value3.minutes();
|
|
r0 = Reflect.apply(formatToPlainString, intl, [r4, object2]);
|
|
} else if (a0 > 0) {
|
|
formatToPlainString = intl.formatToPlainString;
|
|
r4 = r2 ? t.pyvjRp : t.geSp4K;
|
|
object2 = {};
|
|
object2.seconds = value3.seconds();
|
|
r0 = Reflect.apply(formatToPlainString, intl, [r4, object2]);
|
|
} else {
|
|
r0 = r2 ? intl.string(t.Yl1D84) : r0;
|
|
}
|
|
return r0;
|
|
}
|
|
|