2026-08-15 05:55:55 +00:00
|
|
|
// Module ID: 10100
|
|
|
|
|
// Function ID: 10101
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getPushNotificationSelectOptions
|
2026-08-15 05:55:55 +00:00
|
|
|
// Dependencies: [676, 5044, 1236, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: getPushNotificationSelectOptions, getUnreadSelectOptions
|
|
|
|
|
|
2026-08-15 05:55:55 +00:00
|
|
|
// Module 10100 (getPushNotificationSelectOptions)
|
2026-07-23 10:11:24 +00:00
|
|
|
import { UserNotificationSettings } from "ME";
|
|
|
|
|
import { UnreadSetting } from "ReadStateTypes";
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = require("getSystemLocale").fileFinishedImporting("modules/notifications/settings/utils/notificationSettingsPresetOptionUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const getPushNotificationSelectOptions = function getPushNotificationSelectOptions() {
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = { label: null, value: null };
|
|
|
|
|
const intl = require(1236) /* getSystemLocale */.intl;
|
|
|
|
|
obj[0] = intl.string(require(1236) /* getSystemLocale */.t["HVah/3"]);
|
|
|
|
|
obj[1] = UserNotificationSettings.ALL_MESSAGES;
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [obj, , ];
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { label: null, value: null };
|
|
|
|
|
const intl2 = require(1236) /* getSystemLocale */.intl;
|
|
|
|
|
obj[0] = intl2.string(require(1236) /* getSystemLocale */.t["tu+ZWJ"]);
|
|
|
|
|
obj[1] = UserNotificationSettings.ONLY_MENTIONS;
|
2026-07-20 16:05:17 +00:00
|
|
|
items[1] = obj;
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { label: null, value: null };
|
|
|
|
|
const intl3 = require(1236) /* getSystemLocale */.intl;
|
|
|
|
|
obj[0] = intl3.string(require(1236) /* getSystemLocale */.t.X4wWUi);
|
|
|
|
|
obj[1] = UserNotificationSettings.NO_MESSAGES;
|
2026-07-20 16:05:17 +00:00
|
|
|
items[2] = obj;
|
|
|
|
|
return items;
|
|
|
|
|
};
|
|
|
|
|
export const getUnreadSelectOptions = function getUnreadSelectOptions(notificationSetting) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = { label: null, value: null };
|
|
|
|
|
const intl = require(1236) /* getSystemLocale */.intl;
|
|
|
|
|
obj[0] = intl.string(require(1236) /* getSystemLocale */.t["HVah/3"]);
|
|
|
|
|
obj[1] = UnreadSetting.ALL_MESSAGES;
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [obj, ];
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { value: UnreadSetting.ONLY_MENTIONS, label: null, disabled: null };
|
|
|
|
|
const intl2 = require(1236) /* getSystemLocale */.intl;
|
|
|
|
|
obj[1] = intl2.string(require(1236) /* getSystemLocale */.t["tu+ZWJ"]);
|
|
|
|
|
notificationSetting = undefined;
|
|
|
|
|
if (notificationSetting != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
notificationSetting = notificationSetting.notificationSetting;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[2] = notificationSetting === UserNotificationSettings.ALL_MESSAGES;
|
2026-07-20 16:05:17 +00:00
|
|
|
items[1] = obj;
|
|
|
|
|
return items;
|
|
|
|
|
};
|