decord/source/modules/coded_links/ApplicationCodedLink.tsx

48 lines
2.2 KiB
TypeScript
Raw Normal View History

// Module ID: 7741
// Function ID: 7742
// Name: ApplicationCodedLink
// Dependencies: [4593, 1369, 7742, 7743, 2]
2026-07-20 16:05:17 +00:00
// Exports: getApplicationCodedLinkData, isApplicationCodedLink, isApplicationCodedLinkMobileSupported
// Module 7741 (ApplicationCodedLink)
import GlobalUtils from "GlobalUtils" /* 1369 */;
import CodedLink from "CodedLink" /* 4593 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const items = [CodedLink.CodedLinkType.APP_DIRECTORY_PROFILE, CodedLink.CodedLinkType.ACTIVITY_BOOKMARK, CodedLink.CodedLinkType.APP_DIRECTORY_STOREFRONT, CodedLink.CodedLinkType.APP_DIRECTORY_STOREFRONT_SKU, CodedLink.CodedLinkType.APP_OAUTH2_LINK];
const set = new Set(items);
const items1 = [CodedLink.CodedLinkType.APP_DIRECTORY_PROFILE, CodedLink.CodedLinkType.ACTIVITY_BOOKMARK, CodedLink.CodedLinkType.APP_OAUTH2_LINK];
2026-07-20 16:05:17 +00:00
const set1 = new Set(items1);
let result = size.fileFinishedImporting("modules/coded_links/ApplicationCodedLink.tsx");
2026-07-20 16:05:17 +00:00
export const APP_LINK_CODED_TYPES = set;
export const isApplicationCodedLink = function isApplicationCodedLink(type) {
return GlobalUtils.isInSet(type, set);
2026-07-20 16:05:17 +00:00
};
export const APP_LINK_CODED_TYPES_MOBILE_SUPPORT = set1;
export const isApplicationCodedLinkMobileSupported = function isApplicationCodedLinkMobileSupported(type) {
return GlobalUtils.isInSet(type, set1);
2026-07-20 16:05:17 +00:00
};
export const getApplicationCodedLinkData = function getApplicationCodedLinkData(type, code, url) {
if (CodedLink.CodedLinkType.APP_DIRECTORY_PROFILE !== type) {
if (tmp(4593).CodedLinkType.APP_OAUTH2_LINK !== type) {
if (tmp(4593).CodedLinkType.APP_DIRECTORY_STOREFRONT !== type) {
if (tmp(4593).CodedLinkType.APP_DIRECTORY_STOREFRONT_SKU === type) {
const result = tmp(7742).parseStorefrontSkuCodedLink(code);
2026-07-29 08:29:29 +00:00
let tmp5 = null;
2026-07-20 16:05:17 +00:00
if (null != result) {
const obj2 = { type, applicationId: null, skuId: null };
({ applicationId: obj4.applicationId, skuId: obj4.skuId } = result);
tmp5 = obj2;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp5;
} else if (tmp(4593).CodedLinkType.ACTIVITY_BOOKMARK === type) {
const obj = { type, applicationId: code, params: tmp(7743).extractActivityBookmarkParams(url) };
2026-07-20 16:05:17 +00:00
return obj;
}
}
}
}
return { type, applicationId: code };
2026-07-20 16:05:17 +00:00
};