import { j as e } from "../../node_modules/react/jsx-runtime.mjs";
import d from "../../node_modules/classnames/index.mjs";
import { createNamespace as u } from "../../utils/create.mjs";
import x from "../../node_modules/ahooks/es/useControllableValue/index.mjs";
import "./index.less.mjs";
const [_, a] = u("bitzFloatLayoutBlock"), b = (s) => {
  const { open: N = !1, onClose: v, mask: i = !0, title: t, className: c, afterOpenChange: l, zIndex: m = 1e3 } = s, [n, r] = x(s, {
    defaultValue: !1,
    valuePropName: "open",
    trigger: "onClose"
  }), o = () => {
    r(!1), setTimeout(() => {
      l == null || l(!1);
    }, 300);
  };
  return e.jsxs("div", { className: d(a({ active: n }), c), style: { zIndex: m }, children: [i ? e.jsx("div", { onClick: o, className: a("overlay") }) : null, e.jsxs("div", { className: a("container"), children: [t ? e.jsxs("div", { className: a("header"), children: [e.jsx("div", { className: a("header__title"), children: t }), e.jsx("div", { onClick: o, className: a("header__close") })] }) : null, e.jsx("div", { className: a("body"), children: s == null ? void 0 : s.children })] })] });
};
export {
  b as default
};
