This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,52 +1,61 @@
/* Metro module 8525; source: modules/custom_status/utils/computeInitialClearAfter.tsx; dependencies: [8522, 3829, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UserSettingsModule from '../../user_settings/UserSettings.tsx'; /* Metro dependency 3829 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 8522 */
function _fun67587(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8710:6, offset: 0x01c29c0c, size: 155 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const ClearAfterValues = (require(8522) /* metro dependency 8522: Constants */).ClearAfterValues;
const ClearAfterValues = (ConstantsModule).ClearAfterValues;
const MINUTES_30 = ClearAfterValues.MINUTES_30;
items = [MINUTES_30];
items2 = [MINUTES_30];
const HOURS_1 = ClearAfterValues.HOURS_1;
items[1] = HOURS_1;
items2[1] = HOURS_1;
const HOURS_4 = ClearAfterValues.HOURS_4;
items[2] = HOURS_4;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/custom_status/utils/computeInitialClearAfter.tsx');
items2[2] = HOURS_4;
(FileImportTrackerModule).fileFinishedImporting('modules/custom_status/utils/computeInitialClearAfter.tsx');
exports.default = computeInitialClearAfter;
}
function computeInitialClearAfter() { // fn#67588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8710:260, offset: 0x01c29ca7, size: 370 bytes, params: 1, frame: 19
var r4;
var value14;
const CustomStatusSetting = (require(3829) /* metro dependency 3829: UserSettings */).CustomStatusSetting;
const setting = CustomStatusSetting.getSetting();
if (setting != null) {
if (setting.expiresAtMs === '') {
return ClearAfterValues.TODAY;
}
var Number = global.Number;
var value3 = Number(setting.expiresAtMs);
if (global.isNaN(value3)) {
return ClearAfterValues.TODAY;
}
if (value3 === 0) {
return ClearAfterValues.DONT_CLEAR;
}
var Date = global.Date;
var date = new Date();
Date = global.Date;
date = new Date(value3);
var getFullYear = date.getFullYear;
var value8 = Reflect.apply(getFullYear, date, []);
getFullYear = date.getFullYear;
r4 = value8 === Reflect.apply(getFullYear, date, []) && date.getMonth() === date.getMonth();
r4 = r4 && date.getDate() === date.getDate();
if (r4) {
value14 = global.Number(value3);
function computeInitialClearAfter() { // fn#67588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8710:260, offset: 0x01c29ca7, size: 370 bytes, params: 1, frame: 19
var r4;
var value14;
const CustomStatusSetting = (UserSettingsModule).CustomStatusSetting;
const setting = CustomStatusSetting.getSetting();
if (setting != null) {
if (setting.expiresAtMs === '') {
return ClearAfterValues.TODAY;
}
var Number = global.Number;
var value3 = Number(setting.expiresAtMs);
if (global.isNaN(value3)) {
return ClearAfterValues.TODAY;
}
if (value3 === 0) {
return ClearAfterValues.DONT_CLEAR;
}
var Date = global.Date;
var date = new Date();
Date = global.Date;
var env0_0 = value14 - Date.now();
return env0_3.find(_fun67589) ?? ClearAfterValues.TODAY;
date = new Date(value3);
var getFullYear = date.getFullYear;
var value8 = Reflect.apply(getFullYear, date, []);
getFullYear = date.getFullYear;
r4 = value8 === Reflect.apply(getFullYear, date, []) && date.getMonth() === date.getMonth();
r4 = r4 && date.getDate() === date.getDate();
if (r4) {
value14 = global.Number(value3);
Date = global.Date;
var env0_0 = value14 - Date.now();
return env0_3.find(_fun67589) ?? ClearAfterValues.TODAY;
}
}
return ClearAfterValues.TODAY;
function _fun67589(a0) { // fn#67589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8710:689, offset: 0x00e583c8, size: 16 bytes, params: 2, frame: 2
return env0_0 <= a0;
}
}
return ClearAfterValues.TODAY;
}
global.__d(_fun67587, 8525, [8522, 3829, 2]) /* metro module 8525, dependencies: [8522, 3829, 2] */;
@@ -1,72 +1,78 @@
/* Metro module 10502; source: modules/custom_status/utils/formatClearAfterOption.tsx; dependencies: [8522, 3826, 1244, 672, 1360, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as GlobalUtilsModule from '../../../utils/GlobalUtils.tsx'; /* Metro dependency 1360 */
import * as DateUtilsModule from '../../../utils/DateUtils.tsx'; /* Metro dependency 3826 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 8522 */
function _fun81220(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10688:6, offset: 0x01e9ecbb, size: 135 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(8522) /* metro dependency 8522: Constants */).ClearAfterValues;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/custom_status/utils/formatClearAfterOption.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/custom_status/utils/formatClearAfterOption.tsx');
exports.default = formatClearAfterOption;
function formatDuration_81221(a0) { // fn#81221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10688:138, offset: 0x01e9ed42, size: 256 bytes, params: 2, frame: 18
var r0;
var formatToPlainString;
var DN91Jz;
var object;
let Date = global.Date;
let value = Date.now();
value += a0;
const isSameDay = DateUtilsModule.isSameDay;
Date = global.Date;
let date = new Date();
Date = global.Date;
const value5 = Object.create(Date.prototype, {constructor: {value: Date}});
date = new Date(value);
const isSameDay2 = Reflect.apply(isSameDay, DateUtilsModule, [date, date instanceof Object ? date : value5]);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
if (isSameDay2) {
value = intl.data.formatTime(value, {format: 'short'});
r0 = value;
} else {
formatToPlainString = intl.formatToPlainString;
DN91Jz = (require(1244) /* metro dependency 1244: indexNative */).t.DN91Jz;
object = {};
object.time = (require(1244) /* metro dependency 1244: indexNative */).intl.data.formatTime(value,
{format: 'short'});
value = Reflect.apply(formatToPlainString, intl, [DN91Jz, object]);
r0 = value;
}
return r0;
}
function formatClearAfterOption(a0) { // fn#81222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10688:463, offset: 0x01e9ee42, size: 761 bytes, params: 2, frame: 20
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
const TODAY = ClearAfterValues.TODAY;
if (TODAY === a0) {
return '' + intl.formatToPlainString(t.Rea2gR,
{hours: 24}) + ' (' + formatDuration_81221((importDefault(672) /* metro dependency 672: Durations */).Millis.DAY) + ')';
}
const HOURS_4 = ClearAfterValues.HOURS_4;
if (HOURS_4 === a0) {
return '' + intl.formatToPlainString(t.Rea2gR,
{hours: 4}) + ' (' + formatDuration_81221(4 * (importDefault(672) /* metro dependency 672: Durations */).Millis.HOUR) + ')';
}
const HOURS_1 = ClearAfterValues.HOURS_1;
if (HOURS_1 === a0) {
return '' + intl.formatToPlainString(t.Rea2gR,
{hours: 1}) + ' (' + formatDuration_81221((importDefault(672) /* metro dependency 672: Durations */).Millis.HOUR) + ')';
}
const MINUTES_30 = ClearAfterValues.MINUTES_30;
if (MINUTES_30 === a0) {
return '' + intl.formatToPlainString(t.TS3eJb,
{minutes: 30}) + ' (' + formatDuration_81221(30 * (importDefault(672) /* metro dependency 672: Durations */).Millis.MINUTE) + ')';
}
const DONT_CLEAR = ClearAfterValues.DONT_CLEAR;
if (DONT_CLEAR === a0) {
return intl.string(t.bRn8cq);
}
(GlobalUtilsModule).assertNever(a0);
}
}
function formatDuration_81221(a0) { // fn#81221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10688:138, offset: 0x01e9ed42, size: 256 bytes, params: 2, frame: 18
var r0;
var formatToPlainString;
var DN91Jz;
var object2;
let Date = global.Date;
let value = Date.now();
value += a0;
const dateUtilsModule = require(3826) /* metro dependency 3826: DateUtils */;
const isSameDay = dateUtilsModule.isSameDay;
Date = global.Date;
let date = new Date();
Date = global.Date;
const value5 = Object.create(Date.prototype, {constructor: {value: Date}});
date = new Date(value);
const isSameDay2 = Reflect.apply(isSameDay, dateUtilsModule, [date, date instanceof Object ? date : value5]);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
if (isSameDay2) {
value = intl.data.formatTime(value, {format: 'short'});
r0 = value;
} else {
formatToPlainString = intl.formatToPlainString;
DN91Jz = (require(1244) /* metro dependency 1244: indexNative */).t.DN91Jz;
object2 = {};
object2.time = (require(1244) /* metro dependency 1244: indexNative */).intl.data.formatTime(value,
{format: 'short'});
value = Reflect.apply(formatToPlainString, intl, [DN91Jz, object2]);
r0 = value;
}
return r0;
}
function formatClearAfterOption(a0) { // fn#81222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10688:463, offset: 0x01e9ee42, size: 761 bytes, params: 2, frame: 20
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const TODAY = ClearAfterValues.TODAY;
if (TODAY === a0) {
return '' + intl.formatToPlainString(t.Rea2gR,
{hours: 24}) + ' (' + formatDuration_81221((importDefault(672) /* metro dependency 672: Durations */).Millis.DAY) + ')';
}
const HOURS_4 = ClearAfterValues.HOURS_4;
if (HOURS_4 === a0) {
return '' + intl.formatToPlainString(t.Rea2gR,
{hours: 4}) + ' (' + formatDuration_81221(4 * (importDefault(672) /* metro dependency 672: Durations */).Millis.HOUR) + ')';
}
const HOURS_1 = ClearAfterValues.HOURS_1;
if (HOURS_1 === a0) {
return '' + intl.formatToPlainString(t.Rea2gR,
{hours: 1}) + ' (' + formatDuration_81221((importDefault(672) /* metro dependency 672: Durations */).Millis.HOUR) + ')';
}
const MINUTES_30 = ClearAfterValues.MINUTES_30;
if (MINUTES_30 === a0) {
return '' + intl.formatToPlainString(t.TS3eJb,
{minutes: 30}) + ' (' + formatDuration_81221(30 * (importDefault(672) /* metro dependency 672: Durations */).Millis.MINUTE) + ')';
}
const DONT_CLEAR = ClearAfterValues.DONT_CLEAR;
if (DONT_CLEAR === a0) {
return intl.string(t.bRn8cq);
}
(require(1360) /* metro dependency 1360: GlobalUtils */).assertNever(a0);
}
global.__d(_fun81220, 10502, [8522, 3826, 1244, 672, 1360,
2]) /* metro module 10502, dependencies: [8522, 3826, 1244, 672, 1360, 2] */;
@@ -1,68 +1,73 @@
/* Metro module 10503; source: modules/custom_status/utils/formatClearAfterValue.tsx; dependencies: [8522, 3826, 1244, 672, 1360, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as GlobalUtilsModule from '../../../utils/GlobalUtils.tsx'; /* Metro dependency 1360 */
import * as DateUtilsModule from '../../../utils/DateUtils.tsx'; /* Metro dependency 3826 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 8522 */
function _fun81223(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10689:6, offset: 0x01e9f13b, size: 135 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(8522) /* metro dependency 8522: Constants */).ClearAfterValues;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/custom_status/utils/formatClearAfterValue.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/custom_status/utils/formatClearAfterValue.tsx');
exports.default = formatClearAfterValue;
function formatDuration_81224(a0) { // fn#81224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10689:138, offset: 0x01e9f1c2, size: 256 bytes, params: 2, frame: 18
var r0;
var formatToPlainString;
var bI7n9i;
var object;
let Date = global.Date;
let value = Date.now();
value += a0;
const isSameDay = DateUtilsModule.isSameDay;
Date = global.Date;
let date = new Date();
Date = global.Date;
const value5 = Object.create(Date.prototype, {constructor: {value: Date}});
date = new Date(value);
const isSameDay2 = Reflect.apply(isSameDay, DateUtilsModule, [date, date instanceof Object ? date : value5]);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
if (isSameDay2) {
value = intl.data.formatTime(value, {format: 'short'});
r0 = value;
} else {
formatToPlainString = intl.formatToPlainString;
bI7n9i = (require(1244) /* metro dependency 1244: indexNative */).t.bI7n9i;
object = {};
object.time = (require(1244) /* metro dependency 1244: indexNative */).intl.data.formatTime(value,
{format: 'short'});
value = Reflect.apply(formatToPlainString, intl, [bI7n9i, object]);
r0 = value;
}
return r0;
}
function formatClearAfterValue(a0) { // fn#81225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10689:462, offset: 0x01e9f2c2, size: 373 bytes, params: 2, frame: 15
var intl;
const TODAY = ClearAfterValues.TODAY;
if (TODAY === a0) {
return formatDuration_81224((importDefault(672) /* metro dependency 672: Durations */).Millis.DAY);
}
const HOURS_4 = ClearAfterValues.HOURS_4;
if (HOURS_4 === a0) {
return formatDuration_81224(4 * (importDefault(672) /* metro dependency 672: Durations */).Millis.HOUR);
}
const HOURS_1 = ClearAfterValues.HOURS_1;
if (HOURS_1 === a0) {
return formatDuration_81224((importDefault(672) /* metro dependency 672: Durations */).Millis.HOUR);
}
const MINUTES_30 = ClearAfterValues.MINUTES_30;
if (MINUTES_30 === a0) {
return formatDuration_81224(30 * (importDefault(672) /* metro dependency 672: Durations */).Millis.MINUTE);
}
const DONT_CLEAR = ClearAfterValues.DONT_CLEAR;
if (DONT_CLEAR === a0) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bRn8cq);
}
(GlobalUtilsModule).assertNever(a0);
}
}
function formatDuration_81224(a0) { // fn#81224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10689:138, offset: 0x01e9f1c2, size: 256 bytes, params: 2, frame: 18
var r0;
var formatToPlainString;
var bI7n9i;
var object2;
let Date = global.Date;
let value = Date.now();
value += a0;
const dateUtilsModule = require(3826) /* metro dependency 3826: DateUtils */;
const isSameDay = dateUtilsModule.isSameDay;
Date = global.Date;
let date = new Date();
Date = global.Date;
const value5 = Object.create(Date.prototype, {constructor: {value: Date}});
date = new Date(value);
const isSameDay2 = Reflect.apply(isSameDay, dateUtilsModule, [date, date instanceof Object ? date : value5]);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
if (isSameDay2) {
value = intl.data.formatTime(value, {format: 'short'});
r0 = value;
} else {
formatToPlainString = intl.formatToPlainString;
bI7n9i = (require(1244) /* metro dependency 1244: indexNative */).t.bI7n9i;
object2 = {};
object2.time = (require(1244) /* metro dependency 1244: indexNative */).intl.data.formatTime(value,
{format: 'short'});
value = Reflect.apply(formatToPlainString, intl, [bI7n9i, object2]);
r0 = value;
}
return r0;
}
function formatClearAfterValue(a0) { // fn#81225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10689:462, offset: 0x01e9f2c2, size: 373 bytes, params: 2, frame: 15
var intl;
const TODAY = ClearAfterValues.TODAY;
if (TODAY === a0) {
return formatDuration_81224((importDefault(672) /* metro dependency 672: Durations */).Millis.DAY);
}
const HOURS_4 = ClearAfterValues.HOURS_4;
if (HOURS_4 === a0) {
return formatDuration_81224(4 * (importDefault(672) /* metro dependency 672: Durations */).Millis.HOUR);
}
const HOURS_1 = ClearAfterValues.HOURS_1;
if (HOURS_1 === a0) {
return formatDuration_81224((importDefault(672) /* metro dependency 672: Durations */).Millis.HOUR);
}
const MINUTES_30 = ClearAfterValues.MINUTES_30;
if (MINUTES_30 === a0) {
return formatDuration_81224(30 * (importDefault(672) /* metro dependency 672: Durations */).Millis.MINUTE);
}
const DONT_CLEAR = ClearAfterValues.DONT_CLEAR;
if (DONT_CLEAR === a0) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bRn8cq);
}
(require(1360) /* metro dependency 1360: GlobalUtils */).assertNever(a0);
}
global.__d(_fun81223, 10503, [8522, 3826, 1244, 672, 1360,
2]) /* metro module 10503, dependencies: [8522, 3826, 1244, 672, 1360, 2] */;
@@ -1,9 +1,11 @@
/* Metro module 8527; source: modules/custom_status/utils/getClearAfterDuration.tsx; dependencies: [8522, 672, 44, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 8522 */
function _fun67593(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8712:6, offset: 0x01c2a125, size: 120 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(8522) /* metro dependency 8522: Constants */).ClearAfterValues;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/custom_status/utils/getClearAfterDuration.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/custom_status/utils/getClearAfterDuration.tsx');
exports.default = function(a0) {
var r0;
var value = a0;
@@ -17,3 +19,4 @@ function _fun67593(global, require, importDefault, importAll, module, exports, d
};
}
global.__d(_fun67593, 8527, [8522, 672, 44, 2]) /* metro module 8527, dependencies: [8522, 672, 44, 2] */;
@@ -1,25 +1,26 @@
/* Metro module 8524; source: modules/custom_status/utils/getRandomCustomStatusPrompt.tsx; dependencies: [8522, 1244, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 8522 */
function _fun67583(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8709:6, offset: 0x01c29a96, size: 127 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const constantsModule = require(8522) /* metro dependency 8522: Constants */;
const env0_2 = constantsModule.CustomStatusPrompts;
const env0_3 = constantsModule.CustomStatusPromptValues;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/custom_status/utils/getRandomCustomStatusPrompt.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/custom_status/utils/getRandomCustomStatusPrompt.tsx');
exports.default = getRandomCustomStatusPrompt;
function getRandomCustomStatusPrompt(a0) { // fn#67584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8709:262, offset: 0x01c29b15, size: 155 bytes, params: 2, frame: 14
const env0_0 = a0;
const r1 = a0 == null ? CustomStatusPrompts : a0.size > 0 ? CustomStatusPrompts.filter(_fun67585) : CustomStatusPrompts;
return r1.length === 0 ? {value: CustomStatusPromptValues.ADD_STATUS, label: function() {
return require(dependencyMap[1]).intl.string(require(dependencyMap[1]).t.Vq4UmS);
}} : r1[global.Math.floor(global.Math.random() * r1.length)];
function _fun67585({value}) { // fn#67585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8709:336, offset: 0x01c29bb0, size: 30 bytes, params: 2, frame: 11
const binding = env0_0;
return !binding.has(value);
}
}
}
function getRandomCustomStatusPrompt(a0) { // fn#67584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8709:262, offset: 0x01c29b15, size: 155 bytes, params: 2, frame: 14
const env0_0 = a0;
const r1 = a0 == null ? CustomStatusPrompts : a0.size > 0 ? CustomStatusPrompts.filter(_fun67585) : CustomStatusPrompts;
return r1.length === 0 ? {value: CustomStatusPromptValues.ADD_STATUS, label: function() {
return require(dependencyMap[1]).intl.string(require(dependencyMap[1]).t.Vq4UmS);
}} : r1[global.Math.floor(global.Math.random() * r1.length)];
}
function _fun67585({value}) { // fn#67585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8709:336, offset: 0x01c29bb0, size: 30 bytes, params: 2, frame: 11
const binding = env0_0;
return !binding.has(value);
}
global.__d(_fun67583, 8524, [8522, 1244, 2]) /* metro module 8524, dependencies: [8522, 1244, 2] */;
@@ -1,26 +1,29 @@
/* Metro module 14493; source: modules/custom_status/utils/isActivityPermanentCustomStatus.tsx; dependencies: [661, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun109687(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14690:6, offset: 0x02356aa1, size: 109 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(661) /* metro dependency 661: Constants */).ActivityTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/custom_status/utils/isActivityPermanentCustomStatus.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/custom_status/utils/isActivityPermanentCustomStatus.tsx');
exports.isActivityPermanentCustomStatus = isActivityPermanentCustomStatus;
}
function isActivityPermanentCustomStatus(a0) { // fn#109688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14690:251, offset: 0x02356b0e, size: 56 bytes, params: 2, frame: 5
var r0;
var timestamps;
const type = a0.type;
const CUSTOM_STATUS = ActivityTypes.CUSTOM_STATUS;
let value = type === CUSTOM_STATUS;
if (value) {
timestamps = a0.timestamps;
value = undefined;
value = (timestamps == null ? value : timestamps.end) == null;
r0 = value;
} else {
r0 = value;
function isActivityPermanentCustomStatus(a0) { // fn#109688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14690:251, offset: 0x02356b0e, size: 56 bytes, params: 2, frame: 5
var r0;
var timestamps;
const type = a0.type;
const CUSTOM_STATUS = ActivityTypes.CUSTOM_STATUS;
let value = type === CUSTOM_STATUS;
if (value) {
timestamps = a0.timestamps;
value = undefined;
value = (timestamps == null ? value : timestamps.end) == null;
r0 = value;
} else {
r0 = value;
}
return r0;
}
return r0;
}
global.__d(_fun109687, 14493, [661, 2]) /* metro module 14493, dependencies: [661, 2] */;
@@ -1,32 +1,35 @@
/* Metro module 14494; source: modules/custom_status/utils/isActivityTemporaryCustomStatus.tsx; dependencies: [661, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun109689(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14691:6, offset: 0x02356b46, size: 109 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(661) /* metro dependency 661: Constants */).ActivityTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/custom_status/utils/isActivityTemporaryCustomStatus.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/custom_status/utils/isActivityTemporaryCustomStatus.tsx');
exports.isActivityTemporaryCustomStatus = isActivityTemporaryCustomStatus;
function isActivityTemporaryCustomStatus(a0) { // fn#109690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14691:251, offset: 0x02356bb3, size: 87 bytes, params: 2, frame: 6
var r0;
var timestamps;
const type = a0.type;
const CUSTOM_STATUS = ActivityTypes.CUSTOM_STATUS;
let value = type === CUSTOM_STATUS;
if (value) {
timestamps = a0.timestamps;
value = undefined;
value = (timestamps == null ? value : timestamps.end) != null;
r0 = value;
} else {
r0 = value;
}
if (r0) {
timestamps = a0.timestamps;
value = undefined;
value = (timestamps == null ? value : timestamps.end) > 0;
r0 = value;
}
return r0;
}
}
function isActivityTemporaryCustomStatus(a0) { // fn#109690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14691:251, offset: 0x02356bb3, size: 87 bytes, params: 2, frame: 6
var r0;
var timestamps;
const type = a0.type;
const CUSTOM_STATUS = ActivityTypes.CUSTOM_STATUS;
let value = type === CUSTOM_STATUS;
if (value) {
timestamps = a0.timestamps;
value = undefined;
value = (timestamps == null ? value : timestamps.end) != null;
r0 = value;
} else {
r0 = value;
}
if (r0) {
timestamps = a0.timestamps;
value = undefined;
value = (timestamps == null ? value : timestamps.end) > 0;
r0 = value;
}
return r0;
}
global.__d(_fun109689, 14494, [661, 2]) /* metro module 14494, dependencies: [661, 2] */;
@@ -1,13 +1,17 @@
/* Metro module 8528; source: modules/custom_status/utils/removeCustomStatus.tsx; dependencies: [8526, 2] */
import SetCustomStatus from '../setCustomStatus.tsx'; /* Metro dependency 8526 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun67595(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8713:6, offset: 0x01c2a204, size: 99 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/custom_status/utils/removeCustomStatus.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/custom_status/utils/removeCustomStatus.tsx');
exports.default = removeCustomStatus;
function removeCustomStatus() { // fn#67596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8713:186, offset: 0x01c2a267, size: 45 bytes, params: 1, frame: 11
(SetCustomStatus)({'text': '', 'emojiInfo': null,
'clearAfter': null});
}
}
function removeCustomStatus() { // fn#67596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8713:186, offset: 0x01c2a267, size: 45 bytes, params: 1, frame: 11
(importDefault(8526) /* metro dependency 8526: setCustomStatus */)({'text': '', 'emojiInfo': null,
'clearAfter': null});
}
global.__d(_fun67595, 8528, [8526, 2]) /* metro module 8528, dependencies: [8526, 2] */;
@@ -1,34 +1,39 @@
/* Metro module 8693; source: modules/custom_status/utils/useCustomStatusActivityForUser.tsx; dependencies: [1226, 4396, 661, 566, 6882, 2] */
import AuthenticationStore from '../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import PresenceStore from '../../../stores/PresenceStore.tsx'; /* Metro dependency 4396 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingToActivityModule from './userSettingToActivity.tsx'; /* Metro dependency 6882 */
function _fun68309(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8878:6, offset: 0x01c4870d, size: 152 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const presenceStore = importDefault(4396) /* metro dependency 4396: PresenceStore */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).ActivityTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/custom_status/utils/useCustomStatusActivityForUser.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/custom_status/utils/useCustomStatusActivityForUser.tsx');
exports.default = useCustomStatusActivityForUser;
function useCustomStatusActivityForUser(a0) { // fn#68310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8878:246, offset: 0x01c487a5, size: 133 bytes, params: 2, frame: 19
const env0_0 = a0;
let useStateFromStores = FluxModule.useStateFromStores;
const value2 = Reflect.apply(useStateFromStores, FluxModule, [[AuthenticationStore], _fun68311]);
const value3 = (UserSettingToActivityModule).useCustomStatusActivity();
useStateFromStores = FluxModule.useStateFromStores;
return value2 ? value3 : Reflect.apply(useStateFromStores, FluxModule, [[PresenceStore], _fun68312]);
function _fun68311() { // fn#68311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8878:327, offset: 0x01c4882a, size: 30 bytes, params: 1, frame: 9
const value = environment.__proto__;
return AuthenticationStore.getId() === env0_0;
}
function _fun68312() { // fn#68312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8878:417, offset: 0x01c48848, size: 37 bytes, params: 1, frame: 13
const presenceStoreBinding = PresenceStore;
return presenceStoreBinding.findActivity(env0_0, function({type}) {
return type === ActivityTypes.CUSTOM_STATUS;
});
}
}
}
function useCustomStatusActivityForUser(a0) { // fn#68310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8878:246, offset: 0x01c487a5, size: 133 bytes, params: 2, frame: 19
const env0_0 = a0;
const fluxModule = require(566) /* metro dependency 566: flux */;
let useStateFromStores = fluxModule.useStateFromStores;
const value2 = Reflect.apply(useStateFromStores, fluxModule, [[AuthenticationStore], _fun68311]);
const value3 = (require(6882) /* metro dependency 6882: userSettingToActivity */).useCustomStatusActivity();
const moduleValue3 = fluxModule;
useStateFromStores = moduleValue3.useStateFromStores;
return value2 ? value3 : Reflect.apply(useStateFromStores, moduleValue3, [[PresenceStore], _fun68312]);
}
function _fun68311() { // fn#68311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8878:327, offset: 0x01c4882a, size: 30 bytes, params: 1, frame: 9
const value = environment.__proto__;
return AuthenticationStore.getId() === env0_0;
}
function _fun68312() { // fn#68312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8878:417, offset: 0x01c48848, size: 37 bytes, params: 1, frame: 13
return PresenceStore.findActivity(env0_0, function({type}) {
return type === ActivityTypes.CUSTOM_STATUS;
});
}
global.__d(_fun68309, 8693, [1226, 4396, 661, 566, 6882,
2]) /* metro module 8693, dependencies: [1226, 4396, 661, 566, 6882, 2] */;
@@ -1,80 +1,85 @@
/* Metro module 6882; source: modules/custom_status/utils/userSettingToActivity.tsx; dependencies: [31, 6540, 661, 3797, 3829, 566, 2] */
import EmojiStore from '../../emojis/EmojiStore.tsx'; /* Metro dependency 6540 */
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 FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsModule from '../../user_settings/UserSettings.tsx'; /* Metro dependency 3829 */
function _fun54648(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7060:6, offset: 0x0136ae22, size: 179 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(31) /* metro dependency 31 */).useMemo;
const emojiStore = importDefault(6540) /* metro dependency 6540: EmojiStore */;
const env0_5 = (require(661) /* metro dependency 661: Constants */).ActivityTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/custom_status/utils/userSettingToActivity.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/custom_status/utils/userSettingToActivity.tsx');
exports.getActivityFromCustomStatus = getActivityFromCustomStatus;
exports.useCustomStatusActivity = useCustomStatusActivity;
}
function _activityFromSetting(a0, a1) { // fn#54649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7060:148, offset: 0x0136aed5, size: 338 bytes, params: 3, frame: 19
var r1;
var defaultImport;
var getByName;
var defaultImport2;
var value3;
const value = null;
if (value != a1) {
r1 = {id: a1.id, name: a1.name, animated: a1.animated};
} else if (value != a0.emojiName) {
if (a0.emojiName === '') {
r1 = value;
function _activityFromSetting(a0, a1) { // fn#54649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7060:148, offset: 0x0136aed5, size: 338 bytes, params: 3, frame: 19
var r1;
var defaultImport;
var getByName;
var defaultImport2;
var value3;
const value = null;
if (value != a1) {
r1 = {id: a1.id, name: a1.name, animated: a1.animated};
} else if (value != a0.emojiName) {
if (a0.emojiName === '') {
r1 = value;
} else {
defaultImport = importDefault(3797) /* metro dependency 3797: UnicodeEmojis */;
getByName = defaultImport.getByName;
defaultImport2 = importDefault(3797) /* metro dependency 3797: UnicodeEmojis */;
value3 = Reflect.apply(getByName, defaultImport, [defaultImport2.convertSurrogateToName(a0.emojiName,
false)]);
r1 = value != value3 ? {'id': null, 'name': null, 'animated': false, name: value3.surrogates} : value;
}
} else {
defaultImport = importDefault(3797) /* metro dependency 3797: UnicodeEmojis */;
getByName = defaultImport.getByName;
defaultImport2 = importDefault(3797) /* metro dependency 3797: UnicodeEmojis */;
value3 = Reflect.apply(getByName, defaultImport, [defaultImport2.convertSurrogateToName(a0.emojiName,
false)]);
r1 = value != value3 ? {'id': null, 'name': null, 'animated': false, name: value3.surrogates} : value;
r1 = value;
}
} else {
r1 = value;
const Number = global.Number;
const expiresAtMs = a0.expiresAtMs;
const value4 = undefined;
const value5 = Number(expiresAtMs);
const label = a0.label;
const r2 = value == label ? value4 : label.value;
const CUSTOM_STATUS = ActivityTypes.CUSTOM_STATUS;
let text = a0.text;
text = text.length > 0 ? a0.text : value4;
return {name: 'Custom Status', type: CUSTOM_STATUS, state: text, timestamps: value5 > 0 ? {end: value5} : value4,
emoji: r1, details: r2, metadata: {label: r2}};
}
const Number = global.Number;
const expiresAtMs = a0.expiresAtMs;
const value4 = undefined;
const value5 = Number(expiresAtMs);
const label = a0.label;
const r2 = value == label ? value4 : label.value;
const CUSTOM_STATUS = ActivityTypes.CUSTOM_STATUS;
let text = a0.text;
text = text.length > 0 ? a0.text : value4;
return {name: 'Custom Status', type: CUSTOM_STATUS, state: text, timestamps: value5 > 0 ? {end: value5} : value4,
emoji: r1, details: r2, metadata: {label: r2}};
}
function getActivityFromCustomStatus(a0) { // fn#54650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7060:756, offset: 0x0136b027, size: 64 bytes, params: 2, frame: 16
const emojiId = a0.emojiId;
const _activityFromSettingBinding = _activityFromSetting;
const value2 = null;
return _activityFromSettingBinding(a0,
value2 != emojiId ? emojiId === '0' ? value2 : EmojiStore.getUsableCustomEmojiById(emojiId) : value2);
}
function getActivityFromCustomStatus(a0) { // fn#54650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7060:756, offset: 0x0136b027, size: 64 bytes, params: 2, frame: 16
const emojiId = a0.emojiId;
const _activityFromSettingBinding = _activityFromSetting;
const value2 = null;
return _activityFromSettingBinding(a0,
value2 != emojiId ? emojiId === '0' ? value2 : EmojiStore.getUsableCustomEmojiById(emojiId) : value2);
}
function useCustomStatusActivity() { // fn#54651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7060:922, offset: 0x0136b067, size: 158 bytes, params: 1, frame: 19
const value2 = undefined;
const CustomStatusSetting = (require(3829) /* metro dependency 3829: UserSettings */).CustomStatusSetting;
const value3 = CustomStatusSetting.useSetting();
const emojiId = value3 == null ? value2 : value3.emojiId;
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStores = fluxModule.useStateFromStores;
let items2 = [EmojiStore];
items2 = [value3, Reflect.apply(useStateFromStores, fluxModule, [items2, _fun54652, [emojiId]])];
return useMemo(_fun54653, items2);
}
function useCustomStatusActivity() { // fn#54651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7060:922, offset: 0x0136b067, size: 158 bytes, params: 1, frame: 19
const value2 = undefined;
const CustomStatusSetting = (UserSettingsModule).CustomStatusSetting;
const value3 = CustomStatusSetting.useSetting();
const emojiId = value3 == null ? value2 : value3.emojiId;
const useStateFromStores = FluxModule.useStateFromStores;
let items2 = [EmojiStore];
items2 = [value3, Reflect.apply(useStateFromStores, FluxModule, [items2, _fun54652, [emojiId]])];
return useMemo(_fun54653, items2);
function _fun54652() { // fn#54652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7060:1065, offset: 0x0136b105, size: 58 bytes, params: 1, frame: 13
const emojiIdBinding = emojiId;
const value2 = null;
return value2 != emojiIdBinding ? emojiId === '0' ? value2 : EmojiStore.getUsableCustomEmojiById(emojiId) : value2;
}
function _fun54652() { // fn#54652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7060:1065, offset: 0x0136b105, size: 58 bytes, params: 1, frame: 13
const emojiIdBinding = emojiId;
const value2 = null;
return value2 != emojiIdBinding ? emojiId === '0' ? value2 : EmojiStore.getUsableCustomEmojiById(emojiId) : value2;
}
function _fun54653() { // fn#54653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7060:1137, offset: 0x0136b13f, size: 41 bytes, params: 1, frame: 14
const value2 = null;
return value2 != env0_0 ? _activityFromSetting(env0_0, env0_2) : value2;
}
}
function _fun54653() { // fn#54653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7060:1137, offset: 0x0136b13f, size: 41 bytes, params: 1, frame: 14
const value2 = null;
return value2 != env0_0 ? _activityFromSetting(env0_0, env0_2) : value2;
}
global.__d(_fun54648, 6882, [31, 6540, 661, 3797, 3829, 566,
2]) /* metro module 6882, dependencies: [31, 6540, 661, 3797, 3829, 566, 2] */;