var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/plus/pisellReservation/components/bookingDetailModal/bookingDetailModalConstants.ts
var bookingDetailModalConstants_exports = {};
__export(bookingDetailModalConstants_exports, {
  BD_MODAL_MASK: () => BD_MODAL_MASK,
  DETAIL_TAB_ITEMS: () => DETAIL_TAB_ITEMS,
  EMPTY_RESOURCE_BOOKING_ITEM_LISTS: () => EMPTY_RESOURCE_BOOKING_ITEM_LISTS,
  I18N_BD: () => I18N_BD,
  I18N_ROOM_KIND_BOUND: () => I18N_ROOM_KIND_BOUND,
  PREFIX: () => PREFIX,
  THEME_PRIMARY_BUTTON_STYLE: () => THEME_PRIMARY_BUTTON_STYLE,
  bookingDetailActionCellTintClass: () => bookingDetailActionCellTintClass,
  confirmCancelTextKey: () => confirmCancelTextKey,
  confirmOkTextKey: () => confirmOkTextKey,
  confirmTitleKey: () => confirmTitleKey,
  stopUiClick: () => stopUiClick,
  t: () => t
});
module.exports = __toCommonJS(bookingDetailModalConstants_exports);
var import_utils = require("@pisell/utils");
var PREFIX = "pisell-res-booking-detail-modal";
var I18N_BD = "pisell-reservation.booking-detail";
var I18N_ROOM_KIND_BOUND = "pisell-reservation.room-kind-bound";
var BD_MODAL_MASK = {
  onMouseDown: (e) => e.stopPropagation(),
  onClick: (e) => e.stopPropagation()
};
var THEME_PRIMARY_BUTTON_STYLE = {
  background: "var(--color-primary, var(--ant-color-primary, #5d3f9f))",
  borderColor: "var(--color-primary, var(--ant-color-primary, #5d3f9f))"
};
var EMPTY_RESOURCE_BOOKING_ITEM_LISTS = {
  bookings: [],
  completedBookings: [],
  unpaidBookings: []
};
var DETAIL_TAB_ITEMS = [
  { key: "current-occupied", labelKey: "tab-current-occupied" },
  { key: "ended", labelKey: "tab-ended" },
  { key: "unpaid", labelKey: "tab-unpaid" }
];
function t(key) {
  return import_utils.locales.getText(`${I18N_BD}.${key}`);
}
function stopUiClick(e) {
  e.preventDefault();
  e.stopPropagation();
}
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";
  }
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  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
});
