const require_objectSpread2 = require("../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
//#region src/components/pay/toC/status.ts
const paymentServices = {
	stripe: { isTripartitePayment: true },
	"globepay.wechat.jsapi": { isTripartitePayment: true },
	"superpay.wechat.h5": {
		channel: ["wx"],
		isTripartitePayment: true
	},
	"globepay.alipay.h5": {
		channel: [
			"nowx",
			"phone",
			"ios"
		],
		isTripartitePayment: true
	},
	"globepay.paypal.h5": {
		channel: [
			"wx",
			"nowx",
			"phone",
			"ios"
		],
		isTripartitePayment: false
	},
	"superpay.alipay.h5": { isTripartitePayment: true },
	"mw.google": { isTripartitePayment: true },
	"mw.apple": { isTripartitePayment: true },
	"mw.credit_card": { isTripartitePayment: true },
	"pisell.bank_deposit": { isTripartitePayment: false },
	"pisell.offline_payment": { isTripartitePayment: false },
	"pisell.other.cashmanual": { isTripartitePayment: false },
	"pisell.custom_payment": { isTripartitePayment: false }
};
const getPaymentTypes = () => {
	let arr = [];
	for (let key in paymentServices) arr.push(require_objectSpread2._objectSpread2({ service: key }, paymentServices[key]));
	return arr;
};
const getTripartitePaymentKeys = () => {
	let arr = [];
	for (let key in paymentServices) if (paymentServices[key].isTripartitePayment) arr.push(key);
	return arr;
};
getPaymentTypes();
const tripartitePaymentKeys = getTripartitePaymentKeys();
const paymentKeys = Object.keys(paymentServices);
/**
* @title: 判断是否是三方支付
* @description:
* @return: *
* @Author: shengjie.zuo
* @Date: 2024-08-30 10:16:26
*/
const isTripartitePayment = (service) => {
	return tripartitePaymentKeys.includes(service);
};
const saleChannelMap = { "mobile_order": "mobile-order" };
//#endregion
exports.isTripartitePayment = isTripartitePayment;
exports.paymentKeys = paymentKeys;
exports.saleChannelMap = saleChannelMap;
