decord/source/modules/media_channel/MediaPostSharePromptStore.tsx

106 lines
3.3 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 7663
2026-07-27 11:26:19 +00:00
// Function ID: 61369
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-25 08:10:48 +00:00
// Dependencies: [6, 7, 15, 17, 18, 1909, 1194, 1348, 7664, 21, 566, 686, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 7663 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_4 from "_isNativeReflectConstruct";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
import closure_8 from "_isNativeReflectConstruct";
import closure_9 from "_isNativeReflectConstruct";
import closure_10 from "_isNativeReflectConstruct";
import set from "_possibleConstructorReturn";
const require = arg1;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
2026-07-23 10:11:24 +00:00
let set = new Set();
let tmp3 = ((Store) => {
2026-07-20 16:05:17 +00:00
class MediaPostSharePromptStore {
constructor() {
self = this;
2026-07-23 10:11:24 +00:00
tmp = outer1_3(this, MediaPostSharePromptStore);
obj = outer1_6(MediaPostSharePromptStore);
tmp2 = outer1_5;
if (outer1_12()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_6;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_6(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
callback2(MediaPostSharePromptStore, Store);
let obj = {
key: "initialize",
value() {
2026-07-23 10:11:24 +00:00
this.waitFor(outer1_9, outer1_10, outer1_8);
2026-07-20 16:05:17 +00:00
}
};
const items = [obj, ];
obj = {
key: "shouldDisplayPrompt",
value(arg0) {
2026-07-23 10:11:24 +00:00
return outer1_11.has(arg0);
2026-07-20 16:05:17 +00:00
}
};
items[1] = obj;
return callback(MediaPostSharePromptStore, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").Store);
2026-07-20 16:05:17 +00:00
tmp3.displayName = "MediaPostSharePromptStore";
2026-07-23 10:11:24 +00:00
tmp3 = new tmp3(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
CONNECTION_OPEN: function handleConnectionOpen() {
const set = new Set();
},
MESSAGE_CREATE: function handleMessageCreate(isPushNotification) {
if (!isPushNotification.isPushNotification) {
const message = isPushNotification.message;
const author = message.author;
let id1;
2026-07-23 10:11:24 +00:00
id = id.getId();
2026-07-20 16:05:17 +00:00
if (null != author) {
id1 = author.id;
}
if (id === id1) {
if (obj2.isFirstMessageIdInMediaPost(message.id, message.channel_id)) {
2026-07-23 10:11:24 +00:00
channel = channel.getChannel(message.channel_id);
2026-07-20 16:05:17 +00:00
if (null != channel) {
if (null != channel.parent_id) {
if (channelGated.isChannelGated(channel.guild_id, channel.parent_id)) {
2026-07-23 10:11:24 +00:00
set.add(importDefault(21).castMessageIdAsChannelId(isPushNotification.message.id));
const obj = importDefault(21);
2026-07-20 16:05:17 +00:00
}
}
}
}
2026-07-25 08:10:48 +00:00
obj2 = require(7664) /* isFirstMessageInMediaPost */;
2026-07-20 16:05:17 +00:00
}
}
},
DISMISS_MEDIA_POST_SHARE_PROMPT: function handleDismissMediaPostSharePrompt(threadId) {
set.delete(threadId.threadId);
},
LOGOUT: function handleLogout() {
set.clear();
}
});
2026-07-23 10:11:24 +00:00
let result = set.fileFinishedImporting("modules/media_channel/MediaPostSharePromptStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp3;