import { locales } from '@pisell/utils';
export var PREFIX = 'pisell-res-booking-detail-modal';
export var I18N_BD = 'pisell-reservation.booking-detail';
/** 与 floorMap/reservationCards.tsx 中 RoomCard 标题兜底一致 */
export var I18N_ROOM_KIND_BOUND = 'pisell-reservation.room-kind-bound';
export var BD_MODAL_MASK = {
  onMouseDown: function onMouseDown(e) {
    return e.stopPropagation();
  },
  onClick: function onClick(e) {
    return e.stopPropagation();
  }
};
export var THEME_PRIMARY_BUTTON_STYLE = {
  background: 'var(--color-primary, var(--ant-color-primary, #5d3f9f))',
  borderColor: 'var(--color-primary, var(--ant-color-primary, #5d3f9f))'
};
export var EMPTY_RESOURCE_BOOKING_ITEM_LISTS = {
  bookings: [],
  completedBookings: [],
  unpaidBookings: []
};
export var DETAIL_TAB_ITEMS = [{
  key: 'current-occupied',
  labelKey: 'tab-current-occupied'
}, {
  key: 'ended',
  labelKey: 'tab-ended'
}, {
  key: 'unpaid',
  labelKey: 'tab-unpaid'
}];

/** 预约详情弹窗 i18n：key 为 booking-detail 命名空间下的后缀 */
export function t(key) {
  return locales.getText("".concat(I18N_BD, ".").concat(key));
}
export function stopUiClick(e) {
  e.preventDefault();
  e.stopPropagation();
}

/**
 * 首行前四钮着色 class：结账用主题色，其余三枚为语义浅色。
 */
export function bookingDetailActionCellTintClass(key) {
  switch (key) {
    case 'action-edit':
      return "".concat(PREFIX, "__action-cell--tint-edit");
    case 'action-cart':
      return "".concat(PREFIX, "__action-cell--tint-checkout");
    case 'action-form':
      return "".concat(PREFIX, "__action-cell--tint-form");
    case 'action-start':
      return "".concat(PREFIX, "__action-cell--tint-start");
    case 'action-complete':
      return "".concat(PREFIX, "__action-cell--tint-complete");
    default:
      return '';
  }
}
export function confirmTitleKey(key) {
  switch (key) {
    case 'action-close':
      return 'confirm-close-title';
    case 'action-start':
      return 'confirm-start-title';
    case 'action-complete':
      return 'confirm-complete-title';
    default:
      return 'confirm-start-title';
  }
}
export function confirmOkTextKey(key) {
  switch (key) {
    case 'action-close':
      return 'confirm-close-ok';
    case 'action-start':
      return 'confirm-start-ok';
    case 'action-complete':
      return 'confirm-complete-ok';
    default:
      return 'confirm-start-ok';
  }
}
export function confirmCancelTextKey(key) {
  switch (key) {
    case 'action-close':
      return 'confirm-close-cancel';
    case 'action-start':
      return 'confirm-start-cancel';
    case 'action-complete':
      return 'confirm-complete-cancel';
    default:
      return 'confirm-start-cancel';
  }
}