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/eftposPay/adyenPos/const.ts
var const_exports = {};
__export(const_exports, {
  default: () => const_default,
  getStep: () => getStep
});
module.exports = __toCommonJS(const_exports);
var import_utils = require("@pisell/utils");
var import_const = require("../const");
var getStep = (mode = import_const.ModeEnum.Pay) => [
  {
    key: Date.now(),
    title: import_utils.locales.getText("page.eftpos-pay.text.loading")(mode),
    text: import_utils.locales.getText("page.eftpos-pay.text.waiting.processing"),
    warn: "",
    tip: import_utils.locales.getText("page.eftpos-pay.text.processing"),
    status: import_const.StatusEnum.Loading
  }
];
var getAdyenInitState = (params) => {
  const {
    order_id,
    name,
    symbol,
    amount,
    mode,
    number,
    pay,
    device,
    net,
    client,
    ...other
  } = params || { mode: import_const.ModeEnum.Pay };
  const isPay = mode === import_const.ModeEnum.Pay || mode === import_const.ModeEnum.FullPay;
  return {
    order_id,
    name,
    symbol,
    amount,
    mode,
    eftpos: import_const.EftposEnum.AdyenPos,
    key: Date.now(),
    step: 0,
    type: import_const.PayRouteEnum.Step,
    title: import_utils.locales.getText("page.eftpos-pay.text.loading")(mode),
    component: "",
    status: import_const.StatusEnum.Loading,
    steps: getStep(mode),
    render: true,
    client: client !== "undefined" && client !== void 0 ? client : import_const.ClientEnum.Merchant,
    warn: "",
    custom: other || {},
    ...typeof net !== "undefined" ? { net } : {},
    ...typeof number !== "undefined" ? { number } : {},
    ...typeof pay !== "undefined" ? { pay } : {},
    ...typeof device !== "undefined" ? { device } : {}
  };
};
var const_default = getAdyenInitState;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  getStep
});
