2026-10-01 06:55:13 +00:00
|
|
|
// Module ID: 9419
|
|
|
|
|
// Function ID: 9420
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useOpenProfileSettings
|
2026-10-01 06:55:13 +00:00
|
|
|
// Dependencies: [19, 1372, 9420, 1074, 1084, 7787, 9421, 9422, 6987, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
// Module 9419 (useOpenProfileSettings)
|
2026-09-10 05:38:07 +00:00
|
|
|
import _mod19 from "module_19" /* 19 */;
|
|
|
|
|
import Constants from "Constants" /* 1074 */;
|
|
|
|
|
import UserSettingsConstants from "UserSettingsConstants" /* 1084 */;
|
2026-10-01 06:55:13 +00:00
|
|
|
import openUserSettings from "openUserSettings" /* 6987 */;
|
|
|
|
|
import GuildIdentityActionCreators from "GuildIdentityActionCreators" /* 9422 */;
|
2026-09-15 14:23:42 +00:00
|
|
|
import UserStore from "UserStore" /* 1372 */;
|
2026-10-01 06:55:13 +00:00
|
|
|
import ProfileCustomizationNavigationStore from "ProfileCustomizationNavigationStore" /* 9420 */;
|
|
|
|
|
import UserProfileSettingsStore from "UserProfileSettingsStore" /* 7787 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
_mod19.useCallback;
|
|
|
|
|
const UserSettingsSections = Constants.UserSettingsSections;
|
|
|
|
|
let closure_5 = UserSettingsConstants.ProfileCustomizationSubsection;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/profile_customization/useOpenProfileSettings.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useOpenProfileSettings() {
|
|
|
|
|
let obj = arg0;
|
|
|
|
|
if (arg0 === undefined) {
|
|
|
|
|
obj = {};
|
|
|
|
|
}
|
|
|
|
|
const guild = obj.guild;
|
|
|
|
|
const scrollPosition = obj.scrollPosition;
|
2026-07-23 10:11:24 +00:00
|
|
|
const items = [guild, scrollPosition, obj.analyticsLocations, guild(scrollPosition[6]).useIsEligibleForUserProfileWYSIWYGEditing("useOpenProfileSettings")];
|
2026-07-20 16:05:17 +00:00
|
|
|
return useCallback(() => {
|
|
|
|
|
if (null != guild) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const guildIdentitySettings = GuildIdentityActionCreators.initGuildIdentitySettings(tmp.id);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (null != guild) {
|
2026-09-10 05:38:07 +00:00
|
|
|
let USER_PROFILE = constants.GUILD;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
USER_PROFILE = constants.USER_PROFILE;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
ProfileCustomizationNavigationStore.setState({ subsection: USER_PROFILE, scrollPosition });
|
|
|
|
|
openUserSettings.openUserSettings({ screen: UserSettingsSections.PROFILE_CUSTOMIZATION });
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items);
|
|
|
|
|
};
|