44 lines
2.9 KiB
TypeScript
44 lines
2.9 KiB
TypeScript
/* Metro module 9871; source: modules/tti_analytics/native/TTIFirstContentfulPaint.tsx; dependencies: [31, 33, 4008, 14, 5249, 9872, 2] */
|
|
import TTITracker from '../TTITracker.tsx'; /* Metro dependency 14 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as PostTTISchedulerModule from '../../app_startup/PostTTIScheduler/PostTTIScheduler.tsx'; /* Metro dependency 5249 */
|
|
import * as TTIMeasurementViewModule from './TTIMeasurementView.tsx'; /* Metro dependency 9872 */
|
|
|
|
function _fun77449(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10057:6, offset: 0x01dfc667, size: 142 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/tti_analytics/native/TTIFirstContentfulPaint.tsx');
|
|
exports.TTIFirstContentfulPaint = TTIFirstContentfulPaint;
|
|
function TTIFirstContentfulPaint({checkFocusedScreen}) { // fn#77450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10057:236, offset: 0x01dfc6f5, size: 95 bytes, params: 2, frame: 15
|
|
const value2 = ReactModule.useCallback(_fun77451, [checkFocusedScreen]);
|
|
const TTIMeasurementView = (TTIMeasurementViewModule).TTIMeasurementView;
|
|
return <TTIMeasurementView onMeasurement={value2} />;
|
|
function _fun77451({nativeEvent}) { // fn#77451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10057:314, offset: 0x01dfc754, size: 173 bytes, params: 2, frame: 15
|
|
var r2;
|
|
if (checkFocusedScreen != null) {
|
|
var value3 = undefined;
|
|
var rootNavigationRef = (require(4008) /* metro dependency 4008: RootNavigationRefNative */).getRootNavigationRef();
|
|
r2 = rootNavigationRef == null ? value3 : rootNavigationRef.getCurrentRoute();
|
|
if (r2 == null) {
|
|
return value3;
|
|
}
|
|
if (r2.name !== checkFocusedScreen) {
|
|
return value3;
|
|
}
|
|
}
|
|
const value = environment.__proto__;
|
|
const firstContentfulPaint = (TTITracker).firstContentfulPaint;
|
|
firstContentfulPaint.record(nativeEvent.timestamp);
|
|
(PostTTISchedulerModule).notifyAboutTTI();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun77449, 9871, [31, 33, 4008, 14, 5249, 9872,
|
|
2]) /* metro module 9871, dependencies: [31, 33, 4008, 14, 5249, 9872, 2] */;
|