// Module ID: 5055 // Function ID: 43756 // Name: _isNativeReflectConstruct // Dependencies: [6, 7, 15, 17, 18, 653, 1841, 566, 686, 2] // Module 5055 (_isNativeReflectConstruct) import isFavoritesGuildId from "isFavoritesGuildId"; import initialize from "initialize"; import _possibleConstructorReturn from "_possibleConstructorReturn"; import _getPrototypeOf from "_getPrototypeOf"; import _inherits from "_inherits"; import { ME } from "ME"; const require = arg1; function _isNativeReflectConstruct() { let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => { })); function _isNativeReflectConstruct() { return closure_0; } const result = _isNativeReflectConstruct(); } function isOnboarding(arg0) { let hasItem = null != arg0; if (hasItem) { const items = [obj.STARTED, obj.READY]; hasItem = items.includes(arg0); } return hasItem; } let obj = { STARTED: "started", READY: "ready", COMPLETED: "completed", NOT_APPLICABLE: "not_applicable" }; let closure_9 = {}; let closure_10 = {}; let tmp2 = ((Store) => { class GuildOnboardingStore { constructor() { self = this; tmp = outer1_2(this, GuildOnboardingStore); obj = outer1_5(GuildOnboardingStore); tmp2 = outer1_4; if (outer1_11()) { tmp6 = globalThis; _Reflect = Reflect; tmp7 = outer1_5; tmp8 = arguments; constructResult = Reflect.construct(obj, arguments, outer1_5(self).constructor); } else { tmp3 = arguments; tmp4 = arguments; constructResult = obj(...arguments); } return tmp2(self, constructResult); } } callback2(GuildOnboardingStore, Store); let obj = { key: "shouldShowOnboarding", value(guildId) { let tmp = guildId !== outer1_7; if (tmp) { tmp = !GuildOnboardingStore(outer1_1[6]).isFavoritesGuildId(guildId); const obj = GuildOnboardingStore(outer1_1[6]); } if (tmp) { tmp = outer1_12(outer1_9[guildId]); } return tmp; } }; const items = [obj, , , ]; obj = { key: "getOnboardingStatus", value(arg0) { return outer1_9[arg0]; } }; items[1] = obj; obj = { key: "resetOnboardingStatus", value(arg0) { outer1_9[arg0] = outer1_8.STARTED; outer1_10[arg0] = "cover"; } }; items[2] = obj; items[3] = { key: "getCurrentOnboardingStep", value(arg0) { let str = "cover"; if (null != outer1_10[arg0]) { str = tmp; } return str; } }; return callback(GuildOnboardingStore, items); })(require("initialize").Store); tmp2.displayName = "GuildOnboardingStore"; obj = { LOGOUT: function handleReset() { let closure_9 = {}; let closure_10 = {}; }, GUILD_DELETE: function handleDelete(guild) { guild = guild.guild; delete tmp4[tmp3]; delete tmp2[tmp]; }, GUILD_ONBOARDING_START: function handleOnboardingStart(guildId) { closure_9[guildId.guildId] = obj.STARTED; }, GUILD_ONBOARDING_PROMPTS_FETCH_SUCCESS: function handlePromptsFetchSuccess(guildId) { guildId = guildId.guildId; if (table[guildId] !== obj.STARTED) { return false; } else { table[guildId] = tmp ? obj.READY : obj.NOT_APPLICABLE; } }, GUILD_ONBOARDING_PROMPTS_FETCH_FAILURE: function handlePromptsFetchFailure(guildId) { closure_9[guildId.guildId] = obj.NOT_APPLICABLE; }, GUILD_ONBOARDING_COMPLETE: function handleCompleteOnboarding(guildId) { closure_9[guildId.guildId] = obj.COMPLETED; }, GUILD_ONBOARDING_SET_STEP: function handleOnboardingStep(guildId) { closure_10[guildId.guildId] = guildId.step; }, CONNECTION_OPEN: function handleResetOnboardingStep() { let closure_10 = {}; } }; tmp2 = new tmp2(require("dispatcher"), obj); let result = require("_possibleConstructorReturn").fileFinishedImporting("modules/guild_onboarding/GuildOnboardingStore.tsx"); export default tmp2; export const GuildOnboardingStatus = obj; export { isOnboarding };