require("../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_objectWithoutProperties = require("../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js");
const require_const = require("../const.js");
let _pisell_utils = require("@pisell/utils");
//#region src/components/eftposPay/mx51/const.ts
const _excluded = [
	"order_id",
	"name",
	"symbol",
	"amount",
	"mode",
	"number",
	"pay",
	"device",
	"net",
	"client"
];
const getStep = (mode = require_const.ModeEnum.Pay) => [{
	key: Date.now(),
	title: _pisell_utils.locales.getText("page.eftpos-pay.text.loading")(mode),
	text: _pisell_utils.locales.getText("page.eftpos-pay.text.waiting.processing"),
	warn: "",
	tip: _pisell_utils.locales.getText("page.eftpos-pay.text.processing"),
	status: require_const.StatusEnum.Loading
}];
var const_default = (params) => {
	const _ref = params || { mode: require_const.ModeEnum.Pay }, { order_id, name, symbol, amount, mode, number, pay, device, net, client } = _ref, other = require_objectWithoutProperties._objectWithoutProperties(_ref, _excluded);
	console.log("params =>>>>>> ", params);
	return require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({
		order_id,
		name,
		symbol,
		amount,
		mode,
		eftpos: require_const.EftposEnum.MX51,
		key: Date.now(),
		step: 0,
		type: require_const.PayRouteEnum.Step,
		title: _pisell_utils.locales.getText("page.eftpos-pay.text.loading")(mode),
		component: "",
		status: require_const.StatusEnum.Loading,
		steps: getStep(mode),
		render: true,
		client: client !== "undefined" ? client : require_const.ClientEnum.Merchant,
		warn: "",
		custom: other || {}
	}, typeof net !== "undefined" ? { net } : {}), typeof number !== "undefined" ? { number } : {}), typeof pay !== "undefined" ? { pay } : {}), typeof device !== "undefined" ? { device } : {});
};
//#endregion
exports.default = const_default;
