import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import { _objectWithoutProperties } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
import { ClientEnum, EftposEnum, ModeEnum, PayRouteEnum, StatusEnum } from "../const.js";
import { locales } from "@pisell/utils";
//#region src/components/eftposPay/tyro/const.tsx
const _excluded = [
	"order_id",
	"name",
	"symbol",
	"amount",
	"mode",
	"number",
	"pay",
	"device",
	"net",
	"client"
];
/**
* @title: 初始化 tyro 数据
* @Author: hongbing.wang
* @Date: 2024-08-20 13:50
*/
var const_default = (params) => {
	const _ref = params || { mode: ModeEnum.Pay }, { order_id, name, symbol, amount, mode, number, pay, device, net, client } = _ref, other = _objectWithoutProperties(_ref, _excluded);
	return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
		name,
		symbol,
		amount,
		order_id,
		mode,
		eftpos: EftposEnum.Tyro,
		key: Date.now(),
		warn: "",
		step: 0,
		type: PayRouteEnum.Step,
		title: locales.getText("page.eftpos-pay.text.loading")(mode),
		component: "",
		status: StatusEnum.Loading,
		steps: [],
		render: true,
		client: client !== "undefined" && client !== void 0 ? client : ClientEnum.Merchant,
		custom: other || {}
	}, typeof net !== "undefined" ? { net } : {}), typeof number !== "undefined" ? { number } : {}), typeof pay !== "undefined" ? { pay } : {}), typeof device !== "undefined" ? { device } : {});
};
//#endregion
export { const_default as default };
