import { j as e } from "../../node_modules/react/jsx-runtime.mjs";
import a from "./FuiCalendarItem.module.less.mjs";
import x from "../../node_modules/classnames/index.mjs";
import j from "../../node_modules/antd/es/avatar/index.mjs";
import h from "../../node_modules/antd/es/tooltip/index.mjs";
import o from "../../node_modules/antd/es/tag/index.mjs";
import u from "../../node_modules/@ant-design/icons/es/icons/ClockCircleOutlined.mjs";
import N from "../../node_modules/@ant-design/icons/es/icons/MinusCircleOutlined.mjs";
import p from "../../node_modules/antd/es/badge/index.mjs";
import r from "../../node_modules/antd/es/button/button.mjs";
import f from "../../node_modules/@ant-design/icons/es/icons/CheckOutlined.mjs";
import v from "../../node_modules/@ant-design/icons/es/icons/EditOutlined.mjs";
import g from "../../node_modules/@ant-design/icons/es/icons/DeleteOutlined.mjs";
import y from "../../node_modules/antd/es/popover/index.mjs";
const C = (i) => {
  var l, t, c, d;
  const { event: s } = i, n = () => /* @__PURE__ */ e.jsx(e.Fragment, {}), m = /* @__PURE__ */ e.jsxs("div", { className: "bitzFuiCalendarBlock-pop-contianer", children: [
    /* @__PURE__ */ e.jsxs("div", { className: "pop-header", children: [
      /* @__PURE__ */ e.jsx("div", { className: "pop-avatar", children: /* @__PURE__ */ e.jsx(j, { size: 40, children: s == null ? void 0 : s.creationUserName }) }),
      /* @__PURE__ */ e.jsxs("div", { className: "pop-header-rihgt", children: [
        /* @__PURE__ */ e.jsxs("div", { className: "name", children: [
          /* @__PURE__ */ e.jsx("div", { className: "", style: { marginRight: "10px" }, children: s == null ? void 0 : s.creationUserName }),
          /* @__PURE__ */ e.jsx(h, { title: "不重要不紧急", children: /* @__PURE__ */ e.jsx("span", { children: s == null ? void 0 : s.status }) })
        ] }),
        /* @__PURE__ */ e.jsxs("div", { className: "", children: [
          /* @__PURE__ */ e.jsx(o, { bordered: !1, icon: /* @__PURE__ */ e.jsx(u, {}), color: "default", children: "waiting" }),
          /* @__PURE__ */ e.jsx(o, { bordered: !1, icon: /* @__PURE__ */ e.jsx(N, {}), color: "default", children: "stop" })
        ] })
      ] })
    ] }),
    /* @__PURE__ */ e.jsx("div", { className: "pop-content", children: s == null ? void 0 : s.subject }),
    /* @__PURE__ */ e.jsx("div", { className: "pop-period", children: n() }),
    /* @__PURE__ */ e.jsxs("div", { className: "pop-tag", children: [
      /* @__PURE__ */ e.jsx(p, { color: "orange", text: s == null ? void 0 : s.statusText }),
      /* @__PURE__ */ e.jsx("div", {})
    ] }),
    /* @__PURE__ */ e.jsxs("div", { className: "pop-footer", children: [
      /* @__PURE__ */ e.jsx(r, { type: "primary", icon: /* @__PURE__ */ e.jsx(f, {}), size: "small", children: "查看" }),
      /* @__PURE__ */ e.jsx(r, { type: "primary", icon: /* @__PURE__ */ e.jsx(v, {}), size: "small", children: "修改" }),
      /* @__PURE__ */ e.jsx(r, { danger: !0, type: "primary", icon: /* @__PURE__ */ e.jsx(g, {}), size: "small", children: "删除" })
    ] })
  ] });
  return /* @__PURE__ */ e.jsx(
    "div",
    {
      style: i == null ? void 0 : i.style,
      className: x(a.FuiCalendarItemBlock, "FuiCalendarItemBlock"),
      children: /* @__PURE__ */ e.jsx(y, { content: m, className: "bitzPopover", children: /* @__PURE__ */ e.jsxs("div", { className: a.container, children: [
        /* @__PURE__ */ e.jsx("div", { className: a.verticalLine }),
        /* @__PURE__ */ e.jsx("div", { className: a.card, children: /* @__PURE__ */ e.jsxs("div", { className: a.cardBody, style: { maxHeight: i == null ? void 0 : i.maxHeight }, children: [
          ((l = i.event) == null ? void 0 : l.subject) && /* @__PURE__ */ e.jsx("span", { className: a.text, children: (t = i.event) == null ? void 0 : t.subject }),
          /* @__PURE__ */ e.jsxs("span", { className: a.text2, children: [
            (c = i.event) == null ? void 0 : c.location,
            " ",
            (d = i.event) == null ? void 0 : d.organizerName
          ] })
        ] }) })
      ] }) })
    }
  );
}, A = C;
export {
  A as default
};
