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