var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.tsx
var BookingCalendarOverflowListLayer_exports = {};
__export(BookingCalendarOverflowListLayer_exports, {
  BookingCalendarOverflowListLayer: () => BookingCalendarOverflowListLayer
});
module.exports = __toCommonJS(BookingCalendarOverflowListLayer_exports);
var import_react = __toESM(require("react"));
var import_calendarI18n = require("../calendarI18n");
var import_OverflowListModal = require("./OverflowListModal");
function BookingCalendarOverflowListLayer({
  overflowPanelRef,
  isLight,
  modal,
  onClose,
  onPickItem
}) {
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "fixed inset-0 z-[69] bg-black/45 backdrop-blur-sm flex items-center justify-center p-4" }, /* @__PURE__ */ import_react.default.createElement(
    "div",
    {
      ref: overflowPanelRef,
      className: `flex w-full max-w-[520px] max-h-[72vh] flex-col overflow-hidden rounded-3xl border p-5 shadow-2xl ${isLight ? "theme-panel theme-border soft-shadow" : "border-zinc-700 bg-[#121217]"}`
    },
    /* @__PURE__ */ import_react.default.createElement("div", { className: "mb-4 flex shrink-0 items-start justify-between" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "text-xl font-semibold" }, (0, import_calendarI18n.tCal)("pisell2.recordBoard.calendar.overflow.bookingsForDay")), /* @__PURE__ */ import_react.default.createElement("div", { className: "mt-1 text-sm text-zinc-400" }, modal.title)), /* @__PURE__ */ import_react.default.createElement(
      "button",
      {
        type: "button",
        onClick: onClose,
        className: "rounded-xl border border-zinc-700 px-3 py-2 text-zinc-300"
      },
      (0, import_calendarI18n.tCal)("pisell2.recordBoard.calendar.common.close")
    )),
    /* @__PURE__ */ import_react.default.createElement("div", { className: "min-h-0 flex-1 overflow-hidden px-0.5" }, /* @__PURE__ */ import_react.default.createElement(
      import_OverflowListModal.OverflowListModalVirtualList,
      {
        items: modal.items,
        dateKey: modal.date,
        listWidth: 468,
        onPickItem,
        onClose,
        showStatusUi: Boolean(
          modal.scope && String(modal.scope).startsWith("day-lane-overflow-")
        )
      }
    ))
  ));
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  BookingCalendarOverflowListLayer
});
