decord/source/modules/media_channel/MediaPostEmbedManager.tsx

101 lines
3.9 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 16566
// Function ID: 129099
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-27 11:26:19 +00:00
// Dependencies: [6, 7, 15, 17, 18, 1909, 1194, 1918, 10405, 653, 670, 4316, 1360, 11004, 16174, 5078, 2]
2026-07-20 16:05:17 +00:00
2026-07-27 11:26:19 +00:00
// Module 16566 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_4 from "_isNativeReflectConstruct";
import AutomaticLifecycleManager from "AutomaticLifecycleManager";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
import closure_8 from "_isNativeReflectConstruct";
import closure_9 from "_isNativeReflectConstruct";
import closure_10 from "_isNativeReflectConstruct";
import closure_11 from "_isNativeReflectConstruct";
import { FetchState } from "_isNativeReflectConstruct";
import { MessageFlags } from "ME";
import tmp3 from "AutomaticLifecycleManager";
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();
}
function resolveMediaPostEmbeds(embeds) {
2026-07-23 10:11:24 +00:00
let closure_0 = embeds;
2026-07-20 16:05:17 +00:00
embeds = embeds.embeds;
let found;
if (null != embeds) {
2026-07-23 10:11:24 +00:00
found = embeds.filter((type) => type.type === embeds(outer1_2[10]).MessageEmbedTypes.POST_PREVIEW);
2026-07-20 16:05:17 +00:00
}
let tmp2 = null != found;
if (tmp2) {
tmp2 = 0 !== found.length;
}
if (tmp2) {
const item = found.forEach((url) => {
if (null != url.url) {
2026-07-23 10:11:24 +00:00
const mediaPostEmbedChannelPath = embeds(outer1_2[11]).getMediaPostEmbedChannelPath(url.url);
2026-07-20 16:05:17 +00:00
if (null != mediaPostEmbedChannelPath) {
let threadId;
if (null != mediaPostEmbedChannelPath) {
threadId = mediaPostEmbedChannelPath.threadId;
}
if (null != threadId) {
let channelId;
if (null != mediaPostEmbedChannelPath) {
channelId = mediaPostEmbedChannelPath.channelId;
}
if (null != channelId) {
2026-07-23 10:11:24 +00:00
if (outer1_11.getEmbedFetchState(mediaPostEmbedChannelPath.threadId) === outer1_12.NOT_FETCHED) {
if (!outer1_14.has(mediaPostEmbedChannelPath.threadId)) {
outer1_14.add(mediaPostEmbedChannelPath.threadId);
2026-07-20 16:05:17 +00:00
let guildId;
2026-07-23 10:11:24 +00:00
const id = outer1_9.getId();
2026-07-20 16:05:17 +00:00
if (null != mediaPostEmbedChannelPath) {
guildId = mediaPostEmbedChannelPath.guildId;
}
2026-07-23 10:11:24 +00:00
const isMemberResult = outer1_10.isMember(guildId, id);
const isChannelGatedResult = outer1_8.isChannelGated(mediaPostEmbedChannelPath.guildId, mediaPostEmbedChannelPath.channelId);
const flags = embeds.flags;
2026-07-20 16:05:17 +00:00
let num2 = 0;
if (null != flags) {
num2 = flags;
}
let tmp17 = isMemberResult;
2026-07-23 10:11:24 +00:00
const obj = embeds(outer1_2[12]);
2026-07-20 16:05:17 +00:00
if (isMemberResult) {
tmp17 = false === isChannelGatedResult;
}
if (!tmp17) {
tmp17 = !isMemberResult && hasFlagResult;
const tmp18 = !isMemberResult && hasFlagResult;
}
if (!tmp17) {
2026-07-23 10:11:24 +00:00
const mediaPostEmbed = embeds(outer1_2[13]).fetchMediaPostEmbed(mediaPostEmbedChannelPath.threadId);
const obj2 = embeds(outer1_2[13]);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
hasFlagResult = embeds(outer1_2[12]).hasFlag(num2, outer1_13.IS_CROSSPOST);
2026-07-20 16:05:17 +00:00
}
}
}
}
}
2026-07-23 10:11:24 +00:00
const obj3 = embeds(outer1_2[11]);
2026-07-20 16:05:17 +00:00
}
});
}
}
2026-07-23 10:11:24 +00:00
let set = new Set();
2026-07-20 16:05:17 +00:00
tmp3 = new tmp3();
2026-07-23 10:11:24 +00:00
let result = set.fileFinishedImporting("modules/media_channel/MediaPostEmbedManager.tsx");
2026-07-20 16:05:17 +00:00
export default tmp3;