51 lines
3.0 KiB
TypeScript
51 lines
3.0 KiB
TypeScript
/* Metro module 10949; source: modules/notifications/settings/utils/notificationSettingsPresetOptionUtils.tsx; dependencies: [661, 4865, 1244, 2] */
|
|
function _fun83929(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11135:6, offset: 0x01f2ee62, size: 152 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = (require(661) /* metro dependency 661: Constants */).UserNotificationSettings;
|
|
const env0_3 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/utils/notificationSettingsPresetOptionUtils.tsx');
|
|
exports.getPushNotificationSelectOptions = getPushNotificationSelectOptions;
|
|
exports.getUnreadSelectOptions = getUnreadSelectOptions;
|
|
}
|
|
|
|
function getPushNotificationSelectOptions() { // fn#83930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11135:302, offset: 0x01f2eefa, size: 218 bytes, params: 1, frame: 18
|
|
var object2;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
|
|
const items2 = [{label: Reflect.apply(string, intl, [t['HVah/3']]), value: ALL_MESSAGES}];
|
|
object2 = {};
|
|
object2.label = intl.string(t['tu+ZWJ']);
|
|
const ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS;
|
|
object2.value = ONLY_MENTIONS;
|
|
items2[1] = object2;
|
|
string = intl.string;
|
|
const X4wWUi = t.X4wWUi;
|
|
const NO_MESSAGES = UserNotificationSettings.NO_MESSAGES;
|
|
items2[2] = {label: Reflect.apply(string, intl, [X4wWUi]), value: NO_MESSAGES};
|
|
return items2;
|
|
}
|
|
|
|
function getUnreadSelectOptions(a0) { // fn#83931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11135:540, offset: 0x01f2efd4, size: 190 bytes, params: 2, frame: 18
|
|
var object2;
|
|
const value2 = undefined;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const string = intl.string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
let ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
|
|
const items2 = [{label: Reflect.apply(string, intl, [t['HVah/3']]), value: ALL_MESSAGES}];
|
|
object2 = {};
|
|
const ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
|
|
object2.value = ONLY_MENTIONS;
|
|
object2.label = intl.string(t['tu+ZWJ']);
|
|
const notificationSetting = a0 == null ? value2 : a0.notificationSetting;
|
|
ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
|
|
object2.disabled = notificationSetting === ALL_MESSAGES;
|
|
items2[1] = object2;
|
|
return items2;
|
|
}
|
|
|