const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
let _pisell_icon_es_ArrowLeft = require("@pisell/icon/es/ArrowLeft");
_pisell_icon_es_ArrowLeft = require_runtime.__toESM(_pisell_icon_es_ArrowLeft);
require("./index.less");
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
//#region src/components/booking/components/drawer/index.tsx
/**
* @title: 自定义抽屉
* @description:
* @param {PisellDrawerProps} props
* @return {*}
* @Author: zhiwei.Wang
* @Date: 2024-01-30 16:51
*/
const Drawer = (props) => {
	const { hideScrollBar = true, showGoBack = true, mask = false } = props;
	return /* @__PURE__ */ react.default.createElement(antd.Drawer, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({
		width: "600px",
		closable: false,
		zIndex: 999
	}, props), {}, {
		className: (0, classnames.default)("pisell-lowcode__booking-drawer", props.className, { "pisell-lowcode__booking-drawer-hide-scrollbar": hideScrollBar }),
		title: false,
		bodyStyle: { padding: 0 },
		push: false,
		mask
	}), /* @__PURE__ */ react.default.createElement("div", { className: (0, classnames.default)("pisell-lowcode__booking-drawer-title-wrap") }, /* @__PURE__ */ react.default.createElement("div", {
		className: "pisell-lowcode__booking-drawer-title-line",
		onClick: (e) => {
			var _props$onClose;
			(_props$onClose = props.onClose) === null || _props$onClose === void 0 || _props$onClose.call(props, e);
		}
	}, showGoBack && /* @__PURE__ */ react.default.createElement(_pisell_icon_es_ArrowLeft.default, { className: "pisell-lowcode__booking-drawer-back" }), /* @__PURE__ */ react.default.createElement("div", { className: (0, classnames.default)("pisell-lowcode__booking-drawer-title", { "pisell-lowcode__booking-drawer-title-no-wrap": props.titleNoWrap }) }, props.title)), props.header), /* @__PURE__ */ react.default.createElement("div", null, props.children));
};
//#endregion
exports.default = Drawer;
