decord/source/modules/recent_channels/RecentChannelsActionCreators.tsx
2026-08-05 07:35:12 +00:00

103 lines
3.2 KiB
TypeScript

// Module ID: 10919
// Function ID: 10920
// Name: _bulkClearRecents
// Dependencies: [5, 676, 1355, 1336, 709, 698, 2]
// Exports: bulkClearRecents
// Module 10919 (_bulkClearRecents)
import expandEventProperties from "expandEventProperties";
import { AnalyticEvents } from "ME";
const require = arg1;
function _bulkClearRecents() {
const self = this;
const tmp = callback((arg0, arg1) => {
let closure_0 = arg0;
let closure_1 = arg1;
let c4 = 0;
let c5 = 0;
return (function*(arg0, arg1) {
if (c5 === 2) {
c5 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp4 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
return { value: "T", done: null };
}
} else {
try {
c5 = 2;
if (0 === constants) {
if (arg0 === 1) {
c5 = 3;
throw arg1;
} else if (arg0 === 2) {
c5 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
let expandEventProperties = tmp5;
const dependencyMap = tmp2;
constants = 1;
c5 = 1;
const obj1 = { value: null, done: false };
obj1[0] = callback(outer1_2[2]).updateUserGuildSettings(callback, (arg0) => {
const Timestamp = callback(tmp2[3]).Timestamp;
arg0.guildRecentsDismissedAt = Timestamp.fromDate(new Date());
return true;
}, callback(outer1_2[2]).UserSettingsDelay.INFREQUENT_USER_ACTION);
return obj1;
}
} else if (arg0 === 1) {
c5 = 3;
throw arg1;
} else if (arg0 === 2) {
c5 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
const obj2 = { type: "BULK_CLEAR_RECENTS", guildId: null, channelIds: null };
obj2[1] = callback;
obj2[2] = callback2;
callback2(709).dispatch(obj2);
const obj5 = callback2(709);
callback2(698).track(constants.CHANNEL_LIST_UPDATED, { action_type: "recents_dismissed" });
c5 = 3;
return { value: "T", done: null };
}
} catch (tmp6) {
c5 = tmp;
throw tmp6;
}
}
})();
});
const _bulkClearRecents = tmp;
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}
const result = require("updateUserGuildSettings").fileFinishedImporting("modules/recent_channels/RecentChannelsActionCreators.tsx");
export const bulkClearRecents = function bulkClearRecents(closure_0, closure_1) {
const self = this;
const apply = _bulkClearRecents.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};