2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 6827
|
|
|
|
|
// Function ID: 6828
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: waitForOnboardingCompletion
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [1991, 4012, 1403, 6828, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: waitForOnboardingCompletion
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 6827 (waitForOnboardingCompletion)
|
|
|
|
|
import closure_3 from "trackCommunicationDisabled" /* 1991 */;
|
|
|
|
|
import { GuildMemberFlags } from "GuildMemberFlags" /* 4012 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-08-24 06:08:38 +00:00
|
|
|
let result = require("set").fileFinishedImporting("modules/guild_onboarding/doGuildOnboardingHelpers.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const waitForOnboardingCompletion = function waitForOnboardingCompletion(arg0) {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = arg0;
|
2026-07-20 16:05:17 +00:00
|
|
|
return new Promise((arg0) => {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = arg0;
|
|
|
|
|
const result = closure_1_3.addConditionalChangeListener(() => {
|
|
|
|
|
const selfMember = closure_2_3.getSelfMember(callback);
|
2026-07-29 08:29:29 +00:00
|
|
|
let num;
|
|
|
|
|
if (selfMember != null) {
|
|
|
|
|
num = selfMember.flags;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (num == null) {
|
|
|
|
|
num = 0;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
const hasFlagResult = callback(closure_2_2[2]).hasFlag(num, closure_2_4.COMPLETED_ONBOARDING);
|
2026-07-29 08:29:29 +00:00
|
|
|
let flag = !hasFlagResult;
|
|
|
|
|
if (hasFlagResult) {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_2_1(closure_2_2[3]).finishOnboarding(callback);
|
2026-07-23 10:11:24 +00:00
|
|
|
callback();
|
2026-07-20 16:05:17 +00:00
|
|
|
flag = false;
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj2 = closure_2_1(closure_2_2[3]);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return flag;
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
};
|