/* Metro module 15125; source: modules/guild_themes/GuildThemeAnalyticsUtils.tsx; dependencies: [1867, 2] */ import GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ function _fun115317(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15322:6, offset: 0x0245c750, size: 106 bytes, params: 8, frame: 17 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/guild_themes/GuildThemeAnalyticsUtils.tsx'); exports.collectGuildThemeAnalyticsMetadata = collectGuildThemeAnalyticsMetadata; function collectGuildThemeAnalyticsMetadata(a0) { // fn#115318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15322:226, offset: 0x0245c7ba, size: 146 bytes, params: 2, frame: 15 var presetId; var object; var themeSettings; if (a0 == null) { return null; } let value = GuildStore.getGuild(a0); if (value == null) { return null; } const guildTheme = value.guildTheme; if (guildTheme != null) { if (guildTheme.enabled) { object = {guild_theme_enabled: true}; themeSettings = guildTheme.themeSettings; value = undefined; object.guild_theme_is_custom = (themeSettings == null ? value : themeSettings.customUserThemeSettings) != null; themeSettings = guildTheme.themeSettings; presetId = themeSettings == null ? value : themeSettings.presetId; if (presetId != null) { object.guild_theme_preset_id = presetId; } return object; } } return {'guild_theme_enabled': false, 'guild_theme_is_custom': false}; } } global.__d(_fun115317, 15125, [1867, 2]) /* metro module 15125, dependencies: [1867, 2] */;