2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 13145
|
|
|
|
|
// Function ID: 13146
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: parseProviderRouteHeadlessSessionId
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [32, 5364, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 13145 (parseProviderRouteHeadlessSessionId)
|
|
|
|
|
import PlatformsDefault from "Platforms" /* 5364 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import _slicedToArray from "module_32" /* 32 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
let c3 = "h:";
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.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-09-10 05:38:07 +00:00
|
|
|
const first = _slicedToArray(str.slice(2).split(","), 1)[0];
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != first) {
|
|
|
|
|
if (0 !== first.length) {
|
2026-09-10 05:38:07 +00:00
|
|
|
value = PlatformsDefault.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:";
|