decord/source/modules/icymi/native/NativeICYMIActionCreators.tsx

110 lines
3.7 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 15788
// Function ID: 15789
// Dependencies: [5, 676, 9093, 530, 709, 4097, 1236, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 15788
import closure_3 from "asyncGeneratorStep" /* 5 */;
import { Endpoints } from "ME" /* 676 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/icymi/native/NativeICYMIActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
customScoreGuild(arg0) {
2026-07-23 10:11:24 +00:00
({ guildId: require, channelScores: importDefault, guildScore: dependencyMap } = arg0);
2026-07-29 08:29:29 +00:00
return callback(function*() {
if (constants === 2) {
constants = 3;
HermesBuiltin.throwTypeError();
} else if (tmp6 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
constants = 2;
if (0 === v0) {
if (arg0 === 1) {
constants = 3;
throw arg1;
} else if (arg0 === 2) {
constants = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
closure_0 = tmp3;
2026-07-29 08:29:29 +00:00
if (obj13.icymiEnabled("customScores")) {
2026-08-24 06:08:38 +00:00
c3 = 1;
const HTTP = closure_1_0(closure_1_2[3]).HTTP;
obj1 = { url: null, body: null, rejectWithError: true };
2026-07-29 08:29:29 +00:00
obj1[0] = constants.GRAVITY_CUSTOM_GUILD_SCORES;
const obj2 = { guild_id: null, channel_scores: null, guild_score: null };
2026-08-24 06:08:38 +00:00
obj2[0] = closure_1_0;
2026-07-29 08:29:29 +00:00
let mapped;
if (v0 != null) {
mapped = v0.map((channelId) => ({ channel_id: channelId.channelId, score: channelId.score }));
}
obj2[1] = mapped;
2026-08-24 06:08:38 +00:00
obj2[2] = closure_1_2;
2026-07-29 08:29:29 +00:00
obj1[1] = obj2;
v0 = 2;
constants = 1;
const obj3 = { value: null, done: false };
obj3[0] = HTTP.put(obj1);
return obj3;
}
2026-08-24 06:08:38 +00:00
obj13 = closure_1_0(closure_1_2[2]);
2026-07-29 08:29:29 +00:00
}
} else {
if (1 === tmp7) {
c3 = 0;
2026-08-24 06:08:38 +00:00
obj1 = v0(closure_1_2[5]);
2026-07-29 08:29:29 +00:00
const obj4 = { key: "GravityGuildScore", content: null };
2026-08-24 06:08:38 +00:00
const intl = closure_1_0(closure_1_2[6]).intl;
obj4[1] = intl.string(closure_1_0(closure_1_2[6]).t.CG4Hks);
2026-07-29 08:29:29 +00:00
obj1.open(obj4);
} else if (arg0 === 1) {
constants = 3;
throw arg1;
} else if (arg0 !== 2) {
const obj5 = { type: "ICYMI_CUSTOM_SCORES_UPDATED", guildId: null, channelScores: null, guildScore: null };
obj5[1] = closure_0;
obj5[2] = v0;
obj5[3] = closure_2;
2026-08-24 06:08:38 +00:00
v0(closure_1_2[4]).dispatch(obj5);
const obj9 = v0(closure_1_2[4]);
2026-07-29 08:29:29 +00:00
const obj6 = { key: "GravityGuildScore", content: null };
2026-08-24 06:08:38 +00:00
const intl2 = closure_1_0(closure_1_2[6]).intl;
obj6[1] = intl2.string(closure_1_0(closure_1_2[6]).t.OMdbs1);
v0(closure_1_2[5]).open(obj6);
2026-07-29 08:29:29 +00:00
c3 = 0;
2026-08-24 06:08:38 +00:00
const obj11 = v0(closure_1_2[5]);
2026-07-29 08:29:29 +00:00
}
c3 = 0;
constants = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
}
constants = 3;
} catch (tmp23) {
closure_2 = tmp23;
if (tmp4 === c3) {
constants = tmp2;
throw tmp23;
} else {
v0 = tmp;
}
}
}
})();
2026-07-20 16:05:17 +00:00
}
};