2026-10-13 12:43:34 +00:00
|
|
|
// Module ID: 16902
|
|
|
|
|
// Function ID: 16903
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: GuildThemeNuxUtils
|
2026-10-10 08:08:14 +00:00
|
|
|
// Dependencies: [5, 1244, 5027, 2046, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: getInitialGuildThemeNuxSelection, saveGuildThemeNuxPreference
|
|
|
|
|
|
2026-10-13 12:43:34 +00:00
|
|
|
// Module 16902 (GuildThemeNuxUtils)
|
2026-10-09 10:00:15 +00:00
|
|
|
import UserSettingsProtoActionCreators from "UserSettingsProtoActionCreators" /* 2046 */;
|
2026-10-10 08:08:14 +00:00
|
|
|
import flow_Client from "flow/Client" /* 5027 */;
|
2026-10-03 08:58:59 +00:00
|
|
|
import _asyncToGenerator from "_asyncToGenerator" /* 5 */;
|
2026-10-09 10:00:15 +00:00
|
|
|
import UserSettingsProtoStore from "UserSettingsProtoStore" /* 1244 */;
|
2026-10-03 08:58:59 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-10-03 08:58:59 +00:00
|
|
|
let c4, c5;
|
|
|
|
|
|
|
|
|
|
let obj = function _saveGuildThemeNuxPreference() {
|
|
|
|
|
obj = _asyncToGenerator(async (arg0, value) => {
|
|
|
|
|
let obj2;
|
|
|
|
|
let obj5;
|
|
|
|
|
let closure_0 = arg0;
|
|
|
|
|
let closure_1 = value;
|
|
|
|
|
if (c5 === 2) {
|
|
|
|
|
c5 = 3;
|
|
|
|
|
throw new TypeError("Generator functions may not be called on executing generators");
|
|
|
|
|
} else if (tmp3 === 3) {
|
|
|
|
|
if (arg0 === 1) {
|
|
|
|
|
throw value;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
const obj3 = { value, done: true };
|
|
|
|
|
return obj3;
|
|
|
|
|
} else {
|
2026-10-12 06:59:38 +00:00
|
|
|
return { value: "IconComponent", done: null };
|
2026-10-03 08:58:59 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
} else {
|
2026-10-03 08:58:59 +00:00
|
|
|
try {
|
|
|
|
|
c5 = 2;
|
|
|
|
|
if (0 === c4) {
|
|
|
|
|
if (arg0 === 1) {
|
|
|
|
|
c5 = 3;
|
|
|
|
|
throw value;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
c5 = 3;
|
|
|
|
|
const obj4 = { value, done: true };
|
|
|
|
|
return obj4;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
2026-10-03 08:58:59 +00:00
|
|
|
let GUILD;
|
|
|
|
|
let closure_3 = tmp4;
|
|
|
|
|
let closure_2 = tmp;
|
|
|
|
|
const GuildThemeSourcePreference = flow_Client.GuildThemeSourcePreference;
|
|
|
|
|
if (closure_1) {
|
|
|
|
|
GUILD = GuildThemeSourcePreference.PERSONAL;
|
|
|
|
|
} else {
|
|
|
|
|
GUILD = GuildThemeSourcePreference.GUILD;
|
|
|
|
|
}
|
|
|
|
|
c4 = 1;
|
|
|
|
|
c5 = 1;
|
|
|
|
|
const obj6 = { value: obj5.setDefaultGuildThemePreference(GUILD), done: false };
|
|
|
|
|
obj5 = UserSettingsProtoActionCreators;
|
|
|
|
|
return obj6;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
} else if (1 === c4) {
|
|
|
|
|
if (arg0 === 1) {
|
|
|
|
|
c5 = 3;
|
|
|
|
|
throw value;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
c5 = 3;
|
|
|
|
|
const obj7 = { value, done: true };
|
|
|
|
|
return obj7;
|
|
|
|
|
} else {
|
|
|
|
|
c4 = 2;
|
|
|
|
|
c5 = 1;
|
|
|
|
|
const obj8 = { value: obj2.clearGuildThemeSourcePreferenceOverride(closure_0), done: false };
|
|
|
|
|
obj2 = closure_131_0(closure_131_1[3]);
|
|
|
|
|
return obj8;
|
|
|
|
|
}
|
|
|
|
|
} else if (arg0 === 1) {
|
2026-09-10 05:38:07 +00:00
|
|
|
c5 = 3;
|
|
|
|
|
throw value;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
c5 = 3;
|
2026-10-03 08:58:59 +00:00
|
|
|
obj = { value, done: true };
|
|
|
|
|
return obj;
|
2026-09-10 05:38:07 +00:00
|
|
|
} else {
|
2026-10-03 08:58:59 +00:00
|
|
|
c5 = 3;
|
2026-10-12 06:59:38 +00:00
|
|
|
return { value: "IconComponent", done: null };
|
2026-09-10 05:38:07 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
} catch (tmp12) {
|
2026-09-10 05:38:07 +00:00
|
|
|
c5 = 3;
|
2026-10-03 08:58:59 +00:00
|
|
|
throw tmp12;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
});
|
|
|
|
|
return obj(...arguments);
|
2026-09-10 05:38:07 +00:00
|
|
|
};
|
2026-10-03 08:58:59 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/guild_themes/GuildThemeNuxUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const getInitialGuildThemeNuxSelection = function getInitialGuildThemeNuxSelection() {
|
2026-10-03 08:58:59 +00:00
|
|
|
let GUILD;
|
2026-09-10 05:38:07 +00:00
|
|
|
const defaultGuildThemePreference = UserSettingsProtoStore.getDefaultGuildThemePreference();
|
2026-10-03 08:58:59 +00:00
|
|
|
if (defaultGuildThemePreference === flow_Client.GuildThemeSourcePreference.PERSONAL) {
|
2026-10-10 08:08:14 +00:00
|
|
|
GUILD = tmp2(5027).GuildThemeSourcePreference.PERSONAL;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-10-10 08:08:14 +00:00
|
|
|
GUILD = tmp2(5027).GuildThemeSourcePreference.GUILD;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return GUILD;
|
|
|
|
|
};
|
2026-09-10 05:38:07 +00:00
|
|
|
export const saveGuildThemeNuxPreference = function saveGuildThemeNuxPreference() {
|
2026-10-03 08:58:59 +00:00
|
|
|
return obj(...arguments);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|