import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import credit_card from "./payment/credit_card.svg";
import wxpay from "./payment/wxpay.svg";
import alipay from "./payment/alipay.svg";
import google_pay from "./payment/google_pay.svg";
import apple_pay from "./payment/apple_pay.svg";
import stripe from "./payment/stripe.svg";
import bank_deposit from "./payment/bank_deposit.svg";
import paypal from "./payment/paypal.svg";
import custom from "./payment/custom.svg";
import cash from "./payment/cash.svg";
//#region src/components/pay/toC/PaymentList/status.ts
const paymentServices = {
	stripe: { url: stripe },
	"globepay.wechat.jsapi": { url: wxpay },
	"superpay.wechat.h5": {
		url: wxpay,
		channel: ["wx"]
	},
	"globepay.alipay.h5": {
		url: alipay,
		channel: [
			"nowx",
			"phone",
			"ios"
		]
	},
	"globepay.paypal.h5": {
		url: paypal,
		channel: [
			"wx",
			"nowx",
			"phone",
			"ios"
		]
	},
	"globepay.wechat.qrcode": { url: wxpay },
	"globepay.alipay.qrcode": { url: alipay },
	"superpay.alipay.h5": { url: alipay },
	"mw.google": { url: google_pay },
	"mw.apple": { url: apple_pay },
	"mw.credit_card": { url: credit_card },
	"pisell.bank_deposit": { url: bank_deposit },
	"pisell.offline_payment": { url: cash },
	"pisell.other.cashmanual": { url: cash },
	"pisell.custom_payment": { url: custom }
};
const getPaymentTypes = () => {
	let arr = [];
	for (let key in paymentServices) arr.push(_objectSpread2({ service: key }, paymentServices[key]));
	return arr;
};
const paymentTypes = getPaymentTypes();
const paymentKeys = Object.keys(paymentServices);
const isCustomPayment = (service) => {
	return service.includes("pisell.custom_payment");
};
//#endregion
export { isCustomPayment, paymentKeys, paymentTypes };
