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/plus/pisellReservation/floorRoomCard/ReservationFloorRoomCard.stories.tsx
var ReservationFloorRoomCard_stories_exports = {};
__export(ReservationFloorRoomCard_stories_exports, {
  DensityMatrix: () => DensityMatrix,
  default: () => ReservationFloorRoomCard_stories_default
});
module.exports = __toCommonJS(ReservationFloorRoomCard_stories_exports);
var import_react = __toESM(require("react"));
var import_reservationMock = require("../floorMap/reservationMock");
var import_mapRowToFloorRoomCardData = require("./mapRowToFloorRoomCardData");
var import_ReservationFloorRoomCard = require("./ReservationFloorRoomCard");
var meta = {
  title: "Plus/PisellReservation/FloorRoomCard",
  component: import_ReservationFloorRoomCard.ReservationFloorRoomCard,
  parameters: {
    layout: "padded"
  }
};
var ReservationFloorRoomCard_stories_default = meta;
var demoRow = import_reservationMock.defaultReservationTableRows.find((r) => r.id === "t2");
var cardData = (0, import_mapRowToFloorRoomCardData.mapPisellReservationRowToFloorRoomCardData)(demoRow, "T-2");
var DENSITIES = [
  "comfortable",
  "compact",
  "mini",
  "micro"
];
var DensityMatrix = {
  render: function DensityMatrixStory() {
    return /* @__PURE__ */ import_react.default.createElement(
      "div",
      {
        style: {
          display: "flex",
          flexDirection: "column",
          gap: 24,
          fontFamily: "system-ui, sans-serif"
        }
      },
      /* @__PURE__ */ import_react.default.createElement("div", { style: { fontSize: 13, color: "#666" } }, "每格固定容器尺寸；density 为显式档位，用于对照 UI 降级（金额带、Next 条、多预订预览等）。"),
      ["rect", "circle"].map((shape) => /* @__PURE__ */ import_react.default.createElement("div", { key: shape }, /* @__PURE__ */ import_react.default.createElement("div", { style: { marginBottom: 8, fontWeight: 600 } }, shape === "rect" ? "方桌" : "圆桌"), /* @__PURE__ */ import_react.default.createElement(
        "div",
        {
          style: {
            display: "grid",
            gridTemplateColumns: `repeat(${DENSITIES.length}, minmax(120px, 1fr))`,
            gap: 12,
            alignItems: "start"
          }
        },
        DENSITIES.map((d) => /* @__PURE__ */ import_react.default.createElement("div", { key: d, style: { display: "flex", flexDirection: "column", gap: 6 } }, /* @__PURE__ */ import_react.default.createElement("span", { style: { fontSize: 11, color: "#888" } }, d), /* @__PURE__ */ import_react.default.createElement(
          "div",
          {
            style: {
              width: shape === "rect" ? 168 : 140,
              height: shape === "rect" ? 124 : 140,
              boxSizing: "border-box"
            }
          },
          /* @__PURE__ */ import_react.default.createElement(
            import_ReservationFloorRoomCard.ReservationFloorRoomCard,
            {
              data: cardData,
              shellShape: shape,
              hideHeaderCapacity: true,
              density: d,
              viewportScale: 1,
              elementLayoutHeightPx: shape === "circle" ? 140 : void 0
            }
          )
        )))
      )))
    );
  }
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  DensityMatrix
});
