/* Metro module 1418; source: utils/GuildRecordUtils.tsx; dependencies: [1419, 1422, 661, 1421, 44, 1866, 2] */ function _fun16554(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#16554, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:6, offset: 0x00e529e5, size: 425 bytes, params: 8, frame: 20 const env0_0 = require; const closure = fromGuildPropertiesWithAdditionalFields; const closure2 = function(a0) { var constructGuildInPlaceBinding = constructGuildInPlace; var object = {}; copyDataProperties(object, GUILD_DEFAULT_PROPERTY_VALUES, constructGuildInPlaceBinding); copyDataProperties(object, a0, constructGuildInPlaceBinding); return constructGuildInPlaceBinding(object); }; const constructGuildInPlace = function(a0) { return constructInPlace(GuildRecordTypeTag, a0); }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = require(1419) /* metro dependency 1419: PlainRecord */; const env0_3 = value.constructInPlace; const env0_4 = value.merge; const env0_5 = value.objectIsPlainRecordOfType; const env0_6 = value.tryReuseExistingInPlacePlainRecord; value = require(1422) /* metro dependency 1422: GuildRecord */; const env0_7 = value.GUILD_DEFAULT_PROPERTY_VALUES; const env0_8 = value.GuildRecordTypeTag; const env0_9 = (require(661) /* metro dependency 661: Constants */).GuildNSFWContentLevel; (require(2) /* metro dependency 2 */).fileFinishedImporting('utils/GuildRecordUtils.tsx'); exports.isGuildRecord = function(a0) { return objectIsPlainRecordOfType(GuildRecordTypeTag, a0); }; exports.fromGuildPropertiesWithAdditionalFields = closure; exports.fromServer = fromServer; exports.attachSerializedData = attachSerializedData; exports.fromBackgroundSync = fromBackgroundSync; exports.fromGuild = fromGuild; exports.fromInviteGuild = fromInviteGuild; exports.fromGuildProfile = fromGuildProfile; exports.fromStoreListingGuild = fromStoreListingGuild; exports.fromDirectoryGuild = fromDirectoryGuild; exports.fromGuildDirectoryEntry = fromGuildDirectoryEntry; exports.fromVerificationGateGuild = fromVerificationGateGuild; exports.fromClientDiscoverableGuild = fromClientDiscoverableGuild; exports.fromGuildBasic = fromGuildBasic; exports.dangerouslyConstructGuildRecordFromUntypedObject = dangerouslyConstructGuildRecordFromUntypedObject; exports.toGuildProperties = toGuildProperties; exports.fromSerializedGuildRecord = fromSerializedGuildRecord; exports.constructFromPartialGuildRecord = closure2; } function fromGuildPropertiesWithAdditionalFields(a0, {joinedAt, premiumSubscriberCount}, a2) { // fn#16555, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:305, offset: 0x00e52b8e, size: 1083 bytes, params: 4, frame: 22 var date; const tryReuseExistingInPlacePlainRecordBinding = tryReuseExistingInPlacePlainRecord; const object2 = {}; object2.id = a0.id; object2.joinedAt = joinedAt; object2.premiumSubscriberCount = premiumSubscriberCount; object2.name = a0.name; object2.description = a0.description ?? null; object2.icon = a0.icon ?? null; object2.splash = a0.splash ?? null; object2.banner = a0.banner ?? null; object2.homeHeader = a0.home_header ?? null; const setUtilsModule = require(1421) /* metro dependency 1421: SetUtils */; object2.features = setUtilsModule.toSetInplace(a0.features); let r8 = a0.preferred_locale ?? GUILD_DEFAULT_PROPERTY_VALUES.preferredLocale; object2.preferredLocale = r8; object2.ownerId = a0.owner_id; object2.application_id = a0.application_id ?? null; object2.afkChannelId = a0.afk_channel_id ?? null; object2.afkTimeout = a0.afk_timeout ?? GUILD_DEFAULT_PROPERTY_VALUES.afkTimeout; object2.systemChannelId = a0.system_channel_id ?? null; object2.verificationLevel = a0.verification_level ?? GUILD_DEFAULT_PROPERTY_VALUES.verificationLevel; object2.explicitContentFilter = a0.explicit_content_filter ?? GUILD_DEFAULT_PROPERTY_VALUES.explicitContentFilter; object2.defaultMessageNotifications = a0.default_message_notifications; object2.mfaLevel = a0.mfa_level ?? GUILD_DEFAULT_PROPERTY_VALUES.mfaLevel; object2.vanityURLCode = a0.vanity_url_code ?? null; object2.premiumTier = a0.premium_tier ?? GUILD_DEFAULT_PROPERTY_VALUES.premiumTier; object2.premiumProgressBarEnabled = a0.premium_progress_bar_enabled || GUILD_DEFAULT_PROPERTY_VALUES.premiumProgressBarEnabled; if (a0.premium_progress_bar_enabled_user_updated_at != null) { date = new global.Date(a0.premium_progress_bar_enabled_user_updated_at); } else { r8 = null; } object2.premiumProgressBarEnabledUserUpdatedAt = r8; object2.systemChannelFlags = a0.system_channel_flags; object2.discoverySplash = a0.discovery_splash ?? null; object2.rulesChannelId = a0.rules_channel_id ?? null; object2.safetyAlertsChannelId = a0.safety_alerts_channel_id ?? null; object2.publicUpdatesChannelId = a0.public_updates_channel_id ?? null; object2.maxStageVideoChannelUsers = a0.max_stage_video_channel_users ?? GUILD_DEFAULT_PROPERTY_VALUES.maxStageVideoChannelUsers; object2.maxVideoChannelUsers = a0.max_video_channel_users ?? GUILD_DEFAULT_PROPERTY_VALUES.maxVideoChannelUsers; object2.maxMembers = a0.max_members ?? GUILD_DEFAULT_PROPERTY_VALUES.maxMembers; object2.nsfwLevel = a0.nsfw_level ?? GUILD_DEFAULT_PROPERTY_VALUES.nsfwLevel; object2.ownerConfiguredContentLevel = a0.owner_configured_content_level ?? null; object2.hubType = a0.hub_type ?? null; object2.latestOnboardingQuestionId = a0.latest_onboarding_question_id ?? null; object2.profile = a0.profile ?? null; object2.guildTheme = resolveGuildTheme(a0.theme, a2); object2.premiumFeatures = a0.premium_features != null ? {features: a0.premium_features.features, additionalEmojiSlots: a0.premium_features.additional_emoji_slots, additionalStickerSlots: a0.premium_features.additional_sticker_slots, additionalSoundSlots: a0.premium_features.additional_sound_slots} : null; object2.moderatorReporting = a0.moderator_reporting != null ? {moderatorReportingEnabled: a0.moderator_reporting.moderator_reporting_enabled, moderatorReportChannelId: a0.moderator_reporting.moderator_report_channel_id} : null; object2.verificationRoleId = a0.verification_role_id ?? null; object2.gameApplicationIds = a0.game_application_ids ?? null; object2.officialMessageColor = a0.official_message_color ?? null; return tryReuseExistingInPlacePlainRecordBinding(GuildRecordTypeTag, a2, object2); } function resolveGuildTheme(a0, a1) { // fn#16558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:3199, offset: 0x00e53008, size: 110 bytes, params: 3, frame: 16 var r0; var guildTheme; var value2; var value4; let value = undefined; if (value === a0) { value4 = null; guildTheme = value4 == a1 ? value : a1.guildTheme; r0 = value4 != guildTheme ? guildTheme : value4; } else { value2 = null; if (value2 != a0) { value = require(1866) /* metro dependency 1866: guildThemeSerialization */; value = value.fromServerGuildTheme(a0); r0 = value2 != value ? value : {'enabled': false, 'themeSettings': null}; } else { r0 = value2; } } return r0; } function fromServer(a0, a1) { // fn#16560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:3603, offset: 0x00e5308e, size: 210 bytes, params: 3, frame: 19 var joinedAt; var r6; var r0; var date; const joined_at = a0.joined_at; let value = null; if (value != joined_at) { date = new global.Date(a0.joined_at); } else { joinedAt = value == a1 ? undefined : a1.joinedAt; r6 = value != joinedAt ? joinedAt : value; } const premium_subscription_count = a0.premium_subscription_count; const r5 = value != premium_subscription_count ? premium_subscription_count : 0; if (value == a0.properties) { (importDefault(44) /* metro dependency 44 */)(value != a1, 'If guild.properties is null, existingGuild must be passed in'); value = merge(a1, {joinedAt: r6, premiumSubscriberCount: r5}); r0 = value; } else { r0 = fromGuildPropertiesWithAdditionalFields(a0.properties, {joinedAt: r6, premiumSubscriberCount: r5}, a1); } return r0; } function attachSerializedData(a0, a1, a2) { // fn#16561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:4035, offset: 0x00e53160, size: 190 bytes, params: 4, frame: 16 const object2 = {}; copyDataProperties(object2, a0, undefined); const joinedAt = a0.joinedAt; const value = null; object2['joinedAt'] = value != joinedAt ? a0.joinedAt.toISOString() : value; object2['premiumProgressBarEnabledUserUpdatedAt'] = value != a0.premiumProgressBarEnabledUserUpdatedAt ? a0.premiumProgressBarEnabledUserUpdatedAt.toISOString() : value; const Array = global.Array; object2['features'] = Array.from(a0.features); object2['roles'] = a1; object2['member'] = value != a2 ? {userId: a2.userId, roles: a2.roles} : value; return object2; } function fromBackgroundSync(a0, a1) { // fn#16562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:4401, offset: 0x00e5321e, size: 69 bytes, params: 3, frame: 16 var r0; let value = a1; if (a0.properties == null) { r0 = value; } else { value = fromGuildPropertiesWithAdditionalFields(a0.properties, {joinedAt: value.joinedAt, premiumSubscriberCount: value.premiumSubscriberCount}, value); r0 = value; } return r0; } function fromGuild(a0, a1) { // fn#16563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:4601, offset: 0x00e53263, size: 117 bytes, params: 3, frame: 18 const fromGuildPropertiesWithAdditionalFieldsBinding = fromGuildPropertiesWithAdditionalFields; const joined_at = a0.joined_at; const value = null; return fromGuildPropertiesWithAdditionalFieldsBinding(a0, {joinedAt: value != joined_at ? new global.Date(a0.joined_at) : value != (value == a1 ? undefined : a1.joinedAt) ? value == a1 ? undefined : a1.joinedAt : value, premiumSubscriberCount: a0.premium_subscription_count}, a1); } function fromInviteGuild({id, name, description, icon, splash, banner, features, verification_level, vanity_url_code, premium_subscription_count, nsfw_level, premium_tier, home_header}) { // fn#16564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:4848, offset: 0x00e532d8, size: 187 bytes, params: 2, frame: 15 const constructFromPartialGuildRecordBinding = constructFromPartialGuildRecord; const object2 = {}; object2.id = id; object2.name = name; object2.description = description; object2.icon = icon; object2.splash = splash; object2.banner = banner; object2.features = (require(1421) /* metro dependency 1421: SetUtils */).toSetInplace(features); object2.verificationLevel = verification_level; object2.vanityURLCode = vanity_url_code; object2.premiumSubscriberCount = premium_subscription_count; object2.nsfwLevel = nsfw_level; object2.premiumTier = premium_tier; object2.homeHeader = home_header; return constructFromPartialGuildRecordBinding(object2); } function fromGuildProfile({id, name, description, icon, premiumSubscriberCount, premiumTier, features}) { // fn#16565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:5268, offset: 0x00e53393, size: 151 bytes, params: 2, frame: 15 const constructFromPartialGuildRecordBinding = constructFromPartialGuildRecord; const object2 = {}; object2.id = id; object2.name = name; object2.description = description; object2.icon = icon; premiumSubscriberCount = premiumSubscriberCount ?? GUILD_DEFAULT_PROPERTY_VALUES.premiumSubscriberCount; object2.premiumSubscriberCount = premiumSubscriberCount; premiumTier = premiumTier ?? GUILD_DEFAULT_PROPERTY_VALUES.premiumTier; object2.premiumTier = premiumTier; object2.features = (require(1421) /* metro dependency 1421: SetUtils */).toSetInplace(features); return constructFromPartialGuildRecordBinding(object2); } function fromStoreListingGuild({id, name, icon}) { // fn#16566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:5609, offset: 0x00e5342a, size: 60 bytes, params: 2, frame: 13 return constructFromPartialGuildRecord({id: id, name: name, icon: icon ?? null}); } function fromDirectoryGuild({id, name, icon, description, splash, features}) { // fn#16567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:5762, offset: 0x00e53466, size: 148 bytes, params: 2, frame: 16 const constructFromPartialGuildRecordBinding = constructFromPartialGuildRecord; const object2 = {}; object2.id = id; object2.name = name; object2.icon = icon ?? null; object2.description = description ?? null; object2.splash = splash ?? null; object2.features = (require(1421) /* metro dependency 1421: SetUtils */).toSetInplace(features); return constructFromPartialGuildRecordBinding(object2); } function fromGuildDirectoryEntry({guildId, name, icon, description, splash, features}) { // fn#16568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:6039, offset: 0x00e534fa, size: 162 bytes, params: 2, frame: 16 const constructFromPartialGuildRecordBinding = constructFromPartialGuildRecord; const object2 = {}; object2.id = guildId; object2.name = name ?? ''; object2.icon = icon ?? null; object2.description = description ?? null; object2.splash = splash ?? null; object2.features = (require(1421) /* metro dependency 1421: SetUtils */).toSetInplace(features); return constructFromPartialGuildRecordBinding(object2); } function fromVerificationGateGuild({id, name, icon, description, splash, features, verification_level}) { // fn#16569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:6345, offset: 0x00e5359c, size: 173 bytes, params: 2, frame: 17 const constructFromPartialGuildRecordBinding = constructFromPartialGuildRecord; const object2 = {}; object2.id = id; object2.name = name; object2.icon = icon ?? null; object2.description = description ?? null; object2.splash = splash ?? null; object2.features = (require(1421) /* metro dependency 1421: SetUtils */).toSetInplace(features); object2.verificationLevel = verification_level ?? GUILD_DEFAULT_PROPERTY_VALUES.verificationLevel; return constructFromPartialGuildRecordBinding(object2); } function fromClientDiscoverableGuild({id, name, description, splash, banner, preferredLocale, icon, features, premiumSubscriptionCount, discoverySplash}) { // fn#16570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:6706, offset: 0x00e53649, size: 244 bytes, params: 2, frame: 17 const constructFromPartialGuildRecordBinding = constructFromPartialGuildRecord; const object2 = {}; object2.id = id; object2.name = name; object2.description = description ?? null; object2.splash = splash ?? null; object2.banner = banner ?? null; preferredLocale = preferredLocale ?? GUILD_DEFAULT_PROPERTY_VALUES.preferredLocale; object2.preferredLocale = preferredLocale; object2.icon = icon ?? null; object2.features = (require(1421) /* metro dependency 1421: SetUtils */).toSetInplace(features); object2.premiumSubscriberCount = premiumSubscriptionCount ?? GUILD_DEFAULT_PROPERTY_VALUES.premiumSubscriberCount; object2.discoverySplash = discoverySplash ?? null; return constructFromPartialGuildRecordBinding(object2); } function fromGuildBasic({id, name, icon, description, splash, discovery_splash, features}) { // fn#16571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:7226, offset: 0x00e5373d, size: 171 bytes, params: 2, frame: 16 const constructFromPartialGuildRecordBinding = constructFromPartialGuildRecord; const object2 = {}; object2.id = id; object2.name = name; object2.icon = icon ?? null; object2.description = description ?? null; object2.splash = splash ?? null; object2.discoverySplash = discovery_splash ?? null; object2.features = (require(1421) /* metro dependency 1421: SetUtils */).toSetInplace(features); return constructFromPartialGuildRecordBinding(object2); } function dangerouslyConstructGuildRecordFromUntypedObject(a0) { // fn#16572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:7578, offset: 0x00e537e8, size: 998 bytes, params: 2, frame: 19 var r3; var date; var value17; const constructGuildInPlaceBinding = constructGuildInPlace; const object2 = {}; object2.id = a0.id; let name = a0.name; name = !name ? '' : name; object2.name = name; let description = a0.description; description = !description ? null : description; object2.description = description; let ownerId = a0.ownerId; ownerId = !ownerId ? null : ownerId; object2.ownerId = ownerId; let icon = a0.icon; icon = !icon ? null : icon; object2.icon = icon; let splash = a0.splash; splash = !splash ? null : splash; object2.splash = splash; let banner = a0.banner; banner = !banner ? null : banner; object2.banner = banner; let homeHeader = a0.homeHeader; homeHeader = !homeHeader ? null : homeHeader; object2.homeHeader = homeHeader; const setUtilsModule = require(1421) /* metro dependency 1421: SetUtils */; object2.features = setUtilsModule.toSetInplace(a0.features); let preferredLocale = a0.preferredLocale; preferredLocale = !preferredLocale ? GUILD_DEFAULT_PROPERTY_VALUES.preferredLocale : preferredLocale; object2.preferredLocale = preferredLocale; let afkChannelId = a0.afkChannelId; afkChannelId = !afkChannelId ? null : afkChannelId; object2.afkChannelId = afkChannelId; object2.afkTimeout = a0.afkTimeout; let systemChannelId = a0.systemChannelId; systemChannelId = !systemChannelId ? null : systemChannelId; object2.systemChannelId = systemChannelId; let verificationLevel = a0.verificationLevel; verificationLevel = !verificationLevel ? GUILD_DEFAULT_PROPERTY_VALUES.verificationLevel : verificationLevel; object2.verificationLevel = verificationLevel; let joinedAt = a0.joinedAt; let Date = global.Date; const value11 = joinedAt instanceof Date; joinedAt = a0.joinedAt; if (value11) { r3 = joinedAt; } else if (joinedAt != null) { date = new global.Date(a0.joinedAt); } else { r3 = a0.joinedAt; } object2.joinedAt = r3; let defaultMessageNotifications = a0.defaultMessageNotifications; defaultMessageNotifications = !defaultMessageNotifications ? GUILD_DEFAULT_PROPERTY_VALUES.defaultMessageNotifications : defaultMessageNotifications; object2.defaultMessageNotifications = defaultMessageNotifications; let mfaLevel = a0.mfaLevel; mfaLevel = !mfaLevel ? GUILD_DEFAULT_PROPERTY_VALUES.mfaLevel : mfaLevel; object2.mfaLevel = mfaLevel; let application_id = a0.application_id; application_id = !application_id ? null : application_id; object2.application_id = application_id; let explicitContentFilter = a0.explicitContentFilter; explicitContentFilter = !explicitContentFilter ? GUILD_DEFAULT_PROPERTY_VALUES.explicitContentFilter : explicitContentFilter; object2.explicitContentFilter = explicitContentFilter; let vanityURLCode = a0.vanityURLCode; vanityURLCode = !vanityURLCode ? null : vanityURLCode; object2.vanityURLCode = vanityURLCode; let premiumTier = a0.premiumTier; premiumTier = !premiumTier ? GUILD_DEFAULT_PROPERTY_VALUES.premiumTier : premiumTier; object2.premiumTier = premiumTier; let premiumSubscriberCount = a0.premiumSubscriberCount; premiumSubscriberCount = !premiumSubscriberCount ? GUILD_DEFAULT_PROPERTY_VALUES.premiumSubscriberCount : premiumSubscriberCount; object2.premiumSubscriberCount = premiumSubscriberCount; let premiumProgressBarEnabled = a0.premiumProgressBarEnabled; premiumProgressBarEnabled = !premiumProgressBarEnabled ? GUILD_DEFAULT_PROPERTY_VALUES.premiumProgressBarEnabled : premiumProgressBarEnabled; object2.premiumProgressBarEnabled = premiumProgressBarEnabled; let premiumProgressBarEnabledUserUpdatedAt = a0.premiumProgressBarEnabledUserUpdatedAt; Date = global.Date; const value16 = premiumProgressBarEnabledUserUpdatedAt instanceof Date; premiumProgressBarEnabledUserUpdatedAt = a0.premiumProgressBarEnabledUserUpdatedAt; if (value16) { r3 = premiumProgressBarEnabledUserUpdatedAt; } else { value17 = null; if (value17 != premiumProgressBarEnabledUserUpdatedAt) { date = new global.Date(a0.premiumProgressBarEnabledUserUpdatedAt); } else { r3 = value17; } } object2.premiumProgressBarEnabledUserUpdatedAt = r3; object2.systemChannelFlags = a0.systemChannelFlags; let discoverySplash = a0.discoverySplash; discoverySplash = !discoverySplash ? null : discoverySplash; object2.discoverySplash = discoverySplash; let rulesChannelId = a0.rulesChannelId; rulesChannelId = !rulesChannelId ? null : rulesChannelId; object2.rulesChannelId = rulesChannelId; let safetyAlertsChannelId = a0.safetyAlertsChannelId; safetyAlertsChannelId = !safetyAlertsChannelId ? null : safetyAlertsChannelId; object2.safetyAlertsChannelId = safetyAlertsChannelId; let publicUpdatesChannelId = a0.publicUpdatesChannelId; publicUpdatesChannelId = !publicUpdatesChannelId ? null : publicUpdatesChannelId; object2.publicUpdatesChannelId = publicUpdatesChannelId; let maxStageVideoChannelUsers = a0.maxStageVideoChannelUsers; maxStageVideoChannelUsers = !maxStageVideoChannelUsers ? GUILD_DEFAULT_PROPERTY_VALUES.maxStageVideoChannelUsers : maxStageVideoChannelUsers; object2.maxStageVideoChannelUsers = maxStageVideoChannelUsers; let maxVideoChannelUsers = a0.maxVideoChannelUsers; maxVideoChannelUsers = !maxVideoChannelUsers ? GUILD_DEFAULT_PROPERTY_VALUES.maxVideoChannelUsers : maxVideoChannelUsers; object2.maxVideoChannelUsers = maxVideoChannelUsers; let maxMembers = a0.maxMembers; maxMembers = !maxMembers ? GUILD_DEFAULT_PROPERTY_VALUES.maxMembers : maxMembers; object2.maxMembers = maxMembers; let nsfwLevel = a0.nsfwLevel; const value24 = null; nsfwLevel = value24 == nsfwLevel ? GUILD_DEFAULT_PROPERTY_VALUES.nsfwLevel : nsfwLevel; object2.nsfwLevel = nsfwLevel; const ownerConfiguredContentLevel = a0.ownerConfiguredContentLevel; object2.ownerConfiguredContentLevel = value24 != ownerConfiguredContentLevel ? ownerConfiguredContentLevel : value24; object2.hubType = a0.hubType; const latestOnboardingQuestionId = a0.latestOnboardingQuestionId; object2.latestOnboardingQuestionId = value24 != latestOnboardingQuestionId ? latestOnboardingQuestionId : value24; const profile = a0.profile; object2.profile = value24 != profile ? profile : value24; const guildTheme = a0.guildTheme; object2.guildTheme = value24 != guildTheme ? guildTheme : value24; const premiumFeatures = a0.premiumFeatures; object2.premiumFeatures = value24 != premiumFeatures ? premiumFeatures : value24; const moderatorReporting = a0.moderatorReporting; object2.moderatorReporting = value24 != moderatorReporting ? moderatorReporting : value24; const gameApplicationIds = a0.gameApplicationIds; object2.gameApplicationIds = value24 != gameApplicationIds ? gameApplicationIds : value24; const officialMessageColor = a0.officialMessageColor; object2.officialMessageColor = value24 != officialMessageColor ? officialMessageColor : value24; const verificationRoleId = a0.verificationRoleId; object2.verificationRoleId = value24 != verificationRoleId ? verificationRoleId : value24; return constructGuildInPlaceBinding(object2); } function toGuildProperties(a0) { // fn#16573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:9924, offset: 0x00e53bce, size: 751 bytes, params: 2, frame: 19 var object2; var moduleValue; const object4 = {}; object4.id = a0.id; object4.name = a0.name; object4.description = a0.description; object4.icon = a0.icon; object4.splash = a0.splash; object4.banner = a0.banner; object4.home_header = a0.homeHeader; const Array = global.Array; object4.features = Array.from(a0.features); object4.preferred_locale = a0.preferredLocale; object4.owner_id = a0.ownerId; object4.application_id = a0.application_id; object4.afk_channel_id = a0.afkChannelId; object4.afk_timeout = a0.afkTimeout; object4.system_channel_id = a0.systemChannelId; object4.verification_level = a0.verificationLevel; object4.explicit_content_filter = a0.explicitContentFilter; object4.default_message_notifications = a0.defaultMessageNotifications; object4.mfa_level = a0.mfaLevel; const vanityURLCode = a0.vanityURLCode; const value = null; let r3 = value != vanityURLCode ? vanityURLCode : value; object4.vanity_url_code = r3; object4.premium_tier = a0.premiumTier; object4.premium_progress_bar_enabled = a0.premiumProgressBarEnabled; const premiumProgressBarEnabledUserUpdatedAt = a0.premiumProgressBarEnabledUserUpdatedAt; const r4 = value == premiumProgressBarEnabledUserUpdatedAt ? undefined : premiumProgressBarEnabledUserUpdatedAt.toISOString(); object4.premium_progress_bar_enabled_user_updated_at = value != r4 ? r4 : value; object4.premium_features = value != a0.premiumFeatures ? {features: a0.premiumFeatures.features, additional_emoji_slots: a0.premiumFeatures.additionalEmojiSlots, additional_sticker_slots: a0.premiumFeatures.additionalStickerSlots, additional_sound_slots: a0.premiumFeatures.additionalSoundSlots} : value; object4.system_channel_flags = a0.systemChannelFlags; object4.discovery_splash = a0.discoverySplash; object4.rules_channel_id = a0.rulesChannelId; object4.safety_alerts_channel_id = a0.safetyAlertsChannelId; object4.public_updates_channel_id = a0.publicUpdatesChannelId; object4.max_stage_video_channel_users = a0.maxStageVideoChannelUsers; object4.max_video_channel_users = a0.maxVideoChannelUsers; object4.max_members = a0.maxMembers; object4.nsfw_level = a0.nsfwLevel; const AGE_RESTRICTED = GuildNSFWContentLevel.AGE_RESTRICTED; const items2 = [AGE_RESTRICTED]; const EXPLICIT = GuildNSFWContentLevel.EXPLICIT; items2[1] = EXPLICIT; object4.nsfw = items2.includes(a0.nsfwLevel); object4.owner_configured_content_level = a0.ownerConfiguredContentLevel; object4.hub_type = a0.hubType; object4.latest_onboarding_question_id = a0.latestOnboardingQuestionId; object4.profile = a0.profile; let guildTheme = a0.guildTheme; if (value != guildTheme) { guildTheme = a0.guildTheme; object2 = {}; object2.enabled = guildTheme.enabled; moduleValue = require(dependencyMap[5]); copyDataProperties(object2, moduleValue.toServerGuildThemeSettings(guildTheme.themeSettings), dependencyMap); r3 = object2; } else { r3 = value; } object4.theme = r3; object4.moderator_reporting = value != a0.moderatorReporting ? {moderator_reporting_enabled: a0.moderatorReporting.moderatorReportingEnabled, moderator_report_channel_id: a0.moderatorReporting.moderatorReportChannelId} : value; object4.official_message_color = a0.officialMessageColor; object4.incidents_data = value; object4.game_application_ids = a0.gameApplicationIds; object4.verification_role_id = a0.verificationRoleId; return object4; } function fromSerializedGuildRecord(a0) { // fn#16574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1545:12040, offset: 0x00e53ebd, size: 205 bytes, params: 2, frame: 18 var r6; var r4; var date; const object2 = {}; copyDataProperties(object2, a0, undefined); const setUtilsModule = require(1421) /* metro dependency 1421: SetUtils */; object2['features'] = setUtilsModule.toSetInplace(a0.features); const joinedAt = a0.joinedAt; const value3 = null; if (value3 != joinedAt) { date = new global.Date(a0.joinedAt); } else { r6 = value3; } object2['joinedAt'] = r6; if (value3 != a0.premiumProgressBarEnabledUserUpdatedAt) { date = new global.Date(a0.premiumProgressBarEnabledUserUpdatedAt); } else { r4 = value3; } object2['premiumProgressBarEnabledUserUpdatedAt'] = r4; delete object2.roles; delete object2.member; return constructGuildInPlace(object2); }