// Module ID: 15487 // Function ID: 15488 // Name: _saveGuildThemeNuxPreference // Dependencies: [5, 1340, 4310, 1374, 2] // Exports: getInitialGuildThemeNuxSelection, saveGuildThemeNuxPreference // Module 15487 (_saveGuildThemeNuxPreference) import GuildThemeSourcePreference2 from "GuildThemeSourcePreference" /* 4310 */; import closure_2 from "asyncGeneratorStep" /* 5 */; import closure_3 from "handleConnectionClosedOrResumed" /* 1340 */; require = arg1; function _saveGuildThemeNuxPreference() { const self = this; const tmp = callback((arg0, arg1) => { closure_0 = arg0; closure_1 = arg1; c4 = 0; c5 = 0; return (function*(arg0, arg1) { if (c5 === 2) { c5 = 3; HermesBuiltin.throwTypeError(); } else if (tmp4 === 3) { if (arg0 === 1) { throw arg1; } else if (arg0 === 2) { let obj = { value: null, done: true }; obj[0] = arg1; return obj; } else { return { value: "HermesInternal", done: null }; } } else { try { c5 = 2; if (0 === c4) { if (arg0 === 1) { c5 = 3; throw arg1; } else if (arg0 === 2) { c5 = 3; obj = { value: null, done: true }; obj[0] = arg1; return obj; } else { closure_3 = tmp5; closure_2 = tmp2; let GuildThemeSourcePreference = callback(4310).GuildThemeSourcePreference; if (dependencyMap) { let GUILD = GuildThemeSourcePreference.PERSONAL; } else { GUILD = GuildThemeSourcePreference.GUILD; } GuildThemeSourcePreference = callback(1374); const result = GuildThemeSourcePreference.setDefaultGuildThemePreference(GUILD); c4 = 1; c5 = 1; } } else if (1 === tmp5) { if (arg0 === 1) { c5 = 3; throw arg1; } else if (arg0 === 2) { c5 = 3; obj1 = { value: null, done: true }; obj1[0] = arg1; return obj1; } else { obj1 = callback(1374); c4 = 2; c5 = 1; const obj2 = { value: null, done: false }; obj2[0] = obj1.clearGuildThemeSourcePreferenceOverride(callback); return obj2; } } else if (arg0 === 1) { c5 = 3; throw arg1; } else if (arg0 === 2) { c5 = 3; obj = { value: null, done: true }; obj[0] = arg1; return obj; } else { c5 = 3; return { value: "HermesInternal", done: null }; } } catch (tmp14) { c5 = tmp; throw tmp14; } } })(); }); closure_4 = tmp; const apply = tmp.apply; if (typeof apply === "unknown") { let applyArgumentsResult = HermesBuiltin.applyArguments(self); } else { applyArgumentsResult = apply(self, arguments); } return applyArgumentsResult; } let result = require("set").fileFinishedImporting("modules/guild_themes/GuildThemeNuxUtils.tsx"); export const getInitialGuildThemeNuxSelection = function getInitialGuildThemeNuxSelection() { defaultGuildThemePreference = defaultGuildThemePreference.getDefaultGuildThemePreference(); if (defaultGuildThemePreference === GuildThemeSourcePreference2.GuildThemeSourcePreference.PERSONAL) { let GUILD = tmp2(4310).GuildThemeSourcePreference.PERSONAL; } else { GUILD = tmp2(4310).GuildThemeSourcePreference.GUILD; } return GUILD; }; export const saveGuildThemeNuxPreference = function saveGuildThemeNuxPreference(arg0, closure_1_6) { const self = this; const apply = _saveGuildThemeNuxPreference.apply; if (typeof apply === "unknown") { let applyArgumentsResult = HermesBuiltin.applyArguments(self); } else { applyArgumentsResult = apply(self, arguments); } return applyArgumentsResult; };