// Metro module 4388 (f4389). import { UserNotificationSettings } from "../../../../Constants"; import { UnreadSetting } from "../../../read_states/ReadStateConstants"; import { match } from "../../../../_bundle/Module4389"; import { intl, t } from "../../../../intl/index.native"; let c2602_4 = { ALL_MESSAGES: "all_messages", MENTIONS: "mentions", NOTHING: "nothing", CUSTOM: "custom" }; export { c2602_4 as Presets }; export function presetFromSettings(a0, a1) { return match([a1, a0]).with([UserNotificationSettings.ALL_MESSAGES, UnreadSetting.ALL_MESSAGES], () => c2602_4.ALL_MESSAGES).with([UserNotificationSettings.ONLY_MENTIONS, UnreadSetting.UNSET], () => c2602_4.MENTIONS).with([UserNotificationSettings.ONLY_MENTIONS, UnreadSetting.ONLY_MENTIONS], () => c2602_4.MENTIONS).with([UserNotificationSettings.NO_MESSAGES, UnreadSetting.UNSET], () => c2602_4.NOTHING).with([UserNotificationSettings.NO_MESSAGES, UnreadSetting.ONLY_MENTIONS], () => c2602_4.NOTHING).otherwise(() => c2602_4.CUSTOM); } export function presetName(a0) { return match(a0).with(c2602_4.ALL_MESSAGES, () => intl.string(t.hZrr6k)).with(c2602_4.MENTIONS, () => intl.string(t.y59NJm)).with(c2602_4.NOTHING, () => intl.string(t["pGn/bJ"])).with(c2602_4.CUSTOM, () => intl.string(t["32yow9"])).exhaustive(); } export function arePresetSettingsUnset(a0, a1) { return !(a0 != null && a0 !== UnreadSetting.UNSET || a1 != null && a1 !== UserNotificationSettings.NULL); }