// Metro module 10108 (f10109). import StreamerModeStore from "../../../stores/StreamerModeStore"; import { SearchTokenTypes, SearchTypes } from "../../../Constants"; import { isGuildLikeSearchContext } from "../SearchUtils"; const getValidOrderedFilterTokens = function getValidOrderedFilterTokens(a0, a1) { const [r27] = a1; const [r34] = [r27]; const r36 = []; if (!r34.hidePersonalInformation) { r36.push(SearchTokenTypes.FILTER_FROM); } const [r48] = [r27]; if (!!isGuildLikeSearchContext(a0) || a0.type === SearchTypes.DMS && !r48.hidePersonalInformation) { r36.push(SearchTokenTypes.FILTER_IN); } r36.push(SearchTokenTypes.FILTER_HAS); const [r76] = [r27]; if (!r76.hidePersonalInformation) { r36.push(SearchTokenTypes.FILTER_MENTIONS); } r36.push(SearchTokenTypes.FILTER_ON); r36.push(SearchTokenTypes.FILTER_BEFORE); r36.push(SearchTokenTypes.FILTER_AFTER); r36.push(SearchTokenTypes.FILTER_AUTHOR_TYPE); return r36; }; export function isFromUserFilterSupported(r4 = [StreamerModeStore]) { const [r13] = r4; return !r13.hidePersonalInformation; } export function isMentionsUserFilterSupported(r4 = [StreamerModeStore]) { const [r13] = r4; return !r13.hidePersonalInformation; } export function isInChannelFilterSupported(a0, r6 = [StreamerModeStore]) { const [r24] = r6; return !!isGuildLikeSearchContext(a0) || a0.type === SearchTypes.DMS && !r24.hidePersonalInformation; } export { getValidOrderedFilterTokens }; export function getValidFilterTokens(a0, a1) { return new Set(getValidOrderedFilterTokens(a0, a1)); }