61 lines
3.1 KiB
JavaScript
61 lines
3.1 KiB
JavaScript
/* Metro module 1052; source: unknown; dependencies: [1051, 1047, 1050, 1053] */
|
|
import * as WINDOWModule from './module-01047-WINDOW.js'; /* Metro dependency 1047 */
|
|
import * as GetNavigationEntryModule from './module-01051-getNavigationEntry.js'; /* Metro dependency 1051 */
|
|
|
|
function _fun11099(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1179:6, offset: 0x00da0f33, size: 78 bytes, params: 8, frame: 17
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.initMetric = initMetric;
|
|
function initMetric(a0) { // fn#11100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1179:104, offset: 0x00da0f81, size: 358 bytes, params: 2, frame: 22
|
|
var r0;
|
|
var r1;
|
|
const WINDOW = (WINDOWModule).WINDOW;
|
|
var document;
|
|
var moduleValue2;
|
|
const value = -1;
|
|
const r5 = arguments.length > 1 ? arguments[1] === undefined ? value : arguments[1] : value;
|
|
const navigationEntry = (GetNavigationEntryModule).getNavigationEntry();
|
|
const value3 = 'navigate';
|
|
if (navigationEntry) {
|
|
document = WINDOW.document;
|
|
if (document == null) {
|
|
moduleValue2 = require(1050) /* metro dependency 1050 */;
|
|
r0 = moduleValue2.getActivationStart() > 0 ? 'prerender' : WINDOW.document == null ? navigationEntry.type ? navigationEntry.type.replace(RegExp('_',
|
|
|
|
|
|
'g'),
|
|
'-') : value3 : WINDOW.document.wasDiscarded ? 'restore' : navigationEntry.type ? navigationEntry.type.replace(RegExp('_',
|
|
|
|
|
|
'g'), '-') : value3;
|
|
} else if (document.prerendering) {
|
|
r0 = 'prerender';
|
|
} else {
|
|
moduleValue2 = require(1050) /* metro dependency 1050 */;
|
|
r0 = moduleValue2.getActivationStart() > 0 ? 'prerender' : WINDOW.document == null ? navigationEntry.type ? navigationEntry.type.replace(RegExp('_',
|
|
|
|
|
|
'g'),
|
|
'-') : value3 : WINDOW.document.wasDiscarded ? 'restore' : navigationEntry.type ? navigationEntry.type.replace(RegExp('_',
|
|
|
|
|
|
'g'), '-') : value3;
|
|
}
|
|
r1 = r0;
|
|
} else {
|
|
r1 = value3;
|
|
}
|
|
const object = {name: a0, value: r5, rating: 'good', delta: 0, entries: []};
|
|
object.id = (require(1053) /* metro dependency 1053 */).generateUniqueID();
|
|
object.navigationType = r1;
|
|
return object;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun11099, 1052, [1051, 1047, 1050,
|
|
1053]) /* metro module 1052, dependencies: [1051, 1047, 1050, 1053] */;
|