Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,77 @@
/* Metro module 1947; source: modules/guild_communication_disabled/GuildDisableCommunicationConstants.tsx; dependencies: [661, 1244, 1948, 2] */
function _fun21701(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2074:6, offset: 0x00ef783b, size: 343 bytes, params: 8, frame: 20
var object2;
const env0_0 = require;
const closure = getFriendlyDurationString;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const HelpdeskArticles = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
object2 = {DURATION_60_SEC: 60};
object2[60] = 'DURATION_60_SEC';
object2.DURATION_5_MIN = 300;
object2[300] = 'DURATION_5_MIN';
object2.DURATION_10_MIN = 600;
object2[600] = 'DURATION_10_MIN';
object2.DURATION_1_HOUR = 3600;
object2[3600] = 'DURATION_1_HOUR';
object2.DURATION_1_DAY = 86400;
object2[86400] = 'DURATION_1_DAY';
object2.DURATION_1_WEEK = 604800;
object2[604800] = 'DURATION_1_WEEK';
let value = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = value.getArticleURL;
const DISABLE_GUILD_COMMUNICATION = HelpdeskArticles.DISABLE_GUILD_COMMUNICATION;
value = Reflect.apply(getArticleURL, value, [DISABLE_GUILD_COMMUNICATION]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_communication_disabled/GuildDisableCommunicationConstants.tsx');
exports.DisableCommunicationDuration = object2;
exports.getFriendlyDurationString = closure;
exports.getDisableCommunicationDurationOptions = getDisableCommunicationDurationOptions;
exports.GUILD_COMMUNICATION_DISABLED_RESOURCE_LINK = value;
exports.DISMISSED_COMMUNICATION_DISABLED_NOTIFICATION_GUILDS_KEY = 'GuildCommunicationDisabledDismissedGuilds';
exports.SET_COMMUNICATION_DISABLED_MODAL_NAME = 'Set Communication Disabled Modal';
exports.CLEAR_COMMUNICATION_DISABLED_MODAL_NAME = 'Clear Communication Disabled Modal';
exports.MAX_REASON_LENGTH = 512;
}
function getFriendlyDurationString(a0) { // fn#21702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2074:410, offset: 0x00ef7992, size: 521 bytes, params: 2, frame: 16
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const DURATION_60_SEC = env0_2.DURATION_60_SEC;
if (DURATION_60_SEC === a0) {
return intl.formatToPlainString(t['4zv/jq'], {secs: 60});
}
const DURATION_5_MIN = env0_2.DURATION_5_MIN;
if (DURATION_5_MIN === a0) {
return intl.formatToPlainString(t.opVZ9q, {mins: 5});
}
const DURATION_10_MIN = env0_2.DURATION_10_MIN;
if (DURATION_10_MIN === a0) {
return intl.formatToPlainString(t.opVZ9q, {mins: 10});
}
const DURATION_1_HOUR = env0_2.DURATION_1_HOUR;
if (DURATION_1_HOUR === a0) {
return intl.formatToPlainString(t.xCjYxK, {hours: 1});
}
const DURATION_1_DAY = env0_2.DURATION_1_DAY;
if (DURATION_1_DAY === a0) {
return intl.formatToPlainString(t['k2UNz+'], {days: 1});
}
const DURATION_1_WEEK = env0_2.DURATION_1_WEEK;
if (DURATION_1_WEEK === a0) {
return intl.formatToPlainString(t.EmoBD2, {weeks: 1});
}
}
function getDisableCommunicationDurationOptions() { // fn#21703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2074:1318, offset: 0x00ef7b9b, size: 59 bytes, params: 1, frame: 12
const Object = global.Object;
let value = Object.keys(env0_2);
value = value.filter(function(a0) {
return global.isNaN((0, global.Number)(a0));
});
return value.map(_fun21705);
}
function _fun21705(a0) { // fn#21705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2074:1372, offset: 0x00ef7bf5, size: 65 bytes, params: 2, frame: 14
return {id: a0, label: getFriendlyDurationString(env1_2[a0]) ?? '', value: env1_2[a0]};
}