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/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.ts
var BookingCalendarStyle_exports = {};
__export(BookingCalendarStyle_exports, {
  fulfillmentTagClass: () => fulfillmentTagClass,
  getBookingStateClasses: () => getBookingStateClasses,
  getDrawerStatusTheme: () => getDrawerStatusTheme,
  getGridBookingRowStateClasses: () => getGridBookingRowStateClasses,
  paymentTagClass: () => paymentTagClass
});
module.exports = __toCommonJS(BookingCalendarStyle_exports);
var import_bookingCalendarDateUtils = require("./bookingCalendarDateUtils");
function getDrawerStatusTheme(item, dateKey) {
  const tag = (0, import_bookingCalendarDateUtils.getDisplayStatusTag)(item, dateKey);
  if (item.kind === "block")
    return "bg-red-700/88 border-b-4 border-red-300/55";
  if (tag === "cancel") return "bg-zinc-700/88 border-b-4 border-zinc-400/45";
  if (tag === "no_show") return "bg-zinc-700/88 border-b-4 border-red-400/75";
  if (tag === "late") return "bg-violet-700/92 border-b-4 border-amber-400/95";
  if (tag === "checked_in")
    return "bg-violet-700/92 border-b-4 border-zinc-300/45";
  return "bg-violet-700/92 border-b-4 border-violet-300/30";
}
function paymentTagClass(label, isLight = false) {
  switch (label) {
    case "Paid":
      return isLight ? "theme-success-chip border" : "bg-emerald-500 text-white";
    case "Partial paid":
      return isLight ? "theme-warning-chip border" : "bg-amber-500 text-white";
    case "Refunded":
      return isLight ? "theme-info-chip border" : "bg-sky-500 text-white";
    case "Unpaid":
    default:
      return isLight ? "theme-danger-chip border" : "bg-red-500 text-white";
  }
}
function fulfillmentTagClass(label, isLight = false) {
  switch (label) {
    case "Finished":
      return isLight ? "theme-success-chip border" : "bg-emerald-600 text-white";
    case "Arrived":
      return isLight ? "theme-info-chip border" : "bg-cyan-500 text-white";
    case "Late":
      return isLight ? "theme-warning-chip border" : "bg-amber-500 text-white";
    case "No-show":
      return isLight ? "theme-danger-chip border" : "bg-red-600 text-white";
    case "Cancelled":
      return isLight ? "border border-[var(--border-strong)] bg-[var(--bg-input)] theme-text-soft" : "bg-zinc-600 text-white";
    default:
      return isLight ? "border border-[var(--brand-light)] bg-[var(--brand-surface)] theme-brand-text" : "bg-violet-600 text-white";
  }
}
function getBookingStateClasses(item, dateKey) {
  const displayTag = (0, import_bookingCalendarDateUtils.getDisplayStatusTag)(item, dateKey);
  if (displayTag === "cancel")
    return "bg-zinc-700/55 border border-zinc-500/70 text-zinc-100 grayscale-[0.2]";
  if (displayTag === "no_show")
    return "bg-zinc-700/55 border border-red-500/70 text-zinc-200 grayscale-[0.15]";
  if (displayTag === "late")
    return "bg-violet-700/90 border border-amber-400/80 text-violet-50";
  if (item.kind === "block") return "bg-red-700/70 text-red-100";
  return "bg-violet-700/90 text-violet-50";
}
function getGridBookingRowStateClasses(item) {
  if (item.kind === "block") return "bg-red-700/70 text-red-100";
  return "bg-violet-700/90 text-violet-50";
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  fulfillmentTagClass,
  getBookingStateClasses,
  getDrawerStatusTheme,
  getGridBookingRowStateClasses,
  paymentTagClass
});
