24 lines
1.7 KiB
TypeScript
24 lines
1.7 KiB
TypeScript
/* Metro module 8419; source: modules/activities/utils/isStreaming.tsx; dependencies: [4237, 661, 2] */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as ConstantsModule2 from '../Constants.tsx'; /* Metro dependency 4237 */
|
|
|
|
function _fun66872(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8604:6, offset: 0x01c0d7db, size: 142 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/activities/utils/isStreaming.tsx');
|
|
exports.default = isStreaming;
|
|
function _isStreaming(a0) { // fn#66873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8604:145, offset: 0x01c0d869, size: 66 bytes, params: 2, frame: 13
|
|
const type = a0.type;
|
|
const STREAMING = ActivityTypes.STREAMING;
|
|
return type === STREAMING && (a0.url != null && validStreamURL.test(a0.url));
|
|
}
|
|
|
|
function isStreaming(a0) { // fn#66874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8604:312, offset: 0x01c0d8ab, size: 69 bytes, params: 2, frame: 13
|
|
return a0 != null && (global.Array.isArray(a0) ? a0.some(_isStreaming) : _isStreaming(a0));
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun66872, 8419, [4237, 661, 2]) /* metro module 8419, dependencies: [4237, 661, 2] */;
|