var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/pay/toC/status.ts
var status_exports = {};
__export(status_exports, {
  isTripartitePayment: () => isTripartitePayment,
  paymentKeys: () => paymentKeys,
  paymentServices: () => paymentServices,
  paymentTypes: () => paymentTypes,
  tripartitePaymentKeys: () => tripartitePaymentKeys
});
module.exports = __toCommonJS(status_exports);
var paymentServices = {
  // stripe支付
  stripe: {
    // url: stripe,
    isTripartitePayment: true
  },
  // 微信支付
  "globepay.wechat.jsapi": {
    // url: wxpay,
    isTripartitePayment: true
  },
  // 微信H5支付
  "superpay.wechat.h5": {
    // url: wxpay,
    channel: ["wx"],
    isTripartitePayment: true
  },
  // 支付包H5支付
  "globepay.alipay.h5": {
    // url: alipay,
    channel: ["nowx", "phone", "ios"],
    isTripartitePayment: true
  },
  "globepay.paypal.h5": {
    // url: paypal,
    channel: ["wx", "nowx", "phone", "ios"],
    isTripartitePayment: false
  },
  "superpay.alipay.h5": {
    // url: alipay,
    isTripartitePayment: true
  },
  "mw.google": {
    // url: google_pay,
    isTripartitePayment: true
  },
  "mw.apple": {
    // url: apple_pay,
    isTripartitePayment: true
  },
  "mw.credit_card": {
    // url: credit_card,
    isTripartitePayment: true
  },
  "pisell.bank_deposit": {
    // url: bank_deposit,
    isTripartitePayment: false
  },
  "pisell.offline_payment": {
    // url: offline_payment,
    isTripartitePayment: false
  },
  "pisell.other.cashmanual": {
    // url: custom,
    isTripartitePayment: false
  },
  "pisell.custom_payment": {
    // url: custom,
    isTripartitePayment: false
  }
};
var getPaymentTypes = () => {
  let arr = [];
  for (let key in paymentServices) {
    arr.push({
      service: key,
      ...paymentServices[key]
    });
  }
  return arr;
};
var getTripartitePaymentKeys = () => {
  let arr = [];
  for (let key in paymentServices) {
    if (paymentServices[key].isTripartitePayment) {
      arr.push(key);
    }
  }
  return arr;
};
var paymentTypes = getPaymentTypes();
var tripartitePaymentKeys = getTripartitePaymentKeys();
var paymentKeys = Object.keys(paymentServices);
var isTripartitePayment = (service) => {
  return tripartitePaymentKeys.includes(service);
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  isTripartitePayment,
  paymentKeys,
  paymentServices,
  paymentTypes,
  tripartitePaymentKeys
});
