decord/stable/source/modules/coded_links/ApplicationCodedLink.tsx
github-actions e2bc0408ee chore: update source for stable 346.13
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-22 22:11:40 +00:00

47 lines
2.2 KiB
TypeScript

// Module ID: 7792
// Function ID: 7793
// Name: ApplicationCodedLink
// Dependencies: [4624, 1369, 7793, 7794, 2]
// Exports: getApplicationCodedLinkData, isApplicationCodedLink, isApplicationCodedLinkMobileSupported
// Module 7792 (ApplicationCodedLink)
import GlobalUtils from "GlobalUtils" /* 1369 */;
import CodedLink from "CodedLink" /* 4624 */;
import size from "module_2" /* 2 */;
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];
const set1 = new Set(items1);
let result = size.fileFinishedImporting("modules/coded_links/ApplicationCodedLink.tsx");
export const APP_LINK_CODED_TYPES = set;
export const isApplicationCodedLink = function isApplicationCodedLink(type) {
return GlobalUtils.isInSet(type, set);
};
export const APP_LINK_CODED_TYPES_MOBILE_SUPPORT = set1;
export const isApplicationCodedLinkMobileSupported = function isApplicationCodedLinkMobileSupported(type) {
return GlobalUtils.isInSet(type, set1);
};
export const getApplicationCodedLinkData = function getApplicationCodedLinkData(type, code, url) {
if (CodedLink.CodedLinkType.APP_DIRECTORY_PROFILE !== type) {
if (tmp(4624).CodedLinkType.APP_OAUTH2_LINK !== type) {
if (tmp(4624).CodedLinkType.APP_DIRECTORY_STOREFRONT !== type) {
if (tmp(4624).CodedLinkType.APP_DIRECTORY_STOREFRONT_SKU === type) {
const result = tmp(7793).parseStorefrontSkuCodedLink(code);
let tmp5 = null;
if (null != result) {
const obj2 = { type, applicationId: null, skuId: null };
({ applicationId: obj4.applicationId, skuId: obj4.skuId } = result);
tmp5 = obj2;
}
return tmp5;
} else if (tmp(4624).CodedLinkType.ACTIVITY_BOOKMARK === type) {
const obj = { type, applicationId: code, params: tmp(7794).extractActivityBookmarkParams(url) };
return obj;
}
}
}
}
return { type, applicationId: code };
};