// Module ID: 9989 // Function ID: 9990 // Name: getPushNotificationSelectOptions // Dependencies: [676, 4590, 1236, 2] // Exports: getPushNotificationSelectOptions, getUnreadSelectOptions // Module 9989 (getPushNotificationSelectOptions) import set from "set" /* 2 */; import ME from "ME" /* 676 */; import getSystemLocale from "getSystemLocale" /* 1236 */; import ReadStateTypes from "ReadStateTypes" /* 4590 */; const UserNotificationSettings = ME.UserNotificationSettings; const UnreadSetting = ReadStateTypes.UnreadSetting; const result = set.fileFinishedImporting("modules/notifications/settings/utils/notificationSettingsPresetOptionUtils.tsx"); export const getPushNotificationSelectOptions = function getPushNotificationSelectOptions() { let obj = { label: null, value: null }; const intl = getSystemLocale.intl; obj[0] = intl.string(getSystemLocale.t["HVah/3"]); obj[1] = UserNotificationSettings.ALL_MESSAGES; const items = [obj, , ]; obj = { label: null, value: null }; const intl2 = getSystemLocale.intl; obj[0] = intl2.string(getSystemLocale.t["tu+ZWJ"]); obj[1] = UserNotificationSettings.ONLY_MENTIONS; items[1] = obj; obj = { label: null, value: null }; const intl3 = getSystemLocale.intl; obj[0] = intl3.string(getSystemLocale.t.X4wWUi); obj[1] = UserNotificationSettings.NO_MESSAGES; items[2] = obj; return items; }; export const getUnreadSelectOptions = function getUnreadSelectOptions(notificationSetting) { let obj = { label: null, value: null }; const intl = getSystemLocale.intl; obj[0] = intl.string(getSystemLocale.t["HVah/3"]); obj[1] = UnreadSetting.ALL_MESSAGES; const items = [obj, ]; obj = { value: UnreadSetting.ONLY_MENTIONS, label: null, disabled: null }; const intl2 = getSystemLocale.intl; obj[1] = intl2.string(getSystemLocale.t["tu+ZWJ"]); notificationSetting = undefined; if (notificationSetting != null) { notificationSetting = notificationSetting.notificationSetting; } obj[2] = notificationSetting === UserNotificationSettings.ALL_MESSAGES; items[1] = obj; return items; };