88 lines
4.1 KiB
React
88 lines
4.1 KiB
React
/* Metro module 3235; source: unknown; dependencies: [3236] */
|
|
function _fun25801(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#25801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3362:6, offset: 0x00f2a481, size: 120 bytes, params: 8, frame: 16
|
|
const _typeof = function(a0) {
|
|
var r2;
|
|
r2 = typeof global.Symbol !== 'function' ? _fun25804 : typeof global.Symbol.iterator === 'symbol' ? _fun25803 : _fun25804;
|
|
env0_1 = r2;
|
|
return r2(a0);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.default = toDate;
|
|
const value = require(3236) /* metro dependency 3236 */;
|
|
const env0_0 = value && value.__esModule ? value : {default: value};
|
|
module.exports = exports.default;
|
|
}
|
|
|
|
function _typeof(a0) { // fn#25802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3362:771, offset: 0x00f2a4f9, 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_typeof_body : _typeof_typeof_body_25804)(a0);
|
|
}
|
|
|
|
function toDate(a0) { // fn#25805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3362:102, offset: 0x00f2a543, size: 345 bytes, params: 2, frame: 15
|
|
var r0;
|
|
var console;
|
|
var NaN;
|
|
var value;
|
|
(0, env0_0.default)(1, arguments);
|
|
const Object = global.Object;
|
|
const value2 = Object.prototype.toString.call(a0);
|
|
let Date = global.Date;
|
|
if (a0 instanceof Date) {
|
|
Date = global.Date;
|
|
value = a0.getTime();
|
|
r0 = new Date();
|
|
} else {
|
|
value = _typeof(a0);
|
|
if (value !== 'object') {
|
|
value = typeof a0;
|
|
if (value === 'number') {
|
|
r0 = new global.Date(a0);
|
|
} else if (value2 === '[object Number]') {
|
|
r0 = new global.Date(a0);
|
|
} else {
|
|
value = value !== 'string';
|
|
r0 = value && value2 !== '[object String]';
|
|
r0 = !r0 ? typeof global.console === 'undefined' : r0;
|
|
if (!r0) {
|
|
console = global.console;
|
|
console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
|
|
console = global.console;
|
|
console.warn(new global.Error().stack);
|
|
}
|
|
Date = global.Date;
|
|
NaN = global.NaN;
|
|
r0 = new Date();
|
|
}
|
|
} else if (value2 === '[object Date]') {
|
|
Date = global.Date;
|
|
value = a0.getTime();
|
|
r0 = new Date();
|
|
} else {
|
|
value = typeof a0;
|
|
if (value === 'number') {
|
|
r0 = new global.Date(a0);
|
|
} else if (value2 === '[object Number]') {
|
|
r0 = new global.Date(a0);
|
|
} else {
|
|
value = value !== 'string';
|
|
r0 = value && value2 !== '[object String]';
|
|
r0 = !r0 ? typeof global.console === 'undefined' : r0;
|
|
if (!r0) {
|
|
console = global.console;
|
|
console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
|
|
console = global.console;
|
|
console.warn(new global.Error().stack);
|
|
}
|
|
Date = global.Date;
|
|
NaN = global.NaN;
|
|
r0 = new Date();
|
|
}
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|