Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
+287
@@ -0,0 +1,287 @@
|
||||
/* Metro module 648; source: ../discord_common/js/packages/analytics-utils/AnalyticsSchema.tsx; dependencies: [482, 2] */
|
||||
function _fun7348(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:698:6, offset: 0x00d15327, size: 4030 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(482) /* metro dependency 482: Constants */).WebAnalyticsEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/analytics-utils/AnalyticsSchema.tsx');
|
||||
exports.ImpressionNames = {ACCOUNT_REVERT_CHANGE_PASSWORD: 'impression_account_revert_change_password',
|
||||
ACCOUNT_REVERT_EXPLAINER: 'impression_account_revert_explainer',
|
||||
ACCOUNT_REVERT_SUCCESS: 'impression_account_revert_success', ACTIVITIES: 'impression_activities',
|
||||
ACTIVITIES_HAPPENING_NOW: 'impression_activities_happening_now',
|
||||
ACTIVITY_BOOKMARK_SHARE_MODAL: 'impression_activity_bookmark_share_modal',
|
||||
ACTIVITY_BOOSTING_UPSELL: 'impression_activity_boosting_upsell',
|
||||
ACTIVITY_DETAILS: 'impression_activity_details', ACTIVITY_NITRO_UPSELL: 'impression_activity_nitro_upsell',
|
||||
ACTIVITY_SHARE_MOMENT_MODAL: 'impression_activity_share_moment_modal',
|
||||
ACTIVITY_SHELF: 'impression_activity_shelf',
|
||||
ACTIVITY_SHELF_SELECT_CHANNEL: 'impression_activity_shelf_select_channel',
|
||||
APP_LAUNCHER_BADGE: 'impression_app_launcher_badge',
|
||||
APP_LAUNCHER_HOME_ACTIVITY_ITEM: 'impression_app_launcher_home_activity_item',
|
||||
APP_LAUNCHER_ITEM: 'impression_app_launcher_item',
|
||||
APP_LAUNCHER_SEARCH_RESULTS_ITEM: 'impression_app_launcher_search_results_item',
|
||||
APP_LAUNCHER_SECTION: 'impression_app_launcher_section',
|
||||
APP_OAUTH2_LINK_EMBED: 'impression_app_oauth2_link_embed',
|
||||
APPEAL_INGESTION_COLLECT_SIGNAL: 'impression_appeal_ingestion_collect_signal',
|
||||
APPEAL_INGESTION_CONFIRM_SUBMISSION: 'impression_appeal_ingestion_confirm_submission',
|
||||
APPEAL_INGESTION_REQUEST_SENT: 'impression_appeal_ingestion_request_sent',
|
||||
APPEAL_INGESTION_SPAM: 'impression_appeal_ingestion_spam',
|
||||
APPEAL_INGESTION_SPEED_BUMP: 'impression_appeal_ingestion_speed_bump',
|
||||
APPEAL_INGESTION_THANKS: 'impression_appeal_ingestion_thanks',
|
||||
APPLICATION_LIBRARY: 'impression_application_library', APPLICATION_STORE: 'impression_application_store',
|
||||
APRIL_PREMIUM_MARKETING_DECO_CLAIMED_MODAL: 'impression_april_premium_marketing_deco_claimed_modal',
|
||||
AUDIO_DEVICE_MENU: 'impression_audio_device_menu', AVATAR_UPLOAD: 'impression_avatar_upload',
|
||||
BLOCK_USER_CONFIRMATION: 'impression_block_user_confirmation',
|
||||
BOOST_SHOP_OPENED: 'impression_boost_shop_opened', CALL_TILE_CONTEXT_MENU: 'impression_call_tile_context_menu',
|
||||
CHANNEL_ADD_INFO: 'impression_channel_add_info', CHANNEL_ADD_MEMBERS: 'impression_channel_add_members',
|
||||
CHANNEL_CALL_VIDEO_GRID: 'impression_channel_call_video_grid',
|
||||
CHANNEL_CALL_VIDEO_GRID_VIEW: 'impression_channel_call_video_grid_view',
|
||||
CHANNEL_VIEWED: 'impression_channel_viewed',
|
||||
CHAT_WALLPAPER_DM_CONTEXT_MENU_ENTRY_POINT: 'impression_chat_wallpaper_dm_context_menu_entry_point',
|
||||
CHAT_WALLPAPER_DM_LIST_COACHMARK: 'impression_chat_wallpaper_dm_list_coachmark',
|
||||
CHAT_WALLPAPER_PICKER_COACHMARK: 'impression_chat_wallpaper_picker_coachmark',
|
||||
CHAT_WALLPAPER_WALLPAPER_OPTION: 'impression_chat_wallpaper_wallpaper_option',
|
||||
CLIP_EDITOR_VIEWED: 'impression_clip_editor_viewed', CLIP_GALLERY_VIEWED: 'impression_clip_gallery_viewed',
|
||||
CLOUD_PLAY_CTA: 'impression_cloud_play_cta',
|
||||
CLYDE_AI_PROFILE_EMBED_VIEWED: 'impression_clyde_ai_profile_embed_viewed',
|
||||
COLLECTIBLES_EXPIRY_MODAL: 'impression_collectibles_expiry_modal',
|
||||
CONFETTI_POTION_MODAL: 'impression_confetti_potion_modal',
|
||||
CONTACT_SYNC_CONTACT_INVITES: 'impression_contact_sync_contact_invites',
|
||||
CONTACT_SYNC_INPUT_NAME: 'impression_contact_sync_input_name',
|
||||
CONTACT_SYNC_START: 'impression_contact_sync_start',
|
||||
CONTACT_SYNC_SUGGESTIONS: 'impression_contact_sync_suggestions',
|
||||
CREATOR_PROMO_PAGE_GUILD_HEADER_UPSELL: 'impression_creator_promo_page_guild_header_upsell',
|
||||
CUSTOM_THEME_SHARE: 'impression_custom_theme_share',
|
||||
CUSTOM_THEMES_APPEARANCE_SETTINGS_BANNER: 'impression_custom_themes_appearance_settings_banner',
|
||||
CUSTOM_THEMES_PREVIEW_THEMES_BANNER: 'impression_custom_themes_preview_themes_banner',
|
||||
DIRECTORY_ADD_GUILD_CONFIRMATION: 'impression_directory_add_guild_confirmation',
|
||||
DISCOVERABILITY: 'impression_discoverability',
|
||||
DISCOVERY_GAME_LANDING_PAGE: 'impression_discovery_game_landing_page',
|
||||
DISPLAY_NAME_STYLES_MODAL: 'impression_display_name_styles_modal',
|
||||
DM_LIST_KEBAB_MENU_SHOWN: 'impression_dm_list_kebab_menu_shown',
|
||||
DM_LIST_RIGHT_CLICK_MENU_SHOWN: 'impression_dm_list_right_click_menu_shown',
|
||||
DOUBLE_TAP_REACT_UPSELL: 'impression_double_tap_react_upsell',
|
||||
DROPS_QUEST_COMPLETION: 'impression_drops_quest_completion',
|
||||
DROPS_QUEST_ENROLLMENT: 'impression_drops_quest_enrollment',
|
||||
EMBEDDED_ACTIVITY_HAPPENING_NOW: 'impression_embedded_activity_happening_now',
|
||||
ENABLE_CREATOR_MONETIZATION_ACCEPT_TERMS_LANDING: 'impression_enable_creator_monetization_accept_terms_landing',
|
||||
ENABLE_CREATOR_MONETIZATION_CREATE_REQUEST_LANDING: 'impression_enable_creator_monetization_create_request_landing',
|
||||
ENABLE_CREATOR_MONETIZATION_GUILD_HEADER_UPSELL: 'impression_enable_creator_monetization_guild_header_upsell',
|
||||
ENABLE_CREATOR_MONETIZATION_WAITLIST_LANDING: 'impression_enable_creator_monetization_waitlist_landing',
|
||||
FOR_LATER_LIST_VIEWED: 'impression_for_later_list_viewed',
|
||||
FORTNITE_GET_GAME_MODAL: 'impression_fortnite_get_game_modal',
|
||||
FRIEND_REQUESTS_SPAM_INBOX: 'impression_friend_requests_spam_inbox', FRIENDS: 'impression_friends',
|
||||
GAME_ACCOUNT_LINK_RECURRING_UPSELL: 'impression_game_account_link_recurring_upsell',
|
||||
GAME_COMMUNITY_MULTI_GUILD_UPSELL_CARD: 'impression_game_community_multi_guild_upsell_card',
|
||||
GAME_CONSOLE_DEVICE_LIST: 'impression_game_console_device_list',
|
||||
GAME_DETECTION_REPORT_MODAL: 'impression_game_detection_report_modal',
|
||||
GAME_SERVER_ACTIVITY_BUTTON: 'impression_game_server_activity_button',
|
||||
GDM_SETTINGS_INVITES: 'impression_gdm_settings_invites',
|
||||
GIFT_CARD_REDEMPTION_SUCCEEDED_MODAL: 'impression_gift_card_redemption_succeeded_modal',
|
||||
GIFT_INTENT_ACTION_BUTTON: 'impression_gift_intent_action_button',
|
||||
GIFT_INTENT_BADGE: 'impression_gift_intent_badge', GIFT_INTENT_CARD: 'impression_gift_intent_card',
|
||||
GIFT_INTENT_UNREAD_NOTIFICATION: 'impression_gift_intent_unread_notification',
|
||||
GIFT_INTENT_USER_PROFILE_POPOUT: 'impression_gift_intent_user_profile_popout',
|
||||
GIFT_OPTION_WISHLIST_BANNER_VIEWED: 'impression_gift_option_wishlist_banner_viewed',
|
||||
GIFT_SELECTION_WISHLIST_SECTION_VIEWED: 'impression_gift_selection_wishlist_section_viewed',
|
||||
GIFTING_BADGE_PROGRESS_BANNER: 'impression_gifting_badge_progress_banner',
|
||||
GLOBAL_DISCOVERY: 'impression_global_discovery', GLOBAL_DISCOVERY_APPS: 'impression_global_discovery_apps',
|
||||
GO_LIVE_MODAL: 'impression_go_live_modal', GUILD_ADD_ACCEPT_INVITE: 'impression_guild_add_accept_invite',
|
||||
GUILD_ADD_CHANNEL_PROMPT: 'impression_guild_add_channel_prompt',
|
||||
GUILD_ADD_CUSTOMIZE: 'impression_guild_add_customize',
|
||||
GUILD_ADD_GUILD_INVITE: 'impression_guild_add_guild_invite',
|
||||
GUILD_ADD_INTENT_SELECTION: 'impression_guild_add_intent_selection',
|
||||
GUILD_ADD_JOIN: 'impression_guild_add_join', GUILD_ADD_LANDING: 'impression_guild_add_landing',
|
||||
GUILD_CHANNEL: 'impression_guild_channel', GUILD_CREATE_MODAL_JOIN: 'impression_guild_create_modal_join',
|
||||
GUILD_DISCOVERY: 'impression_guild_discovery', GUILD_HANGOUT_WINDOW: 'impression_guild_hangout_window',
|
||||
GUILD_HANGOUT_WINDOW_ENTRY_POINT: 'impression_guild_hangout_window_entry_point',
|
||||
GUILD_HANGOUT_WINDOW_MODAL: 'impression_guild_hangout_window_modal', GUILD_INVITE: 'impression_guild_invite',
|
||||
GUILD_INVITE_LINK_SETTINGS: 'impression_guild_invite_link_settings',
|
||||
GUILD_INVITE_SEARCH: 'impression_guild_invite_search',
|
||||
GUILD_MEMBER_VERIFICATION: 'impression_guild_member_verification',
|
||||
GUILD_PERMANENT_LINKS_UPSELL: 'impression_guild_permanent_links_upsell',
|
||||
GUILD_PRODUCT_LISTING_EMBED: 'impression_guild_product_listing_embed',
|
||||
GUILD_PRODUCT_LISTING_INFO_MODAL: 'impression_guild_product_listing_info_modal',
|
||||
GUILD_ROLE_SUBSCRIPTION_STORE_PAGE_GUILD_SETTINGS: 'impression_guild_role_subscription_store_page_guild_settings',
|
||||
GUILD_SETTINGS_ACCESS: 'impression_guild_settings_access',
|
||||
GUILD_SETTINGS_ANALYTICS: 'impression_guild_settings_analytics',
|
||||
GUILD_SETTINGS_AUDIT_LOG: 'impression_guild_settings_audit_log',
|
||||
GUILD_SETTINGS_AUDIT_LOG_V2: 'impression_guild_settings_audit_log_v2',
|
||||
GUILD_SETTINGS_BANS: 'impression_guild_settings_bans',
|
||||
GUILD_SETTINGS_BOOST_PERKS: 'impression_guild_settings_boost_perks',
|
||||
GUILD_SETTINGS_BOOST_STATUS: 'impression_guild_settings_boost_status',
|
||||
GUILD_SETTINGS_CHANNELS: 'impression_guild_settings_channels',
|
||||
GUILD_SETTINGS_CLYDE: 'impression_guild_settings_clyde',
|
||||
GUILD_SETTINGS_COMMUNITY_OVERVIEW: 'impression_guild_settings_community_overview',
|
||||
GUILD_SETTINGS_COMMUNITY_WELCOME: 'impression_guild_settings_community_welcome',
|
||||
GUILD_SETTINGS_DISCOVERY: 'impression_guild_settings_discovery',
|
||||
GUILD_SETTINGS_DISCOVERY_LANDING_PAGE: 'impression_guild_settings_discovery_landing_page',
|
||||
GUILD_SETTINGS_EMOJI: 'impression_guild_settings_emoji',
|
||||
GUILD_SETTINGS_ENABLE_COMMUNITY: 'impression_guild_settings_enable_community',
|
||||
GUILD_SETTINGS_ENGAGEMENT: 'impression_guild_settings_engagement',
|
||||
GUILD_SETTINGS_GUILD_THEME: 'impression_guild_settings_guild_theme',
|
||||
GUILD_SETTINGS_INTEGRATION: 'impression_guild_settings_integration',
|
||||
GUILD_SETTINGS_INVITES: 'impression_guild_settings_invites',
|
||||
GUILD_SETTINGS_INVITES_V2: 'impression_guild_settings_invites_v2',
|
||||
GUILD_SETTINGS_LANDING: 'impression_guild_settings_landing',
|
||||
GUILD_SETTINGS_LAYOUT: 'impression_guild_settings_layout',
|
||||
GUILD_SETTINGS_MEMBER_VERIFICATION: 'impression_guild_settings_member_verification',
|
||||
GUILD_SETTINGS_MEMBERS: 'impression_guild_settings_members',
|
||||
GUILD_SETTINGS_MODERATION: 'impression_guild_settings_moderation',
|
||||
GUILD_SETTINGS_OFFICIAL_MESSAGES: 'impression_guild_settings_official_messages',
|
||||
GUILD_SETTINGS_OVERVIEW: 'impression_guild_settings_overview',
|
||||
GUILD_SETTINGS_PARTNER: 'impression_guild_settings_partner',
|
||||
GUILD_SETTINGS_PROFILE: 'impression_guild_settings_profile',
|
||||
GUILD_SETTINGS_ROLES: 'impression_guild_settings_roles',
|
||||
GUILD_SETTINGS_SAFETY: 'impression_guild_settings_safety',
|
||||
GUILD_SETTINGS_SECURITY: 'impression_guild_settings_security',
|
||||
GUILD_SETTINGS_SOUNDBOARD: 'impression_guild_settings_soundboard',
|
||||
GUILD_SETTINGS_STICKERS: 'impression_guild_settings_stickers',
|
||||
GUILD_SETTINGS_TAG: 'impression_guild_settings_tag',
|
||||
GUILD_SETTINGS_TEMPLATE: 'impression_guild_settings_template',
|
||||
GUILD_SETTINGS_VANITY_URL: 'impression_guild_settings_vanity_url',
|
||||
GUILD_SETTINGS_WEBHOOKS: 'impression_guild_settings_webhooks',
|
||||
GUILD_SETTINGS_WIDGET: 'impression_guild_settings_widget', GUILD_SHOP_EMBED: 'impression_guild_shop_embed',
|
||||
GUILD_SHOP_PAGE: 'impression_guild_shop_page', GUILD_SHOP_UPSELL: 'impression_guild_shop_upsell',
|
||||
GUILD_TRANSFER_OWNERSHIP: 'impression_guild_transfer_ownership',
|
||||
GUILD_TRANSFER_OWNERSHIP_CONFIRM_EMAIL_CODE: 'impression_guild_transfer_ownership_confirm_email_code',
|
||||
GUILD_TRANSFER_OWNERSHIP_CONFIRM_SMS_CODE: 'impression_guild_transfer_ownership_confirm_sms_code',
|
||||
GUILDS_EMPTY_NUX: 'impression_guilds_empty_nux', HD_STREAMING_POPOUT: 'impression_hd_streaming_popout',
|
||||
HOTSPOT: 'impression_hotspot', HUB_CREATE_GUILD_CUSTOMIZE: 'impression_hub_create_guild_customize',
|
||||
HUB_CREATE_GUILD_TEMPLATE: 'impression_hub_create_guild_template',
|
||||
HUB_EMAIL_SIGNUP: 'impression_hub_email_signup',
|
||||
HUB_EMAIL_VERIFICATION_PAGE: 'impression_hub_email_verification_page',
|
||||
HUB_EXISTING_GUILD_CHOOSE: 'impression_hub_existing_guild_choose',
|
||||
HUB_EXISTING_GUILD_CUSTOMIZE: 'impression_hub_existing_guild_customize',
|
||||
HUB_WAITLIST_SIGNUP: 'impression_hub_waitlist_signup',
|
||||
ICYMI_ONBOARDING_OVERVIEW: 'impression_icymi_onboarding_overview',
|
||||
ICYMI_ONBOARDING_SELECT_GUILDS: 'impression_icymi_onboarding_select_guilds',
|
||||
ICYMI_ONBOARDING_TOPICS: 'impression_icymi_onboarding_topics',
|
||||
IGNORE_USER_CONFIRMATION: 'impression_ignore_user_confirmation', INVITE_ACCEPT: 'impression_invite_accept',
|
||||
INVITE_EMBED: 'impression_invite_embed',
|
||||
LOCALIZED_PRICING_UPSELL_VIEWED: 'impression_localized_pricing_upsell_viewed',
|
||||
MASKED_LINK_MODAL: 'impression_masked_link_modal',
|
||||
MESSAGE_ALSO_SEND_TO_CHANNEL: 'impression_message_also_send_to_channel',
|
||||
MESSAGES_EMPTY_NUX: 'impression_messages_empty_nux',
|
||||
MOBILE_GO_LIVE_ACTION_SHEET: 'impression_mobile_go_live_action_sheet',
|
||||
MODAL_ROOT_LEGACY: 'impression_modal_root_legacy',
|
||||
MULTI_ACCOUNT_SWITCH_LANDING: 'impression_multi_account_switch_landing',
|
||||
NEW_USER_INTENT_START: 'impression_new_user_intent_start', NITRO_TAB: 'impression_nitro_tab',
|
||||
NOTIFICATION_CENTER_LANDING: 'impression_notification_center_landing',
|
||||
NOTIFICATION_SETTING_UNREAD_NUDGE: 'impression_notification_setting_unread_nudge',
|
||||
PERK_DISCOVERABILITY_CARD: 'impression_perk_discoverability_card',
|
||||
POLL_EDITOR_VIEWED: 'impression_poll_editor_viewed', POMELO_LANDING: 'impression_pomelo_landing',
|
||||
PREMIUM_GUILD_SUBSCRIPTION_MARKETING_PAGE: 'impression_premium_guild_subscription_marketing_page',
|
||||
PREMIUM_MARKETING_BANNER: 'impression_premium_marketing_banner',
|
||||
PREMIUM_MARKETING_COMPONENT: 'impression_premium_marketing_component',
|
||||
PREMIUM_MARKETING_SURFACE: 'impression_premium_marketing_surface',
|
||||
PREMIUM_MARKETING_TENURE_REWARD_CARD: 'impression_premium_marketing_tenure_reward_card',
|
||||
PUSH_NOTIFICATION_PREPROMPT: 'impression_push_notification_preprompt',
|
||||
PUSH_NOTIFICATION_REACTIVATION_PROMPT: 'impression_push_notification_reactivation_prompt',
|
||||
QUEST_HOME: 'impression_quest_home', QUESTS_LANDING_PAGE: 'impression_quests_landing_page',
|
||||
REQUEST_REVIEW_MODAL: 'impression_request_review_modal',
|
||||
RING_TO_GUILD_VC_BANNER_SHOWN: 'impression_ring_to_guild_vc_banner_shown',
|
||||
RING_TO_GUILD_VC_MENU_ITEM_SHOWN: 'impression_ring_to_guild_vc_menu_item_shown',
|
||||
ROLE_CREATE_ADD_MEMBERS: 'impression_role_create_add_members',
|
||||
ROLE_CREATE_DISPLAY: 'impression_role_create_display',
|
||||
ROLE_CREATE_PERMISSIONS: 'impression_role_create_permissions',
|
||||
ROLE_SUBSCRIPTION_EMOJI_UPSELL: 'impression_role_subscription_emoji_upsell',
|
||||
ROLE_SUBSCRIPTION_INITIAL_SETUP_MODAL_LANDING: 'impression_role_subscription_initial_setup_modal_landing',
|
||||
ROLE_SUBSCRIPTION_INITIAL_SETUP_MODAL_TIER_STEP: 'impression_role_subscription_initial_setup_modal_tier_step',
|
||||
ROLE_SUBSCRIPTION_LISTING_TEMPLATE_SELECTOR: 'impression_role_subscription_listing_template_selector',
|
||||
ROLE_SUBSCRIPTION_LISTING_UPSELL_ERROR_PAGE: 'impression_role_subscription_listing_upsell_error_page',
|
||||
SHELF_ACTIVITY_DETAILS: 'impression_shelf_activity_details', SHOP_CARD: 'impression_shop_card',
|
||||
SHOP_PRODUCT_DETAIL: 'impression_shop_product_detail', SNOWSGIVING: 'impression_snowsgiving',
|
||||
SOUNDBOARD_POPOUT: 'impression_soundboard_popout', STAGE_DISCOVERY: 'impression_stage_discovery',
|
||||
STREAM_FEEDBACK_MODAL: 'impression_stream_feedback_modal',
|
||||
THIRD_PARTY_PARTNER_PERK: 'impression_third_party_partner_perk',
|
||||
TIERED_TENURE_BADGE_LEVEL_UP: 'impression_tiered_tenure_badge_level_up',
|
||||
TIERED_TENURE_BADGE_MODAL: 'impression_tiered_tenure_badge_modal',
|
||||
TRIAL_FOR_ALL_COACHTIP: 'impression_trial_for_all_coachtip', TRIAL_NOTICE: 'impression_trial_notice',
|
||||
URF_CONFIRM_EMAIL_CODE: 'impression_urf_confirm_email_code', URF_ENTER_EMAIL: 'impression_urf_enter_email',
|
||||
USER_ACCOUNT_EMAIL_CHANGE_COLLECT_REASONS: 'impression_user_account_email_change_collect_reasons',
|
||||
USER_ACCOUNT_EMAIL_CHANGE_COMPLETE: 'impression_user_account_email_change_complete',
|
||||
USER_ACCOUNT_EMAIL_CHANGE_ENTER_EMAIL: 'impression_user_account_email_change_enter_email',
|
||||
USER_ACCOUNT_EMAIL_CHANGE_SEND_CODE: 'impression_user_account_email_change_send_code',
|
||||
USER_ACCOUNT_EMAIL_CHANGE_VERIFY_CODE: 'impression_user_account_email_change_verify_code',
|
||||
USER_ACCOUNT_EMAIL_CHANGE_WARNING: 'impression_user_account_email_change_warning',
|
||||
USER_ACCOUNT_EMAIL_RESEND_VERIFICATION_EMAIL: 'impression_user_account_email_resend_verification_email',
|
||||
USER_ACCOUNT_PASSWORD_VERIFY: 'impression_user_account_password_verify',
|
||||
USER_ACTION_REQUIRED: 'impression_user_action_required', USER_ADD_PHONE: 'impression_user_add_phone',
|
||||
USER_AGE_GATE: 'impression_user_age_gate', USER_AGE_GATE_UNDERAGE: 'impression_user_age_gate_underage',
|
||||
USER_AGE_GATE_VERIFY: 'impression_user_age_gate_verify',
|
||||
USER_AGE_VERIFICATION_RESET_CONFIRM: 'impression_user_age_verification_reset_confirm',
|
||||
USER_AGE_VERIFICATION_RESET_OPTIONS: 'impression_user_age_verification_reset_options',
|
||||
USER_AGREEMENTS: 'impression_user_agreements',
|
||||
USER_CLYDE_AI_CONSENT_MODAL: 'impression_user_clyde_ai_consent_modal', USER_LOGIN: 'impression_user_login',
|
||||
USER_PASSWORDLESS_CODE_ENTRY: 'impression_user_passwordless_code_entry',
|
||||
USER_PASSWORDLESS_INTRO: 'impression_user_passwordless_intro',
|
||||
USER_REGISTER_ACCOUNT_INFORMATION: 'impression_user_register_account_information',
|
||||
USER_REGISTER_IDENTITY: 'impression_user_register_identity', USER_REGISTRATION: 'impression_user_registration',
|
||||
USER_RETURNED_HAPPENING_NOW: 'impression_user_returned_happening_now',
|
||||
USER_SETTINGS_CONNECTIONS: 'impression_user_settings_connections',
|
||||
USER_SETTINGS_SESSIONS: 'impression_user_settings_sessions',
|
||||
USER_VERIFICATION_MODAL: 'impression_user_verification_modal',
|
||||
USER_VERIFY_PASSWORD: 'impression_user_verify_password', USER_VERIFY_PHONE: 'impression_user_verify_phone',
|
||||
USER_WELCOME: 'impression_user_welcome', USER_YOU_SCREEN: 'impression_user_you_screen',
|
||||
VIEW_PANEL_DEVTOOLS: 'impression_view_panel_devtools',
|
||||
VOICE_CHANNEL_BLOCKED_USER_WARNING: 'impression_voice_channel_blocked_user_warning',
|
||||
VOICE_FEEDBACK_MODAL: 'impression_voice_feedback_modal',
|
||||
VOICE_FILTER_FEEDBACK_MODAL: 'impression_voice_filter_feedback_modal',
|
||||
VOICE_INVITE_EMBED: 'impression_voice_invite_embed',
|
||||
VOICE_INVITE_SUGGESTIONS_ENTRYPOINT: 'impression_voice_invite_suggestions_entrypoint',
|
||||
VOICE_INVITE_SUGGESTIONS_POPOVER: 'impression_voice_invite_suggestions_popover',
|
||||
VOICE_USER_ACTIVITY_POPOUT: 'impression_voice_user_activity_popout', WISHLIST_ITEM: 'impression_wishlist_item'};
|
||||
exports.NetworkActionNames = {ACCOUNT_REVERT: 'network_action_account_revert',
|
||||
APPLE_JWT_TOKEN_CREATE: 'network_action_apple_jwt_token_create',
|
||||
AUTH_SESSIONS_LOGGED_OUT: 'network_action_auth_sessions_logged_out',
|
||||
AUTHORIZE_IP: 'network_action_authorize_ip', AUTHORIZE_PAYMENT: 'network_action_authorize_payment',
|
||||
BILLING_IP_LOCATION_FETCH_ERROR: 'network_action_billing_ip_location_fetch_error',
|
||||
BUG_REPORT_SUBMIT: 'network_action_bug_report_submit', CHANNEL_CREATE: 'network_action_channel_create',
|
||||
DETECTABLE_APPLICATIONS_FETCH: 'network_action_detectable_applications_fetch',
|
||||
DETECTABLE_NON_GAMES_FETCH: 'network_action_detectable_non_games_fetch',
|
||||
DIRECTORY_GUILD_ENTRY_CREATE: 'network_action_directory_guild_entry_create',
|
||||
DIRECTORY_GUILD_ENTRY_DELETE: 'network_action_directory_guild_entry_delete',
|
||||
EMAIL_SETTINGS_FETCH: 'network_action_email_settings_fetch',
|
||||
EMAIL_SETTINGS_UPDATE: 'network_action_email_settings_update',
|
||||
EMBEDDED_ACTIVITIES_FETCH_SHELF: 'network_action_embedded_activities_fetch_shelf',
|
||||
EMBEDDED_ACTIVITIES_LAUNCH: 'network_action_embedded_activities_launch',
|
||||
FORGOT_PASSWORD: 'network_action_forgot_password', GUILD_CREATE: 'network_action_guild_create',
|
||||
GUILD_TRANSFER_OWNERSHIP: 'network_action_guild_transfer_ownership',
|
||||
GUILD_TRANSFER_OWNERSHIP_SEND_CODE: 'network_action_guild_transfer_ownership_send_code',
|
||||
HUB_EMAIL_VERIFY: 'network_action_hub_email_verify',
|
||||
HUB_EMAIL_VERIFY_SEND: 'network_action_hub_email_verify_send',
|
||||
HUB_WAITLIST_SIGNUP: 'network_action_hub_waitlist_signup',
|
||||
INVITE_FRIEND_MEMBERS_FETCH: 'network_action_invite_friend_members_fetch',
|
||||
INVITE_RESOLVE: 'network_action_invite_resolve', INVITE_REVOKE: 'network_action_invite_revoke',
|
||||
LOGIN_REQUEST_SMS_TOKEN: 'network_action_login_request_sms_token',
|
||||
NCMEC_REPORT_CLOSE: 'network_action_ncmec_report_close',
|
||||
NCMEC_REPORTABLE_CONTENT_CREATE: 'network_action_ncmec_reportable_content_create',
|
||||
NITRO_WARP_CREATE_LICENSE: 'network_action_nitro_warp_create_license',
|
||||
NOTIFICATION_CENTER_ITEM_DELETE: 'network_action_notification_center_item_delete',
|
||||
NOTIFICATION_CENTER_PAGE_FETCH: 'network_action_notification_center_page_fetch',
|
||||
PASSWORD_VALIDATE: 'network_action_password_validate', POMELO_ATTEMPT: 'network_action_pomelo_attempt',
|
||||
POMELO_CREATE: 'network_action_pomelo_create', QUEST_HEARTBEAT: 'network_action_quest_heartbeat',
|
||||
QUEST_VIDEO_PROGRESS: 'network_action_quest_video_progress', STREAM_NOTIFY: 'network_action_stream_notify',
|
||||
USER_ACCEPT_AGREEMENTS: 'network_action_user_accept_agreements',
|
||||
USER_ACCOUNT_EMAIL_CHANGE_SEND_CODE: 'network_action_user_account_email_change_send_code',
|
||||
USER_ACCOUNT_EMAIL_CHANGE_VERIFY_CODE: 'network_action_user_account_email_change_verify_code',
|
||||
USER_BULK_RELATIONSHIPS_UPDATE: 'network_action_user_bulk_relationships_update',
|
||||
USER_CLYDE_AI_CONSENT_UPDATED: 'network_action_user_clyde_ai_consent_updated',
|
||||
USER_COMMUNICATION_DISABLED_UPDATE: 'network_action_user_communication_disabled_update',
|
||||
USER_CONNECTIONS_UPDATE: 'network_action_user_connections_update',
|
||||
USER_CONTACTS_SYNC: 'network_action_user_contacts_sync', USER_LOGIN: 'network_action_user_login',
|
||||
USER_LOGIN_MFA: 'network_action_user_login_mfa', USER_LOGIN_MFA_SMS: 'network_action_user_login_mfa_sms',
|
||||
USER_LOGIN_PASSWORDLESS: 'network_action_user_login_passwordless', USER_LOGOUT: 'network_action_user_logout',
|
||||
USER_ONE_TIME_LOGIN: 'network_action_user_one_time_login',
|
||||
USER_PASSWORDLESS_INFO_FETCH: 'network_action_user_passwordless_info_fetch',
|
||||
USER_PASSWORDLESS_LOGIN_CODE: 'network_action_user_passwordless_login_code',
|
||||
USER_REGISTER: 'network_action_user_register',
|
||||
USER_REGISTER_DEVICE_TOKEN: 'network_action_user_register_device_token',
|
||||
USER_REGISTER_PHONE: 'network_action_user_register_phone',
|
||||
USER_RESET_PASSWORD: 'network_action_user_reset_password',
|
||||
USER_SETTINGS_UPDATE: 'network_action_user_settings_update',
|
||||
USER_SURVEY_FETCH: 'network_action_user_survey_fetch', USER_SURVEY_SEEN: 'network_action_user_survey_seen',
|
||||
USER_UNREGISTER_DEVICE_TOKEN: 'network_action_user_unregister_device_token',
|
||||
USER_VERIFY: 'network_action_user_verify', USER_VERIFY_PHONE: 'network_action_user_verify_phone',
|
||||
USER_VERIFY_RESEND: 'network_action_user_verify_resend', WEBAUTHN_REGISTER: 'network_action_webauthn_register'};
|
||||
}
|
||||
|
||||
Vendored
+46
@@ -0,0 +1,46 @@
|
||||
/* Metro module 643; source: ../discord_common/js/packages/analytics-utils/AnalyticsTrackingActionCreators.tsx; dependencies: [2] */
|
||||
function _fun7332(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:693:6, offset: 0x00d14c9b, size: 85 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/analytics-utils/AnalyticsTrackingActionCreators.tsx');
|
||||
exports.queueTrackingEventMaker = function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return _fun7334;
|
||||
};
|
||||
}
|
||||
|
||||
function queueTrackingEventMaker(a0, a1) { // fn#7333, offset: 0x00d14cf0, size: 23 bytes, params: 3, frame: 2
|
||||
let env0_0 = a0;
|
||||
let env0_1 = a1;
|
||||
return function(a0, a1, a2) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
var env0_2 = a2;
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun7335);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
};
|
||||
}
|
||||
|
||||
function _fun7334(a0, a1, a2) { // fn#7334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:693:240, offset: 0x00d14d07, size: 58 bytes, params: 4, frame: 11
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun7335);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function _fun7335(a0) { // fn#7335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:693:276, offset: 0x00d14d41, size: 127 bytes, params: 2, frame: 17
|
||||
const binding = env1_0;
|
||||
const dispatch = binding.dispatch;
|
||||
const value2 = undefined;
|
||||
const flush = importDefault == null ? value2 : importDefault.flush;
|
||||
Reflect.apply(dispatch, binding, [{type: require, event: env0_0, properties: require, flush: flush != null && flush,
|
||||
fingerprint: importDefault == null ? value2 : importDefault.fingerprint, resolve: a0}]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
+393
@@ -0,0 +1,393 @@
|
||||
/* Metro module 481; source: ../discord_common/js/packages/analytics-utils/AnalyticsTrackingStore.tsx; dependencies: [6, 7, 15, 17, 18, 482, 487, 490, 491, 507, 566, 2] */
|
||||
function _fun6189(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:6, offset: 0x00cefc2c, size: 502 bytes, params: 8, frame: 20
|
||||
var object2;
|
||||
let env0_0 = require;
|
||||
const incrementMetric = function(a0) {
|
||||
var value = a1;
|
||||
return a0 + (value !== undefined ? value : 1);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
const constantsModule = require(482) /* metro dependency 482: Constants */;
|
||||
const env0_8 = constantsModule.TelemetryEndpoints;
|
||||
const env0_9 = constantsModule.TelemetryEvents;
|
||||
object2 = {'FREQUENCY': 3600000, 'MIN_DELAY': 60000, 'MAX_DELAY': 3600000};
|
||||
const env0_10 = object2.FREQUENCY;
|
||||
const env0_11 = object2.MIN_DELAY;
|
||||
const env0_12 = object2.MAX_DELAY;
|
||||
const Number = global.Number;
|
||||
const env0_21 = Number.MAX_SAFE_INTEGER;
|
||||
const env0_30 = global.window.requestIdleCallback ?? (function(a0) {
|
||||
var env0_0 = a0;
|
||||
return global.setImmediate(_fun6195);
|
||||
});
|
||||
const IdGenerator = (require(487) /* metro dependency 487: IdGenerator */).IdGenerator;
|
||||
const idGenerator = new IdGenerator();
|
||||
const env0_33 = [];
|
||||
const defaultGetSessionId = function() {
|
||||
var Promise = global.Promise;
|
||||
return Promise.resolve({sessionId: undefined});
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/analytics-utils/AnalyticsTrackingStore.tsx');
|
||||
exports.AnalyticsActionHandlers = {handleConnectionOpen: function() {
|
||||
}, handleConnectionClosed: function() {
|
||||
}, handleFingerprint: function() {
|
||||
}, handleTrack: function() {
|
||||
}, handleSetAnalyticsToken: function() {
|
||||
}};
|
||||
exports.analyticsTrackingStoreMaker = analyticsTrackingStoreMaker;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_6190() { // fn#6190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:207, offset: 0x00cefe22, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_6190_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun6194(a0) { // fn#6194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:703, offset: 0x00cefe95, size: 31 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
return global.setImmediate(_fun6195);
|
||||
}
|
||||
|
||||
function analyticsTrackingStoreMaker({dispatcher, actionHandler, getFingerprint, getSessionId = defaultGetSessionId, TRACKING_URL, drainTimeoutOverride, waitFor, scheduleWhenIdle = env0_30, getLaunchSignature = function() {
|
||||
return null;
|
||||
}}) { // fn#6202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1133, offset: 0x00cefee0, size: 346 bytes, params: 2, frame: 17
|
||||
getLaunchSignature = drainTimeoutOverride ?? 1500;
|
||||
env0_32.handleConnectionOpen = handleConnectionOpen_6215;
|
||||
env0_32.handleConnectionClosed = function() {
|
||||
drainEventsQueue();
|
||||
stopTelemetryHeartbeat();
|
||||
env1_28 = null;
|
||||
env1_29 = null;
|
||||
return false;
|
||||
};
|
||||
env0_32.handleFingerprint = function() {
|
||||
drainEventsQueue();
|
||||
return false;
|
||||
};
|
||||
env0_32.handleTrack = handleTrack_6222;
|
||||
env0_32.handleSetAnalyticsToken = handleSetAnalyticsToken_6224;
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
value = _fun6225(Store);
|
||||
value.displayName = 'AnalyticsTrackingStore';
|
||||
const value2 = Object.create(value.prototype, {constructor: {value: value}});
|
||||
value = new value(dispatcher, actionHandler);
|
||||
return value instanceof Object ? value : value2;
|
||||
}
|
||||
|
||||
function canDrain() { // fn#6204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1319, owner: analyticsTrackingStoreMaker.canDrain, offset: 0x00cf003a, size: 63 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__;
|
||||
return env1_33.length !== 0 && (env1_29 != null ? env1_28 != null : getFingerprint() != null);
|
||||
}
|
||||
|
||||
function scheduleDrain({shouldFlushOnNextTick}) { // fn#6205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1388, owner: analyticsTrackingStoreMaker.scheduleDrain, offset: 0x00cf0079, size: 106 bytes, params: 2, frame: 16
|
||||
var value5;
|
||||
var value6;
|
||||
shouldFlushOnNextTick = !(shouldFlushOnNextTick === undefined) && shouldFlushOnNextTick;
|
||||
const value = environment.__proto__;
|
||||
if (env1_34 == null && canDrain()) {
|
||||
if (shouldFlushOnNextTick) {
|
||||
value6 = global.setTimeout(drainEventsQueue, 0);
|
||||
} else {
|
||||
value5 = env0_4(drainEventsQueue, {timeout: env1_13});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function drainEventsQueue() { // fn#6206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1531, owner: analyticsTrackingStoreMaker.drainEventsQueue, offset: 0x00cf00e3, size: 191 bytes, params: 1, frame: 20
|
||||
var environment;
|
||||
var value3;
|
||||
var incrementMetricBinding;
|
||||
var length;
|
||||
var Math;
|
||||
let value = environment.__proto__;
|
||||
if (canDrain()) {
|
||||
value3 = env1_33.slice();
|
||||
env1_33 = [];
|
||||
incrementMetricBinding = incrementMetric;
|
||||
env1_20 = incrementMetricBinding(env1_20);
|
||||
length = value3.length;
|
||||
Math = global.Math;
|
||||
env1_21 = Math.min(MAX_SAFE_INTEGER, length);
|
||||
Math = global.Math;
|
||||
env1_22 = Math.max(env1_22, length);
|
||||
env1_23 = incrementMetricBinding(env1_23, length);
|
||||
value = submitEventsImmediately(value3);
|
||||
value.then(_fun6207, _fun6209);
|
||||
return value;
|
||||
}
|
||||
const Promise = global.Promise;
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
function submitEventsImmediately(a0) { // fn#6210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1908, owner: analyticsTrackingStoreMaker.submitEventsImmediately, offset: 0x00cf0243, size: 225 bytes, params: 2, frame: 17
|
||||
let value = a1;
|
||||
const r7 = value !== undefined ? value : TRACKING_URL;
|
||||
const Date = global.Date;
|
||||
const env0_0 = Date.now();
|
||||
value = a0.map(_fun6211);
|
||||
const object2 = {};
|
||||
if (!env1_25) {
|
||||
object2['x-science-test'] = (require(491) /* metro dependency 491 */).v4();
|
||||
}
|
||||
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
||||
return HTTP.post({url: r7, headers: object2, body: {token: env1_28, events: value}, retries: 3,
|
||||
rejectWithError: false}).then(_fun6212);
|
||||
}
|
||||
|
||||
function sendTelemetryEvent() { // fn#6213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:2273, owner: analyticsTrackingStoreMaker.sendTelemetryEvent, offset: 0x00cf03a7, size: 336 bytes, params: 1, frame: 17
|
||||
const object3 = {};
|
||||
let CLIENT_TELEMETRY = TelemetryEvents.CLIENT_TELEMETRY;
|
||||
object3.type = CLIENT_TELEMETRY;
|
||||
const object4 = {};
|
||||
let Date = global.Date;
|
||||
object4.client_track_timestamp = Date.now();
|
||||
object4.rpc_success_count = env1_16;
|
||||
object4.rpc_failure_count = env1_17;
|
||||
object4.first_seen_event_sequence_number = env1_18;
|
||||
object4.last_seen_event_sequence_number = env1_14;
|
||||
object4.telemetry_period_start_timestamp = env1_19;
|
||||
Date = global.Date;
|
||||
object4.telemetry_period_end_timestamp = Date.now();
|
||||
object4.event_queue_rejection_count = env1_15;
|
||||
object4.event_queue_batch_count = env1_20;
|
||||
let Number = global.Number;
|
||||
const MAX_SAFE_INTEGER3 = Number.MAX_SAFE_INTEGER;
|
||||
const value2 = 0;
|
||||
const MAX_SAFE_INTEGER2 = MAX_SAFE_INTEGER === MAX_SAFE_INTEGER3 ? value2 : MAX_SAFE_INTEGER;
|
||||
object4.event_queue_batch_min_size = MAX_SAFE_INTEGER2;
|
||||
object4.event_queue_batch_max_size = env1_22;
|
||||
object4.event_queue_batch_avg_size = env1_20 > value2 ? env1_23 / env1_20 : value2;
|
||||
object4.science_request_id = env1_27;
|
||||
object4.science_response = env1_26;
|
||||
object4.launch_signature = env0_5();
|
||||
object3.properties = object4;
|
||||
Number = global.Number;
|
||||
env1_21 = Number.MAX_SAFE_INTEGER;
|
||||
Date = global.Date;
|
||||
env1_19 = Date.now();
|
||||
const submitEventsImmediatelyBinding = submitEventsImmediately;
|
||||
CLIENT_TELEMETRY = TelemetryEndpoints.CLIENT_TELEMETRY;
|
||||
return submitEventsImmediatelyBinding([object3], CLIENT_TELEMETRY);
|
||||
}
|
||||
|
||||
function stopTelemetryHeartbeat() { // fn#6214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:2968, owner: analyticsTrackingStoreMaker.stopTelemetryHeartbeat, offset: 0x00cf04f7, size: 107 bytes, params: 1, frame: 13
|
||||
var type;
|
||||
if (env1_24 != null) {
|
||||
type = env1_24.type;
|
||||
if (type === 'timeout') {
|
||||
global.clearTimeout(env1_24.id);
|
||||
} else if (type === 'interval') {
|
||||
global.clearInterval(env1_24.id);
|
||||
} else {
|
||||
env1_24.type;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function analyticsTrackingStoreMakerHandleConnectionOpen({analyticsToken, user}) { // fn#6215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:3216, owner: analyticsTrackingStoreMaker.handleConnectionOpen, offset: 0x00cf0562, size: 84 bytes, params: 2, frame: 13
|
||||
var environment;
|
||||
var value;
|
||||
if (analyticsToken != null) {
|
||||
value = environment.__proto__;
|
||||
}
|
||||
let id = user.id;
|
||||
if (id != null) {
|
||||
id = user.id;
|
||||
value = environment.__proto__;
|
||||
}
|
||||
startTelemetryHeartbeat();
|
||||
scheduleDrain({shouldFlushOnNextTick: false});
|
||||
return false;
|
||||
}
|
||||
|
||||
function analyticsTrackingStoreMakerHandleTrack({event, properties, flush, fingerprint, resolve}) { // fn#6222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:3881, owner: analyticsTrackingStoreMaker.handleTrack, offset: 0x00cf0722, size: 86 bytes, params: 2, frame: 11
|
||||
properties().then(_fun6223);
|
||||
return false;
|
||||
}
|
||||
|
||||
function analyticsTrackingStoreMakerHandleSetAnalyticsToken({analyticsToken, userId}) { // fn#6224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:4498, owner: analyticsTrackingStoreMaker.handleSetAnalyticsToken, offset: 0x00cf08d8, size: 72 bytes, params: 2, frame: 14
|
||||
if (env1_28 == null && analyticsToken != null) {
|
||||
scheduleDrain({shouldFlushOnNextTick: false});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function _fun6225(a0) { // fn#6225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:4623, offset: 0x00cf0920, size: 68 bytes, params: 2, frame: 15
|
||||
const closure = AnalyticsTrackingStore;
|
||||
env1_7(closure, a0);
|
||||
return env1_4(closure, [{key: 'initialize', value: function() {
|
||||
var r4;
|
||||
var waitFor2;
|
||||
var items;
|
||||
var waitForBinding = waitFor;
|
||||
if (waitForBinding != null) {
|
||||
waitFor2 = this.waitFor;
|
||||
waitForBinding = waitFor;
|
||||
items = [];
|
||||
arraySpread(items, waitForBinding, 0, r4);
|
||||
apply(waitFor2, items, this, r4);
|
||||
}
|
||||
}}]);
|
||||
}
|
||||
|
||||
function _fun6207() { // fn#6207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1766, offset: 0x00cf01a2, size: 48 bytes, params: 1, frame: 12
|
||||
env0_0.forEach(function(a0) {
|
||||
if (a0.resolve != null) {
|
||||
a0.resolve();
|
||||
}
|
||||
});
|
||||
env2_16 = incrementMetric(env2_16);
|
||||
}
|
||||
|
||||
function _fun6209(a0) { // fn#6209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1842, offset: 0x00cf01ed, size: 86 bytes, params: 2, frame: 17
|
||||
const value = a0;
|
||||
const binding = env2_33;
|
||||
const unshift = binding.unshift;
|
||||
const binding2 = env0_0;
|
||||
const items2 = [];
|
||||
arraySpread(items2, binding2, 0, undefined);
|
||||
apply(unshift, items2, binding, undefined);
|
||||
env2_17 = incrementMetric(env2_17);
|
||||
(value.body || value).message;
|
||||
}
|
||||
|
||||
function _fun6211(a0) { // fn#6211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1974, offset: 0x00cf0324, size: 59 bytes, params: 2, frame: 13
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, a0, undefined);
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, a0.properties, undefined);
|
||||
object4['client_send_timestamp'] = env0_0;
|
||||
object3['properties'] = object4;
|
||||
return object3;
|
||||
}
|
||||
|
||||
function _fun6212(a0) { // fn#6212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:2181, offset: 0x00cf035f, size: 72 bytes, params: 2, frame: 6
|
||||
var r1;
|
||||
var r2;
|
||||
var value;
|
||||
if (env0_1['x-science-test']) {
|
||||
value = null;
|
||||
r1 = value == a0 || value == a0.headers ? undefined : a0.headers['x-science-test'];
|
||||
r2 = value != r1 ? r1 : value;
|
||||
value = environment.__proto__.__proto__;
|
||||
}
|
||||
return a0;
|
||||
}
|
||||
|
||||
function startTelemetryHeartbeat() { // fn#6216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:3295, owner: analyticsTrackingStoreMaker.handleConnectionOpen.startTelemetryHeartbeat, offset: 0x00cf05b6, size: 120 bytes, params: 1, frame: 17
|
||||
var Math;
|
||||
if (env2_24 == null) {
|
||||
Math = global.Math;
|
||||
({type: 'timeout'}).id = global.setTimeout(function() {
|
||||
sendTelemetryEvent();
|
||||
scheduleNextHeartbeat();
|
||||
}, Math.floor(global.Math.random() * (MAX_DELAY - MIN_DELAY) + MIN_DELAY));
|
||||
}
|
||||
}
|
||||
|
||||
function _fun6223({sessionId}) { // fn#6223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:3963, offset: 0x00cf0778, size: 352 bytes, params: 2, frame: 18
|
||||
var r7;
|
||||
var r6;
|
||||
let object3 = {};
|
||||
object3.type = event;
|
||||
object3.fingerprint = fingerprint;
|
||||
const object4 = {};
|
||||
const Date = global.Date;
|
||||
object4.client_track_timestamp = Date.now();
|
||||
object4.client_heartbeat_session_id = sessionId;
|
||||
const binding = env2_14;
|
||||
object4.event_sequence_number = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
||||
copyDataProperties(object4, properties, undefined);
|
||||
object3.properties = object4;
|
||||
object3.resolve = resolve;
|
||||
if (env2_29 != null) {
|
||||
r6 = env2_29;
|
||||
} else {
|
||||
r7 = object3.fingerprint ?? getFingerprint();
|
||||
r6 = r7 != null ? (require(490) /* metro dependency 490: FingerprintUtils */).extractId(r7) : null;
|
||||
}
|
||||
if (r6 != null) {
|
||||
object3.properties.client_uuid = env2_31.generate(r6);
|
||||
}
|
||||
env2_33.push(object3);
|
||||
if (env2_33.length > 10000) {
|
||||
env2_15 = incrementMetric(env2_15, env2_33.length - 10000);
|
||||
env2_33 = env2_33.slice(-10000);
|
||||
}
|
||||
const scheduleDrainBinding = scheduleDrain;
|
||||
const flushBinding = flush;
|
||||
object3 = {};
|
||||
if (flushBinding) {
|
||||
object3.shouldFlushOnNextTick = true;
|
||||
} else {
|
||||
object3.shouldFlushOnNextTick = false;
|
||||
}
|
||||
scheduleDrainBinding(object3);
|
||||
}
|
||||
|
||||
function AnalyticsTrackingStore(a0) { // fn#6226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:4635, offset: 0x00cf0964, size: 139 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env2_3;
|
||||
binding(this, AnalyticsTrackingStore);
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, items2);
|
||||
value = env2_6(AnalyticsTrackingStore);
|
||||
binding = env2_5;
|
||||
if (_isNativeReflectConstruct_6190()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items2, env2_6(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items2);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.submitEventsImmediately = submitEventsImmediately;
|
||||
return value;
|
||||
}
|
||||
|
||||
function scheduleNextHeartbeat() { // fn#6217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:3404, owner: analyticsTrackingStoreMaker.handleConnectionOpen.startTelemetryHeartbeat.scheduleNextHeartbeat, offset: 0x00cf062e, size: 137 bytes, params: 1, frame: 17
|
||||
const value2 = 0.1 * FREQUENCY;
|
||||
let Math = global.Math;
|
||||
const floor = Math.floor;
|
||||
const Math2 = global.Math;
|
||||
const value4 = Reflect.apply(floor, Math, [Math2.random() * value2 * 2]) - value2;
|
||||
Math = global.Math;
|
||||
({type: 'timeout'}).id = global.setTimeout(function() {
|
||||
sendTelemetryEvent();
|
||||
scheduleNextHeartbeat();
|
||||
}, Math.max(FREQUENCY + value4, MIN_DELAY));
|
||||
}
|
||||
|
||||
+138
@@ -0,0 +1,138 @@
|
||||
/* Metro module 480; source: ../discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx; dependencies: [481, 642, 643, 644, 44, 2, 647, 648, 649] */
|
||||
function _fun6185(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:521:6, offset: 0x00cef7dd, size: 422 bytes, params: 8, frame: 23
|
||||
const env0_1 = require;
|
||||
const closure = isThrottled;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const analyticsTrackingStoreMaker = (require(481) /* metro dependency 481: AnalyticsTrackingStore */).analyticsTrackingStoreMaker;
|
||||
const AnalyticsActionHandlers = (require(481) /* metro dependency 481: AnalyticsTrackingStore */).AnalyticsActionHandlers;
|
||||
const ImpressionTypes = (require(642) /* metro dependency 642: StandardAnalyticsConstants */).ImpressionTypes;
|
||||
const ImpressionGroups = (require(642) /* metro dependency 642: StandardAnalyticsConstants */).ImpressionGroups;
|
||||
const env0_4 = {};
|
||||
const env0_5 = {};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx');
|
||||
exports.encodeProperties = (require(647) /* metro dependency 647: encodeProperties */).encodeProperties;
|
||||
exports.analyticsTrackingStoreMaker = analyticsTrackingStoreMaker;
|
||||
exports.AnalyticsActionHandlers = AnalyticsActionHandlers;
|
||||
exports.ImpressionTypes = ImpressionTypes;
|
||||
exports.ImpressionGroups = ImpressionGroups;
|
||||
const ImpressionNames = (require(648) /* metro dependency 648: AnalyticsSchema */).ImpressionNames;
|
||||
exports.ImpressionNames = ImpressionNames;
|
||||
const NetworkActionNames = (require(648) /* metro dependency 648: AnalyticsSchema */).NetworkActionNames;
|
||||
exports.NetworkActionNames = NetworkActionNames;
|
||||
const getSuperProperties = (require(649) /* metro dependency 649: getSuperProperties */).getSuperProperties;
|
||||
exports.getSuperProperties = getSuperProperties;
|
||||
const getSuperPropertiesBase64 = (require(649) /* metro dependency 649: getSuperProperties */).getSuperPropertiesBase64;
|
||||
exports.getSuperPropertiesBase64 = getSuperPropertiesBase64;
|
||||
exports.extendSuperProperties = (require(649) /* metro dependency 649: getSuperProperties */).extendSuperProperties;
|
||||
const getOS = (require(649) /* metro dependency 649: getSuperProperties */).getOS;
|
||||
exports.getOS = getOS;
|
||||
const getDevice = (require(649) /* metro dependency 649: getSuperProperties */).getDevice;
|
||||
exports.getDevice = getDevice;
|
||||
const getCampaignParams = (require(649) /* metro dependency 649: getSuperProperties */).getCampaignParams;
|
||||
exports.getCampaignParams = getCampaignParams;
|
||||
exports.isThrottled = closure;
|
||||
exports.trackMaker = trackMaker;
|
||||
}
|
||||
|
||||
function isThrottled(a0) { // fn#6186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:521:231, offset: 0x00cef983, size: 54 bytes, params: 2, frame: 11
|
||||
return env0_4[a0] != null && env0_4[a0] > global.Date.now();
|
||||
}
|
||||
|
||||
function trackMaker({addBreadcrumb, analyticEventConfigs, dispatcher, TRACK_ACTION_NAME}) { // fn#6187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:521:922, offset: 0x00cef9b9, size: 85 bytes, params: 2, frame: 15
|
||||
const env0_2 = (require(643) /* metro dependency 643: AnalyticsTrackingActionCreators */).queueTrackingEventMaker(dispatcher,
|
||||
TRACK_ACTION_NAME);
|
||||
return trackMakerTrack;
|
||||
}
|
||||
|
||||
function trackMakerTrack(a0, a1) { // fn#6188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:521:1050, owner: trackMaker.track, offset: 0x00cefa0e, size: 542 bytes, params: 3, frame: 25
|
||||
var r6;
|
||||
var items;
|
||||
var value6;
|
||||
var throttlePercent;
|
||||
var value10;
|
||||
var value11;
|
||||
const value = a1;
|
||||
const value2 = a2;
|
||||
const r3 = value2 !== undefined ? value2 : {};
|
||||
const isServerRendering = env1_0.isServerRendering;
|
||||
const value4 = null;
|
||||
if (value4 != isServerRendering) {
|
||||
if (env1_0.isServerRendering === true) {
|
||||
return global.Promise.resolve();
|
||||
}
|
||||
}
|
||||
const r11 = value4 != value ? value : {};
|
||||
const property = analyticEventConfigs[a0];
|
||||
if (typeof property !== 'function') {
|
||||
r6 = property;
|
||||
} else {
|
||||
value6 = property(r11);
|
||||
r6 = value4 != value6 ? value6 : value4;
|
||||
}
|
||||
if (value4 != r6) {
|
||||
if ('throttlePeriod' in r6) {
|
||||
items = [a0];
|
||||
arraySpread(items, r6.throttleKeys(r11), 1, undefined);
|
||||
value10 = items.join('_');
|
||||
if (isThrottled(value10)) {
|
||||
return global.Promise.resolve();
|
||||
}
|
||||
throttlePercent = r6.throttlePercent;
|
||||
if (typeof throttlePercent !== 'number') {
|
||||
if (r6.deduplicate) {
|
||||
if ((importDefault(644) /* metro dependency 644 */)(env1_5[value10], r11)) {
|
||||
return global.Promise.resolve();
|
||||
}
|
||||
env1_5[value10] = r11;
|
||||
env1_4[value10] = global.Date.now() + r6.throttlePeriod;
|
||||
if (value4 != addBreadcrumb) {
|
||||
addBreadcrumb(a0);
|
||||
}
|
||||
return env0_2(a0, value, r3);
|
||||
}
|
||||
env1_4[value10] = global.Date.now() + r6.throttlePeriod;
|
||||
if (value4 != addBreadcrumb) {
|
||||
addBreadcrumb(a0);
|
||||
}
|
||||
return env0_2(a0, value, r3);
|
||||
}
|
||||
value11 = global.Math.random();
|
||||
throttlePercent = r6.throttlePercent;
|
||||
if (value11 > throttlePercent) {
|
||||
return global.Promise.resolve();
|
||||
}
|
||||
if (r6.deduplicate) {
|
||||
if ((importDefault(644) /* metro dependency 644 */)(env1_5[value10], r11)) {
|
||||
return global.Promise.resolve();
|
||||
}
|
||||
env1_5[value10] = r11;
|
||||
env1_4[value10] = global.Date.now() + r6.throttlePeriod;
|
||||
if (value4 != addBreadcrumb) {
|
||||
addBreadcrumb(a0);
|
||||
}
|
||||
return env0_2(a0, value, r3);
|
||||
}
|
||||
env1_4[value10] = global.Date.now() + r6.throttlePeriod;
|
||||
if (value4 != addBreadcrumb) {
|
||||
addBreadcrumb(a0);
|
||||
}
|
||||
return env0_2(a0, value, r3);
|
||||
}
|
||||
if ('throttlePercent' in r6) {
|
||||
if (global.Math.random() > r6.throttlePercent) {
|
||||
return global.Promise.resolve();
|
||||
}
|
||||
if (value4 != addBreadcrumb) {
|
||||
addBreadcrumb(a0);
|
||||
}
|
||||
return env0_2(a0, value, r3);
|
||||
}
|
||||
(importDefault(44) /* metro dependency 44 */)(false, 'Unsupported analytics event config: ' + r6);
|
||||
}
|
||||
if (value4 != addBreadcrumb) {
|
||||
addBreadcrumb(a0);
|
||||
}
|
||||
return env0_2(a0, value, r3);
|
||||
}
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/* Metro module 642; source: ../discord_common/js/packages/analytics-utils/StandardAnalyticsConstants.tsx; dependencies: [2] */
|
||||
function _fun7331(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:692:6, offset: 0x00d14b45, size: 342 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/analytics-utils/StandardAnalyticsConstants.tsx');
|
||||
exports.ImpressionGroups = {CHANNEL_ADD_FLOW: 'channel_add_flow', CONTACT_SYNC_FLOW: 'contact_sync_flow',
|
||||
DIRECTORY_GUILD_ADD_FLOW: 'directory_guild_add_flow', GUILD_ADD_FLOW: 'guild_add_flow',
|
||||
GUILD_ADD_NUF: 'guild_add_nuf', USER_VERIFICATION_MODAL_FLOW: 'user_verification_modal_flow',
|
||||
GUILD_TRANSFER_OWNERSHIP_FLOW: 'guild_transfer_ownership_flow', ROLE_ADD_FLOW: 'role_add_flow',
|
||||
USER_ACCOUNT_EMAIL_CHANGE_FLOW: 'user_account_email_change_flow', USER_LOGIN_FLOW: 'user_login_flow',
|
||||
USER_REGISTRATION_FLOW: 'user_registration_flow', ACTIVITY_SHELF_FLOW: 'activity_shelf_flow',
|
||||
POMELO_FLOW: 'pomelo_flow', APPEAL_INGESTION: 'appeal_ingestion', ACCOUNT_REVERT_FLOW: 'account_revert_flow'};
|
||||
exports.ImpressionTypes = {PAGE: 'page', MODAL: 'modal', POPOUT: 'popout', MENU: 'menu', PANE: 'pane', VIEW: 'view',
|
||||
HALFSHEET: 'halfsheet'};
|
||||
}
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
/* Metro module 653; source: ../discord_common/js/packages/analytics-utils/clientLaunchId.tsx; dependencies: [491, 2] */
|
||||
function _fun7367(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:703:6, offset: 0x00d16ed1, size: 100 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(491) /* metro dependency 491 */;
|
||||
value = value.v4();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/analytics-utils/clientLaunchId.tsx');
|
||||
exports.clientLaunchId = value;
|
||||
}
|
||||
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
/* Metro module 647; source: ../discord_common/js/packages/analytics-utils/encodeProperties.tsx; dependencies: [2] */
|
||||
function _fun7346(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:697:6, offset: 0x00d152d2, size: 85 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/analytics-utils/encodeProperties.tsx');
|
||||
exports.encodeProperties = function(a0) {
|
||||
var property;
|
||||
var from;
|
||||
var JSON;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
property = global.Buffer;
|
||||
from = property.from;
|
||||
JSON = global.JSON;
|
||||
value = JSON.stringify(a0);
|
||||
value = Reflect.apply(from, property, [value]);
|
||||
value = value.toString('base64');
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
return value;
|
||||
};
|
||||
}
|
||||
|
||||
+345
@@ -0,0 +1,345 @@
|
||||
/* Metro module 649; source: ../discord_common/js/packages/analytics-utils/getSuperProperties.tsx; dependencies: [650, 652, 653, 654, 655, 27, 656, 657, 658, 587, 659, 647, 2] */
|
||||
function _fun7349(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:6, offset: 0x00d162e5, size: 994 bytes, params: 8, frame: 33
|
||||
var ua;
|
||||
var version;
|
||||
var app;
|
||||
var version2;
|
||||
var platform;
|
||||
var os;
|
||||
var release;
|
||||
var arch;
|
||||
var appArch;
|
||||
var releaseChannel;
|
||||
var systemLocale;
|
||||
const clientLaunchId = (require(653) /* metro dependency 653: clientLaunchId */).clientLaunchId;
|
||||
var name;
|
||||
var binding;
|
||||
var metadata;
|
||||
var closure4;
|
||||
var value14;
|
||||
var error;
|
||||
const env0_0 = require;
|
||||
const closure = getOS_7351;
|
||||
const closure2 = function() {
|
||||
var r0;
|
||||
var property;
|
||||
global.window.navigator.userAgent;
|
||||
var moduleValue = require(dependencyMap[5]);
|
||||
if (moduleValue.Platform.OS === 'android') {
|
||||
property = require(dependencyMap[6]).default;
|
||||
property = property.getConstants().device;
|
||||
r0 = property;
|
||||
} else {
|
||||
r0 = moduleValue.NativeModules.DCDDeviceManager.device;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
const closure3 = extendSuperProperties;
|
||||
const Object = global.Object;
|
||||
let object2 = {value: true};
|
||||
Object.defineProperty(exports, '__esModule', object2);
|
||||
const value = undefined;
|
||||
const getSystemLocale = (require(650) /* metro dependency 650: getSystemLocale */).getSystemLocale;
|
||||
const DiscordNative = global.window.DiscordNative;
|
||||
if (DiscordNative != null) {
|
||||
app = DiscordNative.app;
|
||||
version2 = app.getVersion();
|
||||
platform = DiscordNative.process.platform;
|
||||
os = DiscordNative.os;
|
||||
release = os.release;
|
||||
os = DiscordNative.os;
|
||||
arch = os.arch;
|
||||
os = DiscordNative.os;
|
||||
appArch = os.appArch;
|
||||
app = DiscordNative.app;
|
||||
releaseChannel = app.getReleaseChannel();
|
||||
systemLocale = getSystemLocale();
|
||||
object2 = {os: platform === 'win32' ? 'Windows' : platform === 'darwin' ? 'Mac OS X' : platform === 'linux' ? 'Linux' : platform,
|
||||
|
||||
browser: 'Discord Client'};
|
||||
object2.release_channel = releaseChannel || 'unknown';
|
||||
object2.client_version = version2;
|
||||
object2.os_version = release;
|
||||
object2.os_arch = arch;
|
||||
object2.app_arch = appArch;
|
||||
object2.system_locale = systemLocale;
|
||||
object2.has_client_mods = (require(652) /* metro dependency 652: ClientModDetectionUtils */).usesClientMods();
|
||||
object2.client_launch_id = clientLaunchId;
|
||||
var env0_3 = object2;
|
||||
name = (importDefault(654) /* metro dependency 654 */).name;
|
||||
if ((name == null ? value : name.toLocaleLowerCase()) === 'electron') {
|
||||
binding = env0_3;
|
||||
ua = (importDefault(654) /* metro dependency 654 */).ua;
|
||||
ua = !ua ? '' : ua;
|
||||
binding.browser_user_agent = ua;
|
||||
binding = env0_3;
|
||||
version = (importDefault(654) /* metro dependency 654 */).version;
|
||||
version = !version ? '' : version;
|
||||
binding.browser_version = version;
|
||||
}
|
||||
if (platform === 'linux') {
|
||||
metadata = DiscordNative.crashReporter.getMetadata();
|
||||
binding = env0_3;
|
||||
binding.window_manager = metadata.wm;
|
||||
binding = env0_3;
|
||||
binding.distro = metadata.distro;
|
||||
binding = env0_3;
|
||||
binding.runtime_environment = metadata.runtime_environment;
|
||||
binding = env0_3;
|
||||
binding.display_server = metadata.display_server;
|
||||
} else if (platform === 'darwin') {
|
||||
env0_3.os_sdk_version = release == null ? value : release.split('.')[0];
|
||||
} else if (platform === 'win32') {
|
||||
env0_3.os_sdk_version = release == null ? value : release.split('.')[2];
|
||||
}
|
||||
}
|
||||
const env0_6 = 'utm_source utm_medium utm_campaign utm_content utm_term'.split(' ');
|
||||
if (env0_3 == null) {
|
||||
try {
|
||||
closure4 = getCachedSuperProperties;
|
||||
value14 = closure4();
|
||||
env0_3 = value14;
|
||||
} catch (error) {
|
||||
env0_3 = {};
|
||||
}
|
||||
}
|
||||
object2 = {};
|
||||
const GLOBAL_ENV = global.window.GLOBAL_ENV;
|
||||
GLOBAL_ENV.RELEASE_CHANNEL;
|
||||
const int = global.parseInt('5867', 10);
|
||||
if (!global.isNaN(int)) {
|
||||
object2.client_build_number = int;
|
||||
}
|
||||
const r10 = DiscordNative == null ? value : DiscordNative.app.getBuildNumber();
|
||||
if (!(r10 == null || global.isNaN(r10))) {
|
||||
object2.native_build_number = r10;
|
||||
}
|
||||
object2.client_event_source = null;
|
||||
object2.has_client_mods = (require(652) /* metro dependency 652: ClientModDetectionUtils */).usesClientMods();
|
||||
object2.client_launch_id = clientLaunchId;
|
||||
closure3(object2);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/analytics-utils/getSuperProperties.tsx');
|
||||
exports.getOS = closure;
|
||||
exports.getDevice = closure2;
|
||||
exports.getCampaignParams = getCampaignParams;
|
||||
exports.extendSuperProperties = closure3;
|
||||
exports.getSuperProperties = getSuperProperties;
|
||||
exports.getSuperPropertiesBase64 = getSuperPropertiesBase64;
|
||||
return value;
|
||||
}
|
||||
|
||||
function isMetaQuestRuntime() { // fn#7350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:1098, offset: 0x00d166c7, size: 57 bytes, params: 1, frame: 11
|
||||
const value = undefined;
|
||||
const property = (require(655) /* metro dependency 655: NativeMetaQuestModule */).default;
|
||||
return (property == null ? value : property.isMetaQuest()) === true;
|
||||
}
|
||||
|
||||
function getOS_7351() { // fn#7351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:1196, offset: 0x00d16700, size: 50 bytes, params: 1, frame: 9
|
||||
global.window.navigator.userAgent;
|
||||
return isMetaQuestRuntime() ? 'Horizon OS' : 'Android';
|
||||
}
|
||||
|
||||
function getDeviceProperties() { // fn#7353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:1463, offset: 0x00d167b2, size: 381 bytes, params: 1, frame: 19
|
||||
var r6;
|
||||
var r2;
|
||||
var property;
|
||||
var moduleValue2;
|
||||
var Platform;
|
||||
var OS;
|
||||
var value5;
|
||||
var NativeModules;
|
||||
var InfoDictionaryManager;
|
||||
var constants;
|
||||
var moduleValue3;
|
||||
var constants2;
|
||||
var Version;
|
||||
var ReleaseChannel;
|
||||
var DeviceVendorID;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var value11;
|
||||
var DesignIds;
|
||||
var DESIGN_TABS_IA;
|
||||
var error;
|
||||
const object2 = {};
|
||||
let value = environment;
|
||||
const oS_7351 = getOS_7351();
|
||||
object2.os = oS_7351;
|
||||
const navigator = global.window.navigator;
|
||||
navigator.userAgent;
|
||||
navigator.vendor;
|
||||
global.window.opera;
|
||||
object2.browser = isMetaQuestRuntime() ? 'Discord VR' : 'Discord Android';
|
||||
object2.device = getDevice();
|
||||
object2.system_locale = getSystemLocale();
|
||||
object2.has_client_mods = require(dependencyMap[1]).usesClientMods();
|
||||
try {
|
||||
property = dependencyMap[5];
|
||||
moduleValue2 = require(property);
|
||||
Platform = moduleValue2.Platform;
|
||||
OS = Platform.OS;
|
||||
value5 = OS === 'android';
|
||||
if (value5) {
|
||||
property = dependencyMap[7];
|
||||
moduleValue3 = require(property);
|
||||
property = moduleValue3.default;
|
||||
constants2 = property.getConstants();
|
||||
r6 = constants2;
|
||||
} else {
|
||||
NativeModules = moduleValue2.NativeModules;
|
||||
InfoDictionaryManager = NativeModules.InfoDictionaryManager;
|
||||
constants = InfoDictionaryManager.getConstants();
|
||||
r6 = constants;
|
||||
}
|
||||
Version = r6.Version;
|
||||
ReleaseChannel = r6.ReleaseChannel;
|
||||
DeviceVendorID = r6.DeviceVendorID;
|
||||
value8 = '';
|
||||
value9 = oS_7351 !== 'Android';
|
||||
if (value9) {
|
||||
r2 = value8;
|
||||
} else {
|
||||
value10 = ' - rn';
|
||||
r2 = value10;
|
||||
}
|
||||
value11 = Version + r2;
|
||||
object2.client_version = value11;
|
||||
object2.release_channel = ReleaseChannel;
|
||||
object2.device_vendor_id = DeviceVendorID;
|
||||
property = dependencyMap[8];
|
||||
value = require(property);
|
||||
DesignIds = value.DesignIds;
|
||||
DESIGN_TABS_IA = DesignIds.DESIGN_TABS_IA;
|
||||
object2.design_id = DESIGN_TABS_IA;
|
||||
} catch (error) {
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
function extendSuperProperties(a0) { // fn#7354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:2857, offset: 0x00d1692f, size: 73 bytes, params: 2, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_3, undefined);
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
env0_4 = (require(647) /* metro dependency 647: encodeProperties */).encodeProperties(object2);
|
||||
}
|
||||
|
||||
function getCachedSuperProperties() { // fn#7355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:2178, offset: 0x00d16978, size: 521 bytes, params: 1, frame: 19
|
||||
var r3;
|
||||
var r2;
|
||||
var r1;
|
||||
var systemVersion;
|
||||
var deviceProperties;
|
||||
var object4;
|
||||
var value6;
|
||||
var property;
|
||||
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
|
||||
const value2 = Storage.get('deviceProperties');
|
||||
if (value2 != null) {
|
||||
r3 = value2;
|
||||
} else {
|
||||
deviceProperties = getDeviceProperties();
|
||||
Storage.set('deviceProperties', deviceProperties);
|
||||
r3 = deviceProperties;
|
||||
}
|
||||
const value4 = Storage.get('referralProperties');
|
||||
if (value4 != null) {
|
||||
r2 = value4;
|
||||
} else {
|
||||
object4 = {};
|
||||
Storage.set('referralProperties', object4);
|
||||
r2 = object4;
|
||||
}
|
||||
const SessionStorage = (require(659) /* metro dependency 659: SessionStorage */).SessionStorage;
|
||||
const value5 = SessionStorage.get('referralProperties');
|
||||
if (value5 != null) {
|
||||
r1 = value5;
|
||||
} else {
|
||||
value6 = (function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = '_current';
|
||||
var Object = global.Object;
|
||||
Object.keys(a0).map(_fun7357);
|
||||
return {};
|
||||
})({}, '_current');
|
||||
SessionStorage.set('referralProperties', value6);
|
||||
r1 = value6;
|
||||
}
|
||||
object4 = {};
|
||||
copyDataProperties(object4, r3, 10);
|
||||
const object5 = {};
|
||||
let userAgent = global.window.navigator.userAgent;
|
||||
userAgent = !userAgent ? '' : userAgent;
|
||||
object5.browser_user_agent = userAgent;
|
||||
let version = (importDefault(654) /* metro dependency 654 */).version;
|
||||
version = !version ? '' : version;
|
||||
object5.browser_version = version;
|
||||
const moduleValue = require(27) /* metro dependency 27 */;
|
||||
const object6 = {};
|
||||
copyDataProperties(object6, object5, 10);
|
||||
const Platform = moduleValue.Platform;
|
||||
const OS = Platform.OS;
|
||||
if (OS === 'android') {
|
||||
property = (require(656) /* metro dependency 656: NativeDeviceModule */).default;
|
||||
systemVersion = property.getConstants().systemVersion;
|
||||
} else {
|
||||
systemVersion = moduleValue.NativeModules.DCDDeviceManager.systemVersion;
|
||||
}
|
||||
systemVersion = !systemVersion ? '' : systemVersion;
|
||||
object6['os_version'] = systemVersion;
|
||||
copyDataProperties(object4, object6, 10);
|
||||
copyDataProperties(object4, r2, 10);
|
||||
copyDataProperties(object4, r1, 10);
|
||||
return object4;
|
||||
}
|
||||
|
||||
function getCampaignParams(a0) { // fn#7358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:3493, offset: 0x00d16bee, size: 39 bytes, params: 2, frame: 12
|
||||
const env0_0 = a0;
|
||||
env0_6.forEach(_fun7359);
|
||||
return {};
|
||||
}
|
||||
|
||||
function suffixObjectKeys(a0, a1) { // fn#7356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:2433, owner: getCachedSuperProperties.suffixObjectKeys, offset: 0x00d16b81, size: 58 bytes, params: 3, frame: 13
|
||||
const env0_0 = a0;
|
||||
const Object = global.Object;
|
||||
Object.keys(a0).map(_fun7357);
|
||||
return {};
|
||||
}
|
||||
|
||||
function _fun7359(a0) { // fn#7359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:3550, offset: 0x00d16c15, size: 273 bytes, params: 2, frame: 21
|
||||
var r1;
|
||||
var value4;
|
||||
var RegExp;
|
||||
var value5;
|
||||
var value6;
|
||||
var regExp;
|
||||
var value8;
|
||||
const binding = env0_0;
|
||||
const value2 = '';
|
||||
if (binding == null) {
|
||||
r1 = value2;
|
||||
} else {
|
||||
value4 = a0.replace(RegExp('[[]', ''), '\\[').replace(RegExp('[\\]]', ''), '\\]');
|
||||
RegExp = global.RegExp;
|
||||
value5 = '[\\?&]' + value4 + '=([^&#]*)';
|
||||
value6 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
||||
regExp = new RegExp();
|
||||
value8 = (regExp instanceof Object ? regExp : value6).exec(binding);
|
||||
r1 = value8 === null ? value2 : typeof value8[1] === 'string' ? global.decodeURIComponent(value8[1]).replace(RegExp('\\+',
|
||||
|
||||
'g'), ' ') : value8[1].length ? value2 : global.decodeURIComponent(value8[1]).replace(RegExp('\\+', 'g'),
|
||||
' ');
|
||||
}
|
||||
if (r1.length > 0) {
|
||||
env0_1[a0] = r1;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun7357(a0) { // fn#7357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:2500, offset: 0x00d16bbb, size: 51 bytes, params: 2, frame: 15
|
||||
const binding = env0_2;
|
||||
const value2 = '' + a0 + env0_1;
|
||||
const property = env0_0[a0];
|
||||
binding[value2] = property;
|
||||
return property;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
/* Metro module 1359; source: ../discord_common/js/packages/apex/ApexExperiment.tsx; dependencies: [57, 31, 566, 2] */
|
||||
function _fun15580(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1486:6, offset: 0x00e367fe, size: 133 bytes, params: 8, frame: 18
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
let env0_3 = (require(31) /* metro dependency 31 */).useEffect;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/apex/ApexExperiment.tsx');
|
||||
exports.default = function(a0, a1, a2, a3) {
|
||||
var env0_0 = a1;
|
||||
var env0_1 = a2;
|
||||
var env0_2 = a3;
|
||||
var env0_3 = a0.name;
|
||||
var env0_4 = a0.kind;
|
||||
var env0_5 = a0.variations;
|
||||
var env0_6 = a0.defaultConfig;
|
||||
a1.registerExperiment(a0);
|
||||
return {definition: a0, useConfig: _fun15582, getConfig: _fun15585};
|
||||
};
|
||||
}
|
||||
|
||||
function createApexExperimentCommon(a0, a1, a2, a3) { // fn#15581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1486:223, offset: 0x00e36883, size: 104 bytes, params: 5, frame: 12
|
||||
const env0_0 = a1;
|
||||
const env0_1 = a2;
|
||||
const env0_2 = a3;
|
||||
const env0_3 = a0.name;
|
||||
const env0_4 = a0.kind;
|
||||
const env0_5 = a0.variations;
|
||||
const env0_6 = a0.defaultConfig;
|
||||
a1.registerExperiment(a0);
|
||||
return {definition: a0, useConfig: useConfig, getConfig: getConfig_15585};
|
||||
}
|
||||
|
||||
function useConfig(a0) { // fn#15582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1486:382, owner: createApexExperimentCommon.useConfig, offset: 0x00e368eb, size: 350 bytes, params: 2, frame: 26
|
||||
const env0_0 = a0;
|
||||
const kindBinding = kind;
|
||||
const value2 = undefined;
|
||||
const moduleValue = importAll(kindBinding, a0);
|
||||
const moduleValue2 = importAll('user', a0);
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStoresArray = fluxModule.useStateFromStoresArray;
|
||||
const value5 = env1_2(Reflect.apply(useStateFromStoresArray, fluxModule, [[require], _fun15583, [moduleValue,
|
||||
moduleValue2]]), 2);
|
||||
const property = value5[0];
|
||||
const property2 = value5[1];
|
||||
const variantId = property2 == null ? value2 : property2.variantId;
|
||||
const r12 = (property2 == null ? value2 : property2.trackedVariantId) ?? variantId;
|
||||
const revision = property2 == null ? value2 : property2.revision;
|
||||
const isOverride = property2 == null ? value2 : property2.isOverride;
|
||||
const exposureTrackingEnabled = property2 == null ? value2 : property2.exposureTrackingEnabled;
|
||||
const useAsEligibility = property2 == null ? value2 : property2.useAsEligibility;
|
||||
useEffect(_fun15584, [moduleValue, property, r12, revision, a0.location, isOverride, exposureTrackingEnabled,
|
||||
useAsEligibility]);
|
||||
if (variantId == null) {
|
||||
return defaultConfig;
|
||||
}
|
||||
if (useAsEligibility === true) {
|
||||
return defaultConfig;
|
||||
}
|
||||
return variations[variantId] ?? defaultConfig;
|
||||
}
|
||||
|
||||
function createApexExperimentCommonGetConfig(a0) { // fn#15585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1486:959, owner: createApexExperimentCommon.getConfig, offset: 0x00e36af8, size: 343 bytes, params: 2, frame: 27
|
||||
const kindBinding = kind;
|
||||
const value2 = undefined;
|
||||
const defaultImport = importDefault(kindBinding, a0);
|
||||
const r7 = kindBinding !== 'guild' ? value2 : importDefault('user', {location: a0.location});
|
||||
const getEvaluationAndAssignment = require.getEvaluationAndAssignment;
|
||||
const value5 = env1_2(Reflect.apply(getEvaluationAndAssignment, require, [kind, defaultImport, name, r7]), 2);
|
||||
const property = value5[0];
|
||||
const property2 = value5[1];
|
||||
const variantId = property2 == null ? value2 : property2.variantId;
|
||||
const r10 = (property2 == null ? value2 : property2.trackedVariantId) ?? variantId;
|
||||
const revision = property2 == null ? value2 : property2.revision;
|
||||
const isOverride = property2 == null ? value2 : property2.isOverride;
|
||||
const exposureTrackingEnabled = property2 == null ? value2 : property2.exposureTrackingEnabled;
|
||||
const useAsEligibility = property2 == null ? value2 : property2.useAsEligibility;
|
||||
let r5 = property != null && r10 != null && revision != null;
|
||||
r5 = r5 && isOverride === false && exposureTrackingEnabled === true && useAsEligibility !== true;
|
||||
if (r5) {
|
||||
require.trackExperimentExposure(property, name, a0.location, kind, revision, r10, defaultImport);
|
||||
}
|
||||
if (variantId == null) {
|
||||
return defaultConfig;
|
||||
}
|
||||
if (useAsEligibility === true) {
|
||||
return defaultConfig;
|
||||
}
|
||||
return variations[variantId] ?? defaultConfig;
|
||||
}
|
||||
|
||||
function _fun15583() { // fn#15583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1486:462, offset: 0x00e36a49, size: 41 bytes, params: 1, frame: 17
|
||||
return require.getEvaluationAndAssignment(kind, env0_1, name, env0_2);
|
||||
}
|
||||
|
||||
function _fun15584() { // fn#15584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1486:757, offset: 0x00e36a72, size: 134 bytes, params: 1, frame: 23
|
||||
var value8;
|
||||
let r1 = env0_3 != null && env0_4 != null && revision != null;
|
||||
r1 = r1 && isOverride === false && exposureTrackingEnabled === true && useAsEligibility !== true;
|
||||
if (r1) {
|
||||
value8 = environment.__proto__;
|
||||
require.trackExperimentExposure(env0_3, name, env0_0.location, kind, revision, env0_4, env0_1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/* Metro module 1223; source: ../discord_common/js/packages/apex/ApexTypes.tsx; dependencies: [1224, 2] */
|
||||
function _fun13683(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#13683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1350:6, offset: 0x00df24bc, size: 279 bytes, params: 8, frame: 21
|
||||
var object4;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const LOGGED_OUT_USER_ID_SENTINEL = (require(1224) /* metro dependency 1224: ExperimentsConstants */).LOGGED_OUT_USER_ID_SENTINEL;
|
||||
object4 = {User: 1};
|
||||
object4[1] = 'User';
|
||||
object4.Installation = 2;
|
||||
object4[2] = 'Installation';
|
||||
object4.Guild = 3;
|
||||
object4[3] = 'Guild';
|
||||
const object5 = {};
|
||||
const User = object4.User;
|
||||
object5[User] = 'user';
|
||||
const Installation = object4.Installation;
|
||||
object5[Installation] = 'installation';
|
||||
const Guild = object4.Guild;
|
||||
object5[Guild] = 'guild';
|
||||
const object6 = {IsOverride: 1};
|
||||
object6[1] = 'IsOverride';
|
||||
object6.ExposureTrackingEnabled = 2;
|
||||
object6[2] = 'ExposureTrackingEnabled';
|
||||
object6.DependentExperiment = 4;
|
||||
object6[4] = 'DependentExperiment';
|
||||
object6.UseAsEligibility = 8;
|
||||
object6[8] = 'UseAsEligibility';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/apex/ApexTypes.tsx');
|
||||
exports.UnitType = object4;
|
||||
exports.UnitTypeToKind = object5;
|
||||
exports.ExperimentFlags = object6;
|
||||
exports.LOGGED_OUT_USER_ID_SENTINEL = LOGGED_OUT_USER_ID_SENTINEL;
|
||||
}
|
||||
|
||||
+1047
File diff suppressed because it is too large.
Load diff
+262
@@ -0,0 +1,262 @@
|
||||
/* Metro module 20; source: ../discord_common/js/packages/app-start-performance/AppStartPerformance.tsx; dependencies: [5, 6, 7, 2] */
|
||||
function _fun263(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:6, offset: 0x00c3de06, size: 208 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_1 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_2 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_3 = global.globalThis.__getTotalRequireTime ?? (function() {
|
||||
return 0;
|
||||
});
|
||||
const result = typeof global.performance !== 'undefined';
|
||||
let value = _fun265();
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/app-start-performance/AppStartPerformance.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun265() { // fn#265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:225, offset: 0x00c3ded6, size: 337 bytes, params: 1, frame: 17
|
||||
const binding = env0_2;
|
||||
const closure = AppStartPerformance;
|
||||
const items2 = [{key: 'isTracing', get: get_267}];
|
||||
items2[1] = {key: 'endTime', get: function() {
|
||||
return this.endTime_;
|
||||
}, set: function(a0) {
|
||||
this.endTime_ = a0;
|
||||
this.isTracing_ = true;
|
||||
}};
|
||||
items2[2] = {key: 'resumeTracing', value: value_270};
|
||||
items2[3] = {key: 'mark', value: function(a0, a1, a2) {
|
||||
var logs;
|
||||
var object;
|
||||
if (this.isTracing) {
|
||||
logs = this.logs;
|
||||
object = {emoji: a0};
|
||||
object.prefix = '' + this.prefix;
|
||||
object.log = a1;
|
||||
object.delta = a2;
|
||||
object.timestamp = global.Date.now();
|
||||
logs.push(object);
|
||||
this.addImportLogDetail();
|
||||
}
|
||||
}};
|
||||
items2[4] = {key: 'markAndLog', value: function(a0, a1, a2, a3) {
|
||||
var logs;
|
||||
var object;
|
||||
a0.log(a2);
|
||||
if (this.isTracing) {
|
||||
logs = this.logs;
|
||||
object = {emoji: a1, prefix: this.prefix, log: a2, delta: a3};
|
||||
object.timestamp = global.Date.now();
|
||||
logs.push(object);
|
||||
this.addImportLogDetail();
|
||||
}
|
||||
}};
|
||||
items2[5] = {key: 'addImportLogDetail', value: value_273};
|
||||
items2[6] = {key: 'markWithDelta', value: function(a0, a1) {
|
||||
var property = this.logs;
|
||||
property = property[this.logs.length - 1];
|
||||
var value = undefined;
|
||||
this.mark(a0, a1,
|
||||
property != null && property.timestamp != null ? global.Date.now() - property.timestamp : value);
|
||||
return value;
|
||||
}};
|
||||
items2[7] = {key: 'markAt', value: value_275};
|
||||
items2[8] = {key: 'addDetail', value: function(a0, a1) {
|
||||
if (this.isTracing) {
|
||||
this.logs.push({emoji: this.logs[this.logs.length - 1].emoji, prefix: this.prefix,
|
||||
log: ' ↪ ' + a0 + ' ' + a1});
|
||||
}
|
||||
}};
|
||||
items2[9] = {key: 'time', value: value_277};
|
||||
const env0_0Binding = env0_0(_fun279);
|
||||
items2[10] = {key: 'timeAsync', value: value_280};
|
||||
items2[11] = {key: 'setServerTrace', value: function(a0) {
|
||||
this.logGroups[0].serverTrace = a0;
|
||||
}};
|
||||
return binding(closure, items2);
|
||||
}
|
||||
|
||||
function AppStartPerformance() { // fn#266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:246, offset: 0x00c3e027, size: 166 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
env1_1(this, AppStartPerformance);
|
||||
this.isTracing_ = true;
|
||||
let Date = global.Date;
|
||||
this.endTime_ = Date.now() + 15000;
|
||||
this.lastImportDuration = 0;
|
||||
const object2 = {index: 0};
|
||||
Date = global.Date;
|
||||
object2.timestamp = Date.now();
|
||||
object2.logs = [];
|
||||
object2.nativeLogs = [];
|
||||
this.logGroups = [object2];
|
||||
this.logs = this.logGroups[0].logs;
|
||||
this.prefix = '';
|
||||
}
|
||||
|
||||
function get_267() { // fn#267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:522, offset: 0x00c3e0cd, size: 79 bytes, params: 1, frame: 11
|
||||
var r0;
|
||||
let value = environment.__proto__;
|
||||
const resultBinding = result;
|
||||
let r1 = resultBinding ? !this.isTracing_ : !resultBinding;
|
||||
value = !r1;
|
||||
if (r1) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = global.Date.now();
|
||||
value = value > this.endTime_;
|
||||
if (value) {
|
||||
value = false;
|
||||
this.isTracing_ = value;
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = !value;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_270() { // fn#270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:753, offset: 0x00c3e13f, size: 147 bytes, params: 1, frame: 14
|
||||
var logGroups;
|
||||
var unshift;
|
||||
var object2;
|
||||
if (!this.isTracing) {
|
||||
logGroups = this.logGroups;
|
||||
unshift = logGroups.unshift;
|
||||
object2 = {};
|
||||
object2.index = this.logGroups.length;
|
||||
object2.timestamp = global.Date.now();
|
||||
object2.logs = [];
|
||||
object2.nativeLogs = [];
|
||||
Reflect.apply(unshift, logGroups, [object2]);
|
||||
logGroups = this.logGroups;
|
||||
this.logs = logGroups[0].logs;
|
||||
}
|
||||
const Date = global.Date;
|
||||
this.endTime = Date.now() + 10000;
|
||||
}
|
||||
|
||||
function value_273() { // fn#273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:1316, offset: 0x00c3e2be, size: 86 bytes, params: 1, frame: 15
|
||||
let value = environment.__proto__;
|
||||
value = env1_3();
|
||||
if (value - this.lastImportDuration > 25) {
|
||||
this.addDetail('JS Imports', global.Math.ceil(value) + 'ms');
|
||||
this.lastImportDuration = value;
|
||||
}
|
||||
}
|
||||
|
||||
function value_275(a0, a1, a2) { // fn#275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:1615, offset: 0x00c3e37f, size: 182 bytes, params: 4, frame: 19
|
||||
var r1;
|
||||
var r3;
|
||||
var prefix;
|
||||
var r5;
|
||||
var logs;
|
||||
var length;
|
||||
var value;
|
||||
var timestamp;
|
||||
var value2;
|
||||
var splice;
|
||||
var logs2;
|
||||
var property;
|
||||
var value3;
|
||||
var value4;
|
||||
reducibleJoin9: while (true) {
|
||||
if (this.isTracing) {
|
||||
logs = this.logs;
|
||||
length = logs.length;
|
||||
value = 0;
|
||||
if (value < length) {
|
||||
r1 = value;
|
||||
reducibleLoop2: while (true) {
|
||||
logs = this.logs;
|
||||
timestamp = logs[r1].timestamp;
|
||||
if (timestamp != null) {
|
||||
reducibleJoin4: while (true) {
|
||||
if (timestamp > a2) {
|
||||
r3 = r1;
|
||||
break reducibleLoop2;
|
||||
}
|
||||
break reducibleJoin4;
|
||||
}
|
||||
}
|
||||
value2 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
||||
logs = this.logs;
|
||||
length = logs.length;
|
||||
if (value2 < length) {
|
||||
r1 = value2;
|
||||
continue reducibleLoop2;
|
||||
}
|
||||
r3 = value2;
|
||||
break reducibleLoop2;
|
||||
}
|
||||
} else {
|
||||
r3 = value;
|
||||
}
|
||||
logs = this.logs;
|
||||
splice = logs.splice;
|
||||
logs2 = this.logs;
|
||||
property = logs2[r3];
|
||||
value3 = undefined;
|
||||
reducibleJoin7: while (true) {
|
||||
if (property == null) {
|
||||
prefix = value3;
|
||||
break reducibleJoin7;
|
||||
}
|
||||
prefix = property.prefix;
|
||||
break reducibleJoin7;
|
||||
}
|
||||
value4 = '';
|
||||
r5 = prefix ?? value4;
|
||||
Reflect.apply(splice, logs, [r3, value, {emoji: a0, log: a1, timestamp: a2, prefix: r5}]);
|
||||
break reducibleJoin9;
|
||||
}
|
||||
break reducibleJoin9;
|
||||
}
|
||||
}
|
||||
|
||||
function value_277(a0, a1, a2) { // fn#277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:2033, offset: 0x00c3e4b4, size: 176 bytes, params: 4, frame: 19
|
||||
var prefix;
|
||||
var Date;
|
||||
var value;
|
||||
var value2;
|
||||
if (this.isTracing) {
|
||||
prefix = this.prefix;
|
||||
this.mark(a0, 'Start ' + a1);
|
||||
this.prefix = this.prefix + '| ';
|
||||
Date = global.Date;
|
||||
value = Date.now();
|
||||
value2 = a2();
|
||||
Date = global.Date;
|
||||
value = Date.now() - value;
|
||||
this.prefix = prefix;
|
||||
this.mark(a0, 'Finish ' + a1, value);
|
||||
return value2;
|
||||
}
|
||||
return a2();
|
||||
}
|
||||
|
||||
function* _fun279(a0, a1, a2) { // fn#279, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:2262, offset: 0x00c3e56d, size: 170 bytes, params: 4, frame: 19
|
||||
var Date;
|
||||
var value3;
|
||||
let value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
if (this.isTracing) {
|
||||
this.mark(a0, 'Start ' + a1);
|
||||
Date = global.Date;
|
||||
value = Date.now();
|
||||
yield a2();
|
||||
value3 = undefined;
|
||||
if (false) {
|
||||
return value3;
|
||||
}
|
||||
Date = global.Date;
|
||||
value = Date.now() - value;
|
||||
this.mark(a0, 'Finish ' + a1, value);
|
||||
return value3;
|
||||
}
|
||||
return a2();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
/* Metro module 561; source: ../discord_common/js/packages/backoff/Backoff.tsx; dependencies: [6, 7, 2] */
|
||||
function _fun6778(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:611:6, offset: 0x00d08671, size: 124 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun6779();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/backoff/Backoff.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun6779() { // fn#6779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:611:118, offset: 0x00d086ed, size: 170 bytes, params: 1, frame: 15
|
||||
return env0_1(Backoff, [{key: 'fails', get: function() {
|
||||
return this._fails;
|
||||
}}, {key: 'current', get: function() {
|
||||
return this._current;
|
||||
}}, {key: 'pending', get: function() {
|
||||
return this._timeoutId != null;
|
||||
}}, {key: 'succeed', value: function() {
|
||||
this.cancel();
|
||||
this._fails = 0;
|
||||
this._current = this.min;
|
||||
}}, {key: 'fail', value: value_6785}, {key: 'cancel', value: function() {
|
||||
this._callback = null;
|
||||
if (this._timeoutId != null) {
|
||||
global.clearTimeout(this._timeoutId);
|
||||
this._timeoutId = null;
|
||||
}
|
||||
}}]);
|
||||
}
|
||||
|
||||
function Backoff() { // fn#6780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:611:139, offset: 0x00d08797, size: 128 bytes, params: 1, frame: 16
|
||||
let value = a0;
|
||||
const value2 = a1;
|
||||
const value3 = a2;
|
||||
const r1 = value !== undefined ? value : 500;
|
||||
let r4 = value2 !== undefined ? value2 : null;
|
||||
const r3 = !(value3 !== undefined) || value3;
|
||||
value = environment.__proto__;
|
||||
env1_0(this, Backoff);
|
||||
this._fails = 0;
|
||||
if (r1 <= 0) {
|
||||
throw global.Error('Backoff min value must be greater than zero or backoff will never back-off.');
|
||||
}
|
||||
this.min = r1;
|
||||
r4 = r4 ?? 10 * r1;
|
||||
this.max = r4;
|
||||
this.jitter = r3;
|
||||
this._current = r1;
|
||||
}
|
||||
|
||||
function value_6785(a0, a1) { // fn#6785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:611:638, offset: 0x00d08862, size: 248 bytes, params: 3, frame: 18
|
||||
const value = a1;
|
||||
const env0_1 = a0;
|
||||
this._fails = this._fails + 1;
|
||||
const value2 = 2 * this._current;
|
||||
const r6 = this.jitter ? value2 * global.Math.random() : value2;
|
||||
const Math = global.Math;
|
||||
this._current = Math.min(this._current + r6, this.max);
|
||||
const r1 = value == null ? this._current : value > this._current ? value : this._current;
|
||||
if (a0 != null) {
|
||||
if (this._timeoutId == null) {
|
||||
this._callback = a0;
|
||||
this._timeoutId = global.setTimeout(_fun6786, r1);
|
||||
return r1;
|
||||
}
|
||||
if (this._callback !== a0) {
|
||||
throw new global.Error('callback already pending');
|
||||
}
|
||||
this.cancel();
|
||||
this._callback = a0;
|
||||
this._timeoutId = global.setTimeout(_fun6786, r1);
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
function _fun6786() { // fn#6786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:611:980, offset: 0x00d0895a, size: 62 bytes, params: 1, frame: 10
|
||||
var value;
|
||||
var binding;
|
||||
var value2;
|
||||
var error;
|
||||
try {
|
||||
value = environment;
|
||||
binding = env0_1;
|
||||
value2 = binding == null;
|
||||
if (!value2) {
|
||||
binding = env0_1;
|
||||
binding();
|
||||
}
|
||||
} catch (error) {
|
||||
binding = env0_0;
|
||||
binding.cancel();
|
||||
throw error;
|
||||
}
|
||||
env0_0.cancel();
|
||||
}
|
||||
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
/* Metro module 3821; source: ../discord_common/js/packages/code-splitting/CodeSplittingUtils.tsx; dependencies: [57, 31, 33, 3822, 2] */
|
||||
function _fun29561(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#29561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:6, offset: 0x00fc4dd0, size: 258 bytes, params: 8, frame: 24
|
||||
var propertyName;
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.Fragment;
|
||||
const closure = function() {
|
||||
var value = a0;
|
||||
var env0_0 = value !== undefined ? value : 'transparent';
|
||||
return _fun29563;
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/code-splitting/CodeSplittingUtils.tsx');
|
||||
for (propertyName in require(3822) /* metro dependency 3822: importWithRetry */) {
|
||||
exports[propertyName] = (require(3822) /* metro dependency 3822: importWithRetry */)[propertyName];
|
||||
}
|
||||
exports.loaderMaker = closure;
|
||||
exports.makeLazy = makeLazy;
|
||||
exports.makeLazyWithPreload = makeLazyWithPreload;
|
||||
exports.LazyLibrary = LazyLibrary;
|
||||
}
|
||||
|
||||
function loaderMaker() { // fn#29562, offset: 0x00fc4ed2, size: 26 bytes, params: 1, frame: 3
|
||||
const value = a0;
|
||||
const env0_0 = value !== undefined ? value : 'transparent';
|
||||
return _fun29563;
|
||||
}
|
||||
|
||||
function makeLazy({createPromise, webpackId, renderLoader, name, memo}) { // fn#29564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:441, offset: 0x00fc4f20, size: 159 bytes, params: 2, frame: 16
|
||||
const env0_3 = name;
|
||||
memo = !(memo === undefined) && memo;
|
||||
const env0_4 = env0_3.lazy(_fun29565);
|
||||
const closure = makeLazyWrapper;
|
||||
const r0 = memo ? env0_3.memo(closure) : closure;
|
||||
name = !name ? 'Unknown' : name;
|
||||
r0.displayName = 'Suspense(' + name + ')';
|
||||
return r0;
|
||||
}
|
||||
|
||||
function makeLazyWithPreload({createPromise, webpackId, renderLoader, name, memo}) { // fn#29567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:804, offset: 0x00fc506b, size: 180 bytes, params: 2, frame: 16
|
||||
memo = !(memo === undefined) && memo;
|
||||
let closure = importPromise;
|
||||
const env0_6 = null.lazy(closure);
|
||||
closure = makeLazyWithPreloadWrapper;
|
||||
const r0 = memo ? null.memo(closure) : closure;
|
||||
name = !name ? 'Unknown' : name;
|
||||
r0.displayName = 'Suspense(' + name + ')';
|
||||
r0.preload = function() {
|
||||
importPromise();
|
||||
};
|
||||
return r0;
|
||||
}
|
||||
|
||||
function LazyLibrary({createPromise, webpackId, render, renderFallback}) { // fn#29573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:1354, offset: 0x00fc5249, size: 145 bytes, params: 2, frame: 19
|
||||
const binding = env0_3;
|
||||
const [property, env0_2] = env0_2Binding(binding.useState(null), 2);
|
||||
binding.useEffect(_fun29574, []);
|
||||
return (
|
||||
<>
|
||||
{property == null ? renderFallback() : render(property)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun29563() { // fn#29563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:178, offset: 0x00fc4eec, size: 52 bytes, params: 1, frame: 13
|
||||
return <div style={{'position': 'absolute', 'width': '100%', 'height': '100%', backgroundColor: env0_0}} />;
|
||||
}
|
||||
|
||||
function _fun29565() { // fn#29565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:536, offset: 0x00fc4fbf, size: 69 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return (require(3822) /* metro dependency 3822: importWithRetry */).importWithRetry({createPromise: createPromise,
|
||||
webpackId: webpackId, name: name});
|
||||
}
|
||||
|
||||
function makeLazyWrapper(a0) { // fn#29566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:612, owner: makeLazy.Wrapper, offset: 0x00fc5004, size: 103 bytes, params: 2, frame: 17
|
||||
const Suspense = env1_3.Suspense;
|
||||
return (
|
||||
<Suspense fallback={renderLoader != null ? renderLoader() : loaderMaker()()}>
|
||||
{((Component) => <Component {...a0} />)(env0_4)}
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
|
||||
function importPromise() { // fn#29568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:928, owner: makeLazyWithPreload.importPromise, offset: 0x00fc511f, size: 96 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (env0_3 == null) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(3822) /* metro dependency 3822: importWithRetry */;
|
||||
env0_3 = moduleValue.importWithRetry({createPromise: createPromise, webpackId: webpackId}).then(function(a0) {
|
||||
env1_4 = a0.default;
|
||||
return a0;
|
||||
});
|
||||
}
|
||||
return env0_3;
|
||||
}
|
||||
|
||||
function makeLazyWithPreloadWrapper(a0) { // fn#29570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:1063, owner: makeLazyWithPreload.Wrapper, offset: 0x00fc5190, size: 170 bytes, params: 2, frame: 20
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
const property = env1_2(env1_3.useState(_fun29571), 1)[0];
|
||||
return property != null ? ((Component) => <Component {...a0} />)(property) : <env1_3.Suspense fallback={renderLoader != null ? renderLoader() : loaderMaker()()}>{((Component) => <Component {...a0} />)(env0_6)}</env1_3.Suspense>;
|
||||
}
|
||||
|
||||
function _fun29574() { // fn#29574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:1498, offset: 0x00fc52da, size: 78 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = Reflect.apply((require(3822) /* metro dependency 3822: importWithRetry */).importWithRetry, value,
|
||||
[{createPromise: createPromise, webpackId: webpackId}]);
|
||||
value.then(_fun29575);
|
||||
}
|
||||
|
||||
function _fun29575({default: property}) { // fn#29575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:1564, offset: 0x00fc5328, size: 24 bytes, params: 2, frame: 11
|
||||
return env1_2(property);
|
||||
}
|
||||
|
||||
+399
@@ -0,0 +1,399 @@
|
||||
/* Metro module 3822; source: ../discord_common/js/packages/code-splitting/importWithRetry.tsx; dependencies: [5, 2] */
|
||||
function _fun29576(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#29576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3949:6, offset: 0x00fc5340, size: 160 bytes, params: 8, frame: 18
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_1 = importDefault(5) /* metro dependency 5 */;
|
||||
const closure = function(a0) {
|
||||
var env0_0 = a0;
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun29581);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
};
|
||||
const closure2 = function() {
|
||||
var Promise = global.Promise;
|
||||
return Promise.resolve();
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/code-splitting/importWithRetry.tsx');
|
||||
exports.awaitOnline = closure2;
|
||||
exports.setAwaitOnline = function(a0) {
|
||||
env0_3 = a0;
|
||||
};
|
||||
exports.pausedPromise = closure;
|
||||
exports.importWithRetry = function() {
|
||||
return _importWithRetry.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _importWithRetry() { // fn#29577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3949:191, offset: 0x00fc53e0, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_1(_fun29579).apply(this, arguments);
|
||||
}
|
||||
|
||||
function pausedPromise(a0) { // fn#29580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3949:120, offset: 0x00fc552e, size: 44 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun29581);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
async function _fun29579({createPromise, webpackId, name}) { // fn#29579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3949:246, offset: 0x00fc5422, size: 268 bytes, params: 2, frame: 28
|
||||
var performance;
|
||||
var mark;
|
||||
var object3;
|
||||
var object4;
|
||||
var value6;
|
||||
var error;
|
||||
var cache;
|
||||
var value7;
|
||||
var value8;
|
||||
var Math;
|
||||
var min;
|
||||
var value9;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
let r14 = 500;
|
||||
let r15 = 0;
|
||||
exceptionMain4: while (true) {
|
||||
try {
|
||||
performance = global.performance;
|
||||
} catch (error) {
|
||||
while (true) {
|
||||
cache = env2_0.cache;
|
||||
if (webpackId in cache) {
|
||||
throw error;
|
||||
}
|
||||
if (r15 >= 50) {
|
||||
throw error;
|
||||
}
|
||||
await env2_2(r14);
|
||||
value = undefined;
|
||||
value7 = false;
|
||||
if (value7) {
|
||||
return value;
|
||||
}
|
||||
await env2_3();
|
||||
value = undefined;
|
||||
value8 = false;
|
||||
if (value8) {
|
||||
return value;
|
||||
}
|
||||
Math = global.Math;
|
||||
min = Math.min;
|
||||
value = Reflect.apply(min, Math, [5000, 2 * r14]);
|
||||
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
|
||||
r14 = value;
|
||||
r15 = value9;
|
||||
break;
|
||||
continue exceptionMain4;
|
||||
}
|
||||
}
|
||||
try {
|
||||
mark = performance.mark;
|
||||
} catch (error) {
|
||||
while (true) {
|
||||
cache = env2_0.cache;
|
||||
if (webpackId in cache) {
|
||||
throw error;
|
||||
}
|
||||
if (r15 >= 50) {
|
||||
throw error;
|
||||
}
|
||||
await env2_2(r14);
|
||||
value = undefined;
|
||||
value7 = false;
|
||||
if (value7) {
|
||||
return value;
|
||||
}
|
||||
await env2_3();
|
||||
value = undefined;
|
||||
value8 = false;
|
||||
if (value8) {
|
||||
return value;
|
||||
}
|
||||
Math = global.Math;
|
||||
min = Math.min;
|
||||
value = Reflect.apply(min, Math, [5000, 2 * r14]);
|
||||
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
|
||||
r14 = value;
|
||||
r15 = value9;
|
||||
break;
|
||||
continue exceptionMain4;
|
||||
}
|
||||
}
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
while (true) {
|
||||
cache = env2_0.cache;
|
||||
if (webpackId in cache) {
|
||||
throw error;
|
||||
}
|
||||
if (r15 >= 50) {
|
||||
throw error;
|
||||
}
|
||||
await env2_2(r14);
|
||||
value = undefined;
|
||||
value7 = false;
|
||||
if (value7) {
|
||||
return value;
|
||||
}
|
||||
await env2_3();
|
||||
value = undefined;
|
||||
value8 = false;
|
||||
if (value8) {
|
||||
return value;
|
||||
}
|
||||
Math = global.Math;
|
||||
min = Math.min;
|
||||
value = Reflect.apply(min, Math, [5000, 2 * r14]);
|
||||
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
|
||||
r14 = value;
|
||||
r15 = value9;
|
||||
break;
|
||||
continue exceptionMain4;
|
||||
}
|
||||
}
|
||||
try {
|
||||
object4 = {};
|
||||
} catch (error) {
|
||||
while (true) {
|
||||
cache = env2_0.cache;
|
||||
if (webpackId in cache) {
|
||||
throw error;
|
||||
}
|
||||
if (r15 >= 50) {
|
||||
throw error;
|
||||
}
|
||||
await env2_2(r14);
|
||||
value = undefined;
|
||||
value7 = false;
|
||||
if (value7) {
|
||||
return value;
|
||||
}
|
||||
await env2_3();
|
||||
value = undefined;
|
||||
value8 = false;
|
||||
if (value8) {
|
||||
return value;
|
||||
}
|
||||
Math = global.Math;
|
||||
min = Math.min;
|
||||
value = Reflect.apply(min, Math, [5000, 2 * r14]);
|
||||
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
|
||||
r14 = value;
|
||||
r15 = value9;
|
||||
break;
|
||||
continue exceptionMain4;
|
||||
}
|
||||
}
|
||||
try {
|
||||
object4.webpackId = webpackId;
|
||||
} catch (error) {
|
||||
while (true) {
|
||||
cache = env2_0.cache;
|
||||
if (webpackId in cache) {
|
||||
throw error;
|
||||
}
|
||||
if (r15 >= 50) {
|
||||
throw error;
|
||||
}
|
||||
await env2_2(r14);
|
||||
value = undefined;
|
||||
value7 = false;
|
||||
if (value7) {
|
||||
return value;
|
||||
}
|
||||
await env2_3();
|
||||
value = undefined;
|
||||
value8 = false;
|
||||
if (value8) {
|
||||
return value;
|
||||
}
|
||||
Math = global.Math;
|
||||
min = Math.min;
|
||||
value = Reflect.apply(min, Math, [5000, 2 * r14]);
|
||||
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
|
||||
r14 = value;
|
||||
r15 = value9;
|
||||
break;
|
||||
continue exceptionMain4;
|
||||
}
|
||||
}
|
||||
try {
|
||||
object4.name = name;
|
||||
} catch (error) {
|
||||
while (true) {
|
||||
cache = env2_0.cache;
|
||||
if (webpackId in cache) {
|
||||
throw error;
|
||||
}
|
||||
if (r15 >= 50) {
|
||||
throw error;
|
||||
}
|
||||
await env2_2(r14);
|
||||
value = undefined;
|
||||
value7 = false;
|
||||
if (value7) {
|
||||
return value;
|
||||
}
|
||||
await env2_3();
|
||||
value = undefined;
|
||||
value8 = false;
|
||||
if (value8) {
|
||||
return value;
|
||||
}
|
||||
Math = global.Math;
|
||||
min = Math.min;
|
||||
value = Reflect.apply(min, Math, [5000, 2 * r14]);
|
||||
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
|
||||
r14 = value;
|
||||
r15 = value9;
|
||||
break;
|
||||
continue exceptionMain4;
|
||||
}
|
||||
}
|
||||
try {
|
||||
object3.detail = object4;
|
||||
} catch (error) {
|
||||
while (true) {
|
||||
cache = env2_0.cache;
|
||||
if (webpackId in cache) {
|
||||
throw error;
|
||||
}
|
||||
if (r15 >= 50) {
|
||||
throw error;
|
||||
}
|
||||
await env2_2(r14);
|
||||
value = undefined;
|
||||
value7 = false;
|
||||
if (value7) {
|
||||
return value;
|
||||
}
|
||||
await env2_3();
|
||||
value = undefined;
|
||||
value8 = false;
|
||||
if (value8) {
|
||||
return value;
|
||||
}
|
||||
Math = global.Math;
|
||||
min = Math.min;
|
||||
value = Reflect.apply(min, Math, [5000, 2 * r14]);
|
||||
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
|
||||
r14 = value;
|
||||
r15 = value9;
|
||||
break;
|
||||
continue exceptionMain4;
|
||||
}
|
||||
}
|
||||
try {
|
||||
Reflect.apply(mark, performance, ['importWithRetry:start', object3]);
|
||||
} catch (error) {
|
||||
while (true) {
|
||||
cache = env2_0.cache;
|
||||
if (webpackId in cache) {
|
||||
throw error;
|
||||
}
|
||||
if (r15 >= 50) {
|
||||
throw error;
|
||||
}
|
||||
await env2_2(r14);
|
||||
value = undefined;
|
||||
value7 = false;
|
||||
if (value7) {
|
||||
return value;
|
||||
}
|
||||
await env2_3();
|
||||
value = undefined;
|
||||
value8 = false;
|
||||
if (value8) {
|
||||
return value;
|
||||
}
|
||||
Math = global.Math;
|
||||
min = Math.min;
|
||||
value = Reflect.apply(min, Math, [5000, 2 * r14]);
|
||||
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
|
||||
r14 = value;
|
||||
r15 = value9;
|
||||
break;
|
||||
continue exceptionMain4;
|
||||
}
|
||||
}
|
||||
try {
|
||||
value = createPromise();
|
||||
} catch (error) {
|
||||
while (true) {
|
||||
cache = env2_0.cache;
|
||||
if (webpackId in cache) {
|
||||
throw error;
|
||||
}
|
||||
if (r15 >= 50) {
|
||||
throw error;
|
||||
}
|
||||
await env2_2(r14);
|
||||
value = undefined;
|
||||
value7 = false;
|
||||
if (value7) {
|
||||
return value;
|
||||
}
|
||||
await env2_3();
|
||||
value = undefined;
|
||||
value8 = false;
|
||||
if (value8) {
|
||||
return value;
|
||||
}
|
||||
Math = global.Math;
|
||||
min = Math.min;
|
||||
value = Reflect.apply(min, Math, [5000, 2 * r14]);
|
||||
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
|
||||
r14 = value;
|
||||
r15 = value9;
|
||||
break;
|
||||
continue exceptionMain4;
|
||||
}
|
||||
}
|
||||
await value;
|
||||
try {
|
||||
value = undefined;
|
||||
value6 = false;
|
||||
} catch (error) {
|
||||
while (true) {
|
||||
cache = env2_0.cache;
|
||||
if (webpackId in cache) {
|
||||
throw error;
|
||||
}
|
||||
if (r15 >= 50) {
|
||||
throw error;
|
||||
}
|
||||
await env2_2(r14);
|
||||
value = undefined;
|
||||
value7 = false;
|
||||
if (value7) {
|
||||
return value;
|
||||
}
|
||||
await env2_3();
|
||||
value = undefined;
|
||||
value8 = false;
|
||||
if (value8) {
|
||||
return value;
|
||||
}
|
||||
Math = global.Math;
|
||||
min = Math.min;
|
||||
value = Reflect.apply(min, Math, [5000, 2 * r14]);
|
||||
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
|
||||
r14 = value;
|
||||
r15 = value9;
|
||||
break;
|
||||
continue exceptionMain4;
|
||||
}
|
||||
}
|
||||
return value6 ? value : value;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
/* Metro module 3878; source: ../discord_common/js/packages/design/animation/MotionTypes.tsx; dependencies: [2] */
|
||||
function _fun32035(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4017:6, offset: 0x0100a394, size: 37 bytes, params: 8, frame: 12
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/animation/MotionTypes.tsx');
|
||||
}
|
||||
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
/* Metro module 3869; source: ../discord_common/js/packages/design/components/AccessibilityAnnouncer/AccessibilityAnnouncer.android.tsx; dependencies: [27, 3870, 2] */
|
||||
function _fun31997(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4008:6, offset: 0x01009ada, size: 134 bytes, params: 8, frame: 18
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).AccessibilityInfo;
|
||||
object2 = {announce: announce, clearAnnouncements: function() {
|
||||
return null;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/AccessibilityAnnouncer/AccessibilityAnnouncer.android.tsx');
|
||||
exports.AccessibilityAnnouncer = object2;
|
||||
}
|
||||
|
||||
function announce(a0, a1) { // fn#31998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4008:136, offset: 0x01009b60, size: 76 bytes, params: 3, frame: 12
|
||||
if (a1 === 'polite') {
|
||||
(require(3870) /* metro dependency 3870: AccessibilityAnnouncerLiveRegionNative */).updateAccessibilityAnnouncerLiveRegionMessage(a0);
|
||||
} else {
|
||||
AccessibilityInfo.announceForAccessibility(a0);
|
||||
}
|
||||
}
|
||||
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
/* Metro module 3870; source: ../discord_common/js/packages/design/components/AccessibilityAnnouncer/AccessibilityAnnouncerLiveRegion.native.tsx; dependencies: [31, 27, 33, 3871, 2] */
|
||||
function _fun32000(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4009:6, offset: 0x01009bac, size: 194 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_0 = (require(27) /* metro dependency 27 */).Text;
|
||||
const env0_1 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_2 = (require(3871) /* metro dependency 3871 */).create(function() {
|
||||
return {message: undefined, version: 0};
|
||||
});
|
||||
value = value.memo(_fun32002);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/AccessibilityAnnouncer/AccessibilityAnnouncerLiveRegion.native.tsx');
|
||||
exports.updateAccessibilityAnnouncerLiveRegionMessage = updateAccessibilityAnnouncerLiveRegionMessage;
|
||||
exports.AccessibilityAnnouncerLiveRegion = value;
|
||||
}
|
||||
|
||||
function _fun32002() { // fn#32002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4009:202, offset: 0x01009c7f, size: 73 bytes, params: 1, frame: 18
|
||||
const {message, version} = env0_2();
|
||||
return (
|
||||
<Text
|
||||
accessibilityLiveRegion="polite"
|
||||
style={{display: 'none'}}
|
||||
key={version}
|
||||
>
|
||||
{message}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function updateAccessibilityAnnouncerLiveRegionMessage(a0) { // fn#32003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4009:529, offset: 0x01009cc8, size: 36 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
env0_2.setState(_fun32004);
|
||||
}
|
||||
|
||||
function _fun32004({version}) { // fn#32004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4009:599, offset: 0x01009cec, size: 36 bytes, params: 2, frame: 3
|
||||
return {message: env0_0, version: version + 1};
|
||||
}
|
||||
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
/* Metro module 7688; source: ../discord_common/js/packages/design/components/AccessibilityAnnouncer/useCharacterLimitAnnouncement.tsx; dependencies: [31, 3869, 2] */
|
||||
function _fun61371(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7866:6, offset: 0x01b3d584, size: 112 bytes, params: 8, frame: 18
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/AccessibilityAnnouncer/useCharacterLimitAnnouncement.tsx');
|
||||
exports.useCharacterLimitAnnouncement = function(a0) {
|
||||
var currentLength = a0.currentLength;
|
||||
var env0_0 = currentLength;
|
||||
var maxLength = a0.maxLength;
|
||||
var env0_1 = maxLength;
|
||||
var message = a0.message;
|
||||
var binding = message;
|
||||
var env0_3 = binding.useRef(false);
|
||||
binding.useEffect(_fun61373, [currentLength, maxLength, message]);
|
||||
};
|
||||
}
|
||||
|
||||
function useCharacterLimitAnnouncement({currentLength, maxLength, message}) { // fn#61372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7866:276, offset: 0x01b3d5f4, size: 93 bytes, params: 2, frame: 16
|
||||
const binding = message;
|
||||
const env0_3 = binding.useRef(false);
|
||||
binding.useEffect(_fun61373, [currentLength, maxLength, message]);
|
||||
}
|
||||
|
||||
function _fun61373() { // fn#61373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7866:388, offset: 0x01b3d651, size: 126 bytes, params: 1, frame: 15
|
||||
var value2;
|
||||
var value3;
|
||||
var AccessibilityAnnouncer;
|
||||
if (maxLength != null) {
|
||||
value2 = currentLength >= maxLength;
|
||||
if (value2) {
|
||||
if (env0_3.current) {
|
||||
if (!value2) {
|
||||
env0_3.current = false;
|
||||
}
|
||||
} else {
|
||||
env0_3.current = true;
|
||||
value3 = environment.__proto__;
|
||||
AccessibilityAnnouncer = (require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */).AccessibilityAnnouncer;
|
||||
AccessibilityAnnouncer.announce(message, 'assertive');
|
||||
}
|
||||
} else if (!value2) {
|
||||
env0_3.current = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
/* Metro module 3876; source: ../discord_common/js/packages/design/components/AccessibilityPreferencesContext/AccessibilityConstants.tsx; dependencies: [2] */
|
||||
function _fun32031(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4015:6, offset: 0x0100a233, size: 88 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/AccessibilityPreferencesContext/AccessibilityConstants.tsx');
|
||||
exports.LOW_SATURATION_THRESHOLD = 0.4;
|
||||
}
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
/* Metro module 3875; source: ../discord_common/js/packages/design/components/AccessibilityPreferencesContext/AccessibilityPreferencesContext.tsx; dependencies: [31, 2] */
|
||||
function _fun32030(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4014:6, offset: 0x0100a195, size: 158 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
value = value.createContext({'reducedMotion': null, 'prefersCrossfades': false, 'forcedColors': null,
|
||||
'alwaysShowLinkDecorations': false, 'highContrastModeEnabled': false, 'keyboardModeEnabled': true,
|
||||
'switchIconsEnabled': false, reducedMotion: {'enabled': false, 'rawValue': 'no-preference'},
|
||||
forcedColors: {'enabled': false, 'rawValue': 'none'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/AccessibilityPreferencesContext/AccessibilityPreferencesContext.tsx');
|
||||
exports.AccessibilityPreferencesContext = value;
|
||||
}
|
||||
|
||||
+148
@@ -0,0 +1,148 @@
|
||||
/* Metro module 3961; source: ../discord_common/js/packages/design/components/Colors/shared/Colors.tsx; dependencies: [57, 674, 2] */
|
||||
function _fun32420(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4110:6, offset: 0x01014ed0, size: 178 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Colors/shared/Colors.tsx');
|
||||
exports.WCAGContrastRatios = {'NonText': 3, 'Text': 4.5, 'HighContrastText': 7};
|
||||
exports.getContrastingColor = getContrastingColor;
|
||||
exports.darkenColor = darkenColor;
|
||||
exports.brightenColor = brightenColor;
|
||||
exports.setColorOpacity = setColorOpacity;
|
||||
}
|
||||
|
||||
function toRGBAString(a0) { // fn#32421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4110:151, offset: 0x01014f82, size: 104 bytes, params: 2, frame: 23
|
||||
let value = a0.rgba();
|
||||
value = env0_2(value, 4);
|
||||
return 'rgba(' + value[0] + ', ' + value[1] + ', ' + value[2] + ', ' + value[3] + ')';
|
||||
}
|
||||
|
||||
function getContrastingColor(a0) { // fn#32422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4110:401, offset: 0x01014fea, size: 290 bytes, params: 2, frame: 24
|
||||
var r1;
|
||||
var r12;
|
||||
var r13;
|
||||
var value3;
|
||||
var NonText;
|
||||
var value10;
|
||||
var value11;
|
||||
var brighten;
|
||||
var darken;
|
||||
var value12;
|
||||
var value13;
|
||||
let value = a0;
|
||||
const value2 = a1;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2 !== undefined) {
|
||||
r1 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
r1 = {};
|
||||
break reducibleJoin2;
|
||||
}
|
||||
const contrastRatio = r1.contrastRatio;
|
||||
reducibleJoin4: while (true) {
|
||||
if (contrastRatio != null) {
|
||||
r12 = contrastRatio;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value3 = environment;
|
||||
NonText = env0_3.NonText;
|
||||
r12 = NonText;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
const r11 = r1.tolerance ?? 3;
|
||||
const value6 = (importDefault(674) /* metro dependency 674 */)(r1.base ?? value);
|
||||
value = (importDefault(674) /* metro dependency 674 */)(value);
|
||||
let luminance = value6.luminance;
|
||||
const value7 = Reflect.apply(luminance, value6, []);
|
||||
const defaultImport2 = importDefault(674) /* metro dependency 674 */;
|
||||
let contrast = defaultImport2.contrast;
|
||||
const value8 = Reflect.apply(contrast, defaultImport2, [value6, value]);
|
||||
const value9 = 99;
|
||||
let r4 = value8;
|
||||
let r5 = value;
|
||||
let r7 = value9;
|
||||
reducibleLoop7: while (true) {
|
||||
value = r4 < r12;
|
||||
value10 = r4 > r12 + r11;
|
||||
if (!value) {
|
||||
reducibleJoin9: while (true) {
|
||||
if (value10) {
|
||||
break reducibleJoin9;
|
||||
}
|
||||
r1 = r5;
|
||||
break reducibleLoop7;
|
||||
}
|
||||
}
|
||||
luminance = r5.luminance;
|
||||
value11 = Reflect.apply(luminance, r5, []) > value7;
|
||||
reducibleJoin15: while (true) {
|
||||
reducibleJoin13: while (true) {
|
||||
if (value10) {
|
||||
if (!value11) {
|
||||
if (!value) {
|
||||
break reducibleJoin13;
|
||||
}
|
||||
if (value11) {
|
||||
break reducibleJoin13;
|
||||
}
|
||||
}
|
||||
darken = r5.darken;
|
||||
value = Reflect.apply(darken, r5, []);
|
||||
r13 = value;
|
||||
break reducibleJoin15;
|
||||
}
|
||||
if (value) {
|
||||
if (value11) {
|
||||
break reducibleJoin13;
|
||||
}
|
||||
darken = r5.darken;
|
||||
value = Reflect.apply(darken, r5, []);
|
||||
r13 = value;
|
||||
break reducibleJoin15;
|
||||
}
|
||||
break reducibleJoin13;
|
||||
}
|
||||
brighten = r5.brighten;
|
||||
value = Reflect.apply(brighten, r5, []);
|
||||
r13 = value;
|
||||
break reducibleJoin15;
|
||||
}
|
||||
value = defaultImport2;
|
||||
contrast = value.contrast;
|
||||
value = Reflect.apply(contrast, value, [value6, r13]);
|
||||
value12 = typeof r7 === 'bigint' ? r7 : +r7;
|
||||
value13 = typeof value12 === 'bigint' ? value12 - 1n : +value12 - 1;
|
||||
if (value12 > 0) {
|
||||
r4 = value;
|
||||
r5 = r13;
|
||||
r7 = value13;
|
||||
continue reducibleLoop7;
|
||||
}
|
||||
r1 = r13;
|
||||
break reducibleLoop7;
|
||||
}
|
||||
return toRGBAString(r1);
|
||||
}
|
||||
|
||||
function darkenColor(a0, a1) { // fn#32423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4110:780, offset: 0x0101510c, size: 58 bytes, params: 3, frame: 13
|
||||
const toRGBAStringBinding = toRGBAString;
|
||||
let value = importDefault(674) /* metro dependency 674 */;
|
||||
value = value(a0);
|
||||
return toRGBAStringBinding(value.darken(a1));
|
||||
}
|
||||
|
||||
function brightenColor(a0, a1) { // fn#32424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4110:865, offset: 0x01015146, size: 58 bytes, params: 3, frame: 13
|
||||
const toRGBAStringBinding = toRGBAString;
|
||||
let value = importDefault(674) /* metro dependency 674 */;
|
||||
value = value(a0);
|
||||
return toRGBAStringBinding(value.brighten(a1));
|
||||
}
|
||||
|
||||
function setColorOpacity(a0, a1) { // fn#32425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4110:956, offset: 0x01015180, size: 58 bytes, params: 3, frame: 13
|
||||
const toRGBAStringBinding = toRGBAString;
|
||||
let value = importDefault(674) /* metro dependency 674 */;
|
||||
value = value(a0);
|
||||
return toRGBAStringBinding(value.alpha(a1));
|
||||
}
|
||||
|
||||
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
/* Metro module 3962; source: ../discord_common/js/packages/design/components/Graphic/GraphicTypes.native.tsx; dependencies: [2] */
|
||||
function _fun32426(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4111:6, offset: 0x010151ba, size: 85 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Graphic/GraphicTypes.native.tsx');
|
||||
exports.isImage = function(a0) {
|
||||
var r0;
|
||||
var value = a0.type === 'image';
|
||||
if (value) {
|
||||
r0 = value;
|
||||
} else {
|
||||
a0.type;
|
||||
r0 = false;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
}
|
||||
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
/* Metro module 14766; source: ../discord_common/js/packages/design/components/Icon/getIconSize.tsx; dependencies: [2] */
|
||||
function _fun111477(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14963:6, offset: 0x023a3dfc, size: 117 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Icon/getIconSize.tsx');
|
||||
exports.getIconSize = getIconSize_111478;
|
||||
exports.ICON_SIZE = {'xxs': 12, 'xs': 16, 'sm': 18, 'md': 24, 'lg': 32, 'custom': null, 'refresh_sm': 20,
|
||||
custom: undefined};
|
||||
}
|
||||
|
||||
function getIconSize_111478(a0) { // fn#111478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14963:275, offset: 0x023a3e71, size: 38 bytes, params: 2, frame: 3
|
||||
if (a0 === 'custom') {
|
||||
return null;
|
||||
}
|
||||
const property = env0_0[a0];
|
||||
return {width: property, height: property};
|
||||
}
|
||||
|
||||
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
/* Metro module 3932; source: ../discord_common/js/packages/design/components/ManaContext/ManaContext.native.tsx; dependencies: [31, 33, 2] */
|
||||
function _fun32287(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4081:6, offset: 0x01010a94, size: 163 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_1 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = value.createContext({});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/ManaContext/ManaContext.native.tsx');
|
||||
exports.ManaContext = value;
|
||||
exports.useManaContext = useManaContext;
|
||||
exports.ManaContextProvider = ManaContextProvider;
|
||||
}
|
||||
|
||||
function ManaContextProvider({children, value}) { // fn#32289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4081:354, offset: 0x01010b4f, size: 60 bytes, params: 2, frame: 16
|
||||
const Provider = env0_3.Provider;
|
||||
return (
|
||||
<Provider value={value ?? env0_2}>
|
||||
{children}
|
||||
</Provider>
|
||||
);
|
||||
}
|
||||
|
||||
+361
@@ -0,0 +1,361 @@
|
||||
/* Metro module 3885; source: ../discord_common/js/packages/design/components/Rive/native/BaseRive.tsx; dependencies: [31, 27, 33, 3886, 3875, 3932, 3933, 3934, 2] */
|
||||
function _fun32056(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:6, offset: 0x0100b06c, size: 356 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value2.View;
|
||||
const StyleSheet = value2.StyleSheet;
|
||||
const env0_4 = value2.Image;
|
||||
const env0_5 = value2.PixelRatio;
|
||||
value2.Platform;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value3.jsx;
|
||||
const env0_7 = value3.jsxs;
|
||||
const env0_8 = StyleSheet.create({container: {flexGrow: 1}, fill: {flex: 1}, hidden: {opacity: 0}});
|
||||
value = value.forwardRef(BaseRiveInner);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/BaseRive.tsx');
|
||||
exports.BaseRive = value;
|
||||
exports.useNumberBinding = useNumberBinding;
|
||||
exports.useStringBinding = useStringBinding;
|
||||
exports.useBooleanBinding = useBooleanBinding;
|
||||
exports.useColorBinding = useColorBinding;
|
||||
exports.useEnumBinding = useEnumBinding;
|
||||
exports.useTriggerBinding = useTriggerBinding;
|
||||
exports.useImageBinding = useImageBinding;
|
||||
exports.useArtboardBinding = useArtboardBinding;
|
||||
}
|
||||
|
||||
function useObservedValue(a0, a1) { // fn#32057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:1804, offset: 0x0100b1d0, size: 97 bytes, params: 3, frame: 16
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2Binding = env0_2.useRef(a1);
|
||||
env0_2Binding.useEffect(_fun32058, [a1]);
|
||||
env0_2Binding.useEffect(_fun32059, [a0]);
|
||||
}
|
||||
|
||||
function BaseRiveInner({src, style, artboard, artboardProperties, artboardViewModelInstances, defaultViewModelInstance, referencedAssets, stateMachine, fit, alignment, withReducedMotion, renderDataBinding}, a1) { // fn#32060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:295, offset: 0x0100b276, size: 1060 bytes, params: 3, frame: 36
|
||||
var r5;
|
||||
var RiveView;
|
||||
var object;
|
||||
var object2;
|
||||
withReducedMotion = withReducedMotion === undefined ? 'halt' : withReducedMotion;
|
||||
let env0_2 = undefined;
|
||||
const moduleValue = require(3886) /* metro dependency 3886 */;
|
||||
const useRiveFile = moduleValue.useRiveFile;
|
||||
const riveFile = Reflect.apply(useRiveFile, moduleValue, [src,
|
||||
referencedAssets != null ? {referencedAssets: referencedAssets} : undefined]).riveFile;
|
||||
const {riveViewRef, setHybridRef} = moduleValue.useRive();
|
||||
const value6 = riveViewRef != null;
|
||||
const binding = env0_2;
|
||||
const useContext = binding.useContext;
|
||||
const AccessibilityPreferencesContext = (require(3875) /* metro dependency 3875: AccessibilityPreferencesContext */).AccessibilityPreferencesContext;
|
||||
const enabled = Reflect.apply(useContext, binding, [AccessibilityPreferencesContext]).reducedMotion.enabled;
|
||||
const manaContextNativeModule = require(3932) /* metro dependency 3932: ManaContextNative */;
|
||||
const useManaContext = manaContextNativeModule.useManaContext;
|
||||
const experiments = Reflect.apply(useManaContext, manaContextNativeModule, []).experiments;
|
||||
const r4 = experiments == null || experiments.enabledExperiments == null ? undefined : experiments.enabledExperiments.includes('rive-app-state-playback');
|
||||
const r8 = r4 != null && r4;
|
||||
const r16 = fit !== 'layout' ? undefined : PixelRatio.get();
|
||||
const value10 = (artboardViewModelInstances[artboard] ?? []).length > 0;
|
||||
const value11 = env0_2.useMemo(function() {
|
||||
return defaultViewModelInstance;
|
||||
}, []);
|
||||
const moduleValue4 = moduleValue;
|
||||
const useViewModelInstance = moduleValue4.useViewModelInstance;
|
||||
const instance = Reflect.apply(useViewModelInstance, moduleValue4,
|
||||
[(value11 != null || value10) && riveFile != null ? riveFile : null, {artboardName: artboard,
|
||||
instanceName: value11}]).instance;
|
||||
let r14 = instance ?? moduleValue.DataBindMode.None;
|
||||
const value15 = (require(3933) /* metro dependency 3933: useRivePlayback */).useRivePlayback(riveViewRef,
|
||||
{isReady: value6, appStatePlaybackEnabled: r8,
|
||||
shouldShortLoopForReducedMotion: enabled && !(artboardProperties[artboard]?.reducedMotion != null) && withReducedMotion !== 'play'});
|
||||
const play = value15.play;
|
||||
const pause = value15.pause;
|
||||
env0_2 = pause;
|
||||
const playIfNeeded = value15.playIfNeeded;
|
||||
env0_2.useImperativeHandle(a1, function() {
|
||||
return {play: play, pause: pause};
|
||||
}, [play, pause]);
|
||||
const items2 = [env0_8.container];
|
||||
items2[1] = value6 ? undefined : env0_8.hidden;
|
||||
const value16 = riveFile != null;
|
||||
if (value16) {
|
||||
RiveView = moduleValue.RiveView;
|
||||
var riveViewProps = {file: riveFile, hybridRef: setHybridRef, artboardName: artboard, autoPlay: true,
|
||||
dataBind: r14,
|
||||
style: [env0_8.fill, style]};
|
||||
r14 = stateMachine != null ? {stateMachineName: stateMachine} : {};
|
||||
copyDataProperties(riveViewProps, r14, undefined);
|
||||
if (fit != null) {
|
||||
object = {};
|
||||
object.fit = (require(3934) /* metro dependency 3934: RiveTypes */).FIT_MAP[fit];
|
||||
r14 = object;
|
||||
} else {
|
||||
r14 = {};
|
||||
}
|
||||
copyDataProperties(riveViewProps, r14, undefined);
|
||||
if (alignment != null) {
|
||||
object2 = {};
|
||||
object2.alignment = (require(3934) /* metro dependency 3934: RiveTypes */).ALIGNMENT_MAP[alignment];
|
||||
r14 = object2;
|
||||
} else {
|
||||
r14 = {};
|
||||
}
|
||||
copyDataProperties(riveViewProps, r14, undefined);
|
||||
r14 = r16 != null ? {layoutScaleFactor: r16} : {};
|
||||
copyDataProperties(riveViewProps, r14, undefined);
|
||||
r5 = <RiveView {...riveViewProps} />;
|
||||
} else {
|
||||
r5 = value16;
|
||||
}
|
||||
const items3 = [r5];
|
||||
items3[1] = renderDataBinding?.({instance: instance ?? null, file: riveFile ?? null, reducedMotionEnabled: enabled,
|
||||
playIfNeeded: playIfNeeded});
|
||||
return (
|
||||
<View style={items2}>
|
||||
{items3}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function useNumberBinding(a0, a1, a2, a3, a4) { // fn#32063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2097, offset: 0x0100b6b3, size: 125 bytes, params: 6, frame: 19
|
||||
const env0_0 = a2;
|
||||
const env0_1 = a4;
|
||||
const value2 = (require(3886) /* metro dependency 3886 */).useRiveNumber(a0, a1);
|
||||
const setValue = value2.setValue;
|
||||
const env0_2 = setValue;
|
||||
const value3 = value2.value;
|
||||
env0_2.useEffect(_fun32064, [a2, setValue, a4]);
|
||||
useObservedValue(value3, a3);
|
||||
}
|
||||
|
||||
function useStringBinding(a0, a1, a2, a3, a4) { // fn#32065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2439, offset: 0x0100b7cc, size: 125 bytes, params: 6, frame: 19
|
||||
const env0_0 = a2;
|
||||
const env0_1 = a4;
|
||||
const value2 = (require(3886) /* metro dependency 3886 */).useRiveString(a0, a1);
|
||||
const setValue = value2.setValue;
|
||||
const env0_2 = setValue;
|
||||
const value3 = value2.value;
|
||||
env0_2.useEffect(_fun32066, [a2, setValue, a4]);
|
||||
useObservedValue(value3, a3);
|
||||
}
|
||||
|
||||
function useBooleanBinding(a0, a1, a2, a3, a4) { // fn#32067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2644, offset: 0x0100b882, size: 125 bytes, params: 6, frame: 19
|
||||
const env0_0 = a2;
|
||||
const env0_1 = a4;
|
||||
const value2 = (require(3886) /* metro dependency 3886 */).useRiveBoolean(a0, a1);
|
||||
const setValue = value2.setValue;
|
||||
const env0_2 = setValue;
|
||||
const value3 = value2.value;
|
||||
env0_2.useEffect(_fun32068, [a2, setValue, a4]);
|
||||
useObservedValue(value3, a3);
|
||||
}
|
||||
|
||||
function useColorBinding(a0, a1, a2, a3, a4) { // fn#32069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2847, offset: 0x0100b93c, size: 197 bytes, params: 6, frame: 20
|
||||
const env0_0 = a2;
|
||||
const env0_1 = a3;
|
||||
const env0_2 = a4;
|
||||
const value2 = (require(3886) /* metro dependency 3886 */).useRiveColor(a0, a1);
|
||||
const setValue = value2.setValue;
|
||||
const value3 = value2.value;
|
||||
env0_2.useEffect(_fun32070, [a2, setValue, a4]);
|
||||
const env0_5 = env0_2.useRef(a3);
|
||||
env0_2.useEffect(_fun32071, [a3]);
|
||||
env0_2.useEffect(_fun32072, [value3]);
|
||||
}
|
||||
|
||||
function useEnumBinding(a0, a1, a2, a3, a4) { // fn#32073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3154, offset: 0x0100ba74, size: 125 bytes, params: 6, frame: 19
|
||||
const env0_0 = a2;
|
||||
const env0_1 = a4;
|
||||
const value2 = (require(3886) /* metro dependency 3886 */).useRiveEnum(a0, a1);
|
||||
const setValue = value2.setValue;
|
||||
const env0_2 = setValue;
|
||||
const value3 = value2.value;
|
||||
env0_2.useEffect(_fun32074, [a2, setValue, a4]);
|
||||
useObservedValue(value3, a3);
|
||||
}
|
||||
|
||||
function useTriggerBinding(a0, a1, a2, a3, a4) { // fn#32075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3355, offset: 0x0100baf1, size: 132 bytes, params: 6, frame: 20
|
||||
const env0_0 = a2;
|
||||
const env0_1 = a4;
|
||||
const value2 = undefined;
|
||||
const moduleValue = require(3886) /* metro dependency 3886 */;
|
||||
const useRiveTrigger = moduleValue.useRiveTrigger;
|
||||
const trigger = Reflect.apply(useRiveTrigger, moduleValue, [a0, a1, a3 != null ? {onTrigger: a3} : value2]).trigger;
|
||||
trigger.useEffect(_fun32076, [a2, trigger, a4]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function useImageBinding(a0, a1, a2, a3, a4) { // fn#32077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3571, offset: 0x0100bbc7, size: 162 bytes, params: 6, frame: 20
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const env0_3 = a3;
|
||||
const env0_4 = a4;
|
||||
env0_2.useEffect(_fun32078, [a0, a1, a2, a4]);
|
||||
const env0_5 = env0_2.useRef(a3);
|
||||
env0_2.useEffect(_fun32082, [a3]);
|
||||
env0_2.useEffect(_fun32083, [a0, a1]);
|
||||
}
|
||||
|
||||
function useArtboardBinding(a0, a1, a2, a3, a4) { // fn#32085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:4129, offset: 0x0100bdc2, size: 88 bytes, params: 6, frame: 18
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const env0_3 = a3;
|
||||
const env0_4 = a4;
|
||||
env0_2.useEffect(_fun32086, [a0, a1, a2, a3, a4]);
|
||||
}
|
||||
|
||||
function _fun32059() { // fn#32059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:1903, offset: 0x0100b246, size: 48 bytes, params: 1, frame: 12
|
||||
if (env0_0 !== undefined) {
|
||||
if (env0_2.current != null) {
|
||||
env0_2.current(env0_0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun32064() { // fn#32064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2203, offset: 0x0100b730, size: 156 bytes, params: 1, frame: 19
|
||||
if (importDefault != null) {
|
||||
setValue(typeof importDefault !== 'number' || global.Number.isNaN(importDefault) ? global.Number.isNaN(global.parseFloat(importDefault.toString())) ? 0 : global.parseFloat(importDefault.toString()) : importDefault);
|
||||
if (env0_1 != null) {
|
||||
env0_1();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun32066() { // fn#32066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2545, offset: 0x0100b849, size: 57 bytes, params: 1, frame: 13
|
||||
if (importDefault != null) {
|
||||
setValue(importDefault.toString());
|
||||
if (env0_1 != null) {
|
||||
env0_1();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun32068() { // fn#32068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2752, offset: 0x0100b8ff, size: 61 bytes, params: 1, frame: 14
|
||||
if (importDefault != null) {
|
||||
setValue(global.Boolean(importDefault));
|
||||
if (env0_1 != null) {
|
||||
env0_1();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun32070() { // fn#32070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2951, offset: 0x0100ba01, size: 57 bytes, params: 1, frame: 13
|
||||
if (importDefault != null) {
|
||||
setValue(importDefault.toString());
|
||||
if (env0_2 != null) {
|
||||
env0_2();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun32072() { // fn#32072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3075, offset: 0x0100ba3a, size: 58 bytes, params: 1, frame: 12
|
||||
var current;
|
||||
var binding;
|
||||
let valueBinding = value;
|
||||
if (valueBinding != null) {
|
||||
current = env0_5.current;
|
||||
if (current != null) {
|
||||
binding = env0_5;
|
||||
current = binding.current;
|
||||
valueBinding = value;
|
||||
Reflect.apply(current, binding, [valueBinding.toInt()]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun32076() { // fn#32076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3477, offset: 0x0100bb75, size: 82 bytes, params: 1, frame: 11
|
||||
if (typeof importDefault === 'boolean' ? importDefault : importDefault !== 0 && importDefault != null) {
|
||||
trigger();
|
||||
if (env0_1 != null) {
|
||||
env0_1();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun32078() { // fn#32078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3620, offset: 0x0100bc69, size: 153 bytes, params: 1, frame: 16
|
||||
var environment;
|
||||
var value2;
|
||||
var RiveImages;
|
||||
var value;
|
||||
if (require != null) {
|
||||
if (importDefault != null) {
|
||||
value2 = environment.__proto__;
|
||||
RiveImages = (require(3886) /* metro dependency 3886 */).RiveImages;
|
||||
value = RiveImages.loadFromURLAsync(typeof importDefault !== 'number' ? importDefault : Image.resolveAssetSource(importDefault).uri);
|
||||
value = value.then(_fun32079);
|
||||
value.catch(function() {
|
||||
});
|
||||
return _fun32081;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun32083() { // fn#32083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3981, offset: 0x0100bd60, size: 60 bytes, params: 1, frame: 12
|
||||
var value;
|
||||
if (require != null) {
|
||||
value = require.imageProperty(env0_0);
|
||||
if (value != null) {
|
||||
return value.addListener(_fun32084);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun32086() { // fn#32086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:4181, offset: 0x0100be1a, size: 124 bytes, params: 1, frame: 16
|
||||
var artboardProperty;
|
||||
var binding;
|
||||
var value2;
|
||||
var value3;
|
||||
var set;
|
||||
var bindableArtboard;
|
||||
var value5;
|
||||
var error;
|
||||
if (require != null) {
|
||||
if (importDefault != null) {
|
||||
if (typeof importAll === 'string') {
|
||||
try {
|
||||
artboardProperty = require.artboardProperty;
|
||||
binding = env0_0;
|
||||
value2 = Reflect.apply(artboardProperty, require, [binding]);
|
||||
value3 = value2 == null;
|
||||
if (!value3) {
|
||||
set = value2.set;
|
||||
bindableArtboard = importDefault.getBindableArtboard(importAll);
|
||||
Reflect.apply(set, value2, [bindableArtboard]);
|
||||
}
|
||||
binding = env0_4;
|
||||
value5 = binding == null;
|
||||
if (!value5) {
|
||||
binding = env0_4;
|
||||
binding();
|
||||
}
|
||||
} catch (error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun32079(a0) { // fn#32079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3802, offset: 0x0100bd02, size: 73 bytes, params: 2, frame: 13
|
||||
var value2;
|
||||
if (!env0_0) {
|
||||
value = environment.__proto__;
|
||||
value2 = require.imageProperty(env1_0);
|
||||
if (value2 != null) {
|
||||
value2.set(a0);
|
||||
}
|
||||
if (env1_4 != null) {
|
||||
env1_4();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun32084() { // fn#32084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:4056, offset: 0x0100bd9c, size: 38 bytes, params: 1, frame: 10
|
||||
const value = environment.__proto__;
|
||||
return env1_5.current?.();
|
||||
}
|
||||
|
||||
Vendored
+88
@@ -0,0 +1,88 @@
|
||||
/* Metro module 3936; source: ../discord_common/js/packages/design/components/Rive/native/RiveErrorBoundary.tsx; dependencies: [6, 7, 15, 17, 18, 31, 3932, 2] */
|
||||
function _fun32305(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4085:6, offset: 0x01011247, size: 227 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const Component = (importAll(31) /* metro dependency 31 */).Component;
|
||||
const value = _fun32309(Component);
|
||||
const ManaContext = (require(3932) /* metro dependency 3932: ManaContextNative */).ManaContext;
|
||||
value.contextType = ManaContext;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/RiveErrorBoundary.tsx');
|
||||
exports.RiveErrorBoundary = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_32306() { // fn#32306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4085:148, offset: 0x0101132a, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_32306_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun32309(a0) { // fn#32309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4085:347, offset: 0x01011388, size: 119 bytes, params: 2, frame: 17
|
||||
const closure = RiveErrorBoundary;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'componentDidCatch', value: function(a0) {
|
||||
var context = this.context;
|
||||
var captureException = context.captureException;
|
||||
if (captureException != null) {
|
||||
captureException.call(context, a0, {rive_render_failed: 'true'});
|
||||
}
|
||||
}}, {key: 'render', value: function() {
|
||||
var property = this.state.hasError;
|
||||
var props = this.props;
|
||||
return property ? props.fallback ?? null : props.children;
|
||||
}}], [{key: 'getDerivedStateFromError', value: function() {
|
||||
return {hasError: true};
|
||||
}}]);
|
||||
}
|
||||
|
||||
function RiveErrorBoundary(a0) { // fn#32310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4085:359, offset: 0x010113ff, size: 141 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_0;
|
||||
binding(this, RiveErrorBoundary);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_3(RiveErrorBoundary);
|
||||
binding = env1_2;
|
||||
if (_isNativeReflectConstruct_32306()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items, env1_3(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.state = {hasError: false};
|
||||
return value;
|
||||
}
|
||||
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
/* Metro module 3934; source: ../discord_common/js/packages/design/components/Rive/native/RiveTypes.tsx; dependencies: [3886, 2] */
|
||||
function _fun32303(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4083:6, offset: 0x01010fbf, size: 545 bytes, params: 8, frame: 18
|
||||
var object3;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object3 = {};
|
||||
const Fit = (require(3886) /* metro dependency 3886 */).Fit;
|
||||
const Fill = Fit.Fill;
|
||||
object3.fill = Fill;
|
||||
const Contain = Fit.Contain;
|
||||
object3.contain = Contain;
|
||||
const Cover = Fit.Cover;
|
||||
object3.cover = Cover;
|
||||
const FitWidth = Fit.FitWidth;
|
||||
object3['fit-width'] = FitWidth;
|
||||
const FitHeight = Fit.FitHeight;
|
||||
object3['fit-height'] = FitHeight;
|
||||
const None = Fit.None;
|
||||
object3.none = None;
|
||||
const ScaleDown = Fit.ScaleDown;
|
||||
object3['scale-down'] = ScaleDown;
|
||||
const Layout = Fit.Layout;
|
||||
object3.layout = Layout;
|
||||
const object4 = {};
|
||||
const Alignment = (require(3886) /* metro dependency 3886 */).Alignment;
|
||||
const TopLeft = Alignment.TopLeft;
|
||||
object4['top-left'] = TopLeft;
|
||||
const TopCenter = Alignment.TopCenter;
|
||||
object4['top-center'] = TopCenter;
|
||||
const TopRight = Alignment.TopRight;
|
||||
object4['top-right'] = TopRight;
|
||||
const CenterLeft = Alignment.CenterLeft;
|
||||
object4['center-left'] = CenterLeft;
|
||||
const Center = Alignment.Center;
|
||||
object4.center = Center;
|
||||
const CenterRight = Alignment.CenterRight;
|
||||
object4['center-right'] = CenterRight;
|
||||
const BottomLeft = Alignment.BottomLeft;
|
||||
object4['bottom-left'] = BottomLeft;
|
||||
const BottomCenter = Alignment.BottomCenter;
|
||||
object4['bottom-center'] = BottomCenter;
|
||||
const BottomRight = Alignment.BottomRight;
|
||||
object4['bottom-right'] = BottomRight;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/RiveTypes.tsx');
|
||||
exports.FIT_MAP = object3;
|
||||
exports.ALIGNMENT_MAP = object4;
|
||||
}
|
||||
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
/* Metro module 3884; source: ../discord_common/js/packages/design/components/Rive/native/generated/BoostThisServerRive.tsx; dependencies: [29, 31, 33, 3885, 3935, 3936, 2] */
|
||||
function _fun32049(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4023:6, offset: 0x0100ad16, size: 366 bytes, params: 8, frame: 20
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
|
||||
'onDataBindingChange'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object2 = {};
|
||||
object2['Boost Server'] = {reducedMotion: 'boolean'};
|
||||
object2['Boost Crystal'] = {reducedMotion: 'boolean'};
|
||||
object2['Crystal Side B'] = {};
|
||||
object2['Crystal Side A'] = {};
|
||||
object2['Boost Saved'] = {reducedMotion: 'boolean'};
|
||||
object2 = {};
|
||||
object2['Boost Server'] = ['Instance'];
|
||||
object2['Boost Crystal'] = ['Instance'];
|
||||
object2['Crystal Side B'] = [];
|
||||
object2['Crystal Side A'] = [];
|
||||
object2['Boost Saved'] = ['Instance'];
|
||||
object2 = {};
|
||||
object2['Boost Server'] = BoostServerBindings;
|
||||
object2['Boost Crystal'] = BoostCrystalBindings;
|
||||
object2['Boost Saved'] = BoostSavedBindings;
|
||||
const env0_10 = value.forwardRef(BoostThisServerRiveInner);
|
||||
value = value.forwardRef(BoostThisServerRiveWithBoundary);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/BoostThisServerRive.tsx');
|
||||
exports.BoostThisServerRive = value;
|
||||
}
|
||||
|
||||
function BoostThisServerRiveInner(a0, a1) { // fn#32053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4023:1056, offset: 0x0100aec9, size: 248 bytes, params: 3, frame: 22
|
||||
a0.fallback;
|
||||
const artboard = a0.artboard;
|
||||
const r9 = artboard === undefined ? 'Boost Server' : artboard;
|
||||
const stateMachine = a0.stateMachine;
|
||||
const defaultViewModelInstance = a0.defaultViewModelInstance;
|
||||
const r7 = defaultViewModelInstance === undefined ? 'Instance' : defaultViewModelInstance;
|
||||
const dataBinding = a0.dataBinding;
|
||||
const onDataBindingChange = a0.onDataBindingChange;
|
||||
const value2 = env0_4(a0, env0_3);
|
||||
const value3 = env0_5.useCallback(_fun32054, [r9, dataBinding, onDataBindingChange]);
|
||||
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
|
||||
return (
|
||||
<BaseRive
|
||||
ref={a1}
|
||||
src={importDefault(3935) /* metro dependency 3935: BoostThisServerRiv */}
|
||||
artboard={r9}
|
||||
artboardProperties={env0_7}
|
||||
artboardViewModelInstances={env0_8}
|
||||
defaultViewModelInstance={r7}
|
||||
stateMachine={stateMachine}
|
||||
renderDataBinding={value3}
|
||||
{...value2}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
/* Metro module 3937; source: ../discord_common/js/packages/design/components/Rive/native/generated/BountiesScrollGradientRive.tsx; dependencies: [29, 31, 33, 3885, 3938, 3936, 2] */
|
||||
function _fun32314(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4086:6, offset: 0x010114ff, size: 225 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
({})['Bounty Scroll Gradient'] = {};
|
||||
({})['Bounty Scroll Gradient'] = [];
|
||||
const env0_8 = value.forwardRef(BountiesScrollGradientRiveInner);
|
||||
value = value.forwardRef(BountiesScrollGradientRiveWithBoundary);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/BountiesScrollGradientRive.tsx');
|
||||
exports.BountiesScrollGradientRive = value;
|
||||
}
|
||||
|
||||
function BountiesScrollGradientRiveInner(a0, a1) { // fn#32315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4086:286, offset: 0x010115e0, size: 174 bytes, params: 3, frame: 21
|
||||
a0.fallback;
|
||||
const artboard = a0.artboard;
|
||||
const value = 'Bounty Scroll Gradient';
|
||||
const value2 = undefined;
|
||||
const r8 = value2 === artboard ? value : artboard;
|
||||
const stateMachine = a0.stateMachine;
|
||||
const defaultViewModelInstance = a0.defaultViewModelInstance;
|
||||
const r6 = value2 === defaultViewModelInstance ? value2 : defaultViewModelInstance;
|
||||
const value3 = env0_4(a0, env0_3);
|
||||
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
|
||||
return (
|
||||
<BaseRive
|
||||
ref={a1}
|
||||
src={importDefault(3938) /* metro dependency 3938: BountiesScrollGradientRiv */}
|
||||
artboard={r8}
|
||||
artboardProperties={env0_6}
|
||||
artboardViewModelInstances={env0_7}
|
||||
defaultViewModelInstance={r6}
|
||||
stateMachine={stateMachine}
|
||||
{...value3}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Vendored
+51
@@ -0,0 +1,51 @@
|
||||
/* Metro module 3939; source: ../discord_common/js/packages/design/components/Rive/native/generated/CameraRive.tsx; dependencies: [29, 31, 33, 3885, 3940, 3936, 2] */
|
||||
function _fun32318(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4088:6, offset: 0x01011751, size: 279 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
|
||||
'onDataBindingChange'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object2 = {};
|
||||
object2['Icon Camera'] = {'reducedMotion': 'boolean', 'fill': 'color', 'on': 'boolean'};
|
||||
object2['Animation Main'] = {};
|
||||
object2 = {};
|
||||
object2['Icon Camera'] = ['CamOff', 'CamOn'];
|
||||
object2['Animation Main'] = [];
|
||||
({})['Icon Camera'] = IconCameraBindings;
|
||||
const env0_10 = value.forwardRef(CameraRiveInner);
|
||||
value = value.forwardRef(CameraRiveWithBoundary);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/CameraRive.tsx');
|
||||
exports.CameraRive = value;
|
||||
}
|
||||
|
||||
function CameraRiveInner(a0, a1) { // fn#32320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4088:780, offset: 0x0101194f, size: 248 bytes, params: 3, frame: 22
|
||||
a0.fallback;
|
||||
const artboard = a0.artboard;
|
||||
const r9 = artboard === undefined ? 'Icon Camera' : artboard;
|
||||
const stateMachine = a0.stateMachine;
|
||||
const defaultViewModelInstance = a0.defaultViewModelInstance;
|
||||
const r7 = defaultViewModelInstance === undefined ? 'CamOff' : defaultViewModelInstance;
|
||||
const dataBinding = a0.dataBinding;
|
||||
const onDataBindingChange = a0.onDataBindingChange;
|
||||
const value2 = env0_4(a0, env0_3);
|
||||
const value3 = env0_5.useCallback(_fun32321, [r9, dataBinding, onDataBindingChange]);
|
||||
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
|
||||
return (
|
||||
<BaseRive
|
||||
ref={a1}
|
||||
src={importDefault(3940) /* metro dependency 3940: CameraRiv */}
|
||||
artboard={r9}
|
||||
artboardProperties={env0_7}
|
||||
artboardViewModelInstances={env0_8}
|
||||
defaultViewModelInstance={r7}
|
||||
stateMachine={stateMachine}
|
||||
renderDataBinding={value3}
|
||||
{...value2}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
+215
@@ -0,0 +1,215 @@
|
||||
/* Metro module 3941; source: ../discord_common/js/packages/design/components/Rive/native/generated/CheckpointCardRive.tsx; dependencies: [29, 31, 33, 3885, 3942, 3936, 2] */
|
||||
function _fun32324(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:6, offset: 0x01011aae, size: 1029 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
|
||||
'onDataBindingChange'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object2 = {Main: {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
|
||||
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
|
||||
'Outof': 'string', 'FillColor': 'color'}, Cassette: {'reducedMotion': 'boolean', 'Icon': 'artboard',
|
||||
'Illustration': 'artboard', 'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string',
|
||||
'PersonaName': 'string', 'id#': 'string', 'Outof': 'string', 'FillColor': 'color'}};
|
||||
object2['Cassette Icon'] = {};
|
||||
object2.Cat = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
|
||||
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
|
||||
'Outof': 'string', 'FillColor': 'color'};
|
||||
object2['Cat Icon'] = {};
|
||||
object2.Banana = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
|
||||
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
|
||||
'Outof': 'string', 'FillColor': 'color'};
|
||||
object2['Banana Icon'] = {};
|
||||
object2['Duck Icon'] = {};
|
||||
object2.Duck = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
|
||||
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
|
||||
'Outof': 'string', 'FillColor': 'color'};
|
||||
object2['Snail Icon'] = {};
|
||||
object2.Snail = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
|
||||
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
|
||||
'Outof': 'string', 'FillColor': 'color'};
|
||||
object2['Origami Icon'] = {};
|
||||
object2.Origami = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
|
||||
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
|
||||
'Outof': 'string', 'FillColor': 'color'};
|
||||
object2['Disco Icon'] = {};
|
||||
object2.Disco = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
|
||||
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
|
||||
'Outof': 'string', 'FillColor': 'color'};
|
||||
object2.Capybara = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
|
||||
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
|
||||
'Outof': 'string', 'FillColor': 'color'};
|
||||
object2['Capybara Icon'] = {};
|
||||
object2.Donut = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
|
||||
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
|
||||
'Outof': 'string', 'FillColor': 'color'};
|
||||
object2['Donut Icon'] = {};
|
||||
object2['Bonsai Icon'] = {};
|
||||
object2.Bonsai = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
|
||||
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
|
||||
'Outof': 'string', 'FillColor': 'color'};
|
||||
object2['Globe Single Line'] = {};
|
||||
object2['Card Back'] = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
|
||||
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
|
||||
'Outof': 'string', 'FillColor': 'color'};
|
||||
object2.Knickknack = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
|
||||
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
|
||||
'Outof': 'string', 'FillColor': 'color'};
|
||||
object2.Globe = {};
|
||||
object2.Card = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
|
||||
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
|
||||
'Outof': 'string', 'FillColor': 'color'};
|
||||
object2 = {Main: ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
|
||||
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
|
||||
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
|
||||
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'], Cassette: ['Bonsai', 'Cassette-reducedMotion',
|
||||
'Cat-reducedMotion', 'Banana-reducedMotion', 'Duck-reducedMotion', 'Snail-reducedMotion',
|
||||
'Origami-reducedMotion', 'Disco-reducedMotion', 'Capybara-reducedMotion', 'Donut-reducedMotion',
|
||||
'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco', 'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette']};
|
||||
object2['Cassette Icon'] = [];
|
||||
object2.Cat = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
|
||||
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
|
||||
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
|
||||
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
|
||||
object2['Cat Icon'] = [];
|
||||
object2.Banana = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
|
||||
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
|
||||
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
|
||||
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
|
||||
object2['Banana Icon'] = [];
|
||||
object2['Duck Icon'] = [];
|
||||
object2.Duck = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
|
||||
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
|
||||
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
|
||||
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
|
||||
object2['Snail Icon'] = [];
|
||||
object2.Snail = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
|
||||
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
|
||||
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
|
||||
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
|
||||
object2['Origami Icon'] = [];
|
||||
object2.Origami = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
|
||||
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
|
||||
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
|
||||
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
|
||||
object2['Disco Icon'] = [];
|
||||
object2.Disco = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
|
||||
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
|
||||
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
|
||||
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
|
||||
object2.Capybara = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
|
||||
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
|
||||
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
|
||||
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
|
||||
object2['Capybara Icon'] = [];
|
||||
object2.Donut = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
|
||||
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
|
||||
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
|
||||
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
|
||||
object2['Donut Icon'] = [];
|
||||
object2['Bonsai Icon'] = [];
|
||||
object2.Bonsai = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
|
||||
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
|
||||
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
|
||||
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
|
||||
object2['Globe Single Line'] = [];
|
||||
object2['Card Back'] = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
|
||||
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
|
||||
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
|
||||
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
|
||||
object2.Knickknack = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
|
||||
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
|
||||
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
|
||||
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
|
||||
object2.Globe = [];
|
||||
object2.Card = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
|
||||
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
|
||||
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
|
||||
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
|
||||
object2 = {Main: Main, Cassette: Cassette, Cat: Cat, Banana: Banana, Duck: Duck, Snail: Snail, Origami: Origami,
|
||||
Disco: Disco, Capybara: Capybara, Donut: Donut, Bonsai: Bonsai};
|
||||
object2['Card Back'] = CardBackBindings;
|
||||
object2.Knickknack = Knickknack;
|
||||
object2.Card = Card;
|
||||
const env0_10 = value.forwardRef(CheckpointCardRiveInner);
|
||||
value = value.forwardRef(CheckpointCardRiveWithBoundary);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/CheckpointCardRive.tsx');
|
||||
exports.CheckpointCardRive = value;
|
||||
}
|
||||
|
||||
function Main({instance, reducedMotionEnabled, file, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:7968, offset: 0x01011eb3, size: 738 bytes, params: 2, frame: 26
|
||||
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
|
||||
reducedMotionEnabled, undefined, playIfNeeded);
|
||||
const baseRiveModule = require(3885) /* metro dependency 3885: BaseRive */;
|
||||
let useArtboardBinding = baseRiveModule.useArtboardBinding;
|
||||
const Icon = dataBinding?.Icon;
|
||||
Reflect.apply(useArtboardBinding, baseRiveModule, ['Icon', instance, file, Icon, playIfNeeded]);
|
||||
const moduleValue3 = baseRiveModule;
|
||||
useArtboardBinding = moduleValue3.useArtboardBinding;
|
||||
const Illustration = dataBinding?.Illustration;
|
||||
Reflect.apply(useArtboardBinding, moduleValue3, ['Illustration', instance, file, Illustration, playIfNeeded]);
|
||||
const moduleValue4 = baseRiveModule;
|
||||
let useNumberBinding = moduleValue4.useNumberBinding;
|
||||
const AnimationState = dataBinding?.AnimationState;
|
||||
const AnimationState2 = onDataBindingChange?.AnimationState;
|
||||
Reflect.apply(useNumberBinding, moduleValue4, ['AnimationState', instance, AnimationState, AnimationState2,
|
||||
playIfNeeded]);
|
||||
const moduleValue5 = baseRiveModule;
|
||||
useNumberBinding = moduleValue5.useNumberBinding;
|
||||
const PowerMeter = dataBinding?.PowerMeter;
|
||||
const PowerMeter2 = onDataBindingChange?.PowerMeter;
|
||||
Reflect.apply(useNumberBinding, moduleValue5, ['PowerMeter', instance, PowerMeter, PowerMeter2, playIfNeeded]);
|
||||
const moduleValue6 = baseRiveModule;
|
||||
let useStringBinding = moduleValue6.useStringBinding;
|
||||
const LVL = dataBinding?.LVL;
|
||||
const LVL2 = onDataBindingChange?.LVL;
|
||||
Reflect.apply(useStringBinding, moduleValue6, ['LVL', instance, LVL, LVL2, playIfNeeded]);
|
||||
const moduleValue7 = baseRiveModule;
|
||||
useStringBinding = moduleValue7.useStringBinding;
|
||||
const PersonaName = dataBinding?.PersonaName;
|
||||
const PersonaName2 = onDataBindingChange?.PersonaName;
|
||||
Reflect.apply(useStringBinding, moduleValue7, ['PersonaName', instance, PersonaName, PersonaName2, playIfNeeded]);
|
||||
baseRiveModule.useStringBinding('id#', instance, dataBinding?.['id#'], onDataBindingChange?.['id#'], playIfNeeded);
|
||||
const moduleValue9 = baseRiveModule;
|
||||
useStringBinding = moduleValue9.useStringBinding;
|
||||
const Outof = dataBinding?.Outof;
|
||||
const Outof2 = onDataBindingChange?.Outof;
|
||||
Reflect.apply(useStringBinding, moduleValue9, ['Outof', instance, Outof, Outof2, playIfNeeded]);
|
||||
const value = baseRiveModule;
|
||||
const useColorBinding = value.useColorBinding;
|
||||
const FillColor = dataBinding?.FillColor;
|
||||
const FillColor2 = onDataBindingChange?.FillColor;
|
||||
Reflect.apply(useColorBinding, value, ['FillColor', instance, FillColor, FillColor2, playIfNeeded]);
|
||||
return null;
|
||||
}
|
||||
|
||||
function CheckpointCardRiveInner(a0, a1) { // fn#32339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:22013, offset: 0x01012195, size: 246 bytes, params: 3, frame: 22
|
||||
a0.fallback;
|
||||
const artboard = a0.artboard;
|
||||
const r9 = artboard === undefined ? 'Main' : artboard;
|
||||
const stateMachine = a0.stateMachine;
|
||||
const defaultViewModelInstance = a0.defaultViewModelInstance;
|
||||
const r7 = defaultViewModelInstance === undefined ? 'Bonsai' : defaultViewModelInstance;
|
||||
const dataBinding = a0.dataBinding;
|
||||
const onDataBindingChange = a0.onDataBindingChange;
|
||||
const value2 = env0_4(a0, env0_3);
|
||||
const value3 = env0_5.useCallback(_fun32340, [r9, dataBinding, onDataBindingChange]);
|
||||
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
|
||||
return (
|
||||
<BaseRive
|
||||
ref={a1}
|
||||
src={importDefault(3942) /* metro dependency 3942: CheckpointCardRiv */}
|
||||
artboard={r9}
|
||||
artboardProperties={env0_7}
|
||||
artboardViewModelInstances={env0_8}
|
||||
defaultViewModelInstance={r7}
|
||||
stateMachine={stateMachine}
|
||||
renderDataBinding={value3}
|
||||
{...value2}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
+230
@@ -0,0 +1,230 @@
|
||||
/* Metro module 3943; source: ../discord_common/js/packages/design/components/Rive/native/generated/CheckpointFriendsRive.tsx; dependencies: [29, 31, 33, 3885, 3944, 3936, 2] */
|
||||
function _fun32343(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4092:6, offset: 0x010122f2, size: 441 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
|
||||
'onDataBindingChange'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
({MAIN: {'reducedMotion': 'boolean', 'twoFriends': 'boolean', 'AnimationState': 'number',
|
||||
'Avatar01/ShadowVisibility': 'number', 'Avatar01/StrokeVisibility': 'number',
|
||||
'Avatar01/UsernameVisibility': 'number', 'Avatar01/Stroke': 'color', 'Avatar01/Fill': 'color',
|
||||
'Avatar01/Username': 'string', 'Avatar01/img': 'image', 'Avatar02/ShadowVisibility': 'number',
|
||||
'Avatar02/StrokeVisibility': 'number', 'Avatar02/UsernameVisibility': 'number', 'Avatar02/Stroke': 'color',
|
||||
'Avatar02/Fill': 'color', 'Avatar02/Username': 'string', 'Avatar02/img': 'image',
|
||||
'Avatar03/ShadowVisibility': 'number', 'Avatar03/StrokeVisibility': 'number',
|
||||
'Avatar03/UsernameVisibility': 'number', 'Avatar03/Stroke': 'color', 'Avatar03/Fill': 'color',
|
||||
'Avatar03/Username': 'string', 'Avatar03/img': 'image', 'Avatar04/ShadowVisibility': 'number',
|
||||
'Avatar04/StrokeVisibility': 'number', 'Avatar04/UsernameVisibility': 'number', 'Avatar04/Stroke': 'color',
|
||||
'Avatar04/Fill': 'color', 'Avatar04/Username': 'string', 'Avatar04/img': 'image',
|
||||
'Avatar05/ShadowVisibility': 'number', 'Avatar05/StrokeVisibility': 'number',
|
||||
'Avatar05/UsernameVisibility': 'number', 'Avatar05/Stroke': 'color', 'Avatar05/Fill': 'color',
|
||||
'Avatar05/Username': 'string', 'Avatar05/img': 'image', 'ConnectorColor': 'color'},
|
||||
Sidekick: {'reducedMotion': 'boolean', 'twoFriends': 'boolean', 'AnimationState': 'number',
|
||||
'Avatar01/ShadowVisibility': 'number', 'Avatar01/StrokeVisibility': 'number',
|
||||
'Avatar01/UsernameVisibility': 'number', 'Avatar01/Stroke': 'color', 'Avatar01/Fill': 'color',
|
||||
'Avatar01/Username': 'string', 'Avatar01/img': 'image', 'Avatar02/ShadowVisibility': 'number',
|
||||
'Avatar02/StrokeVisibility': 'number', 'Avatar02/UsernameVisibility': 'number', 'Avatar02/Stroke': 'color',
|
||||
'Avatar02/Fill': 'color', 'Avatar02/Username': 'string', 'Avatar02/img': 'image',
|
||||
'Avatar03/ShadowVisibility': 'number', 'Avatar03/StrokeVisibility': 'number',
|
||||
'Avatar03/UsernameVisibility': 'number', 'Avatar03/Stroke': 'color', 'Avatar03/Fill': 'color',
|
||||
'Avatar03/Username': 'string', 'Avatar03/img': 'image', 'Avatar04/ShadowVisibility': 'number',
|
||||
'Avatar04/StrokeVisibility': 'number', 'Avatar04/UsernameVisibility': 'number', 'Avatar04/Stroke': 'color',
|
||||
'Avatar04/Fill': 'color', 'Avatar04/Username': 'string', 'Avatar04/img': 'image',
|
||||
'Avatar05/ShadowVisibility': 'number', 'Avatar05/StrokeVisibility': 'number',
|
||||
'Avatar05/UsernameVisibility': 'number', 'Avatar05/Stroke': 'color', 'Avatar05/Fill': 'color',
|
||||
'Avatar05/Username': 'string', 'Avatar05/img': 'image', 'ConnectorColor': 'color'},
|
||||
Avatar: {'ShadowVisibility': 'number', 'StrokeVisibility': 'number', 'UsernameVisibility': 'number',
|
||||
'Stroke': 'color', 'Fill': 'color', 'Username': 'string', 'img': 'image'},
|
||||
Username: {'ShadowVisibility': 'number', 'StrokeVisibility': 'number', 'UsernameVisibility': 'number',
|
||||
'Stroke': 'color', 'Fill': 'color', 'Username': 'string',
|
||||
'img': 'image'}})['Friends 01 Rotation'] = {'reducedMotion': 'boolean', 'twoFriends': 'boolean',
|
||||
'AnimationState': 'number', 'Avatar01/ShadowVisibility': 'number', 'Avatar01/StrokeVisibility': 'number',
|
||||
'Avatar01/UsernameVisibility': 'number', 'Avatar01/Stroke': 'color', 'Avatar01/Fill': 'color',
|
||||
'Avatar01/Username': 'string', 'Avatar01/img': 'image', 'Avatar02/ShadowVisibility': 'number',
|
||||
'Avatar02/StrokeVisibility': 'number', 'Avatar02/UsernameVisibility': 'number', 'Avatar02/Stroke': 'color',
|
||||
'Avatar02/Fill': 'color', 'Avatar02/Username': 'string', 'Avatar02/img': 'image',
|
||||
'Avatar03/ShadowVisibility': 'number', 'Avatar03/StrokeVisibility': 'number',
|
||||
'Avatar03/UsernameVisibility': 'number', 'Avatar03/Stroke': 'color', 'Avatar03/Fill': 'color',
|
||||
'Avatar03/Username': 'string', 'Avatar03/img': 'image', 'Avatar04/ShadowVisibility': 'number',
|
||||
'Avatar04/StrokeVisibility': 'number', 'Avatar04/UsernameVisibility': 'number', 'Avatar04/Stroke': 'color',
|
||||
'Avatar04/Fill': 'color', 'Avatar04/Username': 'string', 'Avatar04/img': 'image',
|
||||
'Avatar05/ShadowVisibility': 'number', 'Avatar05/StrokeVisibility': 'number',
|
||||
'Avatar05/UsernameVisibility': 'number', 'Avatar05/Stroke': 'color', 'Avatar05/Fill': 'color',
|
||||
'Avatar05/Username': 'string', 'Avatar05/img': 'image', 'ConnectorColor': 'color'};
|
||||
({MAIN: ['threeFriends', 'twoFriends-reducedMotion', 'threeFriends-reducedMotion', 'twoFriends'],
|
||||
Sidekick: ['threeFriends', 'twoFriends-reducedMotion', 'threeFriends-reducedMotion', 'twoFriends'],
|
||||
Avatar: ['Instance 03', 'Instance 05', 'Instance 04', 'Instance 02', 'Instance 01'], Username: ['Instance 03',
|
||||
'Instance 05', 'Instance 04', 'Instance 02', 'Instance 01']})['Friends 01 Rotation'] = ['threeFriends',
|
||||
'twoFriends-reducedMotion', 'threeFriends-reducedMotion', 'twoFriends'];
|
||||
({MAIN: MAIN, Sidekick: Sidekick, Avatar: Avatar,
|
||||
Username: Username})['Friends 01 Rotation'] = Friends01RotationBindings;
|
||||
const env0_10 = value.forwardRef(CheckpointFriendsRiveInner);
|
||||
value = value.forwardRef(CheckpointFriendsRiveWithBoundary);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/CheckpointFriendsRive.tsx');
|
||||
exports.CheckpointFriendsRive = value;
|
||||
}
|
||||
|
||||
function MAIN({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4092:4551, offset: 0x010124ab, size: 2967 bytes, params: 2, frame: 25
|
||||
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
|
||||
reducedMotionEnabled, undefined, playIfNeeded);
|
||||
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('twoFriends', instance,
|
||||
dataBinding?.twoFriends, onDataBindingChange?.twoFriends, playIfNeeded);
|
||||
const baseRiveModule = require(3885) /* metro dependency 3885: BaseRive */;
|
||||
const useNumberBinding = baseRiveModule.useNumberBinding;
|
||||
const AnimationState = dataBinding?.AnimationState;
|
||||
const AnimationState2 = onDataBindingChange?.AnimationState;
|
||||
Reflect.apply(useNumberBinding, baseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
|
||||
playIfNeeded]);
|
||||
baseRiveModule.useNumberBinding('Avatar01/ShadowVisibility', instance, dataBinding?.['Avatar01/ShadowVisibility'],
|
||||
onDataBindingChange?.['Avatar01/ShadowVisibility'], playIfNeeded);
|
||||
baseRiveModule.useNumberBinding('Avatar01/StrokeVisibility', instance, dataBinding?.['Avatar01/StrokeVisibility'],
|
||||
onDataBindingChange?.['Avatar01/StrokeVisibility'], playIfNeeded);
|
||||
baseRiveModule.useNumberBinding('Avatar01/UsernameVisibility', instance,
|
||||
dataBinding?.['Avatar01/UsernameVisibility'], onDataBindingChange?.['Avatar01/UsernameVisibility'],
|
||||
playIfNeeded);
|
||||
const moduleValue7 = baseRiveModule;
|
||||
let useColorBinding = moduleValue7.useColorBinding;
|
||||
Reflect.apply(useColorBinding, moduleValue7, ['Avatar01/Stroke', instance, dataBinding?.['Avatar01/Stroke'],
|
||||
onDataBindingChange?.['Avatar01/Stroke'], playIfNeeded]);
|
||||
baseRiveModule.useColorBinding('Avatar01/Fill', instance, dataBinding?.['Avatar01/Fill'],
|
||||
onDataBindingChange?.['Avatar01/Fill'], playIfNeeded);
|
||||
baseRiveModule.useStringBinding('Avatar01/Username', instance, dataBinding?.['Avatar01/Username'],
|
||||
onDataBindingChange?.['Avatar01/Username'], playIfNeeded);
|
||||
baseRiveModule.useImageBinding('Avatar01/img', instance, dataBinding?.['Avatar01/img'],
|
||||
onDataBindingChange?.['Avatar01/img'], playIfNeeded);
|
||||
baseRiveModule.useNumberBinding('Avatar02/ShadowVisibility', instance, dataBinding?.['Avatar02/ShadowVisibility'],
|
||||
onDataBindingChange?.['Avatar02/ShadowVisibility'], playIfNeeded);
|
||||
baseRiveModule.useNumberBinding('Avatar02/StrokeVisibility', instance, dataBinding?.['Avatar02/StrokeVisibility'],
|
||||
onDataBindingChange?.['Avatar02/StrokeVisibility'], playIfNeeded);
|
||||
baseRiveModule.useNumberBinding('Avatar02/UsernameVisibility', instance,
|
||||
dataBinding?.['Avatar02/UsernameVisibility'], onDataBindingChange?.['Avatar02/UsernameVisibility'],
|
||||
playIfNeeded);
|
||||
baseRiveModule.useColorBinding('Avatar02/Stroke', instance, dataBinding?.['Avatar02/Stroke'],
|
||||
onDataBindingChange?.['Avatar02/Stroke'], playIfNeeded);
|
||||
baseRiveModule.useColorBinding('Avatar02/Fill', instance, dataBinding?.['Avatar02/Fill'],
|
||||
onDataBindingChange?.['Avatar02/Fill'], playIfNeeded);
|
||||
baseRiveModule.useStringBinding('Avatar02/Username', instance, dataBinding?.['Avatar02/Username'],
|
||||
onDataBindingChange?.['Avatar02/Username'], playIfNeeded);
|
||||
baseRiveModule.useImageBinding('Avatar02/img', instance, dataBinding?.['Avatar02/img'],
|
||||
onDataBindingChange?.['Avatar02/img'], playIfNeeded);
|
||||
baseRiveModule.useNumberBinding('Avatar03/ShadowVisibility', instance, dataBinding?.['Avatar03/ShadowVisibility'],
|
||||
onDataBindingChange?.['Avatar03/ShadowVisibility'], playIfNeeded);
|
||||
baseRiveModule.useNumberBinding('Avatar03/StrokeVisibility', instance, dataBinding?.['Avatar03/StrokeVisibility'],
|
||||
onDataBindingChange?.['Avatar03/StrokeVisibility'], playIfNeeded);
|
||||
baseRiveModule.useNumberBinding('Avatar03/UsernameVisibility', instance,
|
||||
dataBinding?.['Avatar03/UsernameVisibility'], onDataBindingChange?.['Avatar03/UsernameVisibility'],
|
||||
playIfNeeded);
|
||||
baseRiveModule.useColorBinding('Avatar03/Stroke', instance, dataBinding?.['Avatar03/Stroke'],
|
||||
onDataBindingChange?.['Avatar03/Stroke'], playIfNeeded);
|
||||
baseRiveModule.useColorBinding('Avatar03/Fill', instance, dataBinding?.['Avatar03/Fill'],
|
||||
onDataBindingChange?.['Avatar03/Fill'], playIfNeeded);
|
||||
baseRiveModule.useStringBinding('Avatar03/Username', instance, dataBinding?.['Avatar03/Username'],
|
||||
onDataBindingChange?.['Avatar03/Username'], playIfNeeded);
|
||||
baseRiveModule.useImageBinding('Avatar03/img', instance, dataBinding?.['Avatar03/img'],
|
||||
onDataBindingChange?.['Avatar03/img'], playIfNeeded);
|
||||
baseRiveModule.useNumberBinding('Avatar04/ShadowVisibility', instance, dataBinding?.['Avatar04/ShadowVisibility'],
|
||||
onDataBindingChange?.['Avatar04/ShadowVisibility'], playIfNeeded);
|
||||
baseRiveModule.useNumberBinding('Avatar04/StrokeVisibility', instance, dataBinding?.['Avatar04/StrokeVisibility'],
|
||||
onDataBindingChange?.['Avatar04/StrokeVisibility'], playIfNeeded);
|
||||
baseRiveModule.useNumberBinding('Avatar04/UsernameVisibility', instance,
|
||||
dataBinding?.['Avatar04/UsernameVisibility'], onDataBindingChange?.['Avatar04/UsernameVisibility'],
|
||||
playIfNeeded);
|
||||
baseRiveModule.useColorBinding('Avatar04/Stroke', instance, dataBinding?.['Avatar04/Stroke'],
|
||||
onDataBindingChange?.['Avatar04/Stroke'], playIfNeeded);
|
||||
baseRiveModule.useColorBinding('Avatar04/Fill', instance, dataBinding?.['Avatar04/Fill'],
|
||||
onDataBindingChange?.['Avatar04/Fill'], playIfNeeded);
|
||||
baseRiveModule.useStringBinding('Avatar04/Username', instance, dataBinding?.['Avatar04/Username'],
|
||||
onDataBindingChange?.['Avatar04/Username'], playIfNeeded);
|
||||
baseRiveModule.useImageBinding('Avatar04/img', instance, dataBinding?.['Avatar04/img'],
|
||||
onDataBindingChange?.['Avatar04/img'], playIfNeeded);
|
||||
baseRiveModule.useNumberBinding('Avatar05/ShadowVisibility', instance, dataBinding?.['Avatar05/ShadowVisibility'],
|
||||
onDataBindingChange?.['Avatar05/ShadowVisibility'], playIfNeeded);
|
||||
baseRiveModule.useNumberBinding('Avatar05/StrokeVisibility', instance, dataBinding?.['Avatar05/StrokeVisibility'],
|
||||
onDataBindingChange?.['Avatar05/StrokeVisibility'], playIfNeeded);
|
||||
baseRiveModule.useNumberBinding('Avatar05/UsernameVisibility', instance,
|
||||
dataBinding?.['Avatar05/UsernameVisibility'], onDataBindingChange?.['Avatar05/UsernameVisibility'],
|
||||
playIfNeeded);
|
||||
baseRiveModule.useColorBinding('Avatar05/Stroke', instance, dataBinding?.['Avatar05/Stroke'],
|
||||
onDataBindingChange?.['Avatar05/Stroke'], playIfNeeded);
|
||||
baseRiveModule.useColorBinding('Avatar05/Fill', instance, dataBinding?.['Avatar05/Fill'],
|
||||
onDataBindingChange?.['Avatar05/Fill'], playIfNeeded);
|
||||
baseRiveModule.useStringBinding('Avatar05/Username', instance, dataBinding?.['Avatar05/Username'],
|
||||
onDataBindingChange?.['Avatar05/Username'], playIfNeeded);
|
||||
baseRiveModule.useImageBinding('Avatar05/img', instance, dataBinding?.['Avatar05/img'],
|
||||
onDataBindingChange?.['Avatar05/img'], playIfNeeded);
|
||||
const value = baseRiveModule;
|
||||
useColorBinding = value.useColorBinding;
|
||||
const ConnectorColor = dataBinding?.ConnectorColor;
|
||||
const ConnectorColor2 = onDataBindingChange?.ConnectorColor;
|
||||
Reflect.apply(useColorBinding, value, ['ConnectorColor', instance, ConnectorColor, ConnectorColor2, playIfNeeded]);
|
||||
return null;
|
||||
}
|
||||
|
||||
function Avatar({instance, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4092:14835, offset: 0x01013042, size: 571 bytes, params: 2, frame: 25
|
||||
const baseRiveModule = require(3885) /* metro dependency 3885: BaseRive */;
|
||||
let useNumberBinding = baseRiveModule.useNumberBinding;
|
||||
const ShadowVisibility = dataBinding?.ShadowVisibility;
|
||||
const ShadowVisibility2 = onDataBindingChange?.ShadowVisibility;
|
||||
Reflect.apply(useNumberBinding, baseRiveModule, ['ShadowVisibility', instance, ShadowVisibility, ShadowVisibility2,
|
||||
playIfNeeded]);
|
||||
const moduleValue2 = baseRiveModule;
|
||||
useNumberBinding = moduleValue2.useNumberBinding;
|
||||
const StrokeVisibility = dataBinding?.StrokeVisibility;
|
||||
const StrokeVisibility2 = onDataBindingChange?.StrokeVisibility;
|
||||
Reflect.apply(useNumberBinding, moduleValue2, ['StrokeVisibility', instance, StrokeVisibility, StrokeVisibility2,
|
||||
playIfNeeded]);
|
||||
const moduleValue3 = baseRiveModule;
|
||||
useNumberBinding = moduleValue3.useNumberBinding;
|
||||
const UsernameVisibility = dataBinding?.UsernameVisibility;
|
||||
const UsernameVisibility2 = onDataBindingChange?.UsernameVisibility;
|
||||
Reflect.apply(useNumberBinding, moduleValue3, ['UsernameVisibility', instance, UsernameVisibility,
|
||||
UsernameVisibility2, playIfNeeded]);
|
||||
const moduleValue4 = baseRiveModule;
|
||||
let useColorBinding = moduleValue4.useColorBinding;
|
||||
const Stroke = dataBinding?.Stroke;
|
||||
const Stroke2 = onDataBindingChange?.Stroke;
|
||||
Reflect.apply(useColorBinding, moduleValue4, ['Stroke', instance, Stroke, Stroke2, playIfNeeded]);
|
||||
const moduleValue5 = baseRiveModule;
|
||||
useColorBinding = moduleValue5.useColorBinding;
|
||||
const Fill = dataBinding?.Fill;
|
||||
const Fill2 = onDataBindingChange?.Fill;
|
||||
Reflect.apply(useColorBinding, moduleValue5, ['Fill', instance, Fill, Fill2, playIfNeeded]);
|
||||
const moduleValue6 = baseRiveModule;
|
||||
const useStringBinding = moduleValue6.useStringBinding;
|
||||
const Username = dataBinding?.Username;
|
||||
const Username2 = onDataBindingChange?.Username;
|
||||
Reflect.apply(useStringBinding, moduleValue6, ['Username', instance, Username, Username2, playIfNeeded]);
|
||||
baseRiveModule.useImageBinding('img', instance, dataBinding?.img, onDataBindingChange?.img, playIfNeeded);
|
||||
return null;
|
||||
}
|
||||
|
||||
function CheckpointFriendsRiveInner(a0, a1) { // fn#32349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4092:21648, offset: 0x0101327d, size: 248 bytes, params: 3, frame: 22
|
||||
a0.fallback;
|
||||
const artboard = a0.artboard;
|
||||
const r9 = artboard === undefined ? 'MAIN' : artboard;
|
||||
const stateMachine = a0.stateMachine;
|
||||
const defaultViewModelInstance = a0.defaultViewModelInstance;
|
||||
const r7 = defaultViewModelInstance === undefined ? 'threeFriends' : defaultViewModelInstance;
|
||||
const dataBinding = a0.dataBinding;
|
||||
const onDataBindingChange = a0.onDataBindingChange;
|
||||
const value2 = env0_4(a0, env0_3);
|
||||
const value3 = env0_5.useCallback(_fun32350, [r9, dataBinding, onDataBindingChange]);
|
||||
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
|
||||
return (
|
||||
<BaseRive
|
||||
ref={a1}
|
||||
src={importDefault(3944) /* metro dependency 3944: CheckpointFriendsRiv */}
|
||||
artboard={r9}
|
||||
artboardProperties={env0_7}
|
||||
artboardViewModelInstances={env0_8}
|
||||
defaultViewModelInstance={r7}
|
||||
stateMachine={stateMachine}
|
||||
renderDataBinding={value3}
|
||||
{...value2}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
/* Metro module 3945; source: ../discord_common/js/packages/design/components/Rive/native/generated/CheckpointIntroRive.tsx; dependencies: [29, 31, 33, 3885, 3946, 3936, 2] */
|
||||
function _fun32353(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4094:6, offset: 0x010133dc, size: 337 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
|
||||
'onDataBindingChange'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object2 = {};
|
||||
object2['Checkpoint Intro Desktop'] = {'reducedMotion': 'boolean', 'Subtitle': 'string',
|
||||
'StartButton Pressed': 'boolean', 'StartButton': 'string'};
|
||||
object2.Globe = {};
|
||||
object2['Globe Single Line'] = {};
|
||||
object2['Start Button'] = {'reducedMotion': 'boolean', 'Subtitle': 'string', 'StartButton Pressed': 'boolean',
|
||||
'StartButton': 'string'};
|
||||
object2 = {};
|
||||
object2['Checkpoint Intro Desktop'] = ['default', 'reducedMotion'];
|
||||
object2.Globe = [];
|
||||
object2['Globe Single Line'] = [];
|
||||
object2['Start Button'] = ['default', 'reducedMotion'];
|
||||
object2 = {};
|
||||
object2['Checkpoint Intro Desktop'] = CheckpointIntroDesktopBindings;
|
||||
object2['Start Button'] = StartButtonBindings;
|
||||
const env0_10 = value.forwardRef(CheckpointIntroRiveInner);
|
||||
value = value.forwardRef(CheckpointIntroRiveWithBoundary);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/CheckpointIntroRive.tsx');
|
||||
exports.CheckpointIntroRive = value;
|
||||
}
|
||||
|
||||
function CheckpointIntroDesktopBindings({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4094:678, offset: 0x0101352d, size: 307 bytes, params: 2, frame: 25
|
||||
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
|
||||
reducedMotionEnabled, undefined, playIfNeeded);
|
||||
const baseRiveModule = require(3885) /* metro dependency 3885: BaseRive */;
|
||||
let useStringBinding = baseRiveModule.useStringBinding;
|
||||
const Subtitle = dataBinding?.Subtitle;
|
||||
const Subtitle2 = onDataBindingChange?.Subtitle;
|
||||
Reflect.apply(useStringBinding, baseRiveModule, ['Subtitle', instance, Subtitle, Subtitle2, playIfNeeded]);
|
||||
baseRiveModule.useBooleanBinding('StartButton Pressed', instance, dataBinding?.['StartButton Pressed'],
|
||||
onDataBindingChange?.['StartButton Pressed'], playIfNeeded);
|
||||
const value = baseRiveModule;
|
||||
useStringBinding = value.useStringBinding;
|
||||
const StartButton = dataBinding?.StartButton;
|
||||
const StartButton2 = onDataBindingChange?.StartButton;
|
||||
Reflect.apply(useStringBinding, value, ['StartButton', instance, StartButton, StartButton2, playIfNeeded]);
|
||||
return null;
|
||||
}
|
||||
|
||||
function CheckpointIntroRiveInner(a0, a1) { // fn#32356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4094:1777, offset: 0x01013660, size: 246 bytes, params: 3, frame: 22
|
||||
a0.fallback;
|
||||
const artboard = a0.artboard;
|
||||
const r9 = artboard === undefined ? 'Checkpoint Intro Desktop' : artboard;
|
||||
const stateMachine = a0.stateMachine;
|
||||
const defaultViewModelInstance = a0.defaultViewModelInstance;
|
||||
const r7 = defaultViewModelInstance === undefined ? 'default' : defaultViewModelInstance;
|
||||
const dataBinding = a0.dataBinding;
|
||||
const onDataBindingChange = a0.onDataBindingChange;
|
||||
const value2 = env0_4(a0, env0_3);
|
||||
const value3 = env0_5.useCallback(_fun32357, [r9, dataBinding, onDataBindingChange]);
|
||||
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
|
||||
return (
|
||||
<BaseRive
|
||||
ref={a1}
|
||||
src={importDefault(3946) /* metro dependency 3946: CheckpointIntroRiv */}
|
||||
artboard={r9}
|
||||
artboardProperties={env0_7}
|
||||
artboardViewModelInstances={env0_8}
|
||||
defaultViewModelInstance={r7}
|
||||
stateMachine={stateMachine}
|
||||
renderDataBinding={value3}
|
||||
{...value2}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
/* Metro module 3947; source: ../discord_common/js/packages/design/components/Rive/native/generated/CheckpointKnickKnacksRive.tsx; dependencies: [29, 31, 33, 3885, 3948, 3936, 2] */
|
||||
function _fun32360(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:6, offset: 0x010137bd, size: 809 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
|
||||
'onDataBindingChange'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object2 = {Preview: {'reducedMotion': 'boolean', 'iconColor': 'color'}, Friends: {'reducedMotion': 'boolean',
|
||||
'iconColor': 'color'}, Globe: {'reducedMotion': 'boolean', 'iconColor': 'color'}};
|
||||
object2['Globe Single Line'] = {};
|
||||
object2.Emojis = {'reducedMotion': 'boolean', 'iconColor': 'color'};
|
||||
object2['Wave Line'] = {'reducedMotion': 'boolean', 'iconColor': 'color'};
|
||||
object2.Games = {'reducedMotion': 'boolean', 'iconColor': 'color'};
|
||||
object2.Voice = {'reducedMotion': 'boolean', 'iconColor': 'color'};
|
||||
object2['Looping Checkboard'] = {'reducedMotion': 'boolean', 'iconColor': 'color'};
|
||||
object2.CheckRow = {'reducedMotion': 'boolean', 'iconColor': 'color'};
|
||||
object2.Quests = {'reducedMotion': 'boolean', 'iconColor': 'color'};
|
||||
object2.Entry = {'reducedMotion': 'boolean', 'iconColor': 'color'};
|
||||
object2.Messages = {'reducedMotion': 'boolean', 'iconColor': 'color'};
|
||||
object2.Servers = {'reducedMotion': 'boolean', 'iconColor': 'color'};
|
||||
object2 = {Preview: ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'], Friends: ['Pink', 'Orange', 'Green',
|
||||
'Lavender', 'Yellow', 'Cyan'], Globe: ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan']};
|
||||
object2['Globe Single Line'] = [];
|
||||
object2.Emojis = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
|
||||
object2['Wave Line'] = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
|
||||
object2.Games = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
|
||||
object2.Voice = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
|
||||
object2['Looping Checkboard'] = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
|
||||
object2.CheckRow = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
|
||||
object2.Quests = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
|
||||
object2.Entry = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
|
||||
object2.Messages = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
|
||||
object2.Servers = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
|
||||
object2 = {Preview: Preview, Friends: Friends, Globe: Globe, Emojis: Emojis};
|
||||
object2['Wave Line'] = WaveLineBindings;
|
||||
object2.Games = Games;
|
||||
object2.Voice = Voice;
|
||||
object2['Looping Checkboard'] = LoopingCheckboardBindings;
|
||||
object2.CheckRow = CheckRow;
|
||||
object2.Quests = Quests;
|
||||
object2.Entry = Entry_32371;
|
||||
object2.Messages = Messages;
|
||||
object2.Servers = Servers;
|
||||
const env0_10 = value.forwardRef(CheckpointKnickKnacksRiveInner);
|
||||
value = value.forwardRef(CheckpointKnickKnacksRiveWithBoundary);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/CheckpointKnickKnacksRive.tsx');
|
||||
exports.CheckpointKnickKnacksRive = value;
|
||||
}
|
||||
|
||||
function Preview({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:1794, offset: 0x01013ae6, size: 155 bytes, params: 2, frame: 24
|
||||
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
|
||||
reducedMotionEnabled, undefined, playIfNeeded);
|
||||
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('iconColor', instance, dataBinding?.iconColor,
|
||||
onDataBindingChange?.iconColor, playIfNeeded);
|
||||
return null;
|
||||
}
|
||||
|
||||
function CheckpointKnickKnacksRiveInner(a0, a1) { // fn#32374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:5680, offset: 0x01013b81, size: 248 bytes, params: 3, frame: 22
|
||||
a0.fallback;
|
||||
const artboard = a0.artboard;
|
||||
const r9 = artboard === undefined ? 'Preview' : artboard;
|
||||
const stateMachine = a0.stateMachine;
|
||||
const defaultViewModelInstance = a0.defaultViewModelInstance;
|
||||
const r7 = defaultViewModelInstance === undefined ? 'Pink' : defaultViewModelInstance;
|
||||
const dataBinding = a0.dataBinding;
|
||||
const onDataBindingChange = a0.onDataBindingChange;
|
||||
const value2 = env0_4(a0, env0_3);
|
||||
const value3 = env0_5.useCallback(_fun32375, [r9, dataBinding, onDataBindingChange]);
|
||||
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
|
||||
return (
|
||||
<BaseRive
|
||||
ref={a1}
|
||||
src={importDefault(3948) /* metro dependency 3948: CheckpointKnickKnacksRiv */}
|
||||
artboard={r9}
|
||||
artboardProperties={env0_7}
|
||||
artboardViewModelInstances={env0_8}
|
||||
defaultViewModelInstance={r7}
|
||||
stateMachine={stateMachine}
|
||||
renderDataBinding={value3}
|
||||
{...value2}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
/* Metro module 3949; source: ../discord_common/js/packages/design/components/Rive/native/generated/ExpressiveButtonRive.tsx; dependencies: [29, 31, 33, 3885, 3950, 3936, 2] */
|
||||
function _fun32378(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4098:6, offset: 0x01013ce0, size: 395 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
|
||||
'onDataBindingChange'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object2 = {};
|
||||
object2['Mobile Expressive Button Lightmode'] = {'posy': 'number', 'posx': 'number', 'buttonColor': 'color',
|
||||
'cornerRadius': 'number', 'pressed': 'boolean'};
|
||||
object2.Ambient_Lightmode = {'posy': 'number', 'posx': 'number', 'buttonColor': 'color', 'cornerRadius': 'number',
|
||||
'pressed': 'boolean'};
|
||||
object2['Mobile Expressive Button Dark Mode'] = {'posy': 'number', 'posx': 'number', 'buttonColor': 'color',
|
||||
'cornerRadius': 'number', 'pressed': 'boolean'};
|
||||
object2.Ambient = {'posy': 'number', 'posx': 'number', 'buttonColor': 'color', 'cornerRadius': 'number',
|
||||
'pressed': 'boolean'};
|
||||
object2 = {};
|
||||
object2['Mobile Expressive Button Lightmode'] = ['Instance'];
|
||||
object2.Ambient_Lightmode = ['Instance'];
|
||||
object2['Mobile Expressive Button Dark Mode'] = ['Instance'];
|
||||
object2.Ambient = ['Instance'];
|
||||
object2 = {};
|
||||
object2['Mobile Expressive Button Lightmode'] = MobileExpressiveButtonLightmodeBindings;
|
||||
object2.Ambient_Lightmode = Ambient_Lightmode;
|
||||
object2['Mobile Expressive Button Dark Mode'] = MobileExpressiveButtonDarkModeBindings;
|
||||
object2.Ambient = Ambient;
|
||||
const env0_10 = value.forwardRef(ExpressiveButtonRiveInner);
|
||||
value = value.forwardRef(ExpressiveButtonRiveWithBoundary);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/ExpressiveButtonRive.tsx');
|
||||
exports.ExpressiveButtonRive = value;
|
||||
}
|
||||
|
||||
function MobileExpressiveButtonLightmodeBindings({instance, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4098:902, offset: 0x01013e6b, size: 419 bytes, params: 2, frame: 25
|
||||
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('posy', instance, dataBinding?.posy,
|
||||
onDataBindingChange?.posy, playIfNeeded);
|
||||
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('posx', instance, dataBinding?.posx,
|
||||
onDataBindingChange?.posx, playIfNeeded);
|
||||
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('buttonColor', instance,
|
||||
dataBinding?.buttonColor, onDataBindingChange?.buttonColor, playIfNeeded);
|
||||
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('cornerRadius', instance,
|
||||
dataBinding?.cornerRadius, onDataBindingChange?.cornerRadius, playIfNeeded);
|
||||
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('pressed', instance, dataBinding?.pressed,
|
||||
onDataBindingChange?.pressed, playIfNeeded);
|
||||
return null;
|
||||
}
|
||||
|
||||
function ExpressiveButtonRiveInner(a0, a1) { // fn#32383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4098:3338, offset: 0x0101400e, size: 248 bytes, params: 3, frame: 22
|
||||
a0.fallback;
|
||||
const artboard = a0.artboard;
|
||||
const r9 = artboard === undefined ? 'Mobile Expressive Button Lightmode' : artboard;
|
||||
const stateMachine = a0.stateMachine;
|
||||
const defaultViewModelInstance = a0.defaultViewModelInstance;
|
||||
const r7 = defaultViewModelInstance === undefined ? 'Instance' : defaultViewModelInstance;
|
||||
const dataBinding = a0.dataBinding;
|
||||
const onDataBindingChange = a0.onDataBindingChange;
|
||||
const value2 = env0_4(a0, env0_3);
|
||||
const value3 = env0_5.useCallback(_fun32384, [r9, dataBinding, onDataBindingChange]);
|
||||
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
|
||||
return (
|
||||
<BaseRive
|
||||
ref={a1}
|
||||
src={importDefault(3950) /* metro dependency 3950: ExpressiveButtonRiv */}
|
||||
artboard={r9}
|
||||
artboardProperties={env0_7}
|
||||
artboardViewModelInstances={env0_8}
|
||||
defaultViewModelInstance={r7}
|
||||
stateMachine={stateMachine}
|
||||
renderDataBinding={value3}
|
||||
{...value2}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
/* Metro module 3951; source: ../discord_common/js/packages/design/components/Rive/native/generated/GameServerHostingRive.tsx; dependencies: [29, 31, 33, 3885, 3952, 3936, 2] */
|
||||
function _fun32387(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4100:6, offset: 0x0101416d, size: 377 bytes, params: 8, frame: 20
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
|
||||
'onDataBindingChange'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object2 = {};
|
||||
object2.Game_Server_Hosting_Main = {reducedMotion: 'boolean'};
|
||||
object2.c_chara_5 = {};
|
||||
object2.hytale_gameplay = {reducedMotion: 'boolean'};
|
||||
object2.c_chara_1 = {};
|
||||
object2.c_chara_4 = {};
|
||||
object2.c_chara_2 = {};
|
||||
object2.c_chara_3 = {};
|
||||
object2 = {Game_Server_Hosting_Main: ['Instance'], c_chara_5: [], hytale_gameplay: ['Instance'], c_chara_1: [],
|
||||
c_chara_4: [], c_chara_2: [], c_chara_3: []};
|
||||
object2 = {Game_Server_Hosting_Main: Game_Server_Hosting_Main, hytale_gameplay: hytale_gameplay};
|
||||
const env0_10 = value.forwardRef(GameServerHostingRiveInner);
|
||||
value = value.forwardRef(GameServerHostingRiveWithBoundary);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/GameServerHostingRive.tsx');
|
||||
exports.GameServerHostingRive = value;
|
||||
}
|
||||
|
||||
function GameServerHostingRiveInner(a0, a1) { // fn#32390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4100:918, offset: 0x010142e6, size: 248 bytes, params: 3, frame: 22
|
||||
a0.fallback;
|
||||
const artboard = a0.artboard;
|
||||
const r9 = artboard === undefined ? 'Game_Server_Hosting_Main' : artboard;
|
||||
const stateMachine = a0.stateMachine;
|
||||
const defaultViewModelInstance = a0.defaultViewModelInstance;
|
||||
const r7 = defaultViewModelInstance === undefined ? 'Instance' : defaultViewModelInstance;
|
||||
const dataBinding = a0.dataBinding;
|
||||
const onDataBindingChange = a0.onDataBindingChange;
|
||||
const value2 = env0_4(a0, env0_3);
|
||||
const value3 = env0_5.useCallback(_fun32391, [r9, dataBinding, onDataBindingChange]);
|
||||
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
|
||||
return (
|
||||
<BaseRive
|
||||
ref={a1}
|
||||
src={importDefault(3952) /* metro dependency 3952: GameServerHostingRiv */}
|
||||
artboard={r9}
|
||||
artboardProperties={env0_7}
|
||||
artboardViewModelInstances={env0_8}
|
||||
defaultViewModelInstance={r7}
|
||||
stateMachine={stateMachine}
|
||||
renderDataBinding={value3}
|
||||
{...value2}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
/* Metro module 3953; source: ../discord_common/js/packages/design/components/Rive/native/generated/MicrophoneRive.tsx; dependencies: [29, 31, 33, 3885, 3954, 3936, 2] */
|
||||
function _fun32394(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4102:6, offset: 0x01014445, size: 307 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
|
||||
'onDataBindingChange'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object2 = {};
|
||||
object2['Icon Microphone'] = {'reducedMotion': 'boolean', 'fill': 'color', 'on': 'boolean'};
|
||||
object2['Animation Main'] = {'reducedMotion': 'boolean', 'fill': 'color', 'on': 'boolean'};
|
||||
object2 = {};
|
||||
object2['Icon Microphone'] = ['Off', 'On'];
|
||||
object2['Animation Main'] = ['Off', 'On'];
|
||||
object2 = {};
|
||||
object2['Icon Microphone'] = IconMicrophoneBindings;
|
||||
object2['Animation Main'] = AnimationMainBindings;
|
||||
const env0_10 = value.forwardRef(MicrophoneRiveInner);
|
||||
value = value.forwardRef(MicrophoneRiveWithBoundary);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/MicrophoneRive.tsx');
|
||||
exports.MicrophoneRive = value;
|
||||
}
|
||||
|
||||
function MicrophoneRiveInner(a0, a1) { // fn#32397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4102:1222, offset: 0x01014578, size: 248 bytes, params: 3, frame: 22
|
||||
a0.fallback;
|
||||
const artboard = a0.artboard;
|
||||
const r9 = artboard === undefined ? 'Icon Microphone' : artboard;
|
||||
const stateMachine = a0.stateMachine;
|
||||
const defaultViewModelInstance = a0.defaultViewModelInstance;
|
||||
const r7 = defaultViewModelInstance === undefined ? 'Off' : defaultViewModelInstance;
|
||||
const dataBinding = a0.dataBinding;
|
||||
const onDataBindingChange = a0.onDataBindingChange;
|
||||
const value2 = env0_4(a0, env0_3);
|
||||
const value3 = env0_5.useCallback(_fun32398, [r9, dataBinding, onDataBindingChange]);
|
||||
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
|
||||
return (
|
||||
<BaseRive
|
||||
ref={a1}
|
||||
src={importDefault(3954) /* metro dependency 3954: MicrophoneRiv */}
|
||||
artboard={r9}
|
||||
artboardProperties={env0_7}
|
||||
artboardViewModelInstances={env0_8}
|
||||
defaultViewModelInstance={r7}
|
||||
stateMachine={stateMachine}
|
||||
renderDataBinding={value3}
|
||||
{...value2}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
/* Metro module 3955; source: ../discord_common/js/packages/design/components/Rive/native/generated/NitroQuestOrbsMultiplierRive.tsx; dependencies: [29, 31, 33, 3885, 3956, 3936, 2] */
|
||||
function _fun32401(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4104:6, offset: 0x010146d7, size: 371 bytes, params: 8, frame: 20
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
|
||||
'onDataBindingChange'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object2 = {};
|
||||
object2.Torbs_Multiply = {reducedMotion: 'boolean'};
|
||||
object2.Shards_All_Nitro = {reducedMotion: 'boolean'};
|
||||
object2['Orb Mid Shine'] = {reducedMotion: 'boolean'};
|
||||
object2.Torbs_Shine = {reducedMotion: 'boolean'};
|
||||
object2 = {Torbs_Multiply: ['Instance'], Shards_All_Nitro: ['Instance']};
|
||||
object2['Orb Mid Shine'] = ['Instance'];
|
||||
object2.Torbs_Shine = ['Instance'];
|
||||
object2 = {Torbs_Multiply: Torbs_Multiply, Shards_All_Nitro: Shards_All_Nitro};
|
||||
object2['Orb Mid Shine'] = OrbMidShineBindings;
|
||||
object2.Torbs_Shine = Torbs_Shine;
|
||||
const env0_10 = value.forwardRef(NitroQuestOrbsMultiplierRiveInner);
|
||||
value = value.forwardRef(NitroQuestOrbsMultiplierRiveWithBoundary);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/NitroQuestOrbsMultiplierRive.tsx');
|
||||
exports.NitroQuestOrbsMultiplierRive = value;
|
||||
}
|
||||
|
||||
function NitroQuestOrbsMultiplierRiveInner(a0, a1) { // fn#32406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4104:1214, offset: 0x0101484a, size: 248 bytes, params: 3, frame: 22
|
||||
a0.fallback;
|
||||
const artboard = a0.artboard;
|
||||
const r9 = artboard === undefined ? 'Torbs_Multiply' : artboard;
|
||||
const stateMachine = a0.stateMachine;
|
||||
const defaultViewModelInstance = a0.defaultViewModelInstance;
|
||||
const r7 = defaultViewModelInstance === undefined ? 'Instance' : defaultViewModelInstance;
|
||||
const dataBinding = a0.dataBinding;
|
||||
const onDataBindingChange = a0.onDataBindingChange;
|
||||
const value2 = env0_4(a0, env0_3);
|
||||
const value3 = env0_5.useCallback(_fun32407, [r9, dataBinding, onDataBindingChange]);
|
||||
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
|
||||
return (
|
||||
<BaseRive
|
||||
ref={a1}
|
||||
src={importDefault(3956) /* metro dependency 3956: NitroQuestOrbsMultiplierRiv */}
|
||||
artboard={r9}
|
||||
artboardProperties={env0_7}
|
||||
artboardViewModelInstances={env0_8}
|
||||
defaultViewModelInstance={r7}
|
||||
stateMachine={stateMachine}
|
||||
renderDataBinding={value3}
|
||||
{...value2}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
/* Metro module 3957; source: ../discord_common/js/packages/design/components/Rive/native/generated/TeenScreenTimeRive.tsx; dependencies: [29, 31, 33, 3885, 3958, 3936, 2] */
|
||||
function _fun32410(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4106:6, offset: 0x010149a9, size: 273 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object2 = {};
|
||||
object2['Teen Screen Time Illo'] = {};
|
||||
object2['Gradient Vertical'] = {};
|
||||
object2['RAW ILLO (Do not deploy)'] = {};
|
||||
object2['Gradient Horizontal'] = {};
|
||||
object2 = {};
|
||||
object2['Teen Screen Time Illo'] = [];
|
||||
object2['Gradient Vertical'] = [];
|
||||
object2['RAW ILLO (Do not deploy)'] = [];
|
||||
object2['Gradient Horizontal'] = [];
|
||||
const env0_8 = value.forwardRef(TeenScreenTimeRiveInner);
|
||||
value = value.forwardRef(TeenScreenTimeRiveWithBoundary);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/TeenScreenTimeRive.tsx');
|
||||
exports.TeenScreenTimeRive = value;
|
||||
}
|
||||
|
||||
function TeenScreenTimeRiveInner(a0, a1) { // fn#32411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4106:440, offset: 0x01014aba, size: 174 bytes, params: 3, frame: 21
|
||||
a0.fallback;
|
||||
const artboard = a0.artboard;
|
||||
const value = 'Teen Screen Time Illo';
|
||||
const value2 = undefined;
|
||||
const r8 = value2 === artboard ? value : artboard;
|
||||
const stateMachine = a0.stateMachine;
|
||||
const defaultViewModelInstance = a0.defaultViewModelInstance;
|
||||
const r6 = value2 === defaultViewModelInstance ? value2 : defaultViewModelInstance;
|
||||
const value3 = env0_4(a0, env0_3);
|
||||
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
|
||||
return (
|
||||
<BaseRive
|
||||
ref={a1}
|
||||
src={importDefault(3958) /* metro dependency 3958: TeenScreenTimeRiv */}
|
||||
artboard={r8}
|
||||
artboardProperties={env0_6}
|
||||
artboardViewModelInstances={env0_7}
|
||||
defaultViewModelInstance={r6}
|
||||
stateMachine={stateMachine}
|
||||
{...value3}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
/* Metro module 3959; source: ../discord_common/js/packages/design/components/Rive/native/generated/ThemeAwareNitroWishlistingWumpusRive.tsx; dependencies: [29, 31, 33, 3885, 3960, 3936, 2] */
|
||||
function _fun32414(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4108:6, offset: 0x01014bcf, size: 263 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
|
||||
'onDataBindingChange'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
({})['Nitro Wishlist'] = {'reducedMotion': 'boolean', 'logoColor': 'color'};
|
||||
({})['Nitro Wishlist'] = ['Instance'];
|
||||
({})['Nitro Wishlist'] = NitroWishlistBindings;
|
||||
const env0_10 = value.forwardRef(ThemeAwareNitroWishlistingWumpusRiveInner);
|
||||
value = value.forwardRef(ThemeAwareNitroWishlistingWumpusRiveWithBoundary);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/ThemeAwareNitroWishlistingWumpusRive.tsx');
|
||||
exports.ThemeAwareNitroWishlistingWumpusRive = value;
|
||||
}
|
||||
|
||||
function NitroWishlistBindings({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4108:361, offset: 0x01014cd6, size: 155 bytes, params: 2, frame: 24
|
||||
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
|
||||
reducedMotionEnabled, undefined, playIfNeeded);
|
||||
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('logoColor', instance, dataBinding?.logoColor,
|
||||
onDataBindingChange?.logoColor, playIfNeeded);
|
||||
return null;
|
||||
}
|
||||
|
||||
function ThemeAwareNitroWishlistingWumpusRiveInner(a0, a1) { // fn#32416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4108:677, offset: 0x01014d71, size: 248 bytes, params: 3, frame: 22
|
||||
a0.fallback;
|
||||
const artboard = a0.artboard;
|
||||
const r9 = artboard === undefined ? 'Nitro Wishlist' : artboard;
|
||||
const stateMachine = a0.stateMachine;
|
||||
const defaultViewModelInstance = a0.defaultViewModelInstance;
|
||||
const r7 = defaultViewModelInstance === undefined ? 'Instance' : defaultViewModelInstance;
|
||||
const dataBinding = a0.dataBinding;
|
||||
const onDataBindingChange = a0.onDataBindingChange;
|
||||
const value2 = env0_4(a0, env0_3);
|
||||
const value3 = env0_5.useCallback(_fun32417, [r9, dataBinding, onDataBindingChange]);
|
||||
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
|
||||
return (
|
||||
<BaseRive
|
||||
ref={a1}
|
||||
src={importDefault(3960) /* metro dependency 3960: ThemeAwareNitroWishlistingWumpusRiv */}
|
||||
artboard={r9}
|
||||
artboardProperties={env0_7}
|
||||
artboardViewModelInstances={env0_8}
|
||||
defaultViewModelInstance={r7}
|
||||
stateMachine={stateMachine}
|
||||
renderDataBinding={value3}
|
||||
{...value2}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Vendored
+47
@@ -0,0 +1,47 @@
|
||||
/* Metro module 3883; source: ../discord_common/js/packages/design/components/Rive/native/generated/index.tsx; dependencies: [2, 3884, 3937, 3939, 3941, 3943, 3945, 3947, 3949, 3951, 3953, 3955, 3957, 3959] */
|
||||
function _fun32048(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4022:6, offset: 0x0100aa37, size: 735 bytes, params: 8, frame: 22
|
||||
var propertyName;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/index.tsx');
|
||||
for (propertyName in require(3884) /* metro dependency 3884: BoostThisServerRive */) {
|
||||
exports[propertyName] = (require(3884) /* metro dependency 3884: BoostThisServerRive */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3937) /* metro dependency 3937: BountiesScrollGradientRive */) {
|
||||
exports[propertyName] = (require(3937) /* metro dependency 3937: BountiesScrollGradientRive */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3939) /* metro dependency 3939: CameraRive */) {
|
||||
exports[propertyName] = (require(3939) /* metro dependency 3939: CameraRive */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3941) /* metro dependency 3941: CheckpointCardRive */) {
|
||||
exports[propertyName] = (require(3941) /* metro dependency 3941: CheckpointCardRive */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3943) /* metro dependency 3943: CheckpointFriendsRive */) {
|
||||
exports[propertyName] = (require(3943) /* metro dependency 3943: CheckpointFriendsRive */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3945) /* metro dependency 3945: CheckpointIntroRive */) {
|
||||
exports[propertyName] = (require(3945) /* metro dependency 3945: CheckpointIntroRive */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3947) /* metro dependency 3947: CheckpointKnickKnacksRive */) {
|
||||
exports[propertyName] = (require(3947) /* metro dependency 3947: CheckpointKnickKnacksRive */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3949) /* metro dependency 3949: ExpressiveButtonRive */) {
|
||||
exports[propertyName] = (require(3949) /* metro dependency 3949: ExpressiveButtonRive */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3951) /* metro dependency 3951: GameServerHostingRive */) {
|
||||
exports[propertyName] = (require(3951) /* metro dependency 3951: GameServerHostingRive */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3953) /* metro dependency 3953: MicrophoneRive */) {
|
||||
exports[propertyName] = (require(3953) /* metro dependency 3953: MicrophoneRive */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3955) /* metro dependency 3955: NitroQuestOrbsMultiplierRive */) {
|
||||
exports[propertyName] = (require(3955) /* metro dependency 3955: NitroQuestOrbsMultiplierRive */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3957) /* metro dependency 3957: TeenScreenTimeRive */) {
|
||||
exports[propertyName] = (require(3957) /* metro dependency 3957: TeenScreenTimeRive */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3959) /* metro dependency 3959: ThemeAwareNitroWishlistingWumpusRive */) {
|
||||
exports[propertyName] = (require(3959) /* metro dependency 3959: ThemeAwareNitroWishlistingWumpusRive */)[propertyName];
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+122
@@ -0,0 +1,122 @@
|
||||
/* Metro module 3933; source: ../discord_common/js/packages/design/components/Rive/native/useRivePlayback.tsx; dependencies: [31, 27, 2] */
|
||||
function _fun32290(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:6, offset: 0x01010b8b, size: 126 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_1 = (require(27) /* metro dependency 27 */).AppState;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/useRivePlayback.tsx');
|
||||
exports.useRivePlayback = useRivePlayback;
|
||||
}
|
||||
|
||||
function useRivePlayback(a0, {isReady, appStatePlaybackEnabled, shouldShortLoopForReducedMotion}) { // fn#32291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:256, offset: 0x01010c09, size: 394 bytes, params: 3, frame: 21
|
||||
const binding = a0;
|
||||
const env0_4 = binding.useRef(false);
|
||||
const env0_5 = binding.useRef(AppState.currentState === 'background');
|
||||
const env0_6 = binding.useRef(false);
|
||||
const env0_7 = binding.useRef(null);
|
||||
const value = binding.useCallback(_fun32292, []);
|
||||
const value2 = binding.useCallback(_fun32293, [value, a0]);
|
||||
const value3 = binding.useCallback(_fun32294, [value, shouldShortLoopForReducedMotion, value2]);
|
||||
const value4 = binding.useCallback(_fun32296, [a0, value3]);
|
||||
const value5 = binding.useCallback(_fun32297, [appStatePlaybackEnabled, a0, value3]);
|
||||
binding.useEffect(_fun32298, [isReady]);
|
||||
binding.useEffect(_fun32299, [isReady, value3, value]);
|
||||
binding.useEffect(_fun32300, [appStatePlaybackEnabled, isReady, value4, value2]);
|
||||
return {play: value4, pause: value2, playIfNeeded: value5};
|
||||
}
|
||||
|
||||
function _fun32292() { // fn#32292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:466, offset: 0x01010d93, size: 52 bytes, params: 1, frame: 13
|
||||
var clearTimeout;
|
||||
var binding;
|
||||
if (env0_7.current != null) {
|
||||
clearTimeout = global.clearTimeout;
|
||||
binding = env0_7;
|
||||
clearTimeout(binding.current);
|
||||
binding.current = null;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun32293() { // fn#32293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:552, offset: 0x01010dc7, size: 51 bytes, params: 1, frame: 11
|
||||
env0_8();
|
||||
if (env0_0 != null) {
|
||||
env0_0.pause();
|
||||
}
|
||||
env0_4.current = false;
|
||||
}
|
||||
|
||||
function _fun32294() { // fn#32294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:619, offset: 0x01010dfa, size: 59 bytes, params: 1, frame: 14
|
||||
env0_8();
|
||||
if (shouldShortLoopForReducedMotion) {
|
||||
env0_7.current = global.setTimeout(_fun32295, 5000);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun32296() { // fn#32296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:697, offset: 0x01010e44, size: 51 bytes, params: 1, frame: 10
|
||||
if (env0_0 != null) {
|
||||
env0_0.play();
|
||||
}
|
||||
env0_4.current = true;
|
||||
env0_10();
|
||||
}
|
||||
|
||||
function _fun32297() { // fn#32297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:763, offset: 0x01010e77, size: 86 bytes, params: 1, frame: 10
|
||||
if (appStatePlaybackEnabled) {
|
||||
if (env0_5.current) {
|
||||
env0_6.current = true;
|
||||
} else {
|
||||
if (env0_0 != null) {
|
||||
env0_0.playIfNeeded();
|
||||
}
|
||||
env0_4.current = true;
|
||||
env0_10();
|
||||
}
|
||||
} else {
|
||||
if (env0_0 != null) {
|
||||
env0_0.playIfNeeded();
|
||||
}
|
||||
env0_4.current = true;
|
||||
env0_10();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun32298() { // fn#32298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:870, offset: 0x01010ecd, size: 26 bytes, params: 1, frame: 2
|
||||
if (isReady) {
|
||||
env0_4.current = true;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun32299() { // fn#32299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:913, offset: 0x01010ee7, size: 28 bytes, params: 1, frame: 10
|
||||
if (isReady) {
|
||||
env0_10();
|
||||
return env0_8;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun32300() { // fn#32300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:960, offset: 0x01010f03, size: 55 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
if (appStatePlaybackEnabled) {
|
||||
value = environment.__proto__;
|
||||
var env0_0 = AppState.addEventListener('change', _fun32301);
|
||||
return _fun32302;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun32301(a0) { // fn#32301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:1006, offset: 0x01010f3a, size: 133 bytes, params: 2, frame: 11
|
||||
var value;
|
||||
if (a0 === 'background') {
|
||||
value = environment.__proto__;
|
||||
env1_5.current = true;
|
||||
if (isReady && env1_4.current) {
|
||||
env1_6.current = true;
|
||||
env1_9();
|
||||
}
|
||||
} else if (a0 === 'active') {
|
||||
value = environment.__proto__;
|
||||
env1_5.current = false;
|
||||
if (isReady && env1_6.current) {
|
||||
env1_6.current = false;
|
||||
env1_11();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
/* Metro module 4786; source: ../discord_common/js/packages/design/components/Stickers/StickerTypes.tsx; dependencies: [2] */
|
||||
function _fun41350(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4964:6, offset: 0x0111ca71, size: 184 bytes, params: 8, frame: 17
|
||||
var object3;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object3 = {STANDARD: 1};
|
||||
object3[1] = 'STANDARD';
|
||||
object3.GUILD = 2;
|
||||
object3[2] = 'GUILD';
|
||||
const object4 = {PNG: 1};
|
||||
object4[1] = 'PNG';
|
||||
object4.APNG = 2;
|
||||
object4[2] = 'APNG';
|
||||
object4.LOTTIE = 3;
|
||||
object4[3] = 'LOTTIE';
|
||||
object4.GIF = 4;
|
||||
object4[4] = 'GIF';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Stickers/StickerTypes.tsx');
|
||||
exports.MetaStickerType = object3;
|
||||
exports.StickerFormat = object4;
|
||||
}
|
||||
|
||||
Vendored
+62
@@ -0,0 +1,62 @@
|
||||
/* Metro module 4576; source: ../discord_common/js/packages/design/components/Text/typographyVariantRemap.tsx; dependencies: [2] */
|
||||
function _fun38832(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4754:6, offset: 0x010cc401, size: 1139 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let Map = global.Map;
|
||||
let map = new Map([['display-lg', 'experimental/display-lg'], ['display-md', 'experimental/display-md'],
|
||||
['display-sm', 'experimental/display-sm'], ['heading-xxl/extrabold', 'experimental/heading-xxl/bold'],
|
||||
['heading-xxl/bold', 'experimental/heading-xxl/bold'], ['heading-xxl/semibold',
|
||||
'experimental/heading-xxl/semibold'], ['heading-xxl/medium', 'experimental/heading-xxl/semibold'],
|
||||
['heading-xxl/normal', 'experimental/heading-xxl/semibold'], ['heading-xl/extrabold',
|
||||
'experimental/heading-xl/bold'], ['heading-xl/bold', 'experimental/heading-xl/bold'], ['heading-xl/semibold',
|
||||
'experimental/heading-xl/semibold'], ['heading-xl/medium', 'experimental/heading-xl/semibold'],
|
||||
['heading-xl/normal', 'experimental/heading-xl/semibold'], ['heading-lg/extrabold',
|
||||
'experimental/heading-lg/bold'], ['heading-lg/bold', 'experimental/heading-lg/bold'], ['heading-lg/semibold',
|
||||
'experimental/heading-lg/semibold'], ['heading-lg/medium', 'experimental/heading-lg/semibold'],
|
||||
['heading-lg/normal', 'experimental/heading-lg/semibold'], ['heading-md/extrabold',
|
||||
'experimental/heading-md/bold'], ['heading-md/bold', 'experimental/heading-md/bold'], ['heading-md/semibold',
|
||||
'experimental/heading-sm/semibold'], ['heading-md/medium', 'experimental/heading-sm/semibold'],
|
||||
['heading-md/normal', 'experimental/heading-sm/semibold'], ['heading-sm/extrabold',
|
||||
'experimental/heading-xs/bold'], ['heading-sm/bold', 'experimental/heading-xs/bold'], ['heading-sm/semibold',
|
||||
'experimental/heading-xs/semibold'], ['heading-sm/medium', 'experimental/heading-xs/semibold'],
|
||||
['heading-sm/normal', 'experimental/heading-xs/semibold'], ['text-lg/bold', 'experimental/heading-lg/bold'],
|
||||
['text-lg/semibold', 'experimental/heading-lg/semibold'], ['text-lg/medium', 'experimental/body-lg/medium'],
|
||||
['text-lg/normal', 'experimental/body-lg/normal'], ['text-md/bold', 'experimental/label-md/semibold'],
|
||||
['text-md/semibold', 'experimental/label-md/semibold'], ['text-md/medium', 'experimental/body-md/medium'],
|
||||
['text-md/normal', 'experimental/body-md/normal'], ['text-sm/bold', 'experimental/label-sm/semibold'],
|
||||
['text-sm/semibold', 'experimental/label-sm/semibold'], ['text-sm/medium', 'experimental/body-sm/medium'],
|
||||
['text-sm/normal', 'experimental/body-sm/normal'], ['text-xs/bold', 'experimental/label-xs/semibold'],
|
||||
['text-xs/semibold', 'experimental/label-xs/semibold'], ['text-xs/medium', 'experimental/body-xs/medium'],
|
||||
['text-xs/normal', 'experimental/body-xs/normal'], ['text-xxs/bold', 'experimental/meta/medium'],
|
||||
['text-xxs/semibold', 'experimental/meta/medium'], ['text-xxs/medium', 'experimental/meta/normal'],
|
||||
['text-xxs/normal', 'experimental/meta/normal'], ['eyebrow', 'experimental/label-xs/semibold'], ['code',
|
||||
'experimental/mono-md/bold'], ['redesign/heading-18/bold', 'experimental/heading-md/bold'],
|
||||
['redesign/heading-18/semibold', 'experimental/heading-md/semibold'], ['redesign/heading-18/medium',
|
||||
'experimental/heading-md/semibold'], ['redesign/channel-title/bold', 'experimental/heading-sm/bold'],
|
||||
['redesign/channel-title/semibold', 'experimental/heading-sm/semibold'], ['redesign/channel-title/medium',
|
||||
'experimental/heading-sm/semibold'], ['redesign/channel-title/normal', 'experimental/heading-sm/semibold'],
|
||||
['redesign/message-preview/bold', 'experimental/heading-sm/bold'], ['redesign/message-preview/semibold',
|
||||
'experimental/heading-sm/semibold'], ['redesign/message-preview/medium', 'experimental/heading-sm/semibold'],
|
||||
['redesign/message-preview/normal', 'experimental/heading-sm/semibold'], ['heading-deprecated-12/extrabold',
|
||||
'experimental/label-xs/semibold'], ['heading-deprecated-12/bold', 'experimental/label-xs/semibold'],
|
||||
['heading-deprecated-12/semibold', 'experimental/label-xs/semibold'], ['heading-deprecated-12/medium',
|
||||
'experimental/body-xs/medium'], ['heading-deprecated-12/normal', 'experimental/body-xs/normal']]);
|
||||
Map = global.Map;
|
||||
map = new Map([['text-md/bold', 'experimental/heading-sm/bold'], ['text-md/semibold',
|
||||
'experimental/heading-sm/semibold'], ['text-sm/bold', 'experimental/heading-xs/bold'], ['text-sm/semibold',
|
||||
'experimental/heading-xs/semibold']]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Text/typographyVariantRemap.tsx');
|
||||
exports.remapTypographyVariant = remapTypographyVariant;
|
||||
}
|
||||
|
||||
function remapTypographyVariant(a0, a1, a2) { // fn#38833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4754:4152, offset: 0x010cc874, size: 68 bytes, params: 4, frame: 13
|
||||
var r1;
|
||||
const value = a1;
|
||||
if (a0) {
|
||||
r1 = a2 ? env0_1.get(value) : undefined;
|
||||
r1 = r1 ?? env0_0.get(value);
|
||||
return r1 ?? value;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
/* Metro module 4575; source: ../discord_common/js/packages/design/components/Text/useTypographyVariantRemap.native.tsx; dependencies: [3932, 4576, 2] */
|
||||
function _fun38830(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4753:6, offset: 0x010cc31e, size: 94 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Text/useTypographyVariantRemap.native.tsx');
|
||||
exports.useTypographyVariantRemap = useTypographyVariantRemap;
|
||||
}
|
||||
|
||||
function useTypographyVariantRemap(a0, a1) { // fn#38831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4753:243, offset: 0x010cc37c, size: 133 bytes, params: 3, frame: 17
|
||||
const value2 = undefined;
|
||||
const manaContextNativeModule = require(3932) /* metro dependency 3932: ManaContextNative */;
|
||||
const useManaContext = manaContextNativeModule.useManaContext;
|
||||
const experiments = Reflect.apply(useManaContext, manaContextNativeModule, []).experiments;
|
||||
const r0 = experiments == null || experiments.enabledExperiments == null ? value2 : experiments.enabledExperiments.includes('mana-type-consolidation');
|
||||
const value = require(4576) /* metro dependency 4576: typographyVariantRemap */;
|
||||
return value.remapTypographyVariant(r0 != null && r0, a0, a1);
|
||||
}
|
||||
|
||||
Vendored
+45
@@ -0,0 +1,45 @@
|
||||
/* Metro module 3879; source: ../discord_common/js/packages/design/components/ThemeContextProvider/ThemeContext.tsx; dependencies: [31, 33, 2] */
|
||||
function _fun32036(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4018:6, offset: 0x0100a3b9, size: 207 bytes, params: 8, frame: 20
|
||||
const closure = function(a0) {
|
||||
var JSON = global.JSON;
|
||||
var value = JSON.stringify(a0);
|
||||
var object = {};
|
||||
copyDataProperties(object, a0, value);
|
||||
object['key'] = value;
|
||||
return object;
|
||||
};
|
||||
const closure2 = useThemeContext;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_1 = value2.Fragment;
|
||||
const env0_2 = value2.jsx;
|
||||
const value3 = closure({'theme': 'light', 'primaryColor': null, 'secondaryColor': null, 'gradient': null,
|
||||
'flags': 0, 'contrast': 1, 'saturation': 1, 'density': 'compact', 'disableAdaptiveTheme': false,
|
||||
'reduceAdaptiveTheme': false});
|
||||
value = value.createContext(value3);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/ThemeContextProvider/ThemeContext.tsx');
|
||||
exports.createThemedContext = closure;
|
||||
exports.useThemeContext = closure2;
|
||||
exports.FALLBACK_THEME_CONTEXT_VALUE = value3;
|
||||
exports.ThemeContext = value;
|
||||
exports.UseThemeContext = UseThemeContext;
|
||||
}
|
||||
|
||||
function useThemeContext() { // fn#32038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4018:212, offset: 0x0100a4b5, size: 66 bytes, params: 1, frame: 11
|
||||
const value = env0_0.useContext(env0_3);
|
||||
if (value == null) {
|
||||
throw new global.Error('useThemeContext must be used within a ThemeContext.Provider');
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function UseThemeContext({children}) { // fn#32039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4018:836, offset: 0x0100a4f7, size: 48 bytes, params: 2, frame: 15
|
||||
return (
|
||||
<>
|
||||
{children(useThemeContext())}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
/* Metro module 3882; source: ../discord_common/js/packages/design/components/ThemeContextProvider/ThemeContextFlags.tsx; dependencies: [3879, 2] */
|
||||
function _fun32044(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4021:6, offset: 0x0100a91a, size: 215 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = function(a0, a1) {
|
||||
return (a0.flags & a1) === a1;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {MOBILE_DARK_GRADIENT_THEME_ENABLED: 4};
|
||||
object2[4] = 'MOBILE_DARK_GRADIENT_THEME_ENABLED';
|
||||
object2.MOBILE_LIGHT_GRADIENT_THEME_ENABLED = 8;
|
||||
object2[8] = 'MOBILE_LIGHT_GRADIENT_THEME_ENABLED';
|
||||
object2.REDUCED_CONTRAST_ENABLED = 16;
|
||||
object2[16] = 'REDUCED_CONTRAST_ENABLED';
|
||||
object2.INCREASED_CONTRAST_ENABLED = 32;
|
||||
object2[32] = 'INCREASED_CONTRAST_ENABLED';
|
||||
object2.REDUCE_SATURATION_ENABLED = 64;
|
||||
object2[64] = 'REDUCE_SATURATION_ENABLED';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/ThemeContextProvider/ThemeContextFlags.tsx');
|
||||
exports.ThemeContextFlags = object2;
|
||||
exports.hasThemeFlag = closure;
|
||||
exports.setThemeFlag = function(a0, a1) {
|
||||
return a0 | a1;
|
||||
};
|
||||
exports.useThemeFlag = useThemeFlag;
|
||||
}
|
||||
|
||||
function useThemeFlag(a0) { // fn#32047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4021:762, offset: 0x0100aa06, size: 49 bytes, params: 2, frame: 13
|
||||
const hasThemeFlagBinding = hasThemeFlag;
|
||||
let value = require(3879) /* metro dependency 3879: ThemeContext */;
|
||||
value = value.useThemeContext();
|
||||
return hasThemeFlagBinding(value, a0);
|
||||
}
|
||||
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
/* Metro module 3880; source: ../discord_common/js/packages/design/components/ThemeContextProvider/ThemeContextProvider.tsx; dependencies: [31, 33, 3879, 2] */
|
||||
function _fun32040(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4019:6, offset: 0x0100a527, size: 133 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
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;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/ThemeContextProvider/ThemeContextProvider.tsx');
|
||||
exports.ThemeContextProvider = ThemeContextProvider;
|
||||
}
|
||||
|
||||
function ThemeContextProvider({children, theme, primaryColor, secondaryColor, gradient, flags, contrast, saturation, enabledExperiments, density, disableAdaptiveTheme, reduceAdaptiveTheme}) { // fn#32041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4019:270, offset: 0x0100a5ac, size: 400 bytes, params: 2, frame: 31
|
||||
const binding = secondaryColor;
|
||||
const useContext = binding.useContext;
|
||||
const ThemeContext = (require(3879) /* metro dependency 3879: ThemeContext */).ThemeContext;
|
||||
const value2 = Reflect.apply(useContext, binding, [ThemeContext]);
|
||||
(require(3879) /* metro dependency 3879: ThemeContext */).FALLBACK_THEME_CONTEXT_VALUE;
|
||||
const value3 = binding.useMemo(_fun32042, [theme, value2.theme, value2.primaryColor, value2.secondaryColor,
|
||||
value2.gradient, value2.flags, value2.contrast, value2.saturation, value2.enabledExperiments, value2.density,
|
||||
value2.disableAdaptiveTheme, value2.reduceAdaptiveTheme, primaryColor, secondaryColor, gradient, flags,
|
||||
contrast, saturation, enabledExperiments, density, disableAdaptiveTheme, reduceAdaptiveTheme]);
|
||||
const Provider = ThemeContext.Provider;
|
||||
return (
|
||||
<Provider value={value3}>
|
||||
{children}
|
||||
</Provider>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun32042() { // fn#32042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4019:568, offset: 0x0100a73c, size: 362 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
return (require(3879) /* metro dependency 3879: ThemeContext */).createThemedContext({theme: theme ?? env0_11.theme,
|
||||
primaryColor: primaryColor ?? env0_11.primaryColor, secondaryColor: secondaryColor ?? env0_11.secondaryColor,
|
||||
gradient: gradient ?? env0_11.gradient, flags: flags ?? env0_11.flags, contrast: contrast ?? env0_11.contrast,
|
||||
saturation: saturation ?? env0_11.saturation,
|
||||
enabledExperiments: enabledExperiments ?? env0_11.enabledExperiments, density: density ?? env0_11.density,
|
||||
disableAdaptiveTheme: disableAdaptiveTheme ?? env0_11.disableAdaptiveTheme,
|
||||
reduceAdaptiveTheme: reduceAdaptiveTheme ?? env0_11.reduceAdaptiveTheme});
|
||||
}
|
||||
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
/* Metro module 3881; source: ../discord_common/js/packages/design/components/ThemeContextProvider/ThemeTypes.tsx; dependencies: [2] */
|
||||
function _fun32043(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4020:6, offset: 0x0100a8a6, size: 116 bytes, params: 8, frame: 16
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/ThemeContextProvider/ThemeTypes.tsx');
|
||||
exports.ClientThemeType = {BACKGROUND_GRADIENT_PRESET: 'backgroundGradientPreset',
|
||||
STANDARD_BACKGROUND_THEME: 'standardBackgroundTheme', CUSTOM_BACKGROUND_GRADIENT: 'customBackgroundGradient'};
|
||||
}
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/* Metro module 3874; source: ../discord_common/js/packages/design/hooks/useA11yRolesNative.tsx; dependencies: [27, 2] */
|
||||
function _fun32027(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4013:6, offset: 0x0100a099, size: 114 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(27) /* metro dependency 27 */).Platform;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/hooks/useA11yRolesNative.tsx');
|
||||
exports.useCheckboxA11yNative = function(a0) {
|
||||
var r4;
|
||||
var checked = a0.checked;
|
||||
var value = Object.create(null);
|
||||
value.checked = 0;
|
||||
var value2 = copyDataProperties({}, a0, value, r4);
|
||||
var object2 = {checked: checked, selected: checked};
|
||||
copyDataProperties(object2, value2, value);
|
||||
return {accessibilityRole: 'checkbox', accessibilityState: object2};
|
||||
};
|
||||
exports.useRadioA11yNative = function(a0) {
|
||||
var r4;
|
||||
var selected = a0.selected;
|
||||
var value = Object.create(null);
|
||||
value.selected = 0;
|
||||
var value2 = copyDataProperties({}, a0, value, r4);
|
||||
var object2 = {checked: selected, selected: selected};
|
||||
copyDataProperties(object2, value2, value);
|
||||
return {accessibilityRole: 'radio', accessibilityState: object2};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
/* Metro module 3868; source: ../discord_common/js/packages/design/native.tsx; dependencies: [2, 3869, 3874, 3875, 3876, 3870, 3877, 3878, 3879, 3880, 3881, 3882, 3883, 3961, 3932, 3962] */
|
||||
function _fun31996(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4007:6, offset: 0x010097a7, size: 819 bytes, params: 8, frame: 22
|
||||
var propertyName;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/native.tsx');
|
||||
for (propertyName in require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */) {
|
||||
exports[propertyName] = (require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3874) /* metro dependency 3874: useA11yRolesNative */) {
|
||||
exports[propertyName] = (require(3874) /* metro dependency 3874: useA11yRolesNative */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3875) /* metro dependency 3875: AccessibilityPreferencesContext */) {
|
||||
exports[propertyName] = (require(3875) /* metro dependency 3875: AccessibilityPreferencesContext */)[propertyName];
|
||||
}
|
||||
value = require(3876) /* metro dependency 3876: AccessibilityConstants */;
|
||||
for (propertyName in value) {
|
||||
exports[propertyName] = value[propertyName];
|
||||
}
|
||||
for (propertyName in require(3870) /* metro dependency 3870: AccessibilityAnnouncerLiveRegionNative */) {
|
||||
exports[propertyName] = (require(3870) /* metro dependency 3870: AccessibilityAnnouncerLiveRegionNative */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3877) /* metro dependency 3877: ThemeUtils */) {
|
||||
exports[propertyName] = (require(3877) /* metro dependency 3877: ThemeUtils */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3878) /* metro dependency 3878: MotionTypes */) {
|
||||
exports[propertyName] = (require(3878) /* metro dependency 3878: MotionTypes */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3879) /* metro dependency 3879: ThemeContext */) {
|
||||
exports[propertyName] = (require(3879) /* metro dependency 3879: ThemeContext */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3880) /* metro dependency 3880: ThemeContextProvider */) {
|
||||
exports[propertyName] = (require(3880) /* metro dependency 3880: ThemeContextProvider */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3881) /* metro dependency 3881: ThemeTypes */) {
|
||||
exports[propertyName] = (require(3881) /* metro dependency 3881: ThemeTypes */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3882) /* metro dependency 3882: ThemeContextFlags */) {
|
||||
exports[propertyName] = (require(3882) /* metro dependency 3882: ThemeContextFlags */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3883) /* metro dependency 3883: generated */) {
|
||||
exports[propertyName] = (require(3883) /* metro dependency 3883: generated */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3961) /* metro dependency 3961: Colors */) {
|
||||
exports[propertyName] = (require(3961) /* metro dependency 3961: Colors */)[propertyName];
|
||||
}
|
||||
const ManaContext = (require(3932) /* metro dependency 3932: ManaContextNative */).ManaContext;
|
||||
exports.ManaContext = ManaContext;
|
||||
const ManaContextProvider = (require(3932) /* metro dependency 3932: ManaContextNative */).ManaContextProvider;
|
||||
exports.ManaContextProvider = ManaContextProvider;
|
||||
const useManaContext = (require(3932) /* metro dependency 3932: ManaContextNative */).useManaContext;
|
||||
exports.useManaContext = useManaContext;
|
||||
exports.isImage = (require(3962) /* metro dependency 3962: GraphicTypesNative */).isImage;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/* Metro module 3967; source: ../discord_common/js/packages/design/shared.tsx; dependencies: [2, 3869, 3875, 3876, 3877, 3879, 3880, 3881, 3882] */
|
||||
function _fun32506(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4116:6, offset: 0x01018236, size: 474 bytes, params: 8, frame: 22
|
||||
var propertyName;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/shared.tsx');
|
||||
for (propertyName in require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */) {
|
||||
exports[propertyName] = (require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3875) /* metro dependency 3875: AccessibilityPreferencesContext */) {
|
||||
exports[propertyName] = (require(3875) /* metro dependency 3875: AccessibilityPreferencesContext */)[propertyName];
|
||||
}
|
||||
value = require(3876) /* metro dependency 3876: AccessibilityConstants */;
|
||||
for (propertyName in value) {
|
||||
exports[propertyName] = value[propertyName];
|
||||
}
|
||||
for (propertyName in require(3877) /* metro dependency 3877: ThemeUtils */) {
|
||||
exports[propertyName] = (require(3877) /* metro dependency 3877: ThemeUtils */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3879) /* metro dependency 3879: ThemeContext */) {
|
||||
exports[propertyName] = (require(3879) /* metro dependency 3879: ThemeContext */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3880) /* metro dependency 3880: ThemeContextProvider */) {
|
||||
exports[propertyName] = (require(3880) /* metro dependency 3880: ThemeContextProvider */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3881) /* metro dependency 3881: ThemeTypes */) {
|
||||
exports[propertyName] = (require(3881) /* metro dependency 3881: ThemeTypes */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(3882) /* metro dependency 3882: ThemeContextFlags */) {
|
||||
exports[propertyName] = (require(3882) /* metro dependency 3882: ThemeContextFlags */)[propertyName];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Metro module 13551; source: ../discord_common/js/packages/design/shared/ThemeTypes.tsx; dependencies: [2] */
|
||||
function _fun102936(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13741:6, offset: 0x022502f0, size: 194 bytes, params: 8, frame: 18
|
||||
var object3;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object3 = {'DARK': 'dark', 'LIGHT': 'light', 'MIDNIGHT': 'midnight', 'DARKER': 'darker'};
|
||||
const Map = global.Map;
|
||||
const MIDNIGHT = object3.MIDNIGHT;
|
||||
let DARK = object3.DARK;
|
||||
const items2 = [[MIDNIGHT, DARK]];
|
||||
const DARKER = object3.DARKER;
|
||||
DARK = object3.DARK;
|
||||
items2[1] = [DARKER, DARK];
|
||||
const map = new Map(items2);
|
||||
const object4 = {Themes: object3};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/shared/ThemeTypes.tsx');
|
||||
exports.ThemeTypes = object3;
|
||||
exports.ThemeExtends = map;
|
||||
exports._private = object4;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/* Metro module 3877; source: ../discord_common/js/packages/design/utils/ThemeUtils.tsx; dependencies: [698, 2] */
|
||||
function _fun32032(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4016:6, offset: 0x0100a28b, size: 105 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/utils/ThemeUtils.tsx');
|
||||
exports.isThemeLight = function(a0) {
|
||||
var LIGHT = require(dependencyMap[0]).ThemeTypes.LIGHT;
|
||||
return a0 === LIGHT;
|
||||
};
|
||||
exports.isThemeDark = function(a0) {
|
||||
if (require(dependencyMap[0]).ThemeTypes.DARK === a0) {
|
||||
return true;
|
||||
}
|
||||
if (require(dependencyMap[0]).ThemeTypes.MIDNIGHT === a0) {
|
||||
return true;
|
||||
}
|
||||
if (require(dependencyMap[0]).ThemeTypes.DARKER === a0) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
/* Metro module 681; source: ../discord_common/js/packages/design/utils/requestSafeIdleCallback.tsx; dependencies: [682, 2] */
|
||||
function _fun8272(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#8272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:788:6, offset: 0x00d3dd14, size: 122 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let env0_0 = (require(682) /* metro dependency 682: GlobalUtils */).getGlobalObject();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/utils/requestSafeIdleCallback.tsx');
|
||||
exports.setOriginWindow = function(a0) {
|
||||
env0_0 = a0;
|
||||
};
|
||||
exports.requestSafeIdleCallback = requestSafeIdleCallback;
|
||||
}
|
||||
|
||||
function requestSafeIdleCallback(a0, a1) { // fn#8274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:788:305, offset: 0x00d3dd8e, size: 168 bytes, params: 3, frame: 17
|
||||
var timeout;
|
||||
var setTimeout;
|
||||
const env0_0 = a0;
|
||||
const binding = env0_0;
|
||||
let value = undefined;
|
||||
if (value === binding) {
|
||||
var env0_6 = binding.setTimeout(a0, 0);
|
||||
} else {
|
||||
if (binding.requestIdleCallback == null) {
|
||||
var env0_6 = binding.setTimeout(a0, 0);
|
||||
return _fun8278;
|
||||
}
|
||||
if (binding.cancelIdleCallback != null) {
|
||||
var env0_3;
|
||||
var env0_5 = binding.requestIdleCallback(requestSafeIdleCallbackRunOnce, a1);
|
||||
setTimeout = binding.setTimeout;
|
||||
timeout = a1 == null ? value : a1.timeout;
|
||||
value = 1000;
|
||||
env0_3 = Reflect.apply(setTimeout, binding, [_fun8276, timeout ?? value]);
|
||||
return _fun8277;
|
||||
}
|
||||
var env0_6 = binding.setTimeout(a0, 0);
|
||||
}
|
||||
return _fun8278;
|
||||
}
|
||||
|
||||
function requestSafeIdleCallbackRunOnce() { // fn#8275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:788:449, owner: requestSafeIdleCallback.runOnce, offset: 0x00d3de36, size: 63 bytes, params: 1, frame: 13
|
||||
if (!env0_2) {
|
||||
if (env0_3 != null) {
|
||||
env0_1.clearTimeout(env0_3);
|
||||
}
|
||||
env0_0();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun8276() { // fn#8276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:788:563, offset: 0x00d3de75, size: 41 bytes, params: 1, frame: 12
|
||||
if (!env0_2) {
|
||||
env0_1.cancelIdleCallback(env0_5);
|
||||
}
|
||||
requestSafeIdleCallbackRunOnce();
|
||||
}
|
||||
|
||||
function _fun8277() { // fn#8277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:788:649, offset: 0x00d3de9e, size: 59 bytes, params: 1, frame: 13
|
||||
env0_1.cancelIdleCallback(env0_5);
|
||||
if (env0_3 != null) {
|
||||
env0_1.clearTimeout(env0_3);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun8278() { // fn#8278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:788:745, offset: 0x00d3ded9, size: 26 bytes, params: 1, frame: 11
|
||||
env0_1.clearTimeout(env0_6);
|
||||
}
|
||||
|
||||
+91
@@ -0,0 +1,91 @@
|
||||
/* Metro module 4292; source: ../discord_common/js/packages/discord-native-types/DiscordNative.tsx; dependencies: [7, 6, 15, 17, 18, 162, 2] */
|
||||
function _fun36354(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#36354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4464:6, offset: 0x0108a943, size: 514 bytes, params: 8, frame: 23
|
||||
var object3;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_1 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(162) /* metro dependency 162 */;
|
||||
const Error = global.Error;
|
||||
value = value(Error);
|
||||
value = _fun36358(value);
|
||||
object3 = {HasRTCConnection: 0};
|
||||
object3[0] = 'HasRTCConnection';
|
||||
object3.IsSendingVideo = 1;
|
||||
object3[1] = 'IsSendingVideo';
|
||||
object3.IsSendingStream = 2;
|
||||
object3[2] = 'IsSendingStream';
|
||||
object3.IsReceivingVideo = 3;
|
||||
object3[3] = 'IsReceivingVideo';
|
||||
object3.IsReceivingStream = 4;
|
||||
object3[4] = 'IsReceivingStream';
|
||||
object3.VideoMediaSessionId = 5;
|
||||
object3[5] = 'VideoMediaSessionId';
|
||||
object3.StreamMediaSessionId = 6;
|
||||
object3[6] = 'StreamMediaSessionId';
|
||||
object3.IntentionalCrashReason = 7;
|
||||
object3[7] = 'IntentionalCrashReason';
|
||||
const object4 = {RendererProcessDelayed: 0};
|
||||
object4[0] = 'RendererProcessDelayed';
|
||||
object4.RendererProcess = 1;
|
||||
object4[1] = 'RendererProcess';
|
||||
object4.MainProcess = 2;
|
||||
object4[2] = 'MainProcess';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/discord-native-types/DiscordNative.tsx');
|
||||
exports.SystemServiceNotAvailableError = value;
|
||||
exports.StoredCrashInformation = object3;
|
||||
exports.JSExceptionLocation = object4;
|
||||
exports.DesktopSources = {WINDOW: 'window', SCREEN: 'screen', CAMERA: 'camera'};
|
||||
exports.ThumbarButtonName = {VIDEO: 'VIDEO', MUTE: 'MUTE', DEAFEN: 'DEAFEN', DISCONNECT: 'DISCONNECT'};
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_36355() { // fn#36355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4464:148, offset: 0x0108ab45, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_36355_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun36358(a0) { // fn#36358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4464:347, offset: 0x0108aba3, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = SystemServiceNotAvailableError;
|
||||
env0_4(closure, a0);
|
||||
return env0_0(closure);
|
||||
}
|
||||
|
||||
function SystemServiceNotAvailableError() { // fn#36359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4464:359, offset: 0x0108abcb, size: 124 bytes, params: 1, frame: 19
|
||||
let value = environment.__proto__;
|
||||
env1_1(this, SystemServiceNotAvailableError);
|
||||
const items2 = ['System service not available'];
|
||||
const value3 = env1_3(SystemServiceNotAvailableError);
|
||||
value = env1_2(this, _isNativeReflectConstruct_36355() ? global.Reflect.construct(value3, items2,
|
||||
env1_3(this).constructor) : value3.apply(this, items2));
|
||||
value.name = 'SystemServiceNotAvailableError';
|
||||
return value;
|
||||
}
|
||||
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
/* Metro module 6733; source: ../discord_common/js/packages/discord-native-types/IPCEvents.tsx; dependencies: [2] */
|
||||
function _fun53136(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6911:6, offset: 0x0133e0cb, size: 2194 bytes, params: 8, frame: 16
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/discord-native-types/IPCEvents.tsx');
|
||||
exports.IPCEvents = {ACCESSIBILITY_GET_ENABLED: 'DISCORD_ACCESSIBILITY_GET_ENABLED',
|
||||
APP_ASYNC_INDEX_TSX_LOADED: 'DISCORD_APP_ASYNC_INDEX_TSX_LOADED', APP_BADGE_SET: 'DISCORD_APP_BADGE_SET',
|
||||
APP_GET_RELEASE_CHANNEL_SYNC: 'DISCORD_APP_GET_RELEASE_CHANNEL_SYNC',
|
||||
APP_GET_HOST_VERSION_SYNC: 'DISCORD_APP_GET_HOST_VERSION_SYNC',
|
||||
APP_GET_ANALYTICS_EVENTS: 'DISCORD_APP_GET_ANALYTICS_EVENTS',
|
||||
APP_GET_BUILD_NUMBER: 'DISCORD_APP_GET_BUILD_NUMBER', APP_GET_ARCH: 'DISCORD_APP_GET_ARCH',
|
||||
APP_GET_MODULE_VERSIONS: 'DISCORD_APP_GET_MODULE_VERSIONS', APP_GET_PATH: 'DISCORD_APP_GET_PATH',
|
||||
APP_SET_BADGE_COUNT: 'DISCORD_APP_SET_BADGE_COUNT', APP_DOCK_SET_BADGE: 'DISCORD_APP_DOCK_SET_BADGE',
|
||||
APP_DOCK_BOUNCE: 'DISCORD_APP_DOCK_BOUNCE', APP_DOCK_CANCEL_BOUNCE: 'DISCORD_APP_DOCK_CANCEL_BOUNCE',
|
||||
APP_LOADED: 'DISCORD_APP_LOADED', APP_PUSH_ANALYTICS: 'DISCORD_APP_PUSH_ANALYTICS',
|
||||
APP_RELAUNCH: 'DISCORD_APP_RELAUNCH', APP_VIEWED: 'DISCORD_APP_VIEWED',
|
||||
APP_FIRST_RENDER_AFTER_READY_PAYLOAD: 'DISCORD_APP_FIRST_RENDER_AFTER_READY_PAYLOAD',
|
||||
APP_GET_MAIN_BUNDLE_STATS: 'DISCORD_APP_GET_MAIN_BUNDLE_STATS',
|
||||
APP_MAIN_BUNDLE_STATS: 'DISCORD_APP_MAIN_BUNDLE_STATS',
|
||||
APP_GET_DEFAULT_DOUBLE_CLICK_ACTION: 'DISCORD_APP_GET_DEFAULT_DOUBLE_CLICK_ACTION',
|
||||
APP_PAUSE_FRAME_EVICTOR: 'DISCORD_APP_PAUSE_FRAME_EVICTOR',
|
||||
APP_UNPAUSE_FRAME_EVICTOR: 'DISCORD_APP_UNPAUSE_FRAME_EVICTOR',
|
||||
APP_GET_PREFERRED_SYSTEM_LANGUAGES: 'DISCORD_APP_GET_PREFERRED_SYSTEM_LANGUAGES',
|
||||
APP_GET_OPEN_ON_START: 'DISCORD_APP_GET_OPEN_ON_START', CLIPBOARD_COPY: 'DISCORD_CLIPBOARD_COPY',
|
||||
CLIPBOARD_CUT: 'DISCORD_CLIPBOARD_CUT', CLIPBOARD_PASTE: 'DISCORD_CLIPBOARD_PASTE',
|
||||
LOAD_CLIP: 'DISCORD_LOAD_CLIP', LOAD_CLIPS_DIRECTORY: 'DISCORD_LOAD_CLIPS_DIRECTORY',
|
||||
DELETE_CLIP: 'DISCORD_DELETE_CLIP', CHECK_FOR_UPDATES: 'DISCORD_CHECK_FOR_UPDATES',
|
||||
DESKTOP_CAPTURER_GET_SOURCES: 'DISCORD_DESKTOP_CAPTURER_GET_SOURCES', CONSTANTS_GET: 'DISCORD_CONSTANTS_GET',
|
||||
CRASH_REPORTER_UPDATE_METADATA: 'DISCORD_CRASH_REPORTER_UPDATE_METADATA',
|
||||
CRASH_REPORTER_NEW_CRASH: 'DISCORD_CRASH_REPORTER_NEW_CRASH',
|
||||
FEATURES_GET_BROWSER_FEATURES: 'DISCORD_FEATURES_GET_BROWSER_FEATURES',
|
||||
FILE_MANAGER_GET_MODULE_PATH: 'DISCORD_FILE_MANAGER_GET_MODULE_PATH',
|
||||
FILE_MANAGER_GET_MODULE_DATA_PATH_SYNC: 'DISCORD_FILE_MANAGER_GET_MODULE_DATA_PATH_SYNC',
|
||||
FILE_MANAGER_GET_MODULE_LOG_PATH: 'DISCORD_FILE_MANAGER_GET_MODULE_LOG_PATH_SYNC',
|
||||
FILE_MANAGER_GET_MODULE_LOG_PATH_SYNC: 'DISCORD_FILE_MANAGER_GET_MODULE_LOG_PATH_SYNC',
|
||||
FILE_MANAGER_GET_ASSET_CACHE_PATH: 'DISCORD_FILE_MANAGER_GET_ASSET_CACHE_PATH',
|
||||
FILE_MANAGER_GET_ASSET_CACHE_PATH_SYNC: 'DISCORD_FILE_MANAGER_GET_ASSET_CACHE_PATH_SYNC',
|
||||
FILE_MANAGER_SHOW_SAVE_DIALOG: 'DISCORD_FILE_MANAGER_SHOW_SAVE_DIALOG',
|
||||
FILE_MANAGER_SHOW_OPEN_DIALOG: 'DISCORD_FILE_MANAGER_SHOW_OPEN_DIALOG',
|
||||
FILE_MANAGER_SHOW_ITEM_IN_FOLDER: 'DISCORD_FILE_MANAGER_SHOW_ITEM_IN_FOLDER',
|
||||
GPU_SETTINGS_SET_ENABLE_HWACCEL: 'DISCORD_GPU_SETTINGS_SET_ENABLE_HWACCEL',
|
||||
GPU_SETTINGS_GET_ENABLE_HWACCEL_SYNC: 'DISCORD_GPU_SETTINGS_GET_ENABLE_HWACCEL_SYNC',
|
||||
GPU_SETTINGS_SET_CHROMIUM_SWITCHES: 'DISCORD_GPU_SETTINGS_SET_CHROMIUM_SWITCHES',
|
||||
GPU_SETTINGS_SET_SETTING: 'DISCORD_GPU_SETTINGS_SET_SETTING',
|
||||
HARDWARE_GET_DISPLAY_COUNT: 'DISCORD_HARDWARE_GET_DISPLAY_COUNT',
|
||||
INTENTS_SET_ACTIVITY: 'DISCORD_INTENTS_SET_ACTIVITY',
|
||||
INTENTS_RESIGN_ACTIVITY: 'DISCORD_INTENTS_RESIGN_ACTIVITY',
|
||||
NATIVE_MODULES_GET_PATHS: 'DISCORD_NATIVE_MODULES_GET_PATHS',
|
||||
NATIVE_MODULES_INSTALL: 'DISCORD_NATIVE_MODULES_INSTALL',
|
||||
NATIVE_MODULES_FINISH_UPDATER_BOOTSTRAP: 'DISCORD_NATIVE_MODULES_FINISH_UPDATER_BOOTSTRAP',
|
||||
NATIVE_MODULES_GET_HAS_NEW_UPDATER: 'DISCORD_NATIVE_MODULES_GET_HAS_NEW_UPDATER',
|
||||
NATIVE_MODULES_GET_MODULE_PATH: 'DISCORD_NATIVE_MODULES_GET_MODULE_PATH',
|
||||
NAVIGATION_HISTORY_CLEAR: 'DISCORD_NAVIGATION_HISTORY_CLEAR', NOTIFICATION_CLOSE: 'DISCORD_NOTIFICATION_CLOSE',
|
||||
NOTIFICATION_SHOW: 'DISCORD_NOTIFICATION_SHOW', NOTIFICATIONS_CLEAR: 'DISCORD_NOTIFICATIONS_CLEAR',
|
||||
NOTIFICATIONS_GET_AUTHORIZATION: 'DISCORD_NOTIFICATIONS_GET_AUTHORIZATION',
|
||||
NOTIFICATIONS_GET_SETTINGS: 'DISCORD_NOTIFICATIONS_GET_SETTINGS',
|
||||
NOTIFICATIONS_GET_MODULE_STATUS: 'DISCORD_NOTIFICATIONS_GET_MODULE_STATUS',
|
||||
NOTIFICATIONS_SEND_NOTIFICATION: 'DISCORD_NOTIFICATIONS_SEND_NOTIFICATION',
|
||||
NOTIFICATIONS_REMOVE_NOTIFICATIONS: 'DISCORD_NOTIFICATIONS_REMOVE_NOTIFICATIONS',
|
||||
NOTIFICATIONS_REMOVE_ALL_NOTIFICATIONS: 'DISCORD_NOTIFICATIONS_REMOVE_ALL_NOTIFICATIONS',
|
||||
NOTIFICATIONS_RECEIVED_RESPONSE: 'DISCORD_NOTIFICATIONS_RECEIVED_RESPONSE',
|
||||
REQUEST_OPEN_EXTERNAL_URL: 'DISCORD_REQUEST_OPEN_EXTERNAL_URL', OPEN_EXTERNAL_URL: 'DISCORD_OPEN_EXTERNAL_URL',
|
||||
POWER_MONITOR_RESUME: 'DISCORD_POWER_MONITOR_RESUME', POWER_MONITOR_SUSPEND: 'DISCORD_POWER_MONITOR_SUSPEND',
|
||||
POWER_MONITOR_LOCK_SCREEN: 'DISCORD_POWER_MONITOR_LOCK_SCREEN',
|
||||
POWER_MONITOR_UNLOCK_SCREEN: 'DISCORD_POWER_MONITOR_UNLOCK_SCREEN',
|
||||
POWER_MONITOR_GET_SYSTEM_IDLE_TIME: 'DISCORD_POWER_MONITOR_GET_SYSTEM_IDLE_TIME',
|
||||
POWER_SAVE_BLOCKER_BLOCK_DISPLAY_SLEEP: 'DISCORD_POWER_SAVE_BLOCKER_BLOCK_DISPLAY_SLEEP',
|
||||
POWER_SAVE_BLOCKER_UNBLOCK_DISPLAY_SLEEP: 'DISCORD_POWER_SAVE_BLOCKER_UNBLOCK_DISPLAY_SLEEP',
|
||||
POWER_SAVE_BLOCKER_CLEANUP_DISPLAY_SLEEP: 'DISCORD_POWER_SAVE_BLOCKER_CLEANUP_DISPLAY_SLEEP',
|
||||
PROCESS_UTILS_GET_CPU_USAGE: 'DISCORD_PROCESS_UTILS_GET_CPU_USAGE',
|
||||
PROCESS_UTILS_FLUSH_DNS_CACHE: 'DISCORD_PROCESS_UTILS_FLUSH_DNS_CACHE',
|
||||
PROCESS_UTILS_FLUSH_COOKIES: 'DISCORD_PROCESS_UTILS_FLUSH_COOKIES',
|
||||
PROCESS_UTILS_FLUSH_STORAGE_DATA: 'DISCORD_PROCESS_UTILS_FLUSH_STORAGE_DATA',
|
||||
PROCESS_UTILS_GET_MAIN_ARGV_SYNC: 'DISCORD_PROCESS_UTILS_GET_MAIN_ARGV_SYNC',
|
||||
PROCESS_UTILS_GET_LAST_CRASH: 'DISCORD_PROCESS_UTILS_GET_LAST_CRASH',
|
||||
PROCESS_UTILS_SET_CRASH_REASON: 'DISCORD_PROCESS_UTILS_SET_CRASH_REASON',
|
||||
PROCESS_UTILS_SET_CRASH_INFORMATION: 'DISCORD_PROCESS_UTILS_SET_CRASH_INFORMATION',
|
||||
PROCESS_UTILS_SET_MEMORY_INFORMATION: 'DISCORD_PROCESS_UTILS_SET_MEMORY_INFORMATION',
|
||||
PROCESS_UTILS_GET_SYSTEM_INFO: 'DISCORD_PROCESS_UTILS_GET_SYSTEM_INFO',
|
||||
PROCESS_UTILS_GET_GPU_PROCESS_ID: 'DISCORD_PROCESS_UTILS_GET_GPU_PROCESS_ID',
|
||||
PROCESS_UTILS_GET_SYSTEM_METRICS: 'DISCORD_PROCESS_UTILS_GET_SYSTEM_METRICS',
|
||||
QUIT_AND_INSTALL: 'DISCORD_QUIT_AND_INSTALL',
|
||||
SAFE_STORAGE_DECRYPT_STRING: 'DISCORD_SAFE_STORAGE_DECRYPT_STRING',
|
||||
SAFE_STORAGE_ENCRYPT_STRING: 'DISCORD_SAFE_STORAGE_ENCRYPT_STRING',
|
||||
SAFE_STORAGE_IS_ENCRYPTION_AVAILABLE: 'DISCORD_SAFE_STORAGE_IS_ENCRYPTION_AVAILABLE',
|
||||
SEARCH_INDEX_DOMAINS: 'DISCORD_SEARCH_INDEX_DOMAINS', SEARCH_CLEAR_INDEX: 'DISCORD_SEARCH_CLEAR_INDEX',
|
||||
SEARCH_DELETE_DOMAINS: 'DISCORD_SEARCH_DELETE_DOMAINS', SEARCH_DELETE_ITEMS: 'DISCORD_SEARCH_DELETE_ITEMS',
|
||||
SETTINGS_GET: 'DISCORD_SETTINGS_GET', SETTINGS_SET: 'DISCORD_SETTINGS_SET',
|
||||
SETTINGS_GET_SYNC: 'DISCORD_SETTINGS_GET_SYNC',
|
||||
SETTINGS_UPDATE_BACKGROUND_COLOR: 'DISCORD_SETTINGS_UPDATE_BACKGROUND_COLOR',
|
||||
SPELLCHECK_RESULT: 'DISCORD_SPELLCHECK_RESULT',
|
||||
SPELLCHECK_REPLACE_MISSPELLING: 'DISCORD_SPELLCHECK_REPLACE_MISSPELLING',
|
||||
SPELLCHECK_GET_AVAILABLE_DICTIONARIES: 'DISCORD_SPELLCHECK_GET_AVAILABLE_DICTIONARIES',
|
||||
SPELLCHECK_SET_LOCALE: 'DISCORD_SPELLCHECK_SET_LOCALE',
|
||||
SPELLCHECK_SET_LEARNED_WORDS: 'DISCORD_SPELLCHECK_SET_LEARNED_WORDS',
|
||||
SYSTEM_TRAY_SET_ICON: 'DISCORD_SYSTEM_TRAY_SET_ICON',
|
||||
SYSTEM_TRAY_SET_APPLICATIONS: 'DISCORD_SYSTEM_TRAY_SET_APPLICATIONS',
|
||||
THUMBAR_BUTTONS_UPDATE: 'DISCORD_THUMBAR_BUTTONS_UPDATE',
|
||||
THUMBAR_BUTTONS_CLICKED: 'DISCORD_THUMBAR_BUTTONS_CLICKED',
|
||||
TOGGLE_MINIMIZE_TO_TRAY: 'DISCORD_TOGGLE_MINIMIZE_TO_TRAY',
|
||||
TOGGLE_OPEN_ON_STARTUP: 'DISCORD_TOGGLE_OPEN_ON_STARTUP',
|
||||
TOGGLE_START_MINIMIZED: 'DISCORD_TOGGLE_START_MINIMIZED',
|
||||
UPDATE_OPEN_ON_STARTUP: 'DISCORD_UPDATE_OPEN_ON_STARTUP',
|
||||
UNHANDLED_JS_EXCEPTION: 'DISCORD_UNHANDLED_JS_EXCEPTION',
|
||||
UPDATER_HISTORY_QUERY_AND_TRUNCATE: 'DISCORD_UPDATER_HISTORY_QUERY_AND_TRUNCATE',
|
||||
UPDATED_QUOTES: 'DISCORD_UPDATED_QUOTES', USER_DATA_CACHE_DELETE: 'DISCORD_USER_DATA_CACHE_DELETE',
|
||||
USER_DATA_CACHE_GET: 'DISCORD_USER_DATA_CACHE_GET', USER_DATA_CACHE_SAVE: 'DISCORD_USER_DATA_CACHE_SAVE',
|
||||
WINDOW_BLUR: 'DISCORD_WINDOW_BLUR', WINDOW_CLOSE: 'DISCORD_WINDOW_CLOSE', WINDOW_FOCUS: 'DISCORD_WINDOW_FOCUS',
|
||||
WINDOW_MAXIMIZE: 'DISCORD_WINDOW_MAXIMIZE', WINDOW_MINIMIZE: 'DISCORD_WINDOW_MINIMIZE',
|
||||
WINDOW_SET_MINIMUM_SIZE: 'DISCORD_WINDOW_SET_MINIMUM_SIZE', WINDOW_RESTORE: 'DISCORD_WINDOW_RESTORE',
|
||||
WEBAUTHN_REGISTER_MAC: 'DISCORD_WEBAUTHN_REGISTER_MAC',
|
||||
WEBAUTHN_AUTHENTICATE_MAC: 'DISCORD_WEBAUTHN_AUTHENTICATE_MAC',
|
||||
WEBAUTHN_SIGNAL_ALL_ACCEPTED_CREDENTIALS: 'DISCORD_WEBAUTHN_SIGNAL_ALL_ACCEPTED_CREDENTIALS',
|
||||
WEBAUTHN_SIGNAL_CURRENT_USER_DETAILS: 'DISCORD_WEBAUTHN_SIGNAL_CURRENT_USER_DETAILS',
|
||||
WEBAUTHN_SIGNAL_UNKNOWN_CREDENTIAL: 'DISCORD_WEBAUTHN_SIGNAL_UNKNOWN_CREDENTIAL',
|
||||
WINDOW_FLASH_FRAME: 'DISCORD_WINDOW_FLASH_FRAME', WINDOW_TOGGLE_FULLSCREEN: 'DISCORD_WINDOW_TOGGLE_FULLSCREEN',
|
||||
WINDOW_SET_BACKGROUND_THROTTLING: 'DISCORD_WINDOW_SET_BACKGROUND_THROTTLING',
|
||||
WINDOW_SET_PROGRESS_BAR: 'DISCORD_WINDOW_SET_PROGRESS_BAR',
|
||||
WINDOW_IS_ALWAYS_ON_TOP: 'DISCORD_WINDOW_IS_ALWAYS_ON_TOP',
|
||||
WINDOW_SET_ALWAYS_ON_TOP: 'DISCORD_WINDOW_SET_ALWAYS_ON_TOP',
|
||||
WINDOW_OPEN_DOCUMENT_PIP: 'DISCORD_WINDOW_OPEN_DOCUMENT_PIP',
|
||||
WINDOW_DEVTOOLS_OPENED: 'DISCORD_WINDOW_DEVTOOLS_OPENED',
|
||||
WINDOW_DEVTOOLS_CLOSED: 'DISCORD_WINDOW_DEVTOOLS_CLOSED',
|
||||
WINDOW_SET_CONTENT_PROTCTION: 'DISCORD_WINDOW_SET_CONTENT_PROTCTION',
|
||||
WINDOW_SET_WINDOW_CONTENT_PROTECTION: 'DISCORD_WINDOW_SET_WINDOW_CONTENT_PROTECTION',
|
||||
WINDOW_GET_NATIVE_HANDLE: 'DISCORD_WINDOW_GET_NATIVE_HANDLE',
|
||||
WINDOW_GET_MEDIA_SOURCE_ID: 'DISCORD_WINDOW_GET_MEDIA_SOURCE_ID',
|
||||
WINDOW_SET_FOCUSABLE: 'DISCORD_WINDOW_SET_FOCUSABLE', WINDOW_SHOW_INACTIVE: 'DISCORD_WINDOW_SHOW_INACTIVE',
|
||||
WINDOW_SET_TRAFFIC_LIGHT_POSITION: 'DISCORD_WINDOW_SET_TRAFFIC_LIGHT_POSITION',
|
||||
WINDOW_SET_FRAME_RATE: 'DISCORD_WINDOW_SET_FRAME_RATE', GET_MOUSE_COORDINATES: 'DISCORD_GET_MOUSE_COORDINATES'};
|
||||
}
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/* Metro module 9462; source: ../discord_common/js/packages/dynamic-links/DynamicLinkTemplates.tsx; dependencies: [2] */
|
||||
function _fun73584(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9648:6, offset: 0x01d72360, size: 130 bytes, params: 8, frame: 16
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/dynamic-links/DynamicLinkTemplates.tsx');
|
||||
exports.getInviteDynamicLinkTemplate = function(a0) {
|
||||
var protocol = global.location.protocol;
|
||||
var INVITE_HOST = global.window.GLOBAL_ENV.INVITE_HOST;
|
||||
return '' + protocol + '//' + INVITE_HOST + '/' + a0;
|
||||
};
|
||||
exports.getGuildTemplateDynamicLinkTemplate = function(a0) {
|
||||
var protocol = global.location.protocol;
|
||||
var GUILD_TEMPLATE_HOST = global.window.GLOBAL_ENV.GUILD_TEMPLATE_HOST;
|
||||
return '' + protocol + '//' + GUILD_TEMPLATE_HOST + '/' + a0;
|
||||
};
|
||||
exports.getDefaultDynamicLinkTemplate = function() {
|
||||
var protocol = global.location.protocol;
|
||||
var WEBAPP_ENDPOINT = global.window.GLOBAL_ENV.WEBAPP_ENDPOINT;
|
||||
return '' + protocol + '//' + WEBAPP_ENDPOINT + '/channels/@me';
|
||||
};
|
||||
exports.getChannelDynamicLinkTemplate = function(a0) {
|
||||
var value = a0;
|
||||
var protocol = global.location.protocol;
|
||||
var WEBAPP_ENDPOINT = global.window.GLOBAL_ENV.WEBAPP_ENDPOINT;
|
||||
return '' + protocol + '//' + WEBAPP_ENDPOINT + '/channels/' + (value || '@me');
|
||||
};
|
||||
}
|
||||
|
||||
+408
@@ -0,0 +1,408 @@
|
||||
/* Metro module 9463; source: ../discord_common/js/packages/dynamic-links/generateDynamicLink.tsx; dependencies: [29, 57, 654, 491, 9464, 2] */
|
||||
function _fun73589(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9649:6, offset: 0x01d724fd, size: 196 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_73592 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const env0_3 = ['utmSource', 'androidFallbackLink', 'iosFallbackLink'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
const env0_5 = importDefault(57) /* metro dependency 57 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/dynamic-links/generateDynamicLink.tsx');
|
||||
exports.default = generateDynamicLink;
|
||||
exports.generateAttemptId = generateAttemptId;
|
||||
exports.parseDynamicLink = parseDynamicLink;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_73590(a0, a1) { // fn#73590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9649:180, offset: 0x01d725c1, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun73591;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_73592(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_73592(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_73592(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun73591;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function generateDynamicLink(a0, a1) { // fn#73593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9649:1241, offset: 0x01d72735, size: 704 bytes, params: 3, frame: 36
|
||||
var r9;
|
||||
var r6;
|
||||
var family;
|
||||
var r2;
|
||||
var propertyName;
|
||||
var propertyName2;
|
||||
var property;
|
||||
var searchParams;
|
||||
var ua;
|
||||
var os;
|
||||
const utmSource = a1.utmSource;
|
||||
const androidFallbackLink = a1.androidFallbackLink;
|
||||
const iosFallbackLink = a1.iosFallbackLink;
|
||||
const binding = env0_4;
|
||||
const value2 = undefined;
|
||||
const value3 = binding(a1, env0_3);
|
||||
const URL = global.URL;
|
||||
const uRL = new URL(a0);
|
||||
const value6 = null;
|
||||
for (propertyName in value3) {
|
||||
property = value3[propertyName];
|
||||
if (value6 == property) {
|
||||
r9 = propertyName2;
|
||||
continue;
|
||||
}
|
||||
searchParams = uRL.searchParams;
|
||||
searchParams.set(propertyName, property);
|
||||
r9 = propertyName2;
|
||||
}
|
||||
const value7 = global.encodeURIComponent(uRL.toString());
|
||||
const value9 = global.encodeURIComponent('discord://app/open#' + uRL.toString());
|
||||
const value10 = global.encodeURIComponent((importDefault(9464) /* metro dependency 9464: getDescription */)());
|
||||
const RegExp = global.RegExp;
|
||||
const value12 = '(' + ['WebView', '(iPhone|iPod|iPad)(?!.*Safari/)'].join('|') + ')';
|
||||
const value13 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
||||
const regExp = new RegExp(value12, 'ig');
|
||||
if (value6 == (importDefault(654) /* metro dependency 654 */)) {
|
||||
r6 = value2;
|
||||
} else {
|
||||
ua = (importDefault(654) /* metro dependency 654 */).ua;
|
||||
r6 = value6 == ua ? value2 : ua.match(regExp instanceof Object ? regExp : value13);
|
||||
}
|
||||
r6 = (value6 == (importDefault(654) /* metro dependency 654 */) ? value2 : (importDefault(654) /* metro dependency 654 */).name) === 'Safari' && !(value6 != r6);
|
||||
if (value6 == (importDefault(654) /* metro dependency 654 */)) {
|
||||
family = value2;
|
||||
} else {
|
||||
os = (importDefault(654) /* metro dependency 654 */).os;
|
||||
family = value6 == os ? value2 : os.family;
|
||||
}
|
||||
const r12 = family !== 'iOS' || r6 ? 'true' : 'false';
|
||||
const r7 = value6 != androidFallbackLink ? global.encodeURIComponent(androidFallbackLink) : value6;
|
||||
const r4 = value6 != iosFallbackLink ? global.encodeURIComponent(iosFallbackLink) : value6;
|
||||
let value = '' + 'https://discordapp.onelink.me' + '/Hs5r/?deep_link_value=' + value7 + '&pid=' + utmSource + '&af_force_deeplink=' + r12 + '&af_og_description=' + value10 + '&af_dp=' + value9;
|
||||
if (value6 == r7) {
|
||||
r2 = value;
|
||||
} else {
|
||||
value += '&af_android_url=' + r7;
|
||||
r2 = value;
|
||||
}
|
||||
return value6 == r4 ? r2 : r2 + ('&af_ios_url=' + r4);
|
||||
}
|
||||
|
||||
function parseDynamicLink(a0) { // fn#73595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9649:2223, offset: 0x01d72a1a, size: 311 bytes, params: 2, frame: 21
|
||||
var r8;
|
||||
var URL;
|
||||
var prototype;
|
||||
var uRL;
|
||||
var value3;
|
||||
var searchParams;
|
||||
var get;
|
||||
var value4;
|
||||
var value5;
|
||||
var decodeURIComponent;
|
||||
var value6;
|
||||
var value8;
|
||||
var searchParams2;
|
||||
var value9;
|
||||
var object2;
|
||||
var value10;
|
||||
var _createForOfIteratorHelperLoose_73590Binding;
|
||||
var entries;
|
||||
var value12;
|
||||
var value13;
|
||||
var value14;
|
||||
var done;
|
||||
var value15;
|
||||
var binding;
|
||||
var value16;
|
||||
var property;
|
||||
var property2;
|
||||
var value17;
|
||||
var error;
|
||||
const value = undefined;
|
||||
if (!a0.startsWith('https://discordapp.onelink.me')) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
URL = global.URL;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
prototype = URL.prototype;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
uRL = new URL(a0);
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value3 = uRL instanceof Object ? uRL : undefined;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
searchParams = value3.searchParams;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
get = searchParams.get;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value4 = Reflect.apply(get, searchParams, ['deep_link_value']);
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value5 = value4 == null;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
if (value5) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
decodeURIComponent = global.decodeURIComponent;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value6 = decodeURIComponent(value4);
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
URL = global.URL;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
prototype = URL.prototype;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
uRL = new URL();
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value8 = uRL instanceof Object ? uRL : undefined;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
searchParams2 = value8.searchParams;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
get = searchParams.get;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value9 = Reflect.apply(get, searchParams, ['pid']);
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value10 = value9 != null;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object2.utmSource = value10 ? value9 : value;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
_createForOfIteratorHelperLoose_73590Binding = _createForOfIteratorHelperLoose_73590;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
entries = searchParams2.entries;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value12 = Reflect.apply(entries, searchParams2, []);
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value13 = _createForOfIteratorHelperLoose_73590Binding(value12);
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value14 = value13();
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
done = value14.done;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
if (!done) {
|
||||
r8 = value14;
|
||||
while (true) {
|
||||
try {
|
||||
value15 = r8.value;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
binding = env0_5;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value16 = binding(value15, 2);
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
property = value16[0];
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
property2 = value16[1];
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object2[property] = property2;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value17 = value13();
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
done = value17.done;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r8 = value17;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* Metro module 9464; source: ../discord_common/js/packages/dynamic-links/getDescription.tsx; dependencies: [2] */
|
||||
function _fun73596(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9650:6, offset: 0x01d72b51, size: 87 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/dynamic-links/getDescription.tsx');
|
||||
exports.default = function() {
|
||||
return '';
|
||||
};
|
||||
}
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
/* Metro module 490; source: ../discord_common/js/packages/fingerprint-utils/FingerprintUtils.tsx; dependencies: [2] */
|
||||
function _fun6413(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:540:6, offset: 0x00cf9a9f, size: 100 bytes, params: 8, frame: 17
|
||||
const closure = function(a0) {
|
||||
return a0.split('.')[0];
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/fingerprint-utils/FingerprintUtils.tsx');
|
||||
exports.extractId = closure;
|
||||
exports.maybeExtractId = maybeExtractId;
|
||||
}
|
||||
|
||||
function maybeExtractId(a0) { // fn#6415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:540:278, offset: 0x00cf9b1c, size: 28 bytes, params: 2, frame: 12
|
||||
const value = null;
|
||||
return value == a0 ? value : extractId(a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/* Metro module 8416; source: ../discord_common/js/packages/flash-list/index.js; dependencies: [31, 27, 33, 6361, 4017, 6277, 2, 6360] */
|
||||
function _fun66854(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8601:6, offset: 0x01c0cdfc, size: 361 bytes, params: 8, frame: 26
|
||||
var propertyName;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
(require(27) /* metro dependency 27 */).ScrollView;
|
||||
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const value2 = value.forwardRef(_fun66855);
|
||||
const reanimatedRexport = importDefault(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
let createAnimatedComponent = reanimatedRexport.createAnimatedComponent;
|
||||
const FlashList = (require(6361) /* metro dependency 6361 */).FlashList;
|
||||
const env0_3 = Reflect.apply(createAnimatedComponent, reanimatedRexport, [FlashList]);
|
||||
const value4 = value.forwardRef(_fun66856);
|
||||
const value5 = reanimatedRexport;
|
||||
createAnimatedComponent = value5.createAnimatedComponent;
|
||||
const MasonryFlashList = (require(6361) /* metro dependency 6361 */).MasonryFlashList;
|
||||
const env0_4 = Reflect.apply(createAnimatedComponent, value5, [MasonryFlashList]);
|
||||
value = value.forwardRef(_fun66857);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flash-list/index.js');
|
||||
for (propertyName in require(6361) /* metro dependency 6361 */) {
|
||||
exports[propertyName] = (require(6361) /* metro dependency 6361 */)[propertyName];
|
||||
}
|
||||
exports.FlashList = value2;
|
||||
exports.AnimatedFlashList = value4;
|
||||
exports.BottomSheetFlashList = importDefault(6360) /* metro dependency 6360 */;
|
||||
exports.BottomSheetMasonryFlashList = value;
|
||||
}
|
||||
|
||||
function _fun66855(a0, a1) { // fn#66855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8601:157, offset: 0x01c0cf65, size: 62 bytes, params: 3, frame: 14
|
||||
const FlashList = (require(6361) /* metro dependency 6361 */).FlashList;
|
||||
return <FlashList ref={a1} {...a0} />;
|
||||
}
|
||||
|
||||
function _fun66856(a0, a1) { // fn#66856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8601:269, offset: 0x01c0cfa3, size: 40 bytes, params: 3, frame: 13
|
||||
return ((Component) => <Component ref={a1} {...a0} />)(env0_3);
|
||||
}
|
||||
|
||||
function _fun66857(a0, a1) { // fn#66857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8601:372, offset: 0x01c0cfcb, size: 71 bytes, params: 3, frame: 15
|
||||
const binding = env0_4;
|
||||
const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
|
||||
return ((Component) => <Component ref={a1} renderScrollComponent={BottomSheetScrollView} {...a0} />)(binding);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* Metro module 633; source: ../discord_common/js/packages/flux/BatchedStoreListener.tsx; dependencies: [6, 7, 570, 2] */
|
||||
function _fun7149(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7149, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:6, offset: 0x00d0ffe2, size: 132 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun7150();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/BatchedStoreListener.tsx');
|
||||
exports.BatchedStoreListener = value;
|
||||
}
|
||||
|
||||
function _fun7150() { // fn#7150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:121, offset: 0x00d10066, size: 78 bytes, params: 1, frame: 15
|
||||
return env0_3(BatchedStoreListener, [{key: 'attach', value: function(a0) {
|
||||
var env0_0 = this;
|
||||
var env0_1 = a0;
|
||||
this.stores.forEach(_fun7154);
|
||||
}}, {key: 'detach', value: function() {
|
||||
var env0_0 = this;
|
||||
this.stores.forEach(_fun7156);
|
||||
}}]);
|
||||
}
|
||||
|
||||
function BatchedStoreListener(a0, a1) { // fn#7151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:142, offset: 0x00d100b4, size: 62 bytes, params: 3, frame: 14
|
||||
env1_2(this, BatchedStoreListener);
|
||||
this.handleStoreChange = handleStoreChange_7152;
|
||||
this.stores = a0;
|
||||
this.changeCallback = a1;
|
||||
}
|
||||
|
||||
function value_7153(a0) { // fn#7153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:410, offset: 0x00d1013c, size: 41 bytes, params: 2, frame: 11
|
||||
const env0_1 = a0;
|
||||
this.stores.forEach(_fun7154);
|
||||
}
|
||||
|
||||
function value_7155() { // fn#7155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:688, offset: 0x00d101d1, size: 34 bytes, params: 1, frame: 11
|
||||
this.stores.forEach(_fun7156);
|
||||
}
|
||||
|
||||
function BatchedStoreListenerHandleStoreChange() { // fn#7152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:229, owner: BatchedStoreListener.handleStoreChange, offset: 0x00d100f2, size: 74 bytes, params: 1, frame: 12
|
||||
var binding;
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(570) /* metro dependency 570: Emitter */;
|
||||
value = value.getChangeSentinel();
|
||||
if (env0_0.storeVersionHandled !== value) {
|
||||
binding = env0_0;
|
||||
binding.changeCallback();
|
||||
binding.storeVersionHandled = value;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun7154(a0, a1) { // fn#7154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:443, offset: 0x00d10165, size: 108 bytes, params: 3, frame: 18
|
||||
var value;
|
||||
var Error;
|
||||
if (a0 == null) {
|
||||
Error = global.Error;
|
||||
value = '' + env0_1 + " tried to load a non-existent store. Either it isn't defined or there is a circular dependency. Loaded " + a1 + ' stores before error.';
|
||||
throw new Error();
|
||||
}
|
||||
a0.addReactChangeListener(env0_0.handleStoreChange);
|
||||
}
|
||||
|
||||
function _fun7156(a0) { // fn#7156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:720, offset: 0x00d101f3, size: 29 bytes, params: 2, frame: 11
|
||||
return a0.removeReactChangeListener(env0_0.handleStoreChange);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
/* Metro module 569; source: ../discord_common/js/packages/flux/ChangeListeners.tsx; dependencies: [6, 7, 2] */
|
||||
function _fun6898(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:6, offset: 0x00d0b3f3, size: 124 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun6899();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/ChangeListeners.tsx');
|
||||
exports.ChangeListeners = value;
|
||||
}
|
||||
|
||||
function _fun6899() { // fn#6899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:118, offset: 0x00d0b46f, size: 101 bytes, params: 1, frame: 15
|
||||
return env0_1(ChangeListeners, [{key: 'has', value: function(a0) {
|
||||
return this.listeners.has(a0);
|
||||
}}, {key: 'hasAny', value: function() {
|
||||
return this.listeners.size > 0;
|
||||
}}, {key: 'invokeAll', value: function() {
|
||||
this.listeners.forEach(_fun6910);
|
||||
}}]);
|
||||
}
|
||||
|
||||
function ChangeListeners() { // fn#6900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:139, offset: 0x00d0b4d4, size: 143 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
env1_0(this, ChangeListeners);
|
||||
let Set = global.Set;
|
||||
this.listeners = new Set();
|
||||
Set = global.Set;
|
||||
this.conditionalListeners = new Set();
|
||||
this.add = add_6901;
|
||||
this.remove = remove_6902;
|
||||
this.addConditional = addConditional;
|
||||
this.removeAllConditional = removeAllConditional;
|
||||
}
|
||||
|
||||
function value_6909() { // fn#6909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:844, offset: 0x00d0b6a7, size: 30 bytes, params: 1, frame: 11
|
||||
this.listeners.forEach(function(a0) {
|
||||
return a0();
|
||||
});
|
||||
}
|
||||
|
||||
function ChangeListenersAdd(a0) { // fn#6901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:256, owner: ChangeListeners.add, offset: 0x00d0b563, size: 30 bytes, params: 2, frame: 11
|
||||
env0_0.listeners.add(a0);
|
||||
}
|
||||
|
||||
function ChangeListenersRemove(a0) { // fn#6902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:295, owner: ChangeListeners.remove, offset: 0x00d0b581, size: 46 bytes, params: 2, frame: 12
|
||||
const binding = env0_0;
|
||||
binding.listeners.delete(a0);
|
||||
binding.conditionalListeners.delete(a0);
|
||||
}
|
||||
|
||||
function addConditional(a0) { // fn#6903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:381, owner: ChangeListeners.addConditional, offset: 0x00d0b5af, size: 81 bytes, params: 2, frame: 13
|
||||
var closure;
|
||||
var binding;
|
||||
const value = a1;
|
||||
const env0_0 = a0;
|
||||
if (!(value !== undefined) || value) {
|
||||
if (a0() !== false) {
|
||||
closure = conditionalCallback;
|
||||
binding = env0_0;
|
||||
binding.add(closure);
|
||||
binding.conditionalListeners.add(closure);
|
||||
}
|
||||
} else {
|
||||
closure = conditionalCallback;
|
||||
binding = env0_0;
|
||||
binding.add(closure);
|
||||
binding.conditionalListeners.add(closure);
|
||||
}
|
||||
}
|
||||
|
||||
function removeAllConditional() { // fn#6905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:591, owner: ChangeListeners.removeAllConditional, offset: 0x00d0b62b, size: 50 bytes, params: 1, frame: 12
|
||||
const binding = env0_0;
|
||||
binding.conditionalListeners.forEach(_fun6906);
|
||||
binding.conditionalListeners.clear();
|
||||
}
|
||||
|
||||
function conditionalCallback() { // fn#6904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:433, owner: ChangeListeners.addConditional.conditionalCallback, offset: 0x00d0b600, size: 43 bytes, params: 1, frame: 12
|
||||
var value3;
|
||||
var binding;
|
||||
if (env0_0() === false) {
|
||||
value3 = environment.__proto__;
|
||||
binding = env1_0;
|
||||
binding.remove(conditionalCallback);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun6906(a0) { // fn#6906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:631, offset: 0x00d0b65d, size: 28 bytes, params: 2, frame: 11
|
||||
return env1_0.listeners.delete(a0);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,838 @@
|
||||
/* Metro module 570; source: ../discord_common/js/packages/flux/Emitter.tsx; dependencies: [6, 7, 4, 571, 2] */
|
||||
function _fun6911(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:620:6, offset: 0x00d0b6c5, size: 212 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const Logger = (require(4) /* metro dependency 4: Logger */).Logger;
|
||||
let logger = new Logger('Flux');
|
||||
const batchEmitChanges = function(a0) {
|
||||
return a0();
|
||||
};
|
||||
logger = _fun6913();
|
||||
logger = new logger();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/Emitter.tsx');
|
||||
exports.default = logger;
|
||||
}
|
||||
|
||||
function _fun6913() { // fn#6913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:620:176, offset: 0x00d0b799, size: 285 bytes, params: 1, frame: 15
|
||||
return env0_3(Emitter, [{key: 'destroy', value: function() {
|
||||
this.changedStores.clear();
|
||||
this.reactChangedStores.clear();
|
||||
env1_5 = _fun6916;
|
||||
}}, {key: 'injectBatchEmitChanges', value: function(a0) {
|
||||
env1_5 = a0;
|
||||
}}, {key: 'pause', value: function() {
|
||||
var r4;
|
||||
var value = a0;
|
||||
var env0_0 = this;
|
||||
r4 = value !== undefined ? value : null;
|
||||
this.isPaused = true;
|
||||
if (this.pauseTimer !== null) {
|
||||
global.clearTimeout(this.pauseTimer);
|
||||
}
|
||||
if (r4 !== null) {
|
||||
this.pauseTimer = global.setTimeout(_fun6919, r4);
|
||||
}
|
||||
}}, {key: 'resume', value: function() {
|
||||
var r3;
|
||||
var value = a0;
|
||||
var env0_0 = this;
|
||||
r3 = !(value !== undefined) || value;
|
||||
global.clearTimeout(this.pauseTimer);
|
||||
this.pauseTimer = null;
|
||||
if (this.isPaused) {
|
||||
this.isPaused = false;
|
||||
r3 = r3 && this.changedStores.size > 0;
|
||||
if (r3) {
|
||||
global.setImmediate(_fun6921);
|
||||
}
|
||||
}
|
||||
}}, {key: 'batched', value: function(a0) {
|
||||
var value;
|
||||
var error;
|
||||
if (this.isPaused) {
|
||||
return a0();
|
||||
}
|
||||
try {
|
||||
this.isPaused = true;
|
||||
value = a0();
|
||||
} catch (error) {
|
||||
this.resume(false);
|
||||
this.emit();
|
||||
throw error;
|
||||
}
|
||||
this.resume(false);
|
||||
this.emit();
|
||||
return value;
|
||||
}}, {key: 'emit', value: value_6923}, {key: 'getChangeSentinel', value: function() {
|
||||
return this.changeSentinel;
|
||||
}}, {key: 'getIsPaused', value: function() {
|
||||
return this.isPaused;
|
||||
}}, {key: 'markChanged', value: value_6927}, {key: 'emitNonReactOnce', value: value_6928}, {key: 'emitReactOnce',
|
||||
value: value_6932}]);
|
||||
}
|
||||
|
||||
function Emitter() { // fn#6914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:620:197, offset: 0x00d0b8b6, size: 129 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, Emitter);
|
||||
let Set = global.Set;
|
||||
this.changedStores = new Set();
|
||||
Set = global.Set;
|
||||
this.reactChangedStores = new Set();
|
||||
this.changeSentinel = 0;
|
||||
this.isBatchEmitting = false;
|
||||
this.isDispatching = false;
|
||||
this.isPaused = false;
|
||||
this.pauseTimer = null;
|
||||
}
|
||||
|
||||
function value_6915() { // fn#6915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:620:421, offset: 0x00d0b937, size: 53 bytes, params: 1, frame: 10
|
||||
this.changedStores.clear();
|
||||
this.reactChangedStores.clear();
|
||||
value_6915BatchEmitChanges = function(a0) {
|
||||
return a0();
|
||||
};
|
||||
}
|
||||
|
||||
function value_6918() { // fn#6918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:620:605, offset: 0x00d0b96c, size: 90 bytes, params: 1, frame: 16
|
||||
const value = a0;
|
||||
const r4 = value !== undefined ? value : null;
|
||||
this.isPaused = true;
|
||||
if (this.pauseTimer !== null) {
|
||||
global.clearTimeout(this.pauseTimer);
|
||||
}
|
||||
if (r4 !== null) {
|
||||
this.pauseTimer = global.setTimeout(_fun6919, r4);
|
||||
}
|
||||
}
|
||||
|
||||
function value_6920() { // fn#6920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:620:800, offset: 0x00d0b9e3, size: 105 bytes, params: 1, frame: 15
|
||||
const value = a0;
|
||||
let r3 = !(value !== undefined) || value;
|
||||
global.clearTimeout(this.pauseTimer);
|
||||
this.pauseTimer = null;
|
||||
if (this.isPaused) {
|
||||
this.isPaused = false;
|
||||
r3 = r3 && this.changedStores.size > 0;
|
||||
if (r3) {
|
||||
global.setImmediate(_fun6921);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_6923() { // fn#6923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:620:1114, offset: 0x00d0babe, size: 50 bytes, params: 1, frame: 12
|
||||
var environment;
|
||||
var value;
|
||||
if (!(this.isBatchEmitting || this.isPaused)) {
|
||||
value = environment.__proto__;
|
||||
batchEmitChanges(_fun6924);
|
||||
}
|
||||
}
|
||||
|
||||
function value_6927(a0) { // fn#6927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:620:1797, offset: 0x00d0bc9d, size: 137 bytes, params: 2, frame: 13
|
||||
const _changeCallbacks = a0._changeCallbacks;
|
||||
let r0 = _changeCallbacks.hasAny() || a0._syncWiths.length > 0;
|
||||
if (r0) {
|
||||
this.changedStores.add(a0);
|
||||
}
|
||||
const _reactChangeCallbacks = a0._reactChangeCallbacks;
|
||||
if (_reactChangeCallbacks.hasAny()) {
|
||||
this.reactChangedStores.add(a0);
|
||||
}
|
||||
r0 = this.isBatchEmitting || this.isDispatching;
|
||||
r0 = !r0 ? this.isPaused : r0;
|
||||
if (!r0) {
|
||||
this.emit();
|
||||
}
|
||||
}
|
||||
|
||||
function value_6928(a0, a1) { // fn#6928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:620:2055, offset: 0x00d0bd26, size: 222 bytes, params: 3, frame: 16
|
||||
var environment;
|
||||
var value5;
|
||||
var binding;
|
||||
var verbose;
|
||||
var moduleValue;
|
||||
const env0_1 = a0;
|
||||
const env0_2 = a1;
|
||||
let Date = global.Date;
|
||||
let value = Date.now();
|
||||
const changedStores = this.changedStores;
|
||||
const Set = global.Set;
|
||||
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
const set = new Set();
|
||||
this.changedStores = set instanceof Object ? set : value2;
|
||||
changedStores.forEach(_fun6929);
|
||||
changedStores.forEach(function({_syncWiths}) {
|
||||
_syncWiths.forEach(_fun6931);
|
||||
});
|
||||
Date = global.Date;
|
||||
const value4 = Date.now();
|
||||
if (value4 - value > 100) {
|
||||
value5 = environment.__proto__;
|
||||
binding = env1_4;
|
||||
verbose = binding.verbose;
|
||||
value = value4 - value;
|
||||
value = 'Slow batch emitChanges took ' + value + 'ms recentActions:';
|
||||
moduleValue = importAll(571) /* metro dependency 571: LastFewActions */;
|
||||
Reflect.apply(verbose, binding, [value, moduleValue.serialize()]);
|
||||
}
|
||||
}
|
||||
|
||||
function value_6932() { // fn#6932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:620:2499, offset: 0x00d0becd, size: 193 bytes, params: 1, frame: 16
|
||||
var environment;
|
||||
var value5;
|
||||
var binding;
|
||||
var verbose;
|
||||
var moduleValue;
|
||||
let Date = global.Date;
|
||||
let value = Date.now();
|
||||
const reactChangedStores = this.reactChangedStores;
|
||||
const Set = global.Set;
|
||||
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
const set = new Set();
|
||||
this.reactChangedStores = set instanceof Object ? set : value2;
|
||||
reactChangedStores.forEach(_fun6933);
|
||||
Date = global.Date;
|
||||
const value4 = Date.now();
|
||||
if (value4 - value > 100) {
|
||||
value5 = environment.__proto__;
|
||||
binding = env1_4;
|
||||
verbose = binding.verbose;
|
||||
value = value4 - value;
|
||||
value = 'Slow batch emitReactChanges took ' + value + 'ms recentActions:';
|
||||
moduleValue = importAll(571) /* metro dependency 571: LastFewActions */;
|
||||
Reflect.apply(verbose, binding, [value, moduleValue.serialize()]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun6919() { // fn#6919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:620:732, offset: 0x00d0b9c6, size: 29 bytes, params: 1, frame: 9
|
||||
const binding = env0_0;
|
||||
binding.pauseTimer = null;
|
||||
binding.resume();
|
||||
}
|
||||
|
||||
function _fun6921() { // fn#6921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:620:943, offset: 0x00d0ba4c, size: 19 bytes, params: 1, frame: 9
|
||||
return env0_0.emit();
|
||||
}
|
||||
|
||||
function _fun6924() { // fn#6924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:620:1180, offset: 0x00d0baf0, size: 407 bytes, params: 1, frame: 21
|
||||
var r6;
|
||||
var binding;
|
||||
var changeSentinel;
|
||||
var value2;
|
||||
var Set;
|
||||
var prototype;
|
||||
var set;
|
||||
var value5;
|
||||
var value7;
|
||||
var changedStores;
|
||||
var size;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var emitNonReactOnce;
|
||||
var value11;
|
||||
var reactChangedStores;
|
||||
var value12;
|
||||
var value13;
|
||||
var value14;
|
||||
var emitReactOnce;
|
||||
var value15;
|
||||
var value16;
|
||||
var error;
|
||||
var property;
|
||||
var moduleValue;
|
||||
var serialize;
|
||||
var value17;
|
||||
var Error;
|
||||
var value18;
|
||||
var value19;
|
||||
var moduleValue2;
|
||||
var value20;
|
||||
var value21;
|
||||
try {
|
||||
binding = env0_0;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding.isBatchEmitting = true;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
changeSentinel = binding.changeSentinel;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value2 = typeof changeSentinel === 'bigint' ? changeSentinel + 1n : +changeSentinel + 1;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding.changeSentinel = value2;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
const value3 = 0;
|
||||
try {
|
||||
Set = global.Set;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
prototype = Set.prototype;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
set = new Set();
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value5 = set instanceof Object ? set : undefined;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
Set = global.Set;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
prototype = Set.prototype;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
set = new Set();
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value7 = set instanceof Object ? set : undefined;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
changedStores = binding.changedStores;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
size = changedStores.size;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value8 = size > value3;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
if (value8) {
|
||||
r6 = value3;
|
||||
reducibleLoop25: while (true) {
|
||||
try {
|
||||
value9 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value10 = value9 > 100;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
if (!value10) {
|
||||
try {
|
||||
binding = env0_0;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
emitNonReactOnce = binding.emitNonReactOnce;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(emitNonReactOnce, binding, [value5, value7]);
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
changedStores = binding.changedStores;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
size = changedStores.size;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value11 = size > value3;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
if (!value11) {
|
||||
r6 = value9;
|
||||
try {
|
||||
binding = env0_0;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
reactChangedStores = binding.reactChangedStores;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
size = reactChangedStores.size;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value12 = size > value3;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
if (value12) {
|
||||
reducibleLoop40: while (true) {
|
||||
try {
|
||||
value13 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value14 = value13 > 100;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
if (value14) {
|
||||
break reducibleLoop40;
|
||||
}
|
||||
try {
|
||||
binding = env0_0;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
emitReactOnce = binding.emitReactOnce;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(emitReactOnce, binding, []);
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
reactChangedStores = binding.reactChangedStores;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
size = reactChangedStores.size;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value15 = size > value3;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
if (!value15) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
return undefined;
|
||||
}
|
||||
r6 = value13;
|
||||
continue reducibleLoop40;
|
||||
}
|
||||
value16 = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
error = binding.error;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = dependencyMap[3];
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
moduleValue = importAll(property);
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
serialize = moduleValue.serialize;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value17 = Reflect.apply(serialize, moduleValue, []);
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(error, binding, ['LastFewActions', value17]);
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
Error = global.Error;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value18 = Error('react change emit loop detected, aborting');
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
throw value18;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
env0_0.isBatchEmitting = false;
|
||||
return undefined;
|
||||
}
|
||||
r6 = value9;
|
||||
continue reducibleLoop25;
|
||||
}
|
||||
value19 = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
error = binding.error;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = dependencyMap[3];
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
moduleValue2 = importAll(property);
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
serialize = moduleValue2.serialize;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value20 = Reflect.apply(serialize, moduleValue2, []);
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(error, binding, ['LastFewActions', value20]);
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
Error = global.Error;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value21 = Error('change emit loop detected, aborting');
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
throw value21;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
r6 = value3;
|
||||
}
|
||||
try {
|
||||
binding = env0_0;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
reactChangedStores = binding.reactChangedStores;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
size = reactChangedStores.size;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value12 = size > value3;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
if (value12) {
|
||||
reducibleLoop40: while (true) {
|
||||
try {
|
||||
value13 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value14 = value13 > 100;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
if (value14) {
|
||||
break reducibleLoop40;
|
||||
}
|
||||
try {
|
||||
binding = env0_0;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
emitReactOnce = binding.emitReactOnce;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(emitReactOnce, binding, []);
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
reactChangedStores = binding.reactChangedStores;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
size = reactChangedStores.size;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value15 = size > value3;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
if (!value15) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
return undefined;
|
||||
}
|
||||
r6 = value13;
|
||||
continue reducibleLoop40;
|
||||
}
|
||||
value16 = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
error = binding.error;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = dependencyMap[3];
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
moduleValue = importAll(property);
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
serialize = moduleValue.serialize;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value17 = Reflect.apply(serialize, moduleValue, []);
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(error, binding, ['LastFewActions', value17]);
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
Error = global.Error;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value18 = Error('react change emit loop detected, aborting');
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
throw value18;
|
||||
} catch (error) {
|
||||
env0_0.isBatchEmitting = false;
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
env0_0.isBatchEmitting = false;
|
||||
}
|
||||
|
||||
function _fun6929(a0) { // fn#6929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:620:2145, offset: 0x00d0be04, size: 60 bytes, params: 2, frame: 12
|
||||
require.add(a0);
|
||||
a0._changeCallbacks.invokeAll();
|
||||
env0_0.changedStores.delete(a0);
|
||||
}
|
||||
|
||||
function _fun6930({_syncWiths}) { // fn#6930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:620:2232, offset: 0x00d0be40, size: 30 bytes, params: 2, frame: 11
|
||||
_syncWiths.forEach(_fun6931);
|
||||
}
|
||||
|
||||
function _fun6933(a0) { // fn#6933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:620:2596, offset: 0x00d0bf8e, size: 46 bytes, params: 2, frame: 11
|
||||
a0._reactChangeCallbacks.invokeAll();
|
||||
env0_0.reactChangedStores.delete(a0);
|
||||
}
|
||||
|
||||
function _fun6931({func, store}) { // fn#6931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:620:2258, offset: 0x00d0be5e, size: 111 bytes, params: 2, frame: 13
|
||||
const binding = env1_1;
|
||||
if (!binding.has(func)) {
|
||||
env1_1.add(func);
|
||||
if (func() !== false) {
|
||||
if (!require.has(store)) {
|
||||
require.add(store);
|
||||
env1_0.markChanged(store);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
/* Metro module 571; source: ../discord_common/js/packages/flux/LastFewActions.tsx; dependencies: [2] */
|
||||
function _fun6934(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:621:6, offset: 0x00d0bfbc, size: 126 bytes, params: 8, frame: 16
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = [];
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/LastFewActions.tsx');
|
||||
exports.add = add_6935;
|
||||
exports.clear = clear_6936;
|
||||
exports.serialize = serialize_6937;
|
||||
exports.last = last;
|
||||
}
|
||||
|
||||
function add_6935(a0) { // fn#6935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:621:194, offset: 0x00d0c03a, size: 67 bytes, params: 2, frame: 12
|
||||
let binding = env0_0;
|
||||
binding.push(a0);
|
||||
let length = env0_0.length;
|
||||
if (length > 10) {
|
||||
while (true) {
|
||||
binding = env0_0;
|
||||
binding.shift();
|
||||
length = env0_0.length;
|
||||
if (!(length > 10)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function clear_6936() { // fn#6936, offset: 0x00d0c07d, size: 17 bytes, params: 1, frame: 3
|
||||
const binding = env0_0;
|
||||
env0_0 = [];
|
||||
return binding;
|
||||
}
|
||||
|
||||
function serialize_6937() { // fn#6937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:621:308, offset: 0x00d0c08e, size: 25 bytes, params: 1, frame: 11
|
||||
return env0_0.join(' -> ');
|
||||
}
|
||||
|
||||
function last() { // fn#6938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:621:359, offset: 0x00d0c0a7, size: 45 bytes, params: 1, frame: 4
|
||||
return env0_0.length > 0 ? env0_0[env0_0.length - 1] : null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,900 @@
|
||||
/* Metro module 636; source: ../discord_common/js/packages/flux/LoggingUtils.tsx; dependencies: [6, 7, 15, 17, 18, 4, 637, 639, 2] */
|
||||
function _fun7231(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:686:6, offset: 0x00d11d2d, size: 304 bytes, params: 8, frame: 19
|
||||
const env0_1 = require;
|
||||
const _arrayLikeToArray_7234 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
const Logger = (require(4) /* metro dependency 4: Logger */).Logger;
|
||||
let logger = new Logger('Flux');
|
||||
const EventEmitter = (require(639) /* metro dependency 639 */).EventEmitter;
|
||||
logger = _fun7238(EventEmitter);
|
||||
let value2 = _fun7250();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/LoggingUtils.tsx');
|
||||
exports.ActionLogger = logger;
|
||||
exports.ActionLog = value2;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_7232(a0, a1) { // fn#7232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:686:150, offset: 0x00d11e5d, size: 370 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun7233;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_7234(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_7234(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_7234(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun7233;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_7235() { // fn#7235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:686:1060, offset: 0x00d11fcf, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_7235_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun7238(a0) { // fn#7238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:686:1290, offset: 0x00d1202d, size: 118 bytes, params: 2, frame: 16
|
||||
const closure = ActionLogger;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'log', value: value_7240}, {key: 'getSlowestActions', value: value_7242},
|
||||
{key: 'getLastActionMetrics', value: value_7246}]);
|
||||
}
|
||||
|
||||
function _fun7250() { // fn#7250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:686:3438, offset: 0x00d12a8c, size: 78 bytes, params: 1, frame: 15
|
||||
return env0_4(ActionLog, [{key: 'name', get: function() {
|
||||
return this.action.type;
|
||||
}}, {key: 'toJSON', value: function() {
|
||||
if (this.createdAt == null) {
|
||||
throw new global.Error('ActionLog.toJSON: You must complete your logging before calling toJSON');
|
||||
}
|
||||
return {actionType: this.action.type, created_at: this.createdAt, totalTime: this.totalTime,
|
||||
traces: this.traces};
|
||||
}}]);
|
||||
}
|
||||
|
||||
function ActionLogger() { // fn#7239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:686:1302, offset: 0x00d120a3, size: 145 bytes, params: 1, frame: 20
|
||||
let value = a0;
|
||||
let persist = (value !== undefined ? value : {}).persist;
|
||||
persist = !(persist === undefined) && persist;
|
||||
value = environment.__proto__;
|
||||
env1_3(this, ActionLogger);
|
||||
const value3 = env1_6(ActionLogger);
|
||||
value = env1_5(this, _isNativeReflectConstruct_7235() ? global.Reflect.construct(value3, [],
|
||||
env1_6(this).constructor) : value3.apply(this, undefined));
|
||||
value.logs = [];
|
||||
value.persist = persist;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_7240(a0, a1) { // fn#7240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:686:1612, offset: 0x00d12134, size: 445 bytes, params: 3, frame: 20
|
||||
var environment;
|
||||
var r0;
|
||||
var r3;
|
||||
var value;
|
||||
var binding;
|
||||
var prototype;
|
||||
var value2;
|
||||
var binding2;
|
||||
var value4;
|
||||
const performance = (require(637) /* metro dependency 637: performanceUtils */).performance;
|
||||
var now;
|
||||
var closure;
|
||||
var startTime;
|
||||
var persist;
|
||||
var totalTime;
|
||||
var logs;
|
||||
var push;
|
||||
var length;
|
||||
var shift;
|
||||
var emit;
|
||||
var error;
|
||||
exceptionSkip14: while (true) {
|
||||
exceptionLanding14: while (true) {
|
||||
exceptionSkip10: while (true) {
|
||||
exceptionLanding10: while (true) {
|
||||
var env0_0 = this;
|
||||
var env0_1 = a0;
|
||||
value = environment.__proto__;
|
||||
binding = env1_10;
|
||||
prototype = binding.prototype;
|
||||
value2 = Object.create(prototype, {constructor: {value: binding}});
|
||||
binding2 = new binding(a0);
|
||||
value4 = binding2 instanceof Object ? binding2 : value2;
|
||||
var env0_2 = value4;
|
||||
now = performance.now;
|
||||
value4.startTime = Reflect.apply(now, performance, []);
|
||||
try {
|
||||
try {
|
||||
closure = _fun7241;
|
||||
} catch (error) {
|
||||
break exceptionLanding10;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding14;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
a1(closure);
|
||||
} catch (error) {
|
||||
break exceptionLanding10;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding14;
|
||||
}
|
||||
now = performance.now;
|
||||
value = Reflect.apply(now, performance, []);
|
||||
startTime = value4.startTime;
|
||||
value4.totalTime = value - startTime;
|
||||
persist = this.persist;
|
||||
if (persist) {
|
||||
totalTime = value4.totalTime;
|
||||
value = totalTime > 0;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = persist;
|
||||
}
|
||||
if (r0) {
|
||||
logs = this.logs;
|
||||
push = logs.push;
|
||||
Reflect.apply(push, logs, [value4]);
|
||||
}
|
||||
logs = this.logs;
|
||||
length = logs.length;
|
||||
if (length > 1000) {
|
||||
logs = this.logs;
|
||||
shift = logs.shift;
|
||||
Reflect.apply(shift, logs, []);
|
||||
}
|
||||
emit = this.emit;
|
||||
Reflect.apply(emit, this, ['log', a0]);
|
||||
return value4;
|
||||
break exceptionSkip10;
|
||||
}
|
||||
try {
|
||||
value4.error = error;
|
||||
} catch (error) {
|
||||
break exceptionLanding14;
|
||||
}
|
||||
try {
|
||||
throw error;
|
||||
} catch (error) {
|
||||
break exceptionLanding14;
|
||||
}
|
||||
break exceptionSkip10;
|
||||
}
|
||||
break exceptionSkip14;
|
||||
}
|
||||
now = performance.now;
|
||||
value = Reflect.apply(now, performance, []);
|
||||
startTime = value4.startTime;
|
||||
value4.totalTime = value - startTime;
|
||||
persist = this.persist;
|
||||
if (persist) {
|
||||
if (value4.totalTime > 0) {
|
||||
logs = this.logs;
|
||||
logs.push(value4);
|
||||
logs = this.logs;
|
||||
if (logs.length > 1000) {
|
||||
logs = this.logs;
|
||||
logs.shift();
|
||||
this.emit('log', a0);
|
||||
throw error;
|
||||
}
|
||||
this.emit('log', a0);
|
||||
throw error;
|
||||
}
|
||||
logs = this.logs;
|
||||
if (logs.length > 1000) {
|
||||
logs = this.logs;
|
||||
logs.shift();
|
||||
this.emit('log', a0);
|
||||
throw error;
|
||||
}
|
||||
this.emit('log', a0);
|
||||
throw error;
|
||||
}
|
||||
r3 = persist;
|
||||
if (r3) {
|
||||
logs = this.logs;
|
||||
logs.push(value4);
|
||||
logs = this.logs;
|
||||
if (logs.length > 1000) {
|
||||
logs = this.logs;
|
||||
logs.shift();
|
||||
this.emit('log', a0);
|
||||
throw error;
|
||||
}
|
||||
this.emit('log', a0);
|
||||
throw error;
|
||||
}
|
||||
logs = this.logs;
|
||||
length = logs.length;
|
||||
if (length > 1000) {
|
||||
logs = this.logs;
|
||||
logs.shift();
|
||||
this.emit('log', a0);
|
||||
throw error;
|
||||
}
|
||||
emit = this.emit;
|
||||
Reflect.apply(emit, this, ['log', a0]);
|
||||
throw error;
|
||||
break exceptionSkip14;
|
||||
}
|
||||
}
|
||||
|
||||
function value_7242(a0) { // fn#7242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:686:2115, offset: 0x00d12442, size: 540 bytes, params: 2, frame: 29
|
||||
var environment;
|
||||
var r3;
|
||||
var r9;
|
||||
var r11;
|
||||
var HermesInternal;
|
||||
var r7;
|
||||
var value5;
|
||||
var name;
|
||||
var traces;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var push;
|
||||
var items2;
|
||||
var time;
|
||||
var value9;
|
||||
var value10;
|
||||
var value15;
|
||||
var value16;
|
||||
var binding;
|
||||
var log;
|
||||
var binding2;
|
||||
var value17;
|
||||
var concat;
|
||||
var value18;
|
||||
var binding3;
|
||||
let value = a1;
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value !== value2) {
|
||||
r3 = value;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value = 20;
|
||||
r3 = value;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
const items3 = [];
|
||||
value = environment.__proto__;
|
||||
const value3 = _createForOfIteratorHelperLoose_7232(this.logs);
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
if (!done) {
|
||||
r9 = value4;
|
||||
reducibleLoop3: while (true) {
|
||||
value5 = r9.value;
|
||||
reducibleJoin7: while (true) {
|
||||
reducibleJoin5: while (true) {
|
||||
if (a0 == null) {
|
||||
break reducibleJoin5;
|
||||
}
|
||||
name = value5.name;
|
||||
if (name !== a0) {
|
||||
break reducibleJoin7;
|
||||
}
|
||||
break reducibleJoin5;
|
||||
}
|
||||
_createForOfIteratorHelperLoose_7232Binding = _createForOfIteratorHelperLoose_7232;
|
||||
traces = value5.traces;
|
||||
value6 = _createForOfIteratorHelperLoose_7232Binding(traces);
|
||||
value7 = value6();
|
||||
done = value7.done;
|
||||
if (done) {
|
||||
break reducibleJoin7;
|
||||
}
|
||||
r11 = value7;
|
||||
reducibleLoop6: while (true) {
|
||||
value8 = r11.value;
|
||||
push = items3.push;
|
||||
name = value8.name;
|
||||
items2 = [name];
|
||||
name = value5.name;
|
||||
items2[1] = name;
|
||||
time = value8.time;
|
||||
items2[2] = time;
|
||||
Reflect.apply(push, items3, [items2]);
|
||||
value9 = value6();
|
||||
done = value9.done;
|
||||
if (done) {
|
||||
break reducibleJoin7;
|
||||
}
|
||||
r11 = value9;
|
||||
continue reducibleLoop6;
|
||||
}
|
||||
break reducibleJoin7;
|
||||
}
|
||||
value10 = value3();
|
||||
done = value10.done;
|
||||
if (done) {
|
||||
break reducibleLoop3;
|
||||
}
|
||||
r9 = value10;
|
||||
continue reducibleLoop3;
|
||||
}
|
||||
}
|
||||
items3.sort(function(a0, [, , property]) {
|
||||
return property - a0[2];
|
||||
});
|
||||
reducibleJoin10: while (true) {
|
||||
if (items3.length > r3) {
|
||||
items3.length = r3;
|
||||
break reducibleJoin10;
|
||||
}
|
||||
break reducibleJoin10;
|
||||
}
|
||||
const env0_2 = 0;
|
||||
const value13 = items3.map(_fun7244).map(_fun7245).join('\n');
|
||||
const value14 = items3.length === 0;
|
||||
reducibleJoin12: while (true) {
|
||||
if (value14) {
|
||||
r3 = value14;
|
||||
break reducibleJoin12;
|
||||
}
|
||||
value15 = items3[0][2] < 10;
|
||||
r3 = value15;
|
||||
break reducibleJoin12;
|
||||
}
|
||||
reducibleJoin14: while (true) {
|
||||
if (r3) {
|
||||
break reducibleJoin14;
|
||||
}
|
||||
value16 = env0_2 < 20;
|
||||
r3 = value16;
|
||||
break reducibleJoin14;
|
||||
}
|
||||
reducibleJoin20: while (true) {
|
||||
if (r3) {
|
||||
break reducibleJoin20;
|
||||
}
|
||||
binding = env1_8;
|
||||
log = binding.log;
|
||||
binding2 = env1_0;
|
||||
reducibleJoin17: while (true) {
|
||||
if (binding2 == null) {
|
||||
HermesInternal = value2;
|
||||
break reducibleJoin17;
|
||||
}
|
||||
HermesInternal = binding2.HermesInternal;
|
||||
break reducibleJoin17;
|
||||
}
|
||||
Reflect.apply(log, binding, ['Using Hermes:', !(value2 === HermesInternal)]);
|
||||
binding = env1_8;
|
||||
log = binding.log;
|
||||
value17 = '';
|
||||
reducibleJoin19: while (true) {
|
||||
if (a0 != null) {
|
||||
HermesInternal = global.HermesInternal;
|
||||
concat = HermesInternal.concat;
|
||||
value18 = '\n\n=== ' + a0 + ' ===';
|
||||
r7 = value18;
|
||||
break reducibleJoin19;
|
||||
}
|
||||
r7 = value17;
|
||||
break reducibleJoin19;
|
||||
}
|
||||
HermesInternal = global.HermesInternal;
|
||||
concat = HermesInternal.concat;
|
||||
Reflect.apply(log, binding, [value17 + r7 + '\n' + value13 + '\n']);
|
||||
binding = env1_8;
|
||||
log = binding.log;
|
||||
binding3 = env0_2;
|
||||
HermesInternal = global.HermesInternal;
|
||||
concat = HermesInternal.concat;
|
||||
Reflect.apply(log, binding, ['Total Time: ' + binding3 + 'ms']);
|
||||
break reducibleJoin20;
|
||||
}
|
||||
return items3;
|
||||
}
|
||||
|
||||
function value_7246(a0) { // fn#7246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:686:2819, offset: 0x00d127d0, size: 431 bytes, params: 2, frame: 24
|
||||
var environment;
|
||||
var r3;
|
||||
var r1;
|
||||
var r7;
|
||||
var HermesInternal;
|
||||
var value5;
|
||||
var traces;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var name;
|
||||
var name2;
|
||||
var name3;
|
||||
var time;
|
||||
var value9;
|
||||
var value10;
|
||||
var value16;
|
||||
var binding;
|
||||
var log;
|
||||
var binding2;
|
||||
var HermesInternal2;
|
||||
var concat;
|
||||
var value17;
|
||||
var binding3;
|
||||
let value = a1;
|
||||
const value2 = undefined;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value !== value2) {
|
||||
r3 = value;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value = 20;
|
||||
r3 = value;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
const object2 = {};
|
||||
value = environment.__proto__;
|
||||
const value3 = _createForOfIteratorHelperLoose_7232(this.logs);
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
if (!done) {
|
||||
r1 = value4;
|
||||
reducibleLoop3: while (true) {
|
||||
value5 = r1.value;
|
||||
_createForOfIteratorHelperLoose_7232Binding = _createForOfIteratorHelperLoose_7232;
|
||||
traces = value5.traces;
|
||||
value6 = _createForOfIteratorHelperLoose_7232Binding(traces);
|
||||
value7 = value6();
|
||||
done = value7.done;
|
||||
if (!done) {
|
||||
r7 = value7;
|
||||
reducibleLoop4: while (true) {
|
||||
value8 = r7.value;
|
||||
name = value8.name;
|
||||
name2 = value8.name;
|
||||
name3 = value5.name;
|
||||
time = value8.time;
|
||||
object2[name] = [name2, name3, time];
|
||||
value9 = value6();
|
||||
done = value9.done;
|
||||
if (done) {
|
||||
break reducibleLoop4;
|
||||
}
|
||||
r7 = value9;
|
||||
continue reducibleLoop4;
|
||||
}
|
||||
}
|
||||
value10 = value3();
|
||||
done = value10.done;
|
||||
if (done) {
|
||||
break reducibleLoop3;
|
||||
}
|
||||
r1 = value10;
|
||||
continue reducibleLoop3;
|
||||
}
|
||||
}
|
||||
const Object = global.Object;
|
||||
const value11 = Object.values(object2);
|
||||
value11.sort(function(a0, [, , property]) {
|
||||
return property - a0[2];
|
||||
});
|
||||
reducibleJoin8: while (true) {
|
||||
if (value11.length > r3) {
|
||||
value11.length = r3;
|
||||
break reducibleJoin8;
|
||||
}
|
||||
break reducibleJoin8;
|
||||
}
|
||||
const env0_1 = 0;
|
||||
const value14 = value11.map(_fun7248).map(_fun7249).join('\n');
|
||||
const value15 = value11.length === 0;
|
||||
reducibleJoin10: while (true) {
|
||||
if (value15) {
|
||||
r3 = value15;
|
||||
break reducibleJoin10;
|
||||
}
|
||||
value16 = env0_1 < 8;
|
||||
r3 = value16;
|
||||
break reducibleJoin10;
|
||||
}
|
||||
reducibleJoin14: while (true) {
|
||||
if (r3) {
|
||||
break reducibleJoin14;
|
||||
}
|
||||
binding = env1_8;
|
||||
log = binding.log;
|
||||
binding2 = env1_0;
|
||||
reducibleJoin13: while (true) {
|
||||
if (binding2 == null) {
|
||||
HermesInternal = value2;
|
||||
break reducibleJoin13;
|
||||
}
|
||||
HermesInternal = binding2.HermesInternal;
|
||||
break reducibleJoin13;
|
||||
}
|
||||
HermesInternal2 = global.HermesInternal;
|
||||
concat = HermesInternal2.concat;
|
||||
value = '\nUsing Hermes: ' + !(value2 === HermesInternal);
|
||||
HermesInternal = global.HermesInternal;
|
||||
concat = HermesInternal.concat;
|
||||
value17 = '\n\n=== ' + a0 + ' ===\n' + value14;
|
||||
binding3 = env0_1;
|
||||
HermesInternal = global.HermesInternal;
|
||||
concat = HermesInternal.concat;
|
||||
Reflect.apply(log, binding, [value, value17, '\nTotal Time: ' + binding3 + 'ms\n\n']);
|
||||
break reducibleJoin14;
|
||||
}
|
||||
return value11;
|
||||
}
|
||||
|
||||
function ActionLog(a0) { // fn#7251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:686:3459, offset: 0x00d12ada, size: 114 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
let binding = env1_3;
|
||||
binding(this, ActionLog);
|
||||
this.startTime = 0;
|
||||
this.totalTime = 0;
|
||||
this.traces = [];
|
||||
binding = env1_9;
|
||||
const value3 = typeof binding === 'bigint' ? binding : +binding;
|
||||
env1_9 = typeof value3 === 'bigint' ? value3 + 1n : +value3 + 1;
|
||||
this.id = value3;
|
||||
this.action = a0;
|
||||
const Date = global.Date;
|
||||
this.createdAt = new Date();
|
||||
}
|
||||
|
||||
function _fun7241(a0, a1) { // fn#7241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:686:1687, offset: 0x00d122f1, size: 337 bytes, params: 3, frame: 24
|
||||
var value3;
|
||||
var persist;
|
||||
var traces;
|
||||
var binding;
|
||||
var emit;
|
||||
var type;
|
||||
var time;
|
||||
var error;
|
||||
const object2 = {name: a0, time: -1};
|
||||
const performance = (require(637) /* metro dependency 637: performanceUtils */).performance;
|
||||
let now = performance.now;
|
||||
const value2 = Reflect.apply(now, performance, []);
|
||||
try {
|
||||
value3 = a1();
|
||||
} catch (error) {
|
||||
now = performance.now;
|
||||
object2.time = Reflect.apply(now, performance, []) - value2;
|
||||
value = environment;
|
||||
persist = env0_0.persist;
|
||||
if (persist) {
|
||||
traces = env0_2.traces;
|
||||
traces.push(object2);
|
||||
}
|
||||
binding = env0_0;
|
||||
emit = binding.emit;
|
||||
type = env0_1.type;
|
||||
time = object2.time;
|
||||
Reflect.apply(emit, binding, ['trace', type, a0, time]);
|
||||
throw error;
|
||||
}
|
||||
object2.time = performance.now() - value2;
|
||||
if (env0_0.persist) {
|
||||
env0_2.traces.push(object2);
|
||||
}
|
||||
binding = env0_0;
|
||||
binding.emit('trace', env0_1.type, a0, object2.time);
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun7244(a0) { // fn#7244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:686:2436, offset: 0x00d12675, size: 204 bytes, params: 2, frame: 18
|
||||
var r0;
|
||||
var r2;
|
||||
var r8;
|
||||
var r1;
|
||||
var item3;
|
||||
var value3;
|
||||
var item4;
|
||||
var value4;
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
let value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r4 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r0 = item2;
|
||||
r2 = value2;
|
||||
r8 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = item3;
|
||||
r2 = value3;
|
||||
r8 = value;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r2 = value3;
|
||||
r8 = item;
|
||||
}
|
||||
}
|
||||
if (r2) {
|
||||
r1 = value;
|
||||
} else {
|
||||
item4 = Reflect.apply(iterator2, r0, []);
|
||||
item = item4.value;
|
||||
item4 = item4.done ? undefined : r0;
|
||||
value4 = item4 === value;
|
||||
if (value4) {
|
||||
r0 = item4;
|
||||
r1 = value;
|
||||
r2 = value4;
|
||||
} else {
|
||||
r0 = item4;
|
||||
r1 = item;
|
||||
r2 = value4;
|
||||
}
|
||||
}
|
||||
if (!r2) {
|
||||
r0.return();
|
||||
}
|
||||
value = '' + r4;
|
||||
if (env0_0 != null) {
|
||||
r2 = value;
|
||||
} else {
|
||||
value += '<' + r8 + '>';
|
||||
r2 = value;
|
||||
}
|
||||
const Math = global.Math;
|
||||
env0_1 = Math.max(r2.length, env0_1);
|
||||
return [r2, r1];
|
||||
}
|
||||
|
||||
function _fun7245(a0) { // fn#7245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:686:2528, offset: 0x00d12741, size: 143 bytes, params: 2, frame: 18
|
||||
var r0;
|
||||
var r1;
|
||||
var r5;
|
||||
var item3;
|
||||
var value3;
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r3 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r0 = item2;
|
||||
r1 = value2;
|
||||
r5 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = item3;
|
||||
r1 = value3;
|
||||
r5 = value;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r1 = value3;
|
||||
r5 = item;
|
||||
}
|
||||
}
|
||||
if (!r1) {
|
||||
r0.return();
|
||||
}
|
||||
env0_2 += r5;
|
||||
return '' + r3.padEnd(env0_1 + 1, ' ') + ' - ' + r5 + 'ms';
|
||||
}
|
||||
|
||||
function _fun7248(a0) { // fn#7248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:686:3136, offset: 0x00d1297f, size: 126 bytes, params: 2, frame: 16
|
||||
var r0;
|
||||
var r3;
|
||||
var r1;
|
||||
var item3;
|
||||
var value3;
|
||||
var item4;
|
||||
var value4;
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r2 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r0 = item2;
|
||||
r3 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
r0 = item3;
|
||||
r3 = value3;
|
||||
}
|
||||
if (r3) {
|
||||
r1 = value;
|
||||
} else {
|
||||
item4 = Reflect.apply(iterator2, r0, []);
|
||||
item = item4.value;
|
||||
item4 = item4.done ? undefined : r0;
|
||||
value4 = item4 === value;
|
||||
if (value4) {
|
||||
r0 = item4;
|
||||
r1 = value;
|
||||
r3 = value4;
|
||||
} else {
|
||||
r0 = item4;
|
||||
r1 = item;
|
||||
r3 = value4;
|
||||
}
|
||||
}
|
||||
if (!r3) {
|
||||
r0.return();
|
||||
}
|
||||
const Math = global.Math;
|
||||
env0_0 = Math.max(r2.length, env0_0);
|
||||
return [r2, r1];
|
||||
}
|
||||
|
||||
function _fun7249(a0) { // fn#7249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:686:3185, offset: 0x00d129fd, size: 143 bytes, params: 2, frame: 18
|
||||
var r0;
|
||||
var r1;
|
||||
var r5;
|
||||
var item3;
|
||||
var value3;
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r3 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r0 = item2;
|
||||
r1 = value2;
|
||||
r5 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = item3;
|
||||
r1 = value3;
|
||||
r5 = value;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r1 = value3;
|
||||
r5 = item;
|
||||
}
|
||||
}
|
||||
if (!r1) {
|
||||
r0.return();
|
||||
}
|
||||
env0_1 += r5;
|
||||
return '' + r3.padEnd(env0_0 + 1, ' ') + ' - ' + r5 + 'ms';
|
||||
}
|
||||
|
||||
@@ -0,0 +1,614 @@
|
||||
/* Metro module 567; source: ../discord_common/js/packages/flux/PersistedStore.tsx; dependencies: [102, 29, 6, 7, 15, 17, 18, 568, 572, 20, 587, 2] */
|
||||
function _fun6822(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:6, offset: 0x00d0992f, size: 496 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['_state', '_version'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(102) /* metro dependency 102 */;
|
||||
const env0_5 = importDefault(29) /* metro dependency 29 */;
|
||||
const env0_6 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_7 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_8 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_9 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_10 = importDefault(18) /* metro dependency 18 */;
|
||||
const Store = (require(568) /* metro dependency 568: Store */).Store;
|
||||
object = {_state: undefined, _version: undefined};
|
||||
const value = _fun6829(Store);
|
||||
let Set = global.Set;
|
||||
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
let set = new Set();
|
||||
value.allPersistKeys = set instanceof Object ? set : value2;
|
||||
Set = global.Set;
|
||||
const value4 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
value.userAgnosticPersistKeys = set instanceof Object ? set : value4;
|
||||
let Map = global.Map;
|
||||
const value6 = Object.create(Map.prototype, {constructor: {value: Map}});
|
||||
let map = new Map();
|
||||
value._writePromises = map instanceof Object ? map : value6;
|
||||
Map = global.Map;
|
||||
const value8 = Object.create(Map.prototype, {constructor: {value: Map}});
|
||||
map = new Map();
|
||||
value._writeResolvers = map instanceof Object ? map : value8;
|
||||
value.disableWrites = false;
|
||||
value.disableWrite = false;
|
||||
value.throttleDelay = 0;
|
||||
const value10 = _fun6858(value);
|
||||
const value11 = _fun6863(value10);
|
||||
const value12 = _fun6865(value10);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/PersistedStore.tsx');
|
||||
exports.PersistedStore = value;
|
||||
exports.DeviceSettingsStore = value11;
|
||||
exports.OfflineCacheStore = value12;
|
||||
}
|
||||
|
||||
function _superPropGet_6823(a0, a1, a2, a3) { // fn#6823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:214, offset: 0x00d09b1f, size: 99 bytes, params: 5, frame: 18
|
||||
let value = a0;
|
||||
const env0_0 = a2;
|
||||
const binding = env0_4;
|
||||
value = env0_9(1 & 3 ? value.prototype : value);
|
||||
value = binding(value, a1, a2);
|
||||
return 2 & 3 ? typeof value !== 'function' ? value : _fun6824 : value;
|
||||
}
|
||||
|
||||
function _callSuper_6825(a0, a1, a2) { // fn#6825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:348, offset: 0x00d09b82, size: 100 bytes, params: 4, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = a2;
|
||||
const value3 = env0_9(a1);
|
||||
const binding = env0_8;
|
||||
if (_isNativeReflectConstruct_6826()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value3, value || [], env0_9(a0).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value3.apply(a0, value);
|
||||
r0 = value;
|
||||
}
|
||||
return binding(a0, r0);
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_6826() { // fn#6826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:479, offset: 0x00d09be6, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_6826_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun6829(a0) { // fn#6829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:719, offset: 0x00d09c44, size: 353 bytes, params: 2, frame: 18
|
||||
const closure = PersistedStore;
|
||||
env0_10(closure, a0);
|
||||
return env0_7(closure, [{key: 'getClass', value: function() {
|
||||
return this.constructor;
|
||||
}}, {key: 'initializeFromState', value: value_6835}, {key: 'initializeIfNeeded', value: value_6836},
|
||||
{key: 'asyncPersist', value: value_6837}, {key: 'persist', value: function() {
|
||||
var persistKey = this.getClass().persistKey;
|
||||
var value = this.getState();
|
||||
var _version = this._version;
|
||||
var Storage = require(dependencyMap[10]).Storage;
|
||||
Storage.set(persistKey, {_state: value, _version: _version});
|
||||
}}, {key: 'clear', value: function() {
|
||||
var persistKey = this.getClass().persistKey;
|
||||
var Storage = require(dependencyMap[10]).Storage;
|
||||
Storage.remove(persistKey);
|
||||
}}], [{key: 'clearAll', value: function(a0) {
|
||||
var Promise;
|
||||
var value2;
|
||||
var value3;
|
||||
var env0_0 = a0;
|
||||
env1_13 = a0;
|
||||
if (PersistedStore._clearAllPromise == null) {
|
||||
Promise = global.Promise;
|
||||
value2 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
value3 = new Promise(_fun6844);
|
||||
PersistedStore._clearAllPromise = value3 instanceof Object ? value3 : value2;
|
||||
}
|
||||
return PersistedStore._clearAllPromise;
|
||||
}}, {key: 'shouldClear', value: value_6848}, {key: 'clearPersistQueue', value: function(a0) {
|
||||
var env0_0 = a0;
|
||||
PersistedStore._writeResolvers.forEach(_fun6850);
|
||||
PersistedStore._writePromises.clear();
|
||||
PersistedStore._writeResolvers.clear();
|
||||
}}, {key: 'getAllStates', value: value_6851}, {key: 'initializeAll', value: value_6854}, {key: 'destroy',
|
||||
value: function() {
|
||||
env1_13 = null;
|
||||
Store.destroy();
|
||||
PersistedStore.clearPersistQueue({type: 'all'});
|
||||
PersistedStore.allPersistKeys.clear();
|
||||
PersistedStore.userAgnosticPersistKeys.clear();
|
||||
}}, {key: 'migrateAndReadStoreState', value: value_6857}]);
|
||||
}
|
||||
|
||||
function _fun6858(a0) { // fn#6858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:5583, offset: 0x00d0a925, size: 114 bytes, params: 2, frame: 16
|
||||
const closure = UserAgnosticStore;
|
||||
env0_10(closure, a0);
|
||||
return env0_7(closure, [{key: 'initializeFromState', value: value_6860}, {key: 'initializeIfNeeded',
|
||||
value: value_6861}, {key: 'getState', value: function() {
|
||||
return this.getUserAgnosticState();
|
||||
}}]);
|
||||
}
|
||||
|
||||
function _fun6863(a0) { // fn#6863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:6185, offset: 0x00d0aa7b, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = DeviceSettingsStore;
|
||||
env0_10(closure, a0);
|
||||
return env0_7(closure);
|
||||
}
|
||||
|
||||
function _fun6865(a0) { // fn#6865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:6371, offset: 0x00d0aaa3, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = OfflineCacheStore;
|
||||
env0_10(closure, a0);
|
||||
return env0_7(closure);
|
||||
}
|
||||
|
||||
function PersistedStore(a0, a1, a2) { // fn#6830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:731, offset: 0x00d09da5, size: 489 bytes, params: 4, frame: 18
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
env1_6(this, PersistedStore);
|
||||
const value3 = _callSuper_6825(this, PersistedStore, [a0, a1, a2]);
|
||||
let getClass = value3.getClass;
|
||||
value3._version = Reflect.apply(getClass, value3, []).migrations == null ? 0 : value3.getClass().migrations.length;
|
||||
value3.callback = callback_6831;
|
||||
value = importDefault(572) /* metro dependency 572 */;
|
||||
getClass = value3.getClass;
|
||||
value3.throttledCallback = value(_fun6832, Reflect.apply(getClass, value3, []).throttleDelay, {leading: false});
|
||||
getClass = value3.getClass;
|
||||
if (typeof Reflect.apply(getClass, value3, []).persistKey !== 'string') {
|
||||
throw new global.Error('' + value3.getClass().name + ' initialized without a `persistKey`. Add one so we know where to save your stuff!');
|
||||
}
|
||||
if (typeof value3.initialize !== 'function') {
|
||||
throw new global.Error('' + value3.getClass().name + ' initialized without an `initialize` method. Add one that accepts the initial cached state.');
|
||||
}
|
||||
const getState = value3.getState;
|
||||
if (typeof getState !== 'function') {
|
||||
throw new global.Error('' + value3.getClass().name + ' initialized without a `getState` method. Add one that returns the full state of the store for persistance to work.');
|
||||
}
|
||||
value3.addChangeListener(_fun6833);
|
||||
return value3;
|
||||
}
|
||||
|
||||
function value_6835(a0) { // fn#6835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:1853, offset: 0x00d0a015, size: 102 bytes, params: 2, frame: 12
|
||||
var allPersistKeys;
|
||||
if (this.initialize(a0)) {
|
||||
this.asyncPersist();
|
||||
}
|
||||
if (this._isInitialized) {
|
||||
this.emitChange();
|
||||
} else {
|
||||
allPersistKeys = PersistedStore.allPersistKeys;
|
||||
allPersistKeys.add(this.getClass().persistKey);
|
||||
this._isInitialized = true;
|
||||
}
|
||||
}
|
||||
|
||||
function value_6836() { // fn#6836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:2064, offset: 0x00d0a07b, size: 263 bytes, params: 1, frame: 17
|
||||
var Date;
|
||||
var value;
|
||||
var allPersistKeys;
|
||||
var add;
|
||||
var getClass;
|
||||
var persistKey;
|
||||
var migrateAndReadStoreState;
|
||||
var value3;
|
||||
var state;
|
||||
var requiresPersist;
|
||||
var value4;
|
||||
var defaultImport;
|
||||
if (!this._isInitialized) {
|
||||
Date = global.Date;
|
||||
value = Date.now();
|
||||
allPersistKeys = PersistedStore.allPersistKeys;
|
||||
add = allPersistKeys.add;
|
||||
getClass = this.getClass;
|
||||
persistKey = Reflect.apply(getClass, this, []).persistKey;
|
||||
Reflect.apply(add, allPersistKeys, [persistKey]);
|
||||
migrateAndReadStoreState = PersistedStore.migrateAndReadStoreState;
|
||||
getClass = this.getClass;
|
||||
persistKey = Reflect.apply(getClass, this, []).persistKey;
|
||||
getClass = this.getClass;
|
||||
value3 = Reflect.apply(migrateAndReadStoreState, PersistedStore, [persistKey, Reflect.apply(getClass, this,
|
||||
[]).migrations]);
|
||||
state = value3.state;
|
||||
requiresPersist = value3.requiresPersist;
|
||||
if (this.initialize(state)) {
|
||||
this.asyncPersist();
|
||||
}
|
||||
if (requiresPersist) {
|
||||
this.asyncPersist();
|
||||
}
|
||||
this._isInitialized = true;
|
||||
Date = global.Date;
|
||||
value = Date.now() - value;
|
||||
if (value > 5) {
|
||||
value4 = environment.__proto__;
|
||||
defaultImport = importDefault(20) /* metro dependency 20: AppStartPerformance */;
|
||||
defaultImport.mark('🦥', this.getName() + '.initialize()', value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_6837() { // fn#6837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:2503, offset: 0x00d0a182, size: 171 bytes, params: 1, frame: 15
|
||||
var r0;
|
||||
var promise;
|
||||
const value = this.getClass();
|
||||
const persistKey = value.persistKey;
|
||||
const disableWrite = value.disableWrite;
|
||||
const env0_2 = value.throttleDelay;
|
||||
if (PersistedStore.disableWrites) {
|
||||
return global.Promise.resolve(false);
|
||||
}
|
||||
if (disableWrite) {
|
||||
return global.Promise.resolve(false);
|
||||
}
|
||||
const value2 = PersistedStore._writePromises.get(persistKey);
|
||||
if (value2 != null) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
promise = new global.Promise(function(a0) {
|
||||
var r7;
|
||||
var env0_0 = a0;
|
||||
r7 = throttleDelay > 0 ? _fun6839 : _fun6840;
|
||||
var _writeResolvers = PersistedStore._writeResolvers;
|
||||
var persistKeyBinding = persistKey;
|
||||
var items = [a0];
|
||||
items[1] = global.requestIdleCallback(r7, {timeout: 500});
|
||||
_writeResolvers.set(persistKeyBinding, items);
|
||||
});
|
||||
PersistedStore._writePromises.set(persistKey, promise);
|
||||
r0 = promise;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_6843(a0) { // fn#6843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:3179, offset: 0x00d0a366, size: 90 bytes, params: 2, frame: 13
|
||||
var Promise;
|
||||
var value2;
|
||||
var promise;
|
||||
let env0_0 = a0;
|
||||
env1_13 = a0;
|
||||
if (PersistedStore._clearAllPromise == null) {
|
||||
Promise = global.Promise;
|
||||
value2 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
promise = new Promise(function(a0) {
|
||||
var env0_0 = a0;
|
||||
global.requestIdleCallback(_fun6845, {timeout: 500});
|
||||
});
|
||||
PersistedStore._clearAllPromise = promise instanceof Object ? promise : value2;
|
||||
}
|
||||
return PersistedStore._clearAllPromise;
|
||||
}
|
||||
|
||||
function value_6848(a0, a1) { // fn#6848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:3737, offset: 0x00d0a4f3, size: 99 bytes, params: 3, frame: 12
|
||||
var type;
|
||||
var userAgnosticPersistKeys;
|
||||
const omit = a0.omit;
|
||||
if (omit == null) {
|
||||
type = a0.type;
|
||||
if (type === 'all') {
|
||||
return true;
|
||||
}
|
||||
if (type === 'user-data-only') {
|
||||
userAgnosticPersistKeys = PersistedStore.userAgnosticPersistKeys;
|
||||
return !userAgnosticPersistKeys.has(a1);
|
||||
}
|
||||
} else {
|
||||
if (omit.includes(a1)) {
|
||||
return false;
|
||||
}
|
||||
type = a0.type;
|
||||
if (type === 'all') {
|
||||
return true;
|
||||
}
|
||||
if (type === 'user-data-only') {
|
||||
userAgnosticPersistKeys = PersistedStore.userAgnosticPersistKeys;
|
||||
return !userAgnosticPersistKeys.has(a1);
|
||||
}
|
||||
}
|
||||
a0.type;
|
||||
return false;
|
||||
}
|
||||
|
||||
function value_6849(a0) { // fn#6849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:3968, offset: 0x00d0a556, size: 73 bytes, params: 2, frame: 12
|
||||
const env0_0 = a0;
|
||||
PersistedStore._writeResolvers.forEach(_fun6850);
|
||||
PersistedStore._writePromises.clear();
|
||||
PersistedStore._writeResolvers.clear();
|
||||
}
|
||||
|
||||
function value_6851() { // fn#6851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:4284, offset: 0x00d0a638, size: 76 bytes, params: 1, frame: 14
|
||||
const Promise = global.Promise;
|
||||
const all = Promise.all;
|
||||
const Array = global.Array;
|
||||
const from = Array.from;
|
||||
const _writePromises = PersistedStore._writePromises;
|
||||
return Reflect.apply(all, Promise, [Reflect.apply(from, Array, [_writePromises.values()])]).then(function() {
|
||||
PersistedStore.allPersistKeys.forEach(_fun6853);
|
||||
return {};
|
||||
});
|
||||
}
|
||||
|
||||
function value_6854(a0) { // fn#6854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:4532, offset: 0x00d0a6f3, size: 45 bytes, params: 2, frame: 11
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
Store.getAll().forEach(_fun6855);
|
||||
}
|
||||
|
||||
function value_6857(a0, a1) { // fn#6857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:4918, offset: 0x00d0a7c8, size: 349 bytes, params: 3, frame: 22
|
||||
var r5;
|
||||
var length;
|
||||
var r2;
|
||||
var r1;
|
||||
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
|
||||
var get;
|
||||
var value5;
|
||||
var binding;
|
||||
var value7;
|
||||
let value = environment.__proto__;
|
||||
const value2 = null;
|
||||
if (value2 != env1_13) {
|
||||
reducibleJoin2: while (true) {
|
||||
if (PersistedStore.shouldClear(env1_13, a0)) {
|
||||
Storage.remove(a0);
|
||||
return {state: undefined, requiresPersist: false};
|
||||
}
|
||||
break reducibleJoin2;
|
||||
}
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (value2 != PersistedStore._clearAllPromise) {
|
||||
r5 = value2;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
get = Storage.get;
|
||||
value5 = Reflect.apply(get, Storage, [a0]);
|
||||
r5 = value5;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
reducibleJoin6: while (true) {
|
||||
if (value2 != r5) {
|
||||
break reducibleJoin6;
|
||||
}
|
||||
binding = env1_12;
|
||||
r5 = binding;
|
||||
break reducibleJoin6;
|
||||
}
|
||||
const _state = r5._state;
|
||||
const _version = r5._version;
|
||||
value = env1_5(r5, env1_3);
|
||||
const value6 = 0;
|
||||
reducibleJoin8: while (true) {
|
||||
if (value2 == a1) {
|
||||
length = value6;
|
||||
break reducibleJoin8;
|
||||
}
|
||||
length = a1.length;
|
||||
break reducibleJoin8;
|
||||
}
|
||||
if (value6 !== length) {
|
||||
reducibleJoin11: while (true) {
|
||||
if (_version === length) {
|
||||
break reducibleJoin11;
|
||||
}
|
||||
if (value2 != a1) {
|
||||
r5 = value2 != _version ? _version : value6;
|
||||
r2 = value2 != _version ? _state : value;
|
||||
if (r5 < length) {
|
||||
r1 = r2;
|
||||
reducibleLoop18: while (true) {
|
||||
value = (0, a1[r5])(r1);
|
||||
value7 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
||||
if (value7 < length) {
|
||||
r1 = value;
|
||||
r5 = value7;
|
||||
continue reducibleLoop18;
|
||||
}
|
||||
r2 = value;
|
||||
break reducibleLoop18;
|
||||
}
|
||||
}
|
||||
return {state: r2, requiresPersist: true};
|
||||
}
|
||||
break reducibleJoin11;
|
||||
}
|
||||
}
|
||||
const Object = global.Object;
|
||||
return Object.values(value).length > value6 ? {state: value, requiresPersist: true} : {state: _state,
|
||||
requiresPersist: false};
|
||||
}
|
||||
|
||||
function UserAgnosticStore() { // fn#6859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:5595, offset: 0x00d0a997, size: 42 bytes, params: 1, frame: 16
|
||||
env1_6(this, UserAgnosticStore);
|
||||
return _callSuper_6825(this, UserAgnosticStore, arguments);
|
||||
}
|
||||
|
||||
function value_6860(a0) { // fn#6860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:5786, offset: 0x00d0a9c1, size: 89 bytes, params: 2, frame: 17
|
||||
const value = environment.__proto__;
|
||||
const userAgnosticPersistKeys = env1_14.userAgnosticPersistKeys;
|
||||
const add = userAgnosticPersistKeys.add;
|
||||
const getClass = this.getClass;
|
||||
Reflect.apply(add, userAgnosticPersistKeys, [Reflect.apply(getClass, this, []).persistKey]);
|
||||
return _superPropGet_6823(UserAgnosticStore, 'initializeFromState', this, 3)([a0]);
|
||||
}
|
||||
|
||||
function value_6861() { // fn#6861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:5964, offset: 0x00d0aa1a, size: 82 bytes, params: 1, frame: 17
|
||||
const value = environment.__proto__;
|
||||
const userAgnosticPersistKeys = env1_14.userAgnosticPersistKeys;
|
||||
const add = userAgnosticPersistKeys.add;
|
||||
const getClass = this.getClass;
|
||||
Reflect.apply(add, userAgnosticPersistKeys, [Reflect.apply(getClass, this, []).persistKey]);
|
||||
return _superPropGet_6823(UserAgnosticStore, 'initializeIfNeeded', this, 3)([]);
|
||||
}
|
||||
|
||||
function PersistedStoreCallback(a0) { // fn#6831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:921, owner: PersistedStore.callback, offset: 0x00d09f8e, size: 83 bytes, params: 2, frame: 12
|
||||
const binding = env0_0;
|
||||
const getClass = binding.getClass;
|
||||
const persistKey = Reflect.apply(getClass, binding, []).persistKey;
|
||||
binding.persist();
|
||||
PersistedStore._writePromises.delete(persistKey);
|
||||
PersistedStore._writeResolvers.delete(persistKey);
|
||||
a0();
|
||||
}
|
||||
|
||||
function _fun6832(a0) { // fn#6832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:1082, offset: 0x00d09fe1, size: 23 bytes, params: 2, frame: 11
|
||||
return env0_0.callback(a0);
|
||||
}
|
||||
|
||||
function _fun6833() { // fn#6833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:1691, offset: 0x00d09ff8, size: 19 bytes, params: 1, frame: 9
|
||||
return env0_0.asyncPersist();
|
||||
}
|
||||
|
||||
function _fun6838(a0) { // fn#6838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:2723, offset: 0x00d0a22d, size: 105 bytes, params: 2, frame: 17
|
||||
const env0_0 = a0;
|
||||
const r7 = throttleDelay > 0 ? _fun6839 : _fun6840;
|
||||
const _writeResolvers = PersistedStore._writeResolvers;
|
||||
const set = _writeResolvers.set;
|
||||
const persistKeyBinding = persistKey;
|
||||
const items2 = [a0];
|
||||
items2[1] = global.requestIdleCallback(r7, {timeout: 500});
|
||||
Reflect.apply(set, _writeResolvers, [persistKeyBinding, items2]);
|
||||
}
|
||||
|
||||
function _fun6844(a0) { // fn#6844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:3287, offset: 0x00d0a3c0, size: 45 bytes, params: 2, frame: 13
|
||||
const env0_0 = a0;
|
||||
global.requestIdleCallback(_fun6845, {timeout: 500});
|
||||
}
|
||||
|
||||
function _fun6850(a0, a1) { // fn#6850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:4020, offset: 0x00d0a59f, size: 153 bytes, params: 3, frame: 18
|
||||
var r1;
|
||||
var r3;
|
||||
var r4;
|
||||
var item3;
|
||||
var value3;
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r2 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r1 = item2;
|
||||
r3 = value;
|
||||
r4 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r1 = item3;
|
||||
r3 = value;
|
||||
r4 = value3;
|
||||
} else {
|
||||
r1 = item3;
|
||||
r3 = item;
|
||||
r4 = value3;
|
||||
}
|
||||
}
|
||||
if (!r4) {
|
||||
r1.return();
|
||||
}
|
||||
if (PersistedStore.shouldClear(env0_0, a1)) {
|
||||
PersistedStore._writePromises.delete(a1);
|
||||
PersistedStore._writeResolvers.delete(a1);
|
||||
global.cancelIdleCallback(r3);
|
||||
r2(false);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun6852() { // fn#6852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:4372, offset: 0x00d0a684, size: 38 bytes, params: 1, frame: 12
|
||||
PersistedStore.allPersistKeys.forEach(_fun6853);
|
||||
return {};
|
||||
}
|
||||
|
||||
function _fun6855(a0) { // fn#6855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:4564, offset: 0x00d0a720, size: 81 bytes, params: 2, frame: 13
|
||||
var persistKey;
|
||||
var binding;
|
||||
if (a0 instanceof PersistedStore) {
|
||||
persistKey = a0.getClass().persistKey;
|
||||
binding = env0_0;
|
||||
if (binding.hasOwnProperty(persistKey)) {
|
||||
a0.initializeFromState(env0_0[persistKey]);
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun6839() { // fn#6839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:2737, offset: 0x00d0a296, size: 27 bytes, params: 1, frame: 11
|
||||
return env1_0.throttledCallback(env0_0);
|
||||
}
|
||||
|
||||
function _fun6840() { // fn#6840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:2767, offset: 0x00d0a2b1, size: 27 bytes, params: 1, frame: 11
|
||||
return env1_0.callback(env0_0);
|
||||
}
|
||||
|
||||
function _fun6845() { // fn#6845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:3312, offset: 0x00d0a3ed, size: 103 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const clearPersistQueue = PersistedStore.clearPersistQueue;
|
||||
value = environment.__proto__;
|
||||
Reflect.apply(clearPersistQueue, PersistedStore, [env1_0]);
|
||||
PersistedStore.allPersistKeys.forEach(_fun6846);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
Store.getAll().forEach(_fun6847);
|
||||
PersistedStore._clearAllPromise = null;
|
||||
env0_0();
|
||||
}
|
||||
|
||||
function _fun6853(a0) { // fn#6853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:4432, offset: 0x00d0a6aa, size: 73 bytes, params: 2, frame: 14
|
||||
const binding = env0_0;
|
||||
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
|
||||
binding[a0] = (Storage.get(a0) ?? env3_12)._state;
|
||||
}
|
||||
|
||||
function _fun6846(a0) { // fn#6846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:3392, offset: 0x00d0a454, size: 78 bytes, params: 2, frame: 13
|
||||
if (PersistedStore.shouldClear(env2_0, a0)) {
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
(require(587) /* metro dependency 587: Storage */).Storage.remove(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun6847(a0) { // fn#6847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:617:3480, offset: 0x00d0a4a2, size: 81 bytes, params: 2, frame: 15
|
||||
var r0;
|
||||
var shouldClear;
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const value2 = a0 instanceof PersistedStore;
|
||||
if (value2) {
|
||||
shouldClear = PersistedStore.shouldClear;
|
||||
value = environment.__proto__.__proto__;
|
||||
value = Reflect.apply(shouldClear, PersistedStore, [env2_0, a0.getClass().persistKey]);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
if (r0) {
|
||||
a0._isInitialized = false;
|
||||
a0.initializeIfNeeded();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,243 @@
|
||||
/* Metro module 568; source: ../discord_common/js/packages/flux/Store.tsx; dependencies: [6, 7, 569, 570, 20, 44, 2] */
|
||||
function _fun6867(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:6, offset: 0x00d0aacb, size: 187 bytes, params: 8, frame: 20
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_6 = [];
|
||||
const Promise = global.Promise;
|
||||
const promise = new Promise(function(a0) {
|
||||
var env0_0 = a0;
|
||||
env0_3 = _fun6869;
|
||||
});
|
||||
const value2 = _fun6870();
|
||||
value2.initialized = promise;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/Store.tsx');
|
||||
exports.Store = value2;
|
||||
}
|
||||
|
||||
function _fun6868(a0) { // fn#6868, offset: 0x00d0ab86, size: 25 bytes, params: 2, frame: 2
|
||||
const env0_0 = a0;
|
||||
}
|
||||
|
||||
function _fun6870() { // fn#6870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:178, offset: 0x00d0abb7, size: 332 bytes, params: 1, frame: 17
|
||||
return env0_5(Store, [{key: 'registerActionHandlers', value: function(a0, a1) {
|
||||
this._dispatcher.register(this.getName(), a0, this.doEmitChanges, a1, this._dispatchToken);
|
||||
}}, {key: 'getName', value: function() {
|
||||
return this.constructor.displayName ?? this.constructor.name;
|
||||
}}, {key: 'initializeIfNeeded', value: value_6875}, {key: 'initialize', value: function() {
|
||||
}}, {key: 'syncWith', value: value_6877}, {key: 'waitFor', value: function(a0) {
|
||||
var r6;
|
||||
var env0_0 = this;
|
||||
var value = copyRestArgs(0, r6);
|
||||
value = value.map(_fun6886);
|
||||
this._dispatcher.addDependencies(this.getDispatchToken(), value.filter(_fun6887));
|
||||
}}, {key: 'emitChange', value: value_6888}, {key: 'getDispatchToken', value: function() {
|
||||
return this._dispatchToken;
|
||||
}}, {key: 'mustEmitChanges', value: function() {
|
||||
var value = a0;
|
||||
this._mustEmitChanges = value !== undefined ? value : _fun6891;
|
||||
}}], [{key: 'initialize', value: value_6892}, {key: 'destroy', value: value_6894}, {key: 'getAll',
|
||||
value: value_6895}, {key: 'removeAllConditionalListeners', value: value_6896}]);
|
||||
}
|
||||
|
||||
function t_6869() { // fn#6869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:152, offset: 0x00d0ab9f, size: 24 bytes, params: 1, frame: 10
|
||||
env0_0();
|
||||
}
|
||||
|
||||
function Store(a0, a1, a2) { // fn#6871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:199, offset: 0x00d0ad03, size: 349 bytes, params: 4, frame: 19
|
||||
const value = a1;
|
||||
env1_4(this, Store);
|
||||
const ChangeListeners = (require(569) /* metro dependency 569: ChangeListeners */).ChangeListeners;
|
||||
const value4 = Object.create(ChangeListeners.prototype, {constructor: {value: ChangeListeners}});
|
||||
let changeListeners = new ChangeListeners();
|
||||
this._changeCallbacks = changeListeners instanceof Object ? changeListeners : value4;
|
||||
const value6 = Object.create(ChangeListeners.prototype, {constructor: {value: ChangeListeners}});
|
||||
changeListeners = new ChangeListeners();
|
||||
this._reactChangeCallbacks = changeListeners instanceof Object ? changeListeners : value6;
|
||||
this._syncWiths = [];
|
||||
this._isInitialized = false;
|
||||
this.doEmitChanges = doEmitChanges;
|
||||
this.addChangeListener = this._changeCallbacks.add;
|
||||
this.removeChangeListener = this._changeCallbacks.remove;
|
||||
this.addConditionalChangeListener = this._changeCallbacks.addConditional;
|
||||
this.removeAllConditionalChangeListeners = this._changeCallbacks.removeAllConditional;
|
||||
this.addReactChangeListener = this._reactChangeCallbacks.add;
|
||||
this.removeReactChangeListener = this._reactChangeCallbacks.remove;
|
||||
this._dispatcher = a0;
|
||||
const _dispatcher = this._dispatcher;
|
||||
this._dispatchToken = _dispatcher.createToken();
|
||||
this.registerActionHandlers(value ?? ({}), a2);
|
||||
env1_6.push(this);
|
||||
if (env1_7) {
|
||||
this.initializeIfNeeded();
|
||||
}
|
||||
}
|
||||
|
||||
function value_6875() { // fn#6875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1454, offset: 0x00d0af89, size: 142 bytes, params: 1, frame: 15
|
||||
var Date;
|
||||
var value;
|
||||
var value2;
|
||||
var defaultImport;
|
||||
if (!this._isInitialized) {
|
||||
Date = global.Date;
|
||||
value = Date.now();
|
||||
this.initialize();
|
||||
this._isInitialized = true;
|
||||
Date = global.Date;
|
||||
value = Date.now() - value;
|
||||
if (value > 5) {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(20) /* metro dependency 20: AppStartPerformance */;
|
||||
defaultImport.mark('🦥', this.getName() + '.initialize()', value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_6877(a0, a1, a2) { // fn#6877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1690, offset: 0x00d0b017, size: 143 bytes, params: 4, frame: 18
|
||||
var closure;
|
||||
const value = a2;
|
||||
let env0_1 = a1;
|
||||
const waitFor = this.waitFor;
|
||||
const items2 = [];
|
||||
const value2 = 0;
|
||||
apply(waitFor, items2, this, arraySpread(items2, a0, value2, undefined));
|
||||
if (value != null) {
|
||||
closure = value_6877Wrapper;
|
||||
var env0_3;
|
||||
env0_3 = ((a0, a1) => {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
var env0_2 = null;
|
||||
return a0 === 0 ? _fun6880 : _fun6881;
|
||||
})(value ?? value2, closure);
|
||||
a0.forEach(function(a0) {
|
||||
return a0.addChangeListener(value_6877Wrapper);
|
||||
});
|
||||
} else {
|
||||
a0.forEach(_fun6884);
|
||||
}
|
||||
}
|
||||
|
||||
function value_6885(a0) { // fn#6885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2180, offset: 0x00d0b1fd, size: 77 bytes, params: 2, frame: 15
|
||||
let value = copyRestArgs(0, undefined);
|
||||
value = value.map(_fun6886);
|
||||
const _dispatcher = this._dispatcher;
|
||||
_dispatcher.addDependencies(this.getDispatchToken(), value.filter(function(a0) {
|
||||
return a0 != null;
|
||||
}));
|
||||
}
|
||||
|
||||
function value_6888() { // fn#6888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2566, offset: 0x00d0b2fb, size: 41 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__;
|
||||
(importDefault(570) /* metro dependency 570: Emitter */).markChanged(this);
|
||||
}
|
||||
|
||||
function value_6890() { // fn#6890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2705, offset: 0x00d0b32f, size: 27 bytes, params: 1, frame: 3
|
||||
const value = a0;
|
||||
this._mustEmitChanges = value !== undefined ? value : function() {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
|
||||
function value_6892() { // fn#6892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2776, offset: 0x00d0b34a, size: 54 bytes, params: 1, frame: 12
|
||||
env1_6.forEach(function(a0) {
|
||||
return a0.initializeIfNeeded();
|
||||
});
|
||||
if (env1_3 != null) {
|
||||
env1_3();
|
||||
}
|
||||
}
|
||||
|
||||
function value_6894() { // fn#6894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2867, offset: 0x00d0b38f, size: 49 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
env1_6.length = 0;
|
||||
(importDefault(570) /* metro dependency 570: Emitter */).destroy();
|
||||
}
|
||||
|
||||
function value_6896() { // fn#6896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2995, offset: 0x00d0b3c0, size: 28 bytes, params: 1, frame: 11
|
||||
env1_6.forEach(function({_changeCallbacks}) {
|
||||
_changeCallbacks.removeAllConditional();
|
||||
});
|
||||
}
|
||||
|
||||
function doEmitChanges(a0) { // fn#6872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:403, owner: Store.doEmitChanges, offset: 0x00d0ae60, size: 212 bytes, params: 2, frame: 17
|
||||
var r1;
|
||||
var value3;
|
||||
let r0 = env0_0._changeCallbacks.hasAny() || env0_0._reactChangeCallbacks.hasAny();
|
||||
r0 = !r0 ? env0_0._syncWiths.length > 0 : r0;
|
||||
if (r0) {
|
||||
value3 = environment.__proto__.__proto__;
|
||||
(importDefault(570) /* metro dependency 570: Emitter */).markChanged(env0_0);
|
||||
r1 = (importDefault(570) /* metro dependency 570: Emitter */).getIsPaused() && env0_0._mustEmitChanges != null;
|
||||
r1 = r1 && env0_0._mustEmitChanges(a0);
|
||||
if (r1) {
|
||||
(importDefault(570) /* metro dependency 570: Emitter */).resume(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_6877Wrapper() { // fn#6878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1753, owner: value_6877.wrapper, offset: 0x00d0b0a6, size: 107 bytes, params: 1, frame: 15
|
||||
const binding = env0_2;
|
||||
const defaultImport = importDefault(570) /* metro dependency 570: Emitter */;
|
||||
const getChangeSentinel = defaultImport.getChangeSentinel;
|
||||
if (binding !== Reflect.apply(getChangeSentinel, defaultImport, [])) {
|
||||
env0_2 = defaultImport.getChangeSentinel();
|
||||
if (require() !== false) {
|
||||
env0_0.emitChange();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_6877Debounce(a0, a1) { // fn#6879, owner: value_6877.debounce, offset: 0x00d0b111, size: 42 bytes, params: 3, frame: 3
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return a0 === 0 ? _fun6880 : _fun6881;
|
||||
}
|
||||
|
||||
function _fun6884({_syncWiths}) { // fn#6884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2111, offset: 0x00d0b1cf, size: 46 bytes, params: 2, frame: 13
|
||||
_syncWiths.push({func: require, store: env0_0});
|
||||
}
|
||||
|
||||
function _fun6886(a0, a1) { // fn#6886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2208, offset: 0x00d0b24a, size: 166 bytes, params: 3, frame: 23
|
||||
var r0;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const defaultImport = importDefault(44) /* metro dependency 44 */;
|
||||
const value2 = null;
|
||||
defaultImport(value2 != a0,
|
||||
'Store.waitFor(...) called with null Store at index ' + a1 + ' for store ' + env0_0.getName());
|
||||
if (value2 != a0._dispatcher) {
|
||||
value = defaultImport;
|
||||
value(a0._dispatcher === env0_0._dispatcher, 'Stores belong to two separate dispatchers.');
|
||||
value = a0.getDispatchToken();
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun6880() { // fn#6880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1909, offset: 0x00d0b13b, size: 43 bytes, params: 1, frame: 13
|
||||
global.clearImmediate(env0_2);
|
||||
env0_2 = global.setImmediate(require);
|
||||
}
|
||||
|
||||
function _fun6881() { // fn#6881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1957, offset: 0x00d0b166, size: 48 bytes, params: 1, frame: 14
|
||||
if (env0_2 == null) {
|
||||
env0_2 = global.setTimeout(_fun6882, env0_0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun6882() { // fn#6882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1992, offset: 0x00d0b196, size: 34 bytes, params: 1, frame: 10
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
value = environment.__proto__;
|
||||
require();
|
||||
} catch (error) {
|
||||
env1_2 = null;
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,264 @@
|
||||
/* Metro module 634; source: ../discord_common/js/packages/flux/connectStores.tsx; dependencies: [29, 6, 7, 15, 17, 18, 31, 33, 633, 628, 2] */
|
||||
function _fun7157(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:6, offset: 0x00d10210, size: 268 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const getDisplayName = function(a0) {
|
||||
return a0.displayName ?? a0.name ?? '<Unknown>';
|
||||
};
|
||||
const memoizeGetStateFromStores = function(a0) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = null;
|
||||
var env0_2 = null;
|
||||
var closure = _fun7164;
|
||||
var env0_3 = closure;
|
||||
var closure2 = _fun7165;
|
||||
closure2.getCachedResult = closure;
|
||||
closure2.clear = _fun7166;
|
||||
return closure2;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importDefault(29) /* metro dependency 29 */;
|
||||
let env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_8 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/connectStores.tsx');
|
||||
exports.default = function(a0, a1, a2) {
|
||||
return a2 == null ? _fun7177(a0, a1) : a2.forwardRef ? _fun7168(a0, a1) : _fun7177(a0, a1);
|
||||
};
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_7159() { // fn#7159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:311, offset: 0x00d10380, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_7159_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function memoizeGetStateFromStores(a0) { // fn#7163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:2616, offset: 0x00d10403, size: 52 bytes, params: 2, frame: 3
|
||||
const env0_0 = a0;
|
||||
const closure = getCachedResult;
|
||||
const closure2 = memoizedFunction;
|
||||
closure2.getCachedResult = closure;
|
||||
closure2.clear = function() {
|
||||
env0_1 = null;
|
||||
env0_2 = null;
|
||||
};
|
||||
return closure2;
|
||||
}
|
||||
|
||||
function connectStores(a0, a1, a2) { // fn#7167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:510, offset: 0x00d10505, size: 56 bytes, params: 4, frame: 14
|
||||
return a2 == null ? ((a0, a1) => {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return _fun7178;
|
||||
})(a0, a1) : a2.forwardRef ? ((a0, a1) => {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return _fun7169;
|
||||
})(a0, a1) : ((a0, a1) => {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return _fun7178;
|
||||
})(a0, a1);
|
||||
}
|
||||
|
||||
function getCachedResult(a0) { // fn#7164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:2688, owner: memoizeGetStateFromStores.getCachedResult, offset: 0x00d10437, size: 144 bytes, params: 2, frame: 16
|
||||
const value2 = null;
|
||||
return value2 == env0_1 || value2 == env0_2 ? value2 != env0_1 && value2 != env0_2 && (importDefault(628) /* metro dependency 628: shallowEqual */)(env0_1,
|
||||
a0) ? env0_2 : value2 : (importDefault(628) /* metro dependency 628: shallowEqual */)(env0_1,
|
||||
a0) || value2 != env0_1 && value2 != env0_2 && (importDefault(628) /* metro dependency 628: shallowEqual */)(env0_1,
|
||||
a0) ? env0_2 : value2;
|
||||
}
|
||||
|
||||
function memoizedFunction(a0) { // fn#7165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:2785, owner: memoizeGetStateFromStores.memoizedFunction, offset: 0x00d104c7, size: 45 bytes, params: 2, frame: 14
|
||||
return getCachedResult(a0) ?? env0_0(a0);
|
||||
}
|
||||
|
||||
function connectStoresWithRef(a0, a1) { // fn#7168, owner: connectStores.connectStoresWithRef, offset: 0x00d1053d, size: 23 bytes, params: 3, frame: 2
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return _fun7169;
|
||||
}
|
||||
|
||||
function connectStoresWithoutRef(a0, a1) { // fn#7177, owner: connectStores.connectStoresWithoutRef, offset: 0x00d1082d, size: 23 bytes, params: 3, frame: 2
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return _fun7178;
|
||||
}
|
||||
|
||||
function _fun7169(a0) { // fn#7169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:611, offset: 0x00d10554, size: 135 bytes, params: 2, frame: 17
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const value3 = 'FluxContainer(' + getDisplayName(a0) + ')';
|
||||
const binding = env2_8;
|
||||
const Component = binding.Component;
|
||||
_fun7170(Component).displayName = value3;
|
||||
value = binding.forwardRef(_fun7176);
|
||||
value.displayName = 'ForwardRef(' + value3 + ')';
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun7178(a0) { // fn#7178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1675, offset: 0x00d10844, size: 86 bytes, params: 2, frame: 16
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const value3 = 'FluxContainer(' + getDisplayName(a0) + ')';
|
||||
const Component = env2_8.Component;
|
||||
value = _fun7179(Component);
|
||||
value.displayName = value3;
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun7170(a0) { // fn#7170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:661, offset: 0x00d105db, size: 114 bytes, params: 2, frame: 16
|
||||
const closure = FluxContainer;
|
||||
env3_7(closure, a0);
|
||||
return env3_4(closure, [{key: 'componentDidMount', value: value_7173}, {key: 'componentWillUnmount',
|
||||
value: function() {
|
||||
this.listener.detach();
|
||||
this.memoizedGetStateFromStores.clear();
|
||||
}}, {key: 'render', value: value_7175}]);
|
||||
}
|
||||
|
||||
function _fun7176(a0, a1) { // fn#7176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1524, offset: 0x00d10803, size: 42 bytes, params: 3, frame: 13
|
||||
return ((Component) => <Component childProps={a0} forwardedConnectStoresRef={a1} />)(env0_2);
|
||||
}
|
||||
|
||||
function _fun7179(a0) { // fn#7179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1725, offset: 0x00d1089a, size: 114 bytes, params: 2, frame: 16
|
||||
const closure = FluxContainer_7180;
|
||||
env3_7(closure, a0);
|
||||
return env3_4(closure, [{key: 'componentDidMount', value: value_7182}, {key: 'componentWillUnmount',
|
||||
value: function() {
|
||||
this.listener.detach();
|
||||
this.memoizedGetStateFromStores.clear();
|
||||
}}, {key: 'render', value: value_7184}]);
|
||||
}
|
||||
|
||||
function FluxContainer(a0) { // fn#7171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:673, offset: 0x00d1064d, size: 149 bytes, params: 2, frame: 19
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env4_3;
|
||||
binding(this, FluxContainer);
|
||||
const _callSuper_7158Binding = _callSuper_7158;
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, undefined);
|
||||
value = _callSuper_7158Binding(this, FluxContainer, items2);
|
||||
value.memoizedGetStateFromStores = memoizeGetStateFromStores(require);
|
||||
const BatchedStoreListener = (require(633) /* metro dependency 633: BatchedStoreListener */).BatchedStoreListener;
|
||||
binding = env2_0;
|
||||
const value5 = Object.create(BatchedStoreListener.prototype, {constructor: {value: BatchedStoreListener}});
|
||||
const batchedStoreListener = new BatchedStoreListener(binding, _fun7172);
|
||||
value.listener = batchedStoreListener instanceof Object ? batchedStoreListener : value5;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_7173() { // fn#7173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1163, offset: 0x00d1076c, size: 31 bytes, params: 1, frame: 11
|
||||
this.listener.attach(env1_1);
|
||||
}
|
||||
|
||||
function value_7175() { // fn#7175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1330, offset: 0x00d107b2, size: 81 bytes, params: 1, frame: 15
|
||||
const {forwardedConnectStoresRef, childProps} = this.props;
|
||||
return ((Component) => <Component ref={forwardedConnectStoresRef} {...childProps} {...this.memoizedGetStateFromStores(childProps)} />)(env1_0);
|
||||
}
|
||||
|
||||
function FluxContainer_7180(a0) { // fn#7180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1737, offset: 0x00d1090c, size: 149 bytes, params: 2, frame: 19
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env4_3;
|
||||
binding(this, FluxContainer_7180);
|
||||
const _callSuper_7158Binding = _callSuper_7158;
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, undefined);
|
||||
value = _callSuper_7158Binding(this, FluxContainer_7180, items2);
|
||||
value.memoizedGetStateFromStores = memoizeGetStateFromStores(require);
|
||||
const BatchedStoreListener = (require(633) /* metro dependency 633: BatchedStoreListener */).BatchedStoreListener;
|
||||
binding = env2_0;
|
||||
const value5 = Object.create(BatchedStoreListener.prototype, {constructor: {value: BatchedStoreListener}});
|
||||
const batchedStoreListener = new BatchedStoreListener(binding, _fun7181);
|
||||
value.listener = batchedStoreListener instanceof Object ? batchedStoreListener : value5;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_7184() { // fn#7184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:2372, offset: 0x00d10a1f, size: 67 bytes, params: 1, frame: 14
|
||||
const memoizedGetStateFromStores = this.memoizedGetStateFromStores;
|
||||
let props = this.props;
|
||||
const value = Reflect.apply(memoizedGetStateFromStores, this, [props]);
|
||||
const binding = env1_0;
|
||||
props = this.props;
|
||||
return ((Component) => <Component {...value} />)(binding);
|
||||
}
|
||||
|
||||
function _fun7172() { // fn#7172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:883, offset: 0x00d106e2, size: 138 bytes, params: 1, frame: 17
|
||||
var r1;
|
||||
var value4;
|
||||
var defaultImport;
|
||||
let binding = env0_0;
|
||||
let memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
|
||||
const cachedResult = memoizedGetStateFromStores.getCachedResult(binding.props.childProps);
|
||||
const value3 = cachedResult != null;
|
||||
if (value3) {
|
||||
binding = env0_0;
|
||||
memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
|
||||
memoizedGetStateFromStores.clear();
|
||||
value4 = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
||||
defaultImport = importDefault(628) /* metro dependency 628: shallowEqual */;
|
||||
memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
|
||||
r1 = defaultImport(Reflect.apply(memoizedGetStateFromStores, binding, [binding.props.childProps]),
|
||||
cachedResult);
|
||||
} else {
|
||||
r1 = value3;
|
||||
}
|
||||
if (!r1) {
|
||||
env0_0.forceUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun7181() { // fn#7181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1947, offset: 0x00d109a1, size: 126 bytes, params: 1, frame: 17
|
||||
var r1;
|
||||
var value4;
|
||||
var defaultImport;
|
||||
let binding = env0_0;
|
||||
let memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
|
||||
const cachedResult = memoizedGetStateFromStores.getCachedResult(binding.props);
|
||||
const value3 = cachedResult != null;
|
||||
if (value3) {
|
||||
binding = env0_0;
|
||||
memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
|
||||
memoizedGetStateFromStores.clear();
|
||||
value4 = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
||||
defaultImport = importDefault(628) /* metro dependency 628: shallowEqual */;
|
||||
memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
|
||||
r1 = defaultImport(Reflect.apply(memoizedGetStateFromStores, binding, [binding.props]), cachedResult);
|
||||
} else {
|
||||
r1 = value3;
|
||||
}
|
||||
if (!r1) {
|
||||
env0_0.forceUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,44 @@
|
||||
/* Metro module 566; source: ../discord_common/js/packages/flux/index.tsx; dependencies: [567, 568, 627, 570, 634, 2, 635, 633, 632] */
|
||||
function _fun6818(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:616:6, offset: 0x00d09759, size: 413 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
const closure = function() {
|
||||
Store.initialize();
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(567) /* metro dependency 567: PersistedStore */;
|
||||
const PersistedStore = value.PersistedStore;
|
||||
const DeviceSettingsStore = value.DeviceSettingsStore;
|
||||
const OfflineCacheStore = value.OfflineCacheStore;
|
||||
const Store = (require(568) /* metro dependency 568: Store */).Store;
|
||||
value = require(627) /* metro dependency 627: createFetchStore */;
|
||||
const createFetchStore = value.createFetchStore;
|
||||
const NO_DATA = value.NO_DATA;
|
||||
object2 = {Emitter: importDefault(570) /* metro dependency 570: Emitter */, Store: Store,
|
||||
PersistedStore: PersistedStore, DeviceSettingsStore: DeviceSettingsStore, OfflineCacheStore: OfflineCacheStore,
|
||||
connectStores: importDefault(634) /* metro dependency 634: connectStores */, initialize: closure};
|
||||
Object.defineProperty(object2, 'initialized', {get: function() {
|
||||
return Store.initialized;
|
||||
}, set: undefined, enumerable: true, configurable: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/index.tsx');
|
||||
exports.default = object2;
|
||||
exports.NO_DATA = NO_DATA;
|
||||
exports.Store = Store;
|
||||
const Dispatcher = (require(635) /* metro dependency 635: Dispatcher */).Dispatcher;
|
||||
exports.Dispatcher = Dispatcher;
|
||||
const BatchedStoreListener = (require(633) /* metro dependency 633: BatchedStoreListener */).BatchedStoreListener;
|
||||
exports.BatchedStoreListener = BatchedStoreListener;
|
||||
exports.createFetchStore = createFetchStore;
|
||||
exports.statesWillNeverBeEqual = (require(632) /* metro dependency 632: useStateFromStores */).statesWillNeverBeEqual;
|
||||
const useStateFromStores = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores;
|
||||
exports.useStateFromStores = useStateFromStores;
|
||||
const useStateFromStoresObject = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStoresObject;
|
||||
exports.useStateFromStoresObject = useStateFromStoresObject;
|
||||
const useStateFromStoresArray = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStoresArray;
|
||||
exports.useStateFromStoresArray = useStateFromStoresArray;
|
||||
exports.initialize = closure;
|
||||
exports.destroy = function() {
|
||||
PersistedStore.destroy();
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
/* Metro module 632; source: ../discord_common/js/packages/flux/useStateFromStores.tsx; dependencies: [57, 31, 628, 633, 2] */
|
||||
function _fun7139(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:682:6, offset: 0x00d0fcc5, size: 202 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const defaultAreStatesEqual = function(a0, a1) {
|
||||
return a0 === a1;
|
||||
};
|
||||
const closure = useStateFromStores;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const value = require(31) /* metro dependency 31 */;
|
||||
const env0_4 = value.useState;
|
||||
const env0_5 = value.useRef;
|
||||
const env0_6 = value.useInsertionEffect;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/useStateFromStores.tsx');
|
||||
exports.statesWillNeverBeEqual = function() {
|
||||
return false;
|
||||
};
|
||||
exports.useStateFromStores = closure;
|
||||
exports.useStateFromStoresObject = useStateFromStoresObject;
|
||||
exports.useStateFromStoresArray = function(a0, a1, a2) {
|
||||
return useStateFromStores(a0, a1, a2, require(dependencyMap[2]).areArraysShallowEqual);
|
||||
};
|
||||
}
|
||||
|
||||
function useStateFromStores(a0, a1, a2) { // fn#7141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:682:212, offset: 0x00d0fd8f, size: 274 bytes, params: 4, frame: 21
|
||||
var r0;
|
||||
var moduleValue;
|
||||
var value3;
|
||||
const value = a3;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const r8 = value !== undefined ? value : defaultAreStatesEqual;
|
||||
const env0_3 = r8;
|
||||
const value2 = useRef(null);
|
||||
let current = value2.current;
|
||||
if (current == null) {
|
||||
value2.current = {stores: a0, areStatesEqual: r8, getStateFromStores: a1, prevDeps: undefined,
|
||||
state: undefined};
|
||||
}
|
||||
current = value2.current;
|
||||
const state = current.state;
|
||||
if (a2 == null) {
|
||||
value3 = a1();
|
||||
r0 = state != null && r8(state, value3) ? state : value3;
|
||||
} else {
|
||||
moduleValue = require(628) /* metro dependency 628: shallowEqual */;
|
||||
if (moduleValue.areArraysShallowEqual(a2, current.prevDeps)) {
|
||||
r0 = state;
|
||||
} else {
|
||||
value3 = a1();
|
||||
r0 = state != null && r8(state, value3) ? state : value3;
|
||||
}
|
||||
}
|
||||
useInsertionEffect(function() {
|
||||
current.getStateFromStores = require;
|
||||
current.prevDeps = importDefault;
|
||||
current.state = state;
|
||||
});
|
||||
const env0_6 = env0_3(useState(null), 2)[1];
|
||||
useInsertionEffect(_fun7143, []);
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useStateFromStoresObject(a0, a1, a2) { // fn#7147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:682:1007, offset: 0x00d0ff80, size: 46 bytes, params: 4, frame: 17
|
||||
return useStateFromStores(a0, a1, a2, importDefault(628) /* metro dependency 628: shallowEqual */);
|
||||
}
|
||||
|
||||
function _fun7143() { // fn#7143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:682:602, offset: 0x00d0fed2, size: 91 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
const BatchedStoreListener = (require(633) /* metro dependency 633: BatchedStoreListener */).BatchedStoreListener;
|
||||
new BatchedStoreListener(env0_0, _fun7144).attach('useStateFromStores');
|
||||
return _fun7145;
|
||||
}
|
||||
|
||||
function _fun7144() { // fn#7144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:682:650, offset: 0x00d0ff2d, size: 64 bytes, params: 1, frame: 14
|
||||
const stateFromStores = current.getStateFromStores();
|
||||
if (!env1_3(current.state, stateFromStores)) {
|
||||
current.state = stateFromStores;
|
||||
env1_6({});
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+496
@@ -0,0 +1,496 @@
|
||||
/* Metro module 14204; source: ../discord_common/js/packages/flux/useStateFromStoresPerformanceDebugging.tsx; dependencies: [57, 4, 587, 2] */
|
||||
function _fun107397(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:6, offset: 0x022fb04a, size: 459 bytes, params: 8, frame: 25
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_107400 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const closure = function() {
|
||||
var value = a0;
|
||||
return value !== undefined ? value : 60000;
|
||||
};
|
||||
const closure2 = function() {
|
||||
var value = a0;
|
||||
return value !== undefined ? value : 10;
|
||||
};
|
||||
const closure3 = function() {
|
||||
var value = a0;
|
||||
return value !== undefined ? value : 1000;
|
||||
};
|
||||
const closure4 = function() {
|
||||
var value = a0;
|
||||
return value !== undefined ? value : '';
|
||||
};
|
||||
const closure5 = function() {
|
||||
var value = a0;
|
||||
return value !== undefined ? value : false;
|
||||
};
|
||||
const closure6 = flushViolators;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
const Logger = (require(4) /* metro dependency 4: Logger */).Logger;
|
||||
let logger = new Logger('useStateFromStores');
|
||||
const env0_4 = closure();
|
||||
let env0_5 = closure2();
|
||||
let env0_6 = closure3();
|
||||
let env0_7 = closure4();
|
||||
logger = closure5();
|
||||
var env0_9;
|
||||
if (logger) {
|
||||
env0_9 = global.setInterval(closure6, env0_4);
|
||||
}
|
||||
const Map = global.Map;
|
||||
const map = new Map();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/useStateFromStoresPerformanceDebugging.tsx');
|
||||
exports.getUseStateFromStoresExecutionWindowThresholdMs = closure;
|
||||
exports.setUseStateFromStoresExecutionWindowThresholdMs = setUseStateFromStoresExecutionWindowThresholdMs;
|
||||
exports.getUseStateFromStoresExecutionTimeWarningThresholdMs = closure2;
|
||||
exports.setUseStateFromStoresExecutionTimeWarningThresholdMs = function(a0) {
|
||||
env0_5 = a0;
|
||||
var Storage = require(dependencyMap[2]).Storage;
|
||||
Storage.set('useStateFromStoresExecutionTimeWarningThresholdMs', a0);
|
||||
};
|
||||
exports.getUseStateFromStoresExecutionCountWarningThreshold = closure3;
|
||||
exports.setUseStateFromStoresExecutionCountWarningThreshold = function(a0) {
|
||||
env0_6 = a0;
|
||||
var Storage = require(dependencyMap[2]).Storage;
|
||||
Storage.set('useStateFromStoresExecutionCountWarningThreshold', a0);
|
||||
};
|
||||
exports.setUseStateFromStoresSpecificHookFilter = function(a0) {
|
||||
env0_7 = a0;
|
||||
var Storage = require(dependencyMap[2]).Storage;
|
||||
Storage.set('useStateFromStoresSpecificHookFilter', a0);
|
||||
};
|
||||
exports.getUseStateFromStoresSpecificHookFilter = closure4;
|
||||
exports.getUseStateFromStoresDebuggingEnabled = closure5;
|
||||
exports.setUseStateFromStoresDebuggingEnabled = setUseStateFromStoresDebuggingEnabled;
|
||||
exports.getUseStateFromStoresHookInfo = getUseStateFromStoresHookInfo;
|
||||
exports.trackGetStateFromStoresPerformance = trackGetStateFromStoresPerformance;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_107398(a0, a1) { // fn#107398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:112, offset: 0x022fb215, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun107399;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_107400(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_107400(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_107400(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun107399;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function hasExceededThreshold(a0) { // fn#107406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:1751, offset: 0x022fb3d5, size: 94 bytes, params: 2, frame: 6
|
||||
var r1;
|
||||
var r0;
|
||||
const value = a0.name !== 'anonymous';
|
||||
if (value) {
|
||||
r1 = env0_7 === '' || a0.name === env0_7;
|
||||
r1 = r1 && (a0.execCount > env0_6 || a0.execTime > env0_5);
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function flushViolators() { // fn#107407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:1866, offset: 0x022fb433, size: 228 bytes, params: 1, frame: 21
|
||||
var r3;
|
||||
var r1;
|
||||
var r2;
|
||||
var value5;
|
||||
var value6;
|
||||
var hasExceededThreshold2;
|
||||
var value7;
|
||||
var value8;
|
||||
var binding;
|
||||
var log;
|
||||
var value11;
|
||||
var value12;
|
||||
var property;
|
||||
var value13;
|
||||
const value2 = _createForOfIteratorHelperLoose_107398(env0_10);
|
||||
const value3 = value2();
|
||||
let done = value3.done;
|
||||
const value4 = false;
|
||||
if (done) {
|
||||
r1 = value4;
|
||||
} else {
|
||||
r3 = value3;
|
||||
reducibleLoop1: while (true) {
|
||||
value5 = r3.value;
|
||||
value6 = env0_2(value5, 2);
|
||||
value6[0];
|
||||
hasExceededThreshold2 = hasExceededThreshold(value6[1]);
|
||||
value7 = true;
|
||||
if (hasExceededThreshold2) {
|
||||
r1 = value7;
|
||||
break reducibleLoop1;
|
||||
}
|
||||
value8 = value2();
|
||||
done = value8.done;
|
||||
if (done) {
|
||||
r1 = value4;
|
||||
break reducibleLoop1;
|
||||
}
|
||||
r3 = value8;
|
||||
continue reducibleLoop1;
|
||||
}
|
||||
}
|
||||
reducibleJoin7: while (true) {
|
||||
reducibleJoin6: while (true) {
|
||||
if (r1) {
|
||||
break reducibleJoin6;
|
||||
}
|
||||
if (env0_7 !== '') {
|
||||
break reducibleJoin6;
|
||||
}
|
||||
binding = env0_3;
|
||||
log = binding.log;
|
||||
Reflect.apply(log, binding, ['No violators found']);
|
||||
break reducibleJoin7;
|
||||
}
|
||||
printViolators();
|
||||
break reducibleJoin7;
|
||||
}
|
||||
const value9 = _createForOfIteratorHelperLoose_107398(env0_10);
|
||||
const value10 = value9();
|
||||
done = value10.done;
|
||||
if (!done) {
|
||||
r2 = value10;
|
||||
reducibleLoop8: while (true) {
|
||||
value11 = r2.value;
|
||||
value12 = env0_2(value11, 2);
|
||||
value12[0];
|
||||
property = value12[1];
|
||||
property.warned = value4;
|
||||
property.execTime = 0;
|
||||
property.execCount = 0;
|
||||
value13 = value9();
|
||||
done = value13.done;
|
||||
if (done) {
|
||||
break reducibleLoop8;
|
||||
}
|
||||
r2 = value13;
|
||||
continue reducibleLoop8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function printViolators() { // fn#107408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:2272, offset: 0x022fb517, size: 577 bytes, params: 1, frame: 37
|
||||
var r3;
|
||||
var r19;
|
||||
var value10;
|
||||
var value11;
|
||||
var property;
|
||||
var property2;
|
||||
var value12;
|
||||
var value13;
|
||||
var hasExceededThreshold2;
|
||||
var value14;
|
||||
var execTime;
|
||||
var toFixed;
|
||||
var value15;
|
||||
var value16;
|
||||
var execCount;
|
||||
var value17;
|
||||
var value18;
|
||||
var value19;
|
||||
const value = a0;
|
||||
const value2 = a1;
|
||||
const value3 = a2;
|
||||
const value4 = a3;
|
||||
const r18 = value !== undefined ? value : 34;
|
||||
const r17 = value2 !== undefined ? value2 : 20;
|
||||
const r16 = value3 !== undefined ? value3 : 20;
|
||||
const r5 = value4 !== undefined ? value4 : r18 + r17 + r16 + 6;
|
||||
let binding = env0_3;
|
||||
let log = binding.log;
|
||||
Reflect.apply(log, binding, ['|'.padEnd(r5, '-') + '|']);
|
||||
binding = env0_3;
|
||||
binding.log('| Consumers of `useStateFromStores` exceeding warning thresholds:'.padEnd(r5, ' ') + '|');
|
||||
binding = env0_3;
|
||||
binding.log('|'.padEnd(r5, '-') + '|');
|
||||
binding = env0_3;
|
||||
binding.log('| ' + 'Function/Component Name'.padEnd(r18, ' ') + '| ' + 'Total Exec Time'.padEnd(r17,
|
||||
' ') + '| ' + 'Total Exec Count'.padEnd(r16, ' ') + '|');
|
||||
binding = env0_3;
|
||||
binding.log('|'.padEnd(r5, '-') + '|');
|
||||
const value8 = _createForOfIteratorHelperLoose_107398(env0_10);
|
||||
const value9 = value8();
|
||||
let done = value9.done;
|
||||
if (!done) {
|
||||
r3 = value9;
|
||||
while (true) {
|
||||
value10 = r3.value;
|
||||
value11 = env0_2(value10, 2);
|
||||
property = value11[0];
|
||||
property2 = value11[1];
|
||||
value12 = env0_7 !== '';
|
||||
if (value12) {
|
||||
value13 = property === env0_7;
|
||||
r19 = value13;
|
||||
} else {
|
||||
r19 = value12;
|
||||
}
|
||||
if (r19) {
|
||||
continue;
|
||||
}
|
||||
hasExceededThreshold2 = hasExceededThreshold(property2);
|
||||
r19 = hasExceededThreshold2;
|
||||
if (!r19) {
|
||||
continue;
|
||||
}
|
||||
binding = env0_3;
|
||||
log = binding.log;
|
||||
value14 = property.padEnd(r18, ' ');
|
||||
execTime = property2.execTime;
|
||||
toFixed = execTime.toFixed;
|
||||
value15 = Reflect.apply(toFixed, execTime, [2]) + 'ms';
|
||||
value16 = value15.padEnd(r17, ' ');
|
||||
execCount = property2.execCount;
|
||||
value17 = execCount.toString();
|
||||
value18 = value17.padEnd(r16, ' ');
|
||||
Reflect.apply(log, binding, ['| ' + value14 + '| ' + value16 + '| ' + value18 + '|']);
|
||||
value19 = value8();
|
||||
done = value19.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r3 = value19;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
binding = env0_3;
|
||||
binding.log('|'.padEnd(r5, '-') + '|');
|
||||
}
|
||||
|
||||
function setUseStateFromStoresExecutionWindowThresholdMs(a0) { // fn#107409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:3162, offset: 0x022fb758, size: 105 bytes, params: 2, frame: 15
|
||||
env0_4 = a0;
|
||||
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
|
||||
Storage.set('useStateFromStoresExecutionWindowThresholdMs', a0);
|
||||
global.clearInterval(env0_9);
|
||||
if (env0_8) {
|
||||
env0_9 = global.setInterval(flushViolators, env0_4);
|
||||
}
|
||||
}
|
||||
|
||||
function setUseStateFromStoresDebuggingEnabled(a0) { // fn#107413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:4335, offset: 0x022fb86c, size: 111 bytes, params: 2, frame: 15
|
||||
env0_8 = a0;
|
||||
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
|
||||
Storage.set('useStateFromStoresDebuggingEnabled', a0);
|
||||
if (env0_8) {
|
||||
env0_9 = global.setInterval(flushViolators, env0_4);
|
||||
} else {
|
||||
global.clearInterval(env0_9);
|
||||
}
|
||||
}
|
||||
|
||||
function getUseStateFromStoresHookInfo() { // fn#107414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:4546, offset: 0x022fb8db, size: 243 bytes, params: 1, frame: 22
|
||||
var r11;
|
||||
var r10;
|
||||
var r3;
|
||||
var r0;
|
||||
var Error;
|
||||
var value2;
|
||||
var error;
|
||||
var stack;
|
||||
var split;
|
||||
var value5;
|
||||
var length;
|
||||
var value6;
|
||||
var value7;
|
||||
var property;
|
||||
var trim;
|
||||
var value8;
|
||||
var value9;
|
||||
var binding;
|
||||
var value10;
|
||||
if (env0_8) {
|
||||
Error = global.Error;
|
||||
value2 = Object.create(Error.prototype, {constructor: {value: Error}});
|
||||
error = new Error();
|
||||
stack = (error instanceof Object ? error : value2).stack;
|
||||
reducibleJoin4: while (true) {
|
||||
if (stack == null) {
|
||||
r11 = undefined;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
split = stack.split;
|
||||
value5 = Reflect.apply(split, stack, ['\n']);
|
||||
r11 = value5;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
reducibleJoin6: while (true) {
|
||||
if (r11 != null) {
|
||||
break reducibleJoin6;
|
||||
}
|
||||
r11 = [];
|
||||
break reducibleJoin6;
|
||||
}
|
||||
length = r11.length;
|
||||
value6 = 3;
|
||||
value7 = 'unknown';
|
||||
if (value6 < length) {
|
||||
r10 = value6;
|
||||
reducibleLoop7: while (true) {
|
||||
property = r11[r10];
|
||||
trim = property.trim;
|
||||
value8 = Reflect.apply(trim, property, []);
|
||||
split = value8.split;
|
||||
property = Reflect.apply(split, value8, [' '])[1];
|
||||
if (property !== 'useStateFromStores') {
|
||||
reducibleJoin10: while (true) {
|
||||
if (property === 'useStateFromStoresArray') {
|
||||
break reducibleJoin10;
|
||||
}
|
||||
if (property !== 'useStateFromStoresObject') {
|
||||
r3 = property;
|
||||
break reducibleLoop7;
|
||||
}
|
||||
break reducibleJoin10;
|
||||
}
|
||||
}
|
||||
value9 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1;
|
||||
length = r11.length;
|
||||
if (value9 < length) {
|
||||
r10 = value9;
|
||||
continue reducibleLoop7;
|
||||
}
|
||||
r3 = value7;
|
||||
break reducibleLoop7;
|
||||
}
|
||||
} else {
|
||||
r3 = value7;
|
||||
}
|
||||
binding = env0_10;
|
||||
value10 = binding.get(r3);
|
||||
reducibleJoin13: while (true) {
|
||||
if (value10 != null) {
|
||||
r0 = value10;
|
||||
break reducibleJoin13;
|
||||
}
|
||||
r0 = {'name': null, 'execCount': 0, 'execTime': 0, 'warned': false, name: r3};
|
||||
break reducibleJoin13;
|
||||
}
|
||||
binding = env0_10;
|
||||
binding.set(r3, r0);
|
||||
return r0;
|
||||
}
|
||||
}
|
||||
|
||||
function trackGetStateFromStoresPerformance(a0, a1) { // fn#107415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:5024, offset: 0x022fb9ce, size: 212 bytes, params: 3, frame: 25
|
||||
var performance;
|
||||
var value2;
|
||||
var value3;
|
||||
var execCount;
|
||||
if (env0_8) {
|
||||
if (a0 == null) {
|
||||
return a1();
|
||||
}
|
||||
performance = global.performance;
|
||||
value2 = performance.now();
|
||||
value3 = a1();
|
||||
performance = global.performance;
|
||||
a0.execTime = a0.execTime + (performance.now() - value2);
|
||||
execCount = a0.execCount;
|
||||
a0.execCount = typeof execCount === 'bigint' ? execCount + 1n : +execCount + 1;
|
||||
if (a0.warned === false) {
|
||||
if (hasExceededThreshold(a0)) {
|
||||
a0.warned = true;
|
||||
env0_3.log('' + a0.name + ' cumulatively used ' + a0.execTime + 'ms of execution time and ran ' + a0.execCount + ' times.');
|
||||
}
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
return a1();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,838 @@
|
||||
/* Metro module 507; source: ../discord_common/js/packages/http-utils/HTTPUtils.tsx; dependencies: [7, 6, 15, 17, 18, 162, 4, 508, 561, 562, 563, 2, 564, 565] */
|
||||
function _fun6453(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:6, offset: 0x00cfbd8c, size: 823 bytes, params: 8, frame: 31
|
||||
var object2;
|
||||
var r5;
|
||||
var r6;
|
||||
var r7;
|
||||
var r8;
|
||||
var r9;
|
||||
var closure7;
|
||||
let env0_0 = require;
|
||||
const closure = isRateLimitedStatus;
|
||||
const closure2 = parseRetryAfter;
|
||||
const closure3 = getRateLimitFloorMs;
|
||||
const closure4 = function(a0, a1, a2) {
|
||||
return {status: a0, body: {message: a1, retry_after: a2}};
|
||||
};
|
||||
const closure5 = function(a0, a1, a2) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
var env0_2 = a2;
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun6479);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
};
|
||||
const closure6 = function(a0) {
|
||||
var property;
|
||||
var from;
|
||||
var JSON;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
property = global.Buffer;
|
||||
from = property.from;
|
||||
JSON = global.JSON;
|
||||
value = JSON.stringify(a0);
|
||||
value = Reflect.apply(from, property, [value]);
|
||||
value = value.toString('base64');
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(162) /* metro dependency 162 */;
|
||||
const Logger = (require(4) /* metro dependency 4: Logger */).Logger;
|
||||
const logger = new Logger('HTTPUtils');
|
||||
let Set = global.Set;
|
||||
let set = new Set([502, 504, 507, 598, 599, 522, 523, 524]);
|
||||
Set = global.Set;
|
||||
set = new Set([429, 503]);
|
||||
const Error = global.Error;
|
||||
value = value(Error);
|
||||
value = _fun6481(value);
|
||||
const Map = global.Map;
|
||||
const map = new Map();
|
||||
const value10 = closure5.bind(null, 'get');
|
||||
const value11 = closure5.bind(null, 'post');
|
||||
const value12 = closure5.bind(null, 'put');
|
||||
const value13 = closure5.bind(null, 'patch');
|
||||
const value14 = closure5.bind(null, 'del');
|
||||
object2 = {get: value10, post: value11, put: value12, patch: value13, del: value14};
|
||||
if (global.isServerRendering) {
|
||||
closure7 = function() {
|
||||
var Promise = global.Promise;
|
||||
return Promise.resolve({'ok': true, 'status': 200, 'headers': null, 'body': null, 'text': '', headers: {}});
|
||||
};
|
||||
r5 = closure7;
|
||||
r6 = closure7;
|
||||
r7 = closure7;
|
||||
r8 = closure7;
|
||||
r9 = closure7;
|
||||
} else {
|
||||
r5 = value14;
|
||||
r6 = value13;
|
||||
r7 = value12;
|
||||
r8 = value11;
|
||||
r9 = value10;
|
||||
}
|
||||
const awaitOnline = function() {
|
||||
var Promise = global.Promise;
|
||||
return Promise.resolve();
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/http-utils/HTTPUtils.tsx');
|
||||
const INVALID_FORM_BODY_ERROR_CODE = (require(562) /* metro dependency 562: V8APIError */).INVALID_FORM_BODY_ERROR_CODE;
|
||||
exports.INVALID_FORM_BODY_ERROR_CODE = INVALID_FORM_BODY_ERROR_CODE;
|
||||
exports.convertSkemaError = (require(563) /* metro dependency 563: convertSkemaError */).convertSkemaError;
|
||||
exports.stringifyErrors = (require(564) /* metro dependency 564: stringifyErrors */).stringifyErrors;
|
||||
let APIError = (require(565) /* metro dependency 565: V6OrEarlierAPIError */).APIError;
|
||||
exports.V6OrEarlierAPIError = APIError;
|
||||
APIError = (require(562) /* metro dependency 562: V8APIError */).APIError;
|
||||
exports.V8APIError = APIError;
|
||||
exports.isRateLimitedStatus = closure;
|
||||
exports.DEFAULT_RATE_LIMIT_RETRY_AFTER_SECS = 5;
|
||||
exports.HTTPResponseError = value;
|
||||
exports.parseRetryAfter = closure2;
|
||||
exports.getRateLimitFloorMs = closure3;
|
||||
exports.makeRateLimitedResponse = closure4;
|
||||
exports.get = r9;
|
||||
exports.post = r8;
|
||||
exports.put = r7;
|
||||
exports.patch = r6;
|
||||
exports.del = r5;
|
||||
exports.HTTP = object2;
|
||||
exports.getAPIBaseURL = function() {
|
||||
var value = a0;
|
||||
return 'https:' + global.window.GLOBAL_ENV.API_ENDPOINT + (!(value !== undefined) || value ? '/v' + global.window.GLOBAL_ENV.API_VERSION : '');
|
||||
};
|
||||
exports.setRequestPatch = function(a0) {
|
||||
env0_13 = a0;
|
||||
};
|
||||
exports.setAwaitOnline = function(a0) {
|
||||
env0_14 = a0;
|
||||
};
|
||||
exports.encodeProperties = closure6;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_6454() { // fn#6454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:159, offset: 0x00cfc0c3, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_6454_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function parseRetryAfter(a0, a1) { // fn#6458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:1064, offset: 0x00cfc137, size: 167 bytes, params: 3, frame: 16
|
||||
var Number;
|
||||
var retry_after;
|
||||
const value = undefined;
|
||||
let r6 = a0 == null ? value : a0['retry-after'];
|
||||
r6 = r6 ?? (a0 == null ? value : a0['Retry-After']);
|
||||
if (typeof r6 === 'string') {
|
||||
var int = global.parseInt(r6, 10);
|
||||
Number = global.Number;
|
||||
if (Number.isFinite(int)) {
|
||||
if (int > 0) {
|
||||
return int;
|
||||
}
|
||||
if (a1 == null) {
|
||||
return value;
|
||||
}
|
||||
if (typeof a1 !== 'object') {
|
||||
return value;
|
||||
}
|
||||
retry_after = a1.retry_after;
|
||||
if (typeof retry_after !== 'number') {
|
||||
return value;
|
||||
}
|
||||
Number = global.Number;
|
||||
if (Number.isFinite(retry_after)) {
|
||||
return retry_after > 0 ? retry_after : value;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
}
|
||||
if (a1 != null) {
|
||||
if (typeof a1 !== 'object') {
|
||||
return value;
|
||||
}
|
||||
retry_after = a1.retry_after;
|
||||
if (typeof retry_after !== 'number') {
|
||||
return value;
|
||||
}
|
||||
Number = global.Number;
|
||||
if (Number.isFinite(retry_after)) {
|
||||
return retry_after > 0 ? retry_after : value;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function getRateLimitFloorMs(a0, a1) { // fn#6459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:1367, offset: 0x00cfc1de, size: 48 bytes, params: 3, frame: 13
|
||||
return 1000 * (parseRetryAfter(a0, a1) ?? 5);
|
||||
}
|
||||
|
||||
function sendRequest_6460(a0, a1, a2, a3, a4) { // fn#6460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:1455, offset: 0x00cfc20e, size: 742 bytes, params: 6, frame: 21
|
||||
var r7;
|
||||
var object2;
|
||||
var value6;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const env0_3 = a3;
|
||||
const env0_4 = a4;
|
||||
var value;
|
||||
const value2 = undefined;
|
||||
const value3 = (importDefault(508) /* metro dependency 508 */)[a0](a1.url);
|
||||
if (a1.onRequestCreated != null) {
|
||||
a1.onRequestCreated(value3);
|
||||
}
|
||||
let query = a1.query;
|
||||
if (query != null) {
|
||||
query = a1.query;
|
||||
if (typeof query !== 'object') {
|
||||
r7 = query;
|
||||
} else {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, query, undefined);
|
||||
global.Object.keys(object2).map(_fun6461);
|
||||
r7 = object2;
|
||||
}
|
||||
value3.query(r7);
|
||||
}
|
||||
if (a1.body) {
|
||||
value3.send(a1.body);
|
||||
}
|
||||
if (a1.headers != null) {
|
||||
value3.set(a1.headers);
|
||||
}
|
||||
if (a1.withCredentials === true) {
|
||||
value3.withCredentials();
|
||||
}
|
||||
if (a1.reason != null) {
|
||||
value3.set('X-Audit-Log-Reason', global.encodeURIComponent(a1.reason));
|
||||
}
|
||||
const attachments = a1.attachments;
|
||||
if (attachments != null) {
|
||||
attachments.forEach(_fun6462);
|
||||
}
|
||||
const fields = a1.fields;
|
||||
if (fields != null) {
|
||||
fields.forEach(_fun6463);
|
||||
}
|
||||
if (a1.context != null) {
|
||||
value6 = encodeProperties(a1.context);
|
||||
if (value6 != null) {
|
||||
value3.set('X-Context-Properties', value6);
|
||||
}
|
||||
}
|
||||
if (a1.retried != null && a1.retried !== 0) {
|
||||
value3.set('X-Failed-Requests', '' + a1.retried);
|
||||
}
|
||||
if (a1.timeout != null && a1.timeout !== 0) {
|
||||
value3.timeout(a1.timeout);
|
||||
}
|
||||
if (a1.binary) {
|
||||
value3.responseType('blob');
|
||||
}
|
||||
if (a1.onRequestProgress != null) {
|
||||
value3.on('progress', function(a0) {
|
||||
if (require.onRequestProgress != null) {
|
||||
require.onRequestProgress(a0);
|
||||
}
|
||||
});
|
||||
}
|
||||
const binding = env0_13;
|
||||
if (binding != null) {
|
||||
if (binding.prepareRequest != null) {
|
||||
value = binding.prepareRequest(value3);
|
||||
}
|
||||
}
|
||||
value3.ok(function(a0) {
|
||||
return a0.status != null;
|
||||
});
|
||||
value3.then(_fun6469, _fun6472);
|
||||
let signal = a1.signal;
|
||||
if (signal == null) {
|
||||
signal = a1.signal;
|
||||
if (signal != null) {
|
||||
signal.addEventListener('abort', _fun6473, {once: true});
|
||||
}
|
||||
} else if (signal.aborted) {
|
||||
value3.abort();
|
||||
} else {
|
||||
signal = a1.signal;
|
||||
if (signal != null) {
|
||||
signal.addEventListener('abort', _fun6473, {once: true});
|
||||
}
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function rateLimitExpirationHandler(a0) { // fn#6474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:3935, offset: 0x00cfca63, size: 147 bytes, params: 2, frame: 18
|
||||
var value3;
|
||||
let binding = env0_12;
|
||||
const value2 = binding.get(a0);
|
||||
if (value2 != null) {
|
||||
value3 = value2.queue.shift();
|
||||
if (value3 == null) {
|
||||
binding = env0_8;
|
||||
binding.verbose('rateLimitExpirationHandler: removing key for', a0);
|
||||
binding = env0_12;
|
||||
binding.delete(a0);
|
||||
} else {
|
||||
env0_8.verbose('rateLimitExpirationHandler: moving to next record for ', a0);
|
||||
value3();
|
||||
}
|
||||
} else {
|
||||
env0_8.verbose('rateLimitExpirationHandler: rate limit for', a0, 'expired, but record was already removed');
|
||||
}
|
||||
}
|
||||
|
||||
function cleanupRequestEntry(a0, a1) { // fn#6475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:4286, offset: 0x00cfcaf6, size: 562 bytes, params: 3, frame: 29
|
||||
var r3;
|
||||
var backoff;
|
||||
var Date;
|
||||
var verbose;
|
||||
var rateLimitExpirationHandlerBinding;
|
||||
var value7;
|
||||
var getRateLimitFloorMsBinding;
|
||||
var headers;
|
||||
var body;
|
||||
var value10;
|
||||
var value11;
|
||||
var value12;
|
||||
var set;
|
||||
var object2;
|
||||
var String;
|
||||
const env0_0 = a0;
|
||||
let binding = env0_12;
|
||||
const get = binding.get;
|
||||
let url = a0.url;
|
||||
const value2 = Reflect.apply(get, binding, [url]);
|
||||
if (a1 == null) {
|
||||
if (value2 != null && value2.retryAfterTimestamp < global.Date.now()) {
|
||||
binding = env0_8;
|
||||
verbose = binding.verbose;
|
||||
url = a0.url;
|
||||
Reflect.apply(verbose, binding, ['cleanupRequestEntry: rate limit for ', url, 'expired']);
|
||||
rateLimitExpirationHandlerBinding = rateLimitExpirationHandler;
|
||||
url = a0.url;
|
||||
rateLimitExpirationHandlerBinding(url);
|
||||
}
|
||||
} else {
|
||||
var isRateLimitedStatusBinding = isRateLimitedStatus;
|
||||
var status = a1.status;
|
||||
var value3 = undefined;
|
||||
if (isRateLimitedStatusBinding(status)) {
|
||||
backoff = value2 == null ? value3 : value2.backoff;
|
||||
if (backoff != null) {
|
||||
r3 = backoff;
|
||||
} else {
|
||||
value7 = new (importDefault(561) /* metro dependency 561: Backoff */)(1000, 60000);
|
||||
}
|
||||
getRateLimitFloorMsBinding = getRateLimitFloorMs;
|
||||
headers = a1.headers;
|
||||
body = a1.body;
|
||||
value10 = r3.fail(value3, getRateLimitFloorMsBinding(headers, body));
|
||||
Date = global.Date;
|
||||
value11 = Date.now() + value10;
|
||||
if (value2 == null) {
|
||||
if (value2 != null) {
|
||||
binding = env0_8;
|
||||
binding.verbose('cleanupRequestEntry: extending rate limit for ', a0.url);
|
||||
global.clearTimeout(value2.timeoutId);
|
||||
}
|
||||
binding = env0_8;
|
||||
verbose = binding.verbose;
|
||||
url = a0.url;
|
||||
Reflect.apply(verbose, binding,
|
||||
['cleanupRequestEntry: rate limit for ' + url + ' retry after ' + value10 + 'ms']);
|
||||
value12 = global.setTimeout(_fun6476, value10);
|
||||
binding = env0_12;
|
||||
set = binding.set;
|
||||
url = a0.url;
|
||||
object2 = {};
|
||||
object2.queue = (value2 == null ? value3 : value2.queue) ?? [];
|
||||
object2.retryAfterTimestamp = value11;
|
||||
String = global.String;
|
||||
body = a1.body;
|
||||
object2.latestErrorMessage = String(body == null ? value3 : body.message);
|
||||
object2.status = a1.status;
|
||||
object2.timeoutId = value12;
|
||||
object2.backoff = r3;
|
||||
Reflect.apply(set, binding, [url, object2]);
|
||||
return undefined;
|
||||
}
|
||||
if (value2.retryAfterTimestamp >= value11) {
|
||||
binding = env0_8;
|
||||
binding.verbose('cleanupRequestEntry: already has rate limit for ', a0.url);
|
||||
return value3;
|
||||
}
|
||||
if (value2 != null) {
|
||||
binding = env0_8;
|
||||
binding.verbose('cleanupRequestEntry: extending rate limit for ', a0.url);
|
||||
global.clearTimeout(value2.timeoutId);
|
||||
}
|
||||
binding = env0_8;
|
||||
verbose = binding.verbose;
|
||||
url = a0.url;
|
||||
Reflect.apply(verbose, binding,
|
||||
['cleanupRequestEntry: rate limit for ' + url + ' retry after ' + value10 + 'ms']);
|
||||
value12 = global.setTimeout(_fun6476, value10);
|
||||
binding = env0_12;
|
||||
set = binding.set;
|
||||
url = a0.url;
|
||||
object2 = {};
|
||||
object2.queue = (value2 == null ? value3 : value2.queue) ?? [];
|
||||
object2.retryAfterTimestamp = value11;
|
||||
String = global.String;
|
||||
body = a1.body;
|
||||
object2.latestErrorMessage = String(body == null ? value3 : body.message);
|
||||
object2.status = a1.status;
|
||||
object2.timeoutId = value12;
|
||||
object2.backoff = r3;
|
||||
Reflect.apply(set, binding, [url, object2]);
|
||||
return undefined;
|
||||
}
|
||||
r3 = value2 != null && value2.retryAfterTimestamp < global.Date.now();
|
||||
if (r3) {
|
||||
binding = env0_8;
|
||||
verbose = binding.verbose;
|
||||
url = a0.url;
|
||||
Reflect.apply(verbose, binding, ['cleanupRequestEntry: rate limit for ', url, 'expired']);
|
||||
rateLimitExpirationHandlerBinding = rateLimitExpirationHandler;
|
||||
url = a0.url;
|
||||
rateLimitExpirationHandlerBinding(url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function makeRequest(a0, a1, a2) { // fn#6478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:5302, offset: 0x00cfcd64, size: 58 bytes, params: 4, frame: 11
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun6479);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function _fun6481(a0) { // fn#6481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:512, offset: 0x00cfcf34, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = HTTPResponseError;
|
||||
env0_7(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun6461(a0) { // fn#6461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:1655, offset: 0x00cfc4f4, size: 32 bytes, params: 2, frame: 4
|
||||
if (env0_6[a0] == null) {
|
||||
delete env0_6[a0];
|
||||
}
|
||||
}
|
||||
|
||||
function _fun6462({name, file, filename}) { // fn#6462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:1914, offset: 0x00cfc514, size: 44 bytes, params: 2, frame: 15
|
||||
env0_5.attach(name, file, filename);
|
||||
}
|
||||
|
||||
function _fun6463({name, value}) { // fn#6463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:1987, offset: 0x00cfc540, size: 36 bytes, params: 2, frame: 13
|
||||
env0_5.field(name, value);
|
||||
}
|
||||
|
||||
function sendRequest_6460Retry() { // fn#6465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:2383, owner: sendRequest_6460.retry, offset: 0x00cfc58d, size: 156 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
var backoff;
|
||||
var value2;
|
||||
var value4;
|
||||
if (require.backoff != null) {
|
||||
backoff = require.backoff;
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
value4 = new (importDefault(561) /* metro dependency 561: Backoff */)();
|
||||
}
|
||||
require.backoff = backoff;
|
||||
let retried = require.retried;
|
||||
retried = retried != null ? require.retried : 0;
|
||||
require.retried = retried + 1;
|
||||
require.backoff.fail(_fun6466);
|
||||
}
|
||||
|
||||
function _fun6469(a0) { // fn#6469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:2656, offset: 0x00cfc68e, size: 647 bytes, params: 2, frame: 25
|
||||
var r15;
|
||||
var environment;
|
||||
var r7;
|
||||
var value3;
|
||||
var binding;
|
||||
var has;
|
||||
var status;
|
||||
var object4;
|
||||
var headers;
|
||||
var body;
|
||||
var value4;
|
||||
var parseRetryAfterBinding;
|
||||
var value5;
|
||||
var closure;
|
||||
var closure2;
|
||||
const INVALID_FORM_BODY_ERROR_CODE = (require(562) /* metro dependency 562: V8APIError */).INVALID_FORM_BODY_ERROR_CODE;
|
||||
var errors;
|
||||
var object5;
|
||||
var value8;
|
||||
var binding2;
|
||||
var object6;
|
||||
let retries = require.retries;
|
||||
if (retries == null) {
|
||||
object4 = {};
|
||||
object4.ok = a0.ok;
|
||||
object4.headers = a0.headers;
|
||||
object4.body = a0.body;
|
||||
object4.text = a0.text;
|
||||
object4.status = a0.status;
|
||||
value4 = environment.__proto__;
|
||||
} else {
|
||||
retries = require.retries;
|
||||
var value2 = typeof retries === 'bigint' ? retries : +retries;
|
||||
require.retries = typeof value2 === 'bigint' ? value2 - 1n : +value2 - 1;
|
||||
if (value2 > 0) {
|
||||
value3 = environment.__proto__;
|
||||
binding = env1_9;
|
||||
has = binding.has;
|
||||
status = a0.status;
|
||||
if (Reflect.apply(has, binding, [status])) {
|
||||
return sendRequest_6460Retry();
|
||||
}
|
||||
object4 = {};
|
||||
object4.ok = a0.ok;
|
||||
headers = a0.headers;
|
||||
object4.headers = headers;
|
||||
body = a0.body;
|
||||
object4.body = body;
|
||||
object4.text = a0.text;
|
||||
status = a0.status;
|
||||
object4.status = status;
|
||||
value4 = environment.__proto__;
|
||||
parseRetryAfterBinding = parseRetryAfter;
|
||||
headers = a0.headers;
|
||||
body = a0.body;
|
||||
value5 = undefined;
|
||||
object4.retryAfter = parseRetryAfterBinding(headers, body);
|
||||
cleanupRequestEntry(require, object4);
|
||||
var env0_0 = false;
|
||||
closure = interceptRetry;
|
||||
closure2 = interceptCancel;
|
||||
r7 = require == null || require.interceptResponse == null ? value5 : require.interceptResponse(a0, closure,
|
||||
closure2);
|
||||
if (r7 !== true) {
|
||||
binding = env1_13;
|
||||
if (binding == null) {
|
||||
r7 = value5;
|
||||
} else if (binding.interceptResponse == null) {
|
||||
r7 = value5;
|
||||
} else {
|
||||
r7 = binding.interceptResponse(a0, closure, closure2, env0_8);
|
||||
r15 = closure2;
|
||||
}
|
||||
if (r7 !== true) {
|
||||
if (a0.ok) {
|
||||
importDefault(object4);
|
||||
} else {
|
||||
if (require.oldFormErrors) {
|
||||
if ((object4 == null || object4.body == null ? value5 : object4.body.code) === INVALID_FORM_BODY_ERROR_CODE) {
|
||||
errors = object4.body.errors;
|
||||
if (errors != null) {
|
||||
object4.body = (require(563) /* metro dependency 563: convertSkemaError */).convertSkemaError(errors);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (require.rejectWithError) {
|
||||
binding = env1_11;
|
||||
object5 = {method: env0_0};
|
||||
object5.url = require.url;
|
||||
object5.ok = object4.ok;
|
||||
object5.status = object4.status;
|
||||
object5.body = object4.body;
|
||||
object5.text = object4.text;
|
||||
object5.headers = object4.headers;
|
||||
object5.retryAfter = object4.retryAfter;
|
||||
value8 = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding2 = new binding();
|
||||
importAll(binding2 instanceof Object ? binding2 : value8);
|
||||
} else {
|
||||
importAll(object4);
|
||||
}
|
||||
}
|
||||
if (env0_4 != null) {
|
||||
binding = env0_4;
|
||||
object6 = {hasErr: false};
|
||||
copyDataProperties(object6, object4, r15);
|
||||
binding(object6);
|
||||
}
|
||||
}
|
||||
}
|
||||
return value5;
|
||||
}
|
||||
object4 = {};
|
||||
object4.ok = a0.ok;
|
||||
object4.headers = a0.headers;
|
||||
object4.body = a0.body;
|
||||
object4.text = a0.text;
|
||||
object4.status = a0.status;
|
||||
}
|
||||
parseRetryAfterBinding = parseRetryAfter;
|
||||
headers = a0.headers;
|
||||
body = a0.body;
|
||||
value5 = undefined;
|
||||
object4.retryAfter = parseRetryAfterBinding(headers, body);
|
||||
cleanupRequestEntry(require, object4);
|
||||
var env0_0 = false;
|
||||
closure = interceptRetry;
|
||||
closure2 = interceptCancel;
|
||||
r7 = require == null || require.interceptResponse == null ? value5 : require.interceptResponse(a0, closure,
|
||||
closure2);
|
||||
if (r7 !== true) {
|
||||
binding = env1_13;
|
||||
if (binding == null) {
|
||||
r7 = value5;
|
||||
} else if (binding.interceptResponse == null) {
|
||||
r7 = value5;
|
||||
} else {
|
||||
r7 = binding.interceptResponse(a0, closure, closure2, env0_8);
|
||||
r15 = closure2;
|
||||
}
|
||||
if (r7 !== true) {
|
||||
if (a0.ok) {
|
||||
importDefault(object4);
|
||||
} else {
|
||||
if (require.oldFormErrors) {
|
||||
if ((object4 == null || object4.body == null ? value5 : object4.body.code) === INVALID_FORM_BODY_ERROR_CODE) {
|
||||
errors = object4.body.errors;
|
||||
if (errors != null) {
|
||||
object4.body = (require(563) /* metro dependency 563: convertSkemaError */).convertSkemaError(errors);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (require.rejectWithError) {
|
||||
binding = env1_11;
|
||||
object5 = {method: env0_0};
|
||||
object5.url = require.url;
|
||||
object5.ok = object4.ok;
|
||||
object5.status = object4.status;
|
||||
object5.body = object4.body;
|
||||
object5.text = object4.text;
|
||||
object5.headers = object4.headers;
|
||||
object5.retryAfter = object4.retryAfter;
|
||||
value8 = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding2 = new binding();
|
||||
importAll(binding2 instanceof Object ? binding2 : value8);
|
||||
} else {
|
||||
importAll(object4);
|
||||
}
|
||||
}
|
||||
if (env0_4 != null) {
|
||||
binding = env0_4;
|
||||
object6 = {hasErr: false};
|
||||
copyDataProperties(object6, object4, r15);
|
||||
binding(object6);
|
||||
}
|
||||
}
|
||||
}
|
||||
return value5;
|
||||
}
|
||||
|
||||
function _fun6472(a0) { // fn#6472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:3673, offset: 0x00cfc9c4, size: 140 bytes, params: 2, frame: 14
|
||||
var value2;
|
||||
var value3;
|
||||
let retries = require.retries;
|
||||
if (retries == null) {
|
||||
value3 = environment.__proto__;
|
||||
cleanupRequestEntry(require);
|
||||
importAll(a0);
|
||||
if (env0_4 != null) {
|
||||
env0_4({'ok': false, 'hasErr': true, err: a0});
|
||||
}
|
||||
} else {
|
||||
retries = require.retries;
|
||||
value2 = typeof retries === 'bigint' ? retries : +retries;
|
||||
require.retries = typeof value2 === 'bigint' ? value2 - 1n : +value2 - 1;
|
||||
if (value2 > 0) {
|
||||
if (a0.code !== 'ABORTED') {
|
||||
sendRequest_6460Retry();
|
||||
} else {
|
||||
value3 = environment.__proto__;
|
||||
cleanupRequestEntry(require);
|
||||
importAll(a0);
|
||||
if (env0_4 != null) {
|
||||
env0_4({'ok': false, 'hasErr': true, err: a0});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
value3 = environment.__proto__;
|
||||
cleanupRequestEntry(require);
|
||||
importAll(a0);
|
||||
if (env0_4 != null) {
|
||||
env0_4({'ok': false, 'hasErr': true, err: a0});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun6473() { // fn#6473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:3895, offset: 0x00cfca50, size: 19 bytes, params: 1, frame: 9
|
||||
return env0_5.abort();
|
||||
}
|
||||
|
||||
function _fun6476() { // fn#6476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:4842, offset: 0x00cfcd28, size: 28 bytes, params: 1, frame: 11
|
||||
rateLimitExpirationHandler(env0_0.url);
|
||||
}
|
||||
|
||||
function _fun6479(a0, a1) { // fn#6479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:5350, offset: 0x00cfcd9e, size: 346 bytes, params: 3, frame: 26
|
||||
var object2;
|
||||
var sendRequest_6460Binding;
|
||||
var queue;
|
||||
var push;
|
||||
var bind;
|
||||
var retryAfterTimestamp;
|
||||
var Date;
|
||||
var value;
|
||||
if (typeof require === 'string') {
|
||||
object2 = {};
|
||||
object2.url = require;
|
||||
object2.rejectWithError = false;
|
||||
}
|
||||
let binding = env1_12;
|
||||
const value3 = binding.get(require.url);
|
||||
if (value3 == null) {
|
||||
if (value3 != null) {
|
||||
binding = env1_8;
|
||||
binding.verbose('makeRequest: queueing request for ', require.url);
|
||||
queue = value3.queue;
|
||||
push = queue.push;
|
||||
sendRequest_6460Binding = sendRequest_6460;
|
||||
bind = sendRequest_6460Binding.bind;
|
||||
binding = env0_0;
|
||||
Reflect.apply(push, queue, [Reflect.apply(bind, sendRequest_6460Binding, [null, binding, require, a0, a1,
|
||||
importDefault])]);
|
||||
} else {
|
||||
sendRequest_6460(env0_0, require, a0, a1, importDefault);
|
||||
}
|
||||
} else {
|
||||
if (require.failImmediatelyWhenRateLimited) {
|
||||
retryAfterTimestamp = value3.retryAfterTimestamp;
|
||||
Date = global.Date;
|
||||
value = retryAfterTimestamp - Date.now();
|
||||
value = global.Math.round(value / 1000);
|
||||
value = makeRateLimitedResponse(value3.status, value3.latestErrorMessage, value);
|
||||
a1(value);
|
||||
if (importDefault != null) {
|
||||
importDefault({'ok': true, 'hasErr': false, 'status': null, 'body': null, 'text': '',
|
||||
status: value.status,
|
||||
body: value.body, headers: {}});
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
if (value3 != null) {
|
||||
binding = env1_8;
|
||||
binding.verbose('makeRequest: queueing request for ', require.url);
|
||||
queue = value3.queue;
|
||||
push = queue.push;
|
||||
sendRequest_6460Binding = sendRequest_6460;
|
||||
bind = sendRequest_6460Binding.bind;
|
||||
binding = env0_0;
|
||||
Reflect.apply(push, queue, [Reflect.apply(bind, sendRequest_6460Binding, [null, binding, require, a0, a1,
|
||||
importDefault])]);
|
||||
} else {
|
||||
sendRequest_6460(env0_0, require, a0, a1, importDefault);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function HTTPResponseError({method, url, ok, status, body, text, headers, retryAfter}, a1) { // fn#6482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:524, offset: 0x00cfcf5c, size: 319 bytes, params: 3, frame: 35
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(1, undefined);
|
||||
let binding = env1_4;
|
||||
binding(this, HTTPResponseError);
|
||||
const items2 = ['' + method.toUpperCase() + ' ' + url.replace(RegExp('\\d+', 'g'), 'xxx') + ' [' + status + ']'];
|
||||
arraySpread(items2, value, 1, ' [');
|
||||
value = env1_6(HTTPResponseError);
|
||||
binding = env1_5;
|
||||
if (_isNativeReflectConstruct_6454()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items2, env1_6(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items2);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.name = 'HTTPResponseError';
|
||||
value.method = method;
|
||||
value.url = url;
|
||||
value.ok = ok;
|
||||
value.status = status;
|
||||
value.body = body;
|
||||
value.text = text;
|
||||
value.headers = headers;
|
||||
value.retryAfter = retryAfter;
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun6466() { // fn#6466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:2495, offset: 0x00cfc629, size: 45 bytes, params: 1, frame: 11
|
||||
var environment;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const awaitOnlineBinding = awaitOnline;
|
||||
value = environment.__proto__;
|
||||
return awaitOnlineBinding(require.url).then(_fun6467);
|
||||
}
|
||||
|
||||
function interceptRetry(a0, a1) { // fn#6470, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:2901, offset: 0x00cfc915, size: 110 bytes, params: 3, frame: 19
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, require, undefined);
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, require.headers, undefined);
|
||||
copyDataProperties(object4, a0, undefined);
|
||||
object3['headers'] = object4;
|
||||
object3['interceptResponse'] = a1;
|
||||
sendRequest_6460(env1_0, object3, importDefault, importAll, env1_4);
|
||||
}
|
||||
|
||||
function interceptCancel(a0) { // fn#6471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:3015, offset: 0x00cfc983, size: 65 bytes, params: 2, frame: 13
|
||||
if (!env0_0) {
|
||||
value = environment.__proto__;
|
||||
importAll(a0);
|
||||
if (env1_4 != null) {
|
||||
env1_4({'ok': false, 'hasErr': true, err: a0});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun6467() { // fn#6467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:557:2524, offset: 0x00cfc656, size: 40 bytes, params: 1, frame: 19
|
||||
sendRequest_6460(env2_0, require, importDefault, importAll, env2_4);
|
||||
}
|
||||
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
/* Metro module 565; source: ../discord_common/js/packages/http-utils/V6OrEarlierAPIError.tsx; dependencies: [6, 7, 2] */
|
||||
function _fun6814(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:615:6, offset: 0x00d094bd, size: 124 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun6815();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/http-utils/V6OrEarlierAPIError.tsx');
|
||||
exports.APIError = value;
|
||||
}
|
||||
|
||||
function _fun6815() { // fn#6815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:615:122, offset: 0x00d09539, size: 55 bytes, params: 1, frame: 14
|
||||
return env0_1(APIError_6816, [{key: 'getFieldMessage', value: function(a0) {
|
||||
var value = null;
|
||||
return value != this.fields[a0] ? this.fields[a0][0] : value;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function APIError_6816(a0, a1) { // fn#6816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:615:143, offset: 0x00d09570, size: 446 bytes, params: 3, frame: 19
|
||||
var r9;
|
||||
var r1;
|
||||
var body;
|
||||
var object2;
|
||||
var Array;
|
||||
var isArray;
|
||||
let value = a2;
|
||||
const value2 = undefined;
|
||||
const r8 = value !== value2 ? value : 'An unexpected error occurred.';
|
||||
value = environment.__proto__;
|
||||
env1_0(this, APIError_6816);
|
||||
if (typeof a0 === 'string') {
|
||||
r1 = {message: a0, code: a1};
|
||||
} else {
|
||||
body = a0.body;
|
||||
value = null;
|
||||
if (value != body) {
|
||||
body = a0.body;
|
||||
if (value == body.message) {
|
||||
body = a0.body;
|
||||
r9 = value != body ? global.Object.values(body)[0] : value;
|
||||
r1 = {message: value != r9 ? r9[0] : value2, fields: body, status: a0.status};
|
||||
} else {
|
||||
Array = global.Array;
|
||||
isArray = Array.isArray;
|
||||
body = a0.body;
|
||||
if (Reflect.apply(isArray, Array, [body.message])) {
|
||||
body = a0.body;
|
||||
r9 = value != body ? global.Object.values(body)[0] : value;
|
||||
r1 = {message: value != r9 ? r9[0] : value2, fields: body, status: a0.status};
|
||||
} else {
|
||||
body = a0.body;
|
||||
if (value == body.code) {
|
||||
object2 = {};
|
||||
body = a0.body;
|
||||
object2.message = body.message;
|
||||
body = a0.body;
|
||||
object2.code = body.code;
|
||||
body = a0.body;
|
||||
object2.retryAfter = body.retry_after;
|
||||
object2.status = a0.status;
|
||||
r1 = object2;
|
||||
} else {
|
||||
Array = global.Array;
|
||||
isArray = Array.isArray;
|
||||
body = a0.body;
|
||||
if (Reflect.apply(isArray, Array, [body.code])) {
|
||||
body = a0.body;
|
||||
r9 = value != body ? global.Object.values(body)[0] : value;
|
||||
r1 = {message: value != r9 ? r9[0] : value2, fields: body, status: a0.status};
|
||||
} else {
|
||||
object2 = {};
|
||||
body = a0.body;
|
||||
object2.message = body.message;
|
||||
body = a0.body;
|
||||
object2.code = body.code;
|
||||
body = a0.body;
|
||||
object2.retryAfter = body.retry_after;
|
||||
object2.status = a0.status;
|
||||
r1 = object2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
r1 = {status: a0.status};
|
||||
}
|
||||
}
|
||||
const message = r1.message;
|
||||
let code = r1.code;
|
||||
const retryAfter = r1.retryAfter;
|
||||
const fields = r1.fields;
|
||||
const status = r1.status;
|
||||
this.message = message || r8;
|
||||
this.retryAfter = retryAfter;
|
||||
code = !code ? -1 : code;
|
||||
this.code = code;
|
||||
this.fields = fields || ({});
|
||||
this.status = status;
|
||||
const Error = global.Error;
|
||||
this.error = new Error();
|
||||
return value2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,421 @@
|
||||
/* Metro module 562; source: ../discord_common/js/packages/http-utils/V8APIError.tsx; dependencies: [6, 7, 15, 17, 18, 162, 57, 2] */
|
||||
function _fun6788(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:6, offset: 0x00d089cc, size: 317 bytes, params: 8, frame: 19
|
||||
const convertStringArrayToSkemaErrorItems = function(a0) {
|
||||
return a0.map(_fun6793);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(162) /* metro dependency 162 */;
|
||||
const env0_5 = importDefault(57) /* metro dependency 57 */;
|
||||
const Error = global.Error;
|
||||
value = value(Error);
|
||||
value = _fun6795(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/http-utils/V8APIError.tsx');
|
||||
exports.INVALID_FORM_BODY_ERROR_CODE = 50035;
|
||||
exports.ROOT_FORM_ERRORS_KEY = '__root_errors';
|
||||
exports.CaptchaTypes = {HCAPTCHA: 'hcaptcha', RECAPTCHA: 'recaptcha', RECAPTCHA_ENTERPRISE: 'recaptcha_enterprise',
|
||||
TURNSTILE: 'turnstile'};
|
||||
exports.APIError = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_6789() { // fn#6789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:168, offset: 0x00d08b09, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_6789_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function convertStringArrayToSkemaErrorItems(a0) { // fn#6792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:527, offset: 0x00d08b67, size: 22 bytes, params: 2, frame: 11
|
||||
return a0.map(function(a0) {
|
||||
return {code: 'UNKNOWN', message: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function convertOldFormError(a0) { // fn#6794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:623, offset: 0x00d08b90, size: 133 bytes, params: 2, frame: 22
|
||||
var r2;
|
||||
var property;
|
||||
var value4;
|
||||
var property2;
|
||||
var object3;
|
||||
var value5;
|
||||
const object4 = {};
|
||||
const Object = global.Object;
|
||||
const value = Object.entries(a0);
|
||||
let length = value.length;
|
||||
const value2 = 0;
|
||||
if (value2 < length) {
|
||||
r2 = value2;
|
||||
while (true) {
|
||||
property = value[r2];
|
||||
value4 = env0_5(property, 2);
|
||||
property = value4[value2];
|
||||
property2 = value4[1];
|
||||
if (property !== '_misc') {
|
||||
object3 = {};
|
||||
object3._errors = convertStringArrayToSkemaErrorItems(property2);
|
||||
object4[property] = object3;
|
||||
} else {
|
||||
object4._errors = convertStringArrayToSkemaErrorItems(property2);
|
||||
}
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
length = value.length;
|
||||
if (value5 < length) {
|
||||
r2 = value5;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return object4;
|
||||
}
|
||||
|
||||
function _fun6795(a0) { // fn#6795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:892, offset: 0x00d08c15, size: 208 bytes, params: 2, frame: 16
|
||||
const closure = APIError;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'hasFieldErrors', value: function() {
|
||||
var r0;
|
||||
var property;
|
||||
var value = this.errors != null;
|
||||
if (value) {
|
||||
property = global.Object;
|
||||
property = property.keys(this.errors).length;
|
||||
r0 = property > 0;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}}, {key: 'getFieldErrors', value: value_6798}, {key: 'getAllFieldErrors', value: function() {
|
||||
return this.getAllFieldErrorsUnder(this.errors);
|
||||
}}, {key: 'getAllFieldErrorsUnder', value: function(a0) {
|
||||
var r3;
|
||||
var env0_0 = this;
|
||||
var object = {};
|
||||
var env0_1 = object;
|
||||
var value = undefined;
|
||||
r3 = a0 == null ? value : a0._errors;
|
||||
if (r3 != null && r3.length > 0) {
|
||||
object.__root_errors = r3;
|
||||
}
|
||||
if (value !== a0) {
|
||||
global.Object.entries(a0).forEach(_fun6801);
|
||||
}
|
||||
return object;
|
||||
}}, {key: 'getFirstFieldErrorMessage', value: function(a0) {
|
||||
var value = this.getFieldErrors(a0);
|
||||
var value2 = null;
|
||||
return value2 == value || value.length < 1 ? value2 : value[0].message;
|
||||
}}, {key: 'getAnyErrorMessage', value: function() {
|
||||
var r0;
|
||||
r0 = this.getAnyErrorMessageAndField()?.error;
|
||||
r0 = r0 ?? this.message;
|
||||
return r0;
|
||||
}}, {key: 'getAnyErrorMessageAndField', value: function() {
|
||||
var r4;
|
||||
var r6;
|
||||
var property2;
|
||||
var property = this.errors;
|
||||
var value = null;
|
||||
if (value != property) {
|
||||
r4 = value;
|
||||
r6 = property;
|
||||
loopExit1: while (true) {
|
||||
if (value != r6._errors) {
|
||||
return {fieldName: r4, error: r6._errors[0].message};
|
||||
}
|
||||
property = global.Object;
|
||||
property = property.keys(r6)[0];
|
||||
property2 = r6[property];
|
||||
if (value != property2) {
|
||||
r4 = property;
|
||||
r6 = property2;
|
||||
continue;
|
||||
}
|
||||
break loopExit1;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function APIError(a0, a1) { // fn#6796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:904, offset: 0x00d08ce5, size: 559 bytes, params: 3, frame: 26
|
||||
var r3;
|
||||
var r2;
|
||||
var body;
|
||||
var Array;
|
||||
var object;
|
||||
let value = a2;
|
||||
const value2 = undefined;
|
||||
let r0 = value !== value2 ? value : 'An unexpected error occurred.';
|
||||
value = environment.__proto__;
|
||||
env1_0(this, APIError);
|
||||
if (typeof a0 === 'string') {
|
||||
r2 = {message: a0, code: a1};
|
||||
} else {
|
||||
body = a0.body;
|
||||
if (body == null) {
|
||||
r2 = {status: a0.status};
|
||||
} else {
|
||||
body = a0.body;
|
||||
if (a0.body.message == null) {
|
||||
if (body == null) {
|
||||
object = {};
|
||||
object.status = a0.status;
|
||||
object.code = 50035;
|
||||
object.errors = convertOldFormError(body);
|
||||
r3 = object;
|
||||
} else if ('captcha_key' in body) {
|
||||
r3 = {code: -1, captchaFields: body, status: a0.status,
|
||||
message: body.captcha_key.length > 0 ? body.captcha_key[0] : value2};
|
||||
} else {
|
||||
object = {};
|
||||
object.status = a0.status;
|
||||
object.code = 50035;
|
||||
object.errors = convertOldFormError(body);
|
||||
r3 = object;
|
||||
}
|
||||
r2 = r3;
|
||||
} else {
|
||||
Array = global.Array;
|
||||
if (Array.isArray(a0.body.message)) {
|
||||
if (body == null) {
|
||||
object = {};
|
||||
object.status = a0.status;
|
||||
object.code = 50035;
|
||||
object.errors = convertOldFormError(body);
|
||||
r3 = object;
|
||||
} else if ('captcha_key' in body) {
|
||||
r3 = {code: -1, captchaFields: body, status: a0.status,
|
||||
message: body.captcha_key.length > 0 ? body.captcha_key[0] : value2};
|
||||
} else {
|
||||
object = {};
|
||||
object.status = a0.status;
|
||||
object.code = 50035;
|
||||
object.errors = convertOldFormError(body);
|
||||
r3 = object;
|
||||
}
|
||||
r2 = r3;
|
||||
} else if (a0.body.code == null) {
|
||||
r2 = {message: body.message, code: body.code, retryAfter: body.retry_after, errors: body.errors,
|
||||
status: a0.status};
|
||||
} else {
|
||||
Array = global.Array;
|
||||
if (Array.isArray(a0.body.code)) {
|
||||
if (body == null) {
|
||||
object = {};
|
||||
object.status = a0.status;
|
||||
object.code = 50035;
|
||||
object.errors = convertOldFormError(body);
|
||||
r3 = object;
|
||||
} else if ('captcha_key' in body) {
|
||||
r3 = {code: -1, captchaFields: body, status: a0.status,
|
||||
message: body.captcha_key.length > 0 ? body.captcha_key[0] : value2};
|
||||
} else {
|
||||
object = {};
|
||||
object.status = a0.status;
|
||||
object.code = 50035;
|
||||
object.errors = convertOldFormError(body);
|
||||
r3 = object;
|
||||
}
|
||||
r2 = r3;
|
||||
} else {
|
||||
r2 = {message: body.message, code: body.code, retryAfter: body.retry_after, errors: body.errors,
|
||||
status: a0.status};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
const message = r2.message;
|
||||
const code = r2.code;
|
||||
const retryAfter = r2.retryAfter;
|
||||
const errors = r2.errors;
|
||||
const status = r2.status;
|
||||
const captchaFields = r2.captchaFields;
|
||||
r0 = message ?? r0;
|
||||
object = [r0];
|
||||
const value4 = env1_3(APIError);
|
||||
value = env1_2(this, _isNativeReflectConstruct_6789() ? global.Reflect.construct(value4, object,
|
||||
env1_3(this).constructor) : value4.apply(this, object));
|
||||
value.code = code ?? -1;
|
||||
value.retryAfter = retryAfter;
|
||||
value.errors = errors;
|
||||
value.status = status;
|
||||
value.captchaFields = captchaFields ?? ({});
|
||||
value.cause = a0;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_6798(a0) { // fn#6798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:2015, offset: 0x00d08f4b, size: 129 bytes, params: 2, frame: 17
|
||||
var r0;
|
||||
var r1;
|
||||
var property;
|
||||
let value = a0;
|
||||
let r5 = typeof value !== 'string' ? value : [value];
|
||||
const errors = this.errors;
|
||||
let length = r5.length;
|
||||
if (length > 0) {
|
||||
if (errors == null) {
|
||||
r1 = errors;
|
||||
} else {
|
||||
r0 = errors;
|
||||
while (true) {
|
||||
property = r0[r5[0]];
|
||||
value = r5.splice(1);
|
||||
length = value.length;
|
||||
if (!(length > 0)) {
|
||||
r1 = property;
|
||||
break;
|
||||
}
|
||||
if (property != null) {
|
||||
r0 = property;
|
||||
r5 = value;
|
||||
continue;
|
||||
}
|
||||
r1 = property;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
r1 = errors;
|
||||
}
|
||||
return r1?._errors;
|
||||
}
|
||||
|
||||
function value_6800(a0) { // fn#6800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:2294, offset: 0x00d08fe2, size: 104 bytes, params: 2, frame: 16
|
||||
const object2 = {};
|
||||
const value = undefined;
|
||||
const _errors = a0 == null ? value : a0._errors;
|
||||
if (_errors != null && _errors.length > 0) {
|
||||
object2.__root_errors = _errors;
|
||||
}
|
||||
if (value !== a0) {
|
||||
global.Object.entries(a0).forEach(_fun6801);
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun6801(a0) { // fn#6801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:2418, offset: 0x00d0904a, size: 131 bytes, params: 2, frame: 17
|
||||
var r2;
|
||||
var r4;
|
||||
var r6;
|
||||
var item3;
|
||||
var value3;
|
||||
var Object;
|
||||
var entries;
|
||||
var binding;
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r3 = value2 ? value : item;
|
||||
const env0_0 = r3;
|
||||
if (value2) {
|
||||
r2 = item2;
|
||||
r4 = value2;
|
||||
r6 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r2 = item3;
|
||||
r4 = value3;
|
||||
r6 = value;
|
||||
} else {
|
||||
r2 = item3;
|
||||
r4 = value3;
|
||||
r6 = item;
|
||||
}
|
||||
}
|
||||
if (!r4) {
|
||||
r2.return();
|
||||
}
|
||||
if (r3 !== '_errors') {
|
||||
Object = global.Object;
|
||||
entries = Object.entries;
|
||||
binding = env0_0;
|
||||
Reflect.apply(entries, Object, [binding.getAllFieldErrorsUnder(r6)]).forEach(_fun6802);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun6802(a0) { // fn#6802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:2499, offset: 0x00d090cd, size: 139 bytes, params: 2, frame: 18
|
||||
var r1;
|
||||
var r2;
|
||||
var r3;
|
||||
var item3;
|
||||
var value3;
|
||||
var value4;
|
||||
var value6;
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r7 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r1 = item2;
|
||||
r2 = value2;
|
||||
r3 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
r3 = value;
|
||||
} else {
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
r3 = item;
|
||||
}
|
||||
}
|
||||
if (!r2) {
|
||||
r1.return();
|
||||
}
|
||||
if (r7 === '__root_errors') {
|
||||
value6 = environment.__proto__;
|
||||
env1_1[env0_0] = r3;
|
||||
} else {
|
||||
value4 = environment.__proto__;
|
||||
env1_1['' + env0_0 + '.' + r7] = r3;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/* Metro module 563; source: ../discord_common/js/packages/http-utils/convertSkemaError.tsx; dependencies: [2] */
|
||||
function _fun6806(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:613:6, offset: 0x00d0921c, size: 85 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/http-utils/convertSkemaError.tsx');
|
||||
exports.convertSkemaError = convertSkemaError;
|
||||
}
|
||||
|
||||
function convertSkemaError(a0) { // fn#6807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:613:224, offset: 0x00d09271, size: 173 bytes, params: 2, frame: 26
|
||||
var r8;
|
||||
var r14;
|
||||
var propertyName;
|
||||
var propertyName2;
|
||||
var property;
|
||||
var property2;
|
||||
var Array;
|
||||
var isArray;
|
||||
var _errors;
|
||||
var Object;
|
||||
var keys;
|
||||
var value;
|
||||
const object2 = {};
|
||||
for (propertyName in a0) {
|
||||
property = a0[propertyName];
|
||||
if (property == null) {
|
||||
r8 = propertyName2;
|
||||
continue;
|
||||
}
|
||||
if (propertyName !== '_errors') {
|
||||
continue;
|
||||
}
|
||||
property2 = a0[propertyName];
|
||||
object2._misc = property2.map(function(a0) {
|
||||
return a0.message;
|
||||
});
|
||||
Array = global.Array;
|
||||
isArray = Array.isArray;
|
||||
if (Reflect.apply(isArray, Array, [property])) {
|
||||
r8 = propertyName2;
|
||||
continue;
|
||||
}
|
||||
_errors = property._errors;
|
||||
if (_errors != null) {
|
||||
value = _errors.map(_fun6809);
|
||||
r14 = value;
|
||||
} else {
|
||||
Object = global.Object;
|
||||
keys = Object.keys;
|
||||
property = Reflect.apply(keys, Object, [property])[0];
|
||||
r14 = [property];
|
||||
}
|
||||
object2[propertyName] = r14;
|
||||
r8 = propertyName2;
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* Metro module 564; source: ../discord_common/js/packages/http-utils/stringifyErrors.tsx; dependencies: [2] */
|
||||
function _fun6810(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:614:6, offset: 0x00d09328, size: 89 bytes, params: 8, frame: 16
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const closure = stringifyErrors;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/http-utils/stringifyErrors.tsx');
|
||||
exports.stringifyErrors = closure;
|
||||
}
|
||||
|
||||
function stringifyErrors(a0) { // fn#6811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:614:112, offset: 0x00d09381, size: 196 bytes, params: 2, frame: 18
|
||||
var r2;
|
||||
var r1;
|
||||
var r0;
|
||||
var value3;
|
||||
var Array;
|
||||
let value = a0;
|
||||
const value2 = '';
|
||||
if (value == null) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
value3 = typeof value;
|
||||
if (value3 === 'string') {
|
||||
r1 = value;
|
||||
} else {
|
||||
if (value == null) {
|
||||
Array = global.Array;
|
||||
if (Array.isArray(value)) {
|
||||
value = value.reduce(function(a0, a1) {
|
||||
return a0.concat(stringifyErrors(a1));
|
||||
}, []);
|
||||
value = value.join(', ');
|
||||
r2 = value;
|
||||
} else if (value3 !== 'object') {
|
||||
r2 = value2;
|
||||
} else {
|
||||
value = global.Object.keys(value);
|
||||
value = value.reduce(_fun6813, []);
|
||||
value = value.join(', ');
|
||||
r2 = value;
|
||||
}
|
||||
} else if (value.message) {
|
||||
r2 = value.message;
|
||||
} else {
|
||||
Array = global.Array;
|
||||
if (Array.isArray(value)) {
|
||||
value = value.reduce(_fun6812, []);
|
||||
value = value.join(', ');
|
||||
r2 = value;
|
||||
} else if (value3 !== 'object') {
|
||||
r2 = value2;
|
||||
} else {
|
||||
value = global.Object.keys(value);
|
||||
value = value.reduce(_fun6813, []);
|
||||
value = value.join(', ');
|
||||
r2 = value;
|
||||
}
|
||||
}
|
||||
r1 = r2;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun6812(a0, a1) { // fn#6812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:614:203, offset: 0x00d09445, size: 32 bytes, params: 3, frame: 13
|
||||
return a0.concat(stringifyErrors(a1));
|
||||
}
|
||||
|
||||
function _fun6813(a0, a1) { // fn#6813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:614:297, offset: 0x00d09465, size: 88 bytes, params: 3, frame: 20
|
||||
var r0;
|
||||
let value = a0;
|
||||
const value4 = stringifyErrors(env0_0[a1]);
|
||||
if (value4) {
|
||||
value = value.concat('' + value4 + ' (' + a1 + ')');
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Metro module 15623; source: ../discord_common/js/packages/i18n/Constants.tsx; dependencies: [2] */
|
||||
function _fun119672(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15831:6, offset: 0x025147e8, size: 152 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/i18n/Constants.tsx');
|
||||
exports.FORMAT_RE = RegExp('\\{.+?\\}', '');
|
||||
exports.MARKDOWN_RE = RegExp('[~*_]{2}.+?[~*_]{2}|\\[.*?\\]\\(.+?\\)|\\n\\n', '');
|
||||
exports.UNSAFE_RE = RegExp('!!', '');
|
||||
exports.UNSAFE_RE_ALL = RegExp('!!', 'g');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/* Metro module 650; source: ../discord_common/js/packages/i18n/getSystemLocale.tsx; dependencies: [27, 651, 2] */
|
||||
function _fun7362(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:700:6, offset: 0x00d16d2f, size: 94 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/i18n/getSystemLocale.tsx');
|
||||
exports.getSystemLocale = getSystemLocale;
|
||||
}
|
||||
|
||||
function getSystemLocale() { // fn#7363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:700:198, offset: 0x00d16d8d, size: 126 bytes, params: 1, frame: 13
|
||||
const value2 = undefined;
|
||||
const moduleValue = require(27) /* metro dependency 27 */;
|
||||
const Platform = moduleValue.Platform;
|
||||
const OS = Platform.OS;
|
||||
const r3 = OS === 'android' ? (require(651) /* metro dependency 651: NativeDeviceLocaleModule */).default : moduleValue.NativeModules.LocalizationManager;
|
||||
const Language = r3 != null ? r3.getConstants().Language : value2;
|
||||
return Language ?? '';
|
||||
}
|
||||
|
||||
@@ -0,0 +1,571 @@
|
||||
/* Metro module 15580; source: ../discord_common/js/packages/i18n/i18n.tsx; dependencies: [15, 17, 18, 6, 7, 15581, 15590, 15591, 15592, 15593, 15594, 15595, 15596, 15597, 15598, 15599, 15600, 15601, 15602, 15603, 15604, 15605, 15606, 15607, 15608, 15609, 15610, 15611, 15612, 15613, 15614, 15615, 15616, 15617, 15618, 15622, 15626, 650, 639, 2] */
|
||||
function _fun119402(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:6, offset: 0x02508b85, size: 689 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_5 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_6 = importDefault(7) /* metro dependency 7 */;
|
||||
global.IntlMessageFormat = importDefault(15581) /* metro dependency 15581 */;
|
||||
require(15590) /* metro dependency 15590 */;
|
||||
require(15591) /* metro dependency 15591 */;
|
||||
require(15592) /* metro dependency 15592 */;
|
||||
require(15593) /* metro dependency 15593 */;
|
||||
require(15594) /* metro dependency 15594 */;
|
||||
require(15595) /* metro dependency 15595 */;
|
||||
require(15596) /* metro dependency 15596 */;
|
||||
require(15597) /* metro dependency 15597 */;
|
||||
require(15598) /* metro dependency 15598 */;
|
||||
require(15599) /* metro dependency 15599 */;
|
||||
require(15600) /* metro dependency 15600 */;
|
||||
require(15601) /* metro dependency 15601 */;
|
||||
require(15602) /* metro dependency 15602 */;
|
||||
require(15603) /* metro dependency 15603 */;
|
||||
require(15604) /* metro dependency 15604 */;
|
||||
require(15605) /* metro dependency 15605 */;
|
||||
require(15606) /* metro dependency 15606 */;
|
||||
require(15607) /* metro dependency 15607 */;
|
||||
require(15608) /* metro dependency 15608 */;
|
||||
require(15609) /* metro dependency 15609 */;
|
||||
require(15610) /* metro dependency 15610 */;
|
||||
require(15611) /* metro dependency 15611 */;
|
||||
require(15612) /* metro dependency 15612 */;
|
||||
require(15613) /* metro dependency 15613 */;
|
||||
require(15614) /* metro dependency 15614 */;
|
||||
require(15615) /* metro dependency 15615 */;
|
||||
require(15616) /* metro dependency 15616 */;
|
||||
require(15617) /* metro dependency 15617 */;
|
||||
delete global.IntlMessageFormat;
|
||||
const Intl = global.Intl;
|
||||
if (typeof Intl === 'undefined') {
|
||||
require(15618) /* metro dependency 15618 */;
|
||||
}
|
||||
let value = _fun119407();
|
||||
const env0_8 = _fun119410(value);
|
||||
const env0_9 = _fun119416(value);
|
||||
const EventEmitter = (require(639) /* metro dependency 639 */).EventEmitter;
|
||||
value = _fun119422(EventEmitter);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/i18n/i18n.tsx');
|
||||
const getSystemLocale = (require(650) /* metro dependency 650: getSystemLocale */).getSystemLocale;
|
||||
exports.getSystemLocale = getSystemLocale;
|
||||
exports.I18N = value;
|
||||
}
|
||||
|
||||
function _callSuper_119403(a0, a1, a2) { // fn#119403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:149, offset: 0x02508e36, size: 100 bytes, params: 4, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = a2;
|
||||
const value3 = env0_3(a1);
|
||||
const binding = env0_2;
|
||||
if (_isNativeReflectConstruct_119404()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value3, value || [], env0_3(a0).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value3.apply(a0, value);
|
||||
r0 = value;
|
||||
}
|
||||
return binding(a0, r0);
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_119404() { // fn#119404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:280, offset: 0x02508e9a, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_119404_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun119407() { // fn#119407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:827, offset: 0x02508efc, size: 59 bytes, params: 1, frame: 14
|
||||
return env0_6(Provider, [{key: 'getMessages', value: function() {
|
||||
return this._parsedMessages;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function _fun119410(a0) { // fn#119410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:1068, offset: 0x02508f8d, size: 72 bytes, params: 2, frame: 15
|
||||
const closure = LazyPropertyProvider;
|
||||
env0_4(closure, a0);
|
||||
return env0_6(closure, [{key: 'refresh', value: function(a0) {
|
||||
this._context = a0;
|
||||
this._refresh(a0, this._parsedMessages);
|
||||
}}]);
|
||||
}
|
||||
|
||||
function _fun119416(a0) { // fn#119416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:1542, offset: 0x025090fb, size: 72 bytes, params: 2, frame: 15
|
||||
const closure = ProxyProvider;
|
||||
env0_4(closure, a0);
|
||||
return env0_6(closure, [{key: 'refresh', value: function(a0) {
|
||||
var env0_0 = this;
|
||||
var Object = global.Object;
|
||||
Object.assign(this._context, a0);
|
||||
Object = global.Object;
|
||||
Object.keys(this._parsedMessages).forEach(_fun119421);
|
||||
}}]);
|
||||
}
|
||||
|
||||
function _fun119422(a0) { // fn#119422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:2009, offset: 0x02509289, size: 357 bytes, params: 2, frame: 16
|
||||
const closure = I18N;
|
||||
env0_4(closure, a0);
|
||||
return env0_6(closure, [{key: 'updateMessagesForExperiment', value: function(a0, a1) {
|
||||
var env0_0 = this;
|
||||
var env0_1 = a0;
|
||||
var env0_2 = a1;
|
||||
var value = this._fetchMessages(a0);
|
||||
if (value instanceof global.Promise) {
|
||||
value.then(_fun119429);
|
||||
} else {
|
||||
this._applyMessagesForLocale(a1(value), a0);
|
||||
}
|
||||
}}, {key: 'setLocale', value: function(a0) {
|
||||
var _chosenLocale;
|
||||
if (this._chosenLocale !== a0) {
|
||||
this._requestedLocale = a0;
|
||||
_chosenLocale = this._chosenLocale;
|
||||
this._chosenLocale = a0;
|
||||
this.loadPromise = this._loadMessagesForLocale(a0);
|
||||
this.emit('locale', this._chosenLocale, _chosenLocale);
|
||||
}
|
||||
}}, {key: 'setUpdateRules', value: value_119431}, {key: 'getLanguages', value: function() {
|
||||
return this._languages;
|
||||
}}, {key: 'getAvailableLocales', value: function() {
|
||||
var env0_0 = this;
|
||||
var value = this._languages.filter(_fun119434);
|
||||
value = value.map(_fun119435);
|
||||
return value.sort(_fun119436);
|
||||
}}, {key: 'getLocale', value: function() {
|
||||
return this._chosenLocale;
|
||||
}}, {key: 'getLocaleInfo', value: function() {
|
||||
var env0_0 = this;
|
||||
return this._languages.find(_fun119439);
|
||||
}}, {key: 'getDefaultLocale', value: value_119440}, {key: '_loadMessagesForLocale', value: function(a0) {
|
||||
var r0;
|
||||
var env0_0 = this;
|
||||
var env0_1 = a0;
|
||||
var value = this._fetchMessages(a0);
|
||||
if (value instanceof global.Promise) {
|
||||
value = value.then(_fun119446);
|
||||
r0 = value;
|
||||
} else {
|
||||
this._applyMessagesForLocale(value, a0);
|
||||
value = global.Promise.resolve();
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}}, {key: '_applyMessagesForLocale', value: value_119447}, {key: '_findMessages', value: function(a0) {
|
||||
var value = this._fetchMessages(a0);
|
||||
if (value instanceof global.Promise) {
|
||||
throw new global.Error('Messages are still loading.');
|
||||
}
|
||||
return value;
|
||||
}}, {key: '_fetchMessages', value: value_119449}]);
|
||||
}
|
||||
|
||||
function Provider(a0) { // fn#119408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:848, offset: 0x02508f37, size: 75 bytes, params: 2, frame: 14
|
||||
env1_5(this, Provider);
|
||||
this._context = {messages: {}, defaultMessages: {}, locale: env1_7};
|
||||
this._parsedMessages = {};
|
||||
this._getParsedMessages = a0;
|
||||
}
|
||||
|
||||
function LazyPropertyProvider(a0) { // fn#119411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:1080, offset: 0x02508fd5, size: 79 bytes, params: 2, frame: 18
|
||||
let value = copyRestArgs(0, undefined);
|
||||
env1_5(this, LazyPropertyProvider);
|
||||
const _callSuper_119403Binding = _callSuper_119403;
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, undefined);
|
||||
value = _callSuper_119403Binding(this, LazyPropertyProvider, items2);
|
||||
value._refresh = function(a0) {
|
||||
var r0;
|
||||
var value = a1;
|
||||
var env0_0 = a0;
|
||||
r0 = value !== undefined ? value : {};
|
||||
var env0_1 = r0;
|
||||
var Object = global.Object;
|
||||
Object.keys(a0.defaultMessages).forEach(_fun119413);
|
||||
return r0;
|
||||
};
|
||||
return value;
|
||||
}
|
||||
|
||||
function ProxyProvider(a0) { // fn#119417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:1554, offset: 0x02509143, size: 91 bytes, params: 2, frame: 17
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
env1_5(this, ProxyProvider);
|
||||
value = _callSuper_119403(this, ProxyProvider, [a0]);
|
||||
value._createProxy = _createProxy;
|
||||
value._parsedMessages = value._createProxy(value._context);
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_119420(a0) { // fn#119420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:1875, offset: 0x02509221, size: 80 bytes, params: 2, frame: 16
|
||||
let Object = global.Object;
|
||||
Object.assign(this._context, a0);
|
||||
Object = global.Object;
|
||||
Object.keys(this._parsedMessages).forEach(_fun119421);
|
||||
}
|
||||
|
||||
function I18N({initialLocale, getMessages, getLanguages}) { // fn#119423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:2021, offset: 0x025093ee, size: 496 bytes, params: 2, frame: 21
|
||||
var environment;
|
||||
var r4;
|
||||
var r1;
|
||||
var _getParsedMessages;
|
||||
var binding2;
|
||||
var binding3;
|
||||
var NumberFormat;
|
||||
var setLocale;
|
||||
var getDefaultLocale;
|
||||
var error;
|
||||
let value = environment.__proto__;
|
||||
let binding = env1_5;
|
||||
binding(this, I18N);
|
||||
const value3 = _callSuper_119403(this, I18N);
|
||||
let Promise = global.Promise;
|
||||
value3.loadPromise = Promise.resolve();
|
||||
value3.resolveLanguageLoaded = function() {
|
||||
};
|
||||
value3._languages = [];
|
||||
value3._chosenLocale = '';
|
||||
value3._getParsedMessages = _getParsedMessages;
|
||||
value3._handleNewListener = _handleNewListener;
|
||||
Promise = global.Promise;
|
||||
let prototype = Promise.prototype;
|
||||
const value4 = Object.create(prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun119427);
|
||||
value3.initialLanguageLoad = promise instanceof Object ? promise : value4;
|
||||
let Intl = global.Intl;
|
||||
if (Intl.__addLocaleData) {
|
||||
Intl = global.Intl;
|
||||
Intl.__addLocaleData(require(15626) /* metro dependency 15626 */);
|
||||
}
|
||||
value3._languages = getLanguages();
|
||||
const Proxy = global.window.Proxy;
|
||||
if (Proxy != null) {
|
||||
binding = env1_9;
|
||||
_getParsedMessages = value3._getParsedMessages;
|
||||
prototype = binding.prototype;
|
||||
value = Object.create(prototype, {constructor: {value: binding}});
|
||||
binding3 = new binding();
|
||||
value = binding3 instanceof Object ? binding3 : value;
|
||||
r4 = value;
|
||||
} else {
|
||||
binding = env1_8;
|
||||
_getParsedMessages = value3._getParsedMessages;
|
||||
prototype = binding.prototype;
|
||||
value = Object.create(prototype, {constructor: {value: binding}});
|
||||
binding2 = new binding();
|
||||
value = binding2 instanceof Object ? binding2 : value;
|
||||
r4 = value;
|
||||
}
|
||||
value3._provider = r4;
|
||||
value3.Messages = value3._provider.getMessages();
|
||||
value3._getMessages = getMessages;
|
||||
try {
|
||||
Intl = global.Intl;
|
||||
NumberFormat = Intl.NumberFormat;
|
||||
prototype = NumberFormat.prototype;
|
||||
Object.create(prototype, {constructor: {value: NumberFormat}});
|
||||
new NumberFormat(initialLocale, {});
|
||||
setLocale = value3.setLocale;
|
||||
if (initialLocale) {
|
||||
r1 = initialLocale;
|
||||
} else {
|
||||
value = value3.getDefaultLocale();
|
||||
r1 = value;
|
||||
}
|
||||
Reflect.apply(setLocale, value3, [r1]);
|
||||
} catch (error) {
|
||||
setLocale = value3.setLocale;
|
||||
getDefaultLocale = value3.getDefaultLocale;
|
||||
Reflect.apply(setLocale, value3, [Reflect.apply(getDefaultLocale, value3, [])]);
|
||||
}
|
||||
const on = value3.on;
|
||||
var _handleNewListener = value3._handleNewListener;
|
||||
Reflect.apply(on, value3, ['newListener', _handleNewListener]);
|
||||
return value3;
|
||||
}
|
||||
|
||||
function value_119428(a0, a1) { // fn#119428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:3075, offset: 0x025096ed, size: 91 bytes, params: 3, frame: 16
|
||||
const env0_1 = a0;
|
||||
const env0_2 = a1;
|
||||
const value = this._fetchMessages(a0);
|
||||
const Promise = global.Promise;
|
||||
if (value instanceof Promise) {
|
||||
value.then(_fun119429);
|
||||
} else {
|
||||
this._applyMessagesForLocale(a1(value), a0);
|
||||
}
|
||||
}
|
||||
|
||||
function value_119431(a0) { // fn#119431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:3482, offset: 0x025097bf, size: 41 bytes, params: 2, frame: 12
|
||||
const value = environment.__proto__;
|
||||
(require(15622) /* metro dependency 15622: parse */).setUpdateRules(a0);
|
||||
}
|
||||
|
||||
function value_119433() { // fn#119433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:3618, offset: 0x025097f3, size: 69 bytes, params: 1, frame: 12
|
||||
let value = this._languages.filter(function(a0) {
|
||||
return a0.enabled;
|
||||
});
|
||||
value = value.map(_fun119435);
|
||||
return value.sort(function({name}, {name}) {
|
||||
var value = name.toLowerCase();
|
||||
var value2 = name.toLowerCase();
|
||||
return value < value2 ? -1 : 0 > value2 ? 1 : 0;
|
||||
});
|
||||
}
|
||||
|
||||
function value_119438() { // fn#119438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:3952, offset: 0x0250987b, size: 35 bytes, params: 1, frame: 11
|
||||
return this._languages.find(_fun119439);
|
||||
}
|
||||
|
||||
function value_119440() { // fn#119440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:4057, offset: 0x025098b9, size: 247 bytes, params: 1, frame: 17
|
||||
const r0 = (require(650) /* metro dependency 650: getSystemLocale */).getSystemLocale() ?? env1_7;
|
||||
const value4 = this._languages.filter(function(a0) {
|
||||
return a0.enabled;
|
||||
}).map(function(a0) {
|
||||
return a0.code;
|
||||
});
|
||||
if (value4.includes(r0)) {
|
||||
return r0;
|
||||
}
|
||||
const value5 = r0.split('-');
|
||||
const value6 = value4.includes(value5[0]);
|
||||
const property = value5[0];
|
||||
return value6 ? property : property !== 'zh' ? value4.find(_fun119444) ?? env1_7 : value5.length > 1 && value5[1] === 'Hant' ? value4.find(function(a0) {
|
||||
return a0 === 'zh-TW';
|
||||
}) ?? env1_7 : value4.find(_fun119444) ?? env1_7;
|
||||
}
|
||||
|
||||
function value_119445(a0) { // fn#119445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:4427, offset: 0x025099b0, size: 90 bytes, params: 2, frame: 15
|
||||
var r0;
|
||||
const env0_1 = a0;
|
||||
let value = this._fetchMessages(a0);
|
||||
const Promise = global.Promise;
|
||||
if (value instanceof Promise) {
|
||||
value = value.then(_fun119446);
|
||||
r0 = value;
|
||||
} else {
|
||||
this._applyMessagesForLocale(value, a0);
|
||||
value = global.Promise.resolve();
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_119447(a0, a1) { // fn#119447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:4636, offset: 0x02509a26, size: 94 bytes, params: 3, frame: 16
|
||||
var r6;
|
||||
var _findMessages;
|
||||
var _provider;
|
||||
let value = a2;
|
||||
if (value !== undefined) {
|
||||
r6 = value;
|
||||
} else {
|
||||
_findMessages = this._findMessages;
|
||||
value = environment.__proto__;
|
||||
value = Reflect.apply(_findMessages, this, [env1_7]);
|
||||
r6 = value;
|
||||
}
|
||||
if (this._requestedLocale === a1) {
|
||||
_provider = this._provider;
|
||||
_provider.refresh({messages: a0, defaultMessages: r6, locale: a1});
|
||||
this.resolveLanguageLoaded();
|
||||
}
|
||||
}
|
||||
|
||||
function value_119449(a0) { // fn#119449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:4976, offset: 0x02509ac8, size: 116 bytes, params: 2, frame: 16
|
||||
var environment;
|
||||
var r2;
|
||||
var Promise;
|
||||
var value2;
|
||||
var error;
|
||||
const env0_1 = a0;
|
||||
let value = environment.__proto__;
|
||||
const r4 = a0 === env1_7 ? _fun119450 : _fun119451;
|
||||
try {
|
||||
value = this._getMessages(a0);
|
||||
Promise = global.Promise;
|
||||
value2 = value instanceof Promise;
|
||||
if (value2) {
|
||||
value = value.catch(r4);
|
||||
r2 = value;
|
||||
} else {
|
||||
r2 = value;
|
||||
}
|
||||
} catch (error) {
|
||||
return r4();
|
||||
}
|
||||
return r2;
|
||||
}
|
||||
|
||||
function _refresh(a0) { // fn#119412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:1216, owner: LazyPropertyProvider._refresh, offset: 0x02509024, size: 67 bytes, params: 2, frame: 13
|
||||
const value = a1;
|
||||
const env0_0 = a0;
|
||||
const r0 = value !== undefined ? value : {};
|
||||
const Object = global.Object;
|
||||
Object.keys(a0.defaultMessages).forEach(_fun119413);
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _createProxy() { // fn#119418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:1667, owner: ProxyProvider._createProxy, offset: 0x0250919e, size: 76 bytes, params: 1, frame: 13
|
||||
let value = a0;
|
||||
const env0_0Binding = value !== undefined ? value : env0_0._context;
|
||||
const Proxy = global.Proxy;
|
||||
const object2 = {get: get_119419};
|
||||
value = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
|
||||
const proxy = new Proxy({}, object2);
|
||||
return proxy instanceof Object ? proxy : value;
|
||||
}
|
||||
|
||||
function _fun119421(a0) { // fn#119421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:1961, offset: 0x02509271, size: 24 bytes, params: 2, frame: 2
|
||||
delete env0_0._parsedMessages[a0];
|
||||
}
|
||||
|
||||
function _getParsedMessages({messages, defaultMessages, locale}, a1, a2) { // fn#119425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:2245, owner: I18N._getParsedMessages, offset: 0x025095de, size: 211 bytes, params: 4, frame: 18
|
||||
var r1;
|
||||
var value;
|
||||
var moduleValue;
|
||||
var message;
|
||||
var error;
|
||||
let property = messages[a1];
|
||||
if (property) {
|
||||
r1 = property;
|
||||
} else {
|
||||
property = defaultMessages[a1];
|
||||
r1 = property;
|
||||
}
|
||||
if (typeof r1 === 'object') {
|
||||
return a2({messages: r1, defaultMessages: defaultMessages[a1], locale: locale});
|
||||
}
|
||||
try {
|
||||
value = environment.__proto__.__proto__;
|
||||
property = dependencyMap[35];
|
||||
moduleValue = require(property);
|
||||
message = moduleValue.getMessage(r1, locale);
|
||||
} catch (error) {
|
||||
property = defaultMessages[a1];
|
||||
if (typeof property === 'string') {
|
||||
value = require(dependencyMap[35]);
|
||||
return value.getMessage(property, locale);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
return message;
|
||||
}
|
||||
|
||||
function _handleNewListener(a0) { // fn#119426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:2521, owner: I18N._handleNewListener, offset: 0x025096b1, size: 40 bytes, params: 2, frame: 13
|
||||
var binding;
|
||||
if (a0 === 'locale') {
|
||||
binding = env0_0;
|
||||
binding.emit(a0, binding._chosenLocale);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun119427(a0) { // fn#119427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:2603, offset: 0x025096d9, size: 20 bytes, params: 2, frame: 2
|
||||
env0_0.resolveLanguageLoaded = a0;
|
||||
}
|
||||
|
||||
function _fun119429(a0) { // fn#119429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:3147, offset: 0x02509748, size: 39 bytes, params: 2, frame: 15
|
||||
const binding = env0_0;
|
||||
binding._applyMessagesForLocale(require(a0), env0_1);
|
||||
}
|
||||
|
||||
function _fun119435({code, name}) { // fn#119435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:3684, offset: 0x02509838, size: 56 bytes, params: 2, frame: 4
|
||||
const Messages = env0_0.Messages;
|
||||
return {value: code, name: name, localizedName: Messages[code] ?? name};
|
||||
}
|
||||
|
||||
function _fun119439({code}) { // fn#119439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:3992, offset: 0x0250989e, size: 27 bytes, params: 2, frame: 2
|
||||
return code === env0_0._chosenLocale;
|
||||
}
|
||||
|
||||
function _fun119446(a0) { // fn#119446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:4504, offset: 0x02509a0a, size: 28 bytes, params: 2, frame: 13
|
||||
return env0_0._applyMessagesForLocale(a0, env0_1);
|
||||
}
|
||||
|
||||
function _fun119450() { // fn#119450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:5000, offset: 0x02509b3c, size: 59 bytes, params: 1, frame: 12
|
||||
const Error = global.Error;
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = 'Error Loading ' + env2_7;
|
||||
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
|
||||
const error = new Error(value);
|
||||
throw error instanceof Object ? error : value2;
|
||||
}
|
||||
|
||||
function _fun119451() { // fn#119451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:5044, offset: 0x02509b77, size: 93 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var _fetchMessages;
|
||||
var value;
|
||||
let binding = env0_1;
|
||||
if (binding.indexOf('-') === -1) {
|
||||
binding = env0_0;
|
||||
_fetchMessages = binding._fetchMessages;
|
||||
value = environment.__proto__.__proto__;
|
||||
value = Reflect.apply(_fetchMessages, binding, [env2_7]);
|
||||
r0 = value;
|
||||
} else {
|
||||
binding = env0_0;
|
||||
_fetchMessages = binding._fetchMessages;
|
||||
value = env0_1.split('-');
|
||||
value = Reflect.apply(_fetchMessages, binding, [value[0]]);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun119413(a0) { // fn#119413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:1267, offset: 0x02509067, size: 60 bytes, params: 2, frame: 17
|
||||
const env0_0 = a0;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(env0_1, a0, {configurable: true, get: get_119414});
|
||||
}
|
||||
|
||||
function _createProxyGet(a0, a1) { // fn#119419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:1701, owner: ProxyProvider._createProxy.get, offset: 0x025091ea, size: 55 bytes, params: 3, frame: 17
|
||||
var r0;
|
||||
var value;
|
||||
var binding;
|
||||
const property = a0[a1];
|
||||
if (property) {
|
||||
r0 = property;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
binding = env1_0;
|
||||
value = binding._getParsedMessages(env0_0, a1, binding._createProxy);
|
||||
a0[a1] = value;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function get_119414() { // fn#119414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15777:1318, offset: 0x025090a3, size: 54 bytes, params: 1, frame: 16
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_1;
|
||||
const binding2 = env0_0;
|
||||
delete binding[binding2];
|
||||
const binding3 = env2_0;
|
||||
value = binding3._getParsedMessages(env1_0, binding2, binding3._refresh);
|
||||
binding[binding2] = value;
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 15579; source: ../discord_common/js/packages/i18n/index.tsx; dependencies: [15580, 2, 15622] */
|
||||
function _fun119401(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15776:6, offset: 0x02508ab9, size: 204 bytes, params: 8, frame: 20
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const I18N = (require(15580) /* metro dependency 15580: i18n */).I18N;
|
||||
const I18N2 = (require(15580) /* metro dependency 15580: i18n */).I18N;
|
||||
const getSystemLocale = (require(15580) /* metro dependency 15580: i18n */).getSystemLocale;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/i18n/index.tsx');
|
||||
exports.default = I18N;
|
||||
const getMessage = (require(15622) /* metro dependency 15622: parse */).getMessage;
|
||||
exports.getMessage = getMessage;
|
||||
exports.setUpdateRules = (require(15622) /* metro dependency 15622: parse */).setUpdateRules;
|
||||
const FormattedMessage = (require(15622) /* metro dependency 15622: parse */).FormattedMessage;
|
||||
exports.FormattedMessage = FormattedMessage;
|
||||
exports.I18N = I18N2;
|
||||
exports.getSystemLocale = getSystemLocale;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
/* Metro module 15624; source: ../discord_common/js/packages/i18n/markdownRules.tsx; dependencies: [3855, 2] */
|
||||
function _fun119673(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15832:6, offset: 0x02514880, size: 537 bytes, params: 8, frame: 27
|
||||
var object5;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const {newline, paragraph, url, link, strong, u, br, em, image,
|
||||
text} = (require(3855) /* metro dependency 3855 */).defaultRules;
|
||||
object5 = {newline: newline, paragraph: paragraph, url: url};
|
||||
const object6 = {};
|
||||
copyDataProperties(object6, link, undefined);
|
||||
object6['parse'] = parse_119674;
|
||||
object5.link = object6;
|
||||
object5.strong = strong;
|
||||
object5.u = u;
|
||||
object5.br = br;
|
||||
object5.em = em;
|
||||
object5.image = image;
|
||||
const object7 = {};
|
||||
object7.order = text.order;
|
||||
object7.match = (require(3855) /* metro dependency 3855 */).inlineRegex(RegExp('^\\$\\[(.*?)\\]\\((\\w+)\\)', ''));
|
||||
object7.parse = function(a0, a1, a2) {
|
||||
var object = {};
|
||||
object.render = a2.context[a0[2]];
|
||||
object.content = a1(a0[1], a2);
|
||||
return object;
|
||||
};
|
||||
object7.react = function(a0, a1, a2) {
|
||||
return a0.render(a1(a0.content, a2), a2.key);
|
||||
};
|
||||
object5.hook = object7;
|
||||
const object8 = {};
|
||||
object8.order = text.order;
|
||||
object8.match = (require(3855) /* metro dependency 3855 */).inlineRegex(RegExp('^!!(\\d+?)!!', ''));
|
||||
object8.parse = function(a0, a1, {unsafeContext}) {
|
||||
unsafeContext = unsafeContext[a0[1]];
|
||||
return {type: 'text',
|
||||
content: typeof unsafeContext === 'string' ? unsafeContext : unsafeContext != null ? unsafeContext.toString() : ''};
|
||||
};
|
||||
object8.react = function(a0) {
|
||||
return a0.content;
|
||||
};
|
||||
object5.noparse = object8;
|
||||
object5.text = text;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/i18n/markdownRules.tsx');
|
||||
exports.rules = object5;
|
||||
}
|
||||
|
||||
function parse_119674(a0, a1, a2) { // fn#119674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15832:421, offset: 0x02514a99, size: 42 bytes, params: 4, frame: 15
|
||||
const value = link.parse(a0, a1, a2);
|
||||
value.context = a2.context;
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,178 @@
|
||||
/* Metro module 15622; source: ../discord_common/js/packages/i18n/parse.tsx; dependencies: [57, 6, 7, 15623, 15581, 3855, 15624, 15625, 2] */
|
||||
function _fun119659(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:6, offset: 0x0251423a, size: 240 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = function(a0) {
|
||||
var rules = require(dependencyMap[6]).rules;
|
||||
env0_3 = _fun119661(rules, a0);
|
||||
env0_4 = _fun119663(rules);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_5 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_6 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_7 = importDefault(7) /* metro dependency 7 */;
|
||||
let value = require(15623) /* metro dependency 15623: Constants */;
|
||||
const env0_8 = value.FORMAT_RE;
|
||||
const env0_9 = value.MARKDOWN_RE;
|
||||
const env0_10 = value.UNSAFE_RE;
|
||||
const env0_11 = value.UNSAFE_RE_ALL;
|
||||
value = _fun119665();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/i18n/parse.tsx');
|
||||
exports.FormattedMessage = value;
|
||||
exports.setUpdateRules = closure;
|
||||
exports.getMessage = getMessage_119671;
|
||||
}
|
||||
|
||||
function setUpdateRules(a0) { // fn#119660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1004, offset: 0x0251432a, size: 86 bytes, params: 2, frame: 18
|
||||
const rules = (require(15624) /* metro dependency 15624: markdownRules */).rules;
|
||||
env0_3 = setUpdateRulesParserFor(rules, a0);
|
||||
env0_4 = parserForNonReact(rules);
|
||||
}
|
||||
|
||||
function _fun119665() { // fn#119665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:212, offset: 0x025144ab, size: 138 bytes, params: 1, frame: 15
|
||||
return env0_7(FormattedMessage, [{key: 'format', value: value_119667}, {key: 'astFormat', value: value_119668},
|
||||
{key: 'plainFormat', value: function(a0) {
|
||||
return this.intlMessage.format(a0);
|
||||
}}, {key: 'getContext', value: value_119670}]);
|
||||
}
|
||||
|
||||
function getMessage_119671(a0, a1) { // fn#119671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1557, offset: 0x02514742, size: 166 bytes, params: 3, frame: 16
|
||||
if (a0 == null) {
|
||||
return '';
|
||||
}
|
||||
if (env0_3 == null) {
|
||||
setUpdateRules((require(15625) /* metro dependency 15625: updateRulesWeb */).default);
|
||||
}
|
||||
const value2 = a0.replace(RegExp('^\\n+|\\n+$', 'g'), '');
|
||||
const value3 = FORMAT_RE.test(value2);
|
||||
const value4 = MARKDOWN_RE.test(value2);
|
||||
return value3 || value4 ? new env0_12(value2, a1, value4) : value2;
|
||||
}
|
||||
|
||||
function setUpdateRulesParserFor(a0, a1) { // fn#119661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1033, owner: setUpdateRules.parserFor, offset: 0x02514380, size: 111 bytes, params: 3, frame: 18
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const env0_0 = (importDefault(3855) /* metro dependency 3855 */).parserFor(a1(a0));
|
||||
value = importDefault(3855) /* metro dependency 3855 */;
|
||||
const reactFor = value.reactFor;
|
||||
const defaultImport = importDefault(3855) /* metro dependency 3855 */;
|
||||
const env0_1 = Reflect.apply(reactFor, value, [defaultImport.ruleOutput(a0, 'react')]);
|
||||
return _fun119662;
|
||||
}
|
||||
|
||||
function parserForNonReact(a0) { // fn#119663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1273, owner: setUpdateRules.parserForNonReact, offset: 0x0251443f, size: 54 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
const env0_0 = (importDefault(3855) /* metro dependency 3855 */).parserFor(a0);
|
||||
return _fun119664;
|
||||
}
|
||||
|
||||
function FormattedMessage(a0, a1, a2) { // fn#119666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:233, offset: 0x02514535, size: 124 bytes, params: 4, frame: 18
|
||||
let value = a0;
|
||||
env1_6(this, FormattedMessage);
|
||||
this.message = a2 ? value : value.replace(UNSAFE_RE_ALL, '');
|
||||
this.hasMarkdown = a2;
|
||||
value = importDefault(15581) /* metro dependency 15581 */;
|
||||
value = new value(this.message, a1);
|
||||
this.intlMessage = value;
|
||||
}
|
||||
|
||||
function value_119667(a0) { // fn#119667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:414, offset: 0x025145b1, size: 104 bytes, params: 2, frame: 16
|
||||
var intlMessage;
|
||||
var value;
|
||||
var value2;
|
||||
var property;
|
||||
var property2;
|
||||
var binding;
|
||||
if (this.hasMarkdown) {
|
||||
value = this.getContext(a0);
|
||||
value2 = environment.__proto__;
|
||||
value = env1_5(value, 2);
|
||||
property = value[0];
|
||||
property2 = value[1];
|
||||
binding = env1_3;
|
||||
intlMessage = this.intlMessage;
|
||||
return binding(intlMessage.format(property), property, property2);
|
||||
}
|
||||
return this.intlMessage.format(a0);
|
||||
}
|
||||
|
||||
function value_119668(a0) { // fn#119668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:595, offset: 0x02514619, size: 77 bytes, params: 2, frame: 16
|
||||
let value = this.getContext(a0);
|
||||
value = env1_5(value, 2);
|
||||
const property = value[0];
|
||||
const property2 = value[1];
|
||||
const binding = env1_4;
|
||||
const intlMessage = this.intlMessage;
|
||||
return binding(intlMessage.format(property), property, property2);
|
||||
}
|
||||
|
||||
function value_119670(a0) { // fn#119670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:795, offset: 0x0251467e, size: 196 bytes, params: 2, frame: 28
|
||||
var r3;
|
||||
var r4;
|
||||
var r15;
|
||||
var value2;
|
||||
var length;
|
||||
var value3;
|
||||
var property;
|
||||
var value4;
|
||||
var property2;
|
||||
var includes;
|
||||
var value5;
|
||||
var value6;
|
||||
const object2 = {};
|
||||
const test = UNSAFE_RE.test;
|
||||
let message = this.message;
|
||||
if (Reflect.apply(test, UNSAFE_RE, [message])) {
|
||||
value2 = global.Object.entries(a0);
|
||||
length = value2.length;
|
||||
value3 = 0;
|
||||
if (value3 < length) {
|
||||
r3 = value3;
|
||||
r4 = value3;
|
||||
while (true) {
|
||||
property = value2[r3];
|
||||
value4 = env1_5(property, 2);
|
||||
property = value4[value3];
|
||||
property2 = value4[1];
|
||||
message = this.message;
|
||||
includes = message.includes;
|
||||
if (Reflect.apply(includes, message, ['!!{' + property + '}!!'])) {
|
||||
value5 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
||||
object2[value5] = property2;
|
||||
a0[property] = value5;
|
||||
r15 = value5;
|
||||
} else {
|
||||
r15 = r4;
|
||||
}
|
||||
value6 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
||||
length = value2.length;
|
||||
if (value6 < length) {
|
||||
r3 = value6;
|
||||
r4 = r15;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return [a0, object2];
|
||||
}
|
||||
|
||||
function _fun119662(a0, a1, a2) { // fn#119662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1149, offset: 0x025143ef, size: 80 bytes, params: 4, frame: 14
|
||||
var r4;
|
||||
let value = a0;
|
||||
const value2 = value.includes('\n\n');
|
||||
if (value2) {
|
||||
value += '\n\n';
|
||||
r4 = value;
|
||||
} else {
|
||||
r4 = value;
|
||||
}
|
||||
return env0_1(env0_0(r4, {inline: !value2, context: a1, unsafeContext: a2}));
|
||||
}
|
||||
|
||||
function _fun119664(a0, a1, a2) { // fn#119664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1338, offset: 0x02514475, size: 54 bytes, params: 4, frame: 13
|
||||
return env0_0(a0 + '\n\n', {inline: false, context: a1, unsafeContext: a2});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
/* Metro module 15625; source: ../discord_common/js/packages/i18n/updateRules.web.tsx; dependencies: [31, 33, 3855, 2] */
|
||||
function _fun119679(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15833:6, offset: 0x02514b6f, size: 131 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/i18n/updateRules.web.tsx');
|
||||
exports.default = updateRules;
|
||||
}
|
||||
|
||||
function updateRules(a0) { // fn#119680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15833:216, offset: 0x02514bf2, size: 174 bytes, params: 2, frame: 16
|
||||
const defaultRules = (require(3855) /* metro dependency 3855 */).defaultRules;
|
||||
a0.heading = defaultRules.heading;
|
||||
const lheading = defaultRules.lheading;
|
||||
a0.lheading = lheading;
|
||||
a0.list = defaultRules.list;
|
||||
let object2 = {};
|
||||
copyDataProperties(object2, a0.paragraph, lheading);
|
||||
object2['react'] = updateRulesReact;
|
||||
a0.paragraph = object2;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, a0.link, lheading);
|
||||
object2['react'] = updateRulesReact_119682;
|
||||
a0.link = object2;
|
||||
return a0;
|
||||
}
|
||||
|
||||
function updateRulesReact(a0, a1, a2) { // fn#119681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15833:394, owner: updateRules.react, offset: 0x02514ca0, size: 53 bytes, params: 4, frame: 16
|
||||
return (
|
||||
<p key={a2.key}>
|
||||
{a1(a0.content, a2)}
|
||||
</p>
|
||||
);
|
||||
}
|
||||
|
||||
function updateRulesReact_119682(a0, a1, a2) { // fn#119682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15833:482, owner: updateRules.react, offset: 0x02514cd5, size: 244 bytes, params: 4, frame: 18
|
||||
var property;
|
||||
var value;
|
||||
var moduleValue;
|
||||
const object2 = {};
|
||||
if (a0.context != null) {
|
||||
property = a0.context[a0.target];
|
||||
if (property) {
|
||||
if (property.onClick) {
|
||||
object2.onClick = property.onClick;
|
||||
object2.onContextMenu = property.onContextMenu;
|
||||
} else {
|
||||
object2.onClick = property;
|
||||
}
|
||||
} else {
|
||||
object2.onClick = property;
|
||||
}
|
||||
}
|
||||
if (object2.onClick == null) {
|
||||
value = environment.__proto__;
|
||||
value = undefined;
|
||||
moduleValue = require(3855) /* metro dependency 3855 */;
|
||||
object2.href = moduleValue.sanitizeUrl(a0.target) ?? value;
|
||||
object2.target = '_blank';
|
||||
}
|
||||
value = environment.__proto__;
|
||||
return (
|
||||
<a
|
||||
title={a0.title}
|
||||
{...object2}
|
||||
{...{['rel']: 'noreferrer'}}
|
||||
key={a2.key}
|
||||
>
|
||||
{a1(a0.content, a2)}
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/* Metro module 487; source: ../discord_common/js/packages/id-generator/IdGenerator.tsx; dependencies: [6, 7, 24, 488, 2] */
|
||||
function _fun6303(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:528:6, offset: 0x00cf517f, size: 154 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const getLowBits = function(a0) {
|
||||
return a0.mod(4294967296).toJSNumber() | 0;
|
||||
};
|
||||
const getHighBits = function(a0) {
|
||||
return a0.shiftRight(32).toJSNumber() | 0;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun6306();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/id-generator/IdGenerator.tsx');
|
||||
exports.IdGenerator = value;
|
||||
}
|
||||
|
||||
function _fun6306() { // fn#6306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:528:248, offset: 0x00cf5260, size: 55 bytes, params: 1, frame: 14
|
||||
return env0_4(IdGenerator, [{key: 'generate', value: value_6308}]);
|
||||
}
|
||||
|
||||
function IdGenerator() { // fn#6307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:528:269, offset: 0x00cf5297, size: 139 bytes, params: 1, frame: 17
|
||||
let value = environment.__proto__;
|
||||
env1_3(this, IdGenerator);
|
||||
const Math = global.Math;
|
||||
const floor = Math.floor;
|
||||
const Math2 = global.Math;
|
||||
this._randomPrefix = Reflect.apply(floor, Math, [4294967296 * Math2.random()]) | 0;
|
||||
value = importDefault(24) /* metro dependency 24 */;
|
||||
const Date = global.Date;
|
||||
this._creationTime = value(Date.now());
|
||||
this._sequenceNumber = 0;
|
||||
}
|
||||
|
||||
function value_6308(a0) { // fn#6308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:528:457, offset: 0x00cf5322, size: 261 bytes, params: 2, frame: 21
|
||||
const value = environment.__proto__;
|
||||
const value2 = (importDefault(24) /* metro dependency 24 */)(a0);
|
||||
const _sequenceNumber = this._sequenceNumber;
|
||||
const value3 = typeof _sequenceNumber === 'bigint' ? _sequenceNumber : +_sequenceNumber;
|
||||
this._sequenceNumber = typeof value3 === 'bigint' ? value3 + 1n : +value3 + 1;
|
||||
const value4 = value3 | 0;
|
||||
const Buffer = (require(488) /* metro dependency 488 */).Buffer;
|
||||
const buffer = new Buffer(24);
|
||||
let writeInt32LE = buffer.writeInt32LE;
|
||||
const getLowBitsBinding = getLowBits;
|
||||
Reflect.apply(writeInt32LE, buffer, [getLowBitsBinding(value2), 0, true]);
|
||||
writeInt32LE = buffer.writeInt32LE;
|
||||
const getHighBitsBinding = getHighBits;
|
||||
Reflect.apply(writeInt32LE, buffer, [getHighBitsBinding(value2), 4, true]);
|
||||
buffer.writeInt32LE(this._randomPrefix, 8, true);
|
||||
buffer.writeInt32LE(getLowBitsBinding(this._creationTime), 12, true);
|
||||
buffer.writeInt32LE(getHighBitsBinding(this._creationTime), 16, true);
|
||||
buffer.writeInt32LE(value4, 20, true);
|
||||
return buffer.toString('base64');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/* Metro module 1914; source: ../discord_common/js/packages/kv-storage/js/api/Dao.tsx; dependencies: [6, 7, 1915, 1917, 2] */
|
||||
function _fun21001(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2041:6, offset: 0x00ee7a47, size: 153 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun21002();
|
||||
const value2 = _fun21020();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/Dao.tsx');
|
||||
exports.Dao = value;
|
||||
exports.DaoTransaction = value2;
|
||||
}
|
||||
|
||||
function _fun21002() { // fn#21002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2041:118, offset: 0x00ee7ae0, size: 379 bytes, params: 1, frame: 15
|
||||
return env0_3(Dao, [{key: 'prefix', get: function() {
|
||||
return this.table.prefix;
|
||||
}}, {key: 'withoutLogging', value: value_21005}, {key: 'get', value: function(a0) {
|
||||
return this.table.get([a0]);
|
||||
}}, {key: 'getMany', value: function(a0) {
|
||||
return this.table.getMany([], a0);
|
||||
}}, {key: 'getRange', value: function(a0, a1, a2) {
|
||||
return this.table.getRange([a0], [a1], a2);
|
||||
}}, {key: 'getKvEntries', value: function() {
|
||||
return this.table.getKvEntries();
|
||||
}}, {key: 'getMapEntries', value: function() {
|
||||
return this.table.getMapEntries();
|
||||
}}, {key: 'getIds', value: function() {
|
||||
return this.table.getChildIds([]);
|
||||
}}, {key: 'getParentId', value: function(a0) {
|
||||
return this.table.getParentId([null, a0]);
|
||||
}}, {key: 'put', value: function(a0, a1) {
|
||||
var value = a2;
|
||||
return this.table.put({key: [a0], data: a1, generation: null},
|
||||
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
|
||||
}}, {key: 'delete', value: function(a0) {
|
||||
return arguments.length === 0 ? this.table.delete() : this.table.delete([a0]);
|
||||
}}, {key: 'transaction', value: function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
return this.table.transaction(_fun21016, a1);
|
||||
}}, {key: 'upgradeTransaction', value: value_21017}, {key: 'getManySyncUnsafe', value: function(a0) {
|
||||
return this.table.getManySyncUnsafe([], a0);
|
||||
}}, {key: 'getMapEntriesSyncUnsafe', value: function() {
|
||||
return this.table.getMapEntriesSyncUnsafe();
|
||||
}}]);
|
||||
}
|
||||
|
||||
function _fun21020() { // fn#21020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2041:1515, offset: 0x00ee7f54, size: 108 bytes, params: 1, frame: 16
|
||||
return env0_3(DaoTransaction, [{key: 'put', value: function(a0, a1) {
|
||||
var value = a2;
|
||||
this.transaction.put({key: [a0], data: a1, generation: null},
|
||||
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
|
||||
}}, {key: 'delete', value: function(a0) {
|
||||
return arguments.length === 0 ? this.transaction.delete() : this.transaction.delete([a0]);
|
||||
}}], [{key: 'fromDatabaseTransaction', value: value_21024}]);
|
||||
}
|
||||
|
||||
function value_21015(a0, a1) { // fn#21015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2041:1168, offset: 0x00ee7e97, size: 40 bytes, params: 3, frame: 13
|
||||
const env0_0 = a0;
|
||||
return this.table.transaction(_fun21016, a1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,377 @@
|
||||
/* Metro module 1918; source: ../discord_common/js/packages/kv-storage/js/api/Database.tsx; dependencies: [5, 6, 7, 1917, 1919, 20, 1920, 2] */
|
||||
function _fun21072(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:6, offset: 0x00ee96de, size: 191 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_21075 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
||||
let value = _fun21076();
|
||||
let value2 = _fun21101();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/Database.tsx');
|
||||
exports.Database = value;
|
||||
exports.DatabaseTransaction = value2;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_21073(a0, a1) { // fn#21073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:130, offset: 0x00ee979d, size: 370 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun21074;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_21075(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_21075(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_21075(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun21074;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function _fun21076() { // fn#21076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1046, offset: 0x00ee990f, size: 399 bytes, params: 1, frame: 18
|
||||
const closure = Database;
|
||||
const binding = env0_5;
|
||||
const items2 = [{key: 'close', value: function() {
|
||||
this.lastState = require(dependencyMap[3]).DatabaseState.Closed;
|
||||
var property = this.raw;
|
||||
if (property != null) {
|
||||
property.close();
|
||||
}
|
||||
this.raw = null;
|
||||
require(dependencyMap[4]).Runtime.removeCompletionCallback(this.databaseStateCallback);
|
||||
}}];
|
||||
items2[1] = {key: 'disable', value: value_21080};
|
||||
items2[2] = {key: 'execute', value: value_21081};
|
||||
items2[3] = {key: 'executeSync', value: value_21084};
|
||||
items2[4] = {key: 'fullVacuum', value: function() {
|
||||
return this.execute({'type': 'db.vacuum', 'handle': 0, 'complete': true});
|
||||
}};
|
||||
items2[5] = {key: 'fsInfo', value: function() {
|
||||
return this.execute({'type': 'db.fs_info', 'handle': 0});
|
||||
}};
|
||||
items2[6] = {key: 'incrementalVacuum', value: function() {
|
||||
return this.execute({'type': 'db.vacuum', 'handle': 0, 'complete': false});
|
||||
}};
|
||||
items2[7] = {key: 'instantaneousState', value: value_21089};
|
||||
const binding2 = env0_3;
|
||||
const env0_1 = binding2(_fun21091);
|
||||
items2[8] = {key: 'instantaneousStateAsync', value: value_21092};
|
||||
items2[9] = {key: 'state', value: function() {
|
||||
return this.lastState;
|
||||
}};
|
||||
items2[10] = {key: 'transaction', value: value_21094};
|
||||
const env0_0 = binding2(_fun21097);
|
||||
return binding(closure, items2, [{key: 'open', value: value_21098}, {key: 'openSyncUnsafe', value: value_21099},
|
||||
{key: 'delete', value: function(a0) {
|
||||
var Host = require(dependencyMap[6]).Host;
|
||||
return Host.delete(a0);
|
||||
}}]);
|
||||
}
|
||||
|
||||
function _fun21101() { // fn#21101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3584, offset: 0x00eea198, size: 101 bytes, params: 1, frame: 15
|
||||
return env0_5(DatabaseTransaction, [{key: 'add', value: function(a0) {
|
||||
this.operations.push(a0);
|
||||
}}, {key: 'complete', value: value_21104}, {key: 'toString', value: function() {
|
||||
return '[DatabaseTransaction ' + this.database.handle + ': ' + this.operations.length + ' ops]';
|
||||
}}]);
|
||||
}
|
||||
|
||||
function Database(a0) { // fn#21077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1057, offset: 0x00ee9a9e, size: 143 bytes, params: 2, frame: 16
|
||||
env1_4(this, Database);
|
||||
this.raw = a0;
|
||||
this.name = a0.name;
|
||||
const DatabaseState = (require(1917) /* metro dependency 1917: types */).DatabaseState;
|
||||
const Open = DatabaseState.Open;
|
||||
this.lastState = Open;
|
||||
this.handle = a0.handle;
|
||||
const Runtime = (require(1919) /* metro dependency 1919: Runtime */).Runtime;
|
||||
this.databaseStateCallback = Runtime.addDatabaseStateCallback(_fun21078);
|
||||
}
|
||||
|
||||
function value_21080(a0) { // fn#21080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1541, offset: 0x00ee9bca, size: 111 bytes, params: 2, frame: 12
|
||||
var r0;
|
||||
var value;
|
||||
if (this.raw == null) {
|
||||
r0 = global.Promise.resolve();
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
this.lastState = (require(1917) /* metro dependency 1917: types */).DatabaseState.Disabled;
|
||||
value = this.execute({'type': 'db.disable', 'handle': 0, reason: a0});
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_21081(a0, a1) { // fn#21081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1717, offset: 0x00ee9c39, size: 232 bytes, params: 3, frame: 19
|
||||
var environment;
|
||||
var r8;
|
||||
var value2;
|
||||
var defaultImport;
|
||||
var timeAsync;
|
||||
let value = a1;
|
||||
const env0_1 = a0;
|
||||
if (this.raw == null) {
|
||||
throw new global.Error('database is no longer open (database: ' + this);
|
||||
}
|
||||
let r0 = 'key' in a0 ? a0.key[0] : a0.table;
|
||||
const closure = value_21081Callback;
|
||||
if (value === null) {
|
||||
r0 = closure();
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(20) /* metro dependency 20: AppStartPerformance */;
|
||||
timeAsync = defaultImport.timeAsync;
|
||||
r8 = value ?? a0.type;
|
||||
value = '';
|
||||
value = value + r8 + ' ' + (r0 ?? value);
|
||||
value = Reflect.apply(timeAsync, defaultImport, ['💾', value, closure]);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_21084(a0) { // fn#21084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:2078, offset: 0x00ee9da8, size: 212 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
var value;
|
||||
var Error;
|
||||
const env0_1 = a0;
|
||||
if (this.raw == null) {
|
||||
Error = global.Error;
|
||||
value = 'database is no longer open (database: ' + this;
|
||||
throw new Error();
|
||||
}
|
||||
const r1 = 'key' in a0 ? a0.key[0] : a0.table;
|
||||
value = environment.__proto__;
|
||||
value = importDefault(20) /* metro dependency 20: AppStartPerformance */;
|
||||
return value.time('💾', 'SYNC: ' + a0.type + ' ' + (r1 ?? ''), _fun21085);
|
||||
}
|
||||
|
||||
function value_21089() { // fn#21089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:2650, offset: 0x00ee9f14, size: 84 bytes, params: 1, frame: 12
|
||||
var r0;
|
||||
var value;
|
||||
if (this.raw == null) {
|
||||
value = environment.__proto__;
|
||||
r0 = (require(1917) /* metro dependency 1917: types */).DatabaseState.Closed;
|
||||
} else {
|
||||
value = this.executeSync({type: 'db.state'});
|
||||
this.lastState = value;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function* _fun21091() { // fn#21091, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:2809, offset: 0x00ee9f71, size: 111 bytes, params: 1, frame: 13
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
if (this.raw == null) {
|
||||
value = environment.__proto__.__proto__;
|
||||
return env2_0(env2_2[3]).DatabaseState.Closed;
|
||||
}
|
||||
yield this.execute({type: 'db.state'});
|
||||
value = undefined;
|
||||
if (true) {
|
||||
this.lastState = value;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_21094(a0, a1) { // fn#21094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3077, offset: 0x00ee9feb, size: 95 bytes, params: 3, frame: 12
|
||||
var environment;
|
||||
const env0_1 = a1;
|
||||
const value = environment.__proto__;
|
||||
let value2 = new env1_6(this);
|
||||
value2 = a0(value2);
|
||||
const Promise = global.Promise;
|
||||
value2 = Promise.resolve(value2);
|
||||
return value2.then(_fun21095);
|
||||
}
|
||||
|
||||
function* _fun21097(a0, a1) { // fn#21097, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3286, offset: 0x00eea0b3, size: 105 bytes, params: 3, frame: 15
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
value = environment.__proto__.__proto__;
|
||||
const Host = env2_0(env2_2[6]).Host;
|
||||
yield Host.open(a0, a1);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
const value4 = Object.create(dependencyMap.prototype, {constructor: {value: dependencyMap}});
|
||||
const dependencyMap2 = new dependencyMap(value);
|
||||
return dependencyMap2 instanceof Object ? dependencyMap2 : value4;
|
||||
}
|
||||
|
||||
function value_21099(a0, a1) { // fn#21099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3433, offset: 0x00eea11c, size: 78 bytes, params: 3, frame: 14
|
||||
let value = environment.__proto__;
|
||||
const Host = (require(1920) /* metro dependency 1920: Host */).Host;
|
||||
value = Host.openSyncUnsafe(a0, a1);
|
||||
const value2 = Object.create(Database.prototype, {constructor: {value: Database}});
|
||||
const database = new Database();
|
||||
return database instanceof Object ? database : value2;
|
||||
}
|
||||
|
||||
function DatabaseTransaction(a0) { // fn#21102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3605, offset: 0x00eea1fd, size: 46 bytes, params: 2, frame: 13
|
||||
env1_4(this, DatabaseTransaction);
|
||||
this.database = a0;
|
||||
this.operations = [];
|
||||
}
|
||||
|
||||
function value_21104() { // fn#21104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3780, offset: 0x00eea245, size: 71 bytes, params: 1, frame: 15
|
||||
var r2;
|
||||
var value3;
|
||||
var value4;
|
||||
let value = environment.__proto__;
|
||||
value = _createForOfIteratorHelperLoose_21073(this.operations);
|
||||
const value2 = value();
|
||||
let done = value2.done;
|
||||
if (!done) {
|
||||
for (r2 = value2; true; r2 = value4) {
|
||||
value3 = r2.value;
|
||||
value3.handle = 0;
|
||||
value4 = value();
|
||||
done = value4.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return this.operations;
|
||||
}
|
||||
|
||||
function _fun21078(a0, a1) { // fn#21078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1257, offset: 0x00ee9b2d, size: 37 bytes, params: 3, frame: 3
|
||||
if (env0_0.handle === a0) {
|
||||
env0_0.lastState = a1;
|
||||
}
|
||||
}
|
||||
|
||||
function value_21081Callback() { // fn#21082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1856, owner: value_21081.callback, offset: 0x00ee9d21, size: 80 bytes, params: 1, frame: 14
|
||||
const Runtime = (require(1919) /* metro dependency 1919: Runtime */).Runtime;
|
||||
return Runtime.executeAsync(require ?? env0_1.type, _fun21083);
|
||||
}
|
||||
|
||||
function _fun21085() { // fn#21085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:2268, offset: 0x00ee9e7c, size: 62 bytes, params: 1, frame: 15
|
||||
const raw = env0_0.raw;
|
||||
const execute = raw.execute;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_1, undefined);
|
||||
object2['handle'] = 0;
|
||||
return Reflect.apply(execute, raw, [null, object2, {synchronous: true}]);
|
||||
}
|
||||
|
||||
function _fun21095() { // fn#21095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3148, offset: 0x00eea04a, size: 96 bytes, params: 1, frame: 16
|
||||
var r0;
|
||||
var binding;
|
||||
var execute;
|
||||
var object2;
|
||||
if (env0_2.operations.length > 0) {
|
||||
binding = env0_0;
|
||||
execute = binding.execute;
|
||||
object2 = {type: 'db.transaction'};
|
||||
object2.operations = env0_2.complete();
|
||||
r0 = Reflect.apply(execute, binding, [object2, require]);
|
||||
} else {
|
||||
r0 = global.Promise.resolve();
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun21083(a0) { // fn#21083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1908, offset: 0x00ee9d71, size: 55 bytes, params: 2, frame: 14
|
||||
const raw = env1_0.raw;
|
||||
const execute = raw.execute;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env1_1, undefined);
|
||||
object2['handle'] = 0;
|
||||
Reflect.apply(execute, raw, [a0, object2]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,146 @@
|
||||
/* Metro module 1921; source: ../discord_common/js/packages/kv-storage/js/api/EntityDao.tsx; dependencies: [6, 7, 1915, 1917, 2] */
|
||||
function _fun21146(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:6, offset: 0x00eeb0be, size: 157 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun21147();
|
||||
const value2 = _fun21172();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/EntityDao.tsx');
|
||||
exports.EntityDao = value;
|
||||
exports.EntityDaoTransaction = value2;
|
||||
}
|
||||
|
||||
function _fun21147() { // fn#21147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:118, offset: 0x00eeb15b, size: 453 bytes, params: 1, frame: 16
|
||||
return env0_3(EntityDao, [{key: 'prefix', get: function() {
|
||||
return this.table.prefix;
|
||||
}}, {key: 'withoutLogging', value: value_21150}, {key: 'get', value: function(a0) {
|
||||
return this.table.get([a0]);
|
||||
}}, {key: 'getMany', value: function(a0) {
|
||||
return this.table.getMany([], a0);
|
||||
}}, {key: 'getRange', value: function(a0, a1, a2) {
|
||||
return this.table.getRange([a0], [a1], a2);
|
||||
}}, {key: 'getKvEntries', value: function() {
|
||||
return this.table.getKvEntries();
|
||||
}}, {key: 'getMapEntries', value: function() {
|
||||
return this.table.getMapEntries();
|
||||
}}, {key: 'getIds', value: function() {
|
||||
return this.table.getChildIds([]);
|
||||
}}, {key: 'getParentId', value: function(a0) {
|
||||
return this.table.getParentId([null, a0]);
|
||||
}}, {key: 'put', value: function(a0) {
|
||||
var value = a1;
|
||||
var env0_0 = a0;
|
||||
var env0_1 = value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace;
|
||||
return this.transaction(_fun21159, '' + this.prefix + ' put');
|
||||
}}, {key: 'putAll', value: function(a0) {
|
||||
var value = a1;
|
||||
var env0_0 = a0;
|
||||
var env0_1 = value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace;
|
||||
return this.transaction(_fun21161, '' + this.prefix + ' putAll');
|
||||
}}, {key: 'replaceAll', value: function(a0) {
|
||||
var env0_0 = a0;
|
||||
return this.transaction(_fun21163, '' + this.prefix + ' replaceAll');
|
||||
}}, {key: 'delete', value: function(a0) {
|
||||
var env0_0 = a0;
|
||||
return this.transaction(_fun21165, '' + this.prefix + ' delete');
|
||||
}}, {key: 'transaction', value: function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
return this.table.transaction(_fun21167, a1);
|
||||
}}, {key: 'upgradeTransaction', value: value_21168}, {key: 'getManySyncUnsafe', value: function(a0) {
|
||||
return this.table.getManySyncUnsafe([], a0);
|
||||
}}, {key: 'getMapEntriesSyncUnsafe', value: function() {
|
||||
return this.table.getMapEntriesSyncUnsafe();
|
||||
}}], [{key: 'cell', value: function(a0, a1) {
|
||||
return {key: [a0.id], data: a0, generation: a1};
|
||||
}}]);
|
||||
}
|
||||
|
||||
function _fun21172() { // fn#21172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1859, offset: 0x00eeb59b, size: 177 bytes, params: 1, frame: 16
|
||||
return env0_3(EntityDaoTransaction, [{key: 'put', value: value_21174}, {key: 'putAll', value: function(a0) {
|
||||
var value = a1;
|
||||
return this.transaction.putAll(a0.map(_fun21176),
|
||||
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
|
||||
}}, {key: 'replaceAll', value: function(a0) {
|
||||
this.delete();
|
||||
this.putAll(a0);
|
||||
}}, {key: 'delete', value: function(a0) {
|
||||
return arguments.length === 0 ? this.transaction.delete([]) : this.transaction.delete([a0]);
|
||||
}}, {key: 'deleteAllExcept', value: function(a0) {
|
||||
this.transaction.deleteAllExcept([], a0);
|
||||
}}], [{key: 'fromDatabaseTransaction', value: value_21180}]);
|
||||
}
|
||||
|
||||
function value_21158(a0) { // fn#21158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:954, offset: 0x00eeb320, size: 114 bytes, params: 2, frame: 16
|
||||
var environment;
|
||||
var Replace;
|
||||
let value = a1;
|
||||
const env0_0 = a0;
|
||||
if (value === undefined) {
|
||||
value = environment.__proto__;
|
||||
Replace = (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
|
||||
}
|
||||
return this.transaction(_fun21159, '' + this.prefix + ' put');
|
||||
}
|
||||
|
||||
function value_21160(a0) { // fn#21160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1084, offset: 0x00eeb3ae, size: 114 bytes, params: 2, frame: 16
|
||||
var environment;
|
||||
var Replace;
|
||||
let value = a1;
|
||||
const env0_0 = a0;
|
||||
if (value === undefined) {
|
||||
value = environment.__proto__;
|
||||
Replace = (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
|
||||
}
|
||||
return this.transaction(_fun21161, '' + this.prefix + ' putAll');
|
||||
}
|
||||
|
||||
function value_21162(a0) { // fn#21162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1224, offset: 0x00eeb43c, size: 66 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
return this.transaction(_fun21163, '' + this.prefix + ' replaceAll');
|
||||
}
|
||||
|
||||
function value_21164(a0) { // fn#21164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1332, offset: 0x00eeb495, size: 66 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
return this.transaction(_fun21165, '' + this.prefix + ' delete');
|
||||
}
|
||||
|
||||
function value_21166(a0, a1) { // fn#21166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1437, offset: 0x00eeb4ed, size: 40 bytes, params: 3, frame: 13
|
||||
const env0_0 = a0;
|
||||
return this.table.transaction(_fun21167, a1);
|
||||
}
|
||||
|
||||
function value_21174(a0) { // fn#21174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1999, offset: 0x00eeb64c, size: 91 bytes, params: 2, frame: 16
|
||||
let value = a1;
|
||||
const r3 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
|
||||
const transaction = this.transaction;
|
||||
const put = transaction.put;
|
||||
value = environment.__proto__;
|
||||
const binding = env1_4;
|
||||
return Reflect.apply(put, transaction, [binding.cell(a0, null), r3]);
|
||||
}
|
||||
|
||||
function value_21175(a0) { // fn#21175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:2113, offset: 0x00eeb6a7, size: 87 bytes, params: 2, frame: 15
|
||||
const value = a1;
|
||||
const r3 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
|
||||
const transaction = this.transaction;
|
||||
return transaction.putAll(a0.map(_fun21176), r3);
|
||||
}
|
||||
|
||||
function _fun21159(a0) { // fn#21159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1025, offset: 0x00eeb392, size: 28 bytes, params: 2, frame: 13
|
||||
return a0.put(env0_0, env0_1);
|
||||
}
|
||||
|
||||
function _fun21161(a0) { // fn#21161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1155, offset: 0x00eeb420, size: 28 bytes, params: 2, frame: 13
|
||||
return a0.putAll(env0_0, env0_1);
|
||||
}
|
||||
|
||||
function _fun21163(a0) { // fn#21163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1261, offset: 0x00eeb47e, size: 23 bytes, params: 2, frame: 11
|
||||
return a0.replaceAll(env0_0);
|
||||
}
|
||||
|
||||
function _fun21176(a0) { // fn#21176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:2197, offset: 0x00eeb6fe, size: 26 bytes, params: 2, frame: 13
|
||||
return env2_4.cell(a0, null);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
/* Metro module 1922; source: ../discord_common/js/packages/kv-storage/js/api/GuildDao.tsx; dependencies: [6, 7, 1915, 1917, 2] */
|
||||
function _fun21181(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:6, offset: 0x00eeb797, size: 153 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun21182();
|
||||
const value2 = _fun21203();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/GuildDao.tsx');
|
||||
exports.GuildDao = value;
|
||||
exports.GuildDaoTransaction = value2;
|
||||
}
|
||||
|
||||
function _fun21182() { // fn#21182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:118, offset: 0x00eeb830, size: 448 bytes, params: 1, frame: 15
|
||||
return env0_3(GuildDao, [{key: 'prefix', get: function() {
|
||||
return this.table.prefix;
|
||||
}}, {key: 'withoutLogging', value: value_21185}, {key: 'get', value: function(a0, a1) {
|
||||
return this.table.get([a0, a1]);
|
||||
}}, {key: 'getMany', value: function(a0, a1) {
|
||||
return this.table.getMany([a0], a1);
|
||||
}}, {key: 'getRange', value: function(a0, a1, a2, a3) {
|
||||
return this.table.getRange([a0, a1], [a0, a2], a3);
|
||||
}}, {key: 'getKvEntries', value: function() {
|
||||
return this.table.getKvEntries();
|
||||
}}, {key: 'getMapEntries', value: function() {
|
||||
return this.table.getMapEntries();
|
||||
}}, {key: 'getIds', value: function(a0) {
|
||||
return this.table.getChildIds([a0]);
|
||||
}}, {key: 'getGuildIds', value: function() {
|
||||
return this.table.getChildIds([]);
|
||||
}}, {key: 'getGuildId', value: function(a0) {
|
||||
return this.table.getParentId([null, a0]);
|
||||
}}, {key: 'put', value: function(a0, a1, a2) {
|
||||
var value = a3;
|
||||
return this.putWithGeneration(a0, a1, a2, null,
|
||||
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
|
||||
}}, {key: 'putWithGeneration', value: function(a0, a1, a2, a3) {
|
||||
var value = a4;
|
||||
return this.table.put({key: [a0, a1], data: a2, generation: a3},
|
||||
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
|
||||
}}, {key: 'delete', value: function(a0, a1) {
|
||||
var value = arguments.length;
|
||||
if (value === 0) {
|
||||
return this.table.delete([]);
|
||||
}
|
||||
if (value === 1) {
|
||||
return this.table.delete([a0]);
|
||||
}
|
||||
return this.table.delete([a0, a1]);
|
||||
}}, {key: 'deleteGeneration', value: function(a0, a1) {
|
||||
return this.table.deleteGeneration([], a0, a1);
|
||||
}}, {key: 'transaction', value: function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
return this.table.transaction(_fun21199, a1);
|
||||
}}, {key: 'upgradeTransaction', value: value_21200}, {key: 'getManySyncUnsafe', value: function(a0, a1) {
|
||||
return this.table.getManySyncUnsafe([a0], a1);
|
||||
}}, {key: 'getMapEntriesSyncUnsafe', value: function() {
|
||||
return this.table.getMapEntriesSyncUnsafe();
|
||||
}}]);
|
||||
}
|
||||
|
||||
function _fun21203() { // fn#21203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:1913, offset: 0x00eebc27, size: 154 bytes, params: 1, frame: 16
|
||||
return env0_3(GuildDaoTransaction, [{key: 'put', value: function(a0, a1, a2) {
|
||||
var value = a3;
|
||||
this.putWithGeneration(a0, a1, a2, null,
|
||||
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
|
||||
}}, {key: 'putWithGeneration', value: function(a0, a1, a2, a3) {
|
||||
var value = a4;
|
||||
return this.state.put({key: [a0, a1], data: a2, generation: a3},
|
||||
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
|
||||
}}, {key: 'delete', value: function(a0, a1) {
|
||||
var value = arguments.length;
|
||||
if (value === 0) {
|
||||
this.state.delete([]);
|
||||
} else if (value === 1) {
|
||||
this.state.delete([a0]);
|
||||
} else {
|
||||
this.state.delete([a0, a1]);
|
||||
}
|
||||
}}, {key: 'deleteGeneration', value: function(a0, a1) {
|
||||
return this.state.deleteGeneration([], a0, a1);
|
||||
}}], [{key: 'fromDatabaseTransaction', value: value_21209}]);
|
||||
}
|
||||
|
||||
function value_21198(a0, a1) { // fn#21198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:1563, offset: 0x00eebbda, size: 40 bytes, params: 3, frame: 13
|
||||
const env0_0 = a0;
|
||||
return this.table.transaction(_fun21199, a1);
|
||||
}
|
||||
|
||||
function GuildDaoTransaction(a0) { // fn#21204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:1924, offset: 0x00eebcc1, size: 36 bytes, params: 2, frame: 13
|
||||
env1_2(this, GuildDaoTransaction);
|
||||
this.state = a0;
|
||||
}
|
||||
|
||||
+191
@@ -0,0 +1,191 @@
|
||||
/* Metro module 1923; source: ../discord_common/js/packages/kv-storage/js/api/GuildEntityDao.tsx; dependencies: [6, 7, 1915, 1917, 2] */
|
||||
function _fun21210(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:6, offset: 0x00eebe23, size: 157 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun21211();
|
||||
const value2 = _fun21240();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/GuildEntityDao.tsx');
|
||||
exports.GuildEntityDao = value;
|
||||
exports.GuildEntityDaoTransaction = value2;
|
||||
}
|
||||
|
||||
function _fun21211() { // fn#21211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:118, offset: 0x00eebec0, size: 522 bytes, params: 1, frame: 16
|
||||
return env0_3(GuildEntityDao, [{key: 'prefix', get: function() {
|
||||
return this.table.prefix;
|
||||
}}, {key: 'withoutLogging', value: value_21214}, {key: 'get', value: function(a0, a1) {
|
||||
return this.table.get([a0, a1]);
|
||||
}}, {key: 'getMany', value: function(a0, a1) {
|
||||
return this.table.getMany([a0], a1);
|
||||
}}, {key: 'getRange', value: function(a0, a1, a2, a3) {
|
||||
return this.table.getRange([a0, a1], [a0, a2], a3);
|
||||
}}, {key: 'getKvEntries', value: function() {
|
||||
return this.table.getKvEntries();
|
||||
}}, {key: 'getMapEntries', value: function() {
|
||||
return this.table.getMapEntries();
|
||||
}}, {key: 'getIds', value: function(a0) {
|
||||
return this.table.getChildIds([a0]);
|
||||
}}, {key: 'getGuildIds', value: function() {
|
||||
return this.table.getChildIds([]);
|
||||
}}, {key: 'getGuildId', value: function(a0) {
|
||||
return this.table.getParentId([null, a0]);
|
||||
}}, {key: 'put', value: function(a0, a1) {
|
||||
var value = a2;
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
var env0_2 = value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace;
|
||||
return this.transaction(_fun21224, '' + this.prefix + ' put');
|
||||
}}, {key: 'putAll', value: function(a0, a1) {
|
||||
var value = a2;
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
var env0_2 = value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace;
|
||||
return this.transaction(_fun21226, '' + this.prefix + ' putAll');
|
||||
}}, {key: 'replaceAll', value: function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return this.transaction(_fun21228, '' + this.prefix + ' replaceAll');
|
||||
}}, {key: 'delete', value: function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return this.transaction(_fun21230, '' + this.prefix + ' delete');
|
||||
}}, {key: 'deleteGeneration', value: function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return this.transaction(_fun21232, '' + this.prefix + ' deleteGeneration');
|
||||
}}, {key: 'transaction', value: function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
return this.table.transaction(_fun21234, a1);
|
||||
}}, {key: 'upgradeTransaction', value: value_21235}, {key: 'getManySyncUnsafe', value: function(a0, a1) {
|
||||
return this.table.getManySyncUnsafe([a0], a1);
|
||||
}}, {key: 'getMapEntriesSyncUnsafe', value: function() {
|
||||
return this.table.getMapEntriesSyncUnsafe();
|
||||
}}, {key: 'deleteSyncUnsafe', value: function(a0) {
|
||||
return this.table.deleteSyncUnsafe([a0]);
|
||||
}}], [{key: 'cell', value: function(a0, a1, a2) {
|
||||
return {key: [a0, a1.id], data: a1, generation: a2};
|
||||
}}]);
|
||||
}
|
||||
|
||||
function _fun21240() { // fn#21240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:2206, offset: 0x00eec3a0, size: 223 bytes, params: 1, frame: 16
|
||||
return env0_3(GuildEntityDaoTransaction, [{key: 'put', value: function(a0, a1) {
|
||||
var value = a2;
|
||||
return this.putWithGeneration(a0, a1, null,
|
||||
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
|
||||
}}, {key: 'putWithGeneration', value: value_21243}, {key: 'putAll', value: function(a0, a1) {
|
||||
var value = a2;
|
||||
var env0_0 = a0;
|
||||
return this.transaction.putAll(a1.map(_fun21245),
|
||||
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
|
||||
}}, {key: 'replaceAll', value: function(a0, a1) {
|
||||
this.delete(a0);
|
||||
this.putAll(a0, a1);
|
||||
}}, {key: 'delete', value: function(a0, a1) {
|
||||
var value = arguments.length;
|
||||
if (value === 0) {
|
||||
return this.transaction.delete([]);
|
||||
}
|
||||
if (value === 1) {
|
||||
return this.transaction.delete([a0]);
|
||||
}
|
||||
return this.transaction.delete([a0, a1]);
|
||||
}}, {key: 'deleteAllExcept', value: function(a0) {
|
||||
this.transaction.deleteAllExcept([], a0);
|
||||
}}, {key: 'deleteGeneration', value: function(a0, a1) {
|
||||
return this.transaction.deleteGeneration([], a0, a1);
|
||||
}}], [{key: 'fromDatabaseTransaction', value: value_21250}]);
|
||||
}
|
||||
|
||||
function value_21223(a0, a1) { // fn#21223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1060, offset: 0x00eec0ca, size: 121 bytes, params: 3, frame: 16
|
||||
var environment;
|
||||
var Replace;
|
||||
let value = a2;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
if (value === undefined) {
|
||||
value = environment.__proto__;
|
||||
Replace = (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
|
||||
}
|
||||
return this.transaction(_fun21224, '' + this.prefix + ' put');
|
||||
}
|
||||
|
||||
function value_21225(a0, a1) { // fn#21225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1194, offset: 0x00eec164, size: 121 bytes, params: 3, frame: 16
|
||||
var environment;
|
||||
var Replace;
|
||||
let value = a2;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
if (value === undefined) {
|
||||
value = environment.__proto__;
|
||||
Replace = (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
|
||||
}
|
||||
return this.transaction(_fun21226, '' + this.prefix + ' putAll');
|
||||
}
|
||||
|
||||
function value_21227(a0, a1) { // fn#21227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1338, offset: 0x00eec1fe, size: 73 bytes, params: 3, frame: 16
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return this.transaction(_fun21228, '' + this.prefix + ' replaceAll');
|
||||
}
|
||||
|
||||
function value_21229(a0, a1) { // fn#21229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1450, offset: 0x00eec263, size: 73 bytes, params: 3, frame: 16
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return this.transaction(_fun21230, '' + this.prefix + ' delete');
|
||||
}
|
||||
|
||||
function value_21231(a0, a1) { // fn#21231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1564, offset: 0x00eec2c7, size: 73 bytes, params: 3, frame: 16
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return this.transaction(_fun21232, '' + this.prefix + ' deleteGeneration');
|
||||
}
|
||||
|
||||
function value_21233(a0, a1) { // fn#21233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1693, offset: 0x00eec32c, size: 40 bytes, params: 3, frame: 13
|
||||
const env0_0 = a0;
|
||||
return this.table.transaction(_fun21234, a1);
|
||||
}
|
||||
|
||||
function value_21243(a0, a1, a2) { // fn#21243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:2484, offset: 0x00eec4c8, size: 96 bytes, params: 4, frame: 18
|
||||
let value = a3;
|
||||
const r3 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
|
||||
const transaction = this.transaction;
|
||||
const put = transaction.put;
|
||||
value = environment.__proto__;
|
||||
const binding = env1_4;
|
||||
return Reflect.apply(put, transaction, [binding.cell(a0, a1, a2), r3]);
|
||||
}
|
||||
|
||||
function value_21244(a0, a1) { // fn#21244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:2601, offset: 0x00eec528, size: 94 bytes, params: 3, frame: 16
|
||||
const value = a2;
|
||||
const env0_0 = a0;
|
||||
const r3 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
|
||||
const transaction = this.transaction;
|
||||
return transaction.putAll(a1.map(_fun21245), r3);
|
||||
}
|
||||
|
||||
function _fun21224(a0) { // fn#21224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1133, offset: 0x00eec143, size: 33 bytes, params: 2, frame: 15
|
||||
return a0.put(env0_0, require, env0_2);
|
||||
}
|
||||
|
||||
function _fun21226(a0) { // fn#21226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1267, offset: 0x00eec1dd, size: 33 bytes, params: 2, frame: 15
|
||||
return a0.putAll(env0_0, require, env0_2);
|
||||
}
|
||||
|
||||
function _fun21228(a0) { // fn#21228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1377, offset: 0x00eec247, size: 28 bytes, params: 2, frame: 13
|
||||
return a0.replaceAll(env0_0, require);
|
||||
}
|
||||
|
||||
function _fun21230(a0) { // fn#21230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1489, offset: 0x00eec2ac, size: 27 bytes, params: 2, frame: 13
|
||||
return a0.delete(env0_0, require);
|
||||
}
|
||||
|
||||
function _fun21232(a0) { // fn#21232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1603, offset: 0x00eec310, size: 28 bytes, params: 2, frame: 13
|
||||
return a0.deleteGeneration(env0_0, require);
|
||||
}
|
||||
|
||||
function _fun21245(a0) { // fn#21245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:2687, offset: 0x00eec586, size: 34 bytes, params: 2, frame: 15
|
||||
return env2_4.cell(env0_0, a0, null);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/* Metro module 1924; source: ../discord_common/js/packages/kv-storage/js/api/Kv.tsx; dependencies: [6, 7, 1920, 2] */
|
||||
function _fun21251(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2051:6, offset: 0x00eec656, size: 132 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun21252();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/Kv.tsx');
|
||||
exports.Kv = value;
|
||||
}
|
||||
|
||||
function _fun21252() { // fn#21252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2051:118, offset: 0x00eec6da, size: 81 bytes, params: 1, frame: 16
|
||||
return env0_3(Kv, null, [{key: 'databases', value: function() {
|
||||
var Host = require(dependencyMap[2]).Host;
|
||||
return Host.list();
|
||||
}}, {key: 'optimize', value: function(a0) {
|
||||
var Host = require(dependencyMap[2]).Host;
|
||||
return Host.optimize(a0);
|
||||
}}]);
|
||||
}
|
||||
|
||||
+143
@@ -0,0 +1,143 @@
|
||||
/* Metro module 1925; source: ../discord_common/js/packages/kv-storage/js/api/MessageDao.tsx; dependencies: [6, 7, 1915, 1917, 2] */
|
||||
function _fun21256(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:6, offset: 0x00eec785, size: 171 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const makeStorageId = function(a0) {
|
||||
return a0.padStart(19, '0');
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun21259();
|
||||
const value2 = _fun21277();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/MessageDao.tsx');
|
||||
exports.MessageDao = value;
|
||||
exports.MessageDaoTransaction = value2;
|
||||
}
|
||||
|
||||
function makeCell(a0, a1, a2) { // fn#21257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:2917, offset: 0x00eec830, size: 61 bytes, params: 4, frame: 13
|
||||
const storageId = makeStorageId(a2.id);
|
||||
return {key: [a0, a1, storageId], data: a2, generation: storageId};
|
||||
}
|
||||
|
||||
function _fun21259() { // fn#21259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:118, offset: 0x00eec887, size: 356 bytes, params: 1, frame: 15
|
||||
return env0_3(MessageDao, [{key: 'prefix', get: function() {
|
||||
return this.table.prefix;
|
||||
}}, {key: 'withoutLogging', value: value_21262}, {key: 'get', value: function(a0, a1, a2) {
|
||||
var table = this.table;
|
||||
var items = [a0, a1];
|
||||
items[2] = makeStorageId(a2);
|
||||
return table.get(items);
|
||||
}}, {key: 'getLatest', value: function(a0, a1, a2) {
|
||||
var table = this.table;
|
||||
var object = {};
|
||||
object.ordering = require(dependencyMap[3]).Ordering.Descending;
|
||||
object.limit = a2;
|
||||
return table.getMany([a0, a1], object);
|
||||
}}, {key: 'getRange', value: function(a0, a1, a2, a3, a4) {
|
||||
var table = this.table;
|
||||
var items = [a0, a1];
|
||||
var makeStorageIdBinding = makeStorageId;
|
||||
items[2] = makeStorageIdBinding(a2);
|
||||
return table.getRange(items, [a0, a1, makeStorageIdBinding(a3)], a4);
|
||||
}}, {key: 'getMostRecents', value: function(a0) {
|
||||
return this.table.messages.getLatest(a0);
|
||||
}}, {key: 'put', value: value_21267}, {key: 'putAll', value: function(a0, a1, a2) {
|
||||
var value = a3;
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return this.table.putAll(a2.map(_fun21269),
|
||||
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
|
||||
}}, {key: 'deleteAll', value: function() {
|
||||
return this.table.delete();
|
||||
}}, {key: 'deleteGuild', value: function(a0) {
|
||||
return this.table.delete([a0]);
|
||||
}}, {key: 'deleteChannel', value: function(a0, a1) {
|
||||
return this.table.delete([a0, a1]);
|
||||
}}, {key: 'deleteMessage', value: function(a0, a1, a2) {
|
||||
var table = this.table;
|
||||
var items = [a0, a1];
|
||||
items[2] = makeStorageId(a2);
|
||||
return table.delete(items);
|
||||
}}, {key: 'transaction', value: function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
return this.table.transaction(_fun21275, a1);
|
||||
}}, {key: 'upgradeTransaction', value: value_21276}]);
|
||||
}
|
||||
|
||||
function _fun21277() { // fn#21277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1588, offset: 0x00eecc9a, size: 342 bytes, params: 1, frame: 17
|
||||
return env0_3(MessageDaoTransaction, [{key: 'put', value: value_21279}, {key: 'putAll', value: function(a0, a1,
|
||||
a2) {
|
||||
var value = a3;
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
this.transaction.putAll(a2.map(_fun21281),
|
||||
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
|
||||
}}, {key: 'replaceChannel', value: function(a0, a1, a2) {
|
||||
this.deleteChannel(a0, a1);
|
||||
this.putAll(a0, a1, a2);
|
||||
}}, {key: 'deleteAll', value: function() {
|
||||
this.transaction.delete();
|
||||
}}, {key: 'deleteGuild', value: function(a0) {
|
||||
this.transaction.delete([a0]);
|
||||
}}, {key: 'deleteChannel', value: function(a0, a1) {
|
||||
this.transaction.delete([a0, a1]);
|
||||
}}, {key: 'deleteMessage', value: function(a0, a1, a2) {
|
||||
var transaction = this.transaction;
|
||||
var items = [a0, a1];
|
||||
items[2] = makeStorageId(a2);
|
||||
transaction.delete(items);
|
||||
}}, {key: 'trimOrphans', value: function(a0) {
|
||||
this.transaction.messages.trimOrphans(a0);
|
||||
}}, {key: 'trimChannel', value: function(a0, a1, a2) {
|
||||
this.transaction.messages.trimChannel([a0, a1], a2);
|
||||
}}, {key: 'trimChannelsIn', value: function(a0, a1) {
|
||||
this.transaction.messages.trimChannelsIn(a0, a1);
|
||||
}}, {key: 'trimChannelsNotIn', value: function(a0, a1) {
|
||||
this.transaction.messages.trimChannelsNotIn(a0, a1);
|
||||
}}], [{key: 'fromTableTransaction', value: value_21291}, {key: 'fromDatabaseTransaction', value: value_21292}]);
|
||||
}
|
||||
|
||||
function value_21267(a0, a1, a2) { // fn#21267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:867, offset: 0x00eecafc, size: 90 bytes, params: 4, frame: 18
|
||||
let value = a3;
|
||||
const r3 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
|
||||
const table = this.table;
|
||||
const put = table.put;
|
||||
value = environment.__proto__;
|
||||
return Reflect.apply(put, table, [makeCell(a0, a1, a2), r3]);
|
||||
}
|
||||
|
||||
function value_21268(a0, a1, a2) { // fn#21268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:980, offset: 0x00eecb56, size: 101 bytes, params: 4, frame: 16
|
||||
const value = a3;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return this.table.putAll(a2.map(_fun21269),
|
||||
value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace);
|
||||
}
|
||||
|
||||
function value_21274(a0, a1) { // fn#21274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1422, offset: 0x00eecc72, size: 40 bytes, params: 3, frame: 13
|
||||
const env0_0 = a0;
|
||||
return this.table.transaction(_fun21275, a1);
|
||||
}
|
||||
|
||||
function value_21279(a0, a1, a2) { // fn#21279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1731, offset: 0x00eecdf0, size: 90 bytes, params: 4, frame: 18
|
||||
let value = a3;
|
||||
const r4 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
|
||||
const transaction = this.transaction;
|
||||
const put = transaction.put;
|
||||
value = environment.__proto__;
|
||||
Reflect.apply(put, transaction, [makeCell(a0, a1, a2), r4]);
|
||||
}
|
||||
|
||||
function value_21280(a0, a1, a2) { // fn#21280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1843, offset: 0x00eece4a, size: 101 bytes, params: 4, frame: 16
|
||||
const value = a3;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
this.transaction.putAll(a2.map(_fun21281),
|
||||
value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace);
|
||||
}
|
||||
|
||||
function _fun21269(a0) { // fn#21269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1043, offset: 0x00eecbbb, size: 32 bytes, params: 2, frame: 15
|
||||
return makeCell(env0_0, require, a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,481 @@
|
||||
/* Metro module 1915; source: ../discord_common/js/packages/kv-storage/js/api/Table.tsx; dependencies: [5, 6, 7, 1916, 1917, 2] */
|
||||
function _fun21025(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:6, offset: 0x00ee80db, size: 185 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const prefixCells = function(a0, a1) {
|
||||
var r0;
|
||||
var value = a0;
|
||||
var env0_0 = a1;
|
||||
if (a1.length === 0) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.map(_fun21028);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
let value = _fun21029();
|
||||
const value2 = _fun21055();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/Table.tsx');
|
||||
exports.Table = value;
|
||||
exports.TableTransaction = value2;
|
||||
}
|
||||
|
||||
function prefixCell(a0, a1) { // fn#21026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:127, offset: 0x00ee8194, size: 93 bytes, params: 3, frame: 16
|
||||
var r0;
|
||||
var moduleValue;
|
||||
const value = a0;
|
||||
if (a1.length === 0) {
|
||||
r0 = value;
|
||||
} else {
|
||||
moduleValue = require(1916) /* metro dependency 1916: Key */;
|
||||
r0 = {key: moduleValue.combineKey(a1, value.key), data: value.data, generation: value.generation};
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function prefixCells(a0, a1) { // fn#21027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:244, offset: 0x00ee81f1, size: 43 bytes, params: 3, frame: 13
|
||||
var r0;
|
||||
let value = a0;
|
||||
const env0_0 = a1;
|
||||
if (a1.length === 0) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.map(function(a0) {
|
||||
return prefixCell(a0, require);
|
||||
});
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun21029() { // fn#21029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:326, offset: 0x00ee8237, size: 489 bytes, params: 1, frame: 17
|
||||
const binding = env0_4;
|
||||
const closure = Table;
|
||||
let env0_0 = env0_2(_fun21034);
|
||||
return binding(closure, [{key: 'close', value: function() {
|
||||
this.database.close();
|
||||
}}, {key: 'get', value: value_21035}, {key: 'getMany', value: value_21036}, {key: 'getRange', value: value_21037},
|
||||
{key: 'getKvEntries', value: value_21038}, {key: 'getMapEntries', value: value_21039}, {key: 'getChildIds',
|
||||
value: value_21040}, {key: 'getParentId', value: value_21041}, {key: 'put', value: value_21042}, {key: 'putAll',
|
||||
value: value_21043}, {key: 'replaceAll', value: function(a0) {
|
||||
var env0_0 = a0;
|
||||
return this.transaction(_fun21045, this.defaultDebugTag);
|
||||
}}, {key: 'delete', value: value_21046}, {key: 'deleteRange', value: value_21047}, {key: 'deleteGeneration',
|
||||
value: value_21048}, {key: 'transaction', value: function(a0, a1) {
|
||||
var env0_0 = this;
|
||||
var env0_1 = a0;
|
||||
return this.database.transaction(_fun21050, a1);
|
||||
}}, {key: 'upgradeTransaction', value: value_21051}, {key: 'getManySyncUnsafe', value: value_21052},
|
||||
{key: 'getMapEntriesSyncUnsafe', value: value_21053}, {key: 'deleteSyncUnsafe', value: value_21054}]);
|
||||
}
|
||||
|
||||
function _fun21055() { // fn#21055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4052, offset: 0x00ee8d36, size: 202 bytes, params: 1, frame: 16
|
||||
return env0_4(TableTransaction, [{key: 'put', value: value_21061}, {key: 'putAll', value: value_21062},
|
||||
{key: 'delete', value: value_21063}, {key: 'deleteRange', value: value_21064}, {key: 'deleteAllExcept',
|
||||
value: value_21065}, {key: 'deleteGeneration', value: value_21066}], [{key: 'fromDatabaseTransaction',
|
||||
value: value_21067}]);
|
||||
}
|
||||
|
||||
function Table(a0, a1, a2, a3) { // fn#21030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:347, offset: 0x00ee8420, size: 94 bytes, params: 5, frame: 14
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_3;
|
||||
value = undefined;
|
||||
binding(this, Table);
|
||||
this.messages = {getLatest: getLatest};
|
||||
this.prefix = a0;
|
||||
this.tableId = a1;
|
||||
this.database = a2;
|
||||
this.defaultDebugTag = a3 ? value : null;
|
||||
return value;
|
||||
}
|
||||
|
||||
function* _fun21034(a0) { // fn#21034, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:676, offset: 0x00ee84dd, size: 71 bytes, params: 2, frame: 14
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
const getMany = this.getMany;
|
||||
yield Reflect.apply(getMany, this, [a0, {limit: 1}]);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
const property = value[0];
|
||||
value = null;
|
||||
return value != property ? property : value;
|
||||
}
|
||||
|
||||
function value_21036() { // fn#21036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:829, offset: 0x00ee8524, size: 153 bytes, params: 1, frame: 19
|
||||
let value = a0;
|
||||
const value2 = undefined;
|
||||
const r9 = value !== value2 ? value : [];
|
||||
const database = this.database;
|
||||
const execute = database.execute;
|
||||
const object2 = {type: 'kv.get_many'};
|
||||
object2.table = this.tableId;
|
||||
value = environment.__proto__;
|
||||
value = require(1916) /* metro dependency 1916: Key */;
|
||||
object2.key = value.combineKeyPrefix(this.prefix, r9);
|
||||
object2.ordering = a1 == null ? value2 : a1.ordering;
|
||||
object2.limit = a1 == null ? value2 : a1.limit;
|
||||
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
|
||||
}
|
||||
|
||||
function value_21037(a0, a1, a2) { // fn#21037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:1069, offset: 0x00ee85bd, size: 188 bytes, params: 4, frame: 19
|
||||
let value = environment.__proto__;
|
||||
value = undefined;
|
||||
const keyModule = require(1916) /* metro dependency 1916: Key */;
|
||||
const value2 = keyModule.combineKey(this.prefix, a0);
|
||||
const moduleValue2 = keyModule;
|
||||
return this.database.execute({type: 'kv.get_range', table: this.tableId, range: [value2,
|
||||
moduleValue2.combineKey(this.prefix, a1)], ordering: a2 == null ? value : a2.ordering,
|
||||
limit: a2 == null ? value : a2.limit}, this.defaultDebugTag);
|
||||
}
|
||||
|
||||
function value_21038() { // fn#21038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:1357, offset: 0x00ee8679, size: 110 bytes, params: 1, frame: 18
|
||||
let value = a0;
|
||||
const r7 = value !== undefined ? value : [];
|
||||
const database = this.database;
|
||||
const execute = database.execute;
|
||||
const object2 = {type: 'kv.get_kv_entries'};
|
||||
object2.table = this.tableId;
|
||||
value = environment.__proto__;
|
||||
value = require(1916) /* metro dependency 1916: Key */;
|
||||
object2.key = value.combineKeyPrefix(this.prefix, r7);
|
||||
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
|
||||
}
|
||||
|
||||
function value_21039() { // fn#21039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:1542, offset: 0x00ee86e7, size: 110 bytes, params: 1, frame: 18
|
||||
let value = a0;
|
||||
const r7 = value !== undefined ? value : [];
|
||||
const database = this.database;
|
||||
const execute = database.execute;
|
||||
const object2 = {type: 'kv.get_map_entries'};
|
||||
object2.table = this.tableId;
|
||||
value = environment.__proto__;
|
||||
value = require(1916) /* metro dependency 1916: Key */;
|
||||
object2.key = value.combineKeyPrefix(this.prefix, r7);
|
||||
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
|
||||
}
|
||||
|
||||
function value_21040() { // fn#21040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:1726, offset: 0x00ee8755, size: 110 bytes, params: 1, frame: 18
|
||||
let value = a0;
|
||||
const r7 = value !== undefined ? value : [];
|
||||
const database = this.database;
|
||||
const execute = database.execute;
|
||||
const object2 = {type: 'kv.get_child_ids'};
|
||||
object2.table = this.tableId;
|
||||
value = environment.__proto__;
|
||||
value = require(1916) /* metro dependency 1916: Key */;
|
||||
object2.key = value.combineKeyPrefix(this.prefix, r7);
|
||||
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
|
||||
}
|
||||
|
||||
function value_21041() { // fn#21041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:1908, offset: 0x00ee87c3, size: 110 bytes, params: 1, frame: 18
|
||||
let value = a0;
|
||||
const r7 = value !== undefined ? value : [];
|
||||
const database = this.database;
|
||||
const execute = database.execute;
|
||||
const object2 = {type: 'kv.get_parent_id'};
|
||||
object2.table = this.tableId;
|
||||
value = environment.__proto__;
|
||||
value = require(1916) /* metro dependency 1916: Key */;
|
||||
object2.key = value.combineKey(this.prefix, r7);
|
||||
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
|
||||
}
|
||||
|
||||
function value_21042(a0) { // fn#21042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2076, offset: 0x00ee8831, size: 164 bytes, params: 2, frame: 19
|
||||
const ConflictOptions = (require(1917) /* metro dependency 1917: types */).ConflictOptions;
|
||||
let value = a1;
|
||||
const r5 = value !== undefined ? value : ConflictOptions.Replace;
|
||||
const database = this.database;
|
||||
const execute = database.execute;
|
||||
const object2 = {type: 'kv.put_one'};
|
||||
object2.table = this.tableId;
|
||||
value = environment.__proto__;
|
||||
object2.cell = prefixCell(a0, this.prefix);
|
||||
const Replace = ConflictOptions.Replace;
|
||||
object2.overwrite = r5 === Replace;
|
||||
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
|
||||
}
|
||||
|
||||
function value_21043(a0) { // fn#21043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2311, offset: 0x00ee88d5, size: 164 bytes, params: 2, frame: 19
|
||||
const ConflictOptions = (require(1917) /* metro dependency 1917: types */).ConflictOptions;
|
||||
let value = a1;
|
||||
const r5 = value !== undefined ? value : ConflictOptions.Replace;
|
||||
const database = this.database;
|
||||
const execute = database.execute;
|
||||
const object2 = {type: 'kv.put_many'};
|
||||
object2.table = this.tableId;
|
||||
value = environment.__proto__;
|
||||
object2.cells = prefixCells(a0, this.prefix);
|
||||
const Replace = ConflictOptions.Replace;
|
||||
object2.overwrite = r5 === Replace;
|
||||
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
|
||||
}
|
||||
|
||||
function value_21044(a0) { // fn#21044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2553, offset: 0x00ee8979, size: 37 bytes, params: 2, frame: 13
|
||||
const env0_0 = a0;
|
||||
return this.transaction(_fun21045, this.defaultDebugTag);
|
||||
}
|
||||
|
||||
function value_21046() { // fn#21046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2663, offset: 0x00ee89c0, size: 110 bytes, params: 1, frame: 18
|
||||
let value = a0;
|
||||
const r7 = value !== undefined ? value : [];
|
||||
const database = this.database;
|
||||
const execute = database.execute;
|
||||
const object2 = {type: 'kv.delete_many'};
|
||||
object2.table = this.tableId;
|
||||
value = environment.__proto__;
|
||||
value = require(1916) /* metro dependency 1916: Key */;
|
||||
object2.key = value.combineKeyPrefix(this.prefix, r7);
|
||||
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
|
||||
}
|
||||
|
||||
function value_21047(a0, a1) { // fn#21047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2843, offset: 0x00ee8a2e, size: 145 bytes, params: 3, frame: 18
|
||||
let value = environment.__proto__;
|
||||
value = Reflect.apply((require(1916) /* metro dependency 1916: Key */).combineKey, value, [this.prefix, a0]);
|
||||
const keyModule = require(1916) /* metro dependency 1916: Key */;
|
||||
return this.database.execute({type: 'kv.delete_range', table: this.tableId, range: [value,
|
||||
keyModule.combineKey(this.prefix, a1)]}, this.defaultDebugTag);
|
||||
}
|
||||
|
||||
function value_21048() { // fn#21048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3072, offset: 0x00ee8abf, size: 126 bytes, params: 1, frame: 18
|
||||
let value = a0;
|
||||
const r7 = value !== undefined ? value : [];
|
||||
const database = this.database;
|
||||
const execute = database.execute;
|
||||
const object2 = {type: 'kv.delete_generation'};
|
||||
object2.table = this.tableId;
|
||||
value = environment.__proto__;
|
||||
value = require(1916) /* metro dependency 1916: Key */;
|
||||
object2.key = value.combineKeyPrefix(this.prefix, r7);
|
||||
object2.generation = a2;
|
||||
object2.comparer = a1;
|
||||
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
|
||||
}
|
||||
|
||||
function value_21049(a0, a1) { // fn#21049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3286, offset: 0x00ee8b3d, size: 44 bytes, params: 3, frame: 13
|
||||
const env0_1 = a0;
|
||||
return this.database.transaction(_fun21050, a1);
|
||||
}
|
||||
|
||||
function value_21051(a0) { // fn#21051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3412, offset: 0x00ee8ba7, size: 47 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_5;
|
||||
const prefix = this.prefix;
|
||||
const tableId = this.tableId;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
const binding2 = new binding(prefix, tableId, a0);
|
||||
return binding2 instanceof Object ? binding2 : value;
|
||||
}
|
||||
|
||||
function value_21052() { // fn#21052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3498, offset: 0x00ee8bd6, size: 146 bytes, params: 1, frame: 19
|
||||
let value = a0;
|
||||
const value2 = undefined;
|
||||
const r8 = value !== value2 ? value : [];
|
||||
const database = this.database;
|
||||
const executeSync = database.executeSync;
|
||||
const object2 = {type: 'kv.get_many'};
|
||||
object2.table = this.tableId;
|
||||
value = environment.__proto__;
|
||||
value = require(1916) /* metro dependency 1916: Key */;
|
||||
object2.key = value.combineKeyPrefix(this.prefix, r8);
|
||||
object2.ordering = a1 == null ? value2 : a1.ordering;
|
||||
object2.limit = a1 == null ? value2 : a1.limit;
|
||||
return Reflect.apply(executeSync, database, [object2]);
|
||||
}
|
||||
|
||||
function value_21053() { // fn#21053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3736, offset: 0x00ee8c68, size: 103 bytes, params: 1, frame: 18
|
||||
let value = a0;
|
||||
const r6 = value !== undefined ? value : [];
|
||||
const database = this.database;
|
||||
const executeSync = database.executeSync;
|
||||
const object2 = {type: 'kv.get_map_entries'};
|
||||
object2.table = this.tableId;
|
||||
value = environment.__proto__;
|
||||
value = require(1916) /* metro dependency 1916: Key */;
|
||||
object2.key = value.combineKeyPrefix(this.prefix, r6);
|
||||
return Reflect.apply(executeSync, database, [object2]);
|
||||
}
|
||||
|
||||
function value_21054() { // fn#21054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3908, offset: 0x00ee8ccf, size: 103 bytes, params: 1, frame: 18
|
||||
let value = a0;
|
||||
const r7 = value !== undefined ? value : [];
|
||||
const database = this.database;
|
||||
const executeSync = database.executeSync;
|
||||
const object2 = {type: 'kv.delete_many'};
|
||||
object2.table = this.tableId;
|
||||
value = environment.__proto__;
|
||||
value = require(1916) /* metro dependency 1916: Key */;
|
||||
object2.key = value.combineKeyPrefix(this.prefix, r7);
|
||||
Reflect.apply(executeSync, database, [object2]);
|
||||
}
|
||||
|
||||
function TableTransaction(a0, a1, a2) { // fn#21056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4063, offset: 0x00ee8e00, size: 108 bytes, params: 4, frame: 14
|
||||
env1_3(this, TableTransaction);
|
||||
this.messages = {trimOrphans: trimOrphans, trimChannel: trimChannel, trimChannelsIn: trimChannelsIn,
|
||||
trimChannelsNotIn: trimChannelsNotIn};
|
||||
this.prefix = a0;
|
||||
this.tableId = a1;
|
||||
this.transaction = a2;
|
||||
}
|
||||
|
||||
function value_21061(a0) { // fn#21061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:5187, offset: 0x00ee9099, size: 156 bytes, params: 2, frame: 18
|
||||
const ConflictOptions = (require(1917) /* metro dependency 1917: types */).ConflictOptions;
|
||||
let value = a1;
|
||||
const r5 = value !== undefined ? value : ConflictOptions.Replace;
|
||||
const transaction = this.transaction;
|
||||
const add = transaction.add;
|
||||
const object2 = {type: 'kv.put_one'};
|
||||
object2.table = this.tableId;
|
||||
value = environment.__proto__;
|
||||
object2.cell = prefixCell(a0, this.prefix);
|
||||
const Replace = ConflictOptions.Replace;
|
||||
object2.overwrite = r5 === Replace;
|
||||
Reflect.apply(add, transaction, [object2]);
|
||||
}
|
||||
|
||||
function value_21062(a0) { // fn#21062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:5393, offset: 0x00ee9135, size: 156 bytes, params: 2, frame: 18
|
||||
const ConflictOptions = (require(1917) /* metro dependency 1917: types */).ConflictOptions;
|
||||
let value = a1;
|
||||
const r5 = value !== undefined ? value : ConflictOptions.Replace;
|
||||
const transaction = this.transaction;
|
||||
const add = transaction.add;
|
||||
const object2 = {type: 'kv.put_many'};
|
||||
object2.table = this.tableId;
|
||||
value = environment.__proto__;
|
||||
object2.cells = prefixCells(a0, this.prefix);
|
||||
const Replace = ConflictOptions.Replace;
|
||||
object2.overwrite = r5 === Replace;
|
||||
Reflect.apply(add, transaction, [object2]);
|
||||
}
|
||||
|
||||
function value_21063() { // fn#21063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:5602, offset: 0x00ee91d1, size: 102 bytes, params: 1, frame: 18
|
||||
let value = a0;
|
||||
const r7 = value !== undefined ? value : [];
|
||||
const transaction = this.transaction;
|
||||
const add = transaction.add;
|
||||
const object2 = {type: 'kv.delete_many'};
|
||||
object2.table = this.tableId;
|
||||
value = environment.__proto__;
|
||||
value = require(1916) /* metro dependency 1916: Key */;
|
||||
object2.key = value.combineKeyPrefix(this.prefix, r7);
|
||||
Reflect.apply(add, transaction, [object2]);
|
||||
}
|
||||
|
||||
function value_21064(a0, a1) { // fn#21064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:5753, offset: 0x00ee9237, size: 137 bytes, params: 3, frame: 18
|
||||
let value = environment.__proto__;
|
||||
value = Reflect.apply((require(1916) /* metro dependency 1916: Key */).combineKey, value, [this.prefix, a0]);
|
||||
const keyModule = require(1916) /* metro dependency 1916: Key */;
|
||||
this.transaction.add({type: 'kv.delete_range', table: this.tableId, range: [value, keyModule.combineKey(this.prefix,
|
||||
a1)]});
|
||||
}
|
||||
|
||||
function value_21065() { // fn#21065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:5952, offset: 0x00ee92c0, size: 112 bytes, params: 1, frame: 18
|
||||
let value = a0;
|
||||
const r7 = value !== undefined ? value : [];
|
||||
const transaction = this.transaction;
|
||||
const add = transaction.add;
|
||||
const object2 = {type: 'kv.delete_all_except'};
|
||||
object2.table = this.tableId;
|
||||
value = environment.__proto__;
|
||||
value = require(1916) /* metro dependency 1916: Key */;
|
||||
object2.key = value.combineKeyPrefix(this.prefix, r7);
|
||||
object2.retain = a1;
|
||||
Reflect.apply(add, transaction, [object2]);
|
||||
}
|
||||
|
||||
function value_21066() { // fn#21066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:6125, offset: 0x00ee9330, size: 118 bytes, params: 1, frame: 18
|
||||
let value = a0;
|
||||
const r7 = value !== undefined ? value : [];
|
||||
const transaction = this.transaction;
|
||||
const add = transaction.add;
|
||||
const object2 = {type: 'kv.delete_generation'};
|
||||
object2.table = this.tableId;
|
||||
value = environment.__proto__;
|
||||
value = require(1916) /* metro dependency 1916: Key */;
|
||||
object2.key = value.combineKeyPrefix(this.prefix, r7);
|
||||
object2.generation = a2;
|
||||
object2.comparer = a1;
|
||||
Reflect.apply(add, transaction, [object2]);
|
||||
}
|
||||
|
||||
function value_21067(a0, a1, a2) { // fn#21067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:6324, offset: 0x00ee93a6, size: 38 bytes, params: 4, frame: 15
|
||||
const value = Object.create(TableTransaction.prototype, {constructor: {value: TableTransaction}});
|
||||
const tableTransaction = new TableTransaction(a0, a1, a2);
|
||||
return tableTransaction instanceof Object ? tableTransaction : value;
|
||||
}
|
||||
|
||||
function getLatest(a0) { // fn#21031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:410, owner: Table.getLatest, offset: 0x00ee847e, size: 63 bytes, params: 2, frame: 14
|
||||
const binding = env0_0;
|
||||
return binding.database.execute({type: 'messages.get_latest', table: binding.tableId, guildId: a0},
|
||||
binding.defaultDebugTag);
|
||||
}
|
||||
|
||||
function _fun21045(a0) { // fn#21045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2590, offset: 0x00ee899e, size: 34 bytes, params: 2, frame: 11
|
||||
a0.delete();
|
||||
a0.putAll(env0_0);
|
||||
}
|
||||
|
||||
function _fun21050(a0) { // fn#21050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3334, offset: 0x00ee8b69, size: 62 bytes, params: 2, frame: 16
|
||||
const binding = env0_1;
|
||||
const binding2 = env2_5;
|
||||
const {prefix, tableId} = env0_0;
|
||||
return binding(new binding2(prefix, tableId, a0));
|
||||
}
|
||||
|
||||
function trimOrphans(a0) { // fn#21057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4148, owner: TableTransaction.trimOrphans, offset: 0x00ee8e6c, size: 146 bytes, params: 2, frame: 14
|
||||
if (env0_0.prefix.length !== 1) {
|
||||
throw new global.Error('trimOrphans: only one prefix component is supported at this time');
|
||||
}
|
||||
if (a0.length !== 1) {
|
||||
throw new global.Error('trimOrphans: only one prefix component is supported at this time');
|
||||
}
|
||||
const binding = env0_0;
|
||||
binding.transaction.add({type: 'messages.trim_orphans', table: binding.tableId, channelKey: a0[0],
|
||||
messageKey: binding.prefix[0]});
|
||||
}
|
||||
|
||||
function trimChannel(a0, a1) { // fn#21058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4403, owner: TableTransaction.trimChannel, offset: 0x00ee8efe, size: 105 bytes, params: 3, frame: 17
|
||||
const binding = env0_0;
|
||||
const transaction = binding.transaction;
|
||||
const add = transaction.add;
|
||||
const object2 = {type: 'messages.trim_channel'};
|
||||
object2.table = binding.tableId;
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(1916) /* metro dependency 1916: Key */;
|
||||
object2.key = value.combineKey(binding.prefix, a0);
|
||||
object2.limit = a1;
|
||||
Reflect.apply(add, transaction, [object2]);
|
||||
}
|
||||
|
||||
function trimChannelsIn(a0, a1) { // fn#21059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4545, owner: TableTransaction.trimChannelsIn, offset: 0x00ee8f67, size: 153 bytes, params: 3, frame: 14
|
||||
if (env0_0.prefix.length !== 1) {
|
||||
throw new global.Error('trimChannelsIn: only one prefix component is supported at this time');
|
||||
}
|
||||
if (a0.length !== 1) {
|
||||
throw new global.Error('trimChannelsIn: only one prefix component is supported at this time');
|
||||
}
|
||||
const binding = env0_0;
|
||||
binding.transaction.add({type: 'messages.trim_channels_in', table: binding.tableId, channelKey: a0[0],
|
||||
messageKey: binding.prefix[0], limit: a1});
|
||||
}
|
||||
|
||||
function trimChannelsNotIn(a0, a1) { // fn#21060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4825, owner: TableTransaction.trimChannelsNotIn, offset: 0x00ee9000, size: 153 bytes, params: 3, frame: 14
|
||||
if (env0_0.prefix.length !== 1) {
|
||||
throw new global.Error('trimChannelsNotIn: only one prefix component is supported at this time');
|
||||
}
|
||||
if (a0.length !== 1) {
|
||||
throw new global.Error('trimChannelsNotIn: only one prefix component is supported at this time');
|
||||
}
|
||||
const binding = env0_0;
|
||||
binding.transaction.add({type: 'messages.trim_channels_not_in', table: binding.tableId, channelKey: a0[0],
|
||||
messageKey: binding.prefix[0], limit: a1});
|
||||
}
|
||||
|
||||
Vendored
+37
@@ -0,0 +1,37 @@
|
||||
/* Metro module 1913; source: ../discord_common/js/packages/kv-storage/js/implementation/Classic.native.tsx; dependencies: [27, 2] */
|
||||
function _fun21000(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2040:6, offset: 0x00ee78fc, size: 331 bytes, params: 8, frame: 21
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const NativeModules = (require(27) /* metro dependency 27 */).NativeModules;
|
||||
let __KvStorage = global.__KvStorage;
|
||||
if (__KvStorage != null) {
|
||||
__KvStorage = global.__KvStorage;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/implementation/Classic.native.tsx');
|
||||
exports.KV_RAW = __KvStorage;
|
||||
return undefined;
|
||||
}
|
||||
let KvStorage = NativeModules.KvStorage;
|
||||
if (KvStorage == null) {
|
||||
throw new global.Error("couldn't find the native kv_storage module.");
|
||||
}
|
||||
KvStorage = NativeModules.KvStorage;
|
||||
const activate = KvStorage.activate;
|
||||
const Function = global.Function;
|
||||
if (activate instanceof Function) {
|
||||
KvStorage = NativeModules.KvStorage;
|
||||
if (KvStorage.activate()) {
|
||||
__KvStorage = global.__KvStorage;
|
||||
if (__KvStorage == null) {
|
||||
throw new global.Error("couldn't start the storage subsystem: subsystem missing after activation.");
|
||||
}
|
||||
__KvStorage = global.__KvStorage;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/implementation/Classic.native.tsx');
|
||||
exports.KV_RAW = __KvStorage;
|
||||
return undefined;
|
||||
}
|
||||
throw new global.Error("couldn't start the storage subsystem: activation failed.");
|
||||
}
|
||||
const Error = global.Error;
|
||||
throw new Error("couldn't start the storage subsystem: native module exists, but jsi might not be available?");
|
||||
}
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
/* Metro module 1912; source: ../discord_common/js/packages/kv-storage/js/implementation/index.tsx; dependencies: [2, 1913] */
|
||||
function _fun20999(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#20999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2039:6, offset: 0x00ee7881, size: 123 bytes, params: 8, frame: 22
|
||||
var propertyName;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/implementation/index.tsx');
|
||||
for (propertyName in require(1913) /* metro dependency 1913: ClassicNative */) {
|
||||
exports[propertyName] = (require(1913) /* metro dependency 1913: ClassicNative */)[propertyName];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Metro module 1911; source: ../discord_common/js/packages/kv-storage/js/index.tsx; dependencies: [1912, 2, 1914, 1918, 1921, 1922, 1923, 1924, 1925, 1915, 1917] */
|
||||
function _fun20998(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#20998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2038:6, offset: 0x00ee7662, size: 543 bytes, params: 8, frame: 22
|
||||
var propertyName;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
require(1912) /* metro dependency 1912: implementation */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/index.tsx');
|
||||
for (propertyName in require(1914) /* metro dependency 1914: Dao */) {
|
||||
exports[propertyName] = (require(1914) /* metro dependency 1914: Dao */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(1918) /* metro dependency 1918: Database */) {
|
||||
exports[propertyName] = (require(1918) /* metro dependency 1918: Database */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(1921) /* metro dependency 1921: EntityDao */) {
|
||||
exports[propertyName] = (require(1921) /* metro dependency 1921: EntityDao */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(1922) /* metro dependency 1922: GuildDao */) {
|
||||
exports[propertyName] = (require(1922) /* metro dependency 1922: GuildDao */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(1923) /* metro dependency 1923: GuildEntityDao */) {
|
||||
exports[propertyName] = (require(1923) /* metro dependency 1923: GuildEntityDao */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(1924) /* metro dependency 1924: Kv */) {
|
||||
exports[propertyName] = (require(1924) /* metro dependency 1924: Kv */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(1925) /* metro dependency 1925: MessageDao */) {
|
||||
exports[propertyName] = (require(1925) /* metro dependency 1925: MessageDao */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(1915) /* metro dependency 1915: Table */) {
|
||||
exports[propertyName] = (require(1915) /* metro dependency 1915: Table */)[propertyName];
|
||||
}
|
||||
for (propertyName in require(1917) /* metro dependency 1917: types */) {
|
||||
exports[propertyName] = (require(1917) /* metro dependency 1917: types */)[propertyName];
|
||||
}
|
||||
}
|
||||
|
||||
Loaded 100 of 16065 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user