decord/beta/source/modules/video_calls/useVideoSpinnerTimer.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

95 lines
2.9 KiB
TypeScript

// Module ID: 9693
// Function ID: 9694
// Name: useVideoSpinnerTimer
// Dependencies: [32, 19, 558, 568, 9690, 2]
// Module 9693 (useVideoSpinnerTimer)
import VideoSpinnerTimer from "VideoSpinnerTimer" /* 9690 */;
import _slicedToArray from "module_32" /* 32 */;
import noop from "module_19" /* 19 */;
require = fn;
const ReactCompilerGating = fn(558);
const size = fn(2);
const result = size.fileFinishedImporting("modules/video_calls/useVideoSpinnerTimer.tsx");
export default ReactCompilerGating.isReactCompilerEnabled() ? ((location) => {
const cResult = _location(videoSpinnerContext[3]).c(10);
_location = location.location;
videoSpinnerContext = location.videoSpinnerContext;
const userId = location.userId;
const streamId = location.streamId;
const loading = location.loading;
const paused = location.paused;
closure_5 = tmp2;
if (cResult[0] !== _location) {
const fn = function u() {
const videoSpinnerTimer = new VideoSpinnerTimer.VideoSpinnerTimer(_location);
return videoSpinnerTimer;
};
cResult[0] = _location;
cResult[1] = fn;
let tmp3 = fn;
} else {
tmp3 = cResult[1];
}
const first = userId(streamId.useState(tmp3), 1)[0];
if (cResult[2] === loading) {
if (cResult[3] === tmp2) {
if (cResult[4] === streamId) {
if (cResult[5] === userId) {
if (cResult[6] === videoSpinnerContext) {
if (cResult[7] === first) {
let tmp5 = cResult[8];
let tmp6 = cResult[9];
}
const effect = streamId.useEffect(tmp5, tmp6);
}
}
}
}
}
const fn2 = function _() {
if (!closure_5) {
if (loading) {
first.onSpinnerStarted();
} else if (null != streamId) {
first.trackSpinnerDuration(videoSpinnerContext, userId, tmp2);
}
}
};
const items = [loading, undefined !== paused && paused, streamId, first, videoSpinnerContext, userId];
cResult[2] = loading;
cResult[3] = undefined !== paused && paused;
cResult[4] = streamId;
cResult[5] = userId;
cResult[6] = videoSpinnerContext;
cResult[7] = first;
cResult[8] = fn2;
cResult[9] = items;
tmp6 = items;
tmp5 = fn2;
}) : ((userId) => {
({ location: require, videoSpinnerContext } = userId);
userId = userId.userId;
const streamId = userId.streamId;
const loading = userId.loading;
let flag = userId.paused;
if (flag === undefined) {
flag = false;
}
const first = userId(streamId.useState(() => {
const videoSpinnerTimer = new VideoSpinnerTimer.VideoSpinnerTimer(closure_1_0);
return videoSpinnerTimer;
}), 1)[0];
const items = [loading, flag, streamId, first, videoSpinnerContext, userId];
const effect = streamId.useEffect(() => {
if (!flag) {
if (loading) {
first.onSpinnerStarted();
} else if (null != streamId) {
first.trackSpinnerDuration(videoSpinnerContext, userId, tmp2);
}
}
}, items);
});