2026-09-24 16:03:38 +00:00
|
|
|
// Module ID: 8565
|
|
|
|
|
// Function ID: 8566
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: isStreaming
|
2026-09-21 19:31:18 +00:00
|
|
|
// Dependencies: [2008, 1078, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-24 16:03:38 +00:00
|
|
|
// Module 8565 (isStreaming)
|
2026-09-21 19:31:18 +00:00
|
|
|
import Constants from "Constants" /* 1078 */;
|
|
|
|
|
import Constants2 from "Constants" /* 2008 */;
|
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) {
|
|
|
|
|
let isMatch = null != type.url;
|
|
|
|
|
if (isMatch) {
|
|
|
|
|
isMatch = validStreamURL.test(type.url);
|
|
|
|
|
}
|
|
|
|
|
tmp = isMatch;
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
const validStreamURL = Constants2.validStreamURL;
|
|
|
|
|
const ActivityTypes = Constants.ActivityTypes;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/activities/utils/isStreaming.tsx");
|
|
|
|
|
|
2026-09-21 19:31:18 +00:00
|
|
|
export default function isStreaming(noop) {
|
|
|
|
|
if (null == noop) {
|
2026-09-18 19:45:33 +00:00
|
|
|
return tmp;
|
|
|
|
|
} else {
|
|
|
|
|
const _Array = Array;
|
2026-09-21 19:31:18 +00:00
|
|
|
if (Array.isArray(noop)) {
|
|
|
|
|
let someResult = noop.some(_isStreaming);
|
2026-09-18 19:45:33 +00:00
|
|
|
} else {
|
2026-09-21 19:31:18 +00:00
|
|
|
someResult = noop.type === ActivityTypes.STREAMING;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (someResult) {
|
2026-09-21 19:31:18 +00:00
|
|
|
let isMatch = null != noop.url;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (isMatch) {
|
2026-09-21 19:31:18 +00:00
|
|
|
isMatch = validStreamURL.test(noop.url);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
someResult = isMatch;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|