// Module ID: 10670 // Function ID: 10671 // Name: ChatRestrictions // Dependencies: [1078, 10671, 1119, 2] // Module 10670 (ChatRestrictions) import Constants from "Constants" /* 1078 */; import util from "util" /* 1119 */; import MentionGuardUtilsDefault from "MentionGuardUtils" /* 10671 */; import size from "module_2" /* 2 */; const TOKEN_REGEX = Constants.TOKEN_REGEX; const items = [ { check(arg0, getGuildId, arg2) { if (arg2) { if (null == getGuildId.getGuildId()) { return false; } else { const extractEveryoneRoleResult = MentionGuardUtilsDefault.extractEveryoneRole(arg0, getGuildId); if (null == extractEveryoneRoleResult) { return false; } else { if (tmp9Result.shouldShowEveryoneGuard(extractEveryoneRoleResult, getGuildId)) { const everyoneMemberCountResult = tmp9(10671).everyoneMemberCount(extractEveryoneRoleResult, getGuildId); const _Math = Math; const _Math2 = Math; const _Math3 = Math; const powResult = Math.pow(10, Math.floor(Math.log10(everyoneMemberCountResult))); let v47E5Rz = util.t["47E5Rz"]; if (getGuildId.isForumPost()) { v47E5Rz = tmp6(1119).t.sYW2cy; } else if (getGuildId.isThread()) { v47E5Rz = tmp6(1119).t["2YaiQ1"]; } const obj = { body: null, footer: null }; const intl = tmp6(1119).intl; const obj2 = { role: extractEveryoneRoleResult, count: null }; const _Math4 = Math; const result = Math.trunc(everyoneMemberCountResult / powResult) * powResult; obj2.count = result.toLocaleString(); obj.body = intl.formatToPlainString(v47E5Rz, obj2); const intl2 = tmp6(1119).intl; obj.footer = intl2.string(util.t.mVyrtu); return obj; } else { return false; } tmp9Result = tmp9(10671); } } } else { return false; } }, analyticsType: "@Everyone Warning", animation: "unicodeVersion" }, { check(arg0) { let isMatch = TOKEN_REGEX.test(arg0); if (isMatch) { const obj = { body: null }; const intl = util.intl; obj.body = intl.string(util.t.sTwS1a); isMatch = obj; } return isMatch; }, analyticsType: "API Token Warning" } ]; let result = size.fileFinishedImporting("utils/ChatRestrictions.tsx"); export const RESTRICTIONS = items;