46 lines
2.9 KiB
TypeScript
46 lines
2.9 KiB
TypeScript
/* Metro module 10679; source: modules/video_calls/useVideoSpinnerTimer.tsx; dependencies: [57, 31, 10680, 2] */
|
|
import Module00057 from '../../by-id/module-00057.js'; /* Metro dependency 57 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as VideoSpinnerTimerModule from '../../lib/VideoSpinnerTimer.tsx'; /* Metro dependency 10680 */
|
|
|
|
function _fun82112(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10865:6, offset: 0x01eeba12, size: 133 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/video_calls/useVideoSpinnerTimer.tsx');
|
|
exports.default = useVideoSpinnerTimer;
|
|
function useVideoSpinnerTimer({location, videoSpinnerContext, userId, streamId, loading, paused}) { // fn#82113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10865:204, offset: 0x01eeba97, size: 170 bytes, params: 2, frame: 20
|
|
const userId2 = userId;
|
|
const streamId2 = streamId;
|
|
paused = !(paused === undefined) && paused;
|
|
const binding = streamId2;
|
|
binding.useEffect(_fun82115, [loading, paused, streamId, userId2(binding.useState(_fun82114), 1)[0],
|
|
videoSpinnerContext, userId]);
|
|
function _fun82114() { // fn#82114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10865:330, offset: 0x01eebb41, size: 60 bytes, params: 1, frame: 11
|
|
let value = environment.__proto__;
|
|
const VideoSpinnerTimer = (VideoSpinnerTimerModule).VideoSpinnerTimer;
|
|
const locationBinding = location;
|
|
value = Object.create(VideoSpinnerTimer.prototype, {constructor: {value: VideoSpinnerTimer}});
|
|
const videoSpinnerTimer = new VideoSpinnerTimer(locationBinding);
|
|
return videoSpinnerTimer instanceof Object ? videoSpinnerTimer : value;
|
|
}
|
|
|
|
function _fun82115() { // fn#82115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10865:395, offset: 0x01eebb7d, size: 80 bytes, params: 1, frame: 16
|
|
var binding;
|
|
if (!paused) {
|
|
if (loading) {
|
|
env0_6.onSpinnerStarted();
|
|
} else if (streamId != null) {
|
|
binding = env0_6;
|
|
binding.trackSpinnerDuration(videoSpinnerContext, userId, streamId);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun82112, 10679, [57, 31, 10680, 2]) /* metro module 10679, dependencies: [57, 31, 10680, 2] */;
|