2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 15445
|
|
|
|
|
// Function ID: 15446
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: ConnectedUserLimit
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [19, 21, 9692, 15446, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: ConnectedUserLimit
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 15445 (ConnectedUserLimit)
|
|
|
|
|
import noopAll from "noop" /* 19 */;
|
|
|
|
|
import useChannelVideoLimitDefault from "useChannelVideoLimit" /* 9692 */;
|
|
|
|
|
import _modDef15446 from "module_15446" /* 15446 */;
|
|
|
|
|
import { jsx } from "jsxProd" /* 21 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
noopAll;
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/guild_sidebar/native/ConnectedUserLimit.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export const ConnectedUserLimit = function ConnectedUserLimit(users) {
|
|
|
|
|
({ channel, video } = users);
|
2026-08-24 06:08:38 +00:00
|
|
|
const limit = useChannelVideoLimitDefault(channel).limit;
|
2026-07-20 16:05:17 +00:00
|
|
|
let num = -1;
|
|
|
|
|
if (channel.userLimit > 0) {
|
|
|
|
|
num = channel.userLimit;
|
|
|
|
|
}
|
|
|
|
|
if (video) {
|
|
|
|
|
video = limit > 0;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
let videoLimit = false;
|
|
|
|
|
let total = num;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (video) {
|
|
|
|
|
let bound = limit;
|
|
|
|
|
if (num > 0) {
|
|
|
|
|
const _Math = Math;
|
|
|
|
|
bound = Math.min(num, limit);
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
total = bound;
|
|
|
|
|
videoLimit = num < 0 || limit < num;
|
|
|
|
|
const tmp4 = num < 0 || limit < num;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
return jsx(_modDef15446, { users: users.userCount, total, videoLimit });
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|