import { j as e } from "../../node_modules/react/jsx-runtime.mjs";
import { useMemo as d } from "react";
import p from "../../node_modules/dayjs/plugin/objectSupport.mjs";
import T from "./BitzMeetingTimeItem.mjs";
import m from "../../node_modules/dayjs/dayjs.min.mjs";
import "./index.less.mjs";
m.extend(p);
const x = (a) => {
  const { startHour: t = 9, endHour: r = 18, divide: o = 2, time: l = [], current: c, nowTime: u = m().toString() } = a, s = d(() => r - t, [t, r]);
  return console.log("lengthTime", s), /* @__PURE__ */ e.jsx("div", { className: "BitzMeetingTime2Block", children: [...new Array(s).keys()].map((g, i) => /* @__PURE__ */ e.jsxs("div", { className: "BitzMeetingTimeRow", children: [
    /* @__PURE__ */ e.jsx("div", { className: "BitzMeetingTimeTopTime", children: m({ hour: t + i }).format("HH:mm") }),
    /* @__PURE__ */ e.jsx("ul", { className: "BitzMeetingTimeList", children: [...new Array(o).keys()].map((h, n) => /* @__PURE__ */ e.jsx(T, { hour: t + i, range: n, time: l, divide: o, current: c, nowTime: u }, n)) }),
    /* @__PURE__ */ e.jsx("div", { className: "BitzMeetingTimeBottomTime", children: m({ hour: t + i }).add(1, "hour").format("HH:mm") })
  ] }, i)) });
};
export {
  x as default
};
