decord/source/modules/activities/utils/CustomActivityLinkUtils.tsx

63 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 12256
// Function ID: 95645
2026-07-20 16:05:17 +00:00
// Name: fetchCustomActivityLink
2026-07-28 08:39:19 +00:00
// Dependencies: [5, 12257, 653, 12259, 507, 686, 2]
2026-07-20 16:05:17 +00:00
// Exports: getCustomActivityLinkParams, getOrFetchCustomActivityLink, getQuickLinkImage
2026-07-28 08:39:19 +00:00
// Module 12256 (fetchCustomActivityLink)
2026-07-23 10:11:24 +00:00
import dispatcher from "dispatcher";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { Endpoints } from "ME";
import set from "ME";
const require = arg1;
2026-07-20 16:05:17 +00:00
function fetchCustomActivityLink() {
return _fetchCustomActivityLink(...arguments);
}
function _fetchCustomActivityLink() {
// CreateGeneratorClosureLongIndex (0x67)
const obj = callback(tmp);
return obj(...arguments);
}
function _getCustomActivityLinkParams() {
// CreateGeneratorClosureLongIndex (0x67)
const obj = callback(tmp);
return obj(...arguments);
}
function loadCustomActivityLink(id, linkId) {
return _loadCustomActivityLink(...arguments);
}
function _loadCustomActivityLink() {
// CreateGeneratorClosureLongIndex (0x67)
const obj = callback(tmp);
return obj(...arguments);
}
2026-07-23 10:11:24 +00:00
let set = new Set();
const result = set.fileFinishedImporting("modules/activities/utils/CustomActivityLinkUtils.tsx");
2026-07-20 16:05:17 +00:00
export { fetchCustomActivityLink };
2026-07-25 08:10:48 +00:00
export const getCustomActivityLinkParams = function getCustomActivityLinkParams(closure_0, value, searchParams2) {
2026-07-20 16:05:17 +00:00
return _getCustomActivityLinkParams(...arguments);
};
export const getQuickLinkImage = function getQuickLinkImage(assetPath) {
if (null != assetPath) {
const _location = location;
const _window = window;
const _HermesInternal = HermesInternal;
return "" + location.protocol + "//" + window.GLOBAL_ENV.CDN_HOST + "/attachments-quick-links/" + assetPath;
}
};
export { loadCustomActivityLink };
export const getOrFetchCustomActivityLink = function getOrFetchCustomActivityLink(id, linkId) {
2026-07-23 10:11:24 +00:00
one = one.getOne(id, linkId);
2026-07-20 16:05:17 +00:00
if (null == one) {
one = null;
if (!set.has(linkId)) {
loadCustomActivityLink(id, linkId);
set.add(linkId);
one = null;
}
}
return one;
};