/* Metro module 6599; source: modules/guild_onboarding/GuildOnboardingStore.tsx; dependencies: [6, 7, 15, 17, 18, 661, 566, 694, 2] */ import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */ import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */ import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */ import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */ import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */ function _fun52002(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6777:6, offset: 0x012ea17e, size: 448 bytes, params: 8, frame: 21 const isOnboarding2 = isOnboarding; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ConstantsModule; const env0_5 = value.ME; const env0_6 = value.FAVORITES; let env0_8 = {}; let env0_9 = {}; const Store = (Flux).Store; _fun52007(Store).displayName = 'GuildOnboardingStore'; value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {LOGOUT: function() { env0_8 = {}; env0_9 = {}; }, GUILD_DELETE: GUILD_DELETE_52014, GUILD_ONBOARDING_START: GUILD_ONBOARDING_START, GUILD_ONBOARDING_PROMPTS_FETCH_SUCCESS: GUILD_ONBOARDING_PROMPTS_FETCH_SUCCESS, GUILD_ONBOARDING_PROMPTS_FETCH_FAILURE: GUILD_ONBOARDING_PROMPTS_FETCH_FAILURE, GUILD_ONBOARDING_COMPLETE: GUILD_ONBOARDING_COMPLETE, GUILD_ONBOARDING_SET_STEP: GUILD_ONBOARDING_SET_STEP, CONNECTION_OPEN: function() { env0_9 = {}; }}); (FileImportTrackerModule).fileFinishedImporting('modules/guild_onboarding/GuildOnboardingStore.tsx'); exports.default = value; exports.GuildOnboardingStatus = {STARTED: 'started', READY: 'ready', COMPLETED: 'completed', NOT_APPLICABLE: 'not_applicable'}; exports.isOnboarding = isOnboarding2; function _isNativeReflectConstruct_52003() { // fn#52003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6777:179, offset: 0x012ea33e, 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_52003_isNativeReflectConstruct = function() { return !!result; })(); } function isOnboarding(a0) { // fn#52006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6777:498, offset: 0x012ea39c, size: 59 bytes, params: 2, frame: 13 return a0 != null && [env0_7.STARTED, env0_7.READY].includes(a0); } function _fun52007(a0) { // fn#52007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6777:591, offset: 0x012ea3d7, size: 143 bytes, params: 2, frame: 16 const GuildOnboardingStore2 = GuildOnboardingStore; Inherits(GuildOnboardingStore2, a0); return CreateClass(GuildOnboardingStore2, [{key: 'shouldShowOnboarding', value: value_52009}, {key: 'getOnboardingStatus', value: value_52010}, {key: 'resetOnboardingStatus', value: value_52011}, {key: 'getCurrentOnboardingStep', value: value_52012}]); function GuildOnboardingStore() { // fn#52008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6777:603, offset: 0x0113ed59, size: 113 bytes, params: 1, frame: 20 const value = environment.__proto__; env1_0(this, GuildOnboardingStore); const value3 = env1_3(GuildOnboardingStore); return env1_2(this, _isNativeReflectConstruct_52003() ? global.Reflect.construct(value3, arguments, env1_3(this).constructor) : value3.apply(this, arguments)); } function value_52009(a0) { // fn#52009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6777:931, offset: 0x012ea466, size: 55 bytes, params: 2, frame: 12 const value = environment.__proto__; return a0 !== ME && a0 !== FAVORITES && !!isOnboarding(env1_8[a0]); } function value_52010(a0) { // fn#52010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6777:1020, offset: 0x00ff623a, size: 16 bytes, params: 2, frame: 2 return env1_8[a0]; } function value_52011(a0) { // fn#52011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6777:1081, offset: 0x012ea49d, size: 40 bytes, params: 2, frame: 4 const binding = env1_8; const STARTED = env1_7.STARTED; binding[a0] = STARTED; env1_9[a0] = 'cover'; } function value_52012(a0) { // fn#52012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6777:1161, offset: 0x012ea4c5, size: 32 bytes, params: 2, frame: 3 const value = environment.__proto__; return env1_9[a0] ?? 'cover'; } } function GUILD_DELETE_52014({guild}) { // fn#52014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6777:1343, offset: 0x012ea4f8, size: 41 bytes, params: 2, frame: 4 delete env0_8[guild.id]; delete env0_9[guild.id]; } function GUILD_ONBOARDING_START({guildId}) { // fn#52015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6777:1430, offset: 0x012ea521, size: 33 bytes, params: 2, frame: 3 const binding = env0_8; const STARTED = env0_7.STARTED; binding[guildId] = STARTED; } function GUILD_ONBOARDING_PROMPTS_FETCH_SUCCESS({guildId, enabled}) { // fn#52016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6777:1529, offset: 0x012ea542, size: 75 bytes, params: 2, frame: 5 const property = env0_8[guildId]; const STARTED = env0_7.STARTED; if (property !== STARTED) { return false; } const binding = env0_8; const binding2 = env0_7; binding[guildId] = enabled ? binding2.READY : binding2.NOT_APPLICABLE; } function GUILD_ONBOARDING_PROMPTS_FETCH_FAILURE({guildId}) { // fn#52017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6777:1688, offset: 0x012ea58d, size: 33 bytes, params: 2, frame: 3 const binding = env0_8; const NOT_APPLICABLE = env0_7.NOT_APPLICABLE; binding[guildId] = NOT_APPLICABLE; } function GUILD_ONBOARDING_COMPLETE({guildId}) { // fn#52018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6777:1785, offset: 0x012ea5ae, size: 33 bytes, params: 2, frame: 3 const binding = env0_8; const COMPLETED = env0_7.COMPLETED; binding[guildId] = COMPLETED; } function GUILD_ONBOARDING_SET_STEP({guildId, step}) { // fn#52019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6777:1876, offset: 0x012ea5cf, size: 29 bytes, params: 2, frame: 3 env0_9[guildId] = step; } } global.__d(_fun52002, 6599, [6, 7, 15, 17, 18, 661, 566, 694, 2]) /* metro module 6599, dependencies: [6, 7, 15, 17, 18, 661, 566, 694, 2] */;