// Metro module 4404 (f4405). import { Storage } from "../_bundle/Module595"; import Module589 from "../_bundle/Module589"; import * as _AgeGateUtils from "../modules/age_gate/AgeGateUtils"; import Dispatcher from "../Dispatcher"; let c2634_2 = "GuildNSFWAgreeStore"; let c2634_3 = {}; class GuildNSFWAgreeStore extends Module589.Store { static displayName = "GuildNSFWAgreeStore"; initialize() { let r10 = Storage.get(c2634_2); if (r10 == null) { r10 = c2634_3; } c2634_3 = r10; } didAgree(a0) { let r1 = a0 != null; if (r1) { const shouldAgeVerifyForAgeGate = _AgeGateUtils.shouldAgeVerifyForAgeGate(); r1 = shouldAgeVerifyForAgeGate ? !shouldAgeVerifyForAgeGate : c2634_3[a0] || false; } return r1; } } const guildNSFWAgreeStore = new GuildNSFWAgreeStore(Dispatcher, { GUILD_NSFW_AGREE: function handleGuildNSFWAgree(a0) { c2634_3[a0.guildId] = true; Storage.set(c2634_2, c2634_3); } }); export default guildNSFWAgreeStore;