Files
discord-decomp/sources/by-id/module-03492.js
T
2026-07-28 01:06:53 +03:00

60 lines
3.4 KiB
JavaScript

/* Metro module 3492; source: unknown; dependencies: [3236] */
import * as Module03236Module from './module-03236.js'; /* Metro dependency 3236 */
function _fun26808(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#26808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3619:6, offset: 0x00f4eea7, size: 120 bytes, params: 8, frame: 16
const _typeof_26809 = function(a0) {
var r2;
r2 = typeof global.Symbol !== 'function' ? _fun26811 : typeof global.Symbol.iterator === 'symbol' ? _fun26810 : _fun26811;
env0_1 = r2;
return r2(a0);
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.default = formatISODuration;
const env0_0 = Module03236Module && Module03236Module.__esModule ? Module03236Module : {default: Module03236Module};
module.exports = exports.default;
function _typeof_26809(a0) { // fn#26809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3619:584, offset: 0x00f4ef1f, size: 74 bytes, params: 2, frame: 12
const Symbol = global.Symbol;
return (typeof Symbol !== 'function' ? function(a0) {
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
} : typeof global.Symbol.iterator === 'symbol' ? _typeof_26809_typeof : _typeof_26809_typeof_26811)(a0);
}
function formatISODuration(a0) { // fn#26812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3619:102, offset: 0x00f4ef69, size: 273 bytes, params: 2, frame: 19
(0, env0_0.default)(1, arguments);
if (_typeof_26809(a0) !== 'object') {
throw new global.Error('Duration must be an object');
}
const years = a0.years;
let value = 0;
const r8 = years === undefined ? value : years;
const months = a0.months;
const r5 = months === undefined ? value : months;
const days = a0.days;
const r7 = days === undefined ? value : days;
const hours = a0.hours;
const r6 = hours === undefined ? value : hours;
const minutes = a0.minutes;
const r4 = minutes === undefined ? value : minutes;
const seconds = a0.seconds;
const r3 = seconds === undefined ? value : seconds;
value = 'P'.concat(r8, 'Y');
value = value.concat(r5, 'M');
value = value.concat(r7, 'DT');
value = value.concat(r6, 'H');
value = value.concat(r4, 'M');
return value.concat(r3, 'S');
}
}
function _typeof_26809_typeof(a0) { // fn#26810, owner: _typeof_26809._typeof, offset: 0x00c39aa5, size: 8 bytes, params: 2, frame: 1
return typeof a0;
}
function _typeof_26809_typeof_26811(a0) { // fn#26811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3619:716, owner: _typeof_26809._typeof, offset: 0x00c39aad, size: 63 bytes, params: 2, frame: 4
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
}
global.__d(_fun26808, 3492, [3236]) /* metro module 3492, dependencies: [3236] */;