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

85 lines
4.2 KiB
JavaScript

/* Metro module 3479; source: unknown; dependencies: [3478] */
import * as Module03478Module from './module-03478.js'; /* Metro dependency 3478 */
function _fun26763(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#26763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3606:6, offset: 0x00f4d0a2, size: 199 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.default = undefined;
let value = Module03478Module;
const env0_0 = value && value.__esModule ? value : {default: value};
exports.default = {y: y_26764, M: M_26765, d: d_26766, a: function(a0, a1) {
var r1;
var value = a0.getUTCHours();
value = 'am';
r1 = value / 12 >= 1 ? 'pm' : value;
if (a1 === 'a') {
return r1.toUpperCase();
}
if (a1 === 'aa') {
return r1.toUpperCase();
}
if (a1 === 'aaa') {
return r1;
}
if (a1 === 'aaaaa') {
return r1[0];
}
return value !== r1 ? 'p.m.' : 'a.m.';
}, h: h_26768, H: H_26769, m: m_26770, s: s_26771, S: S_26772};
module.exports = exports.default;
function y_26764(a0, a1) { // fn#26764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3606:210, offset: 0x00f4d169, size: 77 bytes, params: 3, frame: 14
const uTCFullYear = a0.getUTCFullYear();
const r4 = uTCFullYear > 0 ? uTCFullYear : 1 - uTCFullYear;
return env0_0.default(a1 !== 'yy' ? r4 : r4 % 100, a1.length);
}
function M_26765(a0, a1) { // fn#26765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3606:313, offset: 0x00f4d1b6, size: 80 bytes, params: 3, frame: 14
var r0;
let value = a0.getUTCMonth();
if (a1 === 'M') {
value = global.String(value + 1);
r0 = value;
} else {
value = env0_0.default(value + 1, 2);
r0 = value;
}
return r0;
}
function d_26766(a0, {length}) { // fn#26766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3606:401, offset: 0x00f4d206, size: 43 bytes, params: 3, frame: 13
return env0_0.default(a0.getUTCDate(), length);
}
function h_26768(a0, {length}) { // fn#26768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3606:653, offset: 0x00f4d2a6, size: 56 bytes, params: 3, frame: 13
const property = env0_0.default;
let value = a0.getUTCHours();
value %= 12;
return property(value || 12, length);
}
function H_26769(a0, {length}) { // fn#26769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3606:725, offset: 0x00f4d2de, size: 43 bytes, params: 3, frame: 13
return env0_0.default(a0.getUTCHours(), length);
}
function m_26770(a0, {length}) { // fn#26770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3606:790, offset: 0x00f4d309, size: 43 bytes, params: 3, frame: 13
return env0_0.default(a0.getUTCMinutes(), length);
}
function s_26771(a0, {length}) { // fn#26771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3606:857, offset: 0x00f4d334, size: 43 bytes, params: 3, frame: 13
return env0_0.default(a0.getUTCSeconds(), length);
}
function S_26772(a0, a1) { // fn#26772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3606:924, offset: 0x00f4d35f, size: 99 bytes, params: 3, frame: 17
const length = a1.length;
let value = a0.getUTCMilliseconds();
const Math = global.Math;
const floor = Math.floor;
const Math2 = global.Math;
value = Reflect.apply(floor, Math, [value * Math2.pow(10, length - 3)]);
return env0_0.default(value, a1.length);
}
}
global.__d(_fun26763, 3479, [3478]) /* metro module 3479, dependencies: [3478] */;