var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/eftposPay/manufacturer.tsx
var manufacturer_exports = {};
__export(manufacturer_exports, {
  AdyenPos: () => import_adyenPos.default,
  AdyenScan: () => import_adyenScan.default,
  Huifu: () => import_huifu.default,
  Linkly: () => import_linkly.default,
  Mx51: () => import_mx51.default,
  Payo: () => import_payo.default,
  Tyro: () => import_tyro.default,
  Windcave: () => import_windcave.default,
  getAmonunt: () => import_helper.getAmonunt,
  getInitState: () => getInitState
});
module.exports = __toCommonJS(manufacturer_exports);
var import_const = require("./const");
var import_const2 = __toESM(require("./payo/const"));
var import_const3 = __toESM(require("./tyro/const"));
var import_const4 = __toESM(require("./windcave/const"));
var import_const5 = __toESM(require("./linkly/const"));
var import_const6 = __toESM(require("./huifu/const"));
var import_const7 = __toESM(require("./adyenPos/const"));
var import_const8 = __toESM(require("./adyenScan/const"));
var import_const9 = __toESM(require("./mx51/const"));
var import_helper = require("./helper");
var import_payo = __toESM(require("./payo"));
var import_windcave = __toESM(require("./windcave/windcave"));
var import_tyro = __toESM(require("./tyro"));
var import_linkly = __toESM(require("./linkly"));
var import_huifu = __toESM(require("./huifu"));
var import_mx51 = __toESM(require("./mx51"));
var import_adyenPos = __toESM(require("./adyenPos"));
var import_adyenScan = __toESM(require("./adyenScan"));
var getInitState = (type, params) => {
  console.log("type = ", type);
  switch (type) {
    case import_const.EftposEnum.Payo:
      return (0, import_const2.default)(params);
    case import_const.EftposEnum.Windcave:
      return (0, import_const4.default)(params);
    case import_const.EftposEnum.Tyro:
      return (0, import_const3.default)(params);
    case import_const.EftposEnum.Linkly:
      return (0, import_const5.default)(params);
    case import_const.EftposEnum.Huifu:
      return (0, import_const6.default)(params);
    case import_const.EftposEnum.AdyenPos:
      return (0, import_const7.default)(params);
    case import_const.EftposEnum.AdyenAlipay:
    case import_const.EftposEnum.AdyenWechat:
      return (0, import_const8.default)(params, type);
    case import_const.EftposEnum.MX51:
      return (0, import_const9.default)(params);
    default:
      throw new Error("未知的厂商类型");
  }
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  AdyenPos,
  AdyenScan,
  Huifu,
  Linkly,
  Mx51,
  Payo,
  Tyro,
  Windcave,
  getAmonunt,
  getInitState
});
