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/linkly/const.ts
var const_exports = {};
__export(const_exports, {
  EVisibleButtonType: () => EVisibleButtonType,
  LinklyActionStatus: () => LinklyActionStatus,
  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),
    // 'Payment in  process...',
    text: import_utils.locales.getText("page.eftpos-pay.text.waiting.processing"),
    // 'Waiting for the processing...',
    warn: "",
    tip: import_utils.locales.getText("page.eftpos-pay.text.processing"),
    // 'processing...',
    status: import_const.StatusEnum.Loading
  }
];
var const_default = (params) => {
  const {
    order_id,
    name,
    symbol,
    amount,
    mode,
    number,
    pay,
    device,
    net,
    client,
    ...other
  } = params || {
    mode: import_const.ModeEnum.Pay
  };
  console.log("params =>>>>>> ", params);
  return {
    order_id,
    name,
    symbol,
    amount,
    mode,
    eftpos: import_const.EftposEnum.Linkly,
    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 : import_const.ClientEnum.Merchant,
    warn: "",
    custom: other || {},
    ...typeof net !== "undefined" ? { net } : {},
    ...typeof number !== "undefined" ? { number } : {},
    ...typeof pay !== "undefined" ? { pay } : {},
    ...typeof device !== "undefined" ? { device } : {}
  };
};
var EVisibleButtonType = /* @__PURE__ */ ((EVisibleButtonType2) => {
  EVisibleButtonType2["CancelButton"] = "CancelButton";
  EVisibleButtonType2["WaitButton"] = "WaitButton";
  return EVisibleButtonType2;
})(EVisibleButtonType || {});
var LinklyActionStatus = /* @__PURE__ */ ((LinklyActionStatus2) => {
  LinklyActionStatus2["Empty"] = "Empty";
  LinklyActionStatus2["Cancel"] = "Cancel";
  LinklyActionStatus2["CancelWaiting"] = "CancelWaiting";
  LinklyActionStatus2["Signature"] = "Signature";
  LinklyActionStatus2["SignatureWaiting"] = "SignatureWaiting";
  return LinklyActionStatus2;
})(LinklyActionStatus || {});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  EVisibleButtonType,
  LinklyActionStatus,
  getStep
});
