const require_runtime = require("../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_index = require("../iconfont/index.js");
const require_index$1 = require("../pisellSectionHeaders/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
require("./index.less");
//#region src/components/pisellHeaderProgressBar/index.tsx
const prefixCls = "pisell-header-progress-bar";
const PisellHeaderProgressBar = ({ title, stepText, showBack = true, showClose = true, enableShadow = false, enableBorder = false, borderWidth = 1, borderColor = "#d0d5dd", backgroundColor = "#FFFFFF", className, style, onBack, onClose }) => {
	const classes = (0, classnames.default)(prefixCls, className);
	/**
	* @title: 左侧内容
	* @description:
	* @return {*}
	* @Author: WangHan
	* @Date: 2025-01-12 16:04
	*/
	const customStyle = require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, style), {}, {
		backgroundColor,
		boxShadow: enableShadow ? "0px 1px 2px 0px rgba(16, 24, 40, 0.05)" : "none",
		borderBottom: enableBorder ? `${borderWidth}px solid ${borderColor}` : "none"
	});
	return /* @__PURE__ */ react.default.createElement(require_index$1.default, {
		backNode: showBack ? /* @__PURE__ */ react.default.createElement(require_index.default, {
			className: `${prefixCls}-back-icon`,
			type: "pisell2-chevron-left"
		}) : null,
		centerNode: /* @__PURE__ */ react.default.createElement("div", { className: `${prefixCls}-center` }, stepText ? /* @__PURE__ */ react.default.createElement("div", { className: "step" }, stepText) : null, title ? /* @__PURE__ */ react.default.createElement("div", { className: "select-text" }, title) : null),
		actionNode: showClose ? /* @__PURE__ */ react.default.createElement(require_index.default, {
			type: "pisell2-x-close",
			className: `${prefixCls}-close-icon`
		}) : null,
		style: customStyle,
		className: classes,
		onAction: onClose,
		onBack
	});
};
//#endregion
exports.default = PisellHeaderProgressBar;
