2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 7705
|
|
|
|
|
// Function ID: 7706
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: isStreaming
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [2005, 1074, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 7705 (isStreaming)
|
2026-09-26 17:57:22 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
2026-09-28 16:18:32 +00:00
|
|
|
import Constants2 from "Constants" /* 2005 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
function _isStreaming(type) {
|
|
|
|
|
let tmp = type.type === ActivityTypes.STREAMING;
|
|
|
|
|
if (tmp) {
|
2026-10-01 14:13:23 +00:00
|
|
|
const isMatch = null != type.url && validStreamURL.test(type.url);
|
2026-09-18 19:45:33 +00:00
|
|
|
tmp = isMatch;
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
const validStreamURL = Constants2.validStreamURL;
|
|
|
|
|
const ActivityTypes = Constants.ActivityTypes;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/activities/utils/isStreaming.tsx");
|
|
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
export default function isStreaming(type) {
|
|
|
|
|
let tmp = null != type;
|
|
|
|
|
if (tmp) {
|
|
|
|
|
let someResult;
|
2026-09-18 19:45:33 +00:00
|
|
|
const _Array = Array;
|
2026-10-01 14:13:23 +00:00
|
|
|
if (Array.isArray(type)) {
|
|
|
|
|
someResult = type.some(_isStreaming);
|
2026-09-18 19:45:33 +00:00
|
|
|
} else {
|
2026-10-01 14:13:23 +00:00
|
|
|
someResult = type.type === ActivityTypes.STREAMING;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (someResult) {
|
2026-10-01 14:13:23 +00:00
|
|
|
const isMatch = null != type.url && validStreamURL.test(type.url);
|
2026-09-18 19:45:33 +00:00
|
|
|
someResult = isMatch;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
tmp = someResult;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
return tmp;
|
2026-09-18 19:45:33 +00:00
|
|
|
};
|