import { locales } from "@pisell/utils";
//#region src/plus/pisellReservation/components/bookingDetailModal/bookingDetailModalConstants.ts
const PREFIX = "pisell-res-booking-detail-modal";
const I18N_BD = "pisell-reservation.booking-detail";
/** 与 floorMap/reservationCards.tsx 中 RoomCard 标题兜底一致 */
const I18N_ROOM_KIND_BOUND = "pisell-reservation.room-kind-bound";
const BD_MODAL_MASK = {
	onMouseDown: (e) => e.stopPropagation(),
	onClick: (e) => e.stopPropagation()
};
const THEME_PRIMARY_BUTTON_STYLE = {
	background: "var(--color-primary, var(--ant-color-primary, #5d3f9f))",
	borderColor: "var(--color-primary, var(--ant-color-primary, #5d3f9f))"
};
const EMPTY_RESOURCE_BOOKING_ITEM_LISTS = {
	bookings: [],
	completedBookings: [],
	unpaidBookings: []
};
const DETAIL_TAB_ITEMS = [
	{
		key: "current-occupied",
		labelKey: "tab-current-occupied"
	},
	{
		key: "ended",
		labelKey: "tab-ended"
	},
	{
		key: "unpaid",
		labelKey: "tab-unpaid"
	}
];
/** 预约详情弹窗 i18n：key 为 booking-detail 命名空间下的后缀 */
function t(key) {
	return locales.getText(`${I18N_BD}.${key}`);
}
function stopUiClick(e) {
	e.preventDefault();
	e.stopPropagation();
}
/**
* 首行前四钮着色 class：结账用主题色，其余三枚为语义浅色。
*/
function bookingDetailActionCellTintClass(key) {
	switch (key) {
		case "action-edit": return `${PREFIX}__action-cell--tint-edit`;
		case "action-cart": return `${PREFIX}__action-cell--tint-checkout`;
		case "action-form": return `${PREFIX}__action-cell--tint-form`;
		case "action-start": return `${PREFIX}__action-cell--tint-start`;
		case "action-complete": return `${PREFIX}__action-cell--tint-complete`;
		default: return "";
	}
}
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";
	}
}
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";
	}
}
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";
	}
}
//#endregion
export { BD_MODAL_MASK, DETAIL_TAB_ITEMS, EMPTY_RESOURCE_BOOKING_ITEM_LISTS, I18N_BD, I18N_ROOM_KIND_BOUND, PREFIX, THEME_PRIMARY_BUTTON_STYLE, bookingDetailActionCellTintClass, confirmCancelTextKey, confirmOkTextKey, confirmTitleKey, stopUiClick, t };
