import { locales } from '@pisell/utils';

/**
 * @title: 日历状态列表
 * @description: 
 * @return {*}
 * @Author: WangHan
 * @Date: 2025-01-14 10:24
 */
export var statusList = [{
  status: 0,
  text: locales.getText('pisell2.event.calendar.limit.unavailable'),
  color: '#EAECF0'
}, {
  status: 1,
  text: locales.getText('pisell2.event.calendar.limit.sold.out'),
  color: '#D92D20'
}, {
  status: 2,
  text: locales.getText('pisell2.event.calendar.limit.call.to.book'),
  color: '#444CE7'
}, {
  status: 3,
  text: locales.getText('pisell2.event.calendar.limit.filling.up.fast'),
  color: '#CA8504'
}, {
  status: 4,
  text: locales.getText('pisell2.event.calendar.limit.lots.of.space'),
  color: '#079455'
}];

/**
 * @title: 日历状态文案
 * @description: 
 * @param {string} type
 * @return {*}
 * @Author: WangHan
 * @Date: 2025-01-14 11:25
 */
export var statusMessage = function statusMessage(type) {
  switch (type) {
    case 'booking_closed':
      return locales.getText('pisell2.event.calendar.booking-closed');
    case 'call_to_book':
      return locales.getText('pisell2.event.calendar.call-to-book');
    case 'email_to_book':
      return locales.getText('pisell2.event.calendar.email-to-book');
    default:
      return '';
  }
};