Files
2026-07-28 01:06:53 +03:00

114 lines
6.0 KiB
TypeScript

/* Metro module 15840; source: modules/user_settings/UserSettingsManager.tsx; dependencies: [6, 7, 15, 17, 18, 3829, 4860, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import AutomaticLifecycleManager from '../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UserSettingsModule from './UserSettings.tsx'; /* Metro dependency 3829 */
function _fun121779(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16048:6, offset: 0x02551129, size: 238 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = AutomaticLifecycleManager;
value = _fun121783(value);
const value3 = new value();
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/UserSettingsManager.tsx');
exports.default = value3;
exports.UserSettingsManager = value;
function _isNativeReflectConstruct_121780() { // fn#121780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16048:148, offset: 0x02551217, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_121780_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun121783(a0) { // fn#121783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16048:352, offset: 0x02551279, size: 99 bytes, params: 2, frame: 16
const UserSettingsManager2 = UserSettingsManager;
Inherits(UserSettingsManager2, a0);
return CreateClass(UserSettingsManager2, [{key: 'setVerifyTimezone', value: function() {
env1_7 = true;
}}, {key: 'ensureTimezoneUpdated', value: value_121787}]);
function UserSettingsManager(a0) { // fn#121784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16048:364, offset: 0x025512dc, size: 176 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_2;
binding(this, UserSettingsManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_5(UserSettingsManager);
binding = env1_4;
if (_isNativeReflectConstruct_121780()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_5(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.actions = {POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_121785, OVERLAY_INITIALIZE: value.setVerifyTimezone,
USER_SETTINGS_PROTO_UPDATE: value.ensureTimezoneUpdated};
return value;
function UserSettingsManagerPOST_CONNECTION_OPEN() { // fn#121785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16048:639, owner: UserSettingsManager.POST_CONNECTION_OPEN, offset: 0x0255138c, size: 21 bytes, params: 1, frame: 9
env0_0.setVerifyTimezone();
}
}
function value_121787() { // fn#121787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16048:899, offset: 0x025513ae, size: 124 bytes, params: 1, frame: 14
var Date;
var value2;
var date;
var timezoneOffset;
var TimezoneOffset;
if (env1_7) {
Date = global.Date;
value2 = Object.create(Date.prototype, {constructor: {value: Date}});
date = new Date();
timezoneOffset = (date instanceof Object ? date : value2).getTimezoneOffset();
TimezoneOffset = (require(3829) /* metro dependency 3829: UserSettings */).TimezoneOffset;
if (TimezoneOffset.getSetting() !== timezoneOffset) {
global.setImmediate(_fun121788);
}
}
function _fun121788() { // fn#121788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16048:1013, offset: 0x0255142a, size: 51 bytes, params: 1, frame: 11
const TimezoneOffset = (UserSettingsModule).TimezoneOffset;
return TimezoneOffset.updateSetting(env0_0);
}
}
}
}
global.__d(_fun121779, 15840, [6, 7, 15, 17, 18, 3829, 4860,
2]) /* metro module 15840, dependencies: [6, 7, 15, 17, 18, 3829, 4860, 2] */;