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/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: require_const.ModeEnum.Pay }, { order_id, name, symbol, amount, mode, number, pay, device, net, client } = _ref, other = require_objectWithoutProperties._objectWithoutProperties(_ref, _excluded);
	return require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({
		name,
		symbol,
		amount,
		order_id,
		mode,
		eftpos: require_const.EftposEnum.Tyro,
		key: Date.now(),
		warn: "",
		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: [],
		render: true,
		client: client !== "undefined" && client !== void 0 ? client : require_const.ClientEnum.Merchant,
		custom: other || {}
	}, typeof net !== "undefined" ? { net } : {}), typeof number !== "undefined" ? { number } : {}), typeof pay !== "undefined" ? { pay } : {}), typeof device !== "undefined" ? { device } : {});
};
//#endregion
exports.default = const_default;
