70 lines
3.7 KiB
TypeScript
70 lines
3.7 KiB
TypeScript
/* Metro module 11340; source: modules/app_startup/StartupProfiler.tsx; dependencies: [31, 33, 20, 2] */
|
|
function _fun86658(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11526:6, offset: 0x01f99b4f, size: 534 bytes, params: 8, frame: 38
|
|
var object2;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importAll(31) /* metro dependency 31 */;
|
|
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
|
object2 = {App: 'App', AppContainer: 'AppContainer', MainNavigator: 'MainNavigator',
|
|
StackNavigator: 'StackNavigator', MainTabs: 'MainTabs', MainDrawers: 'MainDrawers',
|
|
PrivateChannels: 'PrivateChannels', Members: 'Members', LeftPanel: 'LeftPanel', Guilds: 'Guilds',
|
|
Channels: 'Channels', RightPanel: 'RightPanel', CenterPanel: 'CenterPanel', Channel: 'Channel',
|
|
ChatView: 'ChatView', Messages: 'Messages'};
|
|
const env0_4 = {};
|
|
const closure = setLevels;
|
|
const App = object2.App;
|
|
const AppContainer = object2.AppContainer;
|
|
const MainNavigator = object2.MainNavigator;
|
|
const StackNavigator = object2.StackNavigator;
|
|
const MainTabs = object2.MainTabs;
|
|
const MainDrawers = object2.MainDrawers;
|
|
const LeftPanel = object2.LeftPanel;
|
|
const Guilds = object2.Guilds;
|
|
const Channels = object2.Channels;
|
|
const RightPanel = object2.RightPanel;
|
|
const Members = object2.Members;
|
|
const CenterPanel = object2.CenterPanel;
|
|
const Channel = object2.Channel;
|
|
const ChatView = object2.ChatView;
|
|
const Messages = object2.Messages;
|
|
closure({[App]: {[AppContainer]: {[MainNavigator]: {[StackNavigator]: {[MainTabs]: {[MainDrawers]: {[LeftPanel]: {[Guilds]: {},
|
|
[Channels]: {}}, [RightPanel]: {[Members]: {}},
|
|
[CenterPanel]: {[Channel]: {[ChatView]: {[Messages]: {}}}}}}}}}}}, '');
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_startup/StartupProfiler.tsx');
|
|
exports.default = StartupProfiler;
|
|
exports.Profiles = object2;
|
|
}
|
|
|
|
function setLevels(a0, a1) { // fn#86659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11526:550, offset: 0x01f99d65, size: 70 bytes, params: 3, frame: 22
|
|
var propertyName;
|
|
var setLevelsBinding;
|
|
var property;
|
|
for (propertyName in a0) {
|
|
env0_4[propertyName] = a1;
|
|
setLevelsBinding = setLevels;
|
|
property = a0[propertyName];
|
|
setLevelsBinding(property, a1 + ' ');
|
|
}
|
|
}
|
|
|
|
function StartupProfiler({children, profile}) { // fn#86660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11526:952, offset: 0x01f99dab, size: 143 bytes, params: 2, frame: 21
|
|
const defaultImport = importDefault(20) /* metro dependency 20: AppStartPerformance */;
|
|
defaultImport.mark('🎨', '' + env0_4[profile] + profile + ' render');
|
|
const Profiler = env0_2.Profiler;
|
|
return (
|
|
<Profiler id={profile} onRender={onRender}>
|
|
{children}
|
|
</Profiler>
|
|
);
|
|
}
|
|
|
|
function onRender(a0, a1, a2) { // fn#86661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11526:1078, owner: StartupProfiler.onRender, offset: 0x01f99e3a, size: 95 bytes, params: 4, frame: 20
|
|
const value = environment.__proto__;
|
|
const defaultImport = importDefault(20) /* metro dependency 20: AppStartPerformance */;
|
|
const mark = defaultImport.mark;
|
|
const binding = env1_4;
|
|
const profileBinding = profile;
|
|
Reflect.apply(mark, defaultImport, ['🎨', '' + binding[profileBinding] + profileBinding + ' ' + a1, a2]);
|
|
}
|
|
|