import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import IconFont from "../iconfont/index.js";
import PisellSectionHeaders from "../pisellSectionHeaders/index.js";
import React from "react";
import classNames from "classnames";
import "./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 = classNames(prefixCls, className);
	/**
	* @title: 左侧内容
	* @description:
	* @return {*}
	* @Author: WangHan
	* @Date: 2025-01-12 16:04
	*/
	const customStyle = _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.createElement(PisellSectionHeaders, {
		backNode: showBack ? /* @__PURE__ */ React.createElement(IconFont, {
			className: `${prefixCls}-back-icon`,
			type: "pisell2-chevron-left"
		}) : null,
		centerNode: /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-center` }, stepText ? /* @__PURE__ */ React.createElement("div", { className: "step" }, stepText) : null, title ? /* @__PURE__ */ React.createElement("div", { className: "select-text" }, title) : null),
		actionNode: showClose ? /* @__PURE__ */ React.createElement(IconFont, {
			type: "pisell2-x-close",
			className: `${prefixCls}-close-icon`
		}) : null,
		style: customStyle,
		className: classes,
		onAction: onClose,
		onBack
	});
};
//#endregion
export { PisellHeaderProgressBar as default };
