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

66 lines
4.0 KiB
TypeScript

/* Metro module 16262; source: modules/headless_tasks/android/MuteAction.tsx; dependencies: [670, 16260, 3738, 6613, 6610, 2] */
import NotificationSettingsModalActionCreators from '../../../actions/NotificationSettingsModalActionCreators.tsx'; /* Metro dependency 6613 */
import HeadlessTaskUtils from '../HeadlessTaskUtils.tsx'; /* Metro dependency 16260 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UserSettingsConstantsModule from '../../user_settings/UserSettingsConstants.tsx'; /* Metro dependency 670 */
import * as NotificationSettingsUtilsModule from '../../../utils/NotificationSettingsUtils.tsx'; /* Metro dependency 6610 */
function _fun125708(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16470:6, offset: 0x025e18b5, size: 92 bytes, params: 8, frame: 13
let env0_0 = require;
module.exports = function(a0) {
var env0_0 = a0;
var Promise = global.Promise;
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
var value2 = new Promise(_fun125710);
return value2 instanceof Object ? value2 : value;
};
(FileImportTrackerModule).fileFinishedImporting('modules/headless_tasks/android/MuteAction.tsx');
function exports_125709(a0) { // fn#125709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16470:84, offset: 0x025e1911, size: 46 bytes, params: 2, frame: 11
const env0_0 = a0;
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(_fun125710);
return promise instanceof Object ? promise : value;
function _fun125710(a0) { // fn#125710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16470:100, offset: 0x025e193f, size: 54 bytes, params: 2, frame: 12
var environment;
const env0_0 = a0;
const value = environment.__proto__;
(HeadlessTaskUtils).awaitStorage(_fun125711);
function _fun125711() { // fn#125711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16470:126, offset: 0x025e1975, size: 241 bytes, params: 1, frame: 23
var r10;
var value3;
var value4;
var add;
let muteTime = env1_0.muteTime;
const value2 = null;
if (muteTime === -1) {
r10 = value2;
} else {
value3 = environment.__proto__.__proto__;
value4 = (importDefault(3738) /* metro dependency 3738 */)();
add = value4.add;
muteTime = env1_0.muteTime;
r10 = Reflect.apply(add, value4, [value2 != muteTime ? muteTime : MuteUntilSeconds.HOURS_1,
'second']).toISOString();
}
const defaultImport = NotificationSettingsModalActionCreators;
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
const {guildId, channelId} = env1_0;
const object = {muted: true};
const HOURS_1 = MuteUntilSeconds.HOURS_1;
object.mute_config = {selected_time_window: HOURS_1, end_time: r10};
const NotificationLabels = (NotificationSettingsUtilsModule).NotificationLabels;
const Muted = NotificationLabels.Muted;
Reflect.apply(updateChannelOverrideSettings, defaultImport, [guildId, channelId, object, Muted]);
env0_0(true);
}
}
}
}
global.__d(_fun125708, 16262, [670, 16260, 3738, 6613, 6610,
2]) /* metro module 16262, dependencies: [670, 16260, 3738, 6613, 6610, 2] */;