29 lines
1.4 KiB
React
29 lines
1.4 KiB
React
/* Metro module 3614; source: unknown; dependencies: [3236] */
|
|
function _fun27751(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#27751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3741:6, offset: 0x00f60cc9, size: 125 bytes, params: 8, frame: 16
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.default = milliseconds;
|
|
const value = require(3236) /* metro dependency 3236 */;
|
|
const env0_0 = value && value.__esModule ? value : {default: value};
|
|
module.exports = exports.default;
|
|
}
|
|
|
|
function milliseconds({years, months, weeks, days, hours, minutes, seconds}) { // fn#27752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3741:102, offset: 0x00f60d46, size: 235 bytes, params: 2, frame: 21
|
|
(0, env0_0.default)(1, arguments);
|
|
let r3 = years ? 0 + years * env0_1 : 0;
|
|
const r6 = months ? r3 + 30.436875 * months : r3;
|
|
const r2 = weeks ? r6 + 7 * weeks : r6;
|
|
let value = 24 * (days ? r2 + days : r2) * 60 * 60;
|
|
if (hours) {
|
|
value += 60 * hours * 60;
|
|
r3 = value;
|
|
} else {
|
|
r3 = value;
|
|
}
|
|
const r0 = minutes ? r3 + 60 * minutes : r3;
|
|
r3 = seconds ? r0 + seconds : r0;
|
|
const Math = global.Math;
|
|
return Math.round(1000 * r3);
|
|
}
|
|
|