2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 11272
|
|
|
|
|
// Function ID: 11273
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: useTrackCreateGuildViewed
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [19, 6744, 1074, 1241, 2]
|
2026-09-26 17:57:22 +00:00
|
|
|
// Exports: default
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 11272 (useTrackCreateGuildViewed)
|
2026-10-01 14:13:23 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
2026-09-26 17:57:22 +00:00
|
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import GuildTemplatesConstants from "GuildTemplatesConstants" /* 6744 */;
|
|
|
|
|
import react from "react" /* 19 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
const GuildTemplateStates = GuildTemplatesConstants.GuildTemplateStates;
|
|
|
|
|
const AnalyticEvents = Constants.AnalyticEvents;
|
2026-09-18 19:45:33 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/guild_templates/useTrackCreateGuildViewed.tsx");
|
|
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
export default function useTrackCreateGuildViewed(arg0) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let closure_0 = arg0;
|
|
|
|
|
const ref = react.useRef([]);
|
|
|
|
|
const effect = react.useEffect(() => {
|
|
|
|
|
const tmp2 = null != closure_0 && tmp.state !== GuildTemplateStates.RESOLVING;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (tmp2) {
|
|
|
|
|
const current = ref.current;
|
2026-10-01 14:13:23 +00:00
|
|
|
const tmp4 = ref;
|
|
|
|
|
if (!current.includes(closure_0.code)) {
|
2026-09-18 19:45:33 +00:00
|
|
|
const current1 = tmp4.current;
|
2026-10-01 14:13:23 +00:00
|
|
|
current1.push(closure_0.code);
|
2026-09-18 19:45:33 +00:00
|
|
|
const obj3 = { guild_template_code: null, guild_template_name: null, guild_template_description: null, guild_template_guild_id: null };
|
2026-10-01 14:13:23 +00:00
|
|
|
({ code: obj2.guild_template_code, name: obj2.guild_template_name, description: obj2.guild_template_description, sourceGuildId: obj2.guild_template_guild_id } = closure_0);
|
|
|
|
|
const obj = AnalyticsUtilsDefault;
|
|
|
|
|
obj.track(AnalyticEvents.CREATE_GUILD_VIEWED, obj3);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
2026-09-26 17:57:22 +00:00
|
|
|
};
|