import {
  FEED_TYPE_ALL,
  FEED_TYPE_AUDIO,
  FEED_TYPE_TRENDING,
  FEED_TYPE_VIDEO,
  FEED_TYPE_VIDEO_AUDIO,
} from '@/modules/editorial/editorialSearchFilter/constants';

export const ORIGIN_ALL_VALUE = null;
export const ORIGIN_VIDEO_VALUE = [
  { exclude: true, value: 'RSS' },
  { exclude: true, value: 'AUDIO' },
];
export const ORIGIN_AUDIO_VALUE = { exclude: false, value: 'AUDIO' };
export const ORIGIN_VIDEO_AUDIO_VALUE = { exclude: true, value: 'RSS' };
export const ORIGIN_TRADING_VALUE = { exclude: false, value: 'RSS' };

export const ORIGIN_OPTIONS = {
  [FEED_TYPE_ALL]: ORIGIN_ALL_VALUE,
  [FEED_TYPE_VIDEO]: ORIGIN_VIDEO_VALUE,
  [FEED_TYPE_AUDIO]: ORIGIN_AUDIO_VALUE,
  [FEED_TYPE_VIDEO_AUDIO]: ORIGIN_VIDEO_AUDIO_VALUE,
  [FEED_TYPE_TRENDING]: ORIGIN_TRADING_VALUE,
};
