const require_runtime = require("../../_virtual/_rolldown/runtime.js");
const require_index = require("./form/index.js");
const require_const = require("./const.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
let _pisell_utils = require("@pisell/utils");
//#region src/components/eftpos/pos.tsx
const { Title } = antd.Typography;
const PosForm = ({ onSave, formItemList }) => {
	const initialValues = require_const.getDefaultValue(formItemList);
	return /* @__PURE__ */ react.default.createElement("div", { className: "pisell-lowcode__pos-form-box" }, /* @__PURE__ */ react.default.createElement(Title, {
		level: 4,
		className: "pisell-lowcode__pos-title"
	}, _pisell_utils.locales.getText("page.eftpos.text.setting")), /* @__PURE__ */ react.default.createElement(antd.Form, {
		layout: "vertical",
		onFinish: onSave,
		initialValues,
		className: "pisell-lowcode__pos-form",
		key: formItemList
	}, /* @__PURE__ */ react.default.createElement("div", { className: "pisell-lowcode__pos-form-content" }, /* @__PURE__ */ react.default.createElement(require_index.default, { formItemList })), /* @__PURE__ */ react.default.createElement("div", { className: "pisell-lowcode__pos-form-btn" }, /* @__PURE__ */ react.default.createElement(antd.Form.Item, null, /* @__PURE__ */ react.default.createElement(antd.Button, {
		htmlType: "submit",
		block: true,
		style: { height: "48px" }
	}, _pisell_utils.locales.getText("page.eftpos.text.save"))))));
};
//#endregion
exports.default = PosForm;
