2026-07-27 11:26:19 +00:00
|
|
|
// Module ID: 10495
|
|
|
|
|
// Function ID: 81387
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: map
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [6, 7, 1194, 1348, 4223, 4203, 4147, 653, 3, 4207, 675, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-27 11:26:19 +00:00
|
|
|
// Module 10495 (map)
|
2026-07-23 10:11:24 +00:00
|
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
|
import ME from "ME";
|
|
|
|
|
import closure_5 from "_isNativeReflectConstruct";
|
|
|
|
|
import closure_6 from "_isNativeReflectConstruct";
|
|
|
|
|
import closure_7 from "_isNativeReflectConstruct";
|
|
|
|
|
import closure_8 from "_isNativeReflectConstruct";
|
|
|
|
|
import closure_9 from "_isNativeReflectConstruct";
|
|
|
|
|
import { AnalyticEvents } from "ME";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
const map = new Map();
|
2026-07-23 10:11:24 +00:00
|
|
|
const tmp3 = (() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
class VideoSpinnerTimer {
|
|
|
|
|
constructor(arg0) {
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp = outer1_3(this, VideoSpinnerTimer);
|
2026-07-20 16:05:17 +00:00
|
|
|
this.spinnerVisibleStart = null;
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp2 = outer1_1(outer1_2[8]);
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp2 = new tmp2(arg0);
|
|
|
|
|
this.logger = tmp2;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let obj = {
|
|
|
|
|
key: "onSpinnerStarted",
|
|
|
|
|
value() {
|
|
|
|
|
if (null == this.spinnerVisibleStart) {
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp.spinnerVisibleStart = VideoSpinnerTimer(outer1_2[9]).now();
|
|
|
|
|
const obj = VideoSpinnerTimer(outer1_2[9]);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const items = [obj, ];
|
|
|
|
|
obj = {
|
|
|
|
|
key: "trackSpinnerDuration",
|
|
|
|
|
value(video_spinner_context, spinning_user_id) {
|
|
|
|
|
const self = this;
|
|
|
|
|
if (null != this.spinnerVisibleStart) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const value = outer1_11.get(arg2);
|
2026-07-20 16:05:17 +00:00
|
|
|
let num = 0;
|
|
|
|
|
if (null != value) {
|
|
|
|
|
num = value;
|
|
|
|
|
}
|
|
|
|
|
const sum = num + 1;
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = outer1_11.set(arg2, sum);
|
|
|
|
|
let obj = VideoSpinnerTimer(outer1_2[9]);
|
2026-07-20 16:05:17 +00:00
|
|
|
const diff = obj.now() - self.spinnerVisibleStart;
|
|
|
|
|
self.spinnerVisibleStart = null;
|
|
|
|
|
if (diff < 0) {
|
|
|
|
|
const logger = self.logger;
|
|
|
|
|
const _HermesInternal = HermesInternal;
|
|
|
|
|
logger.warn("spinner duration is negative: " + diff + " ms\n [" + video_spinner_context + ", count for stream: " + sum + "]");
|
|
|
|
|
} else {
|
|
|
|
|
const logger2 = self.logger;
|
|
|
|
|
const _HermesInternal2 = HermesInternal;
|
|
|
|
|
logger2.info("spinner visible for " + diff + " ms\n [" + video_spinner_context + ", count for stream: " + sum + "]");
|
2026-07-23 10:11:24 +00:00
|
|
|
const guildId = outer1_8.getGuildId();
|
|
|
|
|
const userVoiceChannelId = outer1_9.getUserVoiceChannelId(guildId, outer1_5.getId());
|
|
|
|
|
const channel = outer1_6.getChannel(userVoiceChannelId);
|
2026-07-20 16:05:17 +00:00
|
|
|
let str = null;
|
|
|
|
|
if (null != channel) {
|
|
|
|
|
str = "guild_voice";
|
|
|
|
|
if (!channel.isGuildVoice()) {
|
|
|
|
|
str = "is_stage_channel";
|
|
|
|
|
if (!channel.isGuildStageVoice()) {
|
|
|
|
|
str = "dm";
|
|
|
|
|
if (!channel.isDM()) {
|
|
|
|
|
str = null;
|
|
|
|
|
if (channel.isGroupDM()) {
|
|
|
|
|
str = "group_dm";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = { video_spinner_context, duration_video_spinner_visible_ms: diff, rtc_connection_id: outer1_8.getRTCConnectionId(), media_session_id: outer1_8.getMediaSessionId(), event_count_for_stream: sum, guild_id: guildId, channel_id: userVoiceChannelId, channel_type: str, spinning_user_id, connection_type: outer1_7.getType(), effective_connection_speed: outer1_7.getEffectiveConnectionSpeed(), service_provider: outer1_7.getServiceProvider() };
|
|
|
|
|
outer1_1(outer1_2[10]).track(outer1_10.VIDEO_SPINNER_SHOWN_V2, obj);
|
|
|
|
|
const obj2 = outer1_1(outer1_2[10]);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[1] = obj;
|
|
|
|
|
return callback(VideoSpinnerTimer, items);
|
2026-07-23 10:11:24 +00:00
|
|
|
})();
|
|
|
|
|
let result = require("_isNativeReflectConstruct").fileFinishedImporting("lib/VideoSpinnerTimer.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const VideoSpinnerContext = { SELF_VIDEO: "self_video", SELF_STREAM: "self_stream", REMOTE_VIDEO: "remote_video", REMOTE_STREAM: "remote_stream", CHANGE_VIDEO_BACKGROUND: "change_video_background", REPLAY_VIDEO_STREAM: "replay_video_stream" };
|
|
|
|
|
export const VideoSpinnerTimer = tmp3;
|