decord/source/modules/user_profile/utils/parseProviderRouteHeadlessSessionId.tsx

37 lines
1 KiB
TypeScript
Raw Normal View History

// Module ID: 13019
// Function ID: 13020
2026-07-20 16:05:17 +00:00
// Name: parseProviderRouteHeadlessSessionId
// Dependencies: [32, 5283, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 13019 (parseProviderRouteHeadlessSessionId)
import getPlatformUserUrlDefault from "getPlatformUserUrl" /* 5283 */;
2026-08-24 06:08:38 +00:00
import closure_2 from "_slicedToArray" /* 32 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c3 = "h:";
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/user_profile/utils/parseProviderRouteHeadlessSessionId.tsx");
2026-07-20 16:05:17 +00:00
export default function parseProviderRouteHeadlessSessionId(str) {
if (null != str) {
2026-07-29 08:29:29 +00:00
if (str.startsWith(c3)) {
2026-07-20 16:05:17 +00:00
const first = callback(str.slice(2).split(","), 1)[0];
if (null != first) {
if (0 !== first.length) {
2026-08-24 06:08:38 +00:00
const value = getPlatformUserUrlDefault.get(first);
2026-07-20 16:05:17 +00:00
let tmp5 = null;
if (null != value) {
tmp5 = null;
if (value.enabled) {
tmp5 = value;
}
}
return tmp5;
}
}
return null;
}
}
return null;
};
export const HEADLESS_SESSION_ID_PREFIX = "h:";